OZE_Main.list 4.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062760637606476065760667606776068760697607076071760727607376074760757607676077760787607976080760817608276083760847608576086760877608876089760907609176092760937609476095760967609776098760997610076101761027610376104761057610676107761087610976110761117611276113761147611576116761177611876119761207612176122761237612476125761267612776128761297613076131761327613376134761357613676137761387613976140761417614276143761447614576146761477614876149761507615176152761537615476155761567615776158761597616076161761627616376164761657616676167761687616976170761717617276173761747617576176761777617876179761807618176182761837618476185761867618776188761897619076191761927619376194761957619676197761987619976200762017620276203762047620576206762077620876209762107621176212762137621476215762167621776218762197622076221762227622376224762257622676227762287622976230762317623276233762347623576236762377623876239762407624176242762437624476245762467624776248762497625076251762527625376254762557625676257762587625976260762617626276263762647626576266762677626876269762707627176272762737627476275762767627776278762797628076281762827628376284762857628676287762887628976290762917629276293762947629576296762977629876299763007630176302763037630476305763067630776308763097631076311763127631376314763157631676317763187631976320763217632276323763247632576326763277632876329763307633176332763337633476335763367633776338763397634076341763427634376344763457634676347763487634976350763517635276353763547635576356763577635876359763607636176362763637636476365763667636776368763697637076371763727637376374763757637676377763787637976380763817638276383763847638576386763877638876389763907639176392763937639476395763967639776398763997640076401764027640376404764057640676407764087640976410764117641276413764147641576416764177641876419764207642176422764237642476425764267642776428764297643076431764327643376434764357643676437764387643976440764417644276443764447644576446764477644876449764507645176452764537645476455764567645776458764597646076461764627646376464764657646676467764687646976470764717647276473764747647576476764777647876479764807648176482764837648476485764867648776488764897649076491764927649376494764957649676497764987649976500765017650276503765047650576506765077650876509765107651176512765137651476515765167651776518765197652076521765227652376524765257652676527765287652976530765317653276533765347653576536765377653876539765407654176542765437654476545765467654776548765497655076551765527655376554765557655676557765587655976560765617656276563765647656576566765677656876569765707657176572765737657476575765767657776578765797658076581765827658376584765857658676587765887658976590765917659276593765947659576596765977659876599766007660176602766037660476605766067660776608766097661076611766127661376614766157661676617766187661976620766217662276623766247662576626766277662876629766307663176632766337663476635766367663776638766397664076641766427664376644766457664676647766487664976650766517665276653766547665576656766577665876659766607666176662766637666476665766667666776668766697667076671766727667376674766757667676677766787667976680766817668276683766847668576686766877668876689766907669176692766937669476695766967669776698766997670076701767027670376704767057670676707767087670976710767117671276713767147671576716767177671876719767207672176722767237672476725767267672776728767297673076731767327673376734767357673676737767387673976740767417674276743767447674576746767477674876749767507675176752767537675476755767567675776758767597676076761767627676376764767657676676767767687676976770767717677276773767747677576776767777677876779767807678176782767837678476785767867678776788767897679076791767927679376794767957679676797767987679976800768017680276803768047680576806768077680876809768107681176812768137681476815768167681776818768197682076821768227682376824768257682676827768287682976830768317683276833768347683576836768377683876839768407684176842768437684476845768467684776848768497685076851768527685376854768557685676857768587685976860768617686276863768647686576866768677686876869768707687176872768737687476875768767687776878768797688076881768827688376884768857688676887768887688976890768917689276893768947689576896768977689876899769007690176902769037690476905769067690776908769097691076911769127691376914769157691676917769187691976920769217692276923769247692576926769277692876929769307693176932769337693476935769367693776938769397694076941769427694376944769457694676947769487694976950769517695276953769547695576956769577695876959769607696176962769637696476965769667696776968769697697076971769727697376974769757697676977769787697976980769817698276983769847698576986769877698876989769907699176992769937699476995769967699776998769997700077001770027700377004770057700677007770087700977010770117701277013770147701577016770177701877019770207702177022770237702477025770267702777028770297703077031770327703377034770357703677037770387703977040770417704277043770447704577046770477704877049770507705177052770537705477055770567705777058770597706077061770627706377064770657706677067770687706977070770717707277073770747707577076770777707877079770807708177082770837708477085770867708777088770897709077091770927709377094770957709677097770987709977100771017710277103771047710577106771077710877109771107711177112771137711477115771167711777118771197712077121771227712377124771257712677127771287712977130771317713277133771347713577136771377713877139771407714177142771437714477145771467714777148771497715077151771527715377154771557715677157771587715977160771617716277163771647716577166771677716877169771707717177172771737717477175771767717777178771797718077181771827718377184771857718677187771887718977190771917719277193771947719577196771977719877199772007720177202772037720477205772067720777208772097721077211772127721377214772157721677217772187721977220772217722277223772247722577226772277722877229772307723177232772337723477235772367723777238772397724077241772427724377244772457724677247772487724977250772517725277253772547725577256772577725877259772607726177262772637726477265772667726777268772697727077271772727727377274772757727677277772787727977280772817728277283772847728577286772877728877289772907729177292772937729477295772967729777298772997730077301773027730377304773057730677307773087730977310773117731277313773147731577316773177731877319773207732177322773237732477325773267732777328773297733077331773327733377334773357733677337773387733977340773417734277343773447734577346773477734877349773507735177352773537735477355773567735777358773597736077361773627736377364773657736677367773687736977370773717737277373773747737577376773777737877379773807738177382773837738477385773867738777388773897739077391773927739377394773957739677397773987739977400774017740277403774047740577406774077740877409774107741177412774137741477415774167741777418774197742077421774227742377424774257742677427774287742977430774317743277433774347743577436774377743877439774407744177442774437744477445774467744777448774497745077451774527745377454774557745677457774587745977460774617746277463774647746577466774677746877469774707747177472774737747477475774767747777478774797748077481774827748377484774857748677487774887748977490774917749277493774947749577496774977749877499775007750177502775037750477505775067750777508775097751077511775127751377514775157751677517775187751977520775217752277523775247752577526775277752877529775307753177532775337753477535775367753777538775397754077541775427754377544775457754677547775487754977550775517755277553775547755577556775577755877559775607756177562775637756477565775667756777568775697757077571775727757377574775757757677577775787757977580775817758277583775847758577586775877758877589775907759177592775937759477595775967759777598775997760077601776027760377604776057760677607776087760977610776117761277613776147761577616776177761877619776207762177622776237762477625776267762777628776297763077631776327763377634776357763677637776387763977640776417764277643776447764577646776477764877649776507765177652776537765477655776567765777658776597766077661776627766377664776657766677667776687766977670776717767277673776747767577676776777767877679776807768177682776837768477685776867768777688776897769077691776927769377694776957769677697776987769977700777017770277703777047770577706777077770877709777107771177712777137771477715777167771777718777197772077721777227772377724777257772677727777287772977730777317773277733777347773577736777377773877739777407774177742777437774477745777467774777748777497775077751777527775377754777557775677757777587775977760777617776277763777647776577766777677776877769777707777177772777737777477775777767777777778777797778077781777827778377784777857778677787777887778977790777917779277793777947779577796777977779877799778007780177802778037780477805778067780777808778097781077811778127781377814778157781677817778187781977820778217782277823778247782577826778277782877829778307783177832778337783477835778367783777838778397784077841778427784377844778457784677847778487784977850778517785277853778547785577856778577785877859778607786177862778637786477865778667786777868778697787077871778727787377874778757787677877778787787977880778817788277883778847788577886778877788877889778907789177892778937789477895778967789777898778997790077901779027790377904779057790677907779087790977910779117791277913779147791577916779177791877919779207792177922779237792477925779267792777928779297793077931779327793377934779357793677937779387793977940779417794277943779447794577946779477794877949779507795177952779537795477955779567795777958779597796077961779627796377964779657796677967779687796977970779717797277973779747797577976779777797877979779807798177982779837798477985779867798777988779897799077991779927799377994779957799677997779987799978000780017800278003780047800578006780077800878009780107801178012780137801478015780167801778018780197802078021780227802378024780257802678027780287802978030780317803278033780347803578036780377803878039780407804178042780437804478045780467804778048780497805078051780527805378054780557805678057780587805978060780617806278063780647806578066780677806878069780707807178072780737807478075780767807778078780797808078081780827808378084780857808678087780887808978090780917809278093780947809578096780977809878099781007810178102781037810478105781067810778108781097811078111781127811378114781157811678117781187811978120781217812278123781247812578126781277812878129781307813178132781337813478135781367813778138781397814078141781427814378144781457814678147781487814978150781517815278153781547815578156781577815878159781607816178162781637816478165781667816778168781697817078171781727817378174781757817678177781787817978180781817818278183781847818578186781877818878189781907819178192781937819478195781967819778198781997820078201782027820378204782057820678207782087820978210782117821278213782147821578216782177821878219782207822178222782237822478225782267822778228782297823078231782327823378234782357823678237782387823978240782417824278243782447824578246782477824878249782507825178252782537825478255782567825778258782597826078261782627826378264782657826678267782687826978270782717827278273782747827578276782777827878279782807828178282782837828478285782867828778288782897829078291782927829378294782957829678297782987829978300783017830278303783047830578306783077830878309783107831178312783137831478315783167831778318783197832078321783227832378324783257832678327783287832978330783317833278333783347833578336783377833878339783407834178342783437834478345783467834778348783497835078351783527835378354783557835678357783587835978360783617836278363783647836578366783677836878369783707837178372783737837478375783767837778378783797838078381783827838378384783857838678387783887838978390783917839278393783947839578396783977839878399784007840178402784037840478405784067840778408784097841078411784127841378414784157841678417784187841978420784217842278423784247842578426784277842878429784307843178432784337843478435784367843778438784397844078441784427844378444784457844678447784487844978450784517845278453784547845578456784577845878459784607846178462784637846478465784667846778468784697847078471784727847378474784757847678477784787847978480784817848278483784847848578486784877848878489784907849178492784937849478495784967849778498784997850078501785027850378504785057850678507785087850978510785117851278513785147851578516785177851878519785207852178522785237852478525785267852778528785297853078531785327853378534785357853678537785387853978540785417854278543785447854578546785477854878549785507855178552785537855478555785567855778558785597856078561785627856378564785657856678567785687856978570785717857278573785747857578576785777857878579785807858178582785837858478585785867858778588785897859078591785927859378594785957859678597785987859978600786017860278603786047860578606786077860878609786107861178612786137861478615786167861778618786197862078621786227862378624786257862678627786287862978630786317863278633786347863578636786377863878639786407864178642786437864478645786467864778648786497865078651786527865378654786557865678657786587865978660786617866278663786647866578666786677866878669786707867178672786737867478675786767867778678786797868078681786827868378684786857868678687786887868978690786917869278693786947869578696786977869878699787007870178702787037870478705787067870778708787097871078711787127871378714787157871678717787187871978720787217872278723787247872578726787277872878729787307873178732787337873478735787367873778738787397874078741787427874378744787457874678747787487874978750787517875278753787547875578756787577875878759787607876178762787637876478765787667876778768787697877078771787727877378774787757877678777787787877978780787817878278783787847878578786787877878878789787907879178792787937879478795787967879778798787997880078801788027880378804788057880678807788087880978810788117881278813788147881578816788177881878819788207882178822788237882478825788267882778828788297883078831788327883378834788357883678837788387883978840788417884278843788447884578846788477884878849788507885178852788537885478855788567885778858788597886078861788627886378864788657886678867788687886978870788717887278873788747887578876788777887878879788807888178882788837888478885788867888778888788897889078891788927889378894788957889678897788987889978900789017890278903789047890578906789077890878909789107891178912789137891478915789167891778918789197892078921789227892378924789257892678927789287892978930789317893278933789347893578936789377893878939789407894178942789437894478945789467894778948789497895078951789527895378954789557895678957789587895978960789617896278963789647896578966789677896878969789707897178972789737897478975789767897778978789797898078981789827898378984789857898678987789887898978990789917899278993789947899578996789977899878999790007900179002790037900479005790067900779008790097901079011790127901379014790157901679017790187901979020790217902279023790247902579026790277902879029790307903179032790337903479035790367903779038790397904079041790427904379044790457904679047790487904979050790517905279053790547905579056790577905879059790607906179062790637906479065790667906779068790697907079071790727907379074790757907679077790787907979080790817908279083790847908579086790877908879089790907909179092790937909479095790967909779098790997910079101791027910379104791057910679107791087910979110791117911279113791147911579116791177911879119791207912179122791237912479125791267912779128791297913079131791327913379134791357913679137791387913979140791417914279143791447914579146791477914879149791507915179152791537915479155791567915779158791597916079161791627916379164791657916679167791687916979170791717917279173791747917579176791777917879179791807918179182791837918479185791867918779188791897919079191791927919379194791957919679197791987919979200792017920279203792047920579206792077920879209792107921179212792137921479215792167921779218792197922079221792227922379224792257922679227792287922979230792317923279233792347923579236792377923879239792407924179242792437924479245792467924779248792497925079251792527925379254792557925679257792587925979260792617926279263792647926579266792677926879269792707927179272792737927479275792767927779278792797928079281792827928379284792857928679287792887928979290792917929279293792947929579296792977929879299793007930179302793037930479305793067930779308793097931079311793127931379314793157931679317793187931979320793217932279323793247932579326793277932879329793307933179332793337933479335793367933779338793397934079341793427934379344793457934679347793487934979350793517935279353793547935579356793577935879359793607936179362793637936479365793667936779368793697937079371793727937379374793757937679377793787937979380793817938279383793847938579386793877938879389793907939179392793937939479395793967939779398793997940079401794027940379404794057940679407794087940979410794117941279413794147941579416794177941879419794207942179422794237942479425794267942779428794297943079431794327943379434794357943679437794387943979440794417944279443794447944579446794477944879449794507945179452794537945479455794567945779458794597946079461794627946379464794657946679467794687946979470794717947279473794747947579476794777947879479794807948179482794837948479485794867948779488794897949079491794927949379494794957949679497794987949979500795017950279503795047950579506795077950879509795107951179512795137951479515795167951779518795197952079521795227952379524795257952679527795287952979530795317953279533795347953579536795377953879539795407954179542795437954479545795467954779548795497955079551795527955379554795557955679557795587955979560795617956279563795647956579566795677956879569795707957179572795737957479575795767957779578795797958079581795827958379584795857958679587795887958979590795917959279593795947959579596795977959879599796007960179602796037960479605796067960779608796097961079611796127961379614796157961679617796187961979620796217962279623796247962579626796277962879629796307963179632796337963479635796367963779638796397964079641796427964379644796457964679647796487964979650796517965279653796547965579656796577965879659796607966179662796637966479665796667966779668796697967079671796727967379674796757967679677796787967979680796817968279683796847968579686796877968879689796907969179692796937969479695796967969779698796997970079701797027970379704797057970679707797087970979710797117971279713797147971579716797177971879719797207972179722797237972479725797267972779728797297973079731797327973379734797357973679737797387973979740797417974279743797447974579746797477974879749797507975179752797537975479755797567975779758797597976079761797627976379764797657976679767797687976979770797717977279773797747977579776797777977879779797807978179782797837978479785797867978779788797897979079791797927979379794797957979679797797987979979800798017980279803798047980579806798077980879809798107981179812798137981479815798167981779818798197982079821798227982379824798257982679827798287982979830798317983279833798347983579836798377983879839798407984179842798437984479845798467984779848798497985079851798527985379854798557985679857798587985979860798617986279863798647986579866798677986879869798707987179872798737987479875798767987779878798797988079881798827988379884798857988679887798887988979890798917989279893798947989579896798977989879899799007990179902799037990479905799067990779908799097991079911799127991379914799157991679917799187991979920799217992279923799247992579926799277992879929799307993179932799337993479935799367993779938799397994079941799427994379944799457994679947799487994979950799517995279953799547995579956799577995879959799607996179962799637996479965799667996779968799697997079971799727997379974799757997679977799787997979980799817998279983799847998579986799877998879989799907999179992799937999479995799967999779998799998000080001800028000380004800058000680007800088000980010800118001280013800148001580016800178001880019800208002180022800238002480025800268002780028800298003080031800328003380034800358003680037800388003980040800418004280043800448004580046800478004880049800508005180052800538005480055800568005780058800598006080061800628006380064800658006680067800688006980070800718007280073800748007580076800778007880079800808008180082800838008480085800868008780088800898009080091800928009380094800958009680097800988009980100801018010280103801048010580106801078010880109801108011180112801138011480115801168011780118801198012080121801228012380124801258012680127801288012980130801318013280133801348013580136801378013880139801408014180142801438014480145801468014780148801498015080151801528015380154801558015680157801588015980160801618016280163801648016580166801678016880169801708017180172801738017480175801768017780178801798018080181801828018380184801858018680187801888018980190801918019280193801948019580196801978019880199802008020180202802038020480205802068020780208802098021080211802128021380214802158021680217802188021980220802218022280223802248022580226802278022880229802308023180232802338023480235802368023780238802398024080241802428024380244802458024680247802488024980250802518025280253802548025580256802578025880259802608026180262802638026480265802668026780268802698027080271802728027380274802758027680277802788027980280802818028280283802848028580286802878028880289802908029180292802938029480295802968029780298802998030080301803028030380304803058030680307803088030980310803118031280313803148031580316803178031880319803208032180322803238032480325803268032780328803298033080331803328033380334803358033680337803388033980340803418034280343803448034580346803478034880349803508035180352803538035480355803568035780358803598036080361803628036380364803658036680367803688036980370803718037280373803748037580376803778037880379803808038180382803838038480385803868038780388803898039080391803928039380394803958039680397803988039980400804018040280403804048040580406804078040880409804108041180412804138041480415804168041780418804198042080421804228042380424804258042680427804288042980430804318043280433804348043580436804378043880439804408044180442804438044480445804468044780448804498045080451804528045380454804558045680457804588045980460804618046280463804648046580466804678046880469804708047180472804738047480475804768047780478804798048080481804828048380484804858048680487804888048980490804918049280493804948049580496804978049880499805008050180502805038050480505805068050780508805098051080511805128051380514805158051680517805188051980520805218052280523805248052580526805278052880529805308053180532805338053480535805368053780538805398054080541805428054380544805458054680547805488054980550805518055280553805548055580556805578055880559805608056180562805638056480565805668056780568805698057080571805728057380574805758057680577805788057980580805818058280583805848058580586805878058880589805908059180592805938059480595805968059780598805998060080601806028060380604806058060680607806088060980610806118061280613806148061580616806178061880619806208062180622806238062480625806268062780628806298063080631806328063380634806358063680637806388063980640806418064280643806448064580646806478064880649806508065180652806538065480655806568065780658806598066080661806628066380664806658066680667806688066980670806718067280673806748067580676806778067880679806808068180682806838068480685806868068780688806898069080691806928069380694806958069680697806988069980700807018070280703807048070580706807078070880709807108071180712807138071480715807168071780718807198072080721807228072380724807258072680727807288072980730807318073280733807348073580736807378073880739807408074180742807438074480745807468074780748807498075080751807528075380754807558075680757807588075980760807618076280763807648076580766807678076880769807708077180772807738077480775807768077780778807798078080781807828078380784807858078680787807888078980790807918079280793807948079580796807978079880799808008080180802808038080480805808068080780808808098081080811808128081380814808158081680817808188081980820808218082280823808248082580826808278082880829808308083180832808338083480835808368083780838808398084080841808428084380844808458084680847808488084980850808518085280853808548085580856808578085880859808608086180862808638086480865808668086780868808698087080871808728087380874808758087680877808788087980880808818088280883808848088580886808878088880889808908089180892808938089480895808968089780898808998090080901809028090380904809058090680907809088090980910809118091280913809148091580916809178091880919809208092180922809238092480925809268092780928809298093080931809328093380934809358093680937809388093980940809418094280943809448094580946809478094880949809508095180952809538095480955809568095780958809598096080961809628096380964809658096680967809688096980970809718097280973809748097580976809778097880979809808098180982809838098480985809868098780988809898099080991809928099380994809958099680997809988099981000810018100281003810048100581006810078100881009810108101181012810138101481015810168101781018810198102081021810228102381024810258102681027810288102981030810318103281033810348103581036810378103881039810408104181042810438104481045810468104781048810498105081051810528105381054810558105681057810588105981060810618106281063810648106581066810678106881069810708107181072810738107481075810768107781078810798108081081810828108381084810858108681087810888108981090810918109281093810948109581096810978109881099811008110181102811038110481105811068110781108811098111081111811128111381114811158111681117811188111981120811218112281123811248112581126811278112881129811308113181132811338113481135811368113781138811398114081141811428114381144811458114681147811488114981150811518115281153811548115581156811578115881159811608116181162811638116481165811668116781168811698117081171811728117381174811758117681177811788117981180811818118281183811848118581186811878118881189811908119181192811938119481195811968119781198811998120081201812028120381204812058120681207812088120981210812118121281213812148121581216812178121881219812208122181222812238122481225812268122781228812298123081231812328123381234812358123681237812388123981240812418124281243812448124581246812478124881249812508125181252812538125481255812568125781258812598126081261812628126381264812658126681267812688126981270812718127281273812748127581276812778127881279812808128181282812838128481285812868128781288812898129081291812928129381294812958129681297812988129981300813018130281303813048130581306813078130881309813108131181312813138131481315813168131781318813198132081321813228132381324813258132681327813288132981330813318133281333813348133581336813378133881339813408134181342813438134481345813468134781348813498135081351813528135381354813558135681357813588135981360813618136281363813648136581366813678136881369813708137181372813738137481375813768137781378813798138081381813828138381384813858138681387813888138981390813918139281393813948139581396813978139881399814008140181402814038140481405814068140781408814098141081411814128141381414814158141681417814188141981420814218142281423814248142581426814278142881429814308143181432814338143481435814368143781438814398144081441814428144381444814458144681447814488144981450814518145281453814548145581456814578145881459814608146181462814638146481465814668146781468814698147081471814728147381474814758147681477814788147981480814818148281483814848148581486814878148881489814908149181492814938149481495814968149781498814998150081501815028150381504815058150681507815088150981510815118151281513815148151581516815178151881519815208152181522815238152481525815268152781528815298153081531815328153381534815358153681537815388153981540815418154281543815448154581546815478154881549815508155181552815538155481555815568155781558815598156081561815628156381564815658156681567815688156981570815718157281573815748157581576815778157881579815808158181582815838158481585815868158781588815898159081591815928159381594815958159681597815988159981600816018160281603816048160581606816078160881609816108161181612816138161481615816168161781618816198162081621816228162381624816258162681627816288162981630816318163281633816348163581636816378163881639816408164181642816438164481645816468164781648816498165081651816528165381654816558165681657816588165981660816618166281663816648166581666816678166881669816708167181672816738167481675816768167781678816798168081681816828168381684816858168681687816888168981690816918169281693816948169581696816978169881699817008170181702817038170481705817068170781708817098171081711817128171381714817158171681717817188171981720817218172281723817248172581726817278172881729817308173181732817338173481735817368173781738817398174081741817428174381744817458174681747817488174981750817518175281753817548175581756817578175881759817608176181762817638176481765817668176781768817698177081771817728177381774817758177681777817788177981780817818178281783817848178581786817878178881789817908179181792817938179481795817968179781798817998180081801818028180381804818058180681807818088180981810818118181281813818148181581816818178181881819818208182181822818238182481825818268182781828818298183081831818328183381834818358183681837818388183981840818418184281843818448184581846818478184881849818508185181852818538185481855818568185781858818598186081861818628186381864818658186681867818688186981870818718187281873818748187581876818778187881879818808188181882818838188481885818868188781888818898189081891818928189381894818958189681897818988189981900819018190281903819048190581906819078190881909819108191181912819138191481915819168191781918819198192081921819228192381924819258192681927819288192981930819318193281933819348193581936819378193881939819408194181942819438194481945819468194781948819498195081951819528195381954819558195681957819588195981960819618196281963819648196581966819678196881969819708197181972819738197481975819768197781978819798198081981819828198381984819858198681987819888198981990819918199281993819948199581996819978199881999820008200182002820038200482005820068200782008820098201082011820128201382014820158201682017820188201982020820218202282023820248202582026820278202882029820308203182032820338203482035820368203782038820398204082041820428204382044820458204682047820488204982050820518205282053820548205582056820578205882059820608206182062820638206482065820668206782068820698207082071820728207382074820758207682077820788207982080820818208282083820848208582086820878208882089820908209182092820938209482095820968209782098820998210082101821028210382104821058210682107821088210982110821118211282113821148211582116821178211882119821208212182122821238212482125821268212782128821298213082131821328213382134821358213682137821388213982140821418214282143821448214582146821478214882149821508215182152821538215482155821568215782158821598216082161821628216382164821658216682167821688216982170821718217282173821748217582176821778217882179821808218182182821838218482185821868218782188821898219082191821928219382194821958219682197821988219982200822018220282203822048220582206822078220882209822108221182212822138221482215822168221782218822198222082221822228222382224822258222682227822288222982230822318223282233822348223582236822378223882239822408224182242822438224482245822468224782248822498225082251822528225382254822558225682257822588225982260822618226282263822648226582266822678226882269822708227182272822738227482275822768227782278822798228082281822828228382284822858228682287822888228982290822918229282293822948229582296822978229882299823008230182302823038230482305823068230782308823098231082311823128231382314823158231682317823188231982320823218232282323823248232582326823278232882329823308233182332823338233482335823368233782338823398234082341823428234382344823458234682347823488234982350823518235282353823548235582356823578235882359823608236182362823638236482365823668236782368823698237082371823728237382374823758237682377823788237982380823818238282383823848238582386823878238882389823908239182392823938239482395823968239782398823998240082401824028240382404824058240682407824088240982410824118241282413824148241582416824178241882419824208242182422824238242482425824268242782428824298243082431824328243382434824358243682437824388243982440824418244282443824448244582446824478244882449824508245182452824538245482455824568245782458824598246082461824628246382464824658246682467824688246982470824718247282473824748247582476824778247882479824808248182482824838248482485824868248782488824898249082491824928249382494824958249682497824988249982500825018250282503825048250582506825078250882509825108251182512825138251482515825168251782518825198252082521825228252382524825258252682527825288252982530825318253282533825348253582536825378253882539825408254182542825438254482545825468254782548825498255082551825528255382554825558255682557825588255982560825618256282563825648256582566825678256882569825708257182572825738257482575825768257782578825798258082581825828258382584825858258682587825888258982590825918259282593825948259582596825978259882599826008260182602826038260482605826068260782608826098261082611826128261382614826158261682617826188261982620826218262282623826248262582626826278262882629826308263182632826338263482635826368263782638826398264082641826428264382644826458264682647826488264982650826518265282653826548265582656826578265882659826608266182662826638266482665826668266782668826698267082671826728267382674826758267682677826788267982680826818268282683826848268582686826878268882689826908269182692826938269482695826968269782698826998270082701827028270382704827058270682707827088270982710827118271282713827148271582716827178271882719827208272182722827238272482725827268272782728827298273082731827328273382734827358273682737827388273982740827418274282743827448274582746827478274882749827508275182752827538275482755827568275782758827598276082761827628276382764827658276682767827688276982770827718277282773827748277582776827778277882779827808278182782827838278482785827868278782788827898279082791827928279382794827958279682797827988279982800828018280282803828048280582806828078280882809828108281182812828138281482815828168281782818828198282082821828228282382824828258282682827828288282982830828318283282833828348283582836828378283882839828408284182842828438284482845828468284782848828498285082851828528285382854828558285682857828588285982860828618286282863828648286582866828678286882869828708287182872828738287482875828768287782878828798288082881828828288382884828858288682887828888288982890828918289282893828948289582896828978289882899829008290182902829038290482905829068290782908829098291082911829128291382914829158291682917829188291982920829218292282923829248292582926829278292882929829308293182932829338293482935829368293782938829398294082941829428294382944829458294682947829488294982950829518295282953829548295582956829578295882959829608296182962829638296482965829668296782968829698297082971829728297382974829758297682977829788297982980829818298282983829848298582986829878298882989829908299182992829938299482995829968299782998829998300083001830028300383004830058300683007830088300983010830118301283013830148301583016830178301883019830208302183022830238302483025830268302783028830298303083031830328303383034830358303683037830388303983040830418304283043830448304583046830478304883049830508305183052830538305483055830568305783058830598306083061830628306383064830658306683067830688306983070830718307283073830748307583076830778307883079830808308183082830838308483085830868308783088830898309083091830928309383094830958309683097830988309983100831018310283103831048310583106831078310883109831108311183112831138311483115831168311783118831198312083121831228312383124831258312683127831288312983130831318313283133831348313583136831378313883139831408314183142831438314483145831468314783148831498315083151831528315383154831558315683157831588315983160831618316283163831648316583166831678316883169831708317183172831738317483175831768317783178831798318083181831828318383184831858318683187831888318983190831918319283193831948319583196831978319883199832008320183202832038320483205832068320783208832098321083211832128321383214832158321683217832188321983220832218322283223832248322583226832278322883229832308323183232832338323483235832368323783238832398324083241832428324383244832458324683247832488324983250832518325283253832548325583256832578325883259832608326183262832638326483265832668326783268832698327083271832728327383274832758327683277832788327983280832818328283283832848328583286832878328883289832908329183292832938329483295832968329783298832998330083301833028330383304833058330683307833088330983310833118331283313833148331583316833178331883319833208332183322833238332483325833268332783328833298333083331833328333383334833358333683337833388333983340833418334283343833448334583346833478334883349833508335183352833538335483355833568335783358833598336083361833628336383364833658336683367833688336983370833718337283373833748337583376833778337883379833808338183382833838338483385833868338783388833898339083391833928339383394833958339683397833988339983400834018340283403834048340583406834078340883409834108341183412834138341483415834168341783418834198342083421834228342383424834258342683427834288342983430834318343283433834348343583436834378343883439834408344183442834438344483445834468344783448834498345083451834528345383454834558345683457834588345983460834618346283463834648346583466834678346883469834708347183472834738347483475834768347783478834798348083481834828348383484834858348683487834888348983490834918349283493834948349583496834978349883499835008350183502835038350483505835068350783508835098351083511835128351383514835158351683517835188351983520835218352283523835248352583526835278352883529835308353183532835338353483535835368353783538835398354083541835428354383544835458354683547835488354983550835518355283553835548355583556835578355883559835608356183562835638356483565835668356783568835698357083571835728357383574835758357683577835788357983580835818358283583835848358583586835878358883589835908359183592835938359483595835968359783598835998360083601836028360383604836058360683607836088360983610836118361283613836148361583616836178361883619836208362183622836238362483625836268362783628836298363083631836328363383634836358363683637836388363983640836418364283643836448364583646836478364883649836508365183652836538365483655836568365783658836598366083661836628366383664836658366683667836688366983670836718367283673836748367583676836778367883679836808368183682836838368483685836868368783688836898369083691836928369383694836958369683697836988369983700837018370283703837048370583706837078370883709837108371183712837138371483715837168371783718837198372083721837228372383724837258372683727837288372983730837318373283733837348373583736837378373883739837408374183742837438374483745837468374783748837498375083751837528375383754837558375683757837588375983760837618376283763837648376583766837678376883769837708377183772837738377483775837768377783778837798378083781837828378383784837858378683787837888378983790837918379283793837948379583796837978379883799838008380183802838038380483805838068380783808838098381083811838128381383814838158381683817838188381983820838218382283823838248382583826838278382883829838308383183832838338383483835838368383783838838398384083841838428384383844838458384683847838488384983850838518385283853838548385583856838578385883859838608386183862838638386483865838668386783868838698387083871838728387383874838758387683877838788387983880838818388283883838848388583886838878388883889838908389183892838938389483895838968389783898838998390083901839028390383904839058390683907839088390983910839118391283913839148391583916839178391883919839208392183922839238392483925839268392783928839298393083931839328393383934839358393683937839388393983940839418394283943839448394583946839478394883949839508395183952839538395483955839568395783958839598396083961839628396383964839658396683967839688396983970839718397283973839748397583976839778397883979839808398183982839838398483985839868398783988839898399083991839928399383994839958399683997839988399984000840018400284003840048400584006840078400884009840108401184012840138401484015840168401784018840198402084021840228402384024840258402684027840288402984030840318403284033840348403584036840378403884039840408404184042840438404484045840468404784048840498405084051840528405384054840558405684057840588405984060840618406284063840648406584066840678406884069840708407184072840738407484075840768407784078840798408084081840828408384084840858408684087840888408984090840918409284093840948409584096840978409884099841008410184102841038410484105841068410784108841098411084111841128411384114841158411684117841188411984120841218412284123841248412584126841278412884129841308413184132841338413484135841368413784138841398414084141841428414384144841458414684147841488414984150841518415284153841548415584156841578415884159841608416184162841638416484165841668416784168841698417084171841728417384174841758417684177841788417984180841818418284183841848418584186841878418884189841908419184192841938419484195841968419784198841998420084201842028420384204842058420684207842088420984210842118421284213842148421584216842178421884219842208422184222842238422484225842268422784228842298423084231842328423384234842358423684237842388423984240842418424284243842448424584246842478424884249842508425184252842538425484255842568425784258842598426084261842628426384264842658426684267842688426984270842718427284273842748427584276842778427884279842808428184282842838428484285842868428784288842898429084291842928429384294842958429684297842988429984300843018430284303843048430584306843078430884309843108431184312843138431484315843168431784318843198432084321843228432384324843258432684327843288432984330843318433284333843348433584336843378433884339843408434184342843438434484345843468434784348843498435084351843528435384354843558435684357843588435984360843618436284363843648436584366843678436884369843708437184372843738437484375843768437784378843798438084381843828438384384843858438684387843888438984390843918439284393843948439584396843978439884399844008440184402844038440484405844068440784408844098441084411844128441384414844158441684417844188441984420844218442284423844248442584426844278442884429844308443184432844338443484435844368443784438844398444084441844428444384444844458444684447844488444984450844518445284453844548445584456844578445884459844608446184462844638446484465844668446784468844698447084471844728447384474844758447684477844788447984480844818448284483844848448584486844878448884489844908449184492844938449484495844968449784498844998450084501845028450384504845058450684507845088450984510845118451284513845148451584516845178451884519845208452184522845238452484525845268452784528845298453084531845328453384534845358453684537845388453984540845418454284543845448454584546845478454884549845508455184552845538455484555845568455784558845598456084561845628456384564845658456684567845688456984570845718457284573845748457584576845778457884579845808458184582845838458484585845868458784588845898459084591845928459384594845958459684597845988459984600846018460284603846048460584606846078460884609846108461184612846138461484615846168461784618846198462084621846228462384624846258462684627846288462984630846318463284633846348463584636846378463884639846408464184642846438464484645846468464784648846498465084651846528465384654846558465684657846588465984660846618466284663846648466584666846678466884669846708467184672846738467484675846768467784678846798468084681846828468384684846858468684687846888468984690846918469284693846948469584696846978469884699847008470184702847038470484705847068470784708847098471084711847128471384714847158471684717847188471984720847218472284723847248472584726847278472884729847308473184732847338473484735847368473784738847398474084741847428474384744847458474684747847488474984750847518475284753847548475584756847578475884759847608476184762847638476484765847668476784768847698477084771847728477384774847758477684777847788477984780847818478284783847848478584786847878478884789847908479184792847938479484795847968479784798847998480084801848028480384804848058480684807848088480984810848118481284813848148481584816848178481884819848208482184822848238482484825848268482784828848298483084831848328483384834848358483684837848388483984840848418484284843848448484584846848478484884849848508485184852848538485484855848568485784858848598486084861848628486384864848658486684867848688486984870848718487284873848748487584876848778487884879848808488184882848838488484885848868488784888848898489084891848928489384894848958489684897848988489984900849018490284903849048490584906849078490884909849108491184912849138491484915849168491784918849198492084921849228492384924849258492684927849288492984930849318493284933849348493584936849378493884939849408494184942849438494484945849468494784948849498495084951849528495384954849558495684957849588495984960849618496284963849648496584966849678496884969849708497184972849738497484975849768497784978849798498084981849828498384984849858498684987849888498984990849918499284993849948499584996849978499884999850008500185002850038500485005850068500785008850098501085011850128501385014850158501685017850188501985020850218502285023850248502585026850278502885029850308503185032850338503485035850368503785038850398504085041850428504385044850458504685047850488504985050850518505285053850548505585056850578505885059850608506185062850638506485065850668506785068850698507085071850728507385074850758507685077850788507985080850818508285083850848508585086850878508885089850908509185092850938509485095850968509785098850998510085101851028510385104851058510685107851088510985110851118511285113851148511585116851178511885119851208512185122851238512485125851268512785128851298513085131851328513385134851358513685137851388513985140851418514285143851448514585146851478514885149851508515185152851538515485155851568515785158851598516085161851628516385164851658516685167851688516985170851718517285173851748517585176851778517885179851808518185182851838518485185851868518785188851898519085191851928519385194851958519685197851988519985200852018520285203852048520585206852078520885209852108521185212852138521485215852168521785218852198522085221852228522385224852258522685227852288522985230852318523285233852348523585236852378523885239852408524185242852438524485245852468524785248852498525085251852528525385254852558525685257852588525985260852618526285263852648526585266852678526885269852708527185272852738527485275852768527785278852798528085281852828528385284852858528685287852888528985290852918529285293852948529585296852978529885299853008530185302853038530485305853068530785308853098531085311853128531385314853158531685317853188531985320853218532285323853248532585326853278532885329853308533185332853338533485335853368533785338853398534085341853428534385344853458534685347853488534985350853518535285353853548535585356853578535885359853608536185362853638536485365853668536785368853698537085371853728537385374853758537685377853788537985380853818538285383853848538585386853878538885389853908539185392853938539485395853968539785398853998540085401854028540385404854058540685407854088540985410854118541285413854148541585416854178541885419854208542185422854238542485425854268542785428854298543085431854328543385434854358543685437854388543985440854418544285443854448544585446854478544885449854508545185452854538545485455854568545785458854598546085461854628546385464854658546685467854688546985470854718547285473854748547585476854778547885479854808548185482854838548485485854868548785488854898549085491854928549385494854958549685497854988549985500855018550285503855048550585506855078550885509855108551185512855138551485515855168551785518855198552085521855228552385524855258552685527855288552985530855318553285533855348553585536855378553885539855408554185542855438554485545855468554785548855498555085551855528555385554855558555685557855588555985560855618556285563855648556585566855678556885569855708557185572855738557485575855768557785578855798558085581855828558385584855858558685587855888558985590855918559285593855948559585596855978559885599856008560185602856038560485605856068560785608856098561085611856128561385614856158561685617856188561985620856218562285623856248562585626856278562885629856308563185632856338563485635856368563785638856398564085641856428564385644856458564685647856488564985650856518565285653856548565585656856578565885659856608566185662856638566485665856668566785668856698567085671856728567385674856758567685677856788567985680856818568285683856848568585686856878568885689856908569185692856938569485695856968569785698856998570085701857028570385704857058570685707857088570985710857118571285713857148571585716857178571885719857208572185722857238572485725857268572785728857298573085731857328573385734857358573685737857388573985740857418574285743857448574585746857478574885749857508575185752857538575485755857568575785758857598576085761857628576385764857658576685767857688576985770857718577285773857748577585776857778577885779857808578185782857838578485785857868578785788857898579085791857928579385794857958579685797857988579985800858018580285803858048580585806858078580885809858108581185812858138581485815858168581785818858198582085821858228582385824858258582685827858288582985830858318583285833858348583585836858378583885839858408584185842858438584485845858468584785848858498585085851858528585385854858558585685857858588585985860858618586285863858648586585866858678586885869858708587185872858738587485875858768587785878858798588085881858828588385884858858588685887858888588985890858918589285893858948589585896858978589885899859008590185902859038590485905859068590785908859098591085911859128591385914859158591685917859188591985920859218592285923859248592585926859278592885929859308593185932859338593485935859368593785938859398594085941859428594385944859458594685947859488594985950859518595285953859548595585956859578595885959859608596185962859638596485965859668596785968859698597085971859728597385974859758597685977859788597985980859818598285983859848598585986859878598885989859908599185992859938599485995859968599785998859998600086001860028600386004860058600686007860088600986010860118601286013860148601586016860178601886019860208602186022860238602486025860268602786028860298603086031860328603386034860358603686037860388603986040860418604286043860448604586046860478604886049860508605186052860538605486055860568605786058860598606086061860628606386064860658606686067860688606986070860718607286073860748607586076860778607886079860808608186082860838608486085860868608786088860898609086091860928609386094860958609686097860988609986100861018610286103861048610586106861078610886109861108611186112861138611486115861168611786118861198612086121861228612386124861258612686127861288612986130861318613286133861348613586136861378613886139861408614186142861438614486145861468614786148861498615086151861528615386154861558615686157861588615986160861618616286163861648616586166861678616886169861708617186172861738617486175861768617786178861798618086181861828618386184861858618686187861888618986190861918619286193861948619586196861978619886199862008620186202862038620486205862068620786208862098621086211862128621386214862158621686217862188621986220862218622286223862248622586226862278622886229862308623186232862338623486235862368623786238862398624086241862428624386244862458624686247862488624986250862518625286253862548625586256862578625886259862608626186262862638626486265862668626786268862698627086271862728627386274862758627686277862788627986280862818628286283862848628586286862878628886289862908629186292862938629486295862968629786298862998630086301863028630386304863058630686307863088630986310863118631286313863148631586316863178631886319863208632186322863238632486325863268632786328863298633086331863328633386334863358633686337863388633986340863418634286343863448634586346863478634886349863508635186352863538635486355863568635786358863598636086361863628636386364863658636686367863688636986370863718637286373863748637586376863778637886379863808638186382863838638486385863868638786388863898639086391863928639386394863958639686397863988639986400864018640286403864048640586406864078640886409864108641186412864138641486415864168641786418864198642086421864228642386424864258642686427864288642986430864318643286433864348643586436864378643886439864408644186442864438644486445864468644786448864498645086451864528645386454864558645686457864588645986460864618646286463864648646586466864678646886469864708647186472864738647486475864768647786478864798648086481864828648386484864858648686487864888648986490864918649286493864948649586496864978649886499865008650186502865038650486505865068650786508865098651086511865128651386514865158651686517865188651986520865218652286523865248652586526865278652886529865308653186532865338653486535865368653786538865398654086541865428654386544865458654686547865488654986550865518655286553865548655586556865578655886559865608656186562865638656486565865668656786568865698657086571865728657386574865758657686577865788657986580865818658286583865848658586586865878658886589865908659186592865938659486595865968659786598865998660086601866028660386604866058660686607866088660986610866118661286613866148661586616866178661886619866208662186622866238662486625866268662786628866298663086631866328663386634866358663686637866388663986640866418664286643866448664586646866478664886649866508665186652866538665486655866568665786658866598666086661866628666386664866658666686667866688666986670866718667286673866748667586676866778667886679866808668186682866838668486685866868668786688866898669086691866928669386694866958669686697866988669986700867018670286703867048670586706867078670886709867108671186712867138671486715867168671786718867198672086721867228672386724867258672686727867288672986730867318673286733867348673586736867378673886739867408674186742867438674486745867468674786748867498675086751867528675386754867558675686757867588675986760867618676286763867648676586766867678676886769867708677186772867738677486775867768677786778867798678086781867828678386784867858678686787867888678986790867918679286793867948679586796867978679886799868008680186802868038680486805868068680786808868098681086811868128681386814868158681686817868188681986820868218682286823868248682586826868278682886829868308683186832868338683486835868368683786838868398684086841868428684386844868458684686847868488684986850868518685286853868548685586856868578685886859868608686186862868638686486865868668686786868868698687086871868728687386874868758687686877868788687986880868818688286883868848688586886868878688886889868908689186892868938689486895868968689786898868998690086901869028690386904869058690686907869088690986910869118691286913869148691586916869178691886919869208692186922869238692486925869268692786928869298693086931869328693386934869358693686937869388693986940869418694286943869448694586946869478694886949869508695186952869538695486955869568695786958869598696086961869628696386964869658696686967869688696986970869718697286973869748697586976869778697886979869808698186982869838698486985869868698786988869898699086991869928699386994869958699686997869988699987000870018700287003870048700587006870078700887009870108701187012870138701487015870168701787018870198702087021870228702387024870258702687027870288702987030870318703287033870348703587036870378703887039870408704187042870438704487045870468704787048870498705087051870528705387054870558705687057870588705987060870618706287063870648706587066870678706887069870708707187072870738707487075870768707787078870798708087081870828708387084870858708687087870888708987090870918709287093870948709587096870978709887099871008710187102871038710487105871068710787108871098711087111871128711387114871158711687117871188711987120871218712287123871248712587126871278712887129871308713187132871338713487135871368713787138871398714087141871428714387144871458714687147871488714987150871518715287153871548715587156871578715887159871608716187162871638716487165871668716787168871698717087171871728717387174871758717687177871788717987180871818718287183871848718587186871878718887189871908719187192871938719487195871968719787198871998720087201872028720387204872058720687207872088720987210872118721287213872148721587216872178721887219872208722187222872238722487225872268722787228872298723087231872328723387234872358723687237872388723987240872418724287243872448724587246872478724887249872508725187252872538725487255872568725787258872598726087261872628726387264872658726687267872688726987270872718727287273872748727587276872778727887279872808728187282872838728487285872868728787288872898729087291872928729387294872958729687297872988729987300873018730287303873048730587306873078730887309873108731187312873138731487315873168731787318873198732087321873228732387324873258732687327873288732987330873318733287333873348733587336873378733887339873408734187342873438734487345873468734787348873498735087351873528735387354873558735687357873588735987360873618736287363873648736587366873678736887369873708737187372873738737487375873768737787378873798738087381873828738387384873858738687387873888738987390873918739287393873948739587396873978739887399874008740187402874038740487405874068740787408874098741087411874128741387414874158741687417874188741987420874218742287423874248742587426874278742887429874308743187432874338743487435874368743787438874398744087441874428744387444874458744687447874488744987450874518745287453874548745587456874578745887459874608746187462874638746487465874668746787468874698747087471874728747387474874758747687477874788747987480874818748287483874848748587486874878748887489874908749187492874938749487495874968749787498874998750087501875028750387504875058750687507875088750987510875118751287513875148751587516875178751887519875208752187522875238752487525875268752787528875298753087531875328753387534875358753687537875388753987540875418754287543875448754587546875478754887549875508755187552875538755487555875568755787558875598756087561875628756387564875658756687567875688756987570875718757287573875748757587576875778757887579875808758187582875838758487585875868758787588875898759087591875928759387594875958759687597875988759987600876018760287603876048760587606876078760887609876108761187612876138761487615876168761787618876198762087621876228762387624876258762687627876288762987630876318763287633876348763587636876378763887639876408764187642876438764487645876468764787648876498765087651876528765387654876558765687657876588765987660876618766287663876648766587666876678766887669876708767187672876738767487675876768767787678876798768087681876828768387684876858768687687876888768987690876918769287693876948769587696876978769887699877008770187702877038770487705877068770787708877098771087711877128771387714877158771687717877188771987720877218772287723877248772587726877278772887729877308773187732877338773487735877368773787738877398774087741877428774387744877458774687747877488774987750877518775287753877548775587756877578775887759877608776187762877638776487765877668776787768877698777087771877728777387774877758777687777877788777987780877818778287783877848778587786877878778887789877908779187792877938779487795877968779787798877998780087801878028780387804878058780687807878088780987810878118781287813878148781587816878178781887819878208782187822878238782487825878268782787828878298783087831878328783387834878358783687837878388783987840878418784287843878448784587846878478784887849878508785187852878538785487855878568785787858878598786087861878628786387864878658786687867878688786987870878718787287873878748787587876878778787887879878808788187882878838788487885878868788787888878898789087891878928789387894878958789687897878988789987900879018790287903879048790587906879078790887909879108791187912879138791487915879168791787918879198792087921879228792387924879258792687927879288792987930879318793287933879348793587936879378793887939879408794187942879438794487945879468794787948879498795087951879528795387954879558795687957879588795987960879618796287963879648796587966879678796887969879708797187972879738797487975879768797787978879798798087981879828798387984879858798687987879888798987990879918799287993879948799587996879978799887999880008800188002880038800488005880068800788008880098801088011880128801388014880158801688017880188801988020880218802288023880248802588026880278802888029880308803188032880338803488035880368803788038880398804088041880428804388044880458804688047880488804988050880518805288053880548805588056880578805888059880608806188062880638806488065880668806788068880698807088071880728807388074880758807688077880788807988080880818808288083880848808588086880878808888089880908809188092880938809488095880968809788098880998810088101881028810388104881058810688107881088810988110881118811288113881148811588116881178811888119881208812188122881238812488125881268812788128881298813088131881328813388134881358813688137881388813988140881418814288143881448814588146881478814888149881508815188152881538815488155881568815788158881598816088161881628816388164881658816688167881688816988170881718817288173881748817588176881778817888179881808818188182881838818488185881868818788188881898819088191881928819388194881958819688197881988819988200882018820288203882048820588206882078820888209882108821188212882138821488215882168821788218882198822088221882228822388224882258822688227882288822988230882318823288233882348823588236882378823888239882408824188242882438824488245882468824788248882498825088251882528825388254882558825688257882588825988260882618826288263882648826588266882678826888269882708827188272882738827488275882768827788278882798828088281882828828388284882858828688287882888828988290882918829288293882948829588296882978829888299883008830188302883038830488305883068830788308883098831088311883128831388314883158831688317883188831988320883218832288323883248832588326883278832888329883308833188332883338833488335883368833788338883398834088341883428834388344883458834688347883488834988350883518835288353883548835588356883578835888359883608836188362883638836488365883668836788368883698837088371883728837388374883758837688377883788837988380883818838288383883848838588386883878838888389883908839188392883938839488395883968839788398883998840088401884028840388404884058840688407884088840988410884118841288413884148841588416884178841888419884208842188422884238842488425884268842788428884298843088431884328843388434884358843688437884388843988440884418844288443884448844588446884478844888449884508845188452884538845488455884568845788458884598846088461884628846388464884658846688467884688846988470884718847288473884748847588476884778847888479884808848188482884838848488485884868848788488884898849088491884928849388494884958849688497884988849988500885018850288503885048850588506885078850888509885108851188512885138851488515885168851788518885198852088521885228852388524885258852688527885288852988530885318853288533885348853588536885378853888539885408854188542885438854488545885468854788548885498855088551885528855388554885558855688557885588855988560885618856288563885648856588566885678856888569885708857188572885738857488575885768857788578885798858088581885828858388584885858858688587885888858988590885918859288593885948859588596885978859888599886008860188602886038860488605886068860788608886098861088611886128861388614886158861688617886188861988620886218862288623886248862588626886278862888629886308863188632886338863488635886368863788638886398864088641886428864388644886458864688647886488864988650886518865288653886548865588656886578865888659886608866188662886638866488665886668866788668886698867088671886728867388674886758867688677886788867988680886818868288683886848868588686886878868888689886908869188692886938869488695886968869788698886998870088701887028870388704887058870688707887088870988710887118871288713887148871588716887178871888719887208872188722887238872488725887268872788728887298873088731887328873388734887358873688737887388873988740887418874288743887448874588746887478874888749887508875188752887538875488755887568875788758887598876088761887628876388764887658876688767887688876988770887718877288773887748877588776887778877888779887808878188782887838878488785887868878788788887898879088791887928879388794887958879688797887988879988800888018880288803888048880588806888078880888809888108881188812888138881488815888168881788818888198882088821888228882388824888258882688827888288882988830888318883288833888348883588836888378883888839888408884188842888438884488845888468884788848888498885088851888528885388854888558885688857888588885988860888618886288863888648886588866888678886888869888708887188872888738887488875888768887788878888798888088881888828888388884888858888688887888888888988890888918889288893888948889588896888978889888899889008890188902889038890488905889068890788908889098891088911889128891388914889158891688917889188891988920889218892288923889248892588926889278892888929889308893188932889338893488935889368893788938889398894088941889428894388944889458894688947889488894988950889518895288953889548895588956889578895888959889608896188962889638896488965889668896788968889698897088971889728897388974889758897688977889788897988980889818898288983889848898588986889878898888989889908899188992889938899488995889968899788998889998900089001890028900389004890058900689007890088900989010890118901289013890148901589016890178901889019890208902189022890238902489025890268902789028890298903089031890328903389034890358903689037890388903989040890418904289043890448904589046890478904889049890508905189052890538905489055890568905789058890598906089061890628906389064890658906689067890688906989070890718907289073890748907589076890778907889079890808908189082890838908489085890868908789088890898909089091890928909389094890958909689097890988909989100891018910289103891048910589106891078910889109891108911189112891138911489115891168911789118891198912089121891228912389124891258912689127891288912989130891318913289133891348913589136891378913889139891408914189142891438914489145891468914789148891498915089151891528915389154891558915689157891588915989160891618916289163891648916589166891678916889169891708917189172891738917489175891768917789178891798918089181891828918389184891858918689187891888918989190891918919289193891948919589196891978919889199892008920189202892038920489205892068920789208892098921089211892128921389214892158921689217892188921989220892218922289223892248922589226892278922889229892308923189232892338923489235892368923789238892398924089241892428924389244892458924689247892488924989250892518925289253892548925589256892578925889259892608926189262892638926489265892668926789268892698927089271892728927389274892758927689277892788927989280892818928289283892848928589286892878928889289892908929189292892938929489295892968929789298892998930089301893028930389304893058930689307893088930989310893118931289313893148931589316893178931889319893208932189322893238932489325893268932789328893298933089331893328933389334893358933689337893388933989340893418934289343893448934589346893478934889349893508935189352893538935489355893568935789358893598936089361893628936389364893658936689367893688936989370893718937289373893748937589376893778937889379893808938189382893838938489385893868938789388893898939089391893928939389394893958939689397893988939989400894018940289403894048940589406894078940889409894108941189412894138941489415894168941789418894198942089421894228942389424894258942689427894288942989430894318943289433894348943589436894378943889439894408944189442894438944489445894468944789448894498945089451894528945389454894558945689457894588945989460894618946289463894648946589466894678946889469894708947189472894738947489475894768947789478894798948089481894828948389484894858948689487894888948989490894918949289493894948949589496894978949889499895008950189502895038950489505895068950789508895098951089511895128951389514895158951689517895188951989520895218952289523895248952589526895278952889529895308953189532895338953489535895368953789538895398954089541895428954389544895458954689547895488954989550895518955289553895548955589556895578955889559895608956189562895638956489565895668956789568895698957089571895728957389574895758957689577895788957989580895818958289583895848958589586895878958889589895908959189592895938959489595895968959789598895998960089601896028960389604896058960689607896088960989610896118961289613896148961589616896178961889619896208962189622896238962489625896268962789628896298963089631896328963389634896358963689637896388963989640896418964289643896448964589646896478964889649896508965189652896538965489655896568965789658896598966089661896628966389664896658966689667896688966989670896718967289673896748967589676896778967889679896808968189682896838968489685896868968789688896898969089691896928969389694896958969689697896988969989700897018970289703897048970589706897078970889709897108971189712897138971489715897168971789718897198972089721897228972389724897258972689727897288972989730897318973289733897348973589736897378973889739897408974189742897438974489745897468974789748897498975089751897528975389754897558975689757897588975989760897618976289763897648976589766897678976889769897708977189772897738977489775897768977789778897798978089781897828978389784897858978689787897888978989790897918979289793897948979589796897978979889799898008980189802898038980489805898068980789808898098981089811898128981389814898158981689817898188981989820898218982289823898248982589826898278982889829898308983189832898338983489835898368983789838898398984089841898428984389844898458984689847898488984989850898518985289853898548985589856898578985889859898608986189862898638986489865898668986789868898698987089871898728987389874898758987689877898788987989880898818988289883898848988589886898878988889889898908989189892898938989489895898968989789898898998990089901899028990389904899058990689907899088990989910899118991289913899148991589916899178991889919899208992189922899238992489925899268992789928899298993089931899328993389934899358993689937899388993989940899418994289943899448994589946899478994889949899508995189952899538995489955899568995789958899598996089961899628996389964899658996689967899688996989970899718997289973899748997589976899778997889979899808998189982899838998489985899868998789988899898999089991899928999389994899958999689997899988999990000900019000290003900049000590006900079000890009900109001190012900139001490015900169001790018900199002090021900229002390024900259002690027900289002990030900319003290033900349003590036900379003890039900409004190042900439004490045900469004790048900499005090051900529005390054900559005690057900589005990060900619006290063900649006590066900679006890069900709007190072900739007490075900769007790078900799008090081900829008390084900859008690087900889008990090900919009290093900949009590096900979009890099901009010190102901039010490105901069010790108901099011090111901129011390114901159011690117901189011990120901219012290123901249012590126901279012890129901309013190132901339013490135901369013790138901399014090141901429014390144901459014690147901489014990150901519015290153901549015590156901579015890159901609016190162901639016490165901669016790168901699017090171901729017390174901759017690177901789017990180901819018290183901849018590186901879018890189901909019190192901939019490195901969019790198901999020090201902029020390204902059020690207902089020990210902119021290213902149021590216902179021890219902209022190222902239022490225902269022790228902299023090231902329023390234902359023690237902389023990240902419024290243902449024590246902479024890249902509025190252902539025490255902569025790258902599026090261902629026390264902659026690267902689026990270902719027290273902749027590276902779027890279902809028190282902839028490285902869028790288902899029090291902929029390294902959029690297902989029990300903019030290303903049030590306903079030890309903109031190312903139031490315903169031790318903199032090321903229032390324903259032690327903289032990330903319033290333903349033590336903379033890339903409034190342903439034490345903469034790348903499035090351903529035390354903559035690357903589035990360903619036290363903649036590366903679036890369903709037190372903739037490375903769037790378903799038090381903829038390384903859038690387903889038990390903919039290393903949039590396903979039890399904009040190402904039040490405904069040790408904099041090411904129041390414904159041690417904189041990420904219042290423904249042590426904279042890429904309043190432904339043490435904369043790438904399044090441904429044390444904459044690447904489044990450904519045290453904549045590456904579045890459904609046190462904639046490465904669046790468904699047090471904729047390474904759047690477904789047990480904819048290483904849048590486904879048890489904909049190492904939049490495904969049790498904999050090501905029050390504905059050690507905089050990510905119051290513905149051590516905179051890519905209052190522905239052490525905269052790528905299053090531905329053390534905359053690537905389053990540905419054290543905449054590546905479054890549905509055190552905539055490555905569055790558905599056090561905629056390564905659056690567905689056990570905719057290573905749057590576905779057890579905809058190582905839058490585905869058790588905899059090591905929059390594905959059690597905989059990600906019060290603906049060590606906079060890609906109061190612906139061490615906169061790618906199062090621906229062390624906259062690627906289062990630906319063290633906349063590636906379063890639906409064190642906439064490645906469064790648906499065090651906529065390654906559065690657906589065990660906619066290663906649066590666906679066890669906709067190672906739067490675906769067790678906799068090681906829068390684906859068690687906889068990690906919069290693906949069590696906979069890699907009070190702907039070490705907069070790708907099071090711907129071390714907159071690717907189071990720907219072290723907249072590726907279072890729907309073190732907339073490735907369073790738907399074090741907429074390744907459074690747907489074990750907519075290753907549075590756907579075890759907609076190762907639076490765907669076790768907699077090771907729077390774907759077690777907789077990780907819078290783907849078590786907879078890789907909079190792907939079490795907969079790798907999080090801908029080390804908059080690807908089080990810908119081290813908149081590816908179081890819908209082190822908239082490825908269082790828908299083090831908329083390834908359083690837908389083990840908419084290843908449084590846908479084890849908509085190852908539085490855908569085790858908599086090861908629086390864908659086690867908689086990870908719087290873908749087590876908779087890879908809088190882908839088490885908869088790888908899089090891908929089390894908959089690897908989089990900909019090290903909049090590906909079090890909909109091190912909139091490915909169091790918909199092090921909229092390924909259092690927909289092990930909319093290933909349093590936909379093890939909409094190942909439094490945909469094790948909499095090951909529095390954909559095690957909589095990960909619096290963909649096590966909679096890969909709097190972909739097490975909769097790978909799098090981909829098390984909859098690987909889098990990909919099290993909949099590996909979099890999910009100191002910039100491005910069100791008910099101091011910129101391014910159101691017910189101991020910219102291023910249102591026910279102891029910309103191032910339103491035910369103791038910399104091041910429104391044910459104691047910489104991050910519105291053910549105591056910579105891059910609106191062910639106491065910669106791068910699107091071910729107391074910759107691077910789107991080910819108291083910849108591086910879108891089910909109191092910939109491095910969109791098910999110091101911029110391104911059110691107911089110991110911119111291113911149111591116911179111891119911209112191122911239112491125911269112791128911299113091131911329113391134911359113691137911389113991140911419114291143911449114591146911479114891149911509115191152911539115491155911569115791158911599116091161911629116391164911659116691167911689116991170911719117291173911749117591176911779117891179911809118191182911839118491185911869118791188911899119091191911929119391194911959119691197911989119991200912019120291203912049120591206912079120891209912109121191212912139121491215912169121791218912199122091221912229122391224912259122691227912289122991230912319123291233912349123591236912379123891239912409124191242912439124491245912469124791248912499125091251912529125391254912559125691257912589125991260912619126291263912649126591266912679126891269912709127191272912739127491275912769127791278912799128091281912829128391284912859128691287912889128991290912919129291293912949129591296912979129891299913009130191302913039130491305913069130791308913099131091311913129131391314913159131691317913189131991320913219132291323913249132591326913279132891329913309133191332913339133491335913369133791338913399134091341913429134391344913459134691347913489134991350913519135291353913549135591356913579135891359913609136191362913639136491365913669136791368913699137091371913729137391374913759137691377913789137991380913819138291383913849138591386913879138891389913909139191392913939139491395913969139791398913999140091401914029140391404914059140691407914089140991410914119141291413914149141591416914179141891419914209142191422914239142491425914269142791428914299143091431914329143391434914359143691437914389143991440914419144291443914449144591446914479144891449914509145191452914539145491455914569145791458914599146091461914629146391464914659146691467914689146991470914719147291473914749147591476914779147891479914809148191482914839148491485914869148791488914899149091491914929149391494914959149691497914989149991500915019150291503915049150591506915079150891509915109151191512915139151491515915169151791518915199152091521915229152391524915259152691527915289152991530915319153291533915349153591536915379153891539915409154191542915439154491545915469154791548915499155091551915529155391554915559155691557915589155991560915619156291563915649156591566915679156891569915709157191572915739157491575915769157791578915799158091581915829158391584915859158691587915889158991590915919159291593915949159591596915979159891599916009160191602916039160491605916069160791608916099161091611916129161391614916159161691617916189161991620916219162291623916249162591626916279162891629916309163191632916339163491635916369163791638916399164091641916429164391644916459164691647916489164991650916519165291653916549165591656916579165891659916609166191662916639166491665916669166791668916699167091671916729167391674916759167691677916789167991680916819168291683916849168591686916879168891689916909169191692916939169491695916969169791698916999170091701917029170391704917059170691707917089170991710917119171291713917149171591716917179171891719917209172191722917239172491725917269172791728917299173091731917329173391734917359173691737917389173991740917419174291743917449174591746917479174891749917509175191752917539175491755917569175791758917599176091761917629176391764917659176691767917689176991770917719177291773917749177591776917779177891779917809178191782917839178491785917869178791788917899179091791917929179391794917959179691797917989179991800918019180291803918049180591806918079180891809918109181191812918139181491815918169181791818918199182091821918229182391824918259182691827918289182991830918319183291833918349183591836918379183891839918409184191842918439184491845918469184791848918499185091851918529185391854918559185691857918589185991860918619186291863918649186591866918679186891869918709187191872918739187491875918769187791878918799188091881918829188391884918859188691887918889188991890918919189291893918949189591896918979189891899919009190191902919039190491905919069190791908919099191091911919129191391914919159191691917919189191991920919219192291923919249192591926919279192891929919309193191932919339193491935919369193791938919399194091941919429194391944919459194691947919489194991950919519195291953919549195591956919579195891959919609196191962919639196491965919669196791968919699197091971919729197391974919759197691977919789197991980919819198291983919849198591986919879198891989919909199191992919939199491995919969199791998919999200092001920029200392004920059200692007920089200992010920119201292013920149201592016920179201892019920209202192022920239202492025920269202792028920299203092031920329203392034920359203692037920389203992040920419204292043920449204592046920479204892049920509205192052920539205492055920569205792058920599206092061920629206392064920659206692067920689206992070920719207292073920749207592076920779207892079920809208192082920839208492085920869208792088920899209092091920929209392094920959209692097920989209992100921019210292103921049210592106921079210892109921109211192112921139211492115921169211792118921199212092121921229212392124921259212692127921289212992130921319213292133921349213592136921379213892139921409214192142921439214492145921469214792148921499215092151921529215392154921559215692157921589215992160921619216292163921649216592166921679216892169921709217192172921739217492175921769217792178921799218092181921829218392184921859218692187921889218992190921919219292193921949219592196921979219892199922009220192202922039220492205922069220792208922099221092211922129221392214922159221692217922189221992220922219222292223922249222592226922279222892229922309223192232922339223492235922369223792238922399224092241922429224392244922459224692247922489224992250922519225292253922549225592256922579225892259922609226192262922639226492265922669226792268922699227092271922729227392274922759227692277922789227992280922819228292283922849228592286922879228892289922909229192292922939229492295922969229792298922999230092301923029230392304923059230692307923089230992310923119231292313923149231592316923179231892319923209232192322923239232492325923269232792328923299233092331923329233392334923359233692337923389233992340923419234292343923449234592346923479234892349923509235192352923539235492355923569235792358923599236092361923629236392364923659236692367923689236992370923719237292373923749237592376923779237892379923809238192382923839238492385923869238792388923899239092391923929239392394923959239692397923989239992400924019240292403924049240592406924079240892409924109241192412924139241492415924169241792418924199242092421924229242392424924259242692427924289242992430924319243292433924349243592436924379243892439924409244192442924439244492445924469244792448924499245092451924529245392454924559245692457924589245992460924619246292463924649246592466924679246892469924709247192472924739247492475924769247792478924799248092481924829248392484924859248692487924889248992490924919249292493924949249592496924979249892499925009250192502925039250492505925069250792508925099251092511925129251392514925159251692517925189251992520925219252292523925249252592526925279252892529925309253192532925339253492535925369253792538925399254092541925429254392544925459254692547925489254992550925519255292553925549255592556925579255892559925609256192562925639256492565925669256792568925699257092571925729257392574925759257692577925789257992580925819258292583925849258592586925879258892589925909259192592925939259492595925969259792598925999260092601926029260392604926059260692607926089260992610926119261292613926149261592616926179261892619926209262192622926239262492625926269262792628926299263092631926329263392634926359263692637926389263992640926419264292643926449264592646926479264892649926509265192652926539265492655926569265792658926599266092661926629266392664926659266692667926689266992670926719267292673926749267592676926779267892679926809268192682926839268492685926869268792688926899269092691926929269392694926959269692697926989269992700927019270292703927049270592706927079270892709927109271192712927139271492715927169271792718927199272092721927229272392724927259272692727927289272992730927319273292733927349273592736927379273892739927409274192742927439274492745927469274792748927499275092751927529275392754927559275692757927589275992760927619276292763927649276592766927679276892769927709277192772927739277492775927769277792778927799278092781927829278392784927859278692787927889278992790927919279292793927949279592796927979279892799928009280192802928039280492805928069280792808928099281092811928129281392814928159281692817928189281992820928219282292823928249282592826928279282892829928309283192832928339283492835928369283792838928399284092841928429284392844928459284692847928489284992850928519285292853928549285592856928579285892859928609286192862928639286492865928669286792868928699287092871928729287392874928759287692877928789287992880928819288292883928849288592886928879288892889928909289192892928939289492895928969289792898928999290092901929029290392904929059290692907929089290992910929119291292913929149291592916929179291892919929209292192922929239292492925929269292792928929299293092931929329293392934929359293692937929389293992940929419294292943929449294592946929479294892949929509295192952929539295492955929569295792958929599296092961929629296392964929659296692967929689296992970929719297292973929749297592976929779297892979929809298192982929839298492985929869298792988929899299092991929929299392994929959299692997929989299993000930019300293003930049300593006930079300893009930109301193012930139301493015930169301793018930199302093021930229302393024930259302693027930289302993030930319303293033930349303593036930379303893039930409304193042930439304493045930469304793048930499305093051930529305393054930559305693057930589305993060930619306293063930649306593066930679306893069930709307193072930739307493075930769307793078930799308093081930829308393084930859308693087930889308993090930919309293093930949309593096930979309893099931009310193102931039310493105931069310793108931099311093111931129311393114931159311693117931189311993120931219312293123931249312593126931279312893129931309313193132931339313493135931369313793138931399314093141931429314393144931459314693147931489314993150931519315293153931549315593156931579315893159931609316193162931639316493165931669316793168931699317093171931729317393174931759317693177931789317993180931819318293183931849318593186931879318893189931909319193192931939319493195931969319793198931999320093201932029320393204932059320693207932089320993210932119321293213932149321593216932179321893219932209322193222932239322493225932269322793228932299323093231932329323393234932359323693237932389323993240932419324293243932449324593246932479324893249932509325193252932539325493255932569325793258932599326093261932629326393264932659326693267932689326993270932719327293273932749327593276932779327893279932809328193282932839328493285932869328793288932899329093291932929329393294932959329693297932989329993300933019330293303933049330593306933079330893309933109331193312933139331493315933169331793318933199332093321933229332393324933259332693327933289332993330933319333293333933349333593336933379333893339933409334193342933439334493345933469334793348933499335093351933529335393354933559335693357933589335993360933619336293363933649336593366933679336893369933709337193372933739337493375933769337793378933799338093381933829338393384933859338693387933889338993390933919339293393933949339593396933979339893399934009340193402934039340493405934069340793408934099341093411934129341393414934159341693417934189341993420934219342293423934249342593426934279342893429934309343193432934339343493435934369343793438934399344093441934429344393444934459344693447934489344993450934519345293453934549345593456934579345893459934609346193462934639346493465934669346793468934699347093471934729347393474934759347693477934789347993480934819348293483934849348593486934879348893489934909349193492934939349493495934969349793498934999350093501935029350393504935059350693507935089350993510935119351293513935149351593516935179351893519935209352193522935239352493525935269352793528935299353093531935329353393534935359353693537935389353993540935419354293543935449354593546935479354893549935509355193552935539355493555935569355793558935599356093561935629356393564935659356693567935689356993570935719357293573935749357593576935779357893579935809358193582935839358493585935869358793588935899359093591935929359393594935959359693597935989359993600936019360293603936049360593606936079360893609936109361193612936139361493615936169361793618936199362093621936229362393624936259362693627936289362993630936319363293633936349363593636936379363893639936409364193642936439364493645936469364793648936499365093651936529365393654936559365693657936589365993660936619366293663936649366593666936679366893669936709367193672936739367493675936769367793678936799368093681936829368393684936859368693687936889368993690936919369293693936949369593696936979369893699937009370193702937039370493705937069370793708937099371093711937129371393714937159371693717937189371993720937219372293723937249372593726937279372893729937309373193732937339373493735937369373793738937399374093741937429374393744937459374693747937489374993750937519375293753937549375593756937579375893759937609376193762937639376493765937669376793768937699377093771937729377393774937759377693777937789377993780937819378293783937849378593786937879378893789937909379193792937939379493795937969379793798937999380093801938029380393804938059380693807938089380993810938119381293813938149381593816938179381893819938209382193822938239382493825938269382793828938299383093831938329383393834938359383693837938389383993840938419384293843938449384593846938479384893849938509385193852938539385493855938569385793858938599386093861938629386393864938659386693867938689386993870938719387293873938749387593876938779387893879938809388193882938839388493885938869388793888938899389093891938929389393894938959389693897938989389993900939019390293903939049390593906939079390893909939109391193912939139391493915939169391793918939199392093921939229392393924939259392693927939289392993930939319393293933939349393593936939379393893939939409394193942939439394493945939469394793948939499395093951939529395393954939559395693957939589395993960939619396293963939649396593966939679396893969939709397193972939739397493975939769397793978939799398093981939829398393984939859398693987939889398993990939919399293993939949399593996939979399893999940009400194002940039400494005940069400794008940099401094011940129401394014940159401694017940189401994020940219402294023940249402594026940279402894029940309403194032940339403494035940369403794038940399404094041940429404394044940459404694047940489404994050940519405294053940549405594056940579405894059940609406194062940639406494065940669406794068940699407094071940729407394074940759407694077940789407994080940819408294083940849408594086940879408894089940909409194092940939409494095940969409794098940999410094101941029410394104941059410694107941089410994110941119411294113941149411594116941179411894119941209412194122941239412494125941269412794128941299413094131941329413394134941359413694137941389413994140941419414294143941449414594146941479414894149941509415194152941539415494155941569415794158941599416094161941629416394164941659416694167941689416994170941719417294173941749417594176941779417894179941809418194182941839418494185941869418794188941899419094191941929419394194941959419694197941989419994200942019420294203942049420594206942079420894209942109421194212942139421494215942169421794218942199422094221942229422394224942259422694227942289422994230942319423294233942349423594236942379423894239942409424194242942439424494245942469424794248942499425094251942529425394254942559425694257942589425994260942619426294263942649426594266942679426894269942709427194272942739427494275942769427794278942799428094281942829428394284942859428694287942889428994290942919429294293942949429594296942979429894299943009430194302943039430494305943069430794308943099431094311943129431394314943159431694317943189431994320943219432294323943249432594326943279432894329943309433194332943339433494335943369433794338943399434094341943429434394344943459434694347943489434994350943519435294353943549435594356943579435894359943609436194362943639436494365943669436794368943699437094371943729437394374943759437694377943789437994380943819438294383943849438594386943879438894389943909439194392943939439494395943969439794398943999440094401944029440394404944059440694407944089440994410944119441294413944149441594416944179441894419944209442194422944239442494425944269442794428944299443094431944329443394434944359443694437944389443994440944419444294443944449444594446944479444894449944509445194452944539445494455944569445794458944599446094461944629446394464944659446694467944689446994470944719447294473944749447594476944779447894479944809448194482944839448494485944869448794488944899449094491944929449394494944959449694497944989449994500945019450294503945049450594506945079450894509945109451194512945139451494515945169451794518945199452094521945229452394524945259452694527945289452994530945319453294533945349453594536945379453894539945409454194542945439454494545945469454794548945499455094551945529455394554945559455694557945589455994560945619456294563945649456594566945679456894569945709457194572945739457494575945769457794578945799458094581945829458394584945859458694587945889458994590945919459294593945949459594596945979459894599946009460194602946039460494605946069460794608946099461094611946129461394614946159461694617946189461994620946219462294623946249462594626946279462894629946309463194632946339463494635946369463794638946399464094641946429464394644946459464694647946489464994650946519465294653946549465594656946579465894659946609466194662946639466494665946669466794668946699467094671946729467394674946759467694677946789467994680946819468294683946849468594686946879468894689946909469194692946939469494695946969469794698946999470094701947029470394704947059470694707947089470994710947119471294713947149471594716947179471894719947209472194722947239472494725947269472794728947299473094731947329473394734947359473694737947389473994740947419474294743947449474594746947479474894749947509475194752947539475494755947569475794758947599476094761947629476394764947659476694767947689476994770947719477294773947749477594776947779477894779947809478194782947839478494785947869478794788947899479094791947929479394794947959479694797947989479994800948019480294803948049480594806948079480894809948109481194812948139481494815948169481794818948199482094821948229482394824948259482694827948289482994830948319483294833948349483594836948379483894839948409484194842948439484494845948469484794848948499485094851948529485394854948559485694857948589485994860948619486294863948649486594866948679486894869948709487194872948739487494875948769487794878948799488094881948829488394884948859488694887948889488994890948919489294893948949489594896948979489894899949009490194902949039490494905949069490794908949099491094911949129491394914949159491694917949189491994920949219492294923949249492594926949279492894929949309493194932949339493494935949369493794938949399494094941949429494394944949459494694947949489494994950949519495294953949549495594956949579495894959949609496194962949639496494965949669496794968949699497094971949729497394974949759497694977949789497994980949819498294983949849498594986949879498894989949909499194992949939499494995949969499794998949999500095001950029500395004950059500695007950089500995010950119501295013950149501595016950179501895019950209502195022950239502495025950269502795028950299503095031950329503395034950359503695037950389503995040950419504295043950449504595046950479504895049950509505195052950539505495055950569505795058950599506095061950629506395064950659506695067950689506995070950719507295073950749507595076950779507895079950809508195082950839508495085950869508795088950899509095091950929509395094950959509695097950989509995100951019510295103951049510595106951079510895109951109511195112951139511495115951169511795118951199512095121951229512395124951259512695127951289512995130951319513295133951349513595136951379513895139951409514195142951439514495145951469514795148951499515095151951529515395154951559515695157951589515995160951619516295163951649516595166951679516895169951709517195172951739517495175951769517795178951799518095181951829518395184951859518695187951889518995190951919519295193951949519595196951979519895199952009520195202952039520495205952069520795208952099521095211952129521395214952159521695217952189521995220952219522295223952249522595226952279522895229952309523195232952339523495235952369523795238952399524095241952429524395244952459524695247952489524995250952519525295253952549525595256952579525895259952609526195262952639526495265952669526795268952699527095271952729527395274952759527695277952789527995280952819528295283952849528595286952879528895289952909529195292952939529495295952969529795298952999530095301953029530395304953059530695307953089530995310953119531295313953149531595316953179531895319953209532195322953239532495325953269532795328953299533095331953329533395334953359533695337953389533995340953419534295343953449534595346953479534895349953509535195352953539535495355953569535795358953599536095361953629536395364953659536695367953689536995370953719537295373953749537595376953779537895379953809538195382953839538495385953869538795388953899539095391953929539395394953959539695397953989539995400954019540295403954049540595406954079540895409954109541195412954139541495415954169541795418954199542095421954229542395424954259542695427954289542995430954319543295433954349543595436954379543895439954409544195442954439544495445954469544795448954499545095451954529545395454954559545695457954589545995460954619546295463954649546595466954679546895469954709547195472954739547495475954769547795478954799548095481954829548395484954859548695487954889548995490954919549295493954949549595496954979549895499955009550195502955039550495505955069550795508955099551095511955129551395514955159551695517955189551995520955219552295523955249552595526955279552895529955309553195532955339553495535955369553795538955399554095541955429554395544955459554695547955489554995550955519555295553955549555595556955579555895559955609556195562955639556495565955669556795568955699557095571955729557395574955759557695577955789557995580955819558295583955849558595586955879558895589955909559195592955939559495595955969559795598955999560095601956029560395604956059560695607956089560995610956119561295613956149561595616956179561895619956209562195622956239562495625956269562795628956299563095631956329563395634956359563695637956389563995640956419564295643956449564595646956479564895649956509565195652956539565495655956569565795658956599566095661956629566395664956659566695667956689566995670956719567295673956749567595676956779567895679956809568195682956839568495685956869568795688956899569095691956929569395694956959569695697956989569995700957019570295703957049570595706957079570895709957109571195712957139571495715957169571795718957199572095721957229572395724957259572695727957289572995730957319573295733957349573595736957379573895739957409574195742957439574495745957469574795748957499575095751957529575395754957559575695757957589575995760957619576295763957649576595766957679576895769957709577195772957739577495775957769577795778957799578095781957829578395784957859578695787957889578995790957919579295793957949579595796957979579895799958009580195802958039580495805958069580795808958099581095811958129581395814958159581695817958189581995820958219582295823958249582595826958279582895829958309583195832958339583495835958369583795838958399584095841958429584395844958459584695847958489584995850958519585295853958549585595856958579585895859958609586195862958639586495865958669586795868958699587095871958729587395874958759587695877958789587995880958819588295883958849588595886958879588895889958909589195892958939589495895958969589795898958999590095901959029590395904959059590695907959089590995910959119591295913959149591595916959179591895919959209592195922959239592495925959269592795928959299593095931959329593395934959359593695937959389593995940959419594295943959449594595946959479594895949959509595195952959539595495955959569595795958959599596095961959629596395964959659596695967959689596995970959719597295973959749597595976959779597895979959809598195982959839598495985959869598795988959899599095991959929599395994959959599695997959989599996000960019600296003960049600596006960079600896009960109601196012960139601496015960169601796018960199602096021960229602396024960259602696027960289602996030960319603296033960349603596036960379603896039960409604196042960439604496045960469604796048960499605096051960529605396054960559605696057960589605996060960619606296063960649606596066960679606896069960709607196072960739607496075960769607796078960799608096081960829608396084960859608696087960889608996090960919609296093960949609596096960979609896099961009610196102961039610496105961069610796108961099611096111961129611396114961159611696117961189611996120961219612296123961249612596126961279612896129961309613196132961339613496135961369613796138961399614096141961429614396144961459614696147961489614996150961519615296153961549615596156961579615896159961609616196162961639616496165961669616796168961699617096171961729617396174961759617696177961789617996180961819618296183961849618596186961879618896189961909619196192961939619496195961969619796198961999620096201962029620396204962059620696207962089620996210962119621296213962149621596216962179621896219962209622196222962239622496225962269622796228962299623096231962329623396234962359623696237962389623996240962419624296243962449624596246962479624896249962509625196252962539625496255962569625796258962599626096261962629626396264962659626696267962689626996270962719627296273962749627596276962779627896279962809628196282962839628496285962869628796288962899629096291962929629396294962959629696297962989629996300963019630296303963049630596306963079630896309963109631196312963139631496315963169631796318963199632096321963229632396324963259632696327963289632996330963319633296333963349633596336963379633896339963409634196342963439634496345963469634796348963499635096351963529635396354963559635696357963589635996360963619636296363963649636596366963679636896369963709637196372963739637496375963769637796378963799638096381963829638396384963859638696387963889638996390963919639296393963949639596396963979639896399964009640196402964039640496405964069640796408964099641096411964129641396414964159641696417964189641996420964219642296423964249642596426964279642896429964309643196432964339643496435964369643796438964399644096441964429644396444964459644696447964489644996450964519645296453964549645596456964579645896459964609646196462964639646496465964669646796468964699647096471964729647396474964759647696477964789647996480964819648296483964849648596486964879648896489964909649196492964939649496495964969649796498964999650096501965029650396504965059650696507965089650996510965119651296513965149651596516965179651896519965209652196522965239652496525965269652796528965299653096531965329653396534965359653696537965389653996540965419654296543965449654596546965479654896549965509655196552965539655496555965569655796558965599656096561965629656396564965659656696567965689656996570965719657296573965749657596576965779657896579965809658196582965839658496585965869658796588965899659096591965929659396594965959659696597965989659996600966019660296603966049660596606966079660896609966109661196612966139661496615966169661796618966199662096621966229662396624966259662696627966289662996630966319663296633966349663596636966379663896639966409664196642966439664496645966469664796648966499665096651966529665396654966559665696657966589665996660966619666296663966649666596666966679666896669966709667196672966739667496675966769667796678966799668096681966829668396684966859668696687966889668996690966919669296693966949669596696966979669896699967009670196702967039670496705967069670796708967099671096711967129671396714967159671696717967189671996720967219672296723967249672596726967279672896729967309673196732967339673496735967369673796738967399674096741967429674396744967459674696747967489674996750967519675296753967549675596756967579675896759967609676196762967639676496765967669676796768967699677096771967729677396774967759677696777967789677996780967819678296783967849678596786967879678896789967909679196792967939679496795967969679796798967999680096801968029680396804968059680696807968089680996810968119681296813968149681596816968179681896819968209682196822968239682496825968269682796828968299683096831968329683396834968359683696837968389683996840968419684296843968449684596846968479684896849968509685196852968539685496855968569685796858968599686096861968629686396864968659686696867968689686996870968719687296873968749687596876968779687896879968809688196882968839688496885968869688796888968899689096891968929689396894968959689696897968989689996900969019690296903969049690596906969079690896909969109691196912969139691496915969169691796918969199692096921969229692396924969259692696927969289692996930969319693296933969349693596936969379693896939969409694196942969439694496945969469694796948969499695096951969529695396954969559695696957969589695996960969619696296963969649696596966969679696896969969709697196972969739697496975969769697796978969799698096981969829698396984969859698696987969889698996990969919699296993969949699596996969979699896999970009700197002970039700497005970069700797008970099701097011970129701397014970159701697017970189701997020970219702297023970249702597026970279702897029970309703197032970339703497035970369703797038970399704097041970429704397044970459704697047970489704997050970519705297053970549705597056970579705897059970609706197062970639706497065970669706797068970699707097071970729707397074970759707697077970789707997080970819708297083970849708597086970879708897089970909709197092970939709497095970969709797098970999710097101971029710397104971059710697107971089710997110971119711297113971149711597116971179711897119971209712197122971239712497125971269712797128971299713097131971329713397134971359713697137971389713997140971419714297143971449714597146971479714897149971509715197152971539715497155971569715797158971599716097161971629716397164971659716697167971689716997170971719717297173971749717597176971779717897179971809718197182971839718497185971869718797188971899719097191971929719397194971959719697197971989719997200972019720297203972049720597206972079720897209972109721197212972139721497215972169721797218972199722097221972229722397224972259722697227972289722997230972319723297233972349723597236972379723897239972409724197242972439724497245972469724797248972499725097251972529725397254972559725697257972589725997260972619726297263972649726597266972679726897269972709727197272972739727497275972769727797278972799728097281972829728397284972859728697287972889728997290972919729297293972949729597296972979729897299973009730197302973039730497305973069730797308973099731097311973129731397314973159731697317973189731997320973219732297323973249732597326973279732897329973309733197332973339733497335973369733797338973399734097341973429734397344973459734697347973489734997350973519735297353973549735597356973579735897359973609736197362973639736497365973669736797368973699737097371973729737397374973759737697377973789737997380973819738297383973849738597386973879738897389973909739197392973939739497395973969739797398973999740097401974029740397404974059740697407974089740997410974119741297413974149741597416974179741897419974209742197422974239742497425974269742797428974299743097431974329743397434974359743697437974389743997440974419744297443974449744597446974479744897449974509745197452974539745497455974569745797458974599746097461974629746397464974659746697467974689746997470974719747297473974749747597476974779747897479974809748197482974839748497485974869748797488974899749097491974929749397494974959749697497974989749997500975019750297503975049750597506975079750897509975109751197512975139751497515975169751797518975199752097521975229752397524975259752697527975289752997530975319753297533975349753597536975379753897539975409754197542975439754497545975469754797548975499755097551975529755397554975559755697557975589755997560975619756297563975649756597566975679756897569975709757197572975739757497575975769757797578975799758097581975829758397584975859758697587975889758997590975919759297593975949759597596975979759897599976009760197602976039760497605976069760797608976099761097611976129761397614976159761697617976189761997620976219762297623976249762597626976279762897629976309763197632976339763497635976369763797638976399764097641976429764397644976459764697647976489764997650976519765297653976549765597656976579765897659976609766197662976639766497665976669766797668976699767097671976729767397674976759767697677976789767997680976819768297683976849768597686976879768897689976909769197692976939769497695976969769797698976999770097701977029770397704977059770697707977089770997710977119771297713977149771597716977179771897719977209772197722977239772497725977269772797728977299773097731977329773397734977359773697737977389773997740977419774297743977449774597746977479774897749977509775197752977539775497755977569775797758977599776097761977629776397764977659776697767977689776997770977719777297773977749777597776977779777897779977809778197782977839778497785977869778797788977899779097791977929779397794977959779697797977989779997800978019780297803978049780597806978079780897809978109781197812978139781497815978169781797818978199782097821978229782397824978259782697827978289782997830978319783297833978349783597836978379783897839978409784197842978439784497845978469784797848978499785097851978529785397854978559785697857978589785997860978619786297863978649786597866978679786897869978709787197872978739787497875978769787797878978799788097881978829788397884978859788697887978889788997890978919789297893978949789597896978979789897899979009790197902979039790497905979069790797908979099791097911979129791397914979159791697917979189791997920979219792297923979249792597926979279792897929979309793197932979339793497935979369793797938979399794097941979429794397944979459794697947979489794997950979519795297953979549795597956979579795897959979609796197962979639796497965979669796797968979699797097971979729797397974979759797697977979789797997980979819798297983979849798597986979879798897989979909799197992979939799497995979969799797998979999800098001980029800398004980059800698007980089800998010980119801298013980149801598016980179801898019980209802198022980239802498025980269802798028980299803098031980329803398034980359803698037980389803998040980419804298043980449804598046980479804898049980509805198052980539805498055980569805798058980599806098061980629806398064980659806698067980689806998070980719807298073980749807598076980779807898079980809808198082980839808498085980869808798088980899809098091980929809398094980959809698097980989809998100981019810298103981049810598106981079810898109981109811198112981139811498115981169811798118981199812098121981229812398124981259812698127981289812998130981319813298133981349813598136981379813898139981409814198142981439814498145981469814798148981499815098151981529815398154981559815698157981589815998160981619816298163981649816598166981679816898169981709817198172981739817498175981769817798178981799818098181981829818398184981859818698187981889818998190981919819298193981949819598196981979819898199982009820198202982039820498205982069820798208982099821098211982129821398214982159821698217982189821998220982219822298223982249822598226982279822898229982309823198232982339823498235982369823798238982399824098241982429824398244982459824698247982489824998250982519825298253982549825598256982579825898259982609826198262982639826498265982669826798268982699827098271982729827398274982759827698277982789827998280982819828298283982849828598286982879828898289982909829198292982939829498295982969829798298982999830098301983029830398304983059830698307983089830998310983119831298313983149831598316983179831898319983209832198322983239832498325983269832798328983299833098331983329833398334983359833698337983389833998340983419834298343983449834598346983479834898349983509835198352983539835498355983569835798358983599836098361983629836398364983659836698367983689836998370983719837298373983749837598376983779837898379983809838198382983839838498385983869838798388983899839098391983929839398394983959839698397983989839998400984019840298403984049840598406984079840898409984109841198412984139841498415984169841798418984199842098421984229842398424984259842698427984289842998430984319843298433984349843598436984379843898439984409844198442984439844498445984469844798448984499845098451984529845398454984559845698457984589845998460984619846298463984649846598466984679846898469984709847198472984739847498475984769847798478984799848098481984829848398484984859848698487984889848998490984919849298493984949849598496984979849898499985009850198502985039850498505985069850798508985099851098511985129851398514985159851698517985189851998520985219852298523985249852598526985279852898529985309853198532985339853498535985369853798538985399854098541985429854398544985459854698547985489854998550985519855298553985549855598556985579855898559985609856198562985639856498565985669856798568985699857098571985729857398574985759857698577985789857998580985819858298583985849858598586985879858898589985909859198592985939859498595985969859798598985999860098601986029860398604986059860698607986089860998610986119861298613986149861598616986179861898619986209862198622986239862498625986269862798628986299863098631986329863398634986359863698637986389863998640986419864298643986449864598646986479864898649986509865198652986539865498655986569865798658986599866098661986629866398664986659866698667986689866998670986719867298673986749867598676986779867898679986809868198682986839868498685986869868798688986899869098691986929869398694986959869698697986989869998700987019870298703987049870598706987079870898709987109871198712987139871498715987169871798718987199872098721987229872398724987259872698727987289872998730987319873298733987349873598736987379873898739987409874198742987439874498745987469874798748987499875098751987529875398754987559875698757987589875998760987619876298763987649876598766987679876898769987709877198772987739877498775987769877798778987799878098781987829878398784987859878698787987889878998790987919879298793987949879598796987979879898799988009880198802988039880498805988069880798808988099881098811988129881398814988159881698817988189881998820988219882298823988249882598826988279882898829988309883198832988339883498835988369883798838988399884098841988429884398844988459884698847988489884998850988519885298853988549885598856988579885898859988609886198862988639886498865988669886798868988699887098871988729887398874988759887698877988789887998880988819888298883988849888598886988879888898889988909889198892988939889498895988969889798898988999890098901989029890398904989059890698907989089890998910989119891298913989149891598916989179891898919989209892198922989239892498925989269892798928989299893098931989329893398934989359893698937989389893998940989419894298943989449894598946989479894898949989509895198952989539895498955989569895798958989599896098961989629896398964989659896698967989689896998970989719897298973989749897598976989779897898979989809898198982989839898498985989869898798988989899899098991989929899398994989959899698997989989899999000990019900299003990049900599006990079900899009990109901199012990139901499015990169901799018990199902099021990229902399024990259902699027990289902999030990319903299033990349903599036990379903899039990409904199042990439904499045990469904799048990499905099051990529905399054990559905699057990589905999060990619906299063990649906599066990679906899069990709907199072990739907499075990769907799078990799908099081990829908399084990859908699087990889908999090990919909299093990949909599096990979909899099991009910199102991039910499105991069910799108991099911099111991129911399114991159911699117991189911999120991219912299123991249912599126991279912899129991309913199132991339913499135991369913799138991399914099141991429914399144991459914699147991489914999150991519915299153991549915599156991579915899159991609916199162991639916499165991669916799168991699917099171991729917399174991759917699177991789917999180991819918299183991849918599186991879918899189991909919199192991939919499195991969919799198991999920099201992029920399204992059920699207992089920999210992119921299213992149921599216992179921899219992209922199222992239922499225992269922799228992299923099231992329923399234992359923699237992389923999240992419924299243992449924599246992479924899249992509925199252992539925499255992569925799258992599926099261992629926399264992659926699267992689926999270992719927299273992749927599276992779927899279992809928199282992839928499285992869928799288992899929099291992929929399294992959929699297992989929999300993019930299303993049930599306993079930899309993109931199312993139931499315993169931799318993199932099321993229932399324993259932699327993289932999330993319933299333993349933599336993379933899339993409934199342993439934499345993469934799348993499935099351993529935399354993559935699357993589935999360993619936299363993649936599366993679936899369993709937199372993739937499375993769937799378993799938099381993829938399384993859938699387993889938999390993919939299393993949939599396993979939899399994009940199402994039940499405994069940799408994099941099411994129941399414994159941699417994189941999420994219942299423994249942599426994279942899429994309943199432994339943499435994369943799438994399944099441994429944399444994459944699447994489944999450994519945299453994549945599456994579945899459994609946199462994639946499465994669946799468994699947099471994729947399474994759947699477994789947999480994819948299483994849948599486994879948899489994909949199492994939949499495994969949799498994999950099501995029950399504995059950699507995089950999510995119951299513995149951599516995179951899519995209952199522995239952499525995269952799528995299953099531995329953399534995359953699537995389953999540995419954299543995449954599546995479954899549995509955199552995539955499555995569955799558995599956099561995629956399564995659956699567995689956999570995719957299573995749957599576995779957899579995809958199582995839958499585995869958799588995899959099591995929959399594995959959699597995989959999600996019960299603996049960599606996079960899609996109961199612996139961499615996169961799618996199962099621996229962399624996259962699627996289962999630996319963299633996349963599636996379963899639996409964199642996439964499645996469964799648996499965099651996529965399654996559965699657996589965999660996619966299663996649966599666996679966899669996709967199672996739967499675996769967799678996799968099681996829968399684996859968699687996889968999690996919969299693996949969599696996979969899699997009970199702997039970499705997069970799708997099971099711997129971399714997159971699717997189971999720997219972299723997249972599726997279972899729997309973199732997339973499735997369973799738997399974099741997429974399744997459974699747997489974999750997519975299753997549975599756997579975899759997609976199762997639976499765997669976799768997699977099771997729977399774997759977699777997789977999780997819978299783997849978599786997879978899789997909979199792997939979499795997969979799798997999980099801998029980399804998059980699807998089980999810998119981299813998149981599816998179981899819998209982199822998239982499825998269982799828998299983099831998329983399834998359983699837998389983999840998419984299843998449984599846998479984899849998509985199852998539985499855998569985799858998599986099861998629986399864998659986699867998689986999870998719987299873998749987599876998779987899879998809988199882998839988499885998869988799888998899989099891998929989399894998959989699897998989989999900999019990299903999049990599906999079990899909999109991199912999139991499915999169991799918999199992099921999229992399924999259992699927999289992999930999319993299933999349993599936999379993899939999409994199942999439994499945999469994799948999499995099951999529995399954999559995699957999589995999960999619996299963999649996599966999679996899969999709997199972999739997499975999769997799978999799998099981999829998399984999859998699987999889998999990999919999299993999949999599996999979999899999100000100001100002100003100004100005100006100007100008100009100010100011100012100013100014100015100016100017100018100019100020100021100022100023100024100025100026100027100028100029100030100031100032100033100034100035100036100037100038100039100040100041100042100043100044100045100046100047100048100049100050100051100052100053100054100055100056100057100058100059100060100061100062100063100064100065100066100067100068100069100070100071100072100073100074100075100076100077100078100079100080100081100082100083100084100085100086100087100088100089100090100091100092100093100094100095100096100097100098100099100100100101100102100103100104100105100106100107100108100109100110100111100112100113100114100115100116100117100118100119100120100121100122100123100124100125100126100127100128100129100130100131100132100133100134100135100136100137100138100139100140100141100142100143100144100145100146100147100148100149100150100151100152100153100154100155100156100157100158100159100160100161100162100163100164100165100166100167100168100169100170100171100172100173100174100175100176100177100178100179100180100181100182100183100184100185100186100187100188100189100190100191100192100193100194100195100196100197100198100199100200100201100202100203100204100205100206100207100208100209100210100211100212100213100214100215100216100217100218100219100220100221100222100223100224100225100226100227100228100229100230100231100232100233100234100235100236100237100238100239100240100241100242100243100244100245100246100247100248100249100250100251100252100253100254100255100256100257100258100259100260100261100262100263100264100265100266100267100268100269100270100271100272100273100274100275100276100277100278100279100280100281100282100283100284100285100286100287100288100289100290100291100292100293100294100295100296100297100298100299100300100301100302100303100304100305100306100307100308100309100310100311100312100313100314100315100316100317100318100319100320100321100322100323100324100325100326100327100328100329100330100331100332100333100334100335100336100337100338100339100340100341100342100343100344100345100346100347100348100349100350100351100352100353100354100355100356100357100358100359100360100361100362100363100364100365100366100367100368100369100370100371100372100373100374100375100376100377100378100379100380100381100382100383100384100385100386100387100388100389100390100391100392100393100394100395100396100397100398100399100400100401100402100403100404100405100406100407100408100409100410100411100412100413100414100415100416100417100418100419100420100421100422100423100424100425100426100427100428100429100430100431100432100433100434100435100436100437100438100439100440100441100442100443100444100445100446100447100448100449100450100451100452100453100454100455100456100457100458100459100460100461100462100463100464100465100466100467100468100469100470100471100472100473100474100475100476100477100478100479100480100481100482100483100484100485100486100487100488100489100490100491100492100493100494100495100496100497100498100499100500100501100502100503100504100505100506100507100508100509100510100511100512100513100514100515100516100517100518100519100520100521100522100523100524100525100526100527100528100529100530100531100532100533100534100535100536100537100538100539100540100541100542100543100544100545100546100547100548100549100550100551100552100553100554100555100556100557100558100559100560100561100562100563100564100565100566100567100568100569100570100571100572100573100574100575100576100577100578100579100580100581100582100583100584100585100586100587100588100589100590100591100592100593100594100595100596100597100598100599100600100601100602100603100604100605100606100607100608100609100610100611100612100613100614100615100616100617100618100619100620100621100622100623100624100625100626100627100628100629100630100631100632100633100634100635100636100637100638100639100640100641100642100643100644100645100646100647100648100649100650100651100652100653100654100655100656100657100658100659100660100661100662100663100664100665100666100667100668100669100670100671100672100673100674100675100676100677100678100679100680100681100682100683100684100685100686100687100688100689100690100691100692100693100694100695100696100697100698100699100700100701100702100703100704100705100706100707100708100709100710100711100712100713100714100715100716100717100718100719100720100721100722100723100724100725100726100727100728100729100730100731100732100733100734100735100736100737100738100739100740100741100742100743100744100745100746100747100748100749100750100751100752100753100754100755100756100757100758100759100760100761100762100763100764100765100766100767100768100769100770100771100772100773100774100775100776100777100778100779100780100781100782100783100784100785100786100787100788100789100790100791100792100793100794100795100796100797100798100799100800100801100802100803100804100805100806100807100808100809100810100811100812100813100814100815100816100817100818100819100820100821100822100823100824100825100826100827100828100829100830100831100832100833100834100835100836100837100838100839100840100841100842100843100844100845100846100847100848100849100850100851100852100853100854100855100856100857100858100859100860100861100862100863100864100865100866100867100868100869100870100871100872100873100874100875100876100877100878100879100880100881100882100883100884100885100886100887100888100889100890100891100892100893100894100895100896100897100898100899100900100901100902100903100904100905100906100907100908100909100910100911100912100913100914100915100916100917100918100919100920100921100922100923100924100925100926100927100928100929100930100931100932100933100934100935100936100937100938100939100940100941100942100943100944100945100946100947100948100949100950100951100952100953100954100955100956100957100958100959100960100961100962100963100964100965100966100967100968100969100970100971100972100973100974100975100976100977100978100979100980100981100982100983100984100985100986100987100988100989100990100991100992100993100994100995100996100997100998100999101000101001101002101003101004101005101006101007101008101009101010101011101012101013101014101015101016101017101018101019101020101021101022101023101024101025101026101027101028101029101030101031101032101033101034101035101036101037101038101039101040101041101042101043101044101045101046101047101048101049101050101051101052101053101054101055101056101057101058101059101060101061101062101063101064101065101066101067101068101069101070101071101072101073101074101075101076101077101078101079101080101081101082101083101084101085101086101087101088101089101090101091101092101093101094101095101096101097101098101099101100101101101102101103101104101105101106101107101108101109101110101111101112101113101114101115101116101117101118101119101120101121101122101123101124101125101126101127101128101129101130101131101132101133101134101135101136101137101138101139101140101141101142101143101144101145101146101147101148101149101150101151101152101153101154101155101156101157101158101159101160101161101162101163101164101165101166101167101168101169101170101171101172101173101174101175101176101177101178101179101180101181101182101183101184101185101186101187101188101189101190101191101192101193101194101195101196101197101198101199101200101201101202101203101204101205101206101207101208101209101210101211101212101213101214101215101216101217101218101219101220101221101222101223101224101225101226101227101228101229101230101231101232101233101234101235101236101237101238101239101240101241101242101243101244101245101246101247101248101249101250101251101252101253101254101255101256101257101258101259101260101261101262101263101264101265101266101267101268101269101270101271101272101273101274101275101276101277101278101279101280101281101282101283101284101285101286101287101288101289101290101291101292101293101294101295101296101297101298101299101300101301101302101303101304101305101306101307101308101309101310101311101312101313101314101315101316101317101318101319101320101321101322101323101324101325101326101327101328101329101330101331101332101333101334101335101336101337101338101339101340101341101342101343101344101345101346101347101348101349101350101351101352101353101354101355101356101357101358101359101360101361101362101363101364101365101366101367101368101369101370101371101372101373101374101375101376101377101378101379101380101381101382101383101384101385101386101387101388101389101390101391101392101393101394101395101396101397101398101399101400101401101402101403101404101405101406101407101408101409101410101411101412101413101414101415101416101417101418101419101420101421101422101423101424101425101426101427101428101429101430101431101432101433101434101435101436101437101438101439101440101441101442101443101444101445101446101447101448101449101450101451101452101453101454101455101456101457101458101459101460101461101462101463101464101465101466101467101468101469101470101471101472101473101474101475101476101477101478101479101480101481101482101483101484101485101486101487101488101489101490101491101492101493101494101495101496101497101498101499101500101501101502101503101504101505101506101507101508101509101510101511101512101513101514101515101516101517101518101519101520101521101522101523101524101525101526101527101528101529101530101531101532101533101534101535101536101537101538101539101540101541101542101543101544101545101546101547101548101549101550101551101552101553101554101555101556101557101558101559101560101561101562101563101564101565101566101567101568101569101570101571101572101573101574101575101576101577101578101579101580101581101582101583101584101585101586101587101588101589101590101591101592101593101594101595101596101597101598101599101600101601101602101603101604101605101606101607101608101609101610101611101612101613101614101615101616101617101618101619101620101621101622101623101624101625101626101627101628101629101630101631101632101633101634101635101636101637101638101639101640101641101642101643101644101645101646101647101648101649101650101651101652101653101654101655101656101657101658101659101660101661101662101663101664101665101666101667101668101669101670101671101672101673101674101675101676101677101678101679101680101681101682101683101684101685101686101687101688101689101690101691101692101693101694101695101696101697101698101699101700101701101702101703101704101705101706101707101708101709101710101711101712101713101714101715101716101717101718101719101720101721101722101723101724101725101726101727101728101729101730101731101732101733101734101735101736101737101738101739101740101741101742101743101744101745101746101747101748101749101750101751101752101753101754101755101756101757101758101759101760101761101762101763101764101765101766101767101768101769101770101771101772101773101774101775101776101777101778101779101780101781101782101783101784101785101786101787101788101789101790101791101792101793101794101795101796101797101798101799101800101801101802101803101804101805101806101807101808101809101810101811101812101813101814101815101816101817101818101819101820101821101822101823101824101825101826101827101828101829101830101831101832101833101834101835101836101837101838101839101840101841101842101843101844101845101846101847101848101849101850101851101852101853101854101855101856101857101858101859101860101861101862101863101864101865101866101867101868101869101870101871101872101873101874101875101876101877101878101879101880101881101882101883101884101885101886101887101888101889101890101891101892101893101894101895101896101897101898101899101900101901101902101903101904101905101906101907101908101909101910101911101912101913101914101915101916101917101918101919101920101921101922101923101924101925101926101927101928101929101930101931101932101933101934101935101936101937101938101939101940101941101942101943101944101945101946101947101948101949101950101951101952101953101954101955101956101957101958101959101960101961101962101963101964101965101966101967101968101969101970101971101972101973101974101975101976101977101978101979101980101981101982101983101984101985101986101987101988101989101990101991101992101993101994101995101996101997101998101999102000102001102002102003102004102005102006102007102008102009102010102011102012102013102014102015102016102017102018102019102020102021102022102023102024102025102026102027102028102029102030102031102032102033102034102035102036102037102038102039102040102041102042102043102044102045102046102047102048102049102050102051102052102053102054102055102056102057102058102059102060102061102062102063102064102065102066102067102068102069102070102071102072102073102074102075102076102077102078102079102080102081102082102083102084102085102086102087102088102089102090102091102092102093102094102095102096102097102098102099102100102101102102102103102104102105102106102107102108102109102110102111102112102113102114102115102116102117102118102119102120102121102122102123102124102125102126102127102128102129102130102131102132102133102134102135102136102137102138102139102140102141102142102143102144102145102146102147102148102149102150102151102152102153102154102155102156102157102158102159102160102161102162102163102164102165102166102167102168102169102170102171102172102173102174102175102176102177102178102179102180102181102182102183102184102185102186102187102188102189102190102191102192102193102194102195102196102197102198102199102200102201102202102203102204102205102206102207102208102209102210102211102212102213102214102215102216102217102218102219102220102221102222102223102224102225102226102227102228102229102230102231102232102233102234102235102236102237102238102239102240102241102242102243102244102245102246102247102248102249102250102251102252102253102254102255102256102257102258102259102260102261102262102263102264102265102266102267102268102269102270102271102272102273102274102275102276102277102278102279102280102281102282102283102284102285102286102287102288102289102290102291102292102293102294102295102296102297102298102299102300102301102302102303102304102305102306102307102308102309102310102311102312102313102314102315102316102317102318102319102320102321102322102323102324102325102326102327102328102329102330102331102332102333102334102335102336102337102338102339102340102341102342102343102344102345102346102347102348102349102350102351102352102353102354102355102356102357102358102359102360102361102362102363102364102365102366102367102368102369102370102371102372102373102374102375102376102377102378102379102380102381102382102383102384102385102386102387102388102389102390102391102392102393102394102395102396102397102398102399102400102401102402102403102404102405102406102407102408102409102410102411102412102413102414102415102416102417102418102419102420102421102422102423102424102425102426102427102428102429102430102431102432102433102434102435102436102437102438102439102440102441102442102443102444102445102446102447102448102449102450102451102452102453102454102455102456102457102458102459102460102461102462102463102464102465102466102467102468102469102470102471102472102473102474102475102476102477102478102479102480102481102482102483102484102485102486102487102488102489102490102491102492102493102494102495102496102497102498102499102500102501102502102503102504102505102506102507102508102509102510102511102512102513102514102515102516102517102518102519102520102521102522102523102524102525102526102527102528102529102530102531102532102533102534102535102536102537102538102539102540102541102542102543102544102545102546102547102548102549102550102551102552102553102554102555102556102557102558102559102560102561102562102563102564102565102566102567102568102569102570102571102572102573102574102575102576102577102578102579102580102581102582102583102584102585102586102587102588102589102590102591102592102593102594102595102596102597102598102599102600102601102602102603102604102605102606102607102608102609102610102611102612102613102614102615102616102617102618102619102620102621102622102623102624102625102626102627102628102629102630102631102632102633102634102635102636102637102638102639102640102641102642102643102644102645102646102647102648102649102650102651102652102653102654102655102656102657102658102659102660102661102662102663102664102665102666102667102668102669102670102671102672102673102674102675102676102677102678102679102680102681102682102683102684102685102686102687102688102689102690102691102692102693102694102695102696102697102698102699102700102701102702102703102704102705102706102707102708102709102710102711102712102713102714102715102716102717102718102719102720102721102722102723102724102725102726102727102728102729102730102731102732102733102734102735102736102737102738102739102740102741102742102743102744102745102746102747102748102749102750102751102752102753102754102755102756102757102758102759102760102761102762102763102764102765102766102767102768102769102770102771102772102773102774102775102776102777102778102779102780102781102782102783102784102785102786102787102788102789102790102791102792102793102794102795102796102797102798102799102800102801102802102803102804102805102806102807102808102809102810102811102812102813102814102815102816102817102818102819102820102821102822102823102824102825102826102827102828102829102830102831102832102833102834102835102836102837102838102839102840102841102842102843102844102845102846102847102848102849102850102851102852102853102854102855102856102857102858102859102860102861102862102863102864102865102866102867102868102869102870102871102872102873102874102875102876102877102878102879102880102881102882102883102884102885102886102887102888102889102890102891102892102893102894102895102896102897102898102899102900102901102902102903102904102905102906102907102908102909102910102911102912102913102914102915102916102917102918102919102920102921102922102923102924102925102926102927102928102929102930102931102932102933102934102935102936102937102938102939102940102941102942102943102944102945102946102947102948102949102950102951102952102953102954102955102956102957102958102959102960102961102962102963102964102965102966102967102968102969102970102971102972102973102974102975102976102977102978102979102980102981102982102983102984102985102986102987102988102989102990102991102992102993102994102995102996102997102998102999103000103001103002103003103004103005103006103007103008103009103010103011103012103013103014103015103016103017103018103019103020103021103022103023103024103025103026103027103028103029103030103031103032103033103034103035103036103037103038103039103040103041103042103043103044103045103046103047103048103049103050103051103052103053103054103055103056103057103058103059103060103061103062103063103064103065103066103067103068103069103070103071103072103073103074103075103076103077103078103079103080103081103082103083103084103085103086103087103088103089103090103091103092103093103094103095103096103097103098103099103100103101103102103103103104103105103106103107103108103109103110103111103112103113103114103115103116103117103118103119103120103121103122103123103124103125103126103127103128103129103130103131103132103133103134103135103136103137103138103139103140103141103142103143103144103145103146103147103148103149103150103151103152103153103154103155103156103157103158103159103160103161103162103163103164103165103166103167103168103169103170103171103172103173103174103175103176103177103178103179103180103181103182103183103184103185103186103187103188103189103190103191103192103193103194103195103196103197103198103199103200103201103202103203103204103205103206103207103208103209103210103211103212103213103214103215103216103217103218103219103220103221103222103223103224103225103226103227103228103229103230103231103232103233103234103235103236103237103238103239103240103241103242103243103244103245103246103247103248103249103250103251103252103253103254103255103256103257103258103259103260103261103262103263103264103265103266103267103268103269103270103271103272103273103274103275103276103277103278103279103280103281103282103283103284103285103286103287103288103289103290103291103292103293103294103295103296103297103298103299103300103301103302103303103304103305103306103307103308103309103310103311103312103313103314103315103316103317103318103319103320103321103322103323103324103325103326103327103328103329103330103331103332103333103334103335103336103337103338103339103340103341103342103343103344103345103346103347103348103349103350103351103352103353103354103355103356103357103358103359103360103361103362103363103364103365103366103367103368103369103370103371103372103373103374103375103376103377103378103379103380103381103382103383103384103385103386103387103388103389103390103391103392103393103394103395103396103397103398103399103400103401103402103403103404103405103406103407103408103409103410103411103412103413103414103415103416103417103418103419103420103421103422103423103424103425103426103427103428103429103430103431103432103433103434103435103436103437103438103439103440103441103442103443103444103445103446103447103448103449103450103451103452103453103454103455103456103457103458103459103460103461103462103463103464103465103466103467103468103469103470103471103472103473103474103475103476103477103478103479103480103481103482103483103484103485103486103487103488103489103490103491103492103493103494103495103496103497103498103499103500103501103502103503103504103505103506103507103508103509103510103511103512103513103514103515103516103517103518103519103520103521103522103523103524103525103526103527103528103529103530103531103532103533103534103535103536103537103538103539103540103541103542103543103544103545103546103547103548103549103550103551103552103553103554103555103556103557103558103559103560103561103562103563103564103565103566103567103568103569103570103571103572103573103574103575103576103577103578103579103580103581103582103583103584103585103586103587103588103589103590103591103592103593103594103595103596103597103598103599103600103601103602103603103604103605103606103607103608103609103610103611103612103613103614103615103616103617103618103619103620103621103622103623103624103625103626103627103628103629103630103631103632103633103634103635103636103637103638103639103640103641103642103643103644103645103646103647103648103649103650103651103652103653103654103655103656103657103658103659103660103661103662103663103664103665103666103667103668103669103670103671103672103673103674103675103676103677103678103679103680103681103682103683103684103685103686103687103688103689103690103691103692103693103694103695103696103697103698103699103700103701103702103703103704103705103706103707103708103709103710103711103712103713103714103715103716103717103718103719103720103721103722103723103724103725103726103727103728103729103730103731103732103733103734103735103736103737103738103739103740103741103742103743103744103745103746103747103748103749103750103751103752103753103754103755103756103757103758103759103760103761103762103763103764103765103766103767103768103769103770103771103772103773103774103775103776103777103778103779103780103781103782103783103784103785103786103787103788103789103790103791103792103793103794103795103796103797103798103799103800103801103802103803103804103805103806103807103808103809103810103811103812103813103814103815103816103817103818103819103820103821103822103823103824103825103826103827103828103829103830103831103832103833103834103835103836103837103838103839103840103841103842103843103844103845103846103847103848103849103850103851103852103853103854103855103856103857103858103859103860103861103862103863103864103865103866103867103868103869103870103871103872103873103874103875103876103877103878103879103880103881103882103883103884103885103886103887103888103889103890103891103892103893103894103895103896103897103898103899103900103901103902103903103904103905103906103907103908103909103910103911103912103913103914103915103916103917103918103919103920103921103922103923103924103925103926103927103928103929103930103931103932103933103934103935103936103937103938103939103940103941103942103943103944103945103946103947103948103949103950103951103952103953103954103955103956103957103958103959103960103961103962103963103964103965103966103967103968103969103970103971103972103973103974103975103976103977103978103979103980103981103982103983103984103985103986103987103988103989103990103991103992103993103994103995103996103997103998103999104000104001104002104003104004104005104006104007104008104009104010104011104012104013104014104015104016104017104018104019104020104021104022104023104024104025104026104027104028104029104030104031104032104033104034104035104036104037104038104039104040104041104042104043104044104045104046104047104048104049104050104051104052104053104054104055104056104057104058104059104060104061104062104063104064104065104066104067104068104069104070104071104072104073104074104075104076104077104078104079104080104081104082104083104084104085104086104087104088104089104090104091104092104093104094104095104096104097104098104099104100104101104102104103104104104105104106104107104108104109104110104111104112104113104114104115104116104117104118104119104120104121104122104123104124104125104126104127104128104129104130104131104132104133104134104135104136104137104138104139104140104141104142104143104144104145104146104147104148104149104150104151104152104153104154104155104156104157104158104159104160104161104162104163104164104165104166104167104168104169104170104171104172104173104174104175104176104177104178104179104180104181104182104183104184104185104186104187104188104189104190104191104192104193104194104195104196104197104198104199104200104201104202104203104204104205104206104207104208104209104210104211104212104213104214104215104216104217104218104219104220104221104222104223104224104225104226104227104228104229104230104231104232104233104234104235104236104237104238104239104240104241104242104243104244104245104246104247104248104249104250104251104252104253104254104255104256104257104258104259104260104261104262104263104264104265104266104267104268104269104270104271104272104273104274104275104276104277104278104279104280104281104282104283104284104285104286104287104288104289104290104291104292104293104294104295104296104297104298104299104300104301104302104303104304104305104306104307104308104309104310104311104312104313104314104315104316104317104318104319104320104321104322104323104324104325104326104327104328104329104330104331104332104333104334104335104336104337104338104339104340104341104342104343104344104345104346104347104348104349104350104351104352104353104354104355104356104357104358104359104360104361104362104363104364104365104366104367104368104369104370104371104372104373104374104375104376104377104378104379104380104381104382104383104384104385104386104387104388104389104390104391104392104393104394104395104396104397104398104399104400104401104402104403104404104405104406104407104408104409104410104411104412104413104414104415104416104417104418104419104420104421104422104423104424104425104426104427104428104429104430104431104432104433104434104435104436104437104438104439104440104441104442104443104444104445104446104447104448104449104450104451104452104453104454104455104456104457104458104459104460104461104462104463104464104465104466104467104468104469104470104471104472104473104474104475104476104477104478104479104480104481104482104483104484104485104486104487104488104489104490104491104492104493104494104495104496104497104498104499104500104501104502104503104504104505104506104507104508104509104510104511104512104513104514104515104516104517104518104519104520104521104522104523104524104525104526104527104528104529104530104531104532104533104534104535104536104537104538104539104540104541104542104543104544104545104546104547104548104549104550104551104552104553104554104555104556104557104558104559104560104561104562104563104564104565104566104567104568104569104570104571104572104573104574104575104576104577104578104579104580104581104582104583104584104585104586104587104588104589104590104591104592104593104594104595104596104597104598104599104600104601104602104603104604104605104606104607104608104609104610104611104612104613104614104615104616104617104618104619104620104621104622104623104624104625104626104627104628104629104630104631104632104633104634104635104636104637104638104639104640104641104642104643104644104645104646104647104648104649104650104651104652104653104654104655104656104657104658104659104660104661104662104663104664104665104666104667104668104669104670104671104672104673104674104675104676104677104678104679104680104681104682104683104684104685104686104687104688104689104690104691104692104693104694104695104696104697104698104699104700104701104702104703104704104705104706104707104708104709104710104711104712104713104714104715104716104717104718104719104720104721104722104723104724104725104726104727104728104729104730104731104732104733104734104735104736104737104738104739104740104741104742104743104744104745104746104747104748104749104750104751104752104753104754104755104756104757104758104759104760104761104762104763104764104765104766104767104768104769104770104771104772104773104774104775104776104777104778104779104780104781104782104783104784104785104786104787104788104789104790104791104792104793104794104795104796104797104798104799104800104801104802104803104804104805104806104807104808104809104810104811104812104813104814104815104816104817104818104819104820104821104822104823104824104825104826104827104828104829104830104831104832104833104834104835104836104837104838104839104840104841104842104843104844104845104846104847104848104849104850104851104852104853104854104855104856104857104858104859104860104861104862104863104864104865104866104867104868104869104870104871104872104873104874104875104876104877104878104879104880104881104882104883104884104885104886104887104888104889104890104891104892104893104894104895104896104897104898104899104900104901104902104903104904104905104906104907104908104909104910104911104912104913104914104915104916104917104918104919104920104921104922104923104924104925104926104927104928104929104930104931104932104933104934104935104936104937104938104939104940104941104942104943104944104945104946104947104948104949104950104951104952104953104954104955104956104957104958104959104960104961104962104963104964104965104966104967104968104969104970104971104972104973104974104975104976104977104978104979104980104981104982104983104984104985104986104987104988104989104990104991104992104993104994104995104996104997104998104999105000105001105002105003105004105005105006105007105008105009105010105011105012105013105014105015105016105017105018105019105020105021105022105023105024105025105026105027105028105029105030105031105032105033105034105035105036105037105038105039105040105041105042105043105044105045105046105047105048105049105050105051105052105053105054105055105056105057105058105059105060105061105062105063105064105065105066105067105068105069105070105071105072105073105074105075105076105077105078105079105080105081105082105083105084105085105086105087105088105089105090105091105092105093105094105095105096105097105098105099105100105101105102105103105104105105105106105107105108105109105110105111105112105113105114105115105116105117105118105119105120105121105122105123105124105125105126105127105128105129105130105131105132105133105134105135105136105137105138105139105140105141105142105143105144105145105146105147105148105149105150105151105152105153105154105155105156105157105158105159105160105161105162105163105164105165105166105167105168105169105170105171105172105173105174105175105176105177105178105179105180105181105182105183105184105185105186105187105188105189105190105191105192105193105194105195105196105197105198105199105200105201105202105203105204105205105206105207105208105209105210105211105212105213105214105215105216105217105218105219105220105221105222105223105224105225105226105227105228105229105230105231105232105233105234105235105236105237105238105239105240105241105242105243105244105245105246105247105248105249105250105251105252105253105254105255105256105257105258105259105260105261105262105263105264105265105266105267105268105269105270105271105272105273105274105275105276105277105278105279105280105281105282105283105284105285105286105287105288105289105290105291105292105293105294105295105296105297105298105299105300105301105302105303105304105305105306105307105308105309105310105311105312105313105314105315105316105317105318105319105320105321105322105323105324105325105326105327105328105329105330105331105332105333105334105335105336105337105338105339105340105341105342105343105344105345105346105347105348105349105350105351105352105353105354105355105356105357105358105359105360105361105362105363105364105365105366105367105368105369105370105371105372105373105374105375105376105377105378105379105380105381105382105383105384105385105386105387105388105389105390105391105392105393105394105395105396105397105398105399105400105401105402105403105404105405105406105407105408105409105410105411105412105413105414105415105416105417105418105419105420105421105422105423105424105425105426105427105428105429105430105431105432105433105434105435105436105437105438105439105440105441105442105443105444105445105446105447105448105449105450105451105452105453105454105455105456105457105458105459105460105461105462105463105464105465105466105467105468105469105470105471105472105473105474105475105476105477105478105479105480105481105482105483105484105485105486105487105488105489105490105491105492105493105494105495105496105497105498105499105500105501105502105503105504105505105506105507105508105509105510105511105512105513105514105515105516105517105518105519105520105521105522105523105524105525105526105527105528105529105530105531105532105533105534105535105536105537105538105539105540105541105542105543105544105545105546105547105548105549105550105551105552105553105554105555105556105557105558105559105560105561105562105563105564105565105566105567105568105569105570105571105572105573105574105575105576105577105578105579105580105581105582105583105584105585105586105587105588105589105590105591105592105593105594105595105596105597105598105599105600105601105602105603105604105605105606105607105608105609105610105611105612105613105614105615105616105617105618105619105620105621105622105623105624105625105626105627105628105629105630105631105632105633105634105635105636105637105638105639105640105641105642105643105644105645105646105647105648105649105650105651105652105653105654105655105656105657105658105659105660105661105662105663105664105665105666105667105668105669105670105671105672105673105674105675105676105677105678105679105680105681105682105683105684105685105686105687105688105689105690105691105692105693105694105695105696105697105698105699105700105701105702105703105704105705105706105707105708105709105710105711105712105713105714105715105716105717105718105719105720105721105722105723105724105725105726105727105728105729105730105731105732105733105734105735105736105737105738105739105740105741105742105743105744105745105746105747105748105749105750105751105752105753105754105755105756105757105758105759105760105761105762105763105764105765105766105767105768105769105770105771105772105773105774105775105776105777105778105779105780105781105782105783105784105785105786105787105788105789105790105791105792105793105794105795105796105797105798105799105800105801105802105803105804105805105806105807105808105809105810105811105812105813105814105815105816105817105818105819105820105821105822105823105824105825105826105827105828105829105830105831105832105833105834105835105836105837105838105839105840105841105842105843105844105845105846105847105848105849105850105851105852105853105854105855105856105857105858105859105860105861105862105863105864105865105866105867105868105869105870105871105872105873105874105875105876105877105878105879105880105881105882105883105884105885105886105887105888105889105890105891105892105893105894105895105896105897105898105899105900105901105902105903105904105905105906105907105908105909105910105911105912105913105914105915105916105917105918105919105920105921105922105923105924105925105926105927105928105929105930105931105932105933105934105935105936105937105938105939105940105941105942105943105944105945105946105947105948105949105950105951105952105953105954105955105956105957105958105959105960105961105962105963105964105965105966105967105968105969105970105971105972105973105974105975105976105977105978105979105980105981105982105983105984105985105986105987105988105989105990105991105992105993105994105995105996105997105998105999106000106001106002106003106004106005106006106007106008106009106010106011106012106013106014106015106016106017106018106019106020106021106022106023106024106025106026106027106028106029106030106031106032106033106034106035106036106037106038106039106040106041106042106043106044106045106046106047106048106049106050106051106052106053106054106055106056106057106058106059106060106061106062106063106064106065106066106067106068106069106070106071106072106073106074106075106076106077106078106079106080106081106082106083106084106085106086106087106088106089106090106091106092106093106094106095106096106097106098106099106100106101106102106103106104106105106106106107106108106109106110106111106112106113106114106115106116106117106118106119106120106121106122106123106124106125106126106127106128106129106130106131106132106133106134106135106136106137106138106139106140106141106142106143106144106145106146106147106148106149106150106151106152106153106154106155106156106157106158106159106160106161106162106163106164106165106166106167106168106169106170106171106172106173106174106175106176106177106178106179106180106181106182106183106184106185106186106187106188106189106190106191106192106193106194106195106196106197106198106199106200106201106202106203106204106205106206106207106208106209106210106211106212106213106214106215106216106217106218106219106220106221106222106223106224106225106226106227106228106229106230106231106232106233106234106235106236106237106238106239106240106241106242106243106244106245106246106247106248106249106250106251106252106253106254106255106256106257106258106259106260106261106262106263106264106265106266106267106268106269106270106271106272106273106274106275106276106277106278106279106280106281106282106283106284106285106286106287106288106289106290106291106292106293106294106295106296106297106298106299106300106301106302106303106304106305106306106307106308106309106310106311106312106313106314106315106316106317106318106319106320106321106322106323106324106325106326106327106328106329106330106331106332106333106334106335106336106337106338106339106340106341106342106343106344106345106346106347106348106349106350106351106352106353106354106355106356106357106358106359106360106361106362106363106364106365106366106367106368106369106370106371106372106373106374106375106376106377106378106379106380106381106382106383106384106385106386106387106388106389106390106391106392106393106394106395106396106397106398106399106400106401106402106403106404106405106406106407106408106409106410106411106412106413106414106415106416106417106418106419106420106421106422106423106424106425106426106427106428106429106430106431106432106433106434106435106436106437106438106439106440106441106442106443106444106445106446106447106448106449106450106451106452106453106454106455106456106457106458106459106460106461106462106463106464106465106466106467106468106469106470106471106472106473106474106475106476106477106478106479106480106481106482106483106484106485106486106487106488106489106490106491106492106493106494106495106496106497106498106499106500106501106502106503106504106505106506106507106508106509106510106511106512106513106514106515106516106517106518106519106520106521106522106523106524106525106526106527106528106529106530106531106532106533106534106535106536106537106538106539106540106541106542106543106544106545106546106547106548106549106550106551106552106553106554106555106556106557106558106559106560106561106562106563106564106565106566106567106568106569106570106571106572106573106574106575106576106577106578106579106580106581106582106583106584106585106586106587106588106589106590106591106592106593106594106595106596106597106598106599106600106601106602106603106604106605106606106607106608106609106610106611106612106613106614106615106616106617106618106619106620106621106622106623106624106625106626106627106628106629106630106631106632106633106634106635106636106637106638106639106640106641106642106643106644106645106646106647106648106649106650106651106652106653106654106655106656106657106658106659106660106661106662106663106664106665106666106667106668106669106670106671106672106673106674106675106676106677106678106679106680106681106682106683106684106685106686106687106688106689106690106691106692106693106694106695106696106697106698106699106700106701106702106703106704106705106706106707106708106709106710106711106712106713106714106715106716106717106718106719106720106721106722106723106724106725106726106727106728106729106730106731106732106733106734106735106736106737106738106739106740106741106742106743106744106745106746106747106748106749106750106751106752106753106754106755106756106757106758106759106760106761106762106763106764106765106766106767106768106769106770106771106772106773106774106775106776106777106778106779106780106781106782106783106784106785106786106787106788106789106790106791106792106793106794106795106796106797106798106799106800106801106802106803106804106805106806106807106808106809106810106811106812106813106814106815106816106817106818106819106820106821106822106823106824106825106826106827106828106829106830106831106832106833106834106835106836106837106838106839106840106841106842106843106844106845106846106847106848106849106850106851106852106853106854106855106856106857106858106859106860106861106862106863106864106865106866106867106868106869106870106871106872106873106874106875106876106877106878106879106880106881106882106883106884106885106886106887106888106889106890106891106892106893106894106895106896106897106898106899106900106901106902106903106904106905106906106907106908106909106910106911106912106913106914106915106916106917106918106919106920106921106922106923106924106925106926106927106928106929106930106931106932106933106934106935106936106937106938106939106940106941106942106943106944106945106946106947106948106949106950106951106952106953106954106955106956106957106958106959106960106961106962106963106964106965106966106967106968106969106970106971106972106973106974106975106976106977106978106979106980106981106982106983106984106985106986106987106988106989106990106991106992106993106994106995106996106997106998106999107000107001107002107003107004107005107006107007107008107009107010107011107012107013107014107015107016107017107018107019107020107021107022107023107024107025107026107027107028107029107030107031107032107033107034107035107036107037107038107039107040107041107042107043107044107045107046107047107048107049107050107051107052107053107054107055107056107057107058107059107060107061107062107063107064107065107066107067107068107069107070107071107072107073107074107075107076107077107078107079107080107081107082107083107084107085107086107087107088107089107090107091107092107093107094107095107096107097107098107099107100107101107102107103107104107105107106107107107108107109107110107111107112107113107114107115107116107117107118107119107120107121107122107123107124107125107126107127107128107129107130107131107132107133107134107135107136107137107138107139107140107141107142107143107144107145107146107147107148107149107150107151107152107153107154107155107156107157107158107159107160107161107162107163107164107165107166107167107168107169107170107171107172107173107174107175107176107177107178107179107180107181107182107183107184107185107186107187107188107189107190107191107192107193107194107195107196107197107198107199107200107201107202107203107204107205107206107207107208107209107210107211107212107213107214107215107216107217107218107219107220107221107222107223107224107225107226107227107228107229107230107231107232107233107234107235107236107237107238107239107240107241107242107243107244107245107246107247107248107249107250107251107252107253107254107255107256107257107258107259107260107261107262107263107264107265107266107267107268107269107270107271107272107273107274107275107276107277107278107279107280107281107282107283107284107285107286107287107288107289107290107291107292107293107294107295107296107297107298107299107300107301107302107303107304107305107306107307107308107309107310107311107312107313107314107315107316107317107318107319107320107321107322107323107324107325107326107327107328107329107330107331107332107333107334107335107336107337107338107339107340107341107342107343107344107345107346107347107348107349107350107351107352107353107354107355107356107357107358107359107360107361107362107363107364107365107366107367107368107369107370107371107372107373107374107375107376107377107378107379107380107381107382107383107384107385107386107387107388107389107390107391107392107393107394107395107396107397107398107399107400107401107402107403107404107405107406107407107408107409107410107411107412107413107414107415107416107417107418107419107420107421107422107423107424107425107426107427107428107429107430107431107432107433107434107435107436107437107438107439107440107441107442107443107444107445107446107447107448107449107450107451107452107453107454107455107456107457107458107459107460107461107462107463107464107465107466107467107468107469107470107471107472107473107474107475107476107477107478107479107480107481107482107483107484107485107486107487107488107489107490107491107492107493107494107495107496107497107498107499107500107501107502107503107504107505107506107507107508107509107510107511107512107513107514107515107516107517107518107519107520107521107522107523107524107525107526107527107528107529107530107531107532107533107534107535107536107537107538107539107540107541107542107543107544107545107546107547107548107549107550107551107552107553107554107555107556107557107558107559107560107561107562107563107564107565107566107567107568107569107570107571107572107573107574107575107576107577107578107579107580107581107582107583107584107585107586107587107588107589107590107591107592107593107594107595107596107597107598107599107600107601107602107603107604107605107606107607107608107609107610107611107612107613107614107615107616107617107618107619107620107621107622107623107624107625107626107627107628107629107630107631107632107633107634107635107636107637107638107639107640107641107642107643107644107645107646107647107648107649107650107651107652107653107654107655107656107657107658107659107660107661107662107663107664107665107666107667107668107669107670107671107672107673107674107675107676107677107678107679107680107681107682107683107684107685107686107687107688107689107690107691107692107693107694107695107696107697107698107699107700107701107702107703107704107705107706107707107708107709107710107711107712107713107714107715107716107717107718107719107720107721107722107723107724107725107726107727107728107729107730107731107732107733107734107735107736107737107738107739107740107741107742107743107744107745107746107747107748107749107750107751107752107753107754107755107756107757107758107759107760107761107762107763107764107765107766107767107768107769107770107771107772107773107774107775107776107777107778107779107780107781107782107783107784107785107786107787107788107789107790107791107792107793107794107795107796107797107798107799107800107801107802107803107804107805107806107807107808107809107810107811107812107813107814107815107816107817107818107819107820107821107822107823107824107825107826107827107828107829107830107831107832107833107834107835107836107837107838107839107840107841107842107843107844107845107846107847107848107849107850107851107852107853107854107855107856107857107858107859107860107861107862107863107864107865107866107867107868107869107870107871107872107873107874107875107876107877107878107879107880107881107882107883107884107885107886107887107888107889107890107891107892107893107894107895107896107897107898107899107900107901107902107903107904107905107906107907107908107909107910107911107912107913107914107915107916107917107918107919107920107921107922107923107924107925107926107927107928107929107930107931107932107933107934107935107936107937107938107939107940107941107942107943107944107945107946107947107948107949107950107951107952107953107954107955107956107957107958107959107960107961107962107963107964107965107966107967107968107969107970107971107972107973107974107975107976107977107978107979107980107981107982107983107984107985107986107987107988107989107990107991107992107993107994107995107996107997107998107999108000108001108002108003108004108005108006108007108008108009108010108011108012108013108014108015108016108017108018108019108020108021108022108023108024108025108026108027108028108029108030108031108032108033108034108035108036108037108038108039108040108041108042108043108044108045108046108047108048108049108050108051108052108053108054108055108056108057108058108059108060108061108062108063108064108065108066108067108068108069108070108071108072108073108074108075108076108077108078108079108080108081108082108083108084108085108086108087108088108089108090108091108092108093108094108095108096108097108098108099108100108101108102108103108104108105108106108107108108108109108110108111108112108113108114108115108116108117108118108119108120108121108122108123108124108125108126108127108128108129108130108131108132108133108134108135108136108137108138108139108140108141108142108143108144108145108146108147108148108149108150108151108152108153108154108155108156108157108158108159108160108161108162108163108164108165108166108167108168108169108170108171108172108173108174108175108176108177108178108179108180108181108182108183108184108185108186108187108188108189108190108191108192108193108194108195108196108197108198108199108200108201108202108203108204108205108206108207108208108209108210108211108212108213108214108215108216108217108218108219108220108221108222108223108224108225108226108227108228108229108230108231108232108233108234108235108236108237108238108239108240108241108242108243108244108245108246108247108248108249108250108251108252108253108254108255108256108257108258108259108260108261108262108263108264108265108266108267108268108269108270108271108272108273108274108275108276108277108278108279108280108281108282108283108284108285108286108287108288108289108290108291108292108293108294108295108296108297108298108299108300108301108302108303108304108305108306108307108308108309108310108311108312108313108314108315108316108317108318108319108320108321108322108323108324108325108326108327108328108329108330108331108332108333108334108335108336108337108338108339108340108341108342108343108344108345108346108347108348108349108350108351108352108353108354108355108356108357108358108359108360108361108362108363108364108365108366108367108368108369108370108371108372108373108374108375108376108377108378108379108380108381108382108383108384108385108386108387108388108389108390108391108392108393108394108395108396108397108398108399108400108401108402108403108404108405108406108407108408108409108410108411108412108413108414108415108416108417108418108419108420108421108422108423108424108425108426108427108428108429108430108431108432108433108434108435108436108437108438108439108440108441108442108443108444108445108446108447108448108449108450108451108452108453108454108455108456108457108458108459108460108461108462108463108464108465108466108467108468108469108470108471108472108473108474108475108476108477108478108479108480108481108482108483108484108485108486108487108488108489108490108491108492108493108494108495108496108497108498108499108500108501108502108503108504108505108506108507108508108509108510108511108512108513108514108515108516108517108518108519108520108521108522108523108524108525108526108527108528108529108530108531108532108533108534108535108536108537108538108539108540108541108542108543108544108545108546108547108548108549108550108551108552108553108554108555108556108557108558108559108560108561108562108563108564108565108566108567108568108569108570108571108572108573108574108575108576108577108578108579108580108581108582108583108584108585108586108587108588108589108590108591108592108593108594108595108596108597108598108599108600108601108602108603108604108605108606108607108608108609108610108611108612108613108614108615108616108617108618108619108620108621108622108623108624108625108626108627108628108629108630108631108632108633108634108635108636108637108638108639108640108641108642108643108644108645108646108647108648108649108650108651108652108653108654108655108656108657108658108659108660108661108662108663108664108665108666108667108668108669108670108671108672108673108674108675108676108677108678108679108680108681108682108683108684108685108686108687108688108689108690108691108692108693108694108695108696108697108698108699108700108701108702108703108704108705108706108707108708108709108710108711108712108713108714108715108716108717108718108719108720108721108722108723108724108725108726108727108728108729108730108731108732108733108734108735108736108737108738108739108740108741108742108743108744108745108746108747108748108749108750108751108752108753108754108755108756108757108758108759108760108761108762108763108764108765108766108767108768108769108770108771108772108773108774108775108776108777108778108779108780108781108782108783108784108785108786108787108788108789108790108791108792108793108794108795108796108797108798108799108800108801108802108803108804108805108806108807108808108809108810108811108812108813108814108815108816108817108818108819108820108821108822108823108824108825108826108827108828108829108830108831108832108833108834108835108836108837108838108839108840108841108842108843108844108845108846108847108848108849108850108851108852108853108854108855108856108857108858108859108860108861108862108863108864108865108866108867108868108869108870108871108872108873108874108875108876108877108878108879108880108881108882108883108884108885108886108887108888108889108890108891108892108893108894108895108896108897108898108899108900108901108902108903108904108905108906108907108908108909108910108911108912108913108914108915108916108917108918108919108920108921108922108923108924108925108926108927108928108929108930108931108932108933108934108935108936108937108938108939108940108941108942108943108944108945108946108947108948108949108950108951108952108953108954108955108956108957108958108959108960108961108962108963108964108965108966108967108968108969108970108971108972108973108974108975108976108977108978108979108980108981108982108983108984108985108986108987108988108989108990108991108992108993108994108995108996108997108998108999109000109001109002109003109004109005109006109007109008109009109010109011109012109013109014109015109016109017109018109019109020109021109022109023109024109025109026109027109028109029109030109031109032109033109034109035109036109037109038109039109040109041109042109043109044109045109046109047109048109049109050109051109052109053109054109055109056109057109058109059109060109061109062109063109064109065109066109067109068109069109070109071109072109073109074109075109076109077109078109079109080109081109082109083109084109085109086109087109088109089109090109091109092109093109094109095109096109097109098109099109100109101109102109103109104109105109106109107109108109109109110109111109112109113109114109115109116109117109118109119109120109121109122109123109124109125109126109127109128109129109130109131109132109133109134109135109136109137109138109139109140109141109142109143109144109145109146109147109148109149109150109151109152109153109154109155109156109157109158109159109160109161109162109163109164109165109166109167109168109169109170109171109172109173109174109175109176109177109178109179109180109181109182109183109184109185109186109187109188109189109190109191109192109193109194109195109196109197109198109199109200109201109202109203109204109205109206109207109208109209109210109211109212109213109214109215109216109217109218109219109220109221109222109223109224109225109226109227109228109229109230109231109232109233109234109235109236109237109238109239109240109241109242109243109244109245109246109247109248109249109250109251109252109253109254109255109256109257109258109259109260109261109262109263109264109265109266109267109268109269109270109271109272109273109274109275109276109277109278109279109280109281109282109283109284109285109286109287109288109289109290109291109292109293109294109295109296109297109298109299109300109301109302109303109304109305109306109307109308109309109310109311109312109313109314109315109316109317109318109319109320109321109322109323109324109325109326109327109328109329109330109331109332109333109334109335109336109337109338109339109340109341109342109343109344109345109346109347109348109349109350109351109352109353109354109355109356109357109358109359109360109361109362109363109364109365109366109367109368109369109370109371109372109373109374109375109376109377109378109379109380109381109382109383109384109385109386109387109388109389109390109391109392109393109394109395109396109397109398109399109400109401109402109403109404109405109406109407109408109409109410109411109412109413109414109415109416109417109418109419109420109421109422109423109424109425109426109427109428109429109430109431109432109433109434109435109436109437109438109439109440109441109442109443109444109445109446109447109448109449109450109451109452109453109454109455109456109457109458109459109460109461109462109463109464109465109466109467109468109469109470109471109472109473109474109475109476109477109478109479109480109481109482109483109484109485109486109487109488109489109490109491109492109493109494109495109496109497109498109499109500109501109502109503109504109505109506109507109508109509109510109511109512109513109514109515109516109517109518109519109520109521109522109523109524109525109526109527109528109529109530109531109532109533109534109535109536109537109538109539109540109541109542109543109544109545109546109547109548109549109550109551109552109553109554109555109556109557109558109559109560109561109562109563109564109565109566109567109568109569109570109571109572109573109574109575109576109577109578109579109580109581109582109583109584109585109586109587109588109589109590109591109592109593109594109595109596109597109598109599109600109601109602109603109604109605109606109607109608109609109610109611109612109613109614109615109616109617109618109619109620109621109622109623109624109625109626109627109628109629109630109631109632109633109634109635109636109637109638109639109640109641109642109643109644109645109646109647109648109649109650109651109652109653109654109655109656109657109658109659109660109661109662109663109664109665109666109667109668109669109670109671109672109673109674109675109676109677109678109679109680109681109682109683109684109685109686109687109688109689109690109691109692109693109694109695109696109697109698109699109700109701109702109703109704109705109706109707109708109709109710109711109712109713109714109715109716109717109718109719109720109721109722109723109724109725109726109727109728109729109730109731109732109733109734109735109736109737109738109739109740109741109742109743109744109745109746109747109748109749109750109751109752109753109754109755109756109757109758109759109760109761109762109763109764109765109766109767109768109769109770109771109772109773109774109775109776109777109778109779109780109781109782109783109784109785109786109787109788109789109790109791109792109793109794109795109796109797109798109799109800109801109802109803109804109805109806109807109808109809109810109811109812109813109814109815109816109817109818109819109820109821109822109823109824109825109826109827109828109829109830109831109832109833109834109835109836109837109838109839109840109841109842109843109844109845109846109847109848109849109850109851109852109853109854109855109856109857109858109859109860109861109862109863109864109865109866109867109868109869109870109871109872109873109874109875109876109877109878109879109880109881109882109883109884109885109886109887109888109889109890109891109892109893109894109895109896109897109898109899109900109901109902109903109904109905109906109907109908109909109910109911109912109913109914109915109916109917109918109919109920109921109922109923109924109925109926109927109928109929109930109931109932109933109934109935109936109937109938109939109940109941109942109943109944109945109946109947109948109949109950109951109952109953109954109955109956109957109958109959109960109961109962109963109964109965109966109967109968109969109970109971109972109973109974109975109976109977109978109979109980109981109982109983109984109985109986109987109988109989109990109991109992109993109994109995109996109997109998109999110000110001110002110003110004110005110006110007110008110009110010110011110012110013110014110015110016110017110018110019110020110021110022110023110024110025110026110027
  1. OZE_Main.elf: file format elf32-littlearm
  2. Sections:
  3. Idx Name Size VMA LMA File off Algn
  4. 0 .isr_vector 00000298 08000000 08000000 00001000 2**0
  5. CONTENTS, ALLOC, LOAD, READONLY, DATA
  6. 1 .text 0002bcf0 080002a0 080002a0 000012a0 2**4
  7. CONTENTS, ALLOC, LOAD, READONLY, CODE
  8. 2 .rodata 00004cac 0802bf90 0802bf90 0002cf90 2**3
  9. CONTENTS, ALLOC, LOAD, READONLY, DATA
  10. 3 .ARM 00000008 08030c3c 08030c3c 00031c3c 2**2
  11. CONTENTS, ALLOC, LOAD, READONLY, DATA
  12. 4 .init_array 00000004 08030c44 08030c44 00031c44 2**2
  13. CONTENTS, ALLOC, LOAD, READONLY, DATA
  14. 5 .fini_array 00000004 08030c48 08030c48 00031c48 2**2
  15. CONTENTS, ALLOC, LOAD, READONLY, DATA
  16. 6 .data 00000210 24000000 08030c4c 00032000 2**2
  17. CONTENTS, ALLOC, LOAD, DATA
  18. 7 .bss 0002a0dc 24000210 08030e5c 00032210 2**2
  19. ALLOC
  20. 8 ._user_heap_stack 00000604 2402a2ec 08030e5c 000322ec 2**0
  21. ALLOC
  22. 9 .lwip_sec 0001a293 2402a8f0 08030e5c 000328f0 2**2
  23. ALLOC
  24. 10 .ARM.attributes 0000002e 00000000 00000000 00032210 2**0
  25. CONTENTS, READONLY
  26. 11 .debug_info 00051174 00000000 00000000 0003223e 2**0
  27. CONTENTS, READONLY, DEBUGGING, OCTETS
  28. 12 .debug_abbrev 0000b77f 00000000 00000000 000833b2 2**0
  29. CONTENTS, READONLY, DEBUGGING, OCTETS
  30. 13 .debug_aranges 00003760 00000000 00000000 0008eb38 2**3
  31. CONTENTS, READONLY, DEBUGGING, OCTETS
  32. 14 .debug_rnglists 00002c51 00000000 00000000 00092298 2**0
  33. CONTENTS, READONLY, DEBUGGING, OCTETS
  34. 15 .debug_macro 0004f7b2 00000000 00000000 00094ee9 2**0
  35. CONTENTS, READONLY, DEBUGGING, OCTETS
  36. 16 .debug_line 00057f39 00000000 00000000 000e469b 2**0
  37. CONTENTS, READONLY, DEBUGGING, OCTETS
  38. 17 .debug_str 0018e28d 00000000 00000000 0013c5d4 2**0
  39. CONTENTS, READONLY, DEBUGGING, OCTETS
  40. 18 .comment 00000043 00000000 00000000 002ca861 2**0
  41. CONTENTS, READONLY
  42. 19 .debug_frame 0000f878 00000000 00000000 002ca8a4 2**2
  43. CONTENTS, READONLY, DEBUGGING, OCTETS
  44. 20 .debug_line_str 00000064 00000000 00000000 002da11c 2**0
  45. CONTENTS, READONLY, DEBUGGING, OCTETS
  46. Disassembly of section .text:
  47. 080002a0 <__do_global_dtors_aux>:
  48. 80002a0: b510 push {r4, lr}
  49. 80002a2: 4c05 ldr r4, [pc, #20] @ (80002b8 <__do_global_dtors_aux+0x18>)
  50. 80002a4: 7823 ldrb r3, [r4, #0]
  51. 80002a6: b933 cbnz r3, 80002b6 <__do_global_dtors_aux+0x16>
  52. 80002a8: 4b04 ldr r3, [pc, #16] @ (80002bc <__do_global_dtors_aux+0x1c>)
  53. 80002aa: b113 cbz r3, 80002b2 <__do_global_dtors_aux+0x12>
  54. 80002ac: 4804 ldr r0, [pc, #16] @ (80002c0 <__do_global_dtors_aux+0x20>)
  55. 80002ae: f3af 8000 nop.w
  56. 80002b2: 2301 movs r3, #1
  57. 80002b4: 7023 strb r3, [r4, #0]
  58. 80002b6: bd10 pop {r4, pc}
  59. 80002b8: 24000210 .word 0x24000210
  60. 80002bc: 00000000 .word 0x00000000
  61. 80002c0: 0802bf78 .word 0x0802bf78
  62. 080002c4 <frame_dummy>:
  63. 80002c4: b508 push {r3, lr}
  64. 80002c6: 4b03 ldr r3, [pc, #12] @ (80002d4 <frame_dummy+0x10>)
  65. 80002c8: b11b cbz r3, 80002d2 <frame_dummy+0xe>
  66. 80002ca: 4903 ldr r1, [pc, #12] @ (80002d8 <frame_dummy+0x14>)
  67. 80002cc: 4803 ldr r0, [pc, #12] @ (80002dc <frame_dummy+0x18>)
  68. 80002ce: f3af 8000 nop.w
  69. 80002d2: bd08 pop {r3, pc}
  70. 80002d4: 00000000 .word 0x00000000
  71. 80002d8: 24000214 .word 0x24000214
  72. 80002dc: 0802bf78 .word 0x0802bf78
  73. 080002e0 <strcmp>:
  74. 80002e0: f810 2b01 ldrb.w r2, [r0], #1
  75. 80002e4: f811 3b01 ldrb.w r3, [r1], #1
  76. 80002e8: 2a01 cmp r2, #1
  77. 80002ea: bf28 it cs
  78. 80002ec: 429a cmpcs r2, r3
  79. 80002ee: d0f7 beq.n 80002e0 <strcmp>
  80. 80002f0: 1ad0 subs r0, r2, r3
  81. 80002f2: 4770 bx lr
  82. ...
  83. 08000300 <memchr>:
  84. 8000300: f001 01ff and.w r1, r1, #255 @ 0xff
  85. 8000304: 2a10 cmp r2, #16
  86. 8000306: db2b blt.n 8000360 <memchr+0x60>
  87. 8000308: f010 0f07 tst.w r0, #7
  88. 800030c: d008 beq.n 8000320 <memchr+0x20>
  89. 800030e: f810 3b01 ldrb.w r3, [r0], #1
  90. 8000312: 3a01 subs r2, #1
  91. 8000314: 428b cmp r3, r1
  92. 8000316: d02d beq.n 8000374 <memchr+0x74>
  93. 8000318: f010 0f07 tst.w r0, #7
  94. 800031c: b342 cbz r2, 8000370 <memchr+0x70>
  95. 800031e: d1f6 bne.n 800030e <memchr+0xe>
  96. 8000320: b4f0 push {r4, r5, r6, r7}
  97. 8000322: ea41 2101 orr.w r1, r1, r1, lsl #8
  98. 8000326: ea41 4101 orr.w r1, r1, r1, lsl #16
  99. 800032a: f022 0407 bic.w r4, r2, #7
  100. 800032e: f07f 0700 mvns.w r7, #0
  101. 8000332: 2300 movs r3, #0
  102. 8000334: e8f0 5602 ldrd r5, r6, [r0], #8
  103. 8000338: 3c08 subs r4, #8
  104. 800033a: ea85 0501 eor.w r5, r5, r1
  105. 800033e: ea86 0601 eor.w r6, r6, r1
  106. 8000342: fa85 f547 uadd8 r5, r5, r7
  107. 8000346: faa3 f587 sel r5, r3, r7
  108. 800034a: fa86 f647 uadd8 r6, r6, r7
  109. 800034e: faa5 f687 sel r6, r5, r7
  110. 8000352: b98e cbnz r6, 8000378 <memchr+0x78>
  111. 8000354: d1ee bne.n 8000334 <memchr+0x34>
  112. 8000356: bcf0 pop {r4, r5, r6, r7}
  113. 8000358: f001 01ff and.w r1, r1, #255 @ 0xff
  114. 800035c: f002 0207 and.w r2, r2, #7
  115. 8000360: b132 cbz r2, 8000370 <memchr+0x70>
  116. 8000362: f810 3b01 ldrb.w r3, [r0], #1
  117. 8000366: 3a01 subs r2, #1
  118. 8000368: ea83 0301 eor.w r3, r3, r1
  119. 800036c: b113 cbz r3, 8000374 <memchr+0x74>
  120. 800036e: d1f8 bne.n 8000362 <memchr+0x62>
  121. 8000370: 2000 movs r0, #0
  122. 8000372: 4770 bx lr
  123. 8000374: 3801 subs r0, #1
  124. 8000376: 4770 bx lr
  125. 8000378: 2d00 cmp r5, #0
  126. 800037a: bf06 itte eq
  127. 800037c: 4635 moveq r5, r6
  128. 800037e: 3803 subeq r0, #3
  129. 8000380: 3807 subne r0, #7
  130. 8000382: f015 0f01 tst.w r5, #1
  131. 8000386: d107 bne.n 8000398 <memchr+0x98>
  132. 8000388: 3001 adds r0, #1
  133. 800038a: f415 7f80 tst.w r5, #256 @ 0x100
  134. 800038e: bf02 ittt eq
  135. 8000390: 3001 addeq r0, #1
  136. 8000392: f415 3fc0 tsteq.w r5, #98304 @ 0x18000
  137. 8000396: 3001 addeq r0, #1
  138. 8000398: bcf0 pop {r4, r5, r6, r7}
  139. 800039a: 3801 subs r0, #1
  140. 800039c: 4770 bx lr
  141. 800039e: bf00 nop
  142. 080003a0 <strlen>:
  143. 80003a0: 4603 mov r3, r0
  144. 80003a2: f813 2b01 ldrb.w r2, [r3], #1
  145. 80003a6: 2a00 cmp r2, #0
  146. 80003a8: d1fb bne.n 80003a2 <strlen+0x2>
  147. 80003aa: 1a18 subs r0, r3, r0
  148. 80003ac: 3801 subs r0, #1
  149. 80003ae: 4770 bx lr
  150. 080003b0 <__aeabi_drsub>:
  151. 80003b0: f081 4100 eor.w r1, r1, #2147483648 @ 0x80000000
  152. 80003b4: e002 b.n 80003bc <__adddf3>
  153. 80003b6: bf00 nop
  154. 080003b8 <__aeabi_dsub>:
  155. 80003b8: f083 4300 eor.w r3, r3, #2147483648 @ 0x80000000
  156. 080003bc <__adddf3>:
  157. 80003bc: b530 push {r4, r5, lr}
  158. 80003be: ea4f 0441 mov.w r4, r1, lsl #1
  159. 80003c2: ea4f 0543 mov.w r5, r3, lsl #1
  160. 80003c6: ea94 0f05 teq r4, r5
  161. 80003ca: bf08 it eq
  162. 80003cc: ea90 0f02 teqeq r0, r2
  163. 80003d0: bf1f itttt ne
  164. 80003d2: ea54 0c00 orrsne.w ip, r4, r0
  165. 80003d6: ea55 0c02 orrsne.w ip, r5, r2
  166. 80003da: ea7f 5c64 mvnsne.w ip, r4, asr #21
  167. 80003de: ea7f 5c65 mvnsne.w ip, r5, asr #21
  168. 80003e2: f000 80e2 beq.w 80005aa <__adddf3+0x1ee>
  169. 80003e6: ea4f 5454 mov.w r4, r4, lsr #21
  170. 80003ea: ebd4 5555 rsbs r5, r4, r5, lsr #21
  171. 80003ee: bfb8 it lt
  172. 80003f0: 426d neglt r5, r5
  173. 80003f2: dd0c ble.n 800040e <__adddf3+0x52>
  174. 80003f4: 442c add r4, r5
  175. 80003f6: ea80 0202 eor.w r2, r0, r2
  176. 80003fa: ea81 0303 eor.w r3, r1, r3
  177. 80003fe: ea82 0000 eor.w r0, r2, r0
  178. 8000402: ea83 0101 eor.w r1, r3, r1
  179. 8000406: ea80 0202 eor.w r2, r0, r2
  180. 800040a: ea81 0303 eor.w r3, r1, r3
  181. 800040e: 2d36 cmp r5, #54 @ 0x36
  182. 8000410: bf88 it hi
  183. 8000412: bd30 pophi {r4, r5, pc}
  184. 8000414: f011 4f00 tst.w r1, #2147483648 @ 0x80000000
  185. 8000418: ea4f 3101 mov.w r1, r1, lsl #12
  186. 800041c: f44f 1c80 mov.w ip, #1048576 @ 0x100000
  187. 8000420: ea4c 3111 orr.w r1, ip, r1, lsr #12
  188. 8000424: d002 beq.n 800042c <__adddf3+0x70>
  189. 8000426: 4240 negs r0, r0
  190. 8000428: eb61 0141 sbc.w r1, r1, r1, lsl #1
  191. 800042c: f013 4f00 tst.w r3, #2147483648 @ 0x80000000
  192. 8000430: ea4f 3303 mov.w r3, r3, lsl #12
  193. 8000434: ea4c 3313 orr.w r3, ip, r3, lsr #12
  194. 8000438: d002 beq.n 8000440 <__adddf3+0x84>
  195. 800043a: 4252 negs r2, r2
  196. 800043c: eb63 0343 sbc.w r3, r3, r3, lsl #1
  197. 8000440: ea94 0f05 teq r4, r5
  198. 8000444: f000 80a7 beq.w 8000596 <__adddf3+0x1da>
  199. 8000448: f1a4 0401 sub.w r4, r4, #1
  200. 800044c: f1d5 0e20 rsbs lr, r5, #32
  201. 8000450: db0d blt.n 800046e <__adddf3+0xb2>
  202. 8000452: fa02 fc0e lsl.w ip, r2, lr
  203. 8000456: fa22 f205 lsr.w r2, r2, r5
  204. 800045a: 1880 adds r0, r0, r2
  205. 800045c: f141 0100 adc.w r1, r1, #0
  206. 8000460: fa03 f20e lsl.w r2, r3, lr
  207. 8000464: 1880 adds r0, r0, r2
  208. 8000466: fa43 f305 asr.w r3, r3, r5
  209. 800046a: 4159 adcs r1, r3
  210. 800046c: e00e b.n 800048c <__adddf3+0xd0>
  211. 800046e: f1a5 0520 sub.w r5, r5, #32
  212. 8000472: f10e 0e20 add.w lr, lr, #32
  213. 8000476: 2a01 cmp r2, #1
  214. 8000478: fa03 fc0e lsl.w ip, r3, lr
  215. 800047c: bf28 it cs
  216. 800047e: f04c 0c02 orrcs.w ip, ip, #2
  217. 8000482: fa43 f305 asr.w r3, r3, r5
  218. 8000486: 18c0 adds r0, r0, r3
  219. 8000488: eb51 71e3 adcs.w r1, r1, r3, asr #31
  220. 800048c: f001 4500 and.w r5, r1, #2147483648 @ 0x80000000
  221. 8000490: d507 bpl.n 80004a2 <__adddf3+0xe6>
  222. 8000492: f04f 0e00 mov.w lr, #0
  223. 8000496: f1dc 0c00 rsbs ip, ip, #0
  224. 800049a: eb7e 0000 sbcs.w r0, lr, r0
  225. 800049e: eb6e 0101 sbc.w r1, lr, r1
  226. 80004a2: f5b1 1f80 cmp.w r1, #1048576 @ 0x100000
  227. 80004a6: d31b bcc.n 80004e0 <__adddf3+0x124>
  228. 80004a8: f5b1 1f00 cmp.w r1, #2097152 @ 0x200000
  229. 80004ac: d30c bcc.n 80004c8 <__adddf3+0x10c>
  230. 80004ae: 0849 lsrs r1, r1, #1
  231. 80004b0: ea5f 0030 movs.w r0, r0, rrx
  232. 80004b4: ea4f 0c3c mov.w ip, ip, rrx
  233. 80004b8: f104 0401 add.w r4, r4, #1
  234. 80004bc: ea4f 5244 mov.w r2, r4, lsl #21
  235. 80004c0: f512 0f80 cmn.w r2, #4194304 @ 0x400000
  236. 80004c4: f080 809a bcs.w 80005fc <__adddf3+0x240>
  237. 80004c8: f1bc 4f00 cmp.w ip, #2147483648 @ 0x80000000
  238. 80004cc: bf08 it eq
  239. 80004ce: ea5f 0c50 movseq.w ip, r0, lsr #1
  240. 80004d2: f150 0000 adcs.w r0, r0, #0
  241. 80004d6: eb41 5104 adc.w r1, r1, r4, lsl #20
  242. 80004da: ea41 0105 orr.w r1, r1, r5
  243. 80004de: bd30 pop {r4, r5, pc}
  244. 80004e0: ea5f 0c4c movs.w ip, ip, lsl #1
  245. 80004e4: 4140 adcs r0, r0
  246. 80004e6: eb41 0101 adc.w r1, r1, r1
  247. 80004ea: 3c01 subs r4, #1
  248. 80004ec: bf28 it cs
  249. 80004ee: f5b1 1f80 cmpcs.w r1, #1048576 @ 0x100000
  250. 80004f2: d2e9 bcs.n 80004c8 <__adddf3+0x10c>
  251. 80004f4: f091 0f00 teq r1, #0
  252. 80004f8: bf04 itt eq
  253. 80004fa: 4601 moveq r1, r0
  254. 80004fc: 2000 moveq r0, #0
  255. 80004fe: fab1 f381 clz r3, r1
  256. 8000502: bf08 it eq
  257. 8000504: 3320 addeq r3, #32
  258. 8000506: f1a3 030b sub.w r3, r3, #11
  259. 800050a: f1b3 0220 subs.w r2, r3, #32
  260. 800050e: da0c bge.n 800052a <__adddf3+0x16e>
  261. 8000510: 320c adds r2, #12
  262. 8000512: dd08 ble.n 8000526 <__adddf3+0x16a>
  263. 8000514: f102 0c14 add.w ip, r2, #20
  264. 8000518: f1c2 020c rsb r2, r2, #12
  265. 800051c: fa01 f00c lsl.w r0, r1, ip
  266. 8000520: fa21 f102 lsr.w r1, r1, r2
  267. 8000524: e00c b.n 8000540 <__adddf3+0x184>
  268. 8000526: f102 0214 add.w r2, r2, #20
  269. 800052a: bfd8 it le
  270. 800052c: f1c2 0c20 rsble ip, r2, #32
  271. 8000530: fa01 f102 lsl.w r1, r1, r2
  272. 8000534: fa20 fc0c lsr.w ip, r0, ip
  273. 8000538: bfdc itt le
  274. 800053a: ea41 010c orrle.w r1, r1, ip
  275. 800053e: 4090 lslle r0, r2
  276. 8000540: 1ae4 subs r4, r4, r3
  277. 8000542: bfa2 ittt ge
  278. 8000544: eb01 5104 addge.w r1, r1, r4, lsl #20
  279. 8000548: 4329 orrge r1, r5
  280. 800054a: bd30 popge {r4, r5, pc}
  281. 800054c: ea6f 0404 mvn.w r4, r4
  282. 8000550: 3c1f subs r4, #31
  283. 8000552: da1c bge.n 800058e <__adddf3+0x1d2>
  284. 8000554: 340c adds r4, #12
  285. 8000556: dc0e bgt.n 8000576 <__adddf3+0x1ba>
  286. 8000558: f104 0414 add.w r4, r4, #20
  287. 800055c: f1c4 0220 rsb r2, r4, #32
  288. 8000560: fa20 f004 lsr.w r0, r0, r4
  289. 8000564: fa01 f302 lsl.w r3, r1, r2
  290. 8000568: ea40 0003 orr.w r0, r0, r3
  291. 800056c: fa21 f304 lsr.w r3, r1, r4
  292. 8000570: ea45 0103 orr.w r1, r5, r3
  293. 8000574: bd30 pop {r4, r5, pc}
  294. 8000576: f1c4 040c rsb r4, r4, #12
  295. 800057a: f1c4 0220 rsb r2, r4, #32
  296. 800057e: fa20 f002 lsr.w r0, r0, r2
  297. 8000582: fa01 f304 lsl.w r3, r1, r4
  298. 8000586: ea40 0003 orr.w r0, r0, r3
  299. 800058a: 4629 mov r1, r5
  300. 800058c: bd30 pop {r4, r5, pc}
  301. 800058e: fa21 f004 lsr.w r0, r1, r4
  302. 8000592: 4629 mov r1, r5
  303. 8000594: bd30 pop {r4, r5, pc}
  304. 8000596: f094 0f00 teq r4, #0
  305. 800059a: f483 1380 eor.w r3, r3, #1048576 @ 0x100000
  306. 800059e: bf06 itte eq
  307. 80005a0: f481 1180 eoreq.w r1, r1, #1048576 @ 0x100000
  308. 80005a4: 3401 addeq r4, #1
  309. 80005a6: 3d01 subne r5, #1
  310. 80005a8: e74e b.n 8000448 <__adddf3+0x8c>
  311. 80005aa: ea7f 5c64 mvns.w ip, r4, asr #21
  312. 80005ae: bf18 it ne
  313. 80005b0: ea7f 5c65 mvnsne.w ip, r5, asr #21
  314. 80005b4: d029 beq.n 800060a <__adddf3+0x24e>
  315. 80005b6: ea94 0f05 teq r4, r5
  316. 80005ba: bf08 it eq
  317. 80005bc: ea90 0f02 teqeq r0, r2
  318. 80005c0: d005 beq.n 80005ce <__adddf3+0x212>
  319. 80005c2: ea54 0c00 orrs.w ip, r4, r0
  320. 80005c6: bf04 itt eq
  321. 80005c8: 4619 moveq r1, r3
  322. 80005ca: 4610 moveq r0, r2
  323. 80005cc: bd30 pop {r4, r5, pc}
  324. 80005ce: ea91 0f03 teq r1, r3
  325. 80005d2: bf1e ittt ne
  326. 80005d4: 2100 movne r1, #0
  327. 80005d6: 2000 movne r0, #0
  328. 80005d8: bd30 popne {r4, r5, pc}
  329. 80005da: ea5f 5c54 movs.w ip, r4, lsr #21
  330. 80005de: d105 bne.n 80005ec <__adddf3+0x230>
  331. 80005e0: 0040 lsls r0, r0, #1
  332. 80005e2: 4149 adcs r1, r1
  333. 80005e4: bf28 it cs
  334. 80005e6: f041 4100 orrcs.w r1, r1, #2147483648 @ 0x80000000
  335. 80005ea: bd30 pop {r4, r5, pc}
  336. 80005ec: f514 0480 adds.w r4, r4, #4194304 @ 0x400000
  337. 80005f0: bf3c itt cc
  338. 80005f2: f501 1180 addcc.w r1, r1, #1048576 @ 0x100000
  339. 80005f6: bd30 popcc {r4, r5, pc}
  340. 80005f8: f001 4500 and.w r5, r1, #2147483648 @ 0x80000000
  341. 80005fc: f045 41fe orr.w r1, r5, #2130706432 @ 0x7f000000
  342. 8000600: f441 0170 orr.w r1, r1, #15728640 @ 0xf00000
  343. 8000604: f04f 0000 mov.w r0, #0
  344. 8000608: bd30 pop {r4, r5, pc}
  345. 800060a: ea7f 5c64 mvns.w ip, r4, asr #21
  346. 800060e: bf1a itte ne
  347. 8000610: 4619 movne r1, r3
  348. 8000612: 4610 movne r0, r2
  349. 8000614: ea7f 5c65 mvnseq.w ip, r5, asr #21
  350. 8000618: bf1c itt ne
  351. 800061a: 460b movne r3, r1
  352. 800061c: 4602 movne r2, r0
  353. 800061e: ea50 3401 orrs.w r4, r0, r1, lsl #12
  354. 8000622: bf06 itte eq
  355. 8000624: ea52 3503 orrseq.w r5, r2, r3, lsl #12
  356. 8000628: ea91 0f03 teqeq r1, r3
  357. 800062c: f441 2100 orrne.w r1, r1, #524288 @ 0x80000
  358. 8000630: bd30 pop {r4, r5, pc}
  359. 8000632: bf00 nop
  360. 08000634 <__aeabi_ui2d>:
  361. 8000634: f090 0f00 teq r0, #0
  362. 8000638: bf04 itt eq
  363. 800063a: 2100 moveq r1, #0
  364. 800063c: 4770 bxeq lr
  365. 800063e: b530 push {r4, r5, lr}
  366. 8000640: f44f 6480 mov.w r4, #1024 @ 0x400
  367. 8000644: f104 0432 add.w r4, r4, #50 @ 0x32
  368. 8000648: f04f 0500 mov.w r5, #0
  369. 800064c: f04f 0100 mov.w r1, #0
  370. 8000650: e750 b.n 80004f4 <__adddf3+0x138>
  371. 8000652: bf00 nop
  372. 08000654 <__aeabi_i2d>:
  373. 8000654: f090 0f00 teq r0, #0
  374. 8000658: bf04 itt eq
  375. 800065a: 2100 moveq r1, #0
  376. 800065c: 4770 bxeq lr
  377. 800065e: b530 push {r4, r5, lr}
  378. 8000660: f44f 6480 mov.w r4, #1024 @ 0x400
  379. 8000664: f104 0432 add.w r4, r4, #50 @ 0x32
  380. 8000668: f010 4500 ands.w r5, r0, #2147483648 @ 0x80000000
  381. 800066c: bf48 it mi
  382. 800066e: 4240 negmi r0, r0
  383. 8000670: f04f 0100 mov.w r1, #0
  384. 8000674: e73e b.n 80004f4 <__adddf3+0x138>
  385. 8000676: bf00 nop
  386. 08000678 <__aeabi_f2d>:
  387. 8000678: 0042 lsls r2, r0, #1
  388. 800067a: ea4f 01e2 mov.w r1, r2, asr #3
  389. 800067e: ea4f 0131 mov.w r1, r1, rrx
  390. 8000682: ea4f 7002 mov.w r0, r2, lsl #28
  391. 8000686: bf1f itttt ne
  392. 8000688: f012 437f andsne.w r3, r2, #4278190080 @ 0xff000000
  393. 800068c: f093 4f7f teqne r3, #4278190080 @ 0xff000000
  394. 8000690: f081 5160 eorne.w r1, r1, #939524096 @ 0x38000000
  395. 8000694: 4770 bxne lr
  396. 8000696: f032 427f bics.w r2, r2, #4278190080 @ 0xff000000
  397. 800069a: bf08 it eq
  398. 800069c: 4770 bxeq lr
  399. 800069e: f093 4f7f teq r3, #4278190080 @ 0xff000000
  400. 80006a2: bf04 itt eq
  401. 80006a4: f441 2100 orreq.w r1, r1, #524288 @ 0x80000
  402. 80006a8: 4770 bxeq lr
  403. 80006aa: b530 push {r4, r5, lr}
  404. 80006ac: f44f 7460 mov.w r4, #896 @ 0x380
  405. 80006b0: f001 4500 and.w r5, r1, #2147483648 @ 0x80000000
  406. 80006b4: f021 4100 bic.w r1, r1, #2147483648 @ 0x80000000
  407. 80006b8: e71c b.n 80004f4 <__adddf3+0x138>
  408. 80006ba: bf00 nop
  409. 080006bc <__aeabi_ul2d>:
  410. 80006bc: ea50 0201 orrs.w r2, r0, r1
  411. 80006c0: bf08 it eq
  412. 80006c2: 4770 bxeq lr
  413. 80006c4: b530 push {r4, r5, lr}
  414. 80006c6: f04f 0500 mov.w r5, #0
  415. 80006ca: e00a b.n 80006e2 <__aeabi_l2d+0x16>
  416. 080006cc <__aeabi_l2d>:
  417. 80006cc: ea50 0201 orrs.w r2, r0, r1
  418. 80006d0: bf08 it eq
  419. 80006d2: 4770 bxeq lr
  420. 80006d4: b530 push {r4, r5, lr}
  421. 80006d6: f011 4500 ands.w r5, r1, #2147483648 @ 0x80000000
  422. 80006da: d502 bpl.n 80006e2 <__aeabi_l2d+0x16>
  423. 80006dc: 4240 negs r0, r0
  424. 80006de: eb61 0141 sbc.w r1, r1, r1, lsl #1
  425. 80006e2: f44f 6480 mov.w r4, #1024 @ 0x400
  426. 80006e6: f104 0432 add.w r4, r4, #50 @ 0x32
  427. 80006ea: ea5f 5c91 movs.w ip, r1, lsr #22
  428. 80006ee: f43f aed8 beq.w 80004a2 <__adddf3+0xe6>
  429. 80006f2: f04f 0203 mov.w r2, #3
  430. 80006f6: ea5f 0cdc movs.w ip, ip, lsr #3
  431. 80006fa: bf18 it ne
  432. 80006fc: 3203 addne r2, #3
  433. 80006fe: ea5f 0cdc movs.w ip, ip, lsr #3
  434. 8000702: bf18 it ne
  435. 8000704: 3203 addne r2, #3
  436. 8000706: eb02 02dc add.w r2, r2, ip, lsr #3
  437. 800070a: f1c2 0320 rsb r3, r2, #32
  438. 800070e: fa00 fc03 lsl.w ip, r0, r3
  439. 8000712: fa20 f002 lsr.w r0, r0, r2
  440. 8000716: fa01 fe03 lsl.w lr, r1, r3
  441. 800071a: ea40 000e orr.w r0, r0, lr
  442. 800071e: fa21 f102 lsr.w r1, r1, r2
  443. 8000722: 4414 add r4, r2
  444. 8000724: e6bd b.n 80004a2 <__adddf3+0xe6>
  445. 8000726: bf00 nop
  446. 08000728 <__aeabi_uldivmod>:
  447. 8000728: b953 cbnz r3, 8000740 <__aeabi_uldivmod+0x18>
  448. 800072a: b94a cbnz r2, 8000740 <__aeabi_uldivmod+0x18>
  449. 800072c: 2900 cmp r1, #0
  450. 800072e: bf08 it eq
  451. 8000730: 2800 cmpeq r0, #0
  452. 8000732: bf1c itt ne
  453. 8000734: f04f 31ff movne.w r1, #4294967295 @ 0xffffffff
  454. 8000738: f04f 30ff movne.w r0, #4294967295 @ 0xffffffff
  455. 800073c: f000 b9a2 b.w 8000a84 <__aeabi_idiv0>
  456. 8000740: f1ad 0c08 sub.w ip, sp, #8
  457. 8000744: e96d ce04 strd ip, lr, [sp, #-16]!
  458. 8000748: f000 f83e bl 80007c8 <__udivmoddi4>
  459. 800074c: f8dd e004 ldr.w lr, [sp, #4]
  460. 8000750: e9dd 2302 ldrd r2, r3, [sp, #8]
  461. 8000754: b004 add sp, #16
  462. 8000756: 4770 bx lr
  463. 08000758 <__aeabi_d2lz>:
  464. 8000758: b508 push {r3, lr}
  465. 800075a: 4602 mov r2, r0
  466. 800075c: 460b mov r3, r1
  467. 800075e: ec43 2b17 vmov d7, r2, r3
  468. 8000762: eeb5 7bc0 vcmpe.f64 d7, #0.0
  469. 8000766: eef1 fa10 vmrs APSR_nzcv, fpscr
  470. 800076a: d403 bmi.n 8000774 <__aeabi_d2lz+0x1c>
  471. 800076c: e8bd 4008 ldmia.w sp!, {r3, lr}
  472. 8000770: f000 b80a b.w 8000788 <__aeabi_d2ulz>
  473. 8000774: eeb1 7b47 vneg.f64 d7, d7
  474. 8000778: ec51 0b17 vmov r0, r1, d7
  475. 800077c: f000 f804 bl 8000788 <__aeabi_d2ulz>
  476. 8000780: 4240 negs r0, r0
  477. 8000782: eb61 0141 sbc.w r1, r1, r1, lsl #1
  478. 8000786: bd08 pop {r3, pc}
  479. 08000788 <__aeabi_d2ulz>:
  480. 8000788: ed9f 6b0b vldr d6, [pc, #44] @ 80007b8 <__aeabi_d2ulz+0x30>
  481. 800078c: ec41 0b17 vmov d7, r0, r1
  482. 8000790: ed9f 5b0b vldr d5, [pc, #44] @ 80007c0 <__aeabi_d2ulz+0x38>
  483. 8000794: ee27 6b06 vmul.f64 d6, d7, d6
  484. 8000798: eebc 6bc6 vcvt.u32.f64 s12, d6
  485. 800079c: eeb8 4b46 vcvt.f64.u32 d4, s12
  486. 80007a0: eea4 7b45 vfms.f64 d7, d4, d5
  487. 80007a4: eefc 7bc7 vcvt.u32.f64 s15, d7
  488. 80007a8: ee16 1a10 vmov r1, s12
  489. 80007ac: ee17 0a90 vmov r0, s15
  490. 80007b0: 4770 bx lr
  491. 80007b2: bf00 nop
  492. 80007b4: f3af 8000 nop.w
  493. 80007b8: 00000000 .word 0x00000000
  494. 80007bc: 3df00000 .word 0x3df00000
  495. 80007c0: 00000000 .word 0x00000000
  496. 80007c4: 41f00000 .word 0x41f00000
  497. 080007c8 <__udivmoddi4>:
  498. 80007c8: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  499. 80007cc: 9d08 ldr r5, [sp, #32]
  500. 80007ce: 460c mov r4, r1
  501. 80007d0: 2b00 cmp r3, #0
  502. 80007d2: d14e bne.n 8000872 <__udivmoddi4+0xaa>
  503. 80007d4: 4694 mov ip, r2
  504. 80007d6: 458c cmp ip, r1
  505. 80007d8: 4686 mov lr, r0
  506. 80007da: fab2 f282 clz r2, r2
  507. 80007de: d962 bls.n 80008a6 <__udivmoddi4+0xde>
  508. 80007e0: b14a cbz r2, 80007f6 <__udivmoddi4+0x2e>
  509. 80007e2: f1c2 0320 rsb r3, r2, #32
  510. 80007e6: 4091 lsls r1, r2
  511. 80007e8: fa20 f303 lsr.w r3, r0, r3
  512. 80007ec: fa0c fc02 lsl.w ip, ip, r2
  513. 80007f0: 4319 orrs r1, r3
  514. 80007f2: fa00 fe02 lsl.w lr, r0, r2
  515. 80007f6: ea4f 471c mov.w r7, ip, lsr #16
  516. 80007fa: fa1f f68c uxth.w r6, ip
  517. 80007fe: fbb1 f4f7 udiv r4, r1, r7
  518. 8000802: ea4f 431e mov.w r3, lr, lsr #16
  519. 8000806: fb07 1114 mls r1, r7, r4, r1
  520. 800080a: ea43 4301 orr.w r3, r3, r1, lsl #16
  521. 800080e: fb04 f106 mul.w r1, r4, r6
  522. 8000812: 4299 cmp r1, r3
  523. 8000814: d90a bls.n 800082c <__udivmoddi4+0x64>
  524. 8000816: eb1c 0303 adds.w r3, ip, r3
  525. 800081a: f104 30ff add.w r0, r4, #4294967295 @ 0xffffffff
  526. 800081e: f080 8112 bcs.w 8000a46 <__udivmoddi4+0x27e>
  527. 8000822: 4299 cmp r1, r3
  528. 8000824: f240 810f bls.w 8000a46 <__udivmoddi4+0x27e>
  529. 8000828: 3c02 subs r4, #2
  530. 800082a: 4463 add r3, ip
  531. 800082c: 1a59 subs r1, r3, r1
  532. 800082e: fa1f f38e uxth.w r3, lr
  533. 8000832: fbb1 f0f7 udiv r0, r1, r7
  534. 8000836: fb07 1110 mls r1, r7, r0, r1
  535. 800083a: ea43 4301 orr.w r3, r3, r1, lsl #16
  536. 800083e: fb00 f606 mul.w r6, r0, r6
  537. 8000842: 429e cmp r6, r3
  538. 8000844: d90a bls.n 800085c <__udivmoddi4+0x94>
  539. 8000846: eb1c 0303 adds.w r3, ip, r3
  540. 800084a: f100 31ff add.w r1, r0, #4294967295 @ 0xffffffff
  541. 800084e: f080 80fc bcs.w 8000a4a <__udivmoddi4+0x282>
  542. 8000852: 429e cmp r6, r3
  543. 8000854: f240 80f9 bls.w 8000a4a <__udivmoddi4+0x282>
  544. 8000858: 4463 add r3, ip
  545. 800085a: 3802 subs r0, #2
  546. 800085c: 1b9b subs r3, r3, r6
  547. 800085e: ea40 4004 orr.w r0, r0, r4, lsl #16
  548. 8000862: 2100 movs r1, #0
  549. 8000864: b11d cbz r5, 800086e <__udivmoddi4+0xa6>
  550. 8000866: 40d3 lsrs r3, r2
  551. 8000868: 2200 movs r2, #0
  552. 800086a: e9c5 3200 strd r3, r2, [r5]
  553. 800086e: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  554. 8000872: 428b cmp r3, r1
  555. 8000874: d905 bls.n 8000882 <__udivmoddi4+0xba>
  556. 8000876: b10d cbz r5, 800087c <__udivmoddi4+0xb4>
  557. 8000878: e9c5 0100 strd r0, r1, [r5]
  558. 800087c: 2100 movs r1, #0
  559. 800087e: 4608 mov r0, r1
  560. 8000880: e7f5 b.n 800086e <__udivmoddi4+0xa6>
  561. 8000882: fab3 f183 clz r1, r3
  562. 8000886: 2900 cmp r1, #0
  563. 8000888: d146 bne.n 8000918 <__udivmoddi4+0x150>
  564. 800088a: 42a3 cmp r3, r4
  565. 800088c: d302 bcc.n 8000894 <__udivmoddi4+0xcc>
  566. 800088e: 4290 cmp r0, r2
  567. 8000890: f0c0 80f0 bcc.w 8000a74 <__udivmoddi4+0x2ac>
  568. 8000894: 1a86 subs r6, r0, r2
  569. 8000896: eb64 0303 sbc.w r3, r4, r3
  570. 800089a: 2001 movs r0, #1
  571. 800089c: 2d00 cmp r5, #0
  572. 800089e: d0e6 beq.n 800086e <__udivmoddi4+0xa6>
  573. 80008a0: e9c5 6300 strd r6, r3, [r5]
  574. 80008a4: e7e3 b.n 800086e <__udivmoddi4+0xa6>
  575. 80008a6: 2a00 cmp r2, #0
  576. 80008a8: f040 8090 bne.w 80009cc <__udivmoddi4+0x204>
  577. 80008ac: eba1 040c sub.w r4, r1, ip
  578. 80008b0: ea4f 481c mov.w r8, ip, lsr #16
  579. 80008b4: fa1f f78c uxth.w r7, ip
  580. 80008b8: 2101 movs r1, #1
  581. 80008ba: fbb4 f6f8 udiv r6, r4, r8
  582. 80008be: ea4f 431e mov.w r3, lr, lsr #16
  583. 80008c2: fb08 4416 mls r4, r8, r6, r4
  584. 80008c6: ea43 4304 orr.w r3, r3, r4, lsl #16
  585. 80008ca: fb07 f006 mul.w r0, r7, r6
  586. 80008ce: 4298 cmp r0, r3
  587. 80008d0: d908 bls.n 80008e4 <__udivmoddi4+0x11c>
  588. 80008d2: eb1c 0303 adds.w r3, ip, r3
  589. 80008d6: f106 34ff add.w r4, r6, #4294967295 @ 0xffffffff
  590. 80008da: d202 bcs.n 80008e2 <__udivmoddi4+0x11a>
  591. 80008dc: 4298 cmp r0, r3
  592. 80008de: f200 80cd bhi.w 8000a7c <__udivmoddi4+0x2b4>
  593. 80008e2: 4626 mov r6, r4
  594. 80008e4: 1a1c subs r4, r3, r0
  595. 80008e6: fa1f f38e uxth.w r3, lr
  596. 80008ea: fbb4 f0f8 udiv r0, r4, r8
  597. 80008ee: fb08 4410 mls r4, r8, r0, r4
  598. 80008f2: ea43 4304 orr.w r3, r3, r4, lsl #16
  599. 80008f6: fb00 f707 mul.w r7, r0, r7
  600. 80008fa: 429f cmp r7, r3
  601. 80008fc: d908 bls.n 8000910 <__udivmoddi4+0x148>
  602. 80008fe: eb1c 0303 adds.w r3, ip, r3
  603. 8000902: f100 34ff add.w r4, r0, #4294967295 @ 0xffffffff
  604. 8000906: d202 bcs.n 800090e <__udivmoddi4+0x146>
  605. 8000908: 429f cmp r7, r3
  606. 800090a: f200 80b0 bhi.w 8000a6e <__udivmoddi4+0x2a6>
  607. 800090e: 4620 mov r0, r4
  608. 8000910: 1bdb subs r3, r3, r7
  609. 8000912: ea40 4006 orr.w r0, r0, r6, lsl #16
  610. 8000916: e7a5 b.n 8000864 <__udivmoddi4+0x9c>
  611. 8000918: f1c1 0620 rsb r6, r1, #32
  612. 800091c: 408b lsls r3, r1
  613. 800091e: fa22 f706 lsr.w r7, r2, r6
  614. 8000922: 431f orrs r7, r3
  615. 8000924: fa20 fc06 lsr.w ip, r0, r6
  616. 8000928: fa04 f301 lsl.w r3, r4, r1
  617. 800092c: ea43 030c orr.w r3, r3, ip
  618. 8000930: 40f4 lsrs r4, r6
  619. 8000932: fa00 f801 lsl.w r8, r0, r1
  620. 8000936: 0c38 lsrs r0, r7, #16
  621. 8000938: ea4f 4913 mov.w r9, r3, lsr #16
  622. 800093c: fbb4 fef0 udiv lr, r4, r0
  623. 8000940: fa1f fc87 uxth.w ip, r7
  624. 8000944: fb00 441e mls r4, r0, lr, r4
  625. 8000948: ea49 4404 orr.w r4, r9, r4, lsl #16
  626. 800094c: fb0e f90c mul.w r9, lr, ip
  627. 8000950: 45a1 cmp r9, r4
  628. 8000952: fa02 f201 lsl.w r2, r2, r1
  629. 8000956: d90a bls.n 800096e <__udivmoddi4+0x1a6>
  630. 8000958: 193c adds r4, r7, r4
  631. 800095a: f10e 3aff add.w sl, lr, #4294967295 @ 0xffffffff
  632. 800095e: f080 8084 bcs.w 8000a6a <__udivmoddi4+0x2a2>
  633. 8000962: 45a1 cmp r9, r4
  634. 8000964: f240 8081 bls.w 8000a6a <__udivmoddi4+0x2a2>
  635. 8000968: f1ae 0e02 sub.w lr, lr, #2
  636. 800096c: 443c add r4, r7
  637. 800096e: eba4 0409 sub.w r4, r4, r9
  638. 8000972: fa1f f983 uxth.w r9, r3
  639. 8000976: fbb4 f3f0 udiv r3, r4, r0
  640. 800097a: fb00 4413 mls r4, r0, r3, r4
  641. 800097e: ea49 4404 orr.w r4, r9, r4, lsl #16
  642. 8000982: fb03 fc0c mul.w ip, r3, ip
  643. 8000986: 45a4 cmp ip, r4
  644. 8000988: d907 bls.n 800099a <__udivmoddi4+0x1d2>
  645. 800098a: 193c adds r4, r7, r4
  646. 800098c: f103 30ff add.w r0, r3, #4294967295 @ 0xffffffff
  647. 8000990: d267 bcs.n 8000a62 <__udivmoddi4+0x29a>
  648. 8000992: 45a4 cmp ip, r4
  649. 8000994: d965 bls.n 8000a62 <__udivmoddi4+0x29a>
  650. 8000996: 3b02 subs r3, #2
  651. 8000998: 443c add r4, r7
  652. 800099a: ea43 400e orr.w r0, r3, lr, lsl #16
  653. 800099e: fba0 9302 umull r9, r3, r0, r2
  654. 80009a2: eba4 040c sub.w r4, r4, ip
  655. 80009a6: 429c cmp r4, r3
  656. 80009a8: 46ce mov lr, r9
  657. 80009aa: 469c mov ip, r3
  658. 80009ac: d351 bcc.n 8000a52 <__udivmoddi4+0x28a>
  659. 80009ae: d04e beq.n 8000a4e <__udivmoddi4+0x286>
  660. 80009b0: b155 cbz r5, 80009c8 <__udivmoddi4+0x200>
  661. 80009b2: ebb8 030e subs.w r3, r8, lr
  662. 80009b6: eb64 040c sbc.w r4, r4, ip
  663. 80009ba: fa04 f606 lsl.w r6, r4, r6
  664. 80009be: 40cb lsrs r3, r1
  665. 80009c0: 431e orrs r6, r3
  666. 80009c2: 40cc lsrs r4, r1
  667. 80009c4: e9c5 6400 strd r6, r4, [r5]
  668. 80009c8: 2100 movs r1, #0
  669. 80009ca: e750 b.n 800086e <__udivmoddi4+0xa6>
  670. 80009cc: f1c2 0320 rsb r3, r2, #32
  671. 80009d0: fa20 f103 lsr.w r1, r0, r3
  672. 80009d4: fa0c fc02 lsl.w ip, ip, r2
  673. 80009d8: fa24 f303 lsr.w r3, r4, r3
  674. 80009dc: 4094 lsls r4, r2
  675. 80009de: 430c orrs r4, r1
  676. 80009e0: ea4f 481c mov.w r8, ip, lsr #16
  677. 80009e4: fa00 fe02 lsl.w lr, r0, r2
  678. 80009e8: fa1f f78c uxth.w r7, ip
  679. 80009ec: fbb3 f0f8 udiv r0, r3, r8
  680. 80009f0: fb08 3110 mls r1, r8, r0, r3
  681. 80009f4: 0c23 lsrs r3, r4, #16
  682. 80009f6: ea43 4301 orr.w r3, r3, r1, lsl #16
  683. 80009fa: fb00 f107 mul.w r1, r0, r7
  684. 80009fe: 4299 cmp r1, r3
  685. 8000a00: d908 bls.n 8000a14 <__udivmoddi4+0x24c>
  686. 8000a02: eb1c 0303 adds.w r3, ip, r3
  687. 8000a06: f100 36ff add.w r6, r0, #4294967295 @ 0xffffffff
  688. 8000a0a: d22c bcs.n 8000a66 <__udivmoddi4+0x29e>
  689. 8000a0c: 4299 cmp r1, r3
  690. 8000a0e: d92a bls.n 8000a66 <__udivmoddi4+0x29e>
  691. 8000a10: 3802 subs r0, #2
  692. 8000a12: 4463 add r3, ip
  693. 8000a14: 1a5b subs r3, r3, r1
  694. 8000a16: b2a4 uxth r4, r4
  695. 8000a18: fbb3 f1f8 udiv r1, r3, r8
  696. 8000a1c: fb08 3311 mls r3, r8, r1, r3
  697. 8000a20: ea44 4403 orr.w r4, r4, r3, lsl #16
  698. 8000a24: fb01 f307 mul.w r3, r1, r7
  699. 8000a28: 42a3 cmp r3, r4
  700. 8000a2a: d908 bls.n 8000a3e <__udivmoddi4+0x276>
  701. 8000a2c: eb1c 0404 adds.w r4, ip, r4
  702. 8000a30: f101 36ff add.w r6, r1, #4294967295 @ 0xffffffff
  703. 8000a34: d213 bcs.n 8000a5e <__udivmoddi4+0x296>
  704. 8000a36: 42a3 cmp r3, r4
  705. 8000a38: d911 bls.n 8000a5e <__udivmoddi4+0x296>
  706. 8000a3a: 3902 subs r1, #2
  707. 8000a3c: 4464 add r4, ip
  708. 8000a3e: 1ae4 subs r4, r4, r3
  709. 8000a40: ea41 4100 orr.w r1, r1, r0, lsl #16
  710. 8000a44: e739 b.n 80008ba <__udivmoddi4+0xf2>
  711. 8000a46: 4604 mov r4, r0
  712. 8000a48: e6f0 b.n 800082c <__udivmoddi4+0x64>
  713. 8000a4a: 4608 mov r0, r1
  714. 8000a4c: e706 b.n 800085c <__udivmoddi4+0x94>
  715. 8000a4e: 45c8 cmp r8, r9
  716. 8000a50: d2ae bcs.n 80009b0 <__udivmoddi4+0x1e8>
  717. 8000a52: ebb9 0e02 subs.w lr, r9, r2
  718. 8000a56: eb63 0c07 sbc.w ip, r3, r7
  719. 8000a5a: 3801 subs r0, #1
  720. 8000a5c: e7a8 b.n 80009b0 <__udivmoddi4+0x1e8>
  721. 8000a5e: 4631 mov r1, r6
  722. 8000a60: e7ed b.n 8000a3e <__udivmoddi4+0x276>
  723. 8000a62: 4603 mov r3, r0
  724. 8000a64: e799 b.n 800099a <__udivmoddi4+0x1d2>
  725. 8000a66: 4630 mov r0, r6
  726. 8000a68: e7d4 b.n 8000a14 <__udivmoddi4+0x24c>
  727. 8000a6a: 46d6 mov lr, sl
  728. 8000a6c: e77f b.n 800096e <__udivmoddi4+0x1a6>
  729. 8000a6e: 4463 add r3, ip
  730. 8000a70: 3802 subs r0, #2
  731. 8000a72: e74d b.n 8000910 <__udivmoddi4+0x148>
  732. 8000a74: 4606 mov r6, r0
  733. 8000a76: 4623 mov r3, r4
  734. 8000a78: 4608 mov r0, r1
  735. 8000a7a: e70f b.n 800089c <__udivmoddi4+0xd4>
  736. 8000a7c: 3e02 subs r6, #2
  737. 8000a7e: 4463 add r3, ip
  738. 8000a80: e730 b.n 80008e4 <__udivmoddi4+0x11c>
  739. 8000a82: bf00 nop
  740. 08000a84 <__aeabi_idiv0>:
  741. 8000a84: 4770 bx lr
  742. 8000a86: bf00 nop
  743. 08000a88 <case_insensitive_strcmp>:
  744. return version;
  745. }
  746. /* Case insensitive string comparison, doesn't consider two NULL pointers equal though */
  747. static int case_insensitive_strcmp(const unsigned char *string1, const unsigned char *string2)
  748. {
  749. 8000a88: b480 push {r7}
  750. 8000a8a: b085 sub sp, #20
  751. 8000a8c: af00 add r7, sp, #0
  752. 8000a8e: 6078 str r0, [r7, #4]
  753. 8000a90: 6039 str r1, [r7, #0]
  754. if ((string1 == NULL) || (string2 == NULL))
  755. 8000a92: 687b ldr r3, [r7, #4]
  756. 8000a94: 2b00 cmp r3, #0
  757. 8000a96: d002 beq.n 8000a9e <case_insensitive_strcmp+0x16>
  758. 8000a98: 683b ldr r3, [r7, #0]
  759. 8000a9a: 2b00 cmp r3, #0
  760. 8000a9c: d101 bne.n 8000aa2 <case_insensitive_strcmp+0x1a>
  761. {
  762. return 1;
  763. 8000a9e: 2301 movs r3, #1
  764. 8000aa0: e056 b.n 8000b50 <case_insensitive_strcmp+0xc8>
  765. }
  766. if (string1 == string2)
  767. 8000aa2: 687a ldr r2, [r7, #4]
  768. 8000aa4: 683b ldr r3, [r7, #0]
  769. 8000aa6: 429a cmp r2, r3
  770. 8000aa8: d10d bne.n 8000ac6 <case_insensitive_strcmp+0x3e>
  771. {
  772. return 0;
  773. 8000aaa: 2300 movs r3, #0
  774. 8000aac: e050 b.n 8000b50 <case_insensitive_strcmp+0xc8>
  775. }
  776. for(; tolower(*string1) == tolower(*string2); (void)string1++, string2++)
  777. {
  778. if (*string1 == '\0')
  779. 8000aae: 687b ldr r3, [r7, #4]
  780. 8000ab0: 781b ldrb r3, [r3, #0]
  781. 8000ab2: 2b00 cmp r3, #0
  782. 8000ab4: d101 bne.n 8000aba <case_insensitive_strcmp+0x32>
  783. {
  784. return 0;
  785. 8000ab6: 2300 movs r3, #0
  786. 8000ab8: e04a b.n 8000b50 <case_insensitive_strcmp+0xc8>
  787. for(; tolower(*string1) == tolower(*string2); (void)string1++, string2++)
  788. 8000aba: 687b ldr r3, [r7, #4]
  789. 8000abc: 3301 adds r3, #1
  790. 8000abe: 607b str r3, [r7, #4]
  791. 8000ac0: 683b ldr r3, [r7, #0]
  792. 8000ac2: 3301 adds r3, #1
  793. 8000ac4: 603b str r3, [r7, #0]
  794. 8000ac6: 687b ldr r3, [r7, #4]
  795. 8000ac8: 781b ldrb r3, [r3, #0]
  796. 8000aca: 73fb strb r3, [r7, #15]
  797. 8000acc: 7bfb ldrb r3, [r7, #15]
  798. 8000ace: 3301 adds r3, #1
  799. 8000ad0: 4a22 ldr r2, [pc, #136] @ (8000b5c <case_insensitive_strcmp+0xd4>)
  800. 8000ad2: 4413 add r3, r2
  801. 8000ad4: 781b ldrb r3, [r3, #0]
  802. 8000ad6: f003 0303 and.w r3, r3, #3
  803. 8000ada: 2b01 cmp r3, #1
  804. 8000adc: d103 bne.n 8000ae6 <case_insensitive_strcmp+0x5e>
  805. 8000ade: 7bfb ldrb r3, [r7, #15]
  806. 8000ae0: f103 0220 add.w r2, r3, #32
  807. 8000ae4: e000 b.n 8000ae8 <case_insensitive_strcmp+0x60>
  808. 8000ae6: 7bfa ldrb r2, [r7, #15]
  809. 8000ae8: 683b ldr r3, [r7, #0]
  810. 8000aea: 781b ldrb r3, [r3, #0]
  811. 8000aec: 73bb strb r3, [r7, #14]
  812. 8000aee: 7bbb ldrb r3, [r7, #14]
  813. 8000af0: 3301 adds r3, #1
  814. 8000af2: 491a ldr r1, [pc, #104] @ (8000b5c <case_insensitive_strcmp+0xd4>)
  815. 8000af4: 440b add r3, r1
  816. 8000af6: 781b ldrb r3, [r3, #0]
  817. 8000af8: f003 0303 and.w r3, r3, #3
  818. 8000afc: 2b01 cmp r3, #1
  819. 8000afe: d102 bne.n 8000b06 <case_insensitive_strcmp+0x7e>
  820. 8000b00: 7bbb ldrb r3, [r7, #14]
  821. 8000b02: 3320 adds r3, #32
  822. 8000b04: e000 b.n 8000b08 <case_insensitive_strcmp+0x80>
  823. 8000b06: 7bbb ldrb r3, [r7, #14]
  824. 8000b08: 429a cmp r2, r3
  825. 8000b0a: d0d0 beq.n 8000aae <case_insensitive_strcmp+0x26>
  826. }
  827. }
  828. return tolower(*string1) - tolower(*string2);
  829. 8000b0c: 687b ldr r3, [r7, #4]
  830. 8000b0e: 781b ldrb r3, [r3, #0]
  831. 8000b10: 737b strb r3, [r7, #13]
  832. 8000b12: 7b7b ldrb r3, [r7, #13]
  833. 8000b14: 3301 adds r3, #1
  834. 8000b16: 4a11 ldr r2, [pc, #68] @ (8000b5c <case_insensitive_strcmp+0xd4>)
  835. 8000b18: 4413 add r3, r2
  836. 8000b1a: 781b ldrb r3, [r3, #0]
  837. 8000b1c: f003 0303 and.w r3, r3, #3
  838. 8000b20: 2b01 cmp r3, #1
  839. 8000b22: d103 bne.n 8000b2c <case_insensitive_strcmp+0xa4>
  840. 8000b24: 7b7b ldrb r3, [r7, #13]
  841. 8000b26: f103 0220 add.w r2, r3, #32
  842. 8000b2a: e000 b.n 8000b2e <case_insensitive_strcmp+0xa6>
  843. 8000b2c: 7b7a ldrb r2, [r7, #13]
  844. 8000b2e: 683b ldr r3, [r7, #0]
  845. 8000b30: 781b ldrb r3, [r3, #0]
  846. 8000b32: 733b strb r3, [r7, #12]
  847. 8000b34: 7b3b ldrb r3, [r7, #12]
  848. 8000b36: 3301 adds r3, #1
  849. 8000b38: 4908 ldr r1, [pc, #32] @ (8000b5c <case_insensitive_strcmp+0xd4>)
  850. 8000b3a: 440b add r3, r1
  851. 8000b3c: 781b ldrb r3, [r3, #0]
  852. 8000b3e: f003 0303 and.w r3, r3, #3
  853. 8000b42: 2b01 cmp r3, #1
  854. 8000b44: d102 bne.n 8000b4c <case_insensitive_strcmp+0xc4>
  855. 8000b46: 7b3b ldrb r3, [r7, #12]
  856. 8000b48: 3320 adds r3, #32
  857. 8000b4a: e000 b.n 8000b4e <case_insensitive_strcmp+0xc6>
  858. 8000b4c: 7b3b ldrb r3, [r7, #12]
  859. 8000b4e: 1ad3 subs r3, r2, r3
  860. }
  861. 8000b50: 4618 mov r0, r3
  862. 8000b52: 3714 adds r7, #20
  863. 8000b54: 46bd mov sp, r7
  864. 8000b56: f85d 7b04 ldr.w r7, [sp], #4
  865. 8000b5a: 4770 bx lr
  866. 8000b5c: 08030880 .word 0x08030880
  867. 08000b60 <cJSON_New_Item>:
  868. }
  869. }
  870. /* Internal constructor. */
  871. static cJSON *cJSON_New_Item(const internal_hooks * const hooks)
  872. {
  873. 8000b60: b580 push {r7, lr}
  874. 8000b62: b084 sub sp, #16
  875. 8000b64: af00 add r7, sp, #0
  876. 8000b66: 6078 str r0, [r7, #4]
  877. cJSON* node = (cJSON*)hooks->allocate(sizeof(cJSON));
  878. 8000b68: 687b ldr r3, [r7, #4]
  879. 8000b6a: 681b ldr r3, [r3, #0]
  880. 8000b6c: 2028 movs r0, #40 @ 0x28
  881. 8000b6e: 4798 blx r3
  882. 8000b70: 60f8 str r0, [r7, #12]
  883. if (node)
  884. 8000b72: 68fb ldr r3, [r7, #12]
  885. 8000b74: 2b00 cmp r3, #0
  886. 8000b76: d004 beq.n 8000b82 <cJSON_New_Item+0x22>
  887. {
  888. memset(node, '\0', sizeof(cJSON));
  889. 8000b78: 2228 movs r2, #40 @ 0x28
  890. 8000b7a: 2100 movs r1, #0
  891. 8000b7c: 68f8 ldr r0, [r7, #12]
  892. 8000b7e: f028 fe57 bl 8029830 <memset>
  893. }
  894. return node;
  895. 8000b82: 68fb ldr r3, [r7, #12]
  896. }
  897. 8000b84: 4618 mov r0, r3
  898. 8000b86: 3710 adds r7, #16
  899. 8000b88: 46bd mov sp, r7
  900. 8000b8a: bd80 pop {r7, pc}
  901. 08000b8c <cJSON_Delete>:
  902. /* Delete a cJSON structure. */
  903. CJSON_PUBLIC(void) cJSON_Delete(cJSON *item)
  904. {
  905. 8000b8c: b580 push {r7, lr}
  906. 8000b8e: b084 sub sp, #16
  907. 8000b90: af00 add r7, sp, #0
  908. 8000b92: 6078 str r0, [r7, #4]
  909. cJSON *next = NULL;
  910. 8000b94: 2300 movs r3, #0
  911. 8000b96: 60fb str r3, [r7, #12]
  912. while (item != NULL)
  913. 8000b98: e03d b.n 8000c16 <cJSON_Delete+0x8a>
  914. {
  915. next = item->next;
  916. 8000b9a: 687b ldr r3, [r7, #4]
  917. 8000b9c: 681b ldr r3, [r3, #0]
  918. 8000b9e: 60fb str r3, [r7, #12]
  919. if (!(item->type & cJSON_IsReference) && (item->child != NULL))
  920. 8000ba0: 687b ldr r3, [r7, #4]
  921. 8000ba2: 68db ldr r3, [r3, #12]
  922. 8000ba4: f403 7380 and.w r3, r3, #256 @ 0x100
  923. 8000ba8: 2b00 cmp r3, #0
  924. 8000baa: d108 bne.n 8000bbe <cJSON_Delete+0x32>
  925. 8000bac: 687b ldr r3, [r7, #4]
  926. 8000bae: 689b ldr r3, [r3, #8]
  927. 8000bb0: 2b00 cmp r3, #0
  928. 8000bb2: d004 beq.n 8000bbe <cJSON_Delete+0x32>
  929. {
  930. cJSON_Delete(item->child);
  931. 8000bb4: 687b ldr r3, [r7, #4]
  932. 8000bb6: 689b ldr r3, [r3, #8]
  933. 8000bb8: 4618 mov r0, r3
  934. 8000bba: f7ff ffe7 bl 8000b8c <cJSON_Delete>
  935. }
  936. if (!(item->type & cJSON_IsReference) && (item->valuestring != NULL))
  937. 8000bbe: 687b ldr r3, [r7, #4]
  938. 8000bc0: 68db ldr r3, [r3, #12]
  939. 8000bc2: f403 7380 and.w r3, r3, #256 @ 0x100
  940. 8000bc6: 2b00 cmp r3, #0
  941. 8000bc8: d10c bne.n 8000be4 <cJSON_Delete+0x58>
  942. 8000bca: 687b ldr r3, [r7, #4]
  943. 8000bcc: 691b ldr r3, [r3, #16]
  944. 8000bce: 2b00 cmp r3, #0
  945. 8000bd0: d008 beq.n 8000be4 <cJSON_Delete+0x58>
  946. {
  947. global_hooks.deallocate(item->valuestring);
  948. 8000bd2: 4b15 ldr r3, [pc, #84] @ (8000c28 <cJSON_Delete+0x9c>)
  949. 8000bd4: 685b ldr r3, [r3, #4]
  950. 8000bd6: 687a ldr r2, [r7, #4]
  951. 8000bd8: 6912 ldr r2, [r2, #16]
  952. 8000bda: 4610 mov r0, r2
  953. 8000bdc: 4798 blx r3
  954. item->valuestring = NULL;
  955. 8000bde: 687b ldr r3, [r7, #4]
  956. 8000be0: 2200 movs r2, #0
  957. 8000be2: 611a str r2, [r3, #16]
  958. }
  959. if (!(item->type & cJSON_StringIsConst) && (item->string != NULL))
  960. 8000be4: 687b ldr r3, [r7, #4]
  961. 8000be6: 68db ldr r3, [r3, #12]
  962. 8000be8: f403 7300 and.w r3, r3, #512 @ 0x200
  963. 8000bec: 2b00 cmp r3, #0
  964. 8000bee: d10c bne.n 8000c0a <cJSON_Delete+0x7e>
  965. 8000bf0: 687b ldr r3, [r7, #4]
  966. 8000bf2: 6a1b ldr r3, [r3, #32]
  967. 8000bf4: 2b00 cmp r3, #0
  968. 8000bf6: d008 beq.n 8000c0a <cJSON_Delete+0x7e>
  969. {
  970. global_hooks.deallocate(item->string);
  971. 8000bf8: 4b0b ldr r3, [pc, #44] @ (8000c28 <cJSON_Delete+0x9c>)
  972. 8000bfa: 685b ldr r3, [r3, #4]
  973. 8000bfc: 687a ldr r2, [r7, #4]
  974. 8000bfe: 6a12 ldr r2, [r2, #32]
  975. 8000c00: 4610 mov r0, r2
  976. 8000c02: 4798 blx r3
  977. item->string = NULL;
  978. 8000c04: 687b ldr r3, [r7, #4]
  979. 8000c06: 2200 movs r2, #0
  980. 8000c08: 621a str r2, [r3, #32]
  981. }
  982. global_hooks.deallocate(item);
  983. 8000c0a: 4b07 ldr r3, [pc, #28] @ (8000c28 <cJSON_Delete+0x9c>)
  984. 8000c0c: 685b ldr r3, [r3, #4]
  985. 8000c0e: 6878 ldr r0, [r7, #4]
  986. 8000c10: 4798 blx r3
  987. item = next;
  988. 8000c12: 68fb ldr r3, [r7, #12]
  989. 8000c14: 607b str r3, [r7, #4]
  990. while (item != NULL)
  991. 8000c16: 687b ldr r3, [r7, #4]
  992. 8000c18: 2b00 cmp r3, #0
  993. 8000c1a: d1be bne.n 8000b9a <cJSON_Delete+0xe>
  994. }
  995. }
  996. 8000c1c: bf00 nop
  997. 8000c1e: bf00 nop
  998. 8000c20: 3710 adds r7, #16
  999. 8000c22: 46bd mov sp, r7
  1000. 8000c24: bd80 pop {r7, pc}
  1001. 8000c26: bf00 nop
  1002. 8000c28: 24000000 .word 0x24000000
  1003. 08000c2c <get_decimal_point>:
  1004. /* get the decimal point character of the current locale */
  1005. static unsigned char get_decimal_point(void)
  1006. {
  1007. 8000c2c: b480 push {r7}
  1008. 8000c2e: af00 add r7, sp, #0
  1009. #ifdef ENABLE_LOCALES
  1010. struct lconv *lconv = localeconv();
  1011. return (unsigned char) lconv->decimal_point[0];
  1012. #else
  1013. return '.';
  1014. 8000c30: 232e movs r3, #46 @ 0x2e
  1015. #endif
  1016. }
  1017. 8000c32: 4618 mov r0, r3
  1018. 8000c34: 46bd mov sp, r7
  1019. 8000c36: f85d 7b04 ldr.w r7, [sp], #4
  1020. 8000c3a: 4770 bx lr
  1021. 8000c3c: 0000 movs r0, r0
  1022. ...
  1023. 08000c40 <parse_number>:
  1024. /* get a pointer to the buffer at the position */
  1025. #define buffer_at_offset(buffer) ((buffer)->content + (buffer)->offset)
  1026. /* Parse the input text to generate a number, and populate the result into item. */
  1027. static cJSON_bool parse_number(cJSON * const item, parse_buffer * const input_buffer)
  1028. {
  1029. 8000c40: b580 push {r7, lr}
  1030. 8000c42: b098 sub sp, #96 @ 0x60
  1031. 8000c44: af00 add r7, sp, #0
  1032. 8000c46: 6078 str r0, [r7, #4]
  1033. 8000c48: 6039 str r1, [r7, #0]
  1034. double number = 0;
  1035. 8000c4a: f04f 0200 mov.w r2, #0
  1036. 8000c4e: f04f 0300 mov.w r3, #0
  1037. 8000c52: e9c7 2314 strd r2, r3, [r7, #80] @ 0x50
  1038. unsigned char *after_end = NULL;
  1039. 8000c56: 2300 movs r3, #0
  1040. 8000c58: 64bb str r3, [r7, #72] @ 0x48
  1041. unsigned char number_c_string[64];
  1042. unsigned char decimal_point = get_decimal_point();
  1043. 8000c5a: f7ff ffe7 bl 8000c2c <get_decimal_point>
  1044. 8000c5e: 4603 mov r3, r0
  1045. 8000c60: f887 304f strb.w r3, [r7, #79] @ 0x4f
  1046. size_t i = 0;
  1047. 8000c64: 2300 movs r3, #0
  1048. 8000c66: 65fb str r3, [r7, #92] @ 0x5c
  1049. if ((input_buffer == NULL) || (input_buffer->content == NULL))
  1050. 8000c68: 683b ldr r3, [r7, #0]
  1051. 8000c6a: 2b00 cmp r3, #0
  1052. 8000c6c: d003 beq.n 8000c76 <parse_number+0x36>
  1053. 8000c6e: 683b ldr r3, [r7, #0]
  1054. 8000c70: 681b ldr r3, [r3, #0]
  1055. 8000c72: 2b00 cmp r3, #0
  1056. 8000c74: d101 bne.n 8000c7a <parse_number+0x3a>
  1057. {
  1058. return false;
  1059. 8000c76: 2300 movs r3, #0
  1060. 8000c78: e09f b.n 8000dba <parse_number+0x17a>
  1061. }
  1062. /* copy the number into a temporary buffer and replace '.' with the decimal point
  1063. * of the current locale (for strtod)
  1064. * This also takes care of '\0' not necessarily being available for marking the end of the input */
  1065. for (i = 0; (i < (sizeof(number_c_string) - 1)) && can_access_at_index(input_buffer, i); i++)
  1066. 8000c7a: 2300 movs r3, #0
  1067. 8000c7c: 65fb str r3, [r7, #92] @ 0x5c
  1068. 8000c7e: e03d b.n 8000cfc <parse_number+0xbc>
  1069. {
  1070. switch (buffer_at_offset(input_buffer)[i])
  1071. 8000c80: 683b ldr r3, [r7, #0]
  1072. 8000c82: 681a ldr r2, [r3, #0]
  1073. 8000c84: 683b ldr r3, [r7, #0]
  1074. 8000c86: 6899 ldr r1, [r3, #8]
  1075. 8000c88: 6dfb ldr r3, [r7, #92] @ 0x5c
  1076. 8000c8a: 440b add r3, r1
  1077. 8000c8c: 4413 add r3, r2
  1078. 8000c8e: 781b ldrb r3, [r3, #0]
  1079. 8000c90: 2b45 cmp r3, #69 @ 0x45
  1080. 8000c92: dc17 bgt.n 8000cc4 <parse_number+0x84>
  1081. 8000c94: 2b2b cmp r3, #43 @ 0x2b
  1082. 8000c96: db40 blt.n 8000d1a <parse_number+0xda>
  1083. 8000c98: 3b2b subs r3, #43 @ 0x2b
  1084. 8000c9a: 2201 movs r2, #1
  1085. 8000c9c: 409a lsls r2, r3
  1086. 8000c9e: 4b4e ldr r3, [pc, #312] @ (8000dd8 <parse_number+0x198>)
  1087. 8000ca0: 4013 ands r3, r2
  1088. 8000ca2: 2b00 cmp r3, #0
  1089. 8000ca4: bf14 ite ne
  1090. 8000ca6: 2301 movne r3, #1
  1091. 8000ca8: 2300 moveq r3, #0
  1092. 8000caa: b2db uxtb r3, r3
  1093. 8000cac: 2b00 cmp r3, #0
  1094. 8000cae: d10b bne.n 8000cc8 <parse_number+0x88>
  1095. 8000cb0: f002 0308 and.w r3, r2, #8
  1096. 8000cb4: 2b00 cmp r3, #0
  1097. 8000cb6: bf14 ite ne
  1098. 8000cb8: 2301 movne r3, #1
  1099. 8000cba: 2300 moveq r3, #0
  1100. 8000cbc: b2db uxtb r3, r3
  1101. 8000cbe: 2b00 cmp r3, #0
  1102. 8000cc0: d111 bne.n 8000ce6 <parse_number+0xa6>
  1103. case '.':
  1104. number_c_string[i] = decimal_point;
  1105. break;
  1106. default:
  1107. goto loop_end;
  1108. 8000cc2: e02a b.n 8000d1a <parse_number+0xda>
  1109. switch (buffer_at_offset(input_buffer)[i])
  1110. 8000cc4: 2b65 cmp r3, #101 @ 0x65
  1111. 8000cc6: d128 bne.n 8000d1a <parse_number+0xda>
  1112. number_c_string[i] = buffer_at_offset(input_buffer)[i];
  1113. 8000cc8: 683b ldr r3, [r7, #0]
  1114. 8000cca: 681a ldr r2, [r3, #0]
  1115. 8000ccc: 683b ldr r3, [r7, #0]
  1116. 8000cce: 6899 ldr r1, [r3, #8]
  1117. 8000cd0: 6dfb ldr r3, [r7, #92] @ 0x5c
  1118. 8000cd2: 440b add r3, r1
  1119. 8000cd4: 4413 add r3, r2
  1120. 8000cd6: 7819 ldrb r1, [r3, #0]
  1121. 8000cd8: f107 0208 add.w r2, r7, #8
  1122. 8000cdc: 6dfb ldr r3, [r7, #92] @ 0x5c
  1123. 8000cde: 4413 add r3, r2
  1124. 8000ce0: 460a mov r2, r1
  1125. 8000ce2: 701a strb r2, [r3, #0]
  1126. break;
  1127. 8000ce4: e007 b.n 8000cf6 <parse_number+0xb6>
  1128. number_c_string[i] = decimal_point;
  1129. 8000ce6: f107 0208 add.w r2, r7, #8
  1130. 8000cea: 6dfb ldr r3, [r7, #92] @ 0x5c
  1131. 8000cec: 4413 add r3, r2
  1132. 8000cee: f897 204f ldrb.w r2, [r7, #79] @ 0x4f
  1133. 8000cf2: 701a strb r2, [r3, #0]
  1134. break;
  1135. 8000cf4: bf00 nop
  1136. for (i = 0; (i < (sizeof(number_c_string) - 1)) && can_access_at_index(input_buffer, i); i++)
  1137. 8000cf6: 6dfb ldr r3, [r7, #92] @ 0x5c
  1138. 8000cf8: 3301 adds r3, #1
  1139. 8000cfa: 65fb str r3, [r7, #92] @ 0x5c
  1140. 8000cfc: 6dfb ldr r3, [r7, #92] @ 0x5c
  1141. 8000cfe: 2b3e cmp r3, #62 @ 0x3e
  1142. 8000d00: d80d bhi.n 8000d1e <parse_number+0xde>
  1143. 8000d02: 683b ldr r3, [r7, #0]
  1144. 8000d04: 2b00 cmp r3, #0
  1145. 8000d06: d00a beq.n 8000d1e <parse_number+0xde>
  1146. 8000d08: 683b ldr r3, [r7, #0]
  1147. 8000d0a: 689a ldr r2, [r3, #8]
  1148. 8000d0c: 6dfb ldr r3, [r7, #92] @ 0x5c
  1149. 8000d0e: 441a add r2, r3
  1150. 8000d10: 683b ldr r3, [r7, #0]
  1151. 8000d12: 685b ldr r3, [r3, #4]
  1152. 8000d14: 429a cmp r2, r3
  1153. 8000d16: d3b3 bcc.n 8000c80 <parse_number+0x40>
  1154. }
  1155. }
  1156. loop_end:
  1157. 8000d18: e001 b.n 8000d1e <parse_number+0xde>
  1158. goto loop_end;
  1159. 8000d1a: bf00 nop
  1160. 8000d1c: e000 b.n 8000d20 <parse_number+0xe0>
  1161. loop_end:
  1162. 8000d1e: bf00 nop
  1163. number_c_string[i] = '\0';
  1164. 8000d20: f107 0208 add.w r2, r7, #8
  1165. 8000d24: 6dfb ldr r3, [r7, #92] @ 0x5c
  1166. 8000d26: 4413 add r3, r2
  1167. 8000d28: 2200 movs r2, #0
  1168. 8000d2a: 701a strb r2, [r3, #0]
  1169. number = strtod((const char*)number_c_string, (char**)&after_end);
  1170. 8000d2c: f107 0248 add.w r2, r7, #72 @ 0x48
  1171. 8000d30: f107 0308 add.w r3, r7, #8
  1172. 8000d34: 4611 mov r1, r2
  1173. 8000d36: 4618 mov r0, r3
  1174. 8000d38: f027 fee4 bl 8028b04 <strtod>
  1175. 8000d3c: ed87 0b14 vstr d0, [r7, #80] @ 0x50
  1176. if (number_c_string == after_end)
  1177. 8000d40: 6cba ldr r2, [r7, #72] @ 0x48
  1178. 8000d42: f107 0308 add.w r3, r7, #8
  1179. 8000d46: 429a cmp r2, r3
  1180. 8000d48: d101 bne.n 8000d4e <parse_number+0x10e>
  1181. {
  1182. return false; /* parse_error */
  1183. 8000d4a: 2300 movs r3, #0
  1184. 8000d4c: e035 b.n 8000dba <parse_number+0x17a>
  1185. }
  1186. item->valuedouble = number;
  1187. 8000d4e: 6879 ldr r1, [r7, #4]
  1188. 8000d50: e9d7 2314 ldrd r2, r3, [r7, #80] @ 0x50
  1189. 8000d54: e9c1 2306 strd r2, r3, [r1, #24]
  1190. /* use saturation in case of overflow */
  1191. if (number >= INT_MAX)
  1192. 8000d58: ed97 7b14 vldr d7, [r7, #80] @ 0x50
  1193. 8000d5c: ed9f 6b1a vldr d6, [pc, #104] @ 8000dc8 <parse_number+0x188>
  1194. 8000d60: eeb4 7bc6 vcmpe.f64 d7, d6
  1195. 8000d64: eef1 fa10 vmrs APSR_nzcv, fpscr
  1196. 8000d68: db04 blt.n 8000d74 <parse_number+0x134>
  1197. {
  1198. item->valueint = INT_MAX;
  1199. 8000d6a: 687b ldr r3, [r7, #4]
  1200. 8000d6c: f06f 4200 mvn.w r2, #2147483648 @ 0x80000000
  1201. 8000d70: 615a str r2, [r3, #20]
  1202. 8000d72: e015 b.n 8000da0 <parse_number+0x160>
  1203. }
  1204. else if (number <= (double)INT_MIN)
  1205. 8000d74: ed97 7b14 vldr d7, [r7, #80] @ 0x50
  1206. 8000d78: ed9f 6b15 vldr d6, [pc, #84] @ 8000dd0 <parse_number+0x190>
  1207. 8000d7c: eeb4 7bc6 vcmpe.f64 d7, d6
  1208. 8000d80: eef1 fa10 vmrs APSR_nzcv, fpscr
  1209. 8000d84: d804 bhi.n 8000d90 <parse_number+0x150>
  1210. {
  1211. item->valueint = INT_MIN;
  1212. 8000d86: 687b ldr r3, [r7, #4]
  1213. 8000d88: f04f 4200 mov.w r2, #2147483648 @ 0x80000000
  1214. 8000d8c: 615a str r2, [r3, #20]
  1215. 8000d8e: e007 b.n 8000da0 <parse_number+0x160>
  1216. }
  1217. else
  1218. {
  1219. item->valueint = (int)number;
  1220. 8000d90: ed97 7b14 vldr d7, [r7, #80] @ 0x50
  1221. 8000d94: eefd 7bc7 vcvt.s32.f64 s15, d7
  1222. 8000d98: ee17 2a90 vmov r2, s15
  1223. 8000d9c: 687b ldr r3, [r7, #4]
  1224. 8000d9e: 615a str r2, [r3, #20]
  1225. }
  1226. item->type = cJSON_Number;
  1227. 8000da0: 687b ldr r3, [r7, #4]
  1228. 8000da2: 2208 movs r2, #8
  1229. 8000da4: 60da str r2, [r3, #12]
  1230. input_buffer->offset += (size_t)(after_end - number_c_string);
  1231. 8000da6: 683b ldr r3, [r7, #0]
  1232. 8000da8: 689b ldr r3, [r3, #8]
  1233. 8000daa: 6cb9 ldr r1, [r7, #72] @ 0x48
  1234. 8000dac: f107 0208 add.w r2, r7, #8
  1235. 8000db0: 1a8a subs r2, r1, r2
  1236. 8000db2: 441a add r2, r3
  1237. 8000db4: 683b ldr r3, [r7, #0]
  1238. 8000db6: 609a str r2, [r3, #8]
  1239. return true;
  1240. 8000db8: 2301 movs r3, #1
  1241. }
  1242. 8000dba: 4618 mov r0, r3
  1243. 8000dbc: 3760 adds r7, #96 @ 0x60
  1244. 8000dbe: 46bd mov sp, r7
  1245. 8000dc0: bd80 pop {r7, pc}
  1246. 8000dc2: bf00 nop
  1247. 8000dc4: f3af 8000 nop.w
  1248. 8000dc8: ffc00000 .word 0xffc00000
  1249. 8000dcc: 41dfffff .word 0x41dfffff
  1250. 8000dd0: 00000000 .word 0x00000000
  1251. 8000dd4: c1e00000 .word 0xc1e00000
  1252. 8000dd8: 04007fe5 .word 0x04007fe5
  1253. 08000ddc <parse_hex4>:
  1254. return true;
  1255. }
  1256. /* parse 4 digit hexadecimal number */
  1257. static unsigned parse_hex4(const unsigned char * const input)
  1258. {
  1259. 8000ddc: b480 push {r7}
  1260. 8000dde: b085 sub sp, #20
  1261. 8000de0: af00 add r7, sp, #0
  1262. 8000de2: 6078 str r0, [r7, #4]
  1263. unsigned int h = 0;
  1264. 8000de4: 2300 movs r3, #0
  1265. 8000de6: 60fb str r3, [r7, #12]
  1266. size_t i = 0;
  1267. 8000de8: 2300 movs r3, #0
  1268. 8000dea: 60bb str r3, [r7, #8]
  1269. for (i = 0; i < 4; i++)
  1270. 8000dec: 2300 movs r3, #0
  1271. 8000dee: 60bb str r3, [r7, #8]
  1272. 8000df0: e04c b.n 8000e8c <parse_hex4+0xb0>
  1273. {
  1274. /* parse digit */
  1275. if ((input[i] >= '0') && (input[i] <= '9'))
  1276. 8000df2: 687a ldr r2, [r7, #4]
  1277. 8000df4: 68bb ldr r3, [r7, #8]
  1278. 8000df6: 4413 add r3, r2
  1279. 8000df8: 781b ldrb r3, [r3, #0]
  1280. 8000dfa: 2b2f cmp r3, #47 @ 0x2f
  1281. 8000dfc: d90f bls.n 8000e1e <parse_hex4+0x42>
  1282. 8000dfe: 687a ldr r2, [r7, #4]
  1283. 8000e00: 68bb ldr r3, [r7, #8]
  1284. 8000e02: 4413 add r3, r2
  1285. 8000e04: 781b ldrb r3, [r3, #0]
  1286. 8000e06: 2b39 cmp r3, #57 @ 0x39
  1287. 8000e08: d809 bhi.n 8000e1e <parse_hex4+0x42>
  1288. {
  1289. h += (unsigned int) input[i] - '0';
  1290. 8000e0a: 687a ldr r2, [r7, #4]
  1291. 8000e0c: 68bb ldr r3, [r7, #8]
  1292. 8000e0e: 4413 add r3, r2
  1293. 8000e10: 781b ldrb r3, [r3, #0]
  1294. 8000e12: 461a mov r2, r3
  1295. 8000e14: 68fb ldr r3, [r7, #12]
  1296. 8000e16: 4413 add r3, r2
  1297. 8000e18: 3b30 subs r3, #48 @ 0x30
  1298. 8000e1a: 60fb str r3, [r7, #12]
  1299. 8000e1c: e02d b.n 8000e7a <parse_hex4+0x9e>
  1300. }
  1301. else if ((input[i] >= 'A') && (input[i] <= 'F'))
  1302. 8000e1e: 687a ldr r2, [r7, #4]
  1303. 8000e20: 68bb ldr r3, [r7, #8]
  1304. 8000e22: 4413 add r3, r2
  1305. 8000e24: 781b ldrb r3, [r3, #0]
  1306. 8000e26: 2b40 cmp r3, #64 @ 0x40
  1307. 8000e28: d90f bls.n 8000e4a <parse_hex4+0x6e>
  1308. 8000e2a: 687a ldr r2, [r7, #4]
  1309. 8000e2c: 68bb ldr r3, [r7, #8]
  1310. 8000e2e: 4413 add r3, r2
  1311. 8000e30: 781b ldrb r3, [r3, #0]
  1312. 8000e32: 2b46 cmp r3, #70 @ 0x46
  1313. 8000e34: d809 bhi.n 8000e4a <parse_hex4+0x6e>
  1314. {
  1315. h += (unsigned int) 10 + input[i] - 'A';
  1316. 8000e36: 687a ldr r2, [r7, #4]
  1317. 8000e38: 68bb ldr r3, [r7, #8]
  1318. 8000e3a: 4413 add r3, r2
  1319. 8000e3c: 781b ldrb r3, [r3, #0]
  1320. 8000e3e: 461a mov r2, r3
  1321. 8000e40: 68fb ldr r3, [r7, #12]
  1322. 8000e42: 4413 add r3, r2
  1323. 8000e44: 3b37 subs r3, #55 @ 0x37
  1324. 8000e46: 60fb str r3, [r7, #12]
  1325. 8000e48: e017 b.n 8000e7a <parse_hex4+0x9e>
  1326. }
  1327. else if ((input[i] >= 'a') && (input[i] <= 'f'))
  1328. 8000e4a: 687a ldr r2, [r7, #4]
  1329. 8000e4c: 68bb ldr r3, [r7, #8]
  1330. 8000e4e: 4413 add r3, r2
  1331. 8000e50: 781b ldrb r3, [r3, #0]
  1332. 8000e52: 2b60 cmp r3, #96 @ 0x60
  1333. 8000e54: d90f bls.n 8000e76 <parse_hex4+0x9a>
  1334. 8000e56: 687a ldr r2, [r7, #4]
  1335. 8000e58: 68bb ldr r3, [r7, #8]
  1336. 8000e5a: 4413 add r3, r2
  1337. 8000e5c: 781b ldrb r3, [r3, #0]
  1338. 8000e5e: 2b66 cmp r3, #102 @ 0x66
  1339. 8000e60: d809 bhi.n 8000e76 <parse_hex4+0x9a>
  1340. {
  1341. h += (unsigned int) 10 + input[i] - 'a';
  1342. 8000e62: 687a ldr r2, [r7, #4]
  1343. 8000e64: 68bb ldr r3, [r7, #8]
  1344. 8000e66: 4413 add r3, r2
  1345. 8000e68: 781b ldrb r3, [r3, #0]
  1346. 8000e6a: 461a mov r2, r3
  1347. 8000e6c: 68fb ldr r3, [r7, #12]
  1348. 8000e6e: 4413 add r3, r2
  1349. 8000e70: 3b57 subs r3, #87 @ 0x57
  1350. 8000e72: 60fb str r3, [r7, #12]
  1351. 8000e74: e001 b.n 8000e7a <parse_hex4+0x9e>
  1352. }
  1353. else /* invalid */
  1354. {
  1355. return 0;
  1356. 8000e76: 2300 movs r3, #0
  1357. 8000e78: e00c b.n 8000e94 <parse_hex4+0xb8>
  1358. }
  1359. if (i < 3)
  1360. 8000e7a: 68bb ldr r3, [r7, #8]
  1361. 8000e7c: 2b02 cmp r3, #2
  1362. 8000e7e: d802 bhi.n 8000e86 <parse_hex4+0xaa>
  1363. {
  1364. /* shift left to make place for the next nibble */
  1365. h = h << 4;
  1366. 8000e80: 68fb ldr r3, [r7, #12]
  1367. 8000e82: 011b lsls r3, r3, #4
  1368. 8000e84: 60fb str r3, [r7, #12]
  1369. for (i = 0; i < 4; i++)
  1370. 8000e86: 68bb ldr r3, [r7, #8]
  1371. 8000e88: 3301 adds r3, #1
  1372. 8000e8a: 60bb str r3, [r7, #8]
  1373. 8000e8c: 68bb ldr r3, [r7, #8]
  1374. 8000e8e: 2b03 cmp r3, #3
  1375. 8000e90: d9af bls.n 8000df2 <parse_hex4+0x16>
  1376. }
  1377. }
  1378. return h;
  1379. 8000e92: 68fb ldr r3, [r7, #12]
  1380. }
  1381. 8000e94: 4618 mov r0, r3
  1382. 8000e96: 3714 adds r7, #20
  1383. 8000e98: 46bd mov sp, r7
  1384. 8000e9a: f85d 7b04 ldr.w r7, [sp], #4
  1385. 8000e9e: 4770 bx lr
  1386. 08000ea0 <utf16_literal_to_utf8>:
  1387. /* converts a UTF-16 literal to UTF-8
  1388. * A literal can be one or two sequences of the form \uXXXX */
  1389. static unsigned char utf16_literal_to_utf8(const unsigned char * const input_pointer, const unsigned char * const input_end, unsigned char **output_pointer)
  1390. {
  1391. 8000ea0: b580 push {r7, lr}
  1392. 8000ea2: b08a sub sp, #40 @ 0x28
  1393. 8000ea4: af00 add r7, sp, #0
  1394. 8000ea6: 60f8 str r0, [r7, #12]
  1395. 8000ea8: 60b9 str r1, [r7, #8]
  1396. 8000eaa: 607a str r2, [r7, #4]
  1397. long unsigned int codepoint = 0;
  1398. 8000eac: 2300 movs r3, #0
  1399. 8000eae: 627b str r3, [r7, #36] @ 0x24
  1400. unsigned int first_code = 0;
  1401. 8000eb0: 2300 movs r3, #0
  1402. 8000eb2: 61fb str r3, [r7, #28]
  1403. const unsigned char *first_sequence = input_pointer;
  1404. 8000eb4: 68fb ldr r3, [r7, #12]
  1405. 8000eb6: 61bb str r3, [r7, #24]
  1406. unsigned char utf8_length = 0;
  1407. 8000eb8: 2300 movs r3, #0
  1408. 8000eba: f887 3023 strb.w r3, [r7, #35] @ 0x23
  1409. unsigned char utf8_position = 0;
  1410. 8000ebe: 2300 movs r3, #0
  1411. 8000ec0: f887 3022 strb.w r3, [r7, #34] @ 0x22
  1412. unsigned char sequence_length = 0;
  1413. 8000ec4: 2300 movs r3, #0
  1414. 8000ec6: f887 3021 strb.w r3, [r7, #33] @ 0x21
  1415. unsigned char first_byte_mark = 0;
  1416. 8000eca: 2300 movs r3, #0
  1417. 8000ecc: f887 3020 strb.w r3, [r7, #32]
  1418. if ((input_end - first_sequence) < 6)
  1419. 8000ed0: 68ba ldr r2, [r7, #8]
  1420. 8000ed2: 69bb ldr r3, [r7, #24]
  1421. 8000ed4: 1ad3 subs r3, r2, r3
  1422. 8000ed6: 2b05 cmp r3, #5
  1423. 8000ed8: f340 80b7 ble.w 800104a <utf16_literal_to_utf8+0x1aa>
  1424. /* input ends unexpectedly */
  1425. goto fail;
  1426. }
  1427. /* get the first utf16 sequence */
  1428. first_code = parse_hex4(first_sequence + 2);
  1429. 8000edc: 69bb ldr r3, [r7, #24]
  1430. 8000ede: 3302 adds r3, #2
  1431. 8000ee0: 4618 mov r0, r3
  1432. 8000ee2: f7ff ff7b bl 8000ddc <parse_hex4>
  1433. 8000ee6: 61f8 str r0, [r7, #28]
  1434. /* check that the code is valid */
  1435. if (((first_code >= 0xDC00) && (first_code <= 0xDFFF)))
  1436. 8000ee8: 69fb ldr r3, [r7, #28]
  1437. 8000eea: f5b3 4f5c cmp.w r3, #56320 @ 0xdc00
  1438. 8000eee: d304 bcc.n 8000efa <utf16_literal_to_utf8+0x5a>
  1439. 8000ef0: 69fb ldr r3, [r7, #28]
  1440. 8000ef2: f5b3 4f60 cmp.w r3, #57344 @ 0xe000
  1441. 8000ef6: f0c0 80aa bcc.w 800104e <utf16_literal_to_utf8+0x1ae>
  1442. {
  1443. goto fail;
  1444. }
  1445. /* UTF16 surrogate pair */
  1446. if ((first_code >= 0xD800) && (first_code <= 0xDBFF))
  1447. 8000efa: 69fb ldr r3, [r7, #28]
  1448. 8000efc: f5b3 4f58 cmp.w r3, #55296 @ 0xd800
  1449. 8000f00: d337 bcc.n 8000f72 <utf16_literal_to_utf8+0xd2>
  1450. 8000f02: 69fb ldr r3, [r7, #28]
  1451. 8000f04: f5b3 4f5c cmp.w r3, #56320 @ 0xdc00
  1452. 8000f08: d233 bcs.n 8000f72 <utf16_literal_to_utf8+0xd2>
  1453. {
  1454. const unsigned char *second_sequence = first_sequence + 6;
  1455. 8000f0a: 69bb ldr r3, [r7, #24]
  1456. 8000f0c: 3306 adds r3, #6
  1457. 8000f0e: 617b str r3, [r7, #20]
  1458. unsigned int second_code = 0;
  1459. 8000f10: 2300 movs r3, #0
  1460. 8000f12: 613b str r3, [r7, #16]
  1461. sequence_length = 12; /* \uXXXX\uXXXX */
  1462. 8000f14: 230c movs r3, #12
  1463. 8000f16: f887 3021 strb.w r3, [r7, #33] @ 0x21
  1464. if ((input_end - second_sequence) < 6)
  1465. 8000f1a: 68ba ldr r2, [r7, #8]
  1466. 8000f1c: 697b ldr r3, [r7, #20]
  1467. 8000f1e: 1ad3 subs r3, r2, r3
  1468. 8000f20: 2b05 cmp r3, #5
  1469. 8000f22: f340 8096 ble.w 8001052 <utf16_literal_to_utf8+0x1b2>
  1470. {
  1471. /* input ends unexpectedly */
  1472. goto fail;
  1473. }
  1474. if ((second_sequence[0] != '\\') || (second_sequence[1] != 'u'))
  1475. 8000f26: 697b ldr r3, [r7, #20]
  1476. 8000f28: 781b ldrb r3, [r3, #0]
  1477. 8000f2a: 2b5c cmp r3, #92 @ 0x5c
  1478. 8000f2c: f040 8093 bne.w 8001056 <utf16_literal_to_utf8+0x1b6>
  1479. 8000f30: 697b ldr r3, [r7, #20]
  1480. 8000f32: 3301 adds r3, #1
  1481. 8000f34: 781b ldrb r3, [r3, #0]
  1482. 8000f36: 2b75 cmp r3, #117 @ 0x75
  1483. 8000f38: f040 808d bne.w 8001056 <utf16_literal_to_utf8+0x1b6>
  1484. /* missing second half of the surrogate pair */
  1485. goto fail;
  1486. }
  1487. /* get the second utf16 sequence */
  1488. second_code = parse_hex4(second_sequence + 2);
  1489. 8000f3c: 697b ldr r3, [r7, #20]
  1490. 8000f3e: 3302 adds r3, #2
  1491. 8000f40: 4618 mov r0, r3
  1492. 8000f42: f7ff ff4b bl 8000ddc <parse_hex4>
  1493. 8000f46: 6138 str r0, [r7, #16]
  1494. /* check that the code is valid */
  1495. if ((second_code < 0xDC00) || (second_code > 0xDFFF))
  1496. 8000f48: 693b ldr r3, [r7, #16]
  1497. 8000f4a: f5b3 4f5c cmp.w r3, #56320 @ 0xdc00
  1498. 8000f4e: f0c0 8084 bcc.w 800105a <utf16_literal_to_utf8+0x1ba>
  1499. 8000f52: 693b ldr r3, [r7, #16]
  1500. 8000f54: f5b3 4f60 cmp.w r3, #57344 @ 0xe000
  1501. 8000f58: d27f bcs.n 800105a <utf16_literal_to_utf8+0x1ba>
  1502. goto fail;
  1503. }
  1504. /* calculate the unicode codepoint from the surrogate pair */
  1505. codepoint = 0x10000 + (((first_code & 0x3FF) << 10) | (second_code & 0x3FF));
  1506. 8000f5a: 69fb ldr r3, [r7, #28]
  1507. 8000f5c: 029a lsls r2, r3, #10
  1508. 8000f5e: 4b43 ldr r3, [pc, #268] @ (800106c <utf16_literal_to_utf8+0x1cc>)
  1509. 8000f60: 4013 ands r3, r2
  1510. 8000f62: 693a ldr r2, [r7, #16]
  1511. 8000f64: f3c2 0209 ubfx r2, r2, #0, #10
  1512. 8000f68: 4313 orrs r3, r2
  1513. 8000f6a: f503 3380 add.w r3, r3, #65536 @ 0x10000
  1514. 8000f6e: 627b str r3, [r7, #36] @ 0x24
  1515. {
  1516. 8000f70: e004 b.n 8000f7c <utf16_literal_to_utf8+0xdc>
  1517. }
  1518. else
  1519. {
  1520. sequence_length = 6; /* \uXXXX */
  1521. 8000f72: 2306 movs r3, #6
  1522. 8000f74: f887 3021 strb.w r3, [r7, #33] @ 0x21
  1523. codepoint = first_code;
  1524. 8000f78: 69fb ldr r3, [r7, #28]
  1525. 8000f7a: 627b str r3, [r7, #36] @ 0x24
  1526. }
  1527. /* encode as UTF-8
  1528. * takes at maximum 4 bytes to encode:
  1529. * 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx */
  1530. if (codepoint < 0x80)
  1531. 8000f7c: 6a7b ldr r3, [r7, #36] @ 0x24
  1532. 8000f7e: 2b7f cmp r3, #127 @ 0x7f
  1533. 8000f80: d803 bhi.n 8000f8a <utf16_literal_to_utf8+0xea>
  1534. {
  1535. /* normal ascii, encoding 0xxxxxxx */
  1536. utf8_length = 1;
  1537. 8000f82: 2301 movs r3, #1
  1538. 8000f84: f887 3023 strb.w r3, [r7, #35] @ 0x23
  1539. 8000f88: e01f b.n 8000fca <utf16_literal_to_utf8+0x12a>
  1540. }
  1541. else if (codepoint < 0x800)
  1542. 8000f8a: 6a7b ldr r3, [r7, #36] @ 0x24
  1543. 8000f8c: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  1544. 8000f90: d206 bcs.n 8000fa0 <utf16_literal_to_utf8+0x100>
  1545. {
  1546. /* two bytes, encoding 110xxxxx 10xxxxxx */
  1547. utf8_length = 2;
  1548. 8000f92: 2302 movs r3, #2
  1549. 8000f94: f887 3023 strb.w r3, [r7, #35] @ 0x23
  1550. first_byte_mark = 0xC0; /* 11000000 */
  1551. 8000f98: 23c0 movs r3, #192 @ 0xc0
  1552. 8000f9a: f887 3020 strb.w r3, [r7, #32]
  1553. 8000f9e: e014 b.n 8000fca <utf16_literal_to_utf8+0x12a>
  1554. }
  1555. else if (codepoint < 0x10000)
  1556. 8000fa0: 6a7b ldr r3, [r7, #36] @ 0x24
  1557. 8000fa2: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  1558. 8000fa6: d206 bcs.n 8000fb6 <utf16_literal_to_utf8+0x116>
  1559. {
  1560. /* three bytes, encoding 1110xxxx 10xxxxxx 10xxxxxx */
  1561. utf8_length = 3;
  1562. 8000fa8: 2303 movs r3, #3
  1563. 8000faa: f887 3023 strb.w r3, [r7, #35] @ 0x23
  1564. first_byte_mark = 0xE0; /* 11100000 */
  1565. 8000fae: 23e0 movs r3, #224 @ 0xe0
  1566. 8000fb0: f887 3020 strb.w r3, [r7, #32]
  1567. 8000fb4: e009 b.n 8000fca <utf16_literal_to_utf8+0x12a>
  1568. }
  1569. else if (codepoint <= 0x10FFFF)
  1570. 8000fb6: 6a7b ldr r3, [r7, #36] @ 0x24
  1571. 8000fb8: f5b3 1f88 cmp.w r3, #1114112 @ 0x110000
  1572. 8000fbc: d24f bcs.n 800105e <utf16_literal_to_utf8+0x1be>
  1573. {
  1574. /* four bytes, encoding 1110xxxx 10xxxxxx 10xxxxxx 10xxxxxx */
  1575. utf8_length = 4;
  1576. 8000fbe: 2304 movs r3, #4
  1577. 8000fc0: f887 3023 strb.w r3, [r7, #35] @ 0x23
  1578. first_byte_mark = 0xF0; /* 11110000 */
  1579. 8000fc4: 23f0 movs r3, #240 @ 0xf0
  1580. 8000fc6: f887 3020 strb.w r3, [r7, #32]
  1581. /* invalid unicode codepoint */
  1582. goto fail;
  1583. }
  1584. /* encode as utf8 */
  1585. for (utf8_position = (unsigned char)(utf8_length - 1); utf8_position > 0; utf8_position--)
  1586. 8000fca: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  1587. 8000fce: 3b01 subs r3, #1
  1588. 8000fd0: f887 3022 strb.w r3, [r7, #34] @ 0x22
  1589. 8000fd4: e015 b.n 8001002 <utf16_literal_to_utf8+0x162>
  1590. {
  1591. /* 10xxxxxx */
  1592. (*output_pointer)[utf8_position] = (unsigned char)((codepoint | 0x80) & 0xBF);
  1593. 8000fd6: 6a7b ldr r3, [r7, #36] @ 0x24
  1594. 8000fd8: b2db uxtb r3, r3
  1595. 8000fda: f003 033f and.w r3, r3, #63 @ 0x3f
  1596. 8000fde: b2da uxtb r2, r3
  1597. 8000fe0: 687b ldr r3, [r7, #4]
  1598. 8000fe2: 6819 ldr r1, [r3, #0]
  1599. 8000fe4: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  1600. 8000fe8: 440b add r3, r1
  1601. 8000fea: f062 027f orn r2, r2, #127 @ 0x7f
  1602. 8000fee: b2d2 uxtb r2, r2
  1603. 8000ff0: 701a strb r2, [r3, #0]
  1604. codepoint >>= 6;
  1605. 8000ff2: 6a7b ldr r3, [r7, #36] @ 0x24
  1606. 8000ff4: 099b lsrs r3, r3, #6
  1607. 8000ff6: 627b str r3, [r7, #36] @ 0x24
  1608. for (utf8_position = (unsigned char)(utf8_length - 1); utf8_position > 0; utf8_position--)
  1609. 8000ff8: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  1610. 8000ffc: 3b01 subs r3, #1
  1611. 8000ffe: f887 3022 strb.w r3, [r7, #34] @ 0x22
  1612. 8001002: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  1613. 8001006: 2b00 cmp r3, #0
  1614. 8001008: d1e5 bne.n 8000fd6 <utf16_literal_to_utf8+0x136>
  1615. }
  1616. /* encode first byte */
  1617. if (utf8_length > 1)
  1618. 800100a: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  1619. 800100e: 2b01 cmp r3, #1
  1620. 8001010: d909 bls.n 8001026 <utf16_literal_to_utf8+0x186>
  1621. {
  1622. (*output_pointer)[0] = (unsigned char)((codepoint | first_byte_mark) & 0xFF);
  1623. 8001012: 6a7b ldr r3, [r7, #36] @ 0x24
  1624. 8001014: b2d9 uxtb r1, r3
  1625. 8001016: 687b ldr r3, [r7, #4]
  1626. 8001018: 681b ldr r3, [r3, #0]
  1627. 800101a: f897 2020 ldrb.w r2, [r7, #32]
  1628. 800101e: 430a orrs r2, r1
  1629. 8001020: b2d2 uxtb r2, r2
  1630. 8001022: 701a strb r2, [r3, #0]
  1631. 8001024: e007 b.n 8001036 <utf16_literal_to_utf8+0x196>
  1632. }
  1633. else
  1634. {
  1635. (*output_pointer)[0] = (unsigned char)(codepoint & 0x7F);
  1636. 8001026: 6a7b ldr r3, [r7, #36] @ 0x24
  1637. 8001028: b2da uxtb r2, r3
  1638. 800102a: 687b ldr r3, [r7, #4]
  1639. 800102c: 681b ldr r3, [r3, #0]
  1640. 800102e: f002 027f and.w r2, r2, #127 @ 0x7f
  1641. 8001032: b2d2 uxtb r2, r2
  1642. 8001034: 701a strb r2, [r3, #0]
  1643. }
  1644. *output_pointer += utf8_length;
  1645. 8001036: 687b ldr r3, [r7, #4]
  1646. 8001038: 681a ldr r2, [r3, #0]
  1647. 800103a: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  1648. 800103e: 441a add r2, r3
  1649. 8001040: 687b ldr r3, [r7, #4]
  1650. 8001042: 601a str r2, [r3, #0]
  1651. return sequence_length;
  1652. 8001044: f897 3021 ldrb.w r3, [r7, #33] @ 0x21
  1653. 8001048: e00b b.n 8001062 <utf16_literal_to_utf8+0x1c2>
  1654. goto fail;
  1655. 800104a: bf00 nop
  1656. 800104c: e008 b.n 8001060 <utf16_literal_to_utf8+0x1c0>
  1657. goto fail;
  1658. 800104e: bf00 nop
  1659. 8001050: e006 b.n 8001060 <utf16_literal_to_utf8+0x1c0>
  1660. goto fail;
  1661. 8001052: bf00 nop
  1662. 8001054: e004 b.n 8001060 <utf16_literal_to_utf8+0x1c0>
  1663. goto fail;
  1664. 8001056: bf00 nop
  1665. 8001058: e002 b.n 8001060 <utf16_literal_to_utf8+0x1c0>
  1666. goto fail;
  1667. 800105a: bf00 nop
  1668. 800105c: e000 b.n 8001060 <utf16_literal_to_utf8+0x1c0>
  1669. goto fail;
  1670. 800105e: bf00 nop
  1671. fail:
  1672. return 0;
  1673. 8001060: 2300 movs r3, #0
  1674. }
  1675. 8001062: 4618 mov r0, r3
  1676. 8001064: 3728 adds r7, #40 @ 0x28
  1677. 8001066: 46bd mov sp, r7
  1678. 8001068: bd80 pop {r7, pc}
  1679. 800106a: bf00 nop
  1680. 800106c: 000ffc00 .word 0x000ffc00
  1681. 08001070 <parse_string>:
  1682. /* Parse the input text into an unescaped cinput, and populate item. */
  1683. static cJSON_bool parse_string(cJSON * const item, parse_buffer * const input_buffer)
  1684. {
  1685. 8001070: b580 push {r7, lr}
  1686. 8001072: b08a sub sp, #40 @ 0x28
  1687. 8001074: af00 add r7, sp, #0
  1688. 8001076: 6078 str r0, [r7, #4]
  1689. 8001078: 6039 str r1, [r7, #0]
  1690. const unsigned char *input_pointer = buffer_at_offset(input_buffer) + 1;
  1691. 800107a: 683b ldr r3, [r7, #0]
  1692. 800107c: 681a ldr r2, [r3, #0]
  1693. 800107e: 683b ldr r3, [r7, #0]
  1694. 8001080: 689b ldr r3, [r3, #8]
  1695. 8001082: 3301 adds r3, #1
  1696. 8001084: 4413 add r3, r2
  1697. 8001086: 627b str r3, [r7, #36] @ 0x24
  1698. const unsigned char *input_end = buffer_at_offset(input_buffer) + 1;
  1699. 8001088: 683b ldr r3, [r7, #0]
  1700. 800108a: 681a ldr r2, [r3, #0]
  1701. 800108c: 683b ldr r3, [r7, #0]
  1702. 800108e: 689b ldr r3, [r3, #8]
  1703. 8001090: 3301 adds r3, #1
  1704. 8001092: 4413 add r3, r2
  1705. 8001094: 623b str r3, [r7, #32]
  1706. unsigned char *output_pointer = NULL;
  1707. 8001096: 2300 movs r3, #0
  1708. 8001098: 60fb str r3, [r7, #12]
  1709. unsigned char *output = NULL;
  1710. 800109a: 2300 movs r3, #0
  1711. 800109c: 61fb str r3, [r7, #28]
  1712. /* not a string */
  1713. if (buffer_at_offset(input_buffer)[0] != '\"')
  1714. 800109e: 683b ldr r3, [r7, #0]
  1715. 80010a0: 681a ldr r2, [r3, #0]
  1716. 80010a2: 683b ldr r3, [r7, #0]
  1717. 80010a4: 689b ldr r3, [r3, #8]
  1718. 80010a6: 4413 add r3, r2
  1719. 80010a8: 781b ldrb r3, [r3, #0]
  1720. 80010aa: 2b22 cmp r3, #34 @ 0x22
  1721. 80010ac: f040 8103 bne.w 80012b6 <parse_string+0x246>
  1722. goto fail;
  1723. }
  1724. {
  1725. /* calculate approximate size of the output (overestimate) */
  1726. size_t allocation_length = 0;
  1727. 80010b0: 2300 movs r3, #0
  1728. 80010b2: 613b str r3, [r7, #16]
  1729. size_t skipped_bytes = 0;
  1730. 80010b4: 2300 movs r3, #0
  1731. 80010b6: 61bb str r3, [r7, #24]
  1732. while (((size_t)(input_end - input_buffer->content) < input_buffer->length) && (*input_end != '\"'))
  1733. 80010b8: e017 b.n 80010ea <parse_string+0x7a>
  1734. {
  1735. /* is escape sequence */
  1736. if (input_end[0] == '\\')
  1737. 80010ba: 6a3b ldr r3, [r7, #32]
  1738. 80010bc: 781b ldrb r3, [r3, #0]
  1739. 80010be: 2b5c cmp r3, #92 @ 0x5c
  1740. 80010c0: d110 bne.n 80010e4 <parse_string+0x74>
  1741. {
  1742. if ((size_t)(input_end + 1 - input_buffer->content) >= input_buffer->length)
  1743. 80010c2: 6a3b ldr r3, [r7, #32]
  1744. 80010c4: 1c5a adds r2, r3, #1
  1745. 80010c6: 683b ldr r3, [r7, #0]
  1746. 80010c8: 681b ldr r3, [r3, #0]
  1747. 80010ca: 1ad3 subs r3, r2, r3
  1748. 80010cc: 461a mov r2, r3
  1749. 80010ce: 683b ldr r3, [r7, #0]
  1750. 80010d0: 685b ldr r3, [r3, #4]
  1751. 80010d2: 429a cmp r2, r3
  1752. 80010d4: f080 80f1 bcs.w 80012ba <parse_string+0x24a>
  1753. {
  1754. /* prevent buffer overflow when last input character is a backslash */
  1755. goto fail;
  1756. }
  1757. skipped_bytes++;
  1758. 80010d8: 69bb ldr r3, [r7, #24]
  1759. 80010da: 3301 adds r3, #1
  1760. 80010dc: 61bb str r3, [r7, #24]
  1761. input_end++;
  1762. 80010de: 6a3b ldr r3, [r7, #32]
  1763. 80010e0: 3301 adds r3, #1
  1764. 80010e2: 623b str r3, [r7, #32]
  1765. }
  1766. input_end++;
  1767. 80010e4: 6a3b ldr r3, [r7, #32]
  1768. 80010e6: 3301 adds r3, #1
  1769. 80010e8: 623b str r3, [r7, #32]
  1770. while (((size_t)(input_end - input_buffer->content) < input_buffer->length) && (*input_end != '\"'))
  1771. 80010ea: 683b ldr r3, [r7, #0]
  1772. 80010ec: 681b ldr r3, [r3, #0]
  1773. 80010ee: 6a3a ldr r2, [r7, #32]
  1774. 80010f0: 1ad3 subs r3, r2, r3
  1775. 80010f2: 461a mov r2, r3
  1776. 80010f4: 683b ldr r3, [r7, #0]
  1777. 80010f6: 685b ldr r3, [r3, #4]
  1778. 80010f8: 429a cmp r2, r3
  1779. 80010fa: d203 bcs.n 8001104 <parse_string+0x94>
  1780. 80010fc: 6a3b ldr r3, [r7, #32]
  1781. 80010fe: 781b ldrb r3, [r3, #0]
  1782. 8001100: 2b22 cmp r3, #34 @ 0x22
  1783. 8001102: d1da bne.n 80010ba <parse_string+0x4a>
  1784. }
  1785. if (((size_t)(input_end - input_buffer->content) >= input_buffer->length) || (*input_end != '\"'))
  1786. 8001104: 683b ldr r3, [r7, #0]
  1787. 8001106: 681b ldr r3, [r3, #0]
  1788. 8001108: 6a3a ldr r2, [r7, #32]
  1789. 800110a: 1ad3 subs r3, r2, r3
  1790. 800110c: 461a mov r2, r3
  1791. 800110e: 683b ldr r3, [r7, #0]
  1792. 8001110: 685b ldr r3, [r3, #4]
  1793. 8001112: 429a cmp r2, r3
  1794. 8001114: f080 80d3 bcs.w 80012be <parse_string+0x24e>
  1795. 8001118: 6a3b ldr r3, [r7, #32]
  1796. 800111a: 781b ldrb r3, [r3, #0]
  1797. 800111c: 2b22 cmp r3, #34 @ 0x22
  1798. 800111e: f040 80ce bne.w 80012be <parse_string+0x24e>
  1799. {
  1800. goto fail; /* string ended unexpectedly */
  1801. }
  1802. /* This is at most how much we need for the output */
  1803. allocation_length = (size_t) (input_end - buffer_at_offset(input_buffer)) - skipped_bytes;
  1804. 8001122: 683b ldr r3, [r7, #0]
  1805. 8001124: 681a ldr r2, [r3, #0]
  1806. 8001126: 683b ldr r3, [r7, #0]
  1807. 8001128: 689b ldr r3, [r3, #8]
  1808. 800112a: 4413 add r3, r2
  1809. 800112c: 6a3a ldr r2, [r7, #32]
  1810. 800112e: 1ad3 subs r3, r2, r3
  1811. 8001130: 461a mov r2, r3
  1812. 8001132: 69bb ldr r3, [r7, #24]
  1813. 8001134: 1ad3 subs r3, r2, r3
  1814. 8001136: 613b str r3, [r7, #16]
  1815. output = (unsigned char*)input_buffer->hooks.allocate(allocation_length + sizeof(""));
  1816. 8001138: 683b ldr r3, [r7, #0]
  1817. 800113a: 691b ldr r3, [r3, #16]
  1818. 800113c: 693a ldr r2, [r7, #16]
  1819. 800113e: 3201 adds r2, #1
  1820. 8001140: 4610 mov r0, r2
  1821. 8001142: 4798 blx r3
  1822. 8001144: 61f8 str r0, [r7, #28]
  1823. if (output == NULL)
  1824. 8001146: 69fb ldr r3, [r7, #28]
  1825. 8001148: 2b00 cmp r3, #0
  1826. 800114a: f000 80ba beq.w 80012c2 <parse_string+0x252>
  1827. {
  1828. goto fail; /* allocation failure */
  1829. }
  1830. }
  1831. output_pointer = output;
  1832. 800114e: 69fb ldr r3, [r7, #28]
  1833. 8001150: 60fb str r3, [r7, #12]
  1834. /* loop through the string literal */
  1835. while (input_pointer < input_end)
  1836. 8001152: e094 b.n 800127e <parse_string+0x20e>
  1837. {
  1838. if (*input_pointer != '\\')
  1839. 8001154: 6a7b ldr r3, [r7, #36] @ 0x24
  1840. 8001156: 781b ldrb r3, [r3, #0]
  1841. 8001158: 2b5c cmp r3, #92 @ 0x5c
  1842. 800115a: d008 beq.n 800116e <parse_string+0xfe>
  1843. {
  1844. *output_pointer++ = *input_pointer++;
  1845. 800115c: 6a7a ldr r2, [r7, #36] @ 0x24
  1846. 800115e: 1c53 adds r3, r2, #1
  1847. 8001160: 627b str r3, [r7, #36] @ 0x24
  1848. 8001162: 68fb ldr r3, [r7, #12]
  1849. 8001164: 1c59 adds r1, r3, #1
  1850. 8001166: 60f9 str r1, [r7, #12]
  1851. 8001168: 7812 ldrb r2, [r2, #0]
  1852. 800116a: 701a strb r2, [r3, #0]
  1853. 800116c: e087 b.n 800127e <parse_string+0x20e>
  1854. }
  1855. /* escape sequence */
  1856. else
  1857. {
  1858. unsigned char sequence_length = 2;
  1859. 800116e: 2302 movs r3, #2
  1860. 8001170: 75fb strb r3, [r7, #23]
  1861. if ((input_end - input_pointer) < 1)
  1862. 8001172: 6a3a ldr r2, [r7, #32]
  1863. 8001174: 6a7b ldr r3, [r7, #36] @ 0x24
  1864. 8001176: 1ad3 subs r3, r2, r3
  1865. 8001178: 2b00 cmp r3, #0
  1866. 800117a: f340 80a4 ble.w 80012c6 <parse_string+0x256>
  1867. {
  1868. goto fail;
  1869. }
  1870. switch (input_pointer[1])
  1871. 800117e: 6a7b ldr r3, [r7, #36] @ 0x24
  1872. 8001180: 3301 adds r3, #1
  1873. 8001182: 781b ldrb r3, [r3, #0]
  1874. 8001184: 2b75 cmp r3, #117 @ 0x75
  1875. 8001186: f300 80a0 bgt.w 80012ca <parse_string+0x25a>
  1876. 800118a: 2b5c cmp r3, #92 @ 0x5c
  1877. 800118c: da04 bge.n 8001198 <parse_string+0x128>
  1878. 800118e: 2b22 cmp r3, #34 @ 0x22
  1879. 8001190: d05c beq.n 800124c <parse_string+0x1dc>
  1880. 8001192: 2b2f cmp r3, #47 @ 0x2f
  1881. 8001194: d05a beq.n 800124c <parse_string+0x1dc>
  1882. goto fail;
  1883. }
  1884. break;
  1885. default:
  1886. goto fail;
  1887. 8001196: e098 b.n 80012ca <parse_string+0x25a>
  1888. switch (input_pointer[1])
  1889. 8001198: 3b5c subs r3, #92 @ 0x5c
  1890. 800119a: 2b19 cmp r3, #25
  1891. 800119c: f200 8095 bhi.w 80012ca <parse_string+0x25a>
  1892. 80011a0: a201 add r2, pc, #4 @ (adr r2, 80011a8 <parse_string+0x138>)
  1893. 80011a2: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  1894. 80011a6: bf00 nop
  1895. 80011a8: 0800124d .word 0x0800124d
  1896. 80011ac: 080012cb .word 0x080012cb
  1897. 80011b0: 080012cb .word 0x080012cb
  1898. 80011b4: 080012cb .word 0x080012cb
  1899. 80011b8: 080012cb .word 0x080012cb
  1900. 80011bc: 080012cb .word 0x080012cb
  1901. 80011c0: 08001211 .word 0x08001211
  1902. 80011c4: 080012cb .word 0x080012cb
  1903. 80011c8: 080012cb .word 0x080012cb
  1904. 80011cc: 080012cb .word 0x080012cb
  1905. 80011d0: 0800121d .word 0x0800121d
  1906. 80011d4: 080012cb .word 0x080012cb
  1907. 80011d8: 080012cb .word 0x080012cb
  1908. 80011dc: 080012cb .word 0x080012cb
  1909. 80011e0: 080012cb .word 0x080012cb
  1910. 80011e4: 080012cb .word 0x080012cb
  1911. 80011e8: 080012cb .word 0x080012cb
  1912. 80011ec: 080012cb .word 0x080012cb
  1913. 80011f0: 08001229 .word 0x08001229
  1914. 80011f4: 080012cb .word 0x080012cb
  1915. 80011f8: 080012cb .word 0x080012cb
  1916. 80011fc: 080012cb .word 0x080012cb
  1917. 8001200: 08001235 .word 0x08001235
  1918. 8001204: 080012cb .word 0x080012cb
  1919. 8001208: 08001241 .word 0x08001241
  1920. 800120c: 0800125d .word 0x0800125d
  1921. *output_pointer++ = '\b';
  1922. 8001210: 68fb ldr r3, [r7, #12]
  1923. 8001212: 1c5a adds r2, r3, #1
  1924. 8001214: 60fa str r2, [r7, #12]
  1925. 8001216: 2208 movs r2, #8
  1926. 8001218: 701a strb r2, [r3, #0]
  1927. break;
  1928. 800121a: e02c b.n 8001276 <parse_string+0x206>
  1929. *output_pointer++ = '\f';
  1930. 800121c: 68fb ldr r3, [r7, #12]
  1931. 800121e: 1c5a adds r2, r3, #1
  1932. 8001220: 60fa str r2, [r7, #12]
  1933. 8001222: 220c movs r2, #12
  1934. 8001224: 701a strb r2, [r3, #0]
  1935. break;
  1936. 8001226: e026 b.n 8001276 <parse_string+0x206>
  1937. *output_pointer++ = '\n';
  1938. 8001228: 68fb ldr r3, [r7, #12]
  1939. 800122a: 1c5a adds r2, r3, #1
  1940. 800122c: 60fa str r2, [r7, #12]
  1941. 800122e: 220a movs r2, #10
  1942. 8001230: 701a strb r2, [r3, #0]
  1943. break;
  1944. 8001232: e020 b.n 8001276 <parse_string+0x206>
  1945. *output_pointer++ = '\r';
  1946. 8001234: 68fb ldr r3, [r7, #12]
  1947. 8001236: 1c5a adds r2, r3, #1
  1948. 8001238: 60fa str r2, [r7, #12]
  1949. 800123a: 220d movs r2, #13
  1950. 800123c: 701a strb r2, [r3, #0]
  1951. break;
  1952. 800123e: e01a b.n 8001276 <parse_string+0x206>
  1953. *output_pointer++ = '\t';
  1954. 8001240: 68fb ldr r3, [r7, #12]
  1955. 8001242: 1c5a adds r2, r3, #1
  1956. 8001244: 60fa str r2, [r7, #12]
  1957. 8001246: 2209 movs r2, #9
  1958. 8001248: 701a strb r2, [r3, #0]
  1959. break;
  1960. 800124a: e014 b.n 8001276 <parse_string+0x206>
  1961. *output_pointer++ = input_pointer[1];
  1962. 800124c: 6a7b ldr r3, [r7, #36] @ 0x24
  1963. 800124e: 1c5a adds r2, r3, #1
  1964. 8001250: 68fb ldr r3, [r7, #12]
  1965. 8001252: 1c59 adds r1, r3, #1
  1966. 8001254: 60f9 str r1, [r7, #12]
  1967. 8001256: 7812 ldrb r2, [r2, #0]
  1968. 8001258: 701a strb r2, [r3, #0]
  1969. break;
  1970. 800125a: e00c b.n 8001276 <parse_string+0x206>
  1971. sequence_length = utf16_literal_to_utf8(input_pointer, input_end, &output_pointer);
  1972. 800125c: f107 030c add.w r3, r7, #12
  1973. 8001260: 461a mov r2, r3
  1974. 8001262: 6a39 ldr r1, [r7, #32]
  1975. 8001264: 6a78 ldr r0, [r7, #36] @ 0x24
  1976. 8001266: f7ff fe1b bl 8000ea0 <utf16_literal_to_utf8>
  1977. 800126a: 4603 mov r3, r0
  1978. 800126c: 75fb strb r3, [r7, #23]
  1979. if (sequence_length == 0)
  1980. 800126e: 7dfb ldrb r3, [r7, #23]
  1981. 8001270: 2b00 cmp r3, #0
  1982. 8001272: d02c beq.n 80012ce <parse_string+0x25e>
  1983. break;
  1984. 8001274: bf00 nop
  1985. }
  1986. input_pointer += sequence_length;
  1987. 8001276: 7dfb ldrb r3, [r7, #23]
  1988. 8001278: 6a7a ldr r2, [r7, #36] @ 0x24
  1989. 800127a: 4413 add r3, r2
  1990. 800127c: 627b str r3, [r7, #36] @ 0x24
  1991. while (input_pointer < input_end)
  1992. 800127e: 6a7a ldr r2, [r7, #36] @ 0x24
  1993. 8001280: 6a3b ldr r3, [r7, #32]
  1994. 8001282: 429a cmp r2, r3
  1995. 8001284: f4ff af66 bcc.w 8001154 <parse_string+0xe4>
  1996. }
  1997. }
  1998. /* zero terminate the output */
  1999. *output_pointer = '\0';
  2000. 8001288: 68fb ldr r3, [r7, #12]
  2001. 800128a: 2200 movs r2, #0
  2002. 800128c: 701a strb r2, [r3, #0]
  2003. item->type = cJSON_String;
  2004. 800128e: 687b ldr r3, [r7, #4]
  2005. 8001290: 2210 movs r2, #16
  2006. 8001292: 60da str r2, [r3, #12]
  2007. item->valuestring = (char*)output;
  2008. 8001294: 687b ldr r3, [r7, #4]
  2009. 8001296: 69fa ldr r2, [r7, #28]
  2010. 8001298: 611a str r2, [r3, #16]
  2011. input_buffer->offset = (size_t) (input_end - input_buffer->content);
  2012. 800129a: 683b ldr r3, [r7, #0]
  2013. 800129c: 681b ldr r3, [r3, #0]
  2014. 800129e: 6a3a ldr r2, [r7, #32]
  2015. 80012a0: 1ad3 subs r3, r2, r3
  2016. 80012a2: 461a mov r2, r3
  2017. 80012a4: 683b ldr r3, [r7, #0]
  2018. 80012a6: 609a str r2, [r3, #8]
  2019. input_buffer->offset++;
  2020. 80012a8: 683b ldr r3, [r7, #0]
  2021. 80012aa: 689b ldr r3, [r3, #8]
  2022. 80012ac: 1c5a adds r2, r3, #1
  2023. 80012ae: 683b ldr r3, [r7, #0]
  2024. 80012b0: 609a str r2, [r3, #8]
  2025. return true;
  2026. 80012b2: 2301 movs r3, #1
  2027. 80012b4: e020 b.n 80012f8 <parse_string+0x288>
  2028. goto fail;
  2029. 80012b6: bf00 nop
  2030. 80012b8: e00a b.n 80012d0 <parse_string+0x260>
  2031. goto fail;
  2032. 80012ba: bf00 nop
  2033. 80012bc: e008 b.n 80012d0 <parse_string+0x260>
  2034. goto fail; /* string ended unexpectedly */
  2035. 80012be: bf00 nop
  2036. 80012c0: e006 b.n 80012d0 <parse_string+0x260>
  2037. goto fail; /* allocation failure */
  2038. 80012c2: bf00 nop
  2039. 80012c4: e004 b.n 80012d0 <parse_string+0x260>
  2040. goto fail;
  2041. 80012c6: bf00 nop
  2042. 80012c8: e002 b.n 80012d0 <parse_string+0x260>
  2043. goto fail;
  2044. 80012ca: bf00 nop
  2045. 80012cc: e000 b.n 80012d0 <parse_string+0x260>
  2046. goto fail;
  2047. 80012ce: bf00 nop
  2048. fail:
  2049. if (output != NULL)
  2050. 80012d0: 69fb ldr r3, [r7, #28]
  2051. 80012d2: 2b00 cmp r3, #0
  2052. 80012d4: d005 beq.n 80012e2 <parse_string+0x272>
  2053. {
  2054. input_buffer->hooks.deallocate(output);
  2055. 80012d6: 683b ldr r3, [r7, #0]
  2056. 80012d8: 695b ldr r3, [r3, #20]
  2057. 80012da: 69f8 ldr r0, [r7, #28]
  2058. 80012dc: 4798 blx r3
  2059. output = NULL;
  2060. 80012de: 2300 movs r3, #0
  2061. 80012e0: 61fb str r3, [r7, #28]
  2062. }
  2063. if (input_pointer != NULL)
  2064. 80012e2: 6a7b ldr r3, [r7, #36] @ 0x24
  2065. 80012e4: 2b00 cmp r3, #0
  2066. 80012e6: d006 beq.n 80012f6 <parse_string+0x286>
  2067. {
  2068. input_buffer->offset = (size_t)(input_pointer - input_buffer->content);
  2069. 80012e8: 683b ldr r3, [r7, #0]
  2070. 80012ea: 681b ldr r3, [r3, #0]
  2071. 80012ec: 6a7a ldr r2, [r7, #36] @ 0x24
  2072. 80012ee: 1ad3 subs r3, r2, r3
  2073. 80012f0: 461a mov r2, r3
  2074. 80012f2: 683b ldr r3, [r7, #0]
  2075. 80012f4: 609a str r2, [r3, #8]
  2076. }
  2077. return false;
  2078. 80012f6: 2300 movs r3, #0
  2079. }
  2080. 80012f8: 4618 mov r0, r3
  2081. 80012fa: 3728 adds r7, #40 @ 0x28
  2082. 80012fc: 46bd mov sp, r7
  2083. 80012fe: bd80 pop {r7, pc}
  2084. 08001300 <buffer_skip_whitespace>:
  2085. static cJSON_bool parse_object(cJSON * const item, parse_buffer * const input_buffer);
  2086. static cJSON_bool print_object(const cJSON * const item, printbuffer * const output_buffer);
  2087. /* Utility to jump whitespace and cr/lf */
  2088. static parse_buffer *buffer_skip_whitespace(parse_buffer * const buffer)
  2089. {
  2090. 8001300: b480 push {r7}
  2091. 8001302: b083 sub sp, #12
  2092. 8001304: af00 add r7, sp, #0
  2093. 8001306: 6078 str r0, [r7, #4]
  2094. if ((buffer == NULL) || (buffer->content == NULL))
  2095. 8001308: 687b ldr r3, [r7, #4]
  2096. 800130a: 2b00 cmp r3, #0
  2097. 800130c: d003 beq.n 8001316 <buffer_skip_whitespace+0x16>
  2098. 800130e: 687b ldr r3, [r7, #4]
  2099. 8001310: 681b ldr r3, [r3, #0]
  2100. 8001312: 2b00 cmp r3, #0
  2101. 8001314: d101 bne.n 800131a <buffer_skip_whitespace+0x1a>
  2102. {
  2103. return NULL;
  2104. 8001316: 2300 movs r3, #0
  2105. 8001318: e02c b.n 8001374 <buffer_skip_whitespace+0x74>
  2106. }
  2107. if (cannot_access_at_index(buffer, 0))
  2108. 800131a: 687b ldr r3, [r7, #4]
  2109. 800131c: 2b00 cmp r3, #0
  2110. 800131e: d005 beq.n 800132c <buffer_skip_whitespace+0x2c>
  2111. 8001320: 687b ldr r3, [r7, #4]
  2112. 8001322: 689a ldr r2, [r3, #8]
  2113. 8001324: 687b ldr r3, [r7, #4]
  2114. 8001326: 685b ldr r3, [r3, #4]
  2115. 8001328: 429a cmp r2, r3
  2116. 800132a: d306 bcc.n 800133a <buffer_skip_whitespace+0x3a>
  2117. {
  2118. return buffer;
  2119. 800132c: 687b ldr r3, [r7, #4]
  2120. 800132e: e021 b.n 8001374 <buffer_skip_whitespace+0x74>
  2121. }
  2122. while (can_access_at_index(buffer, 0) && (buffer_at_offset(buffer)[0] <= 32))
  2123. {
  2124. buffer->offset++;
  2125. 8001330: 687b ldr r3, [r7, #4]
  2126. 8001332: 689b ldr r3, [r3, #8]
  2127. 8001334: 1c5a adds r2, r3, #1
  2128. 8001336: 687b ldr r3, [r7, #4]
  2129. 8001338: 609a str r2, [r3, #8]
  2130. while (can_access_at_index(buffer, 0) && (buffer_at_offset(buffer)[0] <= 32))
  2131. 800133a: 687b ldr r3, [r7, #4]
  2132. 800133c: 2b00 cmp r3, #0
  2133. 800133e: d00d beq.n 800135c <buffer_skip_whitespace+0x5c>
  2134. 8001340: 687b ldr r3, [r7, #4]
  2135. 8001342: 689a ldr r2, [r3, #8]
  2136. 8001344: 687b ldr r3, [r7, #4]
  2137. 8001346: 685b ldr r3, [r3, #4]
  2138. 8001348: 429a cmp r2, r3
  2139. 800134a: d207 bcs.n 800135c <buffer_skip_whitespace+0x5c>
  2140. 800134c: 687b ldr r3, [r7, #4]
  2141. 800134e: 681a ldr r2, [r3, #0]
  2142. 8001350: 687b ldr r3, [r7, #4]
  2143. 8001352: 689b ldr r3, [r3, #8]
  2144. 8001354: 4413 add r3, r2
  2145. 8001356: 781b ldrb r3, [r3, #0]
  2146. 8001358: 2b20 cmp r3, #32
  2147. 800135a: d9e9 bls.n 8001330 <buffer_skip_whitespace+0x30>
  2148. }
  2149. if (buffer->offset == buffer->length)
  2150. 800135c: 687b ldr r3, [r7, #4]
  2151. 800135e: 689a ldr r2, [r3, #8]
  2152. 8001360: 687b ldr r3, [r7, #4]
  2153. 8001362: 685b ldr r3, [r3, #4]
  2154. 8001364: 429a cmp r2, r3
  2155. 8001366: d104 bne.n 8001372 <buffer_skip_whitespace+0x72>
  2156. {
  2157. buffer->offset--;
  2158. 8001368: 687b ldr r3, [r7, #4]
  2159. 800136a: 689b ldr r3, [r3, #8]
  2160. 800136c: 1e5a subs r2, r3, #1
  2161. 800136e: 687b ldr r3, [r7, #4]
  2162. 8001370: 609a str r2, [r3, #8]
  2163. }
  2164. return buffer;
  2165. 8001372: 687b ldr r3, [r7, #4]
  2166. }
  2167. 8001374: 4618 mov r0, r3
  2168. 8001376: 370c adds r7, #12
  2169. 8001378: 46bd mov sp, r7
  2170. 800137a: f85d 7b04 ldr.w r7, [sp], #4
  2171. 800137e: 4770 bx lr
  2172. 08001380 <skip_utf8_bom>:
  2173. /* skip the UTF-8 BOM (byte order mark) if it is at the beginning of a buffer */
  2174. static parse_buffer *skip_utf8_bom(parse_buffer * const buffer)
  2175. {
  2176. 8001380: b580 push {r7, lr}
  2177. 8001382: b082 sub sp, #8
  2178. 8001384: af00 add r7, sp, #0
  2179. 8001386: 6078 str r0, [r7, #4]
  2180. if ((buffer == NULL) || (buffer->content == NULL) || (buffer->offset != 0))
  2181. 8001388: 687b ldr r3, [r7, #4]
  2182. 800138a: 2b00 cmp r3, #0
  2183. 800138c: d007 beq.n 800139e <skip_utf8_bom+0x1e>
  2184. 800138e: 687b ldr r3, [r7, #4]
  2185. 8001390: 681b ldr r3, [r3, #0]
  2186. 8001392: 2b00 cmp r3, #0
  2187. 8001394: d003 beq.n 800139e <skip_utf8_bom+0x1e>
  2188. 8001396: 687b ldr r3, [r7, #4]
  2189. 8001398: 689b ldr r3, [r3, #8]
  2190. 800139a: 2b00 cmp r3, #0
  2191. 800139c: d001 beq.n 80013a2 <skip_utf8_bom+0x22>
  2192. {
  2193. return NULL;
  2194. 800139e: 2300 movs r3, #0
  2195. 80013a0: e01c b.n 80013dc <skip_utf8_bom+0x5c>
  2196. }
  2197. if (can_access_at_index(buffer, 4) && (strncmp((const char*)buffer_at_offset(buffer), "\xEF\xBB\xBF", 3) == 0))
  2198. 80013a2: 687b ldr r3, [r7, #4]
  2199. 80013a4: 2b00 cmp r3, #0
  2200. 80013a6: d018 beq.n 80013da <skip_utf8_bom+0x5a>
  2201. 80013a8: 687b ldr r3, [r7, #4]
  2202. 80013aa: 689b ldr r3, [r3, #8]
  2203. 80013ac: 1d1a adds r2, r3, #4
  2204. 80013ae: 687b ldr r3, [r7, #4]
  2205. 80013b0: 685b ldr r3, [r3, #4]
  2206. 80013b2: 429a cmp r2, r3
  2207. 80013b4: d211 bcs.n 80013da <skip_utf8_bom+0x5a>
  2208. 80013b6: 687b ldr r3, [r7, #4]
  2209. 80013b8: 681a ldr r2, [r3, #0]
  2210. 80013ba: 687b ldr r3, [r7, #4]
  2211. 80013bc: 689b ldr r3, [r3, #8]
  2212. 80013be: 4413 add r3, r2
  2213. 80013c0: 2203 movs r2, #3
  2214. 80013c2: 4908 ldr r1, [pc, #32] @ (80013e4 <skip_utf8_bom+0x64>)
  2215. 80013c4: 4618 mov r0, r3
  2216. 80013c6: f028 fa3b bl 8029840 <strncmp>
  2217. 80013ca: 4603 mov r3, r0
  2218. 80013cc: 2b00 cmp r3, #0
  2219. 80013ce: d104 bne.n 80013da <skip_utf8_bom+0x5a>
  2220. {
  2221. buffer->offset += 3;
  2222. 80013d0: 687b ldr r3, [r7, #4]
  2223. 80013d2: 689b ldr r3, [r3, #8]
  2224. 80013d4: 1cda adds r2, r3, #3
  2225. 80013d6: 687b ldr r3, [r7, #4]
  2226. 80013d8: 609a str r2, [r3, #8]
  2227. }
  2228. return buffer;
  2229. 80013da: 687b ldr r3, [r7, #4]
  2230. }
  2231. 80013dc: 4618 mov r0, r3
  2232. 80013de: 3708 adds r7, #8
  2233. 80013e0: 46bd mov sp, r7
  2234. 80013e2: bd80 pop {r7, pc}
  2235. 80013e4: 0802bfc8 .word 0x0802bfc8
  2236. 080013e8 <cJSON_ParseWithOpts>:
  2237. CJSON_PUBLIC(cJSON *) cJSON_ParseWithOpts(const char *value, const char **return_parse_end, cJSON_bool require_null_terminated)
  2238. {
  2239. 80013e8: b580 push {r7, lr}
  2240. 80013ea: b086 sub sp, #24
  2241. 80013ec: af00 add r7, sp, #0
  2242. 80013ee: 60f8 str r0, [r7, #12]
  2243. 80013f0: 60b9 str r1, [r7, #8]
  2244. 80013f2: 607a str r2, [r7, #4]
  2245. size_t buffer_length;
  2246. if (NULL == value)
  2247. 80013f4: 68fb ldr r3, [r7, #12]
  2248. 80013f6: 2b00 cmp r3, #0
  2249. 80013f8: d101 bne.n 80013fe <cJSON_ParseWithOpts+0x16>
  2250. {
  2251. return NULL;
  2252. 80013fa: 2300 movs r3, #0
  2253. 80013fc: e00c b.n 8001418 <cJSON_ParseWithOpts+0x30>
  2254. }
  2255. /* Adding null character size due to require_null_terminated. */
  2256. buffer_length = strlen(value) + sizeof("");
  2257. 80013fe: 68f8 ldr r0, [r7, #12]
  2258. 8001400: f7fe ffce bl 80003a0 <strlen>
  2259. 8001404: 4603 mov r3, r0
  2260. 8001406: 3301 adds r3, #1
  2261. 8001408: 617b str r3, [r7, #20]
  2262. return cJSON_ParseWithLengthOpts(value, buffer_length, return_parse_end, require_null_terminated);
  2263. 800140a: 687b ldr r3, [r7, #4]
  2264. 800140c: 68ba ldr r2, [r7, #8]
  2265. 800140e: 6979 ldr r1, [r7, #20]
  2266. 8001410: 68f8 ldr r0, [r7, #12]
  2267. 8001412: f000 f805 bl 8001420 <cJSON_ParseWithLengthOpts>
  2268. 8001416: 4603 mov r3, r0
  2269. }
  2270. 8001418: 4618 mov r0, r3
  2271. 800141a: 3718 adds r7, #24
  2272. 800141c: 46bd mov sp, r7
  2273. 800141e: bd80 pop {r7, pc}
  2274. 08001420 <cJSON_ParseWithLengthOpts>:
  2275. /* Parse an object - create a new root, and populate. */
  2276. CJSON_PUBLIC(cJSON *) cJSON_ParseWithLengthOpts(const char *value, size_t buffer_length, const char **return_parse_end, cJSON_bool require_null_terminated)
  2277. {
  2278. 8001420: b580 push {r7, lr}
  2279. 8001422: b08e sub sp, #56 @ 0x38
  2280. 8001424: af00 add r7, sp, #0
  2281. 8001426: 60f8 str r0, [r7, #12]
  2282. 8001428: 60b9 str r1, [r7, #8]
  2283. 800142a: 607a str r2, [r7, #4]
  2284. 800142c: 603b str r3, [r7, #0]
  2285. parse_buffer buffer = { 0, 0, 0, 0, { 0, 0, 0 } };
  2286. 800142e: f107 0318 add.w r3, r7, #24
  2287. 8001432: 2200 movs r2, #0
  2288. 8001434: 601a str r2, [r3, #0]
  2289. 8001436: 605a str r2, [r3, #4]
  2290. 8001438: 609a str r2, [r3, #8]
  2291. 800143a: 60da str r2, [r3, #12]
  2292. 800143c: 611a str r2, [r3, #16]
  2293. 800143e: 615a str r2, [r3, #20]
  2294. 8001440: 619a str r2, [r3, #24]
  2295. cJSON *item = NULL;
  2296. 8001442: 2300 movs r3, #0
  2297. 8001444: 637b str r3, [r7, #52] @ 0x34
  2298. /* reset error position */
  2299. global_error.json = NULL;
  2300. 8001446: 4b41 ldr r3, [pc, #260] @ (800154c <cJSON_ParseWithLengthOpts+0x12c>)
  2301. 8001448: 2200 movs r2, #0
  2302. 800144a: 601a str r2, [r3, #0]
  2303. global_error.position = 0;
  2304. 800144c: 4b3f ldr r3, [pc, #252] @ (800154c <cJSON_ParseWithLengthOpts+0x12c>)
  2305. 800144e: 2200 movs r2, #0
  2306. 8001450: 605a str r2, [r3, #4]
  2307. if (value == NULL || 0 == buffer_length)
  2308. 8001452: 68fb ldr r3, [r7, #12]
  2309. 8001454: 2b00 cmp r3, #0
  2310. 8001456: d042 beq.n 80014de <cJSON_ParseWithLengthOpts+0xbe>
  2311. 8001458: 68bb ldr r3, [r7, #8]
  2312. 800145a: 2b00 cmp r3, #0
  2313. 800145c: d03f beq.n 80014de <cJSON_ParseWithLengthOpts+0xbe>
  2314. {
  2315. goto fail;
  2316. }
  2317. buffer.content = (const unsigned char*)value;
  2318. 800145e: 68fb ldr r3, [r7, #12]
  2319. 8001460: 61bb str r3, [r7, #24]
  2320. buffer.length = buffer_length;
  2321. 8001462: 68bb ldr r3, [r7, #8]
  2322. 8001464: 61fb str r3, [r7, #28]
  2323. buffer.offset = 0;
  2324. 8001466: 2300 movs r3, #0
  2325. 8001468: 623b str r3, [r7, #32]
  2326. buffer.hooks = global_hooks;
  2327. 800146a: 4a39 ldr r2, [pc, #228] @ (8001550 <cJSON_ParseWithLengthOpts+0x130>)
  2328. 800146c: f107 0328 add.w r3, r7, #40 @ 0x28
  2329. 8001470: ca07 ldmia r2, {r0, r1, r2}
  2330. 8001472: e883 0007 stmia.w r3, {r0, r1, r2}
  2331. item = cJSON_New_Item(&global_hooks);
  2332. 8001476: 4836 ldr r0, [pc, #216] @ (8001550 <cJSON_ParseWithLengthOpts+0x130>)
  2333. 8001478: f7ff fb72 bl 8000b60 <cJSON_New_Item>
  2334. 800147c: 6378 str r0, [r7, #52] @ 0x34
  2335. if (item == NULL) /* memory fail */
  2336. 800147e: 6b7b ldr r3, [r7, #52] @ 0x34
  2337. 8001480: 2b00 cmp r3, #0
  2338. 8001482: d02e beq.n 80014e2 <cJSON_ParseWithLengthOpts+0xc2>
  2339. {
  2340. goto fail;
  2341. }
  2342. if (!parse_value(item, buffer_skip_whitespace(skip_utf8_bom(&buffer))))
  2343. 8001484: f107 0318 add.w r3, r7, #24
  2344. 8001488: 4618 mov r0, r3
  2345. 800148a: f7ff ff79 bl 8001380 <skip_utf8_bom>
  2346. 800148e: 4603 mov r3, r0
  2347. 8001490: 4618 mov r0, r3
  2348. 8001492: f7ff ff35 bl 8001300 <buffer_skip_whitespace>
  2349. 8001496: 4603 mov r3, r0
  2350. 8001498: 4619 mov r1, r3
  2351. 800149a: 6b78 ldr r0, [r7, #52] @ 0x34
  2352. 800149c: f000 f868 bl 8001570 <parse_value>
  2353. 80014a0: 4603 mov r3, r0
  2354. 80014a2: 2b00 cmp r3, #0
  2355. 80014a4: d01f beq.n 80014e6 <cJSON_ParseWithLengthOpts+0xc6>
  2356. /* parse failure. ep is set. */
  2357. goto fail;
  2358. }
  2359. /* if we require null-terminated JSON without appended garbage, skip and then check for a null terminator */
  2360. if (require_null_terminated)
  2361. 80014a6: 683b ldr r3, [r7, #0]
  2362. 80014a8: 2b00 cmp r3, #0
  2363. 80014aa: d00e beq.n 80014ca <cJSON_ParseWithLengthOpts+0xaa>
  2364. {
  2365. buffer_skip_whitespace(&buffer);
  2366. 80014ac: f107 0318 add.w r3, r7, #24
  2367. 80014b0: 4618 mov r0, r3
  2368. 80014b2: f7ff ff25 bl 8001300 <buffer_skip_whitespace>
  2369. if ((buffer.offset >= buffer.length) || buffer_at_offset(&buffer)[0] != '\0')
  2370. 80014b6: 6a3a ldr r2, [r7, #32]
  2371. 80014b8: 69fb ldr r3, [r7, #28]
  2372. 80014ba: 429a cmp r2, r3
  2373. 80014bc: d215 bcs.n 80014ea <cJSON_ParseWithLengthOpts+0xca>
  2374. 80014be: 69ba ldr r2, [r7, #24]
  2375. 80014c0: 6a3b ldr r3, [r7, #32]
  2376. 80014c2: 4413 add r3, r2
  2377. 80014c4: 781b ldrb r3, [r3, #0]
  2378. 80014c6: 2b00 cmp r3, #0
  2379. 80014c8: d10f bne.n 80014ea <cJSON_ParseWithLengthOpts+0xca>
  2380. {
  2381. goto fail;
  2382. }
  2383. }
  2384. if (return_parse_end)
  2385. 80014ca: 687b ldr r3, [r7, #4]
  2386. 80014cc: 2b00 cmp r3, #0
  2387. 80014ce: d004 beq.n 80014da <cJSON_ParseWithLengthOpts+0xba>
  2388. {
  2389. *return_parse_end = (const char*)buffer_at_offset(&buffer);
  2390. 80014d0: 69ba ldr r2, [r7, #24]
  2391. 80014d2: 6a3b ldr r3, [r7, #32]
  2392. 80014d4: 441a add r2, r3
  2393. 80014d6: 687b ldr r3, [r7, #4]
  2394. 80014d8: 601a str r2, [r3, #0]
  2395. }
  2396. return item;
  2397. 80014da: 6b7b ldr r3, [r7, #52] @ 0x34
  2398. 80014dc: e031 b.n 8001542 <cJSON_ParseWithLengthOpts+0x122>
  2399. goto fail;
  2400. 80014de: bf00 nop
  2401. 80014e0: e004 b.n 80014ec <cJSON_ParseWithLengthOpts+0xcc>
  2402. goto fail;
  2403. 80014e2: bf00 nop
  2404. 80014e4: e002 b.n 80014ec <cJSON_ParseWithLengthOpts+0xcc>
  2405. goto fail;
  2406. 80014e6: bf00 nop
  2407. 80014e8: e000 b.n 80014ec <cJSON_ParseWithLengthOpts+0xcc>
  2408. goto fail;
  2409. 80014ea: bf00 nop
  2410. fail:
  2411. if (item != NULL)
  2412. 80014ec: 6b7b ldr r3, [r7, #52] @ 0x34
  2413. 80014ee: 2b00 cmp r3, #0
  2414. 80014f0: d002 beq.n 80014f8 <cJSON_ParseWithLengthOpts+0xd8>
  2415. {
  2416. cJSON_Delete(item);
  2417. 80014f2: 6b78 ldr r0, [r7, #52] @ 0x34
  2418. 80014f4: f7ff fb4a bl 8000b8c <cJSON_Delete>
  2419. }
  2420. if (value != NULL)
  2421. 80014f8: 68fb ldr r3, [r7, #12]
  2422. 80014fa: 2b00 cmp r3, #0
  2423. 80014fc: d020 beq.n 8001540 <cJSON_ParseWithLengthOpts+0x120>
  2424. {
  2425. error local_error;
  2426. local_error.json = (const unsigned char*)value;
  2427. 80014fe: 68fb ldr r3, [r7, #12]
  2428. 8001500: 613b str r3, [r7, #16]
  2429. local_error.position = 0;
  2430. 8001502: 2300 movs r3, #0
  2431. 8001504: 617b str r3, [r7, #20]
  2432. if (buffer.offset < buffer.length)
  2433. 8001506: 6a3a ldr r2, [r7, #32]
  2434. 8001508: 69fb ldr r3, [r7, #28]
  2435. 800150a: 429a cmp r2, r3
  2436. 800150c: d202 bcs.n 8001514 <cJSON_ParseWithLengthOpts+0xf4>
  2437. {
  2438. local_error.position = buffer.offset;
  2439. 800150e: 6a3b ldr r3, [r7, #32]
  2440. 8001510: 617b str r3, [r7, #20]
  2441. 8001512: e005 b.n 8001520 <cJSON_ParseWithLengthOpts+0x100>
  2442. }
  2443. else if (buffer.length > 0)
  2444. 8001514: 69fb ldr r3, [r7, #28]
  2445. 8001516: 2b00 cmp r3, #0
  2446. 8001518: d002 beq.n 8001520 <cJSON_ParseWithLengthOpts+0x100>
  2447. {
  2448. local_error.position = buffer.length - 1;
  2449. 800151a: 69fb ldr r3, [r7, #28]
  2450. 800151c: 3b01 subs r3, #1
  2451. 800151e: 617b str r3, [r7, #20]
  2452. }
  2453. if (return_parse_end != NULL)
  2454. 8001520: 687b ldr r3, [r7, #4]
  2455. 8001522: 2b00 cmp r3, #0
  2456. 8001524: d004 beq.n 8001530 <cJSON_ParseWithLengthOpts+0x110>
  2457. {
  2458. *return_parse_end = (const char*)local_error.json + local_error.position;
  2459. 8001526: 693a ldr r2, [r7, #16]
  2460. 8001528: 697b ldr r3, [r7, #20]
  2461. 800152a: 441a add r2, r3
  2462. 800152c: 687b ldr r3, [r7, #4]
  2463. 800152e: 601a str r2, [r3, #0]
  2464. }
  2465. global_error = local_error;
  2466. 8001530: 4b06 ldr r3, [pc, #24] @ (800154c <cJSON_ParseWithLengthOpts+0x12c>)
  2467. 8001532: 461a mov r2, r3
  2468. 8001534: f107 0310 add.w r3, r7, #16
  2469. 8001538: e893 0003 ldmia.w r3, {r0, r1}
  2470. 800153c: e882 0003 stmia.w r2, {r0, r1}
  2471. }
  2472. return NULL;
  2473. 8001540: 2300 movs r3, #0
  2474. }
  2475. 8001542: 4618 mov r0, r3
  2476. 8001544: 3738 adds r7, #56 @ 0x38
  2477. 8001546: 46bd mov sp, r7
  2478. 8001548: bd80 pop {r7, pc}
  2479. 800154a: bf00 nop
  2480. 800154c: 2400022c .word 0x2400022c
  2481. 8001550: 24000000 .word 0x24000000
  2482. 08001554 <cJSON_Parse>:
  2483. /* Default options for cJSON_Parse */
  2484. CJSON_PUBLIC(cJSON *) cJSON_Parse(const char *value)
  2485. {
  2486. 8001554: b580 push {r7, lr}
  2487. 8001556: b082 sub sp, #8
  2488. 8001558: af00 add r7, sp, #0
  2489. 800155a: 6078 str r0, [r7, #4]
  2490. return cJSON_ParseWithOpts(value, 0, 0);
  2491. 800155c: 2200 movs r2, #0
  2492. 800155e: 2100 movs r1, #0
  2493. 8001560: 6878 ldr r0, [r7, #4]
  2494. 8001562: f7ff ff41 bl 80013e8 <cJSON_ParseWithOpts>
  2495. 8001566: 4603 mov r3, r0
  2496. }
  2497. 8001568: 4618 mov r0, r3
  2498. 800156a: 3708 adds r7, #8
  2499. 800156c: 46bd mov sp, r7
  2500. 800156e: bd80 pop {r7, pc}
  2501. 08001570 <parse_value>:
  2502. return print_value(item, &p);
  2503. }
  2504. /* Parser core - when encountering text, process appropriately. */
  2505. static cJSON_bool parse_value(cJSON * const item, parse_buffer * const input_buffer)
  2506. {
  2507. 8001570: b580 push {r7, lr}
  2508. 8001572: b082 sub sp, #8
  2509. 8001574: af00 add r7, sp, #0
  2510. 8001576: 6078 str r0, [r7, #4]
  2511. 8001578: 6039 str r1, [r7, #0]
  2512. if ((input_buffer == NULL) || (input_buffer->content == NULL))
  2513. 800157a: 683b ldr r3, [r7, #0]
  2514. 800157c: 2b00 cmp r3, #0
  2515. 800157e: d003 beq.n 8001588 <parse_value+0x18>
  2516. 8001580: 683b ldr r3, [r7, #0]
  2517. 8001582: 681b ldr r3, [r3, #0]
  2518. 8001584: 2b00 cmp r3, #0
  2519. 8001586: d101 bne.n 800158c <parse_value+0x1c>
  2520. {
  2521. return false; /* no input */
  2522. 8001588: 2300 movs r3, #0
  2523. 800158a: e0d2 b.n 8001732 <parse_value+0x1c2>
  2524. }
  2525. /* parse the different types of values */
  2526. /* null */
  2527. if (can_read(input_buffer, 4) && (strncmp((const char*)buffer_at_offset(input_buffer), "null", 4) == 0))
  2528. 800158c: 683b ldr r3, [r7, #0]
  2529. 800158e: 2b00 cmp r3, #0
  2530. 8001590: d01d beq.n 80015ce <parse_value+0x5e>
  2531. 8001592: 683b ldr r3, [r7, #0]
  2532. 8001594: 689b ldr r3, [r3, #8]
  2533. 8001596: 1d1a adds r2, r3, #4
  2534. 8001598: 683b ldr r3, [r7, #0]
  2535. 800159a: 685b ldr r3, [r3, #4]
  2536. 800159c: 429a cmp r2, r3
  2537. 800159e: d816 bhi.n 80015ce <parse_value+0x5e>
  2538. 80015a0: 683b ldr r3, [r7, #0]
  2539. 80015a2: 681a ldr r2, [r3, #0]
  2540. 80015a4: 683b ldr r3, [r7, #0]
  2541. 80015a6: 689b ldr r3, [r3, #8]
  2542. 80015a8: 4413 add r3, r2
  2543. 80015aa: 2204 movs r2, #4
  2544. 80015ac: 4963 ldr r1, [pc, #396] @ (800173c <parse_value+0x1cc>)
  2545. 80015ae: 4618 mov r0, r3
  2546. 80015b0: f028 f946 bl 8029840 <strncmp>
  2547. 80015b4: 4603 mov r3, r0
  2548. 80015b6: 2b00 cmp r3, #0
  2549. 80015b8: d109 bne.n 80015ce <parse_value+0x5e>
  2550. {
  2551. item->type = cJSON_NULL;
  2552. 80015ba: 687b ldr r3, [r7, #4]
  2553. 80015bc: 2204 movs r2, #4
  2554. 80015be: 60da str r2, [r3, #12]
  2555. input_buffer->offset += 4;
  2556. 80015c0: 683b ldr r3, [r7, #0]
  2557. 80015c2: 689b ldr r3, [r3, #8]
  2558. 80015c4: 1d1a adds r2, r3, #4
  2559. 80015c6: 683b ldr r3, [r7, #0]
  2560. 80015c8: 609a str r2, [r3, #8]
  2561. return true;
  2562. 80015ca: 2301 movs r3, #1
  2563. 80015cc: e0b1 b.n 8001732 <parse_value+0x1c2>
  2564. }
  2565. /* false */
  2566. if (can_read(input_buffer, 5) && (strncmp((const char*)buffer_at_offset(input_buffer), "false", 5) == 0))
  2567. 80015ce: 683b ldr r3, [r7, #0]
  2568. 80015d0: 2b00 cmp r3, #0
  2569. 80015d2: d01d beq.n 8001610 <parse_value+0xa0>
  2570. 80015d4: 683b ldr r3, [r7, #0]
  2571. 80015d6: 689b ldr r3, [r3, #8]
  2572. 80015d8: 1d5a adds r2, r3, #5
  2573. 80015da: 683b ldr r3, [r7, #0]
  2574. 80015dc: 685b ldr r3, [r3, #4]
  2575. 80015de: 429a cmp r2, r3
  2576. 80015e0: d816 bhi.n 8001610 <parse_value+0xa0>
  2577. 80015e2: 683b ldr r3, [r7, #0]
  2578. 80015e4: 681a ldr r2, [r3, #0]
  2579. 80015e6: 683b ldr r3, [r7, #0]
  2580. 80015e8: 689b ldr r3, [r3, #8]
  2581. 80015ea: 4413 add r3, r2
  2582. 80015ec: 2205 movs r2, #5
  2583. 80015ee: 4954 ldr r1, [pc, #336] @ (8001740 <parse_value+0x1d0>)
  2584. 80015f0: 4618 mov r0, r3
  2585. 80015f2: f028 f925 bl 8029840 <strncmp>
  2586. 80015f6: 4603 mov r3, r0
  2587. 80015f8: 2b00 cmp r3, #0
  2588. 80015fa: d109 bne.n 8001610 <parse_value+0xa0>
  2589. {
  2590. item->type = cJSON_False;
  2591. 80015fc: 687b ldr r3, [r7, #4]
  2592. 80015fe: 2201 movs r2, #1
  2593. 8001600: 60da str r2, [r3, #12]
  2594. input_buffer->offset += 5;
  2595. 8001602: 683b ldr r3, [r7, #0]
  2596. 8001604: 689b ldr r3, [r3, #8]
  2597. 8001606: 1d5a adds r2, r3, #5
  2598. 8001608: 683b ldr r3, [r7, #0]
  2599. 800160a: 609a str r2, [r3, #8]
  2600. return true;
  2601. 800160c: 2301 movs r3, #1
  2602. 800160e: e090 b.n 8001732 <parse_value+0x1c2>
  2603. }
  2604. /* true */
  2605. if (can_read(input_buffer, 4) && (strncmp((const char*)buffer_at_offset(input_buffer), "true", 4) == 0))
  2606. 8001610: 683b ldr r3, [r7, #0]
  2607. 8001612: 2b00 cmp r3, #0
  2608. 8001614: d020 beq.n 8001658 <parse_value+0xe8>
  2609. 8001616: 683b ldr r3, [r7, #0]
  2610. 8001618: 689b ldr r3, [r3, #8]
  2611. 800161a: 1d1a adds r2, r3, #4
  2612. 800161c: 683b ldr r3, [r7, #0]
  2613. 800161e: 685b ldr r3, [r3, #4]
  2614. 8001620: 429a cmp r2, r3
  2615. 8001622: d819 bhi.n 8001658 <parse_value+0xe8>
  2616. 8001624: 683b ldr r3, [r7, #0]
  2617. 8001626: 681a ldr r2, [r3, #0]
  2618. 8001628: 683b ldr r3, [r7, #0]
  2619. 800162a: 689b ldr r3, [r3, #8]
  2620. 800162c: 4413 add r3, r2
  2621. 800162e: 2204 movs r2, #4
  2622. 8001630: 4944 ldr r1, [pc, #272] @ (8001744 <parse_value+0x1d4>)
  2623. 8001632: 4618 mov r0, r3
  2624. 8001634: f028 f904 bl 8029840 <strncmp>
  2625. 8001638: 4603 mov r3, r0
  2626. 800163a: 2b00 cmp r3, #0
  2627. 800163c: d10c bne.n 8001658 <parse_value+0xe8>
  2628. {
  2629. item->type = cJSON_True;
  2630. 800163e: 687b ldr r3, [r7, #4]
  2631. 8001640: 2202 movs r2, #2
  2632. 8001642: 60da str r2, [r3, #12]
  2633. item->valueint = 1;
  2634. 8001644: 687b ldr r3, [r7, #4]
  2635. 8001646: 2201 movs r2, #1
  2636. 8001648: 615a str r2, [r3, #20]
  2637. input_buffer->offset += 4;
  2638. 800164a: 683b ldr r3, [r7, #0]
  2639. 800164c: 689b ldr r3, [r3, #8]
  2640. 800164e: 1d1a adds r2, r3, #4
  2641. 8001650: 683b ldr r3, [r7, #0]
  2642. 8001652: 609a str r2, [r3, #8]
  2643. return true;
  2644. 8001654: 2301 movs r3, #1
  2645. 8001656: e06c b.n 8001732 <parse_value+0x1c2>
  2646. }
  2647. /* string */
  2648. if (can_access_at_index(input_buffer, 0) && (buffer_at_offset(input_buffer)[0] == '\"'))
  2649. 8001658: 683b ldr r3, [r7, #0]
  2650. 800165a: 2b00 cmp r3, #0
  2651. 800165c: d013 beq.n 8001686 <parse_value+0x116>
  2652. 800165e: 683b ldr r3, [r7, #0]
  2653. 8001660: 689a ldr r2, [r3, #8]
  2654. 8001662: 683b ldr r3, [r7, #0]
  2655. 8001664: 685b ldr r3, [r3, #4]
  2656. 8001666: 429a cmp r2, r3
  2657. 8001668: d20d bcs.n 8001686 <parse_value+0x116>
  2658. 800166a: 683b ldr r3, [r7, #0]
  2659. 800166c: 681a ldr r2, [r3, #0]
  2660. 800166e: 683b ldr r3, [r7, #0]
  2661. 8001670: 689b ldr r3, [r3, #8]
  2662. 8001672: 4413 add r3, r2
  2663. 8001674: 781b ldrb r3, [r3, #0]
  2664. 8001676: 2b22 cmp r3, #34 @ 0x22
  2665. 8001678: d105 bne.n 8001686 <parse_value+0x116>
  2666. {
  2667. return parse_string(item, input_buffer);
  2668. 800167a: 6839 ldr r1, [r7, #0]
  2669. 800167c: 6878 ldr r0, [r7, #4]
  2670. 800167e: f7ff fcf7 bl 8001070 <parse_string>
  2671. 8001682: 4603 mov r3, r0
  2672. 8001684: e055 b.n 8001732 <parse_value+0x1c2>
  2673. }
  2674. /* number */
  2675. if (can_access_at_index(input_buffer, 0) && ((buffer_at_offset(input_buffer)[0] == '-') || ((buffer_at_offset(input_buffer)[0] >= '0') && (buffer_at_offset(input_buffer)[0] <= '9'))))
  2676. 8001686: 683b ldr r3, [r7, #0]
  2677. 8001688: 2b00 cmp r3, #0
  2678. 800168a: d023 beq.n 80016d4 <parse_value+0x164>
  2679. 800168c: 683b ldr r3, [r7, #0]
  2680. 800168e: 689a ldr r2, [r3, #8]
  2681. 8001690: 683b ldr r3, [r7, #0]
  2682. 8001692: 685b ldr r3, [r3, #4]
  2683. 8001694: 429a cmp r2, r3
  2684. 8001696: d21d bcs.n 80016d4 <parse_value+0x164>
  2685. 8001698: 683b ldr r3, [r7, #0]
  2686. 800169a: 681a ldr r2, [r3, #0]
  2687. 800169c: 683b ldr r3, [r7, #0]
  2688. 800169e: 689b ldr r3, [r3, #8]
  2689. 80016a0: 4413 add r3, r2
  2690. 80016a2: 781b ldrb r3, [r3, #0]
  2691. 80016a4: 2b2d cmp r3, #45 @ 0x2d
  2692. 80016a6: d00f beq.n 80016c8 <parse_value+0x158>
  2693. 80016a8: 683b ldr r3, [r7, #0]
  2694. 80016aa: 681a ldr r2, [r3, #0]
  2695. 80016ac: 683b ldr r3, [r7, #0]
  2696. 80016ae: 689b ldr r3, [r3, #8]
  2697. 80016b0: 4413 add r3, r2
  2698. 80016b2: 781b ldrb r3, [r3, #0]
  2699. 80016b4: 2b2f cmp r3, #47 @ 0x2f
  2700. 80016b6: d90d bls.n 80016d4 <parse_value+0x164>
  2701. 80016b8: 683b ldr r3, [r7, #0]
  2702. 80016ba: 681a ldr r2, [r3, #0]
  2703. 80016bc: 683b ldr r3, [r7, #0]
  2704. 80016be: 689b ldr r3, [r3, #8]
  2705. 80016c0: 4413 add r3, r2
  2706. 80016c2: 781b ldrb r3, [r3, #0]
  2707. 80016c4: 2b39 cmp r3, #57 @ 0x39
  2708. 80016c6: d805 bhi.n 80016d4 <parse_value+0x164>
  2709. {
  2710. return parse_number(item, input_buffer);
  2711. 80016c8: 6839 ldr r1, [r7, #0]
  2712. 80016ca: 6878 ldr r0, [r7, #4]
  2713. 80016cc: f7ff fab8 bl 8000c40 <parse_number>
  2714. 80016d0: 4603 mov r3, r0
  2715. 80016d2: e02e b.n 8001732 <parse_value+0x1c2>
  2716. }
  2717. /* array */
  2718. if (can_access_at_index(input_buffer, 0) && (buffer_at_offset(input_buffer)[0] == '['))
  2719. 80016d4: 683b ldr r3, [r7, #0]
  2720. 80016d6: 2b00 cmp r3, #0
  2721. 80016d8: d013 beq.n 8001702 <parse_value+0x192>
  2722. 80016da: 683b ldr r3, [r7, #0]
  2723. 80016dc: 689a ldr r2, [r3, #8]
  2724. 80016de: 683b ldr r3, [r7, #0]
  2725. 80016e0: 685b ldr r3, [r3, #4]
  2726. 80016e2: 429a cmp r2, r3
  2727. 80016e4: d20d bcs.n 8001702 <parse_value+0x192>
  2728. 80016e6: 683b ldr r3, [r7, #0]
  2729. 80016e8: 681a ldr r2, [r3, #0]
  2730. 80016ea: 683b ldr r3, [r7, #0]
  2731. 80016ec: 689b ldr r3, [r3, #8]
  2732. 80016ee: 4413 add r3, r2
  2733. 80016f0: 781b ldrb r3, [r3, #0]
  2734. 80016f2: 2b5b cmp r3, #91 @ 0x5b
  2735. 80016f4: d105 bne.n 8001702 <parse_value+0x192>
  2736. {
  2737. return parse_array(item, input_buffer);
  2738. 80016f6: 6839 ldr r1, [r7, #0]
  2739. 80016f8: 6878 ldr r0, [r7, #4]
  2740. 80016fa: f000 f825 bl 8001748 <parse_array>
  2741. 80016fe: 4603 mov r3, r0
  2742. 8001700: e017 b.n 8001732 <parse_value+0x1c2>
  2743. }
  2744. /* object */
  2745. if (can_access_at_index(input_buffer, 0) && (buffer_at_offset(input_buffer)[0] == '{'))
  2746. 8001702: 683b ldr r3, [r7, #0]
  2747. 8001704: 2b00 cmp r3, #0
  2748. 8001706: d013 beq.n 8001730 <parse_value+0x1c0>
  2749. 8001708: 683b ldr r3, [r7, #0]
  2750. 800170a: 689a ldr r2, [r3, #8]
  2751. 800170c: 683b ldr r3, [r7, #0]
  2752. 800170e: 685b ldr r3, [r3, #4]
  2753. 8001710: 429a cmp r2, r3
  2754. 8001712: d20d bcs.n 8001730 <parse_value+0x1c0>
  2755. 8001714: 683b ldr r3, [r7, #0]
  2756. 8001716: 681a ldr r2, [r3, #0]
  2757. 8001718: 683b ldr r3, [r7, #0]
  2758. 800171a: 689b ldr r3, [r3, #8]
  2759. 800171c: 4413 add r3, r2
  2760. 800171e: 781b ldrb r3, [r3, #0]
  2761. 8001720: 2b7b cmp r3, #123 @ 0x7b
  2762. 8001722: d105 bne.n 8001730 <parse_value+0x1c0>
  2763. {
  2764. return parse_object(item, input_buffer);
  2765. 8001724: 6839 ldr r1, [r7, #0]
  2766. 8001726: 6878 ldr r0, [r7, #4]
  2767. 8001728: f000 f8d2 bl 80018d0 <parse_object>
  2768. 800172c: 4603 mov r3, r0
  2769. 800172e: e000 b.n 8001732 <parse_value+0x1c2>
  2770. }
  2771. return false;
  2772. 8001730: 2300 movs r3, #0
  2773. }
  2774. 8001732: 4618 mov r0, r3
  2775. 8001734: 3708 adds r7, #8
  2776. 8001736: 46bd mov sp, r7
  2777. 8001738: bd80 pop {r7, pc}
  2778. 800173a: bf00 nop
  2779. 800173c: 0802bf9c .word 0x0802bf9c
  2780. 8001740: 0802bfcc .word 0x0802bfcc
  2781. 8001744: 0802bfd4 .word 0x0802bfd4
  2782. 08001748 <parse_array>:
  2783. }
  2784. }
  2785. /* Build an array from input text. */
  2786. static cJSON_bool parse_array(cJSON * const item, parse_buffer * const input_buffer)
  2787. {
  2788. 8001748: b580 push {r7, lr}
  2789. 800174a: b086 sub sp, #24
  2790. 800174c: af00 add r7, sp, #0
  2791. 800174e: 6078 str r0, [r7, #4]
  2792. 8001750: 6039 str r1, [r7, #0]
  2793. cJSON *head = NULL; /* head of the linked list */
  2794. 8001752: 2300 movs r3, #0
  2795. 8001754: 617b str r3, [r7, #20]
  2796. cJSON *current_item = NULL;
  2797. 8001756: 2300 movs r3, #0
  2798. 8001758: 613b str r3, [r7, #16]
  2799. if (input_buffer->depth >= CJSON_NESTING_LIMIT)
  2800. 800175a: 683b ldr r3, [r7, #0]
  2801. 800175c: 68db ldr r3, [r3, #12]
  2802. 800175e: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  2803. 8001762: d301 bcc.n 8001768 <parse_array+0x20>
  2804. {
  2805. return false; /* to deeply nested */
  2806. 8001764: 2300 movs r3, #0
  2807. 8001766: e0af b.n 80018c8 <parse_array+0x180>
  2808. }
  2809. input_buffer->depth++;
  2810. 8001768: 683b ldr r3, [r7, #0]
  2811. 800176a: 68db ldr r3, [r3, #12]
  2812. 800176c: 1c5a adds r2, r3, #1
  2813. 800176e: 683b ldr r3, [r7, #0]
  2814. 8001770: 60da str r2, [r3, #12]
  2815. if (buffer_at_offset(input_buffer)[0] != '[')
  2816. 8001772: 683b ldr r3, [r7, #0]
  2817. 8001774: 681a ldr r2, [r3, #0]
  2818. 8001776: 683b ldr r3, [r7, #0]
  2819. 8001778: 689b ldr r3, [r3, #8]
  2820. 800177a: 4413 add r3, r2
  2821. 800177c: 781b ldrb r3, [r3, #0]
  2822. 800177e: 2b5b cmp r3, #91 @ 0x5b
  2823. 8001780: f040 8094 bne.w 80018ac <parse_array+0x164>
  2824. {
  2825. /* not an array */
  2826. goto fail;
  2827. }
  2828. input_buffer->offset++;
  2829. 8001784: 683b ldr r3, [r7, #0]
  2830. 8001786: 689b ldr r3, [r3, #8]
  2831. 8001788: 1c5a adds r2, r3, #1
  2832. 800178a: 683b ldr r3, [r7, #0]
  2833. 800178c: 609a str r2, [r3, #8]
  2834. buffer_skip_whitespace(input_buffer);
  2835. 800178e: 6838 ldr r0, [r7, #0]
  2836. 8001790: f7ff fdb6 bl 8001300 <buffer_skip_whitespace>
  2837. if (can_access_at_index(input_buffer, 0) && (buffer_at_offset(input_buffer)[0] == ']'))
  2838. 8001794: 683b ldr r3, [r7, #0]
  2839. 8001796: 2b00 cmp r3, #0
  2840. 8001798: d00d beq.n 80017b6 <parse_array+0x6e>
  2841. 800179a: 683b ldr r3, [r7, #0]
  2842. 800179c: 689a ldr r2, [r3, #8]
  2843. 800179e: 683b ldr r3, [r7, #0]
  2844. 80017a0: 685b ldr r3, [r3, #4]
  2845. 80017a2: 429a cmp r2, r3
  2846. 80017a4: d207 bcs.n 80017b6 <parse_array+0x6e>
  2847. 80017a6: 683b ldr r3, [r7, #0]
  2848. 80017a8: 681a ldr r2, [r3, #0]
  2849. 80017aa: 683b ldr r3, [r7, #0]
  2850. 80017ac: 689b ldr r3, [r3, #8]
  2851. 80017ae: 4413 add r3, r2
  2852. 80017b0: 781b ldrb r3, [r3, #0]
  2853. 80017b2: 2b5d cmp r3, #93 @ 0x5d
  2854. 80017b4: d061 beq.n 800187a <parse_array+0x132>
  2855. /* empty array */
  2856. goto success;
  2857. }
  2858. /* check if we skipped to the end of the buffer */
  2859. if (cannot_access_at_index(input_buffer, 0))
  2860. 80017b6: 683b ldr r3, [r7, #0]
  2861. 80017b8: 2b00 cmp r3, #0
  2862. 80017ba: d005 beq.n 80017c8 <parse_array+0x80>
  2863. 80017bc: 683b ldr r3, [r7, #0]
  2864. 80017be: 689a ldr r2, [r3, #8]
  2865. 80017c0: 683b ldr r3, [r7, #0]
  2866. 80017c2: 685b ldr r3, [r3, #4]
  2867. 80017c4: 429a cmp r2, r3
  2868. 80017c6: d305 bcc.n 80017d4 <parse_array+0x8c>
  2869. {
  2870. input_buffer->offset--;
  2871. 80017c8: 683b ldr r3, [r7, #0]
  2872. 80017ca: 689b ldr r3, [r3, #8]
  2873. 80017cc: 1e5a subs r2, r3, #1
  2874. 80017ce: 683b ldr r3, [r7, #0]
  2875. 80017d0: 609a str r2, [r3, #8]
  2876. goto fail;
  2877. 80017d2: e072 b.n 80018ba <parse_array+0x172>
  2878. }
  2879. /* step back to character in front of the first element */
  2880. input_buffer->offset--;
  2881. 80017d4: 683b ldr r3, [r7, #0]
  2882. 80017d6: 689b ldr r3, [r3, #8]
  2883. 80017d8: 1e5a subs r2, r3, #1
  2884. 80017da: 683b ldr r3, [r7, #0]
  2885. 80017dc: 609a str r2, [r3, #8]
  2886. /* loop through the comma separated array elements */
  2887. do
  2888. {
  2889. /* allocate next item */
  2890. cJSON *new_item = cJSON_New_Item(&(input_buffer->hooks));
  2891. 80017de: 683b ldr r3, [r7, #0]
  2892. 80017e0: 3310 adds r3, #16
  2893. 80017e2: 4618 mov r0, r3
  2894. 80017e4: f7ff f9bc bl 8000b60 <cJSON_New_Item>
  2895. 80017e8: 60f8 str r0, [r7, #12]
  2896. if (new_item == NULL)
  2897. 80017ea: 68fb ldr r3, [r7, #12]
  2898. 80017ec: 2b00 cmp r3, #0
  2899. 80017ee: d05f beq.n 80018b0 <parse_array+0x168>
  2900. {
  2901. goto fail; /* allocation failure */
  2902. }
  2903. /* attach next item to list */
  2904. if (head == NULL)
  2905. 80017f0: 697b ldr r3, [r7, #20]
  2906. 80017f2: 2b00 cmp r3, #0
  2907. 80017f4: d104 bne.n 8001800 <parse_array+0xb8>
  2908. {
  2909. /* start the linked list */
  2910. current_item = head = new_item;
  2911. 80017f6: 68fb ldr r3, [r7, #12]
  2912. 80017f8: 617b str r3, [r7, #20]
  2913. 80017fa: 697b ldr r3, [r7, #20]
  2914. 80017fc: 613b str r3, [r7, #16]
  2915. 80017fe: e007 b.n 8001810 <parse_array+0xc8>
  2916. }
  2917. else
  2918. {
  2919. /* add to the end and advance */
  2920. current_item->next = new_item;
  2921. 8001800: 693b ldr r3, [r7, #16]
  2922. 8001802: 68fa ldr r2, [r7, #12]
  2923. 8001804: 601a str r2, [r3, #0]
  2924. new_item->prev = current_item;
  2925. 8001806: 68fb ldr r3, [r7, #12]
  2926. 8001808: 693a ldr r2, [r7, #16]
  2927. 800180a: 605a str r2, [r3, #4]
  2928. current_item = new_item;
  2929. 800180c: 68fb ldr r3, [r7, #12]
  2930. 800180e: 613b str r3, [r7, #16]
  2931. }
  2932. /* parse next value */
  2933. input_buffer->offset++;
  2934. 8001810: 683b ldr r3, [r7, #0]
  2935. 8001812: 689b ldr r3, [r3, #8]
  2936. 8001814: 1c5a adds r2, r3, #1
  2937. 8001816: 683b ldr r3, [r7, #0]
  2938. 8001818: 609a str r2, [r3, #8]
  2939. buffer_skip_whitespace(input_buffer);
  2940. 800181a: 6838 ldr r0, [r7, #0]
  2941. 800181c: f7ff fd70 bl 8001300 <buffer_skip_whitespace>
  2942. if (!parse_value(current_item, input_buffer))
  2943. 8001820: 6839 ldr r1, [r7, #0]
  2944. 8001822: 6938 ldr r0, [r7, #16]
  2945. 8001824: f7ff fea4 bl 8001570 <parse_value>
  2946. 8001828: 4603 mov r3, r0
  2947. 800182a: 2b00 cmp r3, #0
  2948. 800182c: d042 beq.n 80018b4 <parse_array+0x16c>
  2949. {
  2950. goto fail; /* failed to parse value */
  2951. }
  2952. buffer_skip_whitespace(input_buffer);
  2953. 800182e: 6838 ldr r0, [r7, #0]
  2954. 8001830: f7ff fd66 bl 8001300 <buffer_skip_whitespace>
  2955. }
  2956. while (can_access_at_index(input_buffer, 0) && (buffer_at_offset(input_buffer)[0] == ','));
  2957. 8001834: 683b ldr r3, [r7, #0]
  2958. 8001836: 2b00 cmp r3, #0
  2959. 8001838: d00d beq.n 8001856 <parse_array+0x10e>
  2960. 800183a: 683b ldr r3, [r7, #0]
  2961. 800183c: 689a ldr r2, [r3, #8]
  2962. 800183e: 683b ldr r3, [r7, #0]
  2963. 8001840: 685b ldr r3, [r3, #4]
  2964. 8001842: 429a cmp r2, r3
  2965. 8001844: d207 bcs.n 8001856 <parse_array+0x10e>
  2966. 8001846: 683b ldr r3, [r7, #0]
  2967. 8001848: 681a ldr r2, [r3, #0]
  2968. 800184a: 683b ldr r3, [r7, #0]
  2969. 800184c: 689b ldr r3, [r3, #8]
  2970. 800184e: 4413 add r3, r2
  2971. 8001850: 781b ldrb r3, [r3, #0]
  2972. 8001852: 2b2c cmp r3, #44 @ 0x2c
  2973. 8001854: d0c3 beq.n 80017de <parse_array+0x96>
  2974. if (cannot_access_at_index(input_buffer, 0) || buffer_at_offset(input_buffer)[0] != ']')
  2975. 8001856: 683b ldr r3, [r7, #0]
  2976. 8001858: 2b00 cmp r3, #0
  2977. 800185a: d02d beq.n 80018b8 <parse_array+0x170>
  2978. 800185c: 683b ldr r3, [r7, #0]
  2979. 800185e: 689a ldr r2, [r3, #8]
  2980. 8001860: 683b ldr r3, [r7, #0]
  2981. 8001862: 685b ldr r3, [r3, #4]
  2982. 8001864: 429a cmp r2, r3
  2983. 8001866: d227 bcs.n 80018b8 <parse_array+0x170>
  2984. 8001868: 683b ldr r3, [r7, #0]
  2985. 800186a: 681a ldr r2, [r3, #0]
  2986. 800186c: 683b ldr r3, [r7, #0]
  2987. 800186e: 689b ldr r3, [r3, #8]
  2988. 8001870: 4413 add r3, r2
  2989. 8001872: 781b ldrb r3, [r3, #0]
  2990. 8001874: 2b5d cmp r3, #93 @ 0x5d
  2991. 8001876: d11f bne.n 80018b8 <parse_array+0x170>
  2992. {
  2993. goto fail; /* expected end of array */
  2994. }
  2995. success:
  2996. 8001878: e000 b.n 800187c <parse_array+0x134>
  2997. goto success;
  2998. 800187a: bf00 nop
  2999. input_buffer->depth--;
  3000. 800187c: 683b ldr r3, [r7, #0]
  3001. 800187e: 68db ldr r3, [r3, #12]
  3002. 8001880: 1e5a subs r2, r3, #1
  3003. 8001882: 683b ldr r3, [r7, #0]
  3004. 8001884: 60da str r2, [r3, #12]
  3005. if (head != NULL) {
  3006. 8001886: 697b ldr r3, [r7, #20]
  3007. 8001888: 2b00 cmp r3, #0
  3008. 800188a: d002 beq.n 8001892 <parse_array+0x14a>
  3009. head->prev = current_item;
  3010. 800188c: 697b ldr r3, [r7, #20]
  3011. 800188e: 693a ldr r2, [r7, #16]
  3012. 8001890: 605a str r2, [r3, #4]
  3013. }
  3014. item->type = cJSON_Array;
  3015. 8001892: 687b ldr r3, [r7, #4]
  3016. 8001894: 2220 movs r2, #32
  3017. 8001896: 60da str r2, [r3, #12]
  3018. item->child = head;
  3019. 8001898: 687b ldr r3, [r7, #4]
  3020. 800189a: 697a ldr r2, [r7, #20]
  3021. 800189c: 609a str r2, [r3, #8]
  3022. input_buffer->offset++;
  3023. 800189e: 683b ldr r3, [r7, #0]
  3024. 80018a0: 689b ldr r3, [r3, #8]
  3025. 80018a2: 1c5a adds r2, r3, #1
  3026. 80018a4: 683b ldr r3, [r7, #0]
  3027. 80018a6: 609a str r2, [r3, #8]
  3028. return true;
  3029. 80018a8: 2301 movs r3, #1
  3030. 80018aa: e00d b.n 80018c8 <parse_array+0x180>
  3031. goto fail;
  3032. 80018ac: bf00 nop
  3033. 80018ae: e004 b.n 80018ba <parse_array+0x172>
  3034. goto fail; /* allocation failure */
  3035. 80018b0: bf00 nop
  3036. 80018b2: e002 b.n 80018ba <parse_array+0x172>
  3037. goto fail; /* failed to parse value */
  3038. 80018b4: bf00 nop
  3039. 80018b6: e000 b.n 80018ba <parse_array+0x172>
  3040. goto fail; /* expected end of array */
  3041. 80018b8: bf00 nop
  3042. fail:
  3043. if (head != NULL)
  3044. 80018ba: 697b ldr r3, [r7, #20]
  3045. 80018bc: 2b00 cmp r3, #0
  3046. 80018be: d002 beq.n 80018c6 <parse_array+0x17e>
  3047. {
  3048. cJSON_Delete(head);
  3049. 80018c0: 6978 ldr r0, [r7, #20]
  3050. 80018c2: f7ff f963 bl 8000b8c <cJSON_Delete>
  3051. }
  3052. return false;
  3053. 80018c6: 2300 movs r3, #0
  3054. }
  3055. 80018c8: 4618 mov r0, r3
  3056. 80018ca: 3718 adds r7, #24
  3057. 80018cc: 46bd mov sp, r7
  3058. 80018ce: bd80 pop {r7, pc}
  3059. 080018d0 <parse_object>:
  3060. return true;
  3061. }
  3062. /* Build an object from the text. */
  3063. static cJSON_bool parse_object(cJSON * const item, parse_buffer * const input_buffer)
  3064. {
  3065. 80018d0: b580 push {r7, lr}
  3066. 80018d2: b086 sub sp, #24
  3067. 80018d4: af00 add r7, sp, #0
  3068. 80018d6: 6078 str r0, [r7, #4]
  3069. 80018d8: 6039 str r1, [r7, #0]
  3070. cJSON *head = NULL; /* linked list head */
  3071. 80018da: 2300 movs r3, #0
  3072. 80018dc: 617b str r3, [r7, #20]
  3073. cJSON *current_item = NULL;
  3074. 80018de: 2300 movs r3, #0
  3075. 80018e0: 613b str r3, [r7, #16]
  3076. if (input_buffer->depth >= CJSON_NESTING_LIMIT)
  3077. 80018e2: 683b ldr r3, [r7, #0]
  3078. 80018e4: 68db ldr r3, [r3, #12]
  3079. 80018e6: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  3080. 80018ea: d301 bcc.n 80018f0 <parse_object+0x20>
  3081. {
  3082. return false; /* to deeply nested */
  3083. 80018ec: 2300 movs r3, #0
  3084. 80018ee: e0f7 b.n 8001ae0 <parse_object+0x210>
  3085. }
  3086. input_buffer->depth++;
  3087. 80018f0: 683b ldr r3, [r7, #0]
  3088. 80018f2: 68db ldr r3, [r3, #12]
  3089. 80018f4: 1c5a adds r2, r3, #1
  3090. 80018f6: 683b ldr r3, [r7, #0]
  3091. 80018f8: 60da str r2, [r3, #12]
  3092. if (cannot_access_at_index(input_buffer, 0) || (buffer_at_offset(input_buffer)[0] != '{'))
  3093. 80018fa: 683b ldr r3, [r7, #0]
  3094. 80018fc: 2b00 cmp r3, #0
  3095. 80018fe: f000 80db beq.w 8001ab8 <parse_object+0x1e8>
  3096. 8001902: 683b ldr r3, [r7, #0]
  3097. 8001904: 689a ldr r2, [r3, #8]
  3098. 8001906: 683b ldr r3, [r7, #0]
  3099. 8001908: 685b ldr r3, [r3, #4]
  3100. 800190a: 429a cmp r2, r3
  3101. 800190c: f080 80d4 bcs.w 8001ab8 <parse_object+0x1e8>
  3102. 8001910: 683b ldr r3, [r7, #0]
  3103. 8001912: 681a ldr r2, [r3, #0]
  3104. 8001914: 683b ldr r3, [r7, #0]
  3105. 8001916: 689b ldr r3, [r3, #8]
  3106. 8001918: 4413 add r3, r2
  3107. 800191a: 781b ldrb r3, [r3, #0]
  3108. 800191c: 2b7b cmp r3, #123 @ 0x7b
  3109. 800191e: f040 80cb bne.w 8001ab8 <parse_object+0x1e8>
  3110. {
  3111. goto fail; /* not an object */
  3112. }
  3113. input_buffer->offset++;
  3114. 8001922: 683b ldr r3, [r7, #0]
  3115. 8001924: 689b ldr r3, [r3, #8]
  3116. 8001926: 1c5a adds r2, r3, #1
  3117. 8001928: 683b ldr r3, [r7, #0]
  3118. 800192a: 609a str r2, [r3, #8]
  3119. buffer_skip_whitespace(input_buffer);
  3120. 800192c: 6838 ldr r0, [r7, #0]
  3121. 800192e: f7ff fce7 bl 8001300 <buffer_skip_whitespace>
  3122. if (can_access_at_index(input_buffer, 0) && (buffer_at_offset(input_buffer)[0] == '}'))
  3123. 8001932: 683b ldr r3, [r7, #0]
  3124. 8001934: 2b00 cmp r3, #0
  3125. 8001936: d00e beq.n 8001956 <parse_object+0x86>
  3126. 8001938: 683b ldr r3, [r7, #0]
  3127. 800193a: 689a ldr r2, [r3, #8]
  3128. 800193c: 683b ldr r3, [r7, #0]
  3129. 800193e: 685b ldr r3, [r3, #4]
  3130. 8001940: 429a cmp r2, r3
  3131. 8001942: d208 bcs.n 8001956 <parse_object+0x86>
  3132. 8001944: 683b ldr r3, [r7, #0]
  3133. 8001946: 681a ldr r2, [r3, #0]
  3134. 8001948: 683b ldr r3, [r7, #0]
  3135. 800194a: 689b ldr r3, [r3, #8]
  3136. 800194c: 4413 add r3, r2
  3137. 800194e: 781b ldrb r3, [r3, #0]
  3138. 8001950: 2b7d cmp r3, #125 @ 0x7d
  3139. 8001952: f000 8098 beq.w 8001a86 <parse_object+0x1b6>
  3140. {
  3141. goto success; /* empty object */
  3142. }
  3143. /* check if we skipped to the end of the buffer */
  3144. if (cannot_access_at_index(input_buffer, 0))
  3145. 8001956: 683b ldr r3, [r7, #0]
  3146. 8001958: 2b00 cmp r3, #0
  3147. 800195a: d005 beq.n 8001968 <parse_object+0x98>
  3148. 800195c: 683b ldr r3, [r7, #0]
  3149. 800195e: 689a ldr r2, [r3, #8]
  3150. 8001960: 683b ldr r3, [r7, #0]
  3151. 8001962: 685b ldr r3, [r3, #4]
  3152. 8001964: 429a cmp r2, r3
  3153. 8001966: d305 bcc.n 8001974 <parse_object+0xa4>
  3154. {
  3155. input_buffer->offset--;
  3156. 8001968: 683b ldr r3, [r7, #0]
  3157. 800196a: 689b ldr r3, [r3, #8]
  3158. 800196c: 1e5a subs r2, r3, #1
  3159. 800196e: 683b ldr r3, [r7, #0]
  3160. 8001970: 609a str r2, [r3, #8]
  3161. goto fail;
  3162. 8001972: e0ae b.n 8001ad2 <parse_object+0x202>
  3163. }
  3164. /* step back to character in front of the first element */
  3165. input_buffer->offset--;
  3166. 8001974: 683b ldr r3, [r7, #0]
  3167. 8001976: 689b ldr r3, [r3, #8]
  3168. 8001978: 1e5a subs r2, r3, #1
  3169. 800197a: 683b ldr r3, [r7, #0]
  3170. 800197c: 609a str r2, [r3, #8]
  3171. /* loop through the comma separated array elements */
  3172. do
  3173. {
  3174. /* allocate next item */
  3175. cJSON *new_item = cJSON_New_Item(&(input_buffer->hooks));
  3176. 800197e: 683b ldr r3, [r7, #0]
  3177. 8001980: 3310 adds r3, #16
  3178. 8001982: 4618 mov r0, r3
  3179. 8001984: f7ff f8ec bl 8000b60 <cJSON_New_Item>
  3180. 8001988: 60f8 str r0, [r7, #12]
  3181. if (new_item == NULL)
  3182. 800198a: 68fb ldr r3, [r7, #12]
  3183. 800198c: 2b00 cmp r3, #0
  3184. 800198e: f000 8095 beq.w 8001abc <parse_object+0x1ec>
  3185. {
  3186. goto fail; /* allocation failure */
  3187. }
  3188. /* attach next item to list */
  3189. if (head == NULL)
  3190. 8001992: 697b ldr r3, [r7, #20]
  3191. 8001994: 2b00 cmp r3, #0
  3192. 8001996: d104 bne.n 80019a2 <parse_object+0xd2>
  3193. {
  3194. /* start the linked list */
  3195. current_item = head = new_item;
  3196. 8001998: 68fb ldr r3, [r7, #12]
  3197. 800199a: 617b str r3, [r7, #20]
  3198. 800199c: 697b ldr r3, [r7, #20]
  3199. 800199e: 613b str r3, [r7, #16]
  3200. 80019a0: e007 b.n 80019b2 <parse_object+0xe2>
  3201. }
  3202. else
  3203. {
  3204. /* add to the end and advance */
  3205. current_item->next = new_item;
  3206. 80019a2: 693b ldr r3, [r7, #16]
  3207. 80019a4: 68fa ldr r2, [r7, #12]
  3208. 80019a6: 601a str r2, [r3, #0]
  3209. new_item->prev = current_item;
  3210. 80019a8: 68fb ldr r3, [r7, #12]
  3211. 80019aa: 693a ldr r2, [r7, #16]
  3212. 80019ac: 605a str r2, [r3, #4]
  3213. current_item = new_item;
  3214. 80019ae: 68fb ldr r3, [r7, #12]
  3215. 80019b0: 613b str r3, [r7, #16]
  3216. }
  3217. if (cannot_access_at_index(input_buffer, 1))
  3218. 80019b2: 683b ldr r3, [r7, #0]
  3219. 80019b4: 2b00 cmp r3, #0
  3220. 80019b6: f000 8083 beq.w 8001ac0 <parse_object+0x1f0>
  3221. 80019ba: 683b ldr r3, [r7, #0]
  3222. 80019bc: 689b ldr r3, [r3, #8]
  3223. 80019be: 1c5a adds r2, r3, #1
  3224. 80019c0: 683b ldr r3, [r7, #0]
  3225. 80019c2: 685b ldr r3, [r3, #4]
  3226. 80019c4: 429a cmp r2, r3
  3227. 80019c6: d27b bcs.n 8001ac0 <parse_object+0x1f0>
  3228. {
  3229. goto fail; /* nothing comes after the comma */
  3230. }
  3231. /* parse the name of the child */
  3232. input_buffer->offset++;
  3233. 80019c8: 683b ldr r3, [r7, #0]
  3234. 80019ca: 689b ldr r3, [r3, #8]
  3235. 80019cc: 1c5a adds r2, r3, #1
  3236. 80019ce: 683b ldr r3, [r7, #0]
  3237. 80019d0: 609a str r2, [r3, #8]
  3238. buffer_skip_whitespace(input_buffer);
  3239. 80019d2: 6838 ldr r0, [r7, #0]
  3240. 80019d4: f7ff fc94 bl 8001300 <buffer_skip_whitespace>
  3241. if (!parse_string(current_item, input_buffer))
  3242. 80019d8: 6839 ldr r1, [r7, #0]
  3243. 80019da: 6938 ldr r0, [r7, #16]
  3244. 80019dc: f7ff fb48 bl 8001070 <parse_string>
  3245. 80019e0: 4603 mov r3, r0
  3246. 80019e2: 2b00 cmp r3, #0
  3247. 80019e4: d06e beq.n 8001ac4 <parse_object+0x1f4>
  3248. {
  3249. goto fail; /* failed to parse name */
  3250. }
  3251. buffer_skip_whitespace(input_buffer);
  3252. 80019e6: 6838 ldr r0, [r7, #0]
  3253. 80019e8: f7ff fc8a bl 8001300 <buffer_skip_whitespace>
  3254. /* swap valuestring and string, because we parsed the name */
  3255. current_item->string = current_item->valuestring;
  3256. 80019ec: 693b ldr r3, [r7, #16]
  3257. 80019ee: 691a ldr r2, [r3, #16]
  3258. 80019f0: 693b ldr r3, [r7, #16]
  3259. 80019f2: 621a str r2, [r3, #32]
  3260. current_item->valuestring = NULL;
  3261. 80019f4: 693b ldr r3, [r7, #16]
  3262. 80019f6: 2200 movs r2, #0
  3263. 80019f8: 611a str r2, [r3, #16]
  3264. if (cannot_access_at_index(input_buffer, 0) || (buffer_at_offset(input_buffer)[0] != ':'))
  3265. 80019fa: 683b ldr r3, [r7, #0]
  3266. 80019fc: 2b00 cmp r3, #0
  3267. 80019fe: d063 beq.n 8001ac8 <parse_object+0x1f8>
  3268. 8001a00: 683b ldr r3, [r7, #0]
  3269. 8001a02: 689a ldr r2, [r3, #8]
  3270. 8001a04: 683b ldr r3, [r7, #0]
  3271. 8001a06: 685b ldr r3, [r3, #4]
  3272. 8001a08: 429a cmp r2, r3
  3273. 8001a0a: d25d bcs.n 8001ac8 <parse_object+0x1f8>
  3274. 8001a0c: 683b ldr r3, [r7, #0]
  3275. 8001a0e: 681a ldr r2, [r3, #0]
  3276. 8001a10: 683b ldr r3, [r7, #0]
  3277. 8001a12: 689b ldr r3, [r3, #8]
  3278. 8001a14: 4413 add r3, r2
  3279. 8001a16: 781b ldrb r3, [r3, #0]
  3280. 8001a18: 2b3a cmp r3, #58 @ 0x3a
  3281. 8001a1a: d155 bne.n 8001ac8 <parse_object+0x1f8>
  3282. {
  3283. goto fail; /* invalid object */
  3284. }
  3285. /* parse the value */
  3286. input_buffer->offset++;
  3287. 8001a1c: 683b ldr r3, [r7, #0]
  3288. 8001a1e: 689b ldr r3, [r3, #8]
  3289. 8001a20: 1c5a adds r2, r3, #1
  3290. 8001a22: 683b ldr r3, [r7, #0]
  3291. 8001a24: 609a str r2, [r3, #8]
  3292. buffer_skip_whitespace(input_buffer);
  3293. 8001a26: 6838 ldr r0, [r7, #0]
  3294. 8001a28: f7ff fc6a bl 8001300 <buffer_skip_whitespace>
  3295. if (!parse_value(current_item, input_buffer))
  3296. 8001a2c: 6839 ldr r1, [r7, #0]
  3297. 8001a2e: 6938 ldr r0, [r7, #16]
  3298. 8001a30: f7ff fd9e bl 8001570 <parse_value>
  3299. 8001a34: 4603 mov r3, r0
  3300. 8001a36: 2b00 cmp r3, #0
  3301. 8001a38: d048 beq.n 8001acc <parse_object+0x1fc>
  3302. {
  3303. goto fail; /* failed to parse value */
  3304. }
  3305. buffer_skip_whitespace(input_buffer);
  3306. 8001a3a: 6838 ldr r0, [r7, #0]
  3307. 8001a3c: f7ff fc60 bl 8001300 <buffer_skip_whitespace>
  3308. }
  3309. while (can_access_at_index(input_buffer, 0) && (buffer_at_offset(input_buffer)[0] == ','));
  3310. 8001a40: 683b ldr r3, [r7, #0]
  3311. 8001a42: 2b00 cmp r3, #0
  3312. 8001a44: d00d beq.n 8001a62 <parse_object+0x192>
  3313. 8001a46: 683b ldr r3, [r7, #0]
  3314. 8001a48: 689a ldr r2, [r3, #8]
  3315. 8001a4a: 683b ldr r3, [r7, #0]
  3316. 8001a4c: 685b ldr r3, [r3, #4]
  3317. 8001a4e: 429a cmp r2, r3
  3318. 8001a50: d207 bcs.n 8001a62 <parse_object+0x192>
  3319. 8001a52: 683b ldr r3, [r7, #0]
  3320. 8001a54: 681a ldr r2, [r3, #0]
  3321. 8001a56: 683b ldr r3, [r7, #0]
  3322. 8001a58: 689b ldr r3, [r3, #8]
  3323. 8001a5a: 4413 add r3, r2
  3324. 8001a5c: 781b ldrb r3, [r3, #0]
  3325. 8001a5e: 2b2c cmp r3, #44 @ 0x2c
  3326. 8001a60: d08d beq.n 800197e <parse_object+0xae>
  3327. if (cannot_access_at_index(input_buffer, 0) || (buffer_at_offset(input_buffer)[0] != '}'))
  3328. 8001a62: 683b ldr r3, [r7, #0]
  3329. 8001a64: 2b00 cmp r3, #0
  3330. 8001a66: d033 beq.n 8001ad0 <parse_object+0x200>
  3331. 8001a68: 683b ldr r3, [r7, #0]
  3332. 8001a6a: 689a ldr r2, [r3, #8]
  3333. 8001a6c: 683b ldr r3, [r7, #0]
  3334. 8001a6e: 685b ldr r3, [r3, #4]
  3335. 8001a70: 429a cmp r2, r3
  3336. 8001a72: d22d bcs.n 8001ad0 <parse_object+0x200>
  3337. 8001a74: 683b ldr r3, [r7, #0]
  3338. 8001a76: 681a ldr r2, [r3, #0]
  3339. 8001a78: 683b ldr r3, [r7, #0]
  3340. 8001a7a: 689b ldr r3, [r3, #8]
  3341. 8001a7c: 4413 add r3, r2
  3342. 8001a7e: 781b ldrb r3, [r3, #0]
  3343. 8001a80: 2b7d cmp r3, #125 @ 0x7d
  3344. 8001a82: d125 bne.n 8001ad0 <parse_object+0x200>
  3345. {
  3346. goto fail; /* expected end of object */
  3347. }
  3348. success:
  3349. 8001a84: e000 b.n 8001a88 <parse_object+0x1b8>
  3350. goto success; /* empty object */
  3351. 8001a86: bf00 nop
  3352. input_buffer->depth--;
  3353. 8001a88: 683b ldr r3, [r7, #0]
  3354. 8001a8a: 68db ldr r3, [r3, #12]
  3355. 8001a8c: 1e5a subs r2, r3, #1
  3356. 8001a8e: 683b ldr r3, [r7, #0]
  3357. 8001a90: 60da str r2, [r3, #12]
  3358. if (head != NULL) {
  3359. 8001a92: 697b ldr r3, [r7, #20]
  3360. 8001a94: 2b00 cmp r3, #0
  3361. 8001a96: d002 beq.n 8001a9e <parse_object+0x1ce>
  3362. head->prev = current_item;
  3363. 8001a98: 697b ldr r3, [r7, #20]
  3364. 8001a9a: 693a ldr r2, [r7, #16]
  3365. 8001a9c: 605a str r2, [r3, #4]
  3366. }
  3367. item->type = cJSON_Object;
  3368. 8001a9e: 687b ldr r3, [r7, #4]
  3369. 8001aa0: 2240 movs r2, #64 @ 0x40
  3370. 8001aa2: 60da str r2, [r3, #12]
  3371. item->child = head;
  3372. 8001aa4: 687b ldr r3, [r7, #4]
  3373. 8001aa6: 697a ldr r2, [r7, #20]
  3374. 8001aa8: 609a str r2, [r3, #8]
  3375. input_buffer->offset++;
  3376. 8001aaa: 683b ldr r3, [r7, #0]
  3377. 8001aac: 689b ldr r3, [r3, #8]
  3378. 8001aae: 1c5a adds r2, r3, #1
  3379. 8001ab0: 683b ldr r3, [r7, #0]
  3380. 8001ab2: 609a str r2, [r3, #8]
  3381. return true;
  3382. 8001ab4: 2301 movs r3, #1
  3383. 8001ab6: e013 b.n 8001ae0 <parse_object+0x210>
  3384. goto fail; /* not an object */
  3385. 8001ab8: bf00 nop
  3386. 8001aba: e00a b.n 8001ad2 <parse_object+0x202>
  3387. goto fail; /* allocation failure */
  3388. 8001abc: bf00 nop
  3389. 8001abe: e008 b.n 8001ad2 <parse_object+0x202>
  3390. goto fail; /* nothing comes after the comma */
  3391. 8001ac0: bf00 nop
  3392. 8001ac2: e006 b.n 8001ad2 <parse_object+0x202>
  3393. goto fail; /* failed to parse name */
  3394. 8001ac4: bf00 nop
  3395. 8001ac6: e004 b.n 8001ad2 <parse_object+0x202>
  3396. goto fail; /* invalid object */
  3397. 8001ac8: bf00 nop
  3398. 8001aca: e002 b.n 8001ad2 <parse_object+0x202>
  3399. goto fail; /* failed to parse value */
  3400. 8001acc: bf00 nop
  3401. 8001ace: e000 b.n 8001ad2 <parse_object+0x202>
  3402. goto fail; /* expected end of object */
  3403. 8001ad0: bf00 nop
  3404. fail:
  3405. if (head != NULL)
  3406. 8001ad2: 697b ldr r3, [r7, #20]
  3407. 8001ad4: 2b00 cmp r3, #0
  3408. 8001ad6: d002 beq.n 8001ade <parse_object+0x20e>
  3409. {
  3410. cJSON_Delete(head);
  3411. 8001ad8: 6978 ldr r0, [r7, #20]
  3412. 8001ada: f7ff f857 bl 8000b8c <cJSON_Delete>
  3413. }
  3414. return false;
  3415. 8001ade: 2300 movs r3, #0
  3416. }
  3417. 8001ae0: 4618 mov r0, r3
  3418. 8001ae2: 3718 adds r7, #24
  3419. 8001ae4: 46bd mov sp, r7
  3420. 8001ae6: bd80 pop {r7, pc}
  3421. 08001ae8 <cJSON_GetArraySize>:
  3422. return true;
  3423. }
  3424. /* Get Array size/item / object item. */
  3425. CJSON_PUBLIC(int) cJSON_GetArraySize(const cJSON *array)
  3426. {
  3427. 8001ae8: b480 push {r7}
  3428. 8001aea: b085 sub sp, #20
  3429. 8001aec: af00 add r7, sp, #0
  3430. 8001aee: 6078 str r0, [r7, #4]
  3431. cJSON *child = NULL;
  3432. 8001af0: 2300 movs r3, #0
  3433. 8001af2: 60fb str r3, [r7, #12]
  3434. size_t size = 0;
  3435. 8001af4: 2300 movs r3, #0
  3436. 8001af6: 60bb str r3, [r7, #8]
  3437. if (array == NULL)
  3438. 8001af8: 687b ldr r3, [r7, #4]
  3439. 8001afa: 2b00 cmp r3, #0
  3440. 8001afc: d101 bne.n 8001b02 <cJSON_GetArraySize+0x1a>
  3441. {
  3442. return 0;
  3443. 8001afe: 2300 movs r3, #0
  3444. 8001b00: e00d b.n 8001b1e <cJSON_GetArraySize+0x36>
  3445. }
  3446. child = array->child;
  3447. 8001b02: 687b ldr r3, [r7, #4]
  3448. 8001b04: 689b ldr r3, [r3, #8]
  3449. 8001b06: 60fb str r3, [r7, #12]
  3450. while(child != NULL)
  3451. 8001b08: e005 b.n 8001b16 <cJSON_GetArraySize+0x2e>
  3452. {
  3453. size++;
  3454. 8001b0a: 68bb ldr r3, [r7, #8]
  3455. 8001b0c: 3301 adds r3, #1
  3456. 8001b0e: 60bb str r3, [r7, #8]
  3457. child = child->next;
  3458. 8001b10: 68fb ldr r3, [r7, #12]
  3459. 8001b12: 681b ldr r3, [r3, #0]
  3460. 8001b14: 60fb str r3, [r7, #12]
  3461. while(child != NULL)
  3462. 8001b16: 68fb ldr r3, [r7, #12]
  3463. 8001b18: 2b00 cmp r3, #0
  3464. 8001b1a: d1f6 bne.n 8001b0a <cJSON_GetArraySize+0x22>
  3465. }
  3466. /* FIXME: Can overflow here. Cannot be fixed without breaking the API */
  3467. return (int)size;
  3468. 8001b1c: 68bb ldr r3, [r7, #8]
  3469. }
  3470. 8001b1e: 4618 mov r0, r3
  3471. 8001b20: 3714 adds r7, #20
  3472. 8001b22: 46bd mov sp, r7
  3473. 8001b24: f85d 7b04 ldr.w r7, [sp], #4
  3474. 8001b28: 4770 bx lr
  3475. 08001b2a <get_array_item>:
  3476. static cJSON* get_array_item(const cJSON *array, size_t index)
  3477. {
  3478. 8001b2a: b480 push {r7}
  3479. 8001b2c: b085 sub sp, #20
  3480. 8001b2e: af00 add r7, sp, #0
  3481. 8001b30: 6078 str r0, [r7, #4]
  3482. 8001b32: 6039 str r1, [r7, #0]
  3483. cJSON *current_child = NULL;
  3484. 8001b34: 2300 movs r3, #0
  3485. 8001b36: 60fb str r3, [r7, #12]
  3486. if (array == NULL)
  3487. 8001b38: 687b ldr r3, [r7, #4]
  3488. 8001b3a: 2b00 cmp r3, #0
  3489. 8001b3c: d101 bne.n 8001b42 <get_array_item+0x18>
  3490. {
  3491. return NULL;
  3492. 8001b3e: 2300 movs r3, #0
  3493. 8001b40: e010 b.n 8001b64 <get_array_item+0x3a>
  3494. }
  3495. current_child = array->child;
  3496. 8001b42: 687b ldr r3, [r7, #4]
  3497. 8001b44: 689b ldr r3, [r3, #8]
  3498. 8001b46: 60fb str r3, [r7, #12]
  3499. while ((current_child != NULL) && (index > 0))
  3500. 8001b48: e005 b.n 8001b56 <get_array_item+0x2c>
  3501. {
  3502. index--;
  3503. 8001b4a: 683b ldr r3, [r7, #0]
  3504. 8001b4c: 3b01 subs r3, #1
  3505. 8001b4e: 603b str r3, [r7, #0]
  3506. current_child = current_child->next;
  3507. 8001b50: 68fb ldr r3, [r7, #12]
  3508. 8001b52: 681b ldr r3, [r3, #0]
  3509. 8001b54: 60fb str r3, [r7, #12]
  3510. while ((current_child != NULL) && (index > 0))
  3511. 8001b56: 68fb ldr r3, [r7, #12]
  3512. 8001b58: 2b00 cmp r3, #0
  3513. 8001b5a: d002 beq.n 8001b62 <get_array_item+0x38>
  3514. 8001b5c: 683b ldr r3, [r7, #0]
  3515. 8001b5e: 2b00 cmp r3, #0
  3516. 8001b60: d1f3 bne.n 8001b4a <get_array_item+0x20>
  3517. }
  3518. return current_child;
  3519. 8001b62: 68fb ldr r3, [r7, #12]
  3520. }
  3521. 8001b64: 4618 mov r0, r3
  3522. 8001b66: 3714 adds r7, #20
  3523. 8001b68: 46bd mov sp, r7
  3524. 8001b6a: f85d 7b04 ldr.w r7, [sp], #4
  3525. 8001b6e: 4770 bx lr
  3526. 08001b70 <cJSON_GetArrayItem>:
  3527. CJSON_PUBLIC(cJSON *) cJSON_GetArrayItem(const cJSON *array, int index)
  3528. {
  3529. 8001b70: b580 push {r7, lr}
  3530. 8001b72: b082 sub sp, #8
  3531. 8001b74: af00 add r7, sp, #0
  3532. 8001b76: 6078 str r0, [r7, #4]
  3533. 8001b78: 6039 str r1, [r7, #0]
  3534. if (index < 0)
  3535. 8001b7a: 683b ldr r3, [r7, #0]
  3536. 8001b7c: 2b00 cmp r3, #0
  3537. 8001b7e: da01 bge.n 8001b84 <cJSON_GetArrayItem+0x14>
  3538. {
  3539. return NULL;
  3540. 8001b80: 2300 movs r3, #0
  3541. 8001b82: e005 b.n 8001b90 <cJSON_GetArrayItem+0x20>
  3542. }
  3543. return get_array_item(array, (size_t)index);
  3544. 8001b84: 683b ldr r3, [r7, #0]
  3545. 8001b86: 4619 mov r1, r3
  3546. 8001b88: 6878 ldr r0, [r7, #4]
  3547. 8001b8a: f7ff ffce bl 8001b2a <get_array_item>
  3548. 8001b8e: 4603 mov r3, r0
  3549. }
  3550. 8001b90: 4618 mov r0, r3
  3551. 8001b92: 3708 adds r7, #8
  3552. 8001b94: 46bd mov sp, r7
  3553. 8001b96: bd80 pop {r7, pc}
  3554. 08001b98 <get_object_item>:
  3555. static cJSON *get_object_item(const cJSON * const object, const char * const name, const cJSON_bool case_sensitive)
  3556. {
  3557. 8001b98: b580 push {r7, lr}
  3558. 8001b9a: b086 sub sp, #24
  3559. 8001b9c: af00 add r7, sp, #0
  3560. 8001b9e: 60f8 str r0, [r7, #12]
  3561. 8001ba0: 60b9 str r1, [r7, #8]
  3562. 8001ba2: 607a str r2, [r7, #4]
  3563. cJSON *current_element = NULL;
  3564. 8001ba4: 2300 movs r3, #0
  3565. 8001ba6: 617b str r3, [r7, #20]
  3566. if ((object == NULL) || (name == NULL))
  3567. 8001ba8: 68fb ldr r3, [r7, #12]
  3568. 8001baa: 2b00 cmp r3, #0
  3569. 8001bac: d002 beq.n 8001bb4 <get_object_item+0x1c>
  3570. 8001bae: 68bb ldr r3, [r7, #8]
  3571. 8001bb0: 2b00 cmp r3, #0
  3572. 8001bb2: d101 bne.n 8001bb8 <get_object_item+0x20>
  3573. {
  3574. return NULL;
  3575. 8001bb4: 2300 movs r3, #0
  3576. 8001bb6: e033 b.n 8001c20 <get_object_item+0x88>
  3577. }
  3578. current_element = object->child;
  3579. 8001bb8: 68fb ldr r3, [r7, #12]
  3580. 8001bba: 689b ldr r3, [r3, #8]
  3581. 8001bbc: 617b str r3, [r7, #20]
  3582. if (case_sensitive)
  3583. 8001bbe: 687b ldr r3, [r7, #4]
  3584. 8001bc0: 2b00 cmp r3, #0
  3585. 8001bc2: d017 beq.n 8001bf4 <get_object_item+0x5c>
  3586. {
  3587. while ((current_element != NULL) && (current_element->string != NULL) && (strcmp(name, current_element->string) != 0))
  3588. 8001bc4: e002 b.n 8001bcc <get_object_item+0x34>
  3589. {
  3590. current_element = current_element->next;
  3591. 8001bc6: 697b ldr r3, [r7, #20]
  3592. 8001bc8: 681b ldr r3, [r3, #0]
  3593. 8001bca: 617b str r3, [r7, #20]
  3594. while ((current_element != NULL) && (current_element->string != NULL) && (strcmp(name, current_element->string) != 0))
  3595. 8001bcc: 697b ldr r3, [r7, #20]
  3596. 8001bce: 2b00 cmp r3, #0
  3597. 8001bd0: d01c beq.n 8001c0c <get_object_item+0x74>
  3598. 8001bd2: 697b ldr r3, [r7, #20]
  3599. 8001bd4: 6a1b ldr r3, [r3, #32]
  3600. 8001bd6: 2b00 cmp r3, #0
  3601. 8001bd8: d018 beq.n 8001c0c <get_object_item+0x74>
  3602. 8001bda: 697b ldr r3, [r7, #20]
  3603. 8001bdc: 6a1b ldr r3, [r3, #32]
  3604. 8001bde: 4619 mov r1, r3
  3605. 8001be0: 68b8 ldr r0, [r7, #8]
  3606. 8001be2: f7fe fb7d bl 80002e0 <strcmp>
  3607. 8001be6: 4603 mov r3, r0
  3608. 8001be8: 2b00 cmp r3, #0
  3609. 8001bea: d1ec bne.n 8001bc6 <get_object_item+0x2e>
  3610. 8001bec: e00e b.n 8001c0c <get_object_item+0x74>
  3611. }
  3612. else
  3613. {
  3614. while ((current_element != NULL) && (case_insensitive_strcmp((const unsigned char*)name, (const unsigned char*)(current_element->string)) != 0))
  3615. {
  3616. current_element = current_element->next;
  3617. 8001bee: 697b ldr r3, [r7, #20]
  3618. 8001bf0: 681b ldr r3, [r3, #0]
  3619. 8001bf2: 617b str r3, [r7, #20]
  3620. while ((current_element != NULL) && (case_insensitive_strcmp((const unsigned char*)name, (const unsigned char*)(current_element->string)) != 0))
  3621. 8001bf4: 697b ldr r3, [r7, #20]
  3622. 8001bf6: 2b00 cmp r3, #0
  3623. 8001bf8: d008 beq.n 8001c0c <get_object_item+0x74>
  3624. 8001bfa: 697b ldr r3, [r7, #20]
  3625. 8001bfc: 6a1b ldr r3, [r3, #32]
  3626. 8001bfe: 4619 mov r1, r3
  3627. 8001c00: 68b8 ldr r0, [r7, #8]
  3628. 8001c02: f7fe ff41 bl 8000a88 <case_insensitive_strcmp>
  3629. 8001c06: 4603 mov r3, r0
  3630. 8001c08: 2b00 cmp r3, #0
  3631. 8001c0a: d1f0 bne.n 8001bee <get_object_item+0x56>
  3632. }
  3633. }
  3634. if ((current_element == NULL) || (current_element->string == NULL)) {
  3635. 8001c0c: 697b ldr r3, [r7, #20]
  3636. 8001c0e: 2b00 cmp r3, #0
  3637. 8001c10: d003 beq.n 8001c1a <get_object_item+0x82>
  3638. 8001c12: 697b ldr r3, [r7, #20]
  3639. 8001c14: 6a1b ldr r3, [r3, #32]
  3640. 8001c16: 2b00 cmp r3, #0
  3641. 8001c18: d101 bne.n 8001c1e <get_object_item+0x86>
  3642. return NULL;
  3643. 8001c1a: 2300 movs r3, #0
  3644. 8001c1c: e000 b.n 8001c20 <get_object_item+0x88>
  3645. }
  3646. return current_element;
  3647. 8001c1e: 697b ldr r3, [r7, #20]
  3648. }
  3649. 8001c20: 4618 mov r0, r3
  3650. 8001c22: 3718 adds r7, #24
  3651. 8001c24: 46bd mov sp, r7
  3652. 8001c26: bd80 pop {r7, pc}
  3653. 08001c28 <cJSON_GetObjectItemCaseSensitive>:
  3654. {
  3655. return get_object_item(object, string, false);
  3656. }
  3657. CJSON_PUBLIC(cJSON *) cJSON_GetObjectItemCaseSensitive(const cJSON * const object, const char * const string)
  3658. {
  3659. 8001c28: b580 push {r7, lr}
  3660. 8001c2a: b082 sub sp, #8
  3661. 8001c2c: af00 add r7, sp, #0
  3662. 8001c2e: 6078 str r0, [r7, #4]
  3663. 8001c30: 6039 str r1, [r7, #0]
  3664. return get_object_item(object, string, true);
  3665. 8001c32: 2201 movs r2, #1
  3666. 8001c34: 6839 ldr r1, [r7, #0]
  3667. 8001c36: 6878 ldr r0, [r7, #4]
  3668. 8001c38: f7ff ffae bl 8001b98 <get_object_item>
  3669. 8001c3c: 4603 mov r3, r0
  3670. }
  3671. 8001c3e: 4618 mov r0, r3
  3672. 8001c40: 3708 adds r7, #8
  3673. 8001c42: 46bd mov sp, r7
  3674. 8001c44: bd80 pop {r7, pc}
  3675. 08001c46 <cJSON_IsNumber>:
  3676. return (item->type & 0xFF) == cJSON_NULL;
  3677. }
  3678. CJSON_PUBLIC(cJSON_bool) cJSON_IsNumber(const cJSON * const item)
  3679. {
  3680. 8001c46: b480 push {r7}
  3681. 8001c48: b083 sub sp, #12
  3682. 8001c4a: af00 add r7, sp, #0
  3683. 8001c4c: 6078 str r0, [r7, #4]
  3684. if (item == NULL)
  3685. 8001c4e: 687b ldr r3, [r7, #4]
  3686. 8001c50: 2b00 cmp r3, #0
  3687. 8001c52: d101 bne.n 8001c58 <cJSON_IsNumber+0x12>
  3688. {
  3689. return false;
  3690. 8001c54: 2300 movs r3, #0
  3691. 8001c56: e007 b.n 8001c68 <cJSON_IsNumber+0x22>
  3692. }
  3693. return (item->type & 0xFF) == cJSON_Number;
  3694. 8001c58: 687b ldr r3, [r7, #4]
  3695. 8001c5a: 68db ldr r3, [r3, #12]
  3696. 8001c5c: b2db uxtb r3, r3
  3697. 8001c5e: 2b08 cmp r3, #8
  3698. 8001c60: bf0c ite eq
  3699. 8001c62: 2301 moveq r3, #1
  3700. 8001c64: 2300 movne r3, #0
  3701. 8001c66: b2db uxtb r3, r3
  3702. }
  3703. 8001c68: 4618 mov r0, r3
  3704. 8001c6a: 370c adds r7, #12
  3705. 8001c6c: 46bd mov sp, r7
  3706. 8001c6e: f85d 7b04 ldr.w r7, [sp], #4
  3707. 8001c72: 4770 bx lr
  3708. 08001c74 <cJSON_IsArray>:
  3709. return (item->type & 0xFF) == cJSON_String;
  3710. }
  3711. CJSON_PUBLIC(cJSON_bool) cJSON_IsArray(const cJSON * const item)
  3712. {
  3713. 8001c74: b480 push {r7}
  3714. 8001c76: b083 sub sp, #12
  3715. 8001c78: af00 add r7, sp, #0
  3716. 8001c7a: 6078 str r0, [r7, #4]
  3717. if (item == NULL)
  3718. 8001c7c: 687b ldr r3, [r7, #4]
  3719. 8001c7e: 2b00 cmp r3, #0
  3720. 8001c80: d101 bne.n 8001c86 <cJSON_IsArray+0x12>
  3721. {
  3722. return false;
  3723. 8001c82: 2300 movs r3, #0
  3724. 8001c84: e007 b.n 8001c96 <cJSON_IsArray+0x22>
  3725. }
  3726. return (item->type & 0xFF) == cJSON_Array;
  3727. 8001c86: 687b ldr r3, [r7, #4]
  3728. 8001c88: 68db ldr r3, [r3, #12]
  3729. 8001c8a: b2db uxtb r3, r3
  3730. 8001c8c: 2b20 cmp r3, #32
  3731. 8001c8e: bf0c ite eq
  3732. 8001c90: 2301 moveq r3, #1
  3733. 8001c92: 2300 movne r3, #0
  3734. 8001c94: b2db uxtb r3, r3
  3735. }
  3736. 8001c96: 4618 mov r0, r3
  3737. 8001c98: 370c adds r7, #12
  3738. 8001c9a: 46bd mov sp, r7
  3739. 8001c9c: f85d 7b04 ldr.w r7, [sp], #4
  3740. 8001ca0: 4770 bx lr
  3741. 08001ca2 <vApplicationStackOverflowHook>:
  3742. /* Hook prototypes */
  3743. void vApplicationStackOverflowHook(xTaskHandle xTask, signed char *pcTaskName);
  3744. /* USER CODE BEGIN 4 */
  3745. void vApplicationStackOverflowHook(xTaskHandle xTask, signed char *pcTaskName)
  3746. {
  3747. 8001ca2: b480 push {r7}
  3748. 8001ca4: b083 sub sp, #12
  3749. 8001ca6: af00 add r7, sp, #0
  3750. 8001ca8: 6078 str r0, [r7, #4]
  3751. 8001caa: 6039 str r1, [r7, #0]
  3752. /* Run time stack overflow checking is performed if
  3753. configCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2. This hook function is
  3754. called if a stack overflow is detected. */
  3755. }
  3756. 8001cac: bf00 nop
  3757. 8001cae: 370c adds r7, #12
  3758. 8001cb0: 46bd mov sp, r7
  3759. 8001cb2: f85d 7b04 ldr.w r7, [sp], #4
  3760. 8001cb6: 4770 bx lr
  3761. 08001cb8 <main>:
  3762. /**
  3763. * @brief The application entry point.
  3764. * @retval int
  3765. */
  3766. int main(void)
  3767. {
  3768. 8001cb8: b580 push {r7, lr}
  3769. 8001cba: b084 sub sp, #16
  3770. 8001cbc: af00 add r7, sp, #0
  3771. /* USER CODE BEGIN 1 */
  3772. /* USER CODE END 1 */
  3773. /* MPU Configuration--------------------------------------------------------*/
  3774. MPU_Config();
  3775. 8001cbe: f000 fa5b bl 8002178 <MPU_Config>
  3776. \details Turns on I-Cache
  3777. */
  3778. __STATIC_FORCEINLINE void SCB_EnableICache (void)
  3779. {
  3780. #if defined (__ICACHE_PRESENT) && (__ICACHE_PRESENT == 1U)
  3781. if (SCB->CCR & SCB_CCR_IC_Msk) return; /* return if ICache is already enabled */
  3782. 8001cc2: 4b42 ldr r3, [pc, #264] @ (8001dcc <main+0x114>)
  3783. 8001cc4: 695b ldr r3, [r3, #20]
  3784. 8001cc6: f403 3300 and.w r3, r3, #131072 @ 0x20000
  3785. 8001cca: 2b00 cmp r3, #0
  3786. 8001ccc: d11b bne.n 8001d06 <main+0x4e>
  3787. \details Acts as a special kind of Data Memory Barrier.
  3788. It completes when all explicit memory accesses before this instruction complete.
  3789. */
  3790. __STATIC_FORCEINLINE void __DSB(void)
  3791. {
  3792. __ASM volatile ("dsb 0xF":::"memory");
  3793. 8001cce: f3bf 8f4f dsb sy
  3794. }
  3795. 8001cd2: bf00 nop
  3796. __ASM volatile ("isb 0xF":::"memory");
  3797. 8001cd4: f3bf 8f6f isb sy
  3798. }
  3799. 8001cd8: bf00 nop
  3800. __DSB();
  3801. __ISB();
  3802. SCB->ICIALLU = 0UL; /* invalidate I-Cache */
  3803. 8001cda: 4b3c ldr r3, [pc, #240] @ (8001dcc <main+0x114>)
  3804. 8001cdc: 2200 movs r2, #0
  3805. 8001cde: f8c3 2250 str.w r2, [r3, #592] @ 0x250
  3806. __ASM volatile ("dsb 0xF":::"memory");
  3807. 8001ce2: f3bf 8f4f dsb sy
  3808. }
  3809. 8001ce6: bf00 nop
  3810. __ASM volatile ("isb 0xF":::"memory");
  3811. 8001ce8: f3bf 8f6f isb sy
  3812. }
  3813. 8001cec: bf00 nop
  3814. __DSB();
  3815. __ISB();
  3816. SCB->CCR |= (uint32_t)SCB_CCR_IC_Msk; /* enable I-Cache */
  3817. 8001cee: 4b37 ldr r3, [pc, #220] @ (8001dcc <main+0x114>)
  3818. 8001cf0: 695b ldr r3, [r3, #20]
  3819. 8001cf2: 4a36 ldr r2, [pc, #216] @ (8001dcc <main+0x114>)
  3820. 8001cf4: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  3821. 8001cf8: 6153 str r3, [r2, #20]
  3822. __ASM volatile ("dsb 0xF":::"memory");
  3823. 8001cfa: f3bf 8f4f dsb sy
  3824. }
  3825. 8001cfe: bf00 nop
  3826. __ASM volatile ("isb 0xF":::"memory");
  3827. 8001d00: f3bf 8f6f isb sy
  3828. }
  3829. 8001d04: e000 b.n 8001d08 <main+0x50>
  3830. if (SCB->CCR & SCB_CCR_IC_Msk) return; /* return if ICache is already enabled */
  3831. 8001d06: bf00 nop
  3832. #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U)
  3833. uint32_t ccsidr;
  3834. uint32_t sets;
  3835. uint32_t ways;
  3836. if (SCB->CCR & SCB_CCR_DC_Msk) return; /* return if DCache is already enabled */
  3837. 8001d08: 4b30 ldr r3, [pc, #192] @ (8001dcc <main+0x114>)
  3838. 8001d0a: 695b ldr r3, [r3, #20]
  3839. 8001d0c: f403 3380 and.w r3, r3, #65536 @ 0x10000
  3840. 8001d10: 2b00 cmp r3, #0
  3841. 8001d12: d138 bne.n 8001d86 <main+0xce>
  3842. SCB->CSSELR = 0U; /* select Level 1 data cache */
  3843. 8001d14: 4b2d ldr r3, [pc, #180] @ (8001dcc <main+0x114>)
  3844. 8001d16: 2200 movs r2, #0
  3845. 8001d18: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  3846. __ASM volatile ("dsb 0xF":::"memory");
  3847. 8001d1c: f3bf 8f4f dsb sy
  3848. }
  3849. 8001d20: bf00 nop
  3850. __DSB();
  3851. ccsidr = SCB->CCSIDR;
  3852. 8001d22: 4b2a ldr r3, [pc, #168] @ (8001dcc <main+0x114>)
  3853. 8001d24: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  3854. 8001d28: 60fb str r3, [r7, #12]
  3855. /* invalidate D-Cache */
  3856. sets = (uint32_t)(CCSIDR_SETS(ccsidr));
  3857. 8001d2a: 68fb ldr r3, [r7, #12]
  3858. 8001d2c: 0b5b lsrs r3, r3, #13
  3859. 8001d2e: f3c3 030e ubfx r3, r3, #0, #15
  3860. 8001d32: 60bb str r3, [r7, #8]
  3861. do {
  3862. ways = (uint32_t)(CCSIDR_WAYS(ccsidr));
  3863. 8001d34: 68fb ldr r3, [r7, #12]
  3864. 8001d36: 08db lsrs r3, r3, #3
  3865. 8001d38: f3c3 0309 ubfx r3, r3, #0, #10
  3866. 8001d3c: 607b str r3, [r7, #4]
  3867. do {
  3868. SCB->DCISW = (((sets << SCB_DCISW_SET_Pos) & SCB_DCISW_SET_Msk) |
  3869. 8001d3e: 68bb ldr r3, [r7, #8]
  3870. 8001d40: 015a lsls r2, r3, #5
  3871. 8001d42: f643 73e0 movw r3, #16352 @ 0x3fe0
  3872. 8001d46: 4013 ands r3, r2
  3873. ((ways << SCB_DCISW_WAY_Pos) & SCB_DCISW_WAY_Msk) );
  3874. 8001d48: 687a ldr r2, [r7, #4]
  3875. 8001d4a: 0792 lsls r2, r2, #30
  3876. SCB->DCISW = (((sets << SCB_DCISW_SET_Pos) & SCB_DCISW_SET_Msk) |
  3877. 8001d4c: 491f ldr r1, [pc, #124] @ (8001dcc <main+0x114>)
  3878. 8001d4e: 4313 orrs r3, r2
  3879. 8001d50: f8c1 3260 str.w r3, [r1, #608] @ 0x260
  3880. #if defined ( __CC_ARM )
  3881. __schedule_barrier();
  3882. #endif
  3883. } while (ways-- != 0U);
  3884. 8001d54: 687b ldr r3, [r7, #4]
  3885. 8001d56: 1e5a subs r2, r3, #1
  3886. 8001d58: 607a str r2, [r7, #4]
  3887. 8001d5a: 2b00 cmp r3, #0
  3888. 8001d5c: d1ef bne.n 8001d3e <main+0x86>
  3889. } while(sets-- != 0U);
  3890. 8001d5e: 68bb ldr r3, [r7, #8]
  3891. 8001d60: 1e5a subs r2, r3, #1
  3892. 8001d62: 60ba str r2, [r7, #8]
  3893. 8001d64: 2b00 cmp r3, #0
  3894. 8001d66: d1e5 bne.n 8001d34 <main+0x7c>
  3895. __ASM volatile ("dsb 0xF":::"memory");
  3896. 8001d68: f3bf 8f4f dsb sy
  3897. }
  3898. 8001d6c: bf00 nop
  3899. __DSB();
  3900. SCB->CCR |= (uint32_t)SCB_CCR_DC_Msk; /* enable D-Cache */
  3901. 8001d6e: 4b17 ldr r3, [pc, #92] @ (8001dcc <main+0x114>)
  3902. 8001d70: 695b ldr r3, [r3, #20]
  3903. 8001d72: 4a16 ldr r2, [pc, #88] @ (8001dcc <main+0x114>)
  3904. 8001d74: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  3905. 8001d78: 6153 str r3, [r2, #20]
  3906. __ASM volatile ("dsb 0xF":::"memory");
  3907. 8001d7a: f3bf 8f4f dsb sy
  3908. }
  3909. 8001d7e: bf00 nop
  3910. __ASM volatile ("isb 0xF":::"memory");
  3911. 8001d80: f3bf 8f6f isb sy
  3912. }
  3913. 8001d84: e000 b.n 8001d88 <main+0xd0>
  3914. if (SCB->CCR & SCB_CCR_DC_Msk) return; /* return if DCache is already enabled */
  3915. 8001d86: bf00 nop
  3916. SCB_EnableDCache();
  3917. /* MCU Configuration--------------------------------------------------------*/
  3918. /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
  3919. HAL_Init();
  3920. 8001d88: f002 feb2 bl 8004af0 <HAL_Init>
  3921. /* USER CODE BEGIN Init */
  3922. /* USER CODE END Init */
  3923. /* Configure the system clock */
  3924. SystemClock_Config();
  3925. 8001d8c: f000 f826 bl 8001ddc <SystemClock_Config>
  3926. /* USER CODE BEGIN SysInit */
  3927. /* USER CODE END SysInit */
  3928. /* Initialize all configured peripherals */
  3929. MX_GPIO_Init();
  3930. 8001d90: f000 f954 bl 800203c <MX_GPIO_Init>
  3931. MX_DMA_Init();
  3932. 8001d94: f000 f92a bl 8001fec <MX_DMA_Init>
  3933. MX_UART8_Init();
  3934. 8001d98: f000 f8dc bl 8001f54 <MX_UART8_Init>
  3935. MX_CRC_Init();
  3936. 8001d9c: f000 f89a bl 8001ed4 <MX_CRC_Init>
  3937. MX_RNG_Init();
  3938. 8001da0: f000 f8c2 bl 8001f28 <MX_RNG_Init>
  3939. // HAL_DMA_RegisterCallback(&hdma_uart8_rx, HAL_DMA_XFER_CPLT_CB_ID, dmaCallback);
  3940. /* USER CODE END 2 */
  3941. /* Init scheduler */
  3942. osKernelInitialize();
  3943. 8001da4: f00e fa90 bl 80102c8 <osKernelInitialize>
  3944. /* add queues, ... */
  3945. /* USER CODE END RTOS_QUEUES */
  3946. /* Create the thread(s) */
  3947. /* creation of defaultTask */
  3948. defaultTaskHandle = osThreadNew(StartDefaultTask, NULL, &defaultTask_attributes);
  3949. 8001da8: 4a09 ldr r2, [pc, #36] @ (8001dd0 <main+0x118>)
  3950. 8001daa: 2100 movs r1, #0
  3951. 8001dac: 4809 ldr r0, [pc, #36] @ (8001dd4 <main+0x11c>)
  3952. 8001dae: f00e faea bl 8010386 <osThreadNew>
  3953. 8001db2: 4603 mov r3, r0
  3954. 8001db4: 4a08 ldr r2, [pc, #32] @ (8001dd8 <main+0x120>)
  3955. 8001db6: 6013 str r3, [r2, #0]
  3956. /* USER CODE BEGIN RTOS_THREADS */
  3957. /* add threads, ... */
  3958. mqtt_cli_init();
  3959. 8001db8: f001 fab0 bl 800331c <mqtt_cli_init>
  3960. Uart8TasksInit();
  3961. 8001dbc: f001 fff8 bl 8003db0 <Uart8TasksInit>
  3962. #ifdef USER_MOCKS
  3963. MockMeasurmetsTaskInit();
  3964. 8001dc0: f000 fa50 bl 8002264 <MockMeasurmetsTaskInit>
  3965. /* USER CODE BEGIN RTOS_EVENTS */
  3966. /* add events, ... */
  3967. /* USER CODE END RTOS_EVENTS */
  3968. /* Start scheduler */
  3969. osKernelStart();
  3970. 8001dc4: f00e faa4 bl 8010310 <osKernelStart>
  3971. /* We should never get here as control is now taken by the scheduler */
  3972. /* Infinite loop */
  3973. /* USER CODE BEGIN WHILE */
  3974. while (1)
  3975. 8001dc8: bf00 nop
  3976. 8001dca: e7fd b.n 8001dc8 <main+0x110>
  3977. 8001dcc: e000ed00 .word 0xe000ed00
  3978. 8001dd0: 08030524 .word 0x08030524
  3979. 8001dd4: 08002161 .word 0x08002161
  3980. 8001dd8: 240003f0 .word 0x240003f0
  3981. 08001ddc <SystemClock_Config>:
  3982. /**
  3983. * @brief System Clock Configuration
  3984. * @retval None
  3985. */
  3986. void SystemClock_Config(void)
  3987. {
  3988. 8001ddc: b580 push {r7, lr}
  3989. 8001dde: b09c sub sp, #112 @ 0x70
  3990. 8001de0: af00 add r7, sp, #0
  3991. RCC_OscInitTypeDef RCC_OscInitStruct = {0};
  3992. 8001de2: f107 0324 add.w r3, r7, #36 @ 0x24
  3993. 8001de6: 224c movs r2, #76 @ 0x4c
  3994. 8001de8: 2100 movs r1, #0
  3995. 8001dea: 4618 mov r0, r3
  3996. 8001dec: f027 fd20 bl 8029830 <memset>
  3997. RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
  3998. 8001df0: 1d3b adds r3, r7, #4
  3999. 8001df2: 2220 movs r2, #32
  4000. 8001df4: 2100 movs r1, #0
  4001. 8001df6: 4618 mov r0, r3
  4002. 8001df8: f027 fd1a bl 8029830 <memset>
  4003. /** Supply configuration update enable
  4004. */
  4005. HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);
  4006. 8001dfc: 2002 movs r0, #2
  4007. 8001dfe: f007 fbc1 bl 8009584 <HAL_PWREx_ConfigSupply>
  4008. /** Configure the main internal regulator output voltage
  4009. */
  4010. __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
  4011. 8001e02: 2300 movs r3, #0
  4012. 8001e04: 603b str r3, [r7, #0]
  4013. 8001e06: 4b31 ldr r3, [pc, #196] @ (8001ecc <SystemClock_Config+0xf0>)
  4014. 8001e08: 6adb ldr r3, [r3, #44] @ 0x2c
  4015. 8001e0a: 4a30 ldr r2, [pc, #192] @ (8001ecc <SystemClock_Config+0xf0>)
  4016. 8001e0c: f023 0301 bic.w r3, r3, #1
  4017. 8001e10: 62d3 str r3, [r2, #44] @ 0x2c
  4018. 8001e12: 4b2e ldr r3, [pc, #184] @ (8001ecc <SystemClock_Config+0xf0>)
  4019. 8001e14: 6adb ldr r3, [r3, #44] @ 0x2c
  4020. 8001e16: f003 0301 and.w r3, r3, #1
  4021. 8001e1a: 603b str r3, [r7, #0]
  4022. 8001e1c: 4b2c ldr r3, [pc, #176] @ (8001ed0 <SystemClock_Config+0xf4>)
  4023. 8001e1e: 699b ldr r3, [r3, #24]
  4024. 8001e20: 4a2b ldr r2, [pc, #172] @ (8001ed0 <SystemClock_Config+0xf4>)
  4025. 8001e22: f443 4340 orr.w r3, r3, #49152 @ 0xc000
  4026. 8001e26: 6193 str r3, [r2, #24]
  4027. 8001e28: 4b29 ldr r3, [pc, #164] @ (8001ed0 <SystemClock_Config+0xf4>)
  4028. 8001e2a: 699b ldr r3, [r3, #24]
  4029. 8001e2c: f403 4340 and.w r3, r3, #49152 @ 0xc000
  4030. 8001e30: 603b str r3, [r7, #0]
  4031. 8001e32: 683b ldr r3, [r7, #0]
  4032. while(!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY)) {}
  4033. 8001e34: bf00 nop
  4034. 8001e36: 4b26 ldr r3, [pc, #152] @ (8001ed0 <SystemClock_Config+0xf4>)
  4035. 8001e38: 699b ldr r3, [r3, #24]
  4036. 8001e3a: f403 5300 and.w r3, r3, #8192 @ 0x2000
  4037. 8001e3e: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  4038. 8001e42: d1f8 bne.n 8001e36 <SystemClock_Config+0x5a>
  4039. /** Initializes the RCC Oscillators according to the specified parameters
  4040. * in the RCC_OscInitTypeDef structure.
  4041. */
  4042. RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI48|RCC_OSCILLATORTYPE_HSE;
  4043. 8001e44: 2321 movs r3, #33 @ 0x21
  4044. 8001e46: 627b str r3, [r7, #36] @ 0x24
  4045. RCC_OscInitStruct.HSEState = RCC_HSE_ON;
  4046. 8001e48: f44f 3380 mov.w r3, #65536 @ 0x10000
  4047. 8001e4c: 62bb str r3, [r7, #40] @ 0x28
  4048. RCC_OscInitStruct.HSI48State = RCC_HSI48_ON;
  4049. 8001e4e: 2301 movs r3, #1
  4050. 8001e50: 63fb str r3, [r7, #60] @ 0x3c
  4051. RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
  4052. 8001e52: 2302 movs r3, #2
  4053. 8001e54: 64bb str r3, [r7, #72] @ 0x48
  4054. RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
  4055. 8001e56: 2302 movs r3, #2
  4056. 8001e58: 64fb str r3, [r7, #76] @ 0x4c
  4057. RCC_OscInitStruct.PLL.PLLM = 5;
  4058. 8001e5a: 2305 movs r3, #5
  4059. 8001e5c: 653b str r3, [r7, #80] @ 0x50
  4060. RCC_OscInitStruct.PLL.PLLN = 160;
  4061. 8001e5e: 23a0 movs r3, #160 @ 0xa0
  4062. 8001e60: 657b str r3, [r7, #84] @ 0x54
  4063. RCC_OscInitStruct.PLL.PLLP = 2;
  4064. 8001e62: 2302 movs r3, #2
  4065. 8001e64: 65bb str r3, [r7, #88] @ 0x58
  4066. RCC_OscInitStruct.PLL.PLLQ = 2;
  4067. 8001e66: 2302 movs r3, #2
  4068. 8001e68: 65fb str r3, [r7, #92] @ 0x5c
  4069. RCC_OscInitStruct.PLL.PLLR = 2;
  4070. 8001e6a: 2302 movs r3, #2
  4071. 8001e6c: 663b str r3, [r7, #96] @ 0x60
  4072. RCC_OscInitStruct.PLL.PLLRGE = RCC_PLL1VCIRANGE_2;
  4073. 8001e6e: 2308 movs r3, #8
  4074. 8001e70: 667b str r3, [r7, #100] @ 0x64
  4075. RCC_OscInitStruct.PLL.PLLVCOSEL = RCC_PLL1VCOWIDE;
  4076. 8001e72: 2300 movs r3, #0
  4077. 8001e74: 66bb str r3, [r7, #104] @ 0x68
  4078. RCC_OscInitStruct.PLL.PLLFRACN = 0;
  4079. 8001e76: 2300 movs r3, #0
  4080. 8001e78: 66fb str r3, [r7, #108] @ 0x6c
  4081. if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
  4082. 8001e7a: f107 0324 add.w r3, r7, #36 @ 0x24
  4083. 8001e7e: 4618 mov r0, r3
  4084. 8001e80: f007 fbba bl 80095f8 <HAL_RCC_OscConfig>
  4085. 8001e84: 4603 mov r3, r0
  4086. 8001e86: 2b00 cmp r3, #0
  4087. 8001e88: d001 beq.n 8001e8e <SystemClock_Config+0xb2>
  4088. {
  4089. Error_Handler();
  4090. 8001e8a: f000 f9e5 bl 8002258 <Error_Handler>
  4091. }
  4092. /** Initializes the CPU, AHB and APB buses clocks
  4093. */
  4094. RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
  4095. 8001e8e: 233f movs r3, #63 @ 0x3f
  4096. 8001e90: 607b str r3, [r7, #4]
  4097. |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2
  4098. |RCC_CLOCKTYPE_D3PCLK1|RCC_CLOCKTYPE_D1PCLK1;
  4099. RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
  4100. 8001e92: 2303 movs r3, #3
  4101. 8001e94: 60bb str r3, [r7, #8]
  4102. RCC_ClkInitStruct.SYSCLKDivider = RCC_SYSCLK_DIV1;
  4103. 8001e96: 2300 movs r3, #0
  4104. 8001e98: 60fb str r3, [r7, #12]
  4105. RCC_ClkInitStruct.AHBCLKDivider = RCC_HCLK_DIV2;
  4106. 8001e9a: 2308 movs r3, #8
  4107. 8001e9c: 613b str r3, [r7, #16]
  4108. RCC_ClkInitStruct.APB3CLKDivider = RCC_APB3_DIV2;
  4109. 8001e9e: 2340 movs r3, #64 @ 0x40
  4110. 8001ea0: 617b str r3, [r7, #20]
  4111. RCC_ClkInitStruct.APB1CLKDivider = RCC_APB1_DIV2;
  4112. 8001ea2: 2340 movs r3, #64 @ 0x40
  4113. 8001ea4: 61bb str r3, [r7, #24]
  4114. RCC_ClkInitStruct.APB2CLKDivider = RCC_APB2_DIV2;
  4115. 8001ea6: f44f 6380 mov.w r3, #1024 @ 0x400
  4116. 8001eaa: 61fb str r3, [r7, #28]
  4117. RCC_ClkInitStruct.APB4CLKDivider = RCC_APB4_DIV2;
  4118. 8001eac: 2340 movs r3, #64 @ 0x40
  4119. 8001eae: 623b str r3, [r7, #32]
  4120. if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK)
  4121. 8001eb0: 1d3b adds r3, r7, #4
  4122. 8001eb2: 2102 movs r1, #2
  4123. 8001eb4: 4618 mov r0, r3
  4124. 8001eb6: f007 fff9 bl 8009eac <HAL_RCC_ClockConfig>
  4125. 8001eba: 4603 mov r3, r0
  4126. 8001ebc: 2b00 cmp r3, #0
  4127. 8001ebe: d001 beq.n 8001ec4 <SystemClock_Config+0xe8>
  4128. {
  4129. Error_Handler();
  4130. 8001ec0: f000 f9ca bl 8002258 <Error_Handler>
  4131. }
  4132. }
  4133. 8001ec4: bf00 nop
  4134. 8001ec6: 3770 adds r7, #112 @ 0x70
  4135. 8001ec8: 46bd mov sp, r7
  4136. 8001eca: bd80 pop {r7, pc}
  4137. 8001ecc: 58000400 .word 0x58000400
  4138. 8001ed0: 58024800 .word 0x58024800
  4139. 08001ed4 <MX_CRC_Init>:
  4140. * @brief CRC Initialization Function
  4141. * @param None
  4142. * @retval None
  4143. */
  4144. static void MX_CRC_Init(void)
  4145. {
  4146. 8001ed4: b580 push {r7, lr}
  4147. 8001ed6: af00 add r7, sp, #0
  4148. /* USER CODE END CRC_Init 0 */
  4149. /* USER CODE BEGIN CRC_Init 1 */
  4150. /* USER CODE END CRC_Init 1 */
  4151. hcrc.Instance = CRC;
  4152. 8001ed8: 4b11 ldr r3, [pc, #68] @ (8001f20 <MX_CRC_Init+0x4c>)
  4153. 8001eda: 4a12 ldr r2, [pc, #72] @ (8001f24 <MX_CRC_Init+0x50>)
  4154. 8001edc: 601a str r2, [r3, #0]
  4155. hcrc.Init.DefaultPolynomialUse = DEFAULT_POLYNOMIAL_DISABLE;
  4156. 8001ede: 4b10 ldr r3, [pc, #64] @ (8001f20 <MX_CRC_Init+0x4c>)
  4157. 8001ee0: 2201 movs r2, #1
  4158. 8001ee2: 711a strb r2, [r3, #4]
  4159. hcrc.Init.DefaultInitValueUse = DEFAULT_INIT_VALUE_ENABLE;
  4160. 8001ee4: 4b0e ldr r3, [pc, #56] @ (8001f20 <MX_CRC_Init+0x4c>)
  4161. 8001ee6: 2200 movs r2, #0
  4162. 8001ee8: 715a strb r2, [r3, #5]
  4163. hcrc.Init.GeneratingPolynomial = 4129;
  4164. 8001eea: 4b0d ldr r3, [pc, #52] @ (8001f20 <MX_CRC_Init+0x4c>)
  4165. 8001eec: f241 0221 movw r2, #4129 @ 0x1021
  4166. 8001ef0: 609a str r2, [r3, #8]
  4167. hcrc.Init.CRCLength = CRC_POLYLENGTH_16B;
  4168. 8001ef2: 4b0b ldr r3, [pc, #44] @ (8001f20 <MX_CRC_Init+0x4c>)
  4169. 8001ef4: 2208 movs r2, #8
  4170. 8001ef6: 60da str r2, [r3, #12]
  4171. hcrc.Init.InputDataInversionMode = CRC_INPUTDATA_INVERSION_NONE;
  4172. 8001ef8: 4b09 ldr r3, [pc, #36] @ (8001f20 <MX_CRC_Init+0x4c>)
  4173. 8001efa: 2200 movs r2, #0
  4174. 8001efc: 615a str r2, [r3, #20]
  4175. hcrc.Init.OutputDataInversionMode = CRC_OUTPUTDATA_INVERSION_DISABLE;
  4176. 8001efe: 4b08 ldr r3, [pc, #32] @ (8001f20 <MX_CRC_Init+0x4c>)
  4177. 8001f00: 2200 movs r2, #0
  4178. 8001f02: 619a str r2, [r3, #24]
  4179. hcrc.InputDataFormat = CRC_INPUTDATA_FORMAT_BYTES;
  4180. 8001f04: 4b06 ldr r3, [pc, #24] @ (8001f20 <MX_CRC_Init+0x4c>)
  4181. 8001f06: 2201 movs r2, #1
  4182. 8001f08: 621a str r2, [r3, #32]
  4183. if (HAL_CRC_Init(&hcrc) != HAL_OK)
  4184. 8001f0a: 4805 ldr r0, [pc, #20] @ (8001f20 <MX_CRC_Init+0x4c>)
  4185. 8001f0c: f002 ffe8 bl 8004ee0 <HAL_CRC_Init>
  4186. 8001f10: 4603 mov r3, r0
  4187. 8001f12: 2b00 cmp r3, #0
  4188. 8001f14: d001 beq.n 8001f1a <MX_CRC_Init+0x46>
  4189. {
  4190. Error_Handler();
  4191. 8001f16: f000 f99f bl 8002258 <Error_Handler>
  4192. }
  4193. /* USER CODE BEGIN CRC_Init 2 */
  4194. /* USER CODE END CRC_Init 2 */
  4195. }
  4196. 8001f1a: bf00 nop
  4197. 8001f1c: bd80 pop {r7, pc}
  4198. 8001f1e: bf00 nop
  4199. 8001f20: 24000234 .word 0x24000234
  4200. 8001f24: 58024c00 .word 0x58024c00
  4201. 08001f28 <MX_RNG_Init>:
  4202. * @brief RNG Initialization Function
  4203. * @param None
  4204. * @retval None
  4205. */
  4206. static void MX_RNG_Init(void)
  4207. {
  4208. 8001f28: b580 push {r7, lr}
  4209. 8001f2a: af00 add r7, sp, #0
  4210. /* USER CODE END RNG_Init 0 */
  4211. /* USER CODE BEGIN RNG_Init 1 */
  4212. /* USER CODE END RNG_Init 1 */
  4213. hrng.Instance = RNG;
  4214. 8001f2c: 4b07 ldr r3, [pc, #28] @ (8001f4c <MX_RNG_Init+0x24>)
  4215. 8001f2e: 4a08 ldr r2, [pc, #32] @ (8001f50 <MX_RNG_Init+0x28>)
  4216. 8001f30: 601a str r2, [r3, #0]
  4217. hrng.Init.ClockErrorDetection = RNG_CED_ENABLE;
  4218. 8001f32: 4b06 ldr r3, [pc, #24] @ (8001f4c <MX_RNG_Init+0x24>)
  4219. 8001f34: 2200 movs r2, #0
  4220. 8001f36: 605a str r2, [r3, #4]
  4221. if (HAL_RNG_Init(&hrng) != HAL_OK)
  4222. 8001f38: 4804 ldr r0, [pc, #16] @ (8001f4c <MX_RNG_Init+0x24>)
  4223. 8001f3a: f00a f995 bl 800c268 <HAL_RNG_Init>
  4224. 8001f3e: 4603 mov r3, r0
  4225. 8001f40: 2b00 cmp r3, #0
  4226. 8001f42: d001 beq.n 8001f48 <MX_RNG_Init+0x20>
  4227. {
  4228. Error_Handler();
  4229. 8001f44: f000 f988 bl 8002258 <Error_Handler>
  4230. }
  4231. /* USER CODE BEGIN RNG_Init 2 */
  4232. /* USER CODE END RNG_Init 2 */
  4233. }
  4234. 8001f48: bf00 nop
  4235. 8001f4a: bd80 pop {r7, pc}
  4236. 8001f4c: 24000258 .word 0x24000258
  4237. 8001f50: 48021800 .word 0x48021800
  4238. 08001f54 <MX_UART8_Init>:
  4239. * @brief UART8 Initialization Function
  4240. * @param None
  4241. * @retval None
  4242. */
  4243. static void MX_UART8_Init(void)
  4244. {
  4245. 8001f54: b580 push {r7, lr}
  4246. 8001f56: af00 add r7, sp, #0
  4247. /* USER CODE END UART8_Init 0 */
  4248. /* USER CODE BEGIN UART8_Init 1 */
  4249. /* USER CODE END UART8_Init 1 */
  4250. huart8.Instance = UART8;
  4251. 8001f58: 4b22 ldr r3, [pc, #136] @ (8001fe4 <MX_UART8_Init+0x90>)
  4252. 8001f5a: 4a23 ldr r2, [pc, #140] @ (8001fe8 <MX_UART8_Init+0x94>)
  4253. 8001f5c: 601a str r2, [r3, #0]
  4254. huart8.Init.BaudRate = 115200;
  4255. 8001f5e: 4b21 ldr r3, [pc, #132] @ (8001fe4 <MX_UART8_Init+0x90>)
  4256. 8001f60: f44f 32e1 mov.w r2, #115200 @ 0x1c200
  4257. 8001f64: 605a str r2, [r3, #4]
  4258. huart8.Init.WordLength = UART_WORDLENGTH_8B;
  4259. 8001f66: 4b1f ldr r3, [pc, #124] @ (8001fe4 <MX_UART8_Init+0x90>)
  4260. 8001f68: 2200 movs r2, #0
  4261. 8001f6a: 609a str r2, [r3, #8]
  4262. huart8.Init.StopBits = UART_STOPBITS_1;
  4263. 8001f6c: 4b1d ldr r3, [pc, #116] @ (8001fe4 <MX_UART8_Init+0x90>)
  4264. 8001f6e: 2200 movs r2, #0
  4265. 8001f70: 60da str r2, [r3, #12]
  4266. huart8.Init.Parity = UART_PARITY_NONE;
  4267. 8001f72: 4b1c ldr r3, [pc, #112] @ (8001fe4 <MX_UART8_Init+0x90>)
  4268. 8001f74: 2200 movs r2, #0
  4269. 8001f76: 611a str r2, [r3, #16]
  4270. huart8.Init.Mode = UART_MODE_TX_RX;
  4271. 8001f78: 4b1a ldr r3, [pc, #104] @ (8001fe4 <MX_UART8_Init+0x90>)
  4272. 8001f7a: 220c movs r2, #12
  4273. 8001f7c: 615a str r2, [r3, #20]
  4274. huart8.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  4275. 8001f7e: 4b19 ldr r3, [pc, #100] @ (8001fe4 <MX_UART8_Init+0x90>)
  4276. 8001f80: 2200 movs r2, #0
  4277. 8001f82: 619a str r2, [r3, #24]
  4278. huart8.Init.OverSampling = UART_OVERSAMPLING_16;
  4279. 8001f84: 4b17 ldr r3, [pc, #92] @ (8001fe4 <MX_UART8_Init+0x90>)
  4280. 8001f86: 2200 movs r2, #0
  4281. 8001f88: 61da str r2, [r3, #28]
  4282. huart8.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  4283. 8001f8a: 4b16 ldr r3, [pc, #88] @ (8001fe4 <MX_UART8_Init+0x90>)
  4284. 8001f8c: 2200 movs r2, #0
  4285. 8001f8e: 621a str r2, [r3, #32]
  4286. huart8.Init.ClockPrescaler = UART_PRESCALER_DIV1;
  4287. 8001f90: 4b14 ldr r3, [pc, #80] @ (8001fe4 <MX_UART8_Init+0x90>)
  4288. 8001f92: 2200 movs r2, #0
  4289. 8001f94: 625a str r2, [r3, #36] @ 0x24
  4290. huart8.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT;
  4291. 8001f96: 4b13 ldr r3, [pc, #76] @ (8001fe4 <MX_UART8_Init+0x90>)
  4292. 8001f98: 2200 movs r2, #0
  4293. 8001f9a: 629a str r2, [r3, #40] @ 0x28
  4294. if (HAL_UART_Init(&huart8) != HAL_OK)
  4295. 8001f9c: 4811 ldr r0, [pc, #68] @ (8001fe4 <MX_UART8_Init+0x90>)
  4296. 8001f9e: f00a fce9 bl 800c974 <HAL_UART_Init>
  4297. 8001fa2: 4603 mov r3, r0
  4298. 8001fa4: 2b00 cmp r3, #0
  4299. 8001fa6: d001 beq.n 8001fac <MX_UART8_Init+0x58>
  4300. {
  4301. Error_Handler();
  4302. 8001fa8: f000 f956 bl 8002258 <Error_Handler>
  4303. }
  4304. if (HAL_UARTEx_SetTxFifoThreshold(&huart8, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK)
  4305. 8001fac: 2100 movs r1, #0
  4306. 8001fae: 480d ldr r0, [pc, #52] @ (8001fe4 <MX_UART8_Init+0x90>)
  4307. 8001fb0: f00d f989 bl 800f2c6 <HAL_UARTEx_SetTxFifoThreshold>
  4308. 8001fb4: 4603 mov r3, r0
  4309. 8001fb6: 2b00 cmp r3, #0
  4310. 8001fb8: d001 beq.n 8001fbe <MX_UART8_Init+0x6a>
  4311. {
  4312. Error_Handler();
  4313. 8001fba: f000 f94d bl 8002258 <Error_Handler>
  4314. }
  4315. if (HAL_UARTEx_SetRxFifoThreshold(&huart8, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK)
  4316. 8001fbe: 2100 movs r1, #0
  4317. 8001fc0: 4808 ldr r0, [pc, #32] @ (8001fe4 <MX_UART8_Init+0x90>)
  4318. 8001fc2: f00d f9be bl 800f342 <HAL_UARTEx_SetRxFifoThreshold>
  4319. 8001fc6: 4603 mov r3, r0
  4320. 8001fc8: 2b00 cmp r3, #0
  4321. 8001fca: d001 beq.n 8001fd0 <MX_UART8_Init+0x7c>
  4322. {
  4323. Error_Handler();
  4324. 8001fcc: f000 f944 bl 8002258 <Error_Handler>
  4325. }
  4326. if (HAL_UARTEx_DisableFifoMode(&huart8) != HAL_OK)
  4327. 8001fd0: 4804 ldr r0, [pc, #16] @ (8001fe4 <MX_UART8_Init+0x90>)
  4328. 8001fd2: f00d f93f bl 800f254 <HAL_UARTEx_DisableFifoMode>
  4329. 8001fd6: 4603 mov r3, r0
  4330. 8001fd8: 2b00 cmp r3, #0
  4331. 8001fda: d001 beq.n 8001fe0 <MX_UART8_Init+0x8c>
  4332. {
  4333. Error_Handler();
  4334. 8001fdc: f000 f93c bl 8002258 <Error_Handler>
  4335. }
  4336. /* USER CODE BEGIN UART8_Init 2 */
  4337. /* USER CODE END UART8_Init 2 */
  4338. }
  4339. 8001fe0: bf00 nop
  4340. 8001fe2: bd80 pop {r7, pc}
  4341. 8001fe4: 2400026c .word 0x2400026c
  4342. 8001fe8: 40007c00 .word 0x40007c00
  4343. 08001fec <MX_DMA_Init>:
  4344. /**
  4345. * Enable DMA controller clock
  4346. */
  4347. static void MX_DMA_Init(void)
  4348. {
  4349. 8001fec: b580 push {r7, lr}
  4350. 8001fee: b082 sub sp, #8
  4351. 8001ff0: af00 add r7, sp, #0
  4352. /* DMA controller clock enable */
  4353. __HAL_RCC_DMA2_CLK_ENABLE();
  4354. 8001ff2: 4b11 ldr r3, [pc, #68] @ (8002038 <MX_DMA_Init+0x4c>)
  4355. 8001ff4: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  4356. 8001ff8: 4a0f ldr r2, [pc, #60] @ (8002038 <MX_DMA_Init+0x4c>)
  4357. 8001ffa: f043 0302 orr.w r3, r3, #2
  4358. 8001ffe: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  4359. 8002002: 4b0d ldr r3, [pc, #52] @ (8002038 <MX_DMA_Init+0x4c>)
  4360. 8002004: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  4361. 8002008: f003 0302 and.w r3, r3, #2
  4362. 800200c: 607b str r3, [r7, #4]
  4363. 800200e: 687b ldr r3, [r7, #4]
  4364. /* DMA interrupt init */
  4365. /* DMA2_Stream6_IRQn interrupt configuration */
  4366. HAL_NVIC_SetPriority(DMA2_Stream6_IRQn, 5, 0);
  4367. 8002010: 2200 movs r2, #0
  4368. 8002012: 2105 movs r1, #5
  4369. 8002014: 2045 movs r0, #69 @ 0x45
  4370. 8002016: f002 fec3 bl 8004da0 <HAL_NVIC_SetPriority>
  4371. HAL_NVIC_EnableIRQ(DMA2_Stream6_IRQn);
  4372. 800201a: 2045 movs r0, #69 @ 0x45
  4373. 800201c: f002 feda bl 8004dd4 <HAL_NVIC_EnableIRQ>
  4374. /* DMA2_Stream7_IRQn interrupt configuration */
  4375. HAL_NVIC_SetPriority(DMA2_Stream7_IRQn, 5, 0);
  4376. 8002020: 2200 movs r2, #0
  4377. 8002022: 2105 movs r1, #5
  4378. 8002024: 2046 movs r0, #70 @ 0x46
  4379. 8002026: f002 febb bl 8004da0 <HAL_NVIC_SetPriority>
  4380. HAL_NVIC_EnableIRQ(DMA2_Stream7_IRQn);
  4381. 800202a: 2046 movs r0, #70 @ 0x46
  4382. 800202c: f002 fed2 bl 8004dd4 <HAL_NVIC_EnableIRQ>
  4383. }
  4384. 8002030: bf00 nop
  4385. 8002032: 3708 adds r7, #8
  4386. 8002034: 46bd mov sp, r7
  4387. 8002036: bd80 pop {r7, pc}
  4388. 8002038: 58024400 .word 0x58024400
  4389. 0800203c <MX_GPIO_Init>:
  4390. * @brief GPIO Initialization Function
  4391. * @param None
  4392. * @retval None
  4393. */
  4394. static void MX_GPIO_Init(void)
  4395. {
  4396. 800203c: b580 push {r7, lr}
  4397. 800203e: b08c sub sp, #48 @ 0x30
  4398. 8002040: af00 add r7, sp, #0
  4399. /* USER CODE BEGIN MX_GPIO_Init_1 */
  4400. GPIO_InitTypeDef GPIO_InitStruct = {0};
  4401. 8002042: f107 031c add.w r3, r7, #28
  4402. 8002046: 2200 movs r2, #0
  4403. 8002048: 601a str r2, [r3, #0]
  4404. 800204a: 605a str r2, [r3, #4]
  4405. 800204c: 609a str r2, [r3, #8]
  4406. 800204e: 60da str r2, [r3, #12]
  4407. 8002050: 611a str r2, [r3, #16]
  4408. /* USER CODE END MX_GPIO_Init_1 */
  4409. /* GPIO Ports Clock Enable */
  4410. __HAL_RCC_GPIOH_CLK_ENABLE();
  4411. 8002052: 4b41 ldr r3, [pc, #260] @ (8002158 <MX_GPIO_Init+0x11c>)
  4412. 8002054: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4413. 8002058: 4a3f ldr r2, [pc, #252] @ (8002158 <MX_GPIO_Init+0x11c>)
  4414. 800205a: f043 0380 orr.w r3, r3, #128 @ 0x80
  4415. 800205e: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  4416. 8002062: 4b3d ldr r3, [pc, #244] @ (8002158 <MX_GPIO_Init+0x11c>)
  4417. 8002064: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4418. 8002068: f003 0380 and.w r3, r3, #128 @ 0x80
  4419. 800206c: 61bb str r3, [r7, #24]
  4420. 800206e: 69bb ldr r3, [r7, #24]
  4421. __HAL_RCC_GPIOC_CLK_ENABLE();
  4422. 8002070: 4b39 ldr r3, [pc, #228] @ (8002158 <MX_GPIO_Init+0x11c>)
  4423. 8002072: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4424. 8002076: 4a38 ldr r2, [pc, #224] @ (8002158 <MX_GPIO_Init+0x11c>)
  4425. 8002078: f043 0304 orr.w r3, r3, #4
  4426. 800207c: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  4427. 8002080: 4b35 ldr r3, [pc, #212] @ (8002158 <MX_GPIO_Init+0x11c>)
  4428. 8002082: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4429. 8002086: f003 0304 and.w r3, r3, #4
  4430. 800208a: 617b str r3, [r7, #20]
  4431. 800208c: 697b ldr r3, [r7, #20]
  4432. __HAL_RCC_GPIOA_CLK_ENABLE();
  4433. 800208e: 4b32 ldr r3, [pc, #200] @ (8002158 <MX_GPIO_Init+0x11c>)
  4434. 8002090: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4435. 8002094: 4a30 ldr r2, [pc, #192] @ (8002158 <MX_GPIO_Init+0x11c>)
  4436. 8002096: f043 0301 orr.w r3, r3, #1
  4437. 800209a: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  4438. 800209e: 4b2e ldr r3, [pc, #184] @ (8002158 <MX_GPIO_Init+0x11c>)
  4439. 80020a0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4440. 80020a4: f003 0301 and.w r3, r3, #1
  4441. 80020a8: 613b str r3, [r7, #16]
  4442. 80020aa: 693b ldr r3, [r7, #16]
  4443. __HAL_RCC_GPIOB_CLK_ENABLE();
  4444. 80020ac: 4b2a ldr r3, [pc, #168] @ (8002158 <MX_GPIO_Init+0x11c>)
  4445. 80020ae: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4446. 80020b2: 4a29 ldr r2, [pc, #164] @ (8002158 <MX_GPIO_Init+0x11c>)
  4447. 80020b4: f043 0302 orr.w r3, r3, #2
  4448. 80020b8: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  4449. 80020bc: 4b26 ldr r3, [pc, #152] @ (8002158 <MX_GPIO_Init+0x11c>)
  4450. 80020be: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4451. 80020c2: f003 0302 and.w r3, r3, #2
  4452. 80020c6: 60fb str r3, [r7, #12]
  4453. 80020c8: 68fb ldr r3, [r7, #12]
  4454. __HAL_RCC_GPIOE_CLK_ENABLE();
  4455. 80020ca: 4b23 ldr r3, [pc, #140] @ (8002158 <MX_GPIO_Init+0x11c>)
  4456. 80020cc: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4457. 80020d0: 4a21 ldr r2, [pc, #132] @ (8002158 <MX_GPIO_Init+0x11c>)
  4458. 80020d2: f043 0310 orr.w r3, r3, #16
  4459. 80020d6: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  4460. 80020da: 4b1f ldr r3, [pc, #124] @ (8002158 <MX_GPIO_Init+0x11c>)
  4461. 80020dc: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4462. 80020e0: f003 0310 and.w r3, r3, #16
  4463. 80020e4: 60bb str r3, [r7, #8]
  4464. 80020e6: 68bb ldr r3, [r7, #8]
  4465. /* USER CODE BEGIN MX_GPIO_Init_2 */
  4466. __HAL_RCC_GPIOE_CLK_ENABLE();
  4467. 80020e8: 4b1b ldr r3, [pc, #108] @ (8002158 <MX_GPIO_Init+0x11c>)
  4468. 80020ea: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4469. 80020ee: 4a1a ldr r2, [pc, #104] @ (8002158 <MX_GPIO_Init+0x11c>)
  4470. 80020f0: f043 0310 orr.w r3, r3, #16
  4471. 80020f4: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  4472. 80020f8: 4b17 ldr r3, [pc, #92] @ (8002158 <MX_GPIO_Init+0x11c>)
  4473. 80020fa: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4474. 80020fe: f003 0310 and.w r3, r3, #16
  4475. 8002102: 607b str r3, [r7, #4]
  4476. 8002104: 687b ldr r3, [r7, #4]
  4477. GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  4478. 8002106: f44f 4340 mov.w r3, #49152 @ 0xc000
  4479. 800210a: 61fb str r3, [r7, #28]
  4480. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  4481. 800210c: 2301 movs r3, #1
  4482. 800210e: 623b str r3, [r7, #32]
  4483. GPIO_InitStruct.Pull = GPIO_PULLUP;
  4484. 8002110: 2301 movs r3, #1
  4485. 8002112: 627b str r3, [r7, #36] @ 0x24
  4486. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  4487. 8002114: 2300 movs r3, #0
  4488. 8002116: 62bb str r3, [r7, #40] @ 0x28
  4489. HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
  4490. 8002118: f107 031c add.w r3, r7, #28
  4491. 800211c: 4619 mov r1, r3
  4492. 800211e: 480f ldr r0, [pc, #60] @ (800215c <MX_GPIO_Init+0x120>)
  4493. 8002120: f007 f866 bl 80091f0 <HAL_GPIO_Init>
  4494. HAL_GPIO_WritePin(GPIOE, GPIO_PIN_14, GPIO_PIN_RESET);
  4495. 8002124: 2200 movs r2, #0
  4496. 8002126: f44f 4180 mov.w r1, #16384 @ 0x4000
  4497. 800212a: 480c ldr r0, [pc, #48] @ (800215c <MX_GPIO_Init+0x120>)
  4498. 800212c: f007 fa10 bl 8009550 <HAL_GPIO_WritePin>
  4499. HAL_Delay(100);
  4500. 8002130: 2064 movs r0, #100 @ 0x64
  4501. 8002132: f002 fd39 bl 8004ba8 <HAL_Delay>
  4502. HAL_GPIO_WritePin(GPIOE, GPIO_PIN_14, GPIO_PIN_SET);
  4503. 8002136: 2201 movs r2, #1
  4504. 8002138: f44f 4180 mov.w r1, #16384 @ 0x4000
  4505. 800213c: 4807 ldr r0, [pc, #28] @ (800215c <MX_GPIO_Init+0x120>)
  4506. 800213e: f007 fa07 bl 8009550 <HAL_GPIO_WritePin>
  4507. HAL_GPIO_WritePin(GPIOE, GPIO_PIN_15, GPIO_PIN_SET);
  4508. 8002142: 2201 movs r2, #1
  4509. 8002144: f44f 4100 mov.w r1, #32768 @ 0x8000
  4510. 8002148: 4804 ldr r0, [pc, #16] @ (800215c <MX_GPIO_Init+0x120>)
  4511. 800214a: f007 fa01 bl 8009550 <HAL_GPIO_WritePin>
  4512. /* USER CODE END MX_GPIO_Init_2 */
  4513. }
  4514. 800214e: bf00 nop
  4515. 8002150: 3730 adds r7, #48 @ 0x30
  4516. 8002152: 46bd mov sp, r7
  4517. 8002154: bd80 pop {r7, pc}
  4518. 8002156: bf00 nop
  4519. 8002158: 58024400 .word 0x58024400
  4520. 800215c: 58021000 .word 0x58021000
  4521. 08002160 <StartDefaultTask>:
  4522. * @param argument: Not used
  4523. * @retval None
  4524. */
  4525. /* USER CODE END Header_StartDefaultTask */
  4526. void StartDefaultTask(void *argument)
  4527. {
  4528. 8002160: b580 push {r7, lr}
  4529. 8002162: b082 sub sp, #8
  4530. 8002164: af00 add r7, sp, #0
  4531. 8002166: 6078 str r0, [r7, #4]
  4532. /* init code for LWIP */
  4533. MX_LWIP_Init();
  4534. 8002168: f00d f9e8 bl 800f53c <MX_LWIP_Init>
  4535. /* USER CODE BEGIN 5 */
  4536. // uint8_t data[256] = "DUPA\n";
  4537. /* Infinite loop */
  4538. for(;;)
  4539. {
  4540. osDelay(pdMS_TO_TICKS(1000));
  4541. 800216c: f44f 707a mov.w r0, #1000 @ 0x3e8
  4542. 8002170: f00e f9a7 bl 80104c2 <osDelay>
  4543. 8002174: e7fa b.n 800216c <StartDefaultTask+0xc>
  4544. ...
  4545. 08002178 <MPU_Config>:
  4546. }
  4547. /* MPU Configuration */
  4548. void MPU_Config(void)
  4549. {
  4550. 8002178: b580 push {r7, lr}
  4551. 800217a: b084 sub sp, #16
  4552. 800217c: af00 add r7, sp, #0
  4553. MPU_Region_InitTypeDef MPU_InitStruct = {0};
  4554. 800217e: 463b mov r3, r7
  4555. 8002180: 2200 movs r2, #0
  4556. 8002182: 601a str r2, [r3, #0]
  4557. 8002184: 605a str r2, [r3, #4]
  4558. 8002186: 609a str r2, [r3, #8]
  4559. 8002188: 60da str r2, [r3, #12]
  4560. /* Disables the MPU */
  4561. HAL_MPU_Disable();
  4562. 800218a: f002 fe31 bl 8004df0 <HAL_MPU_Disable>
  4563. /** Initializes and configures the Region and the memory to be protected
  4564. */
  4565. MPU_InitStruct.Enable = MPU_REGION_ENABLE;
  4566. 800218e: 2301 movs r3, #1
  4567. 8002190: 703b strb r3, [r7, #0]
  4568. MPU_InitStruct.Number = MPU_REGION_NUMBER0;
  4569. 8002192: 2300 movs r3, #0
  4570. 8002194: 707b strb r3, [r7, #1]
  4571. MPU_InitStruct.BaseAddress = 0x0;
  4572. 8002196: 2300 movs r3, #0
  4573. 8002198: 607b str r3, [r7, #4]
  4574. MPU_InitStruct.Size = MPU_REGION_SIZE_4GB;
  4575. 800219a: 231f movs r3, #31
  4576. 800219c: 723b strb r3, [r7, #8]
  4577. MPU_InitStruct.SubRegionDisable = 0x87;
  4578. 800219e: 2387 movs r3, #135 @ 0x87
  4579. 80021a0: 727b strb r3, [r7, #9]
  4580. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL0;
  4581. 80021a2: 2300 movs r3, #0
  4582. 80021a4: 72bb strb r3, [r7, #10]
  4583. MPU_InitStruct.AccessPermission = MPU_REGION_NO_ACCESS;
  4584. 80021a6: 2300 movs r3, #0
  4585. 80021a8: 72fb strb r3, [r7, #11]
  4586. MPU_InitStruct.DisableExec = MPU_INSTRUCTION_ACCESS_DISABLE;
  4587. 80021aa: 2301 movs r3, #1
  4588. 80021ac: 733b strb r3, [r7, #12]
  4589. MPU_InitStruct.IsShareable = MPU_ACCESS_SHAREABLE;
  4590. 80021ae: 2301 movs r3, #1
  4591. 80021b0: 737b strb r3, [r7, #13]
  4592. MPU_InitStruct.IsCacheable = MPU_ACCESS_NOT_CACHEABLE;
  4593. 80021b2: 2300 movs r3, #0
  4594. 80021b4: 73bb strb r3, [r7, #14]
  4595. MPU_InitStruct.IsBufferable = MPU_ACCESS_NOT_BUFFERABLE;
  4596. 80021b6: 2300 movs r3, #0
  4597. 80021b8: 73fb strb r3, [r7, #15]
  4598. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  4599. 80021ba: 463b mov r3, r7
  4600. 80021bc: 4618 mov r0, r3
  4601. 80021be: f002 fe4f bl 8004e60 <HAL_MPU_ConfigRegion>
  4602. /** Initializes and configures the Region and the memory to be protected
  4603. */
  4604. MPU_InitStruct.Number = MPU_REGION_NUMBER1;
  4605. 80021c2: 2301 movs r3, #1
  4606. 80021c4: 707b strb r3, [r7, #1]
  4607. MPU_InitStruct.BaseAddress = 0x24020000;
  4608. 80021c6: 4b13 ldr r3, [pc, #76] @ (8002214 <MPU_Config+0x9c>)
  4609. 80021c8: 607b str r3, [r7, #4]
  4610. MPU_InitStruct.Size = MPU_REGION_SIZE_128KB;
  4611. 80021ca: 2310 movs r3, #16
  4612. 80021cc: 723b strb r3, [r7, #8]
  4613. MPU_InitStruct.SubRegionDisable = 0x0;
  4614. 80021ce: 2300 movs r3, #0
  4615. 80021d0: 727b strb r3, [r7, #9]
  4616. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL1;
  4617. 80021d2: 2301 movs r3, #1
  4618. 80021d4: 72bb strb r3, [r7, #10]
  4619. MPU_InitStruct.AccessPermission = MPU_REGION_FULL_ACCESS;
  4620. 80021d6: 2303 movs r3, #3
  4621. 80021d8: 72fb strb r3, [r7, #11]
  4622. MPU_InitStruct.IsShareable = MPU_ACCESS_NOT_SHAREABLE;
  4623. 80021da: 2300 movs r3, #0
  4624. 80021dc: 737b strb r3, [r7, #13]
  4625. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  4626. 80021de: 463b mov r3, r7
  4627. 80021e0: 4618 mov r0, r3
  4628. 80021e2: f002 fe3d bl 8004e60 <HAL_MPU_ConfigRegion>
  4629. /** Initializes and configures the Region and the memory to be protected
  4630. */
  4631. MPU_InitStruct.Number = MPU_REGION_NUMBER2;
  4632. 80021e6: 2302 movs r3, #2
  4633. 80021e8: 707b strb r3, [r7, #1]
  4634. MPU_InitStruct.BaseAddress = 0x24040000;
  4635. 80021ea: 4b0b ldr r3, [pc, #44] @ (8002218 <MPU_Config+0xa0>)
  4636. 80021ec: 607b str r3, [r7, #4]
  4637. MPU_InitStruct.Size = MPU_REGION_SIZE_512B;
  4638. 80021ee: 2308 movs r3, #8
  4639. 80021f0: 723b strb r3, [r7, #8]
  4640. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL0;
  4641. 80021f2: 2300 movs r3, #0
  4642. 80021f4: 72bb strb r3, [r7, #10]
  4643. MPU_InitStruct.IsShareable = MPU_ACCESS_SHAREABLE;
  4644. 80021f6: 2301 movs r3, #1
  4645. 80021f8: 737b strb r3, [r7, #13]
  4646. MPU_InitStruct.IsBufferable = MPU_ACCESS_BUFFERABLE;
  4647. 80021fa: 2301 movs r3, #1
  4648. 80021fc: 73fb strb r3, [r7, #15]
  4649. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  4650. 80021fe: 463b mov r3, r7
  4651. 8002200: 4618 mov r0, r3
  4652. 8002202: f002 fe2d bl 8004e60 <HAL_MPU_ConfigRegion>
  4653. /* Enables the MPU */
  4654. HAL_MPU_Enable(MPU_PRIVILEGED_DEFAULT);
  4655. 8002206: 2004 movs r0, #4
  4656. 8002208: f002 fe0a bl 8004e20 <HAL_MPU_Enable>
  4657. }
  4658. 800220c: bf00 nop
  4659. 800220e: 3710 adds r7, #16
  4660. 8002210: 46bd mov sp, r7
  4661. 8002212: bd80 pop {r7, pc}
  4662. 8002214: 24020000 .word 0x24020000
  4663. 8002218: 24040000 .word 0x24040000
  4664. 0800221c <HAL_TIM_PeriodElapsedCallback>:
  4665. * a global variable "uwTick" used as application time base.
  4666. * @param htim : TIM handle
  4667. * @retval None
  4668. */
  4669. void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
  4670. {
  4671. 800221c: b580 push {r7, lr}
  4672. 800221e: b082 sub sp, #8
  4673. 8002220: af00 add r7, sp, #0
  4674. 8002222: 6078 str r0, [r7, #4]
  4675. /* USER CODE BEGIN Callback 0 */
  4676. /* USER CODE END Callback 0 */
  4677. if (htim->Instance == TIM6) {
  4678. 8002224: 687b ldr r3, [r7, #4]
  4679. 8002226: 681b ldr r3, [r3, #0]
  4680. 8002228: 4a09 ldr r2, [pc, #36] @ (8002250 <HAL_TIM_PeriodElapsedCallback+0x34>)
  4681. 800222a: 4293 cmp r3, r2
  4682. 800222c: d101 bne.n 8002232 <HAL_TIM_PeriodElapsedCallback+0x16>
  4683. HAL_IncTick();
  4684. 800222e: f002 fc9b bl 8004b68 <HAL_IncTick>
  4685. }
  4686. /* USER CODE BEGIN Callback 1 */
  4687. if (htim->Instance == TIM6) {
  4688. 8002232: 687b ldr r3, [r7, #4]
  4689. 8002234: 681b ldr r3, [r3, #0]
  4690. 8002236: 4a06 ldr r2, [pc, #24] @ (8002250 <HAL_TIM_PeriodElapsedCallback+0x34>)
  4691. 8002238: 4293 cmp r3, r2
  4692. 800223a: d104 bne.n 8002246 <HAL_TIM_PeriodElapsedCallback+0x2a>
  4693. MilliTimer++;
  4694. 800223c: 4b05 ldr r3, [pc, #20] @ (8002254 <HAL_TIM_PeriodElapsedCallback+0x38>)
  4695. 800223e: 681b ldr r3, [r3, #0]
  4696. 8002240: 3301 adds r3, #1
  4697. 8002242: 4a04 ldr r2, [pc, #16] @ (8002254 <HAL_TIM_PeriodElapsedCallback+0x38>)
  4698. 8002244: 6013 str r3, [r2, #0]
  4699. }
  4700. /* USER CODE END Callback 1 */
  4701. }
  4702. 8002246: bf00 nop
  4703. 8002248: 3708 adds r7, #8
  4704. 800224a: 46bd mov sp, r7
  4705. 800224c: bd80 pop {r7, pc}
  4706. 800224e: bf00 nop
  4707. 8002250: 40001000 .word 0x40001000
  4708. 8002254: 2402a198 .word 0x2402a198
  4709. 08002258 <Error_Handler>:
  4710. /**
  4711. * @brief This function is executed in case of error occurrence.
  4712. * @retval None
  4713. */
  4714. void Error_Handler(void)
  4715. {
  4716. 8002258: b480 push {r7}
  4717. 800225a: af00 add r7, sp, #0
  4718. __ASM volatile ("cpsid i" : : : "memory");
  4719. 800225c: b672 cpsid i
  4720. }
  4721. 800225e: bf00 nop
  4722. /* USER CODE BEGIN Error_Handler_Debug */
  4723. /* User can add his own implementation to report the HAL error return state */
  4724. __disable_irq();
  4725. while (1)
  4726. 8002260: bf00 nop
  4727. 8002262: e7fd b.n 8002260 <Error_Handler+0x8>
  4728. 08002264 <MockMeasurmetsTaskInit>:
  4729. (void)rng;
  4730. return 0.0;
  4731. }
  4732. #endif
  4733. void MockMeasurmetsTaskInit(void) {
  4734. 8002264: b580 push {r7, lr}
  4735. 8002266: b08a sub sp, #40 @ 0x28
  4736. 8002268: af00 add r7, sp, #0
  4737. osThreadAttr_t osThreadAttrMockMeasTask = { 0 };
  4738. 800226a: 1d3b adds r3, r7, #4
  4739. 800226c: 2224 movs r2, #36 @ 0x24
  4740. 800226e: 2100 movs r1, #0
  4741. 8002270: 4618 mov r0, r3
  4742. 8002272: f027 fadd bl 8029830 <memset>
  4743. // osThreadId_t osThreadMockMeasurmetsTaskId;
  4744. osThreadAttrMockMeasTask.name = "os_thread_mock_measurmets";
  4745. 8002276: 4b08 ldr r3, [pc, #32] @ (8002298 <MockMeasurmetsTaskInit+0x34>)
  4746. 8002278: 607b str r3, [r7, #4]
  4747. osThreadAttrMockMeasTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  4748. 800227a: f44f 6380 mov.w r3, #1024 @ 0x400
  4749. 800227e: 61bb str r3, [r7, #24]
  4750. osThreadAttrMockMeasTask.priority = (osPriority_t)osPriorityNormal;
  4751. 8002280: 2318 movs r3, #24
  4752. 8002282: 61fb str r3, [r7, #28]
  4753. // osThreadMockMeasurmetsTaskId = osThreadNew (MockMeasurmetsTask, NULL, &osThreadAttrMockMeasTask);
  4754. osThreadNew (MockMeasurmetsTask, NULL, &osThreadAttrMockMeasTask);
  4755. 8002284: 1d3b adds r3, r7, #4
  4756. 8002286: 461a mov r2, r3
  4757. 8002288: 2100 movs r1, #0
  4758. 800228a: 4804 ldr r0, [pc, #16] @ (800229c <MockMeasurmetsTaskInit+0x38>)
  4759. 800228c: f00e f87b bl 8010386 <osThreadNew>
  4760. }
  4761. 8002290: bf00 nop
  4762. 8002292: 3728 adds r7, #40 @ 0x28
  4763. 8002294: 46bd mov sp, r7
  4764. 8002296: bd80 pop {r7, pc}
  4765. 8002298: 0802bff8 .word 0x0802bff8
  4766. 800229c: 080022a1 .word 0x080022a1
  4767. 080022a0 <MockMeasurmetsTask>:
  4768. void MockMeasurmetsTask (void* argument) {
  4769. 80022a0: b580 push {r7, lr}
  4770. 80022a2: b086 sub sp, #24
  4771. 80022a4: af00 add r7, sp, #0
  4772. 80022a6: 6078 str r0, [r7, #4]
  4773. uint8_t boardNumber = 0;
  4774. 80022a8: 2300 movs r3, #0
  4775. 80022aa: 75fb strb r3, [r7, #23]
  4776. uint16_t counter = 0;
  4777. 80022ac: 2300 movs r3, #0
  4778. 80022ae: 82bb strh r3, [r7, #20]
  4779. while (pdTRUE) {
  4780. osMutexAcquire (resMeasurementsMutex, osWaitForever);
  4781. 80022b0: 4b04 ldr r3, [pc, #16] @ (80022c4 <MockMeasurmetsTask+0x24>)
  4782. 80022b2: 681b ldr r3, [r3, #0]
  4783. 80022b4: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4784. 80022b8: 4618 mov r0, r3
  4785. 80022ba: f00e f9a3 bl 8010604 <osMutexAcquire>
  4786. for( boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++)
  4787. 80022be: 2300 movs r3, #0
  4788. 80022c0: 75fb strb r3, [r7, #23]
  4789. 80022c2: e2da b.n 800287a <MockMeasurmetsTask+0x5da>
  4790. 80022c4: 24000594 .word 0x24000594
  4791. {
  4792. RESMeasurements *resMeas = &resMeasurements[boardNumber];
  4793. 80022c8: 7dfa ldrb r2, [r7, #23]
  4794. 80022ca: 4613 mov r3, r2
  4795. 80022cc: 011b lsls r3, r3, #4
  4796. 80022ce: 1a9b subs r3, r3, r2
  4797. 80022d0: 009b lsls r3, r3, #2
  4798. 80022d2: 4adb ldr r2, [pc, #876] @ (8002640 <MockMeasurmetsTask+0x3a0>)
  4799. 80022d4: 4413 add r3, r2
  4800. 80022d6: 613b str r3, [r7, #16]
  4801. resMeas->voltagePeak[0] = 60 + (0.01 * (counter % 100));
  4802. 80022d8: 8abb ldrh r3, [r7, #20]
  4803. 80022da: 4ada ldr r2, [pc, #872] @ (8002644 <MockMeasurmetsTask+0x3a4>)
  4804. 80022dc: fba2 1203 umull r1, r2, r2, r3
  4805. 80022e0: 0952 lsrs r2, r2, #5
  4806. 80022e2: 2164 movs r1, #100 @ 0x64
  4807. 80022e4: fb01 f202 mul.w r2, r1, r2
  4808. 80022e8: 1a9b subs r3, r3, r2
  4809. 80022ea: b29b uxth r3, r3
  4810. 80022ec: ee07 3a90 vmov s15, r3
  4811. 80022f0: eeb8 7be7 vcvt.f64.s32 d7, s15
  4812. 80022f4: ed9f 6bc2 vldr d6, [pc, #776] @ 8002600 <MockMeasurmetsTask+0x360>
  4813. 80022f8: ee27 7b06 vmul.f64 d7, d7, d6
  4814. 80022fc: ed9f 6bc2 vldr d6, [pc, #776] @ 8002608 <MockMeasurmetsTask+0x368>
  4815. 8002300: ee37 7b06 vadd.f64 d7, d7, d6
  4816. 8002304: eef7 7bc7 vcvt.f32.f64 s15, d7
  4817. 8002308: 693b ldr r3, [r7, #16]
  4818. 800230a: edc3 7a03 vstr s15, [r3, #12]
  4819. resMeas->voltagePeak[1] = 61 + (0.01 * (counter % 100));
  4820. 800230e: 8abb ldrh r3, [r7, #20]
  4821. 8002310: 4acc ldr r2, [pc, #816] @ (8002644 <MockMeasurmetsTask+0x3a4>)
  4822. 8002312: fba2 1203 umull r1, r2, r2, r3
  4823. 8002316: 0952 lsrs r2, r2, #5
  4824. 8002318: 2164 movs r1, #100 @ 0x64
  4825. 800231a: fb01 f202 mul.w r2, r1, r2
  4826. 800231e: 1a9b subs r3, r3, r2
  4827. 8002320: b29b uxth r3, r3
  4828. 8002322: ee07 3a90 vmov s15, r3
  4829. 8002326: eeb8 7be7 vcvt.f64.s32 d7, s15
  4830. 800232a: ed9f 6bb5 vldr d6, [pc, #724] @ 8002600 <MockMeasurmetsTask+0x360>
  4831. 800232e: ee27 7b06 vmul.f64 d7, d7, d6
  4832. 8002332: ed9f 6bb7 vldr d6, [pc, #732] @ 8002610 <MockMeasurmetsTask+0x370>
  4833. 8002336: ee37 7b06 vadd.f64 d7, d7, d6
  4834. 800233a: eef7 7bc7 vcvt.f32.f64 s15, d7
  4835. 800233e: 693b ldr r3, [r7, #16]
  4836. 8002340: edc3 7a04 vstr s15, [r3, #16]
  4837. resMeas->voltagePeak[2] = 62 + (0.01 * (counter % 100));
  4838. 8002344: 8abb ldrh r3, [r7, #20]
  4839. 8002346: 4abf ldr r2, [pc, #764] @ (8002644 <MockMeasurmetsTask+0x3a4>)
  4840. 8002348: fba2 1203 umull r1, r2, r2, r3
  4841. 800234c: 0952 lsrs r2, r2, #5
  4842. 800234e: 2164 movs r1, #100 @ 0x64
  4843. 8002350: fb01 f202 mul.w r2, r1, r2
  4844. 8002354: 1a9b subs r3, r3, r2
  4845. 8002356: b29b uxth r3, r3
  4846. 8002358: ee07 3a90 vmov s15, r3
  4847. 800235c: eeb8 7be7 vcvt.f64.s32 d7, s15
  4848. 8002360: ed9f 6ba7 vldr d6, [pc, #668] @ 8002600 <MockMeasurmetsTask+0x360>
  4849. 8002364: ee27 7b06 vmul.f64 d7, d7, d6
  4850. 8002368: ed9f 6bab vldr d6, [pc, #684] @ 8002618 <MockMeasurmetsTask+0x378>
  4851. 800236c: ee37 7b06 vadd.f64 d7, d7, d6
  4852. 8002370: eef7 7bc7 vcvt.f32.f64 s15, d7
  4853. 8002374: 693b ldr r3, [r7, #16]
  4854. 8002376: edc3 7a05 vstr s15, [r3, #20]
  4855. resMeas->voltageRMS[0] = 46 + (0.01 * (counter % 100));
  4856. 800237a: 8abb ldrh r3, [r7, #20]
  4857. 800237c: 4ab1 ldr r2, [pc, #708] @ (8002644 <MockMeasurmetsTask+0x3a4>)
  4858. 800237e: fba2 1203 umull r1, r2, r2, r3
  4859. 8002382: 0952 lsrs r2, r2, #5
  4860. 8002384: 2164 movs r1, #100 @ 0x64
  4861. 8002386: fb01 f202 mul.w r2, r1, r2
  4862. 800238a: 1a9b subs r3, r3, r2
  4863. 800238c: b29b uxth r3, r3
  4864. 800238e: ee07 3a90 vmov s15, r3
  4865. 8002392: eeb8 7be7 vcvt.f64.s32 d7, s15
  4866. 8002396: ed9f 6b9a vldr d6, [pc, #616] @ 8002600 <MockMeasurmetsTask+0x360>
  4867. 800239a: ee27 7b06 vmul.f64 d7, d7, d6
  4868. 800239e: ed9f 6ba0 vldr d6, [pc, #640] @ 8002620 <MockMeasurmetsTask+0x380>
  4869. 80023a2: ee37 7b06 vadd.f64 d7, d7, d6
  4870. 80023a6: eef7 7bc7 vcvt.f32.f64 s15, d7
  4871. 80023aa: 693b ldr r3, [r7, #16]
  4872. 80023ac: edc3 7a00 vstr s15, [r3]
  4873. resMeas->voltageRMS[1] = 47 + (0.01 * (counter % 100));
  4874. 80023b0: 8abb ldrh r3, [r7, #20]
  4875. 80023b2: 4aa4 ldr r2, [pc, #656] @ (8002644 <MockMeasurmetsTask+0x3a4>)
  4876. 80023b4: fba2 1203 umull r1, r2, r2, r3
  4877. 80023b8: 0952 lsrs r2, r2, #5
  4878. 80023ba: 2164 movs r1, #100 @ 0x64
  4879. 80023bc: fb01 f202 mul.w r2, r1, r2
  4880. 80023c0: 1a9b subs r3, r3, r2
  4881. 80023c2: b29b uxth r3, r3
  4882. 80023c4: ee07 3a90 vmov s15, r3
  4883. 80023c8: eeb8 7be7 vcvt.f64.s32 d7, s15
  4884. 80023cc: ed9f 6b8c vldr d6, [pc, #560] @ 8002600 <MockMeasurmetsTask+0x360>
  4885. 80023d0: ee27 7b06 vmul.f64 d7, d7, d6
  4886. 80023d4: ed9f 6b94 vldr d6, [pc, #592] @ 8002628 <MockMeasurmetsTask+0x388>
  4887. 80023d8: ee37 7b06 vadd.f64 d7, d7, d6
  4888. 80023dc: eef7 7bc7 vcvt.f32.f64 s15, d7
  4889. 80023e0: 693b ldr r3, [r7, #16]
  4890. 80023e2: edc3 7a01 vstr s15, [r3, #4]
  4891. resMeas->voltageRMS[2] = 48 + (0.01 * (counter % 100));
  4892. 80023e6: 8abb ldrh r3, [r7, #20]
  4893. 80023e8: 4a96 ldr r2, [pc, #600] @ (8002644 <MockMeasurmetsTask+0x3a4>)
  4894. 80023ea: fba2 1203 umull r1, r2, r2, r3
  4895. 80023ee: 0952 lsrs r2, r2, #5
  4896. 80023f0: 2164 movs r1, #100 @ 0x64
  4897. 80023f2: fb01 f202 mul.w r2, r1, r2
  4898. 80023f6: 1a9b subs r3, r3, r2
  4899. 80023f8: b29b uxth r3, r3
  4900. 80023fa: ee07 3a90 vmov s15, r3
  4901. 80023fe: eeb8 7be7 vcvt.f64.s32 d7, s15
  4902. 8002402: ed9f 6b7f vldr d6, [pc, #508] @ 8002600 <MockMeasurmetsTask+0x360>
  4903. 8002406: ee27 7b06 vmul.f64 d7, d7, d6
  4904. 800240a: ed9f 6b89 vldr d6, [pc, #548] @ 8002630 <MockMeasurmetsTask+0x390>
  4905. 800240e: ee37 7b06 vadd.f64 d7, d7, d6
  4906. 8002412: eef7 7bc7 vcvt.f32.f64 s15, d7
  4907. 8002416: 693b ldr r3, [r7, #16]
  4908. 8002418: edc3 7a02 vstr s15, [r3, #8]
  4909. resMeas->currentPeak[0] = 3 + (0.01 * (counter % 100));
  4910. 800241c: 8abb ldrh r3, [r7, #20]
  4911. 800241e: 4a89 ldr r2, [pc, #548] @ (8002644 <MockMeasurmetsTask+0x3a4>)
  4912. 8002420: fba2 1203 umull r1, r2, r2, r3
  4913. 8002424: 0952 lsrs r2, r2, #5
  4914. 8002426: 2164 movs r1, #100 @ 0x64
  4915. 8002428: fb01 f202 mul.w r2, r1, r2
  4916. 800242c: 1a9b subs r3, r3, r2
  4917. 800242e: b29b uxth r3, r3
  4918. 8002430: ee07 3a90 vmov s15, r3
  4919. 8002434: eeb8 7be7 vcvt.f64.s32 d7, s15
  4920. 8002438: ed9f 6b71 vldr d6, [pc, #452] @ 8002600 <MockMeasurmetsTask+0x360>
  4921. 800243c: ee27 7b06 vmul.f64 d7, d7, d6
  4922. 8002440: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  4923. 8002444: ee37 7b06 vadd.f64 d7, d7, d6
  4924. 8002448: eef7 7bc7 vcvt.f32.f64 s15, d7
  4925. 800244c: 693b ldr r3, [r7, #16]
  4926. 800244e: edc3 7a09 vstr s15, [r3, #36] @ 0x24
  4927. resMeas->currentPeak[1] = 4 + (0.01 * (counter % 100));
  4928. 8002452: 8abb ldrh r3, [r7, #20]
  4929. 8002454: 4a7b ldr r2, [pc, #492] @ (8002644 <MockMeasurmetsTask+0x3a4>)
  4930. 8002456: fba2 1203 umull r1, r2, r2, r3
  4931. 800245a: 0952 lsrs r2, r2, #5
  4932. 800245c: 2164 movs r1, #100 @ 0x64
  4933. 800245e: fb01 f202 mul.w r2, r1, r2
  4934. 8002462: 1a9b subs r3, r3, r2
  4935. 8002464: b29b uxth r3, r3
  4936. 8002466: ee07 3a90 vmov s15, r3
  4937. 800246a: eeb8 7be7 vcvt.f64.s32 d7, s15
  4938. 800246e: ed9f 6b64 vldr d6, [pc, #400] @ 8002600 <MockMeasurmetsTask+0x360>
  4939. 8002472: ee27 7b06 vmul.f64 d7, d7, d6
  4940. 8002476: eeb1 6b00 vmov.f64 d6, #16 @ 0x40800000 4.0
  4941. 800247a: ee37 7b06 vadd.f64 d7, d7, d6
  4942. 800247e: eef7 7bc7 vcvt.f32.f64 s15, d7
  4943. 8002482: 693b ldr r3, [r7, #16]
  4944. 8002484: edc3 7a0a vstr s15, [r3, #40] @ 0x28
  4945. resMeas->currentPeak[2] = 5 + (0.01 * (counter % 100));
  4946. 8002488: 8abb ldrh r3, [r7, #20]
  4947. 800248a: 4a6e ldr r2, [pc, #440] @ (8002644 <MockMeasurmetsTask+0x3a4>)
  4948. 800248c: fba2 1203 umull r1, r2, r2, r3
  4949. 8002490: 0952 lsrs r2, r2, #5
  4950. 8002492: 2164 movs r1, #100 @ 0x64
  4951. 8002494: fb01 f202 mul.w r2, r1, r2
  4952. 8002498: 1a9b subs r3, r3, r2
  4953. 800249a: b29b uxth r3, r3
  4954. 800249c: ee07 3a90 vmov s15, r3
  4955. 80024a0: eeb8 7be7 vcvt.f64.s32 d7, s15
  4956. 80024a4: ed9f 6b56 vldr d6, [pc, #344] @ 8002600 <MockMeasurmetsTask+0x360>
  4957. 80024a8: ee27 7b06 vmul.f64 d7, d7, d6
  4958. 80024ac: eeb1 6b04 vmov.f64 d6, #20 @ 0x40a00000 5.0
  4959. 80024b0: ee37 7b06 vadd.f64 d7, d7, d6
  4960. 80024b4: eef7 7bc7 vcvt.f32.f64 s15, d7
  4961. 80024b8: 693b ldr r3, [r7, #16]
  4962. 80024ba: edc3 7a0b vstr s15, [r3, #44] @ 0x2c
  4963. resMeas->currentRMS[0] = 1 + (0.01 * (counter % 100));
  4964. 80024be: 8abb ldrh r3, [r7, #20]
  4965. 80024c0: 4a60 ldr r2, [pc, #384] @ (8002644 <MockMeasurmetsTask+0x3a4>)
  4966. 80024c2: fba2 1203 umull r1, r2, r2, r3
  4967. 80024c6: 0952 lsrs r2, r2, #5
  4968. 80024c8: 2164 movs r1, #100 @ 0x64
  4969. 80024ca: fb01 f202 mul.w r2, r1, r2
  4970. 80024ce: 1a9b subs r3, r3, r2
  4971. 80024d0: b29b uxth r3, r3
  4972. 80024d2: ee07 3a90 vmov s15, r3
  4973. 80024d6: eeb8 7be7 vcvt.f64.s32 d7, s15
  4974. 80024da: ed9f 6b49 vldr d6, [pc, #292] @ 8002600 <MockMeasurmetsTask+0x360>
  4975. 80024de: ee27 7b06 vmul.f64 d7, d7, d6
  4976. 80024e2: eeb7 6b00 vmov.f64 d6, #112 @ 0x3f800000 1.0
  4977. 80024e6: ee37 7b06 vadd.f64 d7, d7, d6
  4978. 80024ea: eef7 7bc7 vcvt.f32.f64 s15, d7
  4979. 80024ee: 693b ldr r3, [r7, #16]
  4980. 80024f0: edc3 7a06 vstr s15, [r3, #24]
  4981. resMeas->currentRMS[1] = 2 + (0.01 * (counter % 100));
  4982. 80024f4: 8abb ldrh r3, [r7, #20]
  4983. 80024f6: 4a53 ldr r2, [pc, #332] @ (8002644 <MockMeasurmetsTask+0x3a4>)
  4984. 80024f8: fba2 1203 umull r1, r2, r2, r3
  4985. 80024fc: 0952 lsrs r2, r2, #5
  4986. 80024fe: 2164 movs r1, #100 @ 0x64
  4987. 8002500: fb01 f202 mul.w r2, r1, r2
  4988. 8002504: 1a9b subs r3, r3, r2
  4989. 8002506: b29b uxth r3, r3
  4990. 8002508: ee07 3a90 vmov s15, r3
  4991. 800250c: eeb8 7be7 vcvt.f64.s32 d7, s15
  4992. 8002510: ed9f 6b3b vldr d6, [pc, #236] @ 8002600 <MockMeasurmetsTask+0x360>
  4993. 8002514: ee27 7b06 vmul.f64 d7, d7, d6
  4994. 8002518: eeb0 6b00 vmov.f64 d6, #0 @ 0x40000000 2.0
  4995. 800251c: ee37 7b06 vadd.f64 d7, d7, d6
  4996. 8002520: eef7 7bc7 vcvt.f32.f64 s15, d7
  4997. 8002524: 693b ldr r3, [r7, #16]
  4998. 8002526: edc3 7a07 vstr s15, [r3, #28]
  4999. resMeas->currentRMS[2] = 3 + (0.01 * (counter % 100));
  5000. 800252a: 8abb ldrh r3, [r7, #20]
  5001. 800252c: 4a45 ldr r2, [pc, #276] @ (8002644 <MockMeasurmetsTask+0x3a4>)
  5002. 800252e: fba2 1203 umull r1, r2, r2, r3
  5003. 8002532: 0952 lsrs r2, r2, #5
  5004. 8002534: 2164 movs r1, #100 @ 0x64
  5005. 8002536: fb01 f202 mul.w r2, r1, r2
  5006. 800253a: 1a9b subs r3, r3, r2
  5007. 800253c: b29b uxth r3, r3
  5008. 800253e: ee07 3a90 vmov s15, r3
  5009. 8002542: eeb8 7be7 vcvt.f64.s32 d7, s15
  5010. 8002546: ed9f 6b2e vldr d6, [pc, #184] @ 8002600 <MockMeasurmetsTask+0x360>
  5011. 800254a: ee27 7b06 vmul.f64 d7, d7, d6
  5012. 800254e: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  5013. 8002552: ee37 7b06 vadd.f64 d7, d7, d6
  5014. 8002556: eef7 7bc7 vcvt.f32.f64 s15, d7
  5015. 800255a: 693b ldr r3, [r7, #16]
  5016. 800255c: edc3 7a08 vstr s15, [r3, #32]
  5017. resMeas->power[0] = resMeas->voltagePeak[0] * resMeas->currentRMS[0];
  5018. 8002560: 693b ldr r3, [r7, #16]
  5019. 8002562: ed93 7a03 vldr s14, [r3, #12]
  5020. 8002566: 693b ldr r3, [r7, #16]
  5021. 8002568: edd3 7a06 vldr s15, [r3, #24]
  5022. 800256c: ee67 7a27 vmul.f32 s15, s14, s15
  5023. 8002570: 693b ldr r3, [r7, #16]
  5024. 8002572: edc3 7a0c vstr s15, [r3, #48] @ 0x30
  5025. resMeas->power[1] = resMeas->voltagePeak[1] * resMeas->currentRMS[1];
  5026. 8002576: 693b ldr r3, [r7, #16]
  5027. 8002578: ed93 7a04 vldr s14, [r3, #16]
  5028. 800257c: 693b ldr r3, [r7, #16]
  5029. 800257e: edd3 7a07 vldr s15, [r3, #28]
  5030. 8002582: ee67 7a27 vmul.f32 s15, s14, s15
  5031. 8002586: 693b ldr r3, [r7, #16]
  5032. 8002588: edc3 7a0d vstr s15, [r3, #52] @ 0x34
  5033. resMeas->power[2] = resMeas->voltagePeak[2] * resMeas->currentRMS[2];
  5034. 800258c: 693b ldr r3, [r7, #16]
  5035. 800258e: ed93 7a05 vldr s14, [r3, #20]
  5036. 8002592: 693b ldr r3, [r7, #16]
  5037. 8002594: edd3 7a08 vldr s15, [r3, #32]
  5038. 8002598: ee67 7a27 vmul.f32 s15, s14, s15
  5039. 800259c: 693b ldr r3, [r7, #16]
  5040. 800259e: edc3 7a0e vstr s15, [r3, #56] @ 0x38
  5041. SesnorsInfo* sensors = &sensorsInfo[boardNumber];
  5042. 80025a2: 7dfa ldrb r2, [r7, #23]
  5043. 80025a4: 4613 mov r3, r2
  5044. 80025a6: 009b lsls r3, r3, #2
  5045. 80025a8: 4413 add r3, r2
  5046. 80025aa: 00db lsls r3, r3, #3
  5047. 80025ac: 4a26 ldr r2, [pc, #152] @ (8002648 <MockMeasurmetsTask+0x3a8>)
  5048. 80025ae: 4413 add r3, r2
  5049. 80025b0: 60fb str r3, [r7, #12]
  5050. sensors->pvTemperature[0] = 50 + (0.01 * (counter % 100));
  5051. 80025b2: 8abb ldrh r3, [r7, #20]
  5052. 80025b4: 4a23 ldr r2, [pc, #140] @ (8002644 <MockMeasurmetsTask+0x3a4>)
  5053. 80025b6: fba2 1203 umull r1, r2, r2, r3
  5054. 80025ba: 0952 lsrs r2, r2, #5
  5055. 80025bc: 2164 movs r1, #100 @ 0x64
  5056. 80025be: fb01 f202 mul.w r2, r1, r2
  5057. 80025c2: 1a9b subs r3, r3, r2
  5058. 80025c4: b29b uxth r3, r3
  5059. 80025c6: ee07 3a90 vmov s15, r3
  5060. 80025ca: eeb8 7be7 vcvt.f64.s32 d7, s15
  5061. 80025ce: ed9f 6b0c vldr d6, [pc, #48] @ 8002600 <MockMeasurmetsTask+0x360>
  5062. 80025d2: ee27 7b06 vmul.f64 d7, d7, d6
  5063. 80025d6: ed9f 6b18 vldr d6, [pc, #96] @ 8002638 <MockMeasurmetsTask+0x398>
  5064. 80025da: ee37 7b06 vadd.f64 d7, d7, d6
  5065. 80025de: eef7 7bc7 vcvt.f32.f64 s15, d7
  5066. 80025e2: 68fb ldr r3, [r7, #12]
  5067. 80025e4: edc3 7a00 vstr s15, [r3]
  5068. sensors->pvTemperature[1] = 51 + (0.01 * (counter % 100));
  5069. 80025e8: 8abb ldrh r3, [r7, #20]
  5070. 80025ea: 4a16 ldr r2, [pc, #88] @ (8002644 <MockMeasurmetsTask+0x3a4>)
  5071. 80025ec: fba2 1203 umull r1, r2, r2, r3
  5072. 80025f0: 0952 lsrs r2, r2, #5
  5073. 80025f2: 2164 movs r1, #100 @ 0x64
  5074. 80025f4: fb01 f202 mul.w r2, r1, r2
  5075. 80025f8: 1a9b subs r3, r3, r2
  5076. 80025fa: b29b uxth r3, r3
  5077. 80025fc: e026 b.n 800264c <MockMeasurmetsTask+0x3ac>
  5078. 80025fe: bf00 nop
  5079. 8002600: 47ae147b .word 0x47ae147b
  5080. 8002604: 3f847ae1 .word 0x3f847ae1
  5081. 8002608: 00000000 .word 0x00000000
  5082. 800260c: 404e0000 .word 0x404e0000
  5083. 8002610: 00000000 .word 0x00000000
  5084. 8002614: 404e8000 .word 0x404e8000
  5085. 8002618: 00000000 .word 0x00000000
  5086. 800261c: 404f0000 .word 0x404f0000
  5087. 8002620: 00000000 .word 0x00000000
  5088. 8002624: 40470000 .word 0x40470000
  5089. 8002628: 00000000 .word 0x00000000
  5090. 800262c: 40478000 .word 0x40478000
  5091. 8002630: 00000000 .word 0x00000000
  5092. 8002634: 40480000 .word 0x40480000
  5093. 8002638: 00000000 .word 0x00000000
  5094. 800263c: 40490000 .word 0x40490000
  5095. 8002640: 24000404 .word 0x24000404
  5096. 8002644: 51eb851f .word 0x51eb851f
  5097. 8002648: 240004f4 .word 0x240004f4
  5098. 800264c: ee07 3a90 vmov s15, r3
  5099. 8002650: eeb8 7be7 vcvt.f64.s32 d7, s15
  5100. 8002654: ed9f 6b98 vldr d6, [pc, #608] @ 80028b8 <MockMeasurmetsTask+0x618>
  5101. 8002658: ee27 7b06 vmul.f64 d7, d7, d6
  5102. 800265c: ed9f 6b98 vldr d6, [pc, #608] @ 80028c0 <MockMeasurmetsTask+0x620>
  5103. 8002660: ee37 7b06 vadd.f64 d7, d7, d6
  5104. 8002664: eef7 7bc7 vcvt.f32.f64 s15, d7
  5105. 8002668: 68fb ldr r3, [r7, #12]
  5106. 800266a: edc3 7a01 vstr s15, [r3, #4]
  5107. sensors->fanVoltage = 12 + (0.01 * (counter % 100));
  5108. 800266e: 8abb ldrh r3, [r7, #20]
  5109. 8002670: 4a95 ldr r2, [pc, #596] @ (80028c8 <MockMeasurmetsTask+0x628>)
  5110. 8002672: fba2 1203 umull r1, r2, r2, r3
  5111. 8002676: 0952 lsrs r2, r2, #5
  5112. 8002678: 2164 movs r1, #100 @ 0x64
  5113. 800267a: fb01 f202 mul.w r2, r1, r2
  5114. 800267e: 1a9b subs r3, r3, r2
  5115. 8002680: b29b uxth r3, r3
  5116. 8002682: ee07 3a90 vmov s15, r3
  5117. 8002686: eeb8 7be7 vcvt.f64.s32 d7, s15
  5118. 800268a: ed9f 6b8b vldr d6, [pc, #556] @ 80028b8 <MockMeasurmetsTask+0x618>
  5119. 800268e: ee27 7b06 vmul.f64 d7, d7, d6
  5120. 8002692: eeb2 6b08 vmov.f64 d6, #40 @ 0x41400000 12.0
  5121. 8002696: ee37 7b06 vadd.f64 d7, d7, d6
  5122. 800269a: eef7 7bc7 vcvt.f32.f64 s15, d7
  5123. 800269e: 68fb ldr r3, [r7, #12]
  5124. 80026a0: edc3 7a02 vstr s15, [r3, #8]
  5125. sensors->pvEncoder = 15 + (0.01 * (counter % 100));
  5126. 80026a4: 8abb ldrh r3, [r7, #20]
  5127. 80026a6: 4a88 ldr r2, [pc, #544] @ (80028c8 <MockMeasurmetsTask+0x628>)
  5128. 80026a8: fba2 1203 umull r1, r2, r2, r3
  5129. 80026ac: 0952 lsrs r2, r2, #5
  5130. 80026ae: 2164 movs r1, #100 @ 0x64
  5131. 80026b0: fb01 f202 mul.w r2, r1, r2
  5132. 80026b4: 1a9b subs r3, r3, r2
  5133. 80026b6: b29b uxth r3, r3
  5134. 80026b8: ee07 3a90 vmov s15, r3
  5135. 80026bc: eeb8 7be7 vcvt.f64.s32 d7, s15
  5136. 80026c0: ed9f 6b7d vldr d6, [pc, #500] @ 80028b8 <MockMeasurmetsTask+0x618>
  5137. 80026c4: ee27 7b06 vmul.f64 d7, d7, d6
  5138. 80026c8: eeb2 6b0e vmov.f64 d6, #46 @ 0x41700000 15.0
  5139. 80026cc: ee37 7b06 vadd.f64 d7, d7, d6
  5140. 80026d0: eef7 7bc7 vcvt.f32.f64 s15, d7
  5141. 80026d4: 68fb ldr r3, [r7, #12]
  5142. 80026d6: edc3 7a03 vstr s15, [r3, #12]
  5143. sensors->motorXStatus = (counter % 100) > 50 ? 1 : 0;
  5144. 80026da: 8abb ldrh r3, [r7, #20]
  5145. 80026dc: 4a7a ldr r2, [pc, #488] @ (80028c8 <MockMeasurmetsTask+0x628>)
  5146. 80026de: fba2 1203 umull r1, r2, r2, r3
  5147. 80026e2: 0952 lsrs r2, r2, #5
  5148. 80026e4: 2164 movs r1, #100 @ 0x64
  5149. 80026e6: fb01 f202 mul.w r2, r1, r2
  5150. 80026ea: 1a9b subs r3, r3, r2
  5151. 80026ec: b29b uxth r3, r3
  5152. 80026ee: 2b32 cmp r3, #50 @ 0x32
  5153. 80026f0: bf8c ite hi
  5154. 80026f2: 2301 movhi r3, #1
  5155. 80026f4: 2300 movls r3, #0
  5156. 80026f6: b2db uxtb r3, r3
  5157. 80026f8: 461a mov r2, r3
  5158. 80026fa: 68fb ldr r3, [r7, #12]
  5159. 80026fc: 741a strb r2, [r3, #16]
  5160. sensors->motorYStatus = (counter % 100) > 75 ? 1 : 0;
  5161. 80026fe: 8abb ldrh r3, [r7, #20]
  5162. 8002700: 4a71 ldr r2, [pc, #452] @ (80028c8 <MockMeasurmetsTask+0x628>)
  5163. 8002702: fba2 1203 umull r1, r2, r2, r3
  5164. 8002706: 0952 lsrs r2, r2, #5
  5165. 8002708: 2164 movs r1, #100 @ 0x64
  5166. 800270a: fb01 f202 mul.w r2, r1, r2
  5167. 800270e: 1a9b subs r3, r3, r2
  5168. 8002710: b29b uxth r3, r3
  5169. 8002712: 2b4b cmp r3, #75 @ 0x4b
  5170. 8002714: bf8c ite hi
  5171. 8002716: 2301 movhi r3, #1
  5172. 8002718: 2300 movls r3, #0
  5173. 800271a: b2db uxtb r3, r3
  5174. 800271c: 461a mov r2, r3
  5175. 800271e: 68fb ldr r3, [r7, #12]
  5176. 8002720: 745a strb r2, [r3, #17]
  5177. sensors->motorXAveCurrent = 3 + (0.01 * (counter % 100));
  5178. 8002722: 8abb ldrh r3, [r7, #20]
  5179. 8002724: 4a68 ldr r2, [pc, #416] @ (80028c8 <MockMeasurmetsTask+0x628>)
  5180. 8002726: fba2 1203 umull r1, r2, r2, r3
  5181. 800272a: 0952 lsrs r2, r2, #5
  5182. 800272c: 2164 movs r1, #100 @ 0x64
  5183. 800272e: fb01 f202 mul.w r2, r1, r2
  5184. 8002732: 1a9b subs r3, r3, r2
  5185. 8002734: b29b uxth r3, r3
  5186. 8002736: ee07 3a90 vmov s15, r3
  5187. 800273a: eeb8 7be7 vcvt.f64.s32 d7, s15
  5188. 800273e: ed9f 6b5e vldr d6, [pc, #376] @ 80028b8 <MockMeasurmetsTask+0x618>
  5189. 8002742: ee27 7b06 vmul.f64 d7, d7, d6
  5190. 8002746: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  5191. 800274a: ee37 7b06 vadd.f64 d7, d7, d6
  5192. 800274e: eef7 7bc7 vcvt.f32.f64 s15, d7
  5193. 8002752: 68fb ldr r3, [r7, #12]
  5194. 8002754: edc3 7a05 vstr s15, [r3, #20]
  5195. sensors->motorYAveCurrent = 3 + (0.01 * (counter % 100));
  5196. 8002758: 8abb ldrh r3, [r7, #20]
  5197. 800275a: 4a5b ldr r2, [pc, #364] @ (80028c8 <MockMeasurmetsTask+0x628>)
  5198. 800275c: fba2 1203 umull r1, r2, r2, r3
  5199. 8002760: 0952 lsrs r2, r2, #5
  5200. 8002762: 2164 movs r1, #100 @ 0x64
  5201. 8002764: fb01 f202 mul.w r2, r1, r2
  5202. 8002768: 1a9b subs r3, r3, r2
  5203. 800276a: b29b uxth r3, r3
  5204. 800276c: ee07 3a90 vmov s15, r3
  5205. 8002770: eeb8 7be7 vcvt.f64.s32 d7, s15
  5206. 8002774: ed9f 6b50 vldr d6, [pc, #320] @ 80028b8 <MockMeasurmetsTask+0x618>
  5207. 8002778: ee27 7b06 vmul.f64 d7, d7, d6
  5208. 800277c: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  5209. 8002780: ee37 7b06 vadd.f64 d7, d7, d6
  5210. 8002784: eef7 7bc7 vcvt.f32.f64 s15, d7
  5211. 8002788: 68fb ldr r3, [r7, #12]
  5212. 800278a: edc3 7a06 vstr s15, [r3, #24]
  5213. sensors->motorXPeakCurrent = 6 + (0.01 * (counter % 100));
  5214. 800278e: 8abb ldrh r3, [r7, #20]
  5215. 8002790: 4a4d ldr r2, [pc, #308] @ (80028c8 <MockMeasurmetsTask+0x628>)
  5216. 8002792: fba2 1203 umull r1, r2, r2, r3
  5217. 8002796: 0952 lsrs r2, r2, #5
  5218. 8002798: 2164 movs r1, #100 @ 0x64
  5219. 800279a: fb01 f202 mul.w r2, r1, r2
  5220. 800279e: 1a9b subs r3, r3, r2
  5221. 80027a0: b29b uxth r3, r3
  5222. 80027a2: ee07 3a90 vmov s15, r3
  5223. 80027a6: eeb8 7be7 vcvt.f64.s32 d7, s15
  5224. 80027aa: ed9f 6b43 vldr d6, [pc, #268] @ 80028b8 <MockMeasurmetsTask+0x618>
  5225. 80027ae: ee27 7b06 vmul.f64 d7, d7, d6
  5226. 80027b2: eeb1 6b08 vmov.f64 d6, #24 @ 0x40c00000 6.0
  5227. 80027b6: ee37 7b06 vadd.f64 d7, d7, d6
  5228. 80027ba: eef7 7bc7 vcvt.f32.f64 s15, d7
  5229. 80027be: 68fb ldr r3, [r7, #12]
  5230. 80027c0: edc3 7a07 vstr s15, [r3, #28]
  5231. sensors->motorYPeakCurrent = 6 + (0.01 * (counter % 100));
  5232. 80027c4: 8abb ldrh r3, [r7, #20]
  5233. 80027c6: 4a40 ldr r2, [pc, #256] @ (80028c8 <MockMeasurmetsTask+0x628>)
  5234. 80027c8: fba2 1203 umull r1, r2, r2, r3
  5235. 80027cc: 0952 lsrs r2, r2, #5
  5236. 80027ce: 2164 movs r1, #100 @ 0x64
  5237. 80027d0: fb01 f202 mul.w r2, r1, r2
  5238. 80027d4: 1a9b subs r3, r3, r2
  5239. 80027d6: b29b uxth r3, r3
  5240. 80027d8: ee07 3a90 vmov s15, r3
  5241. 80027dc: eeb8 7be7 vcvt.f64.s32 d7, s15
  5242. 80027e0: ed9f 6b35 vldr d6, [pc, #212] @ 80028b8 <MockMeasurmetsTask+0x618>
  5243. 80027e4: ee27 7b06 vmul.f64 d7, d7, d6
  5244. 80027e8: eeb1 6b08 vmov.f64 d6, #24 @ 0x40c00000 6.0
  5245. 80027ec: ee37 7b06 vadd.f64 d7, d7, d6
  5246. 80027f0: eef7 7bc7 vcvt.f32.f64 s15, d7
  5247. 80027f4: 68fb ldr r3, [r7, #12]
  5248. 80027f6: edc3 7a08 vstr s15, [r3, #32]
  5249. sensors->limitSwitchUp = (counter % 100) > 50 ? 1 : 0;
  5250. 80027fa: 8abb ldrh r3, [r7, #20]
  5251. 80027fc: 4a32 ldr r2, [pc, #200] @ (80028c8 <MockMeasurmetsTask+0x628>)
  5252. 80027fe: fba2 1203 umull r1, r2, r2, r3
  5253. 8002802: 0952 lsrs r2, r2, #5
  5254. 8002804: 2164 movs r1, #100 @ 0x64
  5255. 8002806: fb01 f202 mul.w r2, r1, r2
  5256. 800280a: 1a9b subs r3, r3, r2
  5257. 800280c: b29b uxth r3, r3
  5258. 800280e: 2b32 cmp r3, #50 @ 0x32
  5259. 8002810: bf8c ite hi
  5260. 8002812: 2301 movhi r3, #1
  5261. 8002814: 2300 movls r3, #0
  5262. 8002816: b2db uxtb r3, r3
  5263. 8002818: 461a mov r2, r3
  5264. 800281a: 68fb ldr r3, [r7, #12]
  5265. 800281c: f883 2024 strb.w r2, [r3, #36] @ 0x24
  5266. sensors->limitSwitchDown = (counter % 100) < 25 ? 1 : 0;
  5267. 8002820: 8abb ldrh r3, [r7, #20]
  5268. 8002822: 4a29 ldr r2, [pc, #164] @ (80028c8 <MockMeasurmetsTask+0x628>)
  5269. 8002824: fba2 1203 umull r1, r2, r2, r3
  5270. 8002828: 0952 lsrs r2, r2, #5
  5271. 800282a: 2164 movs r1, #100 @ 0x64
  5272. 800282c: fb01 f202 mul.w r2, r1, r2
  5273. 8002830: 1a9b subs r3, r3, r2
  5274. 8002832: b29b uxth r3, r3
  5275. 8002834: 2b18 cmp r3, #24
  5276. 8002836: bf94 ite ls
  5277. 8002838: 2301 movls r3, #1
  5278. 800283a: 2300 movhi r3, #0
  5279. 800283c: b2db uxtb r3, r3
  5280. 800283e: 461a mov r2, r3
  5281. 8002840: 68fb ldr r3, [r7, #12]
  5282. 8002842: f883 2025 strb.w r2, [r3, #37] @ 0x25
  5283. sensors->limitSwitchCenter = (counter % 100) > 35 ? 1 : 0;
  5284. 8002846: 8abb ldrh r3, [r7, #20]
  5285. 8002848: 4a1f ldr r2, [pc, #124] @ (80028c8 <MockMeasurmetsTask+0x628>)
  5286. 800284a: fba2 1203 umull r1, r2, r2, r3
  5287. 800284e: 0952 lsrs r2, r2, #5
  5288. 8002850: 2164 movs r1, #100 @ 0x64
  5289. 8002852: fb01 f202 mul.w r2, r1, r2
  5290. 8002856: 1a9b subs r3, r3, r2
  5291. 8002858: b29b uxth r3, r3
  5292. 800285a: 2b23 cmp r3, #35 @ 0x23
  5293. 800285c: bf8c ite hi
  5294. 800285e: 2301 movhi r3, #1
  5295. 8002860: 2300 movls r3, #0
  5296. 8002862: b2db uxtb r3, r3
  5297. 8002864: 461a mov r2, r3
  5298. 8002866: 68fb ldr r3, [r7, #12]
  5299. 8002868: f883 2026 strb.w r2, [r3, #38] @ 0x26
  5300. sensors->powerSupplyFailMask = 0;
  5301. 800286c: 68fb ldr r3, [r7, #12]
  5302. 800286e: 2200 movs r2, #0
  5303. 8002870: f883 2027 strb.w r2, [r3, #39] @ 0x27
  5304. for( boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++)
  5305. 8002874: 7dfb ldrb r3, [r7, #23]
  5306. 8002876: 3301 adds r3, #1
  5307. 8002878: 75fb strb r3, [r7, #23]
  5308. 800287a: 7dfb ldrb r3, [r7, #23]
  5309. 800287c: 2b03 cmp r3, #3
  5310. 800287e: f67f ad23 bls.w 80022c8 <MockMeasurmetsTask+0x28>
  5311. }
  5312. osMutexRelease(resMeasurementsMutex);
  5313. 8002882: 4b12 ldr r3, [pc, #72] @ (80028cc <MockMeasurmetsTask+0x62c>)
  5314. 8002884: 681b ldr r3, [r3, #0]
  5315. 8002886: 4618 mov r0, r3
  5316. 8002888: f00d ff07 bl 801069a <osMutexRelease>
  5317. osMutexAcquire (sensorsInfoMutex, osWaitForever);
  5318. 800288c: 4b10 ldr r3, [pc, #64] @ (80028d0 <MockMeasurmetsTask+0x630>)
  5319. 800288e: 681b ldr r3, [r3, #0]
  5320. 8002890: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5321. 8002894: 4618 mov r0, r3
  5322. 8002896: f00d feb5 bl 8010604 <osMutexAcquire>
  5323. osMutexRelease(sensorsInfoMutex);
  5324. 800289a: 4b0d ldr r3, [pc, #52] @ (80028d0 <MockMeasurmetsTask+0x630>)
  5325. 800289c: 681b ldr r3, [r3, #0]
  5326. 800289e: 4618 mov r0, r3
  5327. 80028a0: f00d fefb bl 801069a <osMutexRelease>
  5328. counter++;
  5329. 80028a4: 8abb ldrh r3, [r7, #20]
  5330. 80028a6: 3301 adds r3, #1
  5331. 80028a8: 82bb strh r3, [r7, #20]
  5332. osDelay (pdMS_TO_TICKS (1000));
  5333. 80028aa: f44f 707a mov.w r0, #1000 @ 0x3e8
  5334. 80028ae: f00d fe08 bl 80104c2 <osDelay>
  5335. osMutexAcquire (resMeasurementsMutex, osWaitForever);
  5336. 80028b2: e4fd b.n 80022b0 <MockMeasurmetsTask+0x10>
  5337. 80028b4: f3af 8000 nop.w
  5338. 80028b8: 47ae147b .word 0x47ae147b
  5339. 80028bc: 3f847ae1 .word 0x3f847ae1
  5340. 80028c0: 00000000 .word 0x00000000
  5341. 80028c4: 40498000 .word 0x40498000
  5342. 80028c8: 51eb851f .word 0x51eb851f
  5343. 80028cc: 24000594 .word 0x24000594
  5344. 80028d0: 24000598 .word 0x24000598
  5345. 080028d4 <MqttClientSubTask>:
  5346. void MqttClientSubTask(void *argument); //mqtt client subscribe task function
  5347. void MqttClientPubTask(void *argument); //mqtt client publish task function
  5348. int MqttConnectBroker(void); //mqtt broker connect function
  5349. void MqttMessageArrived(MessageData *msg); //mqtt message callback function
  5350. void MqttClientSubTask (void* argument) {
  5351. 80028d4: b580 push {r7, lr}
  5352. 80028d6: b082 sub sp, #8
  5353. 80028d8: af00 add r7, sp, #0
  5354. 80028da: 6078 str r0, [r7, #4]
  5355. while (1) {
  5356. // waiting for valid ip address
  5357. if (gnetif.ip_addr.addr == 0 || gnetif.netmask.addr == 0 || gnetif.gw.addr == 0) // system has no valid ip address
  5358. 80028dc: 4b16 ldr r3, [pc, #88] @ (8002938 <MqttClientSubTask+0x64>)
  5359. 80028de: 685b ldr r3, [r3, #4]
  5360. 80028e0: 2b00 cmp r3, #0
  5361. 80028e2: d007 beq.n 80028f4 <MqttClientSubTask+0x20>
  5362. 80028e4: 4b14 ldr r3, [pc, #80] @ (8002938 <MqttClientSubTask+0x64>)
  5363. 80028e6: 689b ldr r3, [r3, #8]
  5364. 80028e8: 2b00 cmp r3, #0
  5365. 80028ea: d003 beq.n 80028f4 <MqttClientSubTask+0x20>
  5366. 80028ec: 4b12 ldr r3, [pc, #72] @ (8002938 <MqttClientSubTask+0x64>)
  5367. 80028ee: 68db ldr r3, [r3, #12]
  5368. 80028f0: 2b00 cmp r3, #0
  5369. 80028f2: d104 bne.n 80028fe <MqttClientSubTask+0x2a>
  5370. {
  5371. osDelay (pdMS_TO_TICKS (1000));
  5372. 80028f4: f44f 707a mov.w r0, #1000 @ 0x3e8
  5373. 80028f8: f00d fde3 bl 80104c2 <osDelay>
  5374. continue;
  5375. 80028fc: e003 b.n 8002906 <MqttClientSubTask+0x32>
  5376. } else {
  5377. printf ("DHCP/Static IP O.K.\n");
  5378. 80028fe: 480f ldr r0, [pc, #60] @ (800293c <MqttClientSubTask+0x68>)
  5379. 8002900: f026 fe6c bl 80295dc <puts>
  5380. break;
  5381. 8002904: e000 b.n 8002908 <MqttClientSubTask+0x34>
  5382. if (gnetif.ip_addr.addr == 0 || gnetif.netmask.addr == 0 || gnetif.gw.addr == 0) // system has no valid ip address
  5383. 8002906: e7e9 b.n 80028dc <MqttClientSubTask+0x8>
  5384. }
  5385. }
  5386. while (1) {
  5387. if (!mqttClient.isconnected) {
  5388. 8002908: 4b0d ldr r3, [pc, #52] @ (8002940 <MqttClientSubTask+0x6c>)
  5389. 800290a: 6a1b ldr r3, [r3, #32]
  5390. 800290c: 2b00 cmp r3, #0
  5391. 800290e: d109 bne.n 8002924 <MqttClientSubTask+0x50>
  5392. // try to connect to the broker
  5393. if (MqttConnectBroker () != MQTT_SUCCESS) {
  5394. 8002910: f000 fb10 bl 8002f34 <MqttConnectBroker>
  5395. 8002914: 4603 mov r3, r0
  5396. 8002916: 2b00 cmp r3, #0
  5397. 8002918: d0f6 beq.n 8002908 <MqttClientSubTask+0x34>
  5398. osDelay (pdMS_TO_TICKS (1000));
  5399. 800291a: f44f 707a mov.w r0, #1000 @ 0x3e8
  5400. 800291e: f00d fdd0 bl 80104c2 <osDelay>
  5401. 8002922: e7f1 b.n 8002908 <MqttClientSubTask+0x34>
  5402. }
  5403. } else {
  5404. MQTTYield (&mqttClient, 500); // handle timer
  5405. 8002924: f44f 71fa mov.w r1, #500 @ 0x1f4
  5406. 8002928: 4805 ldr r0, [pc, #20] @ (8002940 <MqttClientSubTask+0x6c>)
  5407. 800292a: f023 ff59 bl 80267e0 <MQTTYield>
  5408. osDelay (pdMS_TO_TICKS (100));
  5409. 800292e: 2064 movs r0, #100 @ 0x64
  5410. 8002930: f00d fdc7 bl 80104c2 <osDelay>
  5411. if (!mqttClient.isconnected) {
  5412. 8002934: e7e8 b.n 8002908 <MqttClientSubTask+0x34>
  5413. 8002936: bf00 nop
  5414. 8002938: 240012d8 .word 0x240012d8
  5415. 800293c: 0802c0b0 .word 0x0802c0b0
  5416. 8002940: 240005b4 .word 0x240005b4
  5417. 08002944 <MqttClientPubTask>:
  5418. }
  5419. }
  5420. }
  5421. void MqttClientPubTask (void* argument) {
  5422. 8002944: b580 push {r7, lr}
  5423. 8002946: f5ad 7d16 sub.w sp, sp, #600 @ 0x258
  5424. 800294a: af04 add r7, sp, #16
  5425. 800294c: f507 7312 add.w r3, r7, #584 @ 0x248
  5426. 8002950: f5a3 7311 sub.w r3, r3, #580 @ 0x244
  5427. 8002954: 6018 str r0, [r3, #0]
  5428. char messageBuffer[512] = { 0x00 };
  5429. 8002956: f507 7312 add.w r3, r7, #584 @ 0x248
  5430. 800295a: f5a3 7304 sub.w r3, r3, #528 @ 0x210
  5431. 800295e: 2200 movs r2, #0
  5432. 8002960: 601a str r2, [r3, #0]
  5433. 8002962: 3304 adds r3, #4
  5434. 8002964: f44f 72fe mov.w r2, #508 @ 0x1fc
  5435. 8002968: 2100 movs r1, #0
  5436. 800296a: 4618 mov r0, r3
  5437. 800296c: f026 ff60 bl 8029830 <memset>
  5438. char topicTextBuffer[32] = { 0x00 };
  5439. 8002970: f507 7312 add.w r3, r7, #584 @ 0x248
  5440. 8002974: f5a3 730c sub.w r3, r3, #560 @ 0x230
  5441. 8002978: 2200 movs r2, #0
  5442. 800297a: 601a str r2, [r3, #0]
  5443. 800297c: 3304 adds r3, #4
  5444. 800297e: 2200 movs r2, #0
  5445. 8002980: 601a str r2, [r3, #0]
  5446. 8002982: 605a str r2, [r3, #4]
  5447. 8002984: 609a str r2, [r3, #8]
  5448. 8002986: 60da str r2, [r3, #12]
  5449. 8002988: 611a str r2, [r3, #16]
  5450. 800298a: 615a str r2, [r3, #20]
  5451. 800298c: 619a str r2, [r3, #24]
  5452. uint32_t bytesInBuffer = 0;
  5453. 800298e: 2300 movs r3, #0
  5454. 8002990: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5455. uint8_t boardNumber = 0;
  5456. 8002994: 2300 movs r3, #0
  5457. 8002996: f887 3247 strb.w r3, [r7, #583] @ 0x247
  5458. MQTTMessage message;
  5459. resMeasurementsMutex = osMutexNew (NULL);
  5460. 800299a: 2000 movs r0, #0
  5461. 800299c: f00d fdac bl 80104f8 <osMutexNew>
  5462. 80029a0: 4603 mov r3, r0
  5463. 80029a2: 4a97 ldr r2, [pc, #604] @ (8002c00 <MqttClientPubTask+0x2bc>)
  5464. 80029a4: 6013 str r3, [r2, #0]
  5465. sensorsInfoMutex = osMutexNew (NULL);
  5466. 80029a6: 2000 movs r0, #0
  5467. 80029a8: f00d fda6 bl 80104f8 <osMutexNew>
  5468. 80029ac: 4603 mov r3, r0
  5469. 80029ae: 4a95 ldr r2, [pc, #596] @ (8002c04 <MqttClientPubTask+0x2c0>)
  5470. 80029b0: 6013 str r3, [r2, #0]
  5471. while (1) {
  5472. if (mqttClient.isconnected) {
  5473. 80029b2: 4b95 ldr r3, [pc, #596] @ (8002c08 <MqttClientPubTask+0x2c4>)
  5474. 80029b4: 6a1b ldr r3, [r3, #32]
  5475. 80029b6: 2b00 cmp r3, #0
  5476. 80029b8: f000 8295 beq.w 8002ee6 <MqttClientPubTask+0x5a2>
  5477. if (is_link_up ()) {
  5478. 80029bc: f00c fdae bl 800f51c <is_link_up>
  5479. 80029c0: 4603 mov r3, r0
  5480. 80029c2: 2b00 cmp r3, #0
  5481. 80029c4: f000 828f beq.w 8002ee6 <MqttClientPubTask+0x5a2>
  5482. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  5483. 80029c8: 2300 movs r3, #0
  5484. 80029ca: f887 3247 strb.w r3, [r7, #583] @ 0x247
  5485. 80029ce: e10e b.n 8002bee <MqttClientPubTask+0x2aa>
  5486. osMutexAcquire (resMeasurementsMutex, osWaitForever);
  5487. 80029d0: 4b8b ldr r3, [pc, #556] @ (8002c00 <MqttClientPubTask+0x2bc>)
  5488. 80029d2: 681b ldr r3, [r3, #0]
  5489. 80029d4: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5490. 80029d8: 4618 mov r0, r3
  5491. 80029da: f00d fe13 bl 8010604 <osMutexAcquire>
  5492. RESMeasurements* resMeas = &resMeasurements[boardNumber];
  5493. 80029de: f897 2247 ldrb.w r2, [r7, #583] @ 0x247
  5494. 80029e2: 4613 mov r3, r2
  5495. 80029e4: 011b lsls r3, r3, #4
  5496. 80029e6: 1a9b subs r3, r3, r2
  5497. 80029e8: 009b lsls r3, r3, #2
  5498. 80029ea: 4a88 ldr r2, [pc, #544] @ (8002c0c <MqttClientPubTask+0x2c8>)
  5499. 80029ec: 4413 add r3, r2
  5500. 80029ee: f8c7 3238 str.w r3, [r7, #568] @ 0x238
  5501. sprintf (topicTextBuffer, "RESmeasurments/%d", boardNumber + 1);
  5502. 80029f2: f897 3247 ldrb.w r3, [r7, #583] @ 0x247
  5503. 80029f6: 1c5a adds r2, r3, #1
  5504. 80029f8: f107 0318 add.w r3, r7, #24
  5505. 80029fc: 4984 ldr r1, [pc, #528] @ (8002c10 <MqttClientPubTask+0x2cc>)
  5506. 80029fe: 4618 mov r0, r3
  5507. 8002a00: f026 fdf4 bl 80295ec <siprintf>
  5508. bytesInBuffer = sprintf (messageBuffer, "{\"voltageRMS\":[%.2f, %.2f, %.2f], ", resMeas->voltageRMS[0], resMeas->voltageRMS[1], resMeas->voltageRMS[2]);
  5509. 8002a04: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5510. 8002a08: edd3 7a00 vldr s15, [r3]
  5511. 8002a0c: eeb7 5ae7 vcvt.f64.f32 d5, s15
  5512. 8002a10: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5513. 8002a14: edd3 7a01 vldr s15, [r3, #4]
  5514. 8002a18: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5515. 8002a1c: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5516. 8002a20: edd3 6a02 vldr s13, [r3, #8]
  5517. 8002a24: eeb7 6ae6 vcvt.f64.f32 d6, s13
  5518. 8002a28: f107 0038 add.w r0, r7, #56 @ 0x38
  5519. 8002a2c: ed8d 6b02 vstr d6, [sp, #8]
  5520. 8002a30: ed8d 7b00 vstr d7, [sp]
  5521. 8002a34: ec53 2b15 vmov r2, r3, d5
  5522. 8002a38: 4976 ldr r1, [pc, #472] @ (8002c14 <MqttClientPubTask+0x2d0>)
  5523. 8002a3a: f026 fdd7 bl 80295ec <siprintf>
  5524. 8002a3e: 4603 mov r3, r0
  5525. 8002a40: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5526. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"voltagePeak\":[%.2f, %.2f, %.2f], ", resMeas->voltagePeak[0], resMeas->voltagePeak[1], resMeas->voltagePeak[2]);
  5527. 8002a44: f107 0238 add.w r2, r7, #56 @ 0x38
  5528. 8002a48: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5529. 8002a4c: 18d0 adds r0, r2, r3
  5530. 8002a4e: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5531. 8002a52: edd3 7a03 vldr s15, [r3, #12]
  5532. 8002a56: eeb7 5ae7 vcvt.f64.f32 d5, s15
  5533. 8002a5a: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5534. 8002a5e: edd3 7a04 vldr s15, [r3, #16]
  5535. 8002a62: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5536. 8002a66: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5537. 8002a6a: edd3 6a05 vldr s13, [r3, #20]
  5538. 8002a6e: eeb7 6ae6 vcvt.f64.f32 d6, s13
  5539. 8002a72: ed8d 6b02 vstr d6, [sp, #8]
  5540. 8002a76: ed8d 7b00 vstr d7, [sp]
  5541. 8002a7a: ec53 2b15 vmov r2, r3, d5
  5542. 8002a7e: 4966 ldr r1, [pc, #408] @ (8002c18 <MqttClientPubTask+0x2d4>)
  5543. 8002a80: f026 fdb4 bl 80295ec <siprintf>
  5544. 8002a84: 4603 mov r3, r0
  5545. 8002a86: 461a mov r2, r3
  5546. 8002a88: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5547. 8002a8c: 4413 add r3, r2
  5548. 8002a8e: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5549. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"currentRMS\":[%.3f, %.3f, %.3f], ", resMeas->currentRMS[0], resMeas->currentRMS[1], resMeas->currentRMS[2]);
  5550. 8002a92: f107 0238 add.w r2, r7, #56 @ 0x38
  5551. 8002a96: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5552. 8002a9a: 18d0 adds r0, r2, r3
  5553. 8002a9c: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5554. 8002aa0: edd3 7a06 vldr s15, [r3, #24]
  5555. 8002aa4: eeb7 5ae7 vcvt.f64.f32 d5, s15
  5556. 8002aa8: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5557. 8002aac: edd3 7a07 vldr s15, [r3, #28]
  5558. 8002ab0: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5559. 8002ab4: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5560. 8002ab8: edd3 6a08 vldr s13, [r3, #32]
  5561. 8002abc: eeb7 6ae6 vcvt.f64.f32 d6, s13
  5562. 8002ac0: ed8d 6b02 vstr d6, [sp, #8]
  5563. 8002ac4: ed8d 7b00 vstr d7, [sp]
  5564. 8002ac8: ec53 2b15 vmov r2, r3, d5
  5565. 8002acc: 4953 ldr r1, [pc, #332] @ (8002c1c <MqttClientPubTask+0x2d8>)
  5566. 8002ace: f026 fd8d bl 80295ec <siprintf>
  5567. 8002ad2: 4603 mov r3, r0
  5568. 8002ad4: 461a mov r2, r3
  5569. 8002ad6: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5570. 8002ada: 4413 add r3, r2
  5571. 8002adc: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5572. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"currentPeak\":[%.3f, %.3f, %.3f], ", resMeas->currentPeak[0], resMeas->currentPeak[1], resMeas->currentPeak[2]);
  5573. 8002ae0: f107 0238 add.w r2, r7, #56 @ 0x38
  5574. 8002ae4: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5575. 8002ae8: 18d0 adds r0, r2, r3
  5576. 8002aea: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5577. 8002aee: edd3 7a09 vldr s15, [r3, #36] @ 0x24
  5578. 8002af2: eeb7 5ae7 vcvt.f64.f32 d5, s15
  5579. 8002af6: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5580. 8002afa: edd3 7a0a vldr s15, [r3, #40] @ 0x28
  5581. 8002afe: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5582. 8002b02: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5583. 8002b06: edd3 6a0b vldr s13, [r3, #44] @ 0x2c
  5584. 8002b0a: eeb7 6ae6 vcvt.f64.f32 d6, s13
  5585. 8002b0e: ed8d 6b02 vstr d6, [sp, #8]
  5586. 8002b12: ed8d 7b00 vstr d7, [sp]
  5587. 8002b16: ec53 2b15 vmov r2, r3, d5
  5588. 8002b1a: 4941 ldr r1, [pc, #260] @ (8002c20 <MqttClientPubTask+0x2dc>)
  5589. 8002b1c: f026 fd66 bl 80295ec <siprintf>
  5590. 8002b20: 4603 mov r3, r0
  5591. 8002b22: 461a mov r2, r3
  5592. 8002b24: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5593. 8002b28: 4413 add r3, r2
  5594. 8002b2a: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5595. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"power\":[%.2f, %.2f, %.2f], ", resMeas->power[0], resMeas->power[1], resMeas->power[2]);
  5596. 8002b2e: f107 0238 add.w r2, r7, #56 @ 0x38
  5597. 8002b32: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5598. 8002b36: 18d0 adds r0, r2, r3
  5599. 8002b38: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5600. 8002b3c: edd3 7a0c vldr s15, [r3, #48] @ 0x30
  5601. 8002b40: eeb7 5ae7 vcvt.f64.f32 d5, s15
  5602. 8002b44: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5603. 8002b48: edd3 7a0d vldr s15, [r3, #52] @ 0x34
  5604. 8002b4c: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5605. 8002b50: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5606. 8002b54: edd3 6a0e vldr s13, [r3, #56] @ 0x38
  5607. 8002b58: eeb7 6ae6 vcvt.f64.f32 d6, s13
  5608. 8002b5c: ed8d 6b02 vstr d6, [sp, #8]
  5609. 8002b60: ed8d 7b00 vstr d7, [sp]
  5610. 8002b64: ec53 2b15 vmov r2, r3, d5
  5611. 8002b68: 492e ldr r1, [pc, #184] @ (8002c24 <MqttClientPubTask+0x2e0>)
  5612. 8002b6a: f026 fd3f bl 80295ec <siprintf>
  5613. 8002b6e: 4603 mov r3, r0
  5614. 8002b70: 461a mov r2, r3
  5615. 8002b72: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5616. 8002b76: 4413 add r3, r2
  5617. 8002b78: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5618. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"lastSeen\": %ld}", lastSeen[boardNumber]);
  5619. 8002b7c: f107 0238 add.w r2, r7, #56 @ 0x38
  5620. 8002b80: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5621. 8002b84: 18d0 adds r0, r2, r3
  5622. 8002b86: f897 3247 ldrb.w r3, [r7, #583] @ 0x247
  5623. 8002b8a: 4a27 ldr r2, [pc, #156] @ (8002c28 <MqttClientPubTask+0x2e4>)
  5624. 8002b8c: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  5625. 8002b90: 461a mov r2, r3
  5626. 8002b92: 4926 ldr r1, [pc, #152] @ (8002c2c <MqttClientPubTask+0x2e8>)
  5627. 8002b94: f026 fd2a bl 80295ec <siprintf>
  5628. 8002b98: 4603 mov r3, r0
  5629. 8002b9a: 461a mov r2, r3
  5630. 8002b9c: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5631. 8002ba0: 4413 add r3, r2
  5632. 8002ba2: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5633. osMutexRelease (resMeasurementsMutex);
  5634. 8002ba6: 4b16 ldr r3, [pc, #88] @ (8002c00 <MqttClientPubTask+0x2bc>)
  5635. 8002ba8: 681b ldr r3, [r3, #0]
  5636. 8002baa: 4618 mov r0, r3
  5637. 8002bac: f00d fd75 bl 801069a <osMutexRelease>
  5638. message.payload = (void*)messageBuffer;
  5639. 8002bb0: f507 7312 add.w r3, r7, #584 @ 0x248
  5640. 8002bb4: f5a3 7310 sub.w r3, r3, #576 @ 0x240
  5641. 8002bb8: f107 0238 add.w r2, r7, #56 @ 0x38
  5642. 8002bbc: 609a str r2, [r3, #8]
  5643. message.payloadlen = strlen (messageBuffer);
  5644. 8002bbe: f107 0338 add.w r3, r7, #56 @ 0x38
  5645. 8002bc2: 4618 mov r0, r3
  5646. 8002bc4: f7fd fbec bl 80003a0 <strlen>
  5647. 8002bc8: 4602 mov r2, r0
  5648. 8002bca: f507 7312 add.w r3, r7, #584 @ 0x248
  5649. 8002bce: f5a3 7310 sub.w r3, r3, #576 @ 0x240
  5650. 8002bd2: 60da str r2, [r3, #12]
  5651. MQTTPublish (&mqttClient, topicTextBuffer, &message); // publish a message
  5652. 8002bd4: f107 0208 add.w r2, r7, #8
  5653. 8002bd8: f107 0318 add.w r3, r7, #24
  5654. 8002bdc: 4619 mov r1, r3
  5655. 8002bde: 480a ldr r0, [pc, #40] @ (8002c08 <MqttClientPubTask+0x2c4>)
  5656. 8002be0: f024 f81d bl 8026c1e <MQTTPublish>
  5657. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  5658. 8002be4: f897 3247 ldrb.w r3, [r7, #583] @ 0x247
  5659. 8002be8: 3301 adds r3, #1
  5660. 8002bea: f887 3247 strb.w r3, [r7, #583] @ 0x247
  5661. 8002bee: f897 3247 ldrb.w r3, [r7, #583] @ 0x247
  5662. 8002bf2: 2b03 cmp r3, #3
  5663. 8002bf4: f67f aeec bls.w 80029d0 <MqttClientPubTask+0x8c>
  5664. }
  5665. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  5666. 8002bf8: 2300 movs r3, #0
  5667. 8002bfa: f887 3247 strb.w r3, [r7, #583] @ 0x247
  5668. 8002bfe: e16d b.n 8002edc <MqttClientPubTask+0x598>
  5669. 8002c00: 24000594 .word 0x24000594
  5670. 8002c04: 24000598 .word 0x24000598
  5671. 8002c08: 240005b4 .word 0x240005b4
  5672. 8002c0c: 24000404 .word 0x24000404
  5673. 8002c10: 0802c0c4 .word 0x0802c0c4
  5674. 8002c14: 0802c0d8 .word 0x0802c0d8
  5675. 8002c18: 0802c0fc .word 0x0802c0fc
  5676. 8002c1c: 0802c120 .word 0x0802c120
  5677. 8002c20: 0802c144 .word 0x0802c144
  5678. 8002c24: 0802c168 .word 0x0802c168
  5679. 8002c28: 240003f4 .word 0x240003f4
  5680. 8002c2c: 0802c188 .word 0x0802c188
  5681. osMutexAcquire (sensorsInfoMutex, osWaitForever);
  5682. 8002c30: 4baf ldr r3, [pc, #700] @ (8002ef0 <MqttClientPubTask+0x5ac>)
  5683. 8002c32: 681b ldr r3, [r3, #0]
  5684. 8002c34: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5685. 8002c38: 4618 mov r0, r3
  5686. 8002c3a: f00d fce3 bl 8010604 <osMutexAcquire>
  5687. SesnorsInfo* sensors = &sensorsInfo[boardNumber];
  5688. 8002c3e: f897 2247 ldrb.w r2, [r7, #583] @ 0x247
  5689. 8002c42: 4613 mov r3, r2
  5690. 8002c44: 009b lsls r3, r3, #2
  5691. 8002c46: 4413 add r3, r2
  5692. 8002c48: 00db lsls r3, r3, #3
  5693. 8002c4a: 4aaa ldr r2, [pc, #680] @ (8002ef4 <MqttClientPubTask+0x5b0>)
  5694. 8002c4c: 4413 add r3, r2
  5695. 8002c4e: f8c7 323c str.w r3, [r7, #572] @ 0x23c
  5696. sprintf (topicTextBuffer, "Sensors/%d", boardNumber + 1);
  5697. 8002c52: f897 3247 ldrb.w r3, [r7, #583] @ 0x247
  5698. 8002c56: 1c5a adds r2, r3, #1
  5699. 8002c58: f107 0318 add.w r3, r7, #24
  5700. 8002c5c: 49a6 ldr r1, [pc, #664] @ (8002ef8 <MqttClientPubTask+0x5b4>)
  5701. 8002c5e: 4618 mov r0, r3
  5702. 8002c60: f026 fcc4 bl 80295ec <siprintf>
  5703. bytesInBuffer = sprintf (messageBuffer, "{\"pvTemperature\":[%.1f, %.1f], ", sensors->pvTemperature[0], sensors->pvTemperature[1]);
  5704. 8002c64: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5705. 8002c68: edd3 7a00 vldr s15, [r3]
  5706. 8002c6c: eeb7 6ae7 vcvt.f64.f32 d6, s15
  5707. 8002c70: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5708. 8002c74: edd3 7a01 vldr s15, [r3, #4]
  5709. 8002c78: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5710. 8002c7c: f107 0038 add.w r0, r7, #56 @ 0x38
  5711. 8002c80: ed8d 7b00 vstr d7, [sp]
  5712. 8002c84: ec53 2b16 vmov r2, r3, d6
  5713. 8002c88: 499c ldr r1, [pc, #624] @ (8002efc <MqttClientPubTask+0x5b8>)
  5714. 8002c8a: f026 fcaf bl 80295ec <siprintf>
  5715. 8002c8e: 4603 mov r3, r0
  5716. 8002c90: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5717. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"fanVoltage\":%.2f, ", sensors->fanVoltage);
  5718. 8002c94: f107 0238 add.w r2, r7, #56 @ 0x38
  5719. 8002c98: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5720. 8002c9c: 18d0 adds r0, r2, r3
  5721. 8002c9e: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5722. 8002ca2: edd3 7a02 vldr s15, [r3, #8]
  5723. 8002ca6: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5724. 8002caa: ec53 2b17 vmov r2, r3, d7
  5725. 8002cae: 4994 ldr r1, [pc, #592] @ (8002f00 <MqttClientPubTask+0x5bc>)
  5726. 8002cb0: f026 fc9c bl 80295ec <siprintf>
  5727. 8002cb4: 4603 mov r3, r0
  5728. 8002cb6: 461a mov r2, r3
  5729. 8002cb8: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5730. 8002cbc: 4413 add r3, r2
  5731. 8002cbe: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5732. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"pvEncoder\":%.2f, ", sensors->pvEncoder);
  5733. 8002cc2: f107 0238 add.w r2, r7, #56 @ 0x38
  5734. 8002cc6: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5735. 8002cca: 18d0 adds r0, r2, r3
  5736. 8002ccc: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5737. 8002cd0: edd3 7a03 vldr s15, [r3, #12]
  5738. 8002cd4: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5739. 8002cd8: ec53 2b17 vmov r2, r3, d7
  5740. 8002cdc: 4989 ldr r1, [pc, #548] @ (8002f04 <MqttClientPubTask+0x5c0>)
  5741. 8002cde: f026 fc85 bl 80295ec <siprintf>
  5742. 8002ce2: 4603 mov r3, r0
  5743. 8002ce4: 461a mov r2, r3
  5744. 8002ce6: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5745. 8002cea: 4413 add r3, r2
  5746. 8002cec: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5747. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"motorXStatus\":%d, ", sensors->motorXStatus);
  5748. 8002cf0: f107 0238 add.w r2, r7, #56 @ 0x38
  5749. 8002cf4: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5750. 8002cf8: 18d0 adds r0, r2, r3
  5751. 8002cfa: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5752. 8002cfe: 7c1b ldrb r3, [r3, #16]
  5753. 8002d00: 461a mov r2, r3
  5754. 8002d02: 4981 ldr r1, [pc, #516] @ (8002f08 <MqttClientPubTask+0x5c4>)
  5755. 8002d04: f026 fc72 bl 80295ec <siprintf>
  5756. 8002d08: 4603 mov r3, r0
  5757. 8002d0a: 461a mov r2, r3
  5758. 8002d0c: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5759. 8002d10: 4413 add r3, r2
  5760. 8002d12: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5761. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"motorYStatus\":%d, ", sensors->motorYStatus);
  5762. 8002d16: f107 0238 add.w r2, r7, #56 @ 0x38
  5763. 8002d1a: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5764. 8002d1e: 18d0 adds r0, r2, r3
  5765. 8002d20: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5766. 8002d24: 7c5b ldrb r3, [r3, #17]
  5767. 8002d26: 461a mov r2, r3
  5768. 8002d28: 4978 ldr r1, [pc, #480] @ (8002f0c <MqttClientPubTask+0x5c8>)
  5769. 8002d2a: f026 fc5f bl 80295ec <siprintf>
  5770. 8002d2e: 4603 mov r3, r0
  5771. 8002d30: 461a mov r2, r3
  5772. 8002d32: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5773. 8002d36: 4413 add r3, r2
  5774. 8002d38: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5775. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"motorXAveCurrent\":%.3f, ", sensors->motorXAveCurrent);
  5776. 8002d3c: f107 0238 add.w r2, r7, #56 @ 0x38
  5777. 8002d40: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5778. 8002d44: 18d0 adds r0, r2, r3
  5779. 8002d46: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5780. 8002d4a: edd3 7a05 vldr s15, [r3, #20]
  5781. 8002d4e: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5782. 8002d52: ec53 2b17 vmov r2, r3, d7
  5783. 8002d56: 496e ldr r1, [pc, #440] @ (8002f10 <MqttClientPubTask+0x5cc>)
  5784. 8002d58: f026 fc48 bl 80295ec <siprintf>
  5785. 8002d5c: 4603 mov r3, r0
  5786. 8002d5e: 461a mov r2, r3
  5787. 8002d60: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5788. 8002d64: 4413 add r3, r2
  5789. 8002d66: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5790. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"motorYAveCurrent\":%.3f, ", sensors->motorYAveCurrent);
  5791. 8002d6a: f107 0238 add.w r2, r7, #56 @ 0x38
  5792. 8002d6e: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5793. 8002d72: 18d0 adds r0, r2, r3
  5794. 8002d74: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5795. 8002d78: edd3 7a06 vldr s15, [r3, #24]
  5796. 8002d7c: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5797. 8002d80: ec53 2b17 vmov r2, r3, d7
  5798. 8002d84: 4963 ldr r1, [pc, #396] @ (8002f14 <MqttClientPubTask+0x5d0>)
  5799. 8002d86: f026 fc31 bl 80295ec <siprintf>
  5800. 8002d8a: 4603 mov r3, r0
  5801. 8002d8c: 461a mov r2, r3
  5802. 8002d8e: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5803. 8002d92: 4413 add r3, r2
  5804. 8002d94: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5805. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"motorXPeakCurrent\":%.3f, ", sensors->motorXPeakCurrent);
  5806. 8002d98: f107 0238 add.w r2, r7, #56 @ 0x38
  5807. 8002d9c: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5808. 8002da0: 18d0 adds r0, r2, r3
  5809. 8002da2: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5810. 8002da6: edd3 7a07 vldr s15, [r3, #28]
  5811. 8002daa: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5812. 8002dae: ec53 2b17 vmov r2, r3, d7
  5813. 8002db2: 4959 ldr r1, [pc, #356] @ (8002f18 <MqttClientPubTask+0x5d4>)
  5814. 8002db4: f026 fc1a bl 80295ec <siprintf>
  5815. 8002db8: 4603 mov r3, r0
  5816. 8002dba: 461a mov r2, r3
  5817. 8002dbc: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5818. 8002dc0: 4413 add r3, r2
  5819. 8002dc2: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5820. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"motorYPeakCurrent\":%.3f, ", sensors->motorYPeakCurrent);
  5821. 8002dc6: f107 0238 add.w r2, r7, #56 @ 0x38
  5822. 8002dca: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5823. 8002dce: 18d0 adds r0, r2, r3
  5824. 8002dd0: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5825. 8002dd4: edd3 7a08 vldr s15, [r3, #32]
  5826. 8002dd8: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5827. 8002ddc: ec53 2b17 vmov r2, r3, d7
  5828. 8002de0: 494e ldr r1, [pc, #312] @ (8002f1c <MqttClientPubTask+0x5d8>)
  5829. 8002de2: f026 fc03 bl 80295ec <siprintf>
  5830. 8002de6: 4603 mov r3, r0
  5831. 8002de8: 461a mov r2, r3
  5832. 8002dea: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5833. 8002dee: 4413 add r3, r2
  5834. 8002df0: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5835. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"limitSwitchUp\":%d, ", sensors->limitSwitchUp);
  5836. 8002df4: f107 0238 add.w r2, r7, #56 @ 0x38
  5837. 8002df8: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5838. 8002dfc: 18d0 adds r0, r2, r3
  5839. 8002dfe: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5840. 8002e02: f893 3024 ldrb.w r3, [r3, #36] @ 0x24
  5841. 8002e06: 461a mov r2, r3
  5842. 8002e08: 4945 ldr r1, [pc, #276] @ (8002f20 <MqttClientPubTask+0x5dc>)
  5843. 8002e0a: f026 fbef bl 80295ec <siprintf>
  5844. 8002e0e: 4603 mov r3, r0
  5845. 8002e10: 461a mov r2, r3
  5846. 8002e12: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5847. 8002e16: 4413 add r3, r2
  5848. 8002e18: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5849. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"limitSwitchDown\":%d, ", sensors->limitSwitchDown);
  5850. 8002e1c: f107 0238 add.w r2, r7, #56 @ 0x38
  5851. 8002e20: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5852. 8002e24: 18d0 adds r0, r2, r3
  5853. 8002e26: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5854. 8002e2a: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  5855. 8002e2e: 461a mov r2, r3
  5856. 8002e30: 493c ldr r1, [pc, #240] @ (8002f24 <MqttClientPubTask+0x5e0>)
  5857. 8002e32: f026 fbdb bl 80295ec <siprintf>
  5858. 8002e36: 4603 mov r3, r0
  5859. 8002e38: 461a mov r2, r3
  5860. 8002e3a: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5861. 8002e3e: 4413 add r3, r2
  5862. 8002e40: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5863. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"limitSwitchCenter\":%d, ", sensors->limitSwitchCenter);
  5864. 8002e44: f107 0238 add.w r2, r7, #56 @ 0x38
  5865. 8002e48: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5866. 8002e4c: 18d0 adds r0, r2, r3
  5867. 8002e4e: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5868. 8002e52: f893 3026 ldrb.w r3, [r3, #38] @ 0x26
  5869. 8002e56: 461a mov r2, r3
  5870. 8002e58: 4933 ldr r1, [pc, #204] @ (8002f28 <MqttClientPubTask+0x5e4>)
  5871. 8002e5a: f026 fbc7 bl 80295ec <siprintf>
  5872. 8002e5e: 4603 mov r3, r0
  5873. 8002e60: 461a mov r2, r3
  5874. 8002e62: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5875. 8002e66: 4413 add r3, r2
  5876. 8002e68: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5877. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"powerSupplyFailMask\":%d}", sensors->powerSupplyFailMask);
  5878. 8002e6c: f107 0238 add.w r2, r7, #56 @ 0x38
  5879. 8002e70: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5880. 8002e74: 18d0 adds r0, r2, r3
  5881. 8002e76: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5882. 8002e7a: f893 3027 ldrb.w r3, [r3, #39] @ 0x27
  5883. 8002e7e: 461a mov r2, r3
  5884. 8002e80: 492a ldr r1, [pc, #168] @ (8002f2c <MqttClientPubTask+0x5e8>)
  5885. 8002e82: f026 fbb3 bl 80295ec <siprintf>
  5886. 8002e86: 4603 mov r3, r0
  5887. 8002e88: 461a mov r2, r3
  5888. 8002e8a: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5889. 8002e8e: 4413 add r3, r2
  5890. 8002e90: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5891. osMutexRelease (sensorsInfoMutex);
  5892. 8002e94: 4b16 ldr r3, [pc, #88] @ (8002ef0 <MqttClientPubTask+0x5ac>)
  5893. 8002e96: 681b ldr r3, [r3, #0]
  5894. 8002e98: 4618 mov r0, r3
  5895. 8002e9a: f00d fbfe bl 801069a <osMutexRelease>
  5896. message.payload = (void*)messageBuffer;
  5897. 8002e9e: f507 7312 add.w r3, r7, #584 @ 0x248
  5898. 8002ea2: f5a3 7310 sub.w r3, r3, #576 @ 0x240
  5899. 8002ea6: f107 0238 add.w r2, r7, #56 @ 0x38
  5900. 8002eaa: 609a str r2, [r3, #8]
  5901. message.payloadlen = strlen (messageBuffer);
  5902. 8002eac: f107 0338 add.w r3, r7, #56 @ 0x38
  5903. 8002eb0: 4618 mov r0, r3
  5904. 8002eb2: f7fd fa75 bl 80003a0 <strlen>
  5905. 8002eb6: 4602 mov r2, r0
  5906. 8002eb8: f507 7312 add.w r3, r7, #584 @ 0x248
  5907. 8002ebc: f5a3 7310 sub.w r3, r3, #576 @ 0x240
  5908. 8002ec0: 60da str r2, [r3, #12]
  5909. MQTTPublish (&mqttClient, topicTextBuffer, &message); // publish a message
  5910. 8002ec2: f107 0208 add.w r2, r7, #8
  5911. 8002ec6: f107 0318 add.w r3, r7, #24
  5912. 8002eca: 4619 mov r1, r3
  5913. 8002ecc: 4818 ldr r0, [pc, #96] @ (8002f30 <MqttClientPubTask+0x5ec>)
  5914. 8002ece: f023 fea6 bl 8026c1e <MQTTPublish>
  5915. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  5916. 8002ed2: f897 3247 ldrb.w r3, [r7, #583] @ 0x247
  5917. 8002ed6: 3301 adds r3, #1
  5918. 8002ed8: f887 3247 strb.w r3, [r7, #583] @ 0x247
  5919. 8002edc: f897 3247 ldrb.w r3, [r7, #583] @ 0x247
  5920. 8002ee0: 2b03 cmp r3, #3
  5921. 8002ee2: f67f aea5 bls.w 8002c30 <MqttClientPubTask+0x2ec>
  5922. }
  5923. }
  5924. }
  5925. osDelay (pdMS_TO_TICKS (1000));
  5926. 8002ee6: f44f 707a mov.w r0, #1000 @ 0x3e8
  5927. 8002eea: f00d faea bl 80104c2 <osDelay>
  5928. if (mqttClient.isconnected) {
  5929. 8002eee: e560 b.n 80029b2 <MqttClientPubTask+0x6e>
  5930. 8002ef0: 24000598 .word 0x24000598
  5931. 8002ef4: 240004f4 .word 0x240004f4
  5932. 8002ef8: 0802c19c .word 0x0802c19c
  5933. 8002efc: 0802c1a8 .word 0x0802c1a8
  5934. 8002f00: 0802c1c8 .word 0x0802c1c8
  5935. 8002f04: 0802c1dc .word 0x0802c1dc
  5936. 8002f08: 0802c1f0 .word 0x0802c1f0
  5937. 8002f0c: 0802c204 .word 0x0802c204
  5938. 8002f10: 0802c218 .word 0x0802c218
  5939. 8002f14: 0802c234 .word 0x0802c234
  5940. 8002f18: 0802c250 .word 0x0802c250
  5941. 8002f1c: 0802c26c .word 0x0802c26c
  5942. 8002f20: 0802c288 .word 0x0802c288
  5943. 8002f24: 0802c2a0 .word 0x0802c2a0
  5944. 8002f28: 0802c2b8 .word 0x0802c2b8
  5945. 8002f2c: 0802c2d4 .word 0x0802c2d4
  5946. 8002f30: 240005b4 .word 0x240005b4
  5947. 08002f34 <MqttConnectBroker>:
  5948. }
  5949. }
  5950. int MqttConnectBroker () {
  5951. 8002f34: b580 push {r7, lr}
  5952. 8002f36: b09c sub sp, #112 @ 0x70
  5953. 8002f38: af04 add r7, sp, #16
  5954. uint8_t boardNumber = 0;
  5955. 8002f3a: 2300 movs r3, #0
  5956. 8002f3c: f887 305f strb.w r3, [r7, #95] @ 0x5f
  5957. int ret;
  5958. NewNetwork (&net);
  5959. 8002f40: 4839 ldr r0, [pc, #228] @ (8003028 <MqttConnectBroker+0xf4>)
  5960. 8002f42: f023 ffa5 bl 8026e90 <NewNetwork>
  5961. ret = ConnectNetwork (&net, BROKER_IP, MQTT_PORT);
  5962. 8002f46: f240 725b movw r2, #1883 @ 0x75b
  5963. 8002f4a: 4938 ldr r1, [pc, #224] @ (800302c <MqttConnectBroker+0xf8>)
  5964. 8002f4c: 4836 ldr r0, [pc, #216] @ (8003028 <MqttConnectBroker+0xf4>)
  5965. 8002f4e: f023 ffbb bl 8026ec8 <ConnectNetwork>
  5966. 8002f52: 65b8 str r0, [r7, #88] @ 0x58
  5967. if (ret != MQTT_SUCCESS) {
  5968. 8002f54: 6dbb ldr r3, [r7, #88] @ 0x58
  5969. 8002f56: 2b00 cmp r3, #0
  5970. 8002f58: d005 beq.n 8002f66 <MqttConnectBroker+0x32>
  5971. printf ("ConnectNetwork failed.\n");
  5972. 8002f5a: 4835 ldr r0, [pc, #212] @ (8003030 <MqttConnectBroker+0xfc>)
  5973. 8002f5c: f026 fb3e bl 80295dc <puts>
  5974. return -1;
  5975. 8002f60: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  5976. 8002f64: e05c b.n 8003020 <MqttConnectBroker+0xec>
  5977. }
  5978. MQTTClientInit (&mqttClient, &net, 1000, sndBuffer, sizeof (sndBuffer), rcvBuffer, sizeof (rcvBuffer));
  5979. 8002f66: f44f 6380 mov.w r3, #1024 @ 0x400
  5980. 8002f6a: 9302 str r3, [sp, #8]
  5981. 8002f6c: 4b31 ldr r3, [pc, #196] @ (8003034 <MqttConnectBroker+0x100>)
  5982. 8002f6e: 9301 str r3, [sp, #4]
  5983. 8002f70: f44f 6380 mov.w r3, #1024 @ 0x400
  5984. 8002f74: 9300 str r3, [sp, #0]
  5985. 8002f76: 4b30 ldr r3, [pc, #192] @ (8003038 <MqttConnectBroker+0x104>)
  5986. 8002f78: f44f 727a mov.w r2, #1000 @ 0x3e8
  5987. 8002f7c: 492a ldr r1, [pc, #168] @ (8003028 <MqttConnectBroker+0xf4>)
  5988. 8002f7e: 482f ldr r0, [pc, #188] @ (800303c <MqttConnectBroker+0x108>)
  5989. 8002f80: f023 f8c0 bl 8026104 <MQTTClientInit>
  5990. MQTTPacket_connectData data = MQTTPacket_connectData_initializer;
  5991. 8002f84: 4a2e ldr r2, [pc, #184] @ (8003040 <MqttConnectBroker+0x10c>)
  5992. 8002f86: 463b mov r3, r7
  5993. 8002f88: 4611 mov r1, r2
  5994. 8002f8a: 2258 movs r2, #88 @ 0x58
  5995. 8002f8c: 4618 mov r0, r3
  5996. 8002f8e: f026 fd46 bl 8029a1e <memcpy>
  5997. data.willFlag = 0;
  5998. 8002f92: 2300 movs r3, #0
  5999. 8002f94: 76fb strb r3, [r7, #27]
  6000. data.MQTTVersion = 3;
  6001. 8002f96: 2303 movs r3, #3
  6002. 8002f98: 723b strb r3, [r7, #8]
  6003. data.clientID.cstring = "test_user1";
  6004. 8002f9a: 4b2a ldr r3, [pc, #168] @ (8003044 <MqttConnectBroker+0x110>)
  6005. 8002f9c: 60fb str r3, [r7, #12]
  6006. data.username.cstring = "test_user1";
  6007. 8002f9e: 4b29 ldr r3, [pc, #164] @ (8003044 <MqttConnectBroker+0x110>)
  6008. 8002fa0: 643b str r3, [r7, #64] @ 0x40
  6009. data.password.cstring = "1234";
  6010. 8002fa2: 4b29 ldr r3, [pc, #164] @ (8003048 <MqttConnectBroker+0x114>)
  6011. 8002fa4: 64fb str r3, [r7, #76] @ 0x4c
  6012. data.keepAliveInterval = 100;
  6013. 8002fa6: 2364 movs r3, #100 @ 0x64
  6014. 8002fa8: 833b strh r3, [r7, #24]
  6015. data.cleansession = 1;
  6016. 8002faa: 2301 movs r3, #1
  6017. 8002fac: 76bb strb r3, [r7, #26]
  6018. ret = MQTTConnect (&mqttClient, &data);
  6019. 8002fae: 463b mov r3, r7
  6020. 8002fb0: 4619 mov r1, r3
  6021. 8002fb2: 4822 ldr r0, [pc, #136] @ (800303c <MqttConnectBroker+0x108>)
  6022. 8002fb4: f023 fd02 bl 80269bc <MQTTConnect>
  6023. 8002fb8: 65b8 str r0, [r7, #88] @ 0x58
  6024. if (ret != MQTT_SUCCESS) {
  6025. 8002fba: 6dbb ldr r3, [r7, #88] @ 0x58
  6026. 8002fbc: 2b00 cmp r3, #0
  6027. 8002fbe: d008 beq.n 8002fd2 <MqttConnectBroker+0x9e>
  6028. net_disconnect (&net);
  6029. 8002fc0: 4819 ldr r0, [pc, #100] @ (8003028 <MqttConnectBroker+0xf4>)
  6030. 8002fc2: f024 f80a bl 8026fda <net_disconnect>
  6031. printf ("MQTTConnect failed. Code %d\n", ret);
  6032. 8002fc6: 6db9 ldr r1, [r7, #88] @ 0x58
  6033. 8002fc8: 4820 ldr r0, [pc, #128] @ (800304c <MqttConnectBroker+0x118>)
  6034. 8002fca: f026 fa9f bl 802950c <iprintf>
  6035. return ret;
  6036. 8002fce: 6dbb ldr r3, [r7, #88] @ 0x58
  6037. 8002fd0: e026 b.n 8003020 <MqttConnectBroker+0xec>
  6038. }
  6039. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  6040. 8002fd2: 2300 movs r3, #0
  6041. 8002fd4: f887 305f strb.w r3, [r7, #95] @ 0x5f
  6042. 8002fd8: e01a b.n 8003010 <MqttConnectBroker+0xdc>
  6043. ret = MQTTSubscribe (&mqttClient, subscribeTopicNames[boardNumber], QOS0, MqttMessageArrived);
  6044. 8002fda: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  6045. 8002fde: 4a1c ldr r2, [pc, #112] @ (8003050 <MqttConnectBroker+0x11c>)
  6046. 8002fe0: f852 1023 ldr.w r1, [r2, r3, lsl #2]
  6047. 8002fe4: 4b1b ldr r3, [pc, #108] @ (8003054 <MqttConnectBroker+0x120>)
  6048. 8002fe6: 2200 movs r2, #0
  6049. 8002fe8: 4814 ldr r0, [pc, #80] @ (800303c <MqttConnectBroker+0x108>)
  6050. 8002fea: f023 fe02 bl 8026bf2 <MQTTSubscribe>
  6051. 8002fee: 65b8 str r0, [r7, #88] @ 0x58
  6052. if (ret != MQTT_SUCCESS) {
  6053. 8002ff0: 6dbb ldr r3, [r7, #88] @ 0x58
  6054. 8002ff2: 2b00 cmp r3, #0
  6055. 8002ff4: d007 beq.n 8003006 <MqttConnectBroker+0xd2>
  6056. net_disconnect (&net);
  6057. 8002ff6: 480c ldr r0, [pc, #48] @ (8003028 <MqttConnectBroker+0xf4>)
  6058. 8002ff8: f023 ffef bl 8026fda <net_disconnect>
  6059. printf ("MQTTSubscribe failed.\n");
  6060. 8002ffc: 4816 ldr r0, [pc, #88] @ (8003058 <MqttConnectBroker+0x124>)
  6061. 8002ffe: f026 faed bl 80295dc <puts>
  6062. return ret;
  6063. 8003002: 6dbb ldr r3, [r7, #88] @ 0x58
  6064. 8003004: e00c b.n 8003020 <MqttConnectBroker+0xec>
  6065. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  6066. 8003006: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  6067. 800300a: 3301 adds r3, #1
  6068. 800300c: f887 305f strb.w r3, [r7, #95] @ 0x5f
  6069. 8003010: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  6070. 8003014: 2b03 cmp r3, #3
  6071. 8003016: d9e0 bls.n 8002fda <MqttConnectBroker+0xa6>
  6072. }
  6073. }
  6074. printf ("MQTT_ConnectBroker O.K.\n");
  6075. 8003018: 4810 ldr r0, [pc, #64] @ (800305c <MqttConnectBroker+0x128>)
  6076. 800301a: f026 fadf bl 80295dc <puts>
  6077. return MQTT_SUCCESS;
  6078. 800301e: 2300 movs r3, #0
  6079. }
  6080. 8003020: 4618 mov r0, r3
  6081. 8003022: 3760 adds r7, #96 @ 0x60
  6082. 8003024: 46bd mov sp, r7
  6083. 8003026: bd80 pop {r7, pc}
  6084. 8003028: 240005a4 .word 0x240005a4
  6085. 800302c: 0802c2f0 .word 0x0802c2f0
  6086. 8003030: 0802c300 .word 0x0802c300
  6087. 8003034: 24000a20 .word 0x24000a20
  6088. 8003038: 24000620 .word 0x24000620
  6089. 800303c: 240005b4 .word 0x240005b4
  6090. 8003040: 0802c37c .word 0x0802c37c
  6091. 8003044: 0802c318 .word 0x0802c318
  6092. 8003048: 0802c324 .word 0x0802c324
  6093. 800304c: 0802c32c .word 0x0802c32c
  6094. 8003050: 08030548 .word 0x08030548
  6095. 8003054: 08003061 .word 0x08003061
  6096. 8003058: 0802c34c .word 0x0802c34c
  6097. 800305c: 0802c364 .word 0x0802c364
  6098. 08003060 <MqttMessageArrived>:
  6099. void MqttMessageArrived (MessageData* msg) {
  6100. 8003060: b580 push {r7, lr}
  6101. 8003062: b096 sub sp, #88 @ 0x58
  6102. 8003064: af00 add r7, sp, #0
  6103. 8003066: 6078 str r0, [r7, #4]
  6104. SerialProtocolCommands spCommand = spUnknown;
  6105. 8003068: 2308 movs r3, #8
  6106. 800306a: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6107. BoardNoOverTopic topicForBoard = unknownBoard;
  6108. 800306e: 2305 movs r3, #5
  6109. 8003070: f887 3056 strb.w r3, [r7, #86] @ 0x56
  6110. uint8_t boardNumber = 0;
  6111. 8003074: 2300 movs r3, #0
  6112. 8003076: f887 3055 strb.w r3, [r7, #85] @ 0x55
  6113. MQTTMessage* message = msg->message;
  6114. 800307a: 687b ldr r3, [r7, #4]
  6115. 800307c: 681b ldr r3, [r3, #0]
  6116. 800307e: 64bb str r3, [r7, #72] @ 0x48
  6117. char topicName[32] = { 0 };
  6118. 8003080: 2300 movs r3, #0
  6119. 8003082: 61bb str r3, [r7, #24]
  6120. 8003084: f107 031c add.w r3, r7, #28
  6121. 8003088: 2200 movs r2, #0
  6122. 800308a: 601a str r2, [r3, #0]
  6123. 800308c: 605a str r2, [r3, #4]
  6124. 800308e: 609a str r2, [r3, #8]
  6125. 8003090: 60da str r2, [r3, #12]
  6126. 8003092: 611a str r2, [r3, #16]
  6127. 8003094: 615a str r2, [r3, #20]
  6128. 8003096: 619a str r2, [r3, #24]
  6129. memcpy (topicName, msg->topicName->lenstring.data, msg->topicName->lenstring.len);
  6130. 8003098: 687b ldr r3, [r7, #4]
  6131. 800309a: 685b ldr r3, [r3, #4]
  6132. 800309c: 6899 ldr r1, [r3, #8]
  6133. 800309e: 687b ldr r3, [r7, #4]
  6134. 80030a0: 685b ldr r3, [r3, #4]
  6135. 80030a2: 685b ldr r3, [r3, #4]
  6136. 80030a4: 461a mov r2, r3
  6137. 80030a6: f107 0318 add.w r3, r7, #24
  6138. 80030aa: 4618 mov r0, r3
  6139. 80030ac: f026 fcb7 bl 8029a1e <memcpy>
  6140. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  6141. 80030b0: 2300 movs r3, #0
  6142. 80030b2: f887 3055 strb.w r3, [r7, #85] @ 0x55
  6143. 80030b6: e017 b.n 80030e8 <MqttMessageArrived+0x88>
  6144. if (strcmp (topicName, subscribeTopicNames[boardNumber]) == 0) {
  6145. 80030b8: f897 3055 ldrb.w r3, [r7, #85] @ 0x55
  6146. 80030bc: 4a8c ldr r2, [pc, #560] @ (80032f0 <MqttMessageArrived+0x290>)
  6147. 80030be: f852 2023 ldr.w r2, [r2, r3, lsl #2]
  6148. 80030c2: f107 0318 add.w r3, r7, #24
  6149. 80030c6: 4611 mov r1, r2
  6150. 80030c8: 4618 mov r0, r3
  6151. 80030ca: f7fd f909 bl 80002e0 <strcmp>
  6152. 80030ce: 4603 mov r3, r0
  6153. 80030d0: 2b00 cmp r3, #0
  6154. 80030d2: d104 bne.n 80030de <MqttMessageArrived+0x7e>
  6155. topicForBoard = (BoardNoOverTopic)(boardNumber + 1);
  6156. 80030d4: f897 3055 ldrb.w r3, [r7, #85] @ 0x55
  6157. 80030d8: 3301 adds r3, #1
  6158. 80030da: f887 3056 strb.w r3, [r7, #86] @ 0x56
  6159. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  6160. 80030de: f897 3055 ldrb.w r3, [r7, #85] @ 0x55
  6161. 80030e2: 3301 adds r3, #1
  6162. 80030e4: f887 3055 strb.w r3, [r7, #85] @ 0x55
  6163. 80030e8: f897 3055 ldrb.w r3, [r7, #85] @ 0x55
  6164. 80030ec: 2b03 cmp r3, #3
  6165. 80030ee: d9e3 bls.n 80030b8 <MqttMessageArrived+0x58>
  6166. }
  6167. }
  6168. cJSON* json = cJSON_Parse (message->payload);
  6169. 80030f0: 6cbb ldr r3, [r7, #72] @ 0x48
  6170. 80030f2: 689b ldr r3, [r3, #8]
  6171. 80030f4: 4618 mov r0, r3
  6172. 80030f6: f7fe fa2d bl 8001554 <cJSON_Parse>
  6173. 80030fa: 6478 str r0, [r7, #68] @ 0x44
  6174. const cJSON* objectItem = NULL;
  6175. 80030fc: 2300 movs r3, #0
  6176. 80030fe: 643b str r3, [r7, #64] @ 0x40
  6177. InterProcessData data = { 0 };
  6178. 8003100: f107 030c add.w r3, r7, #12
  6179. 8003104: 2200 movs r2, #0
  6180. 8003106: 601a str r2, [r3, #0]
  6181. 8003108: 605a str r2, [r3, #4]
  6182. 800310a: 609a str r2, [r3, #8]
  6183. for (int topicCmdNumber = 0; topicCmdNumber < 6; topicCmdNumber++) {
  6184. 800310c: 2300 movs r3, #0
  6185. 800310e: 653b str r3, [r7, #80] @ 0x50
  6186. 8003110: e0d8 b.n 80032c4 <MqttMessageArrived+0x264>
  6187. spCommand = spUnknown;
  6188. 8003112: 2308 movs r3, #8
  6189. 8003114: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6190. objectItem = cJSON_GetObjectItemCaseSensitive (json, topicCommands[topicCmdNumber]);
  6191. 8003118: 4a76 ldr r2, [pc, #472] @ (80032f4 <MqttMessageArrived+0x294>)
  6192. 800311a: 6d3b ldr r3, [r7, #80] @ 0x50
  6193. 800311c: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  6194. 8003120: 4619 mov r1, r3
  6195. 8003122: 6c78 ldr r0, [r7, #68] @ 0x44
  6196. 8003124: f7fe fd80 bl 8001c28 <cJSON_GetObjectItemCaseSensitive>
  6197. 8003128: 6438 str r0, [r7, #64] @ 0x40
  6198. if (objectItem != NULL) {
  6199. 800312a: 6c3b ldr r3, [r7, #64] @ 0x40
  6200. 800312c: 2b00 cmp r3, #0
  6201. 800312e: f000 80c6 beq.w 80032be <MqttMessageArrived+0x25e>
  6202. switch (topicCmdNumber) {
  6203. 8003132: 6d3b ldr r3, [r7, #80] @ 0x50
  6204. 8003134: 2b05 cmp r3, #5
  6205. 8003136: d86e bhi.n 8003216 <MqttMessageArrived+0x1b6>
  6206. 8003138: a201 add r2, pc, #4 @ (adr r2, 8003140 <MqttMessageArrived+0xe0>)
  6207. 800313a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  6208. 800313e: bf00 nop
  6209. 8003140: 08003159 .word 0x08003159
  6210. 8003144: 0800315f .word 0x0800315f
  6211. 8003148: 0800316d .word 0x0800316d
  6212. 800314c: 080031d7 .word 0x080031d7
  6213. 8003150: 080031e7 .word 0x080031e7
  6214. 8003154: 080031ed .word 0x080031ed
  6215. case 0: spCommand = spSetFanSpeed;
  6216. 8003158: 2302 movs r3, #2
  6217. 800315a: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6218. case 1:
  6219. if (spCommand == spUnknown) {
  6220. 800315e: f897 3057 ldrb.w r3, [r7, #87] @ 0x57
  6221. 8003162: 2b08 cmp r3, #8
  6222. 8003164: d102 bne.n 800316c <MqttMessageArrived+0x10c>
  6223. spCommand = spSetMotorXOn;
  6224. 8003166: 2303 movs r3, #3
  6225. 8003168: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6226. }
  6227. case 2:
  6228. if (spCommand == spUnknown) {
  6229. 800316c: f897 3057 ldrb.w r3, [r7, #87] @ 0x57
  6230. 8003170: 2b08 cmp r3, #8
  6231. 8003172: d102 bne.n 800317a <MqttMessageArrived+0x11a>
  6232. spCommand = spSetMotorYOn;
  6233. 8003174: 2304 movs r3, #4
  6234. 8003176: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6235. }
  6236. if (cJSON_IsArray (objectItem)) {
  6237. 800317a: 6c38 ldr r0, [r7, #64] @ 0x40
  6238. 800317c: f7fe fd7a bl 8001c74 <cJSON_IsArray>
  6239. 8003180: 4603 mov r3, r0
  6240. 8003182: 2b00 cmp r3, #0
  6241. 8003184: d049 beq.n 800321a <MqttMessageArrived+0x1ba>
  6242. data.spCommand = spCommand;
  6243. 8003186: f897 3057 ldrb.w r3, [r7, #87] @ 0x57
  6244. 800318a: 733b strb r3, [r7, #12]
  6245. int arraySize = cJSON_GetArraySize (objectItem);
  6246. 800318c: 6c38 ldr r0, [r7, #64] @ 0x40
  6247. 800318e: f7fe fcab bl 8001ae8 <cJSON_GetArraySize>
  6248. 8003192: 63f8 str r0, [r7, #60] @ 0x3c
  6249. if (arraySize == 2) {
  6250. 8003194: 6bfb ldr r3, [r7, #60] @ 0x3c
  6251. 8003196: 2b02 cmp r3, #2
  6252. 8003198: d13f bne.n 800321a <MqttMessageArrived+0x1ba>
  6253. for (int i = 0; i < arraySize; i++) {
  6254. 800319a: 2300 movs r3, #0
  6255. 800319c: 64fb str r3, [r7, #76] @ 0x4c
  6256. 800319e: e015 b.n 80031cc <MqttMessageArrived+0x16c>
  6257. cJSON* item = cJSON_GetArrayItem (objectItem, i);
  6258. 80031a0: 6cf9 ldr r1, [r7, #76] @ 0x4c
  6259. 80031a2: 6c38 ldr r0, [r7, #64] @ 0x40
  6260. 80031a4: f7fe fce4 bl 8001b70 <cJSON_GetArrayItem>
  6261. 80031a8: 63b8 str r0, [r7, #56] @ 0x38
  6262. if (cJSON_IsNumber (item)) {
  6263. 80031aa: 6bb8 ldr r0, [r7, #56] @ 0x38
  6264. 80031ac: f7fe fd4b bl 8001c46 <cJSON_IsNumber>
  6265. 80031b0: 4603 mov r3, r0
  6266. 80031b2: 2b00 cmp r3, #0
  6267. 80031b4: d007 beq.n 80031c6 <MqttMessageArrived+0x166>
  6268. data.values.integerValues.value[i] = item->valueint;
  6269. 80031b6: 6bbb ldr r3, [r7, #56] @ 0x38
  6270. 80031b8: 695a ldr r2, [r3, #20]
  6271. 80031ba: 6cfb ldr r3, [r7, #76] @ 0x4c
  6272. 80031bc: 009b lsls r3, r3, #2
  6273. 80031be: 3358 adds r3, #88 @ 0x58
  6274. 80031c0: 443b add r3, r7
  6275. 80031c2: f843 2c48 str.w r2, [r3, #-72]
  6276. for (int i = 0; i < arraySize; i++) {
  6277. 80031c6: 6cfb ldr r3, [r7, #76] @ 0x4c
  6278. 80031c8: 3301 adds r3, #1
  6279. 80031ca: 64fb str r3, [r7, #76] @ 0x4c
  6280. 80031cc: 6cfa ldr r2, [r7, #76] @ 0x4c
  6281. 80031ce: 6bfb ldr r3, [r7, #60] @ 0x3c
  6282. 80031d0: 429a cmp r2, r3
  6283. 80031d2: dbe5 blt.n 80031a0 <MqttMessageArrived+0x140>
  6284. }
  6285. }
  6286. }
  6287. }
  6288. break;
  6289. 80031d4: e021 b.n 800321a <MqttMessageArrived+0x1ba>
  6290. case 3:
  6291. data.spCommand = spSetDiodeOn;
  6292. 80031d6: 2307 movs r3, #7
  6293. 80031d8: 733b strb r3, [r7, #12]
  6294. data.values.integerValues.value[0] = objectItem->valueint;
  6295. 80031da: 6c3b ldr r3, [r7, #64] @ 0x40
  6296. 80031dc: 695b ldr r3, [r3, #20]
  6297. 80031de: 613b str r3, [r7, #16]
  6298. data.values.integerValues.value[1] = 0;
  6299. 80031e0: 2300 movs r3, #0
  6300. 80031e2: 617b str r3, [r7, #20]
  6301. break;
  6302. 80031e4: e01a b.n 800321c <MqttMessageArrived+0x1bc>
  6303. case 4: spCommand = spSetmotorXMaxCurrent;
  6304. 80031e6: 2305 movs r3, #5
  6305. 80031e8: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6306. case 5:
  6307. if (spCommand == spUnknown) {
  6308. 80031ec: f897 3057 ldrb.w r3, [r7, #87] @ 0x57
  6309. 80031f0: 2b08 cmp r3, #8
  6310. 80031f2: d102 bne.n 80031fa <MqttMessageArrived+0x19a>
  6311. spCommand = spSetmotorYMaxCurrent;
  6312. 80031f4: 2306 movs r3, #6
  6313. 80031f6: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6314. }
  6315. data.spCommand = spCommand;
  6316. 80031fa: f897 3057 ldrb.w r3, [r7, #87] @ 0x57
  6317. 80031fe: 733b strb r3, [r7, #12]
  6318. data.values.flaotValues.value[0] = objectItem->valuedouble;
  6319. 8003200: 6c3b ldr r3, [r7, #64] @ 0x40
  6320. 8003202: ed93 7b06 vldr d7, [r3, #24]
  6321. 8003206: eef7 7bc7 vcvt.f32.f64 s15, d7
  6322. 800320a: edc7 7a04 vstr s15, [r7, #16]
  6323. data.values.flaotValues.value[1] = 0.0;
  6324. 800320e: f04f 0300 mov.w r3, #0
  6325. 8003212: 617b str r3, [r7, #20]
  6326. break;
  6327. 8003214: e002 b.n 800321c <MqttMessageArrived+0x1bc>
  6328. default: break;
  6329. 8003216: bf00 nop
  6330. 8003218: e000 b.n 800321c <MqttMessageArrived+0x1bc>
  6331. break;
  6332. 800321a: bf00 nop
  6333. }
  6334. switch (topicForBoard) {
  6335. 800321c: f897 3056 ldrb.w r3, [r7, #86] @ 0x56
  6336. 8003220: 3b01 subs r3, #1
  6337. 8003222: 2b03 cmp r3, #3
  6338. 8003224: d84a bhi.n 80032bc <MqttMessageArrived+0x25c>
  6339. 8003226: a201 add r2, pc, #4 @ (adr r2, 800322c <MqttMessageArrived+0x1cc>)
  6340. 8003228: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  6341. 800322c: 0800323d .word 0x0800323d
  6342. 8003230: 0800325d .word 0x0800325d
  6343. 8003234: 0800327d .word 0x0800327d
  6344. 8003238: 0800329d .word 0x0800329d
  6345. if (uart1TaskData.sendCmdToSlaveQueue != NULL) {
  6346. osMessageQueuePut (
  6347. uart1TaskData.sendCmdToSlaveQueue, &data, 0, (TickType_t)100);
  6348. }
  6349. #else
  6350. if (uart8TaskData.sendCmdToSlaveQueue != NULL) {
  6351. 800323c: 4b2e ldr r3, [pc, #184] @ (80032f8 <MqttMessageArrived+0x298>)
  6352. 800323e: 6adb ldr r3, [r3, #44] @ 0x2c
  6353. 8003240: 2b00 cmp r3, #0
  6354. 8003242: d007 beq.n 8003254 <MqttMessageArrived+0x1f4>
  6355. osMessageQueuePut (uart8TaskData.sendCmdToSlaveQueue, &data, 0, (TickType_t)100);
  6356. 8003244: 4b2c ldr r3, [pc, #176] @ (80032f8 <MqttMessageArrived+0x298>)
  6357. 8003246: 6ad8 ldr r0, [r3, #44] @ 0x2c
  6358. 8003248: f107 010c add.w r1, r7, #12
  6359. 800324c: 2364 movs r3, #100 @ 0x64
  6360. 800324e: 2200 movs r2, #0
  6361. 8003250: f00d fc18 bl 8010a84 <osMessageQueuePut>
  6362. }
  6363. #endif
  6364. printf ("Send cmd to board 1\n");
  6365. 8003254: 4829 ldr r0, [pc, #164] @ (80032fc <MqttMessageArrived+0x29c>)
  6366. 8003256: f026 f9c1 bl 80295dc <puts>
  6367. break;
  6368. 800325a: e030 b.n 80032be <MqttMessageArrived+0x25e>
  6369. case board_2:
  6370. if (uart3TaskData.sendCmdToSlaveQueue != NULL) {
  6371. 800325c: 4b28 ldr r3, [pc, #160] @ (8003300 <MqttMessageArrived+0x2a0>)
  6372. 800325e: 6adb ldr r3, [r3, #44] @ 0x2c
  6373. 8003260: 2b00 cmp r3, #0
  6374. 8003262: d007 beq.n 8003274 <MqttMessageArrived+0x214>
  6375. osMessageQueuePut (uart3TaskData.sendCmdToSlaveQueue, &data, 0, (TickType_t)100);
  6376. 8003264: 4b26 ldr r3, [pc, #152] @ (8003300 <MqttMessageArrived+0x2a0>)
  6377. 8003266: 6ad8 ldr r0, [r3, #44] @ 0x2c
  6378. 8003268: f107 010c add.w r1, r7, #12
  6379. 800326c: 2364 movs r3, #100 @ 0x64
  6380. 800326e: 2200 movs r2, #0
  6381. 8003270: f00d fc08 bl 8010a84 <osMessageQueuePut>
  6382. }
  6383. printf ("Send cmd to board 2\n");
  6384. 8003274: 4823 ldr r0, [pc, #140] @ (8003304 <MqttMessageArrived+0x2a4>)
  6385. 8003276: f026 f9b1 bl 80295dc <puts>
  6386. break;
  6387. 800327a: e020 b.n 80032be <MqttMessageArrived+0x25e>
  6388. case board_3:
  6389. if (uart6TaskData.sendCmdToSlaveQueue != NULL) {
  6390. 800327c: 4b22 ldr r3, [pc, #136] @ (8003308 <MqttMessageArrived+0x2a8>)
  6391. 800327e: 6adb ldr r3, [r3, #44] @ 0x2c
  6392. 8003280: 2b00 cmp r3, #0
  6393. 8003282: d007 beq.n 8003294 <MqttMessageArrived+0x234>
  6394. osMessageQueuePut (uart6TaskData.sendCmdToSlaveQueue, &data, 0, (TickType_t)100);
  6395. 8003284: 4b20 ldr r3, [pc, #128] @ (8003308 <MqttMessageArrived+0x2a8>)
  6396. 8003286: 6ad8 ldr r0, [r3, #44] @ 0x2c
  6397. 8003288: f107 010c add.w r1, r7, #12
  6398. 800328c: 2364 movs r3, #100 @ 0x64
  6399. 800328e: 2200 movs r2, #0
  6400. 8003290: f00d fbf8 bl 8010a84 <osMessageQueuePut>
  6401. }
  6402. printf ("Send cmd to board 3\n");
  6403. 8003294: 481d ldr r0, [pc, #116] @ (800330c <MqttMessageArrived+0x2ac>)
  6404. 8003296: f026 f9a1 bl 80295dc <puts>
  6405. break;
  6406. 800329a: e010 b.n 80032be <MqttMessageArrived+0x25e>
  6407. case board_4:
  6408. if (uart2TaskData.sendCmdToSlaveQueue != NULL) {
  6409. 800329c: 4b1c ldr r3, [pc, #112] @ (8003310 <MqttMessageArrived+0x2b0>)
  6410. 800329e: 6adb ldr r3, [r3, #44] @ 0x2c
  6411. 80032a0: 2b00 cmp r3, #0
  6412. 80032a2: d007 beq.n 80032b4 <MqttMessageArrived+0x254>
  6413. osMessageQueuePut (uart2TaskData.sendCmdToSlaveQueue, &data, 0, (TickType_t)100);
  6414. 80032a4: 4b1a ldr r3, [pc, #104] @ (8003310 <MqttMessageArrived+0x2b0>)
  6415. 80032a6: 6ad8 ldr r0, [r3, #44] @ 0x2c
  6416. 80032a8: f107 010c add.w r1, r7, #12
  6417. 80032ac: 2364 movs r3, #100 @ 0x64
  6418. 80032ae: 2200 movs r2, #0
  6419. 80032b0: f00d fbe8 bl 8010a84 <osMessageQueuePut>
  6420. }
  6421. printf ("Send cmd to board 4\n");
  6422. 80032b4: 4817 ldr r0, [pc, #92] @ (8003314 <MqttMessageArrived+0x2b4>)
  6423. 80032b6: f026 f991 bl 80295dc <puts>
  6424. break;
  6425. 80032ba: e000 b.n 80032be <MqttMessageArrived+0x25e>
  6426. default: break;
  6427. 80032bc: bf00 nop
  6428. for (int topicCmdNumber = 0; topicCmdNumber < 6; topicCmdNumber++) {
  6429. 80032be: 6d3b ldr r3, [r7, #80] @ 0x50
  6430. 80032c0: 3301 adds r3, #1
  6431. 80032c2: 653b str r3, [r7, #80] @ 0x50
  6432. 80032c4: 6d3b ldr r3, [r7, #80] @ 0x50
  6433. 80032c6: 2b05 cmp r3, #5
  6434. 80032c8: f77f af23 ble.w 8003112 <MqttMessageArrived+0xb2>
  6435. }
  6436. }
  6437. }
  6438. cJSON_Delete (json);
  6439. 80032cc: 6c78 ldr r0, [r7, #68] @ 0x44
  6440. 80032ce: f7fd fc5d bl 8000b8c <cJSON_Delete>
  6441. // printf ("MQTT MSG[%d]:%s\n", (int)message->payloadlen, (char*)message->payload);
  6442. printf ("MQTT Topic:%s, MSG[%d]:%s\n", topicName, (int)message->payloadlen, (char*)message->payload);
  6443. 80032d2: 6cbb ldr r3, [r7, #72] @ 0x48
  6444. 80032d4: 68db ldr r3, [r3, #12]
  6445. 80032d6: 461a mov r2, r3
  6446. 80032d8: 6cbb ldr r3, [r7, #72] @ 0x48
  6447. 80032da: 689b ldr r3, [r3, #8]
  6448. 80032dc: f107 0118 add.w r1, r7, #24
  6449. 80032e0: 480d ldr r0, [pc, #52] @ (8003318 <MqttMessageArrived+0x2b8>)
  6450. 80032e2: f026 f913 bl 802950c <iprintf>
  6451. }
  6452. 80032e6: bf00 nop
  6453. 80032e8: 3758 adds r7, #88 @ 0x58
  6454. 80032ea: 46bd mov sp, r7
  6455. 80032ec: bd80 pop {r7, pc}
  6456. 80032ee: bf00 nop
  6457. 80032f0: 08030548 .word 0x08030548
  6458. 80032f4: 08030558 .word 0x08030558
  6459. 80032f8: 24001218 .word 0x24001218
  6460. 80032fc: 0802c3d4 .word 0x0802c3d4
  6461. 8003300: 24001170 .word 0x24001170
  6462. 8003304: 0802c3e8 .word 0x0802c3e8
  6463. 8003308: 240011a8 .word 0x240011a8
  6464. 800330c: 0802c3fc .word 0x0802c3fc
  6465. 8003310: 240011e0 .word 0x240011e0
  6466. 8003314: 0802c410 .word 0x0802c410
  6467. 8003318: 0802c424 .word 0x0802c424
  6468. 0800331c <mqtt_cli_init>:
  6469. void mqtt_cli_init (void) {
  6470. 800331c: b580 push {r7, lr}
  6471. 800331e: af00 add r7, sp, #0
  6472. mqttClientSubTaskHandle = osThreadNew (MqttClientSubTask, NULL, &mqttClientSubTaskAttr); // subscribe task
  6473. 8003320: 4a08 ldr r2, [pc, #32] @ (8003344 <mqtt_cli_init+0x28>)
  6474. 8003322: 2100 movs r1, #0
  6475. 8003324: 4808 ldr r0, [pc, #32] @ (8003348 <mqtt_cli_init+0x2c>)
  6476. 8003326: f00d f82e bl 8010386 <osThreadNew>
  6477. 800332a: 4603 mov r3, r0
  6478. 800332c: 4a07 ldr r2, [pc, #28] @ (800334c <mqtt_cli_init+0x30>)
  6479. 800332e: 6013 str r3, [r2, #0]
  6480. mqttClientPubTaskHandle = osThreadNew (MqttClientPubTask, NULL, &mqttClientPubTaskAttr); // publish task
  6481. 8003330: 4a07 ldr r2, [pc, #28] @ (8003350 <mqtt_cli_init+0x34>)
  6482. 8003332: 2100 movs r1, #0
  6483. 8003334: 4807 ldr r0, [pc, #28] @ (8003354 <mqtt_cli_init+0x38>)
  6484. 8003336: f00d f826 bl 8010386 <osThreadNew>
  6485. 800333a: 4603 mov r3, r0
  6486. 800333c: 4a06 ldr r2, [pc, #24] @ (8003358 <mqtt_cli_init+0x3c>)
  6487. 800333e: 6013 str r3, [r2, #0]
  6488. }
  6489. 8003340: bf00 nop
  6490. 8003342: bd80 pop {r7, pc}
  6491. 8003344: 08030570 .word 0x08030570
  6492. 8003348: 080028d5 .word 0x080028d5
  6493. 800334c: 2400059c .word 0x2400059c
  6494. 8003350: 08030594 .word 0x08030594
  6495. 8003354: 08002945 .word 0x08002945
  6496. 8003358: 240005a0 .word 0x240005a0
  6497. 0800335c <WriteDataToBuffer>:
  6498. buff[newBuffPos++] = (uint8_t)((uData >> (i * 8)) & 0xFF);
  6499. }
  6500. *buffPos = newBuffPos;
  6501. }
  6502. void WriteDataToBuffer (uint8_t* buff, uint16_t* buffPos, void* data, uint8_t dataSize) {
  6503. 800335c: b480 push {r7}
  6504. 800335e: b089 sub sp, #36 @ 0x24
  6505. 8003360: af00 add r7, sp, #0
  6506. 8003362: 60f8 str r0, [r7, #12]
  6507. 8003364: 60b9 str r1, [r7, #8]
  6508. 8003366: 607a str r2, [r7, #4]
  6509. 8003368: 70fb strb r3, [r7, #3]
  6510. uint32_t* uDataPtr = data;
  6511. 800336a: 687b ldr r3, [r7, #4]
  6512. 800336c: 61bb str r3, [r7, #24]
  6513. uint32_t uData = *uDataPtr;
  6514. 800336e: 69bb ldr r3, [r7, #24]
  6515. 8003370: 681b ldr r3, [r3, #0]
  6516. 8003372: 617b str r3, [r7, #20]
  6517. uint8_t i = 0;
  6518. 8003374: 2300 movs r3, #0
  6519. 8003376: 77fb strb r3, [r7, #31]
  6520. uint8_t newBuffPos = *buffPos;
  6521. 8003378: 68bb ldr r3, [r7, #8]
  6522. 800337a: 881b ldrh r3, [r3, #0]
  6523. 800337c: 77bb strb r3, [r7, #30]
  6524. for (i = 0; i < dataSize; i++) {
  6525. 800337e: 2300 movs r3, #0
  6526. 8003380: 77fb strb r3, [r7, #31]
  6527. 8003382: e00e b.n 80033a2 <WriteDataToBuffer+0x46>
  6528. buff[newBuffPos++] = (uint8_t)((uData >> (i * 8)) & 0xFF);
  6529. 8003384: 7ffb ldrb r3, [r7, #31]
  6530. 8003386: 00db lsls r3, r3, #3
  6531. 8003388: 697a ldr r2, [r7, #20]
  6532. 800338a: 40da lsrs r2, r3
  6533. 800338c: 7fbb ldrb r3, [r7, #30]
  6534. 800338e: 1c59 adds r1, r3, #1
  6535. 8003390: 77b9 strb r1, [r7, #30]
  6536. 8003392: 4619 mov r1, r3
  6537. 8003394: 68fb ldr r3, [r7, #12]
  6538. 8003396: 440b add r3, r1
  6539. 8003398: b2d2 uxtb r2, r2
  6540. 800339a: 701a strb r2, [r3, #0]
  6541. for (i = 0; i < dataSize; i++) {
  6542. 800339c: 7ffb ldrb r3, [r7, #31]
  6543. 800339e: 3301 adds r3, #1
  6544. 80033a0: 77fb strb r3, [r7, #31]
  6545. 80033a2: 7ffa ldrb r2, [r7, #31]
  6546. 80033a4: 78fb ldrb r3, [r7, #3]
  6547. 80033a6: 429a cmp r2, r3
  6548. 80033a8: d3ec bcc.n 8003384 <WriteDataToBuffer+0x28>
  6549. }
  6550. *buffPos = newBuffPos;
  6551. 80033aa: 7fbb ldrb r3, [r7, #30]
  6552. 80033ac: b29a uxth r2, r3
  6553. 80033ae: 68bb ldr r3, [r7, #8]
  6554. 80033b0: 801a strh r2, [r3, #0]
  6555. }
  6556. 80033b2: bf00 nop
  6557. 80033b4: 3724 adds r7, #36 @ 0x24
  6558. 80033b6: 46bd mov sp, r7
  6559. 80033b8: f85d 7b04 ldr.w r7, [sp], #4
  6560. 80033bc: 4770 bx lr
  6561. 080033be <ReadFloatFromBuffer>:
  6562. void ReadFloatFromBuffer(uint8_t* buff, uint16_t* buffPos, float* data)
  6563. {
  6564. 80033be: b480 push {r7}
  6565. 80033c0: b087 sub sp, #28
  6566. 80033c2: af00 add r7, sp, #0
  6567. 80033c4: 60f8 str r0, [r7, #12]
  6568. 80033c6: 60b9 str r1, [r7, #8]
  6569. 80033c8: 607a str r2, [r7, #4]
  6570. uint32_t* word = (uint32_t *)data;
  6571. 80033ca: 687b ldr r3, [r7, #4]
  6572. 80033cc: 617b str r3, [r7, #20]
  6573. *word = CONVERT_BYTES_TO_WORD(&buff[*buffPos]);
  6574. 80033ce: 68bb ldr r3, [r7, #8]
  6575. 80033d0: 881b ldrh r3, [r3, #0]
  6576. 80033d2: 3303 adds r3, #3
  6577. 80033d4: 68fa ldr r2, [r7, #12]
  6578. 80033d6: 4413 add r3, r2
  6579. 80033d8: 781b ldrb r3, [r3, #0]
  6580. 80033da: 061a lsls r2, r3, #24
  6581. 80033dc: 68bb ldr r3, [r7, #8]
  6582. 80033de: 881b ldrh r3, [r3, #0]
  6583. 80033e0: 3302 adds r3, #2
  6584. 80033e2: 68f9 ldr r1, [r7, #12]
  6585. 80033e4: 440b add r3, r1
  6586. 80033e6: 781b ldrb r3, [r3, #0]
  6587. 80033e8: 041b lsls r3, r3, #16
  6588. 80033ea: 431a orrs r2, r3
  6589. 80033ec: 68bb ldr r3, [r7, #8]
  6590. 80033ee: 881b ldrh r3, [r3, #0]
  6591. 80033f0: 3301 adds r3, #1
  6592. 80033f2: 68f9 ldr r1, [r7, #12]
  6593. 80033f4: 440b add r3, r1
  6594. 80033f6: 781b ldrb r3, [r3, #0]
  6595. 80033f8: 021b lsls r3, r3, #8
  6596. 80033fa: 4313 orrs r3, r2
  6597. 80033fc: 68ba ldr r2, [r7, #8]
  6598. 80033fe: 8812 ldrh r2, [r2, #0]
  6599. 8003400: 4611 mov r1, r2
  6600. 8003402: 68fa ldr r2, [r7, #12]
  6601. 8003404: 440a add r2, r1
  6602. 8003406: 7812 ldrb r2, [r2, #0]
  6603. 8003408: 4313 orrs r3, r2
  6604. 800340a: 461a mov r2, r3
  6605. 800340c: 697b ldr r3, [r7, #20]
  6606. 800340e: 601a str r2, [r3, #0]
  6607. *buffPos += sizeof(float);
  6608. 8003410: 68bb ldr r3, [r7, #8]
  6609. 8003412: 881b ldrh r3, [r3, #0]
  6610. 8003414: 3304 adds r3, #4
  6611. 8003416: b29a uxth r2, r3
  6612. 8003418: 68bb ldr r3, [r7, #8]
  6613. 800341a: 801a strh r2, [r3, #0]
  6614. }
  6615. 800341c: bf00 nop
  6616. 800341e: 371c adds r7, #28
  6617. 8003420: 46bd mov sp, r7
  6618. 8003422: f85d 7b04 ldr.w r7, [sp], #4
  6619. 8003426: 4770 bx lr
  6620. 08003428 <PrepareReqFrame>:
  6621. uint16_t PrepareReqFrame (uint8_t* txBuffer, uint16_t frameId, SerialProtocolCommands frameCommand, uint8_t* dataBuffer, uint16_t dataLength) {
  6622. 8003428: b580 push {r7, lr}
  6623. 800342a: b086 sub sp, #24
  6624. 800342c: af00 add r7, sp, #0
  6625. 800342e: 60f8 str r0, [r7, #12]
  6626. 8003430: 607b str r3, [r7, #4]
  6627. 8003432: 460b mov r3, r1
  6628. 8003434: 817b strh r3, [r7, #10]
  6629. 8003436: 4613 mov r3, r2
  6630. 8003438: 727b strb r3, [r7, #9]
  6631. uint16_t crc = 0;
  6632. 800343a: 2300 movs r3, #0
  6633. 800343c: 82bb strh r3, [r7, #20]
  6634. uint16_t txBufferPos = 0;
  6635. 800343e: 2300 movs r3, #0
  6636. 8003440: 82fb strh r3, [r7, #22]
  6637. uint16_t frameCmd = ((uint16_t)frameCommand);
  6638. 8003442: 7a7b ldrb r3, [r7, #9]
  6639. 8003444: 827b strh r3, [r7, #18]
  6640. memset (txBuffer, 0x00, dataLength);
  6641. 8003446: 8c3b ldrh r3, [r7, #32]
  6642. 8003448: 461a mov r2, r3
  6643. 800344a: 2100 movs r1, #0
  6644. 800344c: 68f8 ldr r0, [r7, #12]
  6645. 800344e: f026 f9ef bl 8029830 <memset>
  6646. txBuffer[txBufferPos++] = FRAME_INDICATOR;
  6647. 8003452: 8afb ldrh r3, [r7, #22]
  6648. 8003454: 1c5a adds r2, r3, #1
  6649. 8003456: 82fa strh r2, [r7, #22]
  6650. 8003458: 461a mov r2, r3
  6651. 800345a: 68fb ldr r3, [r7, #12]
  6652. 800345c: 4413 add r3, r2
  6653. 800345e: 22aa movs r2, #170 @ 0xaa
  6654. 8003460: 701a strb r2, [r3, #0]
  6655. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameId);
  6656. 8003462: 8afb ldrh r3, [r7, #22]
  6657. 8003464: 1c5a adds r2, r3, #1
  6658. 8003466: 82fa strh r2, [r7, #22]
  6659. 8003468: 461a mov r2, r3
  6660. 800346a: 68fb ldr r3, [r7, #12]
  6661. 800346c: 4413 add r3, r2
  6662. 800346e: 897a ldrh r2, [r7, #10]
  6663. 8003470: b2d2 uxtb r2, r2
  6664. 8003472: 701a strb r2, [r3, #0]
  6665. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameId);
  6666. 8003474: 897b ldrh r3, [r7, #10]
  6667. 8003476: 0a1b lsrs r3, r3, #8
  6668. 8003478: b29a uxth r2, r3
  6669. 800347a: 8afb ldrh r3, [r7, #22]
  6670. 800347c: 1c59 adds r1, r3, #1
  6671. 800347e: 82f9 strh r1, [r7, #22]
  6672. 8003480: 4619 mov r1, r3
  6673. 8003482: 68fb ldr r3, [r7, #12]
  6674. 8003484: 440b add r3, r1
  6675. 8003486: b2d2 uxtb r2, r2
  6676. 8003488: 701a strb r2, [r3, #0]
  6677. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameCmd);
  6678. 800348a: 8afb ldrh r3, [r7, #22]
  6679. 800348c: 1c5a adds r2, r3, #1
  6680. 800348e: 82fa strh r2, [r7, #22]
  6681. 8003490: 461a mov r2, r3
  6682. 8003492: 68fb ldr r3, [r7, #12]
  6683. 8003494: 4413 add r3, r2
  6684. 8003496: 8a7a ldrh r2, [r7, #18]
  6685. 8003498: b2d2 uxtb r2, r2
  6686. 800349a: 701a strb r2, [r3, #0]
  6687. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameCmd);
  6688. 800349c: 8a7b ldrh r3, [r7, #18]
  6689. 800349e: 0a1b lsrs r3, r3, #8
  6690. 80034a0: b29a uxth r2, r3
  6691. 80034a2: 8afb ldrh r3, [r7, #22]
  6692. 80034a4: 1c59 adds r1, r3, #1
  6693. 80034a6: 82f9 strh r1, [r7, #22]
  6694. 80034a8: 4619 mov r1, r3
  6695. 80034aa: 68fb ldr r3, [r7, #12]
  6696. 80034ac: 440b add r3, r1
  6697. 80034ae: b2d2 uxtb r2, r2
  6698. 80034b0: 701a strb r2, [r3, #0]
  6699. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (dataLength);
  6700. 80034b2: 8afb ldrh r3, [r7, #22]
  6701. 80034b4: 1c5a adds r2, r3, #1
  6702. 80034b6: 82fa strh r2, [r7, #22]
  6703. 80034b8: 461a mov r2, r3
  6704. 80034ba: 68fb ldr r3, [r7, #12]
  6705. 80034bc: 4413 add r3, r2
  6706. 80034be: 8c3a ldrh r2, [r7, #32]
  6707. 80034c0: b2d2 uxtb r2, r2
  6708. 80034c2: 701a strb r2, [r3, #0]
  6709. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (dataLength);
  6710. 80034c4: 8c3b ldrh r3, [r7, #32]
  6711. 80034c6: 0a1b lsrs r3, r3, #8
  6712. 80034c8: b29a uxth r2, r3
  6713. 80034ca: 8afb ldrh r3, [r7, #22]
  6714. 80034cc: 1c59 adds r1, r3, #1
  6715. 80034ce: 82f9 strh r1, [r7, #22]
  6716. 80034d0: 4619 mov r1, r3
  6717. 80034d2: 68fb ldr r3, [r7, #12]
  6718. 80034d4: 440b add r3, r1
  6719. 80034d6: b2d2 uxtb r2, r2
  6720. 80034d8: 701a strb r2, [r3, #0]
  6721. txBuffer[txBufferPos++] = 0x00;
  6722. 80034da: 8afb ldrh r3, [r7, #22]
  6723. 80034dc: 1c5a adds r2, r3, #1
  6724. 80034de: 82fa strh r2, [r7, #22]
  6725. 80034e0: 461a mov r2, r3
  6726. 80034e2: 68fb ldr r3, [r7, #12]
  6727. 80034e4: 4413 add r3, r2
  6728. 80034e6: 2200 movs r2, #0
  6729. 80034e8: 701a strb r2, [r3, #0]
  6730. if (dataLength > 0) {
  6731. 80034ea: 8c3b ldrh r3, [r7, #32]
  6732. 80034ec: 2b00 cmp r3, #0
  6733. 80034ee: d00b beq.n 8003508 <PrepareReqFrame+0xe0>
  6734. memcpy (&txBuffer[txBufferPos], dataBuffer, dataLength);
  6735. 80034f0: 8afb ldrh r3, [r7, #22]
  6736. 80034f2: 68fa ldr r2, [r7, #12]
  6737. 80034f4: 4413 add r3, r2
  6738. 80034f6: 8c3a ldrh r2, [r7, #32]
  6739. 80034f8: 6879 ldr r1, [r7, #4]
  6740. 80034fa: 4618 mov r0, r3
  6741. 80034fc: f026 fa8f bl 8029a1e <memcpy>
  6742. txBufferPos += dataLength;
  6743. 8003500: 8afa ldrh r2, [r7, #22]
  6744. 8003502: 8c3b ldrh r3, [r7, #32]
  6745. 8003504: 4413 add r3, r2
  6746. 8003506: 82fb strh r3, [r7, #22]
  6747. }
  6748. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)txBuffer, txBufferPos);
  6749. 8003508: 8afb ldrh r3, [r7, #22]
  6750. 800350a: 461a mov r2, r3
  6751. 800350c: 68f9 ldr r1, [r7, #12]
  6752. 800350e: 480f ldr r0, [pc, #60] @ (800354c <PrepareReqFrame+0x124>)
  6753. 8003510: f001 fd4a bl 8004fa8 <HAL_CRC_Calculate>
  6754. 8003514: 4603 mov r3, r0
  6755. 8003516: 82bb strh r3, [r7, #20]
  6756. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (crc);
  6757. 8003518: 8afb ldrh r3, [r7, #22]
  6758. 800351a: 1c5a adds r2, r3, #1
  6759. 800351c: 82fa strh r2, [r7, #22]
  6760. 800351e: 461a mov r2, r3
  6761. 8003520: 68fb ldr r3, [r7, #12]
  6762. 8003522: 4413 add r3, r2
  6763. 8003524: 8aba ldrh r2, [r7, #20]
  6764. 8003526: b2d2 uxtb r2, r2
  6765. 8003528: 701a strb r2, [r3, #0]
  6766. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (crc);
  6767. 800352a: 8abb ldrh r3, [r7, #20]
  6768. 800352c: 0a1b lsrs r3, r3, #8
  6769. 800352e: b29a uxth r2, r3
  6770. 8003530: 8afb ldrh r3, [r7, #22]
  6771. 8003532: 1c59 adds r1, r3, #1
  6772. 8003534: 82f9 strh r1, [r7, #22]
  6773. 8003536: 4619 mov r1, r3
  6774. 8003538: 68fb ldr r3, [r7, #12]
  6775. 800353a: 440b add r3, r1
  6776. 800353c: b2d2 uxtb r2, r2
  6777. 800353e: 701a strb r2, [r3, #0]
  6778. return txBufferPos;
  6779. 8003540: 8afb ldrh r3, [r7, #22]
  6780. }
  6781. 8003542: 4618 mov r0, r3
  6782. 8003544: 3718 adds r7, #24
  6783. 8003546: 46bd mov sp, r7
  6784. 8003548: bd80 pop {r7, pc}
  6785. 800354a: bf00 nop
  6786. 800354c: 24000234 .word 0x24000234
  6787. 08003550 <PrepareRespFrame>:
  6788. uint16_t PrepareRespFrame (uint8_t* txBuffer, uint16_t frameId, SerialProtocolCommands frameCommand, SerialProtocolRespStatus respStatus, uint8_t* dataBuffer, uint16_t dataLength) {
  6789. 8003550: b580 push {r7, lr}
  6790. 8003552: b084 sub sp, #16
  6791. 8003554: af00 add r7, sp, #0
  6792. 8003556: 6078 str r0, [r7, #4]
  6793. 8003558: 4608 mov r0, r1
  6794. 800355a: 4611 mov r1, r2
  6795. 800355c: 461a mov r2, r3
  6796. 800355e: 4603 mov r3, r0
  6797. 8003560: 807b strh r3, [r7, #2]
  6798. 8003562: 460b mov r3, r1
  6799. 8003564: 707b strb r3, [r7, #1]
  6800. 8003566: 4613 mov r3, r2
  6801. 8003568: 703b strb r3, [r7, #0]
  6802. uint16_t crc = 0;
  6803. 800356a: 2300 movs r3, #0
  6804. 800356c: 81bb strh r3, [r7, #12]
  6805. uint16_t txBufferPos = 0;
  6806. 800356e: 2300 movs r3, #0
  6807. 8003570: 81fb strh r3, [r7, #14]
  6808. uint16_t frameCmd = ((uint16_t)frameCommand) | 0x8000; // MSB set means response
  6809. 8003572: 787b ldrb r3, [r7, #1]
  6810. 8003574: b21a sxth r2, r3
  6811. 8003576: 4b43 ldr r3, [pc, #268] @ (8003684 <PrepareRespFrame+0x134>)
  6812. 8003578: 4313 orrs r3, r2
  6813. 800357a: b21b sxth r3, r3
  6814. 800357c: 817b strh r3, [r7, #10]
  6815. memset (txBuffer, 0x00, dataLength);
  6816. 800357e: 8bbb ldrh r3, [r7, #28]
  6817. 8003580: 461a mov r2, r3
  6818. 8003582: 2100 movs r1, #0
  6819. 8003584: 6878 ldr r0, [r7, #4]
  6820. 8003586: f026 f953 bl 8029830 <memset>
  6821. txBuffer[txBufferPos++] = FRAME_INDICATOR;
  6822. 800358a: 89fb ldrh r3, [r7, #14]
  6823. 800358c: 1c5a adds r2, r3, #1
  6824. 800358e: 81fa strh r2, [r7, #14]
  6825. 8003590: 461a mov r2, r3
  6826. 8003592: 687b ldr r3, [r7, #4]
  6827. 8003594: 4413 add r3, r2
  6828. 8003596: 22aa movs r2, #170 @ 0xaa
  6829. 8003598: 701a strb r2, [r3, #0]
  6830. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameId);
  6831. 800359a: 89fb ldrh r3, [r7, #14]
  6832. 800359c: 1c5a adds r2, r3, #1
  6833. 800359e: 81fa strh r2, [r7, #14]
  6834. 80035a0: 461a mov r2, r3
  6835. 80035a2: 687b ldr r3, [r7, #4]
  6836. 80035a4: 4413 add r3, r2
  6837. 80035a6: 887a ldrh r2, [r7, #2]
  6838. 80035a8: b2d2 uxtb r2, r2
  6839. 80035aa: 701a strb r2, [r3, #0]
  6840. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameId);
  6841. 80035ac: 887b ldrh r3, [r7, #2]
  6842. 80035ae: 0a1b lsrs r3, r3, #8
  6843. 80035b0: b29a uxth r2, r3
  6844. 80035b2: 89fb ldrh r3, [r7, #14]
  6845. 80035b4: 1c59 adds r1, r3, #1
  6846. 80035b6: 81f9 strh r1, [r7, #14]
  6847. 80035b8: 4619 mov r1, r3
  6848. 80035ba: 687b ldr r3, [r7, #4]
  6849. 80035bc: 440b add r3, r1
  6850. 80035be: b2d2 uxtb r2, r2
  6851. 80035c0: 701a strb r2, [r3, #0]
  6852. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameCmd);
  6853. 80035c2: 89fb ldrh r3, [r7, #14]
  6854. 80035c4: 1c5a adds r2, r3, #1
  6855. 80035c6: 81fa strh r2, [r7, #14]
  6856. 80035c8: 461a mov r2, r3
  6857. 80035ca: 687b ldr r3, [r7, #4]
  6858. 80035cc: 4413 add r3, r2
  6859. 80035ce: 897a ldrh r2, [r7, #10]
  6860. 80035d0: b2d2 uxtb r2, r2
  6861. 80035d2: 701a strb r2, [r3, #0]
  6862. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameCmd);
  6863. 80035d4: 897b ldrh r3, [r7, #10]
  6864. 80035d6: 0a1b lsrs r3, r3, #8
  6865. 80035d8: b29a uxth r2, r3
  6866. 80035da: 89fb ldrh r3, [r7, #14]
  6867. 80035dc: 1c59 adds r1, r3, #1
  6868. 80035de: 81f9 strh r1, [r7, #14]
  6869. 80035e0: 4619 mov r1, r3
  6870. 80035e2: 687b ldr r3, [r7, #4]
  6871. 80035e4: 440b add r3, r1
  6872. 80035e6: b2d2 uxtb r2, r2
  6873. 80035e8: 701a strb r2, [r3, #0]
  6874. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (dataLength);
  6875. 80035ea: 89fb ldrh r3, [r7, #14]
  6876. 80035ec: 1c5a adds r2, r3, #1
  6877. 80035ee: 81fa strh r2, [r7, #14]
  6878. 80035f0: 461a mov r2, r3
  6879. 80035f2: 687b ldr r3, [r7, #4]
  6880. 80035f4: 4413 add r3, r2
  6881. 80035f6: 8bba ldrh r2, [r7, #28]
  6882. 80035f8: b2d2 uxtb r2, r2
  6883. 80035fa: 701a strb r2, [r3, #0]
  6884. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (dataLength);
  6885. 80035fc: 8bbb ldrh r3, [r7, #28]
  6886. 80035fe: 0a1b lsrs r3, r3, #8
  6887. 8003600: b29a uxth r2, r3
  6888. 8003602: 89fb ldrh r3, [r7, #14]
  6889. 8003604: 1c59 adds r1, r3, #1
  6890. 8003606: 81f9 strh r1, [r7, #14]
  6891. 8003608: 4619 mov r1, r3
  6892. 800360a: 687b ldr r3, [r7, #4]
  6893. 800360c: 440b add r3, r1
  6894. 800360e: b2d2 uxtb r2, r2
  6895. 8003610: 701a strb r2, [r3, #0]
  6896. txBuffer[txBufferPos++] = (uint8_t)respStatus;
  6897. 8003612: 89fb ldrh r3, [r7, #14]
  6898. 8003614: 1c5a adds r2, r3, #1
  6899. 8003616: 81fa strh r2, [r7, #14]
  6900. 8003618: 461a mov r2, r3
  6901. 800361a: 687b ldr r3, [r7, #4]
  6902. 800361c: 4413 add r3, r2
  6903. 800361e: 783a ldrb r2, [r7, #0]
  6904. 8003620: 701a strb r2, [r3, #0]
  6905. if (dataLength > 0) {
  6906. 8003622: 8bbb ldrh r3, [r7, #28]
  6907. 8003624: 2b00 cmp r3, #0
  6908. 8003626: d00b beq.n 8003640 <PrepareRespFrame+0xf0>
  6909. memcpy (&txBuffer[txBufferPos], dataBuffer, dataLength);
  6910. 8003628: 89fb ldrh r3, [r7, #14]
  6911. 800362a: 687a ldr r2, [r7, #4]
  6912. 800362c: 4413 add r3, r2
  6913. 800362e: 8bba ldrh r2, [r7, #28]
  6914. 8003630: 69b9 ldr r1, [r7, #24]
  6915. 8003632: 4618 mov r0, r3
  6916. 8003634: f026 f9f3 bl 8029a1e <memcpy>
  6917. txBufferPos += dataLength;
  6918. 8003638: 89fa ldrh r2, [r7, #14]
  6919. 800363a: 8bbb ldrh r3, [r7, #28]
  6920. 800363c: 4413 add r3, r2
  6921. 800363e: 81fb strh r3, [r7, #14]
  6922. }
  6923. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)txBuffer, txBufferPos);
  6924. 8003640: 89fb ldrh r3, [r7, #14]
  6925. 8003642: 461a mov r2, r3
  6926. 8003644: 6879 ldr r1, [r7, #4]
  6927. 8003646: 4810 ldr r0, [pc, #64] @ (8003688 <PrepareRespFrame+0x138>)
  6928. 8003648: f001 fcae bl 8004fa8 <HAL_CRC_Calculate>
  6929. 800364c: 4603 mov r3, r0
  6930. 800364e: 81bb strh r3, [r7, #12]
  6931. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (crc);
  6932. 8003650: 89fb ldrh r3, [r7, #14]
  6933. 8003652: 1c5a adds r2, r3, #1
  6934. 8003654: 81fa strh r2, [r7, #14]
  6935. 8003656: 461a mov r2, r3
  6936. 8003658: 687b ldr r3, [r7, #4]
  6937. 800365a: 4413 add r3, r2
  6938. 800365c: 89ba ldrh r2, [r7, #12]
  6939. 800365e: b2d2 uxtb r2, r2
  6940. 8003660: 701a strb r2, [r3, #0]
  6941. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (crc);
  6942. 8003662: 89bb ldrh r3, [r7, #12]
  6943. 8003664: 0a1b lsrs r3, r3, #8
  6944. 8003666: b29a uxth r2, r3
  6945. 8003668: 89fb ldrh r3, [r7, #14]
  6946. 800366a: 1c59 adds r1, r3, #1
  6947. 800366c: 81f9 strh r1, [r7, #14]
  6948. 800366e: 4619 mov r1, r3
  6949. 8003670: 687b ldr r3, [r7, #4]
  6950. 8003672: 440b add r3, r1
  6951. 8003674: b2d2 uxtb r2, r2
  6952. 8003676: 701a strb r2, [r3, #0]
  6953. return txBufferPos;
  6954. 8003678: 89fb ldrh r3, [r7, #14]
  6955. }
  6956. 800367a: 4618 mov r0, r3
  6957. 800367c: 3710 adds r7, #16
  6958. 800367e: 46bd mov sp, r7
  6959. 8003680: bd80 pop {r7, pc}
  6960. 8003682: bf00 nop
  6961. 8003684: ffff8000 .word 0xffff8000
  6962. 8003688: 24000234 .word 0x24000234
  6963. 0800368c <HAL_MspInit>:
  6964. /* USER CODE END 0 */
  6965. /**
  6966. * Initializes the Global MSP.
  6967. */
  6968. void HAL_MspInit(void)
  6969. {
  6970. 800368c: b580 push {r7, lr}
  6971. 800368e: b082 sub sp, #8
  6972. 8003690: af00 add r7, sp, #0
  6973. /* USER CODE BEGIN MspInit 0 */
  6974. /* USER CODE END MspInit 0 */
  6975. __HAL_RCC_SYSCFG_CLK_ENABLE();
  6976. 8003692: 4b10 ldr r3, [pc, #64] @ (80036d4 <HAL_MspInit+0x48>)
  6977. 8003694: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  6978. 8003698: 4a0e ldr r2, [pc, #56] @ (80036d4 <HAL_MspInit+0x48>)
  6979. 800369a: f043 0302 orr.w r3, r3, #2
  6980. 800369e: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  6981. 80036a2: 4b0c ldr r3, [pc, #48] @ (80036d4 <HAL_MspInit+0x48>)
  6982. 80036a4: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  6983. 80036a8: f003 0302 and.w r3, r3, #2
  6984. 80036ac: 607b str r3, [r7, #4]
  6985. 80036ae: 687b ldr r3, [r7, #4]
  6986. /* System interrupt init*/
  6987. /* PendSV_IRQn interrupt configuration */
  6988. HAL_NVIC_SetPriority(PendSV_IRQn, 15, 0);
  6989. 80036b0: 2200 movs r2, #0
  6990. 80036b2: 210f movs r1, #15
  6991. 80036b4: f06f 0001 mvn.w r0, #1
  6992. 80036b8: f001 fb72 bl 8004da0 <HAL_NVIC_SetPriority>
  6993. /* Peripheral interrupt init */
  6994. /* RCC_IRQn interrupt configuration */
  6995. HAL_NVIC_SetPriority(RCC_IRQn, 5, 0);
  6996. 80036bc: 2200 movs r2, #0
  6997. 80036be: 2105 movs r1, #5
  6998. 80036c0: 2005 movs r0, #5
  6999. 80036c2: f001 fb6d bl 8004da0 <HAL_NVIC_SetPriority>
  7000. HAL_NVIC_EnableIRQ(RCC_IRQn);
  7001. 80036c6: 2005 movs r0, #5
  7002. 80036c8: f001 fb84 bl 8004dd4 <HAL_NVIC_EnableIRQ>
  7003. /* USER CODE BEGIN MspInit 1 */
  7004. /* USER CODE END MspInit 1 */
  7005. }
  7006. 80036cc: bf00 nop
  7007. 80036ce: 3708 adds r7, #8
  7008. 80036d0: 46bd mov sp, r7
  7009. 80036d2: bd80 pop {r7, pc}
  7010. 80036d4: 58024400 .word 0x58024400
  7011. 080036d8 <HAL_CRC_MspInit>:
  7012. * This function configures the hardware resources used in this example
  7013. * @param hcrc: CRC handle pointer
  7014. * @retval None
  7015. */
  7016. void HAL_CRC_MspInit(CRC_HandleTypeDef* hcrc)
  7017. {
  7018. 80036d8: b480 push {r7}
  7019. 80036da: b085 sub sp, #20
  7020. 80036dc: af00 add r7, sp, #0
  7021. 80036de: 6078 str r0, [r7, #4]
  7022. if(hcrc->Instance==CRC)
  7023. 80036e0: 687b ldr r3, [r7, #4]
  7024. 80036e2: 681b ldr r3, [r3, #0]
  7025. 80036e4: 4a0b ldr r2, [pc, #44] @ (8003714 <HAL_CRC_MspInit+0x3c>)
  7026. 80036e6: 4293 cmp r3, r2
  7027. 80036e8: d10e bne.n 8003708 <HAL_CRC_MspInit+0x30>
  7028. {
  7029. /* USER CODE BEGIN CRC_MspInit 0 */
  7030. /* USER CODE END CRC_MspInit 0 */
  7031. /* Peripheral clock enable */
  7032. __HAL_RCC_CRC_CLK_ENABLE();
  7033. 80036ea: 4b0b ldr r3, [pc, #44] @ (8003718 <HAL_CRC_MspInit+0x40>)
  7034. 80036ec: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7035. 80036f0: 4a09 ldr r2, [pc, #36] @ (8003718 <HAL_CRC_MspInit+0x40>)
  7036. 80036f2: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  7037. 80036f6: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7038. 80036fa: 4b07 ldr r3, [pc, #28] @ (8003718 <HAL_CRC_MspInit+0x40>)
  7039. 80036fc: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7040. 8003700: f403 2300 and.w r3, r3, #524288 @ 0x80000
  7041. 8003704: 60fb str r3, [r7, #12]
  7042. 8003706: 68fb ldr r3, [r7, #12]
  7043. /* USER CODE BEGIN CRC_MspInit 1 */
  7044. /* USER CODE END CRC_MspInit 1 */
  7045. }
  7046. }
  7047. 8003708: bf00 nop
  7048. 800370a: 3714 adds r7, #20
  7049. 800370c: 46bd mov sp, r7
  7050. 800370e: f85d 7b04 ldr.w r7, [sp], #4
  7051. 8003712: 4770 bx lr
  7052. 8003714: 58024c00 .word 0x58024c00
  7053. 8003718: 58024400 .word 0x58024400
  7054. 0800371c <HAL_RNG_MspInit>:
  7055. * This function configures the hardware resources used in this example
  7056. * @param hrng: RNG handle pointer
  7057. * @retval None
  7058. */
  7059. void HAL_RNG_MspInit(RNG_HandleTypeDef* hrng)
  7060. {
  7061. 800371c: b580 push {r7, lr}
  7062. 800371e: b0b4 sub sp, #208 @ 0xd0
  7063. 8003720: af00 add r7, sp, #0
  7064. 8003722: 6078 str r0, [r7, #4]
  7065. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  7066. 8003724: f107 0310 add.w r3, r7, #16
  7067. 8003728: 22c0 movs r2, #192 @ 0xc0
  7068. 800372a: 2100 movs r1, #0
  7069. 800372c: 4618 mov r0, r3
  7070. 800372e: f026 f87f bl 8029830 <memset>
  7071. if(hrng->Instance==RNG)
  7072. 8003732: 687b ldr r3, [r7, #4]
  7073. 8003734: 681b ldr r3, [r3, #0]
  7074. 8003736: 4a14 ldr r2, [pc, #80] @ (8003788 <HAL_RNG_MspInit+0x6c>)
  7075. 8003738: 4293 cmp r3, r2
  7076. 800373a: d121 bne.n 8003780 <HAL_RNG_MspInit+0x64>
  7077. /* USER CODE END RNG_MspInit 0 */
  7078. /** Initializes the peripherals clock
  7079. */
  7080. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_RNG;
  7081. 800373c: f44f 3200 mov.w r2, #131072 @ 0x20000
  7082. 8003740: f04f 0300 mov.w r3, #0
  7083. 8003744: e9c7 2304 strd r2, r3, [r7, #16]
  7084. PeriphClkInitStruct.RngClockSelection = RCC_RNGCLKSOURCE_HSI48;
  7085. 8003748: 2300 movs r3, #0
  7086. 800374a: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  7087. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  7088. 800374e: f107 0310 add.w r3, r7, #16
  7089. 8003752: 4618 mov r0, r3
  7090. 8003754: f006 ff78 bl 800a648 <HAL_RCCEx_PeriphCLKConfig>
  7091. 8003758: 4603 mov r3, r0
  7092. 800375a: 2b00 cmp r3, #0
  7093. 800375c: d001 beq.n 8003762 <HAL_RNG_MspInit+0x46>
  7094. {
  7095. Error_Handler();
  7096. 800375e: f7fe fd7b bl 8002258 <Error_Handler>
  7097. }
  7098. /* Peripheral clock enable */
  7099. __HAL_RCC_RNG_CLK_ENABLE();
  7100. 8003762: 4b0a ldr r3, [pc, #40] @ (800378c <HAL_RNG_MspInit+0x70>)
  7101. 8003764: f8d3 30dc ldr.w r3, [r3, #220] @ 0xdc
  7102. 8003768: 4a08 ldr r2, [pc, #32] @ (800378c <HAL_RNG_MspInit+0x70>)
  7103. 800376a: f043 0340 orr.w r3, r3, #64 @ 0x40
  7104. 800376e: f8c2 30dc str.w r3, [r2, #220] @ 0xdc
  7105. 8003772: 4b06 ldr r3, [pc, #24] @ (800378c <HAL_RNG_MspInit+0x70>)
  7106. 8003774: f8d3 30dc ldr.w r3, [r3, #220] @ 0xdc
  7107. 8003778: f003 0340 and.w r3, r3, #64 @ 0x40
  7108. 800377c: 60fb str r3, [r7, #12]
  7109. 800377e: 68fb ldr r3, [r7, #12]
  7110. /* USER CODE BEGIN RNG_MspInit 1 */
  7111. /* USER CODE END RNG_MspInit 1 */
  7112. }
  7113. }
  7114. 8003780: bf00 nop
  7115. 8003782: 37d0 adds r7, #208 @ 0xd0
  7116. 8003784: 46bd mov sp, r7
  7117. 8003786: bd80 pop {r7, pc}
  7118. 8003788: 48021800 .word 0x48021800
  7119. 800378c: 58024400 .word 0x58024400
  7120. 08003790 <HAL_UART_MspInit>:
  7121. * This function configures the hardware resources used in this example
  7122. * @param huart: UART handle pointer
  7123. * @retval None
  7124. */
  7125. void HAL_UART_MspInit(UART_HandleTypeDef* huart)
  7126. {
  7127. 8003790: b580 push {r7, lr}
  7128. 8003792: b0ba sub sp, #232 @ 0xe8
  7129. 8003794: af00 add r7, sp, #0
  7130. 8003796: 6078 str r0, [r7, #4]
  7131. GPIO_InitTypeDef GPIO_InitStruct = {0};
  7132. 8003798: f107 03d4 add.w r3, r7, #212 @ 0xd4
  7133. 800379c: 2200 movs r2, #0
  7134. 800379e: 601a str r2, [r3, #0]
  7135. 80037a0: 605a str r2, [r3, #4]
  7136. 80037a2: 609a str r2, [r3, #8]
  7137. 80037a4: 60da str r2, [r3, #12]
  7138. 80037a6: 611a str r2, [r3, #16]
  7139. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  7140. 80037a8: f107 0310 add.w r3, r7, #16
  7141. 80037ac: 22c0 movs r2, #192 @ 0xc0
  7142. 80037ae: 2100 movs r1, #0
  7143. 80037b0: 4618 mov r0, r3
  7144. 80037b2: f026 f83d bl 8029830 <memset>
  7145. if(huart->Instance==UART8)
  7146. 80037b6: 687b ldr r3, [r7, #4]
  7147. 80037b8: 681b ldr r3, [r3, #0]
  7148. 80037ba: 4a59 ldr r2, [pc, #356] @ (8003920 <HAL_UART_MspInit+0x190>)
  7149. 80037bc: 4293 cmp r3, r2
  7150. 80037be: f040 80ab bne.w 8003918 <HAL_UART_MspInit+0x188>
  7151. /* USER CODE END UART8_MspInit 0 */
  7152. /** Initializes the peripherals clock
  7153. */
  7154. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_UART8;
  7155. 80037c2: f04f 0202 mov.w r2, #2
  7156. 80037c6: f04f 0300 mov.w r3, #0
  7157. 80037ca: e9c7 2304 strd r2, r3, [r7, #16]
  7158. PeriphClkInitStruct.Usart234578ClockSelection = RCC_USART234578CLKSOURCE_D2PCLK1;
  7159. 80037ce: 2300 movs r3, #0
  7160. 80037d0: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  7161. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  7162. 80037d4: f107 0310 add.w r3, r7, #16
  7163. 80037d8: 4618 mov r0, r3
  7164. 80037da: f006 ff35 bl 800a648 <HAL_RCCEx_PeriphCLKConfig>
  7165. 80037de: 4603 mov r3, r0
  7166. 80037e0: 2b00 cmp r3, #0
  7167. 80037e2: d001 beq.n 80037e8 <HAL_UART_MspInit+0x58>
  7168. {
  7169. Error_Handler();
  7170. 80037e4: f7fe fd38 bl 8002258 <Error_Handler>
  7171. }
  7172. /* Peripheral clock enable */
  7173. __HAL_RCC_UART8_CLK_ENABLE();
  7174. 80037e8: 4b4e ldr r3, [pc, #312] @ (8003924 <HAL_UART_MspInit+0x194>)
  7175. 80037ea: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7176. 80037ee: 4a4d ldr r2, [pc, #308] @ (8003924 <HAL_UART_MspInit+0x194>)
  7177. 80037f0: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
  7178. 80037f4: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  7179. 80037f8: 4b4a ldr r3, [pc, #296] @ (8003924 <HAL_UART_MspInit+0x194>)
  7180. 80037fa: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7181. 80037fe: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  7182. 8003802: 60fb str r3, [r7, #12]
  7183. 8003804: 68fb ldr r3, [r7, #12]
  7184. __HAL_RCC_GPIOE_CLK_ENABLE();
  7185. 8003806: 4b47 ldr r3, [pc, #284] @ (8003924 <HAL_UART_MspInit+0x194>)
  7186. 8003808: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7187. 800380c: 4a45 ldr r2, [pc, #276] @ (8003924 <HAL_UART_MspInit+0x194>)
  7188. 800380e: f043 0310 orr.w r3, r3, #16
  7189. 8003812: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7190. 8003816: 4b43 ldr r3, [pc, #268] @ (8003924 <HAL_UART_MspInit+0x194>)
  7191. 8003818: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7192. 800381c: f003 0310 and.w r3, r3, #16
  7193. 8003820: 60bb str r3, [r7, #8]
  7194. 8003822: 68bb ldr r3, [r7, #8]
  7195. /**UART8 GPIO Configuration
  7196. PE0 ------> UART8_RX
  7197. PE1 ------> UART8_TX
  7198. */
  7199. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1;
  7200. 8003824: 2303 movs r3, #3
  7201. 8003826: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  7202. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  7203. 800382a: 2302 movs r3, #2
  7204. 800382c: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
  7205. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7206. 8003830: 2300 movs r3, #0
  7207. 8003832: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  7208. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  7209. 8003836: 2300 movs r3, #0
  7210. 8003838: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  7211. GPIO_InitStruct.Alternate = GPIO_AF8_UART8;
  7212. 800383c: 2308 movs r3, #8
  7213. 800383e: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  7214. HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
  7215. 8003842: f107 03d4 add.w r3, r7, #212 @ 0xd4
  7216. 8003846: 4619 mov r1, r3
  7217. 8003848: 4837 ldr r0, [pc, #220] @ (8003928 <HAL_UART_MspInit+0x198>)
  7218. 800384a: f005 fcd1 bl 80091f0 <HAL_GPIO_Init>
  7219. /* UART8 DMA Init */
  7220. /* UART8_RX Init */
  7221. hdma_uart8_rx.Instance = DMA2_Stream7;
  7222. 800384e: 4b37 ldr r3, [pc, #220] @ (800392c <HAL_UART_MspInit+0x19c>)
  7223. 8003850: 4a37 ldr r2, [pc, #220] @ (8003930 <HAL_UART_MspInit+0x1a0>)
  7224. 8003852: 601a str r2, [r3, #0]
  7225. hdma_uart8_rx.Init.Request = DMA_REQUEST_UART8_RX;
  7226. 8003854: 4b35 ldr r3, [pc, #212] @ (800392c <HAL_UART_MspInit+0x19c>)
  7227. 8003856: 2251 movs r2, #81 @ 0x51
  7228. 8003858: 605a str r2, [r3, #4]
  7229. hdma_uart8_rx.Init.Direction = DMA_PERIPH_TO_MEMORY;
  7230. 800385a: 4b34 ldr r3, [pc, #208] @ (800392c <HAL_UART_MspInit+0x19c>)
  7231. 800385c: 2200 movs r2, #0
  7232. 800385e: 609a str r2, [r3, #8]
  7233. hdma_uart8_rx.Init.PeriphInc = DMA_PINC_DISABLE;
  7234. 8003860: 4b32 ldr r3, [pc, #200] @ (800392c <HAL_UART_MspInit+0x19c>)
  7235. 8003862: 2200 movs r2, #0
  7236. 8003864: 60da str r2, [r3, #12]
  7237. hdma_uart8_rx.Init.MemInc = DMA_MINC_ENABLE;
  7238. 8003866: 4b31 ldr r3, [pc, #196] @ (800392c <HAL_UART_MspInit+0x19c>)
  7239. 8003868: f44f 6280 mov.w r2, #1024 @ 0x400
  7240. 800386c: 611a str r2, [r3, #16]
  7241. hdma_uart8_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
  7242. 800386e: 4b2f ldr r3, [pc, #188] @ (800392c <HAL_UART_MspInit+0x19c>)
  7243. 8003870: 2200 movs r2, #0
  7244. 8003872: 615a str r2, [r3, #20]
  7245. hdma_uart8_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
  7246. 8003874: 4b2d ldr r3, [pc, #180] @ (800392c <HAL_UART_MspInit+0x19c>)
  7247. 8003876: 2200 movs r2, #0
  7248. 8003878: 619a str r2, [r3, #24]
  7249. hdma_uart8_rx.Init.Mode = DMA_NORMAL;
  7250. 800387a: 4b2c ldr r3, [pc, #176] @ (800392c <HAL_UART_MspInit+0x19c>)
  7251. 800387c: 2200 movs r2, #0
  7252. 800387e: 61da str r2, [r3, #28]
  7253. hdma_uart8_rx.Init.Priority = DMA_PRIORITY_VERY_HIGH;
  7254. 8003880: 4b2a ldr r3, [pc, #168] @ (800392c <HAL_UART_MspInit+0x19c>)
  7255. 8003882: f44f 3240 mov.w r2, #196608 @ 0x30000
  7256. 8003886: 621a str r2, [r3, #32]
  7257. hdma_uart8_rx.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  7258. 8003888: 4b28 ldr r3, [pc, #160] @ (800392c <HAL_UART_MspInit+0x19c>)
  7259. 800388a: 2200 movs r2, #0
  7260. 800388c: 625a str r2, [r3, #36] @ 0x24
  7261. if (HAL_DMA_Init(&hdma_uart8_rx) != HAL_OK)
  7262. 800388e: 4827 ldr r0, [pc, #156] @ (800392c <HAL_UART_MspInit+0x19c>)
  7263. 8003890: f001 fd2c bl 80052ec <HAL_DMA_Init>
  7264. 8003894: 4603 mov r3, r0
  7265. 8003896: 2b00 cmp r3, #0
  7266. 8003898: d001 beq.n 800389e <HAL_UART_MspInit+0x10e>
  7267. {
  7268. Error_Handler();
  7269. 800389a: f7fe fcdd bl 8002258 <Error_Handler>
  7270. }
  7271. __HAL_LINKDMA(huart,hdmarx,hdma_uart8_rx);
  7272. 800389e: 687b ldr r3, [r7, #4]
  7273. 80038a0: 4a22 ldr r2, [pc, #136] @ (800392c <HAL_UART_MspInit+0x19c>)
  7274. 80038a2: f8c3 2080 str.w r2, [r3, #128] @ 0x80
  7275. 80038a6: 4a21 ldr r2, [pc, #132] @ (800392c <HAL_UART_MspInit+0x19c>)
  7276. 80038a8: 687b ldr r3, [r7, #4]
  7277. 80038aa: 6393 str r3, [r2, #56] @ 0x38
  7278. /* UART8_TX Init */
  7279. hdma_uart8_tx.Instance = DMA2_Stream6;
  7280. 80038ac: 4b21 ldr r3, [pc, #132] @ (8003934 <HAL_UART_MspInit+0x1a4>)
  7281. 80038ae: 4a22 ldr r2, [pc, #136] @ (8003938 <HAL_UART_MspInit+0x1a8>)
  7282. 80038b0: 601a str r2, [r3, #0]
  7283. hdma_uart8_tx.Init.Request = DMA_REQUEST_UART8_TX;
  7284. 80038b2: 4b20 ldr r3, [pc, #128] @ (8003934 <HAL_UART_MspInit+0x1a4>)
  7285. 80038b4: 2252 movs r2, #82 @ 0x52
  7286. 80038b6: 605a str r2, [r3, #4]
  7287. hdma_uart8_tx.Init.Direction = DMA_MEMORY_TO_PERIPH;
  7288. 80038b8: 4b1e ldr r3, [pc, #120] @ (8003934 <HAL_UART_MspInit+0x1a4>)
  7289. 80038ba: 2240 movs r2, #64 @ 0x40
  7290. 80038bc: 609a str r2, [r3, #8]
  7291. hdma_uart8_tx.Init.PeriphInc = DMA_PINC_DISABLE;
  7292. 80038be: 4b1d ldr r3, [pc, #116] @ (8003934 <HAL_UART_MspInit+0x1a4>)
  7293. 80038c0: 2200 movs r2, #0
  7294. 80038c2: 60da str r2, [r3, #12]
  7295. hdma_uart8_tx.Init.MemInc = DMA_MINC_ENABLE;
  7296. 80038c4: 4b1b ldr r3, [pc, #108] @ (8003934 <HAL_UART_MspInit+0x1a4>)
  7297. 80038c6: f44f 6280 mov.w r2, #1024 @ 0x400
  7298. 80038ca: 611a str r2, [r3, #16]
  7299. hdma_uart8_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
  7300. 80038cc: 4b19 ldr r3, [pc, #100] @ (8003934 <HAL_UART_MspInit+0x1a4>)
  7301. 80038ce: 2200 movs r2, #0
  7302. 80038d0: 615a str r2, [r3, #20]
  7303. hdma_uart8_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
  7304. 80038d2: 4b18 ldr r3, [pc, #96] @ (8003934 <HAL_UART_MspInit+0x1a4>)
  7305. 80038d4: 2200 movs r2, #0
  7306. 80038d6: 619a str r2, [r3, #24]
  7307. hdma_uart8_tx.Init.Mode = DMA_NORMAL;
  7308. 80038d8: 4b16 ldr r3, [pc, #88] @ (8003934 <HAL_UART_MspInit+0x1a4>)
  7309. 80038da: 2200 movs r2, #0
  7310. 80038dc: 61da str r2, [r3, #28]
  7311. hdma_uart8_tx.Init.Priority = DMA_PRIORITY_VERY_HIGH;
  7312. 80038de: 4b15 ldr r3, [pc, #84] @ (8003934 <HAL_UART_MspInit+0x1a4>)
  7313. 80038e0: f44f 3240 mov.w r2, #196608 @ 0x30000
  7314. 80038e4: 621a str r2, [r3, #32]
  7315. hdma_uart8_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  7316. 80038e6: 4b13 ldr r3, [pc, #76] @ (8003934 <HAL_UART_MspInit+0x1a4>)
  7317. 80038e8: 2200 movs r2, #0
  7318. 80038ea: 625a str r2, [r3, #36] @ 0x24
  7319. if (HAL_DMA_Init(&hdma_uart8_tx) != HAL_OK)
  7320. 80038ec: 4811 ldr r0, [pc, #68] @ (8003934 <HAL_UART_MspInit+0x1a4>)
  7321. 80038ee: f001 fcfd bl 80052ec <HAL_DMA_Init>
  7322. 80038f2: 4603 mov r3, r0
  7323. 80038f4: 2b00 cmp r3, #0
  7324. 80038f6: d001 beq.n 80038fc <HAL_UART_MspInit+0x16c>
  7325. {
  7326. Error_Handler();
  7327. 80038f8: f7fe fcae bl 8002258 <Error_Handler>
  7328. }
  7329. __HAL_LINKDMA(huart,hdmatx,hdma_uart8_tx);
  7330. 80038fc: 687b ldr r3, [r7, #4]
  7331. 80038fe: 4a0d ldr r2, [pc, #52] @ (8003934 <HAL_UART_MspInit+0x1a4>)
  7332. 8003900: 67da str r2, [r3, #124] @ 0x7c
  7333. 8003902: 4a0c ldr r2, [pc, #48] @ (8003934 <HAL_UART_MspInit+0x1a4>)
  7334. 8003904: 687b ldr r3, [r7, #4]
  7335. 8003906: 6393 str r3, [r2, #56] @ 0x38
  7336. /* UART8 interrupt Init */
  7337. HAL_NVIC_SetPriority(UART8_IRQn, 5, 0);
  7338. 8003908: 2200 movs r2, #0
  7339. 800390a: 2105 movs r1, #5
  7340. 800390c: 2053 movs r0, #83 @ 0x53
  7341. 800390e: f001 fa47 bl 8004da0 <HAL_NVIC_SetPriority>
  7342. HAL_NVIC_EnableIRQ(UART8_IRQn);
  7343. 8003912: 2053 movs r0, #83 @ 0x53
  7344. 8003914: f001 fa5e bl 8004dd4 <HAL_NVIC_EnableIRQ>
  7345. /* USER CODE BEGIN UART8_MspInit 1 */
  7346. /* USER CODE END UART8_MspInit 1 */
  7347. }
  7348. }
  7349. 8003918: bf00 nop
  7350. 800391a: 37e8 adds r7, #232 @ 0xe8
  7351. 800391c: 46bd mov sp, r7
  7352. 800391e: bd80 pop {r7, pc}
  7353. 8003920: 40007c00 .word 0x40007c00
  7354. 8003924: 58024400 .word 0x58024400
  7355. 8003928: 58021000 .word 0x58021000
  7356. 800392c: 24000300 .word 0x24000300
  7357. 8003930: 400204b8 .word 0x400204b8
  7358. 8003934: 24000378 .word 0x24000378
  7359. 8003938: 400204a0 .word 0x400204a0
  7360. 0800393c <HAL_InitTick>:
  7361. * reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig().
  7362. * @param TickPriority: Tick interrupt priority.
  7363. * @retval HAL status
  7364. */
  7365. HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
  7366. {
  7367. 800393c: b580 push {r7, lr}
  7368. 800393e: b090 sub sp, #64 @ 0x40
  7369. 8003940: af00 add r7, sp, #0
  7370. 8003942: 6078 str r0, [r7, #4]
  7371. uint32_t uwTimclock, uwAPB1Prescaler;
  7372. uint32_t uwPrescalerValue;
  7373. uint32_t pFLatency;
  7374. /*Configure the TIM6 IRQ priority */
  7375. if (TickPriority < (1UL << __NVIC_PRIO_BITS))
  7376. 8003944: 687b ldr r3, [r7, #4]
  7377. 8003946: 2b0f cmp r3, #15
  7378. 8003948: d827 bhi.n 800399a <HAL_InitTick+0x5e>
  7379. {
  7380. HAL_NVIC_SetPriority(TIM6_DAC_IRQn, TickPriority ,0U);
  7381. 800394a: 2200 movs r2, #0
  7382. 800394c: 6879 ldr r1, [r7, #4]
  7383. 800394e: 2036 movs r0, #54 @ 0x36
  7384. 8003950: f001 fa26 bl 8004da0 <HAL_NVIC_SetPriority>
  7385. /* Enable the TIM6 global Interrupt */
  7386. HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
  7387. 8003954: 2036 movs r0, #54 @ 0x36
  7388. 8003956: f001 fa3d bl 8004dd4 <HAL_NVIC_EnableIRQ>
  7389. uwTickPrio = TickPriority;
  7390. 800395a: 4a29 ldr r2, [pc, #164] @ (8003a00 <HAL_InitTick+0xc4>)
  7391. 800395c: 687b ldr r3, [r7, #4]
  7392. 800395e: 6013 str r3, [r2, #0]
  7393. {
  7394. return HAL_ERROR;
  7395. }
  7396. /* Enable TIM6 clock */
  7397. __HAL_RCC_TIM6_CLK_ENABLE();
  7398. 8003960: 4b28 ldr r3, [pc, #160] @ (8003a04 <HAL_InitTick+0xc8>)
  7399. 8003962: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7400. 8003966: 4a27 ldr r2, [pc, #156] @ (8003a04 <HAL_InitTick+0xc8>)
  7401. 8003968: f043 0310 orr.w r3, r3, #16
  7402. 800396c: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  7403. 8003970: 4b24 ldr r3, [pc, #144] @ (8003a04 <HAL_InitTick+0xc8>)
  7404. 8003972: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7405. 8003976: f003 0310 and.w r3, r3, #16
  7406. 800397a: 60fb str r3, [r7, #12]
  7407. 800397c: 68fb ldr r3, [r7, #12]
  7408. /* Get clock configuration */
  7409. HAL_RCC_GetClockConfig(&clkconfig, &pFLatency);
  7410. 800397e: f107 0210 add.w r2, r7, #16
  7411. 8003982: f107 0314 add.w r3, r7, #20
  7412. 8003986: 4611 mov r1, r2
  7413. 8003988: 4618 mov r0, r3
  7414. 800398a: f006 fe1b bl 800a5c4 <HAL_RCC_GetClockConfig>
  7415. /* Get APB1 prescaler */
  7416. uwAPB1Prescaler = clkconfig.APB1CLKDivider;
  7417. 800398e: 6abb ldr r3, [r7, #40] @ 0x28
  7418. 8003990: 63bb str r3, [r7, #56] @ 0x38
  7419. /* Compute TIM6 clock */
  7420. if (uwAPB1Prescaler == RCC_HCLK_DIV1)
  7421. 8003992: 6bbb ldr r3, [r7, #56] @ 0x38
  7422. 8003994: 2b00 cmp r3, #0
  7423. 8003996: d106 bne.n 80039a6 <HAL_InitTick+0x6a>
  7424. 8003998: e001 b.n 800399e <HAL_InitTick+0x62>
  7425. return HAL_ERROR;
  7426. 800399a: 2301 movs r3, #1
  7427. 800399c: e02b b.n 80039f6 <HAL_InitTick+0xba>
  7428. {
  7429. uwTimclock = HAL_RCC_GetPCLK1Freq();
  7430. 800399e: f006 fde5 bl 800a56c <HAL_RCC_GetPCLK1Freq>
  7431. 80039a2: 63f8 str r0, [r7, #60] @ 0x3c
  7432. 80039a4: e004 b.n 80039b0 <HAL_InitTick+0x74>
  7433. }
  7434. else
  7435. {
  7436. uwTimclock = 2UL * HAL_RCC_GetPCLK1Freq();
  7437. 80039a6: f006 fde1 bl 800a56c <HAL_RCC_GetPCLK1Freq>
  7438. 80039aa: 4603 mov r3, r0
  7439. 80039ac: 005b lsls r3, r3, #1
  7440. 80039ae: 63fb str r3, [r7, #60] @ 0x3c
  7441. }
  7442. /* Compute the prescaler value to have TIM6 counter clock equal to 1MHz */
  7443. uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000U) - 1U);
  7444. 80039b0: 6bfb ldr r3, [r7, #60] @ 0x3c
  7445. 80039b2: 4a15 ldr r2, [pc, #84] @ (8003a08 <HAL_InitTick+0xcc>)
  7446. 80039b4: fba2 2303 umull r2, r3, r2, r3
  7447. 80039b8: 0c9b lsrs r3, r3, #18
  7448. 80039ba: 3b01 subs r3, #1
  7449. 80039bc: 637b str r3, [r7, #52] @ 0x34
  7450. /* Initialize TIM6 */
  7451. htim6.Instance = TIM6;
  7452. 80039be: 4b13 ldr r3, [pc, #76] @ (8003a0c <HAL_InitTick+0xd0>)
  7453. 80039c0: 4a13 ldr r2, [pc, #76] @ (8003a10 <HAL_InitTick+0xd4>)
  7454. 80039c2: 601a str r2, [r3, #0]
  7455. + Period = [(TIM6CLK/1000) - 1]. to have a (1/1000) s time base.
  7456. + Prescaler = (uwTimclock/1000000 - 1) to have a 1MHz counter clock.
  7457. + ClockDivision = 0
  7458. + Counter direction = Up
  7459. */
  7460. htim6.Init.Period = (1000000U / 1000U) - 1U;
  7461. 80039c4: 4b11 ldr r3, [pc, #68] @ (8003a0c <HAL_InitTick+0xd0>)
  7462. 80039c6: f240 32e7 movw r2, #999 @ 0x3e7
  7463. 80039ca: 60da str r2, [r3, #12]
  7464. htim6.Init.Prescaler = uwPrescalerValue;
  7465. 80039cc: 4a0f ldr r2, [pc, #60] @ (8003a0c <HAL_InitTick+0xd0>)
  7466. 80039ce: 6b7b ldr r3, [r7, #52] @ 0x34
  7467. 80039d0: 6053 str r3, [r2, #4]
  7468. htim6.Init.ClockDivision = 0;
  7469. 80039d2: 4b0e ldr r3, [pc, #56] @ (8003a0c <HAL_InitTick+0xd0>)
  7470. 80039d4: 2200 movs r2, #0
  7471. 80039d6: 611a str r2, [r3, #16]
  7472. htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
  7473. 80039d8: 4b0c ldr r3, [pc, #48] @ (8003a0c <HAL_InitTick+0xd0>)
  7474. 80039da: 2200 movs r2, #0
  7475. 80039dc: 609a str r2, [r3, #8]
  7476. if(HAL_TIM_Base_Init(&htim6) == HAL_OK)
  7477. 80039de: 480b ldr r0, [pc, #44] @ (8003a0c <HAL_InitTick+0xd0>)
  7478. 80039e0: f008 fcfa bl 800c3d8 <HAL_TIM_Base_Init>
  7479. 80039e4: 4603 mov r3, r0
  7480. 80039e6: 2b00 cmp r3, #0
  7481. 80039e8: d104 bne.n 80039f4 <HAL_InitTick+0xb8>
  7482. {
  7483. /* Start the TIM time Base generation in interrupt mode */
  7484. return HAL_TIM_Base_Start_IT(&htim6);
  7485. 80039ea: 4808 ldr r0, [pc, #32] @ (8003a0c <HAL_InitTick+0xd0>)
  7486. 80039ec: f008 fd56 bl 800c49c <HAL_TIM_Base_Start_IT>
  7487. 80039f0: 4603 mov r3, r0
  7488. 80039f2: e000 b.n 80039f6 <HAL_InitTick+0xba>
  7489. }
  7490. /* Return function status */
  7491. return HAL_ERROR;
  7492. 80039f4: 2301 movs r3, #1
  7493. }
  7494. 80039f6: 4618 mov r0, r3
  7495. 80039f8: 3740 adds r7, #64 @ 0x40
  7496. 80039fa: 46bd mov sp, r7
  7497. 80039fc: bd80 pop {r7, pc}
  7498. 80039fe: bf00 nop
  7499. 8003a00: 24000018 .word 0x24000018
  7500. 8003a04: 58024400 .word 0x58024400
  7501. 8003a08: 431bde83 .word 0x431bde83
  7502. 8003a0c: 24000e20 .word 0x24000e20
  7503. 8003a10: 40001000 .word 0x40001000
  7504. 08003a14 <NMI_Handler>:
  7505. /******************************************************************************/
  7506. /**
  7507. * @brief This function handles Non maskable interrupt.
  7508. */
  7509. void NMI_Handler(void)
  7510. {
  7511. 8003a14: b480 push {r7}
  7512. 8003a16: af00 add r7, sp, #0
  7513. /* USER CODE BEGIN NonMaskableInt_IRQn 0 */
  7514. /* USER CODE END NonMaskableInt_IRQn 0 */
  7515. /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
  7516. while (1)
  7517. 8003a18: bf00 nop
  7518. 8003a1a: e7fd b.n 8003a18 <NMI_Handler+0x4>
  7519. 08003a1c <HardFault_Handler>:
  7520. /**
  7521. * @brief This function handles Hard fault interrupt.
  7522. */
  7523. void HardFault_Handler(void)
  7524. {
  7525. 8003a1c: b480 push {r7}
  7526. 8003a1e: af00 add r7, sp, #0
  7527. /* USER CODE BEGIN HardFault_IRQn 0 */
  7528. /* USER CODE END HardFault_IRQn 0 */
  7529. while (1)
  7530. 8003a20: bf00 nop
  7531. 8003a22: e7fd b.n 8003a20 <HardFault_Handler+0x4>
  7532. 08003a24 <MemManage_Handler>:
  7533. /**
  7534. * @brief This function handles Memory management fault.
  7535. */
  7536. void MemManage_Handler(void)
  7537. {
  7538. 8003a24: b480 push {r7}
  7539. 8003a26: af00 add r7, sp, #0
  7540. /* USER CODE BEGIN MemoryManagement_IRQn 0 */
  7541. /* USER CODE END MemoryManagement_IRQn 0 */
  7542. while (1)
  7543. 8003a28: bf00 nop
  7544. 8003a2a: e7fd b.n 8003a28 <MemManage_Handler+0x4>
  7545. 08003a2c <BusFault_Handler>:
  7546. /**
  7547. * @brief This function handles Pre-fetch fault, memory access fault.
  7548. */
  7549. void BusFault_Handler(void)
  7550. {
  7551. 8003a2c: b480 push {r7}
  7552. 8003a2e: af00 add r7, sp, #0
  7553. /* USER CODE BEGIN BusFault_IRQn 0 */
  7554. /* USER CODE END BusFault_IRQn 0 */
  7555. while (1)
  7556. 8003a30: bf00 nop
  7557. 8003a32: e7fd b.n 8003a30 <BusFault_Handler+0x4>
  7558. 08003a34 <UsageFault_Handler>:
  7559. /**
  7560. * @brief This function handles Undefined instruction or illegal state.
  7561. */
  7562. void UsageFault_Handler(void)
  7563. {
  7564. 8003a34: b480 push {r7}
  7565. 8003a36: af00 add r7, sp, #0
  7566. /* USER CODE BEGIN UsageFault_IRQn 0 */
  7567. /* USER CODE END UsageFault_IRQn 0 */
  7568. while (1)
  7569. 8003a38: bf00 nop
  7570. 8003a3a: e7fd b.n 8003a38 <UsageFault_Handler+0x4>
  7571. 08003a3c <DebugMon_Handler>:
  7572. /**
  7573. * @brief This function handles Debug monitor.
  7574. */
  7575. void DebugMon_Handler(void)
  7576. {
  7577. 8003a3c: b480 push {r7}
  7578. 8003a3e: af00 add r7, sp, #0
  7579. /* USER CODE END DebugMonitor_IRQn 0 */
  7580. /* USER CODE BEGIN DebugMonitor_IRQn 1 */
  7581. /* USER CODE END DebugMonitor_IRQn 1 */
  7582. }
  7583. 8003a40: bf00 nop
  7584. 8003a42: 46bd mov sp, r7
  7585. 8003a44: f85d 7b04 ldr.w r7, [sp], #4
  7586. 8003a48: 4770 bx lr
  7587. 08003a4a <RCC_IRQHandler>:
  7588. /**
  7589. * @brief This function handles RCC global interrupt.
  7590. */
  7591. void RCC_IRQHandler(void)
  7592. {
  7593. 8003a4a: b480 push {r7}
  7594. 8003a4c: af00 add r7, sp, #0
  7595. /* USER CODE END RCC_IRQn 0 */
  7596. /* USER CODE BEGIN RCC_IRQn 1 */
  7597. /* USER CODE END RCC_IRQn 1 */
  7598. }
  7599. 8003a4e: bf00 nop
  7600. 8003a50: 46bd mov sp, r7
  7601. 8003a52: f85d 7b04 ldr.w r7, [sp], #4
  7602. 8003a56: 4770 bx lr
  7603. 08003a58 <TIM6_DAC_IRQHandler>:
  7604. /**
  7605. * @brief This function handles TIM6 global interrupt, DAC1_CH1 and DAC1_CH2 underrun error interrupts.
  7606. */
  7607. void TIM6_DAC_IRQHandler(void)
  7608. {
  7609. 8003a58: b580 push {r7, lr}
  7610. 8003a5a: af00 add r7, sp, #0
  7611. /* USER CODE BEGIN TIM6_DAC_IRQn 0 */
  7612. /* USER CODE END TIM6_DAC_IRQn 0 */
  7613. HAL_TIM_IRQHandler(&htim6);
  7614. 8003a5c: 4802 ldr r0, [pc, #8] @ (8003a68 <TIM6_DAC_IRQHandler+0x10>)
  7615. 8003a5e: f008 fd95 bl 800c58c <HAL_TIM_IRQHandler>
  7616. /* USER CODE BEGIN TIM6_DAC_IRQn 1 */
  7617. /* USER CODE END TIM6_DAC_IRQn 1 */
  7618. }
  7619. 8003a62: bf00 nop
  7620. 8003a64: bd80 pop {r7, pc}
  7621. 8003a66: bf00 nop
  7622. 8003a68: 24000e20 .word 0x24000e20
  7623. 08003a6c <ETH_IRQHandler>:
  7624. /**
  7625. * @brief This function handles Ethernet global interrupt.
  7626. */
  7627. void ETH_IRQHandler(void)
  7628. {
  7629. 8003a6c: b580 push {r7, lr}
  7630. 8003a6e: af00 add r7, sp, #0
  7631. /* USER CODE BEGIN ETH_IRQn 0 */
  7632. /* USER CODE END ETH_IRQn 0 */
  7633. HAL_ETH_IRQHandler(&heth);
  7634. 8003a70: 4802 ldr r0, [pc, #8] @ (8003a7c <ETH_IRQHandler+0x10>)
  7635. 8003a72: f004 fa35 bl 8007ee0 <HAL_ETH_IRQHandler>
  7636. /* USER CODE BEGIN ETH_IRQn 1 */
  7637. /* USER CODE END ETH_IRQn 1 */
  7638. }
  7639. 8003a76: bf00 nop
  7640. 8003a78: bd80 pop {r7, pc}
  7641. 8003a7a: bf00 nop
  7642. 8003a7c: 24001350 .word 0x24001350
  7643. 08003a80 <DMA2_Stream6_IRQHandler>:
  7644. /**
  7645. * @brief This function handles DMA2 stream6 global interrupt.
  7646. */
  7647. void DMA2_Stream6_IRQHandler(void)
  7648. {
  7649. 8003a80: b580 push {r7, lr}
  7650. 8003a82: af00 add r7, sp, #0
  7651. /* USER CODE BEGIN DMA2_Stream6_IRQn 0 */
  7652. /* USER CODE END DMA2_Stream6_IRQn 0 */
  7653. HAL_DMA_IRQHandler(&hdma_uart8_tx);
  7654. 8003a84: 4802 ldr r0, [pc, #8] @ (8003a90 <DMA2_Stream6_IRQHandler+0x10>)
  7655. 8003a86: f002 fcf1 bl 800646c <HAL_DMA_IRQHandler>
  7656. /* USER CODE BEGIN DMA2_Stream6_IRQn 1 */
  7657. /* USER CODE END DMA2_Stream6_IRQn 1 */
  7658. }
  7659. 8003a8a: bf00 nop
  7660. 8003a8c: bd80 pop {r7, pc}
  7661. 8003a8e: bf00 nop
  7662. 8003a90: 24000378 .word 0x24000378
  7663. 08003a94 <DMA2_Stream7_IRQHandler>:
  7664. /**
  7665. * @brief This function handles DMA2 stream7 global interrupt.
  7666. */
  7667. void DMA2_Stream7_IRQHandler(void)
  7668. {
  7669. 8003a94: b580 push {r7, lr}
  7670. 8003a96: af00 add r7, sp, #0
  7671. /* USER CODE BEGIN DMA2_Stream7_IRQn 0 */
  7672. /* USER CODE END DMA2_Stream7_IRQn 0 */
  7673. HAL_DMA_IRQHandler(&hdma_uart8_rx);
  7674. 8003a98: 4802 ldr r0, [pc, #8] @ (8003aa4 <DMA2_Stream7_IRQHandler+0x10>)
  7675. 8003a9a: f002 fce7 bl 800646c <HAL_DMA_IRQHandler>
  7676. /* USER CODE BEGIN DMA2_Stream7_IRQn 1 */
  7677. /* USER CODE END DMA2_Stream7_IRQn 1 */
  7678. }
  7679. 8003a9e: bf00 nop
  7680. 8003aa0: bd80 pop {r7, pc}
  7681. 8003aa2: bf00 nop
  7682. 8003aa4: 24000300 .word 0x24000300
  7683. 08003aa8 <UART8_IRQHandler>:
  7684. /**
  7685. * @brief This function handles UART8 global interrupt.
  7686. */
  7687. void UART8_IRQHandler(void)
  7688. {
  7689. 8003aa8: b580 push {r7, lr}
  7690. 8003aaa: af00 add r7, sp, #0
  7691. /* USER CODE BEGIN UART8_IRQn 0 */
  7692. /* USER CODE END UART8_IRQn 0 */
  7693. HAL_UART_IRQHandler(&huart8);
  7694. 8003aac: 4802 ldr r0, [pc, #8] @ (8003ab8 <UART8_IRQHandler+0x10>)
  7695. 8003aae: f009 f845 bl 800cb3c <HAL_UART_IRQHandler>
  7696. /* USER CODE BEGIN UART8_IRQn 1 */
  7697. /* USER CODE END UART8_IRQn 1 */
  7698. }
  7699. 8003ab2: bf00 nop
  7700. 8003ab4: bd80 pop {r7, pc}
  7701. 8003ab6: bf00 nop
  7702. 8003ab8: 2400026c .word 0x2400026c
  7703. 08003abc <ITM_SendChar>:
  7704. \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted.
  7705. \param [in] ch Character to transmit.
  7706. \returns Character to transmit.
  7707. */
  7708. __STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch)
  7709. {
  7710. 8003abc: b480 push {r7}
  7711. 8003abe: b083 sub sp, #12
  7712. 8003ac0: af00 add r7, sp, #0
  7713. 8003ac2: 6078 str r0, [r7, #4]
  7714. if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */
  7715. 8003ac4: f04f 4360 mov.w r3, #3758096384 @ 0xe0000000
  7716. 8003ac8: f8d3 3e80 ldr.w r3, [r3, #3712] @ 0xe80
  7717. 8003acc: f003 0301 and.w r3, r3, #1
  7718. 8003ad0: 2b00 cmp r3, #0
  7719. 8003ad2: d013 beq.n 8003afc <ITM_SendChar+0x40>
  7720. ((ITM->TER & 1UL ) != 0UL) ) /* ITM Port #0 enabled */
  7721. 8003ad4: f04f 4360 mov.w r3, #3758096384 @ 0xe0000000
  7722. 8003ad8: f8d3 3e00 ldr.w r3, [r3, #3584] @ 0xe00
  7723. 8003adc: f003 0301 and.w r3, r3, #1
  7724. if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */
  7725. 8003ae0: 2b00 cmp r3, #0
  7726. 8003ae2: d00b beq.n 8003afc <ITM_SendChar+0x40>
  7727. {
  7728. while (ITM->PORT[0U].u32 == 0UL)
  7729. 8003ae4: e000 b.n 8003ae8 <ITM_SendChar+0x2c>
  7730. {
  7731. __NOP();
  7732. 8003ae6: bf00 nop
  7733. while (ITM->PORT[0U].u32 == 0UL)
  7734. 8003ae8: f04f 4360 mov.w r3, #3758096384 @ 0xe0000000
  7735. 8003aec: 681b ldr r3, [r3, #0]
  7736. 8003aee: 2b00 cmp r3, #0
  7737. 8003af0: d0f9 beq.n 8003ae6 <ITM_SendChar+0x2a>
  7738. }
  7739. ITM->PORT[0U].u8 = (uint8_t)ch;
  7740. 8003af2: f04f 4360 mov.w r3, #3758096384 @ 0xe0000000
  7741. 8003af6: 687a ldr r2, [r7, #4]
  7742. 8003af8: b2d2 uxtb r2, r2
  7743. 8003afa: 701a strb r2, [r3, #0]
  7744. }
  7745. return (ch);
  7746. 8003afc: 687b ldr r3, [r7, #4]
  7747. }
  7748. 8003afe: 4618 mov r0, r3
  7749. 8003b00: 370c adds r7, #12
  7750. 8003b02: 46bd mov sp, r7
  7751. 8003b04: f85d 7b04 ldr.w r7, [sp], #4
  7752. 8003b08: 4770 bx lr
  7753. 08003b0a <_getpid>:
  7754. void initialise_monitor_handles()
  7755. {
  7756. }
  7757. int _getpid(void)
  7758. {
  7759. 8003b0a: b480 push {r7}
  7760. 8003b0c: af00 add r7, sp, #0
  7761. return 1;
  7762. 8003b0e: 2301 movs r3, #1
  7763. }
  7764. 8003b10: 4618 mov r0, r3
  7765. 8003b12: 46bd mov sp, r7
  7766. 8003b14: f85d 7b04 ldr.w r7, [sp], #4
  7767. 8003b18: 4770 bx lr
  7768. ...
  7769. 08003b1c <_kill>:
  7770. int _kill(int pid, int sig)
  7771. {
  7772. 8003b1c: b480 push {r7}
  7773. 8003b1e: b083 sub sp, #12
  7774. 8003b20: af00 add r7, sp, #0
  7775. 8003b22: 6078 str r0, [r7, #4]
  7776. 8003b24: 6039 str r1, [r7, #0]
  7777. (void)pid;
  7778. (void)sig;
  7779. errno = EINVAL;
  7780. 8003b26: 4b05 ldr r3, [pc, #20] @ (8003b3c <_kill+0x20>)
  7781. 8003b28: 2216 movs r2, #22
  7782. 8003b2a: 601a str r2, [r3, #0]
  7783. return -1;
  7784. 8003b2c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  7785. }
  7786. 8003b30: 4618 mov r0, r3
  7787. 8003b32: 370c adds r7, #12
  7788. 8003b34: 46bd mov sp, r7
  7789. 8003b36: f85d 7b04 ldr.w r7, [sp], #4
  7790. 8003b3a: 4770 bx lr
  7791. 8003b3c: 2402a2e4 .word 0x2402a2e4
  7792. 08003b40 <_exit>:
  7793. void _exit (int status)
  7794. {
  7795. 8003b40: b580 push {r7, lr}
  7796. 8003b42: b082 sub sp, #8
  7797. 8003b44: af00 add r7, sp, #0
  7798. 8003b46: 6078 str r0, [r7, #4]
  7799. _kill(status, -1);
  7800. 8003b48: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  7801. 8003b4c: 6878 ldr r0, [r7, #4]
  7802. 8003b4e: f7ff ffe5 bl 8003b1c <_kill>
  7803. while (1) {} /* Make sure we hang here */
  7804. 8003b52: bf00 nop
  7805. 8003b54: e7fd b.n 8003b52 <_exit+0x12>
  7806. 08003b56 <_read>:
  7807. }
  7808. __attribute__((weak)) int _read(int file, char *ptr, int len)
  7809. {
  7810. 8003b56: b580 push {r7, lr}
  7811. 8003b58: b086 sub sp, #24
  7812. 8003b5a: af00 add r7, sp, #0
  7813. 8003b5c: 60f8 str r0, [r7, #12]
  7814. 8003b5e: 60b9 str r1, [r7, #8]
  7815. 8003b60: 607a str r2, [r7, #4]
  7816. (void)file;
  7817. int DataIdx;
  7818. for (DataIdx = 0; DataIdx < len; DataIdx++)
  7819. 8003b62: 2300 movs r3, #0
  7820. 8003b64: 617b str r3, [r7, #20]
  7821. 8003b66: e00a b.n 8003b7e <_read+0x28>
  7822. {
  7823. *ptr++ = __io_getchar();
  7824. 8003b68: f3af 8000 nop.w
  7825. 8003b6c: 4601 mov r1, r0
  7826. 8003b6e: 68bb ldr r3, [r7, #8]
  7827. 8003b70: 1c5a adds r2, r3, #1
  7828. 8003b72: 60ba str r2, [r7, #8]
  7829. 8003b74: b2ca uxtb r2, r1
  7830. 8003b76: 701a strb r2, [r3, #0]
  7831. for (DataIdx = 0; DataIdx < len; DataIdx++)
  7832. 8003b78: 697b ldr r3, [r7, #20]
  7833. 8003b7a: 3301 adds r3, #1
  7834. 8003b7c: 617b str r3, [r7, #20]
  7835. 8003b7e: 697a ldr r2, [r7, #20]
  7836. 8003b80: 687b ldr r3, [r7, #4]
  7837. 8003b82: 429a cmp r2, r3
  7838. 8003b84: dbf0 blt.n 8003b68 <_read+0x12>
  7839. }
  7840. return len;
  7841. 8003b86: 687b ldr r3, [r7, #4]
  7842. }
  7843. 8003b88: 4618 mov r0, r3
  7844. 8003b8a: 3718 adds r7, #24
  7845. 8003b8c: 46bd mov sp, r7
  7846. 8003b8e: bd80 pop {r7, pc}
  7847. 08003b90 <_write>:
  7848. __attribute__((weak)) int _write(int file, char *ptr, int len)
  7849. {
  7850. 8003b90: b580 push {r7, lr}
  7851. 8003b92: b086 sub sp, #24
  7852. 8003b94: af00 add r7, sp, #0
  7853. 8003b96: 60f8 str r0, [r7, #12]
  7854. 8003b98: 60b9 str r1, [r7, #8]
  7855. 8003b9a: 607a str r2, [r7, #4]
  7856. (void)file;
  7857. int DataIdx;
  7858. for (DataIdx = 0; DataIdx < len; DataIdx++)
  7859. 8003b9c: 2300 movs r3, #0
  7860. 8003b9e: 617b str r3, [r7, #20]
  7861. 8003ba0: e009 b.n 8003bb6 <_write+0x26>
  7862. {
  7863. // __io_putchar(*ptr++);
  7864. ITM_SendChar(*ptr++);
  7865. 8003ba2: 68bb ldr r3, [r7, #8]
  7866. 8003ba4: 1c5a adds r2, r3, #1
  7867. 8003ba6: 60ba str r2, [r7, #8]
  7868. 8003ba8: 781b ldrb r3, [r3, #0]
  7869. 8003baa: 4618 mov r0, r3
  7870. 8003bac: f7ff ff86 bl 8003abc <ITM_SendChar>
  7871. for (DataIdx = 0; DataIdx < len; DataIdx++)
  7872. 8003bb0: 697b ldr r3, [r7, #20]
  7873. 8003bb2: 3301 adds r3, #1
  7874. 8003bb4: 617b str r3, [r7, #20]
  7875. 8003bb6: 697a ldr r2, [r7, #20]
  7876. 8003bb8: 687b ldr r3, [r7, #4]
  7877. 8003bba: 429a cmp r2, r3
  7878. 8003bbc: dbf1 blt.n 8003ba2 <_write+0x12>
  7879. }
  7880. return len;
  7881. 8003bbe: 687b ldr r3, [r7, #4]
  7882. }
  7883. 8003bc0: 4618 mov r0, r3
  7884. 8003bc2: 3718 adds r7, #24
  7885. 8003bc4: 46bd mov sp, r7
  7886. 8003bc6: bd80 pop {r7, pc}
  7887. 08003bc8 <_close>:
  7888. int _close(int file)
  7889. {
  7890. 8003bc8: b480 push {r7}
  7891. 8003bca: b083 sub sp, #12
  7892. 8003bcc: af00 add r7, sp, #0
  7893. 8003bce: 6078 str r0, [r7, #4]
  7894. (void)file;
  7895. return -1;
  7896. 8003bd0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  7897. }
  7898. 8003bd4: 4618 mov r0, r3
  7899. 8003bd6: 370c adds r7, #12
  7900. 8003bd8: 46bd mov sp, r7
  7901. 8003bda: f85d 7b04 ldr.w r7, [sp], #4
  7902. 8003bde: 4770 bx lr
  7903. 08003be0 <_fstat>:
  7904. int _fstat(int file, struct stat *st)
  7905. {
  7906. 8003be0: b480 push {r7}
  7907. 8003be2: b083 sub sp, #12
  7908. 8003be4: af00 add r7, sp, #0
  7909. 8003be6: 6078 str r0, [r7, #4]
  7910. 8003be8: 6039 str r1, [r7, #0]
  7911. (void)file;
  7912. st->st_mode = S_IFCHR;
  7913. 8003bea: 683b ldr r3, [r7, #0]
  7914. 8003bec: f44f 5200 mov.w r2, #8192 @ 0x2000
  7915. 8003bf0: 605a str r2, [r3, #4]
  7916. return 0;
  7917. 8003bf2: 2300 movs r3, #0
  7918. }
  7919. 8003bf4: 4618 mov r0, r3
  7920. 8003bf6: 370c adds r7, #12
  7921. 8003bf8: 46bd mov sp, r7
  7922. 8003bfa: f85d 7b04 ldr.w r7, [sp], #4
  7923. 8003bfe: 4770 bx lr
  7924. 08003c00 <_isatty>:
  7925. int _isatty(int file)
  7926. {
  7927. 8003c00: b480 push {r7}
  7928. 8003c02: b083 sub sp, #12
  7929. 8003c04: af00 add r7, sp, #0
  7930. 8003c06: 6078 str r0, [r7, #4]
  7931. (void)file;
  7932. return 1;
  7933. 8003c08: 2301 movs r3, #1
  7934. }
  7935. 8003c0a: 4618 mov r0, r3
  7936. 8003c0c: 370c adds r7, #12
  7937. 8003c0e: 46bd mov sp, r7
  7938. 8003c10: f85d 7b04 ldr.w r7, [sp], #4
  7939. 8003c14: 4770 bx lr
  7940. 08003c16 <_lseek>:
  7941. int _lseek(int file, int ptr, int dir)
  7942. {
  7943. 8003c16: b480 push {r7}
  7944. 8003c18: b085 sub sp, #20
  7945. 8003c1a: af00 add r7, sp, #0
  7946. 8003c1c: 60f8 str r0, [r7, #12]
  7947. 8003c1e: 60b9 str r1, [r7, #8]
  7948. 8003c20: 607a str r2, [r7, #4]
  7949. (void)file;
  7950. (void)ptr;
  7951. (void)dir;
  7952. return 0;
  7953. 8003c22: 2300 movs r3, #0
  7954. }
  7955. 8003c24: 4618 mov r0, r3
  7956. 8003c26: 3714 adds r7, #20
  7957. 8003c28: 46bd mov sp, r7
  7958. 8003c2a: f85d 7b04 ldr.w r7, [sp], #4
  7959. 8003c2e: 4770 bx lr
  7960. 08003c30 <_sbrk>:
  7961. *
  7962. * @param incr Memory size
  7963. * @return Pointer to allocated memory
  7964. */
  7965. void *_sbrk(ptrdiff_t incr)
  7966. {
  7967. 8003c30: b480 push {r7}
  7968. 8003c32: b087 sub sp, #28
  7969. 8003c34: af00 add r7, sp, #0
  7970. 8003c36: 6078 str r0, [r7, #4]
  7971. extern uint8_t _end; /* Symbol defined in the linker script */
  7972. extern uint8_t _estack; /* Symbol defined in the linker script */
  7973. extern uint32_t _Min_Stack_Size; /* Symbol defined in the linker script */
  7974. const uint32_t stack_limit = (uint32_t)&_estack - (uint32_t)&_Min_Stack_Size;
  7975. 8003c38: 4a14 ldr r2, [pc, #80] @ (8003c8c <_sbrk+0x5c>)
  7976. 8003c3a: 4b15 ldr r3, [pc, #84] @ (8003c90 <_sbrk+0x60>)
  7977. 8003c3c: 1ad3 subs r3, r2, r3
  7978. 8003c3e: 617b str r3, [r7, #20]
  7979. const uint8_t *max_heap = (uint8_t *)stack_limit;
  7980. 8003c40: 697b ldr r3, [r7, #20]
  7981. 8003c42: 613b str r3, [r7, #16]
  7982. uint8_t *prev_heap_end;
  7983. /* Initialize heap end at first call */
  7984. if (NULL == __sbrk_heap_end)
  7985. 8003c44: 4b13 ldr r3, [pc, #76] @ (8003c94 <_sbrk+0x64>)
  7986. 8003c46: 681b ldr r3, [r3, #0]
  7987. 8003c48: 2b00 cmp r3, #0
  7988. 8003c4a: d102 bne.n 8003c52 <_sbrk+0x22>
  7989. {
  7990. __sbrk_heap_end = &_end;
  7991. 8003c4c: 4b11 ldr r3, [pc, #68] @ (8003c94 <_sbrk+0x64>)
  7992. 8003c4e: 4a12 ldr r2, [pc, #72] @ (8003c98 <_sbrk+0x68>)
  7993. 8003c50: 601a str r2, [r3, #0]
  7994. }
  7995. /* Protect heap from growing into the reserved MSP stack */
  7996. if (__sbrk_heap_end + incr > max_heap)
  7997. 8003c52: 4b10 ldr r3, [pc, #64] @ (8003c94 <_sbrk+0x64>)
  7998. 8003c54: 681a ldr r2, [r3, #0]
  7999. 8003c56: 687b ldr r3, [r7, #4]
  8000. 8003c58: 4413 add r3, r2
  8001. 8003c5a: 693a ldr r2, [r7, #16]
  8002. 8003c5c: 429a cmp r2, r3
  8003. 8003c5e: d205 bcs.n 8003c6c <_sbrk+0x3c>
  8004. {
  8005. errno = ENOMEM;
  8006. 8003c60: 4b0e ldr r3, [pc, #56] @ (8003c9c <_sbrk+0x6c>)
  8007. 8003c62: 220c movs r2, #12
  8008. 8003c64: 601a str r2, [r3, #0]
  8009. return (void *)-1;
  8010. 8003c66: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  8011. 8003c6a: e009 b.n 8003c80 <_sbrk+0x50>
  8012. }
  8013. prev_heap_end = __sbrk_heap_end;
  8014. 8003c6c: 4b09 ldr r3, [pc, #36] @ (8003c94 <_sbrk+0x64>)
  8015. 8003c6e: 681b ldr r3, [r3, #0]
  8016. 8003c70: 60fb str r3, [r7, #12]
  8017. __sbrk_heap_end += incr;
  8018. 8003c72: 4b08 ldr r3, [pc, #32] @ (8003c94 <_sbrk+0x64>)
  8019. 8003c74: 681a ldr r2, [r3, #0]
  8020. 8003c76: 687b ldr r3, [r7, #4]
  8021. 8003c78: 4413 add r3, r2
  8022. 8003c7a: 4a06 ldr r2, [pc, #24] @ (8003c94 <_sbrk+0x64>)
  8023. 8003c7c: 6013 str r3, [r2, #0]
  8024. return (void *)prev_heap_end;
  8025. 8003c7e: 68fb ldr r3, [r7, #12]
  8026. }
  8027. 8003c80: 4618 mov r0, r3
  8028. 8003c82: 371c adds r7, #28
  8029. 8003c84: 46bd mov sp, r7
  8030. 8003c86: f85d 7b04 ldr.w r7, [sp], #4
  8031. 8003c8a: 4770 bx lr
  8032. 8003c8c: 24060000 .word 0x24060000
  8033. 8003c90: 00000400 .word 0x00000400
  8034. 8003c94: 24000e6c .word 0x24000e6c
  8035. 8003c98: 2402a2f0 .word 0x2402a2f0
  8036. 8003c9c: 2402a2e4 .word 0x2402a2e4
  8037. 08003ca0 <SystemInit>:
  8038. * configuration.
  8039. * @param None
  8040. * @retval None
  8041. */
  8042. void SystemInit (void)
  8043. {
  8044. 8003ca0: b480 push {r7}
  8045. 8003ca2: af00 add r7, sp, #0
  8046. __IO uint32_t tmpreg;
  8047. #endif /* DATA_IN_D2_SRAM */
  8048. /* FPU settings ------------------------------------------------------------*/
  8049. #if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
  8050. SCB->CPACR |= ((3UL << (10*2))|(3UL << (11*2))); /* set CP10 and CP11 Full Access */
  8051. 8003ca4: 4b37 ldr r3, [pc, #220] @ (8003d84 <SystemInit+0xe4>)
  8052. 8003ca6: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  8053. 8003caa: 4a36 ldr r2, [pc, #216] @ (8003d84 <SystemInit+0xe4>)
  8054. 8003cac: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
  8055. 8003cb0: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  8056. #endif
  8057. /* Reset the RCC clock configuration to the default reset state ------------*/
  8058. /* Increasing the CPU frequency */
  8059. if(FLASH_LATENCY_DEFAULT > (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)))
  8060. 8003cb4: 4b34 ldr r3, [pc, #208] @ (8003d88 <SystemInit+0xe8>)
  8061. 8003cb6: 681b ldr r3, [r3, #0]
  8062. 8003cb8: f003 030f and.w r3, r3, #15
  8063. 8003cbc: 2b06 cmp r3, #6
  8064. 8003cbe: d807 bhi.n 8003cd0 <SystemInit+0x30>
  8065. {
  8066. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  8067. MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT));
  8068. 8003cc0: 4b31 ldr r3, [pc, #196] @ (8003d88 <SystemInit+0xe8>)
  8069. 8003cc2: 681b ldr r3, [r3, #0]
  8070. 8003cc4: f023 030f bic.w r3, r3, #15
  8071. 8003cc8: 4a2f ldr r2, [pc, #188] @ (8003d88 <SystemInit+0xe8>)
  8072. 8003cca: f043 0307 orr.w r3, r3, #7
  8073. 8003cce: 6013 str r3, [r2, #0]
  8074. }
  8075. /* Set HSION bit */
  8076. RCC->CR |= RCC_CR_HSION;
  8077. 8003cd0: 4b2e ldr r3, [pc, #184] @ (8003d8c <SystemInit+0xec>)
  8078. 8003cd2: 681b ldr r3, [r3, #0]
  8079. 8003cd4: 4a2d ldr r2, [pc, #180] @ (8003d8c <SystemInit+0xec>)
  8080. 8003cd6: f043 0301 orr.w r3, r3, #1
  8081. 8003cda: 6013 str r3, [r2, #0]
  8082. /* Reset CFGR register */
  8083. RCC->CFGR = 0x00000000;
  8084. 8003cdc: 4b2b ldr r3, [pc, #172] @ (8003d8c <SystemInit+0xec>)
  8085. 8003cde: 2200 movs r2, #0
  8086. 8003ce0: 611a str r2, [r3, #16]
  8087. /* Reset HSEON, HSECSSON, CSION, HSI48ON, CSIKERON, PLL1ON, PLL2ON and PLL3ON bits */
  8088. RCC->CR &= 0xEAF6ED7FU;
  8089. 8003ce2: 4b2a ldr r3, [pc, #168] @ (8003d8c <SystemInit+0xec>)
  8090. 8003ce4: 681a ldr r2, [r3, #0]
  8091. 8003ce6: 4929 ldr r1, [pc, #164] @ (8003d8c <SystemInit+0xec>)
  8092. 8003ce8: 4b29 ldr r3, [pc, #164] @ (8003d90 <SystemInit+0xf0>)
  8093. 8003cea: 4013 ands r3, r2
  8094. 8003cec: 600b str r3, [r1, #0]
  8095. /* Decreasing the number of wait states because of lower CPU frequency */
  8096. if(FLASH_LATENCY_DEFAULT < (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)))
  8097. 8003cee: 4b26 ldr r3, [pc, #152] @ (8003d88 <SystemInit+0xe8>)
  8098. 8003cf0: 681b ldr r3, [r3, #0]
  8099. 8003cf2: f003 0308 and.w r3, r3, #8
  8100. 8003cf6: 2b00 cmp r3, #0
  8101. 8003cf8: d007 beq.n 8003d0a <SystemInit+0x6a>
  8102. {
  8103. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  8104. MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT));
  8105. 8003cfa: 4b23 ldr r3, [pc, #140] @ (8003d88 <SystemInit+0xe8>)
  8106. 8003cfc: 681b ldr r3, [r3, #0]
  8107. 8003cfe: f023 030f bic.w r3, r3, #15
  8108. 8003d02: 4a21 ldr r2, [pc, #132] @ (8003d88 <SystemInit+0xe8>)
  8109. 8003d04: f043 0307 orr.w r3, r3, #7
  8110. 8003d08: 6013 str r3, [r2, #0]
  8111. }
  8112. #if defined(D3_SRAM_BASE)
  8113. /* Reset D1CFGR register */
  8114. RCC->D1CFGR = 0x00000000;
  8115. 8003d0a: 4b20 ldr r3, [pc, #128] @ (8003d8c <SystemInit+0xec>)
  8116. 8003d0c: 2200 movs r2, #0
  8117. 8003d0e: 619a str r2, [r3, #24]
  8118. /* Reset D2CFGR register */
  8119. RCC->D2CFGR = 0x00000000;
  8120. 8003d10: 4b1e ldr r3, [pc, #120] @ (8003d8c <SystemInit+0xec>)
  8121. 8003d12: 2200 movs r2, #0
  8122. 8003d14: 61da str r2, [r3, #28]
  8123. /* Reset D3CFGR register */
  8124. RCC->D3CFGR = 0x00000000;
  8125. 8003d16: 4b1d ldr r3, [pc, #116] @ (8003d8c <SystemInit+0xec>)
  8126. 8003d18: 2200 movs r2, #0
  8127. 8003d1a: 621a str r2, [r3, #32]
  8128. /* Reset SRDCFGR register */
  8129. RCC->SRDCFGR = 0x00000000;
  8130. #endif
  8131. /* Reset PLLCKSELR register */
  8132. RCC->PLLCKSELR = 0x02020200;
  8133. 8003d1c: 4b1b ldr r3, [pc, #108] @ (8003d8c <SystemInit+0xec>)
  8134. 8003d1e: 4a1d ldr r2, [pc, #116] @ (8003d94 <SystemInit+0xf4>)
  8135. 8003d20: 629a str r2, [r3, #40] @ 0x28
  8136. /* Reset PLLCFGR register */
  8137. RCC->PLLCFGR = 0x01FF0000;
  8138. 8003d22: 4b1a ldr r3, [pc, #104] @ (8003d8c <SystemInit+0xec>)
  8139. 8003d24: 4a1c ldr r2, [pc, #112] @ (8003d98 <SystemInit+0xf8>)
  8140. 8003d26: 62da str r2, [r3, #44] @ 0x2c
  8141. /* Reset PLL1DIVR register */
  8142. RCC->PLL1DIVR = 0x01010280;
  8143. 8003d28: 4b18 ldr r3, [pc, #96] @ (8003d8c <SystemInit+0xec>)
  8144. 8003d2a: 4a1c ldr r2, [pc, #112] @ (8003d9c <SystemInit+0xfc>)
  8145. 8003d2c: 631a str r2, [r3, #48] @ 0x30
  8146. /* Reset PLL1FRACR register */
  8147. RCC->PLL1FRACR = 0x00000000;
  8148. 8003d2e: 4b17 ldr r3, [pc, #92] @ (8003d8c <SystemInit+0xec>)
  8149. 8003d30: 2200 movs r2, #0
  8150. 8003d32: 635a str r2, [r3, #52] @ 0x34
  8151. /* Reset PLL2DIVR register */
  8152. RCC->PLL2DIVR = 0x01010280;
  8153. 8003d34: 4b15 ldr r3, [pc, #84] @ (8003d8c <SystemInit+0xec>)
  8154. 8003d36: 4a19 ldr r2, [pc, #100] @ (8003d9c <SystemInit+0xfc>)
  8155. 8003d38: 639a str r2, [r3, #56] @ 0x38
  8156. /* Reset PLL2FRACR register */
  8157. RCC->PLL2FRACR = 0x00000000;
  8158. 8003d3a: 4b14 ldr r3, [pc, #80] @ (8003d8c <SystemInit+0xec>)
  8159. 8003d3c: 2200 movs r2, #0
  8160. 8003d3e: 63da str r2, [r3, #60] @ 0x3c
  8161. /* Reset PLL3DIVR register */
  8162. RCC->PLL3DIVR = 0x01010280;
  8163. 8003d40: 4b12 ldr r3, [pc, #72] @ (8003d8c <SystemInit+0xec>)
  8164. 8003d42: 4a16 ldr r2, [pc, #88] @ (8003d9c <SystemInit+0xfc>)
  8165. 8003d44: 641a str r2, [r3, #64] @ 0x40
  8166. /* Reset PLL3FRACR register */
  8167. RCC->PLL3FRACR = 0x00000000;
  8168. 8003d46: 4b11 ldr r3, [pc, #68] @ (8003d8c <SystemInit+0xec>)
  8169. 8003d48: 2200 movs r2, #0
  8170. 8003d4a: 645a str r2, [r3, #68] @ 0x44
  8171. /* Reset HSEBYP bit */
  8172. RCC->CR &= 0xFFFBFFFFU;
  8173. 8003d4c: 4b0f ldr r3, [pc, #60] @ (8003d8c <SystemInit+0xec>)
  8174. 8003d4e: 681b ldr r3, [r3, #0]
  8175. 8003d50: 4a0e ldr r2, [pc, #56] @ (8003d8c <SystemInit+0xec>)
  8176. 8003d52: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  8177. 8003d56: 6013 str r3, [r2, #0]
  8178. /* Disable all interrupts */
  8179. RCC->CIER = 0x00000000;
  8180. 8003d58: 4b0c ldr r3, [pc, #48] @ (8003d8c <SystemInit+0xec>)
  8181. 8003d5a: 2200 movs r2, #0
  8182. 8003d5c: 661a str r2, [r3, #96] @ 0x60
  8183. #if (STM32H7_DEV_ID == 0x450UL)
  8184. /* dual core CM7 or single core line */
  8185. if((DBGMCU->IDCODE & 0xFFFF0000U) < 0x20000000U)
  8186. 8003d5e: 4b10 ldr r3, [pc, #64] @ (8003da0 <SystemInit+0x100>)
  8187. 8003d60: 681a ldr r2, [r3, #0]
  8188. 8003d62: 4b10 ldr r3, [pc, #64] @ (8003da4 <SystemInit+0x104>)
  8189. 8003d64: 4013 ands r3, r2
  8190. 8003d66: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  8191. 8003d6a: d202 bcs.n 8003d72 <SystemInit+0xd2>
  8192. {
  8193. /* if stm32h7 revY*/
  8194. /* Change the switch matrix read issuing capability to 1 for the AXI SRAM target (Target 7) */
  8195. *((__IO uint32_t*)0x51008108) = 0x000000001U;
  8196. 8003d6c: 4b0e ldr r3, [pc, #56] @ (8003da8 <SystemInit+0x108>)
  8197. 8003d6e: 2201 movs r2, #1
  8198. 8003d70: 601a str r2, [r3, #0]
  8199. /*
  8200. * Disable the FMC bank1 (enabled after reset).
  8201. * This, prevents CPU speculation access on this bank which blocks the use of FMC during
  8202. * 24us. During this time the others FMC master (such as LTDC) cannot use it!
  8203. */
  8204. FMC_Bank1_R->BTCR[0] = 0x000030D2;
  8205. 8003d72: 4b0e ldr r3, [pc, #56] @ (8003dac <SystemInit+0x10c>)
  8206. 8003d74: f243 02d2 movw r2, #12498 @ 0x30d2
  8207. 8003d78: 601a str r2, [r3, #0]
  8208. #if defined(USER_VECT_TAB_ADDRESS)
  8209. SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal D1 AXI-RAM or in Internal FLASH */
  8210. #endif /* USER_VECT_TAB_ADDRESS */
  8211. #endif /*DUAL_CORE && CORE_CM4*/
  8212. }
  8213. 8003d7a: bf00 nop
  8214. 8003d7c: 46bd mov sp, r7
  8215. 8003d7e: f85d 7b04 ldr.w r7, [sp], #4
  8216. 8003d82: 4770 bx lr
  8217. 8003d84: e000ed00 .word 0xe000ed00
  8218. 8003d88: 52002000 .word 0x52002000
  8219. 8003d8c: 58024400 .word 0x58024400
  8220. 8003d90: eaf6ed7f .word 0xeaf6ed7f
  8221. 8003d94: 02020200 .word 0x02020200
  8222. 8003d98: 01ff0000 .word 0x01ff0000
  8223. 8003d9c: 01010280 .word 0x01010280
  8224. 8003da0: 5c001000 .word 0x5c001000
  8225. 8003da4: ffff0000 .word 0xffff0000
  8226. 8003da8: 51008108 .word 0x51008108
  8227. 8003dac: 52004000 .word 0x52004000
  8228. 08003db0 <Uart8TasksInit>:
  8229. extern osMutexId_t sensorsInfoMutex;
  8230. extern RNG_HandleTypeDef hrng;
  8231. void Uart8TasksInit (void) {
  8232. 8003db0: b580 push {r7, lr}
  8233. 8003db2: b098 sub sp, #96 @ 0x60
  8234. 8003db4: af00 add r7, sp, #0
  8235. osThreadAttr_t osThreadAttrRxUart = { 0 };
  8236. 8003db6: f107 033c add.w r3, r7, #60 @ 0x3c
  8237. 8003dba: 2224 movs r2, #36 @ 0x24
  8238. 8003dbc: 2100 movs r1, #0
  8239. 8003dbe: 4618 mov r0, r3
  8240. 8003dc0: f025 fd36 bl 8029830 <memset>
  8241. osThreadAttr_t osThreadAttrTxUart = { 0 };
  8242. 8003dc4: f107 0318 add.w r3, r7, #24
  8243. 8003dc8: 2224 movs r2, #36 @ 0x24
  8244. 8003dca: 2100 movs r1, #0
  8245. 8003dcc: 4618 mov r0, r3
  8246. 8003dce: f025 fd2f bl 8029830 <memset>
  8247. uart8TaskData.processDataQueue = uart8DecodedFrameDataTaskQueue;
  8248. #else
  8249. // uart8TaskData.processDataQueue = NULL;
  8250. #endif
  8251. uart8TaskData.processRxDataMsgBuffer = xMessageBufferCreate( INPUT_DATA_BUFF_SIZE );
  8252. 8003dd2: 2201 movs r2, #1
  8253. 8003dd4: 2100 movs r1, #0
  8254. 8003dd6: f44f 7080 mov.w r0, #256 @ 0x100
  8255. 8003dda: f00e f95f bl 801209c <xStreamBufferGenericCreate>
  8256. 8003dde: 4603 mov r3, r0
  8257. 8003de0: 4a2c ldr r2, [pc, #176] @ (8003e94 <Uart8TasksInit+0xe4>)
  8258. 8003de2: 6253 str r3, [r2, #36] @ 0x24
  8259. // uart8TaskData.processDataCb = Uart8ReceivedDataProcessCallback;
  8260. uart8TaskData.processDataCb = NULL;
  8261. 8003de4: 4b2b ldr r3, [pc, #172] @ (8003e94 <Uart8TasksInit+0xe4>)
  8262. 8003de6: 2200 movs r2, #0
  8263. 8003de8: 629a str r2, [r3, #40] @ 0x28
  8264. osThreadAttrRxUart.name = "os_thread_uart8_rx";
  8265. 8003dea: 4b2b ldr r3, [pc, #172] @ (8003e98 <Uart8TasksInit+0xe8>)
  8266. 8003dec: 63fb str r3, [r7, #60] @ 0x3c
  8267. osThreadAttrRxUart.stack_size = configMINIMAL_STACK_SIZE * 2;
  8268. 8003dee: f44f 6380 mov.w r3, #1024 @ 0x400
  8269. 8003df2: 653b str r3, [r7, #80] @ 0x50
  8270. osThreadAttrRxUart.priority = (osPriority_t)osPriorityHigh;
  8271. 8003df4: 2328 movs r3, #40 @ 0x28
  8272. 8003df6: 657b str r3, [r7, #84] @ 0x54
  8273. // uart8RxSemaphoreDef.name = "uart8RxSemaphore";
  8274. // uart8RxSemaphore = osSemaphoreNew(1, 1, NULL);
  8275. uart8TaskData.uartRxBuffer = uart8RxBuffer;
  8276. 8003df8: 4b26 ldr r3, [pc, #152] @ (8003e94 <Uart8TasksInit+0xe4>)
  8277. 8003dfa: 4a28 ldr r2, [pc, #160] @ (8003e9c <Uart8TasksInit+0xec>)
  8278. 8003dfc: 601a str r2, [r3, #0]
  8279. uart8TaskData.uartRxBufferLen = UART8_RX_BUFF_SIZE;
  8280. 8003dfe: 4b25 ldr r3, [pc, #148] @ (8003e94 <Uart8TasksInit+0xe4>)
  8281. 8003e00: f44f 7280 mov.w r2, #256 @ 0x100
  8282. 8003e04: 809a strh r2, [r3, #4]
  8283. uart8TaskData.uartTxBuffer = uart8TxBuffer;
  8284. 8003e06: 4b23 ldr r3, [pc, #140] @ (8003e94 <Uart8TasksInit+0xe4>)
  8285. 8003e08: 4a25 ldr r2, [pc, #148] @ (8003ea0 <Uart8TasksInit+0xf0>)
  8286. 8003e0a: 609a str r2, [r3, #8]
  8287. uart8TaskData.uartRxBufferLen = UART8_TX_BUFF_SIZE;
  8288. 8003e0c: 4b21 ldr r3, [pc, #132] @ (8003e94 <Uart8TasksInit+0xe4>)
  8289. 8003e0e: f44f 7280 mov.w r2, #256 @ 0x100
  8290. 8003e12: 809a strh r2, [r3, #4]
  8291. uart8TaskData.frameData = uart8TaskFrameData;
  8292. 8003e14: 4b1f ldr r3, [pc, #124] @ (8003e94 <Uart8TasksInit+0xe4>)
  8293. 8003e16: 4a23 ldr r2, [pc, #140] @ (8003ea4 <Uart8TasksInit+0xf4>)
  8294. 8003e18: 611a str r2, [r3, #16]
  8295. uart8TaskData.frameDataLen = UART8_RX_BUFF_SIZE;
  8296. 8003e1a: 4b1e ldr r3, [pc, #120] @ (8003e94 <Uart8TasksInit+0xe4>)
  8297. 8003e1c: f44f 7280 mov.w r2, #256 @ 0x100
  8298. 8003e20: 829a strh r2, [r3, #20]
  8299. uart8TaskData.huart = &huart8;
  8300. 8003e22: 4b1c ldr r3, [pc, #112] @ (8003e94 <Uart8TasksInit+0xe4>)
  8301. 8003e24: 4a20 ldr r2, [pc, #128] @ (8003ea8 <Uart8TasksInit+0xf8>)
  8302. 8003e26: 631a str r2, [r3, #48] @ 0x30
  8303. uart8TaskData.uartNumber = 8;
  8304. 8003e28: 4b1a ldr r3, [pc, #104] @ (8003e94 <Uart8TasksInit+0xe4>)
  8305. 8003e2a: 2208 movs r2, #8
  8306. 8003e2c: f883 2034 strb.w r2, [r3, #52] @ 0x34
  8307. uart8TaskData.uartRecieveTaskHandle = osThreadNew (UartRxTask, &uart8TaskData, &osThreadAttrRxUart);
  8308. 8003e30: f107 033c add.w r3, r7, #60 @ 0x3c
  8309. 8003e34: 461a mov r2, r3
  8310. 8003e36: 4917 ldr r1, [pc, #92] @ (8003e94 <Uart8TasksInit+0xe4>)
  8311. 8003e38: 481c ldr r0, [pc, #112] @ (8003eac <Uart8TasksInit+0xfc>)
  8312. 8003e3a: f00c faa4 bl 8010386 <osThreadNew>
  8313. 8003e3e: 4603 mov r3, r0
  8314. 8003e40: 4a14 ldr r2, [pc, #80] @ (8003e94 <Uart8TasksInit+0xe4>)
  8315. 8003e42: 6193 str r3, [r2, #24]
  8316. osMessageQueueAttr_t uartTxMsgQueueAttr = { 0 };
  8317. 8003e44: 463b mov r3, r7
  8318. 8003e46: 2200 movs r2, #0
  8319. 8003e48: 601a str r2, [r3, #0]
  8320. 8003e4a: 605a str r2, [r3, #4]
  8321. 8003e4c: 609a str r2, [r3, #8]
  8322. 8003e4e: 60da str r2, [r3, #12]
  8323. 8003e50: 611a str r2, [r3, #16]
  8324. 8003e52: 615a str r2, [r3, #20]
  8325. uartTxMsgQueueAttr.name = "uart8TxMsgQueue";
  8326. 8003e54: 4b16 ldr r3, [pc, #88] @ (8003eb0 <Uart8TasksInit+0x100>)
  8327. 8003e56: 603b str r3, [r7, #0]
  8328. uart8TaskData.sendCmdToSlaveQueue = osMessageQueueNew (16, sizeof (InterProcessData), &uartTxMsgQueueAttr);
  8329. 8003e58: 463b mov r3, r7
  8330. 8003e5a: 461a mov r2, r3
  8331. 8003e5c: 210c movs r1, #12
  8332. 8003e5e: 2010 movs r0, #16
  8333. 8003e60: f00c fd9c bl 801099c <osMessageQueueNew>
  8334. 8003e64: 4603 mov r3, r0
  8335. 8003e66: 4a0b ldr r2, [pc, #44] @ (8003e94 <Uart8TasksInit+0xe4>)
  8336. 8003e68: 62d3 str r3, [r2, #44] @ 0x2c
  8337. osThreadAttrTxUart.name = "os_thread_uart8_tx";
  8338. 8003e6a: 4b12 ldr r3, [pc, #72] @ (8003eb4 <Uart8TasksInit+0x104>)
  8339. 8003e6c: 61bb str r3, [r7, #24]
  8340. osThreadAttrTxUart.stack_size = configMINIMAL_STACK_SIZE * 4;
  8341. 8003e6e: f44f 6300 mov.w r3, #2048 @ 0x800
  8342. 8003e72: 62fb str r3, [r7, #44] @ 0x2c
  8343. osThreadAttrTxUart.priority = (osPriority_t)osPriorityNormal;
  8344. 8003e74: 2318 movs r3, #24
  8345. 8003e76: 633b str r3, [r7, #48] @ 0x30
  8346. uart8TaskData.uartTransmitTaskHandle = osThreadNew (UartTxTask, &uart8TaskData, &osThreadAttrTxUart);
  8347. 8003e78: f107 0318 add.w r3, r7, #24
  8348. 8003e7c: 461a mov r2, r3
  8349. 8003e7e: 4905 ldr r1, [pc, #20] @ (8003e94 <Uart8TasksInit+0xe4>)
  8350. 8003e80: 480d ldr r0, [pc, #52] @ (8003eb8 <Uart8TasksInit+0x108>)
  8351. 8003e82: f00c fa80 bl 8010386 <osThreadNew>
  8352. 8003e86: 4603 mov r3, r0
  8353. 8003e88: 4a02 ldr r2, [pc, #8] @ (8003e94 <Uart8TasksInit+0xe4>)
  8354. 8003e8a: 61d3 str r3, [r2, #28]
  8355. }
  8356. 8003e8c: bf00 nop
  8357. 8003e8e: 3760 adds r7, #96 @ 0x60
  8358. 8003e90: 46bd mov sp, r7
  8359. 8003e92: bd80 pop {r7, pc}
  8360. 8003e94: 24001218 .word 0x24001218
  8361. 8003e98: 0802c440 .word 0x0802c440
  8362. 8003e9c: 24000e70 .word 0x24000e70
  8363. 8003ea0: 24000f70 .word 0x24000f70
  8364. 8003ea4: 24001070 .word 0x24001070
  8365. 8003ea8: 2400026c .word 0x2400026c
  8366. 8003eac: 08003fb1 .word 0x08003fb1
  8367. 8003eb0: 0802c454 .word 0x0802c454
  8368. 8003eb4: 0802c464 .word 0x0802c464
  8369. 8003eb8: 08004591 .word 0x08004591
  8370. 08003ebc <HAL_UART_RxCpltCallback>:
  8371. void HAL_UART_RxCpltCallback (UART_HandleTypeDef* huart) {
  8372. 8003ebc: b480 push {r7}
  8373. 8003ebe: b083 sub sp, #12
  8374. 8003ec0: af00 add r7, sp, #0
  8375. 8003ec2: 6078 str r0, [r7, #4]
  8376. // osSemaphoreRelease(uart8RxSemaphore);
  8377. }
  8378. 8003ec4: bf00 nop
  8379. 8003ec6: 370c adds r7, #12
  8380. 8003ec8: 46bd mov sp, r7
  8381. 8003eca: f85d 7b04 ldr.w r7, [sp], #4
  8382. 8003ece: 4770 bx lr
  8383. 08003ed0 <HAL_UARTEx_RxEventCallback>:
  8384. void HAL_UARTEx_RxEventCallback (UART_HandleTypeDef* huart, uint16_t Size) {
  8385. 8003ed0: b580 push {r7, lr}
  8386. 8003ed2: b082 sub sp, #8
  8387. 8003ed4: af00 add r7, sp, #0
  8388. 8003ed6: 6078 str r0, [r7, #4]
  8389. 8003ed8: 460b mov r3, r1
  8390. 8003eda: 807b strh r3, [r7, #2]
  8391. if (huart->Instance == UART8) {
  8392. 8003edc: 687b ldr r3, [r7, #4]
  8393. 8003ede: 681b ldr r3, [r3, #0]
  8394. 8003ee0: 4a06 ldr r2, [pc, #24] @ (8003efc <HAL_UARTEx_RxEventCallback+0x2c>)
  8395. 8003ee2: 4293 cmp r3, r2
  8396. 8003ee4: d105 bne.n 8003ef2 <HAL_UARTEx_RxEventCallback+0x22>
  8397. HandleUartRxCallback (&uart8TaskData, huart, Size);
  8398. 8003ee6: 887b ldrh r3, [r7, #2]
  8399. 8003ee8: 461a mov r2, r3
  8400. 8003eea: 6879 ldr r1, [r7, #4]
  8401. 8003eec: 4804 ldr r0, [pc, #16] @ (8003f00 <HAL_UARTEx_RxEventCallback+0x30>)
  8402. 8003eee: f000 f813 bl 8003f18 <HandleUartRxCallback>
  8403. }
  8404. }
  8405. 8003ef2: bf00 nop
  8406. 8003ef4: 3708 adds r7, #8
  8407. 8003ef6: 46bd mov sp, r7
  8408. 8003ef8: bd80 pop {r7, pc}
  8409. 8003efa: bf00 nop
  8410. 8003efc: 40007c00 .word 0x40007c00
  8411. 8003f00: 24001218 .word 0x24001218
  8412. 08003f04 <HAL_UART_TxCpltCallback>:
  8413. void HAL_UART_TxCpltCallback (UART_HandleTypeDef* huart) {
  8414. 8003f04: b480 push {r7}
  8415. 8003f06: b083 sub sp, #12
  8416. 8003f08: af00 add r7, sp, #0
  8417. 8003f0a: 6078 str r0, [r7, #4]
  8418. if (huart->Instance == UART8) {
  8419. }
  8420. }
  8421. 8003f0c: bf00 nop
  8422. 8003f0e: 370c adds r7, #12
  8423. 8003f10: 46bd mov sp, r7
  8424. 8003f12: f85d 7b04 ldr.w r7, [sp], #4
  8425. 8003f16: 4770 bx lr
  8426. 08003f18 <HandleUartRxCallback>:
  8427. void HandleUartRxCallback (UartTaskData* uartTaskData, UART_HandleTypeDef* huart, uint16_t Size) {
  8428. 8003f18: b580 push {r7, lr}
  8429. 8003f1a: b088 sub sp, #32
  8430. 8003f1c: af02 add r7, sp, #8
  8431. 8003f1e: 60f8 str r0, [r7, #12]
  8432. 8003f20: 60b9 str r1, [r7, #8]
  8433. 8003f22: 4613 mov r3, r2
  8434. 8003f24: 80fb strh r3, [r7, #6]
  8435. BaseType_t pxHigherPriorityTaskWoken = pdFALSE;
  8436. 8003f26: 2300 movs r3, #0
  8437. 8003f28: 617b str r3, [r7, #20]
  8438. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  8439. 8003f2a: 68fb ldr r3, [r7, #12]
  8440. 8003f2c: 6a1b ldr r3, [r3, #32]
  8441. 8003f2e: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  8442. 8003f32: 4618 mov r0, r3
  8443. 8003f34: f00c fb66 bl 8010604 <osMutexAcquire>
  8444. memcpy (&(uartTaskData->frameData[uartTaskData->frameBytesCount]), uartTaskData->uartRxBuffer, Size);
  8445. 8003f38: 68fb ldr r3, [r7, #12]
  8446. 8003f3a: 691b ldr r3, [r3, #16]
  8447. 8003f3c: 68fa ldr r2, [r7, #12]
  8448. 8003f3e: 8ad2 ldrh r2, [r2, #22]
  8449. 8003f40: 1898 adds r0, r3, r2
  8450. 8003f42: 68fb ldr r3, [r7, #12]
  8451. 8003f44: 681b ldr r3, [r3, #0]
  8452. 8003f46: 88fa ldrh r2, [r7, #6]
  8453. 8003f48: 4619 mov r1, r3
  8454. 8003f4a: f025 fd68 bl 8029a1e <memcpy>
  8455. uartTaskData->frameBytesCount += Size;
  8456. 8003f4e: 68fb ldr r3, [r7, #12]
  8457. 8003f50: 8ada ldrh r2, [r3, #22]
  8458. 8003f52: 88fb ldrh r3, [r7, #6]
  8459. 8003f54: 4413 add r3, r2
  8460. 8003f56: b29a uxth r2, r3
  8461. 8003f58: 68fb ldr r3, [r7, #12]
  8462. 8003f5a: 82da strh r2, [r3, #22]
  8463. osMutexRelease (uartTaskData->rxDataBufferMutex);
  8464. 8003f5c: 68fb ldr r3, [r7, #12]
  8465. 8003f5e: 6a1b ldr r3, [r3, #32]
  8466. 8003f60: 4618 mov r0, r3
  8467. 8003f62: f00c fb9a bl 801069a <osMutexRelease>
  8468. xTaskNotifyFromISR (uartTaskData->uartRecieveTaskHandle, Size, eSetValueWithOverwrite, &pxHigherPriorityTaskWoken);
  8469. 8003f66: 68fb ldr r3, [r7, #12]
  8470. 8003f68: 6998 ldr r0, [r3, #24]
  8471. 8003f6a: 88f9 ldrh r1, [r7, #6]
  8472. 8003f6c: f107 0314 add.w r3, r7, #20
  8473. 8003f70: 9300 str r3, [sp, #0]
  8474. 8003f72: 2300 movs r3, #0
  8475. 8003f74: 2203 movs r2, #3
  8476. 8003f76: f00f fd89 bl 8013a8c <xTaskGenericNotifyFromISR>
  8477. // HAL_UARTEx_ReceiveToIdle_DMA(huart, uart8RxBuffer, UART8_RX_BUFF_SIZE);
  8478. // __HAL_DMA_DISABLE_IT(&hdma_uart8_rx, DMA_IT_HT);
  8479. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  8480. 8003f7a: 68fb ldr r3, [r7, #12]
  8481. 8003f7c: 6b18 ldr r0, [r3, #48] @ 0x30
  8482. 8003f7e: 68fb ldr r3, [r7, #12]
  8483. 8003f80: 6819 ldr r1, [r3, #0]
  8484. 8003f82: 68fb ldr r3, [r7, #12]
  8485. 8003f84: 889b ldrh r3, [r3, #4]
  8486. 8003f86: 461a mov r2, r3
  8487. 8003f88: f00b fa19 bl 800f3be <HAL_UARTEx_ReceiveToIdle_IT>
  8488. portEND_SWITCHING_ISR (pxHigherPriorityTaskWoken);
  8489. 8003f8c: 697b ldr r3, [r7, #20]
  8490. 8003f8e: 2b00 cmp r3, #0
  8491. 8003f90: d007 beq.n 8003fa2 <HandleUartRxCallback+0x8a>
  8492. 8003f92: 4b06 ldr r3, [pc, #24] @ (8003fac <HandleUartRxCallback+0x94>)
  8493. 8003f94: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  8494. 8003f98: 601a str r2, [r3, #0]
  8495. 8003f9a: f3bf 8f4f dsb sy
  8496. 8003f9e: f3bf 8f6f isb sy
  8497. }
  8498. 8003fa2: bf00 nop
  8499. 8003fa4: 3718 adds r7, #24
  8500. 8003fa6: 46bd mov sp, r7
  8501. 8003fa8: bd80 pop {r7, pc}
  8502. 8003faa: bf00 nop
  8503. 8003fac: e000ed04 .word 0xe000ed04
  8504. 08003fb0 <UartRxTask>:
  8505. void UartRxTask (void* argument) {
  8506. 8003fb0: b580 push {r7, lr}
  8507. 8003fb2: b0d2 sub sp, #328 @ 0x148
  8508. 8003fb4: af02 add r7, sp, #8
  8509. 8003fb6: f507 73a0 add.w r3, r7, #320 @ 0x140
  8510. 8003fba: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  8511. 8003fbe: 6018 str r0, [r3, #0]
  8512. UartTaskData* uartTaskData = (UartTaskData*)argument;
  8513. 8003fc0: f507 73a0 add.w r3, r7, #320 @ 0x140
  8514. 8003fc4: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  8515. 8003fc8: 681b ldr r3, [r3, #0]
  8516. 8003fca: f8c7 312c str.w r3, [r7, #300] @ 0x12c
  8517. SerialProtocolFrameData spFrameData = { 0 };
  8518. 8003fce: f507 73a0 add.w r3, r7, #320 @ 0x140
  8519. 8003fd2: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  8520. 8003fd6: 4618 mov r0, r3
  8521. 8003fd8: f44f 7386 mov.w r3, #268 @ 0x10c
  8522. 8003fdc: 461a mov r2, r3
  8523. 8003fde: 2100 movs r1, #0
  8524. 8003fe0: f025 fc26 bl 8029830 <memset>
  8525. uint32_t bytesRec = 0;
  8526. 8003fe4: f507 73a0 add.w r3, r7, #320 @ 0x140
  8527. 8003fe8: f5a3 739a sub.w r3, r3, #308 @ 0x134
  8528. 8003fec: 2200 movs r2, #0
  8529. 8003fee: 601a str r2, [r3, #0]
  8530. uint32_t crc = 0;
  8531. 8003ff0: 2300 movs r3, #0
  8532. 8003ff2: f8c7 3128 str.w r3, [r7, #296] @ 0x128
  8533. uint16_t frameCommandRaw = 0x0000;
  8534. 8003ff6: 2300 movs r3, #0
  8535. 8003ff8: f8a7 3126 strh.w r3, [r7, #294] @ 0x126
  8536. uint16_t frameBytesCount = 0;
  8537. 8003ffc: 2300 movs r3, #0
  8538. 8003ffe: f8a7 3124 strh.w r3, [r7, #292] @ 0x124
  8539. uint16_t frameCrc = 0;
  8540. 8004002: 2300 movs r3, #0
  8541. 8004004: f8a7 3122 strh.w r3, [r7, #290] @ 0x122
  8542. uint16_t frameTotalLength = 0;
  8543. 8004008: 2300 movs r3, #0
  8544. 800400a: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  8545. uint16_t dataToSend = 0;
  8546. 800400e: 2300 movs r3, #0
  8547. 8004010: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  8548. portBASE_TYPE crcPass = pdFAIL;
  8549. 8004014: 2300 movs r3, #0
  8550. 8004016: f8c7 3138 str.w r3, [r7, #312] @ 0x138
  8551. portBASE_TYPE proceed = pdFALSE;
  8552. 800401a: 2300 movs r3, #0
  8553. 800401c: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  8554. portBASE_TYPE frameTimeout = pdFAIL;
  8555. 8004020: 2300 movs r3, #0
  8556. 8004022: f8c7 311c str.w r3, [r7, #284] @ 0x11c
  8557. enum SerialReceiverStates receverState = srWaitForHeader;
  8558. 8004026: 2300 movs r3, #0
  8559. 8004028: f887 3133 strb.w r3, [r7, #307] @ 0x133
  8560. uartTaskData->rxDataBufferMutex = osMutexNew (NULL);
  8561. 800402c: 2000 movs r0, #0
  8562. 800402e: f00c fa63 bl 80104f8 <osMutexNew>
  8563. 8004032: 4602 mov r2, r0
  8564. 8004034: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8565. 8004038: 621a str r2, [r3, #32]
  8566. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  8567. 800403a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8568. 800403e: 6b18 ldr r0, [r3, #48] @ 0x30
  8569. 8004040: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8570. 8004044: 6819 ldr r1, [r3, #0]
  8571. 8004046: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8572. 800404a: 889b ldrh r3, [r3, #4]
  8573. 800404c: 461a mov r2, r3
  8574. 800404e: f00b f9b6 bl 800f3be <HAL_UARTEx_ReceiveToIdle_IT>
  8575. // HAL_UARTEx_ReceiveToIdle_DMA(&huart8, uart8RxBuffer, 32);
  8576. while (pdTRUE) {
  8577. // HAL_UART_Receive_IT(&huart8, uart8RxBuffer, 1);
  8578. // if(osSemaphoreAcquire(uart8RxSemaphore, pdMS_TO_TICKS(1000)) !=
  8579. // osOK) if(xTaskNotifyWait(0, 0, &bytesRec, portMAX_DELAY) == pdTrue)
  8580. frameTimeout = !(xTaskNotifyWait (0, 0, &bytesRec, pdMS_TO_TICKS (FRAME_TIMEOUT_MS)));
  8581. 8004052: f107 020c add.w r2, r7, #12
  8582. 8004056: f44f 63fa mov.w r3, #2000 @ 0x7d0
  8583. 800405a: 2100 movs r1, #0
  8584. 800405c: 2000 movs r0, #0
  8585. 800405e: f00f fbf3 bl 8013848 <xTaskNotifyWait>
  8586. 8004062: 4603 mov r3, r0
  8587. 8004064: 2b00 cmp r3, #0
  8588. 8004066: bf0c ite eq
  8589. 8004068: 2301 moveq r3, #1
  8590. 800406a: 2300 movne r3, #0
  8591. 800406c: b2db uxtb r3, r3
  8592. 800406e: f8c7 311c str.w r3, [r7, #284] @ 0x11c
  8593. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  8594. 8004072: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8595. 8004076: 6a1b ldr r3, [r3, #32]
  8596. 8004078: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  8597. 800407c: 4618 mov r0, r3
  8598. 800407e: f00c fac1 bl 8010604 <osMutexAcquire>
  8599. frameBytesCount = uartTaskData->frameBytesCount;
  8600. 8004082: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8601. 8004086: 8adb ldrh r3, [r3, #22]
  8602. 8004088: f8a7 3124 strh.w r3, [r7, #292] @ 0x124
  8603. osMutexRelease (uartTaskData->rxDataBufferMutex);
  8604. 800408c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8605. 8004090: 6a1b ldr r3, [r3, #32]
  8606. 8004092: 4618 mov r0, r3
  8607. 8004094: f00c fb01 bl 801069a <osMutexRelease>
  8608. if ((frameTimeout == pdTRUE) && (frameBytesCount > 0)) {
  8609. 8004098: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  8610. 800409c: 2b01 cmp r3, #1
  8611. 800409e: d10a bne.n 80040b6 <UartRxTask+0x106>
  8612. 80040a0: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  8613. 80040a4: 2b00 cmp r3, #0
  8614. 80040a6: d006 beq.n 80040b6 <UartRxTask+0x106>
  8615. receverState = srFail;
  8616. 80040a8: 2304 movs r3, #4
  8617. 80040aa: f887 3133 strb.w r3, [r7, #307] @ 0x133
  8618. proceed = pdTRUE;
  8619. 80040ae: 2301 movs r3, #1
  8620. 80040b0: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  8621. 80040b4: e029 b.n 800410a <UartRxTask+0x15a>
  8622. } else {
  8623. if (frameTimeout == pdFALSE) {
  8624. 80040b6: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  8625. 80040ba: 2b00 cmp r3, #0
  8626. 80040bc: d111 bne.n 80040e2 <UartRxTask+0x132>
  8627. proceed = pdTRUE;
  8628. 80040be: 2301 movs r3, #1
  8629. 80040c0: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  8630. #if UART_TASK_LOGS
  8631. printf ("Uart%d: RX bytes received: %ld\n", uartTaskData->uartNumber, bytesRec);
  8632. 80040c4: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8633. 80040c8: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  8634. 80040cc: 4619 mov r1, r3
  8635. 80040ce: f507 73a0 add.w r3, r7, #320 @ 0x140
  8636. 80040d2: f5a3 739a sub.w r3, r3, #308 @ 0x134
  8637. 80040d6: 681b ldr r3, [r3, #0]
  8638. 80040d8: 461a mov r2, r3
  8639. 80040da: 48c1 ldr r0, [pc, #772] @ (80043e0 <UartRxTask+0x430>)
  8640. 80040dc: f025 fa16 bl 802950c <iprintf>
  8641. 80040e0: e225 b.n 800452e <UartRxTask+0x57e>
  8642. #endif
  8643. } else {
  8644. if (uartTaskData->huart->RxState == HAL_UART_STATE_READY) {
  8645. 80040e2: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8646. 80040e6: 6b1b ldr r3, [r3, #48] @ 0x30
  8647. 80040e8: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  8648. 80040ec: 2b20 cmp r3, #32
  8649. 80040ee: f040 821e bne.w 800452e <UartRxTask+0x57e>
  8650. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  8651. 80040f2: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8652. 80040f6: 6b18 ldr r0, [r3, #48] @ 0x30
  8653. 80040f8: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8654. 80040fc: 6819 ldr r1, [r3, #0]
  8655. 80040fe: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8656. 8004102: 889b ldrh r3, [r3, #4]
  8657. 8004104: 461a mov r2, r3
  8658. 8004106: f00b f95a bl 800f3be <HAL_UARTEx_ReceiveToIdle_IT>
  8659. }
  8660. }
  8661. }
  8662. while (proceed) {
  8663. 800410a: e210 b.n 800452e <UartRxTask+0x57e>
  8664. switch (receverState) {
  8665. 800410c: f897 3133 ldrb.w r3, [r7, #307] @ 0x133
  8666. 8004110: 2b04 cmp r3, #4
  8667. 8004112: f200 81e7 bhi.w 80044e4 <UartRxTask+0x534>
  8668. 8004116: a201 add r2, pc, #4 @ (adr r2, 800411c <UartRxTask+0x16c>)
  8669. 8004118: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  8670. 800411c: 08004131 .word 0x08004131
  8671. 8004120: 08004293 .word 0x08004293
  8672. 8004124: 08004277 .word 0x08004277
  8673. 8004128: 08004333 .word 0x08004333
  8674. 800412c: 080043ed .word 0x080043ed
  8675. case srWaitForHeader:
  8676. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  8677. 8004130: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8678. 8004134: 6a1b ldr r3, [r3, #32]
  8679. 8004136: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  8680. 800413a: 4618 mov r0, r3
  8681. 800413c: f00c fa62 bl 8010604 <osMutexAcquire>
  8682. if (uartTaskData->frameData[0] == FRAME_INDICATOR) {
  8683. 8004140: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8684. 8004144: 691b ldr r3, [r3, #16]
  8685. 8004146: 781b ldrb r3, [r3, #0]
  8686. 8004148: 2baa cmp r3, #170 @ 0xaa
  8687. 800414a: f040 8082 bne.w 8004252 <UartRxTask+0x2a2>
  8688. if (frameBytesCount > FRAME_ID_LENGTH) {
  8689. 800414e: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  8690. 8004152: 2b02 cmp r3, #2
  8691. 8004154: d914 bls.n 8004180 <UartRxTask+0x1d0>
  8692. spFrameData.frameHeader.frameId =
  8693. CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH - FRAME_ID_LENGTH - FRAME_COMMAND_LENGTH]));
  8694. 8004156: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8695. 800415a: 691b ldr r3, [r3, #16]
  8696. 800415c: 3302 adds r3, #2
  8697. 800415e: 781b ldrb r3, [r3, #0]
  8698. 8004160: 021b lsls r3, r3, #8
  8699. 8004162: b21a sxth r2, r3
  8700. 8004164: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8701. 8004168: 691b ldr r3, [r3, #16]
  8702. 800416a: 3301 adds r3, #1
  8703. 800416c: 781b ldrb r3, [r3, #0]
  8704. 800416e: b21b sxth r3, r3
  8705. 8004170: 4313 orrs r3, r2
  8706. 8004172: b21b sxth r3, r3
  8707. 8004174: b29a uxth r2, r3
  8708. spFrameData.frameHeader.frameId =
  8709. 8004176: f507 73a0 add.w r3, r7, #320 @ 0x140
  8710. 800417a: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  8711. 800417e: 801a strh r2, [r3, #0]
  8712. }
  8713. if (frameBytesCount > FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH) {
  8714. 8004180: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  8715. 8004184: 2b04 cmp r3, #4
  8716. 8004186: d923 bls.n 80041d0 <UartRxTask+0x220>
  8717. frameCommandRaw = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH - FRAME_COMMAND_LENGTH]));
  8718. 8004188: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8719. 800418c: 691b ldr r3, [r3, #16]
  8720. 800418e: 3304 adds r3, #4
  8721. 8004190: 781b ldrb r3, [r3, #0]
  8722. 8004192: 021b lsls r3, r3, #8
  8723. 8004194: b21a sxth r2, r3
  8724. 8004196: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8725. 800419a: 691b ldr r3, [r3, #16]
  8726. 800419c: 3303 adds r3, #3
  8727. 800419e: 781b ldrb r3, [r3, #0]
  8728. 80041a0: b21b sxth r3, r3
  8729. 80041a2: 4313 orrs r3, r2
  8730. 80041a4: b21b sxth r3, r3
  8731. 80041a6: f8a7 3126 strh.w r3, [r7, #294] @ 0x126
  8732. spFrameData.frameHeader.frameCommand = (SerialProtocolCommands)(frameCommandRaw & 0x7FFF);
  8733. 80041aa: f8b7 3126 ldrh.w r3, [r7, #294] @ 0x126
  8734. 80041ae: b2da uxtb r2, r3
  8735. 80041b0: f507 73a0 add.w r3, r7, #320 @ 0x140
  8736. 80041b4: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  8737. 80041b8: 709a strb r2, [r3, #2]
  8738. spFrameData.frameHeader.isResponseFrame = (frameCommandRaw & 0x8000) != 0 ? pdTRUE : pdFALSE;
  8739. 80041ba: f9b7 3126 ldrsh.w r3, [r7, #294] @ 0x126
  8740. 80041be: 13db asrs r3, r3, #15
  8741. 80041c0: b21b sxth r3, r3
  8742. 80041c2: f003 0201 and.w r2, r3, #1
  8743. 80041c6: f507 73a0 add.w r3, r7, #320 @ 0x140
  8744. 80041ca: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  8745. 80041ce: 609a str r2, [r3, #8]
  8746. }
  8747. if ((frameBytesCount > FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH + FRAME_RESP_STAT_LENGTH) && ((spFrameData.frameHeader.frameCommand & 0x8000) != 0)) {
  8748. 80041d0: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  8749. 80041d4: 2b05 cmp r3, #5
  8750. 80041d6: d913 bls.n 8004200 <UartRxTask+0x250>
  8751. 80041d8: f507 73a0 add.w r3, r7, #320 @ 0x140
  8752. 80041dc: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  8753. 80041e0: 789b ldrb r3, [r3, #2]
  8754. 80041e2: f403 4300 and.w r3, r3, #32768 @ 0x8000
  8755. 80041e6: 2b00 cmp r3, #0
  8756. 80041e8: d00a beq.n 8004200 <UartRxTask+0x250>
  8757. spFrameData.frameHeader.respStatus = (SerialProtocolRespStatus)(uartTaskData->frameData[FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH + FRAME_RESP_STAT_LENGTH]);
  8758. 80041ea: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8759. 80041ee: 691b ldr r3, [r3, #16]
  8760. 80041f0: 3305 adds r3, #5
  8761. 80041f2: 781b ldrb r3, [r3, #0]
  8762. 80041f4: b25a sxtb r2, r3
  8763. 80041f6: f507 73a0 add.w r3, r7, #320 @ 0x140
  8764. 80041fa: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  8765. 80041fe: 70da strb r2, [r3, #3]
  8766. }
  8767. if (frameBytesCount >= FRAME_HEADER_LENGTH) {
  8768. 8004200: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  8769. 8004204: 2b07 cmp r3, #7
  8770. 8004206: d920 bls.n 800424a <UartRxTask+0x29a>
  8771. spFrameData.frameHeader.frameDataLength = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH]));
  8772. 8004208: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8773. 800420c: 691b ldr r3, [r3, #16]
  8774. 800420e: 3306 adds r3, #6
  8775. 8004210: 781b ldrb r3, [r3, #0]
  8776. 8004212: 021b lsls r3, r3, #8
  8777. 8004214: b21a sxth r2, r3
  8778. 8004216: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8779. 800421a: 691b ldr r3, [r3, #16]
  8780. 800421c: 3305 adds r3, #5
  8781. 800421e: 781b ldrb r3, [r3, #0]
  8782. 8004220: b21b sxth r3, r3
  8783. 8004222: 4313 orrs r3, r2
  8784. 8004224: b21b sxth r3, r3
  8785. 8004226: b29a uxth r2, r3
  8786. 8004228: f507 73a0 add.w r3, r7, #320 @ 0x140
  8787. 800422c: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  8788. 8004230: 809a strh r2, [r3, #4]
  8789. frameTotalLength = FRAME_HEADER_LENGTH + spFrameData.frameHeader.frameDataLength + FRAME_CRC_LENGTH;
  8790. 8004232: f507 73a0 add.w r3, r7, #320 @ 0x140
  8791. 8004236: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  8792. 800423a: 889b ldrh r3, [r3, #4]
  8793. 800423c: 330a adds r3, #10
  8794. 800423e: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  8795. receverState = srRecieveData;
  8796. 8004242: 2302 movs r3, #2
  8797. 8004244: f887 3133 strb.w r3, [r7, #307] @ 0x133
  8798. 8004248: e00e b.n 8004268 <UartRxTask+0x2b8>
  8799. } else {
  8800. proceed = pdFALSE;
  8801. 800424a: 2300 movs r3, #0
  8802. 800424c: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  8803. 8004250: e00a b.n 8004268 <UartRxTask+0x2b8>
  8804. }
  8805. } else {
  8806. if (frameBytesCount > 0) {
  8807. 8004252: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  8808. 8004256: 2b00 cmp r3, #0
  8809. 8004258: d003 beq.n 8004262 <UartRxTask+0x2b2>
  8810. receverState = srFail;
  8811. 800425a: 2304 movs r3, #4
  8812. 800425c: f887 3133 strb.w r3, [r7, #307] @ 0x133
  8813. 8004260: e002 b.n 8004268 <UartRxTask+0x2b8>
  8814. } else {
  8815. proceed = pdFALSE;
  8816. 8004262: 2300 movs r3, #0
  8817. 8004264: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  8818. }
  8819. }
  8820. osMutexRelease (uartTaskData->rxDataBufferMutex);
  8821. 8004268: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8822. 800426c: 6a1b ldr r3, [r3, #32]
  8823. 800426e: 4618 mov r0, r3
  8824. 8004270: f00c fa13 bl 801069a <osMutexRelease>
  8825. break;
  8826. 8004274: e15b b.n 800452e <UartRxTask+0x57e>
  8827. case srRecieveData:
  8828. if (frameBytesCount >= frameTotalLength) {
  8829. 8004276: f8b7 2124 ldrh.w r2, [r7, #292] @ 0x124
  8830. 800427a: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  8831. 800427e: 429a cmp r2, r3
  8832. 8004280: d303 bcc.n 800428a <UartRxTask+0x2da>
  8833. receverState = srCheckCrc;
  8834. 8004282: 2301 movs r3, #1
  8835. 8004284: f887 3133 strb.w r3, [r7, #307] @ 0x133
  8836. } else {
  8837. proceed = pdFALSE;
  8838. }
  8839. break;
  8840. 8004288: e151 b.n 800452e <UartRxTask+0x57e>
  8841. proceed = pdFALSE;
  8842. 800428a: 2300 movs r3, #0
  8843. 800428c: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  8844. break;
  8845. 8004290: e14d b.n 800452e <UartRxTask+0x57e>
  8846. case srCheckCrc:
  8847. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  8848. 8004292: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8849. 8004296: 6a1b ldr r3, [r3, #32]
  8850. 8004298: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  8851. 800429c: 4618 mov r0, r3
  8852. 800429e: f00c f9b1 bl 8010604 <osMutexAcquire>
  8853. frameCrc = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[frameTotalLength - FRAME_CRC_LENGTH]));
  8854. 80042a2: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8855. 80042a6: 691a ldr r2, [r3, #16]
  8856. 80042a8: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  8857. 80042ac: 3b01 subs r3, #1
  8858. 80042ae: 4413 add r3, r2
  8859. 80042b0: 781b ldrb r3, [r3, #0]
  8860. 80042b2: 021b lsls r3, r3, #8
  8861. 80042b4: b21a sxth r2, r3
  8862. 80042b6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8863. 80042ba: 6919 ldr r1, [r3, #16]
  8864. 80042bc: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  8865. 80042c0: 3b02 subs r3, #2
  8866. 80042c2: 440b add r3, r1
  8867. 80042c4: 781b ldrb r3, [r3, #0]
  8868. 80042c6: b21b sxth r3, r3
  8869. 80042c8: 4313 orrs r3, r2
  8870. 80042ca: b21b sxth r3, r3
  8871. 80042cc: f8a7 3122 strh.w r3, [r7, #290] @ 0x122
  8872. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)(uartTaskData->frameData), frameTotalLength - FRAME_CRC_LENGTH);
  8873. 80042d0: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8874. 80042d4: 6919 ldr r1, [r3, #16]
  8875. 80042d6: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  8876. 80042da: 3b02 subs r3, #2
  8877. 80042dc: 461a mov r2, r3
  8878. 80042de: 4841 ldr r0, [pc, #260] @ (80043e4 <UartRxTask+0x434>)
  8879. 80042e0: f000 fe62 bl 8004fa8 <HAL_CRC_Calculate>
  8880. 80042e4: f8c7 0128 str.w r0, [r7, #296] @ 0x128
  8881. osMutexRelease (uartTaskData->rxDataBufferMutex);
  8882. 80042e8: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8883. 80042ec: 6a1b ldr r3, [r3, #32]
  8884. 80042ee: 4618 mov r0, r3
  8885. 80042f0: f00c f9d3 bl 801069a <osMutexRelease>
  8886. crcPass = frameCrc == crc;
  8887. 80042f4: f8b7 3122 ldrh.w r3, [r7, #290] @ 0x122
  8888. 80042f8: f8d7 2128 ldr.w r2, [r7, #296] @ 0x128
  8889. 80042fc: 429a cmp r2, r3
  8890. 80042fe: bf0c ite eq
  8891. 8004300: 2301 moveq r3, #1
  8892. 8004302: 2300 movne r3, #0
  8893. 8004304: b2db uxtb r3, r3
  8894. 8004306: f8c7 3138 str.w r3, [r7, #312] @ 0x138
  8895. if (crcPass) {
  8896. 800430a: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  8897. 800430e: 2b00 cmp r3, #0
  8898. 8004310: d00b beq.n 800432a <UartRxTask+0x37a>
  8899. #if UART_TASK_LOGS
  8900. printf ("Uart%d: Frame CRC PASS\n", uartTaskData->uartNumber);
  8901. 8004312: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8902. 8004316: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  8903. 800431a: 4619 mov r1, r3
  8904. 800431c: 4832 ldr r0, [pc, #200] @ (80043e8 <UartRxTask+0x438>)
  8905. 800431e: f025 f8f5 bl 802950c <iprintf>
  8906. #endif
  8907. receverState = srExecuteCmd;
  8908. 8004322: 2303 movs r3, #3
  8909. 8004324: f887 3133 strb.w r3, [r7, #307] @ 0x133
  8910. } else {
  8911. receverState = srFail;
  8912. }
  8913. break;
  8914. 8004328: e101 b.n 800452e <UartRxTask+0x57e>
  8915. receverState = srFail;
  8916. 800432a: 2304 movs r3, #4
  8917. 800432c: f887 3133 strb.w r3, [r7, #307] @ 0x133
  8918. break;
  8919. 8004330: e0fd b.n 800452e <UartRxTask+0x57e>
  8920. case srExecuteCmd:
  8921. if (/*(uartTaskData->processDataQueue != NULL) || */(uartTaskData->processDataCb != NULL) || (uartTaskData->processRxDataMsgBuffer != NULL)) {
  8922. 8004332: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8923. 8004336: 6a9b ldr r3, [r3, #40] @ 0x28
  8924. 8004338: 2b00 cmp r3, #0
  8925. 800433a: d104 bne.n 8004346 <UartRxTask+0x396>
  8926. 800433c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8927. 8004340: 6a5b ldr r3, [r3, #36] @ 0x24
  8928. 8004342: 2b00 cmp r3, #0
  8929. 8004344: d01e beq.n 8004384 <UartRxTask+0x3d4>
  8930. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  8931. 8004346: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8932. 800434a: 6a1b ldr r3, [r3, #32]
  8933. 800434c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  8934. 8004350: 4618 mov r0, r3
  8935. 8004352: f00c f957 bl 8010604 <osMutexAcquire>
  8936. memcpy (spFrameData.dataBuffer, &(uartTaskData->frameData[FRAME_HEADER_LENGTH]), spFrameData.frameHeader.frameDataLength);
  8937. 8004356: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8938. 800435a: 691b ldr r3, [r3, #16]
  8939. 800435c: f103 0108 add.w r1, r3, #8
  8940. 8004360: f507 73a0 add.w r3, r7, #320 @ 0x140
  8941. 8004364: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  8942. 8004368: 889b ldrh r3, [r3, #4]
  8943. 800436a: 461a mov r2, r3
  8944. 800436c: f107 0310 add.w r3, r7, #16
  8945. 8004370: 330c adds r3, #12
  8946. 8004372: 4618 mov r0, r3
  8947. 8004374: f025 fb53 bl 8029a1e <memcpy>
  8948. osMutexRelease (uartTaskData->rxDataBufferMutex);
  8949. 8004378: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8950. 800437c: 6a1b ldr r3, [r3, #32]
  8951. 800437e: 4618 mov r0, r3
  8952. 8004380: f00c f98b bl 801069a <osMutexRelease>
  8953. }
  8954. // if (uartTaskData->processDataQueue != NULL) {
  8955. // osMessageQueuePut (uartTaskData->processDataQueue, &spFrameData, 0, osWaitForever);
  8956. // }
  8957. if (uartTaskData->processRxDataMsgBuffer != NULL) {
  8958. 8004384: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8959. 8004388: 6a5b ldr r3, [r3, #36] @ 0x24
  8960. 800438a: 2b00 cmp r3, #0
  8961. 800438c: d015 beq.n 80043ba <UartRxTask+0x40a>
  8962. if(xMessageBufferSend (uartTaskData->processRxDataMsgBuffer, &spFrameData, sizeof (SerialProtocolFrameHeader) + spFrameData.frameHeader.frameDataLength, pdMS_TO_TICKS (200)) == pdFALSE)
  8963. 800438e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8964. 8004392: 6a58 ldr r0, [r3, #36] @ 0x24
  8965. 8004394: f507 73a0 add.w r3, r7, #320 @ 0x140
  8966. 8004398: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  8967. 800439c: 889b ldrh r3, [r3, #4]
  8968. 800439e: f103 020c add.w r2, r3, #12
  8969. 80043a2: f107 0110 add.w r1, r7, #16
  8970. 80043a6: 23c8 movs r3, #200 @ 0xc8
  8971. 80043a8: f00d ff0a bl 80121c0 <xStreamBufferSend>
  8972. 80043ac: 4603 mov r3, r0
  8973. 80043ae: 2b00 cmp r3, #0
  8974. 80043b0: d103 bne.n 80043ba <UartRxTask+0x40a>
  8975. {
  8976. receverState = srFail;
  8977. 80043b2: 2304 movs r3, #4
  8978. 80043b4: f887 3133 strb.w r3, [r7, #307] @ 0x133
  8979. break;
  8980. 80043b8: e0b9 b.n 800452e <UartRxTask+0x57e>
  8981. }
  8982. }
  8983. if (uartTaskData->processDataCb != NULL) {
  8984. 80043ba: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8985. 80043be: 6a9b ldr r3, [r3, #40] @ 0x28
  8986. 80043c0: 2b00 cmp r3, #0
  8987. 80043c2: d008 beq.n 80043d6 <UartRxTask+0x426>
  8988. uartTaskData->processDataCb (uartTaskData, &spFrameData);
  8989. 80043c4: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  8990. 80043c8: 6a9b ldr r3, [r3, #40] @ 0x28
  8991. 80043ca: f107 0210 add.w r2, r7, #16
  8992. 80043ce: 4611 mov r1, r2
  8993. 80043d0: f8d7 012c ldr.w r0, [r7, #300] @ 0x12c
  8994. 80043d4: 4798 blx r3
  8995. }
  8996. receverState = srFinish;
  8997. 80043d6: 2305 movs r3, #5
  8998. 80043d8: f887 3133 strb.w r3, [r7, #307] @ 0x133
  8999. break;
  9000. 80043dc: e0a7 b.n 800452e <UartRxTask+0x57e>
  9001. 80043de: bf00 nop
  9002. 80043e0: 0802c478 .word 0x0802c478
  9003. 80043e4: 24000234 .word 0x24000234
  9004. 80043e8: 0802c498 .word 0x0802c498
  9005. case srFail:
  9006. dataToSend = 0;
  9007. 80043ec: 2300 movs r3, #0
  9008. 80043ee: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  9009. if ((frameTimeout == pdTRUE) && (frameBytesCount > 2)) {
  9010. 80043f2: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  9011. 80043f6: 2b01 cmp r3, #1
  9012. 80043f8: d122 bne.n 8004440 <UartRxTask+0x490>
  9013. 80043fa: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9014. 80043fe: 2b02 cmp r3, #2
  9015. 8004400: d91e bls.n 8004440 <UartRxTask+0x490>
  9016. dataToSend = PrepareRespFrame (uart8TxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spTimeout, NULL, 0);
  9017. 8004402: f507 73a0 add.w r3, r7, #320 @ 0x140
  9018. 8004406: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9019. 800440a: 8819 ldrh r1, [r3, #0]
  9020. 800440c: f507 73a0 add.w r3, r7, #320 @ 0x140
  9021. 8004410: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9022. 8004414: 789a ldrb r2, [r3, #2]
  9023. 8004416: 2300 movs r3, #0
  9024. 8004418: 9301 str r3, [sp, #4]
  9025. 800441a: 2300 movs r3, #0
  9026. 800441c: 9300 str r3, [sp, #0]
  9027. 800441e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  9028. 8004422: 4846 ldr r0, [pc, #280] @ (800453c <UartRxTask+0x58c>)
  9029. 8004424: f7ff f894 bl 8003550 <PrepareRespFrame>
  9030. 8004428: 4603 mov r3, r0
  9031. 800442a: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  9032. #if UART_TASK_LOGS
  9033. printf ("Uart%d: RX data receiver timeout!\n", uartTaskData->uartNumber);
  9034. 800442e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9035. 8004432: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9036. 8004436: 4619 mov r1, r3
  9037. 8004438: 4841 ldr r0, [pc, #260] @ (8004540 <UartRxTask+0x590>)
  9038. 800443a: f025 f867 bl 802950c <iprintf>
  9039. 800443e: e038 b.n 80044b2 <UartRxTask+0x502>
  9040. #endif
  9041. } else if (!crcPass) {
  9042. 8004440: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  9043. 8004444: 2b00 cmp r3, #0
  9044. 8004446: d11e bne.n 8004486 <UartRxTask+0x4d6>
  9045. dataToSend = PrepareRespFrame (uart8TxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spCrcFail, NULL, 0);
  9046. 8004448: f507 73a0 add.w r3, r7, #320 @ 0x140
  9047. 800444c: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9048. 8004450: 8819 ldrh r1, [r3, #0]
  9049. 8004452: f507 73a0 add.w r3, r7, #320 @ 0x140
  9050. 8004456: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9051. 800445a: 789a ldrb r2, [r3, #2]
  9052. 800445c: 2300 movs r3, #0
  9053. 800445e: 9301 str r3, [sp, #4]
  9054. 8004460: 2300 movs r3, #0
  9055. 8004462: 9300 str r3, [sp, #0]
  9056. 8004464: f06f 0301 mvn.w r3, #1
  9057. 8004468: 4834 ldr r0, [pc, #208] @ (800453c <UartRxTask+0x58c>)
  9058. 800446a: f7ff f871 bl 8003550 <PrepareRespFrame>
  9059. 800446e: 4603 mov r3, r0
  9060. 8004470: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  9061. #if UART_TASK_LOGS
  9062. printf ("Uart%d: Frame CRC FAIL\n", uartTaskData->uartNumber);
  9063. 8004474: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9064. 8004478: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9065. 800447c: 4619 mov r1, r3
  9066. 800447e: 4831 ldr r0, [pc, #196] @ (8004544 <UartRxTask+0x594>)
  9067. 8004480: f025 f844 bl 802950c <iprintf>
  9068. 8004484: e015 b.n 80044b2 <UartRxTask+0x502>
  9069. #endif
  9070. }
  9071. else
  9072. {
  9073. dataToSend = PrepareRespFrame (uart8TxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spInternalError, NULL, 0);
  9074. 8004486: f507 73a0 add.w r3, r7, #320 @ 0x140
  9075. 800448a: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9076. 800448e: 8819 ldrh r1, [r3, #0]
  9077. 8004490: f507 73a0 add.w r3, r7, #320 @ 0x140
  9078. 8004494: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9079. 8004498: 789a ldrb r2, [r3, #2]
  9080. 800449a: 2300 movs r3, #0
  9081. 800449c: 9301 str r3, [sp, #4]
  9082. 800449e: 2300 movs r3, #0
  9083. 80044a0: 9300 str r3, [sp, #0]
  9084. 80044a2: f06f 0302 mvn.w r3, #2
  9085. 80044a6: 4825 ldr r0, [pc, #148] @ (800453c <UartRxTask+0x58c>)
  9086. 80044a8: f7ff f852 bl 8003550 <PrepareRespFrame>
  9087. 80044ac: 4603 mov r3, r0
  9088. 80044ae: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  9089. }
  9090. if (dataToSend > 0) {
  9091. 80044b2: f8b7 313c ldrh.w r3, [r7, #316] @ 0x13c
  9092. 80044b6: 2b00 cmp r3, #0
  9093. 80044b8: d006 beq.n 80044c8 <UartRxTask+0x518>
  9094. HAL_UART_Transmit_IT (&huart8, uart8TxBuffer, dataToSend);
  9095. 80044ba: f8b7 313c ldrh.w r3, [r7, #316] @ 0x13c
  9096. 80044be: 461a mov r2, r3
  9097. 80044c0: 491e ldr r1, [pc, #120] @ (800453c <UartRxTask+0x58c>)
  9098. 80044c2: 4821 ldr r0, [pc, #132] @ (8004548 <UartRxTask+0x598>)
  9099. 80044c4: f008 faa6 bl 800ca14 <HAL_UART_Transmit_IT>
  9100. }
  9101. #if UART_TASK_LOGS
  9102. printf ("Uart%d: TX bytes sent: %d\n", dataToSend, uartTaskData->uartNumber);
  9103. 80044c8: f8b7 113c ldrh.w r1, [r7, #316] @ 0x13c
  9104. 80044cc: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9105. 80044d0: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9106. 80044d4: 461a mov r2, r3
  9107. 80044d6: 481d ldr r0, [pc, #116] @ (800454c <UartRxTask+0x59c>)
  9108. 80044d8: f025 f818 bl 802950c <iprintf>
  9109. #endif
  9110. receverState = srFinish;
  9111. 80044dc: 2305 movs r3, #5
  9112. 80044de: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9113. break;
  9114. 80044e2: e024 b.n 800452e <UartRxTask+0x57e>
  9115. case srFinish:
  9116. default:
  9117. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9118. 80044e4: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9119. 80044e8: 6a1b ldr r3, [r3, #32]
  9120. 80044ea: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9121. 80044ee: 4618 mov r0, r3
  9122. 80044f0: f00c f888 bl 8010604 <osMutexAcquire>
  9123. uartTaskData->frameBytesCount = 0;
  9124. 80044f4: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9125. 80044f8: 2200 movs r2, #0
  9126. 80044fa: 82da strh r2, [r3, #22]
  9127. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9128. 80044fc: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9129. 8004500: 6a1b ldr r3, [r3, #32]
  9130. 8004502: 4618 mov r0, r3
  9131. 8004504: f00c f8c9 bl 801069a <osMutexRelease>
  9132. spFrameData.frameHeader.frameCommand = spUnknown;
  9133. 8004508: f507 73a0 add.w r3, r7, #320 @ 0x140
  9134. 800450c: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9135. 8004510: 2208 movs r2, #8
  9136. 8004512: 709a strb r2, [r3, #2]
  9137. frameTotalLength = 0;
  9138. 8004514: 2300 movs r3, #0
  9139. 8004516: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  9140. outputDataBufferPos = 0;
  9141. 800451a: 4b0d ldr r3, [pc, #52] @ (8004550 <UartRxTask+0x5a0>)
  9142. 800451c: 2200 movs r2, #0
  9143. 800451e: 801a strh r2, [r3, #0]
  9144. receverState = srWaitForHeader;
  9145. 8004520: 2300 movs r3, #0
  9146. 8004522: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9147. proceed = pdFALSE;
  9148. 8004526: 2300 movs r3, #0
  9149. 8004528: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9150. break;
  9151. 800452c: bf00 nop
  9152. while (proceed) {
  9153. 800452e: f8d7 3134 ldr.w r3, [r7, #308] @ 0x134
  9154. 8004532: 2b00 cmp r3, #0
  9155. 8004534: f47f adea bne.w 800410c <UartRxTask+0x15c>
  9156. frameTimeout = !(xTaskNotifyWait (0, 0, &bytesRec, pdMS_TO_TICKS (FRAME_TIMEOUT_MS)));
  9157. 8004538: e58b b.n 8004052 <UartRxTask+0xa2>
  9158. 800453a: bf00 nop
  9159. 800453c: 24000f70 .word 0x24000f70
  9160. 8004540: 0802c4b0 .word 0x0802c4b0
  9161. 8004544: 0802c4d4 .word 0x0802c4d4
  9162. 8004548: 2400026c .word 0x2400026c
  9163. 800454c: 0802c4ec .word 0x0802c4ec
  9164. 8004550: 240012d0 .word 0x240012d0
  9165. 08004554 <ReadMeasSetFromBuffer>:
  9166. printf ("Uart%d: TX bytes sent: %d\n", uartTaskData->uartNumber, dataToSend);
  9167. #endif
  9168. }
  9169. void ReadMeasSetFromBuffer(uint8_t* buff, uint16_t* buffPos, float* dataSet)
  9170. {
  9171. 8004554: b580 push {r7, lr}
  9172. 8004556: b086 sub sp, #24
  9173. 8004558: af00 add r7, sp, #0
  9174. 800455a: 60f8 str r0, [r7, #12]
  9175. 800455c: 60b9 str r1, [r7, #8]
  9176. 800455e: 607a str r2, [r7, #4]
  9177. for(uint8_t i = 0; i < 3; i++)
  9178. 8004560: 2300 movs r3, #0
  9179. 8004562: 75fb strb r3, [r7, #23]
  9180. 8004564: e00b b.n 800457e <ReadMeasSetFromBuffer+0x2a>
  9181. {
  9182. ReadFloatFromBuffer(buff, buffPos, &dataSet[i]);
  9183. 8004566: 7dfb ldrb r3, [r7, #23]
  9184. 8004568: 009b lsls r3, r3, #2
  9185. 800456a: 687a ldr r2, [r7, #4]
  9186. 800456c: 4413 add r3, r2
  9187. 800456e: 461a mov r2, r3
  9188. 8004570: 68b9 ldr r1, [r7, #8]
  9189. 8004572: 68f8 ldr r0, [r7, #12]
  9190. 8004574: f7fe ff23 bl 80033be <ReadFloatFromBuffer>
  9191. for(uint8_t i = 0; i < 3; i++)
  9192. 8004578: 7dfb ldrb r3, [r7, #23]
  9193. 800457a: 3301 adds r3, #1
  9194. 800457c: 75fb strb r3, [r7, #23]
  9195. 800457e: 7dfb ldrb r3, [r7, #23]
  9196. 8004580: 2b02 cmp r3, #2
  9197. 8004582: d9f0 bls.n 8004566 <ReadMeasSetFromBuffer+0x12>
  9198. }
  9199. }
  9200. 8004584: bf00 nop
  9201. 8004586: bf00 nop
  9202. 8004588: 3718 adds r7, #24
  9203. 800458a: 46bd mov sp, r7
  9204. 800458c: bd80 pop {r7, pc}
  9205. ...
  9206. 08004590 <UartTxTask>:
  9207. void UartTxTask (void* argument) {
  9208. 8004590: b580 push {r7, lr}
  9209. 8004592: b0d2 sub sp, #328 @ 0x148
  9210. 8004594: af02 add r7, sp, #8
  9211. 8004596: f507 73a0 add.w r3, r7, #320 @ 0x140
  9212. 800459a: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  9213. 800459e: 6018 str r0, [r3, #0]
  9214. UartTaskData* const uartTaskData = (UartTaskData*)argument;
  9215. 80045a0: f507 73a0 add.w r3, r7, #320 @ 0x140
  9216. 80045a4: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  9217. 80045a8: 681b ldr r3, [r3, #0]
  9218. 80045aa: f8c7 3138 str.w r3, [r7, #312] @ 0x138
  9219. InterProcessData data = { 0 };
  9220. 80045ae: f507 738e add.w r3, r7, #284 @ 0x11c
  9221. 80045b2: 2200 movs r2, #0
  9222. 80045b4: 601a str r2, [r3, #0]
  9223. 80045b6: 605a str r2, [r3, #4]
  9224. 80045b8: 609a str r2, [r3, #8]
  9225. SerialProtocolFrameData frameData = { 0 };
  9226. 80045ba: f507 73a0 add.w r3, r7, #320 @ 0x140
  9227. 80045be: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9228. 80045c2: 4618 mov r0, r3
  9229. 80045c4: f44f 7386 mov.w r3, #268 @ 0x10c
  9230. 80045c8: 461a mov r2, r3
  9231. 80045ca: 2100 movs r1, #0
  9232. 80045cc: f025 f930 bl 8029830 <memset>
  9233. size_t bytesInMsg;
  9234. uint16_t frameId = 0;
  9235. 80045d0: 2300 movs r3, #0
  9236. 80045d2: f8a7 3136 strh.w r3, [r7, #310] @ 0x136
  9237. uint32_t rndVal = 0;
  9238. 80045d6: f507 73a0 add.w r3, r7, #320 @ 0x140
  9239. 80045da: f5a3 739a sub.w r3, r3, #308 @ 0x134
  9240. 80045de: 2200 movs r2, #0
  9241. 80045e0: 601a str r2, [r3, #0]
  9242. uint16_t bytesToSend = 0;
  9243. 80045e2: 2300 movs r3, #0
  9244. 80045e4: f8a7 3134 strh.w r3, [r7, #308] @ 0x134
  9245. SerialProtocolCommands frameCommand = spUnknown;
  9246. 80045e8: 2308 movs r3, #8
  9247. 80045ea: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9248. uint16_t inputDataBufferPos = 0;
  9249. 80045ee: f507 73a0 add.w r3, r7, #320 @ 0x140
  9250. 80045f2: f5a3 739b sub.w r3, r3, #310 @ 0x136
  9251. 80045f6: 2200 movs r2, #0
  9252. 80045f8: 801a strh r2, [r3, #0]
  9253. while (pdTRUE) {
  9254. if (uartTaskData->sendCmdToSlaveQueue != NULL) {
  9255. 80045fa: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  9256. 80045fe: 6adb ldr r3, [r3, #44] @ 0x2c
  9257. 8004600: 2b00 cmp r3, #0
  9258. 8004602: f000 8129 beq.w 8004858 <UartTxTask+0x2c8>
  9259. osMessageQueueGet (uartTaskData->sendCmdToSlaveQueue, &data, 0, osWaitForever);
  9260. 8004606: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  9261. 800460a: 6ad8 ldr r0, [r3, #44] @ 0x2c
  9262. 800460c: f507 718e add.w r1, r7, #284 @ 0x11c
  9263. 8004610: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  9264. 8004614: 2200 movs r2, #0
  9265. 8004616: f00c fa95 bl 8010b44 <osMessageQueueGet>
  9266. HAL_RNG_GenerateRandomNumber (&hrng, &rndVal);
  9267. 800461a: f107 030c add.w r3, r7, #12
  9268. 800461e: 4619 mov r1, r3
  9269. 8004620: 4892 ldr r0, [pc, #584] @ (800486c <UartTxTask+0x2dc>)
  9270. 8004622: f007 fe83 bl 800c32c <HAL_RNG_GenerateRandomNumber>
  9271. frameId = (uint16_t)(rndVal & 0xFFFF);
  9272. 8004626: f507 73a0 add.w r3, r7, #320 @ 0x140
  9273. 800462a: f5a3 739a sub.w r3, r3, #308 @ 0x134
  9274. 800462e: 681b ldr r3, [r3, #0]
  9275. 8004630: f8a7 3136 strh.w r3, [r7, #310] @ 0x136
  9276. frameCommand = data.spCommand;
  9277. 8004634: f897 311c ldrb.w r3, [r7, #284] @ 0x11c
  9278. 8004638: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9279. outputDataBufferPos = 0;
  9280. 800463c: 4b8c ldr r3, [pc, #560] @ (8004870 <UartTxTask+0x2e0>)
  9281. 800463e: 2200 movs r2, #0
  9282. 8004640: 801a strh r2, [r3, #0]
  9283. memset (outputDataBuffer, 0x00, OUTPUT_DATA_BUFF_SIZE);
  9284. 8004642: 2280 movs r2, #128 @ 0x80
  9285. 8004644: 2100 movs r1, #0
  9286. 8004646: 488b ldr r0, [pc, #556] @ (8004874 <UartTxTask+0x2e4>)
  9287. 8004648: f025 f8f2 bl 8029830 <memset>
  9288. switch (frameCommand) {
  9289. 800464c: f897 3133 ldrb.w r3, [r7, #307] @ 0x133
  9290. 8004650: 2b07 cmp r3, #7
  9291. 8004652: f200 8106 bhi.w 8004862 <UartTxTask+0x2d2>
  9292. 8004656: a201 add r2, pc, #4 @ (adr r2, 800465c <UartTxTask+0xcc>)
  9293. 8004658: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  9294. 800465c: 080046c5 .word 0x080046c5
  9295. 8004660: 080046c5 .word 0x080046c5
  9296. 8004664: 0800467d .word 0x0800467d
  9297. 8004668: 0800467d .word 0x0800467d
  9298. 800466c: 0800467d .word 0x0800467d
  9299. 8004670: 080046b3 .word 0x080046b3
  9300. 8004674: 080046b3 .word 0x080046b3
  9301. 8004678: 080046a1 .word 0x080046a1
  9302. case spSetFanSpeed:
  9303. case spSetMotorXOn:
  9304. case spSetMotorYOn:
  9305. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &data.values.integerValues.value[0], sizeof (float));
  9306. 800467c: f507 738e add.w r3, r7, #284 @ 0x11c
  9307. 8004680: 1d1a adds r2, r3, #4
  9308. 8004682: 2304 movs r3, #4
  9309. 8004684: 497a ldr r1, [pc, #488] @ (8004870 <UartTxTask+0x2e0>)
  9310. 8004686: 487b ldr r0, [pc, #492] @ (8004874 <UartTxTask+0x2e4>)
  9311. 8004688: f7fe fe68 bl 800335c <WriteDataToBuffer>
  9312. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &data.values.integerValues.value[1], sizeof (float));
  9313. 800468c: f507 738e add.w r3, r7, #284 @ 0x11c
  9314. 8004690: f103 0208 add.w r2, r3, #8
  9315. 8004694: 2304 movs r3, #4
  9316. 8004696: 4976 ldr r1, [pc, #472] @ (8004870 <UartTxTask+0x2e0>)
  9317. 8004698: 4876 ldr r0, [pc, #472] @ (8004874 <UartTxTask+0x2e4>)
  9318. 800469a: f7fe fe5f bl 800335c <WriteDataToBuffer>
  9319. break;
  9320. 800469e: e012 b.n 80046c6 <UartTxTask+0x136>
  9321. case spSetDiodeOn: WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &data.values.integerValues.value[0], sizeof (float)); break;
  9322. 80046a0: f507 738e add.w r3, r7, #284 @ 0x11c
  9323. 80046a4: 1d1a adds r2, r3, #4
  9324. 80046a6: 2304 movs r3, #4
  9325. 80046a8: 4971 ldr r1, [pc, #452] @ (8004870 <UartTxTask+0x2e0>)
  9326. 80046aa: 4872 ldr r0, [pc, #456] @ (8004874 <UartTxTask+0x2e4>)
  9327. 80046ac: f7fe fe56 bl 800335c <WriteDataToBuffer>
  9328. 80046b0: e009 b.n 80046c6 <UartTxTask+0x136>
  9329. case spSetmotorXMaxCurrent:
  9330. case spSetmotorYMaxCurrent: WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &data.values.flaotValues.value[0], sizeof (float)); break;
  9331. 80046b2: f507 738e add.w r3, r7, #284 @ 0x11c
  9332. 80046b6: 1d1a adds r2, r3, #4
  9333. 80046b8: 2304 movs r3, #4
  9334. 80046ba: 496d ldr r1, [pc, #436] @ (8004870 <UartTxTask+0x2e0>)
  9335. 80046bc: 486d ldr r0, [pc, #436] @ (8004874 <UartTxTask+0x2e4>)
  9336. 80046be: f7fe fe4d bl 800335c <WriteDataToBuffer>
  9337. 80046c2: e000 b.n 80046c6 <UartTxTask+0x136>
  9338. case spGetElectricalMeasurments:
  9339. case spGetSensorMeasurments: break;
  9340. 80046c4: bf00 nop
  9341. default: continue; break;
  9342. }
  9343. bytesToSend = PrepareReqFrame (uart8TxBuffer, frameId, frameCommand, outputDataBuffer, outputDataBufferPos);
  9344. 80046c6: 4b6a ldr r3, [pc, #424] @ (8004870 <UartTxTask+0x2e0>)
  9345. 80046c8: 881b ldrh r3, [r3, #0]
  9346. 80046ca: f897 2133 ldrb.w r2, [r7, #307] @ 0x133
  9347. 80046ce: f8b7 1136 ldrh.w r1, [r7, #310] @ 0x136
  9348. 80046d2: 9300 str r3, [sp, #0]
  9349. 80046d4: 4b67 ldr r3, [pc, #412] @ (8004874 <UartTxTask+0x2e4>)
  9350. 80046d6: 4868 ldr r0, [pc, #416] @ (8004878 <UartTxTask+0x2e8>)
  9351. 80046d8: f7fe fea6 bl 8003428 <PrepareReqFrame>
  9352. 80046dc: 4603 mov r3, r0
  9353. 80046de: f8a7 3134 strh.w r3, [r7, #308] @ 0x134
  9354. HAL_UART_Transmit_IT (uartTaskData->huart, uart8TxBuffer, bytesToSend);
  9355. 80046e2: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  9356. 80046e6: 6b1b ldr r3, [r3, #48] @ 0x30
  9357. 80046e8: f8b7 2134 ldrh.w r2, [r7, #308] @ 0x134
  9358. 80046ec: 4962 ldr r1, [pc, #392] @ (8004878 <UartTxTask+0x2e8>)
  9359. 80046ee: 4618 mov r0, r3
  9360. 80046f0: f008 f990 bl 800ca14 <HAL_UART_Transmit_IT>
  9361. bytesInMsg = xMessageBufferReceive (uartTaskData->processRxDataMsgBuffer, &frameData, INPUT_DATA_BUFF_SIZE, pdMS_TO_TICKS (1000));
  9362. 80046f4: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  9363. 80046f8: 6a58 ldr r0, [r3, #36] @ 0x24
  9364. 80046fa: f107 0110 add.w r1, r7, #16
  9365. 80046fe: f44f 737a mov.w r3, #1000 @ 0x3e8
  9366. 8004702: f44f 7280 mov.w r2, #256 @ 0x100
  9367. 8004706: f00d fe51 bl 80123ac <xStreamBufferReceive>
  9368. 800470a: f8c7 012c str.w r0, [r7, #300] @ 0x12c
  9369. if (bytesInMsg == 0) {
  9370. 800470e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9371. 8004712: 2b00 cmp r3, #0
  9372. 8004714: d10b bne.n 800472e <UartTxTask+0x19e>
  9373. #if UART_TASK_LOGS
  9374. printf ("Uart%d: Response timeout for frameId 0x%x\n", uartTaskData->uartNumber, frameId);
  9375. 8004716: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  9376. 800471a: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9377. 800471e: 4619 mov r1, r3
  9378. 8004720: f8b7 3136 ldrh.w r3, [r7, #310] @ 0x136
  9379. 8004724: 461a mov r2, r3
  9380. 8004726: 4855 ldr r0, [pc, #340] @ (800487c <UartTxTask+0x2ec>)
  9381. 8004728: f024 fef0 bl 802950c <iprintf>
  9382. 800472c: e765 b.n 80045fa <UartTxTask+0x6a>
  9383. #endif
  9384. } else {
  9385. if ((frameId == frameData.frameHeader.frameId) && (frameData.frameHeader.respStatus == spOK)) {
  9386. 800472e: f507 73a0 add.w r3, r7, #320 @ 0x140
  9387. 8004732: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9388. 8004736: 881b ldrh r3, [r3, #0]
  9389. 8004738: f8b7 2136 ldrh.w r2, [r7, #310] @ 0x136
  9390. 800473c: 429a cmp r2, r3
  9391. 800473e: f47f af5c bne.w 80045fa <UartTxTask+0x6a>
  9392. 8004742: f507 73a0 add.w r3, r7, #320 @ 0x140
  9393. 8004746: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9394. 800474a: f993 3003 ldrsb.w r3, [r3, #3]
  9395. 800474e: 2b00 cmp r3, #0
  9396. 8004750: f47f af53 bne.w 80045fa <UartTxTask+0x6a>
  9397. #if UART_TASK_LOGS
  9398. printf ("Uart%d: Response for frameId 0x%x OK\n", uartTaskData->uartNumber, frameId);
  9399. 8004754: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  9400. 8004758: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9401. 800475c: 4619 mov r1, r3
  9402. 800475e: f8b7 3136 ldrh.w r3, [r7, #310] @ 0x136
  9403. 8004762: 461a mov r2, r3
  9404. 8004764: 4846 ldr r0, [pc, #280] @ (8004880 <UartTxTask+0x2f0>)
  9405. 8004766: f024 fed1 bl 802950c <iprintf>
  9406. #endif
  9407. switch(frameData.frameHeader.frameCommand)
  9408. 800476a: f507 73a0 add.w r3, r7, #320 @ 0x140
  9409. 800476e: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9410. 8004772: 789b ldrb r3, [r3, #2]
  9411. 8004774: 2b00 cmp r3, #0
  9412. 8004776: d176 bne.n 8004866 <UartTxTask+0x2d6>
  9413. {
  9414. case spGetElectricalMeasurments:
  9415. uint8_t boardNumber;
  9416. osMutexAcquire (resMeasurementsMutex, osWaitForever);
  9417. 8004778: 4b42 ldr r3, [pc, #264] @ (8004884 <UartTxTask+0x2f4>)
  9418. 800477a: 681b ldr r3, [r3, #0]
  9419. 800477c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9420. 8004780: 4618 mov r0, r3
  9421. 8004782: f00b ff3f bl 8010604 <osMutexAcquire>
  9422. for(boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++)
  9423. 8004786: 2300 movs r3, #0
  9424. 8004788: f887 313f strb.w r3, [r7, #319] @ 0x13f
  9425. 800478c: e00e b.n 80047ac <UartTxTask+0x21c>
  9426. {
  9427. if(boardToUartNumberMap[boardNumber] == uartTaskData->uartNumber)
  9428. 800478e: f897 313f ldrb.w r3, [r7, #319] @ 0x13f
  9429. 8004792: 4a3d ldr r2, [pc, #244] @ (8004888 <UartTxTask+0x2f8>)
  9430. 8004794: 5cd2 ldrb r2, [r2, r3]
  9431. 8004796: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  9432. 800479a: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9433. 800479e: 429a cmp r2, r3
  9434. 80047a0: d009 beq.n 80047b6 <UartTxTask+0x226>
  9435. for(boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++)
  9436. 80047a2: f897 313f ldrb.w r3, [r7, #319] @ 0x13f
  9437. 80047a6: 3301 adds r3, #1
  9438. 80047a8: f887 313f strb.w r3, [r7, #319] @ 0x13f
  9439. 80047ac: f897 313f ldrb.w r3, [r7, #319] @ 0x13f
  9440. 80047b0: 2b03 cmp r3, #3
  9441. 80047b2: d9ec bls.n 800478e <UartTxTask+0x1fe>
  9442. 80047b4: e000 b.n 80047b8 <UartTxTask+0x228>
  9443. {
  9444. break;
  9445. 80047b6: bf00 nop
  9446. }
  9447. }
  9448. RESMeasurements *resMeas = &resMeasurements[boardNumber];
  9449. 80047b8: f897 213f ldrb.w r2, [r7, #319] @ 0x13f
  9450. 80047bc: 4613 mov r3, r2
  9451. 80047be: 011b lsls r3, r3, #4
  9452. 80047c0: 1a9b subs r3, r3, r2
  9453. 80047c2: 009b lsls r3, r3, #2
  9454. 80047c4: 4a31 ldr r2, [pc, #196] @ (800488c <UartTxTask+0x2fc>)
  9455. 80047c6: 4413 add r3, r2
  9456. 80047c8: f8c7 3128 str.w r3, [r7, #296] @ 0x128
  9457. inputDataBufferPos = 0;
  9458. 80047cc: f507 73a0 add.w r3, r7, #320 @ 0x140
  9459. 80047d0: f5a3 739b sub.w r3, r3, #310 @ 0x136
  9460. 80047d4: 2200 movs r2, #0
  9461. 80047d6: 801a strh r2, [r3, #0]
  9462. ReadMeasSetFromBuffer(frameData.dataBuffer, &inputDataBufferPos, resMeas->voltageRMS);
  9463. 80047d8: f8d7 2128 ldr.w r2, [r7, #296] @ 0x128
  9464. 80047dc: f107 010a add.w r1, r7, #10
  9465. 80047e0: f107 0310 add.w r3, r7, #16
  9466. 80047e4: 330c adds r3, #12
  9467. 80047e6: 4618 mov r0, r3
  9468. 80047e8: f7ff feb4 bl 8004554 <ReadMeasSetFromBuffer>
  9469. ReadMeasSetFromBuffer(frameData.dataBuffer, &inputDataBufferPos, resMeas->voltagePeak);
  9470. 80047ec: f8d7 3128 ldr.w r3, [r7, #296] @ 0x128
  9471. 80047f0: f103 020c add.w r2, r3, #12
  9472. 80047f4: f107 010a add.w r1, r7, #10
  9473. 80047f8: f107 0310 add.w r3, r7, #16
  9474. 80047fc: 330c adds r3, #12
  9475. 80047fe: 4618 mov r0, r3
  9476. 8004800: f7ff fea8 bl 8004554 <ReadMeasSetFromBuffer>
  9477. ReadMeasSetFromBuffer(frameData.dataBuffer, &inputDataBufferPos, resMeas->currentRMS);
  9478. 8004804: f8d7 3128 ldr.w r3, [r7, #296] @ 0x128
  9479. 8004808: f103 0218 add.w r2, r3, #24
  9480. 800480c: f107 010a add.w r1, r7, #10
  9481. 8004810: f107 0310 add.w r3, r7, #16
  9482. 8004814: 330c adds r3, #12
  9483. 8004816: 4618 mov r0, r3
  9484. 8004818: f7ff fe9c bl 8004554 <ReadMeasSetFromBuffer>
  9485. ReadMeasSetFromBuffer(frameData.dataBuffer, &inputDataBufferPos, resMeas->currentPeak);
  9486. 800481c: f8d7 3128 ldr.w r3, [r7, #296] @ 0x128
  9487. 8004820: f103 0224 add.w r2, r3, #36 @ 0x24
  9488. 8004824: f107 010a add.w r1, r7, #10
  9489. 8004828: f107 0310 add.w r3, r7, #16
  9490. 800482c: 330c adds r3, #12
  9491. 800482e: 4618 mov r0, r3
  9492. 8004830: f7ff fe90 bl 8004554 <ReadMeasSetFromBuffer>
  9493. ReadMeasSetFromBuffer(frameData.dataBuffer, &inputDataBufferPos, resMeas->power);
  9494. 8004834: f8d7 3128 ldr.w r3, [r7, #296] @ 0x128
  9495. 8004838: f103 0230 add.w r2, r3, #48 @ 0x30
  9496. 800483c: f107 010a add.w r1, r7, #10
  9497. 8004840: f107 0310 add.w r3, r7, #16
  9498. 8004844: 330c adds r3, #12
  9499. 8004846: 4618 mov r0, r3
  9500. 8004848: f7ff fe84 bl 8004554 <ReadMeasSetFromBuffer>
  9501. osMutexRelease(resMeasurementsMutex);
  9502. 800484c: 4b0d ldr r3, [pc, #52] @ (8004884 <UartTxTask+0x2f4>)
  9503. 800484e: 681b ldr r3, [r3, #0]
  9504. 8004850: 4618 mov r0, r3
  9505. 8004852: f00b ff22 bl 801069a <osMutexRelease>
  9506. break;
  9507. 8004856: e007 b.n 8004868 <UartTxTask+0x2d8>
  9508. break;
  9509. }
  9510. }
  9511. }
  9512. } else {
  9513. osDelay (pdMS_TO_TICKS (1000));
  9514. 8004858: f44f 707a mov.w r0, #1000 @ 0x3e8
  9515. 800485c: f00b fe31 bl 80104c2 <osDelay>
  9516. 8004860: e6cb b.n 80045fa <UartTxTask+0x6a>
  9517. default: continue; break;
  9518. 8004862: bf00 nop
  9519. 8004864: e6c9 b.n 80045fa <UartTxTask+0x6a>
  9520. break;
  9521. 8004866: bf00 nop
  9522. if (uartTaskData->sendCmdToSlaveQueue != NULL) {
  9523. 8004868: e6c7 b.n 80045fa <UartTxTask+0x6a>
  9524. 800486a: bf00 nop
  9525. 800486c: 24000258 .word 0x24000258
  9526. 8004870: 240012d0 .word 0x240012d0
  9527. 8004874: 24001250 .word 0x24001250
  9528. 8004878: 24000f70 .word 0x24000f70
  9529. 800487c: 0802c508 .word 0x0802c508
  9530. 8004880: 0802c534 .word 0x0802c534
  9531. 8004884: 24000594 .word 0x24000594
  9532. 8004888: 24000014 .word 0x24000014
  9533. 800488c: 24000404 .word 0x24000404
  9534. 08004890 <Reset_Handler>:
  9535. .section .text.Reset_Handler
  9536. .weak Reset_Handler
  9537. .type Reset_Handler, %function
  9538. Reset_Handler:
  9539. ldr sp, =_estack /* set stack pointer */
  9540. 8004890: f8df d034 ldr.w sp, [pc, #52] @ 80048c8 <LoopFillZerobss+0xe>
  9541. /* Call the clock system initialization function.*/
  9542. bl SystemInit
  9543. 8004894: f7ff fa04 bl 8003ca0 <SystemInit>
  9544. /* Copy the data segment initializers from flash to SRAM */
  9545. ldr r0, =_sdata
  9546. 8004898: 480c ldr r0, [pc, #48] @ (80048cc <LoopFillZerobss+0x12>)
  9547. ldr r1, =_edata
  9548. 800489a: 490d ldr r1, [pc, #52] @ (80048d0 <LoopFillZerobss+0x16>)
  9549. ldr r2, =_sidata
  9550. 800489c: 4a0d ldr r2, [pc, #52] @ (80048d4 <LoopFillZerobss+0x1a>)
  9551. movs r3, #0
  9552. 800489e: 2300 movs r3, #0
  9553. b LoopCopyDataInit
  9554. 80048a0: e002 b.n 80048a8 <LoopCopyDataInit>
  9555. 080048a2 <CopyDataInit>:
  9556. CopyDataInit:
  9557. ldr r4, [r2, r3]
  9558. 80048a2: 58d4 ldr r4, [r2, r3]
  9559. str r4, [r0, r3]
  9560. 80048a4: 50c4 str r4, [r0, r3]
  9561. adds r3, r3, #4
  9562. 80048a6: 3304 adds r3, #4
  9563. 080048a8 <LoopCopyDataInit>:
  9564. LoopCopyDataInit:
  9565. adds r4, r0, r3
  9566. 80048a8: 18c4 adds r4, r0, r3
  9567. cmp r4, r1
  9568. 80048aa: 428c cmp r4, r1
  9569. bcc CopyDataInit
  9570. 80048ac: d3f9 bcc.n 80048a2 <CopyDataInit>
  9571. /* Zero fill the bss segment. */
  9572. ldr r2, =_sbss
  9573. 80048ae: 4a0a ldr r2, [pc, #40] @ (80048d8 <LoopFillZerobss+0x1e>)
  9574. ldr r4, =_ebss
  9575. 80048b0: 4c0a ldr r4, [pc, #40] @ (80048dc <LoopFillZerobss+0x22>)
  9576. movs r3, #0
  9577. 80048b2: 2300 movs r3, #0
  9578. b LoopFillZerobss
  9579. 80048b4: e001 b.n 80048ba <LoopFillZerobss>
  9580. 080048b6 <FillZerobss>:
  9581. FillZerobss:
  9582. str r3, [r2]
  9583. 80048b6: 6013 str r3, [r2, #0]
  9584. adds r2, r2, #4
  9585. 80048b8: 3204 adds r2, #4
  9586. 080048ba <LoopFillZerobss>:
  9587. LoopFillZerobss:
  9588. cmp r2, r4
  9589. 80048ba: 42a2 cmp r2, r4
  9590. bcc FillZerobss
  9591. 80048bc: d3fb bcc.n 80048b6 <FillZerobss>
  9592. /* Call static constructors */
  9593. bl __libc_init_array
  9594. 80048be: f025 f887 bl 80299d0 <__libc_init_array>
  9595. /* Call the application's entry point.*/
  9596. bl main
  9597. 80048c2: f7fd f9f9 bl 8001cb8 <main>
  9598. bx lr
  9599. 80048c6: 4770 bx lr
  9600. ldr sp, =_estack /* set stack pointer */
  9601. 80048c8: 24060000 .word 0x24060000
  9602. ldr r0, =_sdata
  9603. 80048cc: 24000000 .word 0x24000000
  9604. ldr r1, =_edata
  9605. 80048d0: 24000210 .word 0x24000210
  9606. ldr r2, =_sidata
  9607. 80048d4: 08030c4c .word 0x08030c4c
  9608. ldr r2, =_sbss
  9609. 80048d8: 24000210 .word 0x24000210
  9610. ldr r4, =_ebss
  9611. 80048dc: 2402a2ec .word 0x2402a2ec
  9612. 080048e0 <ADC3_IRQHandler>:
  9613. * @retval None
  9614. */
  9615. .section .text.Default_Handler,"ax",%progbits
  9616. Default_Handler:
  9617. Infinite_Loop:
  9618. b Infinite_Loop
  9619. 80048e0: e7fe b.n 80048e0 <ADC3_IRQHandler>
  9620. 080048e2 <DP83848_RegisterBusIO>:
  9621. * @param ioctx: holds device IO functions.
  9622. * @retval DP83848_STATUS_OK if OK
  9623. * DP83848_STATUS_ERROR if missing mandatory function
  9624. */
  9625. int32_t DP83848_RegisterBusIO(dp83848_Object_t *pObj, dp83848_IOCtx_t *ioctx)
  9626. {
  9627. 80048e2: b480 push {r7}
  9628. 80048e4: b083 sub sp, #12
  9629. 80048e6: af00 add r7, sp, #0
  9630. 80048e8: 6078 str r0, [r7, #4]
  9631. 80048ea: 6039 str r1, [r7, #0]
  9632. if(!pObj || !ioctx->ReadReg || !ioctx->WriteReg || !ioctx->GetTick)
  9633. 80048ec: 687b ldr r3, [r7, #4]
  9634. 80048ee: 2b00 cmp r3, #0
  9635. 80048f0: d00b beq.n 800490a <DP83848_RegisterBusIO+0x28>
  9636. 80048f2: 683b ldr r3, [r7, #0]
  9637. 80048f4: 68db ldr r3, [r3, #12]
  9638. 80048f6: 2b00 cmp r3, #0
  9639. 80048f8: d007 beq.n 800490a <DP83848_RegisterBusIO+0x28>
  9640. 80048fa: 683b ldr r3, [r7, #0]
  9641. 80048fc: 689b ldr r3, [r3, #8]
  9642. 80048fe: 2b00 cmp r3, #0
  9643. 8004900: d003 beq.n 800490a <DP83848_RegisterBusIO+0x28>
  9644. 8004902: 683b ldr r3, [r7, #0]
  9645. 8004904: 691b ldr r3, [r3, #16]
  9646. 8004906: 2b00 cmp r3, #0
  9647. 8004908: d102 bne.n 8004910 <DP83848_RegisterBusIO+0x2e>
  9648. {
  9649. return DP83848_STATUS_ERROR;
  9650. 800490a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  9651. 800490e: e014 b.n 800493a <DP83848_RegisterBusIO+0x58>
  9652. }
  9653. pObj->IO.Init = ioctx->Init;
  9654. 8004910: 683b ldr r3, [r7, #0]
  9655. 8004912: 681a ldr r2, [r3, #0]
  9656. 8004914: 687b ldr r3, [r7, #4]
  9657. 8004916: 609a str r2, [r3, #8]
  9658. pObj->IO.DeInit = ioctx->DeInit;
  9659. 8004918: 683b ldr r3, [r7, #0]
  9660. 800491a: 685a ldr r2, [r3, #4]
  9661. 800491c: 687b ldr r3, [r7, #4]
  9662. 800491e: 60da str r2, [r3, #12]
  9663. pObj->IO.ReadReg = ioctx->ReadReg;
  9664. 8004920: 683b ldr r3, [r7, #0]
  9665. 8004922: 68da ldr r2, [r3, #12]
  9666. 8004924: 687b ldr r3, [r7, #4]
  9667. 8004926: 615a str r2, [r3, #20]
  9668. pObj->IO.WriteReg = ioctx->WriteReg;
  9669. 8004928: 683b ldr r3, [r7, #0]
  9670. 800492a: 689a ldr r2, [r3, #8]
  9671. 800492c: 687b ldr r3, [r7, #4]
  9672. 800492e: 611a str r2, [r3, #16]
  9673. pObj->IO.GetTick = ioctx->GetTick;
  9674. 8004930: 683b ldr r3, [r7, #0]
  9675. 8004932: 691a ldr r2, [r3, #16]
  9676. 8004934: 687b ldr r3, [r7, #4]
  9677. 8004936: 619a str r2, [r3, #24]
  9678. return DP83848_STATUS_OK;
  9679. 8004938: 2300 movs r3, #0
  9680. }
  9681. 800493a: 4618 mov r0, r3
  9682. 800493c: 370c adds r7, #12
  9683. 800493e: 46bd mov sp, r7
  9684. 8004940: f85d 7b04 ldr.w r7, [sp], #4
  9685. 8004944: 4770 bx lr
  9686. 08004946 <DP83848_Init>:
  9687. * @retval DP83848_STATUS_OK if OK
  9688. * DP83848_STATUS_ADDRESS_ERROR if cannot find device address
  9689. * DP83848_STATUS_READ_ERROR if connot read register
  9690. */
  9691. int32_t DP83848_Init(dp83848_Object_t *pObj)
  9692. {
  9693. 8004946: b580 push {r7, lr}
  9694. 8004948: b086 sub sp, #24
  9695. 800494a: af00 add r7, sp, #0
  9696. 800494c: 6078 str r0, [r7, #4]
  9697. uint32_t regvalue = 0, addr = 0;
  9698. 800494e: 2300 movs r3, #0
  9699. 8004950: 60fb str r3, [r7, #12]
  9700. 8004952: 2300 movs r3, #0
  9701. 8004954: 617b str r3, [r7, #20]
  9702. int32_t status = DP83848_STATUS_OK;
  9703. 8004956: 2300 movs r3, #0
  9704. 8004958: 613b str r3, [r7, #16]
  9705. if(pObj->Is_Initialized == 0)
  9706. 800495a: 687b ldr r3, [r7, #4]
  9707. 800495c: 685b ldr r3, [r3, #4]
  9708. 800495e: 2b00 cmp r3, #0
  9709. 8004960: d139 bne.n 80049d6 <DP83848_Init+0x90>
  9710. {
  9711. if(pObj->IO.Init != 0)
  9712. 8004962: 687b ldr r3, [r7, #4]
  9713. 8004964: 689b ldr r3, [r3, #8]
  9714. 8004966: 2b00 cmp r3, #0
  9715. 8004968: d002 beq.n 8004970 <DP83848_Init+0x2a>
  9716. {
  9717. /* GPIO and Clocks initialization */
  9718. pObj->IO.Init();
  9719. 800496a: 687b ldr r3, [r7, #4]
  9720. 800496c: 689b ldr r3, [r3, #8]
  9721. 800496e: 4798 blx r3
  9722. }
  9723. /* for later check */
  9724. pObj->DevAddr = DP83848_MAX_DEV_ADDR + 1;
  9725. 8004970: 687b ldr r3, [r7, #4]
  9726. 8004972: 2220 movs r2, #32
  9727. 8004974: 601a str r2, [r3, #0]
  9728. /* Get the device address from special mode register */
  9729. for(addr = 0; addr <= DP83848_MAX_DEV_ADDR; addr ++)
  9730. 8004976: 2300 movs r3, #0
  9731. 8004978: 617b str r3, [r7, #20]
  9732. 800497a: e01c b.n 80049b6 <DP83848_Init+0x70>
  9733. {
  9734. if(pObj->IO.ReadReg(addr, DP83848_SMR, &regvalue) < 0)
  9735. 800497c: 687b ldr r3, [r7, #4]
  9736. 800497e: 695b ldr r3, [r3, #20]
  9737. 8004980: f107 020c add.w r2, r7, #12
  9738. 8004984: 2119 movs r1, #25
  9739. 8004986: 6978 ldr r0, [r7, #20]
  9740. 8004988: 4798 blx r3
  9741. 800498a: 4603 mov r3, r0
  9742. 800498c: 2b00 cmp r3, #0
  9743. 800498e: da03 bge.n 8004998 <DP83848_Init+0x52>
  9744. {
  9745. status = DP83848_STATUS_READ_ERROR;
  9746. 8004990: f06f 0304 mvn.w r3, #4
  9747. 8004994: 613b str r3, [r7, #16]
  9748. /* Can't read from this device address
  9749. continue with next address */
  9750. continue;
  9751. 8004996: e00b b.n 80049b0 <DP83848_Init+0x6a>
  9752. }
  9753. if((regvalue & DP83848_SMR_PHY_ADDR) == addr)
  9754. 8004998: 68fb ldr r3, [r7, #12]
  9755. 800499a: f003 031f and.w r3, r3, #31
  9756. 800499e: 697a ldr r2, [r7, #20]
  9757. 80049a0: 429a cmp r2, r3
  9758. 80049a2: d105 bne.n 80049b0 <DP83848_Init+0x6a>
  9759. {
  9760. pObj->DevAddr = addr;
  9761. 80049a4: 687b ldr r3, [r7, #4]
  9762. 80049a6: 697a ldr r2, [r7, #20]
  9763. 80049a8: 601a str r2, [r3, #0]
  9764. status = DP83848_STATUS_OK;
  9765. 80049aa: 2300 movs r3, #0
  9766. 80049ac: 613b str r3, [r7, #16]
  9767. break;
  9768. 80049ae: e005 b.n 80049bc <DP83848_Init+0x76>
  9769. for(addr = 0; addr <= DP83848_MAX_DEV_ADDR; addr ++)
  9770. 80049b0: 697b ldr r3, [r7, #20]
  9771. 80049b2: 3301 adds r3, #1
  9772. 80049b4: 617b str r3, [r7, #20]
  9773. 80049b6: 697b ldr r3, [r7, #20]
  9774. 80049b8: 2b1f cmp r3, #31
  9775. 80049ba: d9df bls.n 800497c <DP83848_Init+0x36>
  9776. }
  9777. }
  9778. if(pObj->DevAddr > DP83848_MAX_DEV_ADDR)
  9779. 80049bc: 687b ldr r3, [r7, #4]
  9780. 80049be: 681b ldr r3, [r3, #0]
  9781. 80049c0: 2b1f cmp r3, #31
  9782. 80049c2: d902 bls.n 80049ca <DP83848_Init+0x84>
  9783. {
  9784. status = DP83848_STATUS_ADDRESS_ERROR;
  9785. 80049c4: f06f 0302 mvn.w r3, #2
  9786. 80049c8: 613b str r3, [r7, #16]
  9787. }
  9788. /* if device address is matched */
  9789. if(status == DP83848_STATUS_OK)
  9790. 80049ca: 693b ldr r3, [r7, #16]
  9791. 80049cc: 2b00 cmp r3, #0
  9792. 80049ce: d102 bne.n 80049d6 <DP83848_Init+0x90>
  9793. {
  9794. pObj->Is_Initialized = 1;
  9795. 80049d0: 687b ldr r3, [r7, #4]
  9796. 80049d2: 2201 movs r2, #1
  9797. 80049d4: 605a str r2, [r3, #4]
  9798. }
  9799. }
  9800. return status;
  9801. 80049d6: 693b ldr r3, [r7, #16]
  9802. }
  9803. 80049d8: 4618 mov r0, r3
  9804. 80049da: 3718 adds r7, #24
  9805. 80049dc: 46bd mov sp, r7
  9806. 80049de: bd80 pop {r7, pc}
  9807. 080049e0 <DP83848_GetLinkState>:
  9808. * DP83848_STATUS_10MBITS_HALFDUPLEX if 10Mb/s HD
  9809. * DP83848_STATUS_READ_ERROR if connot read register
  9810. * DP83848_STATUS_WRITE_ERROR if connot write to register
  9811. */
  9812. int32_t DP83848_GetLinkState(dp83848_Object_t *pObj)
  9813. {
  9814. 80049e0: b580 push {r7, lr}
  9815. 80049e2: b084 sub sp, #16
  9816. 80049e4: af00 add r7, sp, #0
  9817. 80049e6: 6078 str r0, [r7, #4]
  9818. uint32_t readval = 0;
  9819. 80049e8: 2300 movs r3, #0
  9820. 80049ea: 60fb str r3, [r7, #12]
  9821. /* Read Status register */
  9822. if(pObj->IO.ReadReg(pObj->DevAddr, DP83848_BSR, &readval) < 0)
  9823. 80049ec: 687b ldr r3, [r7, #4]
  9824. 80049ee: 695b ldr r3, [r3, #20]
  9825. 80049f0: 687a ldr r2, [r7, #4]
  9826. 80049f2: 6810 ldr r0, [r2, #0]
  9827. 80049f4: f107 020c add.w r2, r7, #12
  9828. 80049f8: 2101 movs r1, #1
  9829. 80049fa: 4798 blx r3
  9830. 80049fc: 4603 mov r3, r0
  9831. 80049fe: 2b00 cmp r3, #0
  9832. 8004a00: da02 bge.n 8004a08 <DP83848_GetLinkState+0x28>
  9833. {
  9834. return DP83848_STATUS_READ_ERROR;
  9835. 8004a02: f06f 0304 mvn.w r3, #4
  9836. 8004a06: e06e b.n 8004ae6 <DP83848_GetLinkState+0x106>
  9837. }
  9838. /* Read Status register again */
  9839. if(pObj->IO.ReadReg(pObj->DevAddr, DP83848_BSR, &readval) < 0)
  9840. 8004a08: 687b ldr r3, [r7, #4]
  9841. 8004a0a: 695b ldr r3, [r3, #20]
  9842. 8004a0c: 687a ldr r2, [r7, #4]
  9843. 8004a0e: 6810 ldr r0, [r2, #0]
  9844. 8004a10: f107 020c add.w r2, r7, #12
  9845. 8004a14: 2101 movs r1, #1
  9846. 8004a16: 4798 blx r3
  9847. 8004a18: 4603 mov r3, r0
  9848. 8004a1a: 2b00 cmp r3, #0
  9849. 8004a1c: da02 bge.n 8004a24 <DP83848_GetLinkState+0x44>
  9850. {
  9851. return DP83848_STATUS_READ_ERROR;
  9852. 8004a1e: f06f 0304 mvn.w r3, #4
  9853. 8004a22: e060 b.n 8004ae6 <DP83848_GetLinkState+0x106>
  9854. }
  9855. if((readval & DP83848_BSR_LINK_STATUS) == 0)
  9856. 8004a24: 68fb ldr r3, [r7, #12]
  9857. 8004a26: f003 0304 and.w r3, r3, #4
  9858. 8004a2a: 2b00 cmp r3, #0
  9859. 8004a2c: d101 bne.n 8004a32 <DP83848_GetLinkState+0x52>
  9860. {
  9861. /* Return Link Down status */
  9862. return DP83848_STATUS_LINK_DOWN;
  9863. 8004a2e: 2301 movs r3, #1
  9864. 8004a30: e059 b.n 8004ae6 <DP83848_GetLinkState+0x106>
  9865. }
  9866. /* Check Auto negotiaition */
  9867. if(pObj->IO.ReadReg(pObj->DevAddr, DP83848_BCR, &readval) < 0)
  9868. 8004a32: 687b ldr r3, [r7, #4]
  9869. 8004a34: 695b ldr r3, [r3, #20]
  9870. 8004a36: 687a ldr r2, [r7, #4]
  9871. 8004a38: 6810 ldr r0, [r2, #0]
  9872. 8004a3a: f107 020c add.w r2, r7, #12
  9873. 8004a3e: 2100 movs r1, #0
  9874. 8004a40: 4798 blx r3
  9875. 8004a42: 4603 mov r3, r0
  9876. 8004a44: 2b00 cmp r3, #0
  9877. 8004a46: da02 bge.n 8004a4e <DP83848_GetLinkState+0x6e>
  9878. {
  9879. return DP83848_STATUS_READ_ERROR;
  9880. 8004a48: f06f 0304 mvn.w r3, #4
  9881. 8004a4c: e04b b.n 8004ae6 <DP83848_GetLinkState+0x106>
  9882. }
  9883. if((readval & DP83848_BCR_AUTONEGO_EN) != DP83848_BCR_AUTONEGO_EN)
  9884. 8004a4e: 68fb ldr r3, [r7, #12]
  9885. 8004a50: f403 5380 and.w r3, r3, #4096 @ 0x1000
  9886. 8004a54: 2b00 cmp r3, #0
  9887. 8004a56: d11b bne.n 8004a90 <DP83848_GetLinkState+0xb0>
  9888. {
  9889. if(((readval & DP83848_BCR_SPEED_SELECT) == DP83848_BCR_SPEED_SELECT) && ((readval & DP83848_BCR_DUPLEX_MODE) == DP83848_BCR_DUPLEX_MODE))
  9890. 8004a58: 68fb ldr r3, [r7, #12]
  9891. 8004a5a: f403 5300 and.w r3, r3, #8192 @ 0x2000
  9892. 8004a5e: 2b00 cmp r3, #0
  9893. 8004a60: d006 beq.n 8004a70 <DP83848_GetLinkState+0x90>
  9894. 8004a62: 68fb ldr r3, [r7, #12]
  9895. 8004a64: f403 7380 and.w r3, r3, #256 @ 0x100
  9896. 8004a68: 2b00 cmp r3, #0
  9897. 8004a6a: d001 beq.n 8004a70 <DP83848_GetLinkState+0x90>
  9898. {
  9899. return DP83848_STATUS_100MBITS_FULLDUPLEX;
  9900. 8004a6c: 2302 movs r3, #2
  9901. 8004a6e: e03a b.n 8004ae6 <DP83848_GetLinkState+0x106>
  9902. }
  9903. else if ((readval & DP83848_BCR_SPEED_SELECT) == DP83848_BCR_SPEED_SELECT)
  9904. 8004a70: 68fb ldr r3, [r7, #12]
  9905. 8004a72: f403 5300 and.w r3, r3, #8192 @ 0x2000
  9906. 8004a76: 2b00 cmp r3, #0
  9907. 8004a78: d001 beq.n 8004a7e <DP83848_GetLinkState+0x9e>
  9908. {
  9909. return DP83848_STATUS_100MBITS_HALFDUPLEX;
  9910. 8004a7a: 2303 movs r3, #3
  9911. 8004a7c: e033 b.n 8004ae6 <DP83848_GetLinkState+0x106>
  9912. }
  9913. else if ((readval & DP83848_BCR_DUPLEX_MODE) == DP83848_BCR_DUPLEX_MODE)
  9914. 8004a7e: 68fb ldr r3, [r7, #12]
  9915. 8004a80: f403 7380 and.w r3, r3, #256 @ 0x100
  9916. 8004a84: 2b00 cmp r3, #0
  9917. 8004a86: d001 beq.n 8004a8c <DP83848_GetLinkState+0xac>
  9918. {
  9919. return DP83848_STATUS_10MBITS_FULLDUPLEX;
  9920. 8004a88: 2304 movs r3, #4
  9921. 8004a8a: e02c b.n 8004ae6 <DP83848_GetLinkState+0x106>
  9922. }
  9923. else
  9924. {
  9925. return DP83848_STATUS_10MBITS_HALFDUPLEX;
  9926. 8004a8c: 2305 movs r3, #5
  9927. 8004a8e: e02a b.n 8004ae6 <DP83848_GetLinkState+0x106>
  9928. }
  9929. }
  9930. else /* Auto Nego enabled */
  9931. {
  9932. if(pObj->IO.ReadReg(pObj->DevAddr, DP83848_PHYSCSR, &readval) < 0)
  9933. 8004a90: 687b ldr r3, [r7, #4]
  9934. 8004a92: 695b ldr r3, [r3, #20]
  9935. 8004a94: 687a ldr r2, [r7, #4]
  9936. 8004a96: 6810 ldr r0, [r2, #0]
  9937. 8004a98: f107 020c add.w r2, r7, #12
  9938. 8004a9c: 2110 movs r1, #16
  9939. 8004a9e: 4798 blx r3
  9940. 8004aa0: 4603 mov r3, r0
  9941. 8004aa2: 2b00 cmp r3, #0
  9942. 8004aa4: da02 bge.n 8004aac <DP83848_GetLinkState+0xcc>
  9943. {
  9944. return DP83848_STATUS_READ_ERROR;
  9945. 8004aa6: f06f 0304 mvn.w r3, #4
  9946. 8004aaa: e01c b.n 8004ae6 <DP83848_GetLinkState+0x106>
  9947. }
  9948. /* Check if auto nego not done */
  9949. if((readval & DP83848_PHYSCSR_AUTONEGO_DONE) == 0)
  9950. 8004aac: 68fb ldr r3, [r7, #12]
  9951. 8004aae: f003 0310 and.w r3, r3, #16
  9952. 8004ab2: 2b00 cmp r3, #0
  9953. 8004ab4: d101 bne.n 8004aba <DP83848_GetLinkState+0xda>
  9954. {
  9955. return DP83848_STATUS_AUTONEGO_NOTDONE;
  9956. 8004ab6: 2306 movs r3, #6
  9957. 8004ab8: e015 b.n 8004ae6 <DP83848_GetLinkState+0x106>
  9958. }
  9959. if((readval & DP83848_PHYSCSR_HCDSPEEDMASK) == DP83848_PHYSCSR_100BTX_FD)
  9960. 8004aba: 68fb ldr r3, [r7, #12]
  9961. 8004abc: f003 0306 and.w r3, r3, #6
  9962. 8004ac0: 2b04 cmp r3, #4
  9963. 8004ac2: d101 bne.n 8004ac8 <DP83848_GetLinkState+0xe8>
  9964. {
  9965. return DP83848_STATUS_100MBITS_FULLDUPLEX;
  9966. 8004ac4: 2302 movs r3, #2
  9967. 8004ac6: e00e b.n 8004ae6 <DP83848_GetLinkState+0x106>
  9968. }
  9969. else if ((readval & DP83848_PHYSCSR_HCDSPEEDMASK) == DP83848_PHYSCSR_100BTX_HD)
  9970. 8004ac8: 68fb ldr r3, [r7, #12]
  9971. 8004aca: f003 0306 and.w r3, r3, #6
  9972. 8004ace: 2b00 cmp r3, #0
  9973. 8004ad0: d101 bne.n 8004ad6 <DP83848_GetLinkState+0xf6>
  9974. {
  9975. return DP83848_STATUS_100MBITS_HALFDUPLEX;
  9976. 8004ad2: 2303 movs r3, #3
  9977. 8004ad4: e007 b.n 8004ae6 <DP83848_GetLinkState+0x106>
  9978. }
  9979. else if ((readval & DP83848_PHYSCSR_HCDSPEEDMASK) == DP83848_PHYSCSR_10BT_FD)
  9980. 8004ad6: 68fb ldr r3, [r7, #12]
  9981. 8004ad8: f003 0306 and.w r3, r3, #6
  9982. 8004adc: 2b06 cmp r3, #6
  9983. 8004ade: d101 bne.n 8004ae4 <DP83848_GetLinkState+0x104>
  9984. {
  9985. return DP83848_STATUS_10MBITS_FULLDUPLEX;
  9986. 8004ae0: 2304 movs r3, #4
  9987. 8004ae2: e000 b.n 8004ae6 <DP83848_GetLinkState+0x106>
  9988. }
  9989. else
  9990. {
  9991. return DP83848_STATUS_10MBITS_HALFDUPLEX;
  9992. 8004ae4: 2305 movs r3, #5
  9993. }
  9994. }
  9995. }
  9996. 8004ae6: 4618 mov r0, r3
  9997. 8004ae8: 3710 adds r7, #16
  9998. 8004aea: 46bd mov sp, r7
  9999. 8004aec: bd80 pop {r7, pc}
  10000. ...
  10001. 08004af0 <HAL_Init>:
  10002. * need to ensure that the SysTick time base is always set to 1 millisecond
  10003. * to have correct HAL operation.
  10004. * @retval HAL status
  10005. */
  10006. HAL_StatusTypeDef HAL_Init(void)
  10007. {
  10008. 8004af0: b580 push {r7, lr}
  10009. 8004af2: b082 sub sp, #8
  10010. 8004af4: af00 add r7, sp, #0
  10011. __HAL_ART_CONFIG_BASE_ADDRESS(0x08100000UL); /* Configure the Cortex-M4 ART Base address to the Flash Bank 2 : */
  10012. __HAL_ART_ENABLE(); /* Enable the Cortex-M4 ART */
  10013. #endif /* DUAL_CORE && CORE_CM4 */
  10014. /* Set Interrupt Group Priority */
  10015. HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
  10016. 8004af6: 2003 movs r0, #3
  10017. 8004af8: f000 f947 bl 8004d8a <HAL_NVIC_SetPriorityGrouping>
  10018. /* Update the SystemCoreClock global variable */
  10019. #if defined(RCC_D1CFGR_D1CPRE)
  10020. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE)>> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU);
  10021. 8004afc: f005 fb8c bl 800a218 <HAL_RCC_GetSysClockFreq>
  10022. 8004b00: 4602 mov r2, r0
  10023. 8004b02: 4b15 ldr r3, [pc, #84] @ (8004b58 <HAL_Init+0x68>)
  10024. 8004b04: 699b ldr r3, [r3, #24]
  10025. 8004b06: 0a1b lsrs r3, r3, #8
  10026. 8004b08: f003 030f and.w r3, r3, #15
  10027. 8004b0c: 4913 ldr r1, [pc, #76] @ (8004b5c <HAL_Init+0x6c>)
  10028. 8004b0e: 5ccb ldrb r3, [r1, r3]
  10029. 8004b10: f003 031f and.w r3, r3, #31
  10030. 8004b14: fa22 f303 lsr.w r3, r2, r3
  10031. 8004b18: 607b str r3, [r7, #4]
  10032. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE)>> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU);
  10033. #endif
  10034. /* Update the SystemD2Clock global variable */
  10035. #if defined(RCC_D1CFGR_HPRE)
  10036. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE)>> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  10037. 8004b1a: 4b0f ldr r3, [pc, #60] @ (8004b58 <HAL_Init+0x68>)
  10038. 8004b1c: 699b ldr r3, [r3, #24]
  10039. 8004b1e: f003 030f and.w r3, r3, #15
  10040. 8004b22: 4a0e ldr r2, [pc, #56] @ (8004b5c <HAL_Init+0x6c>)
  10041. 8004b24: 5cd3 ldrb r3, [r2, r3]
  10042. 8004b26: f003 031f and.w r3, r3, #31
  10043. 8004b2a: 687a ldr r2, [r7, #4]
  10044. 8004b2c: fa22 f303 lsr.w r3, r2, r3
  10045. 8004b30: 4a0b ldr r2, [pc, #44] @ (8004b60 <HAL_Init+0x70>)
  10046. 8004b32: 6013 str r3, [r2, #0]
  10047. #endif
  10048. #if defined(DUAL_CORE) && defined(CORE_CM4)
  10049. SystemCoreClock = SystemD2Clock;
  10050. #else
  10051. SystemCoreClock = common_system_clock;
  10052. 8004b34: 4a0b ldr r2, [pc, #44] @ (8004b64 <HAL_Init+0x74>)
  10053. 8004b36: 687b ldr r3, [r7, #4]
  10054. 8004b38: 6013 str r3, [r2, #0]
  10055. #endif /* DUAL_CORE && CORE_CM4 */
  10056. /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */
  10057. if(HAL_InitTick(TICK_INT_PRIORITY) != HAL_OK)
  10058. 8004b3a: 200f movs r0, #15
  10059. 8004b3c: f7fe fefe bl 800393c <HAL_InitTick>
  10060. 8004b40: 4603 mov r3, r0
  10061. 8004b42: 2b00 cmp r3, #0
  10062. 8004b44: d001 beq.n 8004b4a <HAL_Init+0x5a>
  10063. {
  10064. return HAL_ERROR;
  10065. 8004b46: 2301 movs r3, #1
  10066. 8004b48: e002 b.n 8004b50 <HAL_Init+0x60>
  10067. }
  10068. /* Init the low level hardware */
  10069. HAL_MspInit();
  10070. 8004b4a: f7fe fd9f bl 800368c <HAL_MspInit>
  10071. /* Return function status */
  10072. return HAL_OK;
  10073. 8004b4e: 2300 movs r3, #0
  10074. }
  10075. 8004b50: 4618 mov r0, r3
  10076. 8004b52: 3708 adds r7, #8
  10077. 8004b54: 46bd mov sp, r7
  10078. 8004b56: bd80 pop {r7, pc}
  10079. 8004b58: 58024400 .word 0x58024400
  10080. 8004b5c: 080305b8 .word 0x080305b8
  10081. 8004b60: 24000010 .word 0x24000010
  10082. 8004b64: 2400000c .word 0x2400000c
  10083. 08004b68 <HAL_IncTick>:
  10084. * @note This function is declared as __weak to be overwritten in case of other
  10085. * implementations in user file.
  10086. * @retval None
  10087. */
  10088. __weak void HAL_IncTick(void)
  10089. {
  10090. 8004b68: b480 push {r7}
  10091. 8004b6a: af00 add r7, sp, #0
  10092. uwTick += (uint32_t)uwTickFreq;
  10093. 8004b6c: 4b06 ldr r3, [pc, #24] @ (8004b88 <HAL_IncTick+0x20>)
  10094. 8004b6e: 781b ldrb r3, [r3, #0]
  10095. 8004b70: 461a mov r2, r3
  10096. 8004b72: 4b06 ldr r3, [pc, #24] @ (8004b8c <HAL_IncTick+0x24>)
  10097. 8004b74: 681b ldr r3, [r3, #0]
  10098. 8004b76: 4413 add r3, r2
  10099. 8004b78: 4a04 ldr r2, [pc, #16] @ (8004b8c <HAL_IncTick+0x24>)
  10100. 8004b7a: 6013 str r3, [r2, #0]
  10101. }
  10102. 8004b7c: bf00 nop
  10103. 8004b7e: 46bd mov sp, r7
  10104. 8004b80: f85d 7b04 ldr.w r7, [sp], #4
  10105. 8004b84: 4770 bx lr
  10106. 8004b86: bf00 nop
  10107. 8004b88: 2400001c .word 0x2400001c
  10108. 8004b8c: 240012d4 .word 0x240012d4
  10109. 08004b90 <HAL_GetTick>:
  10110. * @note This function is declared as __weak to be overwritten in case of other
  10111. * implementations in user file.
  10112. * @retval tick value
  10113. */
  10114. __weak uint32_t HAL_GetTick(void)
  10115. {
  10116. 8004b90: b480 push {r7}
  10117. 8004b92: af00 add r7, sp, #0
  10118. return uwTick;
  10119. 8004b94: 4b03 ldr r3, [pc, #12] @ (8004ba4 <HAL_GetTick+0x14>)
  10120. 8004b96: 681b ldr r3, [r3, #0]
  10121. }
  10122. 8004b98: 4618 mov r0, r3
  10123. 8004b9a: 46bd mov sp, r7
  10124. 8004b9c: f85d 7b04 ldr.w r7, [sp], #4
  10125. 8004ba0: 4770 bx lr
  10126. 8004ba2: bf00 nop
  10127. 8004ba4: 240012d4 .word 0x240012d4
  10128. 08004ba8 <HAL_Delay>:
  10129. * implementations in user file.
  10130. * @param Delay specifies the delay time length, in milliseconds.
  10131. * @retval None
  10132. */
  10133. __weak void HAL_Delay(uint32_t Delay)
  10134. {
  10135. 8004ba8: b580 push {r7, lr}
  10136. 8004baa: b084 sub sp, #16
  10137. 8004bac: af00 add r7, sp, #0
  10138. 8004bae: 6078 str r0, [r7, #4]
  10139. uint32_t tickstart = HAL_GetTick();
  10140. 8004bb0: f7ff ffee bl 8004b90 <HAL_GetTick>
  10141. 8004bb4: 60b8 str r0, [r7, #8]
  10142. uint32_t wait = Delay;
  10143. 8004bb6: 687b ldr r3, [r7, #4]
  10144. 8004bb8: 60fb str r3, [r7, #12]
  10145. /* Add a freq to guarantee minimum wait */
  10146. if (wait < HAL_MAX_DELAY)
  10147. 8004bba: 68fb ldr r3, [r7, #12]
  10148. 8004bbc: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  10149. 8004bc0: d005 beq.n 8004bce <HAL_Delay+0x26>
  10150. {
  10151. wait += (uint32_t)(uwTickFreq);
  10152. 8004bc2: 4b0a ldr r3, [pc, #40] @ (8004bec <HAL_Delay+0x44>)
  10153. 8004bc4: 781b ldrb r3, [r3, #0]
  10154. 8004bc6: 461a mov r2, r3
  10155. 8004bc8: 68fb ldr r3, [r7, #12]
  10156. 8004bca: 4413 add r3, r2
  10157. 8004bcc: 60fb str r3, [r7, #12]
  10158. }
  10159. while ((HAL_GetTick() - tickstart) < wait)
  10160. 8004bce: bf00 nop
  10161. 8004bd0: f7ff ffde bl 8004b90 <HAL_GetTick>
  10162. 8004bd4: 4602 mov r2, r0
  10163. 8004bd6: 68bb ldr r3, [r7, #8]
  10164. 8004bd8: 1ad3 subs r3, r2, r3
  10165. 8004bda: 68fa ldr r2, [r7, #12]
  10166. 8004bdc: 429a cmp r2, r3
  10167. 8004bde: d8f7 bhi.n 8004bd0 <HAL_Delay+0x28>
  10168. {
  10169. }
  10170. }
  10171. 8004be0: bf00 nop
  10172. 8004be2: bf00 nop
  10173. 8004be4: 3710 adds r7, #16
  10174. 8004be6: 46bd mov sp, r7
  10175. 8004be8: bd80 pop {r7, pc}
  10176. 8004bea: bf00 nop
  10177. 8004bec: 2400001c .word 0x2400001c
  10178. 08004bf0 <HAL_GetREVID>:
  10179. /**
  10180. * @brief Returns the device revision identifier.
  10181. * @retval Device revision identifier
  10182. */
  10183. uint32_t HAL_GetREVID(void)
  10184. {
  10185. 8004bf0: b480 push {r7}
  10186. 8004bf2: af00 add r7, sp, #0
  10187. return((DBGMCU->IDCODE) >> 16);
  10188. 8004bf4: 4b03 ldr r3, [pc, #12] @ (8004c04 <HAL_GetREVID+0x14>)
  10189. 8004bf6: 681b ldr r3, [r3, #0]
  10190. 8004bf8: 0c1b lsrs r3, r3, #16
  10191. }
  10192. 8004bfa: 4618 mov r0, r3
  10193. 8004bfc: 46bd mov sp, r7
  10194. 8004bfe: f85d 7b04 ldr.w r7, [sp], #4
  10195. 8004c02: 4770 bx lr
  10196. 8004c04: 5c001000 .word 0x5c001000
  10197. 08004c08 <HAL_SYSCFG_ETHInterfaceSelect>:
  10198. * @arg SYSCFG_ETH_MII : Select the Media Independent Interface
  10199. * @arg SYSCFG_ETH_RMII: Select the Reduced Media Independent Interface
  10200. * @retval None
  10201. */
  10202. void HAL_SYSCFG_ETHInterfaceSelect(uint32_t SYSCFG_ETHInterface)
  10203. {
  10204. 8004c08: b480 push {r7}
  10205. 8004c0a: b083 sub sp, #12
  10206. 8004c0c: af00 add r7, sp, #0
  10207. 8004c0e: 6078 str r0, [r7, #4]
  10208. /* Check the parameter */
  10209. assert_param(IS_SYSCFG_ETHERNET_CONFIG(SYSCFG_ETHInterface));
  10210. MODIFY_REG(SYSCFG->PMCR, SYSCFG_PMCR_EPIS_SEL, (uint32_t)(SYSCFG_ETHInterface));
  10211. 8004c10: 4b06 ldr r3, [pc, #24] @ (8004c2c <HAL_SYSCFG_ETHInterfaceSelect+0x24>)
  10212. 8004c12: 685b ldr r3, [r3, #4]
  10213. 8004c14: f423 0260 bic.w r2, r3, #14680064 @ 0xe00000
  10214. 8004c18: 4904 ldr r1, [pc, #16] @ (8004c2c <HAL_SYSCFG_ETHInterfaceSelect+0x24>)
  10215. 8004c1a: 687b ldr r3, [r7, #4]
  10216. 8004c1c: 4313 orrs r3, r2
  10217. 8004c1e: 604b str r3, [r1, #4]
  10218. }
  10219. 8004c20: bf00 nop
  10220. 8004c22: 370c adds r7, #12
  10221. 8004c24: 46bd mov sp, r7
  10222. 8004c26: f85d 7b04 ldr.w r7, [sp], #4
  10223. 8004c2a: 4770 bx lr
  10224. 8004c2c: 58000400 .word 0x58000400
  10225. 08004c30 <__NVIC_SetPriorityGrouping>:
  10226. {
  10227. 8004c30: b480 push {r7}
  10228. 8004c32: b085 sub sp, #20
  10229. 8004c34: af00 add r7, sp, #0
  10230. 8004c36: 6078 str r0, [r7, #4]
  10231. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  10232. 8004c38: 687b ldr r3, [r7, #4]
  10233. 8004c3a: f003 0307 and.w r3, r3, #7
  10234. 8004c3e: 60fb str r3, [r7, #12]
  10235. reg_value = SCB->AIRCR; /* read old register configuration */
  10236. 8004c40: 4b0b ldr r3, [pc, #44] @ (8004c70 <__NVIC_SetPriorityGrouping+0x40>)
  10237. 8004c42: 68db ldr r3, [r3, #12]
  10238. 8004c44: 60bb str r3, [r7, #8]
  10239. reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
  10240. 8004c46: 68ba ldr r2, [r7, #8]
  10241. 8004c48: f64f 03ff movw r3, #63743 @ 0xf8ff
  10242. 8004c4c: 4013 ands r3, r2
  10243. 8004c4e: 60bb str r3, [r7, #8]
  10244. (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */
  10245. 8004c50: 68fb ldr r3, [r7, #12]
  10246. 8004c52: 021a lsls r2, r3, #8
  10247. ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  10248. 8004c54: 68bb ldr r3, [r7, #8]
  10249. 8004c56: 431a orrs r2, r3
  10250. reg_value = (reg_value |
  10251. 8004c58: 4b06 ldr r3, [pc, #24] @ (8004c74 <__NVIC_SetPriorityGrouping+0x44>)
  10252. 8004c5a: 4313 orrs r3, r2
  10253. 8004c5c: 60bb str r3, [r7, #8]
  10254. SCB->AIRCR = reg_value;
  10255. 8004c5e: 4a04 ldr r2, [pc, #16] @ (8004c70 <__NVIC_SetPriorityGrouping+0x40>)
  10256. 8004c60: 68bb ldr r3, [r7, #8]
  10257. 8004c62: 60d3 str r3, [r2, #12]
  10258. }
  10259. 8004c64: bf00 nop
  10260. 8004c66: 3714 adds r7, #20
  10261. 8004c68: 46bd mov sp, r7
  10262. 8004c6a: f85d 7b04 ldr.w r7, [sp], #4
  10263. 8004c6e: 4770 bx lr
  10264. 8004c70: e000ed00 .word 0xe000ed00
  10265. 8004c74: 05fa0000 .word 0x05fa0000
  10266. 08004c78 <__NVIC_GetPriorityGrouping>:
  10267. {
  10268. 8004c78: b480 push {r7}
  10269. 8004c7a: af00 add r7, sp, #0
  10270. return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
  10271. 8004c7c: 4b04 ldr r3, [pc, #16] @ (8004c90 <__NVIC_GetPriorityGrouping+0x18>)
  10272. 8004c7e: 68db ldr r3, [r3, #12]
  10273. 8004c80: 0a1b lsrs r3, r3, #8
  10274. 8004c82: f003 0307 and.w r3, r3, #7
  10275. }
  10276. 8004c86: 4618 mov r0, r3
  10277. 8004c88: 46bd mov sp, r7
  10278. 8004c8a: f85d 7b04 ldr.w r7, [sp], #4
  10279. 8004c8e: 4770 bx lr
  10280. 8004c90: e000ed00 .word 0xe000ed00
  10281. 08004c94 <__NVIC_EnableIRQ>:
  10282. {
  10283. 8004c94: b480 push {r7}
  10284. 8004c96: b083 sub sp, #12
  10285. 8004c98: af00 add r7, sp, #0
  10286. 8004c9a: 4603 mov r3, r0
  10287. 8004c9c: 80fb strh r3, [r7, #6]
  10288. if ((int32_t)(IRQn) >= 0)
  10289. 8004c9e: f9b7 3006 ldrsh.w r3, [r7, #6]
  10290. 8004ca2: 2b00 cmp r3, #0
  10291. 8004ca4: db0b blt.n 8004cbe <__NVIC_EnableIRQ+0x2a>
  10292. NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
  10293. 8004ca6: 88fb ldrh r3, [r7, #6]
  10294. 8004ca8: f003 021f and.w r2, r3, #31
  10295. 8004cac: 4907 ldr r1, [pc, #28] @ (8004ccc <__NVIC_EnableIRQ+0x38>)
  10296. 8004cae: f9b7 3006 ldrsh.w r3, [r7, #6]
  10297. 8004cb2: 095b lsrs r3, r3, #5
  10298. 8004cb4: 2001 movs r0, #1
  10299. 8004cb6: fa00 f202 lsl.w r2, r0, r2
  10300. 8004cba: f841 2023 str.w r2, [r1, r3, lsl #2]
  10301. }
  10302. 8004cbe: bf00 nop
  10303. 8004cc0: 370c adds r7, #12
  10304. 8004cc2: 46bd mov sp, r7
  10305. 8004cc4: f85d 7b04 ldr.w r7, [sp], #4
  10306. 8004cc8: 4770 bx lr
  10307. 8004cca: bf00 nop
  10308. 8004ccc: e000e100 .word 0xe000e100
  10309. 08004cd0 <__NVIC_SetPriority>:
  10310. {
  10311. 8004cd0: b480 push {r7}
  10312. 8004cd2: b083 sub sp, #12
  10313. 8004cd4: af00 add r7, sp, #0
  10314. 8004cd6: 4603 mov r3, r0
  10315. 8004cd8: 6039 str r1, [r7, #0]
  10316. 8004cda: 80fb strh r3, [r7, #6]
  10317. if ((int32_t)(IRQn) >= 0)
  10318. 8004cdc: f9b7 3006 ldrsh.w r3, [r7, #6]
  10319. 8004ce0: 2b00 cmp r3, #0
  10320. 8004ce2: db0a blt.n 8004cfa <__NVIC_SetPriority+0x2a>
  10321. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  10322. 8004ce4: 683b ldr r3, [r7, #0]
  10323. 8004ce6: b2da uxtb r2, r3
  10324. 8004ce8: 490c ldr r1, [pc, #48] @ (8004d1c <__NVIC_SetPriority+0x4c>)
  10325. 8004cea: f9b7 3006 ldrsh.w r3, [r7, #6]
  10326. 8004cee: 0112 lsls r2, r2, #4
  10327. 8004cf0: b2d2 uxtb r2, r2
  10328. 8004cf2: 440b add r3, r1
  10329. 8004cf4: f883 2300 strb.w r2, [r3, #768] @ 0x300
  10330. }
  10331. 8004cf8: e00a b.n 8004d10 <__NVIC_SetPriority+0x40>
  10332. SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  10333. 8004cfa: 683b ldr r3, [r7, #0]
  10334. 8004cfc: b2da uxtb r2, r3
  10335. 8004cfe: 4908 ldr r1, [pc, #32] @ (8004d20 <__NVIC_SetPriority+0x50>)
  10336. 8004d00: 88fb ldrh r3, [r7, #6]
  10337. 8004d02: f003 030f and.w r3, r3, #15
  10338. 8004d06: 3b04 subs r3, #4
  10339. 8004d08: 0112 lsls r2, r2, #4
  10340. 8004d0a: b2d2 uxtb r2, r2
  10341. 8004d0c: 440b add r3, r1
  10342. 8004d0e: 761a strb r2, [r3, #24]
  10343. }
  10344. 8004d10: bf00 nop
  10345. 8004d12: 370c adds r7, #12
  10346. 8004d14: 46bd mov sp, r7
  10347. 8004d16: f85d 7b04 ldr.w r7, [sp], #4
  10348. 8004d1a: 4770 bx lr
  10349. 8004d1c: e000e100 .word 0xe000e100
  10350. 8004d20: e000ed00 .word 0xe000ed00
  10351. 08004d24 <NVIC_EncodePriority>:
  10352. {
  10353. 8004d24: b480 push {r7}
  10354. 8004d26: b089 sub sp, #36 @ 0x24
  10355. 8004d28: af00 add r7, sp, #0
  10356. 8004d2a: 60f8 str r0, [r7, #12]
  10357. 8004d2c: 60b9 str r1, [r7, #8]
  10358. 8004d2e: 607a str r2, [r7, #4]
  10359. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  10360. 8004d30: 68fb ldr r3, [r7, #12]
  10361. 8004d32: f003 0307 and.w r3, r3, #7
  10362. 8004d36: 61fb str r3, [r7, #28]
  10363. PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp);
  10364. 8004d38: 69fb ldr r3, [r7, #28]
  10365. 8004d3a: f1c3 0307 rsb r3, r3, #7
  10366. 8004d3e: 2b04 cmp r3, #4
  10367. 8004d40: bf28 it cs
  10368. 8004d42: 2304 movcs r3, #4
  10369. 8004d44: 61bb str r3, [r7, #24]
  10370. SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS));
  10371. 8004d46: 69fb ldr r3, [r7, #28]
  10372. 8004d48: 3304 adds r3, #4
  10373. 8004d4a: 2b06 cmp r3, #6
  10374. 8004d4c: d902 bls.n 8004d54 <NVIC_EncodePriority+0x30>
  10375. 8004d4e: 69fb ldr r3, [r7, #28]
  10376. 8004d50: 3b03 subs r3, #3
  10377. 8004d52: e000 b.n 8004d56 <NVIC_EncodePriority+0x32>
  10378. 8004d54: 2300 movs r3, #0
  10379. 8004d56: 617b str r3, [r7, #20]
  10380. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  10381. 8004d58: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  10382. 8004d5c: 69bb ldr r3, [r7, #24]
  10383. 8004d5e: fa02 f303 lsl.w r3, r2, r3
  10384. 8004d62: 43da mvns r2, r3
  10385. 8004d64: 68bb ldr r3, [r7, #8]
  10386. 8004d66: 401a ands r2, r3
  10387. 8004d68: 697b ldr r3, [r7, #20]
  10388. 8004d6a: 409a lsls r2, r3
  10389. ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL)))
  10390. 8004d6c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10391. 8004d70: 697b ldr r3, [r7, #20]
  10392. 8004d72: fa01 f303 lsl.w r3, r1, r3
  10393. 8004d76: 43d9 mvns r1, r3
  10394. 8004d78: 687b ldr r3, [r7, #4]
  10395. 8004d7a: 400b ands r3, r1
  10396. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  10397. 8004d7c: 4313 orrs r3, r2
  10398. }
  10399. 8004d7e: 4618 mov r0, r3
  10400. 8004d80: 3724 adds r7, #36 @ 0x24
  10401. 8004d82: 46bd mov sp, r7
  10402. 8004d84: f85d 7b04 ldr.w r7, [sp], #4
  10403. 8004d88: 4770 bx lr
  10404. 08004d8a <HAL_NVIC_SetPriorityGrouping>:
  10405. * @note When the NVIC_PriorityGroup_0 is selected, IRQ preemption is no more possible.
  10406. * The pending IRQ priority will be managed only by the subpriority.
  10407. * @retval None
  10408. */
  10409. void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
  10410. {
  10411. 8004d8a: b580 push {r7, lr}
  10412. 8004d8c: b082 sub sp, #8
  10413. 8004d8e: af00 add r7, sp, #0
  10414. 8004d90: 6078 str r0, [r7, #4]
  10415. /* Check the parameters */
  10416. assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup));
  10417. /* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */
  10418. NVIC_SetPriorityGrouping(PriorityGroup);
  10419. 8004d92: 6878 ldr r0, [r7, #4]
  10420. 8004d94: f7ff ff4c bl 8004c30 <__NVIC_SetPriorityGrouping>
  10421. }
  10422. 8004d98: bf00 nop
  10423. 8004d9a: 3708 adds r7, #8
  10424. 8004d9c: 46bd mov sp, r7
  10425. 8004d9e: bd80 pop {r7, pc}
  10426. 08004da0 <HAL_NVIC_SetPriority>:
  10427. * This parameter can be a value between 0 and 15
  10428. * A lower priority value indicates a higher priority.
  10429. * @retval None
  10430. */
  10431. void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
  10432. {
  10433. 8004da0: b580 push {r7, lr}
  10434. 8004da2: b086 sub sp, #24
  10435. 8004da4: af00 add r7, sp, #0
  10436. 8004da6: 4603 mov r3, r0
  10437. 8004da8: 60b9 str r1, [r7, #8]
  10438. 8004daa: 607a str r2, [r7, #4]
  10439. 8004dac: 81fb strh r3, [r7, #14]
  10440. /* Check the parameters */
  10441. assert_param(IS_NVIC_SUB_PRIORITY(SubPriority));
  10442. assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));
  10443. prioritygroup = NVIC_GetPriorityGrouping();
  10444. 8004dae: f7ff ff63 bl 8004c78 <__NVIC_GetPriorityGrouping>
  10445. 8004db2: 6178 str r0, [r7, #20]
  10446. NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority));
  10447. 8004db4: 687a ldr r2, [r7, #4]
  10448. 8004db6: 68b9 ldr r1, [r7, #8]
  10449. 8004db8: 6978 ldr r0, [r7, #20]
  10450. 8004dba: f7ff ffb3 bl 8004d24 <NVIC_EncodePriority>
  10451. 8004dbe: 4602 mov r2, r0
  10452. 8004dc0: f9b7 300e ldrsh.w r3, [r7, #14]
  10453. 8004dc4: 4611 mov r1, r2
  10454. 8004dc6: 4618 mov r0, r3
  10455. 8004dc8: f7ff ff82 bl 8004cd0 <__NVIC_SetPriority>
  10456. }
  10457. 8004dcc: bf00 nop
  10458. 8004dce: 3718 adds r7, #24
  10459. 8004dd0: 46bd mov sp, r7
  10460. 8004dd2: bd80 pop {r7, pc}
  10461. 08004dd4 <HAL_NVIC_EnableIRQ>:
  10462. * This parameter can be an enumerator of IRQn_Type enumeration
  10463. * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32h7xxxx.h))
  10464. * @retval None
  10465. */
  10466. void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
  10467. {
  10468. 8004dd4: b580 push {r7, lr}
  10469. 8004dd6: b082 sub sp, #8
  10470. 8004dd8: af00 add r7, sp, #0
  10471. 8004dda: 4603 mov r3, r0
  10472. 8004ddc: 80fb strh r3, [r7, #6]
  10473. /* Check the parameters */
  10474. assert_param(IS_NVIC_DEVICE_IRQ(IRQn));
  10475. /* Enable interrupt */
  10476. NVIC_EnableIRQ(IRQn);
  10477. 8004dde: f9b7 3006 ldrsh.w r3, [r7, #6]
  10478. 8004de2: 4618 mov r0, r3
  10479. 8004de4: f7ff ff56 bl 8004c94 <__NVIC_EnableIRQ>
  10480. }
  10481. 8004de8: bf00 nop
  10482. 8004dea: 3708 adds r7, #8
  10483. 8004dec: 46bd mov sp, r7
  10484. 8004dee: bd80 pop {r7, pc}
  10485. 08004df0 <HAL_MPU_Disable>:
  10486. /**
  10487. * @brief Disables the MPU
  10488. * @retval None
  10489. */
  10490. void HAL_MPU_Disable(void)
  10491. {
  10492. 8004df0: b480 push {r7}
  10493. 8004df2: af00 add r7, sp, #0
  10494. \details Ensures the apparent order of the explicit memory operations before
  10495. and after the instruction, without ensuring their completion.
  10496. */
  10497. __STATIC_FORCEINLINE void __DMB(void)
  10498. {
  10499. __ASM volatile ("dmb 0xF":::"memory");
  10500. 8004df4: f3bf 8f5f dmb sy
  10501. }
  10502. 8004df8: bf00 nop
  10503. /* Make sure outstanding transfers are done */
  10504. __DMB();
  10505. /* Disable fault exceptions */
  10506. SCB->SHCSR &= ~SCB_SHCSR_MEMFAULTENA_Msk;
  10507. 8004dfa: 4b07 ldr r3, [pc, #28] @ (8004e18 <HAL_MPU_Disable+0x28>)
  10508. 8004dfc: 6a5b ldr r3, [r3, #36] @ 0x24
  10509. 8004dfe: 4a06 ldr r2, [pc, #24] @ (8004e18 <HAL_MPU_Disable+0x28>)
  10510. 8004e00: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  10511. 8004e04: 6253 str r3, [r2, #36] @ 0x24
  10512. /* Disable the MPU and clear the control register*/
  10513. MPU->CTRL = 0;
  10514. 8004e06: 4b05 ldr r3, [pc, #20] @ (8004e1c <HAL_MPU_Disable+0x2c>)
  10515. 8004e08: 2200 movs r2, #0
  10516. 8004e0a: 605a str r2, [r3, #4]
  10517. }
  10518. 8004e0c: bf00 nop
  10519. 8004e0e: 46bd mov sp, r7
  10520. 8004e10: f85d 7b04 ldr.w r7, [sp], #4
  10521. 8004e14: 4770 bx lr
  10522. 8004e16: bf00 nop
  10523. 8004e18: e000ed00 .word 0xe000ed00
  10524. 8004e1c: e000ed90 .word 0xe000ed90
  10525. 08004e20 <HAL_MPU_Enable>:
  10526. * @arg MPU_PRIVILEGED_DEFAULT
  10527. * @arg MPU_HFNMI_PRIVDEF
  10528. * @retval None
  10529. */
  10530. void HAL_MPU_Enable(uint32_t MPU_Control)
  10531. {
  10532. 8004e20: b480 push {r7}
  10533. 8004e22: b083 sub sp, #12
  10534. 8004e24: af00 add r7, sp, #0
  10535. 8004e26: 6078 str r0, [r7, #4]
  10536. /* Enable the MPU */
  10537. MPU->CTRL = MPU_Control | MPU_CTRL_ENABLE_Msk;
  10538. 8004e28: 4a0b ldr r2, [pc, #44] @ (8004e58 <HAL_MPU_Enable+0x38>)
  10539. 8004e2a: 687b ldr r3, [r7, #4]
  10540. 8004e2c: f043 0301 orr.w r3, r3, #1
  10541. 8004e30: 6053 str r3, [r2, #4]
  10542. /* Enable fault exceptions */
  10543. SCB->SHCSR |= SCB_SHCSR_MEMFAULTENA_Msk;
  10544. 8004e32: 4b0a ldr r3, [pc, #40] @ (8004e5c <HAL_MPU_Enable+0x3c>)
  10545. 8004e34: 6a5b ldr r3, [r3, #36] @ 0x24
  10546. 8004e36: 4a09 ldr r2, [pc, #36] @ (8004e5c <HAL_MPU_Enable+0x3c>)
  10547. 8004e38: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  10548. 8004e3c: 6253 str r3, [r2, #36] @ 0x24
  10549. __ASM volatile ("dsb 0xF":::"memory");
  10550. 8004e3e: f3bf 8f4f dsb sy
  10551. }
  10552. 8004e42: bf00 nop
  10553. __ASM volatile ("isb 0xF":::"memory");
  10554. 8004e44: f3bf 8f6f isb sy
  10555. }
  10556. 8004e48: bf00 nop
  10557. /* Ensure MPU setting take effects */
  10558. __DSB();
  10559. __ISB();
  10560. }
  10561. 8004e4a: bf00 nop
  10562. 8004e4c: 370c adds r7, #12
  10563. 8004e4e: 46bd mov sp, r7
  10564. 8004e50: f85d 7b04 ldr.w r7, [sp], #4
  10565. 8004e54: 4770 bx lr
  10566. 8004e56: bf00 nop
  10567. 8004e58: e000ed90 .word 0xe000ed90
  10568. 8004e5c: e000ed00 .word 0xe000ed00
  10569. 08004e60 <HAL_MPU_ConfigRegion>:
  10570. * @param MPU_Init Pointer to a MPU_Region_InitTypeDef structure that contains
  10571. * the initialization and configuration information.
  10572. * @retval None
  10573. */
  10574. void HAL_MPU_ConfigRegion(MPU_Region_InitTypeDef *MPU_Init)
  10575. {
  10576. 8004e60: b480 push {r7}
  10577. 8004e62: b083 sub sp, #12
  10578. 8004e64: af00 add r7, sp, #0
  10579. 8004e66: 6078 str r0, [r7, #4]
  10580. assert_param(IS_MPU_ACCESS_BUFFERABLE(MPU_Init->IsBufferable));
  10581. assert_param(IS_MPU_SUB_REGION_DISABLE(MPU_Init->SubRegionDisable));
  10582. assert_param(IS_MPU_REGION_SIZE(MPU_Init->Size));
  10583. /* Set the Region number */
  10584. MPU->RNR = MPU_Init->Number;
  10585. 8004e68: 687b ldr r3, [r7, #4]
  10586. 8004e6a: 785a ldrb r2, [r3, #1]
  10587. 8004e6c: 4b1b ldr r3, [pc, #108] @ (8004edc <HAL_MPU_ConfigRegion+0x7c>)
  10588. 8004e6e: 609a str r2, [r3, #8]
  10589. /* Disable the Region */
  10590. CLEAR_BIT(MPU->RASR, MPU_RASR_ENABLE_Msk);
  10591. 8004e70: 4b1a ldr r3, [pc, #104] @ (8004edc <HAL_MPU_ConfigRegion+0x7c>)
  10592. 8004e72: 691b ldr r3, [r3, #16]
  10593. 8004e74: 4a19 ldr r2, [pc, #100] @ (8004edc <HAL_MPU_ConfigRegion+0x7c>)
  10594. 8004e76: f023 0301 bic.w r3, r3, #1
  10595. 8004e7a: 6113 str r3, [r2, #16]
  10596. /* Apply configuration */
  10597. MPU->RBAR = MPU_Init->BaseAddress;
  10598. 8004e7c: 4a17 ldr r2, [pc, #92] @ (8004edc <HAL_MPU_ConfigRegion+0x7c>)
  10599. 8004e7e: 687b ldr r3, [r7, #4]
  10600. 8004e80: 685b ldr r3, [r3, #4]
  10601. 8004e82: 60d3 str r3, [r2, #12]
  10602. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  10603. 8004e84: 687b ldr r3, [r7, #4]
  10604. 8004e86: 7b1b ldrb r3, [r3, #12]
  10605. 8004e88: 071a lsls r2, r3, #28
  10606. ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) |
  10607. 8004e8a: 687b ldr r3, [r7, #4]
  10608. 8004e8c: 7adb ldrb r3, [r3, #11]
  10609. 8004e8e: 061b lsls r3, r3, #24
  10610. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  10611. 8004e90: 431a orrs r2, r3
  10612. ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) |
  10613. 8004e92: 687b ldr r3, [r7, #4]
  10614. 8004e94: 7a9b ldrb r3, [r3, #10]
  10615. 8004e96: 04db lsls r3, r3, #19
  10616. ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) |
  10617. 8004e98: 431a orrs r2, r3
  10618. ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) |
  10619. 8004e9a: 687b ldr r3, [r7, #4]
  10620. 8004e9c: 7b5b ldrb r3, [r3, #13]
  10621. 8004e9e: 049b lsls r3, r3, #18
  10622. ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) |
  10623. 8004ea0: 431a orrs r2, r3
  10624. ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) |
  10625. 8004ea2: 687b ldr r3, [r7, #4]
  10626. 8004ea4: 7b9b ldrb r3, [r3, #14]
  10627. 8004ea6: 045b lsls r3, r3, #17
  10628. ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) |
  10629. 8004ea8: 431a orrs r2, r3
  10630. ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) |
  10631. 8004eaa: 687b ldr r3, [r7, #4]
  10632. 8004eac: 7bdb ldrb r3, [r3, #15]
  10633. 8004eae: 041b lsls r3, r3, #16
  10634. ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) |
  10635. 8004eb0: 431a orrs r2, r3
  10636. ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) |
  10637. 8004eb2: 687b ldr r3, [r7, #4]
  10638. 8004eb4: 7a5b ldrb r3, [r3, #9]
  10639. 8004eb6: 021b lsls r3, r3, #8
  10640. ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) |
  10641. 8004eb8: 431a orrs r2, r3
  10642. ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) |
  10643. 8004eba: 687b ldr r3, [r7, #4]
  10644. 8004ebc: 7a1b ldrb r3, [r3, #8]
  10645. 8004ebe: 005b lsls r3, r3, #1
  10646. ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) |
  10647. 8004ec0: 4313 orrs r3, r2
  10648. ((uint32_t)MPU_Init->Enable << MPU_RASR_ENABLE_Pos);
  10649. 8004ec2: 687a ldr r2, [r7, #4]
  10650. 8004ec4: 7812 ldrb r2, [r2, #0]
  10651. 8004ec6: 4611 mov r1, r2
  10652. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  10653. 8004ec8: 4a04 ldr r2, [pc, #16] @ (8004edc <HAL_MPU_ConfigRegion+0x7c>)
  10654. ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) |
  10655. 8004eca: 430b orrs r3, r1
  10656. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  10657. 8004ecc: 6113 str r3, [r2, #16]
  10658. }
  10659. 8004ece: bf00 nop
  10660. 8004ed0: 370c adds r7, #12
  10661. 8004ed2: 46bd mov sp, r7
  10662. 8004ed4: f85d 7b04 ldr.w r7, [sp], #4
  10663. 8004ed8: 4770 bx lr
  10664. 8004eda: bf00 nop
  10665. 8004edc: e000ed90 .word 0xe000ed90
  10666. 08004ee0 <HAL_CRC_Init>:
  10667. * parameters in the CRC_InitTypeDef and create the associated handle.
  10668. * @param hcrc CRC handle
  10669. * @retval HAL status
  10670. */
  10671. HAL_StatusTypeDef HAL_CRC_Init(CRC_HandleTypeDef *hcrc)
  10672. {
  10673. 8004ee0: b580 push {r7, lr}
  10674. 8004ee2: b082 sub sp, #8
  10675. 8004ee4: af00 add r7, sp, #0
  10676. 8004ee6: 6078 str r0, [r7, #4]
  10677. /* Check the CRC handle allocation */
  10678. if (hcrc == NULL)
  10679. 8004ee8: 687b ldr r3, [r7, #4]
  10680. 8004eea: 2b00 cmp r3, #0
  10681. 8004eec: d101 bne.n 8004ef2 <HAL_CRC_Init+0x12>
  10682. {
  10683. return HAL_ERROR;
  10684. 8004eee: 2301 movs r3, #1
  10685. 8004ef0: e054 b.n 8004f9c <HAL_CRC_Init+0xbc>
  10686. }
  10687. /* Check the parameters */
  10688. assert_param(IS_CRC_ALL_INSTANCE(hcrc->Instance));
  10689. if (hcrc->State == HAL_CRC_STATE_RESET)
  10690. 8004ef2: 687b ldr r3, [r7, #4]
  10691. 8004ef4: 7f5b ldrb r3, [r3, #29]
  10692. 8004ef6: b2db uxtb r3, r3
  10693. 8004ef8: 2b00 cmp r3, #0
  10694. 8004efa: d105 bne.n 8004f08 <HAL_CRC_Init+0x28>
  10695. {
  10696. /* Allocate lock resource and initialize it */
  10697. hcrc->Lock = HAL_UNLOCKED;
  10698. 8004efc: 687b ldr r3, [r7, #4]
  10699. 8004efe: 2200 movs r2, #0
  10700. 8004f00: 771a strb r2, [r3, #28]
  10701. /* Init the low level hardware */
  10702. HAL_CRC_MspInit(hcrc);
  10703. 8004f02: 6878 ldr r0, [r7, #4]
  10704. 8004f04: f7fe fbe8 bl 80036d8 <HAL_CRC_MspInit>
  10705. }
  10706. hcrc->State = HAL_CRC_STATE_BUSY;
  10707. 8004f08: 687b ldr r3, [r7, #4]
  10708. 8004f0a: 2202 movs r2, #2
  10709. 8004f0c: 775a strb r2, [r3, #29]
  10710. /* check whether or not non-default generating polynomial has been
  10711. * picked up by user */
  10712. assert_param(IS_DEFAULT_POLYNOMIAL(hcrc->Init.DefaultPolynomialUse));
  10713. if (hcrc->Init.DefaultPolynomialUse == DEFAULT_POLYNOMIAL_ENABLE)
  10714. 8004f0e: 687b ldr r3, [r7, #4]
  10715. 8004f10: 791b ldrb r3, [r3, #4]
  10716. 8004f12: 2b00 cmp r3, #0
  10717. 8004f14: d10c bne.n 8004f30 <HAL_CRC_Init+0x50>
  10718. {
  10719. /* initialize peripheral with default generating polynomial */
  10720. WRITE_REG(hcrc->Instance->POL, DEFAULT_CRC32_POLY);
  10721. 8004f16: 687b ldr r3, [r7, #4]
  10722. 8004f18: 681b ldr r3, [r3, #0]
  10723. 8004f1a: 4a22 ldr r2, [pc, #136] @ (8004fa4 <HAL_CRC_Init+0xc4>)
  10724. 8004f1c: 615a str r2, [r3, #20]
  10725. MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, CRC_POLYLENGTH_32B);
  10726. 8004f1e: 687b ldr r3, [r7, #4]
  10727. 8004f20: 681b ldr r3, [r3, #0]
  10728. 8004f22: 689a ldr r2, [r3, #8]
  10729. 8004f24: 687b ldr r3, [r7, #4]
  10730. 8004f26: 681b ldr r3, [r3, #0]
  10731. 8004f28: f022 0218 bic.w r2, r2, #24
  10732. 8004f2c: 609a str r2, [r3, #8]
  10733. 8004f2e: e00c b.n 8004f4a <HAL_CRC_Init+0x6a>
  10734. }
  10735. else
  10736. {
  10737. /* initialize CRC peripheral with generating polynomial defined by user */
  10738. if (HAL_CRCEx_Polynomial_Set(hcrc, hcrc->Init.GeneratingPolynomial, hcrc->Init.CRCLength) != HAL_OK)
  10739. 8004f30: 687b ldr r3, [r7, #4]
  10740. 8004f32: 6899 ldr r1, [r3, #8]
  10741. 8004f34: 687b ldr r3, [r7, #4]
  10742. 8004f36: 68db ldr r3, [r3, #12]
  10743. 8004f38: 461a mov r2, r3
  10744. 8004f3a: 6878 ldr r0, [r7, #4]
  10745. 8004f3c: f000 f948 bl 80051d0 <HAL_CRCEx_Polynomial_Set>
  10746. 8004f40: 4603 mov r3, r0
  10747. 8004f42: 2b00 cmp r3, #0
  10748. 8004f44: d001 beq.n 8004f4a <HAL_CRC_Init+0x6a>
  10749. {
  10750. return HAL_ERROR;
  10751. 8004f46: 2301 movs r3, #1
  10752. 8004f48: e028 b.n 8004f9c <HAL_CRC_Init+0xbc>
  10753. }
  10754. /* check whether or not non-default CRC initial value has been
  10755. * picked up by user */
  10756. assert_param(IS_DEFAULT_INIT_VALUE(hcrc->Init.DefaultInitValueUse));
  10757. if (hcrc->Init.DefaultInitValueUse == DEFAULT_INIT_VALUE_ENABLE)
  10758. 8004f4a: 687b ldr r3, [r7, #4]
  10759. 8004f4c: 795b ldrb r3, [r3, #5]
  10760. 8004f4e: 2b00 cmp r3, #0
  10761. 8004f50: d105 bne.n 8004f5e <HAL_CRC_Init+0x7e>
  10762. {
  10763. WRITE_REG(hcrc->Instance->INIT, DEFAULT_CRC_INITVALUE);
  10764. 8004f52: 687b ldr r3, [r7, #4]
  10765. 8004f54: 681b ldr r3, [r3, #0]
  10766. 8004f56: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  10767. 8004f5a: 611a str r2, [r3, #16]
  10768. 8004f5c: e004 b.n 8004f68 <HAL_CRC_Init+0x88>
  10769. }
  10770. else
  10771. {
  10772. WRITE_REG(hcrc->Instance->INIT, hcrc->Init.InitValue);
  10773. 8004f5e: 687b ldr r3, [r7, #4]
  10774. 8004f60: 681b ldr r3, [r3, #0]
  10775. 8004f62: 687a ldr r2, [r7, #4]
  10776. 8004f64: 6912 ldr r2, [r2, #16]
  10777. 8004f66: 611a str r2, [r3, #16]
  10778. }
  10779. /* set input data inversion mode */
  10780. assert_param(IS_CRC_INPUTDATA_INVERSION_MODE(hcrc->Init.InputDataInversionMode));
  10781. MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_IN, hcrc->Init.InputDataInversionMode);
  10782. 8004f68: 687b ldr r3, [r7, #4]
  10783. 8004f6a: 681b ldr r3, [r3, #0]
  10784. 8004f6c: 689b ldr r3, [r3, #8]
  10785. 8004f6e: f023 0160 bic.w r1, r3, #96 @ 0x60
  10786. 8004f72: 687b ldr r3, [r7, #4]
  10787. 8004f74: 695a ldr r2, [r3, #20]
  10788. 8004f76: 687b ldr r3, [r7, #4]
  10789. 8004f78: 681b ldr r3, [r3, #0]
  10790. 8004f7a: 430a orrs r2, r1
  10791. 8004f7c: 609a str r2, [r3, #8]
  10792. /* set output data inversion mode */
  10793. assert_param(IS_CRC_OUTPUTDATA_INVERSION_MODE(hcrc->Init.OutputDataInversionMode));
  10794. MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_OUT, hcrc->Init.OutputDataInversionMode);
  10795. 8004f7e: 687b ldr r3, [r7, #4]
  10796. 8004f80: 681b ldr r3, [r3, #0]
  10797. 8004f82: 689b ldr r3, [r3, #8]
  10798. 8004f84: f023 0180 bic.w r1, r3, #128 @ 0x80
  10799. 8004f88: 687b ldr r3, [r7, #4]
  10800. 8004f8a: 699a ldr r2, [r3, #24]
  10801. 8004f8c: 687b ldr r3, [r7, #4]
  10802. 8004f8e: 681b ldr r3, [r3, #0]
  10803. 8004f90: 430a orrs r2, r1
  10804. 8004f92: 609a str r2, [r3, #8]
  10805. /* makes sure the input data format (bytes, halfwords or words stream)
  10806. * is properly specified by user */
  10807. assert_param(IS_CRC_INPUTDATA_FORMAT(hcrc->InputDataFormat));
  10808. /* Change CRC peripheral state */
  10809. hcrc->State = HAL_CRC_STATE_READY;
  10810. 8004f94: 687b ldr r3, [r7, #4]
  10811. 8004f96: 2201 movs r2, #1
  10812. 8004f98: 775a strb r2, [r3, #29]
  10813. /* Return function status */
  10814. return HAL_OK;
  10815. 8004f9a: 2300 movs r3, #0
  10816. }
  10817. 8004f9c: 4618 mov r0, r3
  10818. 8004f9e: 3708 adds r7, #8
  10819. 8004fa0: 46bd mov sp, r7
  10820. 8004fa2: bd80 pop {r7, pc}
  10821. 8004fa4: 04c11db7 .word 0x04c11db7
  10822. 08004fa8 <HAL_CRC_Calculate>:
  10823. * and the API will internally adjust its input data processing based on the
  10824. * handle field hcrc->InputDataFormat.
  10825. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  10826. */
  10827. uint32_t HAL_CRC_Calculate(CRC_HandleTypeDef *hcrc, uint32_t pBuffer[], uint32_t BufferLength)
  10828. {
  10829. 8004fa8: b580 push {r7, lr}
  10830. 8004faa: b086 sub sp, #24
  10831. 8004fac: af00 add r7, sp, #0
  10832. 8004fae: 60f8 str r0, [r7, #12]
  10833. 8004fb0: 60b9 str r1, [r7, #8]
  10834. 8004fb2: 607a str r2, [r7, #4]
  10835. uint32_t index; /* CRC input data buffer index */
  10836. uint32_t temp = 0U; /* CRC output (read from hcrc->Instance->DR register) */
  10837. 8004fb4: 2300 movs r3, #0
  10838. 8004fb6: 613b str r3, [r7, #16]
  10839. /* Change CRC peripheral state */
  10840. hcrc->State = HAL_CRC_STATE_BUSY;
  10841. 8004fb8: 68fb ldr r3, [r7, #12]
  10842. 8004fba: 2202 movs r2, #2
  10843. 8004fbc: 775a strb r2, [r3, #29]
  10844. /* Reset CRC Calculation Unit (hcrc->Instance->INIT is
  10845. * written in hcrc->Instance->DR) */
  10846. __HAL_CRC_DR_RESET(hcrc);
  10847. 8004fbe: 68fb ldr r3, [r7, #12]
  10848. 8004fc0: 681b ldr r3, [r3, #0]
  10849. 8004fc2: 689a ldr r2, [r3, #8]
  10850. 8004fc4: 68fb ldr r3, [r7, #12]
  10851. 8004fc6: 681b ldr r3, [r3, #0]
  10852. 8004fc8: f042 0201 orr.w r2, r2, #1
  10853. 8004fcc: 609a str r2, [r3, #8]
  10854. switch (hcrc->InputDataFormat)
  10855. 8004fce: 68fb ldr r3, [r7, #12]
  10856. 8004fd0: 6a1b ldr r3, [r3, #32]
  10857. 8004fd2: 2b03 cmp r3, #3
  10858. 8004fd4: d006 beq.n 8004fe4 <HAL_CRC_Calculate+0x3c>
  10859. 8004fd6: 2b03 cmp r3, #3
  10860. 8004fd8: d829 bhi.n 800502e <HAL_CRC_Calculate+0x86>
  10861. 8004fda: 2b01 cmp r3, #1
  10862. 8004fdc: d019 beq.n 8005012 <HAL_CRC_Calculate+0x6a>
  10863. 8004fde: 2b02 cmp r3, #2
  10864. 8004fe0: d01e beq.n 8005020 <HAL_CRC_Calculate+0x78>
  10865. /* Specific 16-bit input data handling */
  10866. temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012 R.11.5 */
  10867. break;
  10868. default:
  10869. break;
  10870. 8004fe2: e024 b.n 800502e <HAL_CRC_Calculate+0x86>
  10871. for (index = 0U; index < BufferLength; index++)
  10872. 8004fe4: 2300 movs r3, #0
  10873. 8004fe6: 617b str r3, [r7, #20]
  10874. 8004fe8: e00a b.n 8005000 <HAL_CRC_Calculate+0x58>
  10875. hcrc->Instance->DR = pBuffer[index];
  10876. 8004fea: 697b ldr r3, [r7, #20]
  10877. 8004fec: 009b lsls r3, r3, #2
  10878. 8004fee: 68ba ldr r2, [r7, #8]
  10879. 8004ff0: 441a add r2, r3
  10880. 8004ff2: 68fb ldr r3, [r7, #12]
  10881. 8004ff4: 681b ldr r3, [r3, #0]
  10882. 8004ff6: 6812 ldr r2, [r2, #0]
  10883. 8004ff8: 601a str r2, [r3, #0]
  10884. for (index = 0U; index < BufferLength; index++)
  10885. 8004ffa: 697b ldr r3, [r7, #20]
  10886. 8004ffc: 3301 adds r3, #1
  10887. 8004ffe: 617b str r3, [r7, #20]
  10888. 8005000: 697a ldr r2, [r7, #20]
  10889. 8005002: 687b ldr r3, [r7, #4]
  10890. 8005004: 429a cmp r2, r3
  10891. 8005006: d3f0 bcc.n 8004fea <HAL_CRC_Calculate+0x42>
  10892. temp = hcrc->Instance->DR;
  10893. 8005008: 68fb ldr r3, [r7, #12]
  10894. 800500a: 681b ldr r3, [r3, #0]
  10895. 800500c: 681b ldr r3, [r3, #0]
  10896. 800500e: 613b str r3, [r7, #16]
  10897. break;
  10898. 8005010: e00e b.n 8005030 <HAL_CRC_Calculate+0x88>
  10899. temp = CRC_Handle_8(hcrc, (uint8_t *)pBuffer, BufferLength);
  10900. 8005012: 687a ldr r2, [r7, #4]
  10901. 8005014: 68b9 ldr r1, [r7, #8]
  10902. 8005016: 68f8 ldr r0, [r7, #12]
  10903. 8005018: f000 f812 bl 8005040 <CRC_Handle_8>
  10904. 800501c: 6138 str r0, [r7, #16]
  10905. break;
  10906. 800501e: e007 b.n 8005030 <HAL_CRC_Calculate+0x88>
  10907. temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012 R.11.5 */
  10908. 8005020: 687a ldr r2, [r7, #4]
  10909. 8005022: 68b9 ldr r1, [r7, #8]
  10910. 8005024: 68f8 ldr r0, [r7, #12]
  10911. 8005026: f000 f899 bl 800515c <CRC_Handle_16>
  10912. 800502a: 6138 str r0, [r7, #16]
  10913. break;
  10914. 800502c: e000 b.n 8005030 <HAL_CRC_Calculate+0x88>
  10915. break;
  10916. 800502e: bf00 nop
  10917. }
  10918. /* Change CRC peripheral state */
  10919. hcrc->State = HAL_CRC_STATE_READY;
  10920. 8005030: 68fb ldr r3, [r7, #12]
  10921. 8005032: 2201 movs r2, #1
  10922. 8005034: 775a strb r2, [r3, #29]
  10923. /* Return the CRC computed value */
  10924. return temp;
  10925. 8005036: 693b ldr r3, [r7, #16]
  10926. }
  10927. 8005038: 4618 mov r0, r3
  10928. 800503a: 3718 adds r7, #24
  10929. 800503c: 46bd mov sp, r7
  10930. 800503e: bd80 pop {r7, pc}
  10931. 08005040 <CRC_Handle_8>:
  10932. * @param pBuffer pointer to the input data buffer
  10933. * @param BufferLength input data buffer length
  10934. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  10935. */
  10936. static uint32_t CRC_Handle_8(CRC_HandleTypeDef *hcrc, uint8_t pBuffer[], uint32_t BufferLength)
  10937. {
  10938. 8005040: b480 push {r7}
  10939. 8005042: b089 sub sp, #36 @ 0x24
  10940. 8005044: af00 add r7, sp, #0
  10941. 8005046: 60f8 str r0, [r7, #12]
  10942. 8005048: 60b9 str r1, [r7, #8]
  10943. 800504a: 607a str r2, [r7, #4]
  10944. __IO uint16_t *pReg;
  10945. /* Processing time optimization: 4 bytes are entered in a row with a single word write,
  10946. * last bytes must be carefully fed to the CRC calculator to ensure a correct type
  10947. * handling by the peripheral */
  10948. for (i = 0U; i < (BufferLength / 4U); i++)
  10949. 800504c: 2300 movs r3, #0
  10950. 800504e: 61fb str r3, [r7, #28]
  10951. 8005050: e023 b.n 800509a <CRC_Handle_8+0x5a>
  10952. {
  10953. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  10954. 8005052: 69fb ldr r3, [r7, #28]
  10955. 8005054: 009b lsls r3, r3, #2
  10956. 8005056: 68ba ldr r2, [r7, #8]
  10957. 8005058: 4413 add r3, r2
  10958. 800505a: 781b ldrb r3, [r3, #0]
  10959. 800505c: 061a lsls r2, r3, #24
  10960. ((uint32_t)pBuffer[(4U * i) + 1U] << 16U) | \
  10961. 800505e: 69fb ldr r3, [r7, #28]
  10962. 8005060: 009b lsls r3, r3, #2
  10963. 8005062: 3301 adds r3, #1
  10964. 8005064: 68b9 ldr r1, [r7, #8]
  10965. 8005066: 440b add r3, r1
  10966. 8005068: 781b ldrb r3, [r3, #0]
  10967. 800506a: 041b lsls r3, r3, #16
  10968. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  10969. 800506c: 431a orrs r2, r3
  10970. ((uint32_t)pBuffer[(4U * i) + 2U] << 8U) | \
  10971. 800506e: 69fb ldr r3, [r7, #28]
  10972. 8005070: 009b lsls r3, r3, #2
  10973. 8005072: 3302 adds r3, #2
  10974. 8005074: 68b9 ldr r1, [r7, #8]
  10975. 8005076: 440b add r3, r1
  10976. 8005078: 781b ldrb r3, [r3, #0]
  10977. 800507a: 021b lsls r3, r3, #8
  10978. ((uint32_t)pBuffer[(4U * i) + 1U] << 16U) | \
  10979. 800507c: 431a orrs r2, r3
  10980. (uint32_t)pBuffer[(4U * i) + 3U];
  10981. 800507e: 69fb ldr r3, [r7, #28]
  10982. 8005080: 009b lsls r3, r3, #2
  10983. 8005082: 3303 adds r3, #3
  10984. 8005084: 68b9 ldr r1, [r7, #8]
  10985. 8005086: 440b add r3, r1
  10986. 8005088: 781b ldrb r3, [r3, #0]
  10987. 800508a: 4619 mov r1, r3
  10988. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  10989. 800508c: 68fb ldr r3, [r7, #12]
  10990. 800508e: 681b ldr r3, [r3, #0]
  10991. ((uint32_t)pBuffer[(4U * i) + 2U] << 8U) | \
  10992. 8005090: 430a orrs r2, r1
  10993. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  10994. 8005092: 601a str r2, [r3, #0]
  10995. for (i = 0U; i < (BufferLength / 4U); i++)
  10996. 8005094: 69fb ldr r3, [r7, #28]
  10997. 8005096: 3301 adds r3, #1
  10998. 8005098: 61fb str r3, [r7, #28]
  10999. 800509a: 687b ldr r3, [r7, #4]
  11000. 800509c: 089b lsrs r3, r3, #2
  11001. 800509e: 69fa ldr r2, [r7, #28]
  11002. 80050a0: 429a cmp r2, r3
  11003. 80050a2: d3d6 bcc.n 8005052 <CRC_Handle_8+0x12>
  11004. }
  11005. /* last bytes specific handling */
  11006. if ((BufferLength % 4U) != 0U)
  11007. 80050a4: 687b ldr r3, [r7, #4]
  11008. 80050a6: f003 0303 and.w r3, r3, #3
  11009. 80050aa: 2b00 cmp r3, #0
  11010. 80050ac: d04d beq.n 800514a <CRC_Handle_8+0x10a>
  11011. {
  11012. if ((BufferLength % 4U) == 1U)
  11013. 80050ae: 687b ldr r3, [r7, #4]
  11014. 80050b0: f003 0303 and.w r3, r3, #3
  11015. 80050b4: 2b01 cmp r3, #1
  11016. 80050b6: d107 bne.n 80050c8 <CRC_Handle_8+0x88>
  11017. {
  11018. *(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[4U * i]; /* Derogation MisraC2012 R.11.5 */
  11019. 80050b8: 69fb ldr r3, [r7, #28]
  11020. 80050ba: 009b lsls r3, r3, #2
  11021. 80050bc: 68ba ldr r2, [r7, #8]
  11022. 80050be: 4413 add r3, r2
  11023. 80050c0: 68fa ldr r2, [r7, #12]
  11024. 80050c2: 6812 ldr r2, [r2, #0]
  11025. 80050c4: 781b ldrb r3, [r3, #0]
  11026. 80050c6: 7013 strb r3, [r2, #0]
  11027. }
  11028. if ((BufferLength % 4U) == 2U)
  11029. 80050c8: 687b ldr r3, [r7, #4]
  11030. 80050ca: f003 0303 and.w r3, r3, #3
  11031. 80050ce: 2b02 cmp r3, #2
  11032. 80050d0: d116 bne.n 8005100 <CRC_Handle_8+0xc0>
  11033. {
  11034. data = ((uint16_t)(pBuffer[4U * i]) << 8U) | (uint16_t)pBuffer[(4U * i) + 1U];
  11035. 80050d2: 69fb ldr r3, [r7, #28]
  11036. 80050d4: 009b lsls r3, r3, #2
  11037. 80050d6: 68ba ldr r2, [r7, #8]
  11038. 80050d8: 4413 add r3, r2
  11039. 80050da: 781b ldrb r3, [r3, #0]
  11040. 80050dc: 021b lsls r3, r3, #8
  11041. 80050de: b21a sxth r2, r3
  11042. 80050e0: 69fb ldr r3, [r7, #28]
  11043. 80050e2: 009b lsls r3, r3, #2
  11044. 80050e4: 3301 adds r3, #1
  11045. 80050e6: 68b9 ldr r1, [r7, #8]
  11046. 80050e8: 440b add r3, r1
  11047. 80050ea: 781b ldrb r3, [r3, #0]
  11048. 80050ec: b21b sxth r3, r3
  11049. 80050ee: 4313 orrs r3, r2
  11050. 80050f0: b21b sxth r3, r3
  11051. 80050f2: 837b strh r3, [r7, #26]
  11052. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  11053. 80050f4: 68fb ldr r3, [r7, #12]
  11054. 80050f6: 681b ldr r3, [r3, #0]
  11055. 80050f8: 617b str r3, [r7, #20]
  11056. *pReg = data;
  11057. 80050fa: 697b ldr r3, [r7, #20]
  11058. 80050fc: 8b7a ldrh r2, [r7, #26]
  11059. 80050fe: 801a strh r2, [r3, #0]
  11060. }
  11061. if ((BufferLength % 4U) == 3U)
  11062. 8005100: 687b ldr r3, [r7, #4]
  11063. 8005102: f003 0303 and.w r3, r3, #3
  11064. 8005106: 2b03 cmp r3, #3
  11065. 8005108: d11f bne.n 800514a <CRC_Handle_8+0x10a>
  11066. {
  11067. data = ((uint16_t)(pBuffer[4U * i]) << 8U) | (uint16_t)pBuffer[(4U * i) + 1U];
  11068. 800510a: 69fb ldr r3, [r7, #28]
  11069. 800510c: 009b lsls r3, r3, #2
  11070. 800510e: 68ba ldr r2, [r7, #8]
  11071. 8005110: 4413 add r3, r2
  11072. 8005112: 781b ldrb r3, [r3, #0]
  11073. 8005114: 021b lsls r3, r3, #8
  11074. 8005116: b21a sxth r2, r3
  11075. 8005118: 69fb ldr r3, [r7, #28]
  11076. 800511a: 009b lsls r3, r3, #2
  11077. 800511c: 3301 adds r3, #1
  11078. 800511e: 68b9 ldr r1, [r7, #8]
  11079. 8005120: 440b add r3, r1
  11080. 8005122: 781b ldrb r3, [r3, #0]
  11081. 8005124: b21b sxth r3, r3
  11082. 8005126: 4313 orrs r3, r2
  11083. 8005128: b21b sxth r3, r3
  11084. 800512a: 837b strh r3, [r7, #26]
  11085. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  11086. 800512c: 68fb ldr r3, [r7, #12]
  11087. 800512e: 681b ldr r3, [r3, #0]
  11088. 8005130: 617b str r3, [r7, #20]
  11089. *pReg = data;
  11090. 8005132: 697b ldr r3, [r7, #20]
  11091. 8005134: 8b7a ldrh r2, [r7, #26]
  11092. 8005136: 801a strh r2, [r3, #0]
  11093. *(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[(4U * i) + 2U]; /* Derogation MisraC2012 R.11.5 */
  11094. 8005138: 69fb ldr r3, [r7, #28]
  11095. 800513a: 009b lsls r3, r3, #2
  11096. 800513c: 3302 adds r3, #2
  11097. 800513e: 68ba ldr r2, [r7, #8]
  11098. 8005140: 4413 add r3, r2
  11099. 8005142: 68fa ldr r2, [r7, #12]
  11100. 8005144: 6812 ldr r2, [r2, #0]
  11101. 8005146: 781b ldrb r3, [r3, #0]
  11102. 8005148: 7013 strb r3, [r2, #0]
  11103. }
  11104. }
  11105. /* Return the CRC computed value */
  11106. return hcrc->Instance->DR;
  11107. 800514a: 68fb ldr r3, [r7, #12]
  11108. 800514c: 681b ldr r3, [r3, #0]
  11109. 800514e: 681b ldr r3, [r3, #0]
  11110. }
  11111. 8005150: 4618 mov r0, r3
  11112. 8005152: 3724 adds r7, #36 @ 0x24
  11113. 8005154: 46bd mov sp, r7
  11114. 8005156: f85d 7b04 ldr.w r7, [sp], #4
  11115. 800515a: 4770 bx lr
  11116. 0800515c <CRC_Handle_16>:
  11117. * @param pBuffer pointer to the input data buffer
  11118. * @param BufferLength input data buffer length
  11119. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  11120. */
  11121. static uint32_t CRC_Handle_16(CRC_HandleTypeDef *hcrc, uint16_t pBuffer[], uint32_t BufferLength)
  11122. {
  11123. 800515c: b480 push {r7}
  11124. 800515e: b087 sub sp, #28
  11125. 8005160: af00 add r7, sp, #0
  11126. 8005162: 60f8 str r0, [r7, #12]
  11127. 8005164: 60b9 str r1, [r7, #8]
  11128. 8005166: 607a str r2, [r7, #4]
  11129. __IO uint16_t *pReg;
  11130. /* Processing time optimization: 2 HalfWords are entered in a row with a single word write,
  11131. * in case of odd length, last HalfWord must be carefully fed to the CRC calculator to ensure
  11132. * a correct type handling by the peripheral */
  11133. for (i = 0U; i < (BufferLength / 2U); i++)
  11134. 8005168: 2300 movs r3, #0
  11135. 800516a: 617b str r3, [r7, #20]
  11136. 800516c: e013 b.n 8005196 <CRC_Handle_16+0x3a>
  11137. {
  11138. hcrc->Instance->DR = ((uint32_t)pBuffer[2U * i] << 16U) | (uint32_t)pBuffer[(2U * i) + 1U];
  11139. 800516e: 697b ldr r3, [r7, #20]
  11140. 8005170: 009b lsls r3, r3, #2
  11141. 8005172: 68ba ldr r2, [r7, #8]
  11142. 8005174: 4413 add r3, r2
  11143. 8005176: 881b ldrh r3, [r3, #0]
  11144. 8005178: 041a lsls r2, r3, #16
  11145. 800517a: 697b ldr r3, [r7, #20]
  11146. 800517c: 009b lsls r3, r3, #2
  11147. 800517e: 3302 adds r3, #2
  11148. 8005180: 68b9 ldr r1, [r7, #8]
  11149. 8005182: 440b add r3, r1
  11150. 8005184: 881b ldrh r3, [r3, #0]
  11151. 8005186: 4619 mov r1, r3
  11152. 8005188: 68fb ldr r3, [r7, #12]
  11153. 800518a: 681b ldr r3, [r3, #0]
  11154. 800518c: 430a orrs r2, r1
  11155. 800518e: 601a str r2, [r3, #0]
  11156. for (i = 0U; i < (BufferLength / 2U); i++)
  11157. 8005190: 697b ldr r3, [r7, #20]
  11158. 8005192: 3301 adds r3, #1
  11159. 8005194: 617b str r3, [r7, #20]
  11160. 8005196: 687b ldr r3, [r7, #4]
  11161. 8005198: 085b lsrs r3, r3, #1
  11162. 800519a: 697a ldr r2, [r7, #20]
  11163. 800519c: 429a cmp r2, r3
  11164. 800519e: d3e6 bcc.n 800516e <CRC_Handle_16+0x12>
  11165. }
  11166. if ((BufferLength % 2U) != 0U)
  11167. 80051a0: 687b ldr r3, [r7, #4]
  11168. 80051a2: f003 0301 and.w r3, r3, #1
  11169. 80051a6: 2b00 cmp r3, #0
  11170. 80051a8: d009 beq.n 80051be <CRC_Handle_16+0x62>
  11171. {
  11172. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  11173. 80051aa: 68fb ldr r3, [r7, #12]
  11174. 80051ac: 681b ldr r3, [r3, #0]
  11175. 80051ae: 613b str r3, [r7, #16]
  11176. *pReg = pBuffer[2U * i];
  11177. 80051b0: 697b ldr r3, [r7, #20]
  11178. 80051b2: 009b lsls r3, r3, #2
  11179. 80051b4: 68ba ldr r2, [r7, #8]
  11180. 80051b6: 4413 add r3, r2
  11181. 80051b8: 881a ldrh r2, [r3, #0]
  11182. 80051ba: 693b ldr r3, [r7, #16]
  11183. 80051bc: 801a strh r2, [r3, #0]
  11184. }
  11185. /* Return the CRC computed value */
  11186. return hcrc->Instance->DR;
  11187. 80051be: 68fb ldr r3, [r7, #12]
  11188. 80051c0: 681b ldr r3, [r3, #0]
  11189. 80051c2: 681b ldr r3, [r3, #0]
  11190. }
  11191. 80051c4: 4618 mov r0, r3
  11192. 80051c6: 371c adds r7, #28
  11193. 80051c8: 46bd mov sp, r7
  11194. 80051ca: f85d 7b04 ldr.w r7, [sp], #4
  11195. 80051ce: 4770 bx lr
  11196. 080051d0 <HAL_CRCEx_Polynomial_Set>:
  11197. * @arg @ref CRC_POLYLENGTH_16B 16-bit long CRC (generating polynomial of degree 16)
  11198. * @arg @ref CRC_POLYLENGTH_32B 32-bit long CRC (generating polynomial of degree 32)
  11199. * @retval HAL status
  11200. */
  11201. HAL_StatusTypeDef HAL_CRCEx_Polynomial_Set(CRC_HandleTypeDef *hcrc, uint32_t Pol, uint32_t PolyLength)
  11202. {
  11203. 80051d0: b480 push {r7}
  11204. 80051d2: b087 sub sp, #28
  11205. 80051d4: af00 add r7, sp, #0
  11206. 80051d6: 60f8 str r0, [r7, #12]
  11207. 80051d8: 60b9 str r1, [r7, #8]
  11208. 80051da: 607a str r2, [r7, #4]
  11209. HAL_StatusTypeDef status = HAL_OK;
  11210. 80051dc: 2300 movs r3, #0
  11211. 80051de: 75fb strb r3, [r7, #23]
  11212. uint32_t msb = 31U; /* polynomial degree is 32 at most, so msb is initialized to max value */
  11213. 80051e0: 231f movs r3, #31
  11214. 80051e2: 613b str r3, [r7, #16]
  11215. /* Check the parameters */
  11216. assert_param(IS_CRC_POL_LENGTH(PolyLength));
  11217. /* Ensure that the generating polynomial is odd */
  11218. if ((Pol & (uint32_t)(0x1U)) == 0U)
  11219. 80051e4: 68bb ldr r3, [r7, #8]
  11220. 80051e6: f003 0301 and.w r3, r3, #1
  11221. 80051ea: 2b00 cmp r3, #0
  11222. 80051ec: d102 bne.n 80051f4 <HAL_CRCEx_Polynomial_Set+0x24>
  11223. {
  11224. status = HAL_ERROR;
  11225. 80051ee: 2301 movs r3, #1
  11226. 80051f0: 75fb strb r3, [r7, #23]
  11227. 80051f2: e063 b.n 80052bc <HAL_CRCEx_Polynomial_Set+0xec>
  11228. * definition. HAL_ERROR is reported if Pol degree is
  11229. * larger than that indicated by PolyLength.
  11230. * Look for MSB position: msb will contain the degree of
  11231. * the second to the largest polynomial member. E.g., for
  11232. * X^7 + X^6 + X^5 + X^2 + 1, msb = 6. */
  11233. while ((msb-- > 0U) && ((Pol & ((uint32_t)(0x1U) << (msb & 0x1FU))) == 0U))
  11234. 80051f4: bf00 nop
  11235. 80051f6: 693b ldr r3, [r7, #16]
  11236. 80051f8: 1e5a subs r2, r3, #1
  11237. 80051fa: 613a str r2, [r7, #16]
  11238. 80051fc: 2b00 cmp r3, #0
  11239. 80051fe: d009 beq.n 8005214 <HAL_CRCEx_Polynomial_Set+0x44>
  11240. 8005200: 693b ldr r3, [r7, #16]
  11241. 8005202: f003 031f and.w r3, r3, #31
  11242. 8005206: 68ba ldr r2, [r7, #8]
  11243. 8005208: fa22 f303 lsr.w r3, r2, r3
  11244. 800520c: f003 0301 and.w r3, r3, #1
  11245. 8005210: 2b00 cmp r3, #0
  11246. 8005212: d0f0 beq.n 80051f6 <HAL_CRCEx_Polynomial_Set+0x26>
  11247. {
  11248. }
  11249. switch (PolyLength)
  11250. 8005214: 687b ldr r3, [r7, #4]
  11251. 8005216: 2b18 cmp r3, #24
  11252. 8005218: d846 bhi.n 80052a8 <HAL_CRCEx_Polynomial_Set+0xd8>
  11253. 800521a: a201 add r2, pc, #4 @ (adr r2, 8005220 <HAL_CRCEx_Polynomial_Set+0x50>)
  11254. 800521c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  11255. 8005220: 080052af .word 0x080052af
  11256. 8005224: 080052a9 .word 0x080052a9
  11257. 8005228: 080052a9 .word 0x080052a9
  11258. 800522c: 080052a9 .word 0x080052a9
  11259. 8005230: 080052a9 .word 0x080052a9
  11260. 8005234: 080052a9 .word 0x080052a9
  11261. 8005238: 080052a9 .word 0x080052a9
  11262. 800523c: 080052a9 .word 0x080052a9
  11263. 8005240: 0800529d .word 0x0800529d
  11264. 8005244: 080052a9 .word 0x080052a9
  11265. 8005248: 080052a9 .word 0x080052a9
  11266. 800524c: 080052a9 .word 0x080052a9
  11267. 8005250: 080052a9 .word 0x080052a9
  11268. 8005254: 080052a9 .word 0x080052a9
  11269. 8005258: 080052a9 .word 0x080052a9
  11270. 800525c: 080052a9 .word 0x080052a9
  11271. 8005260: 08005291 .word 0x08005291
  11272. 8005264: 080052a9 .word 0x080052a9
  11273. 8005268: 080052a9 .word 0x080052a9
  11274. 800526c: 080052a9 .word 0x080052a9
  11275. 8005270: 080052a9 .word 0x080052a9
  11276. 8005274: 080052a9 .word 0x080052a9
  11277. 8005278: 080052a9 .word 0x080052a9
  11278. 800527c: 080052a9 .word 0x080052a9
  11279. 8005280: 08005285 .word 0x08005285
  11280. {
  11281. case CRC_POLYLENGTH_7B:
  11282. if (msb >= HAL_CRC_LENGTH_7B)
  11283. 8005284: 693b ldr r3, [r7, #16]
  11284. 8005286: 2b06 cmp r3, #6
  11285. 8005288: d913 bls.n 80052b2 <HAL_CRCEx_Polynomial_Set+0xe2>
  11286. {
  11287. status = HAL_ERROR;
  11288. 800528a: 2301 movs r3, #1
  11289. 800528c: 75fb strb r3, [r7, #23]
  11290. }
  11291. break;
  11292. 800528e: e010 b.n 80052b2 <HAL_CRCEx_Polynomial_Set+0xe2>
  11293. case CRC_POLYLENGTH_8B:
  11294. if (msb >= HAL_CRC_LENGTH_8B)
  11295. 8005290: 693b ldr r3, [r7, #16]
  11296. 8005292: 2b07 cmp r3, #7
  11297. 8005294: d90f bls.n 80052b6 <HAL_CRCEx_Polynomial_Set+0xe6>
  11298. {
  11299. status = HAL_ERROR;
  11300. 8005296: 2301 movs r3, #1
  11301. 8005298: 75fb strb r3, [r7, #23]
  11302. }
  11303. break;
  11304. 800529a: e00c b.n 80052b6 <HAL_CRCEx_Polynomial_Set+0xe6>
  11305. case CRC_POLYLENGTH_16B:
  11306. if (msb >= HAL_CRC_LENGTH_16B)
  11307. 800529c: 693b ldr r3, [r7, #16]
  11308. 800529e: 2b0f cmp r3, #15
  11309. 80052a0: d90b bls.n 80052ba <HAL_CRCEx_Polynomial_Set+0xea>
  11310. {
  11311. status = HAL_ERROR;
  11312. 80052a2: 2301 movs r3, #1
  11313. 80052a4: 75fb strb r3, [r7, #23]
  11314. }
  11315. break;
  11316. 80052a6: e008 b.n 80052ba <HAL_CRCEx_Polynomial_Set+0xea>
  11317. case CRC_POLYLENGTH_32B:
  11318. /* no polynomial definition vs. polynomial length issue possible */
  11319. break;
  11320. default:
  11321. status = HAL_ERROR;
  11322. 80052a8: 2301 movs r3, #1
  11323. 80052aa: 75fb strb r3, [r7, #23]
  11324. break;
  11325. 80052ac: e006 b.n 80052bc <HAL_CRCEx_Polynomial_Set+0xec>
  11326. break;
  11327. 80052ae: bf00 nop
  11328. 80052b0: e004 b.n 80052bc <HAL_CRCEx_Polynomial_Set+0xec>
  11329. break;
  11330. 80052b2: bf00 nop
  11331. 80052b4: e002 b.n 80052bc <HAL_CRCEx_Polynomial_Set+0xec>
  11332. break;
  11333. 80052b6: bf00 nop
  11334. 80052b8: e000 b.n 80052bc <HAL_CRCEx_Polynomial_Set+0xec>
  11335. break;
  11336. 80052ba: bf00 nop
  11337. }
  11338. }
  11339. if (status == HAL_OK)
  11340. 80052bc: 7dfb ldrb r3, [r7, #23]
  11341. 80052be: 2b00 cmp r3, #0
  11342. 80052c0: d10d bne.n 80052de <HAL_CRCEx_Polynomial_Set+0x10e>
  11343. {
  11344. /* set generating polynomial */
  11345. WRITE_REG(hcrc->Instance->POL, Pol);
  11346. 80052c2: 68fb ldr r3, [r7, #12]
  11347. 80052c4: 681b ldr r3, [r3, #0]
  11348. 80052c6: 68ba ldr r2, [r7, #8]
  11349. 80052c8: 615a str r2, [r3, #20]
  11350. /* set generating polynomial size */
  11351. MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, PolyLength);
  11352. 80052ca: 68fb ldr r3, [r7, #12]
  11353. 80052cc: 681b ldr r3, [r3, #0]
  11354. 80052ce: 689b ldr r3, [r3, #8]
  11355. 80052d0: f023 0118 bic.w r1, r3, #24
  11356. 80052d4: 68fb ldr r3, [r7, #12]
  11357. 80052d6: 681b ldr r3, [r3, #0]
  11358. 80052d8: 687a ldr r2, [r7, #4]
  11359. 80052da: 430a orrs r2, r1
  11360. 80052dc: 609a str r2, [r3, #8]
  11361. }
  11362. /* Return function status */
  11363. return status;
  11364. 80052de: 7dfb ldrb r3, [r7, #23]
  11365. }
  11366. 80052e0: 4618 mov r0, r3
  11367. 80052e2: 371c adds r7, #28
  11368. 80052e4: 46bd mov sp, r7
  11369. 80052e6: f85d 7b04 ldr.w r7, [sp], #4
  11370. 80052ea: 4770 bx lr
  11371. 080052ec <HAL_DMA_Init>:
  11372. * @param hdma: Pointer to a DMA_HandleTypeDef structure that contains
  11373. * the configuration information for the specified DMA Stream.
  11374. * @retval HAL status
  11375. */
  11376. HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma)
  11377. {
  11378. 80052ec: b580 push {r7, lr}
  11379. 80052ee: b086 sub sp, #24
  11380. 80052f0: af00 add r7, sp, #0
  11381. 80052f2: 6078 str r0, [r7, #4]
  11382. uint32_t registerValue;
  11383. uint32_t tickstart = HAL_GetTick();
  11384. 80052f4: f7ff fc4c bl 8004b90 <HAL_GetTick>
  11385. 80052f8: 6138 str r0, [r7, #16]
  11386. DMA_Base_Registers *regs_dma;
  11387. BDMA_Base_Registers *regs_bdma;
  11388. /* Check the DMA peripheral handle */
  11389. if(hdma == NULL)
  11390. 80052fa: 687b ldr r3, [r7, #4]
  11391. 80052fc: 2b00 cmp r3, #0
  11392. 80052fe: d101 bne.n 8005304 <HAL_DMA_Init+0x18>
  11393. {
  11394. return HAL_ERROR;
  11395. 8005300: 2301 movs r3, #1
  11396. 8005302: e316 b.n 8005932 <HAL_DMA_Init+0x646>
  11397. assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment));
  11398. assert_param(IS_DMA_MEMORY_DATA_SIZE(hdma->Init.MemDataAlignment));
  11399. assert_param(IS_DMA_MODE(hdma->Init.Mode));
  11400. assert_param(IS_DMA_PRIORITY(hdma->Init.Priority));
  11401. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  11402. 8005304: 687b ldr r3, [r7, #4]
  11403. 8005306: 681b ldr r3, [r3, #0]
  11404. 8005308: 4a66 ldr r2, [pc, #408] @ (80054a4 <HAL_DMA_Init+0x1b8>)
  11405. 800530a: 4293 cmp r3, r2
  11406. 800530c: d04a beq.n 80053a4 <HAL_DMA_Init+0xb8>
  11407. 800530e: 687b ldr r3, [r7, #4]
  11408. 8005310: 681b ldr r3, [r3, #0]
  11409. 8005312: 4a65 ldr r2, [pc, #404] @ (80054a8 <HAL_DMA_Init+0x1bc>)
  11410. 8005314: 4293 cmp r3, r2
  11411. 8005316: d045 beq.n 80053a4 <HAL_DMA_Init+0xb8>
  11412. 8005318: 687b ldr r3, [r7, #4]
  11413. 800531a: 681b ldr r3, [r3, #0]
  11414. 800531c: 4a63 ldr r2, [pc, #396] @ (80054ac <HAL_DMA_Init+0x1c0>)
  11415. 800531e: 4293 cmp r3, r2
  11416. 8005320: d040 beq.n 80053a4 <HAL_DMA_Init+0xb8>
  11417. 8005322: 687b ldr r3, [r7, #4]
  11418. 8005324: 681b ldr r3, [r3, #0]
  11419. 8005326: 4a62 ldr r2, [pc, #392] @ (80054b0 <HAL_DMA_Init+0x1c4>)
  11420. 8005328: 4293 cmp r3, r2
  11421. 800532a: d03b beq.n 80053a4 <HAL_DMA_Init+0xb8>
  11422. 800532c: 687b ldr r3, [r7, #4]
  11423. 800532e: 681b ldr r3, [r3, #0]
  11424. 8005330: 4a60 ldr r2, [pc, #384] @ (80054b4 <HAL_DMA_Init+0x1c8>)
  11425. 8005332: 4293 cmp r3, r2
  11426. 8005334: d036 beq.n 80053a4 <HAL_DMA_Init+0xb8>
  11427. 8005336: 687b ldr r3, [r7, #4]
  11428. 8005338: 681b ldr r3, [r3, #0]
  11429. 800533a: 4a5f ldr r2, [pc, #380] @ (80054b8 <HAL_DMA_Init+0x1cc>)
  11430. 800533c: 4293 cmp r3, r2
  11431. 800533e: d031 beq.n 80053a4 <HAL_DMA_Init+0xb8>
  11432. 8005340: 687b ldr r3, [r7, #4]
  11433. 8005342: 681b ldr r3, [r3, #0]
  11434. 8005344: 4a5d ldr r2, [pc, #372] @ (80054bc <HAL_DMA_Init+0x1d0>)
  11435. 8005346: 4293 cmp r3, r2
  11436. 8005348: d02c beq.n 80053a4 <HAL_DMA_Init+0xb8>
  11437. 800534a: 687b ldr r3, [r7, #4]
  11438. 800534c: 681b ldr r3, [r3, #0]
  11439. 800534e: 4a5c ldr r2, [pc, #368] @ (80054c0 <HAL_DMA_Init+0x1d4>)
  11440. 8005350: 4293 cmp r3, r2
  11441. 8005352: d027 beq.n 80053a4 <HAL_DMA_Init+0xb8>
  11442. 8005354: 687b ldr r3, [r7, #4]
  11443. 8005356: 681b ldr r3, [r3, #0]
  11444. 8005358: 4a5a ldr r2, [pc, #360] @ (80054c4 <HAL_DMA_Init+0x1d8>)
  11445. 800535a: 4293 cmp r3, r2
  11446. 800535c: d022 beq.n 80053a4 <HAL_DMA_Init+0xb8>
  11447. 800535e: 687b ldr r3, [r7, #4]
  11448. 8005360: 681b ldr r3, [r3, #0]
  11449. 8005362: 4a59 ldr r2, [pc, #356] @ (80054c8 <HAL_DMA_Init+0x1dc>)
  11450. 8005364: 4293 cmp r3, r2
  11451. 8005366: d01d beq.n 80053a4 <HAL_DMA_Init+0xb8>
  11452. 8005368: 687b ldr r3, [r7, #4]
  11453. 800536a: 681b ldr r3, [r3, #0]
  11454. 800536c: 4a57 ldr r2, [pc, #348] @ (80054cc <HAL_DMA_Init+0x1e0>)
  11455. 800536e: 4293 cmp r3, r2
  11456. 8005370: d018 beq.n 80053a4 <HAL_DMA_Init+0xb8>
  11457. 8005372: 687b ldr r3, [r7, #4]
  11458. 8005374: 681b ldr r3, [r3, #0]
  11459. 8005376: 4a56 ldr r2, [pc, #344] @ (80054d0 <HAL_DMA_Init+0x1e4>)
  11460. 8005378: 4293 cmp r3, r2
  11461. 800537a: d013 beq.n 80053a4 <HAL_DMA_Init+0xb8>
  11462. 800537c: 687b ldr r3, [r7, #4]
  11463. 800537e: 681b ldr r3, [r3, #0]
  11464. 8005380: 4a54 ldr r2, [pc, #336] @ (80054d4 <HAL_DMA_Init+0x1e8>)
  11465. 8005382: 4293 cmp r3, r2
  11466. 8005384: d00e beq.n 80053a4 <HAL_DMA_Init+0xb8>
  11467. 8005386: 687b ldr r3, [r7, #4]
  11468. 8005388: 681b ldr r3, [r3, #0]
  11469. 800538a: 4a53 ldr r2, [pc, #332] @ (80054d8 <HAL_DMA_Init+0x1ec>)
  11470. 800538c: 4293 cmp r3, r2
  11471. 800538e: d009 beq.n 80053a4 <HAL_DMA_Init+0xb8>
  11472. 8005390: 687b ldr r3, [r7, #4]
  11473. 8005392: 681b ldr r3, [r3, #0]
  11474. 8005394: 4a51 ldr r2, [pc, #324] @ (80054dc <HAL_DMA_Init+0x1f0>)
  11475. 8005396: 4293 cmp r3, r2
  11476. 8005398: d004 beq.n 80053a4 <HAL_DMA_Init+0xb8>
  11477. 800539a: 687b ldr r3, [r7, #4]
  11478. 800539c: 681b ldr r3, [r3, #0]
  11479. 800539e: 4a50 ldr r2, [pc, #320] @ (80054e0 <HAL_DMA_Init+0x1f4>)
  11480. 80053a0: 4293 cmp r3, r2
  11481. 80053a2: d101 bne.n 80053a8 <HAL_DMA_Init+0xbc>
  11482. 80053a4: 2301 movs r3, #1
  11483. 80053a6: e000 b.n 80053aa <HAL_DMA_Init+0xbe>
  11484. 80053a8: 2300 movs r3, #0
  11485. 80053aa: 2b00 cmp r3, #0
  11486. 80053ac: f000 813b beq.w 8005626 <HAL_DMA_Init+0x33a>
  11487. assert_param(IS_DMA_MEMORY_BURST(hdma->Init.MemBurst));
  11488. assert_param(IS_DMA_PERIPHERAL_BURST(hdma->Init.PeriphBurst));
  11489. }
  11490. /* Change DMA peripheral state */
  11491. hdma->State = HAL_DMA_STATE_BUSY;
  11492. 80053b0: 687b ldr r3, [r7, #4]
  11493. 80053b2: 2202 movs r2, #2
  11494. 80053b4: f883 2035 strb.w r2, [r3, #53] @ 0x35
  11495. /* Allocate lock resource */
  11496. __HAL_UNLOCK(hdma);
  11497. 80053b8: 687b ldr r3, [r7, #4]
  11498. 80053ba: 2200 movs r2, #0
  11499. 80053bc: f883 2034 strb.w r2, [r3, #52] @ 0x34
  11500. /* Disable the peripheral */
  11501. __HAL_DMA_DISABLE(hdma);
  11502. 80053c0: 687b ldr r3, [r7, #4]
  11503. 80053c2: 681b ldr r3, [r3, #0]
  11504. 80053c4: 4a37 ldr r2, [pc, #220] @ (80054a4 <HAL_DMA_Init+0x1b8>)
  11505. 80053c6: 4293 cmp r3, r2
  11506. 80053c8: d04a beq.n 8005460 <HAL_DMA_Init+0x174>
  11507. 80053ca: 687b ldr r3, [r7, #4]
  11508. 80053cc: 681b ldr r3, [r3, #0]
  11509. 80053ce: 4a36 ldr r2, [pc, #216] @ (80054a8 <HAL_DMA_Init+0x1bc>)
  11510. 80053d0: 4293 cmp r3, r2
  11511. 80053d2: d045 beq.n 8005460 <HAL_DMA_Init+0x174>
  11512. 80053d4: 687b ldr r3, [r7, #4]
  11513. 80053d6: 681b ldr r3, [r3, #0]
  11514. 80053d8: 4a34 ldr r2, [pc, #208] @ (80054ac <HAL_DMA_Init+0x1c0>)
  11515. 80053da: 4293 cmp r3, r2
  11516. 80053dc: d040 beq.n 8005460 <HAL_DMA_Init+0x174>
  11517. 80053de: 687b ldr r3, [r7, #4]
  11518. 80053e0: 681b ldr r3, [r3, #0]
  11519. 80053e2: 4a33 ldr r2, [pc, #204] @ (80054b0 <HAL_DMA_Init+0x1c4>)
  11520. 80053e4: 4293 cmp r3, r2
  11521. 80053e6: d03b beq.n 8005460 <HAL_DMA_Init+0x174>
  11522. 80053e8: 687b ldr r3, [r7, #4]
  11523. 80053ea: 681b ldr r3, [r3, #0]
  11524. 80053ec: 4a31 ldr r2, [pc, #196] @ (80054b4 <HAL_DMA_Init+0x1c8>)
  11525. 80053ee: 4293 cmp r3, r2
  11526. 80053f0: d036 beq.n 8005460 <HAL_DMA_Init+0x174>
  11527. 80053f2: 687b ldr r3, [r7, #4]
  11528. 80053f4: 681b ldr r3, [r3, #0]
  11529. 80053f6: 4a30 ldr r2, [pc, #192] @ (80054b8 <HAL_DMA_Init+0x1cc>)
  11530. 80053f8: 4293 cmp r3, r2
  11531. 80053fa: d031 beq.n 8005460 <HAL_DMA_Init+0x174>
  11532. 80053fc: 687b ldr r3, [r7, #4]
  11533. 80053fe: 681b ldr r3, [r3, #0]
  11534. 8005400: 4a2e ldr r2, [pc, #184] @ (80054bc <HAL_DMA_Init+0x1d0>)
  11535. 8005402: 4293 cmp r3, r2
  11536. 8005404: d02c beq.n 8005460 <HAL_DMA_Init+0x174>
  11537. 8005406: 687b ldr r3, [r7, #4]
  11538. 8005408: 681b ldr r3, [r3, #0]
  11539. 800540a: 4a2d ldr r2, [pc, #180] @ (80054c0 <HAL_DMA_Init+0x1d4>)
  11540. 800540c: 4293 cmp r3, r2
  11541. 800540e: d027 beq.n 8005460 <HAL_DMA_Init+0x174>
  11542. 8005410: 687b ldr r3, [r7, #4]
  11543. 8005412: 681b ldr r3, [r3, #0]
  11544. 8005414: 4a2b ldr r2, [pc, #172] @ (80054c4 <HAL_DMA_Init+0x1d8>)
  11545. 8005416: 4293 cmp r3, r2
  11546. 8005418: d022 beq.n 8005460 <HAL_DMA_Init+0x174>
  11547. 800541a: 687b ldr r3, [r7, #4]
  11548. 800541c: 681b ldr r3, [r3, #0]
  11549. 800541e: 4a2a ldr r2, [pc, #168] @ (80054c8 <HAL_DMA_Init+0x1dc>)
  11550. 8005420: 4293 cmp r3, r2
  11551. 8005422: d01d beq.n 8005460 <HAL_DMA_Init+0x174>
  11552. 8005424: 687b ldr r3, [r7, #4]
  11553. 8005426: 681b ldr r3, [r3, #0]
  11554. 8005428: 4a28 ldr r2, [pc, #160] @ (80054cc <HAL_DMA_Init+0x1e0>)
  11555. 800542a: 4293 cmp r3, r2
  11556. 800542c: d018 beq.n 8005460 <HAL_DMA_Init+0x174>
  11557. 800542e: 687b ldr r3, [r7, #4]
  11558. 8005430: 681b ldr r3, [r3, #0]
  11559. 8005432: 4a27 ldr r2, [pc, #156] @ (80054d0 <HAL_DMA_Init+0x1e4>)
  11560. 8005434: 4293 cmp r3, r2
  11561. 8005436: d013 beq.n 8005460 <HAL_DMA_Init+0x174>
  11562. 8005438: 687b ldr r3, [r7, #4]
  11563. 800543a: 681b ldr r3, [r3, #0]
  11564. 800543c: 4a25 ldr r2, [pc, #148] @ (80054d4 <HAL_DMA_Init+0x1e8>)
  11565. 800543e: 4293 cmp r3, r2
  11566. 8005440: d00e beq.n 8005460 <HAL_DMA_Init+0x174>
  11567. 8005442: 687b ldr r3, [r7, #4]
  11568. 8005444: 681b ldr r3, [r3, #0]
  11569. 8005446: 4a24 ldr r2, [pc, #144] @ (80054d8 <HAL_DMA_Init+0x1ec>)
  11570. 8005448: 4293 cmp r3, r2
  11571. 800544a: d009 beq.n 8005460 <HAL_DMA_Init+0x174>
  11572. 800544c: 687b ldr r3, [r7, #4]
  11573. 800544e: 681b ldr r3, [r3, #0]
  11574. 8005450: 4a22 ldr r2, [pc, #136] @ (80054dc <HAL_DMA_Init+0x1f0>)
  11575. 8005452: 4293 cmp r3, r2
  11576. 8005454: d004 beq.n 8005460 <HAL_DMA_Init+0x174>
  11577. 8005456: 687b ldr r3, [r7, #4]
  11578. 8005458: 681b ldr r3, [r3, #0]
  11579. 800545a: 4a21 ldr r2, [pc, #132] @ (80054e0 <HAL_DMA_Init+0x1f4>)
  11580. 800545c: 4293 cmp r3, r2
  11581. 800545e: d108 bne.n 8005472 <HAL_DMA_Init+0x186>
  11582. 8005460: 687b ldr r3, [r7, #4]
  11583. 8005462: 681b ldr r3, [r3, #0]
  11584. 8005464: 681a ldr r2, [r3, #0]
  11585. 8005466: 687b ldr r3, [r7, #4]
  11586. 8005468: 681b ldr r3, [r3, #0]
  11587. 800546a: f022 0201 bic.w r2, r2, #1
  11588. 800546e: 601a str r2, [r3, #0]
  11589. 8005470: e007 b.n 8005482 <HAL_DMA_Init+0x196>
  11590. 8005472: 687b ldr r3, [r7, #4]
  11591. 8005474: 681b ldr r3, [r3, #0]
  11592. 8005476: 681a ldr r2, [r3, #0]
  11593. 8005478: 687b ldr r3, [r7, #4]
  11594. 800547a: 681b ldr r3, [r3, #0]
  11595. 800547c: f022 0201 bic.w r2, r2, #1
  11596. 8005480: 601a str r2, [r3, #0]
  11597. /* Check if the DMA Stream is effectively disabled */
  11598. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  11599. 8005482: e02f b.n 80054e4 <HAL_DMA_Init+0x1f8>
  11600. {
  11601. /* Check for the Timeout */
  11602. if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT)
  11603. 8005484: f7ff fb84 bl 8004b90 <HAL_GetTick>
  11604. 8005488: 4602 mov r2, r0
  11605. 800548a: 693b ldr r3, [r7, #16]
  11606. 800548c: 1ad3 subs r3, r2, r3
  11607. 800548e: 2b05 cmp r3, #5
  11608. 8005490: d928 bls.n 80054e4 <HAL_DMA_Init+0x1f8>
  11609. {
  11610. /* Update error code */
  11611. hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT;
  11612. 8005492: 687b ldr r3, [r7, #4]
  11613. 8005494: 2220 movs r2, #32
  11614. 8005496: 655a str r2, [r3, #84] @ 0x54
  11615. /* Change the DMA state */
  11616. hdma->State = HAL_DMA_STATE_ERROR;
  11617. 8005498: 687b ldr r3, [r7, #4]
  11618. 800549a: 2203 movs r2, #3
  11619. 800549c: f883 2035 strb.w r2, [r3, #53] @ 0x35
  11620. return HAL_ERROR;
  11621. 80054a0: 2301 movs r3, #1
  11622. 80054a2: e246 b.n 8005932 <HAL_DMA_Init+0x646>
  11623. 80054a4: 40020010 .word 0x40020010
  11624. 80054a8: 40020028 .word 0x40020028
  11625. 80054ac: 40020040 .word 0x40020040
  11626. 80054b0: 40020058 .word 0x40020058
  11627. 80054b4: 40020070 .word 0x40020070
  11628. 80054b8: 40020088 .word 0x40020088
  11629. 80054bc: 400200a0 .word 0x400200a0
  11630. 80054c0: 400200b8 .word 0x400200b8
  11631. 80054c4: 40020410 .word 0x40020410
  11632. 80054c8: 40020428 .word 0x40020428
  11633. 80054cc: 40020440 .word 0x40020440
  11634. 80054d0: 40020458 .word 0x40020458
  11635. 80054d4: 40020470 .word 0x40020470
  11636. 80054d8: 40020488 .word 0x40020488
  11637. 80054dc: 400204a0 .word 0x400204a0
  11638. 80054e0: 400204b8 .word 0x400204b8
  11639. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  11640. 80054e4: 687b ldr r3, [r7, #4]
  11641. 80054e6: 681b ldr r3, [r3, #0]
  11642. 80054e8: 681b ldr r3, [r3, #0]
  11643. 80054ea: f003 0301 and.w r3, r3, #1
  11644. 80054ee: 2b00 cmp r3, #0
  11645. 80054f0: d1c8 bne.n 8005484 <HAL_DMA_Init+0x198>
  11646. }
  11647. }
  11648. /* Get the CR register value */
  11649. registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->CR;
  11650. 80054f2: 687b ldr r3, [r7, #4]
  11651. 80054f4: 681b ldr r3, [r3, #0]
  11652. 80054f6: 681b ldr r3, [r3, #0]
  11653. 80054f8: 617b str r3, [r7, #20]
  11654. /* Clear CHSEL, MBURST, PBURST, PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, CT and DBM bits */
  11655. registerValue &= ((uint32_t)~(DMA_SxCR_MBURST | DMA_SxCR_PBURST | \
  11656. 80054fa: 697a ldr r2, [r7, #20]
  11657. 80054fc: 4b83 ldr r3, [pc, #524] @ (800570c <HAL_DMA_Init+0x420>)
  11658. 80054fe: 4013 ands r3, r2
  11659. 8005500: 617b str r3, [r7, #20]
  11660. DMA_SxCR_PL | DMA_SxCR_MSIZE | DMA_SxCR_PSIZE | \
  11661. DMA_SxCR_MINC | DMA_SxCR_PINC | DMA_SxCR_CIRC | \
  11662. DMA_SxCR_DIR | DMA_SxCR_CT | DMA_SxCR_DBM));
  11663. /* Prepare the DMA Stream configuration */
  11664. registerValue |= hdma->Init.Direction |
  11665. 8005502: 687b ldr r3, [r7, #4]
  11666. 8005504: 689a ldr r2, [r3, #8]
  11667. hdma->Init.PeriphInc | hdma->Init.MemInc |
  11668. 8005506: 687b ldr r3, [r7, #4]
  11669. 8005508: 68db ldr r3, [r3, #12]
  11670. registerValue |= hdma->Init.Direction |
  11671. 800550a: 431a orrs r2, r3
  11672. hdma->Init.PeriphInc | hdma->Init.MemInc |
  11673. 800550c: 687b ldr r3, [r7, #4]
  11674. 800550e: 691b ldr r3, [r3, #16]
  11675. 8005510: 431a orrs r2, r3
  11676. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  11677. 8005512: 687b ldr r3, [r7, #4]
  11678. 8005514: 695b ldr r3, [r3, #20]
  11679. hdma->Init.PeriphInc | hdma->Init.MemInc |
  11680. 8005516: 431a orrs r2, r3
  11681. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  11682. 8005518: 687b ldr r3, [r7, #4]
  11683. 800551a: 699b ldr r3, [r3, #24]
  11684. 800551c: 431a orrs r2, r3
  11685. hdma->Init.Mode | hdma->Init.Priority;
  11686. 800551e: 687b ldr r3, [r7, #4]
  11687. 8005520: 69db ldr r3, [r3, #28]
  11688. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  11689. 8005522: 431a orrs r2, r3
  11690. hdma->Init.Mode | hdma->Init.Priority;
  11691. 8005524: 687b ldr r3, [r7, #4]
  11692. 8005526: 6a1b ldr r3, [r3, #32]
  11693. 8005528: 4313 orrs r3, r2
  11694. registerValue |= hdma->Init.Direction |
  11695. 800552a: 697a ldr r2, [r7, #20]
  11696. 800552c: 4313 orrs r3, r2
  11697. 800552e: 617b str r3, [r7, #20]
  11698. /* the Memory burst and peripheral burst are not used when the FIFO is disabled */
  11699. if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
  11700. 8005530: 687b ldr r3, [r7, #4]
  11701. 8005532: 6a5b ldr r3, [r3, #36] @ 0x24
  11702. 8005534: 2b04 cmp r3, #4
  11703. 8005536: d107 bne.n 8005548 <HAL_DMA_Init+0x25c>
  11704. {
  11705. /* Get memory burst and peripheral burst */
  11706. registerValue |= hdma->Init.MemBurst | hdma->Init.PeriphBurst;
  11707. 8005538: 687b ldr r3, [r7, #4]
  11708. 800553a: 6ada ldr r2, [r3, #44] @ 0x2c
  11709. 800553c: 687b ldr r3, [r7, #4]
  11710. 800553e: 6b1b ldr r3, [r3, #48] @ 0x30
  11711. 8005540: 4313 orrs r3, r2
  11712. 8005542: 697a ldr r2, [r7, #20]
  11713. 8005544: 4313 orrs r3, r2
  11714. 8005546: 617b str r3, [r7, #20]
  11715. }
  11716. /* Work around for Errata 2.22: UART/USART- DMA transfer lock: DMA stream could be
  11717. lock when transferring data to/from USART/UART */
  11718. #if (STM32H7_DEV_ID == 0x450UL)
  11719. if((DBGMCU->IDCODE & 0xFFFF0000U) >= 0x20000000U)
  11720. 8005548: 4b71 ldr r3, [pc, #452] @ (8005710 <HAL_DMA_Init+0x424>)
  11721. 800554a: 681a ldr r2, [r3, #0]
  11722. 800554c: 4b71 ldr r3, [pc, #452] @ (8005714 <HAL_DMA_Init+0x428>)
  11723. 800554e: 4013 ands r3, r2
  11724. 8005550: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  11725. 8005554: d328 bcc.n 80055a8 <HAL_DMA_Init+0x2bc>
  11726. {
  11727. #endif /* STM32H7_DEV_ID == 0x450UL */
  11728. if(IS_DMA_UART_USART_REQUEST(hdma->Init.Request) != 0U)
  11729. 8005556: 687b ldr r3, [r7, #4]
  11730. 8005558: 685b ldr r3, [r3, #4]
  11731. 800555a: 2b28 cmp r3, #40 @ 0x28
  11732. 800555c: d903 bls.n 8005566 <HAL_DMA_Init+0x27a>
  11733. 800555e: 687b ldr r3, [r7, #4]
  11734. 8005560: 685b ldr r3, [r3, #4]
  11735. 8005562: 2b2e cmp r3, #46 @ 0x2e
  11736. 8005564: d917 bls.n 8005596 <HAL_DMA_Init+0x2aa>
  11737. 8005566: 687b ldr r3, [r7, #4]
  11738. 8005568: 685b ldr r3, [r3, #4]
  11739. 800556a: 2b3e cmp r3, #62 @ 0x3e
  11740. 800556c: d903 bls.n 8005576 <HAL_DMA_Init+0x28a>
  11741. 800556e: 687b ldr r3, [r7, #4]
  11742. 8005570: 685b ldr r3, [r3, #4]
  11743. 8005572: 2b42 cmp r3, #66 @ 0x42
  11744. 8005574: d90f bls.n 8005596 <HAL_DMA_Init+0x2aa>
  11745. 8005576: 687b ldr r3, [r7, #4]
  11746. 8005578: 685b ldr r3, [r3, #4]
  11747. 800557a: 2b46 cmp r3, #70 @ 0x46
  11748. 800557c: d903 bls.n 8005586 <HAL_DMA_Init+0x29a>
  11749. 800557e: 687b ldr r3, [r7, #4]
  11750. 8005580: 685b ldr r3, [r3, #4]
  11751. 8005582: 2b48 cmp r3, #72 @ 0x48
  11752. 8005584: d907 bls.n 8005596 <HAL_DMA_Init+0x2aa>
  11753. 8005586: 687b ldr r3, [r7, #4]
  11754. 8005588: 685b ldr r3, [r3, #4]
  11755. 800558a: 2b4e cmp r3, #78 @ 0x4e
  11756. 800558c: d905 bls.n 800559a <HAL_DMA_Init+0x2ae>
  11757. 800558e: 687b ldr r3, [r7, #4]
  11758. 8005590: 685b ldr r3, [r3, #4]
  11759. 8005592: 2b52 cmp r3, #82 @ 0x52
  11760. 8005594: d801 bhi.n 800559a <HAL_DMA_Init+0x2ae>
  11761. 8005596: 2301 movs r3, #1
  11762. 8005598: e000 b.n 800559c <HAL_DMA_Init+0x2b0>
  11763. 800559a: 2300 movs r3, #0
  11764. 800559c: 2b00 cmp r3, #0
  11765. 800559e: d003 beq.n 80055a8 <HAL_DMA_Init+0x2bc>
  11766. {
  11767. registerValue |= DMA_SxCR_TRBUFF;
  11768. 80055a0: 697b ldr r3, [r7, #20]
  11769. 80055a2: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  11770. 80055a6: 617b str r3, [r7, #20]
  11771. #if (STM32H7_DEV_ID == 0x450UL)
  11772. }
  11773. #endif /* STM32H7_DEV_ID == 0x450UL */
  11774. /* Write to DMA Stream CR register */
  11775. ((DMA_Stream_TypeDef *)hdma->Instance)->CR = registerValue;
  11776. 80055a8: 687b ldr r3, [r7, #4]
  11777. 80055aa: 681b ldr r3, [r3, #0]
  11778. 80055ac: 697a ldr r2, [r7, #20]
  11779. 80055ae: 601a str r2, [r3, #0]
  11780. /* Get the FCR register value */
  11781. registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->FCR;
  11782. 80055b0: 687b ldr r3, [r7, #4]
  11783. 80055b2: 681b ldr r3, [r3, #0]
  11784. 80055b4: 695b ldr r3, [r3, #20]
  11785. 80055b6: 617b str r3, [r7, #20]
  11786. /* Clear Direct mode and FIFO threshold bits */
  11787. registerValue &= (uint32_t)~(DMA_SxFCR_DMDIS | DMA_SxFCR_FTH);
  11788. 80055b8: 697b ldr r3, [r7, #20]
  11789. 80055ba: f023 0307 bic.w r3, r3, #7
  11790. 80055be: 617b str r3, [r7, #20]
  11791. /* Prepare the DMA Stream FIFO configuration */
  11792. registerValue |= hdma->Init.FIFOMode;
  11793. 80055c0: 687b ldr r3, [r7, #4]
  11794. 80055c2: 6a5b ldr r3, [r3, #36] @ 0x24
  11795. 80055c4: 697a ldr r2, [r7, #20]
  11796. 80055c6: 4313 orrs r3, r2
  11797. 80055c8: 617b str r3, [r7, #20]
  11798. /* the FIFO threshold is not used when the FIFO mode is disabled */
  11799. if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
  11800. 80055ca: 687b ldr r3, [r7, #4]
  11801. 80055cc: 6a5b ldr r3, [r3, #36] @ 0x24
  11802. 80055ce: 2b04 cmp r3, #4
  11803. 80055d0: d117 bne.n 8005602 <HAL_DMA_Init+0x316>
  11804. {
  11805. /* Get the FIFO threshold */
  11806. registerValue |= hdma->Init.FIFOThreshold;
  11807. 80055d2: 687b ldr r3, [r7, #4]
  11808. 80055d4: 6a9b ldr r3, [r3, #40] @ 0x28
  11809. 80055d6: 697a ldr r2, [r7, #20]
  11810. 80055d8: 4313 orrs r3, r2
  11811. 80055da: 617b str r3, [r7, #20]
  11812. /* Check compatibility between FIFO threshold level and size of the memory burst */
  11813. /* for INCR4, INCR8, INCR16 */
  11814. if(hdma->Init.MemBurst != DMA_MBURST_SINGLE)
  11815. 80055dc: 687b ldr r3, [r7, #4]
  11816. 80055de: 6adb ldr r3, [r3, #44] @ 0x2c
  11817. 80055e0: 2b00 cmp r3, #0
  11818. 80055e2: d00e beq.n 8005602 <HAL_DMA_Init+0x316>
  11819. {
  11820. if (DMA_CheckFifoParam(hdma) != HAL_OK)
  11821. 80055e4: 6878 ldr r0, [r7, #4]
  11822. 80055e6: f001 ff1d bl 8007424 <DMA_CheckFifoParam>
  11823. 80055ea: 4603 mov r3, r0
  11824. 80055ec: 2b00 cmp r3, #0
  11825. 80055ee: d008 beq.n 8005602 <HAL_DMA_Init+0x316>
  11826. {
  11827. /* Update error code */
  11828. hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
  11829. 80055f0: 687b ldr r3, [r7, #4]
  11830. 80055f2: 2240 movs r2, #64 @ 0x40
  11831. 80055f4: 655a str r2, [r3, #84] @ 0x54
  11832. /* Change the DMA state */
  11833. hdma->State = HAL_DMA_STATE_READY;
  11834. 80055f6: 687b ldr r3, [r7, #4]
  11835. 80055f8: 2201 movs r2, #1
  11836. 80055fa: f883 2035 strb.w r2, [r3, #53] @ 0x35
  11837. return HAL_ERROR;
  11838. 80055fe: 2301 movs r3, #1
  11839. 8005600: e197 b.n 8005932 <HAL_DMA_Init+0x646>
  11840. }
  11841. }
  11842. }
  11843. /* Write to DMA Stream FCR */
  11844. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR = registerValue;
  11845. 8005602: 687b ldr r3, [r7, #4]
  11846. 8005604: 681b ldr r3, [r3, #0]
  11847. 8005606: 697a ldr r2, [r7, #20]
  11848. 8005608: 615a str r2, [r3, #20]
  11849. /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate
  11850. DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */
  11851. regs_dma = (DMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma);
  11852. 800560a: 6878 ldr r0, [r7, #4]
  11853. 800560c: f001 fe58 bl 80072c0 <DMA_CalcBaseAndBitshift>
  11854. 8005610: 4603 mov r3, r0
  11855. 8005612: 60bb str r3, [r7, #8]
  11856. /* Clear all interrupt flags */
  11857. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  11858. 8005614: 687b ldr r3, [r7, #4]
  11859. 8005616: 6ddb ldr r3, [r3, #92] @ 0x5c
  11860. 8005618: f003 031f and.w r3, r3, #31
  11861. 800561c: 223f movs r2, #63 @ 0x3f
  11862. 800561e: 409a lsls r2, r3
  11863. 8005620: 68bb ldr r3, [r7, #8]
  11864. 8005622: 609a str r2, [r3, #8]
  11865. 8005624: e0cd b.n 80057c2 <HAL_DMA_Init+0x4d6>
  11866. }
  11867. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  11868. 8005626: 687b ldr r3, [r7, #4]
  11869. 8005628: 681b ldr r3, [r3, #0]
  11870. 800562a: 4a3b ldr r2, [pc, #236] @ (8005718 <HAL_DMA_Init+0x42c>)
  11871. 800562c: 4293 cmp r3, r2
  11872. 800562e: d022 beq.n 8005676 <HAL_DMA_Init+0x38a>
  11873. 8005630: 687b ldr r3, [r7, #4]
  11874. 8005632: 681b ldr r3, [r3, #0]
  11875. 8005634: 4a39 ldr r2, [pc, #228] @ (800571c <HAL_DMA_Init+0x430>)
  11876. 8005636: 4293 cmp r3, r2
  11877. 8005638: d01d beq.n 8005676 <HAL_DMA_Init+0x38a>
  11878. 800563a: 687b ldr r3, [r7, #4]
  11879. 800563c: 681b ldr r3, [r3, #0]
  11880. 800563e: 4a38 ldr r2, [pc, #224] @ (8005720 <HAL_DMA_Init+0x434>)
  11881. 8005640: 4293 cmp r3, r2
  11882. 8005642: d018 beq.n 8005676 <HAL_DMA_Init+0x38a>
  11883. 8005644: 687b ldr r3, [r7, #4]
  11884. 8005646: 681b ldr r3, [r3, #0]
  11885. 8005648: 4a36 ldr r2, [pc, #216] @ (8005724 <HAL_DMA_Init+0x438>)
  11886. 800564a: 4293 cmp r3, r2
  11887. 800564c: d013 beq.n 8005676 <HAL_DMA_Init+0x38a>
  11888. 800564e: 687b ldr r3, [r7, #4]
  11889. 8005650: 681b ldr r3, [r3, #0]
  11890. 8005652: 4a35 ldr r2, [pc, #212] @ (8005728 <HAL_DMA_Init+0x43c>)
  11891. 8005654: 4293 cmp r3, r2
  11892. 8005656: d00e beq.n 8005676 <HAL_DMA_Init+0x38a>
  11893. 8005658: 687b ldr r3, [r7, #4]
  11894. 800565a: 681b ldr r3, [r3, #0]
  11895. 800565c: 4a33 ldr r2, [pc, #204] @ (800572c <HAL_DMA_Init+0x440>)
  11896. 800565e: 4293 cmp r3, r2
  11897. 8005660: d009 beq.n 8005676 <HAL_DMA_Init+0x38a>
  11898. 8005662: 687b ldr r3, [r7, #4]
  11899. 8005664: 681b ldr r3, [r3, #0]
  11900. 8005666: 4a32 ldr r2, [pc, #200] @ (8005730 <HAL_DMA_Init+0x444>)
  11901. 8005668: 4293 cmp r3, r2
  11902. 800566a: d004 beq.n 8005676 <HAL_DMA_Init+0x38a>
  11903. 800566c: 687b ldr r3, [r7, #4]
  11904. 800566e: 681b ldr r3, [r3, #0]
  11905. 8005670: 4a30 ldr r2, [pc, #192] @ (8005734 <HAL_DMA_Init+0x448>)
  11906. 8005672: 4293 cmp r3, r2
  11907. 8005674: d101 bne.n 800567a <HAL_DMA_Init+0x38e>
  11908. 8005676: 2301 movs r3, #1
  11909. 8005678: e000 b.n 800567c <HAL_DMA_Init+0x390>
  11910. 800567a: 2300 movs r3, #0
  11911. 800567c: 2b00 cmp r3, #0
  11912. 800567e: f000 8097 beq.w 80057b0 <HAL_DMA_Init+0x4c4>
  11913. {
  11914. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  11915. 8005682: 687b ldr r3, [r7, #4]
  11916. 8005684: 681b ldr r3, [r3, #0]
  11917. 8005686: 4a24 ldr r2, [pc, #144] @ (8005718 <HAL_DMA_Init+0x42c>)
  11918. 8005688: 4293 cmp r3, r2
  11919. 800568a: d021 beq.n 80056d0 <HAL_DMA_Init+0x3e4>
  11920. 800568c: 687b ldr r3, [r7, #4]
  11921. 800568e: 681b ldr r3, [r3, #0]
  11922. 8005690: 4a22 ldr r2, [pc, #136] @ (800571c <HAL_DMA_Init+0x430>)
  11923. 8005692: 4293 cmp r3, r2
  11924. 8005694: d01c beq.n 80056d0 <HAL_DMA_Init+0x3e4>
  11925. 8005696: 687b ldr r3, [r7, #4]
  11926. 8005698: 681b ldr r3, [r3, #0]
  11927. 800569a: 4a21 ldr r2, [pc, #132] @ (8005720 <HAL_DMA_Init+0x434>)
  11928. 800569c: 4293 cmp r3, r2
  11929. 800569e: d017 beq.n 80056d0 <HAL_DMA_Init+0x3e4>
  11930. 80056a0: 687b ldr r3, [r7, #4]
  11931. 80056a2: 681b ldr r3, [r3, #0]
  11932. 80056a4: 4a1f ldr r2, [pc, #124] @ (8005724 <HAL_DMA_Init+0x438>)
  11933. 80056a6: 4293 cmp r3, r2
  11934. 80056a8: d012 beq.n 80056d0 <HAL_DMA_Init+0x3e4>
  11935. 80056aa: 687b ldr r3, [r7, #4]
  11936. 80056ac: 681b ldr r3, [r3, #0]
  11937. 80056ae: 4a1e ldr r2, [pc, #120] @ (8005728 <HAL_DMA_Init+0x43c>)
  11938. 80056b0: 4293 cmp r3, r2
  11939. 80056b2: d00d beq.n 80056d0 <HAL_DMA_Init+0x3e4>
  11940. 80056b4: 687b ldr r3, [r7, #4]
  11941. 80056b6: 681b ldr r3, [r3, #0]
  11942. 80056b8: 4a1c ldr r2, [pc, #112] @ (800572c <HAL_DMA_Init+0x440>)
  11943. 80056ba: 4293 cmp r3, r2
  11944. 80056bc: d008 beq.n 80056d0 <HAL_DMA_Init+0x3e4>
  11945. 80056be: 687b ldr r3, [r7, #4]
  11946. 80056c0: 681b ldr r3, [r3, #0]
  11947. 80056c2: 4a1b ldr r2, [pc, #108] @ (8005730 <HAL_DMA_Init+0x444>)
  11948. 80056c4: 4293 cmp r3, r2
  11949. 80056c6: d003 beq.n 80056d0 <HAL_DMA_Init+0x3e4>
  11950. 80056c8: 687b ldr r3, [r7, #4]
  11951. 80056ca: 681b ldr r3, [r3, #0]
  11952. 80056cc: 4a19 ldr r2, [pc, #100] @ (8005734 <HAL_DMA_Init+0x448>)
  11953. 80056ce: 4293 cmp r3, r2
  11954. /* Check the request parameter */
  11955. assert_param(IS_BDMA_REQUEST(hdma->Init.Request));
  11956. }
  11957. /* Change DMA peripheral state */
  11958. hdma->State = HAL_DMA_STATE_BUSY;
  11959. 80056d0: 687b ldr r3, [r7, #4]
  11960. 80056d2: 2202 movs r2, #2
  11961. 80056d4: f883 2035 strb.w r2, [r3, #53] @ 0x35
  11962. /* Allocate lock resource */
  11963. __HAL_UNLOCK(hdma);
  11964. 80056d8: 687b ldr r3, [r7, #4]
  11965. 80056da: 2200 movs r2, #0
  11966. 80056dc: f883 2034 strb.w r2, [r3, #52] @ 0x34
  11967. /* Get the CR register value */
  11968. registerValue = ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR;
  11969. 80056e0: 687b ldr r3, [r7, #4]
  11970. 80056e2: 681b ldr r3, [r3, #0]
  11971. 80056e4: 681b ldr r3, [r3, #0]
  11972. 80056e6: 617b str r3, [r7, #20]
  11973. /* Clear PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, MEM2MEM, DBM and CT bits */
  11974. registerValue &= ((uint32_t)~(BDMA_CCR_PL | BDMA_CCR_MSIZE | BDMA_CCR_PSIZE | \
  11975. 80056e8: 697a ldr r2, [r7, #20]
  11976. 80056ea: 4b13 ldr r3, [pc, #76] @ (8005738 <HAL_DMA_Init+0x44c>)
  11977. 80056ec: 4013 ands r3, r2
  11978. 80056ee: 617b str r3, [r7, #20]
  11979. BDMA_CCR_MINC | BDMA_CCR_PINC | BDMA_CCR_CIRC | \
  11980. BDMA_CCR_DIR | BDMA_CCR_MEM2MEM | BDMA_CCR_DBM | \
  11981. BDMA_CCR_CT));
  11982. /* Prepare the DMA Channel configuration */
  11983. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  11984. 80056f0: 687b ldr r3, [r7, #4]
  11985. 80056f2: 689b ldr r3, [r3, #8]
  11986. 80056f4: 2b40 cmp r3, #64 @ 0x40
  11987. 80056f6: d021 beq.n 800573c <HAL_DMA_Init+0x450>
  11988. 80056f8: 687b ldr r3, [r7, #4]
  11989. 80056fa: 689b ldr r3, [r3, #8]
  11990. 80056fc: 2b80 cmp r3, #128 @ 0x80
  11991. 80056fe: d102 bne.n 8005706 <HAL_DMA_Init+0x41a>
  11992. 8005700: f44f 4380 mov.w r3, #16384 @ 0x4000
  11993. 8005704: e01b b.n 800573e <HAL_DMA_Init+0x452>
  11994. 8005706: 2300 movs r3, #0
  11995. 8005708: e019 b.n 800573e <HAL_DMA_Init+0x452>
  11996. 800570a: bf00 nop
  11997. 800570c: fe10803f .word 0xfe10803f
  11998. 8005710: 5c001000 .word 0x5c001000
  11999. 8005714: ffff0000 .word 0xffff0000
  12000. 8005718: 58025408 .word 0x58025408
  12001. 800571c: 5802541c .word 0x5802541c
  12002. 8005720: 58025430 .word 0x58025430
  12003. 8005724: 58025444 .word 0x58025444
  12004. 8005728: 58025458 .word 0x58025458
  12005. 800572c: 5802546c .word 0x5802546c
  12006. 8005730: 58025480 .word 0x58025480
  12007. 8005734: 58025494 .word 0x58025494
  12008. 8005738: fffe000f .word 0xfffe000f
  12009. 800573c: 2310 movs r3, #16
  12010. DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) |
  12011. 800573e: 687a ldr r2, [r7, #4]
  12012. 8005740: 68d2 ldr r2, [r2, #12]
  12013. 8005742: 08d2 lsrs r2, r2, #3
  12014. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  12015. 8005744: 431a orrs r2, r3
  12016. DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) |
  12017. 8005746: 687b ldr r3, [r7, #4]
  12018. 8005748: 691b ldr r3, [r3, #16]
  12019. 800574a: 08db lsrs r3, r3, #3
  12020. DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) |
  12021. 800574c: 431a orrs r2, r3
  12022. DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) |
  12023. 800574e: 687b ldr r3, [r7, #4]
  12024. 8005750: 695b ldr r3, [r3, #20]
  12025. 8005752: 08db lsrs r3, r3, #3
  12026. DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) |
  12027. 8005754: 431a orrs r2, r3
  12028. DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) |
  12029. 8005756: 687b ldr r3, [r7, #4]
  12030. 8005758: 699b ldr r3, [r3, #24]
  12031. 800575a: 08db lsrs r3, r3, #3
  12032. DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) |
  12033. 800575c: 431a orrs r2, r3
  12034. DMA_TO_BDMA_MODE(hdma->Init.Mode) |
  12035. 800575e: 687b ldr r3, [r7, #4]
  12036. 8005760: 69db ldr r3, [r3, #28]
  12037. 8005762: 08db lsrs r3, r3, #3
  12038. DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) |
  12039. 8005764: 431a orrs r2, r3
  12040. DMA_TO_BDMA_PRIORITY(hdma->Init.Priority);
  12041. 8005766: 687b ldr r3, [r7, #4]
  12042. 8005768: 6a1b ldr r3, [r3, #32]
  12043. 800576a: 091b lsrs r3, r3, #4
  12044. DMA_TO_BDMA_MODE(hdma->Init.Mode) |
  12045. 800576c: 4313 orrs r3, r2
  12046. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  12047. 800576e: 697a ldr r2, [r7, #20]
  12048. 8005770: 4313 orrs r3, r2
  12049. 8005772: 617b str r3, [r7, #20]
  12050. /* Write to DMA Channel CR register */
  12051. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR = registerValue;
  12052. 8005774: 687b ldr r3, [r7, #4]
  12053. 8005776: 681b ldr r3, [r3, #0]
  12054. 8005778: 697a ldr r2, [r7, #20]
  12055. 800577a: 601a str r2, [r3, #0]
  12056. /* calculation of the channel index */
  12057. hdma->StreamIndex = (((uint32_t)((uint32_t*)hdma->Instance) - (uint32_t)BDMA_Channel0) / ((uint32_t)BDMA_Channel1 - (uint32_t)BDMA_Channel0)) << 2U;
  12058. 800577c: 687b ldr r3, [r7, #4]
  12059. 800577e: 681b ldr r3, [r3, #0]
  12060. 8005780: 461a mov r2, r3
  12061. 8005782: 4b6e ldr r3, [pc, #440] @ (800593c <HAL_DMA_Init+0x650>)
  12062. 8005784: 4413 add r3, r2
  12063. 8005786: 4a6e ldr r2, [pc, #440] @ (8005940 <HAL_DMA_Init+0x654>)
  12064. 8005788: fba2 2303 umull r2, r3, r2, r3
  12065. 800578c: 091b lsrs r3, r3, #4
  12066. 800578e: 009a lsls r2, r3, #2
  12067. 8005790: 687b ldr r3, [r7, #4]
  12068. 8005792: 65da str r2, [r3, #92] @ 0x5c
  12069. /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate
  12070. DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */
  12071. regs_bdma = (BDMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma);
  12072. 8005794: 6878 ldr r0, [r7, #4]
  12073. 8005796: f001 fd93 bl 80072c0 <DMA_CalcBaseAndBitshift>
  12074. 800579a: 4603 mov r3, r0
  12075. 800579c: 60fb str r3, [r7, #12]
  12076. /* Clear all interrupt flags */
  12077. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  12078. 800579e: 687b ldr r3, [r7, #4]
  12079. 80057a0: 6ddb ldr r3, [r3, #92] @ 0x5c
  12080. 80057a2: f003 031f and.w r3, r3, #31
  12081. 80057a6: 2201 movs r2, #1
  12082. 80057a8: 409a lsls r2, r3
  12083. 80057aa: 68fb ldr r3, [r7, #12]
  12084. 80057ac: 605a str r2, [r3, #4]
  12085. 80057ae: e008 b.n 80057c2 <HAL_DMA_Init+0x4d6>
  12086. }
  12087. else
  12088. {
  12089. hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
  12090. 80057b0: 687b ldr r3, [r7, #4]
  12091. 80057b2: 2240 movs r2, #64 @ 0x40
  12092. 80057b4: 655a str r2, [r3, #84] @ 0x54
  12093. hdma->State = HAL_DMA_STATE_ERROR;
  12094. 80057b6: 687b ldr r3, [r7, #4]
  12095. 80057b8: 2203 movs r2, #3
  12096. 80057ba: f883 2035 strb.w r2, [r3, #53] @ 0x35
  12097. return HAL_ERROR;
  12098. 80057be: 2301 movs r3, #1
  12099. 80057c0: e0b7 b.n 8005932 <HAL_DMA_Init+0x646>
  12100. }
  12101. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  12102. 80057c2: 687b ldr r3, [r7, #4]
  12103. 80057c4: 681b ldr r3, [r3, #0]
  12104. 80057c6: 4a5f ldr r2, [pc, #380] @ (8005944 <HAL_DMA_Init+0x658>)
  12105. 80057c8: 4293 cmp r3, r2
  12106. 80057ca: d072 beq.n 80058b2 <HAL_DMA_Init+0x5c6>
  12107. 80057cc: 687b ldr r3, [r7, #4]
  12108. 80057ce: 681b ldr r3, [r3, #0]
  12109. 80057d0: 4a5d ldr r2, [pc, #372] @ (8005948 <HAL_DMA_Init+0x65c>)
  12110. 80057d2: 4293 cmp r3, r2
  12111. 80057d4: d06d beq.n 80058b2 <HAL_DMA_Init+0x5c6>
  12112. 80057d6: 687b ldr r3, [r7, #4]
  12113. 80057d8: 681b ldr r3, [r3, #0]
  12114. 80057da: 4a5c ldr r2, [pc, #368] @ (800594c <HAL_DMA_Init+0x660>)
  12115. 80057dc: 4293 cmp r3, r2
  12116. 80057de: d068 beq.n 80058b2 <HAL_DMA_Init+0x5c6>
  12117. 80057e0: 687b ldr r3, [r7, #4]
  12118. 80057e2: 681b ldr r3, [r3, #0]
  12119. 80057e4: 4a5a ldr r2, [pc, #360] @ (8005950 <HAL_DMA_Init+0x664>)
  12120. 80057e6: 4293 cmp r3, r2
  12121. 80057e8: d063 beq.n 80058b2 <HAL_DMA_Init+0x5c6>
  12122. 80057ea: 687b ldr r3, [r7, #4]
  12123. 80057ec: 681b ldr r3, [r3, #0]
  12124. 80057ee: 4a59 ldr r2, [pc, #356] @ (8005954 <HAL_DMA_Init+0x668>)
  12125. 80057f0: 4293 cmp r3, r2
  12126. 80057f2: d05e beq.n 80058b2 <HAL_DMA_Init+0x5c6>
  12127. 80057f4: 687b ldr r3, [r7, #4]
  12128. 80057f6: 681b ldr r3, [r3, #0]
  12129. 80057f8: 4a57 ldr r2, [pc, #348] @ (8005958 <HAL_DMA_Init+0x66c>)
  12130. 80057fa: 4293 cmp r3, r2
  12131. 80057fc: d059 beq.n 80058b2 <HAL_DMA_Init+0x5c6>
  12132. 80057fe: 687b ldr r3, [r7, #4]
  12133. 8005800: 681b ldr r3, [r3, #0]
  12134. 8005802: 4a56 ldr r2, [pc, #344] @ (800595c <HAL_DMA_Init+0x670>)
  12135. 8005804: 4293 cmp r3, r2
  12136. 8005806: d054 beq.n 80058b2 <HAL_DMA_Init+0x5c6>
  12137. 8005808: 687b ldr r3, [r7, #4]
  12138. 800580a: 681b ldr r3, [r3, #0]
  12139. 800580c: 4a54 ldr r2, [pc, #336] @ (8005960 <HAL_DMA_Init+0x674>)
  12140. 800580e: 4293 cmp r3, r2
  12141. 8005810: d04f beq.n 80058b2 <HAL_DMA_Init+0x5c6>
  12142. 8005812: 687b ldr r3, [r7, #4]
  12143. 8005814: 681b ldr r3, [r3, #0]
  12144. 8005816: 4a53 ldr r2, [pc, #332] @ (8005964 <HAL_DMA_Init+0x678>)
  12145. 8005818: 4293 cmp r3, r2
  12146. 800581a: d04a beq.n 80058b2 <HAL_DMA_Init+0x5c6>
  12147. 800581c: 687b ldr r3, [r7, #4]
  12148. 800581e: 681b ldr r3, [r3, #0]
  12149. 8005820: 4a51 ldr r2, [pc, #324] @ (8005968 <HAL_DMA_Init+0x67c>)
  12150. 8005822: 4293 cmp r3, r2
  12151. 8005824: d045 beq.n 80058b2 <HAL_DMA_Init+0x5c6>
  12152. 8005826: 687b ldr r3, [r7, #4]
  12153. 8005828: 681b ldr r3, [r3, #0]
  12154. 800582a: 4a50 ldr r2, [pc, #320] @ (800596c <HAL_DMA_Init+0x680>)
  12155. 800582c: 4293 cmp r3, r2
  12156. 800582e: d040 beq.n 80058b2 <HAL_DMA_Init+0x5c6>
  12157. 8005830: 687b ldr r3, [r7, #4]
  12158. 8005832: 681b ldr r3, [r3, #0]
  12159. 8005834: 4a4e ldr r2, [pc, #312] @ (8005970 <HAL_DMA_Init+0x684>)
  12160. 8005836: 4293 cmp r3, r2
  12161. 8005838: d03b beq.n 80058b2 <HAL_DMA_Init+0x5c6>
  12162. 800583a: 687b ldr r3, [r7, #4]
  12163. 800583c: 681b ldr r3, [r3, #0]
  12164. 800583e: 4a4d ldr r2, [pc, #308] @ (8005974 <HAL_DMA_Init+0x688>)
  12165. 8005840: 4293 cmp r3, r2
  12166. 8005842: d036 beq.n 80058b2 <HAL_DMA_Init+0x5c6>
  12167. 8005844: 687b ldr r3, [r7, #4]
  12168. 8005846: 681b ldr r3, [r3, #0]
  12169. 8005848: 4a4b ldr r2, [pc, #300] @ (8005978 <HAL_DMA_Init+0x68c>)
  12170. 800584a: 4293 cmp r3, r2
  12171. 800584c: d031 beq.n 80058b2 <HAL_DMA_Init+0x5c6>
  12172. 800584e: 687b ldr r3, [r7, #4]
  12173. 8005850: 681b ldr r3, [r3, #0]
  12174. 8005852: 4a4a ldr r2, [pc, #296] @ (800597c <HAL_DMA_Init+0x690>)
  12175. 8005854: 4293 cmp r3, r2
  12176. 8005856: d02c beq.n 80058b2 <HAL_DMA_Init+0x5c6>
  12177. 8005858: 687b ldr r3, [r7, #4]
  12178. 800585a: 681b ldr r3, [r3, #0]
  12179. 800585c: 4a48 ldr r2, [pc, #288] @ (8005980 <HAL_DMA_Init+0x694>)
  12180. 800585e: 4293 cmp r3, r2
  12181. 8005860: d027 beq.n 80058b2 <HAL_DMA_Init+0x5c6>
  12182. 8005862: 687b ldr r3, [r7, #4]
  12183. 8005864: 681b ldr r3, [r3, #0]
  12184. 8005866: 4a47 ldr r2, [pc, #284] @ (8005984 <HAL_DMA_Init+0x698>)
  12185. 8005868: 4293 cmp r3, r2
  12186. 800586a: d022 beq.n 80058b2 <HAL_DMA_Init+0x5c6>
  12187. 800586c: 687b ldr r3, [r7, #4]
  12188. 800586e: 681b ldr r3, [r3, #0]
  12189. 8005870: 4a45 ldr r2, [pc, #276] @ (8005988 <HAL_DMA_Init+0x69c>)
  12190. 8005872: 4293 cmp r3, r2
  12191. 8005874: d01d beq.n 80058b2 <HAL_DMA_Init+0x5c6>
  12192. 8005876: 687b ldr r3, [r7, #4]
  12193. 8005878: 681b ldr r3, [r3, #0]
  12194. 800587a: 4a44 ldr r2, [pc, #272] @ (800598c <HAL_DMA_Init+0x6a0>)
  12195. 800587c: 4293 cmp r3, r2
  12196. 800587e: d018 beq.n 80058b2 <HAL_DMA_Init+0x5c6>
  12197. 8005880: 687b ldr r3, [r7, #4]
  12198. 8005882: 681b ldr r3, [r3, #0]
  12199. 8005884: 4a42 ldr r2, [pc, #264] @ (8005990 <HAL_DMA_Init+0x6a4>)
  12200. 8005886: 4293 cmp r3, r2
  12201. 8005888: d013 beq.n 80058b2 <HAL_DMA_Init+0x5c6>
  12202. 800588a: 687b ldr r3, [r7, #4]
  12203. 800588c: 681b ldr r3, [r3, #0]
  12204. 800588e: 4a41 ldr r2, [pc, #260] @ (8005994 <HAL_DMA_Init+0x6a8>)
  12205. 8005890: 4293 cmp r3, r2
  12206. 8005892: d00e beq.n 80058b2 <HAL_DMA_Init+0x5c6>
  12207. 8005894: 687b ldr r3, [r7, #4]
  12208. 8005896: 681b ldr r3, [r3, #0]
  12209. 8005898: 4a3f ldr r2, [pc, #252] @ (8005998 <HAL_DMA_Init+0x6ac>)
  12210. 800589a: 4293 cmp r3, r2
  12211. 800589c: d009 beq.n 80058b2 <HAL_DMA_Init+0x5c6>
  12212. 800589e: 687b ldr r3, [r7, #4]
  12213. 80058a0: 681b ldr r3, [r3, #0]
  12214. 80058a2: 4a3e ldr r2, [pc, #248] @ (800599c <HAL_DMA_Init+0x6b0>)
  12215. 80058a4: 4293 cmp r3, r2
  12216. 80058a6: d004 beq.n 80058b2 <HAL_DMA_Init+0x5c6>
  12217. 80058a8: 687b ldr r3, [r7, #4]
  12218. 80058aa: 681b ldr r3, [r3, #0]
  12219. 80058ac: 4a3c ldr r2, [pc, #240] @ (80059a0 <HAL_DMA_Init+0x6b4>)
  12220. 80058ae: 4293 cmp r3, r2
  12221. 80058b0: d101 bne.n 80058b6 <HAL_DMA_Init+0x5ca>
  12222. 80058b2: 2301 movs r3, #1
  12223. 80058b4: e000 b.n 80058b8 <HAL_DMA_Init+0x5cc>
  12224. 80058b6: 2300 movs r3, #0
  12225. 80058b8: 2b00 cmp r3, #0
  12226. 80058ba: d032 beq.n 8005922 <HAL_DMA_Init+0x636>
  12227. {
  12228. /* Initialize parameters for DMAMUX channel :
  12229. DMAmuxChannel, DMAmuxChannelStatus and DMAmuxChannelStatusMask
  12230. */
  12231. DMA_CalcDMAMUXChannelBaseAndMask(hdma);
  12232. 80058bc: 6878 ldr r0, [r7, #4]
  12233. 80058be: f001 fe2d bl 800751c <DMA_CalcDMAMUXChannelBaseAndMask>
  12234. if(hdma->Init.Direction == DMA_MEMORY_TO_MEMORY)
  12235. 80058c2: 687b ldr r3, [r7, #4]
  12236. 80058c4: 689b ldr r3, [r3, #8]
  12237. 80058c6: 2b80 cmp r3, #128 @ 0x80
  12238. 80058c8: d102 bne.n 80058d0 <HAL_DMA_Init+0x5e4>
  12239. {
  12240. /* if memory to memory force the request to 0*/
  12241. hdma->Init.Request = DMA_REQUEST_MEM2MEM;
  12242. 80058ca: 687b ldr r3, [r7, #4]
  12243. 80058cc: 2200 movs r2, #0
  12244. 80058ce: 605a str r2, [r3, #4]
  12245. }
  12246. /* Set peripheral request to DMAMUX channel */
  12247. hdma->DMAmuxChannel->CCR = (hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID);
  12248. 80058d0: 687b ldr r3, [r7, #4]
  12249. 80058d2: 685a ldr r2, [r3, #4]
  12250. 80058d4: 687b ldr r3, [r7, #4]
  12251. 80058d6: 6e1b ldr r3, [r3, #96] @ 0x60
  12252. 80058d8: b2d2 uxtb r2, r2
  12253. 80058da: 601a str r2, [r3, #0]
  12254. /* Clear the DMAMUX synchro overrun flag */
  12255. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  12256. 80058dc: 687b ldr r3, [r7, #4]
  12257. 80058de: 6e5b ldr r3, [r3, #100] @ 0x64
  12258. 80058e0: 687a ldr r2, [r7, #4]
  12259. 80058e2: 6e92 ldr r2, [r2, #104] @ 0x68
  12260. 80058e4: 605a str r2, [r3, #4]
  12261. /* Initialize parameters for DMAMUX request generator :
  12262. if the DMA request is DMA_REQUEST_GENERATOR0 to DMA_REQUEST_GENERATOR7
  12263. */
  12264. if((hdma->Init.Request >= DMA_REQUEST_GENERATOR0) && (hdma->Init.Request <= DMA_REQUEST_GENERATOR7))
  12265. 80058e6: 687b ldr r3, [r7, #4]
  12266. 80058e8: 685b ldr r3, [r3, #4]
  12267. 80058ea: 2b00 cmp r3, #0
  12268. 80058ec: d010 beq.n 8005910 <HAL_DMA_Init+0x624>
  12269. 80058ee: 687b ldr r3, [r7, #4]
  12270. 80058f0: 685b ldr r3, [r3, #4]
  12271. 80058f2: 2b08 cmp r3, #8
  12272. 80058f4: d80c bhi.n 8005910 <HAL_DMA_Init+0x624>
  12273. {
  12274. /* Initialize parameters for DMAMUX request generator :
  12275. DMAmuxRequestGen, DMAmuxRequestGenStatus and DMAmuxRequestGenStatusMask */
  12276. DMA_CalcDMAMUXRequestGenBaseAndMask(hdma);
  12277. 80058f6: 6878 ldr r0, [r7, #4]
  12278. 80058f8: f001 feaa bl 8007650 <DMA_CalcDMAMUXRequestGenBaseAndMask>
  12279. /* Reset the DMAMUX request generator register */
  12280. hdma->DMAmuxRequestGen->RGCR = 0U;
  12281. 80058fc: 687b ldr r3, [r7, #4]
  12282. 80058fe: 6edb ldr r3, [r3, #108] @ 0x6c
  12283. 8005900: 2200 movs r2, #0
  12284. 8005902: 601a str r2, [r3, #0]
  12285. /* Clear the DMAMUX request generator overrun flag */
  12286. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  12287. 8005904: 687b ldr r3, [r7, #4]
  12288. 8005906: 6f1b ldr r3, [r3, #112] @ 0x70
  12289. 8005908: 687a ldr r2, [r7, #4]
  12290. 800590a: 6f52 ldr r2, [r2, #116] @ 0x74
  12291. 800590c: 605a str r2, [r3, #4]
  12292. 800590e: e008 b.n 8005922 <HAL_DMA_Init+0x636>
  12293. }
  12294. else
  12295. {
  12296. hdma->DMAmuxRequestGen = 0U;
  12297. 8005910: 687b ldr r3, [r7, #4]
  12298. 8005912: 2200 movs r2, #0
  12299. 8005914: 66da str r2, [r3, #108] @ 0x6c
  12300. hdma->DMAmuxRequestGenStatus = 0U;
  12301. 8005916: 687b ldr r3, [r7, #4]
  12302. 8005918: 2200 movs r2, #0
  12303. 800591a: 671a str r2, [r3, #112] @ 0x70
  12304. hdma->DMAmuxRequestGenStatusMask = 0U;
  12305. 800591c: 687b ldr r3, [r7, #4]
  12306. 800591e: 2200 movs r2, #0
  12307. 8005920: 675a str r2, [r3, #116] @ 0x74
  12308. }
  12309. }
  12310. /* Initialize the error code */
  12311. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  12312. 8005922: 687b ldr r3, [r7, #4]
  12313. 8005924: 2200 movs r2, #0
  12314. 8005926: 655a str r2, [r3, #84] @ 0x54
  12315. /* Initialize the DMA state */
  12316. hdma->State = HAL_DMA_STATE_READY;
  12317. 8005928: 687b ldr r3, [r7, #4]
  12318. 800592a: 2201 movs r2, #1
  12319. 800592c: f883 2035 strb.w r2, [r3, #53] @ 0x35
  12320. return HAL_OK;
  12321. 8005930: 2300 movs r3, #0
  12322. }
  12323. 8005932: 4618 mov r0, r3
  12324. 8005934: 3718 adds r7, #24
  12325. 8005936: 46bd mov sp, r7
  12326. 8005938: bd80 pop {r7, pc}
  12327. 800593a: bf00 nop
  12328. 800593c: a7fdabf8 .word 0xa7fdabf8
  12329. 8005940: cccccccd .word 0xcccccccd
  12330. 8005944: 40020010 .word 0x40020010
  12331. 8005948: 40020028 .word 0x40020028
  12332. 800594c: 40020040 .word 0x40020040
  12333. 8005950: 40020058 .word 0x40020058
  12334. 8005954: 40020070 .word 0x40020070
  12335. 8005958: 40020088 .word 0x40020088
  12336. 800595c: 400200a0 .word 0x400200a0
  12337. 8005960: 400200b8 .word 0x400200b8
  12338. 8005964: 40020410 .word 0x40020410
  12339. 8005968: 40020428 .word 0x40020428
  12340. 800596c: 40020440 .word 0x40020440
  12341. 8005970: 40020458 .word 0x40020458
  12342. 8005974: 40020470 .word 0x40020470
  12343. 8005978: 40020488 .word 0x40020488
  12344. 800597c: 400204a0 .word 0x400204a0
  12345. 8005980: 400204b8 .word 0x400204b8
  12346. 8005984: 58025408 .word 0x58025408
  12347. 8005988: 5802541c .word 0x5802541c
  12348. 800598c: 58025430 .word 0x58025430
  12349. 8005990: 58025444 .word 0x58025444
  12350. 8005994: 58025458 .word 0x58025458
  12351. 8005998: 5802546c .word 0x5802546c
  12352. 800599c: 58025480 .word 0x58025480
  12353. 80059a0: 58025494 .word 0x58025494
  12354. 080059a4 <HAL_DMA_Abort>:
  12355. * and the Stream will be effectively disabled only after the transfer of
  12356. * this single data is finished.
  12357. * @retval HAL status
  12358. */
  12359. HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma)
  12360. {
  12361. 80059a4: b580 push {r7, lr}
  12362. 80059a6: b086 sub sp, #24
  12363. 80059a8: af00 add r7, sp, #0
  12364. 80059aa: 6078 str r0, [r7, #4]
  12365. /* calculate DMA base and stream number */
  12366. DMA_Base_Registers *regs_dma;
  12367. BDMA_Base_Registers *regs_bdma;
  12368. const __IO uint32_t *enableRegister;
  12369. uint32_t tickstart = HAL_GetTick();
  12370. 80059ac: f7ff f8f0 bl 8004b90 <HAL_GetTick>
  12371. 80059b0: 6138 str r0, [r7, #16]
  12372. /* Check the DMA peripheral handle */
  12373. if(hdma == NULL)
  12374. 80059b2: 687b ldr r3, [r7, #4]
  12375. 80059b4: 2b00 cmp r3, #0
  12376. 80059b6: d101 bne.n 80059bc <HAL_DMA_Abort+0x18>
  12377. {
  12378. return HAL_ERROR;
  12379. 80059b8: 2301 movs r3, #1
  12380. 80059ba: e2dc b.n 8005f76 <HAL_DMA_Abort+0x5d2>
  12381. }
  12382. /* Check the DMA peripheral state */
  12383. if(hdma->State != HAL_DMA_STATE_BUSY)
  12384. 80059bc: 687b ldr r3, [r7, #4]
  12385. 80059be: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  12386. 80059c2: b2db uxtb r3, r3
  12387. 80059c4: 2b02 cmp r3, #2
  12388. 80059c6: d008 beq.n 80059da <HAL_DMA_Abort+0x36>
  12389. {
  12390. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  12391. 80059c8: 687b ldr r3, [r7, #4]
  12392. 80059ca: 2280 movs r2, #128 @ 0x80
  12393. 80059cc: 655a str r2, [r3, #84] @ 0x54
  12394. /* Process Unlocked */
  12395. __HAL_UNLOCK(hdma);
  12396. 80059ce: 687b ldr r3, [r7, #4]
  12397. 80059d0: 2200 movs r2, #0
  12398. 80059d2: f883 2034 strb.w r2, [r3, #52] @ 0x34
  12399. return HAL_ERROR;
  12400. 80059d6: 2301 movs r3, #1
  12401. 80059d8: e2cd b.n 8005f76 <HAL_DMA_Abort+0x5d2>
  12402. }
  12403. else
  12404. {
  12405. /* Disable all the transfer interrupts */
  12406. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  12407. 80059da: 687b ldr r3, [r7, #4]
  12408. 80059dc: 681b ldr r3, [r3, #0]
  12409. 80059de: 4a76 ldr r2, [pc, #472] @ (8005bb8 <HAL_DMA_Abort+0x214>)
  12410. 80059e0: 4293 cmp r3, r2
  12411. 80059e2: d04a beq.n 8005a7a <HAL_DMA_Abort+0xd6>
  12412. 80059e4: 687b ldr r3, [r7, #4]
  12413. 80059e6: 681b ldr r3, [r3, #0]
  12414. 80059e8: 4a74 ldr r2, [pc, #464] @ (8005bbc <HAL_DMA_Abort+0x218>)
  12415. 80059ea: 4293 cmp r3, r2
  12416. 80059ec: d045 beq.n 8005a7a <HAL_DMA_Abort+0xd6>
  12417. 80059ee: 687b ldr r3, [r7, #4]
  12418. 80059f0: 681b ldr r3, [r3, #0]
  12419. 80059f2: 4a73 ldr r2, [pc, #460] @ (8005bc0 <HAL_DMA_Abort+0x21c>)
  12420. 80059f4: 4293 cmp r3, r2
  12421. 80059f6: d040 beq.n 8005a7a <HAL_DMA_Abort+0xd6>
  12422. 80059f8: 687b ldr r3, [r7, #4]
  12423. 80059fa: 681b ldr r3, [r3, #0]
  12424. 80059fc: 4a71 ldr r2, [pc, #452] @ (8005bc4 <HAL_DMA_Abort+0x220>)
  12425. 80059fe: 4293 cmp r3, r2
  12426. 8005a00: d03b beq.n 8005a7a <HAL_DMA_Abort+0xd6>
  12427. 8005a02: 687b ldr r3, [r7, #4]
  12428. 8005a04: 681b ldr r3, [r3, #0]
  12429. 8005a06: 4a70 ldr r2, [pc, #448] @ (8005bc8 <HAL_DMA_Abort+0x224>)
  12430. 8005a08: 4293 cmp r3, r2
  12431. 8005a0a: d036 beq.n 8005a7a <HAL_DMA_Abort+0xd6>
  12432. 8005a0c: 687b ldr r3, [r7, #4]
  12433. 8005a0e: 681b ldr r3, [r3, #0]
  12434. 8005a10: 4a6e ldr r2, [pc, #440] @ (8005bcc <HAL_DMA_Abort+0x228>)
  12435. 8005a12: 4293 cmp r3, r2
  12436. 8005a14: d031 beq.n 8005a7a <HAL_DMA_Abort+0xd6>
  12437. 8005a16: 687b ldr r3, [r7, #4]
  12438. 8005a18: 681b ldr r3, [r3, #0]
  12439. 8005a1a: 4a6d ldr r2, [pc, #436] @ (8005bd0 <HAL_DMA_Abort+0x22c>)
  12440. 8005a1c: 4293 cmp r3, r2
  12441. 8005a1e: d02c beq.n 8005a7a <HAL_DMA_Abort+0xd6>
  12442. 8005a20: 687b ldr r3, [r7, #4]
  12443. 8005a22: 681b ldr r3, [r3, #0]
  12444. 8005a24: 4a6b ldr r2, [pc, #428] @ (8005bd4 <HAL_DMA_Abort+0x230>)
  12445. 8005a26: 4293 cmp r3, r2
  12446. 8005a28: d027 beq.n 8005a7a <HAL_DMA_Abort+0xd6>
  12447. 8005a2a: 687b ldr r3, [r7, #4]
  12448. 8005a2c: 681b ldr r3, [r3, #0]
  12449. 8005a2e: 4a6a ldr r2, [pc, #424] @ (8005bd8 <HAL_DMA_Abort+0x234>)
  12450. 8005a30: 4293 cmp r3, r2
  12451. 8005a32: d022 beq.n 8005a7a <HAL_DMA_Abort+0xd6>
  12452. 8005a34: 687b ldr r3, [r7, #4]
  12453. 8005a36: 681b ldr r3, [r3, #0]
  12454. 8005a38: 4a68 ldr r2, [pc, #416] @ (8005bdc <HAL_DMA_Abort+0x238>)
  12455. 8005a3a: 4293 cmp r3, r2
  12456. 8005a3c: d01d beq.n 8005a7a <HAL_DMA_Abort+0xd6>
  12457. 8005a3e: 687b ldr r3, [r7, #4]
  12458. 8005a40: 681b ldr r3, [r3, #0]
  12459. 8005a42: 4a67 ldr r2, [pc, #412] @ (8005be0 <HAL_DMA_Abort+0x23c>)
  12460. 8005a44: 4293 cmp r3, r2
  12461. 8005a46: d018 beq.n 8005a7a <HAL_DMA_Abort+0xd6>
  12462. 8005a48: 687b ldr r3, [r7, #4]
  12463. 8005a4a: 681b ldr r3, [r3, #0]
  12464. 8005a4c: 4a65 ldr r2, [pc, #404] @ (8005be4 <HAL_DMA_Abort+0x240>)
  12465. 8005a4e: 4293 cmp r3, r2
  12466. 8005a50: d013 beq.n 8005a7a <HAL_DMA_Abort+0xd6>
  12467. 8005a52: 687b ldr r3, [r7, #4]
  12468. 8005a54: 681b ldr r3, [r3, #0]
  12469. 8005a56: 4a64 ldr r2, [pc, #400] @ (8005be8 <HAL_DMA_Abort+0x244>)
  12470. 8005a58: 4293 cmp r3, r2
  12471. 8005a5a: d00e beq.n 8005a7a <HAL_DMA_Abort+0xd6>
  12472. 8005a5c: 687b ldr r3, [r7, #4]
  12473. 8005a5e: 681b ldr r3, [r3, #0]
  12474. 8005a60: 4a62 ldr r2, [pc, #392] @ (8005bec <HAL_DMA_Abort+0x248>)
  12475. 8005a62: 4293 cmp r3, r2
  12476. 8005a64: d009 beq.n 8005a7a <HAL_DMA_Abort+0xd6>
  12477. 8005a66: 687b ldr r3, [r7, #4]
  12478. 8005a68: 681b ldr r3, [r3, #0]
  12479. 8005a6a: 4a61 ldr r2, [pc, #388] @ (8005bf0 <HAL_DMA_Abort+0x24c>)
  12480. 8005a6c: 4293 cmp r3, r2
  12481. 8005a6e: d004 beq.n 8005a7a <HAL_DMA_Abort+0xd6>
  12482. 8005a70: 687b ldr r3, [r7, #4]
  12483. 8005a72: 681b ldr r3, [r3, #0]
  12484. 8005a74: 4a5f ldr r2, [pc, #380] @ (8005bf4 <HAL_DMA_Abort+0x250>)
  12485. 8005a76: 4293 cmp r3, r2
  12486. 8005a78: d101 bne.n 8005a7e <HAL_DMA_Abort+0xda>
  12487. 8005a7a: 2301 movs r3, #1
  12488. 8005a7c: e000 b.n 8005a80 <HAL_DMA_Abort+0xdc>
  12489. 8005a7e: 2300 movs r3, #0
  12490. 8005a80: 2b00 cmp r3, #0
  12491. 8005a82: d013 beq.n 8005aac <HAL_DMA_Abort+0x108>
  12492. {
  12493. /* Disable DMA All Interrupts */
  12494. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME | DMA_IT_HT);
  12495. 8005a84: 687b ldr r3, [r7, #4]
  12496. 8005a86: 681b ldr r3, [r3, #0]
  12497. 8005a88: 681a ldr r2, [r3, #0]
  12498. 8005a8a: 687b ldr r3, [r7, #4]
  12499. 8005a8c: 681b ldr r3, [r3, #0]
  12500. 8005a8e: f022 021e bic.w r2, r2, #30
  12501. 8005a92: 601a str r2, [r3, #0]
  12502. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE);
  12503. 8005a94: 687b ldr r3, [r7, #4]
  12504. 8005a96: 681b ldr r3, [r3, #0]
  12505. 8005a98: 695a ldr r2, [r3, #20]
  12506. 8005a9a: 687b ldr r3, [r7, #4]
  12507. 8005a9c: 681b ldr r3, [r3, #0]
  12508. 8005a9e: f022 0280 bic.w r2, r2, #128 @ 0x80
  12509. 8005aa2: 615a str r2, [r3, #20]
  12510. enableRegister = (__IO uint32_t *)(&(((DMA_Stream_TypeDef *)hdma->Instance)->CR));
  12511. 8005aa4: 687b ldr r3, [r7, #4]
  12512. 8005aa6: 681b ldr r3, [r3, #0]
  12513. 8005aa8: 617b str r3, [r7, #20]
  12514. 8005aaa: e00a b.n 8005ac2 <HAL_DMA_Abort+0x11e>
  12515. }
  12516. else /* BDMA channel */
  12517. {
  12518. /* Disable DMA All Interrupts */
  12519. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE);
  12520. 8005aac: 687b ldr r3, [r7, #4]
  12521. 8005aae: 681b ldr r3, [r3, #0]
  12522. 8005ab0: 681a ldr r2, [r3, #0]
  12523. 8005ab2: 687b ldr r3, [r7, #4]
  12524. 8005ab4: 681b ldr r3, [r3, #0]
  12525. 8005ab6: f022 020e bic.w r2, r2, #14
  12526. 8005aba: 601a str r2, [r3, #0]
  12527. enableRegister = (__IO uint32_t *)(&(((BDMA_Channel_TypeDef *)hdma->Instance)->CCR));
  12528. 8005abc: 687b ldr r3, [r7, #4]
  12529. 8005abe: 681b ldr r3, [r3, #0]
  12530. 8005ac0: 617b str r3, [r7, #20]
  12531. }
  12532. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  12533. 8005ac2: 687b ldr r3, [r7, #4]
  12534. 8005ac4: 681b ldr r3, [r3, #0]
  12535. 8005ac6: 4a3c ldr r2, [pc, #240] @ (8005bb8 <HAL_DMA_Abort+0x214>)
  12536. 8005ac8: 4293 cmp r3, r2
  12537. 8005aca: d072 beq.n 8005bb2 <HAL_DMA_Abort+0x20e>
  12538. 8005acc: 687b ldr r3, [r7, #4]
  12539. 8005ace: 681b ldr r3, [r3, #0]
  12540. 8005ad0: 4a3a ldr r2, [pc, #232] @ (8005bbc <HAL_DMA_Abort+0x218>)
  12541. 8005ad2: 4293 cmp r3, r2
  12542. 8005ad4: d06d beq.n 8005bb2 <HAL_DMA_Abort+0x20e>
  12543. 8005ad6: 687b ldr r3, [r7, #4]
  12544. 8005ad8: 681b ldr r3, [r3, #0]
  12545. 8005ada: 4a39 ldr r2, [pc, #228] @ (8005bc0 <HAL_DMA_Abort+0x21c>)
  12546. 8005adc: 4293 cmp r3, r2
  12547. 8005ade: d068 beq.n 8005bb2 <HAL_DMA_Abort+0x20e>
  12548. 8005ae0: 687b ldr r3, [r7, #4]
  12549. 8005ae2: 681b ldr r3, [r3, #0]
  12550. 8005ae4: 4a37 ldr r2, [pc, #220] @ (8005bc4 <HAL_DMA_Abort+0x220>)
  12551. 8005ae6: 4293 cmp r3, r2
  12552. 8005ae8: d063 beq.n 8005bb2 <HAL_DMA_Abort+0x20e>
  12553. 8005aea: 687b ldr r3, [r7, #4]
  12554. 8005aec: 681b ldr r3, [r3, #0]
  12555. 8005aee: 4a36 ldr r2, [pc, #216] @ (8005bc8 <HAL_DMA_Abort+0x224>)
  12556. 8005af0: 4293 cmp r3, r2
  12557. 8005af2: d05e beq.n 8005bb2 <HAL_DMA_Abort+0x20e>
  12558. 8005af4: 687b ldr r3, [r7, #4]
  12559. 8005af6: 681b ldr r3, [r3, #0]
  12560. 8005af8: 4a34 ldr r2, [pc, #208] @ (8005bcc <HAL_DMA_Abort+0x228>)
  12561. 8005afa: 4293 cmp r3, r2
  12562. 8005afc: d059 beq.n 8005bb2 <HAL_DMA_Abort+0x20e>
  12563. 8005afe: 687b ldr r3, [r7, #4]
  12564. 8005b00: 681b ldr r3, [r3, #0]
  12565. 8005b02: 4a33 ldr r2, [pc, #204] @ (8005bd0 <HAL_DMA_Abort+0x22c>)
  12566. 8005b04: 4293 cmp r3, r2
  12567. 8005b06: d054 beq.n 8005bb2 <HAL_DMA_Abort+0x20e>
  12568. 8005b08: 687b ldr r3, [r7, #4]
  12569. 8005b0a: 681b ldr r3, [r3, #0]
  12570. 8005b0c: 4a31 ldr r2, [pc, #196] @ (8005bd4 <HAL_DMA_Abort+0x230>)
  12571. 8005b0e: 4293 cmp r3, r2
  12572. 8005b10: d04f beq.n 8005bb2 <HAL_DMA_Abort+0x20e>
  12573. 8005b12: 687b ldr r3, [r7, #4]
  12574. 8005b14: 681b ldr r3, [r3, #0]
  12575. 8005b16: 4a30 ldr r2, [pc, #192] @ (8005bd8 <HAL_DMA_Abort+0x234>)
  12576. 8005b18: 4293 cmp r3, r2
  12577. 8005b1a: d04a beq.n 8005bb2 <HAL_DMA_Abort+0x20e>
  12578. 8005b1c: 687b ldr r3, [r7, #4]
  12579. 8005b1e: 681b ldr r3, [r3, #0]
  12580. 8005b20: 4a2e ldr r2, [pc, #184] @ (8005bdc <HAL_DMA_Abort+0x238>)
  12581. 8005b22: 4293 cmp r3, r2
  12582. 8005b24: d045 beq.n 8005bb2 <HAL_DMA_Abort+0x20e>
  12583. 8005b26: 687b ldr r3, [r7, #4]
  12584. 8005b28: 681b ldr r3, [r3, #0]
  12585. 8005b2a: 4a2d ldr r2, [pc, #180] @ (8005be0 <HAL_DMA_Abort+0x23c>)
  12586. 8005b2c: 4293 cmp r3, r2
  12587. 8005b2e: d040 beq.n 8005bb2 <HAL_DMA_Abort+0x20e>
  12588. 8005b30: 687b ldr r3, [r7, #4]
  12589. 8005b32: 681b ldr r3, [r3, #0]
  12590. 8005b34: 4a2b ldr r2, [pc, #172] @ (8005be4 <HAL_DMA_Abort+0x240>)
  12591. 8005b36: 4293 cmp r3, r2
  12592. 8005b38: d03b beq.n 8005bb2 <HAL_DMA_Abort+0x20e>
  12593. 8005b3a: 687b ldr r3, [r7, #4]
  12594. 8005b3c: 681b ldr r3, [r3, #0]
  12595. 8005b3e: 4a2a ldr r2, [pc, #168] @ (8005be8 <HAL_DMA_Abort+0x244>)
  12596. 8005b40: 4293 cmp r3, r2
  12597. 8005b42: d036 beq.n 8005bb2 <HAL_DMA_Abort+0x20e>
  12598. 8005b44: 687b ldr r3, [r7, #4]
  12599. 8005b46: 681b ldr r3, [r3, #0]
  12600. 8005b48: 4a28 ldr r2, [pc, #160] @ (8005bec <HAL_DMA_Abort+0x248>)
  12601. 8005b4a: 4293 cmp r3, r2
  12602. 8005b4c: d031 beq.n 8005bb2 <HAL_DMA_Abort+0x20e>
  12603. 8005b4e: 687b ldr r3, [r7, #4]
  12604. 8005b50: 681b ldr r3, [r3, #0]
  12605. 8005b52: 4a27 ldr r2, [pc, #156] @ (8005bf0 <HAL_DMA_Abort+0x24c>)
  12606. 8005b54: 4293 cmp r3, r2
  12607. 8005b56: d02c beq.n 8005bb2 <HAL_DMA_Abort+0x20e>
  12608. 8005b58: 687b ldr r3, [r7, #4]
  12609. 8005b5a: 681b ldr r3, [r3, #0]
  12610. 8005b5c: 4a25 ldr r2, [pc, #148] @ (8005bf4 <HAL_DMA_Abort+0x250>)
  12611. 8005b5e: 4293 cmp r3, r2
  12612. 8005b60: d027 beq.n 8005bb2 <HAL_DMA_Abort+0x20e>
  12613. 8005b62: 687b ldr r3, [r7, #4]
  12614. 8005b64: 681b ldr r3, [r3, #0]
  12615. 8005b66: 4a24 ldr r2, [pc, #144] @ (8005bf8 <HAL_DMA_Abort+0x254>)
  12616. 8005b68: 4293 cmp r3, r2
  12617. 8005b6a: d022 beq.n 8005bb2 <HAL_DMA_Abort+0x20e>
  12618. 8005b6c: 687b ldr r3, [r7, #4]
  12619. 8005b6e: 681b ldr r3, [r3, #0]
  12620. 8005b70: 4a22 ldr r2, [pc, #136] @ (8005bfc <HAL_DMA_Abort+0x258>)
  12621. 8005b72: 4293 cmp r3, r2
  12622. 8005b74: d01d beq.n 8005bb2 <HAL_DMA_Abort+0x20e>
  12623. 8005b76: 687b ldr r3, [r7, #4]
  12624. 8005b78: 681b ldr r3, [r3, #0]
  12625. 8005b7a: 4a21 ldr r2, [pc, #132] @ (8005c00 <HAL_DMA_Abort+0x25c>)
  12626. 8005b7c: 4293 cmp r3, r2
  12627. 8005b7e: d018 beq.n 8005bb2 <HAL_DMA_Abort+0x20e>
  12628. 8005b80: 687b ldr r3, [r7, #4]
  12629. 8005b82: 681b ldr r3, [r3, #0]
  12630. 8005b84: 4a1f ldr r2, [pc, #124] @ (8005c04 <HAL_DMA_Abort+0x260>)
  12631. 8005b86: 4293 cmp r3, r2
  12632. 8005b88: d013 beq.n 8005bb2 <HAL_DMA_Abort+0x20e>
  12633. 8005b8a: 687b ldr r3, [r7, #4]
  12634. 8005b8c: 681b ldr r3, [r3, #0]
  12635. 8005b8e: 4a1e ldr r2, [pc, #120] @ (8005c08 <HAL_DMA_Abort+0x264>)
  12636. 8005b90: 4293 cmp r3, r2
  12637. 8005b92: d00e beq.n 8005bb2 <HAL_DMA_Abort+0x20e>
  12638. 8005b94: 687b ldr r3, [r7, #4]
  12639. 8005b96: 681b ldr r3, [r3, #0]
  12640. 8005b98: 4a1c ldr r2, [pc, #112] @ (8005c0c <HAL_DMA_Abort+0x268>)
  12641. 8005b9a: 4293 cmp r3, r2
  12642. 8005b9c: d009 beq.n 8005bb2 <HAL_DMA_Abort+0x20e>
  12643. 8005b9e: 687b ldr r3, [r7, #4]
  12644. 8005ba0: 681b ldr r3, [r3, #0]
  12645. 8005ba2: 4a1b ldr r2, [pc, #108] @ (8005c10 <HAL_DMA_Abort+0x26c>)
  12646. 8005ba4: 4293 cmp r3, r2
  12647. 8005ba6: d004 beq.n 8005bb2 <HAL_DMA_Abort+0x20e>
  12648. 8005ba8: 687b ldr r3, [r7, #4]
  12649. 8005baa: 681b ldr r3, [r3, #0]
  12650. 8005bac: 4a19 ldr r2, [pc, #100] @ (8005c14 <HAL_DMA_Abort+0x270>)
  12651. 8005bae: 4293 cmp r3, r2
  12652. 8005bb0: d132 bne.n 8005c18 <HAL_DMA_Abort+0x274>
  12653. 8005bb2: 2301 movs r3, #1
  12654. 8005bb4: e031 b.n 8005c1a <HAL_DMA_Abort+0x276>
  12655. 8005bb6: bf00 nop
  12656. 8005bb8: 40020010 .word 0x40020010
  12657. 8005bbc: 40020028 .word 0x40020028
  12658. 8005bc0: 40020040 .word 0x40020040
  12659. 8005bc4: 40020058 .word 0x40020058
  12660. 8005bc8: 40020070 .word 0x40020070
  12661. 8005bcc: 40020088 .word 0x40020088
  12662. 8005bd0: 400200a0 .word 0x400200a0
  12663. 8005bd4: 400200b8 .word 0x400200b8
  12664. 8005bd8: 40020410 .word 0x40020410
  12665. 8005bdc: 40020428 .word 0x40020428
  12666. 8005be0: 40020440 .word 0x40020440
  12667. 8005be4: 40020458 .word 0x40020458
  12668. 8005be8: 40020470 .word 0x40020470
  12669. 8005bec: 40020488 .word 0x40020488
  12670. 8005bf0: 400204a0 .word 0x400204a0
  12671. 8005bf4: 400204b8 .word 0x400204b8
  12672. 8005bf8: 58025408 .word 0x58025408
  12673. 8005bfc: 5802541c .word 0x5802541c
  12674. 8005c00: 58025430 .word 0x58025430
  12675. 8005c04: 58025444 .word 0x58025444
  12676. 8005c08: 58025458 .word 0x58025458
  12677. 8005c0c: 5802546c .word 0x5802546c
  12678. 8005c10: 58025480 .word 0x58025480
  12679. 8005c14: 58025494 .word 0x58025494
  12680. 8005c18: 2300 movs r3, #0
  12681. 8005c1a: 2b00 cmp r3, #0
  12682. 8005c1c: d007 beq.n 8005c2e <HAL_DMA_Abort+0x28a>
  12683. {
  12684. /* disable the DMAMUX sync overrun IT */
  12685. hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE;
  12686. 8005c1e: 687b ldr r3, [r7, #4]
  12687. 8005c20: 6e1b ldr r3, [r3, #96] @ 0x60
  12688. 8005c22: 681a ldr r2, [r3, #0]
  12689. 8005c24: 687b ldr r3, [r7, #4]
  12690. 8005c26: 6e1b ldr r3, [r3, #96] @ 0x60
  12691. 8005c28: f422 7280 bic.w r2, r2, #256 @ 0x100
  12692. 8005c2c: 601a str r2, [r3, #0]
  12693. }
  12694. /* Disable the stream */
  12695. __HAL_DMA_DISABLE(hdma);
  12696. 8005c2e: 687b ldr r3, [r7, #4]
  12697. 8005c30: 681b ldr r3, [r3, #0]
  12698. 8005c32: 4a6d ldr r2, [pc, #436] @ (8005de8 <HAL_DMA_Abort+0x444>)
  12699. 8005c34: 4293 cmp r3, r2
  12700. 8005c36: d04a beq.n 8005cce <HAL_DMA_Abort+0x32a>
  12701. 8005c38: 687b ldr r3, [r7, #4]
  12702. 8005c3a: 681b ldr r3, [r3, #0]
  12703. 8005c3c: 4a6b ldr r2, [pc, #428] @ (8005dec <HAL_DMA_Abort+0x448>)
  12704. 8005c3e: 4293 cmp r3, r2
  12705. 8005c40: d045 beq.n 8005cce <HAL_DMA_Abort+0x32a>
  12706. 8005c42: 687b ldr r3, [r7, #4]
  12707. 8005c44: 681b ldr r3, [r3, #0]
  12708. 8005c46: 4a6a ldr r2, [pc, #424] @ (8005df0 <HAL_DMA_Abort+0x44c>)
  12709. 8005c48: 4293 cmp r3, r2
  12710. 8005c4a: d040 beq.n 8005cce <HAL_DMA_Abort+0x32a>
  12711. 8005c4c: 687b ldr r3, [r7, #4]
  12712. 8005c4e: 681b ldr r3, [r3, #0]
  12713. 8005c50: 4a68 ldr r2, [pc, #416] @ (8005df4 <HAL_DMA_Abort+0x450>)
  12714. 8005c52: 4293 cmp r3, r2
  12715. 8005c54: d03b beq.n 8005cce <HAL_DMA_Abort+0x32a>
  12716. 8005c56: 687b ldr r3, [r7, #4]
  12717. 8005c58: 681b ldr r3, [r3, #0]
  12718. 8005c5a: 4a67 ldr r2, [pc, #412] @ (8005df8 <HAL_DMA_Abort+0x454>)
  12719. 8005c5c: 4293 cmp r3, r2
  12720. 8005c5e: d036 beq.n 8005cce <HAL_DMA_Abort+0x32a>
  12721. 8005c60: 687b ldr r3, [r7, #4]
  12722. 8005c62: 681b ldr r3, [r3, #0]
  12723. 8005c64: 4a65 ldr r2, [pc, #404] @ (8005dfc <HAL_DMA_Abort+0x458>)
  12724. 8005c66: 4293 cmp r3, r2
  12725. 8005c68: d031 beq.n 8005cce <HAL_DMA_Abort+0x32a>
  12726. 8005c6a: 687b ldr r3, [r7, #4]
  12727. 8005c6c: 681b ldr r3, [r3, #0]
  12728. 8005c6e: 4a64 ldr r2, [pc, #400] @ (8005e00 <HAL_DMA_Abort+0x45c>)
  12729. 8005c70: 4293 cmp r3, r2
  12730. 8005c72: d02c beq.n 8005cce <HAL_DMA_Abort+0x32a>
  12731. 8005c74: 687b ldr r3, [r7, #4]
  12732. 8005c76: 681b ldr r3, [r3, #0]
  12733. 8005c78: 4a62 ldr r2, [pc, #392] @ (8005e04 <HAL_DMA_Abort+0x460>)
  12734. 8005c7a: 4293 cmp r3, r2
  12735. 8005c7c: d027 beq.n 8005cce <HAL_DMA_Abort+0x32a>
  12736. 8005c7e: 687b ldr r3, [r7, #4]
  12737. 8005c80: 681b ldr r3, [r3, #0]
  12738. 8005c82: 4a61 ldr r2, [pc, #388] @ (8005e08 <HAL_DMA_Abort+0x464>)
  12739. 8005c84: 4293 cmp r3, r2
  12740. 8005c86: d022 beq.n 8005cce <HAL_DMA_Abort+0x32a>
  12741. 8005c88: 687b ldr r3, [r7, #4]
  12742. 8005c8a: 681b ldr r3, [r3, #0]
  12743. 8005c8c: 4a5f ldr r2, [pc, #380] @ (8005e0c <HAL_DMA_Abort+0x468>)
  12744. 8005c8e: 4293 cmp r3, r2
  12745. 8005c90: d01d beq.n 8005cce <HAL_DMA_Abort+0x32a>
  12746. 8005c92: 687b ldr r3, [r7, #4]
  12747. 8005c94: 681b ldr r3, [r3, #0]
  12748. 8005c96: 4a5e ldr r2, [pc, #376] @ (8005e10 <HAL_DMA_Abort+0x46c>)
  12749. 8005c98: 4293 cmp r3, r2
  12750. 8005c9a: d018 beq.n 8005cce <HAL_DMA_Abort+0x32a>
  12751. 8005c9c: 687b ldr r3, [r7, #4]
  12752. 8005c9e: 681b ldr r3, [r3, #0]
  12753. 8005ca0: 4a5c ldr r2, [pc, #368] @ (8005e14 <HAL_DMA_Abort+0x470>)
  12754. 8005ca2: 4293 cmp r3, r2
  12755. 8005ca4: d013 beq.n 8005cce <HAL_DMA_Abort+0x32a>
  12756. 8005ca6: 687b ldr r3, [r7, #4]
  12757. 8005ca8: 681b ldr r3, [r3, #0]
  12758. 8005caa: 4a5b ldr r2, [pc, #364] @ (8005e18 <HAL_DMA_Abort+0x474>)
  12759. 8005cac: 4293 cmp r3, r2
  12760. 8005cae: d00e beq.n 8005cce <HAL_DMA_Abort+0x32a>
  12761. 8005cb0: 687b ldr r3, [r7, #4]
  12762. 8005cb2: 681b ldr r3, [r3, #0]
  12763. 8005cb4: 4a59 ldr r2, [pc, #356] @ (8005e1c <HAL_DMA_Abort+0x478>)
  12764. 8005cb6: 4293 cmp r3, r2
  12765. 8005cb8: d009 beq.n 8005cce <HAL_DMA_Abort+0x32a>
  12766. 8005cba: 687b ldr r3, [r7, #4]
  12767. 8005cbc: 681b ldr r3, [r3, #0]
  12768. 8005cbe: 4a58 ldr r2, [pc, #352] @ (8005e20 <HAL_DMA_Abort+0x47c>)
  12769. 8005cc0: 4293 cmp r3, r2
  12770. 8005cc2: d004 beq.n 8005cce <HAL_DMA_Abort+0x32a>
  12771. 8005cc4: 687b ldr r3, [r7, #4]
  12772. 8005cc6: 681b ldr r3, [r3, #0]
  12773. 8005cc8: 4a56 ldr r2, [pc, #344] @ (8005e24 <HAL_DMA_Abort+0x480>)
  12774. 8005cca: 4293 cmp r3, r2
  12775. 8005ccc: d108 bne.n 8005ce0 <HAL_DMA_Abort+0x33c>
  12776. 8005cce: 687b ldr r3, [r7, #4]
  12777. 8005cd0: 681b ldr r3, [r3, #0]
  12778. 8005cd2: 681a ldr r2, [r3, #0]
  12779. 8005cd4: 687b ldr r3, [r7, #4]
  12780. 8005cd6: 681b ldr r3, [r3, #0]
  12781. 8005cd8: f022 0201 bic.w r2, r2, #1
  12782. 8005cdc: 601a str r2, [r3, #0]
  12783. 8005cde: e007 b.n 8005cf0 <HAL_DMA_Abort+0x34c>
  12784. 8005ce0: 687b ldr r3, [r7, #4]
  12785. 8005ce2: 681b ldr r3, [r3, #0]
  12786. 8005ce4: 681a ldr r2, [r3, #0]
  12787. 8005ce6: 687b ldr r3, [r7, #4]
  12788. 8005ce8: 681b ldr r3, [r3, #0]
  12789. 8005cea: f022 0201 bic.w r2, r2, #1
  12790. 8005cee: 601a str r2, [r3, #0]
  12791. /* Check if the DMA Stream is effectively disabled */
  12792. while(((*enableRegister) & DMA_SxCR_EN) != 0U)
  12793. 8005cf0: e013 b.n 8005d1a <HAL_DMA_Abort+0x376>
  12794. {
  12795. /* Check for the Timeout */
  12796. if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT)
  12797. 8005cf2: f7fe ff4d bl 8004b90 <HAL_GetTick>
  12798. 8005cf6: 4602 mov r2, r0
  12799. 8005cf8: 693b ldr r3, [r7, #16]
  12800. 8005cfa: 1ad3 subs r3, r2, r3
  12801. 8005cfc: 2b05 cmp r3, #5
  12802. 8005cfe: d90c bls.n 8005d1a <HAL_DMA_Abort+0x376>
  12803. {
  12804. /* Update error code */
  12805. hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT;
  12806. 8005d00: 687b ldr r3, [r7, #4]
  12807. 8005d02: 2220 movs r2, #32
  12808. 8005d04: 655a str r2, [r3, #84] @ 0x54
  12809. /* Change the DMA state */
  12810. hdma->State = HAL_DMA_STATE_ERROR;
  12811. 8005d06: 687b ldr r3, [r7, #4]
  12812. 8005d08: 2203 movs r2, #3
  12813. 8005d0a: f883 2035 strb.w r2, [r3, #53] @ 0x35
  12814. /* Process Unlocked */
  12815. __HAL_UNLOCK(hdma);
  12816. 8005d0e: 687b ldr r3, [r7, #4]
  12817. 8005d10: 2200 movs r2, #0
  12818. 8005d12: f883 2034 strb.w r2, [r3, #52] @ 0x34
  12819. return HAL_ERROR;
  12820. 8005d16: 2301 movs r3, #1
  12821. 8005d18: e12d b.n 8005f76 <HAL_DMA_Abort+0x5d2>
  12822. while(((*enableRegister) & DMA_SxCR_EN) != 0U)
  12823. 8005d1a: 697b ldr r3, [r7, #20]
  12824. 8005d1c: 681b ldr r3, [r3, #0]
  12825. 8005d1e: f003 0301 and.w r3, r3, #1
  12826. 8005d22: 2b00 cmp r3, #0
  12827. 8005d24: d1e5 bne.n 8005cf2 <HAL_DMA_Abort+0x34e>
  12828. }
  12829. }
  12830. /* Clear all interrupt flags at correct offset within the register */
  12831. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  12832. 8005d26: 687b ldr r3, [r7, #4]
  12833. 8005d28: 681b ldr r3, [r3, #0]
  12834. 8005d2a: 4a2f ldr r2, [pc, #188] @ (8005de8 <HAL_DMA_Abort+0x444>)
  12835. 8005d2c: 4293 cmp r3, r2
  12836. 8005d2e: d04a beq.n 8005dc6 <HAL_DMA_Abort+0x422>
  12837. 8005d30: 687b ldr r3, [r7, #4]
  12838. 8005d32: 681b ldr r3, [r3, #0]
  12839. 8005d34: 4a2d ldr r2, [pc, #180] @ (8005dec <HAL_DMA_Abort+0x448>)
  12840. 8005d36: 4293 cmp r3, r2
  12841. 8005d38: d045 beq.n 8005dc6 <HAL_DMA_Abort+0x422>
  12842. 8005d3a: 687b ldr r3, [r7, #4]
  12843. 8005d3c: 681b ldr r3, [r3, #0]
  12844. 8005d3e: 4a2c ldr r2, [pc, #176] @ (8005df0 <HAL_DMA_Abort+0x44c>)
  12845. 8005d40: 4293 cmp r3, r2
  12846. 8005d42: d040 beq.n 8005dc6 <HAL_DMA_Abort+0x422>
  12847. 8005d44: 687b ldr r3, [r7, #4]
  12848. 8005d46: 681b ldr r3, [r3, #0]
  12849. 8005d48: 4a2a ldr r2, [pc, #168] @ (8005df4 <HAL_DMA_Abort+0x450>)
  12850. 8005d4a: 4293 cmp r3, r2
  12851. 8005d4c: d03b beq.n 8005dc6 <HAL_DMA_Abort+0x422>
  12852. 8005d4e: 687b ldr r3, [r7, #4]
  12853. 8005d50: 681b ldr r3, [r3, #0]
  12854. 8005d52: 4a29 ldr r2, [pc, #164] @ (8005df8 <HAL_DMA_Abort+0x454>)
  12855. 8005d54: 4293 cmp r3, r2
  12856. 8005d56: d036 beq.n 8005dc6 <HAL_DMA_Abort+0x422>
  12857. 8005d58: 687b ldr r3, [r7, #4]
  12858. 8005d5a: 681b ldr r3, [r3, #0]
  12859. 8005d5c: 4a27 ldr r2, [pc, #156] @ (8005dfc <HAL_DMA_Abort+0x458>)
  12860. 8005d5e: 4293 cmp r3, r2
  12861. 8005d60: d031 beq.n 8005dc6 <HAL_DMA_Abort+0x422>
  12862. 8005d62: 687b ldr r3, [r7, #4]
  12863. 8005d64: 681b ldr r3, [r3, #0]
  12864. 8005d66: 4a26 ldr r2, [pc, #152] @ (8005e00 <HAL_DMA_Abort+0x45c>)
  12865. 8005d68: 4293 cmp r3, r2
  12866. 8005d6a: d02c beq.n 8005dc6 <HAL_DMA_Abort+0x422>
  12867. 8005d6c: 687b ldr r3, [r7, #4]
  12868. 8005d6e: 681b ldr r3, [r3, #0]
  12869. 8005d70: 4a24 ldr r2, [pc, #144] @ (8005e04 <HAL_DMA_Abort+0x460>)
  12870. 8005d72: 4293 cmp r3, r2
  12871. 8005d74: d027 beq.n 8005dc6 <HAL_DMA_Abort+0x422>
  12872. 8005d76: 687b ldr r3, [r7, #4]
  12873. 8005d78: 681b ldr r3, [r3, #0]
  12874. 8005d7a: 4a23 ldr r2, [pc, #140] @ (8005e08 <HAL_DMA_Abort+0x464>)
  12875. 8005d7c: 4293 cmp r3, r2
  12876. 8005d7e: d022 beq.n 8005dc6 <HAL_DMA_Abort+0x422>
  12877. 8005d80: 687b ldr r3, [r7, #4]
  12878. 8005d82: 681b ldr r3, [r3, #0]
  12879. 8005d84: 4a21 ldr r2, [pc, #132] @ (8005e0c <HAL_DMA_Abort+0x468>)
  12880. 8005d86: 4293 cmp r3, r2
  12881. 8005d88: d01d beq.n 8005dc6 <HAL_DMA_Abort+0x422>
  12882. 8005d8a: 687b ldr r3, [r7, #4]
  12883. 8005d8c: 681b ldr r3, [r3, #0]
  12884. 8005d8e: 4a20 ldr r2, [pc, #128] @ (8005e10 <HAL_DMA_Abort+0x46c>)
  12885. 8005d90: 4293 cmp r3, r2
  12886. 8005d92: d018 beq.n 8005dc6 <HAL_DMA_Abort+0x422>
  12887. 8005d94: 687b ldr r3, [r7, #4]
  12888. 8005d96: 681b ldr r3, [r3, #0]
  12889. 8005d98: 4a1e ldr r2, [pc, #120] @ (8005e14 <HAL_DMA_Abort+0x470>)
  12890. 8005d9a: 4293 cmp r3, r2
  12891. 8005d9c: d013 beq.n 8005dc6 <HAL_DMA_Abort+0x422>
  12892. 8005d9e: 687b ldr r3, [r7, #4]
  12893. 8005da0: 681b ldr r3, [r3, #0]
  12894. 8005da2: 4a1d ldr r2, [pc, #116] @ (8005e18 <HAL_DMA_Abort+0x474>)
  12895. 8005da4: 4293 cmp r3, r2
  12896. 8005da6: d00e beq.n 8005dc6 <HAL_DMA_Abort+0x422>
  12897. 8005da8: 687b ldr r3, [r7, #4]
  12898. 8005daa: 681b ldr r3, [r3, #0]
  12899. 8005dac: 4a1b ldr r2, [pc, #108] @ (8005e1c <HAL_DMA_Abort+0x478>)
  12900. 8005dae: 4293 cmp r3, r2
  12901. 8005db0: d009 beq.n 8005dc6 <HAL_DMA_Abort+0x422>
  12902. 8005db2: 687b ldr r3, [r7, #4]
  12903. 8005db4: 681b ldr r3, [r3, #0]
  12904. 8005db6: 4a1a ldr r2, [pc, #104] @ (8005e20 <HAL_DMA_Abort+0x47c>)
  12905. 8005db8: 4293 cmp r3, r2
  12906. 8005dba: d004 beq.n 8005dc6 <HAL_DMA_Abort+0x422>
  12907. 8005dbc: 687b ldr r3, [r7, #4]
  12908. 8005dbe: 681b ldr r3, [r3, #0]
  12909. 8005dc0: 4a18 ldr r2, [pc, #96] @ (8005e24 <HAL_DMA_Abort+0x480>)
  12910. 8005dc2: 4293 cmp r3, r2
  12911. 8005dc4: d101 bne.n 8005dca <HAL_DMA_Abort+0x426>
  12912. 8005dc6: 2301 movs r3, #1
  12913. 8005dc8: e000 b.n 8005dcc <HAL_DMA_Abort+0x428>
  12914. 8005dca: 2300 movs r3, #0
  12915. 8005dcc: 2b00 cmp r3, #0
  12916. 8005dce: d02b beq.n 8005e28 <HAL_DMA_Abort+0x484>
  12917. {
  12918. regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  12919. 8005dd0: 687b ldr r3, [r7, #4]
  12920. 8005dd2: 6d9b ldr r3, [r3, #88] @ 0x58
  12921. 8005dd4: 60bb str r3, [r7, #8]
  12922. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  12923. 8005dd6: 687b ldr r3, [r7, #4]
  12924. 8005dd8: 6ddb ldr r3, [r3, #92] @ 0x5c
  12925. 8005dda: f003 031f and.w r3, r3, #31
  12926. 8005dde: 223f movs r2, #63 @ 0x3f
  12927. 8005de0: 409a lsls r2, r3
  12928. 8005de2: 68bb ldr r3, [r7, #8]
  12929. 8005de4: 609a str r2, [r3, #8]
  12930. 8005de6: e02a b.n 8005e3e <HAL_DMA_Abort+0x49a>
  12931. 8005de8: 40020010 .word 0x40020010
  12932. 8005dec: 40020028 .word 0x40020028
  12933. 8005df0: 40020040 .word 0x40020040
  12934. 8005df4: 40020058 .word 0x40020058
  12935. 8005df8: 40020070 .word 0x40020070
  12936. 8005dfc: 40020088 .word 0x40020088
  12937. 8005e00: 400200a0 .word 0x400200a0
  12938. 8005e04: 400200b8 .word 0x400200b8
  12939. 8005e08: 40020410 .word 0x40020410
  12940. 8005e0c: 40020428 .word 0x40020428
  12941. 8005e10: 40020440 .word 0x40020440
  12942. 8005e14: 40020458 .word 0x40020458
  12943. 8005e18: 40020470 .word 0x40020470
  12944. 8005e1c: 40020488 .word 0x40020488
  12945. 8005e20: 400204a0 .word 0x400204a0
  12946. 8005e24: 400204b8 .word 0x400204b8
  12947. }
  12948. else /* BDMA channel */
  12949. {
  12950. regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  12951. 8005e28: 687b ldr r3, [r7, #4]
  12952. 8005e2a: 6d9b ldr r3, [r3, #88] @ 0x58
  12953. 8005e2c: 60fb str r3, [r7, #12]
  12954. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  12955. 8005e2e: 687b ldr r3, [r7, #4]
  12956. 8005e30: 6ddb ldr r3, [r3, #92] @ 0x5c
  12957. 8005e32: f003 031f and.w r3, r3, #31
  12958. 8005e36: 2201 movs r2, #1
  12959. 8005e38: 409a lsls r2, r3
  12960. 8005e3a: 68fb ldr r3, [r7, #12]
  12961. 8005e3c: 605a str r2, [r3, #4]
  12962. }
  12963. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  12964. 8005e3e: 687b ldr r3, [r7, #4]
  12965. 8005e40: 681b ldr r3, [r3, #0]
  12966. 8005e42: 4a4f ldr r2, [pc, #316] @ (8005f80 <HAL_DMA_Abort+0x5dc>)
  12967. 8005e44: 4293 cmp r3, r2
  12968. 8005e46: d072 beq.n 8005f2e <HAL_DMA_Abort+0x58a>
  12969. 8005e48: 687b ldr r3, [r7, #4]
  12970. 8005e4a: 681b ldr r3, [r3, #0]
  12971. 8005e4c: 4a4d ldr r2, [pc, #308] @ (8005f84 <HAL_DMA_Abort+0x5e0>)
  12972. 8005e4e: 4293 cmp r3, r2
  12973. 8005e50: d06d beq.n 8005f2e <HAL_DMA_Abort+0x58a>
  12974. 8005e52: 687b ldr r3, [r7, #4]
  12975. 8005e54: 681b ldr r3, [r3, #0]
  12976. 8005e56: 4a4c ldr r2, [pc, #304] @ (8005f88 <HAL_DMA_Abort+0x5e4>)
  12977. 8005e58: 4293 cmp r3, r2
  12978. 8005e5a: d068 beq.n 8005f2e <HAL_DMA_Abort+0x58a>
  12979. 8005e5c: 687b ldr r3, [r7, #4]
  12980. 8005e5e: 681b ldr r3, [r3, #0]
  12981. 8005e60: 4a4a ldr r2, [pc, #296] @ (8005f8c <HAL_DMA_Abort+0x5e8>)
  12982. 8005e62: 4293 cmp r3, r2
  12983. 8005e64: d063 beq.n 8005f2e <HAL_DMA_Abort+0x58a>
  12984. 8005e66: 687b ldr r3, [r7, #4]
  12985. 8005e68: 681b ldr r3, [r3, #0]
  12986. 8005e6a: 4a49 ldr r2, [pc, #292] @ (8005f90 <HAL_DMA_Abort+0x5ec>)
  12987. 8005e6c: 4293 cmp r3, r2
  12988. 8005e6e: d05e beq.n 8005f2e <HAL_DMA_Abort+0x58a>
  12989. 8005e70: 687b ldr r3, [r7, #4]
  12990. 8005e72: 681b ldr r3, [r3, #0]
  12991. 8005e74: 4a47 ldr r2, [pc, #284] @ (8005f94 <HAL_DMA_Abort+0x5f0>)
  12992. 8005e76: 4293 cmp r3, r2
  12993. 8005e78: d059 beq.n 8005f2e <HAL_DMA_Abort+0x58a>
  12994. 8005e7a: 687b ldr r3, [r7, #4]
  12995. 8005e7c: 681b ldr r3, [r3, #0]
  12996. 8005e7e: 4a46 ldr r2, [pc, #280] @ (8005f98 <HAL_DMA_Abort+0x5f4>)
  12997. 8005e80: 4293 cmp r3, r2
  12998. 8005e82: d054 beq.n 8005f2e <HAL_DMA_Abort+0x58a>
  12999. 8005e84: 687b ldr r3, [r7, #4]
  13000. 8005e86: 681b ldr r3, [r3, #0]
  13001. 8005e88: 4a44 ldr r2, [pc, #272] @ (8005f9c <HAL_DMA_Abort+0x5f8>)
  13002. 8005e8a: 4293 cmp r3, r2
  13003. 8005e8c: d04f beq.n 8005f2e <HAL_DMA_Abort+0x58a>
  13004. 8005e8e: 687b ldr r3, [r7, #4]
  13005. 8005e90: 681b ldr r3, [r3, #0]
  13006. 8005e92: 4a43 ldr r2, [pc, #268] @ (8005fa0 <HAL_DMA_Abort+0x5fc>)
  13007. 8005e94: 4293 cmp r3, r2
  13008. 8005e96: d04a beq.n 8005f2e <HAL_DMA_Abort+0x58a>
  13009. 8005e98: 687b ldr r3, [r7, #4]
  13010. 8005e9a: 681b ldr r3, [r3, #0]
  13011. 8005e9c: 4a41 ldr r2, [pc, #260] @ (8005fa4 <HAL_DMA_Abort+0x600>)
  13012. 8005e9e: 4293 cmp r3, r2
  13013. 8005ea0: d045 beq.n 8005f2e <HAL_DMA_Abort+0x58a>
  13014. 8005ea2: 687b ldr r3, [r7, #4]
  13015. 8005ea4: 681b ldr r3, [r3, #0]
  13016. 8005ea6: 4a40 ldr r2, [pc, #256] @ (8005fa8 <HAL_DMA_Abort+0x604>)
  13017. 8005ea8: 4293 cmp r3, r2
  13018. 8005eaa: d040 beq.n 8005f2e <HAL_DMA_Abort+0x58a>
  13019. 8005eac: 687b ldr r3, [r7, #4]
  13020. 8005eae: 681b ldr r3, [r3, #0]
  13021. 8005eb0: 4a3e ldr r2, [pc, #248] @ (8005fac <HAL_DMA_Abort+0x608>)
  13022. 8005eb2: 4293 cmp r3, r2
  13023. 8005eb4: d03b beq.n 8005f2e <HAL_DMA_Abort+0x58a>
  13024. 8005eb6: 687b ldr r3, [r7, #4]
  13025. 8005eb8: 681b ldr r3, [r3, #0]
  13026. 8005eba: 4a3d ldr r2, [pc, #244] @ (8005fb0 <HAL_DMA_Abort+0x60c>)
  13027. 8005ebc: 4293 cmp r3, r2
  13028. 8005ebe: d036 beq.n 8005f2e <HAL_DMA_Abort+0x58a>
  13029. 8005ec0: 687b ldr r3, [r7, #4]
  13030. 8005ec2: 681b ldr r3, [r3, #0]
  13031. 8005ec4: 4a3b ldr r2, [pc, #236] @ (8005fb4 <HAL_DMA_Abort+0x610>)
  13032. 8005ec6: 4293 cmp r3, r2
  13033. 8005ec8: d031 beq.n 8005f2e <HAL_DMA_Abort+0x58a>
  13034. 8005eca: 687b ldr r3, [r7, #4]
  13035. 8005ecc: 681b ldr r3, [r3, #0]
  13036. 8005ece: 4a3a ldr r2, [pc, #232] @ (8005fb8 <HAL_DMA_Abort+0x614>)
  13037. 8005ed0: 4293 cmp r3, r2
  13038. 8005ed2: d02c beq.n 8005f2e <HAL_DMA_Abort+0x58a>
  13039. 8005ed4: 687b ldr r3, [r7, #4]
  13040. 8005ed6: 681b ldr r3, [r3, #0]
  13041. 8005ed8: 4a38 ldr r2, [pc, #224] @ (8005fbc <HAL_DMA_Abort+0x618>)
  13042. 8005eda: 4293 cmp r3, r2
  13043. 8005edc: d027 beq.n 8005f2e <HAL_DMA_Abort+0x58a>
  13044. 8005ede: 687b ldr r3, [r7, #4]
  13045. 8005ee0: 681b ldr r3, [r3, #0]
  13046. 8005ee2: 4a37 ldr r2, [pc, #220] @ (8005fc0 <HAL_DMA_Abort+0x61c>)
  13047. 8005ee4: 4293 cmp r3, r2
  13048. 8005ee6: d022 beq.n 8005f2e <HAL_DMA_Abort+0x58a>
  13049. 8005ee8: 687b ldr r3, [r7, #4]
  13050. 8005eea: 681b ldr r3, [r3, #0]
  13051. 8005eec: 4a35 ldr r2, [pc, #212] @ (8005fc4 <HAL_DMA_Abort+0x620>)
  13052. 8005eee: 4293 cmp r3, r2
  13053. 8005ef0: d01d beq.n 8005f2e <HAL_DMA_Abort+0x58a>
  13054. 8005ef2: 687b ldr r3, [r7, #4]
  13055. 8005ef4: 681b ldr r3, [r3, #0]
  13056. 8005ef6: 4a34 ldr r2, [pc, #208] @ (8005fc8 <HAL_DMA_Abort+0x624>)
  13057. 8005ef8: 4293 cmp r3, r2
  13058. 8005efa: d018 beq.n 8005f2e <HAL_DMA_Abort+0x58a>
  13059. 8005efc: 687b ldr r3, [r7, #4]
  13060. 8005efe: 681b ldr r3, [r3, #0]
  13061. 8005f00: 4a32 ldr r2, [pc, #200] @ (8005fcc <HAL_DMA_Abort+0x628>)
  13062. 8005f02: 4293 cmp r3, r2
  13063. 8005f04: d013 beq.n 8005f2e <HAL_DMA_Abort+0x58a>
  13064. 8005f06: 687b ldr r3, [r7, #4]
  13065. 8005f08: 681b ldr r3, [r3, #0]
  13066. 8005f0a: 4a31 ldr r2, [pc, #196] @ (8005fd0 <HAL_DMA_Abort+0x62c>)
  13067. 8005f0c: 4293 cmp r3, r2
  13068. 8005f0e: d00e beq.n 8005f2e <HAL_DMA_Abort+0x58a>
  13069. 8005f10: 687b ldr r3, [r7, #4]
  13070. 8005f12: 681b ldr r3, [r3, #0]
  13071. 8005f14: 4a2f ldr r2, [pc, #188] @ (8005fd4 <HAL_DMA_Abort+0x630>)
  13072. 8005f16: 4293 cmp r3, r2
  13073. 8005f18: d009 beq.n 8005f2e <HAL_DMA_Abort+0x58a>
  13074. 8005f1a: 687b ldr r3, [r7, #4]
  13075. 8005f1c: 681b ldr r3, [r3, #0]
  13076. 8005f1e: 4a2e ldr r2, [pc, #184] @ (8005fd8 <HAL_DMA_Abort+0x634>)
  13077. 8005f20: 4293 cmp r3, r2
  13078. 8005f22: d004 beq.n 8005f2e <HAL_DMA_Abort+0x58a>
  13079. 8005f24: 687b ldr r3, [r7, #4]
  13080. 8005f26: 681b ldr r3, [r3, #0]
  13081. 8005f28: 4a2c ldr r2, [pc, #176] @ (8005fdc <HAL_DMA_Abort+0x638>)
  13082. 8005f2a: 4293 cmp r3, r2
  13083. 8005f2c: d101 bne.n 8005f32 <HAL_DMA_Abort+0x58e>
  13084. 8005f2e: 2301 movs r3, #1
  13085. 8005f30: e000 b.n 8005f34 <HAL_DMA_Abort+0x590>
  13086. 8005f32: 2300 movs r3, #0
  13087. 8005f34: 2b00 cmp r3, #0
  13088. 8005f36: d015 beq.n 8005f64 <HAL_DMA_Abort+0x5c0>
  13089. {
  13090. /* Clear the DMAMUX synchro overrun flag */
  13091. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  13092. 8005f38: 687b ldr r3, [r7, #4]
  13093. 8005f3a: 6e5b ldr r3, [r3, #100] @ 0x64
  13094. 8005f3c: 687a ldr r2, [r7, #4]
  13095. 8005f3e: 6e92 ldr r2, [r2, #104] @ 0x68
  13096. 8005f40: 605a str r2, [r3, #4]
  13097. if(hdma->DMAmuxRequestGen != 0U)
  13098. 8005f42: 687b ldr r3, [r7, #4]
  13099. 8005f44: 6edb ldr r3, [r3, #108] @ 0x6c
  13100. 8005f46: 2b00 cmp r3, #0
  13101. 8005f48: d00c beq.n 8005f64 <HAL_DMA_Abort+0x5c0>
  13102. {
  13103. /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT */
  13104. /* disable the request gen overrun IT */
  13105. hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE;
  13106. 8005f4a: 687b ldr r3, [r7, #4]
  13107. 8005f4c: 6edb ldr r3, [r3, #108] @ 0x6c
  13108. 8005f4e: 681a ldr r2, [r3, #0]
  13109. 8005f50: 687b ldr r3, [r7, #4]
  13110. 8005f52: 6edb ldr r3, [r3, #108] @ 0x6c
  13111. 8005f54: f422 7280 bic.w r2, r2, #256 @ 0x100
  13112. 8005f58: 601a str r2, [r3, #0]
  13113. /* Clear the DMAMUX request generator overrun flag */
  13114. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  13115. 8005f5a: 687b ldr r3, [r7, #4]
  13116. 8005f5c: 6f1b ldr r3, [r3, #112] @ 0x70
  13117. 8005f5e: 687a ldr r2, [r7, #4]
  13118. 8005f60: 6f52 ldr r2, [r2, #116] @ 0x74
  13119. 8005f62: 605a str r2, [r3, #4]
  13120. }
  13121. }
  13122. /* Change the DMA state */
  13123. hdma->State = HAL_DMA_STATE_READY;
  13124. 8005f64: 687b ldr r3, [r7, #4]
  13125. 8005f66: 2201 movs r2, #1
  13126. 8005f68: f883 2035 strb.w r2, [r3, #53] @ 0x35
  13127. /* Process Unlocked */
  13128. __HAL_UNLOCK(hdma);
  13129. 8005f6c: 687b ldr r3, [r7, #4]
  13130. 8005f6e: 2200 movs r2, #0
  13131. 8005f70: f883 2034 strb.w r2, [r3, #52] @ 0x34
  13132. }
  13133. return HAL_OK;
  13134. 8005f74: 2300 movs r3, #0
  13135. }
  13136. 8005f76: 4618 mov r0, r3
  13137. 8005f78: 3718 adds r7, #24
  13138. 8005f7a: 46bd mov sp, r7
  13139. 8005f7c: bd80 pop {r7, pc}
  13140. 8005f7e: bf00 nop
  13141. 8005f80: 40020010 .word 0x40020010
  13142. 8005f84: 40020028 .word 0x40020028
  13143. 8005f88: 40020040 .word 0x40020040
  13144. 8005f8c: 40020058 .word 0x40020058
  13145. 8005f90: 40020070 .word 0x40020070
  13146. 8005f94: 40020088 .word 0x40020088
  13147. 8005f98: 400200a0 .word 0x400200a0
  13148. 8005f9c: 400200b8 .word 0x400200b8
  13149. 8005fa0: 40020410 .word 0x40020410
  13150. 8005fa4: 40020428 .word 0x40020428
  13151. 8005fa8: 40020440 .word 0x40020440
  13152. 8005fac: 40020458 .word 0x40020458
  13153. 8005fb0: 40020470 .word 0x40020470
  13154. 8005fb4: 40020488 .word 0x40020488
  13155. 8005fb8: 400204a0 .word 0x400204a0
  13156. 8005fbc: 400204b8 .word 0x400204b8
  13157. 8005fc0: 58025408 .word 0x58025408
  13158. 8005fc4: 5802541c .word 0x5802541c
  13159. 8005fc8: 58025430 .word 0x58025430
  13160. 8005fcc: 58025444 .word 0x58025444
  13161. 8005fd0: 58025458 .word 0x58025458
  13162. 8005fd4: 5802546c .word 0x5802546c
  13163. 8005fd8: 58025480 .word 0x58025480
  13164. 8005fdc: 58025494 .word 0x58025494
  13165. 08005fe0 <HAL_DMA_Abort_IT>:
  13166. * @param hdma : pointer to a DMA_HandleTypeDef structure that contains
  13167. * the configuration information for the specified DMA Stream.
  13168. * @retval HAL status
  13169. */
  13170. HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma)
  13171. {
  13172. 8005fe0: b580 push {r7, lr}
  13173. 8005fe2: b084 sub sp, #16
  13174. 8005fe4: af00 add r7, sp, #0
  13175. 8005fe6: 6078 str r0, [r7, #4]
  13176. BDMA_Base_Registers *regs_bdma;
  13177. /* Check the DMA peripheral handle */
  13178. if(hdma == NULL)
  13179. 8005fe8: 687b ldr r3, [r7, #4]
  13180. 8005fea: 2b00 cmp r3, #0
  13181. 8005fec: d101 bne.n 8005ff2 <HAL_DMA_Abort_IT+0x12>
  13182. {
  13183. return HAL_ERROR;
  13184. 8005fee: 2301 movs r3, #1
  13185. 8005ff0: e237 b.n 8006462 <HAL_DMA_Abort_IT+0x482>
  13186. }
  13187. if(hdma->State != HAL_DMA_STATE_BUSY)
  13188. 8005ff2: 687b ldr r3, [r7, #4]
  13189. 8005ff4: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  13190. 8005ff8: b2db uxtb r3, r3
  13191. 8005ffa: 2b02 cmp r3, #2
  13192. 8005ffc: d004 beq.n 8006008 <HAL_DMA_Abort_IT+0x28>
  13193. {
  13194. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  13195. 8005ffe: 687b ldr r3, [r7, #4]
  13196. 8006000: 2280 movs r2, #128 @ 0x80
  13197. 8006002: 655a str r2, [r3, #84] @ 0x54
  13198. return HAL_ERROR;
  13199. 8006004: 2301 movs r3, #1
  13200. 8006006: e22c b.n 8006462 <HAL_DMA_Abort_IT+0x482>
  13201. }
  13202. else
  13203. {
  13204. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  13205. 8006008: 687b ldr r3, [r7, #4]
  13206. 800600a: 681b ldr r3, [r3, #0]
  13207. 800600c: 4a5c ldr r2, [pc, #368] @ (8006180 <HAL_DMA_Abort_IT+0x1a0>)
  13208. 800600e: 4293 cmp r3, r2
  13209. 8006010: d04a beq.n 80060a8 <HAL_DMA_Abort_IT+0xc8>
  13210. 8006012: 687b ldr r3, [r7, #4]
  13211. 8006014: 681b ldr r3, [r3, #0]
  13212. 8006016: 4a5b ldr r2, [pc, #364] @ (8006184 <HAL_DMA_Abort_IT+0x1a4>)
  13213. 8006018: 4293 cmp r3, r2
  13214. 800601a: d045 beq.n 80060a8 <HAL_DMA_Abort_IT+0xc8>
  13215. 800601c: 687b ldr r3, [r7, #4]
  13216. 800601e: 681b ldr r3, [r3, #0]
  13217. 8006020: 4a59 ldr r2, [pc, #356] @ (8006188 <HAL_DMA_Abort_IT+0x1a8>)
  13218. 8006022: 4293 cmp r3, r2
  13219. 8006024: d040 beq.n 80060a8 <HAL_DMA_Abort_IT+0xc8>
  13220. 8006026: 687b ldr r3, [r7, #4]
  13221. 8006028: 681b ldr r3, [r3, #0]
  13222. 800602a: 4a58 ldr r2, [pc, #352] @ (800618c <HAL_DMA_Abort_IT+0x1ac>)
  13223. 800602c: 4293 cmp r3, r2
  13224. 800602e: d03b beq.n 80060a8 <HAL_DMA_Abort_IT+0xc8>
  13225. 8006030: 687b ldr r3, [r7, #4]
  13226. 8006032: 681b ldr r3, [r3, #0]
  13227. 8006034: 4a56 ldr r2, [pc, #344] @ (8006190 <HAL_DMA_Abort_IT+0x1b0>)
  13228. 8006036: 4293 cmp r3, r2
  13229. 8006038: d036 beq.n 80060a8 <HAL_DMA_Abort_IT+0xc8>
  13230. 800603a: 687b ldr r3, [r7, #4]
  13231. 800603c: 681b ldr r3, [r3, #0]
  13232. 800603e: 4a55 ldr r2, [pc, #340] @ (8006194 <HAL_DMA_Abort_IT+0x1b4>)
  13233. 8006040: 4293 cmp r3, r2
  13234. 8006042: d031 beq.n 80060a8 <HAL_DMA_Abort_IT+0xc8>
  13235. 8006044: 687b ldr r3, [r7, #4]
  13236. 8006046: 681b ldr r3, [r3, #0]
  13237. 8006048: 4a53 ldr r2, [pc, #332] @ (8006198 <HAL_DMA_Abort_IT+0x1b8>)
  13238. 800604a: 4293 cmp r3, r2
  13239. 800604c: d02c beq.n 80060a8 <HAL_DMA_Abort_IT+0xc8>
  13240. 800604e: 687b ldr r3, [r7, #4]
  13241. 8006050: 681b ldr r3, [r3, #0]
  13242. 8006052: 4a52 ldr r2, [pc, #328] @ (800619c <HAL_DMA_Abort_IT+0x1bc>)
  13243. 8006054: 4293 cmp r3, r2
  13244. 8006056: d027 beq.n 80060a8 <HAL_DMA_Abort_IT+0xc8>
  13245. 8006058: 687b ldr r3, [r7, #4]
  13246. 800605a: 681b ldr r3, [r3, #0]
  13247. 800605c: 4a50 ldr r2, [pc, #320] @ (80061a0 <HAL_DMA_Abort_IT+0x1c0>)
  13248. 800605e: 4293 cmp r3, r2
  13249. 8006060: d022 beq.n 80060a8 <HAL_DMA_Abort_IT+0xc8>
  13250. 8006062: 687b ldr r3, [r7, #4]
  13251. 8006064: 681b ldr r3, [r3, #0]
  13252. 8006066: 4a4f ldr r2, [pc, #316] @ (80061a4 <HAL_DMA_Abort_IT+0x1c4>)
  13253. 8006068: 4293 cmp r3, r2
  13254. 800606a: d01d beq.n 80060a8 <HAL_DMA_Abort_IT+0xc8>
  13255. 800606c: 687b ldr r3, [r7, #4]
  13256. 800606e: 681b ldr r3, [r3, #0]
  13257. 8006070: 4a4d ldr r2, [pc, #308] @ (80061a8 <HAL_DMA_Abort_IT+0x1c8>)
  13258. 8006072: 4293 cmp r3, r2
  13259. 8006074: d018 beq.n 80060a8 <HAL_DMA_Abort_IT+0xc8>
  13260. 8006076: 687b ldr r3, [r7, #4]
  13261. 8006078: 681b ldr r3, [r3, #0]
  13262. 800607a: 4a4c ldr r2, [pc, #304] @ (80061ac <HAL_DMA_Abort_IT+0x1cc>)
  13263. 800607c: 4293 cmp r3, r2
  13264. 800607e: d013 beq.n 80060a8 <HAL_DMA_Abort_IT+0xc8>
  13265. 8006080: 687b ldr r3, [r7, #4]
  13266. 8006082: 681b ldr r3, [r3, #0]
  13267. 8006084: 4a4a ldr r2, [pc, #296] @ (80061b0 <HAL_DMA_Abort_IT+0x1d0>)
  13268. 8006086: 4293 cmp r3, r2
  13269. 8006088: d00e beq.n 80060a8 <HAL_DMA_Abort_IT+0xc8>
  13270. 800608a: 687b ldr r3, [r7, #4]
  13271. 800608c: 681b ldr r3, [r3, #0]
  13272. 800608e: 4a49 ldr r2, [pc, #292] @ (80061b4 <HAL_DMA_Abort_IT+0x1d4>)
  13273. 8006090: 4293 cmp r3, r2
  13274. 8006092: d009 beq.n 80060a8 <HAL_DMA_Abort_IT+0xc8>
  13275. 8006094: 687b ldr r3, [r7, #4]
  13276. 8006096: 681b ldr r3, [r3, #0]
  13277. 8006098: 4a47 ldr r2, [pc, #284] @ (80061b8 <HAL_DMA_Abort_IT+0x1d8>)
  13278. 800609a: 4293 cmp r3, r2
  13279. 800609c: d004 beq.n 80060a8 <HAL_DMA_Abort_IT+0xc8>
  13280. 800609e: 687b ldr r3, [r7, #4]
  13281. 80060a0: 681b ldr r3, [r3, #0]
  13282. 80060a2: 4a46 ldr r2, [pc, #280] @ (80061bc <HAL_DMA_Abort_IT+0x1dc>)
  13283. 80060a4: 4293 cmp r3, r2
  13284. 80060a6: d101 bne.n 80060ac <HAL_DMA_Abort_IT+0xcc>
  13285. 80060a8: 2301 movs r3, #1
  13286. 80060aa: e000 b.n 80060ae <HAL_DMA_Abort_IT+0xce>
  13287. 80060ac: 2300 movs r3, #0
  13288. 80060ae: 2b00 cmp r3, #0
  13289. 80060b0: f000 8086 beq.w 80061c0 <HAL_DMA_Abort_IT+0x1e0>
  13290. {
  13291. /* Set Abort State */
  13292. hdma->State = HAL_DMA_STATE_ABORT;
  13293. 80060b4: 687b ldr r3, [r7, #4]
  13294. 80060b6: 2204 movs r2, #4
  13295. 80060b8: f883 2035 strb.w r2, [r3, #53] @ 0x35
  13296. /* Disable the stream */
  13297. __HAL_DMA_DISABLE(hdma);
  13298. 80060bc: 687b ldr r3, [r7, #4]
  13299. 80060be: 681b ldr r3, [r3, #0]
  13300. 80060c0: 4a2f ldr r2, [pc, #188] @ (8006180 <HAL_DMA_Abort_IT+0x1a0>)
  13301. 80060c2: 4293 cmp r3, r2
  13302. 80060c4: d04a beq.n 800615c <HAL_DMA_Abort_IT+0x17c>
  13303. 80060c6: 687b ldr r3, [r7, #4]
  13304. 80060c8: 681b ldr r3, [r3, #0]
  13305. 80060ca: 4a2e ldr r2, [pc, #184] @ (8006184 <HAL_DMA_Abort_IT+0x1a4>)
  13306. 80060cc: 4293 cmp r3, r2
  13307. 80060ce: d045 beq.n 800615c <HAL_DMA_Abort_IT+0x17c>
  13308. 80060d0: 687b ldr r3, [r7, #4]
  13309. 80060d2: 681b ldr r3, [r3, #0]
  13310. 80060d4: 4a2c ldr r2, [pc, #176] @ (8006188 <HAL_DMA_Abort_IT+0x1a8>)
  13311. 80060d6: 4293 cmp r3, r2
  13312. 80060d8: d040 beq.n 800615c <HAL_DMA_Abort_IT+0x17c>
  13313. 80060da: 687b ldr r3, [r7, #4]
  13314. 80060dc: 681b ldr r3, [r3, #0]
  13315. 80060de: 4a2b ldr r2, [pc, #172] @ (800618c <HAL_DMA_Abort_IT+0x1ac>)
  13316. 80060e0: 4293 cmp r3, r2
  13317. 80060e2: d03b beq.n 800615c <HAL_DMA_Abort_IT+0x17c>
  13318. 80060e4: 687b ldr r3, [r7, #4]
  13319. 80060e6: 681b ldr r3, [r3, #0]
  13320. 80060e8: 4a29 ldr r2, [pc, #164] @ (8006190 <HAL_DMA_Abort_IT+0x1b0>)
  13321. 80060ea: 4293 cmp r3, r2
  13322. 80060ec: d036 beq.n 800615c <HAL_DMA_Abort_IT+0x17c>
  13323. 80060ee: 687b ldr r3, [r7, #4]
  13324. 80060f0: 681b ldr r3, [r3, #0]
  13325. 80060f2: 4a28 ldr r2, [pc, #160] @ (8006194 <HAL_DMA_Abort_IT+0x1b4>)
  13326. 80060f4: 4293 cmp r3, r2
  13327. 80060f6: d031 beq.n 800615c <HAL_DMA_Abort_IT+0x17c>
  13328. 80060f8: 687b ldr r3, [r7, #4]
  13329. 80060fa: 681b ldr r3, [r3, #0]
  13330. 80060fc: 4a26 ldr r2, [pc, #152] @ (8006198 <HAL_DMA_Abort_IT+0x1b8>)
  13331. 80060fe: 4293 cmp r3, r2
  13332. 8006100: d02c beq.n 800615c <HAL_DMA_Abort_IT+0x17c>
  13333. 8006102: 687b ldr r3, [r7, #4]
  13334. 8006104: 681b ldr r3, [r3, #0]
  13335. 8006106: 4a25 ldr r2, [pc, #148] @ (800619c <HAL_DMA_Abort_IT+0x1bc>)
  13336. 8006108: 4293 cmp r3, r2
  13337. 800610a: d027 beq.n 800615c <HAL_DMA_Abort_IT+0x17c>
  13338. 800610c: 687b ldr r3, [r7, #4]
  13339. 800610e: 681b ldr r3, [r3, #0]
  13340. 8006110: 4a23 ldr r2, [pc, #140] @ (80061a0 <HAL_DMA_Abort_IT+0x1c0>)
  13341. 8006112: 4293 cmp r3, r2
  13342. 8006114: d022 beq.n 800615c <HAL_DMA_Abort_IT+0x17c>
  13343. 8006116: 687b ldr r3, [r7, #4]
  13344. 8006118: 681b ldr r3, [r3, #0]
  13345. 800611a: 4a22 ldr r2, [pc, #136] @ (80061a4 <HAL_DMA_Abort_IT+0x1c4>)
  13346. 800611c: 4293 cmp r3, r2
  13347. 800611e: d01d beq.n 800615c <HAL_DMA_Abort_IT+0x17c>
  13348. 8006120: 687b ldr r3, [r7, #4]
  13349. 8006122: 681b ldr r3, [r3, #0]
  13350. 8006124: 4a20 ldr r2, [pc, #128] @ (80061a8 <HAL_DMA_Abort_IT+0x1c8>)
  13351. 8006126: 4293 cmp r3, r2
  13352. 8006128: d018 beq.n 800615c <HAL_DMA_Abort_IT+0x17c>
  13353. 800612a: 687b ldr r3, [r7, #4]
  13354. 800612c: 681b ldr r3, [r3, #0]
  13355. 800612e: 4a1f ldr r2, [pc, #124] @ (80061ac <HAL_DMA_Abort_IT+0x1cc>)
  13356. 8006130: 4293 cmp r3, r2
  13357. 8006132: d013 beq.n 800615c <HAL_DMA_Abort_IT+0x17c>
  13358. 8006134: 687b ldr r3, [r7, #4]
  13359. 8006136: 681b ldr r3, [r3, #0]
  13360. 8006138: 4a1d ldr r2, [pc, #116] @ (80061b0 <HAL_DMA_Abort_IT+0x1d0>)
  13361. 800613a: 4293 cmp r3, r2
  13362. 800613c: d00e beq.n 800615c <HAL_DMA_Abort_IT+0x17c>
  13363. 800613e: 687b ldr r3, [r7, #4]
  13364. 8006140: 681b ldr r3, [r3, #0]
  13365. 8006142: 4a1c ldr r2, [pc, #112] @ (80061b4 <HAL_DMA_Abort_IT+0x1d4>)
  13366. 8006144: 4293 cmp r3, r2
  13367. 8006146: d009 beq.n 800615c <HAL_DMA_Abort_IT+0x17c>
  13368. 8006148: 687b ldr r3, [r7, #4]
  13369. 800614a: 681b ldr r3, [r3, #0]
  13370. 800614c: 4a1a ldr r2, [pc, #104] @ (80061b8 <HAL_DMA_Abort_IT+0x1d8>)
  13371. 800614e: 4293 cmp r3, r2
  13372. 8006150: d004 beq.n 800615c <HAL_DMA_Abort_IT+0x17c>
  13373. 8006152: 687b ldr r3, [r7, #4]
  13374. 8006154: 681b ldr r3, [r3, #0]
  13375. 8006156: 4a19 ldr r2, [pc, #100] @ (80061bc <HAL_DMA_Abort_IT+0x1dc>)
  13376. 8006158: 4293 cmp r3, r2
  13377. 800615a: d108 bne.n 800616e <HAL_DMA_Abort_IT+0x18e>
  13378. 800615c: 687b ldr r3, [r7, #4]
  13379. 800615e: 681b ldr r3, [r3, #0]
  13380. 8006160: 681a ldr r2, [r3, #0]
  13381. 8006162: 687b ldr r3, [r7, #4]
  13382. 8006164: 681b ldr r3, [r3, #0]
  13383. 8006166: f022 0201 bic.w r2, r2, #1
  13384. 800616a: 601a str r2, [r3, #0]
  13385. 800616c: e178 b.n 8006460 <HAL_DMA_Abort_IT+0x480>
  13386. 800616e: 687b ldr r3, [r7, #4]
  13387. 8006170: 681b ldr r3, [r3, #0]
  13388. 8006172: 681a ldr r2, [r3, #0]
  13389. 8006174: 687b ldr r3, [r7, #4]
  13390. 8006176: 681b ldr r3, [r3, #0]
  13391. 8006178: f022 0201 bic.w r2, r2, #1
  13392. 800617c: 601a str r2, [r3, #0]
  13393. 800617e: e16f b.n 8006460 <HAL_DMA_Abort_IT+0x480>
  13394. 8006180: 40020010 .word 0x40020010
  13395. 8006184: 40020028 .word 0x40020028
  13396. 8006188: 40020040 .word 0x40020040
  13397. 800618c: 40020058 .word 0x40020058
  13398. 8006190: 40020070 .word 0x40020070
  13399. 8006194: 40020088 .word 0x40020088
  13400. 8006198: 400200a0 .word 0x400200a0
  13401. 800619c: 400200b8 .word 0x400200b8
  13402. 80061a0: 40020410 .word 0x40020410
  13403. 80061a4: 40020428 .word 0x40020428
  13404. 80061a8: 40020440 .word 0x40020440
  13405. 80061ac: 40020458 .word 0x40020458
  13406. 80061b0: 40020470 .word 0x40020470
  13407. 80061b4: 40020488 .word 0x40020488
  13408. 80061b8: 400204a0 .word 0x400204a0
  13409. 80061bc: 400204b8 .word 0x400204b8
  13410. }
  13411. else /* BDMA channel */
  13412. {
  13413. /* Disable DMA All Interrupts */
  13414. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE);
  13415. 80061c0: 687b ldr r3, [r7, #4]
  13416. 80061c2: 681b ldr r3, [r3, #0]
  13417. 80061c4: 681a ldr r2, [r3, #0]
  13418. 80061c6: 687b ldr r3, [r7, #4]
  13419. 80061c8: 681b ldr r3, [r3, #0]
  13420. 80061ca: f022 020e bic.w r2, r2, #14
  13421. 80061ce: 601a str r2, [r3, #0]
  13422. /* Disable the channel */
  13423. __HAL_DMA_DISABLE(hdma);
  13424. 80061d0: 687b ldr r3, [r7, #4]
  13425. 80061d2: 681b ldr r3, [r3, #0]
  13426. 80061d4: 4a6c ldr r2, [pc, #432] @ (8006388 <HAL_DMA_Abort_IT+0x3a8>)
  13427. 80061d6: 4293 cmp r3, r2
  13428. 80061d8: d04a beq.n 8006270 <HAL_DMA_Abort_IT+0x290>
  13429. 80061da: 687b ldr r3, [r7, #4]
  13430. 80061dc: 681b ldr r3, [r3, #0]
  13431. 80061de: 4a6b ldr r2, [pc, #428] @ (800638c <HAL_DMA_Abort_IT+0x3ac>)
  13432. 80061e0: 4293 cmp r3, r2
  13433. 80061e2: d045 beq.n 8006270 <HAL_DMA_Abort_IT+0x290>
  13434. 80061e4: 687b ldr r3, [r7, #4]
  13435. 80061e6: 681b ldr r3, [r3, #0]
  13436. 80061e8: 4a69 ldr r2, [pc, #420] @ (8006390 <HAL_DMA_Abort_IT+0x3b0>)
  13437. 80061ea: 4293 cmp r3, r2
  13438. 80061ec: d040 beq.n 8006270 <HAL_DMA_Abort_IT+0x290>
  13439. 80061ee: 687b ldr r3, [r7, #4]
  13440. 80061f0: 681b ldr r3, [r3, #0]
  13441. 80061f2: 4a68 ldr r2, [pc, #416] @ (8006394 <HAL_DMA_Abort_IT+0x3b4>)
  13442. 80061f4: 4293 cmp r3, r2
  13443. 80061f6: d03b beq.n 8006270 <HAL_DMA_Abort_IT+0x290>
  13444. 80061f8: 687b ldr r3, [r7, #4]
  13445. 80061fa: 681b ldr r3, [r3, #0]
  13446. 80061fc: 4a66 ldr r2, [pc, #408] @ (8006398 <HAL_DMA_Abort_IT+0x3b8>)
  13447. 80061fe: 4293 cmp r3, r2
  13448. 8006200: d036 beq.n 8006270 <HAL_DMA_Abort_IT+0x290>
  13449. 8006202: 687b ldr r3, [r7, #4]
  13450. 8006204: 681b ldr r3, [r3, #0]
  13451. 8006206: 4a65 ldr r2, [pc, #404] @ (800639c <HAL_DMA_Abort_IT+0x3bc>)
  13452. 8006208: 4293 cmp r3, r2
  13453. 800620a: d031 beq.n 8006270 <HAL_DMA_Abort_IT+0x290>
  13454. 800620c: 687b ldr r3, [r7, #4]
  13455. 800620e: 681b ldr r3, [r3, #0]
  13456. 8006210: 4a63 ldr r2, [pc, #396] @ (80063a0 <HAL_DMA_Abort_IT+0x3c0>)
  13457. 8006212: 4293 cmp r3, r2
  13458. 8006214: d02c beq.n 8006270 <HAL_DMA_Abort_IT+0x290>
  13459. 8006216: 687b ldr r3, [r7, #4]
  13460. 8006218: 681b ldr r3, [r3, #0]
  13461. 800621a: 4a62 ldr r2, [pc, #392] @ (80063a4 <HAL_DMA_Abort_IT+0x3c4>)
  13462. 800621c: 4293 cmp r3, r2
  13463. 800621e: d027 beq.n 8006270 <HAL_DMA_Abort_IT+0x290>
  13464. 8006220: 687b ldr r3, [r7, #4]
  13465. 8006222: 681b ldr r3, [r3, #0]
  13466. 8006224: 4a60 ldr r2, [pc, #384] @ (80063a8 <HAL_DMA_Abort_IT+0x3c8>)
  13467. 8006226: 4293 cmp r3, r2
  13468. 8006228: d022 beq.n 8006270 <HAL_DMA_Abort_IT+0x290>
  13469. 800622a: 687b ldr r3, [r7, #4]
  13470. 800622c: 681b ldr r3, [r3, #0]
  13471. 800622e: 4a5f ldr r2, [pc, #380] @ (80063ac <HAL_DMA_Abort_IT+0x3cc>)
  13472. 8006230: 4293 cmp r3, r2
  13473. 8006232: d01d beq.n 8006270 <HAL_DMA_Abort_IT+0x290>
  13474. 8006234: 687b ldr r3, [r7, #4]
  13475. 8006236: 681b ldr r3, [r3, #0]
  13476. 8006238: 4a5d ldr r2, [pc, #372] @ (80063b0 <HAL_DMA_Abort_IT+0x3d0>)
  13477. 800623a: 4293 cmp r3, r2
  13478. 800623c: d018 beq.n 8006270 <HAL_DMA_Abort_IT+0x290>
  13479. 800623e: 687b ldr r3, [r7, #4]
  13480. 8006240: 681b ldr r3, [r3, #0]
  13481. 8006242: 4a5c ldr r2, [pc, #368] @ (80063b4 <HAL_DMA_Abort_IT+0x3d4>)
  13482. 8006244: 4293 cmp r3, r2
  13483. 8006246: d013 beq.n 8006270 <HAL_DMA_Abort_IT+0x290>
  13484. 8006248: 687b ldr r3, [r7, #4]
  13485. 800624a: 681b ldr r3, [r3, #0]
  13486. 800624c: 4a5a ldr r2, [pc, #360] @ (80063b8 <HAL_DMA_Abort_IT+0x3d8>)
  13487. 800624e: 4293 cmp r3, r2
  13488. 8006250: d00e beq.n 8006270 <HAL_DMA_Abort_IT+0x290>
  13489. 8006252: 687b ldr r3, [r7, #4]
  13490. 8006254: 681b ldr r3, [r3, #0]
  13491. 8006256: 4a59 ldr r2, [pc, #356] @ (80063bc <HAL_DMA_Abort_IT+0x3dc>)
  13492. 8006258: 4293 cmp r3, r2
  13493. 800625a: d009 beq.n 8006270 <HAL_DMA_Abort_IT+0x290>
  13494. 800625c: 687b ldr r3, [r7, #4]
  13495. 800625e: 681b ldr r3, [r3, #0]
  13496. 8006260: 4a57 ldr r2, [pc, #348] @ (80063c0 <HAL_DMA_Abort_IT+0x3e0>)
  13497. 8006262: 4293 cmp r3, r2
  13498. 8006264: d004 beq.n 8006270 <HAL_DMA_Abort_IT+0x290>
  13499. 8006266: 687b ldr r3, [r7, #4]
  13500. 8006268: 681b ldr r3, [r3, #0]
  13501. 800626a: 4a56 ldr r2, [pc, #344] @ (80063c4 <HAL_DMA_Abort_IT+0x3e4>)
  13502. 800626c: 4293 cmp r3, r2
  13503. 800626e: d108 bne.n 8006282 <HAL_DMA_Abort_IT+0x2a2>
  13504. 8006270: 687b ldr r3, [r7, #4]
  13505. 8006272: 681b ldr r3, [r3, #0]
  13506. 8006274: 681a ldr r2, [r3, #0]
  13507. 8006276: 687b ldr r3, [r7, #4]
  13508. 8006278: 681b ldr r3, [r3, #0]
  13509. 800627a: f022 0201 bic.w r2, r2, #1
  13510. 800627e: 601a str r2, [r3, #0]
  13511. 8006280: e007 b.n 8006292 <HAL_DMA_Abort_IT+0x2b2>
  13512. 8006282: 687b ldr r3, [r7, #4]
  13513. 8006284: 681b ldr r3, [r3, #0]
  13514. 8006286: 681a ldr r2, [r3, #0]
  13515. 8006288: 687b ldr r3, [r7, #4]
  13516. 800628a: 681b ldr r3, [r3, #0]
  13517. 800628c: f022 0201 bic.w r2, r2, #1
  13518. 8006290: 601a str r2, [r3, #0]
  13519. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  13520. 8006292: 687b ldr r3, [r7, #4]
  13521. 8006294: 681b ldr r3, [r3, #0]
  13522. 8006296: 4a3c ldr r2, [pc, #240] @ (8006388 <HAL_DMA_Abort_IT+0x3a8>)
  13523. 8006298: 4293 cmp r3, r2
  13524. 800629a: d072 beq.n 8006382 <HAL_DMA_Abort_IT+0x3a2>
  13525. 800629c: 687b ldr r3, [r7, #4]
  13526. 800629e: 681b ldr r3, [r3, #0]
  13527. 80062a0: 4a3a ldr r2, [pc, #232] @ (800638c <HAL_DMA_Abort_IT+0x3ac>)
  13528. 80062a2: 4293 cmp r3, r2
  13529. 80062a4: d06d beq.n 8006382 <HAL_DMA_Abort_IT+0x3a2>
  13530. 80062a6: 687b ldr r3, [r7, #4]
  13531. 80062a8: 681b ldr r3, [r3, #0]
  13532. 80062aa: 4a39 ldr r2, [pc, #228] @ (8006390 <HAL_DMA_Abort_IT+0x3b0>)
  13533. 80062ac: 4293 cmp r3, r2
  13534. 80062ae: d068 beq.n 8006382 <HAL_DMA_Abort_IT+0x3a2>
  13535. 80062b0: 687b ldr r3, [r7, #4]
  13536. 80062b2: 681b ldr r3, [r3, #0]
  13537. 80062b4: 4a37 ldr r2, [pc, #220] @ (8006394 <HAL_DMA_Abort_IT+0x3b4>)
  13538. 80062b6: 4293 cmp r3, r2
  13539. 80062b8: d063 beq.n 8006382 <HAL_DMA_Abort_IT+0x3a2>
  13540. 80062ba: 687b ldr r3, [r7, #4]
  13541. 80062bc: 681b ldr r3, [r3, #0]
  13542. 80062be: 4a36 ldr r2, [pc, #216] @ (8006398 <HAL_DMA_Abort_IT+0x3b8>)
  13543. 80062c0: 4293 cmp r3, r2
  13544. 80062c2: d05e beq.n 8006382 <HAL_DMA_Abort_IT+0x3a2>
  13545. 80062c4: 687b ldr r3, [r7, #4]
  13546. 80062c6: 681b ldr r3, [r3, #0]
  13547. 80062c8: 4a34 ldr r2, [pc, #208] @ (800639c <HAL_DMA_Abort_IT+0x3bc>)
  13548. 80062ca: 4293 cmp r3, r2
  13549. 80062cc: d059 beq.n 8006382 <HAL_DMA_Abort_IT+0x3a2>
  13550. 80062ce: 687b ldr r3, [r7, #4]
  13551. 80062d0: 681b ldr r3, [r3, #0]
  13552. 80062d2: 4a33 ldr r2, [pc, #204] @ (80063a0 <HAL_DMA_Abort_IT+0x3c0>)
  13553. 80062d4: 4293 cmp r3, r2
  13554. 80062d6: d054 beq.n 8006382 <HAL_DMA_Abort_IT+0x3a2>
  13555. 80062d8: 687b ldr r3, [r7, #4]
  13556. 80062da: 681b ldr r3, [r3, #0]
  13557. 80062dc: 4a31 ldr r2, [pc, #196] @ (80063a4 <HAL_DMA_Abort_IT+0x3c4>)
  13558. 80062de: 4293 cmp r3, r2
  13559. 80062e0: d04f beq.n 8006382 <HAL_DMA_Abort_IT+0x3a2>
  13560. 80062e2: 687b ldr r3, [r7, #4]
  13561. 80062e4: 681b ldr r3, [r3, #0]
  13562. 80062e6: 4a30 ldr r2, [pc, #192] @ (80063a8 <HAL_DMA_Abort_IT+0x3c8>)
  13563. 80062e8: 4293 cmp r3, r2
  13564. 80062ea: d04a beq.n 8006382 <HAL_DMA_Abort_IT+0x3a2>
  13565. 80062ec: 687b ldr r3, [r7, #4]
  13566. 80062ee: 681b ldr r3, [r3, #0]
  13567. 80062f0: 4a2e ldr r2, [pc, #184] @ (80063ac <HAL_DMA_Abort_IT+0x3cc>)
  13568. 80062f2: 4293 cmp r3, r2
  13569. 80062f4: d045 beq.n 8006382 <HAL_DMA_Abort_IT+0x3a2>
  13570. 80062f6: 687b ldr r3, [r7, #4]
  13571. 80062f8: 681b ldr r3, [r3, #0]
  13572. 80062fa: 4a2d ldr r2, [pc, #180] @ (80063b0 <HAL_DMA_Abort_IT+0x3d0>)
  13573. 80062fc: 4293 cmp r3, r2
  13574. 80062fe: d040 beq.n 8006382 <HAL_DMA_Abort_IT+0x3a2>
  13575. 8006300: 687b ldr r3, [r7, #4]
  13576. 8006302: 681b ldr r3, [r3, #0]
  13577. 8006304: 4a2b ldr r2, [pc, #172] @ (80063b4 <HAL_DMA_Abort_IT+0x3d4>)
  13578. 8006306: 4293 cmp r3, r2
  13579. 8006308: d03b beq.n 8006382 <HAL_DMA_Abort_IT+0x3a2>
  13580. 800630a: 687b ldr r3, [r7, #4]
  13581. 800630c: 681b ldr r3, [r3, #0]
  13582. 800630e: 4a2a ldr r2, [pc, #168] @ (80063b8 <HAL_DMA_Abort_IT+0x3d8>)
  13583. 8006310: 4293 cmp r3, r2
  13584. 8006312: d036 beq.n 8006382 <HAL_DMA_Abort_IT+0x3a2>
  13585. 8006314: 687b ldr r3, [r7, #4]
  13586. 8006316: 681b ldr r3, [r3, #0]
  13587. 8006318: 4a28 ldr r2, [pc, #160] @ (80063bc <HAL_DMA_Abort_IT+0x3dc>)
  13588. 800631a: 4293 cmp r3, r2
  13589. 800631c: d031 beq.n 8006382 <HAL_DMA_Abort_IT+0x3a2>
  13590. 800631e: 687b ldr r3, [r7, #4]
  13591. 8006320: 681b ldr r3, [r3, #0]
  13592. 8006322: 4a27 ldr r2, [pc, #156] @ (80063c0 <HAL_DMA_Abort_IT+0x3e0>)
  13593. 8006324: 4293 cmp r3, r2
  13594. 8006326: d02c beq.n 8006382 <HAL_DMA_Abort_IT+0x3a2>
  13595. 8006328: 687b ldr r3, [r7, #4]
  13596. 800632a: 681b ldr r3, [r3, #0]
  13597. 800632c: 4a25 ldr r2, [pc, #148] @ (80063c4 <HAL_DMA_Abort_IT+0x3e4>)
  13598. 800632e: 4293 cmp r3, r2
  13599. 8006330: d027 beq.n 8006382 <HAL_DMA_Abort_IT+0x3a2>
  13600. 8006332: 687b ldr r3, [r7, #4]
  13601. 8006334: 681b ldr r3, [r3, #0]
  13602. 8006336: 4a24 ldr r2, [pc, #144] @ (80063c8 <HAL_DMA_Abort_IT+0x3e8>)
  13603. 8006338: 4293 cmp r3, r2
  13604. 800633a: d022 beq.n 8006382 <HAL_DMA_Abort_IT+0x3a2>
  13605. 800633c: 687b ldr r3, [r7, #4]
  13606. 800633e: 681b ldr r3, [r3, #0]
  13607. 8006340: 4a22 ldr r2, [pc, #136] @ (80063cc <HAL_DMA_Abort_IT+0x3ec>)
  13608. 8006342: 4293 cmp r3, r2
  13609. 8006344: d01d beq.n 8006382 <HAL_DMA_Abort_IT+0x3a2>
  13610. 8006346: 687b ldr r3, [r7, #4]
  13611. 8006348: 681b ldr r3, [r3, #0]
  13612. 800634a: 4a21 ldr r2, [pc, #132] @ (80063d0 <HAL_DMA_Abort_IT+0x3f0>)
  13613. 800634c: 4293 cmp r3, r2
  13614. 800634e: d018 beq.n 8006382 <HAL_DMA_Abort_IT+0x3a2>
  13615. 8006350: 687b ldr r3, [r7, #4]
  13616. 8006352: 681b ldr r3, [r3, #0]
  13617. 8006354: 4a1f ldr r2, [pc, #124] @ (80063d4 <HAL_DMA_Abort_IT+0x3f4>)
  13618. 8006356: 4293 cmp r3, r2
  13619. 8006358: d013 beq.n 8006382 <HAL_DMA_Abort_IT+0x3a2>
  13620. 800635a: 687b ldr r3, [r7, #4]
  13621. 800635c: 681b ldr r3, [r3, #0]
  13622. 800635e: 4a1e ldr r2, [pc, #120] @ (80063d8 <HAL_DMA_Abort_IT+0x3f8>)
  13623. 8006360: 4293 cmp r3, r2
  13624. 8006362: d00e beq.n 8006382 <HAL_DMA_Abort_IT+0x3a2>
  13625. 8006364: 687b ldr r3, [r7, #4]
  13626. 8006366: 681b ldr r3, [r3, #0]
  13627. 8006368: 4a1c ldr r2, [pc, #112] @ (80063dc <HAL_DMA_Abort_IT+0x3fc>)
  13628. 800636a: 4293 cmp r3, r2
  13629. 800636c: d009 beq.n 8006382 <HAL_DMA_Abort_IT+0x3a2>
  13630. 800636e: 687b ldr r3, [r7, #4]
  13631. 8006370: 681b ldr r3, [r3, #0]
  13632. 8006372: 4a1b ldr r2, [pc, #108] @ (80063e0 <HAL_DMA_Abort_IT+0x400>)
  13633. 8006374: 4293 cmp r3, r2
  13634. 8006376: d004 beq.n 8006382 <HAL_DMA_Abort_IT+0x3a2>
  13635. 8006378: 687b ldr r3, [r7, #4]
  13636. 800637a: 681b ldr r3, [r3, #0]
  13637. 800637c: 4a19 ldr r2, [pc, #100] @ (80063e4 <HAL_DMA_Abort_IT+0x404>)
  13638. 800637e: 4293 cmp r3, r2
  13639. 8006380: d132 bne.n 80063e8 <HAL_DMA_Abort_IT+0x408>
  13640. 8006382: 2301 movs r3, #1
  13641. 8006384: e031 b.n 80063ea <HAL_DMA_Abort_IT+0x40a>
  13642. 8006386: bf00 nop
  13643. 8006388: 40020010 .word 0x40020010
  13644. 800638c: 40020028 .word 0x40020028
  13645. 8006390: 40020040 .word 0x40020040
  13646. 8006394: 40020058 .word 0x40020058
  13647. 8006398: 40020070 .word 0x40020070
  13648. 800639c: 40020088 .word 0x40020088
  13649. 80063a0: 400200a0 .word 0x400200a0
  13650. 80063a4: 400200b8 .word 0x400200b8
  13651. 80063a8: 40020410 .word 0x40020410
  13652. 80063ac: 40020428 .word 0x40020428
  13653. 80063b0: 40020440 .word 0x40020440
  13654. 80063b4: 40020458 .word 0x40020458
  13655. 80063b8: 40020470 .word 0x40020470
  13656. 80063bc: 40020488 .word 0x40020488
  13657. 80063c0: 400204a0 .word 0x400204a0
  13658. 80063c4: 400204b8 .word 0x400204b8
  13659. 80063c8: 58025408 .word 0x58025408
  13660. 80063cc: 5802541c .word 0x5802541c
  13661. 80063d0: 58025430 .word 0x58025430
  13662. 80063d4: 58025444 .word 0x58025444
  13663. 80063d8: 58025458 .word 0x58025458
  13664. 80063dc: 5802546c .word 0x5802546c
  13665. 80063e0: 58025480 .word 0x58025480
  13666. 80063e4: 58025494 .word 0x58025494
  13667. 80063e8: 2300 movs r3, #0
  13668. 80063ea: 2b00 cmp r3, #0
  13669. 80063ec: d028 beq.n 8006440 <HAL_DMA_Abort_IT+0x460>
  13670. {
  13671. /* disable the DMAMUX sync overrun IT */
  13672. hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE;
  13673. 80063ee: 687b ldr r3, [r7, #4]
  13674. 80063f0: 6e1b ldr r3, [r3, #96] @ 0x60
  13675. 80063f2: 681a ldr r2, [r3, #0]
  13676. 80063f4: 687b ldr r3, [r7, #4]
  13677. 80063f6: 6e1b ldr r3, [r3, #96] @ 0x60
  13678. 80063f8: f422 7280 bic.w r2, r2, #256 @ 0x100
  13679. 80063fc: 601a str r2, [r3, #0]
  13680. /* Clear all flags */
  13681. regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  13682. 80063fe: 687b ldr r3, [r7, #4]
  13683. 8006400: 6d9b ldr r3, [r3, #88] @ 0x58
  13684. 8006402: 60fb str r3, [r7, #12]
  13685. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  13686. 8006404: 687b ldr r3, [r7, #4]
  13687. 8006406: 6ddb ldr r3, [r3, #92] @ 0x5c
  13688. 8006408: f003 031f and.w r3, r3, #31
  13689. 800640c: 2201 movs r2, #1
  13690. 800640e: 409a lsls r2, r3
  13691. 8006410: 68fb ldr r3, [r7, #12]
  13692. 8006412: 605a str r2, [r3, #4]
  13693. /* Clear the DMAMUX synchro overrun flag */
  13694. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  13695. 8006414: 687b ldr r3, [r7, #4]
  13696. 8006416: 6e5b ldr r3, [r3, #100] @ 0x64
  13697. 8006418: 687a ldr r2, [r7, #4]
  13698. 800641a: 6e92 ldr r2, [r2, #104] @ 0x68
  13699. 800641c: 605a str r2, [r3, #4]
  13700. if(hdma->DMAmuxRequestGen != 0U)
  13701. 800641e: 687b ldr r3, [r7, #4]
  13702. 8006420: 6edb ldr r3, [r3, #108] @ 0x6c
  13703. 8006422: 2b00 cmp r3, #0
  13704. 8006424: d00c beq.n 8006440 <HAL_DMA_Abort_IT+0x460>
  13705. {
  13706. /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT*/
  13707. /* disable the request gen overrun IT */
  13708. hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE;
  13709. 8006426: 687b ldr r3, [r7, #4]
  13710. 8006428: 6edb ldr r3, [r3, #108] @ 0x6c
  13711. 800642a: 681a ldr r2, [r3, #0]
  13712. 800642c: 687b ldr r3, [r7, #4]
  13713. 800642e: 6edb ldr r3, [r3, #108] @ 0x6c
  13714. 8006430: f422 7280 bic.w r2, r2, #256 @ 0x100
  13715. 8006434: 601a str r2, [r3, #0]
  13716. /* Clear the DMAMUX request generator overrun flag */
  13717. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  13718. 8006436: 687b ldr r3, [r7, #4]
  13719. 8006438: 6f1b ldr r3, [r3, #112] @ 0x70
  13720. 800643a: 687a ldr r2, [r7, #4]
  13721. 800643c: 6f52 ldr r2, [r2, #116] @ 0x74
  13722. 800643e: 605a str r2, [r3, #4]
  13723. }
  13724. }
  13725. /* Change the DMA state */
  13726. hdma->State = HAL_DMA_STATE_READY;
  13727. 8006440: 687b ldr r3, [r7, #4]
  13728. 8006442: 2201 movs r2, #1
  13729. 8006444: f883 2035 strb.w r2, [r3, #53] @ 0x35
  13730. /* Process Unlocked */
  13731. __HAL_UNLOCK(hdma);
  13732. 8006448: 687b ldr r3, [r7, #4]
  13733. 800644a: 2200 movs r2, #0
  13734. 800644c: f883 2034 strb.w r2, [r3, #52] @ 0x34
  13735. /* Call User Abort callback */
  13736. if(hdma->XferAbortCallback != NULL)
  13737. 8006450: 687b ldr r3, [r7, #4]
  13738. 8006452: 6d1b ldr r3, [r3, #80] @ 0x50
  13739. 8006454: 2b00 cmp r3, #0
  13740. 8006456: d003 beq.n 8006460 <HAL_DMA_Abort_IT+0x480>
  13741. {
  13742. hdma->XferAbortCallback(hdma);
  13743. 8006458: 687b ldr r3, [r7, #4]
  13744. 800645a: 6d1b ldr r3, [r3, #80] @ 0x50
  13745. 800645c: 6878 ldr r0, [r7, #4]
  13746. 800645e: 4798 blx r3
  13747. }
  13748. }
  13749. }
  13750. return HAL_OK;
  13751. 8006460: 2300 movs r3, #0
  13752. }
  13753. 8006462: 4618 mov r0, r3
  13754. 8006464: 3710 adds r7, #16
  13755. 8006466: 46bd mov sp, r7
  13756. 8006468: bd80 pop {r7, pc}
  13757. 800646a: bf00 nop
  13758. 0800646c <HAL_DMA_IRQHandler>:
  13759. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  13760. * the configuration information for the specified DMA Stream.
  13761. * @retval None
  13762. */
  13763. void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma)
  13764. {
  13765. 800646c: b580 push {r7, lr}
  13766. 800646e: b08a sub sp, #40 @ 0x28
  13767. 8006470: af00 add r7, sp, #0
  13768. 8006472: 6078 str r0, [r7, #4]
  13769. uint32_t tmpisr_dma, tmpisr_bdma;
  13770. uint32_t ccr_reg;
  13771. __IO uint32_t count = 0U;
  13772. 8006474: 2300 movs r3, #0
  13773. 8006476: 60fb str r3, [r7, #12]
  13774. uint32_t timeout = SystemCoreClock / 9600U;
  13775. 8006478: 4b67 ldr r3, [pc, #412] @ (8006618 <HAL_DMA_IRQHandler+0x1ac>)
  13776. 800647a: 681b ldr r3, [r3, #0]
  13777. 800647c: 4a67 ldr r2, [pc, #412] @ (800661c <HAL_DMA_IRQHandler+0x1b0>)
  13778. 800647e: fba2 2303 umull r2, r3, r2, r3
  13779. 8006482: 0a9b lsrs r3, r3, #10
  13780. 8006484: 627b str r3, [r7, #36] @ 0x24
  13781. /* calculate DMA base and stream number */
  13782. DMA_Base_Registers *regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  13783. 8006486: 687b ldr r3, [r7, #4]
  13784. 8006488: 6d9b ldr r3, [r3, #88] @ 0x58
  13785. 800648a: 623b str r3, [r7, #32]
  13786. BDMA_Base_Registers *regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  13787. 800648c: 687b ldr r3, [r7, #4]
  13788. 800648e: 6d9b ldr r3, [r3, #88] @ 0x58
  13789. 8006490: 61fb str r3, [r7, #28]
  13790. tmpisr_dma = regs_dma->ISR;
  13791. 8006492: 6a3b ldr r3, [r7, #32]
  13792. 8006494: 681b ldr r3, [r3, #0]
  13793. 8006496: 61bb str r3, [r7, #24]
  13794. tmpisr_bdma = regs_bdma->ISR;
  13795. 8006498: 69fb ldr r3, [r7, #28]
  13796. 800649a: 681b ldr r3, [r3, #0]
  13797. 800649c: 617b str r3, [r7, #20]
  13798. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  13799. 800649e: 687b ldr r3, [r7, #4]
  13800. 80064a0: 681b ldr r3, [r3, #0]
  13801. 80064a2: 4a5f ldr r2, [pc, #380] @ (8006620 <HAL_DMA_IRQHandler+0x1b4>)
  13802. 80064a4: 4293 cmp r3, r2
  13803. 80064a6: d04a beq.n 800653e <HAL_DMA_IRQHandler+0xd2>
  13804. 80064a8: 687b ldr r3, [r7, #4]
  13805. 80064aa: 681b ldr r3, [r3, #0]
  13806. 80064ac: 4a5d ldr r2, [pc, #372] @ (8006624 <HAL_DMA_IRQHandler+0x1b8>)
  13807. 80064ae: 4293 cmp r3, r2
  13808. 80064b0: d045 beq.n 800653e <HAL_DMA_IRQHandler+0xd2>
  13809. 80064b2: 687b ldr r3, [r7, #4]
  13810. 80064b4: 681b ldr r3, [r3, #0]
  13811. 80064b6: 4a5c ldr r2, [pc, #368] @ (8006628 <HAL_DMA_IRQHandler+0x1bc>)
  13812. 80064b8: 4293 cmp r3, r2
  13813. 80064ba: d040 beq.n 800653e <HAL_DMA_IRQHandler+0xd2>
  13814. 80064bc: 687b ldr r3, [r7, #4]
  13815. 80064be: 681b ldr r3, [r3, #0]
  13816. 80064c0: 4a5a ldr r2, [pc, #360] @ (800662c <HAL_DMA_IRQHandler+0x1c0>)
  13817. 80064c2: 4293 cmp r3, r2
  13818. 80064c4: d03b beq.n 800653e <HAL_DMA_IRQHandler+0xd2>
  13819. 80064c6: 687b ldr r3, [r7, #4]
  13820. 80064c8: 681b ldr r3, [r3, #0]
  13821. 80064ca: 4a59 ldr r2, [pc, #356] @ (8006630 <HAL_DMA_IRQHandler+0x1c4>)
  13822. 80064cc: 4293 cmp r3, r2
  13823. 80064ce: d036 beq.n 800653e <HAL_DMA_IRQHandler+0xd2>
  13824. 80064d0: 687b ldr r3, [r7, #4]
  13825. 80064d2: 681b ldr r3, [r3, #0]
  13826. 80064d4: 4a57 ldr r2, [pc, #348] @ (8006634 <HAL_DMA_IRQHandler+0x1c8>)
  13827. 80064d6: 4293 cmp r3, r2
  13828. 80064d8: d031 beq.n 800653e <HAL_DMA_IRQHandler+0xd2>
  13829. 80064da: 687b ldr r3, [r7, #4]
  13830. 80064dc: 681b ldr r3, [r3, #0]
  13831. 80064de: 4a56 ldr r2, [pc, #344] @ (8006638 <HAL_DMA_IRQHandler+0x1cc>)
  13832. 80064e0: 4293 cmp r3, r2
  13833. 80064e2: d02c beq.n 800653e <HAL_DMA_IRQHandler+0xd2>
  13834. 80064e4: 687b ldr r3, [r7, #4]
  13835. 80064e6: 681b ldr r3, [r3, #0]
  13836. 80064e8: 4a54 ldr r2, [pc, #336] @ (800663c <HAL_DMA_IRQHandler+0x1d0>)
  13837. 80064ea: 4293 cmp r3, r2
  13838. 80064ec: d027 beq.n 800653e <HAL_DMA_IRQHandler+0xd2>
  13839. 80064ee: 687b ldr r3, [r7, #4]
  13840. 80064f0: 681b ldr r3, [r3, #0]
  13841. 80064f2: 4a53 ldr r2, [pc, #332] @ (8006640 <HAL_DMA_IRQHandler+0x1d4>)
  13842. 80064f4: 4293 cmp r3, r2
  13843. 80064f6: d022 beq.n 800653e <HAL_DMA_IRQHandler+0xd2>
  13844. 80064f8: 687b ldr r3, [r7, #4]
  13845. 80064fa: 681b ldr r3, [r3, #0]
  13846. 80064fc: 4a51 ldr r2, [pc, #324] @ (8006644 <HAL_DMA_IRQHandler+0x1d8>)
  13847. 80064fe: 4293 cmp r3, r2
  13848. 8006500: d01d beq.n 800653e <HAL_DMA_IRQHandler+0xd2>
  13849. 8006502: 687b ldr r3, [r7, #4]
  13850. 8006504: 681b ldr r3, [r3, #0]
  13851. 8006506: 4a50 ldr r2, [pc, #320] @ (8006648 <HAL_DMA_IRQHandler+0x1dc>)
  13852. 8006508: 4293 cmp r3, r2
  13853. 800650a: d018 beq.n 800653e <HAL_DMA_IRQHandler+0xd2>
  13854. 800650c: 687b ldr r3, [r7, #4]
  13855. 800650e: 681b ldr r3, [r3, #0]
  13856. 8006510: 4a4e ldr r2, [pc, #312] @ (800664c <HAL_DMA_IRQHandler+0x1e0>)
  13857. 8006512: 4293 cmp r3, r2
  13858. 8006514: d013 beq.n 800653e <HAL_DMA_IRQHandler+0xd2>
  13859. 8006516: 687b ldr r3, [r7, #4]
  13860. 8006518: 681b ldr r3, [r3, #0]
  13861. 800651a: 4a4d ldr r2, [pc, #308] @ (8006650 <HAL_DMA_IRQHandler+0x1e4>)
  13862. 800651c: 4293 cmp r3, r2
  13863. 800651e: d00e beq.n 800653e <HAL_DMA_IRQHandler+0xd2>
  13864. 8006520: 687b ldr r3, [r7, #4]
  13865. 8006522: 681b ldr r3, [r3, #0]
  13866. 8006524: 4a4b ldr r2, [pc, #300] @ (8006654 <HAL_DMA_IRQHandler+0x1e8>)
  13867. 8006526: 4293 cmp r3, r2
  13868. 8006528: d009 beq.n 800653e <HAL_DMA_IRQHandler+0xd2>
  13869. 800652a: 687b ldr r3, [r7, #4]
  13870. 800652c: 681b ldr r3, [r3, #0]
  13871. 800652e: 4a4a ldr r2, [pc, #296] @ (8006658 <HAL_DMA_IRQHandler+0x1ec>)
  13872. 8006530: 4293 cmp r3, r2
  13873. 8006532: d004 beq.n 800653e <HAL_DMA_IRQHandler+0xd2>
  13874. 8006534: 687b ldr r3, [r7, #4]
  13875. 8006536: 681b ldr r3, [r3, #0]
  13876. 8006538: 4a48 ldr r2, [pc, #288] @ (800665c <HAL_DMA_IRQHandler+0x1f0>)
  13877. 800653a: 4293 cmp r3, r2
  13878. 800653c: d101 bne.n 8006542 <HAL_DMA_IRQHandler+0xd6>
  13879. 800653e: 2301 movs r3, #1
  13880. 8006540: e000 b.n 8006544 <HAL_DMA_IRQHandler+0xd8>
  13881. 8006542: 2300 movs r3, #0
  13882. 8006544: 2b00 cmp r3, #0
  13883. 8006546: f000 842b beq.w 8006da0 <HAL_DMA_IRQHandler+0x934>
  13884. {
  13885. /* Transfer Error Interrupt management ***************************************/
  13886. if ((tmpisr_dma & (DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  13887. 800654a: 687b ldr r3, [r7, #4]
  13888. 800654c: 6ddb ldr r3, [r3, #92] @ 0x5c
  13889. 800654e: f003 031f and.w r3, r3, #31
  13890. 8006552: 2208 movs r2, #8
  13891. 8006554: 409a lsls r2, r3
  13892. 8006556: 69bb ldr r3, [r7, #24]
  13893. 8006558: 4013 ands r3, r2
  13894. 800655a: 2b00 cmp r3, #0
  13895. 800655c: f000 80a2 beq.w 80066a4 <HAL_DMA_IRQHandler+0x238>
  13896. {
  13897. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TE) != 0U)
  13898. 8006560: 687b ldr r3, [r7, #4]
  13899. 8006562: 681b ldr r3, [r3, #0]
  13900. 8006564: 4a2e ldr r2, [pc, #184] @ (8006620 <HAL_DMA_IRQHandler+0x1b4>)
  13901. 8006566: 4293 cmp r3, r2
  13902. 8006568: d04a beq.n 8006600 <HAL_DMA_IRQHandler+0x194>
  13903. 800656a: 687b ldr r3, [r7, #4]
  13904. 800656c: 681b ldr r3, [r3, #0]
  13905. 800656e: 4a2d ldr r2, [pc, #180] @ (8006624 <HAL_DMA_IRQHandler+0x1b8>)
  13906. 8006570: 4293 cmp r3, r2
  13907. 8006572: d045 beq.n 8006600 <HAL_DMA_IRQHandler+0x194>
  13908. 8006574: 687b ldr r3, [r7, #4]
  13909. 8006576: 681b ldr r3, [r3, #0]
  13910. 8006578: 4a2b ldr r2, [pc, #172] @ (8006628 <HAL_DMA_IRQHandler+0x1bc>)
  13911. 800657a: 4293 cmp r3, r2
  13912. 800657c: d040 beq.n 8006600 <HAL_DMA_IRQHandler+0x194>
  13913. 800657e: 687b ldr r3, [r7, #4]
  13914. 8006580: 681b ldr r3, [r3, #0]
  13915. 8006582: 4a2a ldr r2, [pc, #168] @ (800662c <HAL_DMA_IRQHandler+0x1c0>)
  13916. 8006584: 4293 cmp r3, r2
  13917. 8006586: d03b beq.n 8006600 <HAL_DMA_IRQHandler+0x194>
  13918. 8006588: 687b ldr r3, [r7, #4]
  13919. 800658a: 681b ldr r3, [r3, #0]
  13920. 800658c: 4a28 ldr r2, [pc, #160] @ (8006630 <HAL_DMA_IRQHandler+0x1c4>)
  13921. 800658e: 4293 cmp r3, r2
  13922. 8006590: d036 beq.n 8006600 <HAL_DMA_IRQHandler+0x194>
  13923. 8006592: 687b ldr r3, [r7, #4]
  13924. 8006594: 681b ldr r3, [r3, #0]
  13925. 8006596: 4a27 ldr r2, [pc, #156] @ (8006634 <HAL_DMA_IRQHandler+0x1c8>)
  13926. 8006598: 4293 cmp r3, r2
  13927. 800659a: d031 beq.n 8006600 <HAL_DMA_IRQHandler+0x194>
  13928. 800659c: 687b ldr r3, [r7, #4]
  13929. 800659e: 681b ldr r3, [r3, #0]
  13930. 80065a0: 4a25 ldr r2, [pc, #148] @ (8006638 <HAL_DMA_IRQHandler+0x1cc>)
  13931. 80065a2: 4293 cmp r3, r2
  13932. 80065a4: d02c beq.n 8006600 <HAL_DMA_IRQHandler+0x194>
  13933. 80065a6: 687b ldr r3, [r7, #4]
  13934. 80065a8: 681b ldr r3, [r3, #0]
  13935. 80065aa: 4a24 ldr r2, [pc, #144] @ (800663c <HAL_DMA_IRQHandler+0x1d0>)
  13936. 80065ac: 4293 cmp r3, r2
  13937. 80065ae: d027 beq.n 8006600 <HAL_DMA_IRQHandler+0x194>
  13938. 80065b0: 687b ldr r3, [r7, #4]
  13939. 80065b2: 681b ldr r3, [r3, #0]
  13940. 80065b4: 4a22 ldr r2, [pc, #136] @ (8006640 <HAL_DMA_IRQHandler+0x1d4>)
  13941. 80065b6: 4293 cmp r3, r2
  13942. 80065b8: d022 beq.n 8006600 <HAL_DMA_IRQHandler+0x194>
  13943. 80065ba: 687b ldr r3, [r7, #4]
  13944. 80065bc: 681b ldr r3, [r3, #0]
  13945. 80065be: 4a21 ldr r2, [pc, #132] @ (8006644 <HAL_DMA_IRQHandler+0x1d8>)
  13946. 80065c0: 4293 cmp r3, r2
  13947. 80065c2: d01d beq.n 8006600 <HAL_DMA_IRQHandler+0x194>
  13948. 80065c4: 687b ldr r3, [r7, #4]
  13949. 80065c6: 681b ldr r3, [r3, #0]
  13950. 80065c8: 4a1f ldr r2, [pc, #124] @ (8006648 <HAL_DMA_IRQHandler+0x1dc>)
  13951. 80065ca: 4293 cmp r3, r2
  13952. 80065cc: d018 beq.n 8006600 <HAL_DMA_IRQHandler+0x194>
  13953. 80065ce: 687b ldr r3, [r7, #4]
  13954. 80065d0: 681b ldr r3, [r3, #0]
  13955. 80065d2: 4a1e ldr r2, [pc, #120] @ (800664c <HAL_DMA_IRQHandler+0x1e0>)
  13956. 80065d4: 4293 cmp r3, r2
  13957. 80065d6: d013 beq.n 8006600 <HAL_DMA_IRQHandler+0x194>
  13958. 80065d8: 687b ldr r3, [r7, #4]
  13959. 80065da: 681b ldr r3, [r3, #0]
  13960. 80065dc: 4a1c ldr r2, [pc, #112] @ (8006650 <HAL_DMA_IRQHandler+0x1e4>)
  13961. 80065de: 4293 cmp r3, r2
  13962. 80065e0: d00e beq.n 8006600 <HAL_DMA_IRQHandler+0x194>
  13963. 80065e2: 687b ldr r3, [r7, #4]
  13964. 80065e4: 681b ldr r3, [r3, #0]
  13965. 80065e6: 4a1b ldr r2, [pc, #108] @ (8006654 <HAL_DMA_IRQHandler+0x1e8>)
  13966. 80065e8: 4293 cmp r3, r2
  13967. 80065ea: d009 beq.n 8006600 <HAL_DMA_IRQHandler+0x194>
  13968. 80065ec: 687b ldr r3, [r7, #4]
  13969. 80065ee: 681b ldr r3, [r3, #0]
  13970. 80065f0: 4a19 ldr r2, [pc, #100] @ (8006658 <HAL_DMA_IRQHandler+0x1ec>)
  13971. 80065f2: 4293 cmp r3, r2
  13972. 80065f4: d004 beq.n 8006600 <HAL_DMA_IRQHandler+0x194>
  13973. 80065f6: 687b ldr r3, [r7, #4]
  13974. 80065f8: 681b ldr r3, [r3, #0]
  13975. 80065fa: 4a18 ldr r2, [pc, #96] @ (800665c <HAL_DMA_IRQHandler+0x1f0>)
  13976. 80065fc: 4293 cmp r3, r2
  13977. 80065fe: d12f bne.n 8006660 <HAL_DMA_IRQHandler+0x1f4>
  13978. 8006600: 687b ldr r3, [r7, #4]
  13979. 8006602: 681b ldr r3, [r3, #0]
  13980. 8006604: 681b ldr r3, [r3, #0]
  13981. 8006606: f003 0304 and.w r3, r3, #4
  13982. 800660a: 2b00 cmp r3, #0
  13983. 800660c: bf14 ite ne
  13984. 800660e: 2301 movne r3, #1
  13985. 8006610: 2300 moveq r3, #0
  13986. 8006612: b2db uxtb r3, r3
  13987. 8006614: e02e b.n 8006674 <HAL_DMA_IRQHandler+0x208>
  13988. 8006616: bf00 nop
  13989. 8006618: 2400000c .word 0x2400000c
  13990. 800661c: 1b4e81b5 .word 0x1b4e81b5
  13991. 8006620: 40020010 .word 0x40020010
  13992. 8006624: 40020028 .word 0x40020028
  13993. 8006628: 40020040 .word 0x40020040
  13994. 800662c: 40020058 .word 0x40020058
  13995. 8006630: 40020070 .word 0x40020070
  13996. 8006634: 40020088 .word 0x40020088
  13997. 8006638: 400200a0 .word 0x400200a0
  13998. 800663c: 400200b8 .word 0x400200b8
  13999. 8006640: 40020410 .word 0x40020410
  14000. 8006644: 40020428 .word 0x40020428
  14001. 8006648: 40020440 .word 0x40020440
  14002. 800664c: 40020458 .word 0x40020458
  14003. 8006650: 40020470 .word 0x40020470
  14004. 8006654: 40020488 .word 0x40020488
  14005. 8006658: 400204a0 .word 0x400204a0
  14006. 800665c: 400204b8 .word 0x400204b8
  14007. 8006660: 687b ldr r3, [r7, #4]
  14008. 8006662: 681b ldr r3, [r3, #0]
  14009. 8006664: 681b ldr r3, [r3, #0]
  14010. 8006666: f003 0308 and.w r3, r3, #8
  14011. 800666a: 2b00 cmp r3, #0
  14012. 800666c: bf14 ite ne
  14013. 800666e: 2301 movne r3, #1
  14014. 8006670: 2300 moveq r3, #0
  14015. 8006672: b2db uxtb r3, r3
  14016. 8006674: 2b00 cmp r3, #0
  14017. 8006676: d015 beq.n 80066a4 <HAL_DMA_IRQHandler+0x238>
  14018. {
  14019. /* Disable the transfer error interrupt */
  14020. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TE);
  14021. 8006678: 687b ldr r3, [r7, #4]
  14022. 800667a: 681b ldr r3, [r3, #0]
  14023. 800667c: 681a ldr r2, [r3, #0]
  14024. 800667e: 687b ldr r3, [r7, #4]
  14025. 8006680: 681b ldr r3, [r3, #0]
  14026. 8006682: f022 0204 bic.w r2, r2, #4
  14027. 8006686: 601a str r2, [r3, #0]
  14028. /* Clear the transfer error flag */
  14029. regs_dma->IFCR = DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU);
  14030. 8006688: 687b ldr r3, [r7, #4]
  14031. 800668a: 6ddb ldr r3, [r3, #92] @ 0x5c
  14032. 800668c: f003 031f and.w r3, r3, #31
  14033. 8006690: 2208 movs r2, #8
  14034. 8006692: 409a lsls r2, r3
  14035. 8006694: 6a3b ldr r3, [r7, #32]
  14036. 8006696: 609a str r2, [r3, #8]
  14037. /* Update error code */
  14038. hdma->ErrorCode |= HAL_DMA_ERROR_TE;
  14039. 8006698: 687b ldr r3, [r7, #4]
  14040. 800669a: 6d5b ldr r3, [r3, #84] @ 0x54
  14041. 800669c: f043 0201 orr.w r2, r3, #1
  14042. 80066a0: 687b ldr r3, [r7, #4]
  14043. 80066a2: 655a str r2, [r3, #84] @ 0x54
  14044. }
  14045. }
  14046. /* FIFO Error Interrupt management ******************************************/
  14047. if ((tmpisr_dma & (DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  14048. 80066a4: 687b ldr r3, [r7, #4]
  14049. 80066a6: 6ddb ldr r3, [r3, #92] @ 0x5c
  14050. 80066a8: f003 031f and.w r3, r3, #31
  14051. 80066ac: 69ba ldr r2, [r7, #24]
  14052. 80066ae: fa22 f303 lsr.w r3, r2, r3
  14053. 80066b2: f003 0301 and.w r3, r3, #1
  14054. 80066b6: 2b00 cmp r3, #0
  14055. 80066b8: d06e beq.n 8006798 <HAL_DMA_IRQHandler+0x32c>
  14056. {
  14057. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_FE) != 0U)
  14058. 80066ba: 687b ldr r3, [r7, #4]
  14059. 80066bc: 681b ldr r3, [r3, #0]
  14060. 80066be: 4a69 ldr r2, [pc, #420] @ (8006864 <HAL_DMA_IRQHandler+0x3f8>)
  14061. 80066c0: 4293 cmp r3, r2
  14062. 80066c2: d04a beq.n 800675a <HAL_DMA_IRQHandler+0x2ee>
  14063. 80066c4: 687b ldr r3, [r7, #4]
  14064. 80066c6: 681b ldr r3, [r3, #0]
  14065. 80066c8: 4a67 ldr r2, [pc, #412] @ (8006868 <HAL_DMA_IRQHandler+0x3fc>)
  14066. 80066ca: 4293 cmp r3, r2
  14067. 80066cc: d045 beq.n 800675a <HAL_DMA_IRQHandler+0x2ee>
  14068. 80066ce: 687b ldr r3, [r7, #4]
  14069. 80066d0: 681b ldr r3, [r3, #0]
  14070. 80066d2: 4a66 ldr r2, [pc, #408] @ (800686c <HAL_DMA_IRQHandler+0x400>)
  14071. 80066d4: 4293 cmp r3, r2
  14072. 80066d6: d040 beq.n 800675a <HAL_DMA_IRQHandler+0x2ee>
  14073. 80066d8: 687b ldr r3, [r7, #4]
  14074. 80066da: 681b ldr r3, [r3, #0]
  14075. 80066dc: 4a64 ldr r2, [pc, #400] @ (8006870 <HAL_DMA_IRQHandler+0x404>)
  14076. 80066de: 4293 cmp r3, r2
  14077. 80066e0: d03b beq.n 800675a <HAL_DMA_IRQHandler+0x2ee>
  14078. 80066e2: 687b ldr r3, [r7, #4]
  14079. 80066e4: 681b ldr r3, [r3, #0]
  14080. 80066e6: 4a63 ldr r2, [pc, #396] @ (8006874 <HAL_DMA_IRQHandler+0x408>)
  14081. 80066e8: 4293 cmp r3, r2
  14082. 80066ea: d036 beq.n 800675a <HAL_DMA_IRQHandler+0x2ee>
  14083. 80066ec: 687b ldr r3, [r7, #4]
  14084. 80066ee: 681b ldr r3, [r3, #0]
  14085. 80066f0: 4a61 ldr r2, [pc, #388] @ (8006878 <HAL_DMA_IRQHandler+0x40c>)
  14086. 80066f2: 4293 cmp r3, r2
  14087. 80066f4: d031 beq.n 800675a <HAL_DMA_IRQHandler+0x2ee>
  14088. 80066f6: 687b ldr r3, [r7, #4]
  14089. 80066f8: 681b ldr r3, [r3, #0]
  14090. 80066fa: 4a60 ldr r2, [pc, #384] @ (800687c <HAL_DMA_IRQHandler+0x410>)
  14091. 80066fc: 4293 cmp r3, r2
  14092. 80066fe: d02c beq.n 800675a <HAL_DMA_IRQHandler+0x2ee>
  14093. 8006700: 687b ldr r3, [r7, #4]
  14094. 8006702: 681b ldr r3, [r3, #0]
  14095. 8006704: 4a5e ldr r2, [pc, #376] @ (8006880 <HAL_DMA_IRQHandler+0x414>)
  14096. 8006706: 4293 cmp r3, r2
  14097. 8006708: d027 beq.n 800675a <HAL_DMA_IRQHandler+0x2ee>
  14098. 800670a: 687b ldr r3, [r7, #4]
  14099. 800670c: 681b ldr r3, [r3, #0]
  14100. 800670e: 4a5d ldr r2, [pc, #372] @ (8006884 <HAL_DMA_IRQHandler+0x418>)
  14101. 8006710: 4293 cmp r3, r2
  14102. 8006712: d022 beq.n 800675a <HAL_DMA_IRQHandler+0x2ee>
  14103. 8006714: 687b ldr r3, [r7, #4]
  14104. 8006716: 681b ldr r3, [r3, #0]
  14105. 8006718: 4a5b ldr r2, [pc, #364] @ (8006888 <HAL_DMA_IRQHandler+0x41c>)
  14106. 800671a: 4293 cmp r3, r2
  14107. 800671c: d01d beq.n 800675a <HAL_DMA_IRQHandler+0x2ee>
  14108. 800671e: 687b ldr r3, [r7, #4]
  14109. 8006720: 681b ldr r3, [r3, #0]
  14110. 8006722: 4a5a ldr r2, [pc, #360] @ (800688c <HAL_DMA_IRQHandler+0x420>)
  14111. 8006724: 4293 cmp r3, r2
  14112. 8006726: d018 beq.n 800675a <HAL_DMA_IRQHandler+0x2ee>
  14113. 8006728: 687b ldr r3, [r7, #4]
  14114. 800672a: 681b ldr r3, [r3, #0]
  14115. 800672c: 4a58 ldr r2, [pc, #352] @ (8006890 <HAL_DMA_IRQHandler+0x424>)
  14116. 800672e: 4293 cmp r3, r2
  14117. 8006730: d013 beq.n 800675a <HAL_DMA_IRQHandler+0x2ee>
  14118. 8006732: 687b ldr r3, [r7, #4]
  14119. 8006734: 681b ldr r3, [r3, #0]
  14120. 8006736: 4a57 ldr r2, [pc, #348] @ (8006894 <HAL_DMA_IRQHandler+0x428>)
  14121. 8006738: 4293 cmp r3, r2
  14122. 800673a: d00e beq.n 800675a <HAL_DMA_IRQHandler+0x2ee>
  14123. 800673c: 687b ldr r3, [r7, #4]
  14124. 800673e: 681b ldr r3, [r3, #0]
  14125. 8006740: 4a55 ldr r2, [pc, #340] @ (8006898 <HAL_DMA_IRQHandler+0x42c>)
  14126. 8006742: 4293 cmp r3, r2
  14127. 8006744: d009 beq.n 800675a <HAL_DMA_IRQHandler+0x2ee>
  14128. 8006746: 687b ldr r3, [r7, #4]
  14129. 8006748: 681b ldr r3, [r3, #0]
  14130. 800674a: 4a54 ldr r2, [pc, #336] @ (800689c <HAL_DMA_IRQHandler+0x430>)
  14131. 800674c: 4293 cmp r3, r2
  14132. 800674e: d004 beq.n 800675a <HAL_DMA_IRQHandler+0x2ee>
  14133. 8006750: 687b ldr r3, [r7, #4]
  14134. 8006752: 681b ldr r3, [r3, #0]
  14135. 8006754: 4a52 ldr r2, [pc, #328] @ (80068a0 <HAL_DMA_IRQHandler+0x434>)
  14136. 8006756: 4293 cmp r3, r2
  14137. 8006758: d10a bne.n 8006770 <HAL_DMA_IRQHandler+0x304>
  14138. 800675a: 687b ldr r3, [r7, #4]
  14139. 800675c: 681b ldr r3, [r3, #0]
  14140. 800675e: 695b ldr r3, [r3, #20]
  14141. 8006760: f003 0380 and.w r3, r3, #128 @ 0x80
  14142. 8006764: 2b00 cmp r3, #0
  14143. 8006766: bf14 ite ne
  14144. 8006768: 2301 movne r3, #1
  14145. 800676a: 2300 moveq r3, #0
  14146. 800676c: b2db uxtb r3, r3
  14147. 800676e: e003 b.n 8006778 <HAL_DMA_IRQHandler+0x30c>
  14148. 8006770: 687b ldr r3, [r7, #4]
  14149. 8006772: 681b ldr r3, [r3, #0]
  14150. 8006774: 681b ldr r3, [r3, #0]
  14151. 8006776: 2300 movs r3, #0
  14152. 8006778: 2b00 cmp r3, #0
  14153. 800677a: d00d beq.n 8006798 <HAL_DMA_IRQHandler+0x32c>
  14154. {
  14155. /* Clear the FIFO error flag */
  14156. regs_dma->IFCR = DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU);
  14157. 800677c: 687b ldr r3, [r7, #4]
  14158. 800677e: 6ddb ldr r3, [r3, #92] @ 0x5c
  14159. 8006780: f003 031f and.w r3, r3, #31
  14160. 8006784: 2201 movs r2, #1
  14161. 8006786: 409a lsls r2, r3
  14162. 8006788: 6a3b ldr r3, [r7, #32]
  14163. 800678a: 609a str r2, [r3, #8]
  14164. /* Update error code */
  14165. hdma->ErrorCode |= HAL_DMA_ERROR_FE;
  14166. 800678c: 687b ldr r3, [r7, #4]
  14167. 800678e: 6d5b ldr r3, [r3, #84] @ 0x54
  14168. 8006790: f043 0202 orr.w r2, r3, #2
  14169. 8006794: 687b ldr r3, [r7, #4]
  14170. 8006796: 655a str r2, [r3, #84] @ 0x54
  14171. }
  14172. }
  14173. /* Direct Mode Error Interrupt management ***********************************/
  14174. if ((tmpisr_dma & (DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  14175. 8006798: 687b ldr r3, [r7, #4]
  14176. 800679a: 6ddb ldr r3, [r3, #92] @ 0x5c
  14177. 800679c: f003 031f and.w r3, r3, #31
  14178. 80067a0: 2204 movs r2, #4
  14179. 80067a2: 409a lsls r2, r3
  14180. 80067a4: 69bb ldr r3, [r7, #24]
  14181. 80067a6: 4013 ands r3, r2
  14182. 80067a8: 2b00 cmp r3, #0
  14183. 80067aa: f000 808f beq.w 80068cc <HAL_DMA_IRQHandler+0x460>
  14184. {
  14185. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_DME) != 0U)
  14186. 80067ae: 687b ldr r3, [r7, #4]
  14187. 80067b0: 681b ldr r3, [r3, #0]
  14188. 80067b2: 4a2c ldr r2, [pc, #176] @ (8006864 <HAL_DMA_IRQHandler+0x3f8>)
  14189. 80067b4: 4293 cmp r3, r2
  14190. 80067b6: d04a beq.n 800684e <HAL_DMA_IRQHandler+0x3e2>
  14191. 80067b8: 687b ldr r3, [r7, #4]
  14192. 80067ba: 681b ldr r3, [r3, #0]
  14193. 80067bc: 4a2a ldr r2, [pc, #168] @ (8006868 <HAL_DMA_IRQHandler+0x3fc>)
  14194. 80067be: 4293 cmp r3, r2
  14195. 80067c0: d045 beq.n 800684e <HAL_DMA_IRQHandler+0x3e2>
  14196. 80067c2: 687b ldr r3, [r7, #4]
  14197. 80067c4: 681b ldr r3, [r3, #0]
  14198. 80067c6: 4a29 ldr r2, [pc, #164] @ (800686c <HAL_DMA_IRQHandler+0x400>)
  14199. 80067c8: 4293 cmp r3, r2
  14200. 80067ca: d040 beq.n 800684e <HAL_DMA_IRQHandler+0x3e2>
  14201. 80067cc: 687b ldr r3, [r7, #4]
  14202. 80067ce: 681b ldr r3, [r3, #0]
  14203. 80067d0: 4a27 ldr r2, [pc, #156] @ (8006870 <HAL_DMA_IRQHandler+0x404>)
  14204. 80067d2: 4293 cmp r3, r2
  14205. 80067d4: d03b beq.n 800684e <HAL_DMA_IRQHandler+0x3e2>
  14206. 80067d6: 687b ldr r3, [r7, #4]
  14207. 80067d8: 681b ldr r3, [r3, #0]
  14208. 80067da: 4a26 ldr r2, [pc, #152] @ (8006874 <HAL_DMA_IRQHandler+0x408>)
  14209. 80067dc: 4293 cmp r3, r2
  14210. 80067de: d036 beq.n 800684e <HAL_DMA_IRQHandler+0x3e2>
  14211. 80067e0: 687b ldr r3, [r7, #4]
  14212. 80067e2: 681b ldr r3, [r3, #0]
  14213. 80067e4: 4a24 ldr r2, [pc, #144] @ (8006878 <HAL_DMA_IRQHandler+0x40c>)
  14214. 80067e6: 4293 cmp r3, r2
  14215. 80067e8: d031 beq.n 800684e <HAL_DMA_IRQHandler+0x3e2>
  14216. 80067ea: 687b ldr r3, [r7, #4]
  14217. 80067ec: 681b ldr r3, [r3, #0]
  14218. 80067ee: 4a23 ldr r2, [pc, #140] @ (800687c <HAL_DMA_IRQHandler+0x410>)
  14219. 80067f0: 4293 cmp r3, r2
  14220. 80067f2: d02c beq.n 800684e <HAL_DMA_IRQHandler+0x3e2>
  14221. 80067f4: 687b ldr r3, [r7, #4]
  14222. 80067f6: 681b ldr r3, [r3, #0]
  14223. 80067f8: 4a21 ldr r2, [pc, #132] @ (8006880 <HAL_DMA_IRQHandler+0x414>)
  14224. 80067fa: 4293 cmp r3, r2
  14225. 80067fc: d027 beq.n 800684e <HAL_DMA_IRQHandler+0x3e2>
  14226. 80067fe: 687b ldr r3, [r7, #4]
  14227. 8006800: 681b ldr r3, [r3, #0]
  14228. 8006802: 4a20 ldr r2, [pc, #128] @ (8006884 <HAL_DMA_IRQHandler+0x418>)
  14229. 8006804: 4293 cmp r3, r2
  14230. 8006806: d022 beq.n 800684e <HAL_DMA_IRQHandler+0x3e2>
  14231. 8006808: 687b ldr r3, [r7, #4]
  14232. 800680a: 681b ldr r3, [r3, #0]
  14233. 800680c: 4a1e ldr r2, [pc, #120] @ (8006888 <HAL_DMA_IRQHandler+0x41c>)
  14234. 800680e: 4293 cmp r3, r2
  14235. 8006810: d01d beq.n 800684e <HAL_DMA_IRQHandler+0x3e2>
  14236. 8006812: 687b ldr r3, [r7, #4]
  14237. 8006814: 681b ldr r3, [r3, #0]
  14238. 8006816: 4a1d ldr r2, [pc, #116] @ (800688c <HAL_DMA_IRQHandler+0x420>)
  14239. 8006818: 4293 cmp r3, r2
  14240. 800681a: d018 beq.n 800684e <HAL_DMA_IRQHandler+0x3e2>
  14241. 800681c: 687b ldr r3, [r7, #4]
  14242. 800681e: 681b ldr r3, [r3, #0]
  14243. 8006820: 4a1b ldr r2, [pc, #108] @ (8006890 <HAL_DMA_IRQHandler+0x424>)
  14244. 8006822: 4293 cmp r3, r2
  14245. 8006824: d013 beq.n 800684e <HAL_DMA_IRQHandler+0x3e2>
  14246. 8006826: 687b ldr r3, [r7, #4]
  14247. 8006828: 681b ldr r3, [r3, #0]
  14248. 800682a: 4a1a ldr r2, [pc, #104] @ (8006894 <HAL_DMA_IRQHandler+0x428>)
  14249. 800682c: 4293 cmp r3, r2
  14250. 800682e: d00e beq.n 800684e <HAL_DMA_IRQHandler+0x3e2>
  14251. 8006830: 687b ldr r3, [r7, #4]
  14252. 8006832: 681b ldr r3, [r3, #0]
  14253. 8006834: 4a18 ldr r2, [pc, #96] @ (8006898 <HAL_DMA_IRQHandler+0x42c>)
  14254. 8006836: 4293 cmp r3, r2
  14255. 8006838: d009 beq.n 800684e <HAL_DMA_IRQHandler+0x3e2>
  14256. 800683a: 687b ldr r3, [r7, #4]
  14257. 800683c: 681b ldr r3, [r3, #0]
  14258. 800683e: 4a17 ldr r2, [pc, #92] @ (800689c <HAL_DMA_IRQHandler+0x430>)
  14259. 8006840: 4293 cmp r3, r2
  14260. 8006842: d004 beq.n 800684e <HAL_DMA_IRQHandler+0x3e2>
  14261. 8006844: 687b ldr r3, [r7, #4]
  14262. 8006846: 681b ldr r3, [r3, #0]
  14263. 8006848: 4a15 ldr r2, [pc, #84] @ (80068a0 <HAL_DMA_IRQHandler+0x434>)
  14264. 800684a: 4293 cmp r3, r2
  14265. 800684c: d12a bne.n 80068a4 <HAL_DMA_IRQHandler+0x438>
  14266. 800684e: 687b ldr r3, [r7, #4]
  14267. 8006850: 681b ldr r3, [r3, #0]
  14268. 8006852: 681b ldr r3, [r3, #0]
  14269. 8006854: f003 0302 and.w r3, r3, #2
  14270. 8006858: 2b00 cmp r3, #0
  14271. 800685a: bf14 ite ne
  14272. 800685c: 2301 movne r3, #1
  14273. 800685e: 2300 moveq r3, #0
  14274. 8006860: b2db uxtb r3, r3
  14275. 8006862: e023 b.n 80068ac <HAL_DMA_IRQHandler+0x440>
  14276. 8006864: 40020010 .word 0x40020010
  14277. 8006868: 40020028 .word 0x40020028
  14278. 800686c: 40020040 .word 0x40020040
  14279. 8006870: 40020058 .word 0x40020058
  14280. 8006874: 40020070 .word 0x40020070
  14281. 8006878: 40020088 .word 0x40020088
  14282. 800687c: 400200a0 .word 0x400200a0
  14283. 8006880: 400200b8 .word 0x400200b8
  14284. 8006884: 40020410 .word 0x40020410
  14285. 8006888: 40020428 .word 0x40020428
  14286. 800688c: 40020440 .word 0x40020440
  14287. 8006890: 40020458 .word 0x40020458
  14288. 8006894: 40020470 .word 0x40020470
  14289. 8006898: 40020488 .word 0x40020488
  14290. 800689c: 400204a0 .word 0x400204a0
  14291. 80068a0: 400204b8 .word 0x400204b8
  14292. 80068a4: 687b ldr r3, [r7, #4]
  14293. 80068a6: 681b ldr r3, [r3, #0]
  14294. 80068a8: 681b ldr r3, [r3, #0]
  14295. 80068aa: 2300 movs r3, #0
  14296. 80068ac: 2b00 cmp r3, #0
  14297. 80068ae: d00d beq.n 80068cc <HAL_DMA_IRQHandler+0x460>
  14298. {
  14299. /* Clear the direct mode error flag */
  14300. regs_dma->IFCR = DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU);
  14301. 80068b0: 687b ldr r3, [r7, #4]
  14302. 80068b2: 6ddb ldr r3, [r3, #92] @ 0x5c
  14303. 80068b4: f003 031f and.w r3, r3, #31
  14304. 80068b8: 2204 movs r2, #4
  14305. 80068ba: 409a lsls r2, r3
  14306. 80068bc: 6a3b ldr r3, [r7, #32]
  14307. 80068be: 609a str r2, [r3, #8]
  14308. /* Update error code */
  14309. hdma->ErrorCode |= HAL_DMA_ERROR_DME;
  14310. 80068c0: 687b ldr r3, [r7, #4]
  14311. 80068c2: 6d5b ldr r3, [r3, #84] @ 0x54
  14312. 80068c4: f043 0204 orr.w r2, r3, #4
  14313. 80068c8: 687b ldr r3, [r7, #4]
  14314. 80068ca: 655a str r2, [r3, #84] @ 0x54
  14315. }
  14316. }
  14317. /* Half Transfer Complete Interrupt management ******************************/
  14318. if ((tmpisr_dma & (DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  14319. 80068cc: 687b ldr r3, [r7, #4]
  14320. 80068ce: 6ddb ldr r3, [r3, #92] @ 0x5c
  14321. 80068d0: f003 031f and.w r3, r3, #31
  14322. 80068d4: 2210 movs r2, #16
  14323. 80068d6: 409a lsls r2, r3
  14324. 80068d8: 69bb ldr r3, [r7, #24]
  14325. 80068da: 4013 ands r3, r2
  14326. 80068dc: 2b00 cmp r3, #0
  14327. 80068de: f000 80a6 beq.w 8006a2e <HAL_DMA_IRQHandler+0x5c2>
  14328. {
  14329. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_HT) != 0U)
  14330. 80068e2: 687b ldr r3, [r7, #4]
  14331. 80068e4: 681b ldr r3, [r3, #0]
  14332. 80068e6: 4a85 ldr r2, [pc, #532] @ (8006afc <HAL_DMA_IRQHandler+0x690>)
  14333. 80068e8: 4293 cmp r3, r2
  14334. 80068ea: d04a beq.n 8006982 <HAL_DMA_IRQHandler+0x516>
  14335. 80068ec: 687b ldr r3, [r7, #4]
  14336. 80068ee: 681b ldr r3, [r3, #0]
  14337. 80068f0: 4a83 ldr r2, [pc, #524] @ (8006b00 <HAL_DMA_IRQHandler+0x694>)
  14338. 80068f2: 4293 cmp r3, r2
  14339. 80068f4: d045 beq.n 8006982 <HAL_DMA_IRQHandler+0x516>
  14340. 80068f6: 687b ldr r3, [r7, #4]
  14341. 80068f8: 681b ldr r3, [r3, #0]
  14342. 80068fa: 4a82 ldr r2, [pc, #520] @ (8006b04 <HAL_DMA_IRQHandler+0x698>)
  14343. 80068fc: 4293 cmp r3, r2
  14344. 80068fe: d040 beq.n 8006982 <HAL_DMA_IRQHandler+0x516>
  14345. 8006900: 687b ldr r3, [r7, #4]
  14346. 8006902: 681b ldr r3, [r3, #0]
  14347. 8006904: 4a80 ldr r2, [pc, #512] @ (8006b08 <HAL_DMA_IRQHandler+0x69c>)
  14348. 8006906: 4293 cmp r3, r2
  14349. 8006908: d03b beq.n 8006982 <HAL_DMA_IRQHandler+0x516>
  14350. 800690a: 687b ldr r3, [r7, #4]
  14351. 800690c: 681b ldr r3, [r3, #0]
  14352. 800690e: 4a7f ldr r2, [pc, #508] @ (8006b0c <HAL_DMA_IRQHandler+0x6a0>)
  14353. 8006910: 4293 cmp r3, r2
  14354. 8006912: d036 beq.n 8006982 <HAL_DMA_IRQHandler+0x516>
  14355. 8006914: 687b ldr r3, [r7, #4]
  14356. 8006916: 681b ldr r3, [r3, #0]
  14357. 8006918: 4a7d ldr r2, [pc, #500] @ (8006b10 <HAL_DMA_IRQHandler+0x6a4>)
  14358. 800691a: 4293 cmp r3, r2
  14359. 800691c: d031 beq.n 8006982 <HAL_DMA_IRQHandler+0x516>
  14360. 800691e: 687b ldr r3, [r7, #4]
  14361. 8006920: 681b ldr r3, [r3, #0]
  14362. 8006922: 4a7c ldr r2, [pc, #496] @ (8006b14 <HAL_DMA_IRQHandler+0x6a8>)
  14363. 8006924: 4293 cmp r3, r2
  14364. 8006926: d02c beq.n 8006982 <HAL_DMA_IRQHandler+0x516>
  14365. 8006928: 687b ldr r3, [r7, #4]
  14366. 800692a: 681b ldr r3, [r3, #0]
  14367. 800692c: 4a7a ldr r2, [pc, #488] @ (8006b18 <HAL_DMA_IRQHandler+0x6ac>)
  14368. 800692e: 4293 cmp r3, r2
  14369. 8006930: d027 beq.n 8006982 <HAL_DMA_IRQHandler+0x516>
  14370. 8006932: 687b ldr r3, [r7, #4]
  14371. 8006934: 681b ldr r3, [r3, #0]
  14372. 8006936: 4a79 ldr r2, [pc, #484] @ (8006b1c <HAL_DMA_IRQHandler+0x6b0>)
  14373. 8006938: 4293 cmp r3, r2
  14374. 800693a: d022 beq.n 8006982 <HAL_DMA_IRQHandler+0x516>
  14375. 800693c: 687b ldr r3, [r7, #4]
  14376. 800693e: 681b ldr r3, [r3, #0]
  14377. 8006940: 4a77 ldr r2, [pc, #476] @ (8006b20 <HAL_DMA_IRQHandler+0x6b4>)
  14378. 8006942: 4293 cmp r3, r2
  14379. 8006944: d01d beq.n 8006982 <HAL_DMA_IRQHandler+0x516>
  14380. 8006946: 687b ldr r3, [r7, #4]
  14381. 8006948: 681b ldr r3, [r3, #0]
  14382. 800694a: 4a76 ldr r2, [pc, #472] @ (8006b24 <HAL_DMA_IRQHandler+0x6b8>)
  14383. 800694c: 4293 cmp r3, r2
  14384. 800694e: d018 beq.n 8006982 <HAL_DMA_IRQHandler+0x516>
  14385. 8006950: 687b ldr r3, [r7, #4]
  14386. 8006952: 681b ldr r3, [r3, #0]
  14387. 8006954: 4a74 ldr r2, [pc, #464] @ (8006b28 <HAL_DMA_IRQHandler+0x6bc>)
  14388. 8006956: 4293 cmp r3, r2
  14389. 8006958: d013 beq.n 8006982 <HAL_DMA_IRQHandler+0x516>
  14390. 800695a: 687b ldr r3, [r7, #4]
  14391. 800695c: 681b ldr r3, [r3, #0]
  14392. 800695e: 4a73 ldr r2, [pc, #460] @ (8006b2c <HAL_DMA_IRQHandler+0x6c0>)
  14393. 8006960: 4293 cmp r3, r2
  14394. 8006962: d00e beq.n 8006982 <HAL_DMA_IRQHandler+0x516>
  14395. 8006964: 687b ldr r3, [r7, #4]
  14396. 8006966: 681b ldr r3, [r3, #0]
  14397. 8006968: 4a71 ldr r2, [pc, #452] @ (8006b30 <HAL_DMA_IRQHandler+0x6c4>)
  14398. 800696a: 4293 cmp r3, r2
  14399. 800696c: d009 beq.n 8006982 <HAL_DMA_IRQHandler+0x516>
  14400. 800696e: 687b ldr r3, [r7, #4]
  14401. 8006970: 681b ldr r3, [r3, #0]
  14402. 8006972: 4a70 ldr r2, [pc, #448] @ (8006b34 <HAL_DMA_IRQHandler+0x6c8>)
  14403. 8006974: 4293 cmp r3, r2
  14404. 8006976: d004 beq.n 8006982 <HAL_DMA_IRQHandler+0x516>
  14405. 8006978: 687b ldr r3, [r7, #4]
  14406. 800697a: 681b ldr r3, [r3, #0]
  14407. 800697c: 4a6e ldr r2, [pc, #440] @ (8006b38 <HAL_DMA_IRQHandler+0x6cc>)
  14408. 800697e: 4293 cmp r3, r2
  14409. 8006980: d10a bne.n 8006998 <HAL_DMA_IRQHandler+0x52c>
  14410. 8006982: 687b ldr r3, [r7, #4]
  14411. 8006984: 681b ldr r3, [r3, #0]
  14412. 8006986: 681b ldr r3, [r3, #0]
  14413. 8006988: f003 0308 and.w r3, r3, #8
  14414. 800698c: 2b00 cmp r3, #0
  14415. 800698e: bf14 ite ne
  14416. 8006990: 2301 movne r3, #1
  14417. 8006992: 2300 moveq r3, #0
  14418. 8006994: b2db uxtb r3, r3
  14419. 8006996: e009 b.n 80069ac <HAL_DMA_IRQHandler+0x540>
  14420. 8006998: 687b ldr r3, [r7, #4]
  14421. 800699a: 681b ldr r3, [r3, #0]
  14422. 800699c: 681b ldr r3, [r3, #0]
  14423. 800699e: f003 0304 and.w r3, r3, #4
  14424. 80069a2: 2b00 cmp r3, #0
  14425. 80069a4: bf14 ite ne
  14426. 80069a6: 2301 movne r3, #1
  14427. 80069a8: 2300 moveq r3, #0
  14428. 80069aa: b2db uxtb r3, r3
  14429. 80069ac: 2b00 cmp r3, #0
  14430. 80069ae: d03e beq.n 8006a2e <HAL_DMA_IRQHandler+0x5c2>
  14431. {
  14432. /* Clear the half transfer complete flag */
  14433. regs_dma->IFCR = DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU);
  14434. 80069b0: 687b ldr r3, [r7, #4]
  14435. 80069b2: 6ddb ldr r3, [r3, #92] @ 0x5c
  14436. 80069b4: f003 031f and.w r3, r3, #31
  14437. 80069b8: 2210 movs r2, #16
  14438. 80069ba: 409a lsls r2, r3
  14439. 80069bc: 6a3b ldr r3, [r7, #32]
  14440. 80069be: 609a str r2, [r3, #8]
  14441. /* Multi_Buffering mode enabled */
  14442. if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U)
  14443. 80069c0: 687b ldr r3, [r7, #4]
  14444. 80069c2: 681b ldr r3, [r3, #0]
  14445. 80069c4: 681b ldr r3, [r3, #0]
  14446. 80069c6: f403 2380 and.w r3, r3, #262144 @ 0x40000
  14447. 80069ca: 2b00 cmp r3, #0
  14448. 80069cc: d018 beq.n 8006a00 <HAL_DMA_IRQHandler+0x594>
  14449. {
  14450. /* Current memory buffer used is Memory 0 */
  14451. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U)
  14452. 80069ce: 687b ldr r3, [r7, #4]
  14453. 80069d0: 681b ldr r3, [r3, #0]
  14454. 80069d2: 681b ldr r3, [r3, #0]
  14455. 80069d4: f403 2300 and.w r3, r3, #524288 @ 0x80000
  14456. 80069d8: 2b00 cmp r3, #0
  14457. 80069da: d108 bne.n 80069ee <HAL_DMA_IRQHandler+0x582>
  14458. {
  14459. if(hdma->XferHalfCpltCallback != NULL)
  14460. 80069dc: 687b ldr r3, [r7, #4]
  14461. 80069de: 6c1b ldr r3, [r3, #64] @ 0x40
  14462. 80069e0: 2b00 cmp r3, #0
  14463. 80069e2: d024 beq.n 8006a2e <HAL_DMA_IRQHandler+0x5c2>
  14464. {
  14465. /* Half transfer callback */
  14466. hdma->XferHalfCpltCallback(hdma);
  14467. 80069e4: 687b ldr r3, [r7, #4]
  14468. 80069e6: 6c1b ldr r3, [r3, #64] @ 0x40
  14469. 80069e8: 6878 ldr r0, [r7, #4]
  14470. 80069ea: 4798 blx r3
  14471. 80069ec: e01f b.n 8006a2e <HAL_DMA_IRQHandler+0x5c2>
  14472. }
  14473. }
  14474. /* Current memory buffer used is Memory 1 */
  14475. else
  14476. {
  14477. if(hdma->XferM1HalfCpltCallback != NULL)
  14478. 80069ee: 687b ldr r3, [r7, #4]
  14479. 80069f0: 6c9b ldr r3, [r3, #72] @ 0x48
  14480. 80069f2: 2b00 cmp r3, #0
  14481. 80069f4: d01b beq.n 8006a2e <HAL_DMA_IRQHandler+0x5c2>
  14482. {
  14483. /* Half transfer callback */
  14484. hdma->XferM1HalfCpltCallback(hdma);
  14485. 80069f6: 687b ldr r3, [r7, #4]
  14486. 80069f8: 6c9b ldr r3, [r3, #72] @ 0x48
  14487. 80069fa: 6878 ldr r0, [r7, #4]
  14488. 80069fc: 4798 blx r3
  14489. 80069fe: e016 b.n 8006a2e <HAL_DMA_IRQHandler+0x5c2>
  14490. }
  14491. }
  14492. else
  14493. {
  14494. /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */
  14495. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U)
  14496. 8006a00: 687b ldr r3, [r7, #4]
  14497. 8006a02: 681b ldr r3, [r3, #0]
  14498. 8006a04: 681b ldr r3, [r3, #0]
  14499. 8006a06: f403 7380 and.w r3, r3, #256 @ 0x100
  14500. 8006a0a: 2b00 cmp r3, #0
  14501. 8006a0c: d107 bne.n 8006a1e <HAL_DMA_IRQHandler+0x5b2>
  14502. {
  14503. /* Disable the half transfer interrupt */
  14504. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT);
  14505. 8006a0e: 687b ldr r3, [r7, #4]
  14506. 8006a10: 681b ldr r3, [r3, #0]
  14507. 8006a12: 681a ldr r2, [r3, #0]
  14508. 8006a14: 687b ldr r3, [r7, #4]
  14509. 8006a16: 681b ldr r3, [r3, #0]
  14510. 8006a18: f022 0208 bic.w r2, r2, #8
  14511. 8006a1c: 601a str r2, [r3, #0]
  14512. }
  14513. if(hdma->XferHalfCpltCallback != NULL)
  14514. 8006a1e: 687b ldr r3, [r7, #4]
  14515. 8006a20: 6c1b ldr r3, [r3, #64] @ 0x40
  14516. 8006a22: 2b00 cmp r3, #0
  14517. 8006a24: d003 beq.n 8006a2e <HAL_DMA_IRQHandler+0x5c2>
  14518. {
  14519. /* Half transfer callback */
  14520. hdma->XferHalfCpltCallback(hdma);
  14521. 8006a26: 687b ldr r3, [r7, #4]
  14522. 8006a28: 6c1b ldr r3, [r3, #64] @ 0x40
  14523. 8006a2a: 6878 ldr r0, [r7, #4]
  14524. 8006a2c: 4798 blx r3
  14525. }
  14526. }
  14527. }
  14528. }
  14529. /* Transfer Complete Interrupt management ***********************************/
  14530. if ((tmpisr_dma & (DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  14531. 8006a2e: 687b ldr r3, [r7, #4]
  14532. 8006a30: 6ddb ldr r3, [r3, #92] @ 0x5c
  14533. 8006a32: f003 031f and.w r3, r3, #31
  14534. 8006a36: 2220 movs r2, #32
  14535. 8006a38: 409a lsls r2, r3
  14536. 8006a3a: 69bb ldr r3, [r7, #24]
  14537. 8006a3c: 4013 ands r3, r2
  14538. 8006a3e: 2b00 cmp r3, #0
  14539. 8006a40: f000 8110 beq.w 8006c64 <HAL_DMA_IRQHandler+0x7f8>
  14540. {
  14541. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TC) != 0U)
  14542. 8006a44: 687b ldr r3, [r7, #4]
  14543. 8006a46: 681b ldr r3, [r3, #0]
  14544. 8006a48: 4a2c ldr r2, [pc, #176] @ (8006afc <HAL_DMA_IRQHandler+0x690>)
  14545. 8006a4a: 4293 cmp r3, r2
  14546. 8006a4c: d04a beq.n 8006ae4 <HAL_DMA_IRQHandler+0x678>
  14547. 8006a4e: 687b ldr r3, [r7, #4]
  14548. 8006a50: 681b ldr r3, [r3, #0]
  14549. 8006a52: 4a2b ldr r2, [pc, #172] @ (8006b00 <HAL_DMA_IRQHandler+0x694>)
  14550. 8006a54: 4293 cmp r3, r2
  14551. 8006a56: d045 beq.n 8006ae4 <HAL_DMA_IRQHandler+0x678>
  14552. 8006a58: 687b ldr r3, [r7, #4]
  14553. 8006a5a: 681b ldr r3, [r3, #0]
  14554. 8006a5c: 4a29 ldr r2, [pc, #164] @ (8006b04 <HAL_DMA_IRQHandler+0x698>)
  14555. 8006a5e: 4293 cmp r3, r2
  14556. 8006a60: d040 beq.n 8006ae4 <HAL_DMA_IRQHandler+0x678>
  14557. 8006a62: 687b ldr r3, [r7, #4]
  14558. 8006a64: 681b ldr r3, [r3, #0]
  14559. 8006a66: 4a28 ldr r2, [pc, #160] @ (8006b08 <HAL_DMA_IRQHandler+0x69c>)
  14560. 8006a68: 4293 cmp r3, r2
  14561. 8006a6a: d03b beq.n 8006ae4 <HAL_DMA_IRQHandler+0x678>
  14562. 8006a6c: 687b ldr r3, [r7, #4]
  14563. 8006a6e: 681b ldr r3, [r3, #0]
  14564. 8006a70: 4a26 ldr r2, [pc, #152] @ (8006b0c <HAL_DMA_IRQHandler+0x6a0>)
  14565. 8006a72: 4293 cmp r3, r2
  14566. 8006a74: d036 beq.n 8006ae4 <HAL_DMA_IRQHandler+0x678>
  14567. 8006a76: 687b ldr r3, [r7, #4]
  14568. 8006a78: 681b ldr r3, [r3, #0]
  14569. 8006a7a: 4a25 ldr r2, [pc, #148] @ (8006b10 <HAL_DMA_IRQHandler+0x6a4>)
  14570. 8006a7c: 4293 cmp r3, r2
  14571. 8006a7e: d031 beq.n 8006ae4 <HAL_DMA_IRQHandler+0x678>
  14572. 8006a80: 687b ldr r3, [r7, #4]
  14573. 8006a82: 681b ldr r3, [r3, #0]
  14574. 8006a84: 4a23 ldr r2, [pc, #140] @ (8006b14 <HAL_DMA_IRQHandler+0x6a8>)
  14575. 8006a86: 4293 cmp r3, r2
  14576. 8006a88: d02c beq.n 8006ae4 <HAL_DMA_IRQHandler+0x678>
  14577. 8006a8a: 687b ldr r3, [r7, #4]
  14578. 8006a8c: 681b ldr r3, [r3, #0]
  14579. 8006a8e: 4a22 ldr r2, [pc, #136] @ (8006b18 <HAL_DMA_IRQHandler+0x6ac>)
  14580. 8006a90: 4293 cmp r3, r2
  14581. 8006a92: d027 beq.n 8006ae4 <HAL_DMA_IRQHandler+0x678>
  14582. 8006a94: 687b ldr r3, [r7, #4]
  14583. 8006a96: 681b ldr r3, [r3, #0]
  14584. 8006a98: 4a20 ldr r2, [pc, #128] @ (8006b1c <HAL_DMA_IRQHandler+0x6b0>)
  14585. 8006a9a: 4293 cmp r3, r2
  14586. 8006a9c: d022 beq.n 8006ae4 <HAL_DMA_IRQHandler+0x678>
  14587. 8006a9e: 687b ldr r3, [r7, #4]
  14588. 8006aa0: 681b ldr r3, [r3, #0]
  14589. 8006aa2: 4a1f ldr r2, [pc, #124] @ (8006b20 <HAL_DMA_IRQHandler+0x6b4>)
  14590. 8006aa4: 4293 cmp r3, r2
  14591. 8006aa6: d01d beq.n 8006ae4 <HAL_DMA_IRQHandler+0x678>
  14592. 8006aa8: 687b ldr r3, [r7, #4]
  14593. 8006aaa: 681b ldr r3, [r3, #0]
  14594. 8006aac: 4a1d ldr r2, [pc, #116] @ (8006b24 <HAL_DMA_IRQHandler+0x6b8>)
  14595. 8006aae: 4293 cmp r3, r2
  14596. 8006ab0: d018 beq.n 8006ae4 <HAL_DMA_IRQHandler+0x678>
  14597. 8006ab2: 687b ldr r3, [r7, #4]
  14598. 8006ab4: 681b ldr r3, [r3, #0]
  14599. 8006ab6: 4a1c ldr r2, [pc, #112] @ (8006b28 <HAL_DMA_IRQHandler+0x6bc>)
  14600. 8006ab8: 4293 cmp r3, r2
  14601. 8006aba: d013 beq.n 8006ae4 <HAL_DMA_IRQHandler+0x678>
  14602. 8006abc: 687b ldr r3, [r7, #4]
  14603. 8006abe: 681b ldr r3, [r3, #0]
  14604. 8006ac0: 4a1a ldr r2, [pc, #104] @ (8006b2c <HAL_DMA_IRQHandler+0x6c0>)
  14605. 8006ac2: 4293 cmp r3, r2
  14606. 8006ac4: d00e beq.n 8006ae4 <HAL_DMA_IRQHandler+0x678>
  14607. 8006ac6: 687b ldr r3, [r7, #4]
  14608. 8006ac8: 681b ldr r3, [r3, #0]
  14609. 8006aca: 4a19 ldr r2, [pc, #100] @ (8006b30 <HAL_DMA_IRQHandler+0x6c4>)
  14610. 8006acc: 4293 cmp r3, r2
  14611. 8006ace: d009 beq.n 8006ae4 <HAL_DMA_IRQHandler+0x678>
  14612. 8006ad0: 687b ldr r3, [r7, #4]
  14613. 8006ad2: 681b ldr r3, [r3, #0]
  14614. 8006ad4: 4a17 ldr r2, [pc, #92] @ (8006b34 <HAL_DMA_IRQHandler+0x6c8>)
  14615. 8006ad6: 4293 cmp r3, r2
  14616. 8006ad8: d004 beq.n 8006ae4 <HAL_DMA_IRQHandler+0x678>
  14617. 8006ada: 687b ldr r3, [r7, #4]
  14618. 8006adc: 681b ldr r3, [r3, #0]
  14619. 8006ade: 4a16 ldr r2, [pc, #88] @ (8006b38 <HAL_DMA_IRQHandler+0x6cc>)
  14620. 8006ae0: 4293 cmp r3, r2
  14621. 8006ae2: d12b bne.n 8006b3c <HAL_DMA_IRQHandler+0x6d0>
  14622. 8006ae4: 687b ldr r3, [r7, #4]
  14623. 8006ae6: 681b ldr r3, [r3, #0]
  14624. 8006ae8: 681b ldr r3, [r3, #0]
  14625. 8006aea: f003 0310 and.w r3, r3, #16
  14626. 8006aee: 2b00 cmp r3, #0
  14627. 8006af0: bf14 ite ne
  14628. 8006af2: 2301 movne r3, #1
  14629. 8006af4: 2300 moveq r3, #0
  14630. 8006af6: b2db uxtb r3, r3
  14631. 8006af8: e02a b.n 8006b50 <HAL_DMA_IRQHandler+0x6e4>
  14632. 8006afa: bf00 nop
  14633. 8006afc: 40020010 .word 0x40020010
  14634. 8006b00: 40020028 .word 0x40020028
  14635. 8006b04: 40020040 .word 0x40020040
  14636. 8006b08: 40020058 .word 0x40020058
  14637. 8006b0c: 40020070 .word 0x40020070
  14638. 8006b10: 40020088 .word 0x40020088
  14639. 8006b14: 400200a0 .word 0x400200a0
  14640. 8006b18: 400200b8 .word 0x400200b8
  14641. 8006b1c: 40020410 .word 0x40020410
  14642. 8006b20: 40020428 .word 0x40020428
  14643. 8006b24: 40020440 .word 0x40020440
  14644. 8006b28: 40020458 .word 0x40020458
  14645. 8006b2c: 40020470 .word 0x40020470
  14646. 8006b30: 40020488 .word 0x40020488
  14647. 8006b34: 400204a0 .word 0x400204a0
  14648. 8006b38: 400204b8 .word 0x400204b8
  14649. 8006b3c: 687b ldr r3, [r7, #4]
  14650. 8006b3e: 681b ldr r3, [r3, #0]
  14651. 8006b40: 681b ldr r3, [r3, #0]
  14652. 8006b42: f003 0302 and.w r3, r3, #2
  14653. 8006b46: 2b00 cmp r3, #0
  14654. 8006b48: bf14 ite ne
  14655. 8006b4a: 2301 movne r3, #1
  14656. 8006b4c: 2300 moveq r3, #0
  14657. 8006b4e: b2db uxtb r3, r3
  14658. 8006b50: 2b00 cmp r3, #0
  14659. 8006b52: f000 8087 beq.w 8006c64 <HAL_DMA_IRQHandler+0x7f8>
  14660. {
  14661. /* Clear the transfer complete flag */
  14662. regs_dma->IFCR = DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU);
  14663. 8006b56: 687b ldr r3, [r7, #4]
  14664. 8006b58: 6ddb ldr r3, [r3, #92] @ 0x5c
  14665. 8006b5a: f003 031f and.w r3, r3, #31
  14666. 8006b5e: 2220 movs r2, #32
  14667. 8006b60: 409a lsls r2, r3
  14668. 8006b62: 6a3b ldr r3, [r7, #32]
  14669. 8006b64: 609a str r2, [r3, #8]
  14670. if(HAL_DMA_STATE_ABORT == hdma->State)
  14671. 8006b66: 687b ldr r3, [r7, #4]
  14672. 8006b68: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  14673. 8006b6c: b2db uxtb r3, r3
  14674. 8006b6e: 2b04 cmp r3, #4
  14675. 8006b70: d139 bne.n 8006be6 <HAL_DMA_IRQHandler+0x77a>
  14676. {
  14677. /* Disable all the transfer interrupts */
  14678. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME);
  14679. 8006b72: 687b ldr r3, [r7, #4]
  14680. 8006b74: 681b ldr r3, [r3, #0]
  14681. 8006b76: 681a ldr r2, [r3, #0]
  14682. 8006b78: 687b ldr r3, [r7, #4]
  14683. 8006b7a: 681b ldr r3, [r3, #0]
  14684. 8006b7c: f022 0216 bic.w r2, r2, #22
  14685. 8006b80: 601a str r2, [r3, #0]
  14686. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE);
  14687. 8006b82: 687b ldr r3, [r7, #4]
  14688. 8006b84: 681b ldr r3, [r3, #0]
  14689. 8006b86: 695a ldr r2, [r3, #20]
  14690. 8006b88: 687b ldr r3, [r7, #4]
  14691. 8006b8a: 681b ldr r3, [r3, #0]
  14692. 8006b8c: f022 0280 bic.w r2, r2, #128 @ 0x80
  14693. 8006b90: 615a str r2, [r3, #20]
  14694. if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL))
  14695. 8006b92: 687b ldr r3, [r7, #4]
  14696. 8006b94: 6c1b ldr r3, [r3, #64] @ 0x40
  14697. 8006b96: 2b00 cmp r3, #0
  14698. 8006b98: d103 bne.n 8006ba2 <HAL_DMA_IRQHandler+0x736>
  14699. 8006b9a: 687b ldr r3, [r7, #4]
  14700. 8006b9c: 6c9b ldr r3, [r3, #72] @ 0x48
  14701. 8006b9e: 2b00 cmp r3, #0
  14702. 8006ba0: d007 beq.n 8006bb2 <HAL_DMA_IRQHandler+0x746>
  14703. {
  14704. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT);
  14705. 8006ba2: 687b ldr r3, [r7, #4]
  14706. 8006ba4: 681b ldr r3, [r3, #0]
  14707. 8006ba6: 681a ldr r2, [r3, #0]
  14708. 8006ba8: 687b ldr r3, [r7, #4]
  14709. 8006baa: 681b ldr r3, [r3, #0]
  14710. 8006bac: f022 0208 bic.w r2, r2, #8
  14711. 8006bb0: 601a str r2, [r3, #0]
  14712. }
  14713. /* Clear all interrupt flags at correct offset within the register */
  14714. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  14715. 8006bb2: 687b ldr r3, [r7, #4]
  14716. 8006bb4: 6ddb ldr r3, [r3, #92] @ 0x5c
  14717. 8006bb6: f003 031f and.w r3, r3, #31
  14718. 8006bba: 223f movs r2, #63 @ 0x3f
  14719. 8006bbc: 409a lsls r2, r3
  14720. 8006bbe: 6a3b ldr r3, [r7, #32]
  14721. 8006bc0: 609a str r2, [r3, #8]
  14722. /* Change the DMA state */
  14723. hdma->State = HAL_DMA_STATE_READY;
  14724. 8006bc2: 687b ldr r3, [r7, #4]
  14725. 8006bc4: 2201 movs r2, #1
  14726. 8006bc6: f883 2035 strb.w r2, [r3, #53] @ 0x35
  14727. /* Process Unlocked */
  14728. __HAL_UNLOCK(hdma);
  14729. 8006bca: 687b ldr r3, [r7, #4]
  14730. 8006bcc: 2200 movs r2, #0
  14731. 8006bce: f883 2034 strb.w r2, [r3, #52] @ 0x34
  14732. if(hdma->XferAbortCallback != NULL)
  14733. 8006bd2: 687b ldr r3, [r7, #4]
  14734. 8006bd4: 6d1b ldr r3, [r3, #80] @ 0x50
  14735. 8006bd6: 2b00 cmp r3, #0
  14736. 8006bd8: f000 834a beq.w 8007270 <HAL_DMA_IRQHandler+0xe04>
  14737. {
  14738. hdma->XferAbortCallback(hdma);
  14739. 8006bdc: 687b ldr r3, [r7, #4]
  14740. 8006bde: 6d1b ldr r3, [r3, #80] @ 0x50
  14741. 8006be0: 6878 ldr r0, [r7, #4]
  14742. 8006be2: 4798 blx r3
  14743. }
  14744. return;
  14745. 8006be4: e344 b.n 8007270 <HAL_DMA_IRQHandler+0xe04>
  14746. }
  14747. if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U)
  14748. 8006be6: 687b ldr r3, [r7, #4]
  14749. 8006be8: 681b ldr r3, [r3, #0]
  14750. 8006bea: 681b ldr r3, [r3, #0]
  14751. 8006bec: f403 2380 and.w r3, r3, #262144 @ 0x40000
  14752. 8006bf0: 2b00 cmp r3, #0
  14753. 8006bf2: d018 beq.n 8006c26 <HAL_DMA_IRQHandler+0x7ba>
  14754. {
  14755. /* Current memory buffer used is Memory 0 */
  14756. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U)
  14757. 8006bf4: 687b ldr r3, [r7, #4]
  14758. 8006bf6: 681b ldr r3, [r3, #0]
  14759. 8006bf8: 681b ldr r3, [r3, #0]
  14760. 8006bfa: f403 2300 and.w r3, r3, #524288 @ 0x80000
  14761. 8006bfe: 2b00 cmp r3, #0
  14762. 8006c00: d108 bne.n 8006c14 <HAL_DMA_IRQHandler+0x7a8>
  14763. {
  14764. if(hdma->XferM1CpltCallback != NULL)
  14765. 8006c02: 687b ldr r3, [r7, #4]
  14766. 8006c04: 6c5b ldr r3, [r3, #68] @ 0x44
  14767. 8006c06: 2b00 cmp r3, #0
  14768. 8006c08: d02c beq.n 8006c64 <HAL_DMA_IRQHandler+0x7f8>
  14769. {
  14770. /* Transfer complete Callback for memory1 */
  14771. hdma->XferM1CpltCallback(hdma);
  14772. 8006c0a: 687b ldr r3, [r7, #4]
  14773. 8006c0c: 6c5b ldr r3, [r3, #68] @ 0x44
  14774. 8006c0e: 6878 ldr r0, [r7, #4]
  14775. 8006c10: 4798 blx r3
  14776. 8006c12: e027 b.n 8006c64 <HAL_DMA_IRQHandler+0x7f8>
  14777. }
  14778. }
  14779. /* Current memory buffer used is Memory 1 */
  14780. else
  14781. {
  14782. if(hdma->XferCpltCallback != NULL)
  14783. 8006c14: 687b ldr r3, [r7, #4]
  14784. 8006c16: 6bdb ldr r3, [r3, #60] @ 0x3c
  14785. 8006c18: 2b00 cmp r3, #0
  14786. 8006c1a: d023 beq.n 8006c64 <HAL_DMA_IRQHandler+0x7f8>
  14787. {
  14788. /* Transfer complete Callback for memory0 */
  14789. hdma->XferCpltCallback(hdma);
  14790. 8006c1c: 687b ldr r3, [r7, #4]
  14791. 8006c1e: 6bdb ldr r3, [r3, #60] @ 0x3c
  14792. 8006c20: 6878 ldr r0, [r7, #4]
  14793. 8006c22: 4798 blx r3
  14794. 8006c24: e01e b.n 8006c64 <HAL_DMA_IRQHandler+0x7f8>
  14795. }
  14796. }
  14797. /* Disable the transfer complete interrupt if the DMA mode is not CIRCULAR */
  14798. else
  14799. {
  14800. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U)
  14801. 8006c26: 687b ldr r3, [r7, #4]
  14802. 8006c28: 681b ldr r3, [r3, #0]
  14803. 8006c2a: 681b ldr r3, [r3, #0]
  14804. 8006c2c: f403 7380 and.w r3, r3, #256 @ 0x100
  14805. 8006c30: 2b00 cmp r3, #0
  14806. 8006c32: d10f bne.n 8006c54 <HAL_DMA_IRQHandler+0x7e8>
  14807. {
  14808. /* Disable the transfer complete interrupt */
  14809. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC);
  14810. 8006c34: 687b ldr r3, [r7, #4]
  14811. 8006c36: 681b ldr r3, [r3, #0]
  14812. 8006c38: 681a ldr r2, [r3, #0]
  14813. 8006c3a: 687b ldr r3, [r7, #4]
  14814. 8006c3c: 681b ldr r3, [r3, #0]
  14815. 8006c3e: f022 0210 bic.w r2, r2, #16
  14816. 8006c42: 601a str r2, [r3, #0]
  14817. /* Change the DMA state */
  14818. hdma->State = HAL_DMA_STATE_READY;
  14819. 8006c44: 687b ldr r3, [r7, #4]
  14820. 8006c46: 2201 movs r2, #1
  14821. 8006c48: f883 2035 strb.w r2, [r3, #53] @ 0x35
  14822. /* Process Unlocked */
  14823. __HAL_UNLOCK(hdma);
  14824. 8006c4c: 687b ldr r3, [r7, #4]
  14825. 8006c4e: 2200 movs r2, #0
  14826. 8006c50: f883 2034 strb.w r2, [r3, #52] @ 0x34
  14827. }
  14828. if(hdma->XferCpltCallback != NULL)
  14829. 8006c54: 687b ldr r3, [r7, #4]
  14830. 8006c56: 6bdb ldr r3, [r3, #60] @ 0x3c
  14831. 8006c58: 2b00 cmp r3, #0
  14832. 8006c5a: d003 beq.n 8006c64 <HAL_DMA_IRQHandler+0x7f8>
  14833. {
  14834. /* Transfer complete callback */
  14835. hdma->XferCpltCallback(hdma);
  14836. 8006c5c: 687b ldr r3, [r7, #4]
  14837. 8006c5e: 6bdb ldr r3, [r3, #60] @ 0x3c
  14838. 8006c60: 6878 ldr r0, [r7, #4]
  14839. 8006c62: 4798 blx r3
  14840. }
  14841. }
  14842. }
  14843. /* manage error case */
  14844. if(hdma->ErrorCode != HAL_DMA_ERROR_NONE)
  14845. 8006c64: 687b ldr r3, [r7, #4]
  14846. 8006c66: 6d5b ldr r3, [r3, #84] @ 0x54
  14847. 8006c68: 2b00 cmp r3, #0
  14848. 8006c6a: f000 8306 beq.w 800727a <HAL_DMA_IRQHandler+0xe0e>
  14849. {
  14850. if((hdma->ErrorCode & HAL_DMA_ERROR_TE) != 0U)
  14851. 8006c6e: 687b ldr r3, [r7, #4]
  14852. 8006c70: 6d5b ldr r3, [r3, #84] @ 0x54
  14853. 8006c72: f003 0301 and.w r3, r3, #1
  14854. 8006c76: 2b00 cmp r3, #0
  14855. 8006c78: f000 8088 beq.w 8006d8c <HAL_DMA_IRQHandler+0x920>
  14856. {
  14857. hdma->State = HAL_DMA_STATE_ABORT;
  14858. 8006c7c: 687b ldr r3, [r7, #4]
  14859. 8006c7e: 2204 movs r2, #4
  14860. 8006c80: f883 2035 strb.w r2, [r3, #53] @ 0x35
  14861. /* Disable the stream */
  14862. __HAL_DMA_DISABLE(hdma);
  14863. 8006c84: 687b ldr r3, [r7, #4]
  14864. 8006c86: 681b ldr r3, [r3, #0]
  14865. 8006c88: 4a7a ldr r2, [pc, #488] @ (8006e74 <HAL_DMA_IRQHandler+0xa08>)
  14866. 8006c8a: 4293 cmp r3, r2
  14867. 8006c8c: d04a beq.n 8006d24 <HAL_DMA_IRQHandler+0x8b8>
  14868. 8006c8e: 687b ldr r3, [r7, #4]
  14869. 8006c90: 681b ldr r3, [r3, #0]
  14870. 8006c92: 4a79 ldr r2, [pc, #484] @ (8006e78 <HAL_DMA_IRQHandler+0xa0c>)
  14871. 8006c94: 4293 cmp r3, r2
  14872. 8006c96: d045 beq.n 8006d24 <HAL_DMA_IRQHandler+0x8b8>
  14873. 8006c98: 687b ldr r3, [r7, #4]
  14874. 8006c9a: 681b ldr r3, [r3, #0]
  14875. 8006c9c: 4a77 ldr r2, [pc, #476] @ (8006e7c <HAL_DMA_IRQHandler+0xa10>)
  14876. 8006c9e: 4293 cmp r3, r2
  14877. 8006ca0: d040 beq.n 8006d24 <HAL_DMA_IRQHandler+0x8b8>
  14878. 8006ca2: 687b ldr r3, [r7, #4]
  14879. 8006ca4: 681b ldr r3, [r3, #0]
  14880. 8006ca6: 4a76 ldr r2, [pc, #472] @ (8006e80 <HAL_DMA_IRQHandler+0xa14>)
  14881. 8006ca8: 4293 cmp r3, r2
  14882. 8006caa: d03b beq.n 8006d24 <HAL_DMA_IRQHandler+0x8b8>
  14883. 8006cac: 687b ldr r3, [r7, #4]
  14884. 8006cae: 681b ldr r3, [r3, #0]
  14885. 8006cb0: 4a74 ldr r2, [pc, #464] @ (8006e84 <HAL_DMA_IRQHandler+0xa18>)
  14886. 8006cb2: 4293 cmp r3, r2
  14887. 8006cb4: d036 beq.n 8006d24 <HAL_DMA_IRQHandler+0x8b8>
  14888. 8006cb6: 687b ldr r3, [r7, #4]
  14889. 8006cb8: 681b ldr r3, [r3, #0]
  14890. 8006cba: 4a73 ldr r2, [pc, #460] @ (8006e88 <HAL_DMA_IRQHandler+0xa1c>)
  14891. 8006cbc: 4293 cmp r3, r2
  14892. 8006cbe: d031 beq.n 8006d24 <HAL_DMA_IRQHandler+0x8b8>
  14893. 8006cc0: 687b ldr r3, [r7, #4]
  14894. 8006cc2: 681b ldr r3, [r3, #0]
  14895. 8006cc4: 4a71 ldr r2, [pc, #452] @ (8006e8c <HAL_DMA_IRQHandler+0xa20>)
  14896. 8006cc6: 4293 cmp r3, r2
  14897. 8006cc8: d02c beq.n 8006d24 <HAL_DMA_IRQHandler+0x8b8>
  14898. 8006cca: 687b ldr r3, [r7, #4]
  14899. 8006ccc: 681b ldr r3, [r3, #0]
  14900. 8006cce: 4a70 ldr r2, [pc, #448] @ (8006e90 <HAL_DMA_IRQHandler+0xa24>)
  14901. 8006cd0: 4293 cmp r3, r2
  14902. 8006cd2: d027 beq.n 8006d24 <HAL_DMA_IRQHandler+0x8b8>
  14903. 8006cd4: 687b ldr r3, [r7, #4]
  14904. 8006cd6: 681b ldr r3, [r3, #0]
  14905. 8006cd8: 4a6e ldr r2, [pc, #440] @ (8006e94 <HAL_DMA_IRQHandler+0xa28>)
  14906. 8006cda: 4293 cmp r3, r2
  14907. 8006cdc: d022 beq.n 8006d24 <HAL_DMA_IRQHandler+0x8b8>
  14908. 8006cde: 687b ldr r3, [r7, #4]
  14909. 8006ce0: 681b ldr r3, [r3, #0]
  14910. 8006ce2: 4a6d ldr r2, [pc, #436] @ (8006e98 <HAL_DMA_IRQHandler+0xa2c>)
  14911. 8006ce4: 4293 cmp r3, r2
  14912. 8006ce6: d01d beq.n 8006d24 <HAL_DMA_IRQHandler+0x8b8>
  14913. 8006ce8: 687b ldr r3, [r7, #4]
  14914. 8006cea: 681b ldr r3, [r3, #0]
  14915. 8006cec: 4a6b ldr r2, [pc, #428] @ (8006e9c <HAL_DMA_IRQHandler+0xa30>)
  14916. 8006cee: 4293 cmp r3, r2
  14917. 8006cf0: d018 beq.n 8006d24 <HAL_DMA_IRQHandler+0x8b8>
  14918. 8006cf2: 687b ldr r3, [r7, #4]
  14919. 8006cf4: 681b ldr r3, [r3, #0]
  14920. 8006cf6: 4a6a ldr r2, [pc, #424] @ (8006ea0 <HAL_DMA_IRQHandler+0xa34>)
  14921. 8006cf8: 4293 cmp r3, r2
  14922. 8006cfa: d013 beq.n 8006d24 <HAL_DMA_IRQHandler+0x8b8>
  14923. 8006cfc: 687b ldr r3, [r7, #4]
  14924. 8006cfe: 681b ldr r3, [r3, #0]
  14925. 8006d00: 4a68 ldr r2, [pc, #416] @ (8006ea4 <HAL_DMA_IRQHandler+0xa38>)
  14926. 8006d02: 4293 cmp r3, r2
  14927. 8006d04: d00e beq.n 8006d24 <HAL_DMA_IRQHandler+0x8b8>
  14928. 8006d06: 687b ldr r3, [r7, #4]
  14929. 8006d08: 681b ldr r3, [r3, #0]
  14930. 8006d0a: 4a67 ldr r2, [pc, #412] @ (8006ea8 <HAL_DMA_IRQHandler+0xa3c>)
  14931. 8006d0c: 4293 cmp r3, r2
  14932. 8006d0e: d009 beq.n 8006d24 <HAL_DMA_IRQHandler+0x8b8>
  14933. 8006d10: 687b ldr r3, [r7, #4]
  14934. 8006d12: 681b ldr r3, [r3, #0]
  14935. 8006d14: 4a65 ldr r2, [pc, #404] @ (8006eac <HAL_DMA_IRQHandler+0xa40>)
  14936. 8006d16: 4293 cmp r3, r2
  14937. 8006d18: d004 beq.n 8006d24 <HAL_DMA_IRQHandler+0x8b8>
  14938. 8006d1a: 687b ldr r3, [r7, #4]
  14939. 8006d1c: 681b ldr r3, [r3, #0]
  14940. 8006d1e: 4a64 ldr r2, [pc, #400] @ (8006eb0 <HAL_DMA_IRQHandler+0xa44>)
  14941. 8006d20: 4293 cmp r3, r2
  14942. 8006d22: d108 bne.n 8006d36 <HAL_DMA_IRQHandler+0x8ca>
  14943. 8006d24: 687b ldr r3, [r7, #4]
  14944. 8006d26: 681b ldr r3, [r3, #0]
  14945. 8006d28: 681a ldr r2, [r3, #0]
  14946. 8006d2a: 687b ldr r3, [r7, #4]
  14947. 8006d2c: 681b ldr r3, [r3, #0]
  14948. 8006d2e: f022 0201 bic.w r2, r2, #1
  14949. 8006d32: 601a str r2, [r3, #0]
  14950. 8006d34: e007 b.n 8006d46 <HAL_DMA_IRQHandler+0x8da>
  14951. 8006d36: 687b ldr r3, [r7, #4]
  14952. 8006d38: 681b ldr r3, [r3, #0]
  14953. 8006d3a: 681a ldr r2, [r3, #0]
  14954. 8006d3c: 687b ldr r3, [r7, #4]
  14955. 8006d3e: 681b ldr r3, [r3, #0]
  14956. 8006d40: f022 0201 bic.w r2, r2, #1
  14957. 8006d44: 601a str r2, [r3, #0]
  14958. do
  14959. {
  14960. if (++count > timeout)
  14961. 8006d46: 68fb ldr r3, [r7, #12]
  14962. 8006d48: 3301 adds r3, #1
  14963. 8006d4a: 60fb str r3, [r7, #12]
  14964. 8006d4c: 6a7a ldr r2, [r7, #36] @ 0x24
  14965. 8006d4e: 429a cmp r2, r3
  14966. 8006d50: d307 bcc.n 8006d62 <HAL_DMA_IRQHandler+0x8f6>
  14967. {
  14968. break;
  14969. }
  14970. }
  14971. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U);
  14972. 8006d52: 687b ldr r3, [r7, #4]
  14973. 8006d54: 681b ldr r3, [r3, #0]
  14974. 8006d56: 681b ldr r3, [r3, #0]
  14975. 8006d58: f003 0301 and.w r3, r3, #1
  14976. 8006d5c: 2b00 cmp r3, #0
  14977. 8006d5e: d1f2 bne.n 8006d46 <HAL_DMA_IRQHandler+0x8da>
  14978. 8006d60: e000 b.n 8006d64 <HAL_DMA_IRQHandler+0x8f8>
  14979. break;
  14980. 8006d62: bf00 nop
  14981. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  14982. 8006d64: 687b ldr r3, [r7, #4]
  14983. 8006d66: 681b ldr r3, [r3, #0]
  14984. 8006d68: 681b ldr r3, [r3, #0]
  14985. 8006d6a: f003 0301 and.w r3, r3, #1
  14986. 8006d6e: 2b00 cmp r3, #0
  14987. 8006d70: d004 beq.n 8006d7c <HAL_DMA_IRQHandler+0x910>
  14988. {
  14989. /* Change the DMA state to error if DMA disable fails */
  14990. hdma->State = HAL_DMA_STATE_ERROR;
  14991. 8006d72: 687b ldr r3, [r7, #4]
  14992. 8006d74: 2203 movs r2, #3
  14993. 8006d76: f883 2035 strb.w r2, [r3, #53] @ 0x35
  14994. 8006d7a: e003 b.n 8006d84 <HAL_DMA_IRQHandler+0x918>
  14995. }
  14996. else
  14997. {
  14998. /* Change the DMA state to Ready if DMA disable success */
  14999. hdma->State = HAL_DMA_STATE_READY;
  15000. 8006d7c: 687b ldr r3, [r7, #4]
  15001. 8006d7e: 2201 movs r2, #1
  15002. 8006d80: f883 2035 strb.w r2, [r3, #53] @ 0x35
  15003. }
  15004. /* Process Unlocked */
  15005. __HAL_UNLOCK(hdma);
  15006. 8006d84: 687b ldr r3, [r7, #4]
  15007. 8006d86: 2200 movs r2, #0
  15008. 8006d88: f883 2034 strb.w r2, [r3, #52] @ 0x34
  15009. }
  15010. if(hdma->XferErrorCallback != NULL)
  15011. 8006d8c: 687b ldr r3, [r7, #4]
  15012. 8006d8e: 6cdb ldr r3, [r3, #76] @ 0x4c
  15013. 8006d90: 2b00 cmp r3, #0
  15014. 8006d92: f000 8272 beq.w 800727a <HAL_DMA_IRQHandler+0xe0e>
  15015. {
  15016. /* Transfer error callback */
  15017. hdma->XferErrorCallback(hdma);
  15018. 8006d96: 687b ldr r3, [r7, #4]
  15019. 8006d98: 6cdb ldr r3, [r3, #76] @ 0x4c
  15020. 8006d9a: 6878 ldr r0, [r7, #4]
  15021. 8006d9c: 4798 blx r3
  15022. 8006d9e: e26c b.n 800727a <HAL_DMA_IRQHandler+0xe0e>
  15023. }
  15024. }
  15025. }
  15026. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  15027. 8006da0: 687b ldr r3, [r7, #4]
  15028. 8006da2: 681b ldr r3, [r3, #0]
  15029. 8006da4: 4a43 ldr r2, [pc, #268] @ (8006eb4 <HAL_DMA_IRQHandler+0xa48>)
  15030. 8006da6: 4293 cmp r3, r2
  15031. 8006da8: d022 beq.n 8006df0 <HAL_DMA_IRQHandler+0x984>
  15032. 8006daa: 687b ldr r3, [r7, #4]
  15033. 8006dac: 681b ldr r3, [r3, #0]
  15034. 8006dae: 4a42 ldr r2, [pc, #264] @ (8006eb8 <HAL_DMA_IRQHandler+0xa4c>)
  15035. 8006db0: 4293 cmp r3, r2
  15036. 8006db2: d01d beq.n 8006df0 <HAL_DMA_IRQHandler+0x984>
  15037. 8006db4: 687b ldr r3, [r7, #4]
  15038. 8006db6: 681b ldr r3, [r3, #0]
  15039. 8006db8: 4a40 ldr r2, [pc, #256] @ (8006ebc <HAL_DMA_IRQHandler+0xa50>)
  15040. 8006dba: 4293 cmp r3, r2
  15041. 8006dbc: d018 beq.n 8006df0 <HAL_DMA_IRQHandler+0x984>
  15042. 8006dbe: 687b ldr r3, [r7, #4]
  15043. 8006dc0: 681b ldr r3, [r3, #0]
  15044. 8006dc2: 4a3f ldr r2, [pc, #252] @ (8006ec0 <HAL_DMA_IRQHandler+0xa54>)
  15045. 8006dc4: 4293 cmp r3, r2
  15046. 8006dc6: d013 beq.n 8006df0 <HAL_DMA_IRQHandler+0x984>
  15047. 8006dc8: 687b ldr r3, [r7, #4]
  15048. 8006dca: 681b ldr r3, [r3, #0]
  15049. 8006dcc: 4a3d ldr r2, [pc, #244] @ (8006ec4 <HAL_DMA_IRQHandler+0xa58>)
  15050. 8006dce: 4293 cmp r3, r2
  15051. 8006dd0: d00e beq.n 8006df0 <HAL_DMA_IRQHandler+0x984>
  15052. 8006dd2: 687b ldr r3, [r7, #4]
  15053. 8006dd4: 681b ldr r3, [r3, #0]
  15054. 8006dd6: 4a3c ldr r2, [pc, #240] @ (8006ec8 <HAL_DMA_IRQHandler+0xa5c>)
  15055. 8006dd8: 4293 cmp r3, r2
  15056. 8006dda: d009 beq.n 8006df0 <HAL_DMA_IRQHandler+0x984>
  15057. 8006ddc: 687b ldr r3, [r7, #4]
  15058. 8006dde: 681b ldr r3, [r3, #0]
  15059. 8006de0: 4a3a ldr r2, [pc, #232] @ (8006ecc <HAL_DMA_IRQHandler+0xa60>)
  15060. 8006de2: 4293 cmp r3, r2
  15061. 8006de4: d004 beq.n 8006df0 <HAL_DMA_IRQHandler+0x984>
  15062. 8006de6: 687b ldr r3, [r7, #4]
  15063. 8006de8: 681b ldr r3, [r3, #0]
  15064. 8006dea: 4a39 ldr r2, [pc, #228] @ (8006ed0 <HAL_DMA_IRQHandler+0xa64>)
  15065. 8006dec: 4293 cmp r3, r2
  15066. 8006dee: d101 bne.n 8006df4 <HAL_DMA_IRQHandler+0x988>
  15067. 8006df0: 2301 movs r3, #1
  15068. 8006df2: e000 b.n 8006df6 <HAL_DMA_IRQHandler+0x98a>
  15069. 8006df4: 2300 movs r3, #0
  15070. 8006df6: 2b00 cmp r3, #0
  15071. 8006df8: f000 823f beq.w 800727a <HAL_DMA_IRQHandler+0xe0e>
  15072. {
  15073. ccr_reg = (((BDMA_Channel_TypeDef *)hdma->Instance)->CCR);
  15074. 8006dfc: 687b ldr r3, [r7, #4]
  15075. 8006dfe: 681b ldr r3, [r3, #0]
  15076. 8006e00: 681b ldr r3, [r3, #0]
  15077. 8006e02: 613b str r3, [r7, #16]
  15078. /* Half Transfer Complete Interrupt management ******************************/
  15079. if (((tmpisr_bdma & (BDMA_FLAG_HT0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_HTIE) != 0U))
  15080. 8006e04: 687b ldr r3, [r7, #4]
  15081. 8006e06: 6ddb ldr r3, [r3, #92] @ 0x5c
  15082. 8006e08: f003 031f and.w r3, r3, #31
  15083. 8006e0c: 2204 movs r2, #4
  15084. 8006e0e: 409a lsls r2, r3
  15085. 8006e10: 697b ldr r3, [r7, #20]
  15086. 8006e12: 4013 ands r3, r2
  15087. 8006e14: 2b00 cmp r3, #0
  15088. 8006e16: f000 80cd beq.w 8006fb4 <HAL_DMA_IRQHandler+0xb48>
  15089. 8006e1a: 693b ldr r3, [r7, #16]
  15090. 8006e1c: f003 0304 and.w r3, r3, #4
  15091. 8006e20: 2b00 cmp r3, #0
  15092. 8006e22: f000 80c7 beq.w 8006fb4 <HAL_DMA_IRQHandler+0xb48>
  15093. {
  15094. /* Clear the half transfer complete flag */
  15095. regs_bdma->IFCR = (BDMA_ISR_HTIF0 << (hdma->StreamIndex & 0x1FU));
  15096. 8006e26: 687b ldr r3, [r7, #4]
  15097. 8006e28: 6ddb ldr r3, [r3, #92] @ 0x5c
  15098. 8006e2a: f003 031f and.w r3, r3, #31
  15099. 8006e2e: 2204 movs r2, #4
  15100. 8006e30: 409a lsls r2, r3
  15101. 8006e32: 69fb ldr r3, [r7, #28]
  15102. 8006e34: 605a str r2, [r3, #4]
  15103. /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */
  15104. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  15105. 8006e36: 693b ldr r3, [r7, #16]
  15106. 8006e38: f403 4300 and.w r3, r3, #32768 @ 0x8000
  15107. 8006e3c: 2b00 cmp r3, #0
  15108. 8006e3e: d049 beq.n 8006ed4 <HAL_DMA_IRQHandler+0xa68>
  15109. {
  15110. /* Current memory buffer used is Memory 0 */
  15111. if((ccr_reg & BDMA_CCR_CT) == 0U)
  15112. 8006e40: 693b ldr r3, [r7, #16]
  15113. 8006e42: f403 3380 and.w r3, r3, #65536 @ 0x10000
  15114. 8006e46: 2b00 cmp r3, #0
  15115. 8006e48: d109 bne.n 8006e5e <HAL_DMA_IRQHandler+0x9f2>
  15116. {
  15117. if(hdma->XferM1HalfCpltCallback != NULL)
  15118. 8006e4a: 687b ldr r3, [r7, #4]
  15119. 8006e4c: 6c9b ldr r3, [r3, #72] @ 0x48
  15120. 8006e4e: 2b00 cmp r3, #0
  15121. 8006e50: f000 8210 beq.w 8007274 <HAL_DMA_IRQHandler+0xe08>
  15122. {
  15123. /* Half transfer Callback for Memory 1 */
  15124. hdma->XferM1HalfCpltCallback(hdma);
  15125. 8006e54: 687b ldr r3, [r7, #4]
  15126. 8006e56: 6c9b ldr r3, [r3, #72] @ 0x48
  15127. 8006e58: 6878 ldr r0, [r7, #4]
  15128. 8006e5a: 4798 blx r3
  15129. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  15130. 8006e5c: e20a b.n 8007274 <HAL_DMA_IRQHandler+0xe08>
  15131. }
  15132. }
  15133. /* Current memory buffer used is Memory 1 */
  15134. else
  15135. {
  15136. if(hdma->XferHalfCpltCallback != NULL)
  15137. 8006e5e: 687b ldr r3, [r7, #4]
  15138. 8006e60: 6c1b ldr r3, [r3, #64] @ 0x40
  15139. 8006e62: 2b00 cmp r3, #0
  15140. 8006e64: f000 8206 beq.w 8007274 <HAL_DMA_IRQHandler+0xe08>
  15141. {
  15142. /* Half transfer Callback for Memory 0 */
  15143. hdma->XferHalfCpltCallback(hdma);
  15144. 8006e68: 687b ldr r3, [r7, #4]
  15145. 8006e6a: 6c1b ldr r3, [r3, #64] @ 0x40
  15146. 8006e6c: 6878 ldr r0, [r7, #4]
  15147. 8006e6e: 4798 blx r3
  15148. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  15149. 8006e70: e200 b.n 8007274 <HAL_DMA_IRQHandler+0xe08>
  15150. 8006e72: bf00 nop
  15151. 8006e74: 40020010 .word 0x40020010
  15152. 8006e78: 40020028 .word 0x40020028
  15153. 8006e7c: 40020040 .word 0x40020040
  15154. 8006e80: 40020058 .word 0x40020058
  15155. 8006e84: 40020070 .word 0x40020070
  15156. 8006e88: 40020088 .word 0x40020088
  15157. 8006e8c: 400200a0 .word 0x400200a0
  15158. 8006e90: 400200b8 .word 0x400200b8
  15159. 8006e94: 40020410 .word 0x40020410
  15160. 8006e98: 40020428 .word 0x40020428
  15161. 8006e9c: 40020440 .word 0x40020440
  15162. 8006ea0: 40020458 .word 0x40020458
  15163. 8006ea4: 40020470 .word 0x40020470
  15164. 8006ea8: 40020488 .word 0x40020488
  15165. 8006eac: 400204a0 .word 0x400204a0
  15166. 8006eb0: 400204b8 .word 0x400204b8
  15167. 8006eb4: 58025408 .word 0x58025408
  15168. 8006eb8: 5802541c .word 0x5802541c
  15169. 8006ebc: 58025430 .word 0x58025430
  15170. 8006ec0: 58025444 .word 0x58025444
  15171. 8006ec4: 58025458 .word 0x58025458
  15172. 8006ec8: 5802546c .word 0x5802546c
  15173. 8006ecc: 58025480 .word 0x58025480
  15174. 8006ed0: 58025494 .word 0x58025494
  15175. }
  15176. }
  15177. }
  15178. else
  15179. {
  15180. if((ccr_reg & BDMA_CCR_CIRC) == 0U)
  15181. 8006ed4: 693b ldr r3, [r7, #16]
  15182. 8006ed6: f003 0320 and.w r3, r3, #32
  15183. 8006eda: 2b00 cmp r3, #0
  15184. 8006edc: d160 bne.n 8006fa0 <HAL_DMA_IRQHandler+0xb34>
  15185. {
  15186. /* Disable the half transfer interrupt */
  15187. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
  15188. 8006ede: 687b ldr r3, [r7, #4]
  15189. 8006ee0: 681b ldr r3, [r3, #0]
  15190. 8006ee2: 4a7f ldr r2, [pc, #508] @ (80070e0 <HAL_DMA_IRQHandler+0xc74>)
  15191. 8006ee4: 4293 cmp r3, r2
  15192. 8006ee6: d04a beq.n 8006f7e <HAL_DMA_IRQHandler+0xb12>
  15193. 8006ee8: 687b ldr r3, [r7, #4]
  15194. 8006eea: 681b ldr r3, [r3, #0]
  15195. 8006eec: 4a7d ldr r2, [pc, #500] @ (80070e4 <HAL_DMA_IRQHandler+0xc78>)
  15196. 8006eee: 4293 cmp r3, r2
  15197. 8006ef0: d045 beq.n 8006f7e <HAL_DMA_IRQHandler+0xb12>
  15198. 8006ef2: 687b ldr r3, [r7, #4]
  15199. 8006ef4: 681b ldr r3, [r3, #0]
  15200. 8006ef6: 4a7c ldr r2, [pc, #496] @ (80070e8 <HAL_DMA_IRQHandler+0xc7c>)
  15201. 8006ef8: 4293 cmp r3, r2
  15202. 8006efa: d040 beq.n 8006f7e <HAL_DMA_IRQHandler+0xb12>
  15203. 8006efc: 687b ldr r3, [r7, #4]
  15204. 8006efe: 681b ldr r3, [r3, #0]
  15205. 8006f00: 4a7a ldr r2, [pc, #488] @ (80070ec <HAL_DMA_IRQHandler+0xc80>)
  15206. 8006f02: 4293 cmp r3, r2
  15207. 8006f04: d03b beq.n 8006f7e <HAL_DMA_IRQHandler+0xb12>
  15208. 8006f06: 687b ldr r3, [r7, #4]
  15209. 8006f08: 681b ldr r3, [r3, #0]
  15210. 8006f0a: 4a79 ldr r2, [pc, #484] @ (80070f0 <HAL_DMA_IRQHandler+0xc84>)
  15211. 8006f0c: 4293 cmp r3, r2
  15212. 8006f0e: d036 beq.n 8006f7e <HAL_DMA_IRQHandler+0xb12>
  15213. 8006f10: 687b ldr r3, [r7, #4]
  15214. 8006f12: 681b ldr r3, [r3, #0]
  15215. 8006f14: 4a77 ldr r2, [pc, #476] @ (80070f4 <HAL_DMA_IRQHandler+0xc88>)
  15216. 8006f16: 4293 cmp r3, r2
  15217. 8006f18: d031 beq.n 8006f7e <HAL_DMA_IRQHandler+0xb12>
  15218. 8006f1a: 687b ldr r3, [r7, #4]
  15219. 8006f1c: 681b ldr r3, [r3, #0]
  15220. 8006f1e: 4a76 ldr r2, [pc, #472] @ (80070f8 <HAL_DMA_IRQHandler+0xc8c>)
  15221. 8006f20: 4293 cmp r3, r2
  15222. 8006f22: d02c beq.n 8006f7e <HAL_DMA_IRQHandler+0xb12>
  15223. 8006f24: 687b ldr r3, [r7, #4]
  15224. 8006f26: 681b ldr r3, [r3, #0]
  15225. 8006f28: 4a74 ldr r2, [pc, #464] @ (80070fc <HAL_DMA_IRQHandler+0xc90>)
  15226. 8006f2a: 4293 cmp r3, r2
  15227. 8006f2c: d027 beq.n 8006f7e <HAL_DMA_IRQHandler+0xb12>
  15228. 8006f2e: 687b ldr r3, [r7, #4]
  15229. 8006f30: 681b ldr r3, [r3, #0]
  15230. 8006f32: 4a73 ldr r2, [pc, #460] @ (8007100 <HAL_DMA_IRQHandler+0xc94>)
  15231. 8006f34: 4293 cmp r3, r2
  15232. 8006f36: d022 beq.n 8006f7e <HAL_DMA_IRQHandler+0xb12>
  15233. 8006f38: 687b ldr r3, [r7, #4]
  15234. 8006f3a: 681b ldr r3, [r3, #0]
  15235. 8006f3c: 4a71 ldr r2, [pc, #452] @ (8007104 <HAL_DMA_IRQHandler+0xc98>)
  15236. 8006f3e: 4293 cmp r3, r2
  15237. 8006f40: d01d beq.n 8006f7e <HAL_DMA_IRQHandler+0xb12>
  15238. 8006f42: 687b ldr r3, [r7, #4]
  15239. 8006f44: 681b ldr r3, [r3, #0]
  15240. 8006f46: 4a70 ldr r2, [pc, #448] @ (8007108 <HAL_DMA_IRQHandler+0xc9c>)
  15241. 8006f48: 4293 cmp r3, r2
  15242. 8006f4a: d018 beq.n 8006f7e <HAL_DMA_IRQHandler+0xb12>
  15243. 8006f4c: 687b ldr r3, [r7, #4]
  15244. 8006f4e: 681b ldr r3, [r3, #0]
  15245. 8006f50: 4a6e ldr r2, [pc, #440] @ (800710c <HAL_DMA_IRQHandler+0xca0>)
  15246. 8006f52: 4293 cmp r3, r2
  15247. 8006f54: d013 beq.n 8006f7e <HAL_DMA_IRQHandler+0xb12>
  15248. 8006f56: 687b ldr r3, [r7, #4]
  15249. 8006f58: 681b ldr r3, [r3, #0]
  15250. 8006f5a: 4a6d ldr r2, [pc, #436] @ (8007110 <HAL_DMA_IRQHandler+0xca4>)
  15251. 8006f5c: 4293 cmp r3, r2
  15252. 8006f5e: d00e beq.n 8006f7e <HAL_DMA_IRQHandler+0xb12>
  15253. 8006f60: 687b ldr r3, [r7, #4]
  15254. 8006f62: 681b ldr r3, [r3, #0]
  15255. 8006f64: 4a6b ldr r2, [pc, #428] @ (8007114 <HAL_DMA_IRQHandler+0xca8>)
  15256. 8006f66: 4293 cmp r3, r2
  15257. 8006f68: d009 beq.n 8006f7e <HAL_DMA_IRQHandler+0xb12>
  15258. 8006f6a: 687b ldr r3, [r7, #4]
  15259. 8006f6c: 681b ldr r3, [r3, #0]
  15260. 8006f6e: 4a6a ldr r2, [pc, #424] @ (8007118 <HAL_DMA_IRQHandler+0xcac>)
  15261. 8006f70: 4293 cmp r3, r2
  15262. 8006f72: d004 beq.n 8006f7e <HAL_DMA_IRQHandler+0xb12>
  15263. 8006f74: 687b ldr r3, [r7, #4]
  15264. 8006f76: 681b ldr r3, [r3, #0]
  15265. 8006f78: 4a68 ldr r2, [pc, #416] @ (800711c <HAL_DMA_IRQHandler+0xcb0>)
  15266. 8006f7a: 4293 cmp r3, r2
  15267. 8006f7c: d108 bne.n 8006f90 <HAL_DMA_IRQHandler+0xb24>
  15268. 8006f7e: 687b ldr r3, [r7, #4]
  15269. 8006f80: 681b ldr r3, [r3, #0]
  15270. 8006f82: 681a ldr r2, [r3, #0]
  15271. 8006f84: 687b ldr r3, [r7, #4]
  15272. 8006f86: 681b ldr r3, [r3, #0]
  15273. 8006f88: f022 0208 bic.w r2, r2, #8
  15274. 8006f8c: 601a str r2, [r3, #0]
  15275. 8006f8e: e007 b.n 8006fa0 <HAL_DMA_IRQHandler+0xb34>
  15276. 8006f90: 687b ldr r3, [r7, #4]
  15277. 8006f92: 681b ldr r3, [r3, #0]
  15278. 8006f94: 681a ldr r2, [r3, #0]
  15279. 8006f96: 687b ldr r3, [r7, #4]
  15280. 8006f98: 681b ldr r3, [r3, #0]
  15281. 8006f9a: f022 0204 bic.w r2, r2, #4
  15282. 8006f9e: 601a str r2, [r3, #0]
  15283. }
  15284. /* DMA peripheral state is not updated in Half Transfer */
  15285. /* but in Transfer Complete case */
  15286. if(hdma->XferHalfCpltCallback != NULL)
  15287. 8006fa0: 687b ldr r3, [r7, #4]
  15288. 8006fa2: 6c1b ldr r3, [r3, #64] @ 0x40
  15289. 8006fa4: 2b00 cmp r3, #0
  15290. 8006fa6: f000 8165 beq.w 8007274 <HAL_DMA_IRQHandler+0xe08>
  15291. {
  15292. /* Half transfer callback */
  15293. hdma->XferHalfCpltCallback(hdma);
  15294. 8006faa: 687b ldr r3, [r7, #4]
  15295. 8006fac: 6c1b ldr r3, [r3, #64] @ 0x40
  15296. 8006fae: 6878 ldr r0, [r7, #4]
  15297. 8006fb0: 4798 blx r3
  15298. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  15299. 8006fb2: e15f b.n 8007274 <HAL_DMA_IRQHandler+0xe08>
  15300. }
  15301. }
  15302. }
  15303. /* Transfer Complete Interrupt management ***********************************/
  15304. else if (((tmpisr_bdma & (BDMA_FLAG_TC0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TCIE) != 0U))
  15305. 8006fb4: 687b ldr r3, [r7, #4]
  15306. 8006fb6: 6ddb ldr r3, [r3, #92] @ 0x5c
  15307. 8006fb8: f003 031f and.w r3, r3, #31
  15308. 8006fbc: 2202 movs r2, #2
  15309. 8006fbe: 409a lsls r2, r3
  15310. 8006fc0: 697b ldr r3, [r7, #20]
  15311. 8006fc2: 4013 ands r3, r2
  15312. 8006fc4: 2b00 cmp r3, #0
  15313. 8006fc6: f000 80c5 beq.w 8007154 <HAL_DMA_IRQHandler+0xce8>
  15314. 8006fca: 693b ldr r3, [r7, #16]
  15315. 8006fcc: f003 0302 and.w r3, r3, #2
  15316. 8006fd0: 2b00 cmp r3, #0
  15317. 8006fd2: f000 80bf beq.w 8007154 <HAL_DMA_IRQHandler+0xce8>
  15318. {
  15319. /* Clear the transfer complete flag */
  15320. regs_bdma->IFCR = (BDMA_ISR_TCIF0) << (hdma->StreamIndex & 0x1FU);
  15321. 8006fd6: 687b ldr r3, [r7, #4]
  15322. 8006fd8: 6ddb ldr r3, [r3, #92] @ 0x5c
  15323. 8006fda: f003 031f and.w r3, r3, #31
  15324. 8006fde: 2202 movs r2, #2
  15325. 8006fe0: 409a lsls r2, r3
  15326. 8006fe2: 69fb ldr r3, [r7, #28]
  15327. 8006fe4: 605a str r2, [r3, #4]
  15328. /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */
  15329. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  15330. 8006fe6: 693b ldr r3, [r7, #16]
  15331. 8006fe8: f403 4300 and.w r3, r3, #32768 @ 0x8000
  15332. 8006fec: 2b00 cmp r3, #0
  15333. 8006fee: d018 beq.n 8007022 <HAL_DMA_IRQHandler+0xbb6>
  15334. {
  15335. /* Current memory buffer used is Memory 0 */
  15336. if((ccr_reg & BDMA_CCR_CT) == 0U)
  15337. 8006ff0: 693b ldr r3, [r7, #16]
  15338. 8006ff2: f403 3380 and.w r3, r3, #65536 @ 0x10000
  15339. 8006ff6: 2b00 cmp r3, #0
  15340. 8006ff8: d109 bne.n 800700e <HAL_DMA_IRQHandler+0xba2>
  15341. {
  15342. if(hdma->XferM1CpltCallback != NULL)
  15343. 8006ffa: 687b ldr r3, [r7, #4]
  15344. 8006ffc: 6c5b ldr r3, [r3, #68] @ 0x44
  15345. 8006ffe: 2b00 cmp r3, #0
  15346. 8007000: f000 813a beq.w 8007278 <HAL_DMA_IRQHandler+0xe0c>
  15347. {
  15348. /* Transfer complete Callback for Memory 1 */
  15349. hdma->XferM1CpltCallback(hdma);
  15350. 8007004: 687b ldr r3, [r7, #4]
  15351. 8007006: 6c5b ldr r3, [r3, #68] @ 0x44
  15352. 8007008: 6878 ldr r0, [r7, #4]
  15353. 800700a: 4798 blx r3
  15354. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  15355. 800700c: e134 b.n 8007278 <HAL_DMA_IRQHandler+0xe0c>
  15356. }
  15357. }
  15358. /* Current memory buffer used is Memory 1 */
  15359. else
  15360. {
  15361. if(hdma->XferCpltCallback != NULL)
  15362. 800700e: 687b ldr r3, [r7, #4]
  15363. 8007010: 6bdb ldr r3, [r3, #60] @ 0x3c
  15364. 8007012: 2b00 cmp r3, #0
  15365. 8007014: f000 8130 beq.w 8007278 <HAL_DMA_IRQHandler+0xe0c>
  15366. {
  15367. /* Transfer complete Callback for Memory 0 */
  15368. hdma->XferCpltCallback(hdma);
  15369. 8007018: 687b ldr r3, [r7, #4]
  15370. 800701a: 6bdb ldr r3, [r3, #60] @ 0x3c
  15371. 800701c: 6878 ldr r0, [r7, #4]
  15372. 800701e: 4798 blx r3
  15373. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  15374. 8007020: e12a b.n 8007278 <HAL_DMA_IRQHandler+0xe0c>
  15375. }
  15376. }
  15377. }
  15378. else
  15379. {
  15380. if((ccr_reg & BDMA_CCR_CIRC) == 0U)
  15381. 8007022: 693b ldr r3, [r7, #16]
  15382. 8007024: f003 0320 and.w r3, r3, #32
  15383. 8007028: 2b00 cmp r3, #0
  15384. 800702a: f040 8089 bne.w 8007140 <HAL_DMA_IRQHandler+0xcd4>
  15385. {
  15386. /* Disable the transfer complete and error interrupt, if the DMA mode is not CIRCULAR */
  15387. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_TE | DMA_IT_TC);
  15388. 800702e: 687b ldr r3, [r7, #4]
  15389. 8007030: 681b ldr r3, [r3, #0]
  15390. 8007032: 4a2b ldr r2, [pc, #172] @ (80070e0 <HAL_DMA_IRQHandler+0xc74>)
  15391. 8007034: 4293 cmp r3, r2
  15392. 8007036: d04a beq.n 80070ce <HAL_DMA_IRQHandler+0xc62>
  15393. 8007038: 687b ldr r3, [r7, #4]
  15394. 800703a: 681b ldr r3, [r3, #0]
  15395. 800703c: 4a29 ldr r2, [pc, #164] @ (80070e4 <HAL_DMA_IRQHandler+0xc78>)
  15396. 800703e: 4293 cmp r3, r2
  15397. 8007040: d045 beq.n 80070ce <HAL_DMA_IRQHandler+0xc62>
  15398. 8007042: 687b ldr r3, [r7, #4]
  15399. 8007044: 681b ldr r3, [r3, #0]
  15400. 8007046: 4a28 ldr r2, [pc, #160] @ (80070e8 <HAL_DMA_IRQHandler+0xc7c>)
  15401. 8007048: 4293 cmp r3, r2
  15402. 800704a: d040 beq.n 80070ce <HAL_DMA_IRQHandler+0xc62>
  15403. 800704c: 687b ldr r3, [r7, #4]
  15404. 800704e: 681b ldr r3, [r3, #0]
  15405. 8007050: 4a26 ldr r2, [pc, #152] @ (80070ec <HAL_DMA_IRQHandler+0xc80>)
  15406. 8007052: 4293 cmp r3, r2
  15407. 8007054: d03b beq.n 80070ce <HAL_DMA_IRQHandler+0xc62>
  15408. 8007056: 687b ldr r3, [r7, #4]
  15409. 8007058: 681b ldr r3, [r3, #0]
  15410. 800705a: 4a25 ldr r2, [pc, #148] @ (80070f0 <HAL_DMA_IRQHandler+0xc84>)
  15411. 800705c: 4293 cmp r3, r2
  15412. 800705e: d036 beq.n 80070ce <HAL_DMA_IRQHandler+0xc62>
  15413. 8007060: 687b ldr r3, [r7, #4]
  15414. 8007062: 681b ldr r3, [r3, #0]
  15415. 8007064: 4a23 ldr r2, [pc, #140] @ (80070f4 <HAL_DMA_IRQHandler+0xc88>)
  15416. 8007066: 4293 cmp r3, r2
  15417. 8007068: d031 beq.n 80070ce <HAL_DMA_IRQHandler+0xc62>
  15418. 800706a: 687b ldr r3, [r7, #4]
  15419. 800706c: 681b ldr r3, [r3, #0]
  15420. 800706e: 4a22 ldr r2, [pc, #136] @ (80070f8 <HAL_DMA_IRQHandler+0xc8c>)
  15421. 8007070: 4293 cmp r3, r2
  15422. 8007072: d02c beq.n 80070ce <HAL_DMA_IRQHandler+0xc62>
  15423. 8007074: 687b ldr r3, [r7, #4]
  15424. 8007076: 681b ldr r3, [r3, #0]
  15425. 8007078: 4a20 ldr r2, [pc, #128] @ (80070fc <HAL_DMA_IRQHandler+0xc90>)
  15426. 800707a: 4293 cmp r3, r2
  15427. 800707c: d027 beq.n 80070ce <HAL_DMA_IRQHandler+0xc62>
  15428. 800707e: 687b ldr r3, [r7, #4]
  15429. 8007080: 681b ldr r3, [r3, #0]
  15430. 8007082: 4a1f ldr r2, [pc, #124] @ (8007100 <HAL_DMA_IRQHandler+0xc94>)
  15431. 8007084: 4293 cmp r3, r2
  15432. 8007086: d022 beq.n 80070ce <HAL_DMA_IRQHandler+0xc62>
  15433. 8007088: 687b ldr r3, [r7, #4]
  15434. 800708a: 681b ldr r3, [r3, #0]
  15435. 800708c: 4a1d ldr r2, [pc, #116] @ (8007104 <HAL_DMA_IRQHandler+0xc98>)
  15436. 800708e: 4293 cmp r3, r2
  15437. 8007090: d01d beq.n 80070ce <HAL_DMA_IRQHandler+0xc62>
  15438. 8007092: 687b ldr r3, [r7, #4]
  15439. 8007094: 681b ldr r3, [r3, #0]
  15440. 8007096: 4a1c ldr r2, [pc, #112] @ (8007108 <HAL_DMA_IRQHandler+0xc9c>)
  15441. 8007098: 4293 cmp r3, r2
  15442. 800709a: d018 beq.n 80070ce <HAL_DMA_IRQHandler+0xc62>
  15443. 800709c: 687b ldr r3, [r7, #4]
  15444. 800709e: 681b ldr r3, [r3, #0]
  15445. 80070a0: 4a1a ldr r2, [pc, #104] @ (800710c <HAL_DMA_IRQHandler+0xca0>)
  15446. 80070a2: 4293 cmp r3, r2
  15447. 80070a4: d013 beq.n 80070ce <HAL_DMA_IRQHandler+0xc62>
  15448. 80070a6: 687b ldr r3, [r7, #4]
  15449. 80070a8: 681b ldr r3, [r3, #0]
  15450. 80070aa: 4a19 ldr r2, [pc, #100] @ (8007110 <HAL_DMA_IRQHandler+0xca4>)
  15451. 80070ac: 4293 cmp r3, r2
  15452. 80070ae: d00e beq.n 80070ce <HAL_DMA_IRQHandler+0xc62>
  15453. 80070b0: 687b ldr r3, [r7, #4]
  15454. 80070b2: 681b ldr r3, [r3, #0]
  15455. 80070b4: 4a17 ldr r2, [pc, #92] @ (8007114 <HAL_DMA_IRQHandler+0xca8>)
  15456. 80070b6: 4293 cmp r3, r2
  15457. 80070b8: d009 beq.n 80070ce <HAL_DMA_IRQHandler+0xc62>
  15458. 80070ba: 687b ldr r3, [r7, #4]
  15459. 80070bc: 681b ldr r3, [r3, #0]
  15460. 80070be: 4a16 ldr r2, [pc, #88] @ (8007118 <HAL_DMA_IRQHandler+0xcac>)
  15461. 80070c0: 4293 cmp r3, r2
  15462. 80070c2: d004 beq.n 80070ce <HAL_DMA_IRQHandler+0xc62>
  15463. 80070c4: 687b ldr r3, [r7, #4]
  15464. 80070c6: 681b ldr r3, [r3, #0]
  15465. 80070c8: 4a14 ldr r2, [pc, #80] @ (800711c <HAL_DMA_IRQHandler+0xcb0>)
  15466. 80070ca: 4293 cmp r3, r2
  15467. 80070cc: d128 bne.n 8007120 <HAL_DMA_IRQHandler+0xcb4>
  15468. 80070ce: 687b ldr r3, [r7, #4]
  15469. 80070d0: 681b ldr r3, [r3, #0]
  15470. 80070d2: 681a ldr r2, [r3, #0]
  15471. 80070d4: 687b ldr r3, [r7, #4]
  15472. 80070d6: 681b ldr r3, [r3, #0]
  15473. 80070d8: f022 0214 bic.w r2, r2, #20
  15474. 80070dc: 601a str r2, [r3, #0]
  15475. 80070de: e027 b.n 8007130 <HAL_DMA_IRQHandler+0xcc4>
  15476. 80070e0: 40020010 .word 0x40020010
  15477. 80070e4: 40020028 .word 0x40020028
  15478. 80070e8: 40020040 .word 0x40020040
  15479. 80070ec: 40020058 .word 0x40020058
  15480. 80070f0: 40020070 .word 0x40020070
  15481. 80070f4: 40020088 .word 0x40020088
  15482. 80070f8: 400200a0 .word 0x400200a0
  15483. 80070fc: 400200b8 .word 0x400200b8
  15484. 8007100: 40020410 .word 0x40020410
  15485. 8007104: 40020428 .word 0x40020428
  15486. 8007108: 40020440 .word 0x40020440
  15487. 800710c: 40020458 .word 0x40020458
  15488. 8007110: 40020470 .word 0x40020470
  15489. 8007114: 40020488 .word 0x40020488
  15490. 8007118: 400204a0 .word 0x400204a0
  15491. 800711c: 400204b8 .word 0x400204b8
  15492. 8007120: 687b ldr r3, [r7, #4]
  15493. 8007122: 681b ldr r3, [r3, #0]
  15494. 8007124: 681a ldr r2, [r3, #0]
  15495. 8007126: 687b ldr r3, [r7, #4]
  15496. 8007128: 681b ldr r3, [r3, #0]
  15497. 800712a: f022 020a bic.w r2, r2, #10
  15498. 800712e: 601a str r2, [r3, #0]
  15499. /* Change the DMA state */
  15500. hdma->State = HAL_DMA_STATE_READY;
  15501. 8007130: 687b ldr r3, [r7, #4]
  15502. 8007132: 2201 movs r2, #1
  15503. 8007134: f883 2035 strb.w r2, [r3, #53] @ 0x35
  15504. /* Process Unlocked */
  15505. __HAL_UNLOCK(hdma);
  15506. 8007138: 687b ldr r3, [r7, #4]
  15507. 800713a: 2200 movs r2, #0
  15508. 800713c: f883 2034 strb.w r2, [r3, #52] @ 0x34
  15509. }
  15510. if(hdma->XferCpltCallback != NULL)
  15511. 8007140: 687b ldr r3, [r7, #4]
  15512. 8007142: 6bdb ldr r3, [r3, #60] @ 0x3c
  15513. 8007144: 2b00 cmp r3, #0
  15514. 8007146: f000 8097 beq.w 8007278 <HAL_DMA_IRQHandler+0xe0c>
  15515. {
  15516. /* Transfer complete callback */
  15517. hdma->XferCpltCallback(hdma);
  15518. 800714a: 687b ldr r3, [r7, #4]
  15519. 800714c: 6bdb ldr r3, [r3, #60] @ 0x3c
  15520. 800714e: 6878 ldr r0, [r7, #4]
  15521. 8007150: 4798 blx r3
  15522. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  15523. 8007152: e091 b.n 8007278 <HAL_DMA_IRQHandler+0xe0c>
  15524. }
  15525. }
  15526. }
  15527. /* Transfer Error Interrupt management **************************************/
  15528. else if (((tmpisr_bdma & (BDMA_FLAG_TE0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TEIE) != 0U))
  15529. 8007154: 687b ldr r3, [r7, #4]
  15530. 8007156: 6ddb ldr r3, [r3, #92] @ 0x5c
  15531. 8007158: f003 031f and.w r3, r3, #31
  15532. 800715c: 2208 movs r2, #8
  15533. 800715e: 409a lsls r2, r3
  15534. 8007160: 697b ldr r3, [r7, #20]
  15535. 8007162: 4013 ands r3, r2
  15536. 8007164: 2b00 cmp r3, #0
  15537. 8007166: f000 8088 beq.w 800727a <HAL_DMA_IRQHandler+0xe0e>
  15538. 800716a: 693b ldr r3, [r7, #16]
  15539. 800716c: f003 0308 and.w r3, r3, #8
  15540. 8007170: 2b00 cmp r3, #0
  15541. 8007172: f000 8082 beq.w 800727a <HAL_DMA_IRQHandler+0xe0e>
  15542. {
  15543. /* When a DMA transfer error occurs */
  15544. /* A hardware clear of its EN bits is performed */
  15545. /* Disable ALL DMA IT */
  15546. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  15547. 8007176: 687b ldr r3, [r7, #4]
  15548. 8007178: 681b ldr r3, [r3, #0]
  15549. 800717a: 4a41 ldr r2, [pc, #260] @ (8007280 <HAL_DMA_IRQHandler+0xe14>)
  15550. 800717c: 4293 cmp r3, r2
  15551. 800717e: d04a beq.n 8007216 <HAL_DMA_IRQHandler+0xdaa>
  15552. 8007180: 687b ldr r3, [r7, #4]
  15553. 8007182: 681b ldr r3, [r3, #0]
  15554. 8007184: 4a3f ldr r2, [pc, #252] @ (8007284 <HAL_DMA_IRQHandler+0xe18>)
  15555. 8007186: 4293 cmp r3, r2
  15556. 8007188: d045 beq.n 8007216 <HAL_DMA_IRQHandler+0xdaa>
  15557. 800718a: 687b ldr r3, [r7, #4]
  15558. 800718c: 681b ldr r3, [r3, #0]
  15559. 800718e: 4a3e ldr r2, [pc, #248] @ (8007288 <HAL_DMA_IRQHandler+0xe1c>)
  15560. 8007190: 4293 cmp r3, r2
  15561. 8007192: d040 beq.n 8007216 <HAL_DMA_IRQHandler+0xdaa>
  15562. 8007194: 687b ldr r3, [r7, #4]
  15563. 8007196: 681b ldr r3, [r3, #0]
  15564. 8007198: 4a3c ldr r2, [pc, #240] @ (800728c <HAL_DMA_IRQHandler+0xe20>)
  15565. 800719a: 4293 cmp r3, r2
  15566. 800719c: d03b beq.n 8007216 <HAL_DMA_IRQHandler+0xdaa>
  15567. 800719e: 687b ldr r3, [r7, #4]
  15568. 80071a0: 681b ldr r3, [r3, #0]
  15569. 80071a2: 4a3b ldr r2, [pc, #236] @ (8007290 <HAL_DMA_IRQHandler+0xe24>)
  15570. 80071a4: 4293 cmp r3, r2
  15571. 80071a6: d036 beq.n 8007216 <HAL_DMA_IRQHandler+0xdaa>
  15572. 80071a8: 687b ldr r3, [r7, #4]
  15573. 80071aa: 681b ldr r3, [r3, #0]
  15574. 80071ac: 4a39 ldr r2, [pc, #228] @ (8007294 <HAL_DMA_IRQHandler+0xe28>)
  15575. 80071ae: 4293 cmp r3, r2
  15576. 80071b0: d031 beq.n 8007216 <HAL_DMA_IRQHandler+0xdaa>
  15577. 80071b2: 687b ldr r3, [r7, #4]
  15578. 80071b4: 681b ldr r3, [r3, #0]
  15579. 80071b6: 4a38 ldr r2, [pc, #224] @ (8007298 <HAL_DMA_IRQHandler+0xe2c>)
  15580. 80071b8: 4293 cmp r3, r2
  15581. 80071ba: d02c beq.n 8007216 <HAL_DMA_IRQHandler+0xdaa>
  15582. 80071bc: 687b ldr r3, [r7, #4]
  15583. 80071be: 681b ldr r3, [r3, #0]
  15584. 80071c0: 4a36 ldr r2, [pc, #216] @ (800729c <HAL_DMA_IRQHandler+0xe30>)
  15585. 80071c2: 4293 cmp r3, r2
  15586. 80071c4: d027 beq.n 8007216 <HAL_DMA_IRQHandler+0xdaa>
  15587. 80071c6: 687b ldr r3, [r7, #4]
  15588. 80071c8: 681b ldr r3, [r3, #0]
  15589. 80071ca: 4a35 ldr r2, [pc, #212] @ (80072a0 <HAL_DMA_IRQHandler+0xe34>)
  15590. 80071cc: 4293 cmp r3, r2
  15591. 80071ce: d022 beq.n 8007216 <HAL_DMA_IRQHandler+0xdaa>
  15592. 80071d0: 687b ldr r3, [r7, #4]
  15593. 80071d2: 681b ldr r3, [r3, #0]
  15594. 80071d4: 4a33 ldr r2, [pc, #204] @ (80072a4 <HAL_DMA_IRQHandler+0xe38>)
  15595. 80071d6: 4293 cmp r3, r2
  15596. 80071d8: d01d beq.n 8007216 <HAL_DMA_IRQHandler+0xdaa>
  15597. 80071da: 687b ldr r3, [r7, #4]
  15598. 80071dc: 681b ldr r3, [r3, #0]
  15599. 80071de: 4a32 ldr r2, [pc, #200] @ (80072a8 <HAL_DMA_IRQHandler+0xe3c>)
  15600. 80071e0: 4293 cmp r3, r2
  15601. 80071e2: d018 beq.n 8007216 <HAL_DMA_IRQHandler+0xdaa>
  15602. 80071e4: 687b ldr r3, [r7, #4]
  15603. 80071e6: 681b ldr r3, [r3, #0]
  15604. 80071e8: 4a30 ldr r2, [pc, #192] @ (80072ac <HAL_DMA_IRQHandler+0xe40>)
  15605. 80071ea: 4293 cmp r3, r2
  15606. 80071ec: d013 beq.n 8007216 <HAL_DMA_IRQHandler+0xdaa>
  15607. 80071ee: 687b ldr r3, [r7, #4]
  15608. 80071f0: 681b ldr r3, [r3, #0]
  15609. 80071f2: 4a2f ldr r2, [pc, #188] @ (80072b0 <HAL_DMA_IRQHandler+0xe44>)
  15610. 80071f4: 4293 cmp r3, r2
  15611. 80071f6: d00e beq.n 8007216 <HAL_DMA_IRQHandler+0xdaa>
  15612. 80071f8: 687b ldr r3, [r7, #4]
  15613. 80071fa: 681b ldr r3, [r3, #0]
  15614. 80071fc: 4a2d ldr r2, [pc, #180] @ (80072b4 <HAL_DMA_IRQHandler+0xe48>)
  15615. 80071fe: 4293 cmp r3, r2
  15616. 8007200: d009 beq.n 8007216 <HAL_DMA_IRQHandler+0xdaa>
  15617. 8007202: 687b ldr r3, [r7, #4]
  15618. 8007204: 681b ldr r3, [r3, #0]
  15619. 8007206: 4a2c ldr r2, [pc, #176] @ (80072b8 <HAL_DMA_IRQHandler+0xe4c>)
  15620. 8007208: 4293 cmp r3, r2
  15621. 800720a: d004 beq.n 8007216 <HAL_DMA_IRQHandler+0xdaa>
  15622. 800720c: 687b ldr r3, [r7, #4]
  15623. 800720e: 681b ldr r3, [r3, #0]
  15624. 8007210: 4a2a ldr r2, [pc, #168] @ (80072bc <HAL_DMA_IRQHandler+0xe50>)
  15625. 8007212: 4293 cmp r3, r2
  15626. 8007214: d108 bne.n 8007228 <HAL_DMA_IRQHandler+0xdbc>
  15627. 8007216: 687b ldr r3, [r7, #4]
  15628. 8007218: 681b ldr r3, [r3, #0]
  15629. 800721a: 681a ldr r2, [r3, #0]
  15630. 800721c: 687b ldr r3, [r7, #4]
  15631. 800721e: 681b ldr r3, [r3, #0]
  15632. 8007220: f022 021c bic.w r2, r2, #28
  15633. 8007224: 601a str r2, [r3, #0]
  15634. 8007226: e007 b.n 8007238 <HAL_DMA_IRQHandler+0xdcc>
  15635. 8007228: 687b ldr r3, [r7, #4]
  15636. 800722a: 681b ldr r3, [r3, #0]
  15637. 800722c: 681a ldr r2, [r3, #0]
  15638. 800722e: 687b ldr r3, [r7, #4]
  15639. 8007230: 681b ldr r3, [r3, #0]
  15640. 8007232: f022 020e bic.w r2, r2, #14
  15641. 8007236: 601a str r2, [r3, #0]
  15642. /* Clear all flags */
  15643. regs_bdma->IFCR = (BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU);
  15644. 8007238: 687b ldr r3, [r7, #4]
  15645. 800723a: 6ddb ldr r3, [r3, #92] @ 0x5c
  15646. 800723c: f003 031f and.w r3, r3, #31
  15647. 8007240: 2201 movs r2, #1
  15648. 8007242: 409a lsls r2, r3
  15649. 8007244: 69fb ldr r3, [r7, #28]
  15650. 8007246: 605a str r2, [r3, #4]
  15651. /* Update error code */
  15652. hdma->ErrorCode = HAL_DMA_ERROR_TE;
  15653. 8007248: 687b ldr r3, [r7, #4]
  15654. 800724a: 2201 movs r2, #1
  15655. 800724c: 655a str r2, [r3, #84] @ 0x54
  15656. /* Change the DMA state */
  15657. hdma->State = HAL_DMA_STATE_READY;
  15658. 800724e: 687b ldr r3, [r7, #4]
  15659. 8007250: 2201 movs r2, #1
  15660. 8007252: f883 2035 strb.w r2, [r3, #53] @ 0x35
  15661. /* Process Unlocked */
  15662. __HAL_UNLOCK(hdma);
  15663. 8007256: 687b ldr r3, [r7, #4]
  15664. 8007258: 2200 movs r2, #0
  15665. 800725a: f883 2034 strb.w r2, [r3, #52] @ 0x34
  15666. if (hdma->XferErrorCallback != NULL)
  15667. 800725e: 687b ldr r3, [r7, #4]
  15668. 8007260: 6cdb ldr r3, [r3, #76] @ 0x4c
  15669. 8007262: 2b00 cmp r3, #0
  15670. 8007264: d009 beq.n 800727a <HAL_DMA_IRQHandler+0xe0e>
  15671. {
  15672. /* Transfer error callback */
  15673. hdma->XferErrorCallback(hdma);
  15674. 8007266: 687b ldr r3, [r7, #4]
  15675. 8007268: 6cdb ldr r3, [r3, #76] @ 0x4c
  15676. 800726a: 6878 ldr r0, [r7, #4]
  15677. 800726c: 4798 blx r3
  15678. 800726e: e004 b.n 800727a <HAL_DMA_IRQHandler+0xe0e>
  15679. return;
  15680. 8007270: bf00 nop
  15681. 8007272: e002 b.n 800727a <HAL_DMA_IRQHandler+0xe0e>
  15682. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  15683. 8007274: bf00 nop
  15684. 8007276: e000 b.n 800727a <HAL_DMA_IRQHandler+0xe0e>
  15685. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  15686. 8007278: bf00 nop
  15687. }
  15688. else
  15689. {
  15690. /* Nothing To Do */
  15691. }
  15692. }
  15693. 800727a: 3728 adds r7, #40 @ 0x28
  15694. 800727c: 46bd mov sp, r7
  15695. 800727e: bd80 pop {r7, pc}
  15696. 8007280: 40020010 .word 0x40020010
  15697. 8007284: 40020028 .word 0x40020028
  15698. 8007288: 40020040 .word 0x40020040
  15699. 800728c: 40020058 .word 0x40020058
  15700. 8007290: 40020070 .word 0x40020070
  15701. 8007294: 40020088 .word 0x40020088
  15702. 8007298: 400200a0 .word 0x400200a0
  15703. 800729c: 400200b8 .word 0x400200b8
  15704. 80072a0: 40020410 .word 0x40020410
  15705. 80072a4: 40020428 .word 0x40020428
  15706. 80072a8: 40020440 .word 0x40020440
  15707. 80072ac: 40020458 .word 0x40020458
  15708. 80072b0: 40020470 .word 0x40020470
  15709. 80072b4: 40020488 .word 0x40020488
  15710. 80072b8: 400204a0 .word 0x400204a0
  15711. 80072bc: 400204b8 .word 0x400204b8
  15712. 080072c0 <DMA_CalcBaseAndBitshift>:
  15713. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  15714. * the configuration information for the specified DMA Stream.
  15715. * @retval Stream base address
  15716. */
  15717. static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma)
  15718. {
  15719. 80072c0: b480 push {r7}
  15720. 80072c2: b085 sub sp, #20
  15721. 80072c4: af00 add r7, sp, #0
  15722. 80072c6: 6078 str r0, [r7, #4]
  15723. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  15724. 80072c8: 687b ldr r3, [r7, #4]
  15725. 80072ca: 681b ldr r3, [r3, #0]
  15726. 80072cc: 4a42 ldr r2, [pc, #264] @ (80073d8 <DMA_CalcBaseAndBitshift+0x118>)
  15727. 80072ce: 4293 cmp r3, r2
  15728. 80072d0: d04a beq.n 8007368 <DMA_CalcBaseAndBitshift+0xa8>
  15729. 80072d2: 687b ldr r3, [r7, #4]
  15730. 80072d4: 681b ldr r3, [r3, #0]
  15731. 80072d6: 4a41 ldr r2, [pc, #260] @ (80073dc <DMA_CalcBaseAndBitshift+0x11c>)
  15732. 80072d8: 4293 cmp r3, r2
  15733. 80072da: d045 beq.n 8007368 <DMA_CalcBaseAndBitshift+0xa8>
  15734. 80072dc: 687b ldr r3, [r7, #4]
  15735. 80072de: 681b ldr r3, [r3, #0]
  15736. 80072e0: 4a3f ldr r2, [pc, #252] @ (80073e0 <DMA_CalcBaseAndBitshift+0x120>)
  15737. 80072e2: 4293 cmp r3, r2
  15738. 80072e4: d040 beq.n 8007368 <DMA_CalcBaseAndBitshift+0xa8>
  15739. 80072e6: 687b ldr r3, [r7, #4]
  15740. 80072e8: 681b ldr r3, [r3, #0]
  15741. 80072ea: 4a3e ldr r2, [pc, #248] @ (80073e4 <DMA_CalcBaseAndBitshift+0x124>)
  15742. 80072ec: 4293 cmp r3, r2
  15743. 80072ee: d03b beq.n 8007368 <DMA_CalcBaseAndBitshift+0xa8>
  15744. 80072f0: 687b ldr r3, [r7, #4]
  15745. 80072f2: 681b ldr r3, [r3, #0]
  15746. 80072f4: 4a3c ldr r2, [pc, #240] @ (80073e8 <DMA_CalcBaseAndBitshift+0x128>)
  15747. 80072f6: 4293 cmp r3, r2
  15748. 80072f8: d036 beq.n 8007368 <DMA_CalcBaseAndBitshift+0xa8>
  15749. 80072fa: 687b ldr r3, [r7, #4]
  15750. 80072fc: 681b ldr r3, [r3, #0]
  15751. 80072fe: 4a3b ldr r2, [pc, #236] @ (80073ec <DMA_CalcBaseAndBitshift+0x12c>)
  15752. 8007300: 4293 cmp r3, r2
  15753. 8007302: d031 beq.n 8007368 <DMA_CalcBaseAndBitshift+0xa8>
  15754. 8007304: 687b ldr r3, [r7, #4]
  15755. 8007306: 681b ldr r3, [r3, #0]
  15756. 8007308: 4a39 ldr r2, [pc, #228] @ (80073f0 <DMA_CalcBaseAndBitshift+0x130>)
  15757. 800730a: 4293 cmp r3, r2
  15758. 800730c: d02c beq.n 8007368 <DMA_CalcBaseAndBitshift+0xa8>
  15759. 800730e: 687b ldr r3, [r7, #4]
  15760. 8007310: 681b ldr r3, [r3, #0]
  15761. 8007312: 4a38 ldr r2, [pc, #224] @ (80073f4 <DMA_CalcBaseAndBitshift+0x134>)
  15762. 8007314: 4293 cmp r3, r2
  15763. 8007316: d027 beq.n 8007368 <DMA_CalcBaseAndBitshift+0xa8>
  15764. 8007318: 687b ldr r3, [r7, #4]
  15765. 800731a: 681b ldr r3, [r3, #0]
  15766. 800731c: 4a36 ldr r2, [pc, #216] @ (80073f8 <DMA_CalcBaseAndBitshift+0x138>)
  15767. 800731e: 4293 cmp r3, r2
  15768. 8007320: d022 beq.n 8007368 <DMA_CalcBaseAndBitshift+0xa8>
  15769. 8007322: 687b ldr r3, [r7, #4]
  15770. 8007324: 681b ldr r3, [r3, #0]
  15771. 8007326: 4a35 ldr r2, [pc, #212] @ (80073fc <DMA_CalcBaseAndBitshift+0x13c>)
  15772. 8007328: 4293 cmp r3, r2
  15773. 800732a: d01d beq.n 8007368 <DMA_CalcBaseAndBitshift+0xa8>
  15774. 800732c: 687b ldr r3, [r7, #4]
  15775. 800732e: 681b ldr r3, [r3, #0]
  15776. 8007330: 4a33 ldr r2, [pc, #204] @ (8007400 <DMA_CalcBaseAndBitshift+0x140>)
  15777. 8007332: 4293 cmp r3, r2
  15778. 8007334: d018 beq.n 8007368 <DMA_CalcBaseAndBitshift+0xa8>
  15779. 8007336: 687b ldr r3, [r7, #4]
  15780. 8007338: 681b ldr r3, [r3, #0]
  15781. 800733a: 4a32 ldr r2, [pc, #200] @ (8007404 <DMA_CalcBaseAndBitshift+0x144>)
  15782. 800733c: 4293 cmp r3, r2
  15783. 800733e: d013 beq.n 8007368 <DMA_CalcBaseAndBitshift+0xa8>
  15784. 8007340: 687b ldr r3, [r7, #4]
  15785. 8007342: 681b ldr r3, [r3, #0]
  15786. 8007344: 4a30 ldr r2, [pc, #192] @ (8007408 <DMA_CalcBaseAndBitshift+0x148>)
  15787. 8007346: 4293 cmp r3, r2
  15788. 8007348: d00e beq.n 8007368 <DMA_CalcBaseAndBitshift+0xa8>
  15789. 800734a: 687b ldr r3, [r7, #4]
  15790. 800734c: 681b ldr r3, [r3, #0]
  15791. 800734e: 4a2f ldr r2, [pc, #188] @ (800740c <DMA_CalcBaseAndBitshift+0x14c>)
  15792. 8007350: 4293 cmp r3, r2
  15793. 8007352: d009 beq.n 8007368 <DMA_CalcBaseAndBitshift+0xa8>
  15794. 8007354: 687b ldr r3, [r7, #4]
  15795. 8007356: 681b ldr r3, [r3, #0]
  15796. 8007358: 4a2d ldr r2, [pc, #180] @ (8007410 <DMA_CalcBaseAndBitshift+0x150>)
  15797. 800735a: 4293 cmp r3, r2
  15798. 800735c: d004 beq.n 8007368 <DMA_CalcBaseAndBitshift+0xa8>
  15799. 800735e: 687b ldr r3, [r7, #4]
  15800. 8007360: 681b ldr r3, [r3, #0]
  15801. 8007362: 4a2c ldr r2, [pc, #176] @ (8007414 <DMA_CalcBaseAndBitshift+0x154>)
  15802. 8007364: 4293 cmp r3, r2
  15803. 8007366: d101 bne.n 800736c <DMA_CalcBaseAndBitshift+0xac>
  15804. 8007368: 2301 movs r3, #1
  15805. 800736a: e000 b.n 800736e <DMA_CalcBaseAndBitshift+0xae>
  15806. 800736c: 2300 movs r3, #0
  15807. 800736e: 2b00 cmp r3, #0
  15808. 8007370: d024 beq.n 80073bc <DMA_CalcBaseAndBitshift+0xfc>
  15809. {
  15810. uint32_t stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U;
  15811. 8007372: 687b ldr r3, [r7, #4]
  15812. 8007374: 681b ldr r3, [r3, #0]
  15813. 8007376: b2db uxtb r3, r3
  15814. 8007378: 3b10 subs r3, #16
  15815. 800737a: 4a27 ldr r2, [pc, #156] @ (8007418 <DMA_CalcBaseAndBitshift+0x158>)
  15816. 800737c: fba2 2303 umull r2, r3, r2, r3
  15817. 8007380: 091b lsrs r3, r3, #4
  15818. 8007382: 60fb str r3, [r7, #12]
  15819. /* lookup table for necessary bitshift of flags within status registers */
  15820. static const uint8_t flagBitshiftOffset[8U] = {0U, 6U, 16U, 22U, 0U, 6U, 16U, 22U};
  15821. hdma->StreamIndex = flagBitshiftOffset[stream_number & 0x7U];
  15822. 8007384: 68fb ldr r3, [r7, #12]
  15823. 8007386: f003 0307 and.w r3, r3, #7
  15824. 800738a: 4a24 ldr r2, [pc, #144] @ (800741c <DMA_CalcBaseAndBitshift+0x15c>)
  15825. 800738c: 5cd3 ldrb r3, [r2, r3]
  15826. 800738e: 461a mov r2, r3
  15827. 8007390: 687b ldr r3, [r7, #4]
  15828. 8007392: 65da str r2, [r3, #92] @ 0x5c
  15829. if (stream_number > 3U)
  15830. 8007394: 68fb ldr r3, [r7, #12]
  15831. 8007396: 2b03 cmp r3, #3
  15832. 8007398: d908 bls.n 80073ac <DMA_CalcBaseAndBitshift+0xec>
  15833. {
  15834. /* return pointer to HISR and HIFCR */
  15835. hdma->StreamBaseAddress = (((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU)) + 4U);
  15836. 800739a: 687b ldr r3, [r7, #4]
  15837. 800739c: 681b ldr r3, [r3, #0]
  15838. 800739e: 461a mov r2, r3
  15839. 80073a0: 4b1f ldr r3, [pc, #124] @ (8007420 <DMA_CalcBaseAndBitshift+0x160>)
  15840. 80073a2: 4013 ands r3, r2
  15841. 80073a4: 1d1a adds r2, r3, #4
  15842. 80073a6: 687b ldr r3, [r7, #4]
  15843. 80073a8: 659a str r2, [r3, #88] @ 0x58
  15844. 80073aa: e00d b.n 80073c8 <DMA_CalcBaseAndBitshift+0x108>
  15845. }
  15846. else
  15847. {
  15848. /* return pointer to LISR and LIFCR */
  15849. hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU));
  15850. 80073ac: 687b ldr r3, [r7, #4]
  15851. 80073ae: 681b ldr r3, [r3, #0]
  15852. 80073b0: 461a mov r2, r3
  15853. 80073b2: 4b1b ldr r3, [pc, #108] @ (8007420 <DMA_CalcBaseAndBitshift+0x160>)
  15854. 80073b4: 4013 ands r3, r2
  15855. 80073b6: 687a ldr r2, [r7, #4]
  15856. 80073b8: 6593 str r3, [r2, #88] @ 0x58
  15857. 80073ba: e005 b.n 80073c8 <DMA_CalcBaseAndBitshift+0x108>
  15858. }
  15859. }
  15860. else /* BDMA instance(s) */
  15861. {
  15862. /* return pointer to ISR and IFCR */
  15863. hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0xFFU));
  15864. 80073bc: 687b ldr r3, [r7, #4]
  15865. 80073be: 681b ldr r3, [r3, #0]
  15866. 80073c0: f023 02ff bic.w r2, r3, #255 @ 0xff
  15867. 80073c4: 687b ldr r3, [r7, #4]
  15868. 80073c6: 659a str r2, [r3, #88] @ 0x58
  15869. }
  15870. return hdma->StreamBaseAddress;
  15871. 80073c8: 687b ldr r3, [r7, #4]
  15872. 80073ca: 6d9b ldr r3, [r3, #88] @ 0x58
  15873. }
  15874. 80073cc: 4618 mov r0, r3
  15875. 80073ce: 3714 adds r7, #20
  15876. 80073d0: 46bd mov sp, r7
  15877. 80073d2: f85d 7b04 ldr.w r7, [sp], #4
  15878. 80073d6: 4770 bx lr
  15879. 80073d8: 40020010 .word 0x40020010
  15880. 80073dc: 40020028 .word 0x40020028
  15881. 80073e0: 40020040 .word 0x40020040
  15882. 80073e4: 40020058 .word 0x40020058
  15883. 80073e8: 40020070 .word 0x40020070
  15884. 80073ec: 40020088 .word 0x40020088
  15885. 80073f0: 400200a0 .word 0x400200a0
  15886. 80073f4: 400200b8 .word 0x400200b8
  15887. 80073f8: 40020410 .word 0x40020410
  15888. 80073fc: 40020428 .word 0x40020428
  15889. 8007400: 40020440 .word 0x40020440
  15890. 8007404: 40020458 .word 0x40020458
  15891. 8007408: 40020470 .word 0x40020470
  15892. 800740c: 40020488 .word 0x40020488
  15893. 8007410: 400204a0 .word 0x400204a0
  15894. 8007414: 400204b8 .word 0x400204b8
  15895. 8007418: aaaaaaab .word 0xaaaaaaab
  15896. 800741c: 080305c8 .word 0x080305c8
  15897. 8007420: fffffc00 .word 0xfffffc00
  15898. 08007424 <DMA_CheckFifoParam>:
  15899. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  15900. * the configuration information for the specified DMA Stream.
  15901. * @retval HAL status
  15902. */
  15903. static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma)
  15904. {
  15905. 8007424: b480 push {r7}
  15906. 8007426: b085 sub sp, #20
  15907. 8007428: af00 add r7, sp, #0
  15908. 800742a: 6078 str r0, [r7, #4]
  15909. HAL_StatusTypeDef status = HAL_OK;
  15910. 800742c: 2300 movs r3, #0
  15911. 800742e: 73fb strb r3, [r7, #15]
  15912. /* Memory Data size equal to Byte */
  15913. if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_BYTE)
  15914. 8007430: 687b ldr r3, [r7, #4]
  15915. 8007432: 699b ldr r3, [r3, #24]
  15916. 8007434: 2b00 cmp r3, #0
  15917. 8007436: d120 bne.n 800747a <DMA_CheckFifoParam+0x56>
  15918. {
  15919. switch (hdma->Init.FIFOThreshold)
  15920. 8007438: 687b ldr r3, [r7, #4]
  15921. 800743a: 6a9b ldr r3, [r3, #40] @ 0x28
  15922. 800743c: 2b03 cmp r3, #3
  15923. 800743e: d858 bhi.n 80074f2 <DMA_CheckFifoParam+0xce>
  15924. 8007440: a201 add r2, pc, #4 @ (adr r2, 8007448 <DMA_CheckFifoParam+0x24>)
  15925. 8007442: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  15926. 8007446: bf00 nop
  15927. 8007448: 08007459 .word 0x08007459
  15928. 800744c: 0800746b .word 0x0800746b
  15929. 8007450: 08007459 .word 0x08007459
  15930. 8007454: 080074f3 .word 0x080074f3
  15931. {
  15932. case DMA_FIFO_THRESHOLD_1QUARTERFULL:
  15933. case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
  15934. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  15935. 8007458: 687b ldr r3, [r7, #4]
  15936. 800745a: 6adb ldr r3, [r3, #44] @ 0x2c
  15937. 800745c: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  15938. 8007460: 2b00 cmp r3, #0
  15939. 8007462: d048 beq.n 80074f6 <DMA_CheckFifoParam+0xd2>
  15940. {
  15941. status = HAL_ERROR;
  15942. 8007464: 2301 movs r3, #1
  15943. 8007466: 73fb strb r3, [r7, #15]
  15944. }
  15945. break;
  15946. 8007468: e045 b.n 80074f6 <DMA_CheckFifoParam+0xd2>
  15947. case DMA_FIFO_THRESHOLD_HALFFULL:
  15948. if (hdma->Init.MemBurst == DMA_MBURST_INC16)
  15949. 800746a: 687b ldr r3, [r7, #4]
  15950. 800746c: 6adb ldr r3, [r3, #44] @ 0x2c
  15951. 800746e: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000
  15952. 8007472: d142 bne.n 80074fa <DMA_CheckFifoParam+0xd6>
  15953. {
  15954. status = HAL_ERROR;
  15955. 8007474: 2301 movs r3, #1
  15956. 8007476: 73fb strb r3, [r7, #15]
  15957. }
  15958. break;
  15959. 8007478: e03f b.n 80074fa <DMA_CheckFifoParam+0xd6>
  15960. break;
  15961. }
  15962. }
  15963. /* Memory Data size equal to Half-Word */
  15964. else if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_HALFWORD)
  15965. 800747a: 687b ldr r3, [r7, #4]
  15966. 800747c: 699b ldr r3, [r3, #24]
  15967. 800747e: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  15968. 8007482: d123 bne.n 80074cc <DMA_CheckFifoParam+0xa8>
  15969. {
  15970. switch (hdma->Init.FIFOThreshold)
  15971. 8007484: 687b ldr r3, [r7, #4]
  15972. 8007486: 6a9b ldr r3, [r3, #40] @ 0x28
  15973. 8007488: 2b03 cmp r3, #3
  15974. 800748a: d838 bhi.n 80074fe <DMA_CheckFifoParam+0xda>
  15975. 800748c: a201 add r2, pc, #4 @ (adr r2, 8007494 <DMA_CheckFifoParam+0x70>)
  15976. 800748e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  15977. 8007492: bf00 nop
  15978. 8007494: 080074a5 .word 0x080074a5
  15979. 8007498: 080074ab .word 0x080074ab
  15980. 800749c: 080074a5 .word 0x080074a5
  15981. 80074a0: 080074bd .word 0x080074bd
  15982. {
  15983. case DMA_FIFO_THRESHOLD_1QUARTERFULL:
  15984. case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
  15985. status = HAL_ERROR;
  15986. 80074a4: 2301 movs r3, #1
  15987. 80074a6: 73fb strb r3, [r7, #15]
  15988. break;
  15989. 80074a8: e030 b.n 800750c <DMA_CheckFifoParam+0xe8>
  15990. case DMA_FIFO_THRESHOLD_HALFFULL:
  15991. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  15992. 80074aa: 687b ldr r3, [r7, #4]
  15993. 80074ac: 6adb ldr r3, [r3, #44] @ 0x2c
  15994. 80074ae: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  15995. 80074b2: 2b00 cmp r3, #0
  15996. 80074b4: d025 beq.n 8007502 <DMA_CheckFifoParam+0xde>
  15997. {
  15998. status = HAL_ERROR;
  15999. 80074b6: 2301 movs r3, #1
  16000. 80074b8: 73fb strb r3, [r7, #15]
  16001. }
  16002. break;
  16003. 80074ba: e022 b.n 8007502 <DMA_CheckFifoParam+0xde>
  16004. case DMA_FIFO_THRESHOLD_FULL:
  16005. if (hdma->Init.MemBurst == DMA_MBURST_INC16)
  16006. 80074bc: 687b ldr r3, [r7, #4]
  16007. 80074be: 6adb ldr r3, [r3, #44] @ 0x2c
  16008. 80074c0: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000
  16009. 80074c4: d11f bne.n 8007506 <DMA_CheckFifoParam+0xe2>
  16010. {
  16011. status = HAL_ERROR;
  16012. 80074c6: 2301 movs r3, #1
  16013. 80074c8: 73fb strb r3, [r7, #15]
  16014. }
  16015. break;
  16016. 80074ca: e01c b.n 8007506 <DMA_CheckFifoParam+0xe2>
  16017. }
  16018. /* Memory Data size equal to Word */
  16019. else
  16020. {
  16021. switch (hdma->Init.FIFOThreshold)
  16022. 80074cc: 687b ldr r3, [r7, #4]
  16023. 80074ce: 6a9b ldr r3, [r3, #40] @ 0x28
  16024. 80074d0: 2b02 cmp r3, #2
  16025. 80074d2: d902 bls.n 80074da <DMA_CheckFifoParam+0xb6>
  16026. 80074d4: 2b03 cmp r3, #3
  16027. 80074d6: d003 beq.n 80074e0 <DMA_CheckFifoParam+0xbc>
  16028. status = HAL_ERROR;
  16029. }
  16030. break;
  16031. default:
  16032. break;
  16033. 80074d8: e018 b.n 800750c <DMA_CheckFifoParam+0xe8>
  16034. status = HAL_ERROR;
  16035. 80074da: 2301 movs r3, #1
  16036. 80074dc: 73fb strb r3, [r7, #15]
  16037. break;
  16038. 80074de: e015 b.n 800750c <DMA_CheckFifoParam+0xe8>
  16039. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  16040. 80074e0: 687b ldr r3, [r7, #4]
  16041. 80074e2: 6adb ldr r3, [r3, #44] @ 0x2c
  16042. 80074e4: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  16043. 80074e8: 2b00 cmp r3, #0
  16044. 80074ea: d00e beq.n 800750a <DMA_CheckFifoParam+0xe6>
  16045. status = HAL_ERROR;
  16046. 80074ec: 2301 movs r3, #1
  16047. 80074ee: 73fb strb r3, [r7, #15]
  16048. break;
  16049. 80074f0: e00b b.n 800750a <DMA_CheckFifoParam+0xe6>
  16050. break;
  16051. 80074f2: bf00 nop
  16052. 80074f4: e00a b.n 800750c <DMA_CheckFifoParam+0xe8>
  16053. break;
  16054. 80074f6: bf00 nop
  16055. 80074f8: e008 b.n 800750c <DMA_CheckFifoParam+0xe8>
  16056. break;
  16057. 80074fa: bf00 nop
  16058. 80074fc: e006 b.n 800750c <DMA_CheckFifoParam+0xe8>
  16059. break;
  16060. 80074fe: bf00 nop
  16061. 8007500: e004 b.n 800750c <DMA_CheckFifoParam+0xe8>
  16062. break;
  16063. 8007502: bf00 nop
  16064. 8007504: e002 b.n 800750c <DMA_CheckFifoParam+0xe8>
  16065. break;
  16066. 8007506: bf00 nop
  16067. 8007508: e000 b.n 800750c <DMA_CheckFifoParam+0xe8>
  16068. break;
  16069. 800750a: bf00 nop
  16070. }
  16071. }
  16072. return status;
  16073. 800750c: 7bfb ldrb r3, [r7, #15]
  16074. }
  16075. 800750e: 4618 mov r0, r3
  16076. 8007510: 3714 adds r7, #20
  16077. 8007512: 46bd mov sp, r7
  16078. 8007514: f85d 7b04 ldr.w r7, [sp], #4
  16079. 8007518: 4770 bx lr
  16080. 800751a: bf00 nop
  16081. 0800751c <DMA_CalcDMAMUXChannelBaseAndMask>:
  16082. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  16083. * the configuration information for the specified DMA Stream.
  16084. * @retval HAL status
  16085. */
  16086. static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma)
  16087. {
  16088. 800751c: b480 push {r7}
  16089. 800751e: b085 sub sp, #20
  16090. 8007520: af00 add r7, sp, #0
  16091. 8007522: 6078 str r0, [r7, #4]
  16092. uint32_t stream_number;
  16093. uint32_t stream_baseaddress = (uint32_t)((uint32_t*)hdma->Instance);
  16094. 8007524: 687b ldr r3, [r7, #4]
  16095. 8007526: 681b ldr r3, [r3, #0]
  16096. 8007528: 60bb str r3, [r7, #8]
  16097. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  16098. 800752a: 687b ldr r3, [r7, #4]
  16099. 800752c: 681b ldr r3, [r3, #0]
  16100. 800752e: 4a38 ldr r2, [pc, #224] @ (8007610 <DMA_CalcDMAMUXChannelBaseAndMask+0xf4>)
  16101. 8007530: 4293 cmp r3, r2
  16102. 8007532: d022 beq.n 800757a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  16103. 8007534: 687b ldr r3, [r7, #4]
  16104. 8007536: 681b ldr r3, [r3, #0]
  16105. 8007538: 4a36 ldr r2, [pc, #216] @ (8007614 <DMA_CalcDMAMUXChannelBaseAndMask+0xf8>)
  16106. 800753a: 4293 cmp r3, r2
  16107. 800753c: d01d beq.n 800757a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  16108. 800753e: 687b ldr r3, [r7, #4]
  16109. 8007540: 681b ldr r3, [r3, #0]
  16110. 8007542: 4a35 ldr r2, [pc, #212] @ (8007618 <DMA_CalcDMAMUXChannelBaseAndMask+0xfc>)
  16111. 8007544: 4293 cmp r3, r2
  16112. 8007546: d018 beq.n 800757a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  16113. 8007548: 687b ldr r3, [r7, #4]
  16114. 800754a: 681b ldr r3, [r3, #0]
  16115. 800754c: 4a33 ldr r2, [pc, #204] @ (800761c <DMA_CalcDMAMUXChannelBaseAndMask+0x100>)
  16116. 800754e: 4293 cmp r3, r2
  16117. 8007550: d013 beq.n 800757a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  16118. 8007552: 687b ldr r3, [r7, #4]
  16119. 8007554: 681b ldr r3, [r3, #0]
  16120. 8007556: 4a32 ldr r2, [pc, #200] @ (8007620 <DMA_CalcDMAMUXChannelBaseAndMask+0x104>)
  16121. 8007558: 4293 cmp r3, r2
  16122. 800755a: d00e beq.n 800757a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  16123. 800755c: 687b ldr r3, [r7, #4]
  16124. 800755e: 681b ldr r3, [r3, #0]
  16125. 8007560: 4a30 ldr r2, [pc, #192] @ (8007624 <DMA_CalcDMAMUXChannelBaseAndMask+0x108>)
  16126. 8007562: 4293 cmp r3, r2
  16127. 8007564: d009 beq.n 800757a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  16128. 8007566: 687b ldr r3, [r7, #4]
  16129. 8007568: 681b ldr r3, [r3, #0]
  16130. 800756a: 4a2f ldr r2, [pc, #188] @ (8007628 <DMA_CalcDMAMUXChannelBaseAndMask+0x10c>)
  16131. 800756c: 4293 cmp r3, r2
  16132. 800756e: d004 beq.n 800757a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  16133. 8007570: 687b ldr r3, [r7, #4]
  16134. 8007572: 681b ldr r3, [r3, #0]
  16135. 8007574: 4a2d ldr r2, [pc, #180] @ (800762c <DMA_CalcDMAMUXChannelBaseAndMask+0x110>)
  16136. 8007576: 4293 cmp r3, r2
  16137. 8007578: d101 bne.n 800757e <DMA_CalcDMAMUXChannelBaseAndMask+0x62>
  16138. 800757a: 2301 movs r3, #1
  16139. 800757c: e000 b.n 8007580 <DMA_CalcDMAMUXChannelBaseAndMask+0x64>
  16140. 800757e: 2300 movs r3, #0
  16141. 8007580: 2b00 cmp r3, #0
  16142. 8007582: d01a beq.n 80075ba <DMA_CalcDMAMUXChannelBaseAndMask+0x9e>
  16143. {
  16144. /* BDMA Channels are connected to DMAMUX2 channels */
  16145. stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 8U) / 20U;
  16146. 8007584: 687b ldr r3, [r7, #4]
  16147. 8007586: 681b ldr r3, [r3, #0]
  16148. 8007588: b2db uxtb r3, r3
  16149. 800758a: 3b08 subs r3, #8
  16150. 800758c: 4a28 ldr r2, [pc, #160] @ (8007630 <DMA_CalcDMAMUXChannelBaseAndMask+0x114>)
  16151. 800758e: fba2 2303 umull r2, r3, r2, r3
  16152. 8007592: 091b lsrs r3, r3, #4
  16153. 8007594: 60fb str r3, [r7, #12]
  16154. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_Channel0) + (stream_number * 4U)));
  16155. 8007596: 68fa ldr r2, [r7, #12]
  16156. 8007598: 4b26 ldr r3, [pc, #152] @ (8007634 <DMA_CalcDMAMUXChannelBaseAndMask+0x118>)
  16157. 800759a: 4413 add r3, r2
  16158. 800759c: 009b lsls r3, r3, #2
  16159. 800759e: 461a mov r2, r3
  16160. 80075a0: 687b ldr r3, [r7, #4]
  16161. 80075a2: 661a str r2, [r3, #96] @ 0x60
  16162. hdma->DMAmuxChannelStatus = DMAMUX2_ChannelStatus;
  16163. 80075a4: 687b ldr r3, [r7, #4]
  16164. 80075a6: 4a24 ldr r2, [pc, #144] @ (8007638 <DMA_CalcDMAMUXChannelBaseAndMask+0x11c>)
  16165. 80075a8: 665a str r2, [r3, #100] @ 0x64
  16166. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  16167. 80075aa: 68fb ldr r3, [r7, #12]
  16168. 80075ac: f003 031f and.w r3, r3, #31
  16169. 80075b0: 2201 movs r2, #1
  16170. 80075b2: 409a lsls r2, r3
  16171. 80075b4: 687b ldr r3, [r7, #4]
  16172. 80075b6: 669a str r2, [r3, #104] @ 0x68
  16173. }
  16174. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U)));
  16175. hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus;
  16176. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  16177. }
  16178. }
  16179. 80075b8: e024 b.n 8007604 <DMA_CalcDMAMUXChannelBaseAndMask+0xe8>
  16180. stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U;
  16181. 80075ba: 687b ldr r3, [r7, #4]
  16182. 80075bc: 681b ldr r3, [r3, #0]
  16183. 80075be: b2db uxtb r3, r3
  16184. 80075c0: 3b10 subs r3, #16
  16185. 80075c2: 4a1e ldr r2, [pc, #120] @ (800763c <DMA_CalcDMAMUXChannelBaseAndMask+0x120>)
  16186. 80075c4: fba2 2303 umull r2, r3, r2, r3
  16187. 80075c8: 091b lsrs r3, r3, #4
  16188. 80075ca: 60fb str r3, [r7, #12]
  16189. if((stream_baseaddress <= ((uint32_t)DMA2_Stream7) ) && \
  16190. 80075cc: 68bb ldr r3, [r7, #8]
  16191. 80075ce: 4a1c ldr r2, [pc, #112] @ (8007640 <DMA_CalcDMAMUXChannelBaseAndMask+0x124>)
  16192. 80075d0: 4293 cmp r3, r2
  16193. 80075d2: d806 bhi.n 80075e2 <DMA_CalcDMAMUXChannelBaseAndMask+0xc6>
  16194. 80075d4: 68bb ldr r3, [r7, #8]
  16195. 80075d6: 4a1b ldr r2, [pc, #108] @ (8007644 <DMA_CalcDMAMUXChannelBaseAndMask+0x128>)
  16196. 80075d8: 4293 cmp r3, r2
  16197. 80075da: d902 bls.n 80075e2 <DMA_CalcDMAMUXChannelBaseAndMask+0xc6>
  16198. stream_number += 8U;
  16199. 80075dc: 68fb ldr r3, [r7, #12]
  16200. 80075de: 3308 adds r3, #8
  16201. 80075e0: 60fb str r3, [r7, #12]
  16202. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U)));
  16203. 80075e2: 68fa ldr r2, [r7, #12]
  16204. 80075e4: 4b18 ldr r3, [pc, #96] @ (8007648 <DMA_CalcDMAMUXChannelBaseAndMask+0x12c>)
  16205. 80075e6: 4413 add r3, r2
  16206. 80075e8: 009b lsls r3, r3, #2
  16207. 80075ea: 461a mov r2, r3
  16208. 80075ec: 687b ldr r3, [r7, #4]
  16209. 80075ee: 661a str r2, [r3, #96] @ 0x60
  16210. hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus;
  16211. 80075f0: 687b ldr r3, [r7, #4]
  16212. 80075f2: 4a16 ldr r2, [pc, #88] @ (800764c <DMA_CalcDMAMUXChannelBaseAndMask+0x130>)
  16213. 80075f4: 665a str r2, [r3, #100] @ 0x64
  16214. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  16215. 80075f6: 68fb ldr r3, [r7, #12]
  16216. 80075f8: f003 031f and.w r3, r3, #31
  16217. 80075fc: 2201 movs r2, #1
  16218. 80075fe: 409a lsls r2, r3
  16219. 8007600: 687b ldr r3, [r7, #4]
  16220. 8007602: 669a str r2, [r3, #104] @ 0x68
  16221. }
  16222. 8007604: bf00 nop
  16223. 8007606: 3714 adds r7, #20
  16224. 8007608: 46bd mov sp, r7
  16225. 800760a: f85d 7b04 ldr.w r7, [sp], #4
  16226. 800760e: 4770 bx lr
  16227. 8007610: 58025408 .word 0x58025408
  16228. 8007614: 5802541c .word 0x5802541c
  16229. 8007618: 58025430 .word 0x58025430
  16230. 800761c: 58025444 .word 0x58025444
  16231. 8007620: 58025458 .word 0x58025458
  16232. 8007624: 5802546c .word 0x5802546c
  16233. 8007628: 58025480 .word 0x58025480
  16234. 800762c: 58025494 .word 0x58025494
  16235. 8007630: cccccccd .word 0xcccccccd
  16236. 8007634: 16009600 .word 0x16009600
  16237. 8007638: 58025880 .word 0x58025880
  16238. 800763c: aaaaaaab .word 0xaaaaaaab
  16239. 8007640: 400204b8 .word 0x400204b8
  16240. 8007644: 4002040f .word 0x4002040f
  16241. 8007648: 10008200 .word 0x10008200
  16242. 800764c: 40020880 .word 0x40020880
  16243. 08007650 <DMA_CalcDMAMUXRequestGenBaseAndMask>:
  16244. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  16245. * the configuration information for the specified DMA Stream.
  16246. * @retval HAL status
  16247. */
  16248. static void DMA_CalcDMAMUXRequestGenBaseAndMask(DMA_HandleTypeDef *hdma)
  16249. {
  16250. 8007650: b480 push {r7}
  16251. 8007652: b085 sub sp, #20
  16252. 8007654: af00 add r7, sp, #0
  16253. 8007656: 6078 str r0, [r7, #4]
  16254. uint32_t request = hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID;
  16255. 8007658: 687b ldr r3, [r7, #4]
  16256. 800765a: 685b ldr r3, [r3, #4]
  16257. 800765c: b2db uxtb r3, r3
  16258. 800765e: 60fb str r3, [r7, #12]
  16259. if((request >= DMA_REQUEST_GENERATOR0) && (request <= DMA_REQUEST_GENERATOR7))
  16260. 8007660: 68fb ldr r3, [r7, #12]
  16261. 8007662: 2b00 cmp r3, #0
  16262. 8007664: d04a beq.n 80076fc <DMA_CalcDMAMUXRequestGenBaseAndMask+0xac>
  16263. 8007666: 68fb ldr r3, [r7, #12]
  16264. 8007668: 2b08 cmp r3, #8
  16265. 800766a: d847 bhi.n 80076fc <DMA_CalcDMAMUXRequestGenBaseAndMask+0xac>
  16266. {
  16267. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  16268. 800766c: 687b ldr r3, [r7, #4]
  16269. 800766e: 681b ldr r3, [r3, #0]
  16270. 8007670: 4a25 ldr r2, [pc, #148] @ (8007708 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xb8>)
  16271. 8007672: 4293 cmp r3, r2
  16272. 8007674: d022 beq.n 80076bc <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  16273. 8007676: 687b ldr r3, [r7, #4]
  16274. 8007678: 681b ldr r3, [r3, #0]
  16275. 800767a: 4a24 ldr r2, [pc, #144] @ (800770c <DMA_CalcDMAMUXRequestGenBaseAndMask+0xbc>)
  16276. 800767c: 4293 cmp r3, r2
  16277. 800767e: d01d beq.n 80076bc <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  16278. 8007680: 687b ldr r3, [r7, #4]
  16279. 8007682: 681b ldr r3, [r3, #0]
  16280. 8007684: 4a22 ldr r2, [pc, #136] @ (8007710 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc0>)
  16281. 8007686: 4293 cmp r3, r2
  16282. 8007688: d018 beq.n 80076bc <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  16283. 800768a: 687b ldr r3, [r7, #4]
  16284. 800768c: 681b ldr r3, [r3, #0]
  16285. 800768e: 4a21 ldr r2, [pc, #132] @ (8007714 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc4>)
  16286. 8007690: 4293 cmp r3, r2
  16287. 8007692: d013 beq.n 80076bc <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  16288. 8007694: 687b ldr r3, [r7, #4]
  16289. 8007696: 681b ldr r3, [r3, #0]
  16290. 8007698: 4a1f ldr r2, [pc, #124] @ (8007718 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc8>)
  16291. 800769a: 4293 cmp r3, r2
  16292. 800769c: d00e beq.n 80076bc <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  16293. 800769e: 687b ldr r3, [r7, #4]
  16294. 80076a0: 681b ldr r3, [r3, #0]
  16295. 80076a2: 4a1e ldr r2, [pc, #120] @ (800771c <DMA_CalcDMAMUXRequestGenBaseAndMask+0xcc>)
  16296. 80076a4: 4293 cmp r3, r2
  16297. 80076a6: d009 beq.n 80076bc <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  16298. 80076a8: 687b ldr r3, [r7, #4]
  16299. 80076aa: 681b ldr r3, [r3, #0]
  16300. 80076ac: 4a1c ldr r2, [pc, #112] @ (8007720 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd0>)
  16301. 80076ae: 4293 cmp r3, r2
  16302. 80076b0: d004 beq.n 80076bc <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  16303. 80076b2: 687b ldr r3, [r7, #4]
  16304. 80076b4: 681b ldr r3, [r3, #0]
  16305. 80076b6: 4a1b ldr r2, [pc, #108] @ (8007724 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd4>)
  16306. 80076b8: 4293 cmp r3, r2
  16307. 80076ba: d101 bne.n 80076c0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x70>
  16308. 80076bc: 2301 movs r3, #1
  16309. 80076be: e000 b.n 80076c2 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x72>
  16310. 80076c0: 2300 movs r3, #0
  16311. 80076c2: 2b00 cmp r3, #0
  16312. 80076c4: d00a beq.n 80076dc <DMA_CalcDMAMUXRequestGenBaseAndMask+0x8c>
  16313. {
  16314. /* BDMA Channels are connected to DMAMUX2 request generator blocks */
  16315. hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_RequestGenerator0) + ((request - 1U) * 4U)));
  16316. 80076c6: 68fa ldr r2, [r7, #12]
  16317. 80076c8: 4b17 ldr r3, [pc, #92] @ (8007728 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd8>)
  16318. 80076ca: 4413 add r3, r2
  16319. 80076cc: 009b lsls r3, r3, #2
  16320. 80076ce: 461a mov r2, r3
  16321. 80076d0: 687b ldr r3, [r7, #4]
  16322. 80076d2: 66da str r2, [r3, #108] @ 0x6c
  16323. hdma->DMAmuxRequestGenStatus = DMAMUX2_RequestGenStatus;
  16324. 80076d4: 687b ldr r3, [r7, #4]
  16325. 80076d6: 4a15 ldr r2, [pc, #84] @ (800772c <DMA_CalcDMAMUXRequestGenBaseAndMask+0xdc>)
  16326. 80076d8: 671a str r2, [r3, #112] @ 0x70
  16327. 80076da: e009 b.n 80076f0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xa0>
  16328. }
  16329. else
  16330. {
  16331. /* DMA1 and DMA2 Streams use DMAMUX1 request generator blocks */
  16332. hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_RequestGenerator0) + ((request - 1U) * 4U)));
  16333. 80076dc: 68fa ldr r2, [r7, #12]
  16334. 80076de: 4b14 ldr r3, [pc, #80] @ (8007730 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xe0>)
  16335. 80076e0: 4413 add r3, r2
  16336. 80076e2: 009b lsls r3, r3, #2
  16337. 80076e4: 461a mov r2, r3
  16338. 80076e6: 687b ldr r3, [r7, #4]
  16339. 80076e8: 66da str r2, [r3, #108] @ 0x6c
  16340. hdma->DMAmuxRequestGenStatus = DMAMUX1_RequestGenStatus;
  16341. 80076ea: 687b ldr r3, [r7, #4]
  16342. 80076ec: 4a11 ldr r2, [pc, #68] @ (8007734 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xe4>)
  16343. 80076ee: 671a str r2, [r3, #112] @ 0x70
  16344. }
  16345. hdma->DMAmuxRequestGenStatusMask = 1UL << (request - 1U);
  16346. 80076f0: 68fb ldr r3, [r7, #12]
  16347. 80076f2: 3b01 subs r3, #1
  16348. 80076f4: 2201 movs r2, #1
  16349. 80076f6: 409a lsls r2, r3
  16350. 80076f8: 687b ldr r3, [r7, #4]
  16351. 80076fa: 675a str r2, [r3, #116] @ 0x74
  16352. }
  16353. }
  16354. 80076fc: bf00 nop
  16355. 80076fe: 3714 adds r7, #20
  16356. 8007700: 46bd mov sp, r7
  16357. 8007702: f85d 7b04 ldr.w r7, [sp], #4
  16358. 8007706: 4770 bx lr
  16359. 8007708: 58025408 .word 0x58025408
  16360. 800770c: 5802541c .word 0x5802541c
  16361. 8007710: 58025430 .word 0x58025430
  16362. 8007714: 58025444 .word 0x58025444
  16363. 8007718: 58025458 .word 0x58025458
  16364. 800771c: 5802546c .word 0x5802546c
  16365. 8007720: 58025480 .word 0x58025480
  16366. 8007724: 58025494 .word 0x58025494
  16367. 8007728: 1600963f .word 0x1600963f
  16368. 800772c: 58025940 .word 0x58025940
  16369. 8007730: 1000823f .word 0x1000823f
  16370. 8007734: 40020940 .word 0x40020940
  16371. 08007738 <HAL_ETH_Init>:
  16372. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  16373. * the configuration information for ETHERNET module
  16374. * @retval HAL status
  16375. */
  16376. HAL_StatusTypeDef HAL_ETH_Init(ETH_HandleTypeDef *heth)
  16377. {
  16378. 8007738: b580 push {r7, lr}
  16379. 800773a: b084 sub sp, #16
  16380. 800773c: af00 add r7, sp, #0
  16381. 800773e: 6078 str r0, [r7, #4]
  16382. uint32_t tickstart;
  16383. if (heth == NULL)
  16384. 8007740: 687b ldr r3, [r7, #4]
  16385. 8007742: 2b00 cmp r3, #0
  16386. 8007744: d101 bne.n 800774a <HAL_ETH_Init+0x12>
  16387. {
  16388. return HAL_ERROR;
  16389. 8007746: 2301 movs r3, #1
  16390. 8007748: e0e3 b.n 8007912 <HAL_ETH_Init+0x1da>
  16391. }
  16392. if (heth->gState == HAL_ETH_STATE_RESET)
  16393. 800774a: 687b ldr r3, [r7, #4]
  16394. 800774c: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  16395. 8007750: 2b00 cmp r3, #0
  16396. 8007752: d106 bne.n 8007762 <HAL_ETH_Init+0x2a>
  16397. {
  16398. heth->gState = HAL_ETH_STATE_BUSY;
  16399. 8007754: 687b ldr r3, [r7, #4]
  16400. 8007756: 2223 movs r2, #35 @ 0x23
  16401. 8007758: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  16402. /* Init the low level hardware */
  16403. heth->MspInitCallback(heth);
  16404. #else
  16405. /* Init the low level hardware : GPIO, CLOCK, NVIC. */
  16406. HAL_ETH_MspInit(heth);
  16407. 800775c: 6878 ldr r0, [r7, #4]
  16408. 800775e: f008 fa03 bl 800fb68 <HAL_ETH_MspInit>
  16409. #endif /* (USE_HAL_ETH_REGISTER_CALLBACKS) */
  16410. }
  16411. __HAL_RCC_SYSCFG_CLK_ENABLE();
  16412. 8007762: 4b6e ldr r3, [pc, #440] @ (800791c <HAL_ETH_Init+0x1e4>)
  16413. 8007764: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  16414. 8007768: 4a6c ldr r2, [pc, #432] @ (800791c <HAL_ETH_Init+0x1e4>)
  16415. 800776a: f043 0302 orr.w r3, r3, #2
  16416. 800776e: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  16417. 8007772: 4b6a ldr r3, [pc, #424] @ (800791c <HAL_ETH_Init+0x1e4>)
  16418. 8007774: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  16419. 8007778: f003 0302 and.w r3, r3, #2
  16420. 800777c: 60bb str r3, [r7, #8]
  16421. 800777e: 68bb ldr r3, [r7, #8]
  16422. if (heth->Init.MediaInterface == HAL_ETH_MII_MODE)
  16423. 8007780: 687b ldr r3, [r7, #4]
  16424. 8007782: 7a1b ldrb r3, [r3, #8]
  16425. 8007784: 2b00 cmp r3, #0
  16426. 8007786: d103 bne.n 8007790 <HAL_ETH_Init+0x58>
  16427. {
  16428. HAL_SYSCFG_ETHInterfaceSelect(SYSCFG_ETH_MII);
  16429. 8007788: 2000 movs r0, #0
  16430. 800778a: f7fd fa3d bl 8004c08 <HAL_SYSCFG_ETHInterfaceSelect>
  16431. 800778e: e003 b.n 8007798 <HAL_ETH_Init+0x60>
  16432. }
  16433. else
  16434. {
  16435. HAL_SYSCFG_ETHInterfaceSelect(SYSCFG_ETH_RMII);
  16436. 8007790: f44f 0000 mov.w r0, #8388608 @ 0x800000
  16437. 8007794: f7fd fa38 bl 8004c08 <HAL_SYSCFG_ETHInterfaceSelect>
  16438. }
  16439. /* Dummy read to sync with ETH */
  16440. (void)SYSCFG->PMCR;
  16441. 8007798: 4b61 ldr r3, [pc, #388] @ (8007920 <HAL_ETH_Init+0x1e8>)
  16442. 800779a: 685b ldr r3, [r3, #4]
  16443. /* Ethernet Software reset */
  16444. /* Set the SWR bit: resets all MAC subsystem internal registers and logic */
  16445. /* After reset all the registers holds their respective reset values */
  16446. SET_BIT(heth->Instance->DMAMR, ETH_DMAMR_SWR);
  16447. 800779c: 687b ldr r3, [r7, #4]
  16448. 800779e: 681b ldr r3, [r3, #0]
  16449. 80077a0: f503 5380 add.w r3, r3, #4096 @ 0x1000
  16450. 80077a4: 681b ldr r3, [r3, #0]
  16451. 80077a6: 687a ldr r2, [r7, #4]
  16452. 80077a8: 6812 ldr r2, [r2, #0]
  16453. 80077aa: f043 0301 orr.w r3, r3, #1
  16454. 80077ae: f502 5280 add.w r2, r2, #4096 @ 0x1000
  16455. 80077b2: 6013 str r3, [r2, #0]
  16456. /* Get tick */
  16457. tickstart = HAL_GetTick();
  16458. 80077b4: f7fd f9ec bl 8004b90 <HAL_GetTick>
  16459. 80077b8: 60f8 str r0, [r7, #12]
  16460. /* Wait for software reset */
  16461. while (READ_BIT(heth->Instance->DMAMR, ETH_DMAMR_SWR) > 0U)
  16462. 80077ba: e011 b.n 80077e0 <HAL_ETH_Init+0xa8>
  16463. {
  16464. if (((HAL_GetTick() - tickstart) > ETH_SWRESET_TIMEOUT))
  16465. 80077bc: f7fd f9e8 bl 8004b90 <HAL_GetTick>
  16466. 80077c0: 4602 mov r2, r0
  16467. 80077c2: 68fb ldr r3, [r7, #12]
  16468. 80077c4: 1ad3 subs r3, r2, r3
  16469. 80077c6: f5b3 7ffa cmp.w r3, #500 @ 0x1f4
  16470. 80077ca: d909 bls.n 80077e0 <HAL_ETH_Init+0xa8>
  16471. {
  16472. /* Set Error Code */
  16473. heth->ErrorCode = HAL_ETH_ERROR_TIMEOUT;
  16474. 80077cc: 687b ldr r3, [r7, #4]
  16475. 80077ce: 2204 movs r2, #4
  16476. 80077d0: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  16477. /* Set State as Error */
  16478. heth->gState = HAL_ETH_STATE_ERROR;
  16479. 80077d4: 687b ldr r3, [r7, #4]
  16480. 80077d6: 22e0 movs r2, #224 @ 0xe0
  16481. 80077d8: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  16482. /* Return Error */
  16483. return HAL_ERROR;
  16484. 80077dc: 2301 movs r3, #1
  16485. 80077de: e098 b.n 8007912 <HAL_ETH_Init+0x1da>
  16486. while (READ_BIT(heth->Instance->DMAMR, ETH_DMAMR_SWR) > 0U)
  16487. 80077e0: 687b ldr r3, [r7, #4]
  16488. 80077e2: 681b ldr r3, [r3, #0]
  16489. 80077e4: f503 5380 add.w r3, r3, #4096 @ 0x1000
  16490. 80077e8: 681b ldr r3, [r3, #0]
  16491. 80077ea: f003 0301 and.w r3, r3, #1
  16492. 80077ee: 2b00 cmp r3, #0
  16493. 80077f0: d1e4 bne.n 80077bc <HAL_ETH_Init+0x84>
  16494. }
  16495. }
  16496. /*------------------ MDIO CSR Clock Range Configuration --------------------*/
  16497. HAL_ETH_SetMDIOClockRange(heth);
  16498. 80077f2: 6878 ldr r0, [r7, #4]
  16499. 80077f4: f000 ff1c bl 8008630 <HAL_ETH_SetMDIOClockRange>
  16500. /*------------------ MAC LPI 1US Tic Counter Configuration --------------------*/
  16501. WRITE_REG(heth->Instance->MAC1USTCR, (((uint32_t)HAL_RCC_GetHCLKFreq() / ETH_MAC_US_TICK) - 1U));
  16502. 80077f8: f002 fe88 bl 800a50c <HAL_RCC_GetHCLKFreq>
  16503. 80077fc: 4603 mov r3, r0
  16504. 80077fe: 4a49 ldr r2, [pc, #292] @ (8007924 <HAL_ETH_Init+0x1ec>)
  16505. 8007800: fba2 2303 umull r2, r3, r2, r3
  16506. 8007804: 0c9a lsrs r2, r3, #18
  16507. 8007806: 687b ldr r3, [r7, #4]
  16508. 8007808: 681b ldr r3, [r3, #0]
  16509. 800780a: 3a01 subs r2, #1
  16510. 800780c: f8c3 20dc str.w r2, [r3, #220] @ 0xdc
  16511. /*------------------ MAC, MTL and DMA default Configuration ----------------*/
  16512. ETH_MACDMAConfig(heth);
  16513. 8007810: 6878 ldr r0, [r7, #4]
  16514. 8007812: f001 f90d bl 8008a30 <ETH_MACDMAConfig>
  16515. /* SET DSL to 64 bit */
  16516. MODIFY_REG(heth->Instance->DMACCR, ETH_DMACCR_DSL, ETH_DMACCR_DSL_64BIT);
  16517. 8007816: 687b ldr r3, [r7, #4]
  16518. 8007818: 681b ldr r3, [r3, #0]
  16519. 800781a: f503 5380 add.w r3, r3, #4096 @ 0x1000
  16520. 800781e: f8d3 3100 ldr.w r3, [r3, #256] @ 0x100
  16521. 8007822: f423 13e0 bic.w r3, r3, #1835008 @ 0x1c0000
  16522. 8007826: 687a ldr r2, [r7, #4]
  16523. 8007828: 6812 ldr r2, [r2, #0]
  16524. 800782a: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  16525. 800782e: f502 5280 add.w r2, r2, #4096 @ 0x1000
  16526. 8007832: f8c2 3100 str.w r3, [r2, #256] @ 0x100
  16527. /* Set Receive Buffers Length (must be a multiple of 4) */
  16528. if ((heth->Init.RxBuffLen % 0x4U) != 0x0U)
  16529. 8007836: 687b ldr r3, [r7, #4]
  16530. 8007838: 695b ldr r3, [r3, #20]
  16531. 800783a: f003 0303 and.w r3, r3, #3
  16532. 800783e: 2b00 cmp r3, #0
  16533. 8007840: d009 beq.n 8007856 <HAL_ETH_Init+0x11e>
  16534. {
  16535. /* Set Error Code */
  16536. heth->ErrorCode = HAL_ETH_ERROR_PARAM;
  16537. 8007842: 687b ldr r3, [r7, #4]
  16538. 8007844: 2201 movs r2, #1
  16539. 8007846: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  16540. /* Set State as Error */
  16541. heth->gState = HAL_ETH_STATE_ERROR;
  16542. 800784a: 687b ldr r3, [r7, #4]
  16543. 800784c: 22e0 movs r2, #224 @ 0xe0
  16544. 800784e: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  16545. /* Return Error */
  16546. return HAL_ERROR;
  16547. 8007852: 2301 movs r3, #1
  16548. 8007854: e05d b.n 8007912 <HAL_ETH_Init+0x1da>
  16549. }
  16550. else
  16551. {
  16552. MODIFY_REG(heth->Instance->DMACRCR, ETH_DMACRCR_RBSZ, ((heth->Init.RxBuffLen) << 1));
  16553. 8007856: 687b ldr r3, [r7, #4]
  16554. 8007858: 681b ldr r3, [r3, #0]
  16555. 800785a: f503 5380 add.w r3, r3, #4096 @ 0x1000
  16556. 800785e: f8d3 2108 ldr.w r2, [r3, #264] @ 0x108
  16557. 8007862: 4b31 ldr r3, [pc, #196] @ (8007928 <HAL_ETH_Init+0x1f0>)
  16558. 8007864: 4013 ands r3, r2
  16559. 8007866: 687a ldr r2, [r7, #4]
  16560. 8007868: 6952 ldr r2, [r2, #20]
  16561. 800786a: 0051 lsls r1, r2, #1
  16562. 800786c: 687a ldr r2, [r7, #4]
  16563. 800786e: 6812 ldr r2, [r2, #0]
  16564. 8007870: 430b orrs r3, r1
  16565. 8007872: f502 5280 add.w r2, r2, #4096 @ 0x1000
  16566. 8007876: f8c2 3108 str.w r3, [r2, #264] @ 0x108
  16567. }
  16568. /*------------------ DMA Tx Descriptors Configuration ----------------------*/
  16569. ETH_DMATxDescListInit(heth);
  16570. 800787a: 6878 ldr r0, [r7, #4]
  16571. 800787c: f001 f975 bl 8008b6a <ETH_DMATxDescListInit>
  16572. /*------------------ DMA Rx Descriptors Configuration ----------------------*/
  16573. ETH_DMARxDescListInit(heth);
  16574. 8007880: 6878 ldr r0, [r7, #4]
  16575. 8007882: f001 f9bb bl 8008bfc <ETH_DMARxDescListInit>
  16576. /*--------------------- ETHERNET MAC Address Configuration ------------------*/
  16577. /* Set MAC addr bits 32 to 47 */
  16578. heth->Instance->MACA0HR = (((uint32_t)(heth->Init.MACAddr[5]) << 8) | (uint32_t)heth->Init.MACAddr[4]);
  16579. 8007886: 687b ldr r3, [r7, #4]
  16580. 8007888: 685b ldr r3, [r3, #4]
  16581. 800788a: 3305 adds r3, #5
  16582. 800788c: 781b ldrb r3, [r3, #0]
  16583. 800788e: 021a lsls r2, r3, #8
  16584. 8007890: 687b ldr r3, [r7, #4]
  16585. 8007892: 685b ldr r3, [r3, #4]
  16586. 8007894: 3304 adds r3, #4
  16587. 8007896: 781b ldrb r3, [r3, #0]
  16588. 8007898: 4619 mov r1, r3
  16589. 800789a: 687b ldr r3, [r7, #4]
  16590. 800789c: 681b ldr r3, [r3, #0]
  16591. 800789e: 430a orrs r2, r1
  16592. 80078a0: f8c3 2300 str.w r2, [r3, #768] @ 0x300
  16593. /* Set MAC addr bits 0 to 31 */
  16594. heth->Instance->MACA0LR = (((uint32_t)(heth->Init.MACAddr[3]) << 24) | ((uint32_t)(heth->Init.MACAddr[2]) << 16) |
  16595. 80078a4: 687b ldr r3, [r7, #4]
  16596. 80078a6: 685b ldr r3, [r3, #4]
  16597. 80078a8: 3303 adds r3, #3
  16598. 80078aa: 781b ldrb r3, [r3, #0]
  16599. 80078ac: 061a lsls r2, r3, #24
  16600. 80078ae: 687b ldr r3, [r7, #4]
  16601. 80078b0: 685b ldr r3, [r3, #4]
  16602. 80078b2: 3302 adds r3, #2
  16603. 80078b4: 781b ldrb r3, [r3, #0]
  16604. 80078b6: 041b lsls r3, r3, #16
  16605. 80078b8: 431a orrs r2, r3
  16606. ((uint32_t)(heth->Init.MACAddr[1]) << 8) | (uint32_t)heth->Init.MACAddr[0]);
  16607. 80078ba: 687b ldr r3, [r7, #4]
  16608. 80078bc: 685b ldr r3, [r3, #4]
  16609. 80078be: 3301 adds r3, #1
  16610. 80078c0: 781b ldrb r3, [r3, #0]
  16611. 80078c2: 021b lsls r3, r3, #8
  16612. heth->Instance->MACA0LR = (((uint32_t)(heth->Init.MACAddr[3]) << 24) | ((uint32_t)(heth->Init.MACAddr[2]) << 16) |
  16613. 80078c4: 431a orrs r2, r3
  16614. ((uint32_t)(heth->Init.MACAddr[1]) << 8) | (uint32_t)heth->Init.MACAddr[0]);
  16615. 80078c6: 687b ldr r3, [r7, #4]
  16616. 80078c8: 685b ldr r3, [r3, #4]
  16617. 80078ca: 781b ldrb r3, [r3, #0]
  16618. 80078cc: 4619 mov r1, r3
  16619. heth->Instance->MACA0LR = (((uint32_t)(heth->Init.MACAddr[3]) << 24) | ((uint32_t)(heth->Init.MACAddr[2]) << 16) |
  16620. 80078ce: 687b ldr r3, [r7, #4]
  16621. 80078d0: 681b ldr r3, [r3, #0]
  16622. ((uint32_t)(heth->Init.MACAddr[1]) << 8) | (uint32_t)heth->Init.MACAddr[0]);
  16623. 80078d2: 430a orrs r2, r1
  16624. heth->Instance->MACA0LR = (((uint32_t)(heth->Init.MACAddr[3]) << 24) | ((uint32_t)(heth->Init.MACAddr[2]) << 16) |
  16625. 80078d4: f8c3 2304 str.w r2, [r3, #772] @ 0x304
  16626. /* Disable Rx MMC Interrupts */
  16627. SET_BIT(heth->Instance->MMCRIMR, ETH_MMCRIMR_RXLPITRCIM | ETH_MMCRIMR_RXLPIUSCIM | \
  16628. 80078d8: 687b ldr r3, [r7, #4]
  16629. 80078da: 681b ldr r3, [r3, #0]
  16630. 80078dc: f8d3 170c ldr.w r1, [r3, #1804] @ 0x70c
  16631. 80078e0: 687b ldr r3, [r7, #4]
  16632. 80078e2: 681a ldr r2, [r3, #0]
  16633. 80078e4: 4b11 ldr r3, [pc, #68] @ (800792c <HAL_ETH_Init+0x1f4>)
  16634. 80078e6: 430b orrs r3, r1
  16635. 80078e8: f8c2 370c str.w r3, [r2, #1804] @ 0x70c
  16636. ETH_MMCRIMR_RXUCGPIM | ETH_MMCRIMR_RXALGNERPIM | ETH_MMCRIMR_RXCRCERPIM);
  16637. /* Disable Tx MMC Interrupts */
  16638. SET_BIT(heth->Instance->MMCTIMR, ETH_MMCTIMR_TXLPITRCIM | ETH_MMCTIMR_TXLPIUSCIM | \
  16639. 80078ec: 687b ldr r3, [r7, #4]
  16640. 80078ee: 681b ldr r3, [r3, #0]
  16641. 80078f0: f8d3 1710 ldr.w r1, [r3, #1808] @ 0x710
  16642. 80078f4: 687b ldr r3, [r7, #4]
  16643. 80078f6: 681a ldr r2, [r3, #0]
  16644. 80078f8: 4b0d ldr r3, [pc, #52] @ (8007930 <HAL_ETH_Init+0x1f8>)
  16645. 80078fa: 430b orrs r3, r1
  16646. 80078fc: f8c2 3710 str.w r3, [r2, #1808] @ 0x710
  16647. ETH_MMCTIMR_TXGPKTIM | ETH_MMCTIMR_TXMCOLGPIM | ETH_MMCTIMR_TXSCOLGPIM);
  16648. heth->ErrorCode = HAL_ETH_ERROR_NONE;
  16649. 8007900: 687b ldr r3, [r7, #4]
  16650. 8007902: 2200 movs r2, #0
  16651. 8007904: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  16652. heth->gState = HAL_ETH_STATE_READY;
  16653. 8007908: 687b ldr r3, [r7, #4]
  16654. 800790a: 2210 movs r2, #16
  16655. 800790c: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  16656. return HAL_OK;
  16657. 8007910: 2300 movs r3, #0
  16658. }
  16659. 8007912: 4618 mov r0, r3
  16660. 8007914: 3710 adds r7, #16
  16661. 8007916: 46bd mov sp, r7
  16662. 8007918: bd80 pop {r7, pc}
  16663. 800791a: bf00 nop
  16664. 800791c: 58024400 .word 0x58024400
  16665. 8007920: 58000400 .word 0x58000400
  16666. 8007924: 431bde83 .word 0x431bde83
  16667. 8007928: ffff8001 .word 0xffff8001
  16668. 800792c: 0c020060 .word 0x0c020060
  16669. 8007930: 0c20c000 .word 0x0c20c000
  16670. 08007934 <HAL_ETH_Start_IT>:
  16671. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  16672. * the configuration information for ETHERNET module
  16673. * @retval HAL status
  16674. */
  16675. HAL_StatusTypeDef HAL_ETH_Start_IT(ETH_HandleTypeDef *heth)
  16676. {
  16677. 8007934: b580 push {r7, lr}
  16678. 8007936: b082 sub sp, #8
  16679. 8007938: af00 add r7, sp, #0
  16680. 800793a: 6078 str r0, [r7, #4]
  16681. if (heth->gState == HAL_ETH_STATE_READY)
  16682. 800793c: 687b ldr r3, [r7, #4]
  16683. 800793e: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  16684. 8007942: 2b10 cmp r3, #16
  16685. 8007944: d165 bne.n 8007a12 <HAL_ETH_Start_IT+0xde>
  16686. {
  16687. heth->gState = HAL_ETH_STATE_BUSY;
  16688. 8007946: 687b ldr r3, [r7, #4]
  16689. 8007948: 2223 movs r2, #35 @ 0x23
  16690. 800794a: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  16691. /* save IT mode to ETH Handle */
  16692. heth->RxDescList.ItMode = 1U;
  16693. 800794e: 687b ldr r3, [r7, #4]
  16694. 8007950: 2201 movs r2, #1
  16695. 8007952: 659a str r2, [r3, #88] @ 0x58
  16696. /* Set number of descriptors to build */
  16697. heth->RxDescList.RxBuildDescCnt = ETH_RX_DESC_CNT;
  16698. 8007954: 687b ldr r3, [r7, #4]
  16699. 8007956: 2204 movs r2, #4
  16700. 8007958: 66da str r2, [r3, #108] @ 0x6c
  16701. /* Build all descriptors */
  16702. ETH_UpdateDescriptor(heth);
  16703. 800795a: 6878 ldr r0, [r7, #4]
  16704. 800795c: f000 f9e4 bl 8007d28 <ETH_UpdateDescriptor>
  16705. /* Enable the DMA transmission */
  16706. SET_BIT(heth->Instance->DMACTCR, ETH_DMACTCR_ST);
  16707. 8007960: 687b ldr r3, [r7, #4]
  16708. 8007962: 681b ldr r3, [r3, #0]
  16709. 8007964: f503 5380 add.w r3, r3, #4096 @ 0x1000
  16710. 8007968: f8d3 3104 ldr.w r3, [r3, #260] @ 0x104
  16711. 800796c: 687a ldr r2, [r7, #4]
  16712. 800796e: 6812 ldr r2, [r2, #0]
  16713. 8007970: f043 0301 orr.w r3, r3, #1
  16714. 8007974: f502 5280 add.w r2, r2, #4096 @ 0x1000
  16715. 8007978: f8c2 3104 str.w r3, [r2, #260] @ 0x104
  16716. /* Enable the DMA reception */
  16717. SET_BIT(heth->Instance->DMACRCR, ETH_DMACRCR_SR);
  16718. 800797c: 687b ldr r3, [r7, #4]
  16719. 800797e: 681b ldr r3, [r3, #0]
  16720. 8007980: f503 5380 add.w r3, r3, #4096 @ 0x1000
  16721. 8007984: f8d3 3108 ldr.w r3, [r3, #264] @ 0x108
  16722. 8007988: 687a ldr r2, [r7, #4]
  16723. 800798a: 6812 ldr r2, [r2, #0]
  16724. 800798c: f043 0301 orr.w r3, r3, #1
  16725. 8007990: f502 5280 add.w r2, r2, #4096 @ 0x1000
  16726. 8007994: f8c2 3108 str.w r3, [r2, #264] @ 0x108
  16727. /* Clear Tx and Rx process stopped flags */
  16728. heth->Instance->DMACSR |= (ETH_DMACSR_TPS | ETH_DMACSR_RPS);
  16729. 8007998: 687b ldr r3, [r7, #4]
  16730. 800799a: 681b ldr r3, [r3, #0]
  16731. 800799c: f503 5380 add.w r3, r3, #4096 @ 0x1000
  16732. 80079a0: f8d3 3160 ldr.w r3, [r3, #352] @ 0x160
  16733. 80079a4: 687a ldr r2, [r7, #4]
  16734. 80079a6: 6812 ldr r2, [r2, #0]
  16735. 80079a8: f443 7381 orr.w r3, r3, #258 @ 0x102
  16736. 80079ac: f502 5280 add.w r2, r2, #4096 @ 0x1000
  16737. 80079b0: f8c2 3160 str.w r3, [r2, #352] @ 0x160
  16738. /* Set the Flush Transmit FIFO bit */
  16739. SET_BIT(heth->Instance->MTLTQOMR, ETH_MTLTQOMR_FTQ);
  16740. 80079b4: 687b ldr r3, [r7, #4]
  16741. 80079b6: 681b ldr r3, [r3, #0]
  16742. 80079b8: f8d3 2d00 ldr.w r2, [r3, #3328] @ 0xd00
  16743. 80079bc: 687b ldr r3, [r7, #4]
  16744. 80079be: 681b ldr r3, [r3, #0]
  16745. 80079c0: f042 0201 orr.w r2, r2, #1
  16746. 80079c4: f8c3 2d00 str.w r2, [r3, #3328] @ 0xd00
  16747. /* Enable the MAC transmission */
  16748. SET_BIT(heth->Instance->MACCR, ETH_MACCR_TE);
  16749. 80079c8: 687b ldr r3, [r7, #4]
  16750. 80079ca: 681b ldr r3, [r3, #0]
  16751. 80079cc: 681a ldr r2, [r3, #0]
  16752. 80079ce: 687b ldr r3, [r7, #4]
  16753. 80079d0: 681b ldr r3, [r3, #0]
  16754. 80079d2: f042 0202 orr.w r2, r2, #2
  16755. 80079d6: 601a str r2, [r3, #0]
  16756. /* Enable the MAC reception */
  16757. SET_BIT(heth->Instance->MACCR, ETH_MACCR_RE);
  16758. 80079d8: 687b ldr r3, [r7, #4]
  16759. 80079da: 681b ldr r3, [r3, #0]
  16760. 80079dc: 681a ldr r2, [r3, #0]
  16761. 80079de: 687b ldr r3, [r7, #4]
  16762. 80079e0: 681b ldr r3, [r3, #0]
  16763. 80079e2: f042 0201 orr.w r2, r2, #1
  16764. 80079e6: 601a str r2, [r3, #0]
  16765. /* Enable ETH DMA interrupts:
  16766. - Tx complete interrupt
  16767. - Rx complete interrupt
  16768. - Fatal bus interrupt
  16769. */
  16770. __HAL_ETH_DMA_ENABLE_IT(heth, (ETH_DMACIER_NIE | ETH_DMACIER_RIE | ETH_DMACIER_TIE |
  16771. 80079e8: 687b ldr r3, [r7, #4]
  16772. 80079ea: 681b ldr r3, [r3, #0]
  16773. 80079ec: f503 5380 add.w r3, r3, #4096 @ 0x1000
  16774. 80079f0: f8d3 1134 ldr.w r1, [r3, #308] @ 0x134
  16775. 80079f4: 687b ldr r3, [r7, #4]
  16776. 80079f6: 681a ldr r2, [r3, #0]
  16777. 80079f8: f24d 03c1 movw r3, #53441 @ 0xd0c1
  16778. 80079fc: 430b orrs r3, r1
  16779. 80079fe: f502 5280 add.w r2, r2, #4096 @ 0x1000
  16780. 8007a02: f8c2 3134 str.w r3, [r2, #308] @ 0x134
  16781. ETH_DMACIER_FBEE | ETH_DMACIER_AIE | ETH_DMACIER_RBUE));
  16782. heth->gState = HAL_ETH_STATE_STARTED;
  16783. 8007a06: 687b ldr r3, [r7, #4]
  16784. 8007a08: 2223 movs r2, #35 @ 0x23
  16785. 8007a0a: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  16786. return HAL_OK;
  16787. 8007a0e: 2300 movs r3, #0
  16788. 8007a10: e000 b.n 8007a14 <HAL_ETH_Start_IT+0xe0>
  16789. }
  16790. else
  16791. {
  16792. return HAL_ERROR;
  16793. 8007a12: 2301 movs r3, #1
  16794. }
  16795. }
  16796. 8007a14: 4618 mov r0, r3
  16797. 8007a16: 3708 adds r7, #8
  16798. 8007a18: 46bd mov sp, r7
  16799. 8007a1a: bd80 pop {r7, pc}
  16800. 08007a1c <HAL_ETH_Stop_IT>:
  16801. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  16802. * the configuration information for ETHERNET module
  16803. * @retval HAL status
  16804. */
  16805. HAL_StatusTypeDef HAL_ETH_Stop_IT(ETH_HandleTypeDef *heth)
  16806. {
  16807. 8007a1c: b480 push {r7}
  16808. 8007a1e: b085 sub sp, #20
  16809. 8007a20: af00 add r7, sp, #0
  16810. 8007a22: 6078 str r0, [r7, #4]
  16811. ETH_DMADescTypeDef *dmarxdesc;
  16812. uint32_t descindex;
  16813. if (heth->gState == HAL_ETH_STATE_STARTED)
  16814. 8007a24: 687b ldr r3, [r7, #4]
  16815. 8007a26: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  16816. 8007a2a: 2b23 cmp r3, #35 @ 0x23
  16817. 8007a2c: d165 bne.n 8007afa <HAL_ETH_Stop_IT+0xde>
  16818. {
  16819. /* Set the ETH peripheral state to BUSY */
  16820. heth->gState = HAL_ETH_STATE_BUSY;
  16821. 8007a2e: 687b ldr r3, [r7, #4]
  16822. 8007a30: 2223 movs r2, #35 @ 0x23
  16823. 8007a32: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  16824. /* Disable interrupts:
  16825. - Tx complete interrupt
  16826. - Rx complete interrupt
  16827. - Fatal bus interrupt
  16828. */
  16829. __HAL_ETH_DMA_DISABLE_IT(heth, (ETH_DMACIER_NIE | ETH_DMACIER_RIE | ETH_DMACIER_TIE |
  16830. 8007a36: 687b ldr r3, [r7, #4]
  16831. 8007a38: 681b ldr r3, [r3, #0]
  16832. 8007a3a: f503 5380 add.w r3, r3, #4096 @ 0x1000
  16833. 8007a3e: f8d3 1134 ldr.w r1, [r3, #308] @ 0x134
  16834. 8007a42: 687b ldr r3, [r7, #4]
  16835. 8007a44: 681a ldr r2, [r3, #0]
  16836. 8007a46: 4b30 ldr r3, [pc, #192] @ (8007b08 <HAL_ETH_Stop_IT+0xec>)
  16837. 8007a48: 400b ands r3, r1
  16838. 8007a4a: f502 5280 add.w r2, r2, #4096 @ 0x1000
  16839. 8007a4e: f8c2 3134 str.w r3, [r2, #308] @ 0x134
  16840. ETH_DMACIER_FBEE | ETH_DMACIER_AIE | ETH_DMACIER_RBUE));
  16841. /* Disable the DMA transmission */
  16842. CLEAR_BIT(heth->Instance->DMACTCR, ETH_DMACTCR_ST);
  16843. 8007a52: 687b ldr r3, [r7, #4]
  16844. 8007a54: 681b ldr r3, [r3, #0]
  16845. 8007a56: f503 5380 add.w r3, r3, #4096 @ 0x1000
  16846. 8007a5a: f8d3 3104 ldr.w r3, [r3, #260] @ 0x104
  16847. 8007a5e: 687a ldr r2, [r7, #4]
  16848. 8007a60: 6812 ldr r2, [r2, #0]
  16849. 8007a62: f023 0301 bic.w r3, r3, #1
  16850. 8007a66: f502 5280 add.w r2, r2, #4096 @ 0x1000
  16851. 8007a6a: f8c2 3104 str.w r3, [r2, #260] @ 0x104
  16852. /* Disable the DMA reception */
  16853. CLEAR_BIT(heth->Instance->DMACRCR, ETH_DMACRCR_SR);
  16854. 8007a6e: 687b ldr r3, [r7, #4]
  16855. 8007a70: 681b ldr r3, [r3, #0]
  16856. 8007a72: f503 5380 add.w r3, r3, #4096 @ 0x1000
  16857. 8007a76: f8d3 3108 ldr.w r3, [r3, #264] @ 0x108
  16858. 8007a7a: 687a ldr r2, [r7, #4]
  16859. 8007a7c: 6812 ldr r2, [r2, #0]
  16860. 8007a7e: f023 0301 bic.w r3, r3, #1
  16861. 8007a82: f502 5280 add.w r2, r2, #4096 @ 0x1000
  16862. 8007a86: f8c2 3108 str.w r3, [r2, #264] @ 0x108
  16863. /* Disable the MAC reception */
  16864. CLEAR_BIT(heth->Instance->MACCR, ETH_MACCR_RE);
  16865. 8007a8a: 687b ldr r3, [r7, #4]
  16866. 8007a8c: 681b ldr r3, [r3, #0]
  16867. 8007a8e: 681a ldr r2, [r3, #0]
  16868. 8007a90: 687b ldr r3, [r7, #4]
  16869. 8007a92: 681b ldr r3, [r3, #0]
  16870. 8007a94: f022 0201 bic.w r2, r2, #1
  16871. 8007a98: 601a str r2, [r3, #0]
  16872. /* Set the Flush Transmit FIFO bit */
  16873. SET_BIT(heth->Instance->MTLTQOMR, ETH_MTLTQOMR_FTQ);
  16874. 8007a9a: 687b ldr r3, [r7, #4]
  16875. 8007a9c: 681b ldr r3, [r3, #0]
  16876. 8007a9e: f8d3 2d00 ldr.w r2, [r3, #3328] @ 0xd00
  16877. 8007aa2: 687b ldr r3, [r7, #4]
  16878. 8007aa4: 681b ldr r3, [r3, #0]
  16879. 8007aa6: f042 0201 orr.w r2, r2, #1
  16880. 8007aaa: f8c3 2d00 str.w r2, [r3, #3328] @ 0xd00
  16881. /* Disable the MAC transmission */
  16882. CLEAR_BIT(heth->Instance->MACCR, ETH_MACCR_TE);
  16883. 8007aae: 687b ldr r3, [r7, #4]
  16884. 8007ab0: 681b ldr r3, [r3, #0]
  16885. 8007ab2: 681a ldr r2, [r3, #0]
  16886. 8007ab4: 687b ldr r3, [r7, #4]
  16887. 8007ab6: 681b ldr r3, [r3, #0]
  16888. 8007ab8: f022 0202 bic.w r2, r2, #2
  16889. 8007abc: 601a str r2, [r3, #0]
  16890. /* Clear IOC bit to all Rx descriptors */
  16891. for (descindex = 0; descindex < (uint32_t)ETH_RX_DESC_CNT; descindex++)
  16892. 8007abe: 2300 movs r3, #0
  16893. 8007ac0: 60fb str r3, [r7, #12]
  16894. 8007ac2: e00e b.n 8007ae2 <HAL_ETH_Stop_IT+0xc6>
  16895. {
  16896. dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descindex];
  16897. 8007ac4: 687b ldr r3, [r7, #4]
  16898. 8007ac6: 68fa ldr r2, [r7, #12]
  16899. 8007ac8: 3212 adds r2, #18
  16900. 8007aca: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  16901. 8007ace: 60bb str r3, [r7, #8]
  16902. CLEAR_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCRF_IOC);
  16903. 8007ad0: 68bb ldr r3, [r7, #8]
  16904. 8007ad2: 68db ldr r3, [r3, #12]
  16905. 8007ad4: f023 4280 bic.w r2, r3, #1073741824 @ 0x40000000
  16906. 8007ad8: 68bb ldr r3, [r7, #8]
  16907. 8007ada: 60da str r2, [r3, #12]
  16908. for (descindex = 0; descindex < (uint32_t)ETH_RX_DESC_CNT; descindex++)
  16909. 8007adc: 68fb ldr r3, [r7, #12]
  16910. 8007ade: 3301 adds r3, #1
  16911. 8007ae0: 60fb str r3, [r7, #12]
  16912. 8007ae2: 68fb ldr r3, [r7, #12]
  16913. 8007ae4: 2b03 cmp r3, #3
  16914. 8007ae6: d9ed bls.n 8007ac4 <HAL_ETH_Stop_IT+0xa8>
  16915. }
  16916. heth->RxDescList.ItMode = 0U;
  16917. 8007ae8: 687b ldr r3, [r7, #4]
  16918. 8007aea: 2200 movs r2, #0
  16919. 8007aec: 659a str r2, [r3, #88] @ 0x58
  16920. heth->gState = HAL_ETH_STATE_READY;
  16921. 8007aee: 687b ldr r3, [r7, #4]
  16922. 8007af0: 2210 movs r2, #16
  16923. 8007af2: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  16924. /* Return function status */
  16925. return HAL_OK;
  16926. 8007af6: 2300 movs r3, #0
  16927. 8007af8: e000 b.n 8007afc <HAL_ETH_Stop_IT+0xe0>
  16928. }
  16929. else
  16930. {
  16931. return HAL_ERROR;
  16932. 8007afa: 2301 movs r3, #1
  16933. }
  16934. }
  16935. 8007afc: 4618 mov r0, r3
  16936. 8007afe: 3714 adds r7, #20
  16937. 8007b00: 46bd mov sp, r7
  16938. 8007b02: f85d 7b04 ldr.w r7, [sp], #4
  16939. 8007b06: 4770 bx lr
  16940. 8007b08: ffff2f3e .word 0xffff2f3e
  16941. 08007b0c <HAL_ETH_Transmit_IT>:
  16942. * the configuration information for ETHERNET module
  16943. * @param pTxConfig: Hold the configuration of packet to be transmitted
  16944. * @retval HAL status
  16945. */
  16946. HAL_StatusTypeDef HAL_ETH_Transmit_IT(ETH_HandleTypeDef *heth, ETH_TxPacketConfigTypeDef *pTxConfig)
  16947. {
  16948. 8007b0c: b580 push {r7, lr}
  16949. 8007b0e: b082 sub sp, #8
  16950. 8007b10: af00 add r7, sp, #0
  16951. 8007b12: 6078 str r0, [r7, #4]
  16952. 8007b14: 6039 str r1, [r7, #0]
  16953. if (pTxConfig == NULL)
  16954. 8007b16: 683b ldr r3, [r7, #0]
  16955. 8007b18: 2b00 cmp r3, #0
  16956. 8007b1a: d109 bne.n 8007b30 <HAL_ETH_Transmit_IT+0x24>
  16957. {
  16958. heth->ErrorCode |= HAL_ETH_ERROR_PARAM;
  16959. 8007b1c: 687b ldr r3, [r7, #4]
  16960. 8007b1e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  16961. 8007b22: f043 0201 orr.w r2, r3, #1
  16962. 8007b26: 687b ldr r3, [r7, #4]
  16963. 8007b28: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  16964. return HAL_ERROR;
  16965. 8007b2c: 2301 movs r3, #1
  16966. 8007b2e: e03a b.n 8007ba6 <HAL_ETH_Transmit_IT+0x9a>
  16967. }
  16968. if (heth->gState == HAL_ETH_STATE_STARTED)
  16969. 8007b30: 687b ldr r3, [r7, #4]
  16970. 8007b32: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  16971. 8007b36: 2b23 cmp r3, #35 @ 0x23
  16972. 8007b38: d134 bne.n 8007ba4 <HAL_ETH_Transmit_IT+0x98>
  16973. {
  16974. /* Save the packet pointer to release. */
  16975. heth->TxDescList.CurrentPacketAddress = (uint32_t *)pTxConfig->pData;
  16976. 8007b3a: 683b ldr r3, [r7, #0]
  16977. 8007b3c: 6b5a ldr r2, [r3, #52] @ 0x34
  16978. 8007b3e: 687b ldr r3, [r7, #4]
  16979. 8007b40: 63da str r2, [r3, #60] @ 0x3c
  16980. /* Config DMA Tx descriptor by Tx Packet info */
  16981. if (ETH_Prepare_Tx_Descriptors(heth, pTxConfig, 1) != HAL_ETH_ERROR_NONE)
  16982. 8007b42: 2201 movs r2, #1
  16983. 8007b44: 6839 ldr r1, [r7, #0]
  16984. 8007b46: 6878 ldr r0, [r7, #4]
  16985. 8007b48: f001 f8b6 bl 8008cb8 <ETH_Prepare_Tx_Descriptors>
  16986. 8007b4c: 4603 mov r3, r0
  16987. 8007b4e: 2b00 cmp r3, #0
  16988. 8007b50: d009 beq.n 8007b66 <HAL_ETH_Transmit_IT+0x5a>
  16989. {
  16990. heth->ErrorCode |= HAL_ETH_ERROR_BUSY;
  16991. 8007b52: 687b ldr r3, [r7, #4]
  16992. 8007b54: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  16993. 8007b58: f043 0202 orr.w r2, r3, #2
  16994. 8007b5c: 687b ldr r3, [r7, #4]
  16995. 8007b5e: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  16996. return HAL_ERROR;
  16997. 8007b62: 2301 movs r3, #1
  16998. 8007b64: e01f b.n 8007ba6 <HAL_ETH_Transmit_IT+0x9a>
  16999. __ASM volatile ("dsb 0xF":::"memory");
  17000. 8007b66: f3bf 8f4f dsb sy
  17001. }
  17002. 8007b6a: bf00 nop
  17003. /* Ensure completion of descriptor preparation before transmission start */
  17004. __DSB();
  17005. /* Incr current tx desc index */
  17006. INCR_TX_DESC_INDEX(heth->TxDescList.CurTxDesc, 1U);
  17007. 8007b6c: 687b ldr r3, [r7, #4]
  17008. 8007b6e: 6a9b ldr r3, [r3, #40] @ 0x28
  17009. 8007b70: 1c5a adds r2, r3, #1
  17010. 8007b72: 687b ldr r3, [r7, #4]
  17011. 8007b74: 629a str r2, [r3, #40] @ 0x28
  17012. 8007b76: 687b ldr r3, [r7, #4]
  17013. 8007b78: 6a9b ldr r3, [r3, #40] @ 0x28
  17014. 8007b7a: 2b03 cmp r3, #3
  17015. 8007b7c: d904 bls.n 8007b88 <HAL_ETH_Transmit_IT+0x7c>
  17016. 8007b7e: 687b ldr r3, [r7, #4]
  17017. 8007b80: 6a9b ldr r3, [r3, #40] @ 0x28
  17018. 8007b82: 1f1a subs r2, r3, #4
  17019. 8007b84: 687b ldr r3, [r7, #4]
  17020. 8007b86: 629a str r2, [r3, #40] @ 0x28
  17021. /* Start transmission */
  17022. /* issue a poll command to Tx DMA by writing address of next immediate free descriptor */
  17023. WRITE_REG(heth->Instance->DMACTDTPR, (uint32_t)(heth->TxDescList.TxDesc[heth->TxDescList.CurTxDesc]));
  17024. 8007b88: 687b ldr r3, [r7, #4]
  17025. 8007b8a: 6a99 ldr r1, [r3, #40] @ 0x28
  17026. 8007b8c: 687b ldr r3, [r7, #4]
  17027. 8007b8e: 681a ldr r2, [r3, #0]
  17028. 8007b90: 687b ldr r3, [r7, #4]
  17029. 8007b92: 3106 adds r1, #6
  17030. 8007b94: f853 3021 ldr.w r3, [r3, r1, lsl #2]
  17031. 8007b98: f502 5280 add.w r2, r2, #4096 @ 0x1000
  17032. 8007b9c: f8c2 3120 str.w r3, [r2, #288] @ 0x120
  17033. return HAL_OK;
  17034. 8007ba0: 2300 movs r3, #0
  17035. 8007ba2: e000 b.n 8007ba6 <HAL_ETH_Transmit_IT+0x9a>
  17036. }
  17037. else
  17038. {
  17039. return HAL_ERROR;
  17040. 8007ba4: 2301 movs r3, #1
  17041. }
  17042. }
  17043. 8007ba6: 4618 mov r0, r3
  17044. 8007ba8: 3708 adds r7, #8
  17045. 8007baa: 46bd mov sp, r7
  17046. 8007bac: bd80 pop {r7, pc}
  17047. 08007bae <HAL_ETH_ReadData>:
  17048. * the configuration information for ETHERNET module
  17049. * @param pAppBuff: Pointer to an application buffer to receive the packet.
  17050. * @retval HAL status
  17051. */
  17052. HAL_StatusTypeDef HAL_ETH_ReadData(ETH_HandleTypeDef *heth, void **pAppBuff)
  17053. {
  17054. 8007bae: b580 push {r7, lr}
  17055. 8007bb0: b088 sub sp, #32
  17056. 8007bb2: af00 add r7, sp, #0
  17057. 8007bb4: 6078 str r0, [r7, #4]
  17058. 8007bb6: 6039 str r1, [r7, #0]
  17059. uint32_t descidx;
  17060. ETH_DMADescTypeDef *dmarxdesc;
  17061. uint32_t desccnt = 0U;
  17062. 8007bb8: 2300 movs r3, #0
  17063. 8007bba: 617b str r3, [r7, #20]
  17064. uint32_t desccntmax;
  17065. uint32_t bufflength;
  17066. uint8_t rxdataready = 0U;
  17067. 8007bbc: 2300 movs r3, #0
  17068. 8007bbe: 74fb strb r3, [r7, #19]
  17069. if (pAppBuff == NULL)
  17070. 8007bc0: 683b ldr r3, [r7, #0]
  17071. 8007bc2: 2b00 cmp r3, #0
  17072. 8007bc4: d109 bne.n 8007bda <HAL_ETH_ReadData+0x2c>
  17073. {
  17074. heth->ErrorCode |= HAL_ETH_ERROR_PARAM;
  17075. 8007bc6: 687b ldr r3, [r7, #4]
  17076. 8007bc8: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  17077. 8007bcc: f043 0201 orr.w r2, r3, #1
  17078. 8007bd0: 687b ldr r3, [r7, #4]
  17079. 8007bd2: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  17080. return HAL_ERROR;
  17081. 8007bd6: 2301 movs r3, #1
  17082. 8007bd8: e0a2 b.n 8007d20 <HAL_ETH_ReadData+0x172>
  17083. }
  17084. if (heth->gState != HAL_ETH_STATE_STARTED)
  17085. 8007bda: 687b ldr r3, [r7, #4]
  17086. 8007bdc: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  17087. 8007be0: 2b23 cmp r3, #35 @ 0x23
  17088. 8007be2: d001 beq.n 8007be8 <HAL_ETH_ReadData+0x3a>
  17089. {
  17090. return HAL_ERROR;
  17091. 8007be4: 2301 movs r3, #1
  17092. 8007be6: e09b b.n 8007d20 <HAL_ETH_ReadData+0x172>
  17093. }
  17094. descidx = heth->RxDescList.RxDescIdx;
  17095. 8007be8: 687b ldr r3, [r7, #4]
  17096. 8007bea: 6ddb ldr r3, [r3, #92] @ 0x5c
  17097. 8007bec: 61fb str r3, [r7, #28]
  17098. dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx];
  17099. 8007bee: 687b ldr r3, [r7, #4]
  17100. 8007bf0: 69fa ldr r2, [r7, #28]
  17101. 8007bf2: 3212 adds r2, #18
  17102. 8007bf4: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  17103. 8007bf8: 61bb str r3, [r7, #24]
  17104. desccntmax = ETH_RX_DESC_CNT - heth->RxDescList.RxBuildDescCnt;
  17105. 8007bfa: 687b ldr r3, [r7, #4]
  17106. 8007bfc: 6edb ldr r3, [r3, #108] @ 0x6c
  17107. 8007bfe: f1c3 0304 rsb r3, r3, #4
  17108. 8007c02: 60fb str r3, [r7, #12]
  17109. /* Check if descriptor is not owned by DMA */
  17110. while ((READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_OWN) == (uint32_t)RESET) && (desccnt < desccntmax)
  17111. 8007c04: e064 b.n 8007cd0 <HAL_ETH_ReadData+0x122>
  17112. && (rxdataready == 0U))
  17113. {
  17114. if (READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_CTXT) != (uint32_t)RESET)
  17115. 8007c06: 69bb ldr r3, [r7, #24]
  17116. 8007c08: 68db ldr r3, [r3, #12]
  17117. 8007c0a: f003 4380 and.w r3, r3, #1073741824 @ 0x40000000
  17118. 8007c0e: 2b00 cmp r3, #0
  17119. 8007c10: d007 beq.n 8007c22 <HAL_ETH_ReadData+0x74>
  17120. {
  17121. /* Get timestamp high */
  17122. heth->RxDescList.TimeStamp.TimeStampHigh = dmarxdesc->DESC1;
  17123. 8007c12: 69bb ldr r3, [r7, #24]
  17124. 8007c14: 685a ldr r2, [r3, #4]
  17125. 8007c16: 687b ldr r3, [r7, #4]
  17126. 8007c18: 679a str r2, [r3, #120] @ 0x78
  17127. /* Get timestamp low */
  17128. heth->RxDescList.TimeStamp.TimeStampLow = dmarxdesc->DESC0;
  17129. 8007c1a: 69bb ldr r3, [r7, #24]
  17130. 8007c1c: 681a ldr r2, [r3, #0]
  17131. 8007c1e: 687b ldr r3, [r7, #4]
  17132. 8007c20: 675a str r2, [r3, #116] @ 0x74
  17133. }
  17134. if ((READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_FD) != (uint32_t)RESET) || (heth->RxDescList.pRxStart != NULL))
  17135. 8007c22: 69bb ldr r3, [r7, #24]
  17136. 8007c24: 68db ldr r3, [r3, #12]
  17137. 8007c26: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  17138. 8007c2a: 2b00 cmp r3, #0
  17139. 8007c2c: d103 bne.n 8007c36 <HAL_ETH_ReadData+0x88>
  17140. 8007c2e: 687b ldr r3, [r7, #4]
  17141. 8007c30: 6fdb ldr r3, [r3, #124] @ 0x7c
  17142. 8007c32: 2b00 cmp r3, #0
  17143. 8007c34: d03a beq.n 8007cac <HAL_ETH_ReadData+0xfe>
  17144. {
  17145. /* Check if first descriptor */
  17146. if (READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_FD) != (uint32_t)RESET)
  17147. 8007c36: 69bb ldr r3, [r7, #24]
  17148. 8007c38: 68db ldr r3, [r3, #12]
  17149. 8007c3a: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  17150. 8007c3e: 2b00 cmp r3, #0
  17151. 8007c40: d005 beq.n 8007c4e <HAL_ETH_ReadData+0xa0>
  17152. {
  17153. heth->RxDescList.RxDescCnt = 0;
  17154. 8007c42: 687b ldr r3, [r7, #4]
  17155. 8007c44: 2200 movs r2, #0
  17156. 8007c46: 661a str r2, [r3, #96] @ 0x60
  17157. heth->RxDescList.RxDataLength = 0;
  17158. 8007c48: 687b ldr r3, [r7, #4]
  17159. 8007c4a: 2200 movs r2, #0
  17160. 8007c4c: 665a str r2, [r3, #100] @ 0x64
  17161. }
  17162. /* Get the Frame Length of the received packet: substruct 4 bytes of the CRC */
  17163. bufflength = READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_PL) - heth->RxDescList.RxDataLength;
  17164. 8007c4e: 69bb ldr r3, [r7, #24]
  17165. 8007c50: 68db ldr r3, [r3, #12]
  17166. 8007c52: f3c3 020e ubfx r2, r3, #0, #15
  17167. 8007c56: 687b ldr r3, [r7, #4]
  17168. 8007c58: 6e5b ldr r3, [r3, #100] @ 0x64
  17169. 8007c5a: 1ad3 subs r3, r2, r3
  17170. 8007c5c: 60bb str r3, [r7, #8]
  17171. /* Check if last descriptor */
  17172. if (READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_LD) != (uint32_t)RESET)
  17173. 8007c5e: 69bb ldr r3, [r7, #24]
  17174. 8007c60: 68db ldr r3, [r3, #12]
  17175. 8007c62: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  17176. 8007c66: 2b00 cmp r3, #0
  17177. 8007c68: d005 beq.n 8007c76 <HAL_ETH_ReadData+0xc8>
  17178. {
  17179. /* Save Last descriptor index */
  17180. heth->RxDescList.pRxLastRxDesc = dmarxdesc->DESC3;
  17181. 8007c6a: 69bb ldr r3, [r7, #24]
  17182. 8007c6c: 68da ldr r2, [r3, #12]
  17183. 8007c6e: 687b ldr r3, [r7, #4]
  17184. 8007c70: 671a str r2, [r3, #112] @ 0x70
  17185. /* Packet ready */
  17186. rxdataready = 1;
  17187. 8007c72: 2301 movs r3, #1
  17188. 8007c74: 74fb strb r3, [r7, #19]
  17189. /*Call registered Link callback*/
  17190. heth->rxLinkCallback(&heth->RxDescList.pRxStart, &heth->RxDescList.pRxEnd,
  17191. (uint8_t *)dmarxdesc->BackupAddr0, bufflength);
  17192. #else
  17193. /* Link callback */
  17194. HAL_ETH_RxLinkCallback(&heth->RxDescList.pRxStart, &heth->RxDescList.pRxEnd,
  17195. 8007c76: 687b ldr r3, [r7, #4]
  17196. 8007c78: f103 007c add.w r0, r3, #124 @ 0x7c
  17197. 8007c7c: 687b ldr r3, [r7, #4]
  17198. 8007c7e: f103 0180 add.w r1, r3, #128 @ 0x80
  17199. (uint8_t *)dmarxdesc->BackupAddr0, (uint16_t) bufflength);
  17200. 8007c82: 69bb ldr r3, [r7, #24]
  17201. 8007c84: 691b ldr r3, [r3, #16]
  17202. HAL_ETH_RxLinkCallback(&heth->RxDescList.pRxStart, &heth->RxDescList.pRxEnd,
  17203. 8007c86: 461a mov r2, r3
  17204. 8007c88: 68bb ldr r3, [r7, #8]
  17205. 8007c8a: b29b uxth r3, r3
  17206. 8007c8c: f008 f95e bl 800ff4c <HAL_ETH_RxLinkCallback>
  17207. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  17208. heth->RxDescList.RxDescCnt++;
  17209. 8007c90: 687b ldr r3, [r7, #4]
  17210. 8007c92: 6e1b ldr r3, [r3, #96] @ 0x60
  17211. 8007c94: 1c5a adds r2, r3, #1
  17212. 8007c96: 687b ldr r3, [r7, #4]
  17213. 8007c98: 661a str r2, [r3, #96] @ 0x60
  17214. heth->RxDescList.RxDataLength += bufflength;
  17215. 8007c9a: 687b ldr r3, [r7, #4]
  17216. 8007c9c: 6e5a ldr r2, [r3, #100] @ 0x64
  17217. 8007c9e: 68bb ldr r3, [r7, #8]
  17218. 8007ca0: 441a add r2, r3
  17219. 8007ca2: 687b ldr r3, [r7, #4]
  17220. 8007ca4: 665a str r2, [r3, #100] @ 0x64
  17221. /* Clear buffer pointer */
  17222. dmarxdesc->BackupAddr0 = 0;
  17223. 8007ca6: 69bb ldr r3, [r7, #24]
  17224. 8007ca8: 2200 movs r2, #0
  17225. 8007caa: 611a str r2, [r3, #16]
  17226. }
  17227. /* Increment current rx descriptor index */
  17228. INCR_RX_DESC_INDEX(descidx, 1U);
  17229. 8007cac: 69fb ldr r3, [r7, #28]
  17230. 8007cae: 3301 adds r3, #1
  17231. 8007cb0: 61fb str r3, [r7, #28]
  17232. 8007cb2: 69fb ldr r3, [r7, #28]
  17233. 8007cb4: 2b03 cmp r3, #3
  17234. 8007cb6: d902 bls.n 8007cbe <HAL_ETH_ReadData+0x110>
  17235. 8007cb8: 69fb ldr r3, [r7, #28]
  17236. 8007cba: 3b04 subs r3, #4
  17237. 8007cbc: 61fb str r3, [r7, #28]
  17238. /* Get current descriptor address */
  17239. dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx];
  17240. 8007cbe: 687b ldr r3, [r7, #4]
  17241. 8007cc0: 69fa ldr r2, [r7, #28]
  17242. 8007cc2: 3212 adds r2, #18
  17243. 8007cc4: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  17244. 8007cc8: 61bb str r3, [r7, #24]
  17245. desccnt++;
  17246. 8007cca: 697b ldr r3, [r7, #20]
  17247. 8007ccc: 3301 adds r3, #1
  17248. 8007cce: 617b str r3, [r7, #20]
  17249. while ((READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_OWN) == (uint32_t)RESET) && (desccnt < desccntmax)
  17250. 8007cd0: 69bb ldr r3, [r7, #24]
  17251. 8007cd2: 68db ldr r3, [r3, #12]
  17252. && (rxdataready == 0U))
  17253. 8007cd4: 2b00 cmp r3, #0
  17254. 8007cd6: db06 blt.n 8007ce6 <HAL_ETH_ReadData+0x138>
  17255. while ((READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_OWN) == (uint32_t)RESET) && (desccnt < desccntmax)
  17256. 8007cd8: 697a ldr r2, [r7, #20]
  17257. 8007cda: 68fb ldr r3, [r7, #12]
  17258. 8007cdc: 429a cmp r2, r3
  17259. 8007cde: d202 bcs.n 8007ce6 <HAL_ETH_ReadData+0x138>
  17260. && (rxdataready == 0U))
  17261. 8007ce0: 7cfb ldrb r3, [r7, #19]
  17262. 8007ce2: 2b00 cmp r3, #0
  17263. 8007ce4: d08f beq.n 8007c06 <HAL_ETH_ReadData+0x58>
  17264. }
  17265. heth->RxDescList.RxBuildDescCnt += desccnt;
  17266. 8007ce6: 687b ldr r3, [r7, #4]
  17267. 8007ce8: 6eda ldr r2, [r3, #108] @ 0x6c
  17268. 8007cea: 697b ldr r3, [r7, #20]
  17269. 8007cec: 441a add r2, r3
  17270. 8007cee: 687b ldr r3, [r7, #4]
  17271. 8007cf0: 66da str r2, [r3, #108] @ 0x6c
  17272. if ((heth->RxDescList.RxBuildDescCnt) != 0U)
  17273. 8007cf2: 687b ldr r3, [r7, #4]
  17274. 8007cf4: 6edb ldr r3, [r3, #108] @ 0x6c
  17275. 8007cf6: 2b00 cmp r3, #0
  17276. 8007cf8: d002 beq.n 8007d00 <HAL_ETH_ReadData+0x152>
  17277. {
  17278. /* Update Descriptors */
  17279. ETH_UpdateDescriptor(heth);
  17280. 8007cfa: 6878 ldr r0, [r7, #4]
  17281. 8007cfc: f000 f814 bl 8007d28 <ETH_UpdateDescriptor>
  17282. }
  17283. heth->RxDescList.RxDescIdx = descidx;
  17284. 8007d00: 687b ldr r3, [r7, #4]
  17285. 8007d02: 69fa ldr r2, [r7, #28]
  17286. 8007d04: 65da str r2, [r3, #92] @ 0x5c
  17287. if (rxdataready == 1U)
  17288. 8007d06: 7cfb ldrb r3, [r7, #19]
  17289. 8007d08: 2b01 cmp r3, #1
  17290. 8007d0a: d108 bne.n 8007d1e <HAL_ETH_ReadData+0x170>
  17291. {
  17292. /* Return received packet */
  17293. *pAppBuff = heth->RxDescList.pRxStart;
  17294. 8007d0c: 687b ldr r3, [r7, #4]
  17295. 8007d0e: 6fda ldr r2, [r3, #124] @ 0x7c
  17296. 8007d10: 683b ldr r3, [r7, #0]
  17297. 8007d12: 601a str r2, [r3, #0]
  17298. /* Reset first element */
  17299. heth->RxDescList.pRxStart = NULL;
  17300. 8007d14: 687b ldr r3, [r7, #4]
  17301. 8007d16: 2200 movs r2, #0
  17302. 8007d18: 67da str r2, [r3, #124] @ 0x7c
  17303. return HAL_OK;
  17304. 8007d1a: 2300 movs r3, #0
  17305. 8007d1c: e000 b.n 8007d20 <HAL_ETH_ReadData+0x172>
  17306. }
  17307. /* Packet not ready */
  17308. return HAL_ERROR;
  17309. 8007d1e: 2301 movs r3, #1
  17310. }
  17311. 8007d20: 4618 mov r0, r3
  17312. 8007d22: 3720 adds r7, #32
  17313. 8007d24: 46bd mov sp, r7
  17314. 8007d26: bd80 pop {r7, pc}
  17315. 08007d28 <ETH_UpdateDescriptor>:
  17316. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  17317. * the configuration information for ETHERNET module
  17318. * @retval HAL status
  17319. */
  17320. static void ETH_UpdateDescriptor(ETH_HandleTypeDef *heth)
  17321. {
  17322. 8007d28: b580 push {r7, lr}
  17323. 8007d2a: b088 sub sp, #32
  17324. 8007d2c: af00 add r7, sp, #0
  17325. 8007d2e: 6078 str r0, [r7, #4]
  17326. uint32_t descidx;
  17327. uint32_t tailidx;
  17328. uint32_t desccount;
  17329. ETH_DMADescTypeDef *dmarxdesc;
  17330. uint8_t *buff = NULL;
  17331. 8007d30: 2300 movs r3, #0
  17332. 8007d32: 60bb str r3, [r7, #8]
  17333. uint8_t allocStatus = 1U;
  17334. 8007d34: 2301 movs r3, #1
  17335. 8007d36: 74fb strb r3, [r7, #19]
  17336. descidx = heth->RxDescList.RxBuildDescIdx;
  17337. 8007d38: 687b ldr r3, [r7, #4]
  17338. 8007d3a: 6e9b ldr r3, [r3, #104] @ 0x68
  17339. 8007d3c: 61fb str r3, [r7, #28]
  17340. dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx];
  17341. 8007d3e: 687b ldr r3, [r7, #4]
  17342. 8007d40: 69fa ldr r2, [r7, #28]
  17343. 8007d42: 3212 adds r2, #18
  17344. 8007d44: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  17345. 8007d48: 617b str r3, [r7, #20]
  17346. desccount = heth->RxDescList.RxBuildDescCnt;
  17347. 8007d4a: 687b ldr r3, [r7, #4]
  17348. 8007d4c: 6edb ldr r3, [r3, #108] @ 0x6c
  17349. 8007d4e: 61bb str r3, [r7, #24]
  17350. while ((desccount > 0U) && (allocStatus != 0U))
  17351. 8007d50: e038 b.n 8007dc4 <ETH_UpdateDescriptor+0x9c>
  17352. {
  17353. /* Check if a buffer's attached the descriptor */
  17354. if (READ_REG(dmarxdesc->BackupAddr0) == 0U)
  17355. 8007d52: 697b ldr r3, [r7, #20]
  17356. 8007d54: 691b ldr r3, [r3, #16]
  17357. 8007d56: 2b00 cmp r3, #0
  17358. 8007d58: d112 bne.n 8007d80 <ETH_UpdateDescriptor+0x58>
  17359. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  17360. /*Call registered Allocate callback*/
  17361. heth->rxAllocateCallback(&buff);
  17362. #else
  17363. /* Allocate callback */
  17364. HAL_ETH_RxAllocateCallback(&buff);
  17365. 8007d5a: f107 0308 add.w r3, r7, #8
  17366. 8007d5e: 4618 mov r0, r3
  17367. 8007d60: f008 f8c4 bl 800feec <HAL_ETH_RxAllocateCallback>
  17368. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  17369. if (buff == NULL)
  17370. 8007d64: 68bb ldr r3, [r7, #8]
  17371. 8007d66: 2b00 cmp r3, #0
  17372. 8007d68: d102 bne.n 8007d70 <ETH_UpdateDescriptor+0x48>
  17373. {
  17374. allocStatus = 0U;
  17375. 8007d6a: 2300 movs r3, #0
  17376. 8007d6c: 74fb strb r3, [r7, #19]
  17377. 8007d6e: e007 b.n 8007d80 <ETH_UpdateDescriptor+0x58>
  17378. }
  17379. else
  17380. {
  17381. WRITE_REG(dmarxdesc->BackupAddr0, (uint32_t)buff);
  17382. 8007d70: 68bb ldr r3, [r7, #8]
  17383. 8007d72: 461a mov r2, r3
  17384. 8007d74: 697b ldr r3, [r7, #20]
  17385. 8007d76: 611a str r2, [r3, #16]
  17386. WRITE_REG(dmarxdesc->DESC0, (uint32_t)buff);
  17387. 8007d78: 68bb ldr r3, [r7, #8]
  17388. 8007d7a: 461a mov r2, r3
  17389. 8007d7c: 697b ldr r3, [r7, #20]
  17390. 8007d7e: 601a str r2, [r3, #0]
  17391. }
  17392. }
  17393. if (allocStatus != 0U)
  17394. 8007d80: 7cfb ldrb r3, [r7, #19]
  17395. 8007d82: 2b00 cmp r3, #0
  17396. 8007d84: d01e beq.n 8007dc4 <ETH_UpdateDescriptor+0x9c>
  17397. {
  17398. if (heth->RxDescList.ItMode != 0U)
  17399. 8007d86: 687b ldr r3, [r7, #4]
  17400. 8007d88: 6d9b ldr r3, [r3, #88] @ 0x58
  17401. 8007d8a: 2b00 cmp r3, #0
  17402. 8007d8c: d004 beq.n 8007d98 <ETH_UpdateDescriptor+0x70>
  17403. {
  17404. WRITE_REG(dmarxdesc->DESC3, ETH_DMARXNDESCRF_OWN | ETH_DMARXNDESCRF_BUF1V | ETH_DMARXNDESCRF_IOC);
  17405. 8007d8e: 697b ldr r3, [r7, #20]
  17406. 8007d90: f04f 4241 mov.w r2, #3238002688 @ 0xc1000000
  17407. 8007d94: 60da str r2, [r3, #12]
  17408. 8007d96: e003 b.n 8007da0 <ETH_UpdateDescriptor+0x78>
  17409. }
  17410. else
  17411. {
  17412. WRITE_REG(dmarxdesc->DESC3, ETH_DMARXNDESCRF_OWN | ETH_DMARXNDESCRF_BUF1V);
  17413. 8007d98: 697b ldr r3, [r7, #20]
  17414. 8007d9a: f04f 4201 mov.w r2, #2164260864 @ 0x81000000
  17415. 8007d9e: 60da str r2, [r3, #12]
  17416. }
  17417. /* Increment current rx descriptor index */
  17418. INCR_RX_DESC_INDEX(descidx, 1U);
  17419. 8007da0: 69fb ldr r3, [r7, #28]
  17420. 8007da2: 3301 adds r3, #1
  17421. 8007da4: 61fb str r3, [r7, #28]
  17422. 8007da6: 69fb ldr r3, [r7, #28]
  17423. 8007da8: 2b03 cmp r3, #3
  17424. 8007daa: d902 bls.n 8007db2 <ETH_UpdateDescriptor+0x8a>
  17425. 8007dac: 69fb ldr r3, [r7, #28]
  17426. 8007dae: 3b04 subs r3, #4
  17427. 8007db0: 61fb str r3, [r7, #28]
  17428. /* Get current descriptor address */
  17429. dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx];
  17430. 8007db2: 687b ldr r3, [r7, #4]
  17431. 8007db4: 69fa ldr r2, [r7, #28]
  17432. 8007db6: 3212 adds r2, #18
  17433. 8007db8: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  17434. 8007dbc: 617b str r3, [r7, #20]
  17435. desccount--;
  17436. 8007dbe: 69bb ldr r3, [r7, #24]
  17437. 8007dc0: 3b01 subs r3, #1
  17438. 8007dc2: 61bb str r3, [r7, #24]
  17439. while ((desccount > 0U) && (allocStatus != 0U))
  17440. 8007dc4: 69bb ldr r3, [r7, #24]
  17441. 8007dc6: 2b00 cmp r3, #0
  17442. 8007dc8: d002 beq.n 8007dd0 <ETH_UpdateDescriptor+0xa8>
  17443. 8007dca: 7cfb ldrb r3, [r7, #19]
  17444. 8007dcc: 2b00 cmp r3, #0
  17445. 8007dce: d1c0 bne.n 8007d52 <ETH_UpdateDescriptor+0x2a>
  17446. }
  17447. }
  17448. if (heth->RxDescList.RxBuildDescCnt != desccount)
  17449. 8007dd0: 687b ldr r3, [r7, #4]
  17450. 8007dd2: 6edb ldr r3, [r3, #108] @ 0x6c
  17451. 8007dd4: 69ba ldr r2, [r7, #24]
  17452. 8007dd6: 429a cmp r2, r3
  17453. 8007dd8: d01b beq.n 8007e12 <ETH_UpdateDescriptor+0xea>
  17454. {
  17455. /* Set the tail pointer index */
  17456. tailidx = (descidx + 1U) % ETH_RX_DESC_CNT;
  17457. 8007dda: 69fb ldr r3, [r7, #28]
  17458. 8007ddc: 3301 adds r3, #1
  17459. 8007dde: f003 0303 and.w r3, r3, #3
  17460. 8007de2: 60fb str r3, [r7, #12]
  17461. __ASM volatile ("dmb 0xF":::"memory");
  17462. 8007de4: f3bf 8f5f dmb sy
  17463. }
  17464. 8007de8: bf00 nop
  17465. /* DMB instruction to avoid race condition */
  17466. __DMB();
  17467. /* Set the Tail pointer address */
  17468. WRITE_REG(heth->Instance->DMACRDTPR, ((uint32_t)(heth->Init.RxDesc + (tailidx))));
  17469. 8007dea: 687b ldr r3, [r7, #4]
  17470. 8007dec: 6919 ldr r1, [r3, #16]
  17471. 8007dee: 68fa ldr r2, [r7, #12]
  17472. 8007df0: 4613 mov r3, r2
  17473. 8007df2: 005b lsls r3, r3, #1
  17474. 8007df4: 4413 add r3, r2
  17475. 8007df6: 00db lsls r3, r3, #3
  17476. 8007df8: 18ca adds r2, r1, r3
  17477. 8007dfa: 687b ldr r3, [r7, #4]
  17478. 8007dfc: 681b ldr r3, [r3, #0]
  17479. 8007dfe: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17480. 8007e02: f8c3 2128 str.w r2, [r3, #296] @ 0x128
  17481. heth->RxDescList.RxBuildDescIdx = descidx;
  17482. 8007e06: 687b ldr r3, [r7, #4]
  17483. 8007e08: 69fa ldr r2, [r7, #28]
  17484. 8007e0a: 669a str r2, [r3, #104] @ 0x68
  17485. heth->RxDescList.RxBuildDescCnt = desccount;
  17486. 8007e0c: 687b ldr r3, [r7, #4]
  17487. 8007e0e: 69ba ldr r2, [r7, #24]
  17488. 8007e10: 66da str r2, [r3, #108] @ 0x6c
  17489. }
  17490. }
  17491. 8007e12: bf00 nop
  17492. 8007e14: 3720 adds r7, #32
  17493. 8007e16: 46bd mov sp, r7
  17494. 8007e18: bd80 pop {r7, pc}
  17495. 08007e1a <HAL_ETH_ReleaseTxPacket>:
  17496. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  17497. * the configuration information for ETHERNET module
  17498. * @retval HAL status
  17499. */
  17500. HAL_StatusTypeDef HAL_ETH_ReleaseTxPacket(ETH_HandleTypeDef *heth)
  17501. {
  17502. 8007e1a: b580 push {r7, lr}
  17503. 8007e1c: b086 sub sp, #24
  17504. 8007e1e: af00 add r7, sp, #0
  17505. 8007e20: 6078 str r0, [r7, #4]
  17506. ETH_TxDescListTypeDef *dmatxdesclist = &heth->TxDescList;
  17507. 8007e22: 687b ldr r3, [r7, #4]
  17508. 8007e24: 3318 adds r3, #24
  17509. 8007e26: 60bb str r3, [r7, #8]
  17510. uint32_t numOfBuf = dmatxdesclist->BuffersInUse;
  17511. 8007e28: 68bb ldr r3, [r7, #8]
  17512. 8007e2a: 6a9b ldr r3, [r3, #40] @ 0x28
  17513. 8007e2c: 617b str r3, [r7, #20]
  17514. uint32_t idx = dmatxdesclist->releaseIndex;
  17515. 8007e2e: 68bb ldr r3, [r7, #8]
  17516. 8007e30: 6adb ldr r3, [r3, #44] @ 0x2c
  17517. 8007e32: 613b str r3, [r7, #16]
  17518. uint8_t pktTxStatus = 1U;
  17519. 8007e34: 2301 movs r3, #1
  17520. 8007e36: 73fb strb r3, [r7, #15]
  17521. #ifdef HAL_ETH_USE_PTP
  17522. ETH_TimeStampTypeDef *timestamp = &heth->TxTimestamp;
  17523. #endif /* HAL_ETH_USE_PTP */
  17524. /* Loop through buffers in use. */
  17525. while ((numOfBuf != 0U) && (pktTxStatus != 0U))
  17526. 8007e38: e047 b.n 8007eca <HAL_ETH_ReleaseTxPacket+0xb0>
  17527. {
  17528. pktInUse = 1U;
  17529. 8007e3a: 2301 movs r3, #1
  17530. 8007e3c: 73bb strb r3, [r7, #14]
  17531. numOfBuf--;
  17532. 8007e3e: 697b ldr r3, [r7, #20]
  17533. 8007e40: 3b01 subs r3, #1
  17534. 8007e42: 617b str r3, [r7, #20]
  17535. /* If no packet, just examine the next packet. */
  17536. if (dmatxdesclist->PacketAddress[idx] == NULL)
  17537. 8007e44: 68ba ldr r2, [r7, #8]
  17538. 8007e46: 693b ldr r3, [r7, #16]
  17539. 8007e48: 3304 adds r3, #4
  17540. 8007e4a: 009b lsls r3, r3, #2
  17541. 8007e4c: 4413 add r3, r2
  17542. 8007e4e: 685b ldr r3, [r3, #4]
  17543. 8007e50: 2b00 cmp r3, #0
  17544. 8007e52: d10a bne.n 8007e6a <HAL_ETH_ReleaseTxPacket+0x50>
  17545. {
  17546. /* No packet in use, skip to next. */
  17547. INCR_TX_DESC_INDEX(idx, 1U);
  17548. 8007e54: 693b ldr r3, [r7, #16]
  17549. 8007e56: 3301 adds r3, #1
  17550. 8007e58: 613b str r3, [r7, #16]
  17551. 8007e5a: 693b ldr r3, [r7, #16]
  17552. 8007e5c: 2b03 cmp r3, #3
  17553. 8007e5e: d902 bls.n 8007e66 <HAL_ETH_ReleaseTxPacket+0x4c>
  17554. 8007e60: 693b ldr r3, [r7, #16]
  17555. 8007e62: 3b04 subs r3, #4
  17556. 8007e64: 613b str r3, [r7, #16]
  17557. pktInUse = 0U;
  17558. 8007e66: 2300 movs r3, #0
  17559. 8007e68: 73bb strb r3, [r7, #14]
  17560. }
  17561. if (pktInUse != 0U)
  17562. 8007e6a: 7bbb ldrb r3, [r7, #14]
  17563. 8007e6c: 2b00 cmp r3, #0
  17564. 8007e6e: d02c beq.n 8007eca <HAL_ETH_ReleaseTxPacket+0xb0>
  17565. {
  17566. /* Determine if the packet has been transmitted. */
  17567. if ((heth->Init.TxDesc[idx].DESC3 & ETH_DMATXNDESCRF_OWN) == 0U)
  17568. 8007e70: 687b ldr r3, [r7, #4]
  17569. 8007e72: 68d9 ldr r1, [r3, #12]
  17570. 8007e74: 693a ldr r2, [r7, #16]
  17571. 8007e76: 4613 mov r3, r2
  17572. 8007e78: 005b lsls r3, r3, #1
  17573. 8007e7a: 4413 add r3, r2
  17574. 8007e7c: 00db lsls r3, r3, #3
  17575. 8007e7e: 440b add r3, r1
  17576. 8007e80: 68db ldr r3, [r3, #12]
  17577. 8007e82: 2b00 cmp r3, #0
  17578. 8007e84: db1f blt.n 8007ec6 <HAL_ETH_ReleaseTxPacket+0xac>
  17579. {
  17580. HAL_ETH_TxPtpCallback(dmatxdesclist->PacketAddress[idx], timestamp);
  17581. }
  17582. #endif /* HAL_ETH_USE_PTP */
  17583. /* Release the packet. */
  17584. HAL_ETH_TxFreeCallback(dmatxdesclist->PacketAddress[idx]);
  17585. 8007e86: 68ba ldr r2, [r7, #8]
  17586. 8007e88: 693b ldr r3, [r7, #16]
  17587. 8007e8a: 3304 adds r3, #4
  17588. 8007e8c: 009b lsls r3, r3, #2
  17589. 8007e8e: 4413 add r3, r2
  17590. 8007e90: 685b ldr r3, [r3, #4]
  17591. 8007e92: 4618 mov r0, r3
  17592. 8007e94: f008 f8c2 bl 801001c <HAL_ETH_TxFreeCallback>
  17593. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  17594. /* Clear the entry in the in-use array. */
  17595. dmatxdesclist->PacketAddress[idx] = NULL;
  17596. 8007e98: 68ba ldr r2, [r7, #8]
  17597. 8007e9a: 693b ldr r3, [r7, #16]
  17598. 8007e9c: 3304 adds r3, #4
  17599. 8007e9e: 009b lsls r3, r3, #2
  17600. 8007ea0: 4413 add r3, r2
  17601. 8007ea2: 2200 movs r2, #0
  17602. 8007ea4: 605a str r2, [r3, #4]
  17603. /* Update the transmit relesae index and number of buffers in use. */
  17604. INCR_TX_DESC_INDEX(idx, 1U);
  17605. 8007ea6: 693b ldr r3, [r7, #16]
  17606. 8007ea8: 3301 adds r3, #1
  17607. 8007eaa: 613b str r3, [r7, #16]
  17608. 8007eac: 693b ldr r3, [r7, #16]
  17609. 8007eae: 2b03 cmp r3, #3
  17610. 8007eb0: d902 bls.n 8007eb8 <HAL_ETH_ReleaseTxPacket+0x9e>
  17611. 8007eb2: 693b ldr r3, [r7, #16]
  17612. 8007eb4: 3b04 subs r3, #4
  17613. 8007eb6: 613b str r3, [r7, #16]
  17614. dmatxdesclist->BuffersInUse = numOfBuf;
  17615. 8007eb8: 68bb ldr r3, [r7, #8]
  17616. 8007eba: 697a ldr r2, [r7, #20]
  17617. 8007ebc: 629a str r2, [r3, #40] @ 0x28
  17618. dmatxdesclist->releaseIndex = idx;
  17619. 8007ebe: 68bb ldr r3, [r7, #8]
  17620. 8007ec0: 693a ldr r2, [r7, #16]
  17621. 8007ec2: 62da str r2, [r3, #44] @ 0x2c
  17622. 8007ec4: e001 b.n 8007eca <HAL_ETH_ReleaseTxPacket+0xb0>
  17623. }
  17624. else
  17625. {
  17626. /* Get out of the loop! */
  17627. pktTxStatus = 0U;
  17628. 8007ec6: 2300 movs r3, #0
  17629. 8007ec8: 73fb strb r3, [r7, #15]
  17630. while ((numOfBuf != 0U) && (pktTxStatus != 0U))
  17631. 8007eca: 697b ldr r3, [r7, #20]
  17632. 8007ecc: 2b00 cmp r3, #0
  17633. 8007ece: d002 beq.n 8007ed6 <HAL_ETH_ReleaseTxPacket+0xbc>
  17634. 8007ed0: 7bfb ldrb r3, [r7, #15]
  17635. 8007ed2: 2b00 cmp r3, #0
  17636. 8007ed4: d1b1 bne.n 8007e3a <HAL_ETH_ReleaseTxPacket+0x20>
  17637. }
  17638. }
  17639. }
  17640. return HAL_OK;
  17641. 8007ed6: 2300 movs r3, #0
  17642. }
  17643. 8007ed8: 4618 mov r0, r3
  17644. 8007eda: 3718 adds r7, #24
  17645. 8007edc: 46bd mov sp, r7
  17646. 8007ede: bd80 pop {r7, pc}
  17647. 08007ee0 <HAL_ETH_IRQHandler>:
  17648. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  17649. * the configuration information for ETHERNET module
  17650. * @retval HAL status
  17651. */
  17652. void HAL_ETH_IRQHandler(ETH_HandleTypeDef *heth)
  17653. {
  17654. 8007ee0: b580 push {r7, lr}
  17655. 8007ee2: b086 sub sp, #24
  17656. 8007ee4: af00 add r7, sp, #0
  17657. 8007ee6: 6078 str r0, [r7, #4]
  17658. uint32_t mac_flag = READ_REG(heth->Instance->MACISR);
  17659. 8007ee8: 687b ldr r3, [r7, #4]
  17660. 8007eea: 681b ldr r3, [r3, #0]
  17661. 8007eec: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  17662. 8007ef0: 617b str r3, [r7, #20]
  17663. uint32_t dma_flag = READ_REG(heth->Instance->DMACSR);
  17664. 8007ef2: 687b ldr r3, [r7, #4]
  17665. 8007ef4: 681b ldr r3, [r3, #0]
  17666. 8007ef6: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17667. 8007efa: f8d3 3160 ldr.w r3, [r3, #352] @ 0x160
  17668. 8007efe: 613b str r3, [r7, #16]
  17669. uint32_t dma_itsource = READ_REG(heth->Instance->DMACIER);
  17670. 8007f00: 687b ldr r3, [r7, #4]
  17671. 8007f02: 681b ldr r3, [r3, #0]
  17672. 8007f04: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17673. 8007f08: f8d3 3134 ldr.w r3, [r3, #308] @ 0x134
  17674. 8007f0c: 60fb str r3, [r7, #12]
  17675. uint32_t exti_d1_flag = READ_REG(EXTI_D1->PR3);
  17676. 8007f0e: 4b6d ldr r3, [pc, #436] @ (80080c4 <HAL_ETH_IRQHandler+0x1e4>)
  17677. 8007f10: 6a9b ldr r3, [r3, #40] @ 0x28
  17678. 8007f12: 60bb str r3, [r7, #8]
  17679. #if defined(DUAL_CORE)
  17680. uint32_t exti_d2_flag = READ_REG(EXTI_D2->PR3);
  17681. #endif /* DUAL_CORE */
  17682. /* Packet received */
  17683. if (((dma_flag & ETH_DMACSR_RI) != 0U) && ((dma_itsource & ETH_DMACIER_RIE) != 0U))
  17684. 8007f14: 693b ldr r3, [r7, #16]
  17685. 8007f16: f003 0340 and.w r3, r3, #64 @ 0x40
  17686. 8007f1a: 2b00 cmp r3, #0
  17687. 8007f1c: d010 beq.n 8007f40 <HAL_ETH_IRQHandler+0x60>
  17688. 8007f1e: 68fb ldr r3, [r7, #12]
  17689. 8007f20: f003 0340 and.w r3, r3, #64 @ 0x40
  17690. 8007f24: 2b00 cmp r3, #0
  17691. 8007f26: d00b beq.n 8007f40 <HAL_ETH_IRQHandler+0x60>
  17692. {
  17693. /* Clear the Eth DMA Rx IT pending bits */
  17694. __HAL_ETH_DMA_CLEAR_IT(heth, ETH_DMACSR_RI | ETH_DMACSR_NIS);
  17695. 8007f28: 687b ldr r3, [r7, #4]
  17696. 8007f2a: 681b ldr r3, [r3, #0]
  17697. 8007f2c: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17698. 8007f30: 461a mov r2, r3
  17699. 8007f32: f248 0340 movw r3, #32832 @ 0x8040
  17700. 8007f36: f8c2 3160 str.w r3, [r2, #352] @ 0x160
  17701. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  17702. /*Call registered Receive complete callback*/
  17703. heth->RxCpltCallback(heth);
  17704. #else
  17705. /* Receive complete callback */
  17706. HAL_ETH_RxCpltCallback(heth);
  17707. 8007f3a: 6878 ldr r0, [r7, #4]
  17708. 8007f3c: f007 fb6e bl 800f61c <HAL_ETH_RxCpltCallback>
  17709. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  17710. }
  17711. /* Packet transmitted */
  17712. if (((dma_flag & ETH_DMACSR_TI) != 0U) && ((dma_itsource & ETH_DMACIER_TIE) != 0U))
  17713. 8007f40: 693b ldr r3, [r7, #16]
  17714. 8007f42: f003 0301 and.w r3, r3, #1
  17715. 8007f46: 2b00 cmp r3, #0
  17716. 8007f48: d010 beq.n 8007f6c <HAL_ETH_IRQHandler+0x8c>
  17717. 8007f4a: 68fb ldr r3, [r7, #12]
  17718. 8007f4c: f003 0301 and.w r3, r3, #1
  17719. 8007f50: 2b00 cmp r3, #0
  17720. 8007f52: d00b beq.n 8007f6c <HAL_ETH_IRQHandler+0x8c>
  17721. {
  17722. /* Clear the Eth DMA Tx IT pending bits */
  17723. __HAL_ETH_DMA_CLEAR_IT(heth, ETH_DMACSR_TI | ETH_DMACSR_NIS);
  17724. 8007f54: 687b ldr r3, [r7, #4]
  17725. 8007f56: 681b ldr r3, [r3, #0]
  17726. 8007f58: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17727. 8007f5c: 461a mov r2, r3
  17728. 8007f5e: f248 0301 movw r3, #32769 @ 0x8001
  17729. 8007f62: f8c2 3160 str.w r3, [r2, #352] @ 0x160
  17730. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  17731. /*Call registered Transmit complete callback*/
  17732. heth->TxCpltCallback(heth);
  17733. #else
  17734. /* Transfer complete callback */
  17735. HAL_ETH_TxCpltCallback(heth);
  17736. 8007f66: 6878 ldr r0, [r7, #4]
  17737. 8007f68: f007 fb68 bl 800f63c <HAL_ETH_TxCpltCallback>
  17738. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  17739. }
  17740. /* ETH DMA Error */
  17741. if (((dma_flag & ETH_DMACSR_AIS) != 0U) && ((dma_itsource & ETH_DMACIER_AIE) != 0U))
  17742. 8007f6c: 693b ldr r3, [r7, #16]
  17743. 8007f6e: f403 4380 and.w r3, r3, #16384 @ 0x4000
  17744. 8007f72: 2b00 cmp r3, #0
  17745. 8007f74: d047 beq.n 8008006 <HAL_ETH_IRQHandler+0x126>
  17746. 8007f76: 68fb ldr r3, [r7, #12]
  17747. 8007f78: f403 4380 and.w r3, r3, #16384 @ 0x4000
  17748. 8007f7c: 2b00 cmp r3, #0
  17749. 8007f7e: d042 beq.n 8008006 <HAL_ETH_IRQHandler+0x126>
  17750. {
  17751. heth->ErrorCode |= HAL_ETH_ERROR_DMA;
  17752. 8007f80: 687b ldr r3, [r7, #4]
  17753. 8007f82: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  17754. 8007f86: f043 0208 orr.w r2, r3, #8
  17755. 8007f8a: 687b ldr r3, [r7, #4]
  17756. 8007f8c: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  17757. /* if fatal bus error occurred */
  17758. if ((dma_flag & ETH_DMACSR_FBE) != 0U)
  17759. 8007f90: 693b ldr r3, [r7, #16]
  17760. 8007f92: f403 5380 and.w r3, r3, #4096 @ 0x1000
  17761. 8007f96: 2b00 cmp r3, #0
  17762. 8007f98: d01e beq.n 8007fd8 <HAL_ETH_IRQHandler+0xf8>
  17763. {
  17764. /* Get DMA error code */
  17765. heth->DMAErrorCode = READ_BIT(heth->Instance->DMACSR, (ETH_DMACSR_FBE | ETH_DMACSR_TPS | ETH_DMACSR_RPS));
  17766. 8007f9a: 687b ldr r3, [r7, #4]
  17767. 8007f9c: 681b ldr r3, [r3, #0]
  17768. 8007f9e: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17769. 8007fa2: f8d3 2160 ldr.w r2, [r3, #352] @ 0x160
  17770. 8007fa6: f241 1302 movw r3, #4354 @ 0x1102
  17771. 8007faa: 4013 ands r3, r2
  17772. 8007fac: 687a ldr r2, [r7, #4]
  17773. 8007fae: f8c2 308c str.w r3, [r2, #140] @ 0x8c
  17774. /* Disable all interrupts */
  17775. __HAL_ETH_DMA_DISABLE_IT(heth, ETH_DMACIER_NIE | ETH_DMACIER_AIE);
  17776. 8007fb2: 687b ldr r3, [r7, #4]
  17777. 8007fb4: 681b ldr r3, [r3, #0]
  17778. 8007fb6: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17779. 8007fba: f8d3 3134 ldr.w r3, [r3, #308] @ 0x134
  17780. 8007fbe: 687a ldr r2, [r7, #4]
  17781. 8007fc0: 6812 ldr r2, [r2, #0]
  17782. 8007fc2: f423 4340 bic.w r3, r3, #49152 @ 0xc000
  17783. 8007fc6: f502 5280 add.w r2, r2, #4096 @ 0x1000
  17784. 8007fca: f8c2 3134 str.w r3, [r2, #308] @ 0x134
  17785. /* Set HAL state to ERROR */
  17786. heth->gState = HAL_ETH_STATE_ERROR;
  17787. 8007fce: 687b ldr r3, [r7, #4]
  17788. 8007fd0: 22e0 movs r2, #224 @ 0xe0
  17789. 8007fd2: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  17790. 8007fd6: e013 b.n 8008000 <HAL_ETH_IRQHandler+0x120>
  17791. }
  17792. else
  17793. {
  17794. /* Get DMA error status */
  17795. heth->DMAErrorCode = READ_BIT(heth->Instance->DMACSR, (ETH_DMACSR_CDE | ETH_DMACSR_ETI | ETH_DMACSR_RWT |
  17796. 8007fd8: 687b ldr r3, [r7, #4]
  17797. 8007fda: 681b ldr r3, [r3, #0]
  17798. 8007fdc: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17799. 8007fe0: f8d3 3160 ldr.w r3, [r3, #352] @ 0x160
  17800. 8007fe4: f403 42cd and.w r2, r3, #26240 @ 0x6680
  17801. 8007fe8: 687b ldr r3, [r7, #4]
  17802. 8007fea: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  17803. ETH_DMACSR_RBU | ETH_DMACSR_AIS));
  17804. /* Clear the interrupt summary flag */
  17805. __HAL_ETH_DMA_CLEAR_IT(heth, (ETH_DMACSR_CDE | ETH_DMACSR_ETI | ETH_DMACSR_RWT |
  17806. 8007fee: 687b ldr r3, [r7, #4]
  17807. 8007ff0: 681b ldr r3, [r3, #0]
  17808. 8007ff2: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17809. 8007ff6: 461a mov r2, r3
  17810. 8007ff8: f44f 43cd mov.w r3, #26240 @ 0x6680
  17811. 8007ffc: f8c2 3160 str.w r3, [r2, #352] @ 0x160
  17812. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  17813. /* Call registered Error callback*/
  17814. heth->ErrorCallback(heth);
  17815. #else
  17816. /* Ethernet DMA Error callback */
  17817. HAL_ETH_ErrorCallback(heth);
  17818. 8008000: 6878 ldr r0, [r7, #4]
  17819. 8008002: f007 fb2b bl 800f65c <HAL_ETH_ErrorCallback>
  17820. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  17821. }
  17822. /* ETH MAC Error IT */
  17823. if (((mac_flag & ETH_MACIER_RXSTSIE) == ETH_MACIER_RXSTSIE) || \
  17824. 8008006: 697b ldr r3, [r7, #20]
  17825. 8008008: f403 4380 and.w r3, r3, #16384 @ 0x4000
  17826. 800800c: 2b00 cmp r3, #0
  17827. 800800e: d104 bne.n 800801a <HAL_ETH_IRQHandler+0x13a>
  17828. ((mac_flag & ETH_MACIER_TXSTSIE) == ETH_MACIER_TXSTSIE))
  17829. 8008010: 697b ldr r3, [r7, #20]
  17830. 8008012: f403 5300 and.w r3, r3, #8192 @ 0x2000
  17831. if (((mac_flag & ETH_MACIER_RXSTSIE) == ETH_MACIER_RXSTSIE) || \
  17832. 8008016: 2b00 cmp r3, #0
  17833. 8008018: d019 beq.n 800804e <HAL_ETH_IRQHandler+0x16e>
  17834. {
  17835. heth->ErrorCode |= HAL_ETH_ERROR_MAC;
  17836. 800801a: 687b ldr r3, [r7, #4]
  17837. 800801c: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  17838. 8008020: f043 0210 orr.w r2, r3, #16
  17839. 8008024: 687b ldr r3, [r7, #4]
  17840. 8008026: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  17841. /* Get MAC Rx Tx status and clear Status register pending bit */
  17842. heth->MACErrorCode = READ_REG(heth->Instance->MACRXTXSR);
  17843. 800802a: 687b ldr r3, [r7, #4]
  17844. 800802c: 681b ldr r3, [r3, #0]
  17845. 800802e: f8d3 20b8 ldr.w r2, [r3, #184] @ 0xb8
  17846. 8008032: 687b ldr r3, [r7, #4]
  17847. 8008034: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  17848. heth->gState = HAL_ETH_STATE_ERROR;
  17849. 8008038: 687b ldr r3, [r7, #4]
  17850. 800803a: 22e0 movs r2, #224 @ 0xe0
  17851. 800803c: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  17852. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  17853. /* Call registered Error callback*/
  17854. heth->ErrorCallback(heth);
  17855. #else
  17856. /* Ethernet Error callback */
  17857. HAL_ETH_ErrorCallback(heth);
  17858. 8008040: 6878 ldr r0, [r7, #4]
  17859. 8008042: f007 fb0b bl 800f65c <HAL_ETH_ErrorCallback>
  17860. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  17861. heth->MACErrorCode = (uint32_t)(0x0U);
  17862. 8008046: 687b ldr r3, [r7, #4]
  17863. 8008048: 2200 movs r2, #0
  17864. 800804a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  17865. }
  17866. /* ETH PMT IT */
  17867. if ((mac_flag & ETH_MAC_PMT_IT) != 0U)
  17868. 800804e: 697b ldr r3, [r7, #20]
  17869. 8008050: f003 0310 and.w r3, r3, #16
  17870. 8008054: 2b00 cmp r3, #0
  17871. 8008056: d00f beq.n 8008078 <HAL_ETH_IRQHandler+0x198>
  17872. {
  17873. /* Get MAC Wake-up source and clear the status register pending bit */
  17874. heth->MACWakeUpEvent = READ_BIT(heth->Instance->MACPCSR, (ETH_MACPCSR_RWKPRCVD | ETH_MACPCSR_MGKPRCVD));
  17875. 8008058: 687b ldr r3, [r7, #4]
  17876. 800805a: 681b ldr r3, [r3, #0]
  17877. 800805c: f8d3 30c0 ldr.w r3, [r3, #192] @ 0xc0
  17878. 8008060: f003 0260 and.w r2, r3, #96 @ 0x60
  17879. 8008064: 687b ldr r3, [r7, #4]
  17880. 8008066: f8c3 2094 str.w r2, [r3, #148] @ 0x94
  17881. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  17882. /* Call registered PMT callback*/
  17883. heth->PMTCallback(heth);
  17884. #else
  17885. /* Ethernet PMT callback */
  17886. HAL_ETH_PMTCallback(heth);
  17887. 800806a: 6878 ldr r0, [r7, #4]
  17888. 800806c: f000 f82c bl 80080c8 <HAL_ETH_PMTCallback>
  17889. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  17890. heth->MACWakeUpEvent = (uint32_t)(0x0U);
  17891. 8008070: 687b ldr r3, [r7, #4]
  17892. 8008072: 2200 movs r2, #0
  17893. 8008074: f8c3 2094 str.w r2, [r3, #148] @ 0x94
  17894. }
  17895. /* ETH EEE IT */
  17896. if ((mac_flag & ETH_MAC_LPI_IT) != 0U)
  17897. 8008078: 697b ldr r3, [r7, #20]
  17898. 800807a: f003 0320 and.w r3, r3, #32
  17899. 800807e: 2b00 cmp r3, #0
  17900. 8008080: d00f beq.n 80080a2 <HAL_ETH_IRQHandler+0x1c2>
  17901. {
  17902. /* Get MAC LPI interrupt source and clear the status register pending bit */
  17903. heth->MACLPIEvent = READ_BIT(heth->Instance->MACLCSR, 0x0000000FU);
  17904. 8008082: 687b ldr r3, [r7, #4]
  17905. 8008084: 681b ldr r3, [r3, #0]
  17906. 8008086: f8d3 30d0 ldr.w r3, [r3, #208] @ 0xd0
  17907. 800808a: f003 020f and.w r2, r3, #15
  17908. 800808e: 687b ldr r3, [r7, #4]
  17909. 8008090: f8c3 2098 str.w r2, [r3, #152] @ 0x98
  17910. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  17911. /* Call registered EEE callback*/
  17912. heth->EEECallback(heth);
  17913. #else
  17914. /* Ethernet EEE callback */
  17915. HAL_ETH_EEECallback(heth);
  17916. 8008094: 6878 ldr r0, [r7, #4]
  17917. 8008096: f000 f821 bl 80080dc <HAL_ETH_EEECallback>
  17918. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  17919. heth->MACLPIEvent = (uint32_t)(0x0U);
  17920. 800809a: 687b ldr r3, [r7, #4]
  17921. 800809c: 2200 movs r2, #0
  17922. 800809e: f8c3 2098 str.w r2, [r3, #152] @ 0x98
  17923. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  17924. }
  17925. }
  17926. #else /* DUAL_CORE not defined */
  17927. /* check ETH WAKEUP exti flag */
  17928. if ((exti_d1_flag & ETH_WAKEUP_EXTI_LINE) != 0U)
  17929. 80080a2: 68bb ldr r3, [r7, #8]
  17930. 80080a4: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  17931. 80080a8: 2b00 cmp r3, #0
  17932. 80080aa: d006 beq.n 80080ba <HAL_ETH_IRQHandler+0x1da>
  17933. {
  17934. /* Clear ETH WAKEUP Exti pending bit */
  17935. __HAL_ETH_WAKEUP_EXTI_CLEAR_FLAG(ETH_WAKEUP_EXTI_LINE);
  17936. 80080ac: 4b05 ldr r3, [pc, #20] @ (80080c4 <HAL_ETH_IRQHandler+0x1e4>)
  17937. 80080ae: f44f 0280 mov.w r2, #4194304 @ 0x400000
  17938. 80080b2: 629a str r2, [r3, #40] @ 0x28
  17939. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  17940. /* Call registered WakeUp callback*/
  17941. heth->WakeUpCallback(heth);
  17942. #else
  17943. /* ETH WAKEUP callback */
  17944. HAL_ETH_WakeUpCallback(heth);
  17945. 80080b4: 6878 ldr r0, [r7, #4]
  17946. 80080b6: f000 f81b bl 80080f0 <HAL_ETH_WakeUpCallback>
  17947. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  17948. }
  17949. #endif /* DUAL_CORE */
  17950. }
  17951. 80080ba: bf00 nop
  17952. 80080bc: 3718 adds r7, #24
  17953. 80080be: 46bd mov sp, r7
  17954. 80080c0: bd80 pop {r7, pc}
  17955. 80080c2: bf00 nop
  17956. 80080c4: 58000080 .word 0x58000080
  17957. 080080c8 <HAL_ETH_PMTCallback>:
  17958. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  17959. * the configuration information for ETHERNET module
  17960. * @retval None
  17961. */
  17962. __weak void HAL_ETH_PMTCallback(ETH_HandleTypeDef *heth)
  17963. {
  17964. 80080c8: b480 push {r7}
  17965. 80080ca: b083 sub sp, #12
  17966. 80080cc: af00 add r7, sp, #0
  17967. 80080ce: 6078 str r0, [r7, #4]
  17968. /* Prevent unused argument(s) compilation warning */
  17969. UNUSED(heth);
  17970. /* NOTE : This function Should not be modified, when the callback is needed,
  17971. the HAL_ETH_PMTCallback could be implemented in the user file
  17972. */
  17973. }
  17974. 80080d0: bf00 nop
  17975. 80080d2: 370c adds r7, #12
  17976. 80080d4: 46bd mov sp, r7
  17977. 80080d6: f85d 7b04 ldr.w r7, [sp], #4
  17978. 80080da: 4770 bx lr
  17979. 080080dc <HAL_ETH_EEECallback>:
  17980. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  17981. * the configuration information for ETHERNET module
  17982. * @retval None
  17983. */
  17984. __weak void HAL_ETH_EEECallback(ETH_HandleTypeDef *heth)
  17985. {
  17986. 80080dc: b480 push {r7}
  17987. 80080de: b083 sub sp, #12
  17988. 80080e0: af00 add r7, sp, #0
  17989. 80080e2: 6078 str r0, [r7, #4]
  17990. /* Prevent unused argument(s) compilation warning */
  17991. UNUSED(heth);
  17992. /* NOTE : This function Should not be modified, when the callback is needed,
  17993. the HAL_ETH_EEECallback could be implemented in the user file
  17994. */
  17995. }
  17996. 80080e4: bf00 nop
  17997. 80080e6: 370c adds r7, #12
  17998. 80080e8: 46bd mov sp, r7
  17999. 80080ea: f85d 7b04 ldr.w r7, [sp], #4
  18000. 80080ee: 4770 bx lr
  18001. 080080f0 <HAL_ETH_WakeUpCallback>:
  18002. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  18003. * the configuration information for ETHERNET module
  18004. * @retval None
  18005. */
  18006. __weak void HAL_ETH_WakeUpCallback(ETH_HandleTypeDef *heth)
  18007. {
  18008. 80080f0: b480 push {r7}
  18009. 80080f2: b083 sub sp, #12
  18010. 80080f4: af00 add r7, sp, #0
  18011. 80080f6: 6078 str r0, [r7, #4]
  18012. /* Prevent unused argument(s) compilation warning */
  18013. UNUSED(heth);
  18014. /* NOTE : This function Should not be modified, when the callback is needed,
  18015. the HAL_ETH_WakeUpCallback could be implemented in the user file
  18016. */
  18017. }
  18018. 80080f8: bf00 nop
  18019. 80080fa: 370c adds r7, #12
  18020. 80080fc: 46bd mov sp, r7
  18021. 80080fe: f85d 7b04 ldr.w r7, [sp], #4
  18022. 8008102: 4770 bx lr
  18023. 08008104 <HAL_ETH_ReadPHYRegister>:
  18024. * @param pRegValue: parameter to hold read value
  18025. * @retval HAL status
  18026. */
  18027. HAL_StatusTypeDef HAL_ETH_ReadPHYRegister(ETH_HandleTypeDef *heth, uint32_t PHYAddr, uint32_t PHYReg,
  18028. uint32_t *pRegValue)
  18029. {
  18030. 8008104: b580 push {r7, lr}
  18031. 8008106: b086 sub sp, #24
  18032. 8008108: af00 add r7, sp, #0
  18033. 800810a: 60f8 str r0, [r7, #12]
  18034. 800810c: 60b9 str r1, [r7, #8]
  18035. 800810e: 607a str r2, [r7, #4]
  18036. 8008110: 603b str r3, [r7, #0]
  18037. uint32_t tickstart;
  18038. uint32_t tmpreg;
  18039. /* Check for the Busy flag */
  18040. if (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) != (uint32_t)RESET)
  18041. 8008112: 68fb ldr r3, [r7, #12]
  18042. 8008114: 681b ldr r3, [r3, #0]
  18043. 8008116: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  18044. 800811a: f003 0301 and.w r3, r3, #1
  18045. 800811e: 2b00 cmp r3, #0
  18046. 8008120: d001 beq.n 8008126 <HAL_ETH_ReadPHYRegister+0x22>
  18047. {
  18048. return HAL_ERROR;
  18049. 8008122: 2301 movs r3, #1
  18050. 8008124: e03e b.n 80081a4 <HAL_ETH_ReadPHYRegister+0xa0>
  18051. }
  18052. /* Get the MACMDIOAR value */
  18053. WRITE_REG(tmpreg, heth->Instance->MACMDIOAR);
  18054. 8008126: 68fb ldr r3, [r7, #12]
  18055. 8008128: 681b ldr r3, [r3, #0]
  18056. 800812a: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  18057. 800812e: 617b str r3, [r7, #20]
  18058. - Set the PHY device address
  18059. - Set the PHY register address
  18060. - Set the read mode
  18061. - Set the MII Busy bit */
  18062. MODIFY_REG(tmpreg, ETH_MACMDIOAR_PA, (PHYAddr << 21));
  18063. 8008130: 697b ldr r3, [r7, #20]
  18064. 8008132: f023 7278 bic.w r2, r3, #65011712 @ 0x3e00000
  18065. 8008136: 68bb ldr r3, [r7, #8]
  18066. 8008138: 055b lsls r3, r3, #21
  18067. 800813a: 4313 orrs r3, r2
  18068. 800813c: 617b str r3, [r7, #20]
  18069. MODIFY_REG(tmpreg, ETH_MACMDIOAR_RDA, (PHYReg << 16));
  18070. 800813e: 697b ldr r3, [r7, #20]
  18071. 8008140: f423 12f8 bic.w r2, r3, #2031616 @ 0x1f0000
  18072. 8008144: 687b ldr r3, [r7, #4]
  18073. 8008146: 041b lsls r3, r3, #16
  18074. 8008148: 4313 orrs r3, r2
  18075. 800814a: 617b str r3, [r7, #20]
  18076. MODIFY_REG(tmpreg, ETH_MACMDIOAR_MOC, ETH_MACMDIOAR_MOC_RD);
  18077. 800814c: 697b ldr r3, [r7, #20]
  18078. 800814e: f043 030c orr.w r3, r3, #12
  18079. 8008152: 617b str r3, [r7, #20]
  18080. SET_BIT(tmpreg, ETH_MACMDIOAR_MB);
  18081. 8008154: 697b ldr r3, [r7, #20]
  18082. 8008156: f043 0301 orr.w r3, r3, #1
  18083. 800815a: 617b str r3, [r7, #20]
  18084. /* Write the result value into the MDII Address register */
  18085. WRITE_REG(heth->Instance->MACMDIOAR, tmpreg);
  18086. 800815c: 68fb ldr r3, [r7, #12]
  18087. 800815e: 681b ldr r3, [r3, #0]
  18088. 8008160: 697a ldr r2, [r7, #20]
  18089. 8008162: f8c3 2200 str.w r2, [r3, #512] @ 0x200
  18090. tickstart = HAL_GetTick();
  18091. 8008166: f7fc fd13 bl 8004b90 <HAL_GetTick>
  18092. 800816a: 6138 str r0, [r7, #16]
  18093. /* Wait for the Busy flag */
  18094. while (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) > 0U)
  18095. 800816c: e009 b.n 8008182 <HAL_ETH_ReadPHYRegister+0x7e>
  18096. {
  18097. if (((HAL_GetTick() - tickstart) > ETH_MDIO_BUS_TIMEOUT))
  18098. 800816e: f7fc fd0f bl 8004b90 <HAL_GetTick>
  18099. 8008172: 4602 mov r2, r0
  18100. 8008174: 693b ldr r3, [r7, #16]
  18101. 8008176: 1ad3 subs r3, r2, r3
  18102. 8008178: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  18103. 800817c: d901 bls.n 8008182 <HAL_ETH_ReadPHYRegister+0x7e>
  18104. {
  18105. return HAL_ERROR;
  18106. 800817e: 2301 movs r3, #1
  18107. 8008180: e010 b.n 80081a4 <HAL_ETH_ReadPHYRegister+0xa0>
  18108. while (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) > 0U)
  18109. 8008182: 68fb ldr r3, [r7, #12]
  18110. 8008184: 681b ldr r3, [r3, #0]
  18111. 8008186: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  18112. 800818a: f003 0301 and.w r3, r3, #1
  18113. 800818e: 2b00 cmp r3, #0
  18114. 8008190: d1ed bne.n 800816e <HAL_ETH_ReadPHYRegister+0x6a>
  18115. }
  18116. }
  18117. /* Get MACMIIDR value */
  18118. WRITE_REG(*pRegValue, (uint16_t)heth->Instance->MACMDIODR);
  18119. 8008192: 68fb ldr r3, [r7, #12]
  18120. 8008194: 681b ldr r3, [r3, #0]
  18121. 8008196: f8d3 3204 ldr.w r3, [r3, #516] @ 0x204
  18122. 800819a: b29b uxth r3, r3
  18123. 800819c: 461a mov r2, r3
  18124. 800819e: 683b ldr r3, [r7, #0]
  18125. 80081a0: 601a str r2, [r3, #0]
  18126. return HAL_OK;
  18127. 80081a2: 2300 movs r3, #0
  18128. }
  18129. 80081a4: 4618 mov r0, r3
  18130. 80081a6: 3718 adds r7, #24
  18131. 80081a8: 46bd mov sp, r7
  18132. 80081aa: bd80 pop {r7, pc}
  18133. 080081ac <HAL_ETH_WritePHYRegister>:
  18134. * @param RegValue: the value to write
  18135. * @retval HAL status
  18136. */
  18137. HAL_StatusTypeDef HAL_ETH_WritePHYRegister(const ETH_HandleTypeDef *heth, uint32_t PHYAddr, uint32_t PHYReg,
  18138. uint32_t RegValue)
  18139. {
  18140. 80081ac: b580 push {r7, lr}
  18141. 80081ae: b086 sub sp, #24
  18142. 80081b0: af00 add r7, sp, #0
  18143. 80081b2: 60f8 str r0, [r7, #12]
  18144. 80081b4: 60b9 str r1, [r7, #8]
  18145. 80081b6: 607a str r2, [r7, #4]
  18146. 80081b8: 603b str r3, [r7, #0]
  18147. uint32_t tickstart;
  18148. uint32_t tmpreg;
  18149. /* Check for the Busy flag */
  18150. if (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) != (uint32_t)RESET)
  18151. 80081ba: 68fb ldr r3, [r7, #12]
  18152. 80081bc: 681b ldr r3, [r3, #0]
  18153. 80081be: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  18154. 80081c2: f003 0301 and.w r3, r3, #1
  18155. 80081c6: 2b00 cmp r3, #0
  18156. 80081c8: d001 beq.n 80081ce <HAL_ETH_WritePHYRegister+0x22>
  18157. {
  18158. return HAL_ERROR;
  18159. 80081ca: 2301 movs r3, #1
  18160. 80081cc: e03c b.n 8008248 <HAL_ETH_WritePHYRegister+0x9c>
  18161. }
  18162. /* Get the MACMDIOAR value */
  18163. WRITE_REG(tmpreg, heth->Instance->MACMDIOAR);
  18164. 80081ce: 68fb ldr r3, [r7, #12]
  18165. 80081d0: 681b ldr r3, [r3, #0]
  18166. 80081d2: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  18167. 80081d6: 617b str r3, [r7, #20]
  18168. - Set the PHY device address
  18169. - Set the PHY register address
  18170. - Set the write mode
  18171. - Set the MII Busy bit */
  18172. MODIFY_REG(tmpreg, ETH_MACMDIOAR_PA, (PHYAddr << 21));
  18173. 80081d8: 697b ldr r3, [r7, #20]
  18174. 80081da: f023 7278 bic.w r2, r3, #65011712 @ 0x3e00000
  18175. 80081de: 68bb ldr r3, [r7, #8]
  18176. 80081e0: 055b lsls r3, r3, #21
  18177. 80081e2: 4313 orrs r3, r2
  18178. 80081e4: 617b str r3, [r7, #20]
  18179. MODIFY_REG(tmpreg, ETH_MACMDIOAR_RDA, (PHYReg << 16));
  18180. 80081e6: 697b ldr r3, [r7, #20]
  18181. 80081e8: f423 12f8 bic.w r2, r3, #2031616 @ 0x1f0000
  18182. 80081ec: 687b ldr r3, [r7, #4]
  18183. 80081ee: 041b lsls r3, r3, #16
  18184. 80081f0: 4313 orrs r3, r2
  18185. 80081f2: 617b str r3, [r7, #20]
  18186. MODIFY_REG(tmpreg, ETH_MACMDIOAR_MOC, ETH_MACMDIOAR_MOC_WR);
  18187. 80081f4: 697b ldr r3, [r7, #20]
  18188. 80081f6: f023 030c bic.w r3, r3, #12
  18189. 80081fa: f043 0304 orr.w r3, r3, #4
  18190. 80081fe: 617b str r3, [r7, #20]
  18191. SET_BIT(tmpreg, ETH_MACMDIOAR_MB);
  18192. 8008200: 697b ldr r3, [r7, #20]
  18193. 8008202: f043 0301 orr.w r3, r3, #1
  18194. 8008206: 617b str r3, [r7, #20]
  18195. /* Give the value to the MII data register */
  18196. WRITE_REG(ETH->MACMDIODR, (uint16_t)RegValue);
  18197. 8008208: 683b ldr r3, [r7, #0]
  18198. 800820a: b29a uxth r2, r3
  18199. 800820c: 4b10 ldr r3, [pc, #64] @ (8008250 <HAL_ETH_WritePHYRegister+0xa4>)
  18200. 800820e: f8c3 2204 str.w r2, [r3, #516] @ 0x204
  18201. /* Write the result value into the MII Address register */
  18202. WRITE_REG(ETH->MACMDIOAR, tmpreg);
  18203. 8008212: 4a0f ldr r2, [pc, #60] @ (8008250 <HAL_ETH_WritePHYRegister+0xa4>)
  18204. 8008214: 697b ldr r3, [r7, #20]
  18205. 8008216: f8c2 3200 str.w r3, [r2, #512] @ 0x200
  18206. tickstart = HAL_GetTick();
  18207. 800821a: f7fc fcb9 bl 8004b90 <HAL_GetTick>
  18208. 800821e: 6138 str r0, [r7, #16]
  18209. /* Wait for the Busy flag */
  18210. while (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) > 0U)
  18211. 8008220: e009 b.n 8008236 <HAL_ETH_WritePHYRegister+0x8a>
  18212. {
  18213. if (((HAL_GetTick() - tickstart) > ETH_MDIO_BUS_TIMEOUT))
  18214. 8008222: f7fc fcb5 bl 8004b90 <HAL_GetTick>
  18215. 8008226: 4602 mov r2, r0
  18216. 8008228: 693b ldr r3, [r7, #16]
  18217. 800822a: 1ad3 subs r3, r2, r3
  18218. 800822c: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  18219. 8008230: d901 bls.n 8008236 <HAL_ETH_WritePHYRegister+0x8a>
  18220. {
  18221. return HAL_ERROR;
  18222. 8008232: 2301 movs r3, #1
  18223. 8008234: e008 b.n 8008248 <HAL_ETH_WritePHYRegister+0x9c>
  18224. while (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) > 0U)
  18225. 8008236: 68fb ldr r3, [r7, #12]
  18226. 8008238: 681b ldr r3, [r3, #0]
  18227. 800823a: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  18228. 800823e: f003 0301 and.w r3, r3, #1
  18229. 8008242: 2b00 cmp r3, #0
  18230. 8008244: d1ed bne.n 8008222 <HAL_ETH_WritePHYRegister+0x76>
  18231. }
  18232. }
  18233. return HAL_OK;
  18234. 8008246: 2300 movs r3, #0
  18235. }
  18236. 8008248: 4618 mov r0, r3
  18237. 800824a: 3718 adds r7, #24
  18238. 800824c: 46bd mov sp, r7
  18239. 800824e: bd80 pop {r7, pc}
  18240. 8008250: 40028000 .word 0x40028000
  18241. 08008254 <HAL_ETH_GetMACConfig>:
  18242. * @param macconf: pointer to a ETH_MACConfigTypeDef structure that will hold
  18243. * the configuration of the MAC.
  18244. * @retval HAL Status
  18245. */
  18246. HAL_StatusTypeDef HAL_ETH_GetMACConfig(const ETH_HandleTypeDef *heth, ETH_MACConfigTypeDef *macconf)
  18247. {
  18248. 8008254: b480 push {r7}
  18249. 8008256: b083 sub sp, #12
  18250. 8008258: af00 add r7, sp, #0
  18251. 800825a: 6078 str r0, [r7, #4]
  18252. 800825c: 6039 str r1, [r7, #0]
  18253. if (macconf == NULL)
  18254. 800825e: 683b ldr r3, [r7, #0]
  18255. 8008260: 2b00 cmp r3, #0
  18256. 8008262: d101 bne.n 8008268 <HAL_ETH_GetMACConfig+0x14>
  18257. {
  18258. return HAL_ERROR;
  18259. 8008264: 2301 movs r3, #1
  18260. 8008266: e1c3 b.n 80085f0 <HAL_ETH_GetMACConfig+0x39c>
  18261. }
  18262. /* Get MAC parameters */
  18263. macconf->PreambleLength = READ_BIT(heth->Instance->MACCR, ETH_MACCR_PRELEN);
  18264. 8008268: 687b ldr r3, [r7, #4]
  18265. 800826a: 681b ldr r3, [r3, #0]
  18266. 800826c: 681b ldr r3, [r3, #0]
  18267. 800826e: f003 020c and.w r2, r3, #12
  18268. 8008272: 683b ldr r3, [r7, #0]
  18269. 8008274: 62da str r2, [r3, #44] @ 0x2c
  18270. macconf->DeferralCheck = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DC) >> 4) > 0U) ? ENABLE : DISABLE;
  18271. 8008276: 687b ldr r3, [r7, #4]
  18272. 8008278: 681b ldr r3, [r3, #0]
  18273. 800827a: 681b ldr r3, [r3, #0]
  18274. 800827c: f003 0310 and.w r3, r3, #16
  18275. 8008280: 2b00 cmp r3, #0
  18276. 8008282: bf14 ite ne
  18277. 8008284: 2301 movne r3, #1
  18278. 8008286: 2300 moveq r3, #0
  18279. 8008288: b2db uxtb r3, r3
  18280. 800828a: 461a mov r2, r3
  18281. 800828c: 683b ldr r3, [r7, #0]
  18282. 800828e: f883 2028 strb.w r2, [r3, #40] @ 0x28
  18283. macconf->BackOffLimit = READ_BIT(heth->Instance->MACCR, ETH_MACCR_BL);
  18284. 8008292: 687b ldr r3, [r7, #4]
  18285. 8008294: 681b ldr r3, [r3, #0]
  18286. 8008296: 681b ldr r3, [r3, #0]
  18287. 8008298: f003 0260 and.w r2, r3, #96 @ 0x60
  18288. 800829c: 683b ldr r3, [r7, #0]
  18289. 800829e: 625a str r2, [r3, #36] @ 0x24
  18290. macconf->RetryTransmission = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DR) >> 8) == 0U) ? ENABLE : DISABLE;
  18291. 80082a0: 687b ldr r3, [r7, #4]
  18292. 80082a2: 681b ldr r3, [r3, #0]
  18293. 80082a4: 681b ldr r3, [r3, #0]
  18294. 80082a6: f403 7380 and.w r3, r3, #256 @ 0x100
  18295. 80082aa: 2b00 cmp r3, #0
  18296. 80082ac: bf0c ite eq
  18297. 80082ae: 2301 moveq r3, #1
  18298. 80082b0: 2300 movne r3, #0
  18299. 80082b2: b2db uxtb r3, r3
  18300. 80082b4: 461a mov r2, r3
  18301. 80082b6: 683b ldr r3, [r7, #0]
  18302. 80082b8: f883 2020 strb.w r2, [r3, #32]
  18303. macconf->CarrierSenseDuringTransmit = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DCRS) >> 9) > 0U)
  18304. 80082bc: 687b ldr r3, [r7, #4]
  18305. 80082be: 681b ldr r3, [r3, #0]
  18306. 80082c0: 681b ldr r3, [r3, #0]
  18307. 80082c2: f403 7300 and.w r3, r3, #512 @ 0x200
  18308. ? ENABLE : DISABLE;
  18309. 80082c6: 2b00 cmp r3, #0
  18310. 80082c8: bf14 ite ne
  18311. 80082ca: 2301 movne r3, #1
  18312. 80082cc: 2300 moveq r3, #0
  18313. 80082ce: b2db uxtb r3, r3
  18314. 80082d0: 461a mov r2, r3
  18315. macconf->CarrierSenseDuringTransmit = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DCRS) >> 9) > 0U)
  18316. 80082d2: 683b ldr r3, [r7, #0]
  18317. 80082d4: 77da strb r2, [r3, #31]
  18318. macconf->ReceiveOwn = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DO) >> 10) == 0U) ? ENABLE : DISABLE;
  18319. 80082d6: 687b ldr r3, [r7, #4]
  18320. 80082d8: 681b ldr r3, [r3, #0]
  18321. 80082da: 681b ldr r3, [r3, #0]
  18322. 80082dc: f403 6380 and.w r3, r3, #1024 @ 0x400
  18323. 80082e0: 2b00 cmp r3, #0
  18324. 80082e2: bf0c ite eq
  18325. 80082e4: 2301 moveq r3, #1
  18326. 80082e6: 2300 movne r3, #0
  18327. 80082e8: b2db uxtb r3, r3
  18328. 80082ea: 461a mov r2, r3
  18329. 80082ec: 683b ldr r3, [r7, #0]
  18330. 80082ee: 779a strb r2, [r3, #30]
  18331. macconf->CarrierSenseBeforeTransmit = ((READ_BIT(heth->Instance->MACCR,
  18332. 80082f0: 687b ldr r3, [r7, #4]
  18333. 80082f2: 681b ldr r3, [r3, #0]
  18334. 80082f4: 681b ldr r3, [r3, #0]
  18335. ETH_MACCR_ECRSFD) >> 11) > 0U) ? ENABLE : DISABLE;
  18336. 80082f6: f403 6300 and.w r3, r3, #2048 @ 0x800
  18337. 80082fa: 2b00 cmp r3, #0
  18338. 80082fc: bf14 ite ne
  18339. 80082fe: 2301 movne r3, #1
  18340. 8008300: 2300 moveq r3, #0
  18341. 8008302: b2db uxtb r3, r3
  18342. 8008304: 461a mov r2, r3
  18343. macconf->CarrierSenseBeforeTransmit = ((READ_BIT(heth->Instance->MACCR,
  18344. 8008306: 683b ldr r3, [r7, #0]
  18345. 8008308: 775a strb r2, [r3, #29]
  18346. macconf->LoopbackMode = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_LM) >> 12) > 0U) ? ENABLE : DISABLE;
  18347. 800830a: 687b ldr r3, [r7, #4]
  18348. 800830c: 681b ldr r3, [r3, #0]
  18349. 800830e: 681b ldr r3, [r3, #0]
  18350. 8008310: f403 5380 and.w r3, r3, #4096 @ 0x1000
  18351. 8008314: 2b00 cmp r3, #0
  18352. 8008316: bf14 ite ne
  18353. 8008318: 2301 movne r3, #1
  18354. 800831a: 2300 moveq r3, #0
  18355. 800831c: b2db uxtb r3, r3
  18356. 800831e: 461a mov r2, r3
  18357. 8008320: 683b ldr r3, [r7, #0]
  18358. 8008322: 771a strb r2, [r3, #28]
  18359. macconf->DuplexMode = READ_BIT(heth->Instance->MACCR, ETH_MACCR_DM);
  18360. 8008324: 687b ldr r3, [r7, #4]
  18361. 8008326: 681b ldr r3, [r3, #0]
  18362. 8008328: 681b ldr r3, [r3, #0]
  18363. 800832a: f403 5200 and.w r2, r3, #8192 @ 0x2000
  18364. 800832e: 683b ldr r3, [r7, #0]
  18365. 8008330: 619a str r2, [r3, #24]
  18366. macconf->Speed = READ_BIT(heth->Instance->MACCR, ETH_MACCR_FES);
  18367. 8008332: 687b ldr r3, [r7, #4]
  18368. 8008334: 681b ldr r3, [r3, #0]
  18369. 8008336: 681b ldr r3, [r3, #0]
  18370. 8008338: f403 4280 and.w r2, r3, #16384 @ 0x4000
  18371. 800833c: 683b ldr r3, [r7, #0]
  18372. 800833e: 615a str r2, [r3, #20]
  18373. macconf->JumboPacket = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_JE) >> 16) > 0U) ? ENABLE : DISABLE;
  18374. 8008340: 687b ldr r3, [r7, #4]
  18375. 8008342: 681b ldr r3, [r3, #0]
  18376. 8008344: 681b ldr r3, [r3, #0]
  18377. 8008346: f403 3380 and.w r3, r3, #65536 @ 0x10000
  18378. 800834a: 2b00 cmp r3, #0
  18379. 800834c: bf14 ite ne
  18380. 800834e: 2301 movne r3, #1
  18381. 8008350: 2300 moveq r3, #0
  18382. 8008352: b2db uxtb r3, r3
  18383. 8008354: 461a mov r2, r3
  18384. 8008356: 683b ldr r3, [r7, #0]
  18385. 8008358: 749a strb r2, [r3, #18]
  18386. macconf->Jabber = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_JD) >> 17) == 0U) ? ENABLE : DISABLE;
  18387. 800835a: 687b ldr r3, [r7, #4]
  18388. 800835c: 681b ldr r3, [r3, #0]
  18389. 800835e: 681b ldr r3, [r3, #0]
  18390. 8008360: f403 3300 and.w r3, r3, #131072 @ 0x20000
  18391. 8008364: 2b00 cmp r3, #0
  18392. 8008366: bf0c ite eq
  18393. 8008368: 2301 moveq r3, #1
  18394. 800836a: 2300 movne r3, #0
  18395. 800836c: b2db uxtb r3, r3
  18396. 800836e: 461a mov r2, r3
  18397. 8008370: 683b ldr r3, [r7, #0]
  18398. 8008372: 745a strb r2, [r3, #17]
  18399. macconf->Watchdog = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_WD) >> 19) == 0U) ? ENABLE : DISABLE;
  18400. 8008374: 687b ldr r3, [r7, #4]
  18401. 8008376: 681b ldr r3, [r3, #0]
  18402. 8008378: 681b ldr r3, [r3, #0]
  18403. 800837a: f403 2300 and.w r3, r3, #524288 @ 0x80000
  18404. 800837e: 2b00 cmp r3, #0
  18405. 8008380: bf0c ite eq
  18406. 8008382: 2301 moveq r3, #1
  18407. 8008384: 2300 movne r3, #0
  18408. 8008386: b2db uxtb r3, r3
  18409. 8008388: 461a mov r2, r3
  18410. 800838a: 683b ldr r3, [r7, #0]
  18411. 800838c: 741a strb r2, [r3, #16]
  18412. macconf->AutomaticPadCRCStrip = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_ACS) >> 20) > 0U) ? ENABLE : DISABLE;
  18413. 800838e: 687b ldr r3, [r7, #4]
  18414. 8008390: 681b ldr r3, [r3, #0]
  18415. 8008392: 681b ldr r3, [r3, #0]
  18416. 8008394: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  18417. 8008398: 2b00 cmp r3, #0
  18418. 800839a: bf14 ite ne
  18419. 800839c: 2301 movne r3, #1
  18420. 800839e: 2300 moveq r3, #0
  18421. 80083a0: b2db uxtb r3, r3
  18422. 80083a2: 461a mov r2, r3
  18423. 80083a4: 683b ldr r3, [r7, #0]
  18424. 80083a6: 73da strb r2, [r3, #15]
  18425. macconf->CRCStripTypePacket = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_CST) >> 21) > 0U) ? ENABLE : DISABLE;
  18426. 80083a8: 687b ldr r3, [r7, #4]
  18427. 80083aa: 681b ldr r3, [r3, #0]
  18428. 80083ac: 681b ldr r3, [r3, #0]
  18429. 80083ae: f403 1300 and.w r3, r3, #2097152 @ 0x200000
  18430. 80083b2: 2b00 cmp r3, #0
  18431. 80083b4: bf14 ite ne
  18432. 80083b6: 2301 movne r3, #1
  18433. 80083b8: 2300 moveq r3, #0
  18434. 80083ba: b2db uxtb r3, r3
  18435. 80083bc: 461a mov r2, r3
  18436. 80083be: 683b ldr r3, [r7, #0]
  18437. 80083c0: 739a strb r2, [r3, #14]
  18438. macconf->Support2KPacket = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_S2KP) >> 22) > 0U) ? ENABLE : DISABLE;
  18439. 80083c2: 687b ldr r3, [r7, #4]
  18440. 80083c4: 681b ldr r3, [r3, #0]
  18441. 80083c6: 681b ldr r3, [r3, #0]
  18442. 80083c8: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  18443. 80083cc: 2b00 cmp r3, #0
  18444. 80083ce: bf14 ite ne
  18445. 80083d0: 2301 movne r3, #1
  18446. 80083d2: 2300 moveq r3, #0
  18447. 80083d4: b2db uxtb r3, r3
  18448. 80083d6: 461a mov r2, r3
  18449. 80083d8: 683b ldr r3, [r7, #0]
  18450. 80083da: 735a strb r2, [r3, #13]
  18451. macconf->GiantPacketSizeLimitControl = ((READ_BIT(heth->Instance->MACCR,
  18452. 80083dc: 687b ldr r3, [r7, #4]
  18453. 80083de: 681b ldr r3, [r3, #0]
  18454. 80083e0: 681b ldr r3, [r3, #0]
  18455. ETH_MACCR_GPSLCE) >> 23) > 0U) ? ENABLE : DISABLE;
  18456. 80083e2: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  18457. 80083e6: 2b00 cmp r3, #0
  18458. 80083e8: bf14 ite ne
  18459. 80083ea: 2301 movne r3, #1
  18460. 80083ec: 2300 moveq r3, #0
  18461. 80083ee: b2db uxtb r3, r3
  18462. 80083f0: 461a mov r2, r3
  18463. macconf->GiantPacketSizeLimitControl = ((READ_BIT(heth->Instance->MACCR,
  18464. 80083f2: 683b ldr r3, [r7, #0]
  18465. 80083f4: 731a strb r2, [r3, #12]
  18466. macconf->InterPacketGapVal = READ_BIT(heth->Instance->MACCR, ETH_MACCR_IPG);
  18467. 80083f6: 687b ldr r3, [r7, #4]
  18468. 80083f8: 681b ldr r3, [r3, #0]
  18469. 80083fa: 681b ldr r3, [r3, #0]
  18470. 80083fc: f003 62e0 and.w r2, r3, #117440512 @ 0x7000000
  18471. 8008400: 683b ldr r3, [r7, #0]
  18472. 8008402: 609a str r2, [r3, #8]
  18473. macconf->ChecksumOffload = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_IPC) >> 27) > 0U) ? ENABLE : DISABLE;
  18474. 8008404: 687b ldr r3, [r7, #4]
  18475. 8008406: 681b ldr r3, [r3, #0]
  18476. 8008408: 681b ldr r3, [r3, #0]
  18477. 800840a: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  18478. 800840e: 2b00 cmp r3, #0
  18479. 8008410: bf14 ite ne
  18480. 8008412: 2301 movne r3, #1
  18481. 8008414: 2300 moveq r3, #0
  18482. 8008416: b2db uxtb r3, r3
  18483. 8008418: 461a mov r2, r3
  18484. 800841a: 683b ldr r3, [r7, #0]
  18485. 800841c: 711a strb r2, [r3, #4]
  18486. macconf->SourceAddrControl = READ_BIT(heth->Instance->MACCR, ETH_MACCR_SARC);
  18487. 800841e: 687b ldr r3, [r7, #4]
  18488. 8008420: 681b ldr r3, [r3, #0]
  18489. 8008422: 681b ldr r3, [r3, #0]
  18490. 8008424: f003 42e0 and.w r2, r3, #1879048192 @ 0x70000000
  18491. 8008428: 683b ldr r3, [r7, #0]
  18492. 800842a: 601a str r2, [r3, #0]
  18493. macconf->GiantPacketSizeLimit = READ_BIT(heth->Instance->MACECR, ETH_MACECR_GPSL);
  18494. 800842c: 687b ldr r3, [r7, #4]
  18495. 800842e: 681b ldr r3, [r3, #0]
  18496. 8008430: 685b ldr r3, [r3, #4]
  18497. 8008432: f3c3 020d ubfx r2, r3, #0, #14
  18498. 8008436: 683b ldr r3, [r7, #0]
  18499. 8008438: 635a str r2, [r3, #52] @ 0x34
  18500. macconf->CRCCheckingRxPackets = ((READ_BIT(heth->Instance->MACECR, ETH_MACECR_DCRCC) >> 16) == 0U) ? ENABLE : DISABLE;
  18501. 800843a: 687b ldr r3, [r7, #4]
  18502. 800843c: 681b ldr r3, [r3, #0]
  18503. 800843e: 685b ldr r3, [r3, #4]
  18504. 8008440: f403 3380 and.w r3, r3, #65536 @ 0x10000
  18505. 8008444: 2b00 cmp r3, #0
  18506. 8008446: bf0c ite eq
  18507. 8008448: 2301 moveq r3, #1
  18508. 800844a: 2300 movne r3, #0
  18509. 800844c: b2db uxtb r3, r3
  18510. 800844e: 461a mov r2, r3
  18511. 8008450: 683b ldr r3, [r7, #0]
  18512. 8008452: f883 2032 strb.w r2, [r3, #50] @ 0x32
  18513. macconf->SlowProtocolDetect = ((READ_BIT(heth->Instance->MACECR, ETH_MACECR_SPEN) >> 17) > 0U) ? ENABLE : DISABLE;
  18514. 8008456: 687b ldr r3, [r7, #4]
  18515. 8008458: 681b ldr r3, [r3, #0]
  18516. 800845a: 685b ldr r3, [r3, #4]
  18517. 800845c: f403 3300 and.w r3, r3, #131072 @ 0x20000
  18518. 8008460: 2b00 cmp r3, #0
  18519. 8008462: bf14 ite ne
  18520. 8008464: 2301 movne r3, #1
  18521. 8008466: 2300 moveq r3, #0
  18522. 8008468: b2db uxtb r3, r3
  18523. 800846a: 461a mov r2, r3
  18524. 800846c: 683b ldr r3, [r7, #0]
  18525. 800846e: f883 2031 strb.w r2, [r3, #49] @ 0x31
  18526. macconf->UnicastSlowProtocolPacketDetect = ((READ_BIT(heth->Instance->MACECR,
  18527. 8008472: 687b ldr r3, [r7, #4]
  18528. 8008474: 681b ldr r3, [r3, #0]
  18529. 8008476: 685b ldr r3, [r3, #4]
  18530. ETH_MACECR_USP) >> 18) > 0U) ? ENABLE : DISABLE;
  18531. 8008478: f403 2380 and.w r3, r3, #262144 @ 0x40000
  18532. 800847c: 2b00 cmp r3, #0
  18533. 800847e: bf14 ite ne
  18534. 8008480: 2301 movne r3, #1
  18535. 8008482: 2300 moveq r3, #0
  18536. 8008484: b2db uxtb r3, r3
  18537. 8008486: 461a mov r2, r3
  18538. macconf->UnicastSlowProtocolPacketDetect = ((READ_BIT(heth->Instance->MACECR,
  18539. 8008488: 683b ldr r3, [r7, #0]
  18540. 800848a: f883 2030 strb.w r2, [r3, #48] @ 0x30
  18541. macconf->ExtendedInterPacketGap = ((READ_BIT(heth->Instance->MACECR, ETH_MACECR_EIPGEN) >> 24) > 0U)
  18542. 800848e: 687b ldr r3, [r7, #4]
  18543. 8008490: 681b ldr r3, [r3, #0]
  18544. 8008492: 685b ldr r3, [r3, #4]
  18545. 8008494: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  18546. ? ENABLE : DISABLE;
  18547. 8008498: 2b00 cmp r3, #0
  18548. 800849a: bf14 ite ne
  18549. 800849c: 2301 movne r3, #1
  18550. 800849e: 2300 moveq r3, #0
  18551. 80084a0: b2db uxtb r3, r3
  18552. 80084a2: 461a mov r2, r3
  18553. macconf->ExtendedInterPacketGap = ((READ_BIT(heth->Instance->MACECR, ETH_MACECR_EIPGEN) >> 24) > 0U)
  18554. 80084a4: 683b ldr r3, [r7, #0]
  18555. 80084a6: f883 2038 strb.w r2, [r3, #56] @ 0x38
  18556. macconf->ExtendedInterPacketGapVal = READ_BIT(heth->Instance->MACECR, ETH_MACECR_EIPG) >> 25;
  18557. 80084aa: 687b ldr r3, [r7, #4]
  18558. 80084ac: 681b ldr r3, [r3, #0]
  18559. 80084ae: 685b ldr r3, [r3, #4]
  18560. 80084b0: 0e5b lsrs r3, r3, #25
  18561. 80084b2: f003 021f and.w r2, r3, #31
  18562. 80084b6: 683b ldr r3, [r7, #0]
  18563. 80084b8: 63da str r2, [r3, #60] @ 0x3c
  18564. macconf->ProgrammableWatchdog = ((READ_BIT(heth->Instance->MACWTR, ETH_MACWTR_PWE) >> 8) > 0U) ? ENABLE : DISABLE;
  18565. 80084ba: 687b ldr r3, [r7, #4]
  18566. 80084bc: 681b ldr r3, [r3, #0]
  18567. 80084be: 68db ldr r3, [r3, #12]
  18568. 80084c0: f403 7380 and.w r3, r3, #256 @ 0x100
  18569. 80084c4: 2b00 cmp r3, #0
  18570. 80084c6: bf14 ite ne
  18571. 80084c8: 2301 movne r3, #1
  18572. 80084ca: 2300 moveq r3, #0
  18573. 80084cc: b2db uxtb r3, r3
  18574. 80084ce: 461a mov r2, r3
  18575. 80084d0: 683b ldr r3, [r7, #0]
  18576. 80084d2: f883 2040 strb.w r2, [r3, #64] @ 0x40
  18577. macconf->WatchdogTimeout = READ_BIT(heth->Instance->MACWTR, ETH_MACWTR_WTO);
  18578. 80084d6: 687b ldr r3, [r7, #4]
  18579. 80084d8: 681b ldr r3, [r3, #0]
  18580. 80084da: 68db ldr r3, [r3, #12]
  18581. 80084dc: f003 020f and.w r2, r3, #15
  18582. 80084e0: 683b ldr r3, [r7, #0]
  18583. 80084e2: 645a str r2, [r3, #68] @ 0x44
  18584. macconf->TransmitFlowControl = ((READ_BIT(heth->Instance->MACTFCR, ETH_MACTFCR_TFE) >> 1) > 0U) ? ENABLE : DISABLE;
  18585. 80084e4: 687b ldr r3, [r7, #4]
  18586. 80084e6: 681b ldr r3, [r3, #0]
  18587. 80084e8: 6f1b ldr r3, [r3, #112] @ 0x70
  18588. 80084ea: f003 0302 and.w r3, r3, #2
  18589. 80084ee: 2b00 cmp r3, #0
  18590. 80084f0: bf14 ite ne
  18591. 80084f2: 2301 movne r3, #1
  18592. 80084f4: 2300 moveq r3, #0
  18593. 80084f6: b2db uxtb r3, r3
  18594. 80084f8: 461a mov r2, r3
  18595. 80084fa: 683b ldr r3, [r7, #0]
  18596. 80084fc: f883 2054 strb.w r2, [r3, #84] @ 0x54
  18597. macconf->ZeroQuantaPause = ((READ_BIT(heth->Instance->MACTFCR, ETH_MACTFCR_DZPQ) >> 7) == 0U) ? ENABLE : DISABLE;
  18598. 8008500: 687b ldr r3, [r7, #4]
  18599. 8008502: 681b ldr r3, [r3, #0]
  18600. 8008504: 6f1b ldr r3, [r3, #112] @ 0x70
  18601. 8008506: f003 0380 and.w r3, r3, #128 @ 0x80
  18602. 800850a: 2b00 cmp r3, #0
  18603. 800850c: bf0c ite eq
  18604. 800850e: 2301 moveq r3, #1
  18605. 8008510: 2300 movne r3, #0
  18606. 8008512: b2db uxtb r3, r3
  18607. 8008514: 461a mov r2, r3
  18608. 8008516: 683b ldr r3, [r7, #0]
  18609. 8008518: f883 204c strb.w r2, [r3, #76] @ 0x4c
  18610. macconf->PauseLowThreshold = READ_BIT(heth->Instance->MACTFCR, ETH_MACTFCR_PLT);
  18611. 800851c: 687b ldr r3, [r7, #4]
  18612. 800851e: 681b ldr r3, [r3, #0]
  18613. 8008520: 6f1b ldr r3, [r3, #112] @ 0x70
  18614. 8008522: f003 0270 and.w r2, r3, #112 @ 0x70
  18615. 8008526: 683b ldr r3, [r7, #0]
  18616. 8008528: 651a str r2, [r3, #80] @ 0x50
  18617. macconf->PauseTime = (READ_BIT(heth->Instance->MACTFCR, ETH_MACTFCR_PT) >> 16);
  18618. 800852a: 687b ldr r3, [r7, #4]
  18619. 800852c: 681b ldr r3, [r3, #0]
  18620. 800852e: 6f1b ldr r3, [r3, #112] @ 0x70
  18621. 8008530: 0c1b lsrs r3, r3, #16
  18622. 8008532: b29a uxth r2, r3
  18623. 8008534: 683b ldr r3, [r7, #0]
  18624. 8008536: 649a str r2, [r3, #72] @ 0x48
  18625. macconf->ReceiveFlowControl = (READ_BIT(heth->Instance->MACRFCR, ETH_MACRFCR_RFE) > 0U) ? ENABLE : DISABLE;
  18626. 8008538: 687b ldr r3, [r7, #4]
  18627. 800853a: 681b ldr r3, [r3, #0]
  18628. 800853c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  18629. 8008540: f003 0301 and.w r3, r3, #1
  18630. 8008544: 2b00 cmp r3, #0
  18631. 8008546: bf14 ite ne
  18632. 8008548: 2301 movne r3, #1
  18633. 800854a: 2300 moveq r3, #0
  18634. 800854c: b2db uxtb r3, r3
  18635. 800854e: 461a mov r2, r3
  18636. 8008550: 683b ldr r3, [r7, #0]
  18637. 8008552: f883 2056 strb.w r2, [r3, #86] @ 0x56
  18638. macconf->UnicastPausePacketDetect = ((READ_BIT(heth->Instance->MACRFCR, ETH_MACRFCR_UP) >> 1) > 0U)
  18639. 8008556: 687b ldr r3, [r7, #4]
  18640. 8008558: 681b ldr r3, [r3, #0]
  18641. 800855a: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  18642. 800855e: f003 0302 and.w r3, r3, #2
  18643. ? ENABLE : DISABLE;
  18644. 8008562: 2b00 cmp r3, #0
  18645. 8008564: bf14 ite ne
  18646. 8008566: 2301 movne r3, #1
  18647. 8008568: 2300 moveq r3, #0
  18648. 800856a: b2db uxtb r3, r3
  18649. 800856c: 461a mov r2, r3
  18650. macconf->UnicastPausePacketDetect = ((READ_BIT(heth->Instance->MACRFCR, ETH_MACRFCR_UP) >> 1) > 0U)
  18651. 800856e: 683b ldr r3, [r7, #0]
  18652. 8008570: f883 2055 strb.w r2, [r3, #85] @ 0x55
  18653. macconf->TransmitQueueMode = READ_BIT(heth->Instance->MTLTQOMR, (ETH_MTLTQOMR_TTC | ETH_MTLTQOMR_TSF));
  18654. 8008574: 687b ldr r3, [r7, #4]
  18655. 8008576: 681b ldr r3, [r3, #0]
  18656. 8008578: f8d3 3d00 ldr.w r3, [r3, #3328] @ 0xd00
  18657. 800857c: f003 0272 and.w r2, r3, #114 @ 0x72
  18658. 8008580: 683b ldr r3, [r7, #0]
  18659. 8008582: 659a str r2, [r3, #88] @ 0x58
  18660. macconf->ReceiveQueueMode = READ_BIT(heth->Instance->MTLRQOMR, (ETH_MTLRQOMR_RTC | ETH_MTLRQOMR_RSF));
  18661. 8008584: 687b ldr r3, [r7, #4]
  18662. 8008586: 681b ldr r3, [r3, #0]
  18663. 8008588: f8d3 3d30 ldr.w r3, [r3, #3376] @ 0xd30
  18664. 800858c: f003 0223 and.w r2, r3, #35 @ 0x23
  18665. 8008590: 683b ldr r3, [r7, #0]
  18666. 8008592: 65da str r2, [r3, #92] @ 0x5c
  18667. macconf->ForwardRxUndersizedGoodPacket = ((READ_BIT(heth->Instance->MTLRQOMR,
  18668. 8008594: 687b ldr r3, [r7, #4]
  18669. 8008596: 681b ldr r3, [r3, #0]
  18670. 8008598: f8d3 3d30 ldr.w r3, [r3, #3376] @ 0xd30
  18671. ETH_MTLRQOMR_FUP) >> 3) > 0U) ? ENABLE : DISABLE;
  18672. 800859c: f003 0308 and.w r3, r3, #8
  18673. 80085a0: 2b00 cmp r3, #0
  18674. 80085a2: bf14 ite ne
  18675. 80085a4: 2301 movne r3, #1
  18676. 80085a6: 2300 moveq r3, #0
  18677. 80085a8: b2db uxtb r3, r3
  18678. 80085aa: 461a mov r2, r3
  18679. macconf->ForwardRxUndersizedGoodPacket = ((READ_BIT(heth->Instance->MTLRQOMR,
  18680. 80085ac: 683b ldr r3, [r7, #0]
  18681. 80085ae: f883 2062 strb.w r2, [r3, #98] @ 0x62
  18682. macconf->ForwardRxErrorPacket = ((READ_BIT(heth->Instance->MTLRQOMR, ETH_MTLRQOMR_FEP) >> 4) > 0U) ? ENABLE : DISABLE;
  18683. 80085b2: 687b ldr r3, [r7, #4]
  18684. 80085b4: 681b ldr r3, [r3, #0]
  18685. 80085b6: f8d3 3d30 ldr.w r3, [r3, #3376] @ 0xd30
  18686. 80085ba: f003 0310 and.w r3, r3, #16
  18687. 80085be: 2b00 cmp r3, #0
  18688. 80085c0: bf14 ite ne
  18689. 80085c2: 2301 movne r3, #1
  18690. 80085c4: 2300 moveq r3, #0
  18691. 80085c6: b2db uxtb r3, r3
  18692. 80085c8: 461a mov r2, r3
  18693. 80085ca: 683b ldr r3, [r7, #0]
  18694. 80085cc: f883 2061 strb.w r2, [r3, #97] @ 0x61
  18695. macconf->DropTCPIPChecksumErrorPacket = ((READ_BIT(heth->Instance->MTLRQOMR,
  18696. 80085d0: 687b ldr r3, [r7, #4]
  18697. 80085d2: 681b ldr r3, [r3, #0]
  18698. 80085d4: f8d3 3d30 ldr.w r3, [r3, #3376] @ 0xd30
  18699. ETH_MTLRQOMR_DISTCPEF) >> 6) == 0U) ? ENABLE : DISABLE;
  18700. 80085d8: f003 0340 and.w r3, r3, #64 @ 0x40
  18701. 80085dc: 2b00 cmp r3, #0
  18702. 80085de: bf0c ite eq
  18703. 80085e0: 2301 moveq r3, #1
  18704. 80085e2: 2300 movne r3, #0
  18705. 80085e4: b2db uxtb r3, r3
  18706. 80085e6: 461a mov r2, r3
  18707. macconf->DropTCPIPChecksumErrorPacket = ((READ_BIT(heth->Instance->MTLRQOMR,
  18708. 80085e8: 683b ldr r3, [r7, #0]
  18709. 80085ea: f883 2060 strb.w r2, [r3, #96] @ 0x60
  18710. return HAL_OK;
  18711. 80085ee: 2300 movs r3, #0
  18712. }
  18713. 80085f0: 4618 mov r0, r3
  18714. 80085f2: 370c adds r7, #12
  18715. 80085f4: 46bd mov sp, r7
  18716. 80085f6: f85d 7b04 ldr.w r7, [sp], #4
  18717. 80085fa: 4770 bx lr
  18718. 080085fc <HAL_ETH_SetMACConfig>:
  18719. * @param macconf: pointer to a ETH_MACConfigTypeDef structure that contains
  18720. * the configuration of the MAC.
  18721. * @retval HAL status
  18722. */
  18723. HAL_StatusTypeDef HAL_ETH_SetMACConfig(ETH_HandleTypeDef *heth, ETH_MACConfigTypeDef *macconf)
  18724. {
  18725. 80085fc: b580 push {r7, lr}
  18726. 80085fe: b082 sub sp, #8
  18727. 8008600: af00 add r7, sp, #0
  18728. 8008602: 6078 str r0, [r7, #4]
  18729. 8008604: 6039 str r1, [r7, #0]
  18730. if (macconf == NULL)
  18731. 8008606: 683b ldr r3, [r7, #0]
  18732. 8008608: 2b00 cmp r3, #0
  18733. 800860a: d101 bne.n 8008610 <HAL_ETH_SetMACConfig+0x14>
  18734. {
  18735. return HAL_ERROR;
  18736. 800860c: 2301 movs r3, #1
  18737. 800860e: e00b b.n 8008628 <HAL_ETH_SetMACConfig+0x2c>
  18738. }
  18739. if (heth->gState == HAL_ETH_STATE_READY)
  18740. 8008610: 687b ldr r3, [r7, #4]
  18741. 8008612: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  18742. 8008616: 2b10 cmp r3, #16
  18743. 8008618: d105 bne.n 8008626 <HAL_ETH_SetMACConfig+0x2a>
  18744. {
  18745. ETH_SetMACConfig(heth, macconf);
  18746. 800861a: 6839 ldr r1, [r7, #0]
  18747. 800861c: 6878 ldr r0, [r7, #4]
  18748. 800861e: f000 f865 bl 80086ec <ETH_SetMACConfig>
  18749. return HAL_OK;
  18750. 8008622: 2300 movs r3, #0
  18751. 8008624: e000 b.n 8008628 <HAL_ETH_SetMACConfig+0x2c>
  18752. }
  18753. else
  18754. {
  18755. return HAL_ERROR;
  18756. 8008626: 2301 movs r3, #1
  18757. }
  18758. }
  18759. 8008628: 4618 mov r0, r3
  18760. 800862a: 3708 adds r7, #8
  18761. 800862c: 46bd mov sp, r7
  18762. 800862e: bd80 pop {r7, pc}
  18763. 08008630 <HAL_ETH_SetMDIOClockRange>:
  18764. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  18765. * the configuration information for ETHERNET module
  18766. * @retval None
  18767. */
  18768. void HAL_ETH_SetMDIOClockRange(ETH_HandleTypeDef *heth)
  18769. {
  18770. 8008630: b580 push {r7, lr}
  18771. 8008632: b084 sub sp, #16
  18772. 8008634: af00 add r7, sp, #0
  18773. 8008636: 6078 str r0, [r7, #4]
  18774. uint32_t hclk;
  18775. uint32_t tmpreg;
  18776. /* Get the ETHERNET MACMDIOAR value */
  18777. tmpreg = (heth->Instance)->MACMDIOAR;
  18778. 8008638: 687b ldr r3, [r7, #4]
  18779. 800863a: 681b ldr r3, [r3, #0]
  18780. 800863c: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  18781. 8008640: 60fb str r3, [r7, #12]
  18782. /* Clear CSR Clock Range bits */
  18783. tmpreg &= ~ETH_MACMDIOAR_CR;
  18784. 8008642: 68fb ldr r3, [r7, #12]
  18785. 8008644: f423 6370 bic.w r3, r3, #3840 @ 0xf00
  18786. 8008648: 60fb str r3, [r7, #12]
  18787. /* Get hclk frequency value */
  18788. hclk = HAL_RCC_GetHCLKFreq();
  18789. 800864a: f001 ff5f bl 800a50c <HAL_RCC_GetHCLKFreq>
  18790. 800864e: 60b8 str r0, [r7, #8]
  18791. /* Set CR bits depending on hclk value */
  18792. if (hclk < 35000000U)
  18793. 8008650: 68bb ldr r3, [r7, #8]
  18794. 8008652: 4a1a ldr r2, [pc, #104] @ (80086bc <HAL_ETH_SetMDIOClockRange+0x8c>)
  18795. 8008654: 4293 cmp r3, r2
  18796. 8008656: d804 bhi.n 8008662 <HAL_ETH_SetMDIOClockRange+0x32>
  18797. {
  18798. /* CSR Clock Range between 0-35 MHz */
  18799. tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV16;
  18800. 8008658: 68fb ldr r3, [r7, #12]
  18801. 800865a: f443 7300 orr.w r3, r3, #512 @ 0x200
  18802. 800865e: 60fb str r3, [r7, #12]
  18803. 8008660: e022 b.n 80086a8 <HAL_ETH_SetMDIOClockRange+0x78>
  18804. }
  18805. else if (hclk < 60000000U)
  18806. 8008662: 68bb ldr r3, [r7, #8]
  18807. 8008664: 4a16 ldr r2, [pc, #88] @ (80086c0 <HAL_ETH_SetMDIOClockRange+0x90>)
  18808. 8008666: 4293 cmp r3, r2
  18809. 8008668: d204 bcs.n 8008674 <HAL_ETH_SetMDIOClockRange+0x44>
  18810. {
  18811. /* CSR Clock Range between 35-60 MHz */
  18812. tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV26;
  18813. 800866a: 68fb ldr r3, [r7, #12]
  18814. 800866c: f443 7340 orr.w r3, r3, #768 @ 0x300
  18815. 8008670: 60fb str r3, [r7, #12]
  18816. 8008672: e019 b.n 80086a8 <HAL_ETH_SetMDIOClockRange+0x78>
  18817. }
  18818. else if (hclk < 100000000U)
  18819. 8008674: 68bb ldr r3, [r7, #8]
  18820. 8008676: 4a13 ldr r2, [pc, #76] @ (80086c4 <HAL_ETH_SetMDIOClockRange+0x94>)
  18821. 8008678: 4293 cmp r3, r2
  18822. 800867a: d915 bls.n 80086a8 <HAL_ETH_SetMDIOClockRange+0x78>
  18823. {
  18824. /* CSR Clock Range between 60-100 MHz */
  18825. tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV42;
  18826. }
  18827. else if (hclk < 150000000U)
  18828. 800867c: 68bb ldr r3, [r7, #8]
  18829. 800867e: 4a12 ldr r2, [pc, #72] @ (80086c8 <HAL_ETH_SetMDIOClockRange+0x98>)
  18830. 8008680: 4293 cmp r3, r2
  18831. 8008682: d804 bhi.n 800868e <HAL_ETH_SetMDIOClockRange+0x5e>
  18832. {
  18833. /* CSR Clock Range between 100-150 MHz */
  18834. tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV62;
  18835. 8008684: 68fb ldr r3, [r7, #12]
  18836. 8008686: f443 7380 orr.w r3, r3, #256 @ 0x100
  18837. 800868a: 60fb str r3, [r7, #12]
  18838. 800868c: e00c b.n 80086a8 <HAL_ETH_SetMDIOClockRange+0x78>
  18839. }
  18840. else if (hclk < 250000000U)
  18841. 800868e: 68bb ldr r3, [r7, #8]
  18842. 8008690: 4a0e ldr r2, [pc, #56] @ (80086cc <HAL_ETH_SetMDIOClockRange+0x9c>)
  18843. 8008692: 4293 cmp r3, r2
  18844. 8008694: d804 bhi.n 80086a0 <HAL_ETH_SetMDIOClockRange+0x70>
  18845. {
  18846. /* CSR Clock Range between 150-250 MHz */
  18847. tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV102;
  18848. 8008696: 68fb ldr r3, [r7, #12]
  18849. 8008698: f443 6380 orr.w r3, r3, #1024 @ 0x400
  18850. 800869c: 60fb str r3, [r7, #12]
  18851. 800869e: e003 b.n 80086a8 <HAL_ETH_SetMDIOClockRange+0x78>
  18852. }
  18853. else /* (hclk >= 250000000U) */
  18854. {
  18855. /* CSR Clock >= 250 MHz */
  18856. tmpreg |= (uint32_t)(ETH_MACMDIOAR_CR_DIV124);
  18857. 80086a0: 68fb ldr r3, [r7, #12]
  18858. 80086a2: f443 63a0 orr.w r3, r3, #1280 @ 0x500
  18859. 80086a6: 60fb str r3, [r7, #12]
  18860. }
  18861. /* Configure the CSR Clock Range */
  18862. (heth->Instance)->MACMDIOAR = (uint32_t)tmpreg;
  18863. 80086a8: 687b ldr r3, [r7, #4]
  18864. 80086aa: 681b ldr r3, [r3, #0]
  18865. 80086ac: 68fa ldr r2, [r7, #12]
  18866. 80086ae: f8c3 2200 str.w r2, [r3, #512] @ 0x200
  18867. }
  18868. 80086b2: bf00 nop
  18869. 80086b4: 3710 adds r7, #16
  18870. 80086b6: 46bd mov sp, r7
  18871. 80086b8: bd80 pop {r7, pc}
  18872. 80086ba: bf00 nop
  18873. 80086bc: 02160ebf .word 0x02160ebf
  18874. 80086c0: 03938700 .word 0x03938700
  18875. 80086c4: 05f5e0ff .word 0x05f5e0ff
  18876. 80086c8: 08f0d17f .word 0x08f0d17f
  18877. 80086cc: 0ee6b27f .word 0x0ee6b27f
  18878. 080086d0 <HAL_ETH_GetDMAError>:
  18879. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  18880. * the configuration information for ETHERNET module
  18881. * @retval ETH DMA Error Code
  18882. */
  18883. uint32_t HAL_ETH_GetDMAError(const ETH_HandleTypeDef *heth)
  18884. {
  18885. 80086d0: b480 push {r7}
  18886. 80086d2: b083 sub sp, #12
  18887. 80086d4: af00 add r7, sp, #0
  18888. 80086d6: 6078 str r0, [r7, #4]
  18889. return heth->DMAErrorCode;
  18890. 80086d8: 687b ldr r3, [r7, #4]
  18891. 80086da: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  18892. }
  18893. 80086de: 4618 mov r0, r3
  18894. 80086e0: 370c adds r7, #12
  18895. 80086e2: 46bd mov sp, r7
  18896. 80086e4: f85d 7b04 ldr.w r7, [sp], #4
  18897. 80086e8: 4770 bx lr
  18898. ...
  18899. 080086ec <ETH_SetMACConfig>:
  18900. /** @addtogroup ETH_Private_Functions ETH Private Functions
  18901. * @{
  18902. */
  18903. static void ETH_SetMACConfig(ETH_HandleTypeDef *heth, const ETH_MACConfigTypeDef *macconf)
  18904. {
  18905. 80086ec: b480 push {r7}
  18906. 80086ee: b085 sub sp, #20
  18907. 80086f0: af00 add r7, sp, #0
  18908. 80086f2: 6078 str r0, [r7, #4]
  18909. 80086f4: 6039 str r1, [r7, #0]
  18910. uint32_t macregval;
  18911. /*------------------------ MACCR Configuration --------------------*/
  18912. macregval = (macconf->InterPacketGapVal |
  18913. 80086f6: 683b ldr r3, [r7, #0]
  18914. 80086f8: 689a ldr r2, [r3, #8]
  18915. macconf->SourceAddrControl |
  18916. 80086fa: 683b ldr r3, [r7, #0]
  18917. 80086fc: 681b ldr r3, [r3, #0]
  18918. macregval = (macconf->InterPacketGapVal |
  18919. 80086fe: 431a orrs r2, r3
  18920. ((uint32_t)macconf->ChecksumOffload << 27) |
  18921. 8008700: 683b ldr r3, [r7, #0]
  18922. 8008702: 791b ldrb r3, [r3, #4]
  18923. 8008704: 06db lsls r3, r3, #27
  18924. macconf->SourceAddrControl |
  18925. 8008706: 431a orrs r2, r3
  18926. ((uint32_t)macconf->GiantPacketSizeLimitControl << 23) |
  18927. 8008708: 683b ldr r3, [r7, #0]
  18928. 800870a: 7b1b ldrb r3, [r3, #12]
  18929. 800870c: 05db lsls r3, r3, #23
  18930. ((uint32_t)macconf->ChecksumOffload << 27) |
  18931. 800870e: 431a orrs r2, r3
  18932. ((uint32_t)macconf->Support2KPacket << 22) |
  18933. 8008710: 683b ldr r3, [r7, #0]
  18934. 8008712: 7b5b ldrb r3, [r3, #13]
  18935. 8008714: 059b lsls r3, r3, #22
  18936. ((uint32_t)macconf->GiantPacketSizeLimitControl << 23) |
  18937. 8008716: 431a orrs r2, r3
  18938. ((uint32_t)macconf->CRCStripTypePacket << 21) |
  18939. 8008718: 683b ldr r3, [r7, #0]
  18940. 800871a: 7b9b ldrb r3, [r3, #14]
  18941. 800871c: 055b lsls r3, r3, #21
  18942. ((uint32_t)macconf->Support2KPacket << 22) |
  18943. 800871e: 431a orrs r2, r3
  18944. ((uint32_t)macconf->AutomaticPadCRCStrip << 20) |
  18945. 8008720: 683b ldr r3, [r7, #0]
  18946. 8008722: 7bdb ldrb r3, [r3, #15]
  18947. 8008724: 051b lsls r3, r3, #20
  18948. ((uint32_t)macconf->CRCStripTypePacket << 21) |
  18949. 8008726: 4313 orrs r3, r2
  18950. ((uint32_t)((macconf->Watchdog == DISABLE) ? 1U : 0U) << 19) |
  18951. 8008728: 683a ldr r2, [r7, #0]
  18952. 800872a: 7c12 ldrb r2, [r2, #16]
  18953. 800872c: 2a00 cmp r2, #0
  18954. 800872e: d102 bne.n 8008736 <ETH_SetMACConfig+0x4a>
  18955. 8008730: f44f 2200 mov.w r2, #524288 @ 0x80000
  18956. 8008734: e000 b.n 8008738 <ETH_SetMACConfig+0x4c>
  18957. 8008736: 2200 movs r2, #0
  18958. ((uint32_t)macconf->AutomaticPadCRCStrip << 20) |
  18959. 8008738: 4313 orrs r3, r2
  18960. ((uint32_t)((macconf->Jabber == DISABLE) ? 1U : 0U) << 17) |
  18961. 800873a: 683a ldr r2, [r7, #0]
  18962. 800873c: 7c52 ldrb r2, [r2, #17]
  18963. 800873e: 2a00 cmp r2, #0
  18964. 8008740: d102 bne.n 8008748 <ETH_SetMACConfig+0x5c>
  18965. 8008742: f44f 3200 mov.w r2, #131072 @ 0x20000
  18966. 8008746: e000 b.n 800874a <ETH_SetMACConfig+0x5e>
  18967. 8008748: 2200 movs r2, #0
  18968. ((uint32_t)((macconf->Watchdog == DISABLE) ? 1U : 0U) << 19) |
  18969. 800874a: 431a orrs r2, r3
  18970. ((uint32_t)macconf->JumboPacket << 16) |
  18971. 800874c: 683b ldr r3, [r7, #0]
  18972. 800874e: 7c9b ldrb r3, [r3, #18]
  18973. 8008750: 041b lsls r3, r3, #16
  18974. ((uint32_t)((macconf->Jabber == DISABLE) ? 1U : 0U) << 17) |
  18975. 8008752: 431a orrs r2, r3
  18976. macconf->Speed |
  18977. 8008754: 683b ldr r3, [r7, #0]
  18978. 8008756: 695b ldr r3, [r3, #20]
  18979. ((uint32_t)macconf->JumboPacket << 16) |
  18980. 8008758: 431a orrs r2, r3
  18981. macconf->DuplexMode |
  18982. 800875a: 683b ldr r3, [r7, #0]
  18983. 800875c: 699b ldr r3, [r3, #24]
  18984. macconf->Speed |
  18985. 800875e: 431a orrs r2, r3
  18986. ((uint32_t)macconf->LoopbackMode << 12) |
  18987. 8008760: 683b ldr r3, [r7, #0]
  18988. 8008762: 7f1b ldrb r3, [r3, #28]
  18989. 8008764: 031b lsls r3, r3, #12
  18990. macconf->DuplexMode |
  18991. 8008766: 431a orrs r2, r3
  18992. ((uint32_t)macconf->CarrierSenseBeforeTransmit << 11) |
  18993. 8008768: 683b ldr r3, [r7, #0]
  18994. 800876a: 7f5b ldrb r3, [r3, #29]
  18995. 800876c: 02db lsls r3, r3, #11
  18996. ((uint32_t)macconf->LoopbackMode << 12) |
  18997. 800876e: 4313 orrs r3, r2
  18998. ((uint32_t)((macconf->ReceiveOwn == DISABLE) ? 1U : 0U) << 10) |
  18999. 8008770: 683a ldr r2, [r7, #0]
  19000. 8008772: 7f92 ldrb r2, [r2, #30]
  19001. 8008774: 2a00 cmp r2, #0
  19002. 8008776: d102 bne.n 800877e <ETH_SetMACConfig+0x92>
  19003. 8008778: f44f 6280 mov.w r2, #1024 @ 0x400
  19004. 800877c: e000 b.n 8008780 <ETH_SetMACConfig+0x94>
  19005. 800877e: 2200 movs r2, #0
  19006. ((uint32_t)macconf->CarrierSenseBeforeTransmit << 11) |
  19007. 8008780: 431a orrs r2, r3
  19008. ((uint32_t)macconf->CarrierSenseDuringTransmit << 9) |
  19009. 8008782: 683b ldr r3, [r7, #0]
  19010. 8008784: 7fdb ldrb r3, [r3, #31]
  19011. 8008786: 025b lsls r3, r3, #9
  19012. ((uint32_t)((macconf->ReceiveOwn == DISABLE) ? 1U : 0U) << 10) |
  19013. 8008788: 4313 orrs r3, r2
  19014. ((uint32_t)((macconf->RetryTransmission == DISABLE) ? 1U : 0U) << 8) |
  19015. 800878a: 683a ldr r2, [r7, #0]
  19016. 800878c: f892 2020 ldrb.w r2, [r2, #32]
  19017. 8008790: 2a00 cmp r2, #0
  19018. 8008792: d102 bne.n 800879a <ETH_SetMACConfig+0xae>
  19019. 8008794: f44f 7280 mov.w r2, #256 @ 0x100
  19020. 8008798: e000 b.n 800879c <ETH_SetMACConfig+0xb0>
  19021. 800879a: 2200 movs r2, #0
  19022. ((uint32_t)macconf->CarrierSenseDuringTransmit << 9) |
  19023. 800879c: 431a orrs r2, r3
  19024. macconf->BackOffLimit |
  19025. 800879e: 683b ldr r3, [r7, #0]
  19026. 80087a0: 6a5b ldr r3, [r3, #36] @ 0x24
  19027. ((uint32_t)((macconf->RetryTransmission == DISABLE) ? 1U : 0U) << 8) |
  19028. 80087a2: 431a orrs r2, r3
  19029. ((uint32_t)macconf->DeferralCheck << 4) |
  19030. 80087a4: 683b ldr r3, [r7, #0]
  19031. 80087a6: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  19032. 80087aa: 011b lsls r3, r3, #4
  19033. macconf->BackOffLimit |
  19034. 80087ac: 431a orrs r2, r3
  19035. macconf->PreambleLength);
  19036. 80087ae: 683b ldr r3, [r7, #0]
  19037. 80087b0: 6adb ldr r3, [r3, #44] @ 0x2c
  19038. macregval = (macconf->InterPacketGapVal |
  19039. 80087b2: 4313 orrs r3, r2
  19040. 80087b4: 60fb str r3, [r7, #12]
  19041. /* Write to MACCR */
  19042. MODIFY_REG(heth->Instance->MACCR, ETH_MACCR_MASK, macregval);
  19043. 80087b6: 687b ldr r3, [r7, #4]
  19044. 80087b8: 681b ldr r3, [r3, #0]
  19045. 80087ba: 681a ldr r2, [r3, #0]
  19046. 80087bc: 4b56 ldr r3, [pc, #344] @ (8008918 <ETH_SetMACConfig+0x22c>)
  19047. 80087be: 4013 ands r3, r2
  19048. 80087c0: 687a ldr r2, [r7, #4]
  19049. 80087c2: 6812 ldr r2, [r2, #0]
  19050. 80087c4: 68f9 ldr r1, [r7, #12]
  19051. 80087c6: 430b orrs r3, r1
  19052. 80087c8: 6013 str r3, [r2, #0]
  19053. /*------------------------ MACECR Configuration --------------------*/
  19054. macregval = ((macconf->ExtendedInterPacketGapVal << 25) |
  19055. 80087ca: 683b ldr r3, [r7, #0]
  19056. 80087cc: 6bdb ldr r3, [r3, #60] @ 0x3c
  19057. 80087ce: 065a lsls r2, r3, #25
  19058. ((uint32_t)macconf->ExtendedInterPacketGap << 24) |
  19059. 80087d0: 683b ldr r3, [r7, #0]
  19060. 80087d2: f893 3038 ldrb.w r3, [r3, #56] @ 0x38
  19061. 80087d6: 061b lsls r3, r3, #24
  19062. macregval = ((macconf->ExtendedInterPacketGapVal << 25) |
  19063. 80087d8: 431a orrs r2, r3
  19064. ((uint32_t)macconf->UnicastSlowProtocolPacketDetect << 18) |
  19065. 80087da: 683b ldr r3, [r7, #0]
  19066. 80087dc: f893 3030 ldrb.w r3, [r3, #48] @ 0x30
  19067. 80087e0: 049b lsls r3, r3, #18
  19068. ((uint32_t)macconf->ExtendedInterPacketGap << 24) |
  19069. 80087e2: 431a orrs r2, r3
  19070. ((uint32_t)macconf->SlowProtocolDetect << 17) |
  19071. 80087e4: 683b ldr r3, [r7, #0]
  19072. 80087e6: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  19073. 80087ea: 045b lsls r3, r3, #17
  19074. ((uint32_t)macconf->UnicastSlowProtocolPacketDetect << 18) |
  19075. 80087ec: 4313 orrs r3, r2
  19076. ((uint32_t)((macconf->CRCCheckingRxPackets == DISABLE) ? 1U : 0U) << 16) |
  19077. 80087ee: 683a ldr r2, [r7, #0]
  19078. 80087f0: f892 2032 ldrb.w r2, [r2, #50] @ 0x32
  19079. 80087f4: 2a00 cmp r2, #0
  19080. 80087f6: d102 bne.n 80087fe <ETH_SetMACConfig+0x112>
  19081. 80087f8: f44f 3280 mov.w r2, #65536 @ 0x10000
  19082. 80087fc: e000 b.n 8008800 <ETH_SetMACConfig+0x114>
  19083. 80087fe: 2200 movs r2, #0
  19084. ((uint32_t)macconf->SlowProtocolDetect << 17) |
  19085. 8008800: 431a orrs r2, r3
  19086. macconf->GiantPacketSizeLimit);
  19087. 8008802: 683b ldr r3, [r7, #0]
  19088. 8008804: 6b5b ldr r3, [r3, #52] @ 0x34
  19089. macregval = ((macconf->ExtendedInterPacketGapVal << 25) |
  19090. 8008806: 4313 orrs r3, r2
  19091. 8008808: 60fb str r3, [r7, #12]
  19092. /* Write to MACECR */
  19093. MODIFY_REG(heth->Instance->MACECR, ETH_MACECR_MASK, macregval);
  19094. 800880a: 687b ldr r3, [r7, #4]
  19095. 800880c: 681b ldr r3, [r3, #0]
  19096. 800880e: 685a ldr r2, [r3, #4]
  19097. 8008810: 4b42 ldr r3, [pc, #264] @ (800891c <ETH_SetMACConfig+0x230>)
  19098. 8008812: 4013 ands r3, r2
  19099. 8008814: 687a ldr r2, [r7, #4]
  19100. 8008816: 6812 ldr r2, [r2, #0]
  19101. 8008818: 68f9 ldr r1, [r7, #12]
  19102. 800881a: 430b orrs r3, r1
  19103. 800881c: 6053 str r3, [r2, #4]
  19104. /*------------------------ MACWTR Configuration --------------------*/
  19105. macregval = (((uint32_t)macconf->ProgrammableWatchdog << 8) |
  19106. 800881e: 683b ldr r3, [r7, #0]
  19107. 8008820: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  19108. 8008824: 021a lsls r2, r3, #8
  19109. macconf->WatchdogTimeout);
  19110. 8008826: 683b ldr r3, [r7, #0]
  19111. 8008828: 6c5b ldr r3, [r3, #68] @ 0x44
  19112. macregval = (((uint32_t)macconf->ProgrammableWatchdog << 8) |
  19113. 800882a: 4313 orrs r3, r2
  19114. 800882c: 60fb str r3, [r7, #12]
  19115. /* Write to MACWTR */
  19116. MODIFY_REG(heth->Instance->MACWTR, ETH_MACWTR_MASK, macregval);
  19117. 800882e: 687b ldr r3, [r7, #4]
  19118. 8008830: 681b ldr r3, [r3, #0]
  19119. 8008832: 68da ldr r2, [r3, #12]
  19120. 8008834: 4b3a ldr r3, [pc, #232] @ (8008920 <ETH_SetMACConfig+0x234>)
  19121. 8008836: 4013 ands r3, r2
  19122. 8008838: 687a ldr r2, [r7, #4]
  19123. 800883a: 6812 ldr r2, [r2, #0]
  19124. 800883c: 68f9 ldr r1, [r7, #12]
  19125. 800883e: 430b orrs r3, r1
  19126. 8008840: 60d3 str r3, [r2, #12]
  19127. /*------------------------ MACTFCR Configuration --------------------*/
  19128. macregval = (((uint32_t)macconf->TransmitFlowControl << 1) |
  19129. 8008842: 683b ldr r3, [r7, #0]
  19130. 8008844: f893 3054 ldrb.w r3, [r3, #84] @ 0x54
  19131. 8008848: 005a lsls r2, r3, #1
  19132. macconf->PauseLowThreshold |
  19133. 800884a: 683b ldr r3, [r7, #0]
  19134. 800884c: 6d1b ldr r3, [r3, #80] @ 0x50
  19135. macregval = (((uint32_t)macconf->TransmitFlowControl << 1) |
  19136. 800884e: 4313 orrs r3, r2
  19137. ((uint32_t)((macconf->ZeroQuantaPause == DISABLE) ? 1U : 0U) << 7) |
  19138. 8008850: 683a ldr r2, [r7, #0]
  19139. 8008852: f892 204c ldrb.w r2, [r2, #76] @ 0x4c
  19140. 8008856: 2a00 cmp r2, #0
  19141. 8008858: d101 bne.n 800885e <ETH_SetMACConfig+0x172>
  19142. 800885a: 2280 movs r2, #128 @ 0x80
  19143. 800885c: e000 b.n 8008860 <ETH_SetMACConfig+0x174>
  19144. 800885e: 2200 movs r2, #0
  19145. macconf->PauseLowThreshold |
  19146. 8008860: 431a orrs r2, r3
  19147. (macconf->PauseTime << 16));
  19148. 8008862: 683b ldr r3, [r7, #0]
  19149. 8008864: 6c9b ldr r3, [r3, #72] @ 0x48
  19150. 8008866: 041b lsls r3, r3, #16
  19151. macregval = (((uint32_t)macconf->TransmitFlowControl << 1) |
  19152. 8008868: 4313 orrs r3, r2
  19153. 800886a: 60fb str r3, [r7, #12]
  19154. /* Write to MACTFCR */
  19155. MODIFY_REG(heth->Instance->MACTFCR, ETH_MACTFCR_MASK, macregval);
  19156. 800886c: 687b ldr r3, [r7, #4]
  19157. 800886e: 681b ldr r3, [r3, #0]
  19158. 8008870: 6f1a ldr r2, [r3, #112] @ 0x70
  19159. 8008872: f64f 730d movw r3, #65293 @ 0xff0d
  19160. 8008876: 4013 ands r3, r2
  19161. 8008878: 687a ldr r2, [r7, #4]
  19162. 800887a: 6812 ldr r2, [r2, #0]
  19163. 800887c: 68f9 ldr r1, [r7, #12]
  19164. 800887e: 430b orrs r3, r1
  19165. 8008880: 6713 str r3, [r2, #112] @ 0x70
  19166. /*------------------------ MACRFCR Configuration --------------------*/
  19167. macregval = ((uint32_t)macconf->ReceiveFlowControl |
  19168. 8008882: 683b ldr r3, [r7, #0]
  19169. 8008884: f893 3056 ldrb.w r3, [r3, #86] @ 0x56
  19170. 8008888: 461a mov r2, r3
  19171. ((uint32_t)macconf->UnicastPausePacketDetect << 1));
  19172. 800888a: 683b ldr r3, [r7, #0]
  19173. 800888c: f893 3055 ldrb.w r3, [r3, #85] @ 0x55
  19174. 8008890: 005b lsls r3, r3, #1
  19175. macregval = ((uint32_t)macconf->ReceiveFlowControl |
  19176. 8008892: 4313 orrs r3, r2
  19177. 8008894: 60fb str r3, [r7, #12]
  19178. /* Write to MACRFCR */
  19179. MODIFY_REG(heth->Instance->MACRFCR, ETH_MACRFCR_MASK, macregval);
  19180. 8008896: 687b ldr r3, [r7, #4]
  19181. 8008898: 681b ldr r3, [r3, #0]
  19182. 800889a: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  19183. 800889e: f023 0103 bic.w r1, r3, #3
  19184. 80088a2: 687b ldr r3, [r7, #4]
  19185. 80088a4: 681b ldr r3, [r3, #0]
  19186. 80088a6: 68fa ldr r2, [r7, #12]
  19187. 80088a8: 430a orrs r2, r1
  19188. 80088aa: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  19189. /*------------------------ MTLTQOMR Configuration --------------------*/
  19190. /* Write to MTLTQOMR */
  19191. MODIFY_REG(heth->Instance->MTLTQOMR, ETH_MTLTQOMR_MASK, macconf->TransmitQueueMode);
  19192. 80088ae: 687b ldr r3, [r7, #4]
  19193. 80088b0: 681b ldr r3, [r3, #0]
  19194. 80088b2: f8d3 3d00 ldr.w r3, [r3, #3328] @ 0xd00
  19195. 80088b6: f023 0172 bic.w r1, r3, #114 @ 0x72
  19196. 80088ba: 683b ldr r3, [r7, #0]
  19197. 80088bc: 6d9a ldr r2, [r3, #88] @ 0x58
  19198. 80088be: 687b ldr r3, [r7, #4]
  19199. 80088c0: 681b ldr r3, [r3, #0]
  19200. 80088c2: 430a orrs r2, r1
  19201. 80088c4: f8c3 2d00 str.w r2, [r3, #3328] @ 0xd00
  19202. /*------------------------ MTLRQOMR Configuration --------------------*/
  19203. macregval = (macconf->ReceiveQueueMode |
  19204. 80088c8: 683b ldr r3, [r7, #0]
  19205. 80088ca: 6ddb ldr r3, [r3, #92] @ 0x5c
  19206. ((uint32_t)((macconf->DropTCPIPChecksumErrorPacket == DISABLE) ? 1U : 0U) << 6) |
  19207. 80088cc: 683a ldr r2, [r7, #0]
  19208. 80088ce: f892 2060 ldrb.w r2, [r2, #96] @ 0x60
  19209. 80088d2: 2a00 cmp r2, #0
  19210. 80088d4: d101 bne.n 80088da <ETH_SetMACConfig+0x1ee>
  19211. 80088d6: 2240 movs r2, #64 @ 0x40
  19212. 80088d8: e000 b.n 80088dc <ETH_SetMACConfig+0x1f0>
  19213. 80088da: 2200 movs r2, #0
  19214. macregval = (macconf->ReceiveQueueMode |
  19215. 80088dc: 431a orrs r2, r3
  19216. ((uint32_t)macconf->ForwardRxErrorPacket << 4) |
  19217. 80088de: 683b ldr r3, [r7, #0]
  19218. 80088e0: f893 3061 ldrb.w r3, [r3, #97] @ 0x61
  19219. 80088e4: 011b lsls r3, r3, #4
  19220. ((uint32_t)((macconf->DropTCPIPChecksumErrorPacket == DISABLE) ? 1U : 0U) << 6) |
  19221. 80088e6: 431a orrs r2, r3
  19222. ((uint32_t)macconf->ForwardRxUndersizedGoodPacket << 3));
  19223. 80088e8: 683b ldr r3, [r7, #0]
  19224. 80088ea: f893 3062 ldrb.w r3, [r3, #98] @ 0x62
  19225. 80088ee: 00db lsls r3, r3, #3
  19226. macregval = (macconf->ReceiveQueueMode |
  19227. 80088f0: 4313 orrs r3, r2
  19228. 80088f2: 60fb str r3, [r7, #12]
  19229. /* Write to MTLRQOMR */
  19230. MODIFY_REG(heth->Instance->MTLRQOMR, ETH_MTLRQOMR_MASK, macregval);
  19231. 80088f4: 687b ldr r3, [r7, #4]
  19232. 80088f6: 681b ldr r3, [r3, #0]
  19233. 80088f8: f8d3 3d30 ldr.w r3, [r3, #3376] @ 0xd30
  19234. 80088fc: f023 017b bic.w r1, r3, #123 @ 0x7b
  19235. 8008900: 687b ldr r3, [r7, #4]
  19236. 8008902: 681b ldr r3, [r3, #0]
  19237. 8008904: 68fa ldr r2, [r7, #12]
  19238. 8008906: 430a orrs r2, r1
  19239. 8008908: f8c3 2d30 str.w r2, [r3, #3376] @ 0xd30
  19240. }
  19241. 800890c: bf00 nop
  19242. 800890e: 3714 adds r7, #20
  19243. 8008910: 46bd mov sp, r7
  19244. 8008912: f85d 7b04 ldr.w r7, [sp], #4
  19245. 8008916: 4770 bx lr
  19246. 8008918: 00048083 .word 0x00048083
  19247. 800891c: c0f88000 .word 0xc0f88000
  19248. 8008920: fffffef0 .word 0xfffffef0
  19249. 08008924 <ETH_SetDMAConfig>:
  19250. static void ETH_SetDMAConfig(ETH_HandleTypeDef *heth, const ETH_DMAConfigTypeDef *dmaconf)
  19251. {
  19252. 8008924: b480 push {r7}
  19253. 8008926: b085 sub sp, #20
  19254. 8008928: af00 add r7, sp, #0
  19255. 800892a: 6078 str r0, [r7, #4]
  19256. 800892c: 6039 str r1, [r7, #0]
  19257. uint32_t dmaregval;
  19258. /*------------------------ DMAMR Configuration --------------------*/
  19259. MODIFY_REG(heth->Instance->DMAMR, ETH_DMAMR_MASK, dmaconf->DMAArbitration);
  19260. 800892e: 687b ldr r3, [r7, #4]
  19261. 8008930: 681b ldr r3, [r3, #0]
  19262. 8008932: f503 5380 add.w r3, r3, #4096 @ 0x1000
  19263. 8008936: 681a ldr r2, [r3, #0]
  19264. 8008938: 4b38 ldr r3, [pc, #224] @ (8008a1c <ETH_SetDMAConfig+0xf8>)
  19265. 800893a: 4013 ands r3, r2
  19266. 800893c: 683a ldr r2, [r7, #0]
  19267. 800893e: 6811 ldr r1, [r2, #0]
  19268. 8008940: 687a ldr r2, [r7, #4]
  19269. 8008942: 6812 ldr r2, [r2, #0]
  19270. 8008944: 430b orrs r3, r1
  19271. 8008946: f502 5280 add.w r2, r2, #4096 @ 0x1000
  19272. 800894a: 6013 str r3, [r2, #0]
  19273. /*------------------------ DMASBMR Configuration --------------------*/
  19274. dmaregval = (((uint32_t)dmaconf->AddressAlignedBeats << 12) |
  19275. 800894c: 683b ldr r3, [r7, #0]
  19276. 800894e: 791b ldrb r3, [r3, #4]
  19277. 8008950: 031a lsls r2, r3, #12
  19278. dmaconf->BurstMode |
  19279. 8008952: 683b ldr r3, [r7, #0]
  19280. 8008954: 689b ldr r3, [r3, #8]
  19281. dmaregval = (((uint32_t)dmaconf->AddressAlignedBeats << 12) |
  19282. 8008956: 431a orrs r2, r3
  19283. ((uint32_t)dmaconf->RebuildINCRxBurst << 15));
  19284. 8008958: 683b ldr r3, [r7, #0]
  19285. 800895a: 7b1b ldrb r3, [r3, #12]
  19286. 800895c: 03db lsls r3, r3, #15
  19287. dmaregval = (((uint32_t)dmaconf->AddressAlignedBeats << 12) |
  19288. 800895e: 4313 orrs r3, r2
  19289. 8008960: 60fb str r3, [r7, #12]
  19290. MODIFY_REG(heth->Instance->DMASBMR, ETH_DMASBMR_MASK, dmaregval);
  19291. 8008962: 687b ldr r3, [r7, #4]
  19292. 8008964: 681b ldr r3, [r3, #0]
  19293. 8008966: f503 5380 add.w r3, r3, #4096 @ 0x1000
  19294. 800896a: 685a ldr r2, [r3, #4]
  19295. 800896c: 4b2c ldr r3, [pc, #176] @ (8008a20 <ETH_SetDMAConfig+0xfc>)
  19296. 800896e: 4013 ands r3, r2
  19297. 8008970: 687a ldr r2, [r7, #4]
  19298. 8008972: 6812 ldr r2, [r2, #0]
  19299. 8008974: 68f9 ldr r1, [r7, #12]
  19300. 8008976: 430b orrs r3, r1
  19301. 8008978: f502 5280 add.w r2, r2, #4096 @ 0x1000
  19302. 800897c: 6053 str r3, [r2, #4]
  19303. /*------------------------ DMACCR Configuration --------------------*/
  19304. dmaregval = (((uint32_t)dmaconf->PBLx8Mode << 16) |
  19305. 800897e: 683b ldr r3, [r7, #0]
  19306. 8008980: 7b5b ldrb r3, [r3, #13]
  19307. 8008982: 041a lsls r2, r3, #16
  19308. dmaconf->MaximumSegmentSize);
  19309. 8008984: 683b ldr r3, [r7, #0]
  19310. 8008986: 6a1b ldr r3, [r3, #32]
  19311. dmaregval = (((uint32_t)dmaconf->PBLx8Mode << 16) |
  19312. 8008988: 4313 orrs r3, r2
  19313. 800898a: 60fb str r3, [r7, #12]
  19314. MODIFY_REG(heth->Instance->DMACCR, ETH_DMACCR_MASK, dmaregval);
  19315. 800898c: 687b ldr r3, [r7, #4]
  19316. 800898e: 681b ldr r3, [r3, #0]
  19317. 8008990: f503 5380 add.w r3, r3, #4096 @ 0x1000
  19318. 8008994: f8d3 2100 ldr.w r2, [r3, #256] @ 0x100
  19319. 8008998: 4b22 ldr r3, [pc, #136] @ (8008a24 <ETH_SetDMAConfig+0x100>)
  19320. 800899a: 4013 ands r3, r2
  19321. 800899c: 687a ldr r2, [r7, #4]
  19322. 800899e: 6812 ldr r2, [r2, #0]
  19323. 80089a0: 68f9 ldr r1, [r7, #12]
  19324. 80089a2: 430b orrs r3, r1
  19325. 80089a4: f502 5280 add.w r2, r2, #4096 @ 0x1000
  19326. 80089a8: f8c2 3100 str.w r3, [r2, #256] @ 0x100
  19327. /*------------------------ DMACTCR Configuration --------------------*/
  19328. dmaregval = (dmaconf->TxDMABurstLength |
  19329. 80089ac: 683b ldr r3, [r7, #0]
  19330. 80089ae: 691a ldr r2, [r3, #16]
  19331. ((uint32_t)dmaconf->SecondPacketOperate << 4) |
  19332. 80089b0: 683b ldr r3, [r7, #0]
  19333. 80089b2: 7d1b ldrb r3, [r3, #20]
  19334. 80089b4: 011b lsls r3, r3, #4
  19335. dmaregval = (dmaconf->TxDMABurstLength |
  19336. 80089b6: 431a orrs r2, r3
  19337. ((uint32_t)dmaconf->TCPSegmentation << 12));
  19338. 80089b8: 683b ldr r3, [r7, #0]
  19339. 80089ba: 7f5b ldrb r3, [r3, #29]
  19340. 80089bc: 031b lsls r3, r3, #12
  19341. dmaregval = (dmaconf->TxDMABurstLength |
  19342. 80089be: 4313 orrs r3, r2
  19343. 80089c0: 60fb str r3, [r7, #12]
  19344. MODIFY_REG(heth->Instance->DMACTCR, ETH_DMACTCR_MASK, dmaregval);
  19345. 80089c2: 687b ldr r3, [r7, #4]
  19346. 80089c4: 681b ldr r3, [r3, #0]
  19347. 80089c6: f503 5380 add.w r3, r3, #4096 @ 0x1000
  19348. 80089ca: f8d3 2104 ldr.w r2, [r3, #260] @ 0x104
  19349. 80089ce: 4b16 ldr r3, [pc, #88] @ (8008a28 <ETH_SetDMAConfig+0x104>)
  19350. 80089d0: 4013 ands r3, r2
  19351. 80089d2: 687a ldr r2, [r7, #4]
  19352. 80089d4: 6812 ldr r2, [r2, #0]
  19353. 80089d6: 68f9 ldr r1, [r7, #12]
  19354. 80089d8: 430b orrs r3, r1
  19355. 80089da: f502 5280 add.w r2, r2, #4096 @ 0x1000
  19356. 80089de: f8c2 3104 str.w r3, [r2, #260] @ 0x104
  19357. /*------------------------ DMACRCR Configuration --------------------*/
  19358. dmaregval = (((uint32_t)dmaconf->FlushRxPacket << 31) |
  19359. 80089e2: 683b ldr r3, [r7, #0]
  19360. 80089e4: 7f1b ldrb r3, [r3, #28]
  19361. 80089e6: 07da lsls r2, r3, #31
  19362. dmaconf->RxDMABurstLength);
  19363. 80089e8: 683b ldr r3, [r7, #0]
  19364. 80089ea: 699b ldr r3, [r3, #24]
  19365. dmaregval = (((uint32_t)dmaconf->FlushRxPacket << 31) |
  19366. 80089ec: 4313 orrs r3, r2
  19367. 80089ee: 60fb str r3, [r7, #12]
  19368. /* Write to DMACRCR */
  19369. MODIFY_REG(heth->Instance->DMACRCR, ETH_DMACRCR_MASK, dmaregval);
  19370. 80089f0: 687b ldr r3, [r7, #4]
  19371. 80089f2: 681b ldr r3, [r3, #0]
  19372. 80089f4: f503 5380 add.w r3, r3, #4096 @ 0x1000
  19373. 80089f8: f8d3 2108 ldr.w r2, [r3, #264] @ 0x108
  19374. 80089fc: 4b0b ldr r3, [pc, #44] @ (8008a2c <ETH_SetDMAConfig+0x108>)
  19375. 80089fe: 4013 ands r3, r2
  19376. 8008a00: 687a ldr r2, [r7, #4]
  19377. 8008a02: 6812 ldr r2, [r2, #0]
  19378. 8008a04: 68f9 ldr r1, [r7, #12]
  19379. 8008a06: 430b orrs r3, r1
  19380. 8008a08: f502 5280 add.w r2, r2, #4096 @ 0x1000
  19381. 8008a0c: f8c2 3108 str.w r3, [r2, #264] @ 0x108
  19382. }
  19383. 8008a10: bf00 nop
  19384. 8008a12: 3714 adds r7, #20
  19385. 8008a14: 46bd mov sp, r7
  19386. 8008a16: f85d 7b04 ldr.w r7, [sp], #4
  19387. 8008a1a: 4770 bx lr
  19388. 8008a1c: ffff87fd .word 0xffff87fd
  19389. 8008a20: ffff2ffe .word 0xffff2ffe
  19390. 8008a24: fffec000 .word 0xfffec000
  19391. 8008a28: ffc0efef .word 0xffc0efef
  19392. 8008a2c: 7fc0ffff .word 0x7fc0ffff
  19393. 08008a30 <ETH_MACDMAConfig>:
  19394. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  19395. * the configuration information for ETHERNET module
  19396. * @retval HAL status
  19397. */
  19398. static void ETH_MACDMAConfig(ETH_HandleTypeDef *heth)
  19399. {
  19400. 8008a30: b580 push {r7, lr}
  19401. 8008a32: b0a4 sub sp, #144 @ 0x90
  19402. 8008a34: af00 add r7, sp, #0
  19403. 8008a36: 6078 str r0, [r7, #4]
  19404. ETH_MACConfigTypeDef macDefaultConf;
  19405. ETH_DMAConfigTypeDef dmaDefaultConf;
  19406. /*--------------- ETHERNET MAC registers default Configuration --------------*/
  19407. macDefaultConf.AutomaticPadCRCStrip = ENABLE;
  19408. 8008a38: 2301 movs r3, #1
  19409. 8008a3a: f887 303b strb.w r3, [r7, #59] @ 0x3b
  19410. macDefaultConf.BackOffLimit = ETH_BACKOFFLIMIT_10;
  19411. 8008a3e: 2300 movs r3, #0
  19412. 8008a40: 653b str r3, [r7, #80] @ 0x50
  19413. macDefaultConf.CarrierSenseBeforeTransmit = DISABLE;
  19414. 8008a42: 2300 movs r3, #0
  19415. 8008a44: f887 3049 strb.w r3, [r7, #73] @ 0x49
  19416. macDefaultConf.CarrierSenseDuringTransmit = DISABLE;
  19417. 8008a48: 2300 movs r3, #0
  19418. 8008a4a: f887 304b strb.w r3, [r7, #75] @ 0x4b
  19419. macDefaultConf.ChecksumOffload = ENABLE;
  19420. 8008a4e: 2301 movs r3, #1
  19421. 8008a50: f887 3030 strb.w r3, [r7, #48] @ 0x30
  19422. macDefaultConf.CRCCheckingRxPackets = ENABLE;
  19423. 8008a54: 2301 movs r3, #1
  19424. 8008a56: f887 305e strb.w r3, [r7, #94] @ 0x5e
  19425. macDefaultConf.CRCStripTypePacket = ENABLE;
  19426. 8008a5a: 2301 movs r3, #1
  19427. 8008a5c: f887 303a strb.w r3, [r7, #58] @ 0x3a
  19428. macDefaultConf.DeferralCheck = DISABLE;
  19429. 8008a60: 2300 movs r3, #0
  19430. 8008a62: f887 3054 strb.w r3, [r7, #84] @ 0x54
  19431. macDefaultConf.DropTCPIPChecksumErrorPacket = ENABLE;
  19432. 8008a66: 2301 movs r3, #1
  19433. 8008a68: f887 308c strb.w r3, [r7, #140] @ 0x8c
  19434. macDefaultConf.DuplexMode = ETH_FULLDUPLEX_MODE;
  19435. 8008a6c: f44f 5300 mov.w r3, #8192 @ 0x2000
  19436. 8008a70: 647b str r3, [r7, #68] @ 0x44
  19437. macDefaultConf.ExtendedInterPacketGap = DISABLE;
  19438. 8008a72: 2300 movs r3, #0
  19439. 8008a74: f887 3064 strb.w r3, [r7, #100] @ 0x64
  19440. macDefaultConf.ExtendedInterPacketGapVal = 0x0U;
  19441. 8008a78: 2300 movs r3, #0
  19442. 8008a7a: 66bb str r3, [r7, #104] @ 0x68
  19443. macDefaultConf.ForwardRxErrorPacket = DISABLE;
  19444. 8008a7c: 2300 movs r3, #0
  19445. 8008a7e: f887 308d strb.w r3, [r7, #141] @ 0x8d
  19446. macDefaultConf.ForwardRxUndersizedGoodPacket = DISABLE;
  19447. 8008a82: 2300 movs r3, #0
  19448. 8008a84: f887 308e strb.w r3, [r7, #142] @ 0x8e
  19449. macDefaultConf.GiantPacketSizeLimit = 0x618U;
  19450. 8008a88: f44f 63c3 mov.w r3, #1560 @ 0x618
  19451. 8008a8c: 663b str r3, [r7, #96] @ 0x60
  19452. macDefaultConf.GiantPacketSizeLimitControl = DISABLE;
  19453. 8008a8e: 2300 movs r3, #0
  19454. 8008a90: f887 3038 strb.w r3, [r7, #56] @ 0x38
  19455. macDefaultConf.InterPacketGapVal = ETH_INTERPACKETGAP_96BIT;
  19456. 8008a94: 2300 movs r3, #0
  19457. 8008a96: 637b str r3, [r7, #52] @ 0x34
  19458. macDefaultConf.Jabber = ENABLE;
  19459. 8008a98: 2301 movs r3, #1
  19460. 8008a9a: f887 303d strb.w r3, [r7, #61] @ 0x3d
  19461. macDefaultConf.JumboPacket = DISABLE;
  19462. 8008a9e: 2300 movs r3, #0
  19463. 8008aa0: f887 303e strb.w r3, [r7, #62] @ 0x3e
  19464. macDefaultConf.LoopbackMode = DISABLE;
  19465. 8008aa4: 2300 movs r3, #0
  19466. 8008aa6: f887 3048 strb.w r3, [r7, #72] @ 0x48
  19467. macDefaultConf.PauseLowThreshold = ETH_PAUSELOWTHRESHOLD_MINUS_4;
  19468. 8008aaa: 2300 movs r3, #0
  19469. 8008aac: 67fb str r3, [r7, #124] @ 0x7c
  19470. macDefaultConf.PauseTime = 0x0U;
  19471. 8008aae: 2300 movs r3, #0
  19472. 8008ab0: 677b str r3, [r7, #116] @ 0x74
  19473. macDefaultConf.PreambleLength = ETH_PREAMBLELENGTH_7;
  19474. 8008ab2: 2300 movs r3, #0
  19475. 8008ab4: 65bb str r3, [r7, #88] @ 0x58
  19476. macDefaultConf.ProgrammableWatchdog = DISABLE;
  19477. 8008ab6: 2300 movs r3, #0
  19478. 8008ab8: f887 306c strb.w r3, [r7, #108] @ 0x6c
  19479. macDefaultConf.ReceiveFlowControl = DISABLE;
  19480. 8008abc: 2300 movs r3, #0
  19481. 8008abe: f887 3082 strb.w r3, [r7, #130] @ 0x82
  19482. macDefaultConf.ReceiveOwn = ENABLE;
  19483. 8008ac2: 2301 movs r3, #1
  19484. 8008ac4: f887 304a strb.w r3, [r7, #74] @ 0x4a
  19485. macDefaultConf.ReceiveQueueMode = ETH_RECEIVESTOREFORWARD;
  19486. 8008ac8: 2320 movs r3, #32
  19487. 8008aca: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  19488. macDefaultConf.RetryTransmission = ENABLE;
  19489. 8008ace: 2301 movs r3, #1
  19490. 8008ad0: f887 304c strb.w r3, [r7, #76] @ 0x4c
  19491. macDefaultConf.SlowProtocolDetect = DISABLE;
  19492. 8008ad4: 2300 movs r3, #0
  19493. 8008ad6: f887 305d strb.w r3, [r7, #93] @ 0x5d
  19494. macDefaultConf.SourceAddrControl = ETH_SOURCEADDRESS_REPLACE_ADDR0;
  19495. 8008ada: f04f 5340 mov.w r3, #805306368 @ 0x30000000
  19496. 8008ade: 62fb str r3, [r7, #44] @ 0x2c
  19497. macDefaultConf.Speed = ETH_SPEED_100M;
  19498. 8008ae0: f44f 4380 mov.w r3, #16384 @ 0x4000
  19499. 8008ae4: 643b str r3, [r7, #64] @ 0x40
  19500. macDefaultConf.Support2KPacket = DISABLE;
  19501. 8008ae6: 2300 movs r3, #0
  19502. 8008ae8: f887 3039 strb.w r3, [r7, #57] @ 0x39
  19503. macDefaultConf.TransmitQueueMode = ETH_TRANSMITSTOREFORWARD;
  19504. 8008aec: 2302 movs r3, #2
  19505. 8008aee: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  19506. macDefaultConf.TransmitFlowControl = DISABLE;
  19507. 8008af2: 2300 movs r3, #0
  19508. 8008af4: f887 3080 strb.w r3, [r7, #128] @ 0x80
  19509. macDefaultConf.UnicastPausePacketDetect = DISABLE;
  19510. 8008af8: 2300 movs r3, #0
  19511. 8008afa: f887 3081 strb.w r3, [r7, #129] @ 0x81
  19512. macDefaultConf.UnicastSlowProtocolPacketDetect = DISABLE;
  19513. 8008afe: 2300 movs r3, #0
  19514. 8008b00: f887 305c strb.w r3, [r7, #92] @ 0x5c
  19515. macDefaultConf.Watchdog = ENABLE;
  19516. 8008b04: 2301 movs r3, #1
  19517. 8008b06: f887 303c strb.w r3, [r7, #60] @ 0x3c
  19518. macDefaultConf.WatchdogTimeout = ETH_MACWTR_WTO_2KB;
  19519. 8008b0a: 2300 movs r3, #0
  19520. 8008b0c: 673b str r3, [r7, #112] @ 0x70
  19521. macDefaultConf.ZeroQuantaPause = ENABLE;
  19522. 8008b0e: 2301 movs r3, #1
  19523. 8008b10: f887 3078 strb.w r3, [r7, #120] @ 0x78
  19524. /* MAC default configuration */
  19525. ETH_SetMACConfig(heth, &macDefaultConf);
  19526. 8008b14: f107 032c add.w r3, r7, #44 @ 0x2c
  19527. 8008b18: 4619 mov r1, r3
  19528. 8008b1a: 6878 ldr r0, [r7, #4]
  19529. 8008b1c: f7ff fde6 bl 80086ec <ETH_SetMACConfig>
  19530. /*--------------- ETHERNET DMA registers default Configuration --------------*/
  19531. dmaDefaultConf.AddressAlignedBeats = ENABLE;
  19532. 8008b20: 2301 movs r3, #1
  19533. 8008b22: 733b strb r3, [r7, #12]
  19534. dmaDefaultConf.BurstMode = ETH_BURSTLENGTH_FIXED;
  19535. 8008b24: 2301 movs r3, #1
  19536. 8008b26: 613b str r3, [r7, #16]
  19537. dmaDefaultConf.DMAArbitration = ETH_DMAARBITRATION_RX1_TX1;
  19538. 8008b28: 2300 movs r3, #0
  19539. 8008b2a: 60bb str r3, [r7, #8]
  19540. dmaDefaultConf.FlushRxPacket = DISABLE;
  19541. 8008b2c: 2300 movs r3, #0
  19542. 8008b2e: f887 3024 strb.w r3, [r7, #36] @ 0x24
  19543. dmaDefaultConf.PBLx8Mode = DISABLE;
  19544. 8008b32: 2300 movs r3, #0
  19545. 8008b34: 757b strb r3, [r7, #21]
  19546. dmaDefaultConf.RebuildINCRxBurst = DISABLE;
  19547. 8008b36: 2300 movs r3, #0
  19548. 8008b38: 753b strb r3, [r7, #20]
  19549. dmaDefaultConf.RxDMABurstLength = ETH_RXDMABURSTLENGTH_32BEAT;
  19550. 8008b3a: f44f 1300 mov.w r3, #2097152 @ 0x200000
  19551. 8008b3e: 623b str r3, [r7, #32]
  19552. dmaDefaultConf.SecondPacketOperate = DISABLE;
  19553. 8008b40: 2300 movs r3, #0
  19554. 8008b42: 773b strb r3, [r7, #28]
  19555. dmaDefaultConf.TxDMABurstLength = ETH_TXDMABURSTLENGTH_32BEAT;
  19556. 8008b44: f44f 1300 mov.w r3, #2097152 @ 0x200000
  19557. 8008b48: 61bb str r3, [r7, #24]
  19558. dmaDefaultConf.TCPSegmentation = DISABLE;
  19559. 8008b4a: 2300 movs r3, #0
  19560. 8008b4c: f887 3025 strb.w r3, [r7, #37] @ 0x25
  19561. dmaDefaultConf.MaximumSegmentSize = ETH_SEGMENT_SIZE_DEFAULT;
  19562. 8008b50: f44f 7306 mov.w r3, #536 @ 0x218
  19563. 8008b54: 62bb str r3, [r7, #40] @ 0x28
  19564. /* DMA default configuration */
  19565. ETH_SetDMAConfig(heth, &dmaDefaultConf);
  19566. 8008b56: f107 0308 add.w r3, r7, #8
  19567. 8008b5a: 4619 mov r1, r3
  19568. 8008b5c: 6878 ldr r0, [r7, #4]
  19569. 8008b5e: f7ff fee1 bl 8008924 <ETH_SetDMAConfig>
  19570. }
  19571. 8008b62: bf00 nop
  19572. 8008b64: 3790 adds r7, #144 @ 0x90
  19573. 8008b66: 46bd mov sp, r7
  19574. 8008b68: bd80 pop {r7, pc}
  19575. 08008b6a <ETH_DMATxDescListInit>:
  19576. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  19577. * the configuration information for ETHERNET module
  19578. * @retval None
  19579. */
  19580. static void ETH_DMATxDescListInit(ETH_HandleTypeDef *heth)
  19581. {
  19582. 8008b6a: b480 push {r7}
  19583. 8008b6c: b085 sub sp, #20
  19584. 8008b6e: af00 add r7, sp, #0
  19585. 8008b70: 6078 str r0, [r7, #4]
  19586. ETH_DMADescTypeDef *dmatxdesc;
  19587. uint32_t i;
  19588. /* Fill each DMATxDesc descriptor with the right values */
  19589. for (i = 0; i < (uint32_t)ETH_TX_DESC_CNT; i++)
  19590. 8008b72: 2300 movs r3, #0
  19591. 8008b74: 60fb str r3, [r7, #12]
  19592. 8008b76: e01d b.n 8008bb4 <ETH_DMATxDescListInit+0x4a>
  19593. {
  19594. dmatxdesc = heth->Init.TxDesc + i;
  19595. 8008b78: 687b ldr r3, [r7, #4]
  19596. 8008b7a: 68d9 ldr r1, [r3, #12]
  19597. 8008b7c: 68fa ldr r2, [r7, #12]
  19598. 8008b7e: 4613 mov r3, r2
  19599. 8008b80: 005b lsls r3, r3, #1
  19600. 8008b82: 4413 add r3, r2
  19601. 8008b84: 00db lsls r3, r3, #3
  19602. 8008b86: 440b add r3, r1
  19603. 8008b88: 60bb str r3, [r7, #8]
  19604. WRITE_REG(dmatxdesc->DESC0, 0x0U);
  19605. 8008b8a: 68bb ldr r3, [r7, #8]
  19606. 8008b8c: 2200 movs r2, #0
  19607. 8008b8e: 601a str r2, [r3, #0]
  19608. WRITE_REG(dmatxdesc->DESC1, 0x0U);
  19609. 8008b90: 68bb ldr r3, [r7, #8]
  19610. 8008b92: 2200 movs r2, #0
  19611. 8008b94: 605a str r2, [r3, #4]
  19612. WRITE_REG(dmatxdesc->DESC2, 0x0U);
  19613. 8008b96: 68bb ldr r3, [r7, #8]
  19614. 8008b98: 2200 movs r2, #0
  19615. 8008b9a: 609a str r2, [r3, #8]
  19616. WRITE_REG(dmatxdesc->DESC3, 0x0U);
  19617. 8008b9c: 68bb ldr r3, [r7, #8]
  19618. 8008b9e: 2200 movs r2, #0
  19619. 8008ba0: 60da str r2, [r3, #12]
  19620. WRITE_REG(heth->TxDescList.TxDesc[i], (uint32_t)dmatxdesc);
  19621. 8008ba2: 68b9 ldr r1, [r7, #8]
  19622. 8008ba4: 687b ldr r3, [r7, #4]
  19623. 8008ba6: 68fa ldr r2, [r7, #12]
  19624. 8008ba8: 3206 adds r2, #6
  19625. 8008baa: f843 1022 str.w r1, [r3, r2, lsl #2]
  19626. for (i = 0; i < (uint32_t)ETH_TX_DESC_CNT; i++)
  19627. 8008bae: 68fb ldr r3, [r7, #12]
  19628. 8008bb0: 3301 adds r3, #1
  19629. 8008bb2: 60fb str r3, [r7, #12]
  19630. 8008bb4: 68fb ldr r3, [r7, #12]
  19631. 8008bb6: 2b03 cmp r3, #3
  19632. 8008bb8: d9de bls.n 8008b78 <ETH_DMATxDescListInit+0xe>
  19633. }
  19634. heth->TxDescList.CurTxDesc = 0;
  19635. 8008bba: 687b ldr r3, [r7, #4]
  19636. 8008bbc: 2200 movs r2, #0
  19637. 8008bbe: 629a str r2, [r3, #40] @ 0x28
  19638. /* Set Transmit Descriptor Ring Length */
  19639. WRITE_REG(heth->Instance->DMACTDRLR, (ETH_TX_DESC_CNT - 1U));
  19640. 8008bc0: 687b ldr r3, [r7, #4]
  19641. 8008bc2: 681b ldr r3, [r3, #0]
  19642. 8008bc4: f503 5380 add.w r3, r3, #4096 @ 0x1000
  19643. 8008bc8: 461a mov r2, r3
  19644. 8008bca: 2303 movs r3, #3
  19645. 8008bcc: f8c2 312c str.w r3, [r2, #300] @ 0x12c
  19646. /* Set Transmit Descriptor List Address */
  19647. WRITE_REG(heth->Instance->DMACTDLAR, (uint32_t) heth->Init.TxDesc);
  19648. 8008bd0: 687b ldr r3, [r7, #4]
  19649. 8008bd2: 68da ldr r2, [r3, #12]
  19650. 8008bd4: 687b ldr r3, [r7, #4]
  19651. 8008bd6: 681b ldr r3, [r3, #0]
  19652. 8008bd8: f503 5380 add.w r3, r3, #4096 @ 0x1000
  19653. 8008bdc: f8c3 2114 str.w r2, [r3, #276] @ 0x114
  19654. /* Set Transmit Descriptor Tail pointer */
  19655. WRITE_REG(heth->Instance->DMACTDTPR, (uint32_t) heth->Init.TxDesc);
  19656. 8008be0: 687b ldr r3, [r7, #4]
  19657. 8008be2: 68da ldr r2, [r3, #12]
  19658. 8008be4: 687b ldr r3, [r7, #4]
  19659. 8008be6: 681b ldr r3, [r3, #0]
  19660. 8008be8: f503 5380 add.w r3, r3, #4096 @ 0x1000
  19661. 8008bec: f8c3 2120 str.w r2, [r3, #288] @ 0x120
  19662. }
  19663. 8008bf0: bf00 nop
  19664. 8008bf2: 3714 adds r7, #20
  19665. 8008bf4: 46bd mov sp, r7
  19666. 8008bf6: f85d 7b04 ldr.w r7, [sp], #4
  19667. 8008bfa: 4770 bx lr
  19668. 08008bfc <ETH_DMARxDescListInit>:
  19669. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  19670. * the configuration information for ETHERNET module
  19671. * @retval None
  19672. */
  19673. static void ETH_DMARxDescListInit(ETH_HandleTypeDef *heth)
  19674. {
  19675. 8008bfc: b480 push {r7}
  19676. 8008bfe: b085 sub sp, #20
  19677. 8008c00: af00 add r7, sp, #0
  19678. 8008c02: 6078 str r0, [r7, #4]
  19679. ETH_DMADescTypeDef *dmarxdesc;
  19680. uint32_t i;
  19681. for (i = 0; i < (uint32_t)ETH_RX_DESC_CNT; i++)
  19682. 8008c04: 2300 movs r3, #0
  19683. 8008c06: 60fb str r3, [r7, #12]
  19684. 8008c08: e023 b.n 8008c52 <ETH_DMARxDescListInit+0x56>
  19685. {
  19686. dmarxdesc = heth->Init.RxDesc + i;
  19687. 8008c0a: 687b ldr r3, [r7, #4]
  19688. 8008c0c: 6919 ldr r1, [r3, #16]
  19689. 8008c0e: 68fa ldr r2, [r7, #12]
  19690. 8008c10: 4613 mov r3, r2
  19691. 8008c12: 005b lsls r3, r3, #1
  19692. 8008c14: 4413 add r3, r2
  19693. 8008c16: 00db lsls r3, r3, #3
  19694. 8008c18: 440b add r3, r1
  19695. 8008c1a: 60bb str r3, [r7, #8]
  19696. WRITE_REG(dmarxdesc->DESC0, 0x0U);
  19697. 8008c1c: 68bb ldr r3, [r7, #8]
  19698. 8008c1e: 2200 movs r2, #0
  19699. 8008c20: 601a str r2, [r3, #0]
  19700. WRITE_REG(dmarxdesc->DESC1, 0x0U);
  19701. 8008c22: 68bb ldr r3, [r7, #8]
  19702. 8008c24: 2200 movs r2, #0
  19703. 8008c26: 605a str r2, [r3, #4]
  19704. WRITE_REG(dmarxdesc->DESC2, 0x0U);
  19705. 8008c28: 68bb ldr r3, [r7, #8]
  19706. 8008c2a: 2200 movs r2, #0
  19707. 8008c2c: 609a str r2, [r3, #8]
  19708. WRITE_REG(dmarxdesc->DESC3, 0x0U);
  19709. 8008c2e: 68bb ldr r3, [r7, #8]
  19710. 8008c30: 2200 movs r2, #0
  19711. 8008c32: 60da str r2, [r3, #12]
  19712. WRITE_REG(dmarxdesc->BackupAddr0, 0x0U);
  19713. 8008c34: 68bb ldr r3, [r7, #8]
  19714. 8008c36: 2200 movs r2, #0
  19715. 8008c38: 611a str r2, [r3, #16]
  19716. WRITE_REG(dmarxdesc->BackupAddr1, 0x0U);
  19717. 8008c3a: 68bb ldr r3, [r7, #8]
  19718. 8008c3c: 2200 movs r2, #0
  19719. 8008c3e: 615a str r2, [r3, #20]
  19720. /* Set Rx descritors addresses */
  19721. WRITE_REG(heth->RxDescList.RxDesc[i], (uint32_t)dmarxdesc);
  19722. 8008c40: 68b9 ldr r1, [r7, #8]
  19723. 8008c42: 687b ldr r3, [r7, #4]
  19724. 8008c44: 68fa ldr r2, [r7, #12]
  19725. 8008c46: 3212 adds r2, #18
  19726. 8008c48: f843 1022 str.w r1, [r3, r2, lsl #2]
  19727. for (i = 0; i < (uint32_t)ETH_RX_DESC_CNT; i++)
  19728. 8008c4c: 68fb ldr r3, [r7, #12]
  19729. 8008c4e: 3301 adds r3, #1
  19730. 8008c50: 60fb str r3, [r7, #12]
  19731. 8008c52: 68fb ldr r3, [r7, #12]
  19732. 8008c54: 2b03 cmp r3, #3
  19733. 8008c56: d9d8 bls.n 8008c0a <ETH_DMARxDescListInit+0xe>
  19734. }
  19735. WRITE_REG(heth->RxDescList.RxDescIdx, 0U);
  19736. 8008c58: 687b ldr r3, [r7, #4]
  19737. 8008c5a: 2200 movs r2, #0
  19738. 8008c5c: 65da str r2, [r3, #92] @ 0x5c
  19739. WRITE_REG(heth->RxDescList.RxDescCnt, 0U);
  19740. 8008c5e: 687b ldr r3, [r7, #4]
  19741. 8008c60: 2200 movs r2, #0
  19742. 8008c62: 661a str r2, [r3, #96] @ 0x60
  19743. WRITE_REG(heth->RxDescList.RxBuildDescIdx, 0U);
  19744. 8008c64: 687b ldr r3, [r7, #4]
  19745. 8008c66: 2200 movs r2, #0
  19746. 8008c68: 669a str r2, [r3, #104] @ 0x68
  19747. WRITE_REG(heth->RxDescList.RxBuildDescCnt, 0U);
  19748. 8008c6a: 687b ldr r3, [r7, #4]
  19749. 8008c6c: 2200 movs r2, #0
  19750. 8008c6e: 66da str r2, [r3, #108] @ 0x6c
  19751. WRITE_REG(heth->RxDescList.ItMode, 0U);
  19752. 8008c70: 687b ldr r3, [r7, #4]
  19753. 8008c72: 2200 movs r2, #0
  19754. 8008c74: 659a str r2, [r3, #88] @ 0x58
  19755. /* Set Receive Descriptor Ring Length */
  19756. WRITE_REG(heth->Instance->DMACRDRLR, ((uint32_t)(ETH_RX_DESC_CNT - 1U)));
  19757. 8008c76: 687b ldr r3, [r7, #4]
  19758. 8008c78: 681b ldr r3, [r3, #0]
  19759. 8008c7a: f503 5380 add.w r3, r3, #4096 @ 0x1000
  19760. 8008c7e: 461a mov r2, r3
  19761. 8008c80: 2303 movs r3, #3
  19762. 8008c82: f8c2 3130 str.w r3, [r2, #304] @ 0x130
  19763. /* Set Receive Descriptor List Address */
  19764. WRITE_REG(heth->Instance->DMACRDLAR, (uint32_t) heth->Init.RxDesc);
  19765. 8008c86: 687b ldr r3, [r7, #4]
  19766. 8008c88: 691a ldr r2, [r3, #16]
  19767. 8008c8a: 687b ldr r3, [r7, #4]
  19768. 8008c8c: 681b ldr r3, [r3, #0]
  19769. 8008c8e: f503 5380 add.w r3, r3, #4096 @ 0x1000
  19770. 8008c92: f8c3 211c str.w r2, [r3, #284] @ 0x11c
  19771. /* Set Receive Descriptor Tail pointer Address */
  19772. WRITE_REG(heth->Instance->DMACRDTPR, ((uint32_t)(heth->Init.RxDesc + (uint32_t)(ETH_RX_DESC_CNT - 1U))));
  19773. 8008c96: 687b ldr r3, [r7, #4]
  19774. 8008c98: 691b ldr r3, [r3, #16]
  19775. 8008c9a: f103 0248 add.w r2, r3, #72 @ 0x48
  19776. 8008c9e: 687b ldr r3, [r7, #4]
  19777. 8008ca0: 681b ldr r3, [r3, #0]
  19778. 8008ca2: f503 5380 add.w r3, r3, #4096 @ 0x1000
  19779. 8008ca6: f8c3 2128 str.w r2, [r3, #296] @ 0x128
  19780. }
  19781. 8008caa: bf00 nop
  19782. 8008cac: 3714 adds r7, #20
  19783. 8008cae: 46bd mov sp, r7
  19784. 8008cb0: f85d 7b04 ldr.w r7, [sp], #4
  19785. 8008cb4: 4770 bx lr
  19786. ...
  19787. 08008cb8 <ETH_Prepare_Tx_Descriptors>:
  19788. * @param ItMode: Enable or disable Tx EOT interrept
  19789. * @retval Status
  19790. */
  19791. static uint32_t ETH_Prepare_Tx_Descriptors(ETH_HandleTypeDef *heth, const ETH_TxPacketConfigTypeDef *pTxConfig,
  19792. uint32_t ItMode)
  19793. {
  19794. 8008cb8: b480 push {r7}
  19795. 8008cba: b091 sub sp, #68 @ 0x44
  19796. 8008cbc: af00 add r7, sp, #0
  19797. 8008cbe: 60f8 str r0, [r7, #12]
  19798. 8008cc0: 60b9 str r1, [r7, #8]
  19799. 8008cc2: 607a str r2, [r7, #4]
  19800. ETH_TxDescListTypeDef *dmatxdesclist = &heth->TxDescList;
  19801. 8008cc4: 68fb ldr r3, [r7, #12]
  19802. 8008cc6: 3318 adds r3, #24
  19803. 8008cc8: 627b str r3, [r7, #36] @ 0x24
  19804. uint32_t descidx = dmatxdesclist->CurTxDesc;
  19805. 8008cca: 6a7b ldr r3, [r7, #36] @ 0x24
  19806. 8008ccc: 691b ldr r3, [r3, #16]
  19807. 8008cce: 63fb str r3, [r7, #60] @ 0x3c
  19808. uint32_t firstdescidx = dmatxdesclist->CurTxDesc;
  19809. 8008cd0: 6a7b ldr r3, [r7, #36] @ 0x24
  19810. 8008cd2: 691b ldr r3, [r3, #16]
  19811. 8008cd4: 623b str r3, [r7, #32]
  19812. uint32_t idx;
  19813. uint32_t descnbr = 0;
  19814. 8008cd6: 2300 movs r3, #0
  19815. 8008cd8: 637b str r3, [r7, #52] @ 0x34
  19816. ETH_DMADescTypeDef *dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx];
  19817. 8008cda: 6a7b ldr r3, [r7, #36] @ 0x24
  19818. 8008cdc: 6bfa ldr r2, [r7, #60] @ 0x3c
  19819. 8008cde: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  19820. 8008ce2: 633b str r3, [r7, #48] @ 0x30
  19821. ETH_BufferTypeDef *txbuffer = pTxConfig->TxBuffer;
  19822. 8008ce4: 68bb ldr r3, [r7, #8]
  19823. 8008ce6: 689b ldr r3, [r3, #8]
  19824. 8008ce8: 62fb str r3, [r7, #44] @ 0x2c
  19825. uint32_t bd_count = 0;
  19826. 8008cea: 2300 movs r3, #0
  19827. 8008cec: 62bb str r3, [r7, #40] @ 0x28
  19828. uint32_t primask_bit;
  19829. /* Current Tx Descriptor Owned by DMA: cannot be used by the application */
  19830. if ((READ_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCWBF_OWN) == ETH_DMATXNDESCWBF_OWN)
  19831. 8008cee: 6b3b ldr r3, [r7, #48] @ 0x30
  19832. 8008cf0: 68db ldr r3, [r3, #12]
  19833. 8008cf2: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  19834. 8008cf6: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  19835. 8008cfa: d007 beq.n 8008d0c <ETH_Prepare_Tx_Descriptors+0x54>
  19836. || (dmatxdesclist->PacketAddress[descidx] != NULL))
  19837. 8008cfc: 6a7a ldr r2, [r7, #36] @ 0x24
  19838. 8008cfe: 6bfb ldr r3, [r7, #60] @ 0x3c
  19839. 8008d00: 3304 adds r3, #4
  19840. 8008d02: 009b lsls r3, r3, #2
  19841. 8008d04: 4413 add r3, r2
  19842. 8008d06: 685b ldr r3, [r3, #4]
  19843. 8008d08: 2b00 cmp r3, #0
  19844. 8008d0a: d001 beq.n 8008d10 <ETH_Prepare_Tx_Descriptors+0x58>
  19845. {
  19846. return HAL_ETH_ERROR_BUSY;
  19847. 8008d0c: 2302 movs r3, #2
  19848. 8008d0e: e266 b.n 80091de <ETH_Prepare_Tx_Descriptors+0x526>
  19849. /***************************************************************************/
  19850. /***************** Context descriptor configuration (Optional) **********/
  19851. /***************************************************************************/
  19852. /* If VLAN tag is enabled for this packet */
  19853. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_VLANTAG) != (uint32_t)RESET)
  19854. 8008d10: 68bb ldr r3, [r7, #8]
  19855. 8008d12: 681b ldr r3, [r3, #0]
  19856. 8008d14: f003 0304 and.w r3, r3, #4
  19857. 8008d18: 2b00 cmp r3, #0
  19858. 8008d1a: d044 beq.n 8008da6 <ETH_Prepare_Tx_Descriptors+0xee>
  19859. {
  19860. /* Set vlan tag value */
  19861. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXCDESC_VT, pTxConfig->VlanTag);
  19862. 8008d1c: 6b3b ldr r3, [r7, #48] @ 0x30
  19863. 8008d1e: 68da ldr r2, [r3, #12]
  19864. 8008d20: 4b75 ldr r3, [pc, #468] @ (8008ef8 <ETH_Prepare_Tx_Descriptors+0x240>)
  19865. 8008d22: 4013 ands r3, r2
  19866. 8008d24: 68ba ldr r2, [r7, #8]
  19867. 8008d26: 6a52 ldr r2, [r2, #36] @ 0x24
  19868. 8008d28: 431a orrs r2, r3
  19869. 8008d2a: 6b3b ldr r3, [r7, #48] @ 0x30
  19870. 8008d2c: 60da str r2, [r3, #12]
  19871. /* Set vlan tag valid bit */
  19872. SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_VLTV);
  19873. 8008d2e: 6b3b ldr r3, [r7, #48] @ 0x30
  19874. 8008d30: 68db ldr r3, [r3, #12]
  19875. 8008d32: f443 3280 orr.w r2, r3, #65536 @ 0x10000
  19876. 8008d36: 6b3b ldr r3, [r7, #48] @ 0x30
  19877. 8008d38: 60da str r2, [r3, #12]
  19878. /* Set the descriptor as the vlan input source */
  19879. SET_BIT(heth->Instance->MACVIR, ETH_MACVIR_VLTI);
  19880. 8008d3a: 68fb ldr r3, [r7, #12]
  19881. 8008d3c: 681b ldr r3, [r3, #0]
  19882. 8008d3e: 6e1a ldr r2, [r3, #96] @ 0x60
  19883. 8008d40: 68fb ldr r3, [r7, #12]
  19884. 8008d42: 681b ldr r3, [r3, #0]
  19885. 8008d44: f442 1280 orr.w r2, r2, #1048576 @ 0x100000
  19886. 8008d48: 661a str r2, [r3, #96] @ 0x60
  19887. /* if inner VLAN is enabled */
  19888. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_INNERVLANTAG) != (uint32_t)RESET)
  19889. 8008d4a: 68bb ldr r3, [r7, #8]
  19890. 8008d4c: 681b ldr r3, [r3, #0]
  19891. 8008d4e: f003 0308 and.w r3, r3, #8
  19892. 8008d52: 2b00 cmp r3, #0
  19893. 8008d54: d027 beq.n 8008da6 <ETH_Prepare_Tx_Descriptors+0xee>
  19894. {
  19895. /* Set inner vlan tag value */
  19896. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXCDESC_IVT, (pTxConfig->InnerVlanTag << 16));
  19897. 8008d56: 6b3b ldr r3, [r7, #48] @ 0x30
  19898. 8008d58: 689b ldr r3, [r3, #8]
  19899. 8008d5a: b29a uxth r2, r3
  19900. 8008d5c: 68bb ldr r3, [r7, #8]
  19901. 8008d5e: 6adb ldr r3, [r3, #44] @ 0x2c
  19902. 8008d60: 041b lsls r3, r3, #16
  19903. 8008d62: 431a orrs r2, r3
  19904. 8008d64: 6b3b ldr r3, [r7, #48] @ 0x30
  19905. 8008d66: 609a str r2, [r3, #8]
  19906. /* Set inner vlan tag valid bit */
  19907. SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_IVLTV);
  19908. 8008d68: 6b3b ldr r3, [r7, #48] @ 0x30
  19909. 8008d6a: 68db ldr r3, [r3, #12]
  19910. 8008d6c: f443 3200 orr.w r2, r3, #131072 @ 0x20000
  19911. 8008d70: 6b3b ldr r3, [r7, #48] @ 0x30
  19912. 8008d72: 60da str r2, [r3, #12]
  19913. /* Set Vlan Tag control */
  19914. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXCDESC_IVTIR, pTxConfig->InnerVlanCtrl);
  19915. 8008d74: 6b3b ldr r3, [r7, #48] @ 0x30
  19916. 8008d76: 68db ldr r3, [r3, #12]
  19917. 8008d78: f423 2240 bic.w r2, r3, #786432 @ 0xc0000
  19918. 8008d7c: 68bb ldr r3, [r7, #8]
  19919. 8008d7e: 6b1b ldr r3, [r3, #48] @ 0x30
  19920. 8008d80: 431a orrs r2, r3
  19921. 8008d82: 6b3b ldr r3, [r7, #48] @ 0x30
  19922. 8008d84: 60da str r2, [r3, #12]
  19923. /* Set the descriptor as the inner vlan input source */
  19924. SET_BIT(heth->Instance->MACIVIR, ETH_MACIVIR_VLTI);
  19925. 8008d86: 68fb ldr r3, [r7, #12]
  19926. 8008d88: 681b ldr r3, [r3, #0]
  19927. 8008d8a: 6e5a ldr r2, [r3, #100] @ 0x64
  19928. 8008d8c: 68fb ldr r3, [r7, #12]
  19929. 8008d8e: 681b ldr r3, [r3, #0]
  19930. 8008d90: f442 1280 orr.w r2, r2, #1048576 @ 0x100000
  19931. 8008d94: 665a str r2, [r3, #100] @ 0x64
  19932. /* Enable double VLAN processing */
  19933. SET_BIT(heth->Instance->MACVTR, ETH_MACVTR_EDVLP);
  19934. 8008d96: 68fb ldr r3, [r7, #12]
  19935. 8008d98: 681b ldr r3, [r3, #0]
  19936. 8008d9a: 6d1a ldr r2, [r3, #80] @ 0x50
  19937. 8008d9c: 68fb ldr r3, [r7, #12]
  19938. 8008d9e: 681b ldr r3, [r3, #0]
  19939. 8008da0: f042 6280 orr.w r2, r2, #67108864 @ 0x4000000
  19940. 8008da4: 651a str r2, [r3, #80] @ 0x50
  19941. }
  19942. }
  19943. /* if tcp segmentation is enabled for this packet */
  19944. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_TSO) != (uint32_t)RESET)
  19945. 8008da6: 68bb ldr r3, [r7, #8]
  19946. 8008da8: 681b ldr r3, [r3, #0]
  19947. 8008daa: f003 0310 and.w r3, r3, #16
  19948. 8008dae: 2b00 cmp r3, #0
  19949. 8008db0: d00e beq.n 8008dd0 <ETH_Prepare_Tx_Descriptors+0x118>
  19950. {
  19951. /* Set MSS value */
  19952. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXCDESC_MSS, pTxConfig->MaxSegmentSize);
  19953. 8008db2: 6b3b ldr r3, [r7, #48] @ 0x30
  19954. 8008db4: 689a ldr r2, [r3, #8]
  19955. 8008db6: 4b51 ldr r3, [pc, #324] @ (8008efc <ETH_Prepare_Tx_Descriptors+0x244>)
  19956. 8008db8: 4013 ands r3, r2
  19957. 8008dba: 68ba ldr r2, [r7, #8]
  19958. 8008dbc: 6992 ldr r2, [r2, #24]
  19959. 8008dbe: 431a orrs r2, r3
  19960. 8008dc0: 6b3b ldr r3, [r7, #48] @ 0x30
  19961. 8008dc2: 609a str r2, [r3, #8]
  19962. /* Set MSS valid bit */
  19963. SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_TCMSSV);
  19964. 8008dc4: 6b3b ldr r3, [r7, #48] @ 0x30
  19965. 8008dc6: 68db ldr r3, [r3, #12]
  19966. 8008dc8: f043 6280 orr.w r2, r3, #67108864 @ 0x4000000
  19967. 8008dcc: 6b3b ldr r3, [r7, #48] @ 0x30
  19968. 8008dce: 60da str r2, [r3, #12]
  19969. }
  19970. if ((READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_VLANTAG) != (uint32_t)RESET)
  19971. 8008dd0: 68bb ldr r3, [r7, #8]
  19972. 8008dd2: 681b ldr r3, [r3, #0]
  19973. 8008dd4: f003 0304 and.w r3, r3, #4
  19974. 8008dd8: 2b00 cmp r3, #0
  19975. 8008dda: d105 bne.n 8008de8 <ETH_Prepare_Tx_Descriptors+0x130>
  19976. || (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_TSO) != (uint32_t)RESET))
  19977. 8008ddc: 68bb ldr r3, [r7, #8]
  19978. 8008dde: 681b ldr r3, [r3, #0]
  19979. 8008de0: f003 0310 and.w r3, r3, #16
  19980. 8008de4: 2b00 cmp r3, #0
  19981. 8008de6: d036 beq.n 8008e56 <ETH_Prepare_Tx_Descriptors+0x19e>
  19982. {
  19983. /* Set as context descriptor */
  19984. SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_CTXT);
  19985. 8008de8: 6b3b ldr r3, [r7, #48] @ 0x30
  19986. 8008dea: 68db ldr r3, [r3, #12]
  19987. 8008dec: f043 4280 orr.w r2, r3, #1073741824 @ 0x40000000
  19988. 8008df0: 6b3b ldr r3, [r7, #48] @ 0x30
  19989. 8008df2: 60da str r2, [r3, #12]
  19990. __ASM volatile ("dmb 0xF":::"memory");
  19991. 8008df4: f3bf 8f5f dmb sy
  19992. }
  19993. 8008df8: bf00 nop
  19994. /* Ensure rest of descriptor is written to RAM before the OWN bit */
  19995. __DMB();
  19996. /* Set own bit */
  19997. SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_OWN);
  19998. 8008dfa: 6b3b ldr r3, [r7, #48] @ 0x30
  19999. 8008dfc: 68db ldr r3, [r3, #12]
  20000. 8008dfe: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000
  20001. 8008e02: 6b3b ldr r3, [r7, #48] @ 0x30
  20002. 8008e04: 60da str r2, [r3, #12]
  20003. /* Increment current tx descriptor index */
  20004. INCR_TX_DESC_INDEX(descidx, 1U);
  20005. 8008e06: 6bfb ldr r3, [r7, #60] @ 0x3c
  20006. 8008e08: 3301 adds r3, #1
  20007. 8008e0a: 63fb str r3, [r7, #60] @ 0x3c
  20008. 8008e0c: 6bfb ldr r3, [r7, #60] @ 0x3c
  20009. 8008e0e: 2b03 cmp r3, #3
  20010. 8008e10: d902 bls.n 8008e18 <ETH_Prepare_Tx_Descriptors+0x160>
  20011. 8008e12: 6bfb ldr r3, [r7, #60] @ 0x3c
  20012. 8008e14: 3b04 subs r3, #4
  20013. 8008e16: 63fb str r3, [r7, #60] @ 0x3c
  20014. /* Get current descriptor address */
  20015. dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx];
  20016. 8008e18: 6a7b ldr r3, [r7, #36] @ 0x24
  20017. 8008e1a: 6bfa ldr r2, [r7, #60] @ 0x3c
  20018. 8008e1c: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  20019. 8008e20: 633b str r3, [r7, #48] @ 0x30
  20020. descnbr += 1U;
  20021. 8008e22: 6b7b ldr r3, [r7, #52] @ 0x34
  20022. 8008e24: 3301 adds r3, #1
  20023. 8008e26: 637b str r3, [r7, #52] @ 0x34
  20024. /* Current Tx Descriptor Owned by DMA: cannot be used by the application */
  20025. if (READ_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCWBF_OWN) == ETH_DMATXNDESCWBF_OWN)
  20026. 8008e28: 6b3b ldr r3, [r7, #48] @ 0x30
  20027. 8008e2a: 68db ldr r3, [r3, #12]
  20028. 8008e2c: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  20029. 8008e30: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  20030. 8008e34: d10f bne.n 8008e56 <ETH_Prepare_Tx_Descriptors+0x19e>
  20031. {
  20032. dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[firstdescidx];
  20033. 8008e36: 6a7b ldr r3, [r7, #36] @ 0x24
  20034. 8008e38: 6a3a ldr r2, [r7, #32]
  20035. 8008e3a: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  20036. 8008e3e: 633b str r3, [r7, #48] @ 0x30
  20037. __ASM volatile ("dmb 0xF":::"memory");
  20038. 8008e40: f3bf 8f5f dmb sy
  20039. }
  20040. 8008e44: bf00 nop
  20041. /* Ensure rest of descriptor is written to RAM before the OWN bit */
  20042. __DMB();
  20043. /* Clear own bit */
  20044. CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_OWN);
  20045. 8008e46: 6b3b ldr r3, [r7, #48] @ 0x30
  20046. 8008e48: 68db ldr r3, [r3, #12]
  20047. 8008e4a: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000
  20048. 8008e4e: 6b3b ldr r3, [r7, #48] @ 0x30
  20049. 8008e50: 60da str r2, [r3, #12]
  20050. return HAL_ETH_ERROR_BUSY;
  20051. 8008e52: 2302 movs r3, #2
  20052. 8008e54: e1c3 b.n 80091de <ETH_Prepare_Tx_Descriptors+0x526>
  20053. /***************************************************************************/
  20054. /***************** Normal descriptors configuration *****************/
  20055. /***************************************************************************/
  20056. descnbr += 1U;
  20057. 8008e56: 6b7b ldr r3, [r7, #52] @ 0x34
  20058. 8008e58: 3301 adds r3, #1
  20059. 8008e5a: 637b str r3, [r7, #52] @ 0x34
  20060. /* Set header or buffer 1 address */
  20061. WRITE_REG(dmatxdesc->DESC0, (uint32_t)txbuffer->buffer);
  20062. 8008e5c: 6afb ldr r3, [r7, #44] @ 0x2c
  20063. 8008e5e: 681b ldr r3, [r3, #0]
  20064. 8008e60: 461a mov r2, r3
  20065. 8008e62: 6b3b ldr r3, [r7, #48] @ 0x30
  20066. 8008e64: 601a str r2, [r3, #0]
  20067. /* Set header or buffer 1 Length */
  20068. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B1L, txbuffer->len);
  20069. 8008e66: 6b3b ldr r3, [r7, #48] @ 0x30
  20070. 8008e68: 689a ldr r2, [r3, #8]
  20071. 8008e6a: 4b24 ldr r3, [pc, #144] @ (8008efc <ETH_Prepare_Tx_Descriptors+0x244>)
  20072. 8008e6c: 4013 ands r3, r2
  20073. 8008e6e: 6afa ldr r2, [r7, #44] @ 0x2c
  20074. 8008e70: 6852 ldr r2, [r2, #4]
  20075. 8008e72: 431a orrs r2, r3
  20076. 8008e74: 6b3b ldr r3, [r7, #48] @ 0x30
  20077. 8008e76: 609a str r2, [r3, #8]
  20078. if (txbuffer->next != NULL)
  20079. 8008e78: 6afb ldr r3, [r7, #44] @ 0x2c
  20080. 8008e7a: 689b ldr r3, [r3, #8]
  20081. 8008e7c: 2b00 cmp r3, #0
  20082. 8008e7e: d012 beq.n 8008ea6 <ETH_Prepare_Tx_Descriptors+0x1ee>
  20083. {
  20084. txbuffer = txbuffer->next;
  20085. 8008e80: 6afb ldr r3, [r7, #44] @ 0x2c
  20086. 8008e82: 689b ldr r3, [r3, #8]
  20087. 8008e84: 62fb str r3, [r7, #44] @ 0x2c
  20088. /* Set buffer 2 address */
  20089. WRITE_REG(dmatxdesc->DESC1, (uint32_t)txbuffer->buffer);
  20090. 8008e86: 6afb ldr r3, [r7, #44] @ 0x2c
  20091. 8008e88: 681b ldr r3, [r3, #0]
  20092. 8008e8a: 461a mov r2, r3
  20093. 8008e8c: 6b3b ldr r3, [r7, #48] @ 0x30
  20094. 8008e8e: 605a str r2, [r3, #4]
  20095. /* Set buffer 2 Length */
  20096. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B2L, (txbuffer->len << 16));
  20097. 8008e90: 6b3b ldr r3, [r7, #48] @ 0x30
  20098. 8008e92: 689a ldr r2, [r3, #8]
  20099. 8008e94: 4b1a ldr r3, [pc, #104] @ (8008f00 <ETH_Prepare_Tx_Descriptors+0x248>)
  20100. 8008e96: 4013 ands r3, r2
  20101. 8008e98: 6afa ldr r2, [r7, #44] @ 0x2c
  20102. 8008e9a: 6852 ldr r2, [r2, #4]
  20103. 8008e9c: 0412 lsls r2, r2, #16
  20104. 8008e9e: 431a orrs r2, r3
  20105. 8008ea0: 6b3b ldr r3, [r7, #48] @ 0x30
  20106. 8008ea2: 609a str r2, [r3, #8]
  20107. 8008ea4: e008 b.n 8008eb8 <ETH_Prepare_Tx_Descriptors+0x200>
  20108. }
  20109. else
  20110. {
  20111. WRITE_REG(dmatxdesc->DESC1, 0x0U);
  20112. 8008ea6: 6b3b ldr r3, [r7, #48] @ 0x30
  20113. 8008ea8: 2200 movs r2, #0
  20114. 8008eaa: 605a str r2, [r3, #4]
  20115. /* Set buffer 2 Length */
  20116. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B2L, 0x0U);
  20117. 8008eac: 6b3b ldr r3, [r7, #48] @ 0x30
  20118. 8008eae: 689a ldr r2, [r3, #8]
  20119. 8008eb0: 4b13 ldr r3, [pc, #76] @ (8008f00 <ETH_Prepare_Tx_Descriptors+0x248>)
  20120. 8008eb2: 4013 ands r3, r2
  20121. 8008eb4: 6b3a ldr r2, [r7, #48] @ 0x30
  20122. 8008eb6: 6093 str r3, [r2, #8]
  20123. }
  20124. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_TSO) != (uint32_t)RESET)
  20125. 8008eb8: 68bb ldr r3, [r7, #8]
  20126. 8008eba: 681b ldr r3, [r3, #0]
  20127. 8008ebc: f003 0310 and.w r3, r3, #16
  20128. 8008ec0: 2b00 cmp r3, #0
  20129. 8008ec2: d021 beq.n 8008f08 <ETH_Prepare_Tx_Descriptors+0x250>
  20130. {
  20131. /* Set TCP Header length */
  20132. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_THL, (pTxConfig->TCPHeaderLen << 19));
  20133. 8008ec4: 6b3b ldr r3, [r7, #48] @ 0x30
  20134. 8008ec6: 68db ldr r3, [r3, #12]
  20135. 8008ec8: f423 02f0 bic.w r2, r3, #7864320 @ 0x780000
  20136. 8008ecc: 68bb ldr r3, [r7, #8]
  20137. 8008ece: 6a1b ldr r3, [r3, #32]
  20138. 8008ed0: 04db lsls r3, r3, #19
  20139. 8008ed2: 431a orrs r2, r3
  20140. 8008ed4: 6b3b ldr r3, [r7, #48] @ 0x30
  20141. 8008ed6: 60da str r2, [r3, #12]
  20142. /* Set TCP payload length */
  20143. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_TPL, pTxConfig->PayloadLen);
  20144. 8008ed8: 6b3b ldr r3, [r7, #48] @ 0x30
  20145. 8008eda: 68da ldr r2, [r3, #12]
  20146. 8008edc: 4b09 ldr r3, [pc, #36] @ (8008f04 <ETH_Prepare_Tx_Descriptors+0x24c>)
  20147. 8008ede: 4013 ands r3, r2
  20148. 8008ee0: 68ba ldr r2, [r7, #8]
  20149. 8008ee2: 69d2 ldr r2, [r2, #28]
  20150. 8008ee4: 431a orrs r2, r3
  20151. 8008ee6: 6b3b ldr r3, [r7, #48] @ 0x30
  20152. 8008ee8: 60da str r2, [r3, #12]
  20153. /* Set TCP Segmentation Enabled bit */
  20154. SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_TSE);
  20155. 8008eea: 6b3b ldr r3, [r7, #48] @ 0x30
  20156. 8008eec: 68db ldr r3, [r3, #12]
  20157. 8008eee: f443 2280 orr.w r2, r3, #262144 @ 0x40000
  20158. 8008ef2: 6b3b ldr r3, [r7, #48] @ 0x30
  20159. 8008ef4: 60da str r2, [r3, #12]
  20160. 8008ef6: e02e b.n 8008f56 <ETH_Prepare_Tx_Descriptors+0x29e>
  20161. 8008ef8: ffff0000 .word 0xffff0000
  20162. 8008efc: ffffc000 .word 0xffffc000
  20163. 8008f00: c000ffff .word 0xc000ffff
  20164. 8008f04: fffc0000 .word 0xfffc0000
  20165. }
  20166. else
  20167. {
  20168. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_FL, pTxConfig->Length);
  20169. 8008f08: 6b3b ldr r3, [r7, #48] @ 0x30
  20170. 8008f0a: 68da ldr r2, [r3, #12]
  20171. 8008f0c: 4b7b ldr r3, [pc, #492] @ (80090fc <ETH_Prepare_Tx_Descriptors+0x444>)
  20172. 8008f0e: 4013 ands r3, r2
  20173. 8008f10: 68ba ldr r2, [r7, #8]
  20174. 8008f12: 6852 ldr r2, [r2, #4]
  20175. 8008f14: 431a orrs r2, r3
  20176. 8008f16: 6b3b ldr r3, [r7, #48] @ 0x30
  20177. 8008f18: 60da str r2, [r3, #12]
  20178. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_CSUM) != (uint32_t)RESET)
  20179. 8008f1a: 68bb ldr r3, [r7, #8]
  20180. 8008f1c: 681b ldr r3, [r3, #0]
  20181. 8008f1e: f003 0301 and.w r3, r3, #1
  20182. 8008f22: 2b00 cmp r3, #0
  20183. 8008f24: d008 beq.n 8008f38 <ETH_Prepare_Tx_Descriptors+0x280>
  20184. {
  20185. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CIC, pTxConfig->ChecksumCtrl);
  20186. 8008f26: 6b3b ldr r3, [r7, #48] @ 0x30
  20187. 8008f28: 68db ldr r3, [r3, #12]
  20188. 8008f2a: f423 3240 bic.w r2, r3, #196608 @ 0x30000
  20189. 8008f2e: 68bb ldr r3, [r7, #8]
  20190. 8008f30: 695b ldr r3, [r3, #20]
  20191. 8008f32: 431a orrs r2, r3
  20192. 8008f34: 6b3b ldr r3, [r7, #48] @ 0x30
  20193. 8008f36: 60da str r2, [r3, #12]
  20194. }
  20195. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_CRCPAD) != (uint32_t)RESET)
  20196. 8008f38: 68bb ldr r3, [r7, #8]
  20197. 8008f3a: 681b ldr r3, [r3, #0]
  20198. 8008f3c: f003 0320 and.w r3, r3, #32
  20199. 8008f40: 2b00 cmp r3, #0
  20200. 8008f42: d008 beq.n 8008f56 <ETH_Prepare_Tx_Descriptors+0x29e>
  20201. {
  20202. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CPC, pTxConfig->CRCPadCtrl);
  20203. 8008f44: 6b3b ldr r3, [r7, #48] @ 0x30
  20204. 8008f46: 68db ldr r3, [r3, #12]
  20205. 8008f48: f023 6240 bic.w r2, r3, #201326592 @ 0xc000000
  20206. 8008f4c: 68bb ldr r3, [r7, #8]
  20207. 8008f4e: 691b ldr r3, [r3, #16]
  20208. 8008f50: 431a orrs r2, r3
  20209. 8008f52: 6b3b ldr r3, [r7, #48] @ 0x30
  20210. 8008f54: 60da str r2, [r3, #12]
  20211. }
  20212. }
  20213. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_VLANTAG) != (uint32_t)RESET)
  20214. 8008f56: 68bb ldr r3, [r7, #8]
  20215. 8008f58: 681b ldr r3, [r3, #0]
  20216. 8008f5a: f003 0304 and.w r3, r3, #4
  20217. 8008f5e: 2b00 cmp r3, #0
  20218. 8008f60: d008 beq.n 8008f74 <ETH_Prepare_Tx_Descriptors+0x2bc>
  20219. {
  20220. /* Set Vlan Tag control */
  20221. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_VTIR, pTxConfig->VlanCtrl);
  20222. 8008f62: 6b3b ldr r3, [r7, #48] @ 0x30
  20223. 8008f64: 689b ldr r3, [r3, #8]
  20224. 8008f66: f423 4240 bic.w r2, r3, #49152 @ 0xc000
  20225. 8008f6a: 68bb ldr r3, [r7, #8]
  20226. 8008f6c: 6a9b ldr r3, [r3, #40] @ 0x28
  20227. 8008f6e: 431a orrs r2, r3
  20228. 8008f70: 6b3b ldr r3, [r7, #48] @ 0x30
  20229. 8008f72: 609a str r2, [r3, #8]
  20230. }
  20231. /* Mark it as First Descriptor */
  20232. SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_FD);
  20233. 8008f74: 6b3b ldr r3, [r7, #48] @ 0x30
  20234. 8008f76: 68db ldr r3, [r3, #12]
  20235. 8008f78: f043 5200 orr.w r2, r3, #536870912 @ 0x20000000
  20236. 8008f7c: 6b3b ldr r3, [r7, #48] @ 0x30
  20237. 8008f7e: 60da str r2, [r3, #12]
  20238. /* Mark it as NORMAL descriptor */
  20239. CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CTXT);
  20240. 8008f80: 6b3b ldr r3, [r7, #48] @ 0x30
  20241. 8008f82: 68db ldr r3, [r3, #12]
  20242. 8008f84: f023 4280 bic.w r2, r3, #1073741824 @ 0x40000000
  20243. 8008f88: 6b3b ldr r3, [r7, #48] @ 0x30
  20244. 8008f8a: 60da str r2, [r3, #12]
  20245. __ASM volatile ("dmb 0xF":::"memory");
  20246. 8008f8c: f3bf 8f5f dmb sy
  20247. }
  20248. 8008f90: bf00 nop
  20249. /* Ensure rest of descriptor is written to RAM before the OWN bit */
  20250. __DMB();
  20251. /* set OWN bit of FIRST descriptor */
  20252. SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_OWN);
  20253. 8008f92: 6b3b ldr r3, [r7, #48] @ 0x30
  20254. 8008f94: 68db ldr r3, [r3, #12]
  20255. 8008f96: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000
  20256. 8008f9a: 6b3b ldr r3, [r7, #48] @ 0x30
  20257. 8008f9c: 60da str r2, [r3, #12]
  20258. /* If source address insertion/replacement is enabled for this packet */
  20259. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_SAIC) != (uint32_t)RESET)
  20260. 8008f9e: 68bb ldr r3, [r7, #8]
  20261. 8008fa0: 681b ldr r3, [r3, #0]
  20262. 8008fa2: f003 0302 and.w r3, r3, #2
  20263. 8008fa6: 2b00 cmp r3, #0
  20264. 8008fa8: f000 80da beq.w 8009160 <ETH_Prepare_Tx_Descriptors+0x4a8>
  20265. {
  20266. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_SAIC, pTxConfig->SrcAddrCtrl);
  20267. 8008fac: 6b3b ldr r3, [r7, #48] @ 0x30
  20268. 8008fae: 68db ldr r3, [r3, #12]
  20269. 8008fb0: f023 7260 bic.w r2, r3, #58720256 @ 0x3800000
  20270. 8008fb4: 68bb ldr r3, [r7, #8]
  20271. 8008fb6: 68db ldr r3, [r3, #12]
  20272. 8008fb8: 431a orrs r2, r3
  20273. 8008fba: 6b3b ldr r3, [r7, #48] @ 0x30
  20274. 8008fbc: 60da str r2, [r3, #12]
  20275. }
  20276. /* only if the packet is split into more than one descriptors > 1 */
  20277. while (txbuffer->next != NULL)
  20278. 8008fbe: e0cf b.n 8009160 <ETH_Prepare_Tx_Descriptors+0x4a8>
  20279. {
  20280. /* Clear the LD bit of previous descriptor */
  20281. CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_LD);
  20282. 8008fc0: 6b3b ldr r3, [r7, #48] @ 0x30
  20283. 8008fc2: 68db ldr r3, [r3, #12]
  20284. 8008fc4: f023 5280 bic.w r2, r3, #268435456 @ 0x10000000
  20285. 8008fc8: 6b3b ldr r3, [r7, #48] @ 0x30
  20286. 8008fca: 60da str r2, [r3, #12]
  20287. /* Increment current tx descriptor index */
  20288. INCR_TX_DESC_INDEX(descidx, 1U);
  20289. 8008fcc: 6bfb ldr r3, [r7, #60] @ 0x3c
  20290. 8008fce: 3301 adds r3, #1
  20291. 8008fd0: 63fb str r3, [r7, #60] @ 0x3c
  20292. 8008fd2: 6bfb ldr r3, [r7, #60] @ 0x3c
  20293. 8008fd4: 2b03 cmp r3, #3
  20294. 8008fd6: d902 bls.n 8008fde <ETH_Prepare_Tx_Descriptors+0x326>
  20295. 8008fd8: 6bfb ldr r3, [r7, #60] @ 0x3c
  20296. 8008fda: 3b04 subs r3, #4
  20297. 8008fdc: 63fb str r3, [r7, #60] @ 0x3c
  20298. /* Get current descriptor address */
  20299. dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx];
  20300. 8008fde: 6a7b ldr r3, [r7, #36] @ 0x24
  20301. 8008fe0: 6bfa ldr r2, [r7, #60] @ 0x3c
  20302. 8008fe2: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  20303. 8008fe6: 633b str r3, [r7, #48] @ 0x30
  20304. /* Clear the FD bit of new Descriptor */
  20305. CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_FD);
  20306. 8008fe8: 6b3b ldr r3, [r7, #48] @ 0x30
  20307. 8008fea: 68db ldr r3, [r3, #12]
  20308. 8008fec: f023 5200 bic.w r2, r3, #536870912 @ 0x20000000
  20309. 8008ff0: 6b3b ldr r3, [r7, #48] @ 0x30
  20310. 8008ff2: 60da str r2, [r3, #12]
  20311. /* Current Tx Descriptor Owned by DMA: cannot be used by the application */
  20312. if ((READ_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_OWN) == ETH_DMATXNDESCRF_OWN)
  20313. 8008ff4: 6b3b ldr r3, [r7, #48] @ 0x30
  20314. 8008ff6: 68db ldr r3, [r3, #12]
  20315. 8008ff8: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  20316. 8008ffc: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  20317. 8009000: d007 beq.n 8009012 <ETH_Prepare_Tx_Descriptors+0x35a>
  20318. || (dmatxdesclist->PacketAddress[descidx] != NULL))
  20319. 8009002: 6a7a ldr r2, [r7, #36] @ 0x24
  20320. 8009004: 6bfb ldr r3, [r7, #60] @ 0x3c
  20321. 8009006: 3304 adds r3, #4
  20322. 8009008: 009b lsls r3, r3, #2
  20323. 800900a: 4413 add r3, r2
  20324. 800900c: 685b ldr r3, [r3, #4]
  20325. 800900e: 2b00 cmp r3, #0
  20326. 8009010: d029 beq.n 8009066 <ETH_Prepare_Tx_Descriptors+0x3ae>
  20327. {
  20328. descidx = firstdescidx;
  20329. 8009012: 6a3b ldr r3, [r7, #32]
  20330. 8009014: 63fb str r3, [r7, #60] @ 0x3c
  20331. dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx];
  20332. 8009016: 6a7b ldr r3, [r7, #36] @ 0x24
  20333. 8009018: 6bfa ldr r2, [r7, #60] @ 0x3c
  20334. 800901a: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  20335. 800901e: 633b str r3, [r7, #48] @ 0x30
  20336. /* clear previous desc own bit */
  20337. for (idx = 0; idx < descnbr; idx ++)
  20338. 8009020: 2300 movs r3, #0
  20339. 8009022: 63bb str r3, [r7, #56] @ 0x38
  20340. 8009024: e019 b.n 800905a <ETH_Prepare_Tx_Descriptors+0x3a2>
  20341. __ASM volatile ("dmb 0xF":::"memory");
  20342. 8009026: f3bf 8f5f dmb sy
  20343. }
  20344. 800902a: bf00 nop
  20345. {
  20346. /* Ensure rest of descriptor is written to RAM before the OWN bit */
  20347. __DMB();
  20348. CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_OWN);
  20349. 800902c: 6b3b ldr r3, [r7, #48] @ 0x30
  20350. 800902e: 68db ldr r3, [r3, #12]
  20351. 8009030: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000
  20352. 8009034: 6b3b ldr r3, [r7, #48] @ 0x30
  20353. 8009036: 60da str r2, [r3, #12]
  20354. /* Increment current tx descriptor index */
  20355. INCR_TX_DESC_INDEX(descidx, 1U);
  20356. 8009038: 6bfb ldr r3, [r7, #60] @ 0x3c
  20357. 800903a: 3301 adds r3, #1
  20358. 800903c: 63fb str r3, [r7, #60] @ 0x3c
  20359. 800903e: 6bfb ldr r3, [r7, #60] @ 0x3c
  20360. 8009040: 2b03 cmp r3, #3
  20361. 8009042: d902 bls.n 800904a <ETH_Prepare_Tx_Descriptors+0x392>
  20362. 8009044: 6bfb ldr r3, [r7, #60] @ 0x3c
  20363. 8009046: 3b04 subs r3, #4
  20364. 8009048: 63fb str r3, [r7, #60] @ 0x3c
  20365. /* Get current descriptor address */
  20366. dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx];
  20367. 800904a: 6a7b ldr r3, [r7, #36] @ 0x24
  20368. 800904c: 6bfa ldr r2, [r7, #60] @ 0x3c
  20369. 800904e: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  20370. 8009052: 633b str r3, [r7, #48] @ 0x30
  20371. for (idx = 0; idx < descnbr; idx ++)
  20372. 8009054: 6bbb ldr r3, [r7, #56] @ 0x38
  20373. 8009056: 3301 adds r3, #1
  20374. 8009058: 63bb str r3, [r7, #56] @ 0x38
  20375. 800905a: 6bba ldr r2, [r7, #56] @ 0x38
  20376. 800905c: 6b7b ldr r3, [r7, #52] @ 0x34
  20377. 800905e: 429a cmp r2, r3
  20378. 8009060: d3e1 bcc.n 8009026 <ETH_Prepare_Tx_Descriptors+0x36e>
  20379. }
  20380. return HAL_ETH_ERROR_BUSY;
  20381. 8009062: 2302 movs r3, #2
  20382. 8009064: e0bb b.n 80091de <ETH_Prepare_Tx_Descriptors+0x526>
  20383. }
  20384. descnbr += 1U;
  20385. 8009066: 6b7b ldr r3, [r7, #52] @ 0x34
  20386. 8009068: 3301 adds r3, #1
  20387. 800906a: 637b str r3, [r7, #52] @ 0x34
  20388. /* Get the next Tx buffer in the list */
  20389. txbuffer = txbuffer->next;
  20390. 800906c: 6afb ldr r3, [r7, #44] @ 0x2c
  20391. 800906e: 689b ldr r3, [r3, #8]
  20392. 8009070: 62fb str r3, [r7, #44] @ 0x2c
  20393. /* Set header or buffer 1 address */
  20394. WRITE_REG(dmatxdesc->DESC0, (uint32_t)txbuffer->buffer);
  20395. 8009072: 6afb ldr r3, [r7, #44] @ 0x2c
  20396. 8009074: 681b ldr r3, [r3, #0]
  20397. 8009076: 461a mov r2, r3
  20398. 8009078: 6b3b ldr r3, [r7, #48] @ 0x30
  20399. 800907a: 601a str r2, [r3, #0]
  20400. /* Set header or buffer 1 Length */
  20401. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B1L, txbuffer->len);
  20402. 800907c: 6b3b ldr r3, [r7, #48] @ 0x30
  20403. 800907e: 689a ldr r2, [r3, #8]
  20404. 8009080: 4b1f ldr r3, [pc, #124] @ (8009100 <ETH_Prepare_Tx_Descriptors+0x448>)
  20405. 8009082: 4013 ands r3, r2
  20406. 8009084: 6afa ldr r2, [r7, #44] @ 0x2c
  20407. 8009086: 6852 ldr r2, [r2, #4]
  20408. 8009088: 431a orrs r2, r3
  20409. 800908a: 6b3b ldr r3, [r7, #48] @ 0x30
  20410. 800908c: 609a str r2, [r3, #8]
  20411. if (txbuffer->next != NULL)
  20412. 800908e: 6afb ldr r3, [r7, #44] @ 0x2c
  20413. 8009090: 689b ldr r3, [r3, #8]
  20414. 8009092: 2b00 cmp r3, #0
  20415. 8009094: d012 beq.n 80090bc <ETH_Prepare_Tx_Descriptors+0x404>
  20416. {
  20417. /* Get the next Tx buffer in the list */
  20418. txbuffer = txbuffer->next;
  20419. 8009096: 6afb ldr r3, [r7, #44] @ 0x2c
  20420. 8009098: 689b ldr r3, [r3, #8]
  20421. 800909a: 62fb str r3, [r7, #44] @ 0x2c
  20422. /* Set buffer 2 address */
  20423. WRITE_REG(dmatxdesc->DESC1, (uint32_t)txbuffer->buffer);
  20424. 800909c: 6afb ldr r3, [r7, #44] @ 0x2c
  20425. 800909e: 681b ldr r3, [r3, #0]
  20426. 80090a0: 461a mov r2, r3
  20427. 80090a2: 6b3b ldr r3, [r7, #48] @ 0x30
  20428. 80090a4: 605a str r2, [r3, #4]
  20429. /* Set buffer 2 Length */
  20430. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B2L, (txbuffer->len << 16));
  20431. 80090a6: 6b3b ldr r3, [r7, #48] @ 0x30
  20432. 80090a8: 689a ldr r2, [r3, #8]
  20433. 80090aa: 4b16 ldr r3, [pc, #88] @ (8009104 <ETH_Prepare_Tx_Descriptors+0x44c>)
  20434. 80090ac: 4013 ands r3, r2
  20435. 80090ae: 6afa ldr r2, [r7, #44] @ 0x2c
  20436. 80090b0: 6852 ldr r2, [r2, #4]
  20437. 80090b2: 0412 lsls r2, r2, #16
  20438. 80090b4: 431a orrs r2, r3
  20439. 80090b6: 6b3b ldr r3, [r7, #48] @ 0x30
  20440. 80090b8: 609a str r2, [r3, #8]
  20441. 80090ba: e008 b.n 80090ce <ETH_Prepare_Tx_Descriptors+0x416>
  20442. }
  20443. else
  20444. {
  20445. WRITE_REG(dmatxdesc->DESC1, 0x0U);
  20446. 80090bc: 6b3b ldr r3, [r7, #48] @ 0x30
  20447. 80090be: 2200 movs r2, #0
  20448. 80090c0: 605a str r2, [r3, #4]
  20449. /* Set buffer 2 Length */
  20450. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B2L, 0x0U);
  20451. 80090c2: 6b3b ldr r3, [r7, #48] @ 0x30
  20452. 80090c4: 689a ldr r2, [r3, #8]
  20453. 80090c6: 4b0f ldr r3, [pc, #60] @ (8009104 <ETH_Prepare_Tx_Descriptors+0x44c>)
  20454. 80090c8: 4013 ands r3, r2
  20455. 80090ca: 6b3a ldr r2, [r7, #48] @ 0x30
  20456. 80090cc: 6093 str r3, [r2, #8]
  20457. }
  20458. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_TSO) != (uint32_t)RESET)
  20459. 80090ce: 68bb ldr r3, [r7, #8]
  20460. 80090d0: 681b ldr r3, [r3, #0]
  20461. 80090d2: f003 0310 and.w r3, r3, #16
  20462. 80090d6: 2b00 cmp r3, #0
  20463. 80090d8: d018 beq.n 800910c <ETH_Prepare_Tx_Descriptors+0x454>
  20464. {
  20465. /* Set TCP payload length */
  20466. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_TPL, pTxConfig->PayloadLen);
  20467. 80090da: 6b3b ldr r3, [r7, #48] @ 0x30
  20468. 80090dc: 68da ldr r2, [r3, #12]
  20469. 80090de: 4b0a ldr r3, [pc, #40] @ (8009108 <ETH_Prepare_Tx_Descriptors+0x450>)
  20470. 80090e0: 4013 ands r3, r2
  20471. 80090e2: 68ba ldr r2, [r7, #8]
  20472. 80090e4: 69d2 ldr r2, [r2, #28]
  20473. 80090e6: 431a orrs r2, r3
  20474. 80090e8: 6b3b ldr r3, [r7, #48] @ 0x30
  20475. 80090ea: 60da str r2, [r3, #12]
  20476. /* Set TCP Segmentation Enabled bit */
  20477. SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_TSE);
  20478. 80090ec: 6b3b ldr r3, [r7, #48] @ 0x30
  20479. 80090ee: 68db ldr r3, [r3, #12]
  20480. 80090f0: f443 2280 orr.w r2, r3, #262144 @ 0x40000
  20481. 80090f4: 6b3b ldr r3, [r7, #48] @ 0x30
  20482. 80090f6: 60da str r2, [r3, #12]
  20483. 80090f8: e020 b.n 800913c <ETH_Prepare_Tx_Descriptors+0x484>
  20484. 80090fa: bf00 nop
  20485. 80090fc: ffff8000 .word 0xffff8000
  20486. 8009100: ffffc000 .word 0xffffc000
  20487. 8009104: c000ffff .word 0xc000ffff
  20488. 8009108: fffc0000 .word 0xfffc0000
  20489. }
  20490. else
  20491. {
  20492. /* Set the packet length */
  20493. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_FL, pTxConfig->Length);
  20494. 800910c: 6b3b ldr r3, [r7, #48] @ 0x30
  20495. 800910e: 68da ldr r2, [r3, #12]
  20496. 8009110: 4b36 ldr r3, [pc, #216] @ (80091ec <ETH_Prepare_Tx_Descriptors+0x534>)
  20497. 8009112: 4013 ands r3, r2
  20498. 8009114: 68ba ldr r2, [r7, #8]
  20499. 8009116: 6852 ldr r2, [r2, #4]
  20500. 8009118: 431a orrs r2, r3
  20501. 800911a: 6b3b ldr r3, [r7, #48] @ 0x30
  20502. 800911c: 60da str r2, [r3, #12]
  20503. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_CSUM) != (uint32_t)RESET)
  20504. 800911e: 68bb ldr r3, [r7, #8]
  20505. 8009120: 681b ldr r3, [r3, #0]
  20506. 8009122: f003 0301 and.w r3, r3, #1
  20507. 8009126: 2b00 cmp r3, #0
  20508. 8009128: d008 beq.n 800913c <ETH_Prepare_Tx_Descriptors+0x484>
  20509. {
  20510. /* Checksum Insertion Control */
  20511. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CIC, pTxConfig->ChecksumCtrl);
  20512. 800912a: 6b3b ldr r3, [r7, #48] @ 0x30
  20513. 800912c: 68db ldr r3, [r3, #12]
  20514. 800912e: f423 3240 bic.w r2, r3, #196608 @ 0x30000
  20515. 8009132: 68bb ldr r3, [r7, #8]
  20516. 8009134: 695b ldr r3, [r3, #20]
  20517. 8009136: 431a orrs r2, r3
  20518. 8009138: 6b3b ldr r3, [r7, #48] @ 0x30
  20519. 800913a: 60da str r2, [r3, #12]
  20520. }
  20521. }
  20522. bd_count += 1U;
  20523. 800913c: 6abb ldr r3, [r7, #40] @ 0x28
  20524. 800913e: 3301 adds r3, #1
  20525. 8009140: 62bb str r3, [r7, #40] @ 0x28
  20526. __ASM volatile ("dmb 0xF":::"memory");
  20527. 8009142: f3bf 8f5f dmb sy
  20528. }
  20529. 8009146: bf00 nop
  20530. /* Ensure rest of descriptor is written to RAM before the OWN bit */
  20531. __DMB();
  20532. /* Set Own bit */
  20533. SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_OWN);
  20534. 8009148: 6b3b ldr r3, [r7, #48] @ 0x30
  20535. 800914a: 68db ldr r3, [r3, #12]
  20536. 800914c: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000
  20537. 8009150: 6b3b ldr r3, [r7, #48] @ 0x30
  20538. 8009152: 60da str r2, [r3, #12]
  20539. /* Mark it as NORMAL descriptor */
  20540. CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CTXT);
  20541. 8009154: 6b3b ldr r3, [r7, #48] @ 0x30
  20542. 8009156: 68db ldr r3, [r3, #12]
  20543. 8009158: f023 4280 bic.w r2, r3, #1073741824 @ 0x40000000
  20544. 800915c: 6b3b ldr r3, [r7, #48] @ 0x30
  20545. 800915e: 60da str r2, [r3, #12]
  20546. while (txbuffer->next != NULL)
  20547. 8009160: 6afb ldr r3, [r7, #44] @ 0x2c
  20548. 8009162: 689b ldr r3, [r3, #8]
  20549. 8009164: 2b00 cmp r3, #0
  20550. 8009166: f47f af2b bne.w 8008fc0 <ETH_Prepare_Tx_Descriptors+0x308>
  20551. }
  20552. if (ItMode != ((uint32_t)RESET))
  20553. 800916a: 687b ldr r3, [r7, #4]
  20554. 800916c: 2b00 cmp r3, #0
  20555. 800916e: d006 beq.n 800917e <ETH_Prepare_Tx_Descriptors+0x4c6>
  20556. {
  20557. /* Set Interrupt on completion bit */
  20558. SET_BIT(dmatxdesc->DESC2, ETH_DMATXNDESCRF_IOC);
  20559. 8009170: 6b3b ldr r3, [r7, #48] @ 0x30
  20560. 8009172: 689b ldr r3, [r3, #8]
  20561. 8009174: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000
  20562. 8009178: 6b3b ldr r3, [r7, #48] @ 0x30
  20563. 800917a: 609a str r2, [r3, #8]
  20564. 800917c: e005 b.n 800918a <ETH_Prepare_Tx_Descriptors+0x4d2>
  20565. }
  20566. else
  20567. {
  20568. /* Clear Interrupt on completion bit */
  20569. CLEAR_BIT(dmatxdesc->DESC2, ETH_DMATXNDESCRF_IOC);
  20570. 800917e: 6b3b ldr r3, [r7, #48] @ 0x30
  20571. 8009180: 689b ldr r3, [r3, #8]
  20572. 8009182: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000
  20573. 8009186: 6b3b ldr r3, [r7, #48] @ 0x30
  20574. 8009188: 609a str r2, [r3, #8]
  20575. }
  20576. /* Mark it as LAST descriptor */
  20577. SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_LD);
  20578. 800918a: 6b3b ldr r3, [r7, #48] @ 0x30
  20579. 800918c: 68db ldr r3, [r3, #12]
  20580. 800918e: f043 5280 orr.w r2, r3, #268435456 @ 0x10000000
  20581. 8009192: 6b3b ldr r3, [r7, #48] @ 0x30
  20582. 8009194: 60da str r2, [r3, #12]
  20583. /* Save the current packet address to expose it to the application */
  20584. dmatxdesclist->PacketAddress[descidx] = dmatxdesclist->CurrentPacketAddress;
  20585. 8009196: 6a7b ldr r3, [r7, #36] @ 0x24
  20586. 8009198: 6a5a ldr r2, [r3, #36] @ 0x24
  20587. 800919a: 6a79 ldr r1, [r7, #36] @ 0x24
  20588. 800919c: 6bfb ldr r3, [r7, #60] @ 0x3c
  20589. 800919e: 3304 adds r3, #4
  20590. 80091a0: 009b lsls r3, r3, #2
  20591. 80091a2: 440b add r3, r1
  20592. 80091a4: 605a str r2, [r3, #4]
  20593. dmatxdesclist->CurTxDesc = descidx;
  20594. 80091a6: 6a7b ldr r3, [r7, #36] @ 0x24
  20595. 80091a8: 6bfa ldr r2, [r7, #60] @ 0x3c
  20596. 80091aa: 611a str r2, [r3, #16]
  20597. __ASM volatile ("MRS %0, primask" : "=r" (result) :: "memory");
  20598. 80091ac: f3ef 8310 mrs r3, PRIMASK
  20599. 80091b0: 613b str r3, [r7, #16]
  20600. return(result);
  20601. 80091b2: 693b ldr r3, [r7, #16]
  20602. /* Enter critical section */
  20603. primask_bit = __get_PRIMASK();
  20604. 80091b4: 61fb str r3, [r7, #28]
  20605. 80091b6: 2301 movs r3, #1
  20606. 80091b8: 617b str r3, [r7, #20]
  20607. __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory");
  20608. 80091ba: 697b ldr r3, [r7, #20]
  20609. 80091bc: f383 8810 msr PRIMASK, r3
  20610. }
  20611. 80091c0: bf00 nop
  20612. __set_PRIMASK(1);
  20613. dmatxdesclist->BuffersInUse += bd_count + 1U;
  20614. 80091c2: 6a7b ldr r3, [r7, #36] @ 0x24
  20615. 80091c4: 6a9a ldr r2, [r3, #40] @ 0x28
  20616. 80091c6: 6abb ldr r3, [r7, #40] @ 0x28
  20617. 80091c8: 4413 add r3, r2
  20618. 80091ca: 1c5a adds r2, r3, #1
  20619. 80091cc: 6a7b ldr r3, [r7, #36] @ 0x24
  20620. 80091ce: 629a str r2, [r3, #40] @ 0x28
  20621. 80091d0: 69fb ldr r3, [r7, #28]
  20622. 80091d2: 61bb str r3, [r7, #24]
  20623. __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory");
  20624. 80091d4: 69bb ldr r3, [r7, #24]
  20625. 80091d6: f383 8810 msr PRIMASK, r3
  20626. }
  20627. 80091da: bf00 nop
  20628. /* Exit critical section: restore previous priority mask */
  20629. __set_PRIMASK(primask_bit);
  20630. /* Return function status */
  20631. return HAL_ETH_ERROR_NONE;
  20632. 80091dc: 2300 movs r3, #0
  20633. }
  20634. 80091de: 4618 mov r0, r3
  20635. 80091e0: 3744 adds r7, #68 @ 0x44
  20636. 80091e2: 46bd mov sp, r7
  20637. 80091e4: f85d 7b04 ldr.w r7, [sp], #4
  20638. 80091e8: 4770 bx lr
  20639. 80091ea: bf00 nop
  20640. 80091ec: ffff8000 .word 0xffff8000
  20641. 080091f0 <HAL_GPIO_Init>:
  20642. * @param GPIO_Init: pointer to a GPIO_InitTypeDef structure that contains
  20643. * the configuration information for the specified GPIO peripheral.
  20644. * @retval None
  20645. */
  20646. void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
  20647. {
  20648. 80091f0: b480 push {r7}
  20649. 80091f2: b089 sub sp, #36 @ 0x24
  20650. 80091f4: af00 add r7, sp, #0
  20651. 80091f6: 6078 str r0, [r7, #4]
  20652. 80091f8: 6039 str r1, [r7, #0]
  20653. uint32_t position = 0x00U;
  20654. 80091fa: 2300 movs r3, #0
  20655. 80091fc: 61fb str r3, [r7, #28]
  20656. EXTI_Core_TypeDef *EXTI_CurrentCPU;
  20657. #if defined(DUAL_CORE) && defined(CORE_CM4)
  20658. EXTI_CurrentCPU = EXTI_D2; /* EXTI for CM4 CPU */
  20659. #else
  20660. EXTI_CurrentCPU = EXTI_D1; /* EXTI for CM7 CPU */
  20661. 80091fe: 4b89 ldr r3, [pc, #548] @ (8009424 <HAL_GPIO_Init+0x234>)
  20662. 8009200: 617b str r3, [r7, #20]
  20663. assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
  20664. assert_param(IS_GPIO_PIN(GPIO_Init->Pin));
  20665. assert_param(IS_GPIO_MODE(GPIO_Init->Mode));
  20666. /* Configure the port pins */
  20667. while (((GPIO_Init->Pin) >> position) != 0x00U)
  20668. 8009202: e194 b.n 800952e <HAL_GPIO_Init+0x33e>
  20669. {
  20670. /* Get current io position */
  20671. iocurrent = (GPIO_Init->Pin) & (1UL << position);
  20672. 8009204: 683b ldr r3, [r7, #0]
  20673. 8009206: 681a ldr r2, [r3, #0]
  20674. 8009208: 2101 movs r1, #1
  20675. 800920a: 69fb ldr r3, [r7, #28]
  20676. 800920c: fa01 f303 lsl.w r3, r1, r3
  20677. 8009210: 4013 ands r3, r2
  20678. 8009212: 613b str r3, [r7, #16]
  20679. if (iocurrent != 0x00U)
  20680. 8009214: 693b ldr r3, [r7, #16]
  20681. 8009216: 2b00 cmp r3, #0
  20682. 8009218: f000 8186 beq.w 8009528 <HAL_GPIO_Init+0x338>
  20683. {
  20684. /*--------------------- GPIO Mode Configuration ------------------------*/
  20685. /* In case of Output or Alternate function mode selection */
  20686. if (((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF))
  20687. 800921c: 683b ldr r3, [r7, #0]
  20688. 800921e: 685b ldr r3, [r3, #4]
  20689. 8009220: f003 0303 and.w r3, r3, #3
  20690. 8009224: 2b01 cmp r3, #1
  20691. 8009226: d005 beq.n 8009234 <HAL_GPIO_Init+0x44>
  20692. 8009228: 683b ldr r3, [r7, #0]
  20693. 800922a: 685b ldr r3, [r3, #4]
  20694. 800922c: f003 0303 and.w r3, r3, #3
  20695. 8009230: 2b02 cmp r3, #2
  20696. 8009232: d130 bne.n 8009296 <HAL_GPIO_Init+0xa6>
  20697. {
  20698. /* Check the Speed parameter */
  20699. assert_param(IS_GPIO_SPEED(GPIO_Init->Speed));
  20700. /* Configure the IO Speed */
  20701. temp = GPIOx->OSPEEDR;
  20702. 8009234: 687b ldr r3, [r7, #4]
  20703. 8009236: 689b ldr r3, [r3, #8]
  20704. 8009238: 61bb str r3, [r7, #24]
  20705. temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U));
  20706. 800923a: 69fb ldr r3, [r7, #28]
  20707. 800923c: 005b lsls r3, r3, #1
  20708. 800923e: 2203 movs r2, #3
  20709. 8009240: fa02 f303 lsl.w r3, r2, r3
  20710. 8009244: 43db mvns r3, r3
  20711. 8009246: 69ba ldr r2, [r7, #24]
  20712. 8009248: 4013 ands r3, r2
  20713. 800924a: 61bb str r3, [r7, #24]
  20714. temp |= (GPIO_Init->Speed << (position * 2U));
  20715. 800924c: 683b ldr r3, [r7, #0]
  20716. 800924e: 68da ldr r2, [r3, #12]
  20717. 8009250: 69fb ldr r3, [r7, #28]
  20718. 8009252: 005b lsls r3, r3, #1
  20719. 8009254: fa02 f303 lsl.w r3, r2, r3
  20720. 8009258: 69ba ldr r2, [r7, #24]
  20721. 800925a: 4313 orrs r3, r2
  20722. 800925c: 61bb str r3, [r7, #24]
  20723. GPIOx->OSPEEDR = temp;
  20724. 800925e: 687b ldr r3, [r7, #4]
  20725. 8009260: 69ba ldr r2, [r7, #24]
  20726. 8009262: 609a str r2, [r3, #8]
  20727. /* Configure the IO Output Type */
  20728. temp = GPIOx->OTYPER;
  20729. 8009264: 687b ldr r3, [r7, #4]
  20730. 8009266: 685b ldr r3, [r3, #4]
  20731. 8009268: 61bb str r3, [r7, #24]
  20732. temp &= ~(GPIO_OTYPER_OT0 << position) ;
  20733. 800926a: 2201 movs r2, #1
  20734. 800926c: 69fb ldr r3, [r7, #28]
  20735. 800926e: fa02 f303 lsl.w r3, r2, r3
  20736. 8009272: 43db mvns r3, r3
  20737. 8009274: 69ba ldr r2, [r7, #24]
  20738. 8009276: 4013 ands r3, r2
  20739. 8009278: 61bb str r3, [r7, #24]
  20740. temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position);
  20741. 800927a: 683b ldr r3, [r7, #0]
  20742. 800927c: 685b ldr r3, [r3, #4]
  20743. 800927e: 091b lsrs r3, r3, #4
  20744. 8009280: f003 0201 and.w r2, r3, #1
  20745. 8009284: 69fb ldr r3, [r7, #28]
  20746. 8009286: fa02 f303 lsl.w r3, r2, r3
  20747. 800928a: 69ba ldr r2, [r7, #24]
  20748. 800928c: 4313 orrs r3, r2
  20749. 800928e: 61bb str r3, [r7, #24]
  20750. GPIOx->OTYPER = temp;
  20751. 8009290: 687b ldr r3, [r7, #4]
  20752. 8009292: 69ba ldr r2, [r7, #24]
  20753. 8009294: 605a str r2, [r3, #4]
  20754. }
  20755. if ((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG)
  20756. 8009296: 683b ldr r3, [r7, #0]
  20757. 8009298: 685b ldr r3, [r3, #4]
  20758. 800929a: f003 0303 and.w r3, r3, #3
  20759. 800929e: 2b03 cmp r3, #3
  20760. 80092a0: d017 beq.n 80092d2 <HAL_GPIO_Init+0xe2>
  20761. {
  20762. /* Check the Pull parameter */
  20763. assert_param(IS_GPIO_PULL(GPIO_Init->Pull));
  20764. /* Activate the Pull-up or Pull down resistor for the current IO */
  20765. temp = GPIOx->PUPDR;
  20766. 80092a2: 687b ldr r3, [r7, #4]
  20767. 80092a4: 68db ldr r3, [r3, #12]
  20768. 80092a6: 61bb str r3, [r7, #24]
  20769. temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U));
  20770. 80092a8: 69fb ldr r3, [r7, #28]
  20771. 80092aa: 005b lsls r3, r3, #1
  20772. 80092ac: 2203 movs r2, #3
  20773. 80092ae: fa02 f303 lsl.w r3, r2, r3
  20774. 80092b2: 43db mvns r3, r3
  20775. 80092b4: 69ba ldr r2, [r7, #24]
  20776. 80092b6: 4013 ands r3, r2
  20777. 80092b8: 61bb str r3, [r7, #24]
  20778. temp |= ((GPIO_Init->Pull) << (position * 2U));
  20779. 80092ba: 683b ldr r3, [r7, #0]
  20780. 80092bc: 689a ldr r2, [r3, #8]
  20781. 80092be: 69fb ldr r3, [r7, #28]
  20782. 80092c0: 005b lsls r3, r3, #1
  20783. 80092c2: fa02 f303 lsl.w r3, r2, r3
  20784. 80092c6: 69ba ldr r2, [r7, #24]
  20785. 80092c8: 4313 orrs r3, r2
  20786. 80092ca: 61bb str r3, [r7, #24]
  20787. GPIOx->PUPDR = temp;
  20788. 80092cc: 687b ldr r3, [r7, #4]
  20789. 80092ce: 69ba ldr r2, [r7, #24]
  20790. 80092d0: 60da str r2, [r3, #12]
  20791. }
  20792. /* In case of Alternate function mode selection */
  20793. if ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF)
  20794. 80092d2: 683b ldr r3, [r7, #0]
  20795. 80092d4: 685b ldr r3, [r3, #4]
  20796. 80092d6: f003 0303 and.w r3, r3, #3
  20797. 80092da: 2b02 cmp r3, #2
  20798. 80092dc: d123 bne.n 8009326 <HAL_GPIO_Init+0x136>
  20799. /* Check the Alternate function parameters */
  20800. assert_param(IS_GPIO_AF_INSTANCE(GPIOx));
  20801. assert_param(IS_GPIO_AF(GPIO_Init->Alternate));
  20802. /* Configure Alternate function mapped with the current IO */
  20803. temp = GPIOx->AFR[position >> 3U];
  20804. 80092de: 69fb ldr r3, [r7, #28]
  20805. 80092e0: 08da lsrs r2, r3, #3
  20806. 80092e2: 687b ldr r3, [r7, #4]
  20807. 80092e4: 3208 adds r2, #8
  20808. 80092e6: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  20809. 80092ea: 61bb str r3, [r7, #24]
  20810. temp &= ~(0xFU << ((position & 0x07U) * 4U));
  20811. 80092ec: 69fb ldr r3, [r7, #28]
  20812. 80092ee: f003 0307 and.w r3, r3, #7
  20813. 80092f2: 009b lsls r3, r3, #2
  20814. 80092f4: 220f movs r2, #15
  20815. 80092f6: fa02 f303 lsl.w r3, r2, r3
  20816. 80092fa: 43db mvns r3, r3
  20817. 80092fc: 69ba ldr r2, [r7, #24]
  20818. 80092fe: 4013 ands r3, r2
  20819. 8009300: 61bb str r3, [r7, #24]
  20820. temp |= ((GPIO_Init->Alternate) << ((position & 0x07U) * 4U));
  20821. 8009302: 683b ldr r3, [r7, #0]
  20822. 8009304: 691a ldr r2, [r3, #16]
  20823. 8009306: 69fb ldr r3, [r7, #28]
  20824. 8009308: f003 0307 and.w r3, r3, #7
  20825. 800930c: 009b lsls r3, r3, #2
  20826. 800930e: fa02 f303 lsl.w r3, r2, r3
  20827. 8009312: 69ba ldr r2, [r7, #24]
  20828. 8009314: 4313 orrs r3, r2
  20829. 8009316: 61bb str r3, [r7, #24]
  20830. GPIOx->AFR[position >> 3U] = temp;
  20831. 8009318: 69fb ldr r3, [r7, #28]
  20832. 800931a: 08da lsrs r2, r3, #3
  20833. 800931c: 687b ldr r3, [r7, #4]
  20834. 800931e: 3208 adds r2, #8
  20835. 8009320: 69b9 ldr r1, [r7, #24]
  20836. 8009322: f843 1022 str.w r1, [r3, r2, lsl #2]
  20837. }
  20838. /* Configure IO Direction mode (Input, Output, Alternate or Analog) */
  20839. temp = GPIOx->MODER;
  20840. 8009326: 687b ldr r3, [r7, #4]
  20841. 8009328: 681b ldr r3, [r3, #0]
  20842. 800932a: 61bb str r3, [r7, #24]
  20843. temp &= ~(GPIO_MODER_MODE0 << (position * 2U));
  20844. 800932c: 69fb ldr r3, [r7, #28]
  20845. 800932e: 005b lsls r3, r3, #1
  20846. 8009330: 2203 movs r2, #3
  20847. 8009332: fa02 f303 lsl.w r3, r2, r3
  20848. 8009336: 43db mvns r3, r3
  20849. 8009338: 69ba ldr r2, [r7, #24]
  20850. 800933a: 4013 ands r3, r2
  20851. 800933c: 61bb str r3, [r7, #24]
  20852. temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U));
  20853. 800933e: 683b ldr r3, [r7, #0]
  20854. 8009340: 685b ldr r3, [r3, #4]
  20855. 8009342: f003 0203 and.w r2, r3, #3
  20856. 8009346: 69fb ldr r3, [r7, #28]
  20857. 8009348: 005b lsls r3, r3, #1
  20858. 800934a: fa02 f303 lsl.w r3, r2, r3
  20859. 800934e: 69ba ldr r2, [r7, #24]
  20860. 8009350: 4313 orrs r3, r2
  20861. 8009352: 61bb str r3, [r7, #24]
  20862. GPIOx->MODER = temp;
  20863. 8009354: 687b ldr r3, [r7, #4]
  20864. 8009356: 69ba ldr r2, [r7, #24]
  20865. 8009358: 601a str r2, [r3, #0]
  20866. /*--------------------- EXTI Mode Configuration ------------------------*/
  20867. /* Configure the External Interrupt or event for the current IO */
  20868. if ((GPIO_Init->Mode & EXTI_MODE) != 0x00U)
  20869. 800935a: 683b ldr r3, [r7, #0]
  20870. 800935c: 685b ldr r3, [r3, #4]
  20871. 800935e: f403 3340 and.w r3, r3, #196608 @ 0x30000
  20872. 8009362: 2b00 cmp r3, #0
  20873. 8009364: f000 80e0 beq.w 8009528 <HAL_GPIO_Init+0x338>
  20874. {
  20875. /* Enable SYSCFG Clock */
  20876. __HAL_RCC_SYSCFG_CLK_ENABLE();
  20877. 8009368: 4b2f ldr r3, [pc, #188] @ (8009428 <HAL_GPIO_Init+0x238>)
  20878. 800936a: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  20879. 800936e: 4a2e ldr r2, [pc, #184] @ (8009428 <HAL_GPIO_Init+0x238>)
  20880. 8009370: f043 0302 orr.w r3, r3, #2
  20881. 8009374: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  20882. 8009378: 4b2b ldr r3, [pc, #172] @ (8009428 <HAL_GPIO_Init+0x238>)
  20883. 800937a: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  20884. 800937e: f003 0302 and.w r3, r3, #2
  20885. 8009382: 60fb str r3, [r7, #12]
  20886. 8009384: 68fb ldr r3, [r7, #12]
  20887. temp = SYSCFG->EXTICR[position >> 2U];
  20888. 8009386: 4a29 ldr r2, [pc, #164] @ (800942c <HAL_GPIO_Init+0x23c>)
  20889. 8009388: 69fb ldr r3, [r7, #28]
  20890. 800938a: 089b lsrs r3, r3, #2
  20891. 800938c: 3302 adds r3, #2
  20892. 800938e: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  20893. 8009392: 61bb str r3, [r7, #24]
  20894. temp &= ~(0x0FUL << (4U * (position & 0x03U)));
  20895. 8009394: 69fb ldr r3, [r7, #28]
  20896. 8009396: f003 0303 and.w r3, r3, #3
  20897. 800939a: 009b lsls r3, r3, #2
  20898. 800939c: 220f movs r2, #15
  20899. 800939e: fa02 f303 lsl.w r3, r2, r3
  20900. 80093a2: 43db mvns r3, r3
  20901. 80093a4: 69ba ldr r2, [r7, #24]
  20902. 80093a6: 4013 ands r3, r2
  20903. 80093a8: 61bb str r3, [r7, #24]
  20904. temp |= (GPIO_GET_INDEX(GPIOx) << (4U * (position & 0x03U)));
  20905. 80093aa: 687b ldr r3, [r7, #4]
  20906. 80093ac: 4a20 ldr r2, [pc, #128] @ (8009430 <HAL_GPIO_Init+0x240>)
  20907. 80093ae: 4293 cmp r3, r2
  20908. 80093b0: d052 beq.n 8009458 <HAL_GPIO_Init+0x268>
  20909. 80093b2: 687b ldr r3, [r7, #4]
  20910. 80093b4: 4a1f ldr r2, [pc, #124] @ (8009434 <HAL_GPIO_Init+0x244>)
  20911. 80093b6: 4293 cmp r3, r2
  20912. 80093b8: d031 beq.n 800941e <HAL_GPIO_Init+0x22e>
  20913. 80093ba: 687b ldr r3, [r7, #4]
  20914. 80093bc: 4a1e ldr r2, [pc, #120] @ (8009438 <HAL_GPIO_Init+0x248>)
  20915. 80093be: 4293 cmp r3, r2
  20916. 80093c0: d02b beq.n 800941a <HAL_GPIO_Init+0x22a>
  20917. 80093c2: 687b ldr r3, [r7, #4]
  20918. 80093c4: 4a1d ldr r2, [pc, #116] @ (800943c <HAL_GPIO_Init+0x24c>)
  20919. 80093c6: 4293 cmp r3, r2
  20920. 80093c8: d025 beq.n 8009416 <HAL_GPIO_Init+0x226>
  20921. 80093ca: 687b ldr r3, [r7, #4]
  20922. 80093cc: 4a1c ldr r2, [pc, #112] @ (8009440 <HAL_GPIO_Init+0x250>)
  20923. 80093ce: 4293 cmp r3, r2
  20924. 80093d0: d01f beq.n 8009412 <HAL_GPIO_Init+0x222>
  20925. 80093d2: 687b ldr r3, [r7, #4]
  20926. 80093d4: 4a1b ldr r2, [pc, #108] @ (8009444 <HAL_GPIO_Init+0x254>)
  20927. 80093d6: 4293 cmp r3, r2
  20928. 80093d8: d019 beq.n 800940e <HAL_GPIO_Init+0x21e>
  20929. 80093da: 687b ldr r3, [r7, #4]
  20930. 80093dc: 4a1a ldr r2, [pc, #104] @ (8009448 <HAL_GPIO_Init+0x258>)
  20931. 80093de: 4293 cmp r3, r2
  20932. 80093e0: d013 beq.n 800940a <HAL_GPIO_Init+0x21a>
  20933. 80093e2: 687b ldr r3, [r7, #4]
  20934. 80093e4: 4a19 ldr r2, [pc, #100] @ (800944c <HAL_GPIO_Init+0x25c>)
  20935. 80093e6: 4293 cmp r3, r2
  20936. 80093e8: d00d beq.n 8009406 <HAL_GPIO_Init+0x216>
  20937. 80093ea: 687b ldr r3, [r7, #4]
  20938. 80093ec: 4a18 ldr r2, [pc, #96] @ (8009450 <HAL_GPIO_Init+0x260>)
  20939. 80093ee: 4293 cmp r3, r2
  20940. 80093f0: d007 beq.n 8009402 <HAL_GPIO_Init+0x212>
  20941. 80093f2: 687b ldr r3, [r7, #4]
  20942. 80093f4: 4a17 ldr r2, [pc, #92] @ (8009454 <HAL_GPIO_Init+0x264>)
  20943. 80093f6: 4293 cmp r3, r2
  20944. 80093f8: d101 bne.n 80093fe <HAL_GPIO_Init+0x20e>
  20945. 80093fa: 2309 movs r3, #9
  20946. 80093fc: e02d b.n 800945a <HAL_GPIO_Init+0x26a>
  20947. 80093fe: 230a movs r3, #10
  20948. 8009400: e02b b.n 800945a <HAL_GPIO_Init+0x26a>
  20949. 8009402: 2308 movs r3, #8
  20950. 8009404: e029 b.n 800945a <HAL_GPIO_Init+0x26a>
  20951. 8009406: 2307 movs r3, #7
  20952. 8009408: e027 b.n 800945a <HAL_GPIO_Init+0x26a>
  20953. 800940a: 2306 movs r3, #6
  20954. 800940c: e025 b.n 800945a <HAL_GPIO_Init+0x26a>
  20955. 800940e: 2305 movs r3, #5
  20956. 8009410: e023 b.n 800945a <HAL_GPIO_Init+0x26a>
  20957. 8009412: 2304 movs r3, #4
  20958. 8009414: e021 b.n 800945a <HAL_GPIO_Init+0x26a>
  20959. 8009416: 2303 movs r3, #3
  20960. 8009418: e01f b.n 800945a <HAL_GPIO_Init+0x26a>
  20961. 800941a: 2302 movs r3, #2
  20962. 800941c: e01d b.n 800945a <HAL_GPIO_Init+0x26a>
  20963. 800941e: 2301 movs r3, #1
  20964. 8009420: e01b b.n 800945a <HAL_GPIO_Init+0x26a>
  20965. 8009422: bf00 nop
  20966. 8009424: 58000080 .word 0x58000080
  20967. 8009428: 58024400 .word 0x58024400
  20968. 800942c: 58000400 .word 0x58000400
  20969. 8009430: 58020000 .word 0x58020000
  20970. 8009434: 58020400 .word 0x58020400
  20971. 8009438: 58020800 .word 0x58020800
  20972. 800943c: 58020c00 .word 0x58020c00
  20973. 8009440: 58021000 .word 0x58021000
  20974. 8009444: 58021400 .word 0x58021400
  20975. 8009448: 58021800 .word 0x58021800
  20976. 800944c: 58021c00 .word 0x58021c00
  20977. 8009450: 58022000 .word 0x58022000
  20978. 8009454: 58022400 .word 0x58022400
  20979. 8009458: 2300 movs r3, #0
  20980. 800945a: 69fa ldr r2, [r7, #28]
  20981. 800945c: f002 0203 and.w r2, r2, #3
  20982. 8009460: 0092 lsls r2, r2, #2
  20983. 8009462: 4093 lsls r3, r2
  20984. 8009464: 69ba ldr r2, [r7, #24]
  20985. 8009466: 4313 orrs r3, r2
  20986. 8009468: 61bb str r3, [r7, #24]
  20987. SYSCFG->EXTICR[position >> 2U] = temp;
  20988. 800946a: 4938 ldr r1, [pc, #224] @ (800954c <HAL_GPIO_Init+0x35c>)
  20989. 800946c: 69fb ldr r3, [r7, #28]
  20990. 800946e: 089b lsrs r3, r3, #2
  20991. 8009470: 3302 adds r3, #2
  20992. 8009472: 69ba ldr r2, [r7, #24]
  20993. 8009474: f841 2023 str.w r2, [r1, r3, lsl #2]
  20994. /* Clear Rising Falling edge configuration */
  20995. temp = EXTI->RTSR1;
  20996. 8009478: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  20997. 800947c: 681b ldr r3, [r3, #0]
  20998. 800947e: 61bb str r3, [r7, #24]
  20999. temp &= ~(iocurrent);
  21000. 8009480: 693b ldr r3, [r7, #16]
  21001. 8009482: 43db mvns r3, r3
  21002. 8009484: 69ba ldr r2, [r7, #24]
  21003. 8009486: 4013 ands r3, r2
  21004. 8009488: 61bb str r3, [r7, #24]
  21005. if ((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U)
  21006. 800948a: 683b ldr r3, [r7, #0]
  21007. 800948c: 685b ldr r3, [r3, #4]
  21008. 800948e: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  21009. 8009492: 2b00 cmp r3, #0
  21010. 8009494: d003 beq.n 800949e <HAL_GPIO_Init+0x2ae>
  21011. {
  21012. temp |= iocurrent;
  21013. 8009496: 69ba ldr r2, [r7, #24]
  21014. 8009498: 693b ldr r3, [r7, #16]
  21015. 800949a: 4313 orrs r3, r2
  21016. 800949c: 61bb str r3, [r7, #24]
  21017. }
  21018. EXTI->RTSR1 = temp;
  21019. 800949e: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  21020. 80094a2: 69bb ldr r3, [r7, #24]
  21021. 80094a4: 6013 str r3, [r2, #0]
  21022. temp = EXTI->FTSR1;
  21023. 80094a6: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  21024. 80094aa: 685b ldr r3, [r3, #4]
  21025. 80094ac: 61bb str r3, [r7, #24]
  21026. temp &= ~(iocurrent);
  21027. 80094ae: 693b ldr r3, [r7, #16]
  21028. 80094b0: 43db mvns r3, r3
  21029. 80094b2: 69ba ldr r2, [r7, #24]
  21030. 80094b4: 4013 ands r3, r2
  21031. 80094b6: 61bb str r3, [r7, #24]
  21032. if ((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U)
  21033. 80094b8: 683b ldr r3, [r7, #0]
  21034. 80094ba: 685b ldr r3, [r3, #4]
  21035. 80094bc: f403 1300 and.w r3, r3, #2097152 @ 0x200000
  21036. 80094c0: 2b00 cmp r3, #0
  21037. 80094c2: d003 beq.n 80094cc <HAL_GPIO_Init+0x2dc>
  21038. {
  21039. temp |= iocurrent;
  21040. 80094c4: 69ba ldr r2, [r7, #24]
  21041. 80094c6: 693b ldr r3, [r7, #16]
  21042. 80094c8: 4313 orrs r3, r2
  21043. 80094ca: 61bb str r3, [r7, #24]
  21044. }
  21045. EXTI->FTSR1 = temp;
  21046. 80094cc: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  21047. 80094d0: 69bb ldr r3, [r7, #24]
  21048. 80094d2: 6053 str r3, [r2, #4]
  21049. temp = EXTI_CurrentCPU->EMR1;
  21050. 80094d4: 697b ldr r3, [r7, #20]
  21051. 80094d6: 685b ldr r3, [r3, #4]
  21052. 80094d8: 61bb str r3, [r7, #24]
  21053. temp &= ~(iocurrent);
  21054. 80094da: 693b ldr r3, [r7, #16]
  21055. 80094dc: 43db mvns r3, r3
  21056. 80094de: 69ba ldr r2, [r7, #24]
  21057. 80094e0: 4013 ands r3, r2
  21058. 80094e2: 61bb str r3, [r7, #24]
  21059. if ((GPIO_Init->Mode & EXTI_EVT) != 0x00U)
  21060. 80094e4: 683b ldr r3, [r7, #0]
  21061. 80094e6: 685b ldr r3, [r3, #4]
  21062. 80094e8: f403 3300 and.w r3, r3, #131072 @ 0x20000
  21063. 80094ec: 2b00 cmp r3, #0
  21064. 80094ee: d003 beq.n 80094f8 <HAL_GPIO_Init+0x308>
  21065. {
  21066. temp |= iocurrent;
  21067. 80094f0: 69ba ldr r2, [r7, #24]
  21068. 80094f2: 693b ldr r3, [r7, #16]
  21069. 80094f4: 4313 orrs r3, r2
  21070. 80094f6: 61bb str r3, [r7, #24]
  21071. }
  21072. EXTI_CurrentCPU->EMR1 = temp;
  21073. 80094f8: 697b ldr r3, [r7, #20]
  21074. 80094fa: 69ba ldr r2, [r7, #24]
  21075. 80094fc: 605a str r2, [r3, #4]
  21076. /* Clear EXTI line configuration */
  21077. temp = EXTI_CurrentCPU->IMR1;
  21078. 80094fe: 697b ldr r3, [r7, #20]
  21079. 8009500: 681b ldr r3, [r3, #0]
  21080. 8009502: 61bb str r3, [r7, #24]
  21081. temp &= ~(iocurrent);
  21082. 8009504: 693b ldr r3, [r7, #16]
  21083. 8009506: 43db mvns r3, r3
  21084. 8009508: 69ba ldr r2, [r7, #24]
  21085. 800950a: 4013 ands r3, r2
  21086. 800950c: 61bb str r3, [r7, #24]
  21087. if ((GPIO_Init->Mode & EXTI_IT) != 0x00U)
  21088. 800950e: 683b ldr r3, [r7, #0]
  21089. 8009510: 685b ldr r3, [r3, #4]
  21090. 8009512: f403 3380 and.w r3, r3, #65536 @ 0x10000
  21091. 8009516: 2b00 cmp r3, #0
  21092. 8009518: d003 beq.n 8009522 <HAL_GPIO_Init+0x332>
  21093. {
  21094. temp |= iocurrent;
  21095. 800951a: 69ba ldr r2, [r7, #24]
  21096. 800951c: 693b ldr r3, [r7, #16]
  21097. 800951e: 4313 orrs r3, r2
  21098. 8009520: 61bb str r3, [r7, #24]
  21099. }
  21100. EXTI_CurrentCPU->IMR1 = temp;
  21101. 8009522: 697b ldr r3, [r7, #20]
  21102. 8009524: 69ba ldr r2, [r7, #24]
  21103. 8009526: 601a str r2, [r3, #0]
  21104. }
  21105. }
  21106. position++;
  21107. 8009528: 69fb ldr r3, [r7, #28]
  21108. 800952a: 3301 adds r3, #1
  21109. 800952c: 61fb str r3, [r7, #28]
  21110. while (((GPIO_Init->Pin) >> position) != 0x00U)
  21111. 800952e: 683b ldr r3, [r7, #0]
  21112. 8009530: 681a ldr r2, [r3, #0]
  21113. 8009532: 69fb ldr r3, [r7, #28]
  21114. 8009534: fa22 f303 lsr.w r3, r2, r3
  21115. 8009538: 2b00 cmp r3, #0
  21116. 800953a: f47f ae63 bne.w 8009204 <HAL_GPIO_Init+0x14>
  21117. }
  21118. }
  21119. 800953e: bf00 nop
  21120. 8009540: bf00 nop
  21121. 8009542: 3724 adds r7, #36 @ 0x24
  21122. 8009544: 46bd mov sp, r7
  21123. 8009546: f85d 7b04 ldr.w r7, [sp], #4
  21124. 800954a: 4770 bx lr
  21125. 800954c: 58000400 .word 0x58000400
  21126. 08009550 <HAL_GPIO_WritePin>:
  21127. * @arg GPIO_PIN_RESET: to clear the port pin
  21128. * @arg GPIO_PIN_SET: to set the port pin
  21129. * @retval None
  21130. */
  21131. void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
  21132. {
  21133. 8009550: b480 push {r7}
  21134. 8009552: b083 sub sp, #12
  21135. 8009554: af00 add r7, sp, #0
  21136. 8009556: 6078 str r0, [r7, #4]
  21137. 8009558: 460b mov r3, r1
  21138. 800955a: 807b strh r3, [r7, #2]
  21139. 800955c: 4613 mov r3, r2
  21140. 800955e: 707b strb r3, [r7, #1]
  21141. /* Check the parameters */
  21142. assert_param(IS_GPIO_PIN(GPIO_Pin));
  21143. assert_param(IS_GPIO_PIN_ACTION(PinState));
  21144. if (PinState != GPIO_PIN_RESET)
  21145. 8009560: 787b ldrb r3, [r7, #1]
  21146. 8009562: 2b00 cmp r3, #0
  21147. 8009564: d003 beq.n 800956e <HAL_GPIO_WritePin+0x1e>
  21148. {
  21149. GPIOx->BSRR = GPIO_Pin;
  21150. 8009566: 887a ldrh r2, [r7, #2]
  21151. 8009568: 687b ldr r3, [r7, #4]
  21152. 800956a: 619a str r2, [r3, #24]
  21153. }
  21154. else
  21155. {
  21156. GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER;
  21157. }
  21158. }
  21159. 800956c: e003 b.n 8009576 <HAL_GPIO_WritePin+0x26>
  21160. GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER;
  21161. 800956e: 887b ldrh r3, [r7, #2]
  21162. 8009570: 041a lsls r2, r3, #16
  21163. 8009572: 687b ldr r3, [r7, #4]
  21164. 8009574: 619a str r2, [r3, #24]
  21165. }
  21166. 8009576: bf00 nop
  21167. 8009578: 370c adds r7, #12
  21168. 800957a: 46bd mov sp, r7
  21169. 800957c: f85d 7b04 ldr.w r7, [sp], #4
  21170. 8009580: 4770 bx lr
  21171. ...
  21172. 08009584 <HAL_PWREx_ConfigSupply>:
  21173. * PWR_SMPS_2V5_SUPPLIES_EXT are used only for lines that supports SMPS
  21174. * regulator.
  21175. * @retval HAL status.
  21176. */
  21177. HAL_StatusTypeDef HAL_PWREx_ConfigSupply (uint32_t SupplySource)
  21178. {
  21179. 8009584: b580 push {r7, lr}
  21180. 8009586: b084 sub sp, #16
  21181. 8009588: af00 add r7, sp, #0
  21182. 800958a: 6078 str r0, [r7, #4]
  21183. /* Check the parameters */
  21184. assert_param (IS_PWR_SUPPLY (SupplySource));
  21185. /* Check if supply source was configured */
  21186. #if defined (PWR_FLAG_SCUEN)
  21187. if (__HAL_PWR_GET_FLAG (PWR_FLAG_SCUEN) == 0U)
  21188. 800958c: 4b19 ldr r3, [pc, #100] @ (80095f4 <HAL_PWREx_ConfigSupply+0x70>)
  21189. 800958e: 68db ldr r3, [r3, #12]
  21190. 8009590: f003 0304 and.w r3, r3, #4
  21191. 8009594: 2b04 cmp r3, #4
  21192. 8009596: d00a beq.n 80095ae <HAL_PWREx_ConfigSupply+0x2a>
  21193. #else
  21194. if ((PWR->CR3 & (PWR_CR3_SMPSEN | PWR_CR3_LDOEN | PWR_CR3_BYPASS)) != (PWR_CR3_SMPSEN | PWR_CR3_LDOEN))
  21195. #endif /* defined (PWR_FLAG_SCUEN) */
  21196. {
  21197. /* Check supply configuration */
  21198. if ((PWR->CR3 & PWR_SUPPLY_CONFIG_MASK) != SupplySource)
  21199. 8009598: 4b16 ldr r3, [pc, #88] @ (80095f4 <HAL_PWREx_ConfigSupply+0x70>)
  21200. 800959a: 68db ldr r3, [r3, #12]
  21201. 800959c: f003 0307 and.w r3, r3, #7
  21202. 80095a0: 687a ldr r2, [r7, #4]
  21203. 80095a2: 429a cmp r2, r3
  21204. 80095a4: d001 beq.n 80095aa <HAL_PWREx_ConfigSupply+0x26>
  21205. {
  21206. /* Supply configuration update locked, can't apply a new supply config */
  21207. return HAL_ERROR;
  21208. 80095a6: 2301 movs r3, #1
  21209. 80095a8: e01f b.n 80095ea <HAL_PWREx_ConfigSupply+0x66>
  21210. else
  21211. {
  21212. /* Supply configuration update locked, but new supply configuration
  21213. matches with old supply configuration : nothing to do
  21214. */
  21215. return HAL_OK;
  21216. 80095aa: 2300 movs r3, #0
  21217. 80095ac: e01d b.n 80095ea <HAL_PWREx_ConfigSupply+0x66>
  21218. }
  21219. }
  21220. /* Set the power supply configuration */
  21221. MODIFY_REG (PWR->CR3, PWR_SUPPLY_CONFIG_MASK, SupplySource);
  21222. 80095ae: 4b11 ldr r3, [pc, #68] @ (80095f4 <HAL_PWREx_ConfigSupply+0x70>)
  21223. 80095b0: 68db ldr r3, [r3, #12]
  21224. 80095b2: f023 0207 bic.w r2, r3, #7
  21225. 80095b6: 490f ldr r1, [pc, #60] @ (80095f4 <HAL_PWREx_ConfigSupply+0x70>)
  21226. 80095b8: 687b ldr r3, [r7, #4]
  21227. 80095ba: 4313 orrs r3, r2
  21228. 80095bc: 60cb str r3, [r1, #12]
  21229. /* Get tick */
  21230. tickstart = HAL_GetTick ();
  21231. 80095be: f7fb fae7 bl 8004b90 <HAL_GetTick>
  21232. 80095c2: 60f8 str r0, [r7, #12]
  21233. /* Wait till voltage level flag is set */
  21234. while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U)
  21235. 80095c4: e009 b.n 80095da <HAL_PWREx_ConfigSupply+0x56>
  21236. {
  21237. if ((HAL_GetTick () - tickstart) > PWR_FLAG_SETTING_DELAY)
  21238. 80095c6: f7fb fae3 bl 8004b90 <HAL_GetTick>
  21239. 80095ca: 4602 mov r2, r0
  21240. 80095cc: 68fb ldr r3, [r7, #12]
  21241. 80095ce: 1ad3 subs r3, r2, r3
  21242. 80095d0: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  21243. 80095d4: d901 bls.n 80095da <HAL_PWREx_ConfigSupply+0x56>
  21244. {
  21245. return HAL_ERROR;
  21246. 80095d6: 2301 movs r3, #1
  21247. 80095d8: e007 b.n 80095ea <HAL_PWREx_ConfigSupply+0x66>
  21248. while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U)
  21249. 80095da: 4b06 ldr r3, [pc, #24] @ (80095f4 <HAL_PWREx_ConfigSupply+0x70>)
  21250. 80095dc: 685b ldr r3, [r3, #4]
  21251. 80095de: f403 5300 and.w r3, r3, #8192 @ 0x2000
  21252. 80095e2: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  21253. 80095e6: d1ee bne.n 80095c6 <HAL_PWREx_ConfigSupply+0x42>
  21254. }
  21255. }
  21256. }
  21257. #endif /* defined (SMPS) */
  21258. return HAL_OK;
  21259. 80095e8: 2300 movs r3, #0
  21260. }
  21261. 80095ea: 4618 mov r0, r3
  21262. 80095ec: 3710 adds r7, #16
  21263. 80095ee: 46bd mov sp, r7
  21264. 80095f0: bd80 pop {r7, pc}
  21265. 80095f2: bf00 nop
  21266. 80095f4: 58024800 .word 0x58024800
  21267. 080095f8 <HAL_RCC_OscConfig>:
  21268. * supported by this function. User should request a transition to HSE Off
  21269. * first and then HSE On or HSE Bypass.
  21270. * @retval HAL status
  21271. */
  21272. __weak HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
  21273. {
  21274. 80095f8: b580 push {r7, lr}
  21275. 80095fa: b08c sub sp, #48 @ 0x30
  21276. 80095fc: af00 add r7, sp, #0
  21277. 80095fe: 6078 str r0, [r7, #4]
  21278. uint32_t tickstart;
  21279. uint32_t temp1_pllckcfg, temp2_pllckcfg;
  21280. /* Check Null pointer */
  21281. if (RCC_OscInitStruct == NULL)
  21282. 8009600: 687b ldr r3, [r7, #4]
  21283. 8009602: 2b00 cmp r3, #0
  21284. 8009604: d102 bne.n 800960c <HAL_RCC_OscConfig+0x14>
  21285. {
  21286. return HAL_ERROR;
  21287. 8009606: 2301 movs r3, #1
  21288. 8009608: f000 bc48 b.w 8009e9c <HAL_RCC_OscConfig+0x8a4>
  21289. }
  21290. /* Check the parameters */
  21291. assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
  21292. /*------------------------------- HSE Configuration ------------------------*/
  21293. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
  21294. 800960c: 687b ldr r3, [r7, #4]
  21295. 800960e: 681b ldr r3, [r3, #0]
  21296. 8009610: f003 0301 and.w r3, r3, #1
  21297. 8009614: 2b00 cmp r3, #0
  21298. 8009616: f000 8088 beq.w 800972a <HAL_RCC_OscConfig+0x132>
  21299. {
  21300. /* Check the parameters */
  21301. assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState));
  21302. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  21303. 800961a: 4b99 ldr r3, [pc, #612] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21304. 800961c: 691b ldr r3, [r3, #16]
  21305. 800961e: f003 0338 and.w r3, r3, #56 @ 0x38
  21306. 8009622: 62fb str r3, [r7, #44] @ 0x2c
  21307. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  21308. 8009624: 4b96 ldr r3, [pc, #600] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21309. 8009626: 6a9b ldr r3, [r3, #40] @ 0x28
  21310. 8009628: 62bb str r3, [r7, #40] @ 0x28
  21311. /* When the HSE is used as system clock or clock source for PLL in these cases HSE will not disabled */
  21312. if ((temp_sysclksrc == RCC_CFGR_SWS_HSE) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSE)))
  21313. 800962a: 6afb ldr r3, [r7, #44] @ 0x2c
  21314. 800962c: 2b10 cmp r3, #16
  21315. 800962e: d007 beq.n 8009640 <HAL_RCC_OscConfig+0x48>
  21316. 8009630: 6afb ldr r3, [r7, #44] @ 0x2c
  21317. 8009632: 2b18 cmp r3, #24
  21318. 8009634: d111 bne.n 800965a <HAL_RCC_OscConfig+0x62>
  21319. 8009636: 6abb ldr r3, [r7, #40] @ 0x28
  21320. 8009638: f003 0303 and.w r3, r3, #3
  21321. 800963c: 2b02 cmp r3, #2
  21322. 800963e: d10c bne.n 800965a <HAL_RCC_OscConfig+0x62>
  21323. {
  21324. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  21325. 8009640: 4b8f ldr r3, [pc, #572] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21326. 8009642: 681b ldr r3, [r3, #0]
  21327. 8009644: f403 3300 and.w r3, r3, #131072 @ 0x20000
  21328. 8009648: 2b00 cmp r3, #0
  21329. 800964a: d06d beq.n 8009728 <HAL_RCC_OscConfig+0x130>
  21330. 800964c: 687b ldr r3, [r7, #4]
  21331. 800964e: 685b ldr r3, [r3, #4]
  21332. 8009650: 2b00 cmp r3, #0
  21333. 8009652: d169 bne.n 8009728 <HAL_RCC_OscConfig+0x130>
  21334. {
  21335. return HAL_ERROR;
  21336. 8009654: 2301 movs r3, #1
  21337. 8009656: f000 bc21 b.w 8009e9c <HAL_RCC_OscConfig+0x8a4>
  21338. }
  21339. }
  21340. else
  21341. {
  21342. /* Set the new HSE configuration ---------------------------------------*/
  21343. __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
  21344. 800965a: 687b ldr r3, [r7, #4]
  21345. 800965c: 685b ldr r3, [r3, #4]
  21346. 800965e: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  21347. 8009662: d106 bne.n 8009672 <HAL_RCC_OscConfig+0x7a>
  21348. 8009664: 4b86 ldr r3, [pc, #536] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21349. 8009666: 681b ldr r3, [r3, #0]
  21350. 8009668: 4a85 ldr r2, [pc, #532] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21351. 800966a: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  21352. 800966e: 6013 str r3, [r2, #0]
  21353. 8009670: e02e b.n 80096d0 <HAL_RCC_OscConfig+0xd8>
  21354. 8009672: 687b ldr r3, [r7, #4]
  21355. 8009674: 685b ldr r3, [r3, #4]
  21356. 8009676: 2b00 cmp r3, #0
  21357. 8009678: d10c bne.n 8009694 <HAL_RCC_OscConfig+0x9c>
  21358. 800967a: 4b81 ldr r3, [pc, #516] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21359. 800967c: 681b ldr r3, [r3, #0]
  21360. 800967e: 4a80 ldr r2, [pc, #512] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21361. 8009680: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  21362. 8009684: 6013 str r3, [r2, #0]
  21363. 8009686: 4b7e ldr r3, [pc, #504] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21364. 8009688: 681b ldr r3, [r3, #0]
  21365. 800968a: 4a7d ldr r2, [pc, #500] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21366. 800968c: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  21367. 8009690: 6013 str r3, [r2, #0]
  21368. 8009692: e01d b.n 80096d0 <HAL_RCC_OscConfig+0xd8>
  21369. 8009694: 687b ldr r3, [r7, #4]
  21370. 8009696: 685b ldr r3, [r3, #4]
  21371. 8009698: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  21372. 800969c: d10c bne.n 80096b8 <HAL_RCC_OscConfig+0xc0>
  21373. 800969e: 4b78 ldr r3, [pc, #480] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21374. 80096a0: 681b ldr r3, [r3, #0]
  21375. 80096a2: 4a77 ldr r2, [pc, #476] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21376. 80096a4: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  21377. 80096a8: 6013 str r3, [r2, #0]
  21378. 80096aa: 4b75 ldr r3, [pc, #468] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21379. 80096ac: 681b ldr r3, [r3, #0]
  21380. 80096ae: 4a74 ldr r2, [pc, #464] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21381. 80096b0: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  21382. 80096b4: 6013 str r3, [r2, #0]
  21383. 80096b6: e00b b.n 80096d0 <HAL_RCC_OscConfig+0xd8>
  21384. 80096b8: 4b71 ldr r3, [pc, #452] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21385. 80096ba: 681b ldr r3, [r3, #0]
  21386. 80096bc: 4a70 ldr r2, [pc, #448] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21387. 80096be: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  21388. 80096c2: 6013 str r3, [r2, #0]
  21389. 80096c4: 4b6e ldr r3, [pc, #440] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21390. 80096c6: 681b ldr r3, [r3, #0]
  21391. 80096c8: 4a6d ldr r2, [pc, #436] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21392. 80096ca: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  21393. 80096ce: 6013 str r3, [r2, #0]
  21394. /* Check the HSE State */
  21395. if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF)
  21396. 80096d0: 687b ldr r3, [r7, #4]
  21397. 80096d2: 685b ldr r3, [r3, #4]
  21398. 80096d4: 2b00 cmp r3, #0
  21399. 80096d6: d013 beq.n 8009700 <HAL_RCC_OscConfig+0x108>
  21400. {
  21401. /* Get Start Tick*/
  21402. tickstart = HAL_GetTick();
  21403. 80096d8: f7fb fa5a bl 8004b90 <HAL_GetTick>
  21404. 80096dc: 6278 str r0, [r7, #36] @ 0x24
  21405. /* Wait till HSE is ready */
  21406. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  21407. 80096de: e008 b.n 80096f2 <HAL_RCC_OscConfig+0xfa>
  21408. {
  21409. if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  21410. 80096e0: f7fb fa56 bl 8004b90 <HAL_GetTick>
  21411. 80096e4: 4602 mov r2, r0
  21412. 80096e6: 6a7b ldr r3, [r7, #36] @ 0x24
  21413. 80096e8: 1ad3 subs r3, r2, r3
  21414. 80096ea: 2b64 cmp r3, #100 @ 0x64
  21415. 80096ec: d901 bls.n 80096f2 <HAL_RCC_OscConfig+0xfa>
  21416. {
  21417. return HAL_TIMEOUT;
  21418. 80096ee: 2303 movs r3, #3
  21419. 80096f0: e3d4 b.n 8009e9c <HAL_RCC_OscConfig+0x8a4>
  21420. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  21421. 80096f2: 4b63 ldr r3, [pc, #396] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21422. 80096f4: 681b ldr r3, [r3, #0]
  21423. 80096f6: f403 3300 and.w r3, r3, #131072 @ 0x20000
  21424. 80096fa: 2b00 cmp r3, #0
  21425. 80096fc: d0f0 beq.n 80096e0 <HAL_RCC_OscConfig+0xe8>
  21426. 80096fe: e014 b.n 800972a <HAL_RCC_OscConfig+0x132>
  21427. }
  21428. }
  21429. else
  21430. {
  21431. /* Get Start Tick*/
  21432. tickstart = HAL_GetTick();
  21433. 8009700: f7fb fa46 bl 8004b90 <HAL_GetTick>
  21434. 8009704: 6278 str r0, [r7, #36] @ 0x24
  21435. /* Wait till HSE is disabled */
  21436. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  21437. 8009706: e008 b.n 800971a <HAL_RCC_OscConfig+0x122>
  21438. {
  21439. if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  21440. 8009708: f7fb fa42 bl 8004b90 <HAL_GetTick>
  21441. 800970c: 4602 mov r2, r0
  21442. 800970e: 6a7b ldr r3, [r7, #36] @ 0x24
  21443. 8009710: 1ad3 subs r3, r2, r3
  21444. 8009712: 2b64 cmp r3, #100 @ 0x64
  21445. 8009714: d901 bls.n 800971a <HAL_RCC_OscConfig+0x122>
  21446. {
  21447. return HAL_TIMEOUT;
  21448. 8009716: 2303 movs r3, #3
  21449. 8009718: e3c0 b.n 8009e9c <HAL_RCC_OscConfig+0x8a4>
  21450. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  21451. 800971a: 4b59 ldr r3, [pc, #356] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21452. 800971c: 681b ldr r3, [r3, #0]
  21453. 800971e: f403 3300 and.w r3, r3, #131072 @ 0x20000
  21454. 8009722: 2b00 cmp r3, #0
  21455. 8009724: d1f0 bne.n 8009708 <HAL_RCC_OscConfig+0x110>
  21456. 8009726: e000 b.n 800972a <HAL_RCC_OscConfig+0x132>
  21457. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  21458. 8009728: bf00 nop
  21459. }
  21460. }
  21461. }
  21462. }
  21463. /*----------------------------- HSI Configuration --------------------------*/
  21464. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
  21465. 800972a: 687b ldr r3, [r7, #4]
  21466. 800972c: 681b ldr r3, [r3, #0]
  21467. 800972e: f003 0302 and.w r3, r3, #2
  21468. 8009732: 2b00 cmp r3, #0
  21469. 8009734: f000 80ca beq.w 80098cc <HAL_RCC_OscConfig+0x2d4>
  21470. /* Check the parameters */
  21471. assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState));
  21472. assert_param(IS_RCC_HSICALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue));
  21473. /* When the HSI is used as system clock it will not be disabled */
  21474. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  21475. 8009738: 4b51 ldr r3, [pc, #324] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21476. 800973a: 691b ldr r3, [r3, #16]
  21477. 800973c: f003 0338 and.w r3, r3, #56 @ 0x38
  21478. 8009740: 623b str r3, [r7, #32]
  21479. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  21480. 8009742: 4b4f ldr r3, [pc, #316] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21481. 8009744: 6a9b ldr r3, [r3, #40] @ 0x28
  21482. 8009746: 61fb str r3, [r7, #28]
  21483. if ((temp_sysclksrc == RCC_CFGR_SWS_HSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSI)))
  21484. 8009748: 6a3b ldr r3, [r7, #32]
  21485. 800974a: 2b00 cmp r3, #0
  21486. 800974c: d007 beq.n 800975e <HAL_RCC_OscConfig+0x166>
  21487. 800974e: 6a3b ldr r3, [r7, #32]
  21488. 8009750: 2b18 cmp r3, #24
  21489. 8009752: d156 bne.n 8009802 <HAL_RCC_OscConfig+0x20a>
  21490. 8009754: 69fb ldr r3, [r7, #28]
  21491. 8009756: f003 0303 and.w r3, r3, #3
  21492. 800975a: 2b00 cmp r3, #0
  21493. 800975c: d151 bne.n 8009802 <HAL_RCC_OscConfig+0x20a>
  21494. {
  21495. /* When HSI is used as system clock it will not be disabled */
  21496. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  21497. 800975e: 4b48 ldr r3, [pc, #288] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21498. 8009760: 681b ldr r3, [r3, #0]
  21499. 8009762: f003 0304 and.w r3, r3, #4
  21500. 8009766: 2b00 cmp r3, #0
  21501. 8009768: d005 beq.n 8009776 <HAL_RCC_OscConfig+0x17e>
  21502. 800976a: 687b ldr r3, [r7, #4]
  21503. 800976c: 68db ldr r3, [r3, #12]
  21504. 800976e: 2b00 cmp r3, #0
  21505. 8009770: d101 bne.n 8009776 <HAL_RCC_OscConfig+0x17e>
  21506. {
  21507. return HAL_ERROR;
  21508. 8009772: 2301 movs r3, #1
  21509. 8009774: e392 b.n 8009e9c <HAL_RCC_OscConfig+0x8a4>
  21510. }
  21511. /* Otherwise, only HSI division and calibration are allowed */
  21512. else
  21513. {
  21514. /* Enable the Internal High Speed oscillator (HSI, HSIDIV2, HSIDIV4, or HSIDIV8) */
  21515. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState);
  21516. 8009776: 4b42 ldr r3, [pc, #264] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21517. 8009778: 681b ldr r3, [r3, #0]
  21518. 800977a: f023 0219 bic.w r2, r3, #25
  21519. 800977e: 687b ldr r3, [r7, #4]
  21520. 8009780: 68db ldr r3, [r3, #12]
  21521. 8009782: 493f ldr r1, [pc, #252] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21522. 8009784: 4313 orrs r3, r2
  21523. 8009786: 600b str r3, [r1, #0]
  21524. /* Get Start Tick*/
  21525. tickstart = HAL_GetTick();
  21526. 8009788: f7fb fa02 bl 8004b90 <HAL_GetTick>
  21527. 800978c: 6278 str r0, [r7, #36] @ 0x24
  21528. /* Wait till HSI is ready */
  21529. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  21530. 800978e: e008 b.n 80097a2 <HAL_RCC_OscConfig+0x1aa>
  21531. {
  21532. if ((uint32_t)(HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  21533. 8009790: f7fb f9fe bl 8004b90 <HAL_GetTick>
  21534. 8009794: 4602 mov r2, r0
  21535. 8009796: 6a7b ldr r3, [r7, #36] @ 0x24
  21536. 8009798: 1ad3 subs r3, r2, r3
  21537. 800979a: 2b02 cmp r3, #2
  21538. 800979c: d901 bls.n 80097a2 <HAL_RCC_OscConfig+0x1aa>
  21539. {
  21540. return HAL_TIMEOUT;
  21541. 800979e: 2303 movs r3, #3
  21542. 80097a0: e37c b.n 8009e9c <HAL_RCC_OscConfig+0x8a4>
  21543. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  21544. 80097a2: 4b37 ldr r3, [pc, #220] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21545. 80097a4: 681b ldr r3, [r3, #0]
  21546. 80097a6: f003 0304 and.w r3, r3, #4
  21547. 80097aa: 2b00 cmp r3, #0
  21548. 80097ac: d0f0 beq.n 8009790 <HAL_RCC_OscConfig+0x198>
  21549. }
  21550. }
  21551. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  21552. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  21553. 80097ae: f7fb fa1f bl 8004bf0 <HAL_GetREVID>
  21554. 80097b2: 4603 mov r3, r0
  21555. 80097b4: f241 0203 movw r2, #4099 @ 0x1003
  21556. 80097b8: 4293 cmp r3, r2
  21557. 80097ba: d817 bhi.n 80097ec <HAL_RCC_OscConfig+0x1f4>
  21558. 80097bc: 687b ldr r3, [r7, #4]
  21559. 80097be: 691b ldr r3, [r3, #16]
  21560. 80097c0: 2b40 cmp r3, #64 @ 0x40
  21561. 80097c2: d108 bne.n 80097d6 <HAL_RCC_OscConfig+0x1de>
  21562. 80097c4: 4b2e ldr r3, [pc, #184] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21563. 80097c6: 685b ldr r3, [r3, #4]
  21564. 80097c8: f423 337c bic.w r3, r3, #258048 @ 0x3f000
  21565. 80097cc: 4a2c ldr r2, [pc, #176] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21566. 80097ce: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  21567. 80097d2: 6053 str r3, [r2, #4]
  21568. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  21569. 80097d4: e07a b.n 80098cc <HAL_RCC_OscConfig+0x2d4>
  21570. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  21571. 80097d6: 4b2a ldr r3, [pc, #168] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21572. 80097d8: 685b ldr r3, [r3, #4]
  21573. 80097da: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  21574. 80097de: 687b ldr r3, [r7, #4]
  21575. 80097e0: 691b ldr r3, [r3, #16]
  21576. 80097e2: 031b lsls r3, r3, #12
  21577. 80097e4: 4926 ldr r1, [pc, #152] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21578. 80097e6: 4313 orrs r3, r2
  21579. 80097e8: 604b str r3, [r1, #4]
  21580. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  21581. 80097ea: e06f b.n 80098cc <HAL_RCC_OscConfig+0x2d4>
  21582. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  21583. 80097ec: 4b24 ldr r3, [pc, #144] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21584. 80097ee: 685b ldr r3, [r3, #4]
  21585. 80097f0: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000
  21586. 80097f4: 687b ldr r3, [r7, #4]
  21587. 80097f6: 691b ldr r3, [r3, #16]
  21588. 80097f8: 061b lsls r3, r3, #24
  21589. 80097fa: 4921 ldr r1, [pc, #132] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21590. 80097fc: 4313 orrs r3, r2
  21591. 80097fe: 604b str r3, [r1, #4]
  21592. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  21593. 8009800: e064 b.n 80098cc <HAL_RCC_OscConfig+0x2d4>
  21594. }
  21595. else
  21596. {
  21597. /* Check the HSI State */
  21598. if ((RCC_OscInitStruct->HSIState) != RCC_HSI_OFF)
  21599. 8009802: 687b ldr r3, [r7, #4]
  21600. 8009804: 68db ldr r3, [r3, #12]
  21601. 8009806: 2b00 cmp r3, #0
  21602. 8009808: d047 beq.n 800989a <HAL_RCC_OscConfig+0x2a2>
  21603. {
  21604. /* Enable the Internal High Speed oscillator (HSI, HSIDIV2,HSIDIV4, or HSIDIV8) */
  21605. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState);
  21606. 800980a: 4b1d ldr r3, [pc, #116] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21607. 800980c: 681b ldr r3, [r3, #0]
  21608. 800980e: f023 0219 bic.w r2, r3, #25
  21609. 8009812: 687b ldr r3, [r7, #4]
  21610. 8009814: 68db ldr r3, [r3, #12]
  21611. 8009816: 491a ldr r1, [pc, #104] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21612. 8009818: 4313 orrs r3, r2
  21613. 800981a: 600b str r3, [r1, #0]
  21614. /* Get Start Tick*/
  21615. tickstart = HAL_GetTick();
  21616. 800981c: f7fb f9b8 bl 8004b90 <HAL_GetTick>
  21617. 8009820: 6278 str r0, [r7, #36] @ 0x24
  21618. /* Wait till HSI is ready */
  21619. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  21620. 8009822: e008 b.n 8009836 <HAL_RCC_OscConfig+0x23e>
  21621. {
  21622. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  21623. 8009824: f7fb f9b4 bl 8004b90 <HAL_GetTick>
  21624. 8009828: 4602 mov r2, r0
  21625. 800982a: 6a7b ldr r3, [r7, #36] @ 0x24
  21626. 800982c: 1ad3 subs r3, r2, r3
  21627. 800982e: 2b02 cmp r3, #2
  21628. 8009830: d901 bls.n 8009836 <HAL_RCC_OscConfig+0x23e>
  21629. {
  21630. return HAL_TIMEOUT;
  21631. 8009832: 2303 movs r3, #3
  21632. 8009834: e332 b.n 8009e9c <HAL_RCC_OscConfig+0x8a4>
  21633. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  21634. 8009836: 4b12 ldr r3, [pc, #72] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21635. 8009838: 681b ldr r3, [r3, #0]
  21636. 800983a: f003 0304 and.w r3, r3, #4
  21637. 800983e: 2b00 cmp r3, #0
  21638. 8009840: d0f0 beq.n 8009824 <HAL_RCC_OscConfig+0x22c>
  21639. }
  21640. }
  21641. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  21642. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  21643. 8009842: f7fb f9d5 bl 8004bf0 <HAL_GetREVID>
  21644. 8009846: 4603 mov r3, r0
  21645. 8009848: f241 0203 movw r2, #4099 @ 0x1003
  21646. 800984c: 4293 cmp r3, r2
  21647. 800984e: d819 bhi.n 8009884 <HAL_RCC_OscConfig+0x28c>
  21648. 8009850: 687b ldr r3, [r7, #4]
  21649. 8009852: 691b ldr r3, [r3, #16]
  21650. 8009854: 2b40 cmp r3, #64 @ 0x40
  21651. 8009856: d108 bne.n 800986a <HAL_RCC_OscConfig+0x272>
  21652. 8009858: 4b09 ldr r3, [pc, #36] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21653. 800985a: 685b ldr r3, [r3, #4]
  21654. 800985c: f423 337c bic.w r3, r3, #258048 @ 0x3f000
  21655. 8009860: 4a07 ldr r2, [pc, #28] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21656. 8009862: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  21657. 8009866: 6053 str r3, [r2, #4]
  21658. 8009868: e030 b.n 80098cc <HAL_RCC_OscConfig+0x2d4>
  21659. 800986a: 4b05 ldr r3, [pc, #20] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21660. 800986c: 685b ldr r3, [r3, #4]
  21661. 800986e: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  21662. 8009872: 687b ldr r3, [r7, #4]
  21663. 8009874: 691b ldr r3, [r3, #16]
  21664. 8009876: 031b lsls r3, r3, #12
  21665. 8009878: 4901 ldr r1, [pc, #4] @ (8009880 <HAL_RCC_OscConfig+0x288>)
  21666. 800987a: 4313 orrs r3, r2
  21667. 800987c: 604b str r3, [r1, #4]
  21668. 800987e: e025 b.n 80098cc <HAL_RCC_OscConfig+0x2d4>
  21669. 8009880: 58024400 .word 0x58024400
  21670. 8009884: 4b9a ldr r3, [pc, #616] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21671. 8009886: 685b ldr r3, [r3, #4]
  21672. 8009888: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000
  21673. 800988c: 687b ldr r3, [r7, #4]
  21674. 800988e: 691b ldr r3, [r3, #16]
  21675. 8009890: 061b lsls r3, r3, #24
  21676. 8009892: 4997 ldr r1, [pc, #604] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21677. 8009894: 4313 orrs r3, r2
  21678. 8009896: 604b str r3, [r1, #4]
  21679. 8009898: e018 b.n 80098cc <HAL_RCC_OscConfig+0x2d4>
  21680. }
  21681. else
  21682. {
  21683. /* Disable the Internal High Speed oscillator (HSI). */
  21684. __HAL_RCC_HSI_DISABLE();
  21685. 800989a: 4b95 ldr r3, [pc, #596] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21686. 800989c: 681b ldr r3, [r3, #0]
  21687. 800989e: 4a94 ldr r2, [pc, #592] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21688. 80098a0: f023 0301 bic.w r3, r3, #1
  21689. 80098a4: 6013 str r3, [r2, #0]
  21690. /* Get Start Tick*/
  21691. tickstart = HAL_GetTick();
  21692. 80098a6: f7fb f973 bl 8004b90 <HAL_GetTick>
  21693. 80098aa: 6278 str r0, [r7, #36] @ 0x24
  21694. /* Wait till HSI is disabled */
  21695. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  21696. 80098ac: e008 b.n 80098c0 <HAL_RCC_OscConfig+0x2c8>
  21697. {
  21698. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  21699. 80098ae: f7fb f96f bl 8004b90 <HAL_GetTick>
  21700. 80098b2: 4602 mov r2, r0
  21701. 80098b4: 6a7b ldr r3, [r7, #36] @ 0x24
  21702. 80098b6: 1ad3 subs r3, r2, r3
  21703. 80098b8: 2b02 cmp r3, #2
  21704. 80098ba: d901 bls.n 80098c0 <HAL_RCC_OscConfig+0x2c8>
  21705. {
  21706. return HAL_TIMEOUT;
  21707. 80098bc: 2303 movs r3, #3
  21708. 80098be: e2ed b.n 8009e9c <HAL_RCC_OscConfig+0x8a4>
  21709. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  21710. 80098c0: 4b8b ldr r3, [pc, #556] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21711. 80098c2: 681b ldr r3, [r3, #0]
  21712. 80098c4: f003 0304 and.w r3, r3, #4
  21713. 80098c8: 2b00 cmp r3, #0
  21714. 80098ca: d1f0 bne.n 80098ae <HAL_RCC_OscConfig+0x2b6>
  21715. }
  21716. }
  21717. }
  21718. }
  21719. /*----------------------------- CSI Configuration --------------------------*/
  21720. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_CSI) == RCC_OSCILLATORTYPE_CSI)
  21721. 80098cc: 687b ldr r3, [r7, #4]
  21722. 80098ce: 681b ldr r3, [r3, #0]
  21723. 80098d0: f003 0310 and.w r3, r3, #16
  21724. 80098d4: 2b00 cmp r3, #0
  21725. 80098d6: f000 80a9 beq.w 8009a2c <HAL_RCC_OscConfig+0x434>
  21726. /* Check the parameters */
  21727. assert_param(IS_RCC_CSI(RCC_OscInitStruct->CSIState));
  21728. assert_param(IS_RCC_CSICALIBRATION_VALUE(RCC_OscInitStruct->CSICalibrationValue));
  21729. /* When the CSI is used as system clock it will not disabled */
  21730. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  21731. 80098da: 4b85 ldr r3, [pc, #532] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21732. 80098dc: 691b ldr r3, [r3, #16]
  21733. 80098de: f003 0338 and.w r3, r3, #56 @ 0x38
  21734. 80098e2: 61bb str r3, [r7, #24]
  21735. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  21736. 80098e4: 4b82 ldr r3, [pc, #520] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21737. 80098e6: 6a9b ldr r3, [r3, #40] @ 0x28
  21738. 80098e8: 617b str r3, [r7, #20]
  21739. if ((temp_sysclksrc == RCC_CFGR_SWS_CSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_CSI)))
  21740. 80098ea: 69bb ldr r3, [r7, #24]
  21741. 80098ec: 2b08 cmp r3, #8
  21742. 80098ee: d007 beq.n 8009900 <HAL_RCC_OscConfig+0x308>
  21743. 80098f0: 69bb ldr r3, [r7, #24]
  21744. 80098f2: 2b18 cmp r3, #24
  21745. 80098f4: d13a bne.n 800996c <HAL_RCC_OscConfig+0x374>
  21746. 80098f6: 697b ldr r3, [r7, #20]
  21747. 80098f8: f003 0303 and.w r3, r3, #3
  21748. 80098fc: 2b01 cmp r3, #1
  21749. 80098fe: d135 bne.n 800996c <HAL_RCC_OscConfig+0x374>
  21750. {
  21751. /* When CSI is used as system clock it will not disabled */
  21752. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  21753. 8009900: 4b7b ldr r3, [pc, #492] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21754. 8009902: 681b ldr r3, [r3, #0]
  21755. 8009904: f403 7380 and.w r3, r3, #256 @ 0x100
  21756. 8009908: 2b00 cmp r3, #0
  21757. 800990a: d005 beq.n 8009918 <HAL_RCC_OscConfig+0x320>
  21758. 800990c: 687b ldr r3, [r7, #4]
  21759. 800990e: 69db ldr r3, [r3, #28]
  21760. 8009910: 2b80 cmp r3, #128 @ 0x80
  21761. 8009912: d001 beq.n 8009918 <HAL_RCC_OscConfig+0x320>
  21762. {
  21763. return HAL_ERROR;
  21764. 8009914: 2301 movs r3, #1
  21765. 8009916: e2c1 b.n 8009e9c <HAL_RCC_OscConfig+0x8a4>
  21766. }
  21767. /* Otherwise, just the calibration is allowed */
  21768. else
  21769. {
  21770. /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/
  21771. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  21772. 8009918: f7fb f96a bl 8004bf0 <HAL_GetREVID>
  21773. 800991c: 4603 mov r3, r0
  21774. 800991e: f241 0203 movw r2, #4099 @ 0x1003
  21775. 8009922: 4293 cmp r3, r2
  21776. 8009924: d817 bhi.n 8009956 <HAL_RCC_OscConfig+0x35e>
  21777. 8009926: 687b ldr r3, [r7, #4]
  21778. 8009928: 6a1b ldr r3, [r3, #32]
  21779. 800992a: 2b20 cmp r3, #32
  21780. 800992c: d108 bne.n 8009940 <HAL_RCC_OscConfig+0x348>
  21781. 800992e: 4b70 ldr r3, [pc, #448] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21782. 8009930: 685b ldr r3, [r3, #4]
  21783. 8009932: f023 43f8 bic.w r3, r3, #2080374784 @ 0x7c000000
  21784. 8009936: 4a6e ldr r2, [pc, #440] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21785. 8009938: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
  21786. 800993c: 6053 str r3, [r2, #4]
  21787. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  21788. 800993e: e075 b.n 8009a2c <HAL_RCC_OscConfig+0x434>
  21789. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  21790. 8009940: 4b6b ldr r3, [pc, #428] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21791. 8009942: 685b ldr r3, [r3, #4]
  21792. 8009944: f023 42f8 bic.w r2, r3, #2080374784 @ 0x7c000000
  21793. 8009948: 687b ldr r3, [r7, #4]
  21794. 800994a: 6a1b ldr r3, [r3, #32]
  21795. 800994c: 069b lsls r3, r3, #26
  21796. 800994e: 4968 ldr r1, [pc, #416] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21797. 8009950: 4313 orrs r3, r2
  21798. 8009952: 604b str r3, [r1, #4]
  21799. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  21800. 8009954: e06a b.n 8009a2c <HAL_RCC_OscConfig+0x434>
  21801. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  21802. 8009956: 4b66 ldr r3, [pc, #408] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21803. 8009958: 68db ldr r3, [r3, #12]
  21804. 800995a: f023 527c bic.w r2, r3, #1056964608 @ 0x3f000000
  21805. 800995e: 687b ldr r3, [r7, #4]
  21806. 8009960: 6a1b ldr r3, [r3, #32]
  21807. 8009962: 061b lsls r3, r3, #24
  21808. 8009964: 4962 ldr r1, [pc, #392] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21809. 8009966: 4313 orrs r3, r2
  21810. 8009968: 60cb str r3, [r1, #12]
  21811. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  21812. 800996a: e05f b.n 8009a2c <HAL_RCC_OscConfig+0x434>
  21813. }
  21814. }
  21815. else
  21816. {
  21817. /* Check the CSI State */
  21818. if ((RCC_OscInitStruct->CSIState) != RCC_CSI_OFF)
  21819. 800996c: 687b ldr r3, [r7, #4]
  21820. 800996e: 69db ldr r3, [r3, #28]
  21821. 8009970: 2b00 cmp r3, #0
  21822. 8009972: d042 beq.n 80099fa <HAL_RCC_OscConfig+0x402>
  21823. {
  21824. /* Enable the Internal High Speed oscillator (CSI). */
  21825. __HAL_RCC_CSI_ENABLE();
  21826. 8009974: 4b5e ldr r3, [pc, #376] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21827. 8009976: 681b ldr r3, [r3, #0]
  21828. 8009978: 4a5d ldr r2, [pc, #372] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21829. 800997a: f043 0380 orr.w r3, r3, #128 @ 0x80
  21830. 800997e: 6013 str r3, [r2, #0]
  21831. /* Get Start Tick*/
  21832. tickstart = HAL_GetTick();
  21833. 8009980: f7fb f906 bl 8004b90 <HAL_GetTick>
  21834. 8009984: 6278 str r0, [r7, #36] @ 0x24
  21835. /* Wait till CSI is ready */
  21836. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  21837. 8009986: e008 b.n 800999a <HAL_RCC_OscConfig+0x3a2>
  21838. {
  21839. if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE)
  21840. 8009988: f7fb f902 bl 8004b90 <HAL_GetTick>
  21841. 800998c: 4602 mov r2, r0
  21842. 800998e: 6a7b ldr r3, [r7, #36] @ 0x24
  21843. 8009990: 1ad3 subs r3, r2, r3
  21844. 8009992: 2b02 cmp r3, #2
  21845. 8009994: d901 bls.n 800999a <HAL_RCC_OscConfig+0x3a2>
  21846. {
  21847. return HAL_TIMEOUT;
  21848. 8009996: 2303 movs r3, #3
  21849. 8009998: e280 b.n 8009e9c <HAL_RCC_OscConfig+0x8a4>
  21850. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  21851. 800999a: 4b55 ldr r3, [pc, #340] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21852. 800999c: 681b ldr r3, [r3, #0]
  21853. 800999e: f403 7380 and.w r3, r3, #256 @ 0x100
  21854. 80099a2: 2b00 cmp r3, #0
  21855. 80099a4: d0f0 beq.n 8009988 <HAL_RCC_OscConfig+0x390>
  21856. }
  21857. }
  21858. /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/
  21859. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  21860. 80099a6: f7fb f923 bl 8004bf0 <HAL_GetREVID>
  21861. 80099aa: 4603 mov r3, r0
  21862. 80099ac: f241 0203 movw r2, #4099 @ 0x1003
  21863. 80099b0: 4293 cmp r3, r2
  21864. 80099b2: d817 bhi.n 80099e4 <HAL_RCC_OscConfig+0x3ec>
  21865. 80099b4: 687b ldr r3, [r7, #4]
  21866. 80099b6: 6a1b ldr r3, [r3, #32]
  21867. 80099b8: 2b20 cmp r3, #32
  21868. 80099ba: d108 bne.n 80099ce <HAL_RCC_OscConfig+0x3d6>
  21869. 80099bc: 4b4c ldr r3, [pc, #304] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21870. 80099be: 685b ldr r3, [r3, #4]
  21871. 80099c0: f023 43f8 bic.w r3, r3, #2080374784 @ 0x7c000000
  21872. 80099c4: 4a4a ldr r2, [pc, #296] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21873. 80099c6: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
  21874. 80099ca: 6053 str r3, [r2, #4]
  21875. 80099cc: e02e b.n 8009a2c <HAL_RCC_OscConfig+0x434>
  21876. 80099ce: 4b48 ldr r3, [pc, #288] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21877. 80099d0: 685b ldr r3, [r3, #4]
  21878. 80099d2: f023 42f8 bic.w r2, r3, #2080374784 @ 0x7c000000
  21879. 80099d6: 687b ldr r3, [r7, #4]
  21880. 80099d8: 6a1b ldr r3, [r3, #32]
  21881. 80099da: 069b lsls r3, r3, #26
  21882. 80099dc: 4944 ldr r1, [pc, #272] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21883. 80099de: 4313 orrs r3, r2
  21884. 80099e0: 604b str r3, [r1, #4]
  21885. 80099e2: e023 b.n 8009a2c <HAL_RCC_OscConfig+0x434>
  21886. 80099e4: 4b42 ldr r3, [pc, #264] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21887. 80099e6: 68db ldr r3, [r3, #12]
  21888. 80099e8: f023 527c bic.w r2, r3, #1056964608 @ 0x3f000000
  21889. 80099ec: 687b ldr r3, [r7, #4]
  21890. 80099ee: 6a1b ldr r3, [r3, #32]
  21891. 80099f0: 061b lsls r3, r3, #24
  21892. 80099f2: 493f ldr r1, [pc, #252] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21893. 80099f4: 4313 orrs r3, r2
  21894. 80099f6: 60cb str r3, [r1, #12]
  21895. 80099f8: e018 b.n 8009a2c <HAL_RCC_OscConfig+0x434>
  21896. }
  21897. else
  21898. {
  21899. /* Disable the Internal High Speed oscillator (CSI). */
  21900. __HAL_RCC_CSI_DISABLE();
  21901. 80099fa: 4b3d ldr r3, [pc, #244] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21902. 80099fc: 681b ldr r3, [r3, #0]
  21903. 80099fe: 4a3c ldr r2, [pc, #240] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21904. 8009a00: f023 0380 bic.w r3, r3, #128 @ 0x80
  21905. 8009a04: 6013 str r3, [r2, #0]
  21906. /* Get Start Tick*/
  21907. tickstart = HAL_GetTick();
  21908. 8009a06: f7fb f8c3 bl 8004b90 <HAL_GetTick>
  21909. 8009a0a: 6278 str r0, [r7, #36] @ 0x24
  21910. /* Wait till CSI is disabled */
  21911. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U)
  21912. 8009a0c: e008 b.n 8009a20 <HAL_RCC_OscConfig+0x428>
  21913. {
  21914. if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE)
  21915. 8009a0e: f7fb f8bf bl 8004b90 <HAL_GetTick>
  21916. 8009a12: 4602 mov r2, r0
  21917. 8009a14: 6a7b ldr r3, [r7, #36] @ 0x24
  21918. 8009a16: 1ad3 subs r3, r2, r3
  21919. 8009a18: 2b02 cmp r3, #2
  21920. 8009a1a: d901 bls.n 8009a20 <HAL_RCC_OscConfig+0x428>
  21921. {
  21922. return HAL_TIMEOUT;
  21923. 8009a1c: 2303 movs r3, #3
  21924. 8009a1e: e23d b.n 8009e9c <HAL_RCC_OscConfig+0x8a4>
  21925. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U)
  21926. 8009a20: 4b33 ldr r3, [pc, #204] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21927. 8009a22: 681b ldr r3, [r3, #0]
  21928. 8009a24: f403 7380 and.w r3, r3, #256 @ 0x100
  21929. 8009a28: 2b00 cmp r3, #0
  21930. 8009a2a: d1f0 bne.n 8009a0e <HAL_RCC_OscConfig+0x416>
  21931. }
  21932. }
  21933. }
  21934. }
  21935. /*------------------------------ LSI Configuration -------------------------*/
  21936. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
  21937. 8009a2c: 687b ldr r3, [r7, #4]
  21938. 8009a2e: 681b ldr r3, [r3, #0]
  21939. 8009a30: f003 0308 and.w r3, r3, #8
  21940. 8009a34: 2b00 cmp r3, #0
  21941. 8009a36: d036 beq.n 8009aa6 <HAL_RCC_OscConfig+0x4ae>
  21942. {
  21943. /* Check the parameters */
  21944. assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState));
  21945. /* Check the LSI State */
  21946. if ((RCC_OscInitStruct->LSIState) != RCC_LSI_OFF)
  21947. 8009a38: 687b ldr r3, [r7, #4]
  21948. 8009a3a: 695b ldr r3, [r3, #20]
  21949. 8009a3c: 2b00 cmp r3, #0
  21950. 8009a3e: d019 beq.n 8009a74 <HAL_RCC_OscConfig+0x47c>
  21951. {
  21952. /* Enable the Internal Low Speed oscillator (LSI). */
  21953. __HAL_RCC_LSI_ENABLE();
  21954. 8009a40: 4b2b ldr r3, [pc, #172] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21955. 8009a42: 6f5b ldr r3, [r3, #116] @ 0x74
  21956. 8009a44: 4a2a ldr r2, [pc, #168] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21957. 8009a46: f043 0301 orr.w r3, r3, #1
  21958. 8009a4a: 6753 str r3, [r2, #116] @ 0x74
  21959. /* Get Start Tick*/
  21960. tickstart = HAL_GetTick();
  21961. 8009a4c: f7fb f8a0 bl 8004b90 <HAL_GetTick>
  21962. 8009a50: 6278 str r0, [r7, #36] @ 0x24
  21963. /* Wait till LSI is ready */
  21964. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  21965. 8009a52: e008 b.n 8009a66 <HAL_RCC_OscConfig+0x46e>
  21966. {
  21967. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  21968. 8009a54: f7fb f89c bl 8004b90 <HAL_GetTick>
  21969. 8009a58: 4602 mov r2, r0
  21970. 8009a5a: 6a7b ldr r3, [r7, #36] @ 0x24
  21971. 8009a5c: 1ad3 subs r3, r2, r3
  21972. 8009a5e: 2b02 cmp r3, #2
  21973. 8009a60: d901 bls.n 8009a66 <HAL_RCC_OscConfig+0x46e>
  21974. {
  21975. return HAL_TIMEOUT;
  21976. 8009a62: 2303 movs r3, #3
  21977. 8009a64: e21a b.n 8009e9c <HAL_RCC_OscConfig+0x8a4>
  21978. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  21979. 8009a66: 4b22 ldr r3, [pc, #136] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21980. 8009a68: 6f5b ldr r3, [r3, #116] @ 0x74
  21981. 8009a6a: f003 0302 and.w r3, r3, #2
  21982. 8009a6e: 2b00 cmp r3, #0
  21983. 8009a70: d0f0 beq.n 8009a54 <HAL_RCC_OscConfig+0x45c>
  21984. 8009a72: e018 b.n 8009aa6 <HAL_RCC_OscConfig+0x4ae>
  21985. }
  21986. }
  21987. else
  21988. {
  21989. /* Disable the Internal Low Speed oscillator (LSI). */
  21990. __HAL_RCC_LSI_DISABLE();
  21991. 8009a74: 4b1e ldr r3, [pc, #120] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21992. 8009a76: 6f5b ldr r3, [r3, #116] @ 0x74
  21993. 8009a78: 4a1d ldr r2, [pc, #116] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  21994. 8009a7a: f023 0301 bic.w r3, r3, #1
  21995. 8009a7e: 6753 str r3, [r2, #116] @ 0x74
  21996. /* Get Start Tick*/
  21997. tickstart = HAL_GetTick();
  21998. 8009a80: f7fb f886 bl 8004b90 <HAL_GetTick>
  21999. 8009a84: 6278 str r0, [r7, #36] @ 0x24
  22000. /* Wait till LSI is ready */
  22001. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  22002. 8009a86: e008 b.n 8009a9a <HAL_RCC_OscConfig+0x4a2>
  22003. {
  22004. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  22005. 8009a88: f7fb f882 bl 8004b90 <HAL_GetTick>
  22006. 8009a8c: 4602 mov r2, r0
  22007. 8009a8e: 6a7b ldr r3, [r7, #36] @ 0x24
  22008. 8009a90: 1ad3 subs r3, r2, r3
  22009. 8009a92: 2b02 cmp r3, #2
  22010. 8009a94: d901 bls.n 8009a9a <HAL_RCC_OscConfig+0x4a2>
  22011. {
  22012. return HAL_TIMEOUT;
  22013. 8009a96: 2303 movs r3, #3
  22014. 8009a98: e200 b.n 8009e9c <HAL_RCC_OscConfig+0x8a4>
  22015. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  22016. 8009a9a: 4b15 ldr r3, [pc, #84] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  22017. 8009a9c: 6f5b ldr r3, [r3, #116] @ 0x74
  22018. 8009a9e: f003 0302 and.w r3, r3, #2
  22019. 8009aa2: 2b00 cmp r3, #0
  22020. 8009aa4: d1f0 bne.n 8009a88 <HAL_RCC_OscConfig+0x490>
  22021. }
  22022. }
  22023. }
  22024. /*------------------------------ HSI48 Configuration -------------------------*/
  22025. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI48) == RCC_OSCILLATORTYPE_HSI48)
  22026. 8009aa6: 687b ldr r3, [r7, #4]
  22027. 8009aa8: 681b ldr r3, [r3, #0]
  22028. 8009aaa: f003 0320 and.w r3, r3, #32
  22029. 8009aae: 2b00 cmp r3, #0
  22030. 8009ab0: d039 beq.n 8009b26 <HAL_RCC_OscConfig+0x52e>
  22031. {
  22032. /* Check the parameters */
  22033. assert_param(IS_RCC_HSI48(RCC_OscInitStruct->HSI48State));
  22034. /* Check the HSI48 State */
  22035. if ((RCC_OscInitStruct->HSI48State) != RCC_HSI48_OFF)
  22036. 8009ab2: 687b ldr r3, [r7, #4]
  22037. 8009ab4: 699b ldr r3, [r3, #24]
  22038. 8009ab6: 2b00 cmp r3, #0
  22039. 8009ab8: d01c beq.n 8009af4 <HAL_RCC_OscConfig+0x4fc>
  22040. {
  22041. /* Enable the Internal Low Speed oscillator (HSI48). */
  22042. __HAL_RCC_HSI48_ENABLE();
  22043. 8009aba: 4b0d ldr r3, [pc, #52] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  22044. 8009abc: 681b ldr r3, [r3, #0]
  22045. 8009abe: 4a0c ldr r2, [pc, #48] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  22046. 8009ac0: f443 5380 orr.w r3, r3, #4096 @ 0x1000
  22047. 8009ac4: 6013 str r3, [r2, #0]
  22048. /* Get time-out */
  22049. tickstart = HAL_GetTick();
  22050. 8009ac6: f7fb f863 bl 8004b90 <HAL_GetTick>
  22051. 8009aca: 6278 str r0, [r7, #36] @ 0x24
  22052. /* Wait till HSI48 is ready */
  22053. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U)
  22054. 8009acc: e008 b.n 8009ae0 <HAL_RCC_OscConfig+0x4e8>
  22055. {
  22056. if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE)
  22057. 8009ace: f7fb f85f bl 8004b90 <HAL_GetTick>
  22058. 8009ad2: 4602 mov r2, r0
  22059. 8009ad4: 6a7b ldr r3, [r7, #36] @ 0x24
  22060. 8009ad6: 1ad3 subs r3, r2, r3
  22061. 8009ad8: 2b02 cmp r3, #2
  22062. 8009ada: d901 bls.n 8009ae0 <HAL_RCC_OscConfig+0x4e8>
  22063. {
  22064. return HAL_TIMEOUT;
  22065. 8009adc: 2303 movs r3, #3
  22066. 8009ade: e1dd b.n 8009e9c <HAL_RCC_OscConfig+0x8a4>
  22067. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U)
  22068. 8009ae0: 4b03 ldr r3, [pc, #12] @ (8009af0 <HAL_RCC_OscConfig+0x4f8>)
  22069. 8009ae2: 681b ldr r3, [r3, #0]
  22070. 8009ae4: f403 5300 and.w r3, r3, #8192 @ 0x2000
  22071. 8009ae8: 2b00 cmp r3, #0
  22072. 8009aea: d0f0 beq.n 8009ace <HAL_RCC_OscConfig+0x4d6>
  22073. 8009aec: e01b b.n 8009b26 <HAL_RCC_OscConfig+0x52e>
  22074. 8009aee: bf00 nop
  22075. 8009af0: 58024400 .word 0x58024400
  22076. }
  22077. }
  22078. else
  22079. {
  22080. /* Disable the Internal Low Speed oscillator (HSI48). */
  22081. __HAL_RCC_HSI48_DISABLE();
  22082. 8009af4: 4b9b ldr r3, [pc, #620] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22083. 8009af6: 681b ldr r3, [r3, #0]
  22084. 8009af8: 4a9a ldr r2, [pc, #616] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22085. 8009afa: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  22086. 8009afe: 6013 str r3, [r2, #0]
  22087. /* Get time-out */
  22088. tickstart = HAL_GetTick();
  22089. 8009b00: f7fb f846 bl 8004b90 <HAL_GetTick>
  22090. 8009b04: 6278 str r0, [r7, #36] @ 0x24
  22091. /* Wait till HSI48 is ready */
  22092. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U)
  22093. 8009b06: e008 b.n 8009b1a <HAL_RCC_OscConfig+0x522>
  22094. {
  22095. if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE)
  22096. 8009b08: f7fb f842 bl 8004b90 <HAL_GetTick>
  22097. 8009b0c: 4602 mov r2, r0
  22098. 8009b0e: 6a7b ldr r3, [r7, #36] @ 0x24
  22099. 8009b10: 1ad3 subs r3, r2, r3
  22100. 8009b12: 2b02 cmp r3, #2
  22101. 8009b14: d901 bls.n 8009b1a <HAL_RCC_OscConfig+0x522>
  22102. {
  22103. return HAL_TIMEOUT;
  22104. 8009b16: 2303 movs r3, #3
  22105. 8009b18: e1c0 b.n 8009e9c <HAL_RCC_OscConfig+0x8a4>
  22106. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U)
  22107. 8009b1a: 4b92 ldr r3, [pc, #584] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22108. 8009b1c: 681b ldr r3, [r3, #0]
  22109. 8009b1e: f403 5300 and.w r3, r3, #8192 @ 0x2000
  22110. 8009b22: 2b00 cmp r3, #0
  22111. 8009b24: d1f0 bne.n 8009b08 <HAL_RCC_OscConfig+0x510>
  22112. }
  22113. }
  22114. }
  22115. }
  22116. /*------------------------------ LSE Configuration -------------------------*/
  22117. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
  22118. 8009b26: 687b ldr r3, [r7, #4]
  22119. 8009b28: 681b ldr r3, [r3, #0]
  22120. 8009b2a: f003 0304 and.w r3, r3, #4
  22121. 8009b2e: 2b00 cmp r3, #0
  22122. 8009b30: f000 8081 beq.w 8009c36 <HAL_RCC_OscConfig+0x63e>
  22123. {
  22124. /* Check the parameters */
  22125. assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState));
  22126. /* Enable write access to Backup domain */
  22127. PWR->CR1 |= PWR_CR1_DBP;
  22128. 8009b34: 4b8c ldr r3, [pc, #560] @ (8009d68 <HAL_RCC_OscConfig+0x770>)
  22129. 8009b36: 681b ldr r3, [r3, #0]
  22130. 8009b38: 4a8b ldr r2, [pc, #556] @ (8009d68 <HAL_RCC_OscConfig+0x770>)
  22131. 8009b3a: f443 7380 orr.w r3, r3, #256 @ 0x100
  22132. 8009b3e: 6013 str r3, [r2, #0]
  22133. /* Wait for Backup domain Write protection disable */
  22134. tickstart = HAL_GetTick();
  22135. 8009b40: f7fb f826 bl 8004b90 <HAL_GetTick>
  22136. 8009b44: 6278 str r0, [r7, #36] @ 0x24
  22137. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  22138. 8009b46: e008 b.n 8009b5a <HAL_RCC_OscConfig+0x562>
  22139. {
  22140. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  22141. 8009b48: f7fb f822 bl 8004b90 <HAL_GetTick>
  22142. 8009b4c: 4602 mov r2, r0
  22143. 8009b4e: 6a7b ldr r3, [r7, #36] @ 0x24
  22144. 8009b50: 1ad3 subs r3, r2, r3
  22145. 8009b52: 2b64 cmp r3, #100 @ 0x64
  22146. 8009b54: d901 bls.n 8009b5a <HAL_RCC_OscConfig+0x562>
  22147. {
  22148. return HAL_TIMEOUT;
  22149. 8009b56: 2303 movs r3, #3
  22150. 8009b58: e1a0 b.n 8009e9c <HAL_RCC_OscConfig+0x8a4>
  22151. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  22152. 8009b5a: 4b83 ldr r3, [pc, #524] @ (8009d68 <HAL_RCC_OscConfig+0x770>)
  22153. 8009b5c: 681b ldr r3, [r3, #0]
  22154. 8009b5e: f403 7380 and.w r3, r3, #256 @ 0x100
  22155. 8009b62: 2b00 cmp r3, #0
  22156. 8009b64: d0f0 beq.n 8009b48 <HAL_RCC_OscConfig+0x550>
  22157. }
  22158. }
  22159. /* Set the new LSE configuration -----------------------------------------*/
  22160. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  22161. 8009b66: 687b ldr r3, [r7, #4]
  22162. 8009b68: 689b ldr r3, [r3, #8]
  22163. 8009b6a: 2b01 cmp r3, #1
  22164. 8009b6c: d106 bne.n 8009b7c <HAL_RCC_OscConfig+0x584>
  22165. 8009b6e: 4b7d ldr r3, [pc, #500] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22166. 8009b70: 6f1b ldr r3, [r3, #112] @ 0x70
  22167. 8009b72: 4a7c ldr r2, [pc, #496] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22168. 8009b74: f043 0301 orr.w r3, r3, #1
  22169. 8009b78: 6713 str r3, [r2, #112] @ 0x70
  22170. 8009b7a: e02d b.n 8009bd8 <HAL_RCC_OscConfig+0x5e0>
  22171. 8009b7c: 687b ldr r3, [r7, #4]
  22172. 8009b7e: 689b ldr r3, [r3, #8]
  22173. 8009b80: 2b00 cmp r3, #0
  22174. 8009b82: d10c bne.n 8009b9e <HAL_RCC_OscConfig+0x5a6>
  22175. 8009b84: 4b77 ldr r3, [pc, #476] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22176. 8009b86: 6f1b ldr r3, [r3, #112] @ 0x70
  22177. 8009b88: 4a76 ldr r2, [pc, #472] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22178. 8009b8a: f023 0301 bic.w r3, r3, #1
  22179. 8009b8e: 6713 str r3, [r2, #112] @ 0x70
  22180. 8009b90: 4b74 ldr r3, [pc, #464] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22181. 8009b92: 6f1b ldr r3, [r3, #112] @ 0x70
  22182. 8009b94: 4a73 ldr r2, [pc, #460] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22183. 8009b96: f023 0304 bic.w r3, r3, #4
  22184. 8009b9a: 6713 str r3, [r2, #112] @ 0x70
  22185. 8009b9c: e01c b.n 8009bd8 <HAL_RCC_OscConfig+0x5e0>
  22186. 8009b9e: 687b ldr r3, [r7, #4]
  22187. 8009ba0: 689b ldr r3, [r3, #8]
  22188. 8009ba2: 2b05 cmp r3, #5
  22189. 8009ba4: d10c bne.n 8009bc0 <HAL_RCC_OscConfig+0x5c8>
  22190. 8009ba6: 4b6f ldr r3, [pc, #444] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22191. 8009ba8: 6f1b ldr r3, [r3, #112] @ 0x70
  22192. 8009baa: 4a6e ldr r2, [pc, #440] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22193. 8009bac: f043 0304 orr.w r3, r3, #4
  22194. 8009bb0: 6713 str r3, [r2, #112] @ 0x70
  22195. 8009bb2: 4b6c ldr r3, [pc, #432] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22196. 8009bb4: 6f1b ldr r3, [r3, #112] @ 0x70
  22197. 8009bb6: 4a6b ldr r2, [pc, #428] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22198. 8009bb8: f043 0301 orr.w r3, r3, #1
  22199. 8009bbc: 6713 str r3, [r2, #112] @ 0x70
  22200. 8009bbe: e00b b.n 8009bd8 <HAL_RCC_OscConfig+0x5e0>
  22201. 8009bc0: 4b68 ldr r3, [pc, #416] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22202. 8009bc2: 6f1b ldr r3, [r3, #112] @ 0x70
  22203. 8009bc4: 4a67 ldr r2, [pc, #412] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22204. 8009bc6: f023 0301 bic.w r3, r3, #1
  22205. 8009bca: 6713 str r3, [r2, #112] @ 0x70
  22206. 8009bcc: 4b65 ldr r3, [pc, #404] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22207. 8009bce: 6f1b ldr r3, [r3, #112] @ 0x70
  22208. 8009bd0: 4a64 ldr r2, [pc, #400] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22209. 8009bd2: f023 0304 bic.w r3, r3, #4
  22210. 8009bd6: 6713 str r3, [r2, #112] @ 0x70
  22211. /* Check the LSE State */
  22212. if ((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF)
  22213. 8009bd8: 687b ldr r3, [r7, #4]
  22214. 8009bda: 689b ldr r3, [r3, #8]
  22215. 8009bdc: 2b00 cmp r3, #0
  22216. 8009bde: d015 beq.n 8009c0c <HAL_RCC_OscConfig+0x614>
  22217. {
  22218. /* Get Start Tick*/
  22219. tickstart = HAL_GetTick();
  22220. 8009be0: f7fa ffd6 bl 8004b90 <HAL_GetTick>
  22221. 8009be4: 6278 str r0, [r7, #36] @ 0x24
  22222. /* Wait till LSE is ready */
  22223. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  22224. 8009be6: e00a b.n 8009bfe <HAL_RCC_OscConfig+0x606>
  22225. {
  22226. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  22227. 8009be8: f7fa ffd2 bl 8004b90 <HAL_GetTick>
  22228. 8009bec: 4602 mov r2, r0
  22229. 8009bee: 6a7b ldr r3, [r7, #36] @ 0x24
  22230. 8009bf0: 1ad3 subs r3, r2, r3
  22231. 8009bf2: f241 3288 movw r2, #5000 @ 0x1388
  22232. 8009bf6: 4293 cmp r3, r2
  22233. 8009bf8: d901 bls.n 8009bfe <HAL_RCC_OscConfig+0x606>
  22234. {
  22235. return HAL_TIMEOUT;
  22236. 8009bfa: 2303 movs r3, #3
  22237. 8009bfc: e14e b.n 8009e9c <HAL_RCC_OscConfig+0x8a4>
  22238. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  22239. 8009bfe: 4b59 ldr r3, [pc, #356] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22240. 8009c00: 6f1b ldr r3, [r3, #112] @ 0x70
  22241. 8009c02: f003 0302 and.w r3, r3, #2
  22242. 8009c06: 2b00 cmp r3, #0
  22243. 8009c08: d0ee beq.n 8009be8 <HAL_RCC_OscConfig+0x5f0>
  22244. 8009c0a: e014 b.n 8009c36 <HAL_RCC_OscConfig+0x63e>
  22245. }
  22246. }
  22247. else
  22248. {
  22249. /* Get Start Tick*/
  22250. tickstart = HAL_GetTick();
  22251. 8009c0c: f7fa ffc0 bl 8004b90 <HAL_GetTick>
  22252. 8009c10: 6278 str r0, [r7, #36] @ 0x24
  22253. /* Wait till LSE is disabled */
  22254. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  22255. 8009c12: e00a b.n 8009c2a <HAL_RCC_OscConfig+0x632>
  22256. {
  22257. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  22258. 8009c14: f7fa ffbc bl 8004b90 <HAL_GetTick>
  22259. 8009c18: 4602 mov r2, r0
  22260. 8009c1a: 6a7b ldr r3, [r7, #36] @ 0x24
  22261. 8009c1c: 1ad3 subs r3, r2, r3
  22262. 8009c1e: f241 3288 movw r2, #5000 @ 0x1388
  22263. 8009c22: 4293 cmp r3, r2
  22264. 8009c24: d901 bls.n 8009c2a <HAL_RCC_OscConfig+0x632>
  22265. {
  22266. return HAL_TIMEOUT;
  22267. 8009c26: 2303 movs r3, #3
  22268. 8009c28: e138 b.n 8009e9c <HAL_RCC_OscConfig+0x8a4>
  22269. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  22270. 8009c2a: 4b4e ldr r3, [pc, #312] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22271. 8009c2c: 6f1b ldr r3, [r3, #112] @ 0x70
  22272. 8009c2e: f003 0302 and.w r3, r3, #2
  22273. 8009c32: 2b00 cmp r3, #0
  22274. 8009c34: d1ee bne.n 8009c14 <HAL_RCC_OscConfig+0x61c>
  22275. }
  22276. }
  22277. /*-------------------------------- PLL Configuration -----------------------*/
  22278. /* Check the parameters */
  22279. assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState));
  22280. if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE)
  22281. 8009c36: 687b ldr r3, [r7, #4]
  22282. 8009c38: 6a5b ldr r3, [r3, #36] @ 0x24
  22283. 8009c3a: 2b00 cmp r3, #0
  22284. 8009c3c: f000 812d beq.w 8009e9a <HAL_RCC_OscConfig+0x8a2>
  22285. {
  22286. /* Check if the PLL is used as system clock or not */
  22287. if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL1)
  22288. 8009c40: 4b48 ldr r3, [pc, #288] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22289. 8009c42: 691b ldr r3, [r3, #16]
  22290. 8009c44: f003 0338 and.w r3, r3, #56 @ 0x38
  22291. 8009c48: 2b18 cmp r3, #24
  22292. 8009c4a: f000 80bd beq.w 8009dc8 <HAL_RCC_OscConfig+0x7d0>
  22293. {
  22294. if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
  22295. 8009c4e: 687b ldr r3, [r7, #4]
  22296. 8009c50: 6a5b ldr r3, [r3, #36] @ 0x24
  22297. 8009c52: 2b02 cmp r3, #2
  22298. 8009c54: f040 809e bne.w 8009d94 <HAL_RCC_OscConfig+0x79c>
  22299. assert_param(IS_RCC_PLLQ_VALUE(RCC_OscInitStruct->PLL.PLLQ));
  22300. assert_param(IS_RCC_PLLR_VALUE(RCC_OscInitStruct->PLL.PLLR));
  22301. assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN));
  22302. /* Disable the main PLL. */
  22303. __HAL_RCC_PLL_DISABLE();
  22304. 8009c58: 4b42 ldr r3, [pc, #264] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22305. 8009c5a: 681b ldr r3, [r3, #0]
  22306. 8009c5c: 4a41 ldr r2, [pc, #260] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22307. 8009c5e: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
  22308. 8009c62: 6013 str r3, [r2, #0]
  22309. /* Get Start Tick*/
  22310. tickstart = HAL_GetTick();
  22311. 8009c64: f7fa ff94 bl 8004b90 <HAL_GetTick>
  22312. 8009c68: 6278 str r0, [r7, #36] @ 0x24
  22313. /* Wait till PLL is disabled */
  22314. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  22315. 8009c6a: e008 b.n 8009c7e <HAL_RCC_OscConfig+0x686>
  22316. {
  22317. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  22318. 8009c6c: f7fa ff90 bl 8004b90 <HAL_GetTick>
  22319. 8009c70: 4602 mov r2, r0
  22320. 8009c72: 6a7b ldr r3, [r7, #36] @ 0x24
  22321. 8009c74: 1ad3 subs r3, r2, r3
  22322. 8009c76: 2b02 cmp r3, #2
  22323. 8009c78: d901 bls.n 8009c7e <HAL_RCC_OscConfig+0x686>
  22324. {
  22325. return HAL_TIMEOUT;
  22326. 8009c7a: 2303 movs r3, #3
  22327. 8009c7c: e10e b.n 8009e9c <HAL_RCC_OscConfig+0x8a4>
  22328. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  22329. 8009c7e: 4b39 ldr r3, [pc, #228] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22330. 8009c80: 681b ldr r3, [r3, #0]
  22331. 8009c82: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  22332. 8009c86: 2b00 cmp r3, #0
  22333. 8009c88: d1f0 bne.n 8009c6c <HAL_RCC_OscConfig+0x674>
  22334. }
  22335. }
  22336. /* Configure the main PLL clock source, multiplication and division factors. */
  22337. __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource,
  22338. 8009c8a: 4b36 ldr r3, [pc, #216] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22339. 8009c8c: 6a9a ldr r2, [r3, #40] @ 0x28
  22340. 8009c8e: 4b37 ldr r3, [pc, #220] @ (8009d6c <HAL_RCC_OscConfig+0x774>)
  22341. 8009c90: 4013 ands r3, r2
  22342. 8009c92: 687a ldr r2, [r7, #4]
  22343. 8009c94: 6a91 ldr r1, [r2, #40] @ 0x28
  22344. 8009c96: 687a ldr r2, [r7, #4]
  22345. 8009c98: 6ad2 ldr r2, [r2, #44] @ 0x2c
  22346. 8009c9a: 0112 lsls r2, r2, #4
  22347. 8009c9c: 430a orrs r2, r1
  22348. 8009c9e: 4931 ldr r1, [pc, #196] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22349. 8009ca0: 4313 orrs r3, r2
  22350. 8009ca2: 628b str r3, [r1, #40] @ 0x28
  22351. 8009ca4: 687b ldr r3, [r7, #4]
  22352. 8009ca6: 6b1b ldr r3, [r3, #48] @ 0x30
  22353. 8009ca8: 3b01 subs r3, #1
  22354. 8009caa: f3c3 0208 ubfx r2, r3, #0, #9
  22355. 8009cae: 687b ldr r3, [r7, #4]
  22356. 8009cb0: 6b5b ldr r3, [r3, #52] @ 0x34
  22357. 8009cb2: 3b01 subs r3, #1
  22358. 8009cb4: 025b lsls r3, r3, #9
  22359. 8009cb6: b29b uxth r3, r3
  22360. 8009cb8: 431a orrs r2, r3
  22361. 8009cba: 687b ldr r3, [r7, #4]
  22362. 8009cbc: 6b9b ldr r3, [r3, #56] @ 0x38
  22363. 8009cbe: 3b01 subs r3, #1
  22364. 8009cc0: 041b lsls r3, r3, #16
  22365. 8009cc2: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  22366. 8009cc6: 431a orrs r2, r3
  22367. 8009cc8: 687b ldr r3, [r7, #4]
  22368. 8009cca: 6bdb ldr r3, [r3, #60] @ 0x3c
  22369. 8009ccc: 3b01 subs r3, #1
  22370. 8009cce: 061b lsls r3, r3, #24
  22371. 8009cd0: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  22372. 8009cd4: 4923 ldr r1, [pc, #140] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22373. 8009cd6: 4313 orrs r3, r2
  22374. 8009cd8: 630b str r3, [r1, #48] @ 0x30
  22375. RCC_OscInitStruct->PLL.PLLP,
  22376. RCC_OscInitStruct->PLL.PLLQ,
  22377. RCC_OscInitStruct->PLL.PLLR);
  22378. /* Disable PLLFRACN . */
  22379. __HAL_RCC_PLLFRACN_DISABLE();
  22380. 8009cda: 4b22 ldr r3, [pc, #136] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22381. 8009cdc: 6adb ldr r3, [r3, #44] @ 0x2c
  22382. 8009cde: 4a21 ldr r2, [pc, #132] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22383. 8009ce0: f023 0301 bic.w r3, r3, #1
  22384. 8009ce4: 62d3 str r3, [r2, #44] @ 0x2c
  22385. /* Configure PLL PLL1FRACN */
  22386. __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN);
  22387. 8009ce6: 4b1f ldr r3, [pc, #124] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22388. 8009ce8: 6b5a ldr r2, [r3, #52] @ 0x34
  22389. 8009cea: 4b21 ldr r3, [pc, #132] @ (8009d70 <HAL_RCC_OscConfig+0x778>)
  22390. 8009cec: 4013 ands r3, r2
  22391. 8009cee: 687a ldr r2, [r7, #4]
  22392. 8009cf0: 6c92 ldr r2, [r2, #72] @ 0x48
  22393. 8009cf2: 00d2 lsls r2, r2, #3
  22394. 8009cf4: 491b ldr r1, [pc, #108] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22395. 8009cf6: 4313 orrs r3, r2
  22396. 8009cf8: 634b str r3, [r1, #52] @ 0x34
  22397. /* Select PLL1 input reference frequency range: VCI */
  22398. __HAL_RCC_PLL_VCIRANGE(RCC_OscInitStruct->PLL.PLLRGE) ;
  22399. 8009cfa: 4b1a ldr r3, [pc, #104] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22400. 8009cfc: 6adb ldr r3, [r3, #44] @ 0x2c
  22401. 8009cfe: f023 020c bic.w r2, r3, #12
  22402. 8009d02: 687b ldr r3, [r7, #4]
  22403. 8009d04: 6c1b ldr r3, [r3, #64] @ 0x40
  22404. 8009d06: 4917 ldr r1, [pc, #92] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22405. 8009d08: 4313 orrs r3, r2
  22406. 8009d0a: 62cb str r3, [r1, #44] @ 0x2c
  22407. /* Select PLL1 output frequency range : VCO */
  22408. __HAL_RCC_PLL_VCORANGE(RCC_OscInitStruct->PLL.PLLVCOSEL) ;
  22409. 8009d0c: 4b15 ldr r3, [pc, #84] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22410. 8009d0e: 6adb ldr r3, [r3, #44] @ 0x2c
  22411. 8009d10: f023 0202 bic.w r2, r3, #2
  22412. 8009d14: 687b ldr r3, [r7, #4]
  22413. 8009d16: 6c5b ldr r3, [r3, #68] @ 0x44
  22414. 8009d18: 4912 ldr r1, [pc, #72] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22415. 8009d1a: 4313 orrs r3, r2
  22416. 8009d1c: 62cb str r3, [r1, #44] @ 0x2c
  22417. /* Enable PLL System Clock output. */
  22418. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVP);
  22419. 8009d1e: 4b11 ldr r3, [pc, #68] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22420. 8009d20: 6adb ldr r3, [r3, #44] @ 0x2c
  22421. 8009d22: 4a10 ldr r2, [pc, #64] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22422. 8009d24: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  22423. 8009d28: 62d3 str r3, [r2, #44] @ 0x2c
  22424. /* Enable PLL1Q Clock output. */
  22425. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  22426. 8009d2a: 4b0e ldr r3, [pc, #56] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22427. 8009d2c: 6adb ldr r3, [r3, #44] @ 0x2c
  22428. 8009d2e: 4a0d ldr r2, [pc, #52] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22429. 8009d30: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  22430. 8009d34: 62d3 str r3, [r2, #44] @ 0x2c
  22431. /* Enable PLL1R Clock output. */
  22432. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVR);
  22433. 8009d36: 4b0b ldr r3, [pc, #44] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22434. 8009d38: 6adb ldr r3, [r3, #44] @ 0x2c
  22435. 8009d3a: 4a0a ldr r2, [pc, #40] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22436. 8009d3c: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  22437. 8009d40: 62d3 str r3, [r2, #44] @ 0x2c
  22438. /* Enable PLL1FRACN . */
  22439. __HAL_RCC_PLLFRACN_ENABLE();
  22440. 8009d42: 4b08 ldr r3, [pc, #32] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22441. 8009d44: 6adb ldr r3, [r3, #44] @ 0x2c
  22442. 8009d46: 4a07 ldr r2, [pc, #28] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22443. 8009d48: f043 0301 orr.w r3, r3, #1
  22444. 8009d4c: 62d3 str r3, [r2, #44] @ 0x2c
  22445. /* Enable the main PLL. */
  22446. __HAL_RCC_PLL_ENABLE();
  22447. 8009d4e: 4b05 ldr r3, [pc, #20] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22448. 8009d50: 681b ldr r3, [r3, #0]
  22449. 8009d52: 4a04 ldr r2, [pc, #16] @ (8009d64 <HAL_RCC_OscConfig+0x76c>)
  22450. 8009d54: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  22451. 8009d58: 6013 str r3, [r2, #0]
  22452. /* Get Start Tick*/
  22453. tickstart = HAL_GetTick();
  22454. 8009d5a: f7fa ff19 bl 8004b90 <HAL_GetTick>
  22455. 8009d5e: 6278 str r0, [r7, #36] @ 0x24
  22456. /* Wait till PLL is ready */
  22457. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  22458. 8009d60: e011 b.n 8009d86 <HAL_RCC_OscConfig+0x78e>
  22459. 8009d62: bf00 nop
  22460. 8009d64: 58024400 .word 0x58024400
  22461. 8009d68: 58024800 .word 0x58024800
  22462. 8009d6c: fffffc0c .word 0xfffffc0c
  22463. 8009d70: ffff0007 .word 0xffff0007
  22464. {
  22465. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  22466. 8009d74: f7fa ff0c bl 8004b90 <HAL_GetTick>
  22467. 8009d78: 4602 mov r2, r0
  22468. 8009d7a: 6a7b ldr r3, [r7, #36] @ 0x24
  22469. 8009d7c: 1ad3 subs r3, r2, r3
  22470. 8009d7e: 2b02 cmp r3, #2
  22471. 8009d80: d901 bls.n 8009d86 <HAL_RCC_OscConfig+0x78e>
  22472. {
  22473. return HAL_TIMEOUT;
  22474. 8009d82: 2303 movs r3, #3
  22475. 8009d84: e08a b.n 8009e9c <HAL_RCC_OscConfig+0x8a4>
  22476. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  22477. 8009d86: 4b47 ldr r3, [pc, #284] @ (8009ea4 <HAL_RCC_OscConfig+0x8ac>)
  22478. 8009d88: 681b ldr r3, [r3, #0]
  22479. 8009d8a: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  22480. 8009d8e: 2b00 cmp r3, #0
  22481. 8009d90: d0f0 beq.n 8009d74 <HAL_RCC_OscConfig+0x77c>
  22482. 8009d92: e082 b.n 8009e9a <HAL_RCC_OscConfig+0x8a2>
  22483. }
  22484. }
  22485. else
  22486. {
  22487. /* Disable the main PLL. */
  22488. __HAL_RCC_PLL_DISABLE();
  22489. 8009d94: 4b43 ldr r3, [pc, #268] @ (8009ea4 <HAL_RCC_OscConfig+0x8ac>)
  22490. 8009d96: 681b ldr r3, [r3, #0]
  22491. 8009d98: 4a42 ldr r2, [pc, #264] @ (8009ea4 <HAL_RCC_OscConfig+0x8ac>)
  22492. 8009d9a: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
  22493. 8009d9e: 6013 str r3, [r2, #0]
  22494. /* Get Start Tick*/
  22495. tickstart = HAL_GetTick();
  22496. 8009da0: f7fa fef6 bl 8004b90 <HAL_GetTick>
  22497. 8009da4: 6278 str r0, [r7, #36] @ 0x24
  22498. /* Wait till PLL is disabled */
  22499. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  22500. 8009da6: e008 b.n 8009dba <HAL_RCC_OscConfig+0x7c2>
  22501. {
  22502. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  22503. 8009da8: f7fa fef2 bl 8004b90 <HAL_GetTick>
  22504. 8009dac: 4602 mov r2, r0
  22505. 8009dae: 6a7b ldr r3, [r7, #36] @ 0x24
  22506. 8009db0: 1ad3 subs r3, r2, r3
  22507. 8009db2: 2b02 cmp r3, #2
  22508. 8009db4: d901 bls.n 8009dba <HAL_RCC_OscConfig+0x7c2>
  22509. {
  22510. return HAL_TIMEOUT;
  22511. 8009db6: 2303 movs r3, #3
  22512. 8009db8: e070 b.n 8009e9c <HAL_RCC_OscConfig+0x8a4>
  22513. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  22514. 8009dba: 4b3a ldr r3, [pc, #232] @ (8009ea4 <HAL_RCC_OscConfig+0x8ac>)
  22515. 8009dbc: 681b ldr r3, [r3, #0]
  22516. 8009dbe: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  22517. 8009dc2: 2b00 cmp r3, #0
  22518. 8009dc4: d1f0 bne.n 8009da8 <HAL_RCC_OscConfig+0x7b0>
  22519. 8009dc6: e068 b.n 8009e9a <HAL_RCC_OscConfig+0x8a2>
  22520. }
  22521. }
  22522. else
  22523. {
  22524. /* Do not return HAL_ERROR if request repeats the current configuration */
  22525. temp1_pllckcfg = RCC->PLLCKSELR;
  22526. 8009dc8: 4b36 ldr r3, [pc, #216] @ (8009ea4 <HAL_RCC_OscConfig+0x8ac>)
  22527. 8009dca: 6a9b ldr r3, [r3, #40] @ 0x28
  22528. 8009dcc: 613b str r3, [r7, #16]
  22529. temp2_pllckcfg = RCC->PLL1DIVR;
  22530. 8009dce: 4b35 ldr r3, [pc, #212] @ (8009ea4 <HAL_RCC_OscConfig+0x8ac>)
  22531. 8009dd0: 6b1b ldr r3, [r3, #48] @ 0x30
  22532. 8009dd2: 60fb str r3, [r7, #12]
  22533. if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
  22534. 8009dd4: 687b ldr r3, [r7, #4]
  22535. 8009dd6: 6a5b ldr r3, [r3, #36] @ 0x24
  22536. 8009dd8: 2b01 cmp r3, #1
  22537. 8009dda: d031 beq.n 8009e40 <HAL_RCC_OscConfig+0x848>
  22538. (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  22539. 8009ddc: 693b ldr r3, [r7, #16]
  22540. 8009dde: f003 0203 and.w r2, r3, #3
  22541. 8009de2: 687b ldr r3, [r7, #4]
  22542. 8009de4: 6a9b ldr r3, [r3, #40] @ 0x28
  22543. if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
  22544. 8009de6: 429a cmp r2, r3
  22545. 8009de8: d12a bne.n 8009e40 <HAL_RCC_OscConfig+0x848>
  22546. ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) ||
  22547. 8009dea: 693b ldr r3, [r7, #16]
  22548. 8009dec: 091b lsrs r3, r3, #4
  22549. 8009dee: f003 023f and.w r2, r3, #63 @ 0x3f
  22550. 8009df2: 687b ldr r3, [r7, #4]
  22551. 8009df4: 6adb ldr r3, [r3, #44] @ 0x2c
  22552. (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  22553. 8009df6: 429a cmp r2, r3
  22554. 8009df8: d122 bne.n 8009e40 <HAL_RCC_OscConfig+0x848>
  22555. (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) ||
  22556. 8009dfa: 68fb ldr r3, [r7, #12]
  22557. 8009dfc: f3c3 0208 ubfx r2, r3, #0, #9
  22558. 8009e00: 687b ldr r3, [r7, #4]
  22559. 8009e02: 6b1b ldr r3, [r3, #48] @ 0x30
  22560. 8009e04: 3b01 subs r3, #1
  22561. ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) ||
  22562. 8009e06: 429a cmp r2, r3
  22563. 8009e08: d11a bne.n 8009e40 <HAL_RCC_OscConfig+0x848>
  22564. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) ||
  22565. 8009e0a: 68fb ldr r3, [r7, #12]
  22566. 8009e0c: 0a5b lsrs r3, r3, #9
  22567. 8009e0e: f003 027f and.w r2, r3, #127 @ 0x7f
  22568. 8009e12: 687b ldr r3, [r7, #4]
  22569. 8009e14: 6b5b ldr r3, [r3, #52] @ 0x34
  22570. 8009e16: 3b01 subs r3, #1
  22571. (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) ||
  22572. 8009e18: 429a cmp r2, r3
  22573. 8009e1a: d111 bne.n 8009e40 <HAL_RCC_OscConfig+0x848>
  22574. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) ||
  22575. 8009e1c: 68fb ldr r3, [r7, #12]
  22576. 8009e1e: 0c1b lsrs r3, r3, #16
  22577. 8009e20: f003 027f and.w r2, r3, #127 @ 0x7f
  22578. 8009e24: 687b ldr r3, [r7, #4]
  22579. 8009e26: 6b9b ldr r3, [r3, #56] @ 0x38
  22580. 8009e28: 3b01 subs r3, #1
  22581. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) ||
  22582. 8009e2a: 429a cmp r2, r3
  22583. 8009e2c: d108 bne.n 8009e40 <HAL_RCC_OscConfig+0x848>
  22584. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_R1) >> RCC_PLL1DIVR_R1_Pos) != (RCC_OscInitStruct->PLL.PLLR - 1U)))
  22585. 8009e2e: 68fb ldr r3, [r7, #12]
  22586. 8009e30: 0e1b lsrs r3, r3, #24
  22587. 8009e32: f003 027f and.w r2, r3, #127 @ 0x7f
  22588. 8009e36: 687b ldr r3, [r7, #4]
  22589. 8009e38: 6bdb ldr r3, [r3, #60] @ 0x3c
  22590. 8009e3a: 3b01 subs r3, #1
  22591. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) ||
  22592. 8009e3c: 429a cmp r2, r3
  22593. 8009e3e: d001 beq.n 8009e44 <HAL_RCC_OscConfig+0x84c>
  22594. {
  22595. return HAL_ERROR;
  22596. 8009e40: 2301 movs r3, #1
  22597. 8009e42: e02b b.n 8009e9c <HAL_RCC_OscConfig+0x8a4>
  22598. }
  22599. else
  22600. {
  22601. /* Check if only fractional part needs to be updated */
  22602. temp1_pllckcfg = ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> RCC_PLL1FRACR_FRACN1_Pos);
  22603. 8009e44: 4b17 ldr r3, [pc, #92] @ (8009ea4 <HAL_RCC_OscConfig+0x8ac>)
  22604. 8009e46: 6b5b ldr r3, [r3, #52] @ 0x34
  22605. 8009e48: 08db lsrs r3, r3, #3
  22606. 8009e4a: f3c3 030c ubfx r3, r3, #0, #13
  22607. 8009e4e: 613b str r3, [r7, #16]
  22608. if (RCC_OscInitStruct->PLL.PLLFRACN != temp1_pllckcfg)
  22609. 8009e50: 687b ldr r3, [r7, #4]
  22610. 8009e52: 6c9b ldr r3, [r3, #72] @ 0x48
  22611. 8009e54: 693a ldr r2, [r7, #16]
  22612. 8009e56: 429a cmp r2, r3
  22613. 8009e58: d01f beq.n 8009e9a <HAL_RCC_OscConfig+0x8a2>
  22614. {
  22615. assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN));
  22616. /* Disable PLL1FRACEN */
  22617. __HAL_RCC_PLLFRACN_DISABLE();
  22618. 8009e5a: 4b12 ldr r3, [pc, #72] @ (8009ea4 <HAL_RCC_OscConfig+0x8ac>)
  22619. 8009e5c: 6adb ldr r3, [r3, #44] @ 0x2c
  22620. 8009e5e: 4a11 ldr r2, [pc, #68] @ (8009ea4 <HAL_RCC_OscConfig+0x8ac>)
  22621. 8009e60: f023 0301 bic.w r3, r3, #1
  22622. 8009e64: 62d3 str r3, [r2, #44] @ 0x2c
  22623. /* Get Start Tick*/
  22624. tickstart = HAL_GetTick();
  22625. 8009e66: f7fa fe93 bl 8004b90 <HAL_GetTick>
  22626. 8009e6a: 6278 str r0, [r7, #36] @ 0x24
  22627. /* Wait at least 2 CK_REF (PLL input source divided by M) period to make sure next latched value will be taken into account. */
  22628. while ((HAL_GetTick() - tickstart) < PLL_FRAC_TIMEOUT_VALUE)
  22629. 8009e6c: bf00 nop
  22630. 8009e6e: f7fa fe8f bl 8004b90 <HAL_GetTick>
  22631. 8009e72: 4602 mov r2, r0
  22632. 8009e74: 6a7b ldr r3, [r7, #36] @ 0x24
  22633. 8009e76: 4293 cmp r3, r2
  22634. 8009e78: d0f9 beq.n 8009e6e <HAL_RCC_OscConfig+0x876>
  22635. {
  22636. }
  22637. /* Configure PLL1 PLL1FRACN */
  22638. __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN);
  22639. 8009e7a: 4b0a ldr r3, [pc, #40] @ (8009ea4 <HAL_RCC_OscConfig+0x8ac>)
  22640. 8009e7c: 6b5a ldr r2, [r3, #52] @ 0x34
  22641. 8009e7e: 4b0a ldr r3, [pc, #40] @ (8009ea8 <HAL_RCC_OscConfig+0x8b0>)
  22642. 8009e80: 4013 ands r3, r2
  22643. 8009e82: 687a ldr r2, [r7, #4]
  22644. 8009e84: 6c92 ldr r2, [r2, #72] @ 0x48
  22645. 8009e86: 00d2 lsls r2, r2, #3
  22646. 8009e88: 4906 ldr r1, [pc, #24] @ (8009ea4 <HAL_RCC_OscConfig+0x8ac>)
  22647. 8009e8a: 4313 orrs r3, r2
  22648. 8009e8c: 634b str r3, [r1, #52] @ 0x34
  22649. /* Enable PLL1FRACEN to latch new value. */
  22650. __HAL_RCC_PLLFRACN_ENABLE();
  22651. 8009e8e: 4b05 ldr r3, [pc, #20] @ (8009ea4 <HAL_RCC_OscConfig+0x8ac>)
  22652. 8009e90: 6adb ldr r3, [r3, #44] @ 0x2c
  22653. 8009e92: 4a04 ldr r2, [pc, #16] @ (8009ea4 <HAL_RCC_OscConfig+0x8ac>)
  22654. 8009e94: f043 0301 orr.w r3, r3, #1
  22655. 8009e98: 62d3 str r3, [r2, #44] @ 0x2c
  22656. }
  22657. }
  22658. }
  22659. }
  22660. return HAL_OK;
  22661. 8009e9a: 2300 movs r3, #0
  22662. }
  22663. 8009e9c: 4618 mov r0, r3
  22664. 8009e9e: 3730 adds r7, #48 @ 0x30
  22665. 8009ea0: 46bd mov sp, r7
  22666. 8009ea2: bd80 pop {r7, pc}
  22667. 8009ea4: 58024400 .word 0x58024400
  22668. 8009ea8: ffff0007 .word 0xffff0007
  22669. 08009eac <HAL_RCC_ClockConfig>:
  22670. * D1CPRE[3:0] bits to ensure that Domain1 core clock not exceed the maximum allowed frequency
  22671. * (for more details refer to section above "Initialization/de-initialization functions")
  22672. * @retval None
  22673. */
  22674. HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency)
  22675. {
  22676. 8009eac: b580 push {r7, lr}
  22677. 8009eae: b086 sub sp, #24
  22678. 8009eb0: af00 add r7, sp, #0
  22679. 8009eb2: 6078 str r0, [r7, #4]
  22680. 8009eb4: 6039 str r1, [r7, #0]
  22681. HAL_StatusTypeDef halstatus;
  22682. uint32_t tickstart;
  22683. uint32_t common_system_clock;
  22684. /* Check Null pointer */
  22685. if (RCC_ClkInitStruct == NULL)
  22686. 8009eb6: 687b ldr r3, [r7, #4]
  22687. 8009eb8: 2b00 cmp r3, #0
  22688. 8009eba: d101 bne.n 8009ec0 <HAL_RCC_ClockConfig+0x14>
  22689. {
  22690. return HAL_ERROR;
  22691. 8009ebc: 2301 movs r3, #1
  22692. 8009ebe: e19c b.n 800a1fa <HAL_RCC_ClockConfig+0x34e>
  22693. /* To correctly read data from FLASH memory, the number of wait states (LATENCY)
  22694. must be correctly programmed according to the frequency of the CPU clock
  22695. (HCLK) and the supply voltage of the device. */
  22696. /* Increasing the CPU frequency */
  22697. if (FLatency > __HAL_FLASH_GET_LATENCY())
  22698. 8009ec0: 4b8a ldr r3, [pc, #552] @ (800a0ec <HAL_RCC_ClockConfig+0x240>)
  22699. 8009ec2: 681b ldr r3, [r3, #0]
  22700. 8009ec4: f003 030f and.w r3, r3, #15
  22701. 8009ec8: 683a ldr r2, [r7, #0]
  22702. 8009eca: 429a cmp r2, r3
  22703. 8009ecc: d910 bls.n 8009ef0 <HAL_RCC_ClockConfig+0x44>
  22704. {
  22705. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  22706. __HAL_FLASH_SET_LATENCY(FLatency);
  22707. 8009ece: 4b87 ldr r3, [pc, #540] @ (800a0ec <HAL_RCC_ClockConfig+0x240>)
  22708. 8009ed0: 681b ldr r3, [r3, #0]
  22709. 8009ed2: f023 020f bic.w r2, r3, #15
  22710. 8009ed6: 4985 ldr r1, [pc, #532] @ (800a0ec <HAL_RCC_ClockConfig+0x240>)
  22711. 8009ed8: 683b ldr r3, [r7, #0]
  22712. 8009eda: 4313 orrs r3, r2
  22713. 8009edc: 600b str r3, [r1, #0]
  22714. /* Check that the new number of wait states is taken into account to access the Flash
  22715. memory by reading the FLASH_ACR register */
  22716. if (__HAL_FLASH_GET_LATENCY() != FLatency)
  22717. 8009ede: 4b83 ldr r3, [pc, #524] @ (800a0ec <HAL_RCC_ClockConfig+0x240>)
  22718. 8009ee0: 681b ldr r3, [r3, #0]
  22719. 8009ee2: f003 030f and.w r3, r3, #15
  22720. 8009ee6: 683a ldr r2, [r7, #0]
  22721. 8009ee8: 429a cmp r2, r3
  22722. 8009eea: d001 beq.n 8009ef0 <HAL_RCC_ClockConfig+0x44>
  22723. {
  22724. return HAL_ERROR;
  22725. 8009eec: 2301 movs r3, #1
  22726. 8009eee: e184 b.n 800a1fa <HAL_RCC_ClockConfig+0x34e>
  22727. }
  22728. /* Increasing the BUS frequency divider */
  22729. /*-------------------------- D1PCLK1/CDPCLK1 Configuration ---------------------------*/
  22730. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1)
  22731. 8009ef0: 687b ldr r3, [r7, #4]
  22732. 8009ef2: 681b ldr r3, [r3, #0]
  22733. 8009ef4: f003 0304 and.w r3, r3, #4
  22734. 8009ef8: 2b00 cmp r3, #0
  22735. 8009efa: d010 beq.n 8009f1e <HAL_RCC_ClockConfig+0x72>
  22736. {
  22737. #if defined (RCC_D1CFGR_D1PPRE)
  22738. if ((RCC_ClkInitStruct->APB3CLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_D1PPRE))
  22739. 8009efc: 687b ldr r3, [r7, #4]
  22740. 8009efe: 691a ldr r2, [r3, #16]
  22741. 8009f00: 4b7b ldr r3, [pc, #492] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  22742. 8009f02: 699b ldr r3, [r3, #24]
  22743. 8009f04: f003 0370 and.w r3, r3, #112 @ 0x70
  22744. 8009f08: 429a cmp r2, r3
  22745. 8009f0a: d908 bls.n 8009f1e <HAL_RCC_ClockConfig+0x72>
  22746. {
  22747. assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider));
  22748. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider);
  22749. 8009f0c: 4b78 ldr r3, [pc, #480] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  22750. 8009f0e: 699b ldr r3, [r3, #24]
  22751. 8009f10: f023 0270 bic.w r2, r3, #112 @ 0x70
  22752. 8009f14: 687b ldr r3, [r7, #4]
  22753. 8009f16: 691b ldr r3, [r3, #16]
  22754. 8009f18: 4975 ldr r1, [pc, #468] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  22755. 8009f1a: 4313 orrs r3, r2
  22756. 8009f1c: 618b str r3, [r1, #24]
  22757. }
  22758. #endif
  22759. }
  22760. /*-------------------------- PCLK1 Configuration ---------------------------*/
  22761. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  22762. 8009f1e: 687b ldr r3, [r7, #4]
  22763. 8009f20: 681b ldr r3, [r3, #0]
  22764. 8009f22: f003 0308 and.w r3, r3, #8
  22765. 8009f26: 2b00 cmp r3, #0
  22766. 8009f28: d010 beq.n 8009f4c <HAL_RCC_ClockConfig+0xa0>
  22767. {
  22768. #if defined (RCC_D2CFGR_D2PPRE1)
  22769. if ((RCC_ClkInitStruct->APB1CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1))
  22770. 8009f2a: 687b ldr r3, [r7, #4]
  22771. 8009f2c: 695a ldr r2, [r3, #20]
  22772. 8009f2e: 4b70 ldr r3, [pc, #448] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  22773. 8009f30: 69db ldr r3, [r3, #28]
  22774. 8009f32: f003 0370 and.w r3, r3, #112 @ 0x70
  22775. 8009f36: 429a cmp r2, r3
  22776. 8009f38: d908 bls.n 8009f4c <HAL_RCC_ClockConfig+0xa0>
  22777. {
  22778. assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider));
  22779. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  22780. 8009f3a: 4b6d ldr r3, [pc, #436] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  22781. 8009f3c: 69db ldr r3, [r3, #28]
  22782. 8009f3e: f023 0270 bic.w r2, r3, #112 @ 0x70
  22783. 8009f42: 687b ldr r3, [r7, #4]
  22784. 8009f44: 695b ldr r3, [r3, #20]
  22785. 8009f46: 496a ldr r1, [pc, #424] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  22786. 8009f48: 4313 orrs r3, r2
  22787. 8009f4a: 61cb str r3, [r1, #28]
  22788. MODIFY_REG(RCC->CDCFGR2, RCC_CDCFGR2_CDPPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  22789. }
  22790. #endif
  22791. }
  22792. /*-------------------------- PCLK2 Configuration ---------------------------*/
  22793. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  22794. 8009f4c: 687b ldr r3, [r7, #4]
  22795. 8009f4e: 681b ldr r3, [r3, #0]
  22796. 8009f50: f003 0310 and.w r3, r3, #16
  22797. 8009f54: 2b00 cmp r3, #0
  22798. 8009f56: d010 beq.n 8009f7a <HAL_RCC_ClockConfig+0xce>
  22799. {
  22800. #if defined(RCC_D2CFGR_D2PPRE2)
  22801. if ((RCC_ClkInitStruct->APB2CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2))
  22802. 8009f58: 687b ldr r3, [r7, #4]
  22803. 8009f5a: 699a ldr r2, [r3, #24]
  22804. 8009f5c: 4b64 ldr r3, [pc, #400] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  22805. 8009f5e: 69db ldr r3, [r3, #28]
  22806. 8009f60: f403 63e0 and.w r3, r3, #1792 @ 0x700
  22807. 8009f64: 429a cmp r2, r3
  22808. 8009f66: d908 bls.n 8009f7a <HAL_RCC_ClockConfig+0xce>
  22809. {
  22810. assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider));
  22811. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider));
  22812. 8009f68: 4b61 ldr r3, [pc, #388] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  22813. 8009f6a: 69db ldr r3, [r3, #28]
  22814. 8009f6c: f423 62e0 bic.w r2, r3, #1792 @ 0x700
  22815. 8009f70: 687b ldr r3, [r7, #4]
  22816. 8009f72: 699b ldr r3, [r3, #24]
  22817. 8009f74: 495e ldr r1, [pc, #376] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  22818. 8009f76: 4313 orrs r3, r2
  22819. 8009f78: 61cb str r3, [r1, #28]
  22820. }
  22821. #endif
  22822. }
  22823. /*-------------------------- D3PCLK1 Configuration ---------------------------*/
  22824. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1)
  22825. 8009f7a: 687b ldr r3, [r7, #4]
  22826. 8009f7c: 681b ldr r3, [r3, #0]
  22827. 8009f7e: f003 0320 and.w r3, r3, #32
  22828. 8009f82: 2b00 cmp r3, #0
  22829. 8009f84: d010 beq.n 8009fa8 <HAL_RCC_ClockConfig+0xfc>
  22830. {
  22831. #if defined(RCC_D3CFGR_D3PPRE)
  22832. if ((RCC_ClkInitStruct->APB4CLKDivider) > (RCC->D3CFGR & RCC_D3CFGR_D3PPRE))
  22833. 8009f86: 687b ldr r3, [r7, #4]
  22834. 8009f88: 69da ldr r2, [r3, #28]
  22835. 8009f8a: 4b59 ldr r3, [pc, #356] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  22836. 8009f8c: 6a1b ldr r3, [r3, #32]
  22837. 8009f8e: f003 0370 and.w r3, r3, #112 @ 0x70
  22838. 8009f92: 429a cmp r2, r3
  22839. 8009f94: d908 bls.n 8009fa8 <HAL_RCC_ClockConfig+0xfc>
  22840. {
  22841. assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider));
  22842. MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider));
  22843. 8009f96: 4b56 ldr r3, [pc, #344] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  22844. 8009f98: 6a1b ldr r3, [r3, #32]
  22845. 8009f9a: f023 0270 bic.w r2, r3, #112 @ 0x70
  22846. 8009f9e: 687b ldr r3, [r7, #4]
  22847. 8009fa0: 69db ldr r3, [r3, #28]
  22848. 8009fa2: 4953 ldr r1, [pc, #332] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  22849. 8009fa4: 4313 orrs r3, r2
  22850. 8009fa6: 620b str r3, [r1, #32]
  22851. }
  22852. #endif
  22853. }
  22854. /*-------------------------- HCLK Configuration --------------------------*/
  22855. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  22856. 8009fa8: 687b ldr r3, [r7, #4]
  22857. 8009faa: 681b ldr r3, [r3, #0]
  22858. 8009fac: f003 0302 and.w r3, r3, #2
  22859. 8009fb0: 2b00 cmp r3, #0
  22860. 8009fb2: d010 beq.n 8009fd6 <HAL_RCC_ClockConfig+0x12a>
  22861. {
  22862. #if defined (RCC_D1CFGR_HPRE)
  22863. if ((RCC_ClkInitStruct->AHBCLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_HPRE))
  22864. 8009fb4: 687b ldr r3, [r7, #4]
  22865. 8009fb6: 68da ldr r2, [r3, #12]
  22866. 8009fb8: 4b4d ldr r3, [pc, #308] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  22867. 8009fba: 699b ldr r3, [r3, #24]
  22868. 8009fbc: f003 030f and.w r3, r3, #15
  22869. 8009fc0: 429a cmp r2, r3
  22870. 8009fc2: d908 bls.n 8009fd6 <HAL_RCC_ClockConfig+0x12a>
  22871. {
  22872. /* Set the new HCLK clock divider */
  22873. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  22874. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  22875. 8009fc4: 4b4a ldr r3, [pc, #296] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  22876. 8009fc6: 699b ldr r3, [r3, #24]
  22877. 8009fc8: f023 020f bic.w r2, r3, #15
  22878. 8009fcc: 687b ldr r3, [r7, #4]
  22879. 8009fce: 68db ldr r3, [r3, #12]
  22880. 8009fd0: 4947 ldr r1, [pc, #284] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  22881. 8009fd2: 4313 orrs r3, r2
  22882. 8009fd4: 618b str r3, [r1, #24]
  22883. }
  22884. #endif
  22885. }
  22886. /*------------------------- SYSCLK Configuration -------------------------*/
  22887. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
  22888. 8009fd6: 687b ldr r3, [r7, #4]
  22889. 8009fd8: 681b ldr r3, [r3, #0]
  22890. 8009fda: f003 0301 and.w r3, r3, #1
  22891. 8009fde: 2b00 cmp r3, #0
  22892. 8009fe0: d055 beq.n 800a08e <HAL_RCC_ClockConfig+0x1e2>
  22893. {
  22894. assert_param(IS_RCC_SYSCLK(RCC_ClkInitStruct->SYSCLKDivider));
  22895. assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource));
  22896. #if defined(RCC_D1CFGR_D1CPRE)
  22897. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1CPRE, RCC_ClkInitStruct->SYSCLKDivider);
  22898. 8009fe2: 4b43 ldr r3, [pc, #268] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  22899. 8009fe4: 699b ldr r3, [r3, #24]
  22900. 8009fe6: f423 6270 bic.w r2, r3, #3840 @ 0xf00
  22901. 8009fea: 687b ldr r3, [r7, #4]
  22902. 8009fec: 689b ldr r3, [r3, #8]
  22903. 8009fee: 4940 ldr r1, [pc, #256] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  22904. 8009ff0: 4313 orrs r3, r2
  22905. 8009ff2: 618b str r3, [r1, #24]
  22906. #else
  22907. MODIFY_REG(RCC->CDCFGR1, RCC_CDCFGR1_CDCPRE, RCC_ClkInitStruct->SYSCLKDivider);
  22908. #endif
  22909. /* HSE is selected as System Clock Source */
  22910. if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  22911. 8009ff4: 687b ldr r3, [r7, #4]
  22912. 8009ff6: 685b ldr r3, [r3, #4]
  22913. 8009ff8: 2b02 cmp r3, #2
  22914. 8009ffa: d107 bne.n 800a00c <HAL_RCC_ClockConfig+0x160>
  22915. {
  22916. /* Check the HSE ready flag */
  22917. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  22918. 8009ffc: 4b3c ldr r3, [pc, #240] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  22919. 8009ffe: 681b ldr r3, [r3, #0]
  22920. 800a000: f403 3300 and.w r3, r3, #131072 @ 0x20000
  22921. 800a004: 2b00 cmp r3, #0
  22922. 800a006: d121 bne.n 800a04c <HAL_RCC_ClockConfig+0x1a0>
  22923. {
  22924. return HAL_ERROR;
  22925. 800a008: 2301 movs r3, #1
  22926. 800a00a: e0f6 b.n 800a1fa <HAL_RCC_ClockConfig+0x34e>
  22927. }
  22928. }
  22929. /* PLL is selected as System Clock Source */
  22930. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
  22931. 800a00c: 687b ldr r3, [r7, #4]
  22932. 800a00e: 685b ldr r3, [r3, #4]
  22933. 800a010: 2b03 cmp r3, #3
  22934. 800a012: d107 bne.n 800a024 <HAL_RCC_ClockConfig+0x178>
  22935. {
  22936. /* Check the PLL ready flag */
  22937. if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  22938. 800a014: 4b36 ldr r3, [pc, #216] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  22939. 800a016: 681b ldr r3, [r3, #0]
  22940. 800a018: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  22941. 800a01c: 2b00 cmp r3, #0
  22942. 800a01e: d115 bne.n 800a04c <HAL_RCC_ClockConfig+0x1a0>
  22943. {
  22944. return HAL_ERROR;
  22945. 800a020: 2301 movs r3, #1
  22946. 800a022: e0ea b.n 800a1fa <HAL_RCC_ClockConfig+0x34e>
  22947. }
  22948. }
  22949. /* CSI is selected as System Clock Source */
  22950. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_CSI)
  22951. 800a024: 687b ldr r3, [r7, #4]
  22952. 800a026: 685b ldr r3, [r3, #4]
  22953. 800a028: 2b01 cmp r3, #1
  22954. 800a02a: d107 bne.n 800a03c <HAL_RCC_ClockConfig+0x190>
  22955. {
  22956. /* Check the PLL ready flag */
  22957. if (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  22958. 800a02c: 4b30 ldr r3, [pc, #192] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  22959. 800a02e: 681b ldr r3, [r3, #0]
  22960. 800a030: f403 7380 and.w r3, r3, #256 @ 0x100
  22961. 800a034: 2b00 cmp r3, #0
  22962. 800a036: d109 bne.n 800a04c <HAL_RCC_ClockConfig+0x1a0>
  22963. {
  22964. return HAL_ERROR;
  22965. 800a038: 2301 movs r3, #1
  22966. 800a03a: e0de b.n 800a1fa <HAL_RCC_ClockConfig+0x34e>
  22967. }
  22968. /* HSI is selected as System Clock Source */
  22969. else
  22970. {
  22971. /* Check the HSI ready flag */
  22972. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  22973. 800a03c: 4b2c ldr r3, [pc, #176] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  22974. 800a03e: 681b ldr r3, [r3, #0]
  22975. 800a040: f003 0304 and.w r3, r3, #4
  22976. 800a044: 2b00 cmp r3, #0
  22977. 800a046: d101 bne.n 800a04c <HAL_RCC_ClockConfig+0x1a0>
  22978. {
  22979. return HAL_ERROR;
  22980. 800a048: 2301 movs r3, #1
  22981. 800a04a: e0d6 b.n 800a1fa <HAL_RCC_ClockConfig+0x34e>
  22982. }
  22983. }
  22984. MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, RCC_ClkInitStruct->SYSCLKSource);
  22985. 800a04c: 4b28 ldr r3, [pc, #160] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  22986. 800a04e: 691b ldr r3, [r3, #16]
  22987. 800a050: f023 0207 bic.w r2, r3, #7
  22988. 800a054: 687b ldr r3, [r7, #4]
  22989. 800a056: 685b ldr r3, [r3, #4]
  22990. 800a058: 4925 ldr r1, [pc, #148] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  22991. 800a05a: 4313 orrs r3, r2
  22992. 800a05c: 610b str r3, [r1, #16]
  22993. /* Get Start Tick*/
  22994. tickstart = HAL_GetTick();
  22995. 800a05e: f7fa fd97 bl 8004b90 <HAL_GetTick>
  22996. 800a062: 6178 str r0, [r7, #20]
  22997. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  22998. 800a064: e00a b.n 800a07c <HAL_RCC_ClockConfig+0x1d0>
  22999. {
  23000. if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE)
  23001. 800a066: f7fa fd93 bl 8004b90 <HAL_GetTick>
  23002. 800a06a: 4602 mov r2, r0
  23003. 800a06c: 697b ldr r3, [r7, #20]
  23004. 800a06e: 1ad3 subs r3, r2, r3
  23005. 800a070: f241 3288 movw r2, #5000 @ 0x1388
  23006. 800a074: 4293 cmp r3, r2
  23007. 800a076: d901 bls.n 800a07c <HAL_RCC_ClockConfig+0x1d0>
  23008. {
  23009. return HAL_TIMEOUT;
  23010. 800a078: 2303 movs r3, #3
  23011. 800a07a: e0be b.n 800a1fa <HAL_RCC_ClockConfig+0x34e>
  23012. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  23013. 800a07c: 4b1c ldr r3, [pc, #112] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  23014. 800a07e: 691b ldr r3, [r3, #16]
  23015. 800a080: f003 0238 and.w r2, r3, #56 @ 0x38
  23016. 800a084: 687b ldr r3, [r7, #4]
  23017. 800a086: 685b ldr r3, [r3, #4]
  23018. 800a088: 00db lsls r3, r3, #3
  23019. 800a08a: 429a cmp r2, r3
  23020. 800a08c: d1eb bne.n 800a066 <HAL_RCC_ClockConfig+0x1ba>
  23021. }
  23022. /* Decreasing the BUS frequency divider */
  23023. /*-------------------------- HCLK Configuration --------------------------*/
  23024. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  23025. 800a08e: 687b ldr r3, [r7, #4]
  23026. 800a090: 681b ldr r3, [r3, #0]
  23027. 800a092: f003 0302 and.w r3, r3, #2
  23028. 800a096: 2b00 cmp r3, #0
  23029. 800a098: d010 beq.n 800a0bc <HAL_RCC_ClockConfig+0x210>
  23030. {
  23031. #if defined(RCC_D1CFGR_HPRE)
  23032. if ((RCC_ClkInitStruct->AHBCLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_HPRE))
  23033. 800a09a: 687b ldr r3, [r7, #4]
  23034. 800a09c: 68da ldr r2, [r3, #12]
  23035. 800a09e: 4b14 ldr r3, [pc, #80] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  23036. 800a0a0: 699b ldr r3, [r3, #24]
  23037. 800a0a2: f003 030f and.w r3, r3, #15
  23038. 800a0a6: 429a cmp r2, r3
  23039. 800a0a8: d208 bcs.n 800a0bc <HAL_RCC_ClockConfig+0x210>
  23040. {
  23041. /* Set the new HCLK clock divider */
  23042. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  23043. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  23044. 800a0aa: 4b11 ldr r3, [pc, #68] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  23045. 800a0ac: 699b ldr r3, [r3, #24]
  23046. 800a0ae: f023 020f bic.w r2, r3, #15
  23047. 800a0b2: 687b ldr r3, [r7, #4]
  23048. 800a0b4: 68db ldr r3, [r3, #12]
  23049. 800a0b6: 490e ldr r1, [pc, #56] @ (800a0f0 <HAL_RCC_ClockConfig+0x244>)
  23050. 800a0b8: 4313 orrs r3, r2
  23051. 800a0ba: 618b str r3, [r1, #24]
  23052. }
  23053. #endif
  23054. }
  23055. /* Decreasing the number of wait states because of lower CPU frequency */
  23056. if (FLatency < __HAL_FLASH_GET_LATENCY())
  23057. 800a0bc: 4b0b ldr r3, [pc, #44] @ (800a0ec <HAL_RCC_ClockConfig+0x240>)
  23058. 800a0be: 681b ldr r3, [r3, #0]
  23059. 800a0c0: f003 030f and.w r3, r3, #15
  23060. 800a0c4: 683a ldr r2, [r7, #0]
  23061. 800a0c6: 429a cmp r2, r3
  23062. 800a0c8: d214 bcs.n 800a0f4 <HAL_RCC_ClockConfig+0x248>
  23063. {
  23064. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  23065. __HAL_FLASH_SET_LATENCY(FLatency);
  23066. 800a0ca: 4b08 ldr r3, [pc, #32] @ (800a0ec <HAL_RCC_ClockConfig+0x240>)
  23067. 800a0cc: 681b ldr r3, [r3, #0]
  23068. 800a0ce: f023 020f bic.w r2, r3, #15
  23069. 800a0d2: 4906 ldr r1, [pc, #24] @ (800a0ec <HAL_RCC_ClockConfig+0x240>)
  23070. 800a0d4: 683b ldr r3, [r7, #0]
  23071. 800a0d6: 4313 orrs r3, r2
  23072. 800a0d8: 600b str r3, [r1, #0]
  23073. /* Check that the new number of wait states is taken into account to access the Flash
  23074. memory by reading the FLASH_ACR register */
  23075. if (__HAL_FLASH_GET_LATENCY() != FLatency)
  23076. 800a0da: 4b04 ldr r3, [pc, #16] @ (800a0ec <HAL_RCC_ClockConfig+0x240>)
  23077. 800a0dc: 681b ldr r3, [r3, #0]
  23078. 800a0de: f003 030f and.w r3, r3, #15
  23079. 800a0e2: 683a ldr r2, [r7, #0]
  23080. 800a0e4: 429a cmp r2, r3
  23081. 800a0e6: d005 beq.n 800a0f4 <HAL_RCC_ClockConfig+0x248>
  23082. {
  23083. return HAL_ERROR;
  23084. 800a0e8: 2301 movs r3, #1
  23085. 800a0ea: e086 b.n 800a1fa <HAL_RCC_ClockConfig+0x34e>
  23086. 800a0ec: 52002000 .word 0x52002000
  23087. 800a0f0: 58024400 .word 0x58024400
  23088. }
  23089. }
  23090. /*-------------------------- D1PCLK1/CDPCLK Configuration ---------------------------*/
  23091. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1)
  23092. 800a0f4: 687b ldr r3, [r7, #4]
  23093. 800a0f6: 681b ldr r3, [r3, #0]
  23094. 800a0f8: f003 0304 and.w r3, r3, #4
  23095. 800a0fc: 2b00 cmp r3, #0
  23096. 800a0fe: d010 beq.n 800a122 <HAL_RCC_ClockConfig+0x276>
  23097. {
  23098. #if defined(RCC_D1CFGR_D1PPRE)
  23099. if ((RCC_ClkInitStruct->APB3CLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_D1PPRE))
  23100. 800a100: 687b ldr r3, [r7, #4]
  23101. 800a102: 691a ldr r2, [r3, #16]
  23102. 800a104: 4b3f ldr r3, [pc, #252] @ (800a204 <HAL_RCC_ClockConfig+0x358>)
  23103. 800a106: 699b ldr r3, [r3, #24]
  23104. 800a108: f003 0370 and.w r3, r3, #112 @ 0x70
  23105. 800a10c: 429a cmp r2, r3
  23106. 800a10e: d208 bcs.n 800a122 <HAL_RCC_ClockConfig+0x276>
  23107. {
  23108. assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider));
  23109. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider);
  23110. 800a110: 4b3c ldr r3, [pc, #240] @ (800a204 <HAL_RCC_ClockConfig+0x358>)
  23111. 800a112: 699b ldr r3, [r3, #24]
  23112. 800a114: f023 0270 bic.w r2, r3, #112 @ 0x70
  23113. 800a118: 687b ldr r3, [r7, #4]
  23114. 800a11a: 691b ldr r3, [r3, #16]
  23115. 800a11c: 4939 ldr r1, [pc, #228] @ (800a204 <HAL_RCC_ClockConfig+0x358>)
  23116. 800a11e: 4313 orrs r3, r2
  23117. 800a120: 618b str r3, [r1, #24]
  23118. }
  23119. #endif
  23120. }
  23121. /*-------------------------- PCLK1 Configuration ---------------------------*/
  23122. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  23123. 800a122: 687b ldr r3, [r7, #4]
  23124. 800a124: 681b ldr r3, [r3, #0]
  23125. 800a126: f003 0308 and.w r3, r3, #8
  23126. 800a12a: 2b00 cmp r3, #0
  23127. 800a12c: d010 beq.n 800a150 <HAL_RCC_ClockConfig+0x2a4>
  23128. {
  23129. #if defined(RCC_D2CFGR_D2PPRE1)
  23130. if ((RCC_ClkInitStruct->APB1CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1))
  23131. 800a12e: 687b ldr r3, [r7, #4]
  23132. 800a130: 695a ldr r2, [r3, #20]
  23133. 800a132: 4b34 ldr r3, [pc, #208] @ (800a204 <HAL_RCC_ClockConfig+0x358>)
  23134. 800a134: 69db ldr r3, [r3, #28]
  23135. 800a136: f003 0370 and.w r3, r3, #112 @ 0x70
  23136. 800a13a: 429a cmp r2, r3
  23137. 800a13c: d208 bcs.n 800a150 <HAL_RCC_ClockConfig+0x2a4>
  23138. {
  23139. assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider));
  23140. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  23141. 800a13e: 4b31 ldr r3, [pc, #196] @ (800a204 <HAL_RCC_ClockConfig+0x358>)
  23142. 800a140: 69db ldr r3, [r3, #28]
  23143. 800a142: f023 0270 bic.w r2, r3, #112 @ 0x70
  23144. 800a146: 687b ldr r3, [r7, #4]
  23145. 800a148: 695b ldr r3, [r3, #20]
  23146. 800a14a: 492e ldr r1, [pc, #184] @ (800a204 <HAL_RCC_ClockConfig+0x358>)
  23147. 800a14c: 4313 orrs r3, r2
  23148. 800a14e: 61cb str r3, [r1, #28]
  23149. }
  23150. #endif
  23151. }
  23152. /*-------------------------- PCLK2 Configuration ---------------------------*/
  23153. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  23154. 800a150: 687b ldr r3, [r7, #4]
  23155. 800a152: 681b ldr r3, [r3, #0]
  23156. 800a154: f003 0310 and.w r3, r3, #16
  23157. 800a158: 2b00 cmp r3, #0
  23158. 800a15a: d010 beq.n 800a17e <HAL_RCC_ClockConfig+0x2d2>
  23159. {
  23160. #if defined (RCC_D2CFGR_D2PPRE2)
  23161. if ((RCC_ClkInitStruct->APB2CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2))
  23162. 800a15c: 687b ldr r3, [r7, #4]
  23163. 800a15e: 699a ldr r2, [r3, #24]
  23164. 800a160: 4b28 ldr r3, [pc, #160] @ (800a204 <HAL_RCC_ClockConfig+0x358>)
  23165. 800a162: 69db ldr r3, [r3, #28]
  23166. 800a164: f403 63e0 and.w r3, r3, #1792 @ 0x700
  23167. 800a168: 429a cmp r2, r3
  23168. 800a16a: d208 bcs.n 800a17e <HAL_RCC_ClockConfig+0x2d2>
  23169. {
  23170. assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider));
  23171. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider));
  23172. 800a16c: 4b25 ldr r3, [pc, #148] @ (800a204 <HAL_RCC_ClockConfig+0x358>)
  23173. 800a16e: 69db ldr r3, [r3, #28]
  23174. 800a170: f423 62e0 bic.w r2, r3, #1792 @ 0x700
  23175. 800a174: 687b ldr r3, [r7, #4]
  23176. 800a176: 699b ldr r3, [r3, #24]
  23177. 800a178: 4922 ldr r1, [pc, #136] @ (800a204 <HAL_RCC_ClockConfig+0x358>)
  23178. 800a17a: 4313 orrs r3, r2
  23179. 800a17c: 61cb str r3, [r1, #28]
  23180. }
  23181. #endif
  23182. }
  23183. /*-------------------------- D3PCLK1/SRDPCLK1 Configuration ---------------------------*/
  23184. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1)
  23185. 800a17e: 687b ldr r3, [r7, #4]
  23186. 800a180: 681b ldr r3, [r3, #0]
  23187. 800a182: f003 0320 and.w r3, r3, #32
  23188. 800a186: 2b00 cmp r3, #0
  23189. 800a188: d010 beq.n 800a1ac <HAL_RCC_ClockConfig+0x300>
  23190. {
  23191. #if defined(RCC_D3CFGR_D3PPRE)
  23192. if ((RCC_ClkInitStruct->APB4CLKDivider) < (RCC->D3CFGR & RCC_D3CFGR_D3PPRE))
  23193. 800a18a: 687b ldr r3, [r7, #4]
  23194. 800a18c: 69da ldr r2, [r3, #28]
  23195. 800a18e: 4b1d ldr r3, [pc, #116] @ (800a204 <HAL_RCC_ClockConfig+0x358>)
  23196. 800a190: 6a1b ldr r3, [r3, #32]
  23197. 800a192: f003 0370 and.w r3, r3, #112 @ 0x70
  23198. 800a196: 429a cmp r2, r3
  23199. 800a198: d208 bcs.n 800a1ac <HAL_RCC_ClockConfig+0x300>
  23200. {
  23201. assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider));
  23202. MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider));
  23203. 800a19a: 4b1a ldr r3, [pc, #104] @ (800a204 <HAL_RCC_ClockConfig+0x358>)
  23204. 800a19c: 6a1b ldr r3, [r3, #32]
  23205. 800a19e: f023 0270 bic.w r2, r3, #112 @ 0x70
  23206. 800a1a2: 687b ldr r3, [r7, #4]
  23207. 800a1a4: 69db ldr r3, [r3, #28]
  23208. 800a1a6: 4917 ldr r1, [pc, #92] @ (800a204 <HAL_RCC_ClockConfig+0x358>)
  23209. 800a1a8: 4313 orrs r3, r2
  23210. 800a1aa: 620b str r3, [r1, #32]
  23211. #endif
  23212. }
  23213. /* Update the SystemCoreClock global variable */
  23214. #if defined(RCC_D1CFGR_D1CPRE)
  23215. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU);
  23216. 800a1ac: f000 f834 bl 800a218 <HAL_RCC_GetSysClockFreq>
  23217. 800a1b0: 4602 mov r2, r0
  23218. 800a1b2: 4b14 ldr r3, [pc, #80] @ (800a204 <HAL_RCC_ClockConfig+0x358>)
  23219. 800a1b4: 699b ldr r3, [r3, #24]
  23220. 800a1b6: 0a1b lsrs r3, r3, #8
  23221. 800a1b8: f003 030f and.w r3, r3, #15
  23222. 800a1bc: 4912 ldr r1, [pc, #72] @ (800a208 <HAL_RCC_ClockConfig+0x35c>)
  23223. 800a1be: 5ccb ldrb r3, [r1, r3]
  23224. 800a1c0: f003 031f and.w r3, r3, #31
  23225. 800a1c4: fa22 f303 lsr.w r3, r2, r3
  23226. 800a1c8: 613b str r3, [r7, #16]
  23227. #else
  23228. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU);
  23229. #endif
  23230. #if defined(RCC_D1CFGR_HPRE)
  23231. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  23232. 800a1ca: 4b0e ldr r3, [pc, #56] @ (800a204 <HAL_RCC_ClockConfig+0x358>)
  23233. 800a1cc: 699b ldr r3, [r3, #24]
  23234. 800a1ce: f003 030f and.w r3, r3, #15
  23235. 800a1d2: 4a0d ldr r2, [pc, #52] @ (800a208 <HAL_RCC_ClockConfig+0x35c>)
  23236. 800a1d4: 5cd3 ldrb r3, [r2, r3]
  23237. 800a1d6: f003 031f and.w r3, r3, #31
  23238. 800a1da: 693a ldr r2, [r7, #16]
  23239. 800a1dc: fa22 f303 lsr.w r3, r2, r3
  23240. 800a1e0: 4a0a ldr r2, [pc, #40] @ (800a20c <HAL_RCC_ClockConfig+0x360>)
  23241. 800a1e2: 6013 str r3, [r2, #0]
  23242. #endif
  23243. #if defined(DUAL_CORE) && defined(CORE_CM4)
  23244. SystemCoreClock = SystemD2Clock;
  23245. #else
  23246. SystemCoreClock = common_system_clock;
  23247. 800a1e4: 4a0a ldr r2, [pc, #40] @ (800a210 <HAL_RCC_ClockConfig+0x364>)
  23248. 800a1e6: 693b ldr r3, [r7, #16]
  23249. 800a1e8: 6013 str r3, [r2, #0]
  23250. #endif /* DUAL_CORE && CORE_CM4 */
  23251. /* Configure the source of time base considering new system clocks settings*/
  23252. halstatus = HAL_InitTick(uwTickPrio);
  23253. 800a1ea: 4b0a ldr r3, [pc, #40] @ (800a214 <HAL_RCC_ClockConfig+0x368>)
  23254. 800a1ec: 681b ldr r3, [r3, #0]
  23255. 800a1ee: 4618 mov r0, r3
  23256. 800a1f0: f7f9 fba4 bl 800393c <HAL_InitTick>
  23257. 800a1f4: 4603 mov r3, r0
  23258. 800a1f6: 73fb strb r3, [r7, #15]
  23259. return halstatus;
  23260. 800a1f8: 7bfb ldrb r3, [r7, #15]
  23261. }
  23262. 800a1fa: 4618 mov r0, r3
  23263. 800a1fc: 3718 adds r7, #24
  23264. 800a1fe: 46bd mov sp, r7
  23265. 800a200: bd80 pop {r7, pc}
  23266. 800a202: bf00 nop
  23267. 800a204: 58024400 .word 0x58024400
  23268. 800a208: 080305b8 .word 0x080305b8
  23269. 800a20c: 24000010 .word 0x24000010
  23270. 800a210: 2400000c .word 0x2400000c
  23271. 800a214: 24000018 .word 0x24000018
  23272. 0800a218 <HAL_RCC_GetSysClockFreq>:
  23273. *
  23274. *
  23275. * @retval SYSCLK frequency
  23276. */
  23277. uint32_t HAL_RCC_GetSysClockFreq(void)
  23278. {
  23279. 800a218: b480 push {r7}
  23280. 800a21a: b089 sub sp, #36 @ 0x24
  23281. 800a21c: af00 add r7, sp, #0
  23282. float_t fracn1, pllvco;
  23283. uint32_t sysclockfreq;
  23284. /* Get SYSCLK source -------------------------------------------------------*/
  23285. switch (RCC->CFGR & RCC_CFGR_SWS)
  23286. 800a21e: 4bb3 ldr r3, [pc, #716] @ (800a4ec <HAL_RCC_GetSysClockFreq+0x2d4>)
  23287. 800a220: 691b ldr r3, [r3, #16]
  23288. 800a222: f003 0338 and.w r3, r3, #56 @ 0x38
  23289. 800a226: 2b18 cmp r3, #24
  23290. 800a228: f200 8155 bhi.w 800a4d6 <HAL_RCC_GetSysClockFreq+0x2be>
  23291. 800a22c: a201 add r2, pc, #4 @ (adr r2, 800a234 <HAL_RCC_GetSysClockFreq+0x1c>)
  23292. 800a22e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  23293. 800a232: bf00 nop
  23294. 800a234: 0800a299 .word 0x0800a299
  23295. 800a238: 0800a4d7 .word 0x0800a4d7
  23296. 800a23c: 0800a4d7 .word 0x0800a4d7
  23297. 800a240: 0800a4d7 .word 0x0800a4d7
  23298. 800a244: 0800a4d7 .word 0x0800a4d7
  23299. 800a248: 0800a4d7 .word 0x0800a4d7
  23300. 800a24c: 0800a4d7 .word 0x0800a4d7
  23301. 800a250: 0800a4d7 .word 0x0800a4d7
  23302. 800a254: 0800a2bf .word 0x0800a2bf
  23303. 800a258: 0800a4d7 .word 0x0800a4d7
  23304. 800a25c: 0800a4d7 .word 0x0800a4d7
  23305. 800a260: 0800a4d7 .word 0x0800a4d7
  23306. 800a264: 0800a4d7 .word 0x0800a4d7
  23307. 800a268: 0800a4d7 .word 0x0800a4d7
  23308. 800a26c: 0800a4d7 .word 0x0800a4d7
  23309. 800a270: 0800a4d7 .word 0x0800a4d7
  23310. 800a274: 0800a2c5 .word 0x0800a2c5
  23311. 800a278: 0800a4d7 .word 0x0800a4d7
  23312. 800a27c: 0800a4d7 .word 0x0800a4d7
  23313. 800a280: 0800a4d7 .word 0x0800a4d7
  23314. 800a284: 0800a4d7 .word 0x0800a4d7
  23315. 800a288: 0800a4d7 .word 0x0800a4d7
  23316. 800a28c: 0800a4d7 .word 0x0800a4d7
  23317. 800a290: 0800a4d7 .word 0x0800a4d7
  23318. 800a294: 0800a2cb .word 0x0800a2cb
  23319. {
  23320. case RCC_CFGR_SWS_HSI: /* HSI used as system clock source */
  23321. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  23322. 800a298: 4b94 ldr r3, [pc, #592] @ (800a4ec <HAL_RCC_GetSysClockFreq+0x2d4>)
  23323. 800a29a: 681b ldr r3, [r3, #0]
  23324. 800a29c: f003 0320 and.w r3, r3, #32
  23325. 800a2a0: 2b00 cmp r3, #0
  23326. 800a2a2: d009 beq.n 800a2b8 <HAL_RCC_GetSysClockFreq+0xa0>
  23327. {
  23328. sysclockfreq = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  23329. 800a2a4: 4b91 ldr r3, [pc, #580] @ (800a4ec <HAL_RCC_GetSysClockFreq+0x2d4>)
  23330. 800a2a6: 681b ldr r3, [r3, #0]
  23331. 800a2a8: 08db lsrs r3, r3, #3
  23332. 800a2aa: f003 0303 and.w r3, r3, #3
  23333. 800a2ae: 4a90 ldr r2, [pc, #576] @ (800a4f0 <HAL_RCC_GetSysClockFreq+0x2d8>)
  23334. 800a2b0: fa22 f303 lsr.w r3, r2, r3
  23335. 800a2b4: 61bb str r3, [r7, #24]
  23336. else
  23337. {
  23338. sysclockfreq = (uint32_t) HSI_VALUE;
  23339. }
  23340. break;
  23341. 800a2b6: e111 b.n 800a4dc <HAL_RCC_GetSysClockFreq+0x2c4>
  23342. sysclockfreq = (uint32_t) HSI_VALUE;
  23343. 800a2b8: 4b8d ldr r3, [pc, #564] @ (800a4f0 <HAL_RCC_GetSysClockFreq+0x2d8>)
  23344. 800a2ba: 61bb str r3, [r7, #24]
  23345. break;
  23346. 800a2bc: e10e b.n 800a4dc <HAL_RCC_GetSysClockFreq+0x2c4>
  23347. case RCC_CFGR_SWS_CSI: /* CSI used as system clock source */
  23348. sysclockfreq = CSI_VALUE;
  23349. 800a2be: 4b8d ldr r3, [pc, #564] @ (800a4f4 <HAL_RCC_GetSysClockFreq+0x2dc>)
  23350. 800a2c0: 61bb str r3, [r7, #24]
  23351. break;
  23352. 800a2c2: e10b b.n 800a4dc <HAL_RCC_GetSysClockFreq+0x2c4>
  23353. case RCC_CFGR_SWS_HSE: /* HSE used as system clock source */
  23354. sysclockfreq = HSE_VALUE;
  23355. 800a2c4: 4b8c ldr r3, [pc, #560] @ (800a4f8 <HAL_RCC_GetSysClockFreq+0x2e0>)
  23356. 800a2c6: 61bb str r3, [r7, #24]
  23357. break;
  23358. 800a2c8: e108 b.n 800a4dc <HAL_RCC_GetSysClockFreq+0x2c4>
  23359. case RCC_CFGR_SWS_PLL1: /* PLL1 used as system clock source */
  23360. /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLLM) * PLLN
  23361. SYSCLK = PLL_VCO / PLLR
  23362. */
  23363. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  23364. 800a2ca: 4b88 ldr r3, [pc, #544] @ (800a4ec <HAL_RCC_GetSysClockFreq+0x2d4>)
  23365. 800a2cc: 6a9b ldr r3, [r3, #40] @ 0x28
  23366. 800a2ce: f003 0303 and.w r3, r3, #3
  23367. 800a2d2: 617b str r3, [r7, #20]
  23368. pllm = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1) >> 4) ;
  23369. 800a2d4: 4b85 ldr r3, [pc, #532] @ (800a4ec <HAL_RCC_GetSysClockFreq+0x2d4>)
  23370. 800a2d6: 6a9b ldr r3, [r3, #40] @ 0x28
  23371. 800a2d8: 091b lsrs r3, r3, #4
  23372. 800a2da: f003 033f and.w r3, r3, #63 @ 0x3f
  23373. 800a2de: 613b str r3, [r7, #16]
  23374. pllfracen = ((RCC-> PLLCFGR & RCC_PLLCFGR_PLL1FRACEN) >> RCC_PLLCFGR_PLL1FRACEN_Pos);
  23375. 800a2e0: 4b82 ldr r3, [pc, #520] @ (800a4ec <HAL_RCC_GetSysClockFreq+0x2d4>)
  23376. 800a2e2: 6adb ldr r3, [r3, #44] @ 0x2c
  23377. 800a2e4: f003 0301 and.w r3, r3, #1
  23378. 800a2e8: 60fb str r3, [r7, #12]
  23379. fracn1 = (float_t)(uint32_t)(pllfracen * ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> 3));
  23380. 800a2ea: 4b80 ldr r3, [pc, #512] @ (800a4ec <HAL_RCC_GetSysClockFreq+0x2d4>)
  23381. 800a2ec: 6b5b ldr r3, [r3, #52] @ 0x34
  23382. 800a2ee: 08db lsrs r3, r3, #3
  23383. 800a2f0: f3c3 030c ubfx r3, r3, #0, #13
  23384. 800a2f4: 68fa ldr r2, [r7, #12]
  23385. 800a2f6: fb02 f303 mul.w r3, r2, r3
  23386. 800a2fa: ee07 3a90 vmov s15, r3
  23387. 800a2fe: eef8 7a67 vcvt.f32.u32 s15, s15
  23388. 800a302: edc7 7a02 vstr s15, [r7, #8]
  23389. if (pllm != 0U)
  23390. 800a306: 693b ldr r3, [r7, #16]
  23391. 800a308: 2b00 cmp r3, #0
  23392. 800a30a: f000 80e1 beq.w 800a4d0 <HAL_RCC_GetSysClockFreq+0x2b8>
  23393. 800a30e: 697b ldr r3, [r7, #20]
  23394. 800a310: 2b02 cmp r3, #2
  23395. 800a312: f000 8083 beq.w 800a41c <HAL_RCC_GetSysClockFreq+0x204>
  23396. 800a316: 697b ldr r3, [r7, #20]
  23397. 800a318: 2b02 cmp r3, #2
  23398. 800a31a: f200 80a1 bhi.w 800a460 <HAL_RCC_GetSysClockFreq+0x248>
  23399. 800a31e: 697b ldr r3, [r7, #20]
  23400. 800a320: 2b00 cmp r3, #0
  23401. 800a322: d003 beq.n 800a32c <HAL_RCC_GetSysClockFreq+0x114>
  23402. 800a324: 697b ldr r3, [r7, #20]
  23403. 800a326: 2b01 cmp r3, #1
  23404. 800a328: d056 beq.n 800a3d8 <HAL_RCC_GetSysClockFreq+0x1c0>
  23405. 800a32a: e099 b.n 800a460 <HAL_RCC_GetSysClockFreq+0x248>
  23406. {
  23407. switch (pllsource)
  23408. {
  23409. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  23410. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  23411. 800a32c: 4b6f ldr r3, [pc, #444] @ (800a4ec <HAL_RCC_GetSysClockFreq+0x2d4>)
  23412. 800a32e: 681b ldr r3, [r3, #0]
  23413. 800a330: f003 0320 and.w r3, r3, #32
  23414. 800a334: 2b00 cmp r3, #0
  23415. 800a336: d02d beq.n 800a394 <HAL_RCC_GetSysClockFreq+0x17c>
  23416. {
  23417. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  23418. 800a338: 4b6c ldr r3, [pc, #432] @ (800a4ec <HAL_RCC_GetSysClockFreq+0x2d4>)
  23419. 800a33a: 681b ldr r3, [r3, #0]
  23420. 800a33c: 08db lsrs r3, r3, #3
  23421. 800a33e: f003 0303 and.w r3, r3, #3
  23422. 800a342: 4a6b ldr r2, [pc, #428] @ (800a4f0 <HAL_RCC_GetSysClockFreq+0x2d8>)
  23423. 800a344: fa22 f303 lsr.w r3, r2, r3
  23424. 800a348: 607b str r3, [r7, #4]
  23425. pllvco = ((float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  23426. 800a34a: 687b ldr r3, [r7, #4]
  23427. 800a34c: ee07 3a90 vmov s15, r3
  23428. 800a350: eef8 6a67 vcvt.f32.u32 s13, s15
  23429. 800a354: 693b ldr r3, [r7, #16]
  23430. 800a356: ee07 3a90 vmov s15, r3
  23431. 800a35a: eef8 7a67 vcvt.f32.u32 s15, s15
  23432. 800a35e: ee86 7aa7 vdiv.f32 s14, s13, s15
  23433. 800a362: 4b62 ldr r3, [pc, #392] @ (800a4ec <HAL_RCC_GetSysClockFreq+0x2d4>)
  23434. 800a364: 6b1b ldr r3, [r3, #48] @ 0x30
  23435. 800a366: f3c3 0308 ubfx r3, r3, #0, #9
  23436. 800a36a: ee07 3a90 vmov s15, r3
  23437. 800a36e: eef8 6a67 vcvt.f32.u32 s13, s15
  23438. 800a372: ed97 6a02 vldr s12, [r7, #8]
  23439. 800a376: eddf 5a61 vldr s11, [pc, #388] @ 800a4fc <HAL_RCC_GetSysClockFreq+0x2e4>
  23440. 800a37a: eec6 7a25 vdiv.f32 s15, s12, s11
  23441. 800a37e: ee76 7aa7 vadd.f32 s15, s13, s15
  23442. 800a382: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  23443. 800a386: ee77 7aa6 vadd.f32 s15, s15, s13
  23444. 800a38a: ee67 7a27 vmul.f32 s15, s14, s15
  23445. 800a38e: edc7 7a07 vstr s15, [r7, #28]
  23446. }
  23447. else
  23448. {
  23449. pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  23450. }
  23451. break;
  23452. 800a392: e087 b.n 800a4a4 <HAL_RCC_GetSysClockFreq+0x28c>
  23453. pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  23454. 800a394: 693b ldr r3, [r7, #16]
  23455. 800a396: ee07 3a90 vmov s15, r3
  23456. 800a39a: eef8 7a67 vcvt.f32.u32 s15, s15
  23457. 800a39e: eddf 6a58 vldr s13, [pc, #352] @ 800a500 <HAL_RCC_GetSysClockFreq+0x2e8>
  23458. 800a3a2: ee86 7aa7 vdiv.f32 s14, s13, s15
  23459. 800a3a6: 4b51 ldr r3, [pc, #324] @ (800a4ec <HAL_RCC_GetSysClockFreq+0x2d4>)
  23460. 800a3a8: 6b1b ldr r3, [r3, #48] @ 0x30
  23461. 800a3aa: f3c3 0308 ubfx r3, r3, #0, #9
  23462. 800a3ae: ee07 3a90 vmov s15, r3
  23463. 800a3b2: eef8 6a67 vcvt.f32.u32 s13, s15
  23464. 800a3b6: ed97 6a02 vldr s12, [r7, #8]
  23465. 800a3ba: eddf 5a50 vldr s11, [pc, #320] @ 800a4fc <HAL_RCC_GetSysClockFreq+0x2e4>
  23466. 800a3be: eec6 7a25 vdiv.f32 s15, s12, s11
  23467. 800a3c2: ee76 7aa7 vadd.f32 s15, s13, s15
  23468. 800a3c6: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  23469. 800a3ca: ee77 7aa6 vadd.f32 s15, s15, s13
  23470. 800a3ce: ee67 7a27 vmul.f32 s15, s14, s15
  23471. 800a3d2: edc7 7a07 vstr s15, [r7, #28]
  23472. break;
  23473. 800a3d6: e065 b.n 800a4a4 <HAL_RCC_GetSysClockFreq+0x28c>
  23474. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  23475. pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  23476. 800a3d8: 693b ldr r3, [r7, #16]
  23477. 800a3da: ee07 3a90 vmov s15, r3
  23478. 800a3de: eef8 7a67 vcvt.f32.u32 s15, s15
  23479. 800a3e2: eddf 6a48 vldr s13, [pc, #288] @ 800a504 <HAL_RCC_GetSysClockFreq+0x2ec>
  23480. 800a3e6: ee86 7aa7 vdiv.f32 s14, s13, s15
  23481. 800a3ea: 4b40 ldr r3, [pc, #256] @ (800a4ec <HAL_RCC_GetSysClockFreq+0x2d4>)
  23482. 800a3ec: 6b1b ldr r3, [r3, #48] @ 0x30
  23483. 800a3ee: f3c3 0308 ubfx r3, r3, #0, #9
  23484. 800a3f2: ee07 3a90 vmov s15, r3
  23485. 800a3f6: eef8 6a67 vcvt.f32.u32 s13, s15
  23486. 800a3fa: ed97 6a02 vldr s12, [r7, #8]
  23487. 800a3fe: eddf 5a3f vldr s11, [pc, #252] @ 800a4fc <HAL_RCC_GetSysClockFreq+0x2e4>
  23488. 800a402: eec6 7a25 vdiv.f32 s15, s12, s11
  23489. 800a406: ee76 7aa7 vadd.f32 s15, s13, s15
  23490. 800a40a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  23491. 800a40e: ee77 7aa6 vadd.f32 s15, s15, s13
  23492. 800a412: ee67 7a27 vmul.f32 s15, s14, s15
  23493. 800a416: edc7 7a07 vstr s15, [r7, #28]
  23494. break;
  23495. 800a41a: e043 b.n 800a4a4 <HAL_RCC_GetSysClockFreq+0x28c>
  23496. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  23497. pllvco = ((float_t)HSE_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  23498. 800a41c: 693b ldr r3, [r7, #16]
  23499. 800a41e: ee07 3a90 vmov s15, r3
  23500. 800a422: eef8 7a67 vcvt.f32.u32 s15, s15
  23501. 800a426: eddf 6a38 vldr s13, [pc, #224] @ 800a508 <HAL_RCC_GetSysClockFreq+0x2f0>
  23502. 800a42a: ee86 7aa7 vdiv.f32 s14, s13, s15
  23503. 800a42e: 4b2f ldr r3, [pc, #188] @ (800a4ec <HAL_RCC_GetSysClockFreq+0x2d4>)
  23504. 800a430: 6b1b ldr r3, [r3, #48] @ 0x30
  23505. 800a432: f3c3 0308 ubfx r3, r3, #0, #9
  23506. 800a436: ee07 3a90 vmov s15, r3
  23507. 800a43a: eef8 6a67 vcvt.f32.u32 s13, s15
  23508. 800a43e: ed97 6a02 vldr s12, [r7, #8]
  23509. 800a442: eddf 5a2e vldr s11, [pc, #184] @ 800a4fc <HAL_RCC_GetSysClockFreq+0x2e4>
  23510. 800a446: eec6 7a25 vdiv.f32 s15, s12, s11
  23511. 800a44a: ee76 7aa7 vadd.f32 s15, s13, s15
  23512. 800a44e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  23513. 800a452: ee77 7aa6 vadd.f32 s15, s15, s13
  23514. 800a456: ee67 7a27 vmul.f32 s15, s14, s15
  23515. 800a45a: edc7 7a07 vstr s15, [r7, #28]
  23516. break;
  23517. 800a45e: e021 b.n 800a4a4 <HAL_RCC_GetSysClockFreq+0x28c>
  23518. default:
  23519. pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  23520. 800a460: 693b ldr r3, [r7, #16]
  23521. 800a462: ee07 3a90 vmov s15, r3
  23522. 800a466: eef8 7a67 vcvt.f32.u32 s15, s15
  23523. 800a46a: eddf 6a26 vldr s13, [pc, #152] @ 800a504 <HAL_RCC_GetSysClockFreq+0x2ec>
  23524. 800a46e: ee86 7aa7 vdiv.f32 s14, s13, s15
  23525. 800a472: 4b1e ldr r3, [pc, #120] @ (800a4ec <HAL_RCC_GetSysClockFreq+0x2d4>)
  23526. 800a474: 6b1b ldr r3, [r3, #48] @ 0x30
  23527. 800a476: f3c3 0308 ubfx r3, r3, #0, #9
  23528. 800a47a: ee07 3a90 vmov s15, r3
  23529. 800a47e: eef8 6a67 vcvt.f32.u32 s13, s15
  23530. 800a482: ed97 6a02 vldr s12, [r7, #8]
  23531. 800a486: eddf 5a1d vldr s11, [pc, #116] @ 800a4fc <HAL_RCC_GetSysClockFreq+0x2e4>
  23532. 800a48a: eec6 7a25 vdiv.f32 s15, s12, s11
  23533. 800a48e: ee76 7aa7 vadd.f32 s15, s13, s15
  23534. 800a492: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  23535. 800a496: ee77 7aa6 vadd.f32 s15, s15, s13
  23536. 800a49a: ee67 7a27 vmul.f32 s15, s14, s15
  23537. 800a49e: edc7 7a07 vstr s15, [r7, #28]
  23538. break;
  23539. 800a4a2: bf00 nop
  23540. }
  23541. pllp = (((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >> 9) + 1U) ;
  23542. 800a4a4: 4b11 ldr r3, [pc, #68] @ (800a4ec <HAL_RCC_GetSysClockFreq+0x2d4>)
  23543. 800a4a6: 6b1b ldr r3, [r3, #48] @ 0x30
  23544. 800a4a8: 0a5b lsrs r3, r3, #9
  23545. 800a4aa: f003 037f and.w r3, r3, #127 @ 0x7f
  23546. 800a4ae: 3301 adds r3, #1
  23547. 800a4b0: 603b str r3, [r7, #0]
  23548. sysclockfreq = (uint32_t)(float_t)(pllvco / (float_t)pllp);
  23549. 800a4b2: 683b ldr r3, [r7, #0]
  23550. 800a4b4: ee07 3a90 vmov s15, r3
  23551. 800a4b8: eeb8 7a67 vcvt.f32.u32 s14, s15
  23552. 800a4bc: edd7 6a07 vldr s13, [r7, #28]
  23553. 800a4c0: eec6 7a87 vdiv.f32 s15, s13, s14
  23554. 800a4c4: eefc 7ae7 vcvt.u32.f32 s15, s15
  23555. 800a4c8: ee17 3a90 vmov r3, s15
  23556. 800a4cc: 61bb str r3, [r7, #24]
  23557. }
  23558. else
  23559. {
  23560. sysclockfreq = 0U;
  23561. }
  23562. break;
  23563. 800a4ce: e005 b.n 800a4dc <HAL_RCC_GetSysClockFreq+0x2c4>
  23564. sysclockfreq = 0U;
  23565. 800a4d0: 2300 movs r3, #0
  23566. 800a4d2: 61bb str r3, [r7, #24]
  23567. break;
  23568. 800a4d4: e002 b.n 800a4dc <HAL_RCC_GetSysClockFreq+0x2c4>
  23569. default:
  23570. sysclockfreq = CSI_VALUE;
  23571. 800a4d6: 4b07 ldr r3, [pc, #28] @ (800a4f4 <HAL_RCC_GetSysClockFreq+0x2dc>)
  23572. 800a4d8: 61bb str r3, [r7, #24]
  23573. break;
  23574. 800a4da: bf00 nop
  23575. }
  23576. return sysclockfreq;
  23577. 800a4dc: 69bb ldr r3, [r7, #24]
  23578. }
  23579. 800a4de: 4618 mov r0, r3
  23580. 800a4e0: 3724 adds r7, #36 @ 0x24
  23581. 800a4e2: 46bd mov sp, r7
  23582. 800a4e4: f85d 7b04 ldr.w r7, [sp], #4
  23583. 800a4e8: 4770 bx lr
  23584. 800a4ea: bf00 nop
  23585. 800a4ec: 58024400 .word 0x58024400
  23586. 800a4f0: 03d09000 .word 0x03d09000
  23587. 800a4f4: 003d0900 .word 0x003d0900
  23588. 800a4f8: 017d7840 .word 0x017d7840
  23589. 800a4fc: 46000000 .word 0x46000000
  23590. 800a500: 4c742400 .word 0x4c742400
  23591. 800a504: 4a742400 .word 0x4a742400
  23592. 800a508: 4bbebc20 .word 0x4bbebc20
  23593. 0800a50c <HAL_RCC_GetHCLKFreq>:
  23594. * @note The SystemD2Clock CMSIS variable is used to store System domain2 Clock Frequency
  23595. * and updated within this function
  23596. * @retval HCLK frequency
  23597. */
  23598. uint32_t HAL_RCC_GetHCLKFreq(void)
  23599. {
  23600. 800a50c: b580 push {r7, lr}
  23601. 800a50e: b082 sub sp, #8
  23602. 800a510: af00 add r7, sp, #0
  23603. uint32_t common_system_clock;
  23604. #if defined(RCC_D1CFGR_D1CPRE)
  23605. common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos] & 0x1FU);
  23606. 800a512: f7ff fe81 bl 800a218 <HAL_RCC_GetSysClockFreq>
  23607. 800a516: 4602 mov r2, r0
  23608. 800a518: 4b10 ldr r3, [pc, #64] @ (800a55c <HAL_RCC_GetHCLKFreq+0x50>)
  23609. 800a51a: 699b ldr r3, [r3, #24]
  23610. 800a51c: 0a1b lsrs r3, r3, #8
  23611. 800a51e: f003 030f and.w r3, r3, #15
  23612. 800a522: 490f ldr r1, [pc, #60] @ (800a560 <HAL_RCC_GetHCLKFreq+0x54>)
  23613. 800a524: 5ccb ldrb r3, [r1, r3]
  23614. 800a526: f003 031f and.w r3, r3, #31
  23615. 800a52a: fa22 f303 lsr.w r3, r2, r3
  23616. 800a52e: 607b str r3, [r7, #4]
  23617. #else
  23618. common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos] & 0x1FU);
  23619. #endif
  23620. #if defined(RCC_D1CFGR_HPRE)
  23621. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  23622. 800a530: 4b0a ldr r3, [pc, #40] @ (800a55c <HAL_RCC_GetHCLKFreq+0x50>)
  23623. 800a532: 699b ldr r3, [r3, #24]
  23624. 800a534: f003 030f and.w r3, r3, #15
  23625. 800a538: 4a09 ldr r2, [pc, #36] @ (800a560 <HAL_RCC_GetHCLKFreq+0x54>)
  23626. 800a53a: 5cd3 ldrb r3, [r2, r3]
  23627. 800a53c: f003 031f and.w r3, r3, #31
  23628. 800a540: 687a ldr r2, [r7, #4]
  23629. 800a542: fa22 f303 lsr.w r3, r2, r3
  23630. 800a546: 4a07 ldr r2, [pc, #28] @ (800a564 <HAL_RCC_GetHCLKFreq+0x58>)
  23631. 800a548: 6013 str r3, [r2, #0]
  23632. #endif
  23633. #if defined(DUAL_CORE) && defined(CORE_CM4)
  23634. SystemCoreClock = SystemD2Clock;
  23635. #else
  23636. SystemCoreClock = common_system_clock;
  23637. 800a54a: 4a07 ldr r2, [pc, #28] @ (800a568 <HAL_RCC_GetHCLKFreq+0x5c>)
  23638. 800a54c: 687b ldr r3, [r7, #4]
  23639. 800a54e: 6013 str r3, [r2, #0]
  23640. #endif /* DUAL_CORE && CORE_CM4 */
  23641. return SystemD2Clock;
  23642. 800a550: 4b04 ldr r3, [pc, #16] @ (800a564 <HAL_RCC_GetHCLKFreq+0x58>)
  23643. 800a552: 681b ldr r3, [r3, #0]
  23644. }
  23645. 800a554: 4618 mov r0, r3
  23646. 800a556: 3708 adds r7, #8
  23647. 800a558: 46bd mov sp, r7
  23648. 800a55a: bd80 pop {r7, pc}
  23649. 800a55c: 58024400 .word 0x58024400
  23650. 800a560: 080305b8 .word 0x080305b8
  23651. 800a564: 24000010 .word 0x24000010
  23652. 800a568: 2400000c .word 0x2400000c
  23653. 0800a56c <HAL_RCC_GetPCLK1Freq>:
  23654. * @note Each time PCLK1 changes, this function must be called to update the
  23655. * right PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  23656. * @retval PCLK1 frequency
  23657. */
  23658. uint32_t HAL_RCC_GetPCLK1Freq(void)
  23659. {
  23660. 800a56c: b580 push {r7, lr}
  23661. 800a56e: af00 add r7, sp, #0
  23662. #if defined (RCC_D2CFGR_D2PPRE1)
  23663. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  23664. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1) >> RCC_D2CFGR_D2PPRE1_Pos]) & 0x1FU));
  23665. 800a570: f7ff ffcc bl 800a50c <HAL_RCC_GetHCLKFreq>
  23666. 800a574: 4602 mov r2, r0
  23667. 800a576: 4b06 ldr r3, [pc, #24] @ (800a590 <HAL_RCC_GetPCLK1Freq+0x24>)
  23668. 800a578: 69db ldr r3, [r3, #28]
  23669. 800a57a: 091b lsrs r3, r3, #4
  23670. 800a57c: f003 0307 and.w r3, r3, #7
  23671. 800a580: 4904 ldr r1, [pc, #16] @ (800a594 <HAL_RCC_GetPCLK1Freq+0x28>)
  23672. 800a582: 5ccb ldrb r3, [r1, r3]
  23673. 800a584: f003 031f and.w r3, r3, #31
  23674. 800a588: fa22 f303 lsr.w r3, r2, r3
  23675. #else
  23676. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  23677. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE1) >> RCC_CDCFGR2_CDPPRE1_Pos]) & 0x1FU));
  23678. #endif
  23679. }
  23680. 800a58c: 4618 mov r0, r3
  23681. 800a58e: bd80 pop {r7, pc}
  23682. 800a590: 58024400 .word 0x58024400
  23683. 800a594: 080305b8 .word 0x080305b8
  23684. 0800a598 <HAL_RCC_GetPCLK2Freq>:
  23685. * @note Each time PCLK2 changes, this function must be called to update the
  23686. * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect.
  23687. * @retval PCLK1 frequency
  23688. */
  23689. uint32_t HAL_RCC_GetPCLK2Freq(void)
  23690. {
  23691. 800a598: b580 push {r7, lr}
  23692. 800a59a: af00 add r7, sp, #0
  23693. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  23694. #if defined(RCC_D2CFGR_D2PPRE2)
  23695. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2) >> RCC_D2CFGR_D2PPRE2_Pos]) & 0x1FU));
  23696. 800a59c: f7ff ffb6 bl 800a50c <HAL_RCC_GetHCLKFreq>
  23697. 800a5a0: 4602 mov r2, r0
  23698. 800a5a2: 4b06 ldr r3, [pc, #24] @ (800a5bc <HAL_RCC_GetPCLK2Freq+0x24>)
  23699. 800a5a4: 69db ldr r3, [r3, #28]
  23700. 800a5a6: 0a1b lsrs r3, r3, #8
  23701. 800a5a8: f003 0307 and.w r3, r3, #7
  23702. 800a5ac: 4904 ldr r1, [pc, #16] @ (800a5c0 <HAL_RCC_GetPCLK2Freq+0x28>)
  23703. 800a5ae: 5ccb ldrb r3, [r1, r3]
  23704. 800a5b0: f003 031f and.w r3, r3, #31
  23705. 800a5b4: fa22 f303 lsr.w r3, r2, r3
  23706. #else
  23707. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE2) >> RCC_CDCFGR2_CDPPRE2_Pos]) & 0x1FU));
  23708. #endif
  23709. }
  23710. 800a5b8: 4618 mov r0, r3
  23711. 800a5ba: bd80 pop {r7, pc}
  23712. 800a5bc: 58024400 .word 0x58024400
  23713. 800a5c0: 080305b8 .word 0x080305b8
  23714. 0800a5c4 <HAL_RCC_GetClockConfig>:
  23715. * will be configured.
  23716. * @param pFLatency: Pointer on the Flash Latency.
  23717. * @retval None
  23718. */
  23719. void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency)
  23720. {
  23721. 800a5c4: b480 push {r7}
  23722. 800a5c6: b083 sub sp, #12
  23723. 800a5c8: af00 add r7, sp, #0
  23724. 800a5ca: 6078 str r0, [r7, #4]
  23725. 800a5cc: 6039 str r1, [r7, #0]
  23726. /* Set all possible values for the Clock type parameter --------------------*/
  23727. RCC_ClkInitStruct->ClockType = RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_D1PCLK1 | RCC_CLOCKTYPE_PCLK1 |
  23728. 800a5ce: 687b ldr r3, [r7, #4]
  23729. 800a5d0: 223f movs r2, #63 @ 0x3f
  23730. 800a5d2: 601a str r2, [r3, #0]
  23731. RCC_CLOCKTYPE_PCLK2 | RCC_CLOCKTYPE_D3PCLK1 ;
  23732. /* Get the SYSCLK configuration --------------------------------------------*/
  23733. RCC_ClkInitStruct->SYSCLKSource = (uint32_t)(RCC->CFGR & RCC_CFGR_SW);
  23734. 800a5d4: 4b1a ldr r3, [pc, #104] @ (800a640 <HAL_RCC_GetClockConfig+0x7c>)
  23735. 800a5d6: 691b ldr r3, [r3, #16]
  23736. 800a5d8: f003 0207 and.w r2, r3, #7
  23737. 800a5dc: 687b ldr r3, [r7, #4]
  23738. 800a5de: 605a str r2, [r3, #4]
  23739. #if defined(RCC_D1CFGR_D1CPRE)
  23740. /* Get the SYSCLK configuration ----------------------------------------------*/
  23741. RCC_ClkInitStruct->SYSCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1CPRE);
  23742. 800a5e0: 4b17 ldr r3, [pc, #92] @ (800a640 <HAL_RCC_GetClockConfig+0x7c>)
  23743. 800a5e2: 699b ldr r3, [r3, #24]
  23744. 800a5e4: f403 6270 and.w r2, r3, #3840 @ 0xf00
  23745. 800a5e8: 687b ldr r3, [r7, #4]
  23746. 800a5ea: 609a str r2, [r3, #8]
  23747. /* Get the D1HCLK configuration ----------------------------------------------*/
  23748. RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_HPRE);
  23749. 800a5ec: 4b14 ldr r3, [pc, #80] @ (800a640 <HAL_RCC_GetClockConfig+0x7c>)
  23750. 800a5ee: 699b ldr r3, [r3, #24]
  23751. 800a5f0: f003 020f and.w r2, r3, #15
  23752. 800a5f4: 687b ldr r3, [r7, #4]
  23753. 800a5f6: 60da str r2, [r3, #12]
  23754. /* Get the APB3 configuration ----------------------------------------------*/
  23755. RCC_ClkInitStruct->APB3CLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1PPRE);
  23756. 800a5f8: 4b11 ldr r3, [pc, #68] @ (800a640 <HAL_RCC_GetClockConfig+0x7c>)
  23757. 800a5fa: 699b ldr r3, [r3, #24]
  23758. 800a5fc: f003 0270 and.w r2, r3, #112 @ 0x70
  23759. 800a600: 687b ldr r3, [r7, #4]
  23760. 800a602: 611a str r2, [r3, #16]
  23761. /* Get the APB1 configuration ----------------------------------------------*/
  23762. RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1);
  23763. 800a604: 4b0e ldr r3, [pc, #56] @ (800a640 <HAL_RCC_GetClockConfig+0x7c>)
  23764. 800a606: 69db ldr r3, [r3, #28]
  23765. 800a608: f003 0270 and.w r2, r3, #112 @ 0x70
  23766. 800a60c: 687b ldr r3, [r7, #4]
  23767. 800a60e: 615a str r2, [r3, #20]
  23768. /* Get the APB2 configuration ----------------------------------------------*/
  23769. RCC_ClkInitStruct->APB2CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2);
  23770. 800a610: 4b0b ldr r3, [pc, #44] @ (800a640 <HAL_RCC_GetClockConfig+0x7c>)
  23771. 800a612: 69db ldr r3, [r3, #28]
  23772. 800a614: f403 62e0 and.w r2, r3, #1792 @ 0x700
  23773. 800a618: 687b ldr r3, [r7, #4]
  23774. 800a61a: 619a str r2, [r3, #24]
  23775. /* Get the APB4 configuration ----------------------------------------------*/
  23776. RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->D3CFGR & RCC_D3CFGR_D3PPRE);
  23777. 800a61c: 4b08 ldr r3, [pc, #32] @ (800a640 <HAL_RCC_GetClockConfig+0x7c>)
  23778. 800a61e: 6a1b ldr r3, [r3, #32]
  23779. 800a620: f003 0270 and.w r2, r3, #112 @ 0x70
  23780. 800a624: 687b ldr r3, [r7, #4]
  23781. 800a626: 61da str r2, [r3, #28]
  23782. /* Get the APB4 configuration ----------------------------------------------*/
  23783. RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE);
  23784. #endif
  23785. /* Get the Flash Wait State (Latency) configuration ------------------------*/
  23786. *pFLatency = (uint32_t)(FLASH->ACR & FLASH_ACR_LATENCY);
  23787. 800a628: 4b06 ldr r3, [pc, #24] @ (800a644 <HAL_RCC_GetClockConfig+0x80>)
  23788. 800a62a: 681b ldr r3, [r3, #0]
  23789. 800a62c: f003 020f and.w r2, r3, #15
  23790. 800a630: 683b ldr r3, [r7, #0]
  23791. 800a632: 601a str r2, [r3, #0]
  23792. }
  23793. 800a634: bf00 nop
  23794. 800a636: 370c adds r7, #12
  23795. 800a638: 46bd mov sp, r7
  23796. 800a63a: f85d 7b04 ldr.w r7, [sp], #4
  23797. 800a63e: 4770 bx lr
  23798. 800a640: 58024400 .word 0x58024400
  23799. 800a644: 52002000 .word 0x52002000
  23800. 0800a648 <HAL_RCCEx_PeriphCLKConfig>:
  23801. * (*) : Available on some STM32H7 lines only.
  23802. *
  23803. * @retval HAL status
  23804. */
  23805. HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit)
  23806. {
  23807. 800a648: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
  23808. 800a64c: b0c8 sub sp, #288 @ 0x120
  23809. 800a64e: af00 add r7, sp, #0
  23810. 800a650: f8c7 010c str.w r0, [r7, #268] @ 0x10c
  23811. uint32_t tmpreg;
  23812. uint32_t tickstart;
  23813. HAL_StatusTypeDef ret = HAL_OK; /* Intermediate status */
  23814. 800a654: 2300 movs r3, #0
  23815. 800a656: f887 311f strb.w r3, [r7, #287] @ 0x11f
  23816. HAL_StatusTypeDef status = HAL_OK; /* Final status */
  23817. 800a65a: 2300 movs r3, #0
  23818. 800a65c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  23819. /*---------------------------- SPDIFRX configuration -------------------------------*/
  23820. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPDIFRX) == RCC_PERIPHCLK_SPDIFRX)
  23821. 800a660: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  23822. 800a664: e9d3 2300 ldrd r2, r3, [r3]
  23823. 800a668: f002 6400 and.w r4, r2, #134217728 @ 0x8000000
  23824. 800a66c: 2500 movs r5, #0
  23825. 800a66e: ea54 0305 orrs.w r3, r4, r5
  23826. 800a672: d049 beq.n 800a708 <HAL_RCCEx_PeriphCLKConfig+0xc0>
  23827. {
  23828. switch (PeriphClkInit->SpdifrxClockSelection)
  23829. 800a674: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  23830. 800a678: 6e9b ldr r3, [r3, #104] @ 0x68
  23831. 800a67a: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  23832. 800a67e: d02f beq.n 800a6e0 <HAL_RCCEx_PeriphCLKConfig+0x98>
  23833. 800a680: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  23834. 800a684: d828 bhi.n 800a6d8 <HAL_RCCEx_PeriphCLKConfig+0x90>
  23835. 800a686: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  23836. 800a68a: d01a beq.n 800a6c2 <HAL_RCCEx_PeriphCLKConfig+0x7a>
  23837. 800a68c: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  23838. 800a690: d822 bhi.n 800a6d8 <HAL_RCCEx_PeriphCLKConfig+0x90>
  23839. 800a692: 2b00 cmp r3, #0
  23840. 800a694: d003 beq.n 800a69e <HAL_RCCEx_PeriphCLKConfig+0x56>
  23841. 800a696: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  23842. 800a69a: d007 beq.n 800a6ac <HAL_RCCEx_PeriphCLKConfig+0x64>
  23843. 800a69c: e01c b.n 800a6d8 <HAL_RCCEx_PeriphCLKConfig+0x90>
  23844. {
  23845. case RCC_SPDIFRXCLKSOURCE_PLL: /* PLL is used as clock source for SPDIFRX*/
  23846. /* Enable PLL1Q Clock output generated form System PLL . */
  23847. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  23848. 800a69e: 4bb8 ldr r3, [pc, #736] @ (800a980 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  23849. 800a6a0: 6adb ldr r3, [r3, #44] @ 0x2c
  23850. 800a6a2: 4ab7 ldr r2, [pc, #732] @ (800a980 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  23851. 800a6a4: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  23852. 800a6a8: 62d3 str r3, [r2, #44] @ 0x2c
  23853. /* SPDIFRX clock source configuration done later after clock selection check */
  23854. break;
  23855. 800a6aa: e01a b.n 800a6e2 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  23856. case RCC_SPDIFRXCLKSOURCE_PLL2: /* PLL2 is used as clock source for SPDIFRX*/
  23857. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  23858. 800a6ac: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  23859. 800a6b0: 3308 adds r3, #8
  23860. 800a6b2: 2102 movs r1, #2
  23861. 800a6b4: 4618 mov r0, r3
  23862. 800a6b6: f001 fc73 bl 800bfa0 <RCCEx_PLL2_Config>
  23863. 800a6ba: 4603 mov r3, r0
  23864. 800a6bc: f887 311f strb.w r3, [r7, #287] @ 0x11f
  23865. /* SPDIFRX clock source configuration done later after clock selection check */
  23866. break;
  23867. 800a6c0: e00f b.n 800a6e2 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  23868. case RCC_SPDIFRXCLKSOURCE_PLL3: /* PLL3 is used as clock source for SPDIFRX*/
  23869. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  23870. 800a6c2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  23871. 800a6c6: 3328 adds r3, #40 @ 0x28
  23872. 800a6c8: 2102 movs r1, #2
  23873. 800a6ca: 4618 mov r0, r3
  23874. 800a6cc: f001 fd1a bl 800c104 <RCCEx_PLL3_Config>
  23875. 800a6d0: 4603 mov r3, r0
  23876. 800a6d2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  23877. /* SPDIFRX clock source configuration done later after clock selection check */
  23878. break;
  23879. 800a6d6: e004 b.n 800a6e2 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  23880. /* Internal OSC clock is used as source of SPDIFRX clock*/
  23881. /* SPDIFRX clock source configuration done later after clock selection check */
  23882. break;
  23883. default:
  23884. ret = HAL_ERROR;
  23885. 800a6d8: 2301 movs r3, #1
  23886. 800a6da: f887 311f strb.w r3, [r7, #287] @ 0x11f
  23887. break;
  23888. 800a6de: e000 b.n 800a6e2 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  23889. break;
  23890. 800a6e0: bf00 nop
  23891. }
  23892. if (ret == HAL_OK)
  23893. 800a6e2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  23894. 800a6e6: 2b00 cmp r3, #0
  23895. 800a6e8: d10a bne.n 800a700 <HAL_RCCEx_PeriphCLKConfig+0xb8>
  23896. {
  23897. /* Set the source of SPDIFRX clock*/
  23898. __HAL_RCC_SPDIFRX_CONFIG(PeriphClkInit->SpdifrxClockSelection);
  23899. 800a6ea: 4ba5 ldr r3, [pc, #660] @ (800a980 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  23900. 800a6ec: 6d1b ldr r3, [r3, #80] @ 0x50
  23901. 800a6ee: f423 1140 bic.w r1, r3, #3145728 @ 0x300000
  23902. 800a6f2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  23903. 800a6f6: 6e9b ldr r3, [r3, #104] @ 0x68
  23904. 800a6f8: 4aa1 ldr r2, [pc, #644] @ (800a980 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  23905. 800a6fa: 430b orrs r3, r1
  23906. 800a6fc: 6513 str r3, [r2, #80] @ 0x50
  23907. 800a6fe: e003 b.n 800a708 <HAL_RCCEx_PeriphCLKConfig+0xc0>
  23908. }
  23909. else
  23910. {
  23911. /* set overall return value */
  23912. status = ret;
  23913. 800a700: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  23914. 800a704: f887 311e strb.w r3, [r7, #286] @ 0x11e
  23915. }
  23916. }
  23917. /*---------------------------- SAI1 configuration -------------------------------*/
  23918. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1)
  23919. 800a708: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  23920. 800a70c: e9d3 2300 ldrd r2, r3, [r3]
  23921. 800a710: f402 7880 and.w r8, r2, #256 @ 0x100
  23922. 800a714: f04f 0900 mov.w r9, #0
  23923. 800a718: ea58 0309 orrs.w r3, r8, r9
  23924. 800a71c: d047 beq.n 800a7ae <HAL_RCCEx_PeriphCLKConfig+0x166>
  23925. {
  23926. switch (PeriphClkInit->Sai1ClockSelection)
  23927. 800a71e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  23928. 800a722: 6d9b ldr r3, [r3, #88] @ 0x58
  23929. 800a724: 2b04 cmp r3, #4
  23930. 800a726: d82a bhi.n 800a77e <HAL_RCCEx_PeriphCLKConfig+0x136>
  23931. 800a728: a201 add r2, pc, #4 @ (adr r2, 800a730 <HAL_RCCEx_PeriphCLKConfig+0xe8>)
  23932. 800a72a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  23933. 800a72e: bf00 nop
  23934. 800a730: 0800a745 .word 0x0800a745
  23935. 800a734: 0800a753 .word 0x0800a753
  23936. 800a738: 0800a769 .word 0x0800a769
  23937. 800a73c: 0800a787 .word 0x0800a787
  23938. 800a740: 0800a787 .word 0x0800a787
  23939. {
  23940. case RCC_SAI1CLKSOURCE_PLL: /* PLL is used as clock source for SAI1*/
  23941. /* Enable SAI Clock output generated form System PLL . */
  23942. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  23943. 800a744: 4b8e ldr r3, [pc, #568] @ (800a980 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  23944. 800a746: 6adb ldr r3, [r3, #44] @ 0x2c
  23945. 800a748: 4a8d ldr r2, [pc, #564] @ (800a980 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  23946. 800a74a: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  23947. 800a74e: 62d3 str r3, [r2, #44] @ 0x2c
  23948. /* SAI1 clock source configuration done later after clock selection check */
  23949. break;
  23950. 800a750: e01a b.n 800a788 <HAL_RCCEx_PeriphCLKConfig+0x140>
  23951. case RCC_SAI1CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI1*/
  23952. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  23953. 800a752: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  23954. 800a756: 3308 adds r3, #8
  23955. 800a758: 2100 movs r1, #0
  23956. 800a75a: 4618 mov r0, r3
  23957. 800a75c: f001 fc20 bl 800bfa0 <RCCEx_PLL2_Config>
  23958. 800a760: 4603 mov r3, r0
  23959. 800a762: f887 311f strb.w r3, [r7, #287] @ 0x11f
  23960. /* SAI1 clock source configuration done later after clock selection check */
  23961. break;
  23962. 800a766: e00f b.n 800a788 <HAL_RCCEx_PeriphCLKConfig+0x140>
  23963. case RCC_SAI1CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI1*/
  23964. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  23965. 800a768: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  23966. 800a76c: 3328 adds r3, #40 @ 0x28
  23967. 800a76e: 2100 movs r1, #0
  23968. 800a770: 4618 mov r0, r3
  23969. 800a772: f001 fcc7 bl 800c104 <RCCEx_PLL3_Config>
  23970. 800a776: 4603 mov r3, r0
  23971. 800a778: f887 311f strb.w r3, [r7, #287] @ 0x11f
  23972. /* SAI1 clock source configuration done later after clock selection check */
  23973. break;
  23974. 800a77c: e004 b.n 800a788 <HAL_RCCEx_PeriphCLKConfig+0x140>
  23975. /* HSI, HSE, or CSI oscillator is used as source of SAI1 clock */
  23976. /* SAI1 clock source configuration done later after clock selection check */
  23977. break;
  23978. default:
  23979. ret = HAL_ERROR;
  23980. 800a77e: 2301 movs r3, #1
  23981. 800a780: f887 311f strb.w r3, [r7, #287] @ 0x11f
  23982. break;
  23983. 800a784: e000 b.n 800a788 <HAL_RCCEx_PeriphCLKConfig+0x140>
  23984. break;
  23985. 800a786: bf00 nop
  23986. }
  23987. if (ret == HAL_OK)
  23988. 800a788: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  23989. 800a78c: 2b00 cmp r3, #0
  23990. 800a78e: d10a bne.n 800a7a6 <HAL_RCCEx_PeriphCLKConfig+0x15e>
  23991. {
  23992. /* Set the source of SAI1 clock*/
  23993. __HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection);
  23994. 800a790: 4b7b ldr r3, [pc, #492] @ (800a980 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  23995. 800a792: 6d1b ldr r3, [r3, #80] @ 0x50
  23996. 800a794: f023 0107 bic.w r1, r3, #7
  23997. 800a798: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  23998. 800a79c: 6d9b ldr r3, [r3, #88] @ 0x58
  23999. 800a79e: 4a78 ldr r2, [pc, #480] @ (800a980 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  24000. 800a7a0: 430b orrs r3, r1
  24001. 800a7a2: 6513 str r3, [r2, #80] @ 0x50
  24002. 800a7a4: e003 b.n 800a7ae <HAL_RCCEx_PeriphCLKConfig+0x166>
  24003. }
  24004. else
  24005. {
  24006. /* set overall return value */
  24007. status = ret;
  24008. 800a7a6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24009. 800a7aa: f887 311e strb.w r3, [r7, #286] @ 0x11e
  24010. }
  24011. }
  24012. #if defined(SAI3)
  24013. /*---------------------------- SAI2/3 configuration -------------------------------*/
  24014. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI23) == RCC_PERIPHCLK_SAI23)
  24015. 800a7ae: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24016. 800a7b2: e9d3 2300 ldrd r2, r3, [r3]
  24017. 800a7b6: f402 7a00 and.w sl, r2, #512 @ 0x200
  24018. 800a7ba: f04f 0b00 mov.w fp, #0
  24019. 800a7be: ea5a 030b orrs.w r3, sl, fp
  24020. 800a7c2: d04c beq.n 800a85e <HAL_RCCEx_PeriphCLKConfig+0x216>
  24021. {
  24022. switch (PeriphClkInit->Sai23ClockSelection)
  24023. 800a7c4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24024. 800a7c8: 6ddb ldr r3, [r3, #92] @ 0x5c
  24025. 800a7ca: f5b3 7f80 cmp.w r3, #256 @ 0x100
  24026. 800a7ce: d030 beq.n 800a832 <HAL_RCCEx_PeriphCLKConfig+0x1ea>
  24027. 800a7d0: f5b3 7f80 cmp.w r3, #256 @ 0x100
  24028. 800a7d4: d829 bhi.n 800a82a <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  24029. 800a7d6: 2bc0 cmp r3, #192 @ 0xc0
  24030. 800a7d8: d02d beq.n 800a836 <HAL_RCCEx_PeriphCLKConfig+0x1ee>
  24031. 800a7da: 2bc0 cmp r3, #192 @ 0xc0
  24032. 800a7dc: d825 bhi.n 800a82a <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  24033. 800a7de: 2b80 cmp r3, #128 @ 0x80
  24034. 800a7e0: d018 beq.n 800a814 <HAL_RCCEx_PeriphCLKConfig+0x1cc>
  24035. 800a7e2: 2b80 cmp r3, #128 @ 0x80
  24036. 800a7e4: d821 bhi.n 800a82a <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  24037. 800a7e6: 2b00 cmp r3, #0
  24038. 800a7e8: d002 beq.n 800a7f0 <HAL_RCCEx_PeriphCLKConfig+0x1a8>
  24039. 800a7ea: 2b40 cmp r3, #64 @ 0x40
  24040. 800a7ec: d007 beq.n 800a7fe <HAL_RCCEx_PeriphCLKConfig+0x1b6>
  24041. 800a7ee: e01c b.n 800a82a <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  24042. {
  24043. case RCC_SAI23CLKSOURCE_PLL: /* PLL is used as clock source for SAI2/3 */
  24044. /* Enable SAI Clock output generated form System PLL . */
  24045. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  24046. 800a7f0: 4b63 ldr r3, [pc, #396] @ (800a980 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  24047. 800a7f2: 6adb ldr r3, [r3, #44] @ 0x2c
  24048. 800a7f4: 4a62 ldr r2, [pc, #392] @ (800a980 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  24049. 800a7f6: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  24050. 800a7fa: 62d3 str r3, [r2, #44] @ 0x2c
  24051. /* SAI2/3 clock source configuration done later after clock selection check */
  24052. break;
  24053. 800a7fc: e01c b.n 800a838 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  24054. case RCC_SAI23CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2/3 */
  24055. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  24056. 800a7fe: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24057. 800a802: 3308 adds r3, #8
  24058. 800a804: 2100 movs r1, #0
  24059. 800a806: 4618 mov r0, r3
  24060. 800a808: f001 fbca bl 800bfa0 <RCCEx_PLL2_Config>
  24061. 800a80c: 4603 mov r3, r0
  24062. 800a80e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24063. /* SAI2/3 clock source configuration done later after clock selection check */
  24064. break;
  24065. 800a812: e011 b.n 800a838 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  24066. case RCC_SAI23CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2/3 */
  24067. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  24068. 800a814: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24069. 800a818: 3328 adds r3, #40 @ 0x28
  24070. 800a81a: 2100 movs r1, #0
  24071. 800a81c: 4618 mov r0, r3
  24072. 800a81e: f001 fc71 bl 800c104 <RCCEx_PLL3_Config>
  24073. 800a822: 4603 mov r3, r0
  24074. 800a824: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24075. /* SAI2/3 clock source configuration done later after clock selection check */
  24076. break;
  24077. 800a828: e006 b.n 800a838 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  24078. /* HSI, HSE, or CSI oscillator is used as source of SAI2/3 clock */
  24079. /* SAI2/3 clock source configuration done later after clock selection check */
  24080. break;
  24081. default:
  24082. ret = HAL_ERROR;
  24083. 800a82a: 2301 movs r3, #1
  24084. 800a82c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24085. break;
  24086. 800a830: e002 b.n 800a838 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  24087. break;
  24088. 800a832: bf00 nop
  24089. 800a834: e000 b.n 800a838 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  24090. break;
  24091. 800a836: bf00 nop
  24092. }
  24093. if (ret == HAL_OK)
  24094. 800a838: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24095. 800a83c: 2b00 cmp r3, #0
  24096. 800a83e: d10a bne.n 800a856 <HAL_RCCEx_PeriphCLKConfig+0x20e>
  24097. {
  24098. /* Set the source of SAI2/3 clock*/
  24099. __HAL_RCC_SAI23_CONFIG(PeriphClkInit->Sai23ClockSelection);
  24100. 800a840: 4b4f ldr r3, [pc, #316] @ (800a980 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  24101. 800a842: 6d1b ldr r3, [r3, #80] @ 0x50
  24102. 800a844: f423 71e0 bic.w r1, r3, #448 @ 0x1c0
  24103. 800a848: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24104. 800a84c: 6ddb ldr r3, [r3, #92] @ 0x5c
  24105. 800a84e: 4a4c ldr r2, [pc, #304] @ (800a980 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  24106. 800a850: 430b orrs r3, r1
  24107. 800a852: 6513 str r3, [r2, #80] @ 0x50
  24108. 800a854: e003 b.n 800a85e <HAL_RCCEx_PeriphCLKConfig+0x216>
  24109. }
  24110. else
  24111. {
  24112. /* set overall return value */
  24113. status = ret;
  24114. 800a856: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24115. 800a85a: f887 311e strb.w r3, [r7, #286] @ 0x11e
  24116. }
  24117. #endif /*SAI2B*/
  24118. #if defined(SAI4)
  24119. /*---------------------------- SAI4A configuration -------------------------------*/
  24120. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4A) == RCC_PERIPHCLK_SAI4A)
  24121. 800a85e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24122. 800a862: e9d3 2300 ldrd r2, r3, [r3]
  24123. 800a866: f402 6380 and.w r3, r2, #1024 @ 0x400
  24124. 800a86a: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  24125. 800a86e: 2300 movs r3, #0
  24126. 800a870: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  24127. 800a874: e9d7 1240 ldrd r1, r2, [r7, #256] @ 0x100
  24128. 800a878: 460b mov r3, r1
  24129. 800a87a: 4313 orrs r3, r2
  24130. 800a87c: d053 beq.n 800a926 <HAL_RCCEx_PeriphCLKConfig+0x2de>
  24131. {
  24132. switch (PeriphClkInit->Sai4AClockSelection)
  24133. 800a87e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24134. 800a882: f8d3 30a8 ldr.w r3, [r3, #168] @ 0xa8
  24135. 800a886: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  24136. 800a88a: d035 beq.n 800a8f8 <HAL_RCCEx_PeriphCLKConfig+0x2b0>
  24137. 800a88c: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  24138. 800a890: d82e bhi.n 800a8f0 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  24139. 800a892: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  24140. 800a896: d031 beq.n 800a8fc <HAL_RCCEx_PeriphCLKConfig+0x2b4>
  24141. 800a898: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  24142. 800a89c: d828 bhi.n 800a8f0 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  24143. 800a89e: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  24144. 800a8a2: d01a beq.n 800a8da <HAL_RCCEx_PeriphCLKConfig+0x292>
  24145. 800a8a4: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  24146. 800a8a8: d822 bhi.n 800a8f0 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  24147. 800a8aa: 2b00 cmp r3, #0
  24148. 800a8ac: d003 beq.n 800a8b6 <HAL_RCCEx_PeriphCLKConfig+0x26e>
  24149. 800a8ae: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  24150. 800a8b2: d007 beq.n 800a8c4 <HAL_RCCEx_PeriphCLKConfig+0x27c>
  24151. 800a8b4: e01c b.n 800a8f0 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  24152. {
  24153. case RCC_SAI4ACLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/
  24154. /* Enable SAI Clock output generated form System PLL . */
  24155. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  24156. 800a8b6: 4b32 ldr r3, [pc, #200] @ (800a980 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  24157. 800a8b8: 6adb ldr r3, [r3, #44] @ 0x2c
  24158. 800a8ba: 4a31 ldr r2, [pc, #196] @ (800a980 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  24159. 800a8bc: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  24160. 800a8c0: 62d3 str r3, [r2, #44] @ 0x2c
  24161. /* SAI1 clock source configuration done later after clock selection check */
  24162. break;
  24163. 800a8c2: e01c b.n 800a8fe <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  24164. case RCC_SAI4ACLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/
  24165. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  24166. 800a8c4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24167. 800a8c8: 3308 adds r3, #8
  24168. 800a8ca: 2100 movs r1, #0
  24169. 800a8cc: 4618 mov r0, r3
  24170. 800a8ce: f001 fb67 bl 800bfa0 <RCCEx_PLL2_Config>
  24171. 800a8d2: 4603 mov r3, r0
  24172. 800a8d4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24173. /* SAI2 clock source configuration done later after clock selection check */
  24174. break;
  24175. 800a8d8: e011 b.n 800a8fe <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  24176. case RCC_SAI4ACLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/
  24177. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  24178. 800a8da: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24179. 800a8de: 3328 adds r3, #40 @ 0x28
  24180. 800a8e0: 2100 movs r1, #0
  24181. 800a8e2: 4618 mov r0, r3
  24182. 800a8e4: f001 fc0e bl 800c104 <RCCEx_PLL3_Config>
  24183. 800a8e8: 4603 mov r3, r0
  24184. 800a8ea: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24185. /* SAI1 clock source configuration done later after clock selection check */
  24186. break;
  24187. 800a8ee: e006 b.n 800a8fe <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  24188. /* SAI4A clock source configuration done later after clock selection check */
  24189. break;
  24190. #endif /* RCC_VER_3_0 */
  24191. default:
  24192. ret = HAL_ERROR;
  24193. 800a8f0: 2301 movs r3, #1
  24194. 800a8f2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24195. break;
  24196. 800a8f6: e002 b.n 800a8fe <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  24197. break;
  24198. 800a8f8: bf00 nop
  24199. 800a8fa: e000 b.n 800a8fe <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  24200. break;
  24201. 800a8fc: bf00 nop
  24202. }
  24203. if (ret == HAL_OK)
  24204. 800a8fe: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24205. 800a902: 2b00 cmp r3, #0
  24206. 800a904: d10b bne.n 800a91e <HAL_RCCEx_PeriphCLKConfig+0x2d6>
  24207. {
  24208. /* Set the source of SAI4A clock*/
  24209. __HAL_RCC_SAI4A_CONFIG(PeriphClkInit->Sai4AClockSelection);
  24210. 800a906: 4b1e ldr r3, [pc, #120] @ (800a980 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  24211. 800a908: 6d9b ldr r3, [r3, #88] @ 0x58
  24212. 800a90a: f423 0160 bic.w r1, r3, #14680064 @ 0xe00000
  24213. 800a90e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24214. 800a912: f8d3 30a8 ldr.w r3, [r3, #168] @ 0xa8
  24215. 800a916: 4a1a ldr r2, [pc, #104] @ (800a980 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  24216. 800a918: 430b orrs r3, r1
  24217. 800a91a: 6593 str r3, [r2, #88] @ 0x58
  24218. 800a91c: e003 b.n 800a926 <HAL_RCCEx_PeriphCLKConfig+0x2de>
  24219. }
  24220. else
  24221. {
  24222. /* set overall return value */
  24223. status = ret;
  24224. 800a91e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24225. 800a922: f887 311e strb.w r3, [r7, #286] @ 0x11e
  24226. }
  24227. }
  24228. /*---------------------------- SAI4B configuration -------------------------------*/
  24229. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4B) == RCC_PERIPHCLK_SAI4B)
  24230. 800a926: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24231. 800a92a: e9d3 2300 ldrd r2, r3, [r3]
  24232. 800a92e: f402 6300 and.w r3, r2, #2048 @ 0x800
  24233. 800a932: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  24234. 800a936: 2300 movs r3, #0
  24235. 800a938: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  24236. 800a93c: e9d7 123e ldrd r1, r2, [r7, #248] @ 0xf8
  24237. 800a940: 460b mov r3, r1
  24238. 800a942: 4313 orrs r3, r2
  24239. 800a944: d056 beq.n 800a9f4 <HAL_RCCEx_PeriphCLKConfig+0x3ac>
  24240. {
  24241. switch (PeriphClkInit->Sai4BClockSelection)
  24242. 800a946: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24243. 800a94a: f8d3 30ac ldr.w r3, [r3, #172] @ 0xac
  24244. 800a94e: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  24245. 800a952: d038 beq.n 800a9c6 <HAL_RCCEx_PeriphCLKConfig+0x37e>
  24246. 800a954: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  24247. 800a958: d831 bhi.n 800a9be <HAL_RCCEx_PeriphCLKConfig+0x376>
  24248. 800a95a: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  24249. 800a95e: d034 beq.n 800a9ca <HAL_RCCEx_PeriphCLKConfig+0x382>
  24250. 800a960: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  24251. 800a964: d82b bhi.n 800a9be <HAL_RCCEx_PeriphCLKConfig+0x376>
  24252. 800a966: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  24253. 800a96a: d01d beq.n 800a9a8 <HAL_RCCEx_PeriphCLKConfig+0x360>
  24254. 800a96c: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  24255. 800a970: d825 bhi.n 800a9be <HAL_RCCEx_PeriphCLKConfig+0x376>
  24256. 800a972: 2b00 cmp r3, #0
  24257. 800a974: d006 beq.n 800a984 <HAL_RCCEx_PeriphCLKConfig+0x33c>
  24258. 800a976: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  24259. 800a97a: d00a beq.n 800a992 <HAL_RCCEx_PeriphCLKConfig+0x34a>
  24260. 800a97c: e01f b.n 800a9be <HAL_RCCEx_PeriphCLKConfig+0x376>
  24261. 800a97e: bf00 nop
  24262. 800a980: 58024400 .word 0x58024400
  24263. {
  24264. case RCC_SAI4BCLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/
  24265. /* Enable SAI Clock output generated form System PLL . */
  24266. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  24267. 800a984: 4ba2 ldr r3, [pc, #648] @ (800ac10 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  24268. 800a986: 6adb ldr r3, [r3, #44] @ 0x2c
  24269. 800a988: 4aa1 ldr r2, [pc, #644] @ (800ac10 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  24270. 800a98a: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  24271. 800a98e: 62d3 str r3, [r2, #44] @ 0x2c
  24272. /* SAI1 clock source configuration done later after clock selection check */
  24273. break;
  24274. 800a990: e01c b.n 800a9cc <HAL_RCCEx_PeriphCLKConfig+0x384>
  24275. case RCC_SAI4BCLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/
  24276. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  24277. 800a992: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24278. 800a996: 3308 adds r3, #8
  24279. 800a998: 2100 movs r1, #0
  24280. 800a99a: 4618 mov r0, r3
  24281. 800a99c: f001 fb00 bl 800bfa0 <RCCEx_PLL2_Config>
  24282. 800a9a0: 4603 mov r3, r0
  24283. 800a9a2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24284. /* SAI2 clock source configuration done later after clock selection check */
  24285. break;
  24286. 800a9a6: e011 b.n 800a9cc <HAL_RCCEx_PeriphCLKConfig+0x384>
  24287. case RCC_SAI4BCLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/
  24288. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  24289. 800a9a8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24290. 800a9ac: 3328 adds r3, #40 @ 0x28
  24291. 800a9ae: 2100 movs r1, #0
  24292. 800a9b0: 4618 mov r0, r3
  24293. 800a9b2: f001 fba7 bl 800c104 <RCCEx_PLL3_Config>
  24294. 800a9b6: 4603 mov r3, r0
  24295. 800a9b8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24296. /* SAI1 clock source configuration done later after clock selection check */
  24297. break;
  24298. 800a9bc: e006 b.n 800a9cc <HAL_RCCEx_PeriphCLKConfig+0x384>
  24299. /* SAI4B clock source configuration done later after clock selection check */
  24300. break;
  24301. #endif /* RCC_VER_3_0 */
  24302. default:
  24303. ret = HAL_ERROR;
  24304. 800a9be: 2301 movs r3, #1
  24305. 800a9c0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24306. break;
  24307. 800a9c4: e002 b.n 800a9cc <HAL_RCCEx_PeriphCLKConfig+0x384>
  24308. break;
  24309. 800a9c6: bf00 nop
  24310. 800a9c8: e000 b.n 800a9cc <HAL_RCCEx_PeriphCLKConfig+0x384>
  24311. break;
  24312. 800a9ca: bf00 nop
  24313. }
  24314. if (ret == HAL_OK)
  24315. 800a9cc: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24316. 800a9d0: 2b00 cmp r3, #0
  24317. 800a9d2: d10b bne.n 800a9ec <HAL_RCCEx_PeriphCLKConfig+0x3a4>
  24318. {
  24319. /* Set the source of SAI4B clock*/
  24320. __HAL_RCC_SAI4B_CONFIG(PeriphClkInit->Sai4BClockSelection);
  24321. 800a9d4: 4b8e ldr r3, [pc, #568] @ (800ac10 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  24322. 800a9d6: 6d9b ldr r3, [r3, #88] @ 0x58
  24323. 800a9d8: f023 61e0 bic.w r1, r3, #117440512 @ 0x7000000
  24324. 800a9dc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24325. 800a9e0: f8d3 30ac ldr.w r3, [r3, #172] @ 0xac
  24326. 800a9e4: 4a8a ldr r2, [pc, #552] @ (800ac10 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  24327. 800a9e6: 430b orrs r3, r1
  24328. 800a9e8: 6593 str r3, [r2, #88] @ 0x58
  24329. 800a9ea: e003 b.n 800a9f4 <HAL_RCCEx_PeriphCLKConfig+0x3ac>
  24330. }
  24331. else
  24332. {
  24333. /* set overall return value */
  24334. status = ret;
  24335. 800a9ec: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24336. 800a9f0: f887 311e strb.w r3, [r7, #286] @ 0x11e
  24337. }
  24338. #endif /*SAI4*/
  24339. #if defined(QUADSPI)
  24340. /*---------------------------- QSPI configuration -------------------------------*/
  24341. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_QSPI) == RCC_PERIPHCLK_QSPI)
  24342. 800a9f4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24343. 800a9f8: e9d3 2300 ldrd r2, r3, [r3]
  24344. 800a9fc: f002 7300 and.w r3, r2, #33554432 @ 0x2000000
  24345. 800aa00: f8c7 30f0 str.w r3, [r7, #240] @ 0xf0
  24346. 800aa04: 2300 movs r3, #0
  24347. 800aa06: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  24348. 800aa0a: e9d7 123c ldrd r1, r2, [r7, #240] @ 0xf0
  24349. 800aa0e: 460b mov r3, r1
  24350. 800aa10: 4313 orrs r3, r2
  24351. 800aa12: d03a beq.n 800aa8a <HAL_RCCEx_PeriphCLKConfig+0x442>
  24352. {
  24353. switch (PeriphClkInit->QspiClockSelection)
  24354. 800aa14: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24355. 800aa18: 6cdb ldr r3, [r3, #76] @ 0x4c
  24356. 800aa1a: 2b30 cmp r3, #48 @ 0x30
  24357. 800aa1c: d01f beq.n 800aa5e <HAL_RCCEx_PeriphCLKConfig+0x416>
  24358. 800aa1e: 2b30 cmp r3, #48 @ 0x30
  24359. 800aa20: d819 bhi.n 800aa56 <HAL_RCCEx_PeriphCLKConfig+0x40e>
  24360. 800aa22: 2b20 cmp r3, #32
  24361. 800aa24: d00c beq.n 800aa40 <HAL_RCCEx_PeriphCLKConfig+0x3f8>
  24362. 800aa26: 2b20 cmp r3, #32
  24363. 800aa28: d815 bhi.n 800aa56 <HAL_RCCEx_PeriphCLKConfig+0x40e>
  24364. 800aa2a: 2b00 cmp r3, #0
  24365. 800aa2c: d019 beq.n 800aa62 <HAL_RCCEx_PeriphCLKConfig+0x41a>
  24366. 800aa2e: 2b10 cmp r3, #16
  24367. 800aa30: d111 bne.n 800aa56 <HAL_RCCEx_PeriphCLKConfig+0x40e>
  24368. {
  24369. case RCC_QSPICLKSOURCE_PLL: /* PLL is used as clock source for QSPI*/
  24370. /* Enable QSPI Clock output generated form System PLL . */
  24371. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  24372. 800aa32: 4b77 ldr r3, [pc, #476] @ (800ac10 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  24373. 800aa34: 6adb ldr r3, [r3, #44] @ 0x2c
  24374. 800aa36: 4a76 ldr r2, [pc, #472] @ (800ac10 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  24375. 800aa38: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  24376. 800aa3c: 62d3 str r3, [r2, #44] @ 0x2c
  24377. /* QSPI clock source configuration done later after clock selection check */
  24378. break;
  24379. 800aa3e: e011 b.n 800aa64 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  24380. case RCC_QSPICLKSOURCE_PLL2: /* PLL2 is used as clock source for QSPI*/
  24381. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  24382. 800aa40: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24383. 800aa44: 3308 adds r3, #8
  24384. 800aa46: 2102 movs r1, #2
  24385. 800aa48: 4618 mov r0, r3
  24386. 800aa4a: f001 faa9 bl 800bfa0 <RCCEx_PLL2_Config>
  24387. 800aa4e: 4603 mov r3, r0
  24388. 800aa50: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24389. /* QSPI clock source configuration done later after clock selection check */
  24390. break;
  24391. 800aa54: e006 b.n 800aa64 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  24392. case RCC_QSPICLKSOURCE_D1HCLK:
  24393. /* Domain1 HCLK clock selected as QSPI kernel peripheral clock */
  24394. break;
  24395. default:
  24396. ret = HAL_ERROR;
  24397. 800aa56: 2301 movs r3, #1
  24398. 800aa58: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24399. break;
  24400. 800aa5c: e002 b.n 800aa64 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  24401. break;
  24402. 800aa5e: bf00 nop
  24403. 800aa60: e000 b.n 800aa64 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  24404. break;
  24405. 800aa62: bf00 nop
  24406. }
  24407. if (ret == HAL_OK)
  24408. 800aa64: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24409. 800aa68: 2b00 cmp r3, #0
  24410. 800aa6a: d10a bne.n 800aa82 <HAL_RCCEx_PeriphCLKConfig+0x43a>
  24411. {
  24412. /* Set the source of QSPI clock*/
  24413. __HAL_RCC_QSPI_CONFIG(PeriphClkInit->QspiClockSelection);
  24414. 800aa6c: 4b68 ldr r3, [pc, #416] @ (800ac10 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  24415. 800aa6e: 6cdb ldr r3, [r3, #76] @ 0x4c
  24416. 800aa70: f023 0130 bic.w r1, r3, #48 @ 0x30
  24417. 800aa74: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24418. 800aa78: 6cdb ldr r3, [r3, #76] @ 0x4c
  24419. 800aa7a: 4a65 ldr r2, [pc, #404] @ (800ac10 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  24420. 800aa7c: 430b orrs r3, r1
  24421. 800aa7e: 64d3 str r3, [r2, #76] @ 0x4c
  24422. 800aa80: e003 b.n 800aa8a <HAL_RCCEx_PeriphCLKConfig+0x442>
  24423. }
  24424. else
  24425. {
  24426. /* set overall return value */
  24427. status = ret;
  24428. 800aa82: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24429. 800aa86: f887 311e strb.w r3, [r7, #286] @ 0x11e
  24430. }
  24431. }
  24432. #endif /*OCTOSPI*/
  24433. /*---------------------------- SPI1/2/3 configuration -------------------------------*/
  24434. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI123) == RCC_PERIPHCLK_SPI123)
  24435. 800aa8a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24436. 800aa8e: e9d3 2300 ldrd r2, r3, [r3]
  24437. 800aa92: f402 5380 and.w r3, r2, #4096 @ 0x1000
  24438. 800aa96: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  24439. 800aa9a: 2300 movs r3, #0
  24440. 800aa9c: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  24441. 800aaa0: e9d7 123a ldrd r1, r2, [r7, #232] @ 0xe8
  24442. 800aaa4: 460b mov r3, r1
  24443. 800aaa6: 4313 orrs r3, r2
  24444. 800aaa8: d051 beq.n 800ab4e <HAL_RCCEx_PeriphCLKConfig+0x506>
  24445. {
  24446. switch (PeriphClkInit->Spi123ClockSelection)
  24447. 800aaaa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24448. 800aaae: 6e1b ldr r3, [r3, #96] @ 0x60
  24449. 800aab0: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  24450. 800aab4: d035 beq.n 800ab22 <HAL_RCCEx_PeriphCLKConfig+0x4da>
  24451. 800aab6: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  24452. 800aaba: d82e bhi.n 800ab1a <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  24453. 800aabc: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  24454. 800aac0: d031 beq.n 800ab26 <HAL_RCCEx_PeriphCLKConfig+0x4de>
  24455. 800aac2: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  24456. 800aac6: d828 bhi.n 800ab1a <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  24457. 800aac8: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  24458. 800aacc: d01a beq.n 800ab04 <HAL_RCCEx_PeriphCLKConfig+0x4bc>
  24459. 800aace: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  24460. 800aad2: d822 bhi.n 800ab1a <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  24461. 800aad4: 2b00 cmp r3, #0
  24462. 800aad6: d003 beq.n 800aae0 <HAL_RCCEx_PeriphCLKConfig+0x498>
  24463. 800aad8: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  24464. 800aadc: d007 beq.n 800aaee <HAL_RCCEx_PeriphCLKConfig+0x4a6>
  24465. 800aade: e01c b.n 800ab1a <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  24466. {
  24467. case RCC_SPI123CLKSOURCE_PLL: /* PLL is used as clock source for SPI1/2/3 */
  24468. /* Enable SPI Clock output generated form System PLL . */
  24469. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  24470. 800aae0: 4b4b ldr r3, [pc, #300] @ (800ac10 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  24471. 800aae2: 6adb ldr r3, [r3, #44] @ 0x2c
  24472. 800aae4: 4a4a ldr r2, [pc, #296] @ (800ac10 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  24473. 800aae6: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  24474. 800aaea: 62d3 str r3, [r2, #44] @ 0x2c
  24475. /* SPI1/2/3 clock source configuration done later after clock selection check */
  24476. break;
  24477. 800aaec: e01c b.n 800ab28 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  24478. case RCC_SPI123CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI1/2/3 */
  24479. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  24480. 800aaee: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24481. 800aaf2: 3308 adds r3, #8
  24482. 800aaf4: 2100 movs r1, #0
  24483. 800aaf6: 4618 mov r0, r3
  24484. 800aaf8: f001 fa52 bl 800bfa0 <RCCEx_PLL2_Config>
  24485. 800aafc: 4603 mov r3, r0
  24486. 800aafe: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24487. /* SPI1/2/3 clock source configuration done later after clock selection check */
  24488. break;
  24489. 800ab02: e011 b.n 800ab28 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  24490. case RCC_SPI123CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI1/2/3 */
  24491. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  24492. 800ab04: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24493. 800ab08: 3328 adds r3, #40 @ 0x28
  24494. 800ab0a: 2100 movs r1, #0
  24495. 800ab0c: 4618 mov r0, r3
  24496. 800ab0e: f001 faf9 bl 800c104 <RCCEx_PLL3_Config>
  24497. 800ab12: 4603 mov r3, r0
  24498. 800ab14: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24499. /* SPI1/2/3 clock source configuration done later after clock selection check */
  24500. break;
  24501. 800ab18: e006 b.n 800ab28 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  24502. /* HSI, HSE, or CSI oscillator is used as source of SPI1/2/3 clock */
  24503. /* SPI1/2/3 clock source configuration done later after clock selection check */
  24504. break;
  24505. default:
  24506. ret = HAL_ERROR;
  24507. 800ab1a: 2301 movs r3, #1
  24508. 800ab1c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24509. break;
  24510. 800ab20: e002 b.n 800ab28 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  24511. break;
  24512. 800ab22: bf00 nop
  24513. 800ab24: e000 b.n 800ab28 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  24514. break;
  24515. 800ab26: bf00 nop
  24516. }
  24517. if (ret == HAL_OK)
  24518. 800ab28: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24519. 800ab2c: 2b00 cmp r3, #0
  24520. 800ab2e: d10a bne.n 800ab46 <HAL_RCCEx_PeriphCLKConfig+0x4fe>
  24521. {
  24522. /* Set the source of SPI1/2/3 clock*/
  24523. __HAL_RCC_SPI123_CONFIG(PeriphClkInit->Spi123ClockSelection);
  24524. 800ab30: 4b37 ldr r3, [pc, #220] @ (800ac10 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  24525. 800ab32: 6d1b ldr r3, [r3, #80] @ 0x50
  24526. 800ab34: f423 41e0 bic.w r1, r3, #28672 @ 0x7000
  24527. 800ab38: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24528. 800ab3c: 6e1b ldr r3, [r3, #96] @ 0x60
  24529. 800ab3e: 4a34 ldr r2, [pc, #208] @ (800ac10 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  24530. 800ab40: 430b orrs r3, r1
  24531. 800ab42: 6513 str r3, [r2, #80] @ 0x50
  24532. 800ab44: e003 b.n 800ab4e <HAL_RCCEx_PeriphCLKConfig+0x506>
  24533. }
  24534. else
  24535. {
  24536. /* set overall return value */
  24537. status = ret;
  24538. 800ab46: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24539. 800ab4a: f887 311e strb.w r3, [r7, #286] @ 0x11e
  24540. }
  24541. }
  24542. /*---------------------------- SPI4/5 configuration -------------------------------*/
  24543. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI45) == RCC_PERIPHCLK_SPI45)
  24544. 800ab4e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24545. 800ab52: e9d3 2300 ldrd r2, r3, [r3]
  24546. 800ab56: f402 5300 and.w r3, r2, #8192 @ 0x2000
  24547. 800ab5a: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  24548. 800ab5e: 2300 movs r3, #0
  24549. 800ab60: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  24550. 800ab64: e9d7 1238 ldrd r1, r2, [r7, #224] @ 0xe0
  24551. 800ab68: 460b mov r3, r1
  24552. 800ab6a: 4313 orrs r3, r2
  24553. 800ab6c: d056 beq.n 800ac1c <HAL_RCCEx_PeriphCLKConfig+0x5d4>
  24554. {
  24555. switch (PeriphClkInit->Spi45ClockSelection)
  24556. 800ab6e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24557. 800ab72: 6e5b ldr r3, [r3, #100] @ 0x64
  24558. 800ab74: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  24559. 800ab78: d033 beq.n 800abe2 <HAL_RCCEx_PeriphCLKConfig+0x59a>
  24560. 800ab7a: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  24561. 800ab7e: d82c bhi.n 800abda <HAL_RCCEx_PeriphCLKConfig+0x592>
  24562. 800ab80: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  24563. 800ab84: d02f beq.n 800abe6 <HAL_RCCEx_PeriphCLKConfig+0x59e>
  24564. 800ab86: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  24565. 800ab8a: d826 bhi.n 800abda <HAL_RCCEx_PeriphCLKConfig+0x592>
  24566. 800ab8c: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  24567. 800ab90: d02b beq.n 800abea <HAL_RCCEx_PeriphCLKConfig+0x5a2>
  24568. 800ab92: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  24569. 800ab96: d820 bhi.n 800abda <HAL_RCCEx_PeriphCLKConfig+0x592>
  24570. 800ab98: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  24571. 800ab9c: d012 beq.n 800abc4 <HAL_RCCEx_PeriphCLKConfig+0x57c>
  24572. 800ab9e: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  24573. 800aba2: d81a bhi.n 800abda <HAL_RCCEx_PeriphCLKConfig+0x592>
  24574. 800aba4: 2b00 cmp r3, #0
  24575. 800aba6: d022 beq.n 800abee <HAL_RCCEx_PeriphCLKConfig+0x5a6>
  24576. 800aba8: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  24577. 800abac: d115 bne.n 800abda <HAL_RCCEx_PeriphCLKConfig+0x592>
  24578. /* SPI4/5 clock source configuration done later after clock selection check */
  24579. break;
  24580. case RCC_SPI45CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI4/5 */
  24581. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  24582. 800abae: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24583. 800abb2: 3308 adds r3, #8
  24584. 800abb4: 2101 movs r1, #1
  24585. 800abb6: 4618 mov r0, r3
  24586. 800abb8: f001 f9f2 bl 800bfa0 <RCCEx_PLL2_Config>
  24587. 800abbc: 4603 mov r3, r0
  24588. 800abbe: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24589. /* SPI4/5 clock source configuration done later after clock selection check */
  24590. break;
  24591. 800abc2: e015 b.n 800abf0 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  24592. case RCC_SPI45CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI4/5 */
  24593. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  24594. 800abc4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24595. 800abc8: 3328 adds r3, #40 @ 0x28
  24596. 800abca: 2101 movs r1, #1
  24597. 800abcc: 4618 mov r0, r3
  24598. 800abce: f001 fa99 bl 800c104 <RCCEx_PLL3_Config>
  24599. 800abd2: 4603 mov r3, r0
  24600. 800abd4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24601. /* SPI4/5 clock source configuration done later after clock selection check */
  24602. break;
  24603. 800abd8: e00a b.n 800abf0 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  24604. /* HSE, oscillator is used as source of SPI4/5 clock */
  24605. /* SPI4/5 clock source configuration done later after clock selection check */
  24606. break;
  24607. default:
  24608. ret = HAL_ERROR;
  24609. 800abda: 2301 movs r3, #1
  24610. 800abdc: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24611. break;
  24612. 800abe0: e006 b.n 800abf0 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  24613. break;
  24614. 800abe2: bf00 nop
  24615. 800abe4: e004 b.n 800abf0 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  24616. break;
  24617. 800abe6: bf00 nop
  24618. 800abe8: e002 b.n 800abf0 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  24619. break;
  24620. 800abea: bf00 nop
  24621. 800abec: e000 b.n 800abf0 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  24622. break;
  24623. 800abee: bf00 nop
  24624. }
  24625. if (ret == HAL_OK)
  24626. 800abf0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24627. 800abf4: 2b00 cmp r3, #0
  24628. 800abf6: d10d bne.n 800ac14 <HAL_RCCEx_PeriphCLKConfig+0x5cc>
  24629. {
  24630. /* Set the source of SPI4/5 clock*/
  24631. __HAL_RCC_SPI45_CONFIG(PeriphClkInit->Spi45ClockSelection);
  24632. 800abf8: 4b05 ldr r3, [pc, #20] @ (800ac10 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  24633. 800abfa: 6d1b ldr r3, [r3, #80] @ 0x50
  24634. 800abfc: f423 21e0 bic.w r1, r3, #458752 @ 0x70000
  24635. 800ac00: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24636. 800ac04: 6e5b ldr r3, [r3, #100] @ 0x64
  24637. 800ac06: 4a02 ldr r2, [pc, #8] @ (800ac10 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  24638. 800ac08: 430b orrs r3, r1
  24639. 800ac0a: 6513 str r3, [r2, #80] @ 0x50
  24640. 800ac0c: e006 b.n 800ac1c <HAL_RCCEx_PeriphCLKConfig+0x5d4>
  24641. 800ac0e: bf00 nop
  24642. 800ac10: 58024400 .word 0x58024400
  24643. }
  24644. else
  24645. {
  24646. /* set overall return value */
  24647. status = ret;
  24648. 800ac14: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24649. 800ac18: f887 311e strb.w r3, [r7, #286] @ 0x11e
  24650. }
  24651. }
  24652. /*---------------------------- SPI6 configuration -------------------------------*/
  24653. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI6) == RCC_PERIPHCLK_SPI6)
  24654. 800ac1c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24655. 800ac20: e9d3 2300 ldrd r2, r3, [r3]
  24656. 800ac24: f402 4380 and.w r3, r2, #16384 @ 0x4000
  24657. 800ac28: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
  24658. 800ac2c: 2300 movs r3, #0
  24659. 800ac2e: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  24660. 800ac32: e9d7 1236 ldrd r1, r2, [r7, #216] @ 0xd8
  24661. 800ac36: 460b mov r3, r1
  24662. 800ac38: 4313 orrs r3, r2
  24663. 800ac3a: d055 beq.n 800ace8 <HAL_RCCEx_PeriphCLKConfig+0x6a0>
  24664. {
  24665. switch (PeriphClkInit->Spi6ClockSelection)
  24666. 800ac3c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24667. 800ac40: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  24668. 800ac44: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  24669. 800ac48: d033 beq.n 800acb2 <HAL_RCCEx_PeriphCLKConfig+0x66a>
  24670. 800ac4a: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  24671. 800ac4e: d82c bhi.n 800acaa <HAL_RCCEx_PeriphCLKConfig+0x662>
  24672. 800ac50: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  24673. 800ac54: d02f beq.n 800acb6 <HAL_RCCEx_PeriphCLKConfig+0x66e>
  24674. 800ac56: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  24675. 800ac5a: d826 bhi.n 800acaa <HAL_RCCEx_PeriphCLKConfig+0x662>
  24676. 800ac5c: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  24677. 800ac60: d02b beq.n 800acba <HAL_RCCEx_PeriphCLKConfig+0x672>
  24678. 800ac62: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  24679. 800ac66: d820 bhi.n 800acaa <HAL_RCCEx_PeriphCLKConfig+0x662>
  24680. 800ac68: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  24681. 800ac6c: d012 beq.n 800ac94 <HAL_RCCEx_PeriphCLKConfig+0x64c>
  24682. 800ac6e: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  24683. 800ac72: d81a bhi.n 800acaa <HAL_RCCEx_PeriphCLKConfig+0x662>
  24684. 800ac74: 2b00 cmp r3, #0
  24685. 800ac76: d022 beq.n 800acbe <HAL_RCCEx_PeriphCLKConfig+0x676>
  24686. 800ac78: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  24687. 800ac7c: d115 bne.n 800acaa <HAL_RCCEx_PeriphCLKConfig+0x662>
  24688. /* SPI6 clock source configuration done later after clock selection check */
  24689. break;
  24690. case RCC_SPI6CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI6*/
  24691. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  24692. 800ac7e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24693. 800ac82: 3308 adds r3, #8
  24694. 800ac84: 2101 movs r1, #1
  24695. 800ac86: 4618 mov r0, r3
  24696. 800ac88: f001 f98a bl 800bfa0 <RCCEx_PLL2_Config>
  24697. 800ac8c: 4603 mov r3, r0
  24698. 800ac8e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24699. /* SPI6 clock source configuration done later after clock selection check */
  24700. break;
  24701. 800ac92: e015 b.n 800acc0 <HAL_RCCEx_PeriphCLKConfig+0x678>
  24702. case RCC_SPI6CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI6*/
  24703. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  24704. 800ac94: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24705. 800ac98: 3328 adds r3, #40 @ 0x28
  24706. 800ac9a: 2101 movs r1, #1
  24707. 800ac9c: 4618 mov r0, r3
  24708. 800ac9e: f001 fa31 bl 800c104 <RCCEx_PLL3_Config>
  24709. 800aca2: 4603 mov r3, r0
  24710. 800aca4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24711. /* SPI6 clock source configuration done later after clock selection check */
  24712. break;
  24713. 800aca8: e00a b.n 800acc0 <HAL_RCCEx_PeriphCLKConfig+0x678>
  24714. /* SPI6 clock source configuration done later after clock selection check */
  24715. break;
  24716. #endif
  24717. default:
  24718. ret = HAL_ERROR;
  24719. 800acaa: 2301 movs r3, #1
  24720. 800acac: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24721. break;
  24722. 800acb0: e006 b.n 800acc0 <HAL_RCCEx_PeriphCLKConfig+0x678>
  24723. break;
  24724. 800acb2: bf00 nop
  24725. 800acb4: e004 b.n 800acc0 <HAL_RCCEx_PeriphCLKConfig+0x678>
  24726. break;
  24727. 800acb6: bf00 nop
  24728. 800acb8: e002 b.n 800acc0 <HAL_RCCEx_PeriphCLKConfig+0x678>
  24729. break;
  24730. 800acba: bf00 nop
  24731. 800acbc: e000 b.n 800acc0 <HAL_RCCEx_PeriphCLKConfig+0x678>
  24732. break;
  24733. 800acbe: bf00 nop
  24734. }
  24735. if (ret == HAL_OK)
  24736. 800acc0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24737. 800acc4: 2b00 cmp r3, #0
  24738. 800acc6: d10b bne.n 800ace0 <HAL_RCCEx_PeriphCLKConfig+0x698>
  24739. {
  24740. /* Set the source of SPI6 clock*/
  24741. __HAL_RCC_SPI6_CONFIG(PeriphClkInit->Spi6ClockSelection);
  24742. 800acc8: 4ba3 ldr r3, [pc, #652] @ (800af58 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  24743. 800acca: 6d9b ldr r3, [r3, #88] @ 0x58
  24744. 800accc: f023 41e0 bic.w r1, r3, #1879048192 @ 0x70000000
  24745. 800acd0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24746. 800acd4: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  24747. 800acd8: 4a9f ldr r2, [pc, #636] @ (800af58 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  24748. 800acda: 430b orrs r3, r1
  24749. 800acdc: 6593 str r3, [r2, #88] @ 0x58
  24750. 800acde: e003 b.n 800ace8 <HAL_RCCEx_PeriphCLKConfig+0x6a0>
  24751. }
  24752. else
  24753. {
  24754. /* set overall return value */
  24755. status = ret;
  24756. 800ace0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24757. 800ace4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  24758. }
  24759. #endif /*DSI*/
  24760. #if defined(FDCAN1) || defined(FDCAN2)
  24761. /*---------------------------- FDCAN configuration -------------------------------*/
  24762. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FDCAN) == RCC_PERIPHCLK_FDCAN)
  24763. 800ace8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24764. 800acec: e9d3 2300 ldrd r2, r3, [r3]
  24765. 800acf0: f402 4300 and.w r3, r2, #32768 @ 0x8000
  24766. 800acf4: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
  24767. 800acf8: 2300 movs r3, #0
  24768. 800acfa: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  24769. 800acfe: e9d7 1234 ldrd r1, r2, [r7, #208] @ 0xd0
  24770. 800ad02: 460b mov r3, r1
  24771. 800ad04: 4313 orrs r3, r2
  24772. 800ad06: d037 beq.n 800ad78 <HAL_RCCEx_PeriphCLKConfig+0x730>
  24773. {
  24774. switch (PeriphClkInit->FdcanClockSelection)
  24775. 800ad08: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24776. 800ad0c: 6f1b ldr r3, [r3, #112] @ 0x70
  24777. 800ad0e: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  24778. 800ad12: d00e beq.n 800ad32 <HAL_RCCEx_PeriphCLKConfig+0x6ea>
  24779. 800ad14: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  24780. 800ad18: d816 bhi.n 800ad48 <HAL_RCCEx_PeriphCLKConfig+0x700>
  24781. 800ad1a: 2b00 cmp r3, #0
  24782. 800ad1c: d018 beq.n 800ad50 <HAL_RCCEx_PeriphCLKConfig+0x708>
  24783. 800ad1e: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  24784. 800ad22: d111 bne.n 800ad48 <HAL_RCCEx_PeriphCLKConfig+0x700>
  24785. {
  24786. case RCC_FDCANCLKSOURCE_PLL: /* PLL is used as clock source for FDCAN*/
  24787. /* Enable FDCAN Clock output generated form System PLL . */
  24788. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  24789. 800ad24: 4b8c ldr r3, [pc, #560] @ (800af58 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  24790. 800ad26: 6adb ldr r3, [r3, #44] @ 0x2c
  24791. 800ad28: 4a8b ldr r2, [pc, #556] @ (800af58 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  24792. 800ad2a: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  24793. 800ad2e: 62d3 str r3, [r2, #44] @ 0x2c
  24794. /* FDCAN clock source configuration done later after clock selection check */
  24795. break;
  24796. 800ad30: e00f b.n 800ad52 <HAL_RCCEx_PeriphCLKConfig+0x70a>
  24797. case RCC_FDCANCLKSOURCE_PLL2: /* PLL2 is used as clock source for FDCAN*/
  24798. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  24799. 800ad32: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24800. 800ad36: 3308 adds r3, #8
  24801. 800ad38: 2101 movs r1, #1
  24802. 800ad3a: 4618 mov r0, r3
  24803. 800ad3c: f001 f930 bl 800bfa0 <RCCEx_PLL2_Config>
  24804. 800ad40: 4603 mov r3, r0
  24805. 800ad42: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24806. /* FDCAN clock source configuration done later after clock selection check */
  24807. break;
  24808. 800ad46: e004 b.n 800ad52 <HAL_RCCEx_PeriphCLKConfig+0x70a>
  24809. /* HSE is used as clock source for FDCAN*/
  24810. /* FDCAN clock source configuration done later after clock selection check */
  24811. break;
  24812. default:
  24813. ret = HAL_ERROR;
  24814. 800ad48: 2301 movs r3, #1
  24815. 800ad4a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24816. break;
  24817. 800ad4e: e000 b.n 800ad52 <HAL_RCCEx_PeriphCLKConfig+0x70a>
  24818. break;
  24819. 800ad50: bf00 nop
  24820. }
  24821. if (ret == HAL_OK)
  24822. 800ad52: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24823. 800ad56: 2b00 cmp r3, #0
  24824. 800ad58: d10a bne.n 800ad70 <HAL_RCCEx_PeriphCLKConfig+0x728>
  24825. {
  24826. /* Set the source of FDCAN clock*/
  24827. __HAL_RCC_FDCAN_CONFIG(PeriphClkInit->FdcanClockSelection);
  24828. 800ad5a: 4b7f ldr r3, [pc, #508] @ (800af58 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  24829. 800ad5c: 6d1b ldr r3, [r3, #80] @ 0x50
  24830. 800ad5e: f023 5140 bic.w r1, r3, #805306368 @ 0x30000000
  24831. 800ad62: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24832. 800ad66: 6f1b ldr r3, [r3, #112] @ 0x70
  24833. 800ad68: 4a7b ldr r2, [pc, #492] @ (800af58 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  24834. 800ad6a: 430b orrs r3, r1
  24835. 800ad6c: 6513 str r3, [r2, #80] @ 0x50
  24836. 800ad6e: e003 b.n 800ad78 <HAL_RCCEx_PeriphCLKConfig+0x730>
  24837. }
  24838. else
  24839. {
  24840. /* set overall return value */
  24841. status = ret;
  24842. 800ad70: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24843. 800ad74: f887 311e strb.w r3, [r7, #286] @ 0x11e
  24844. }
  24845. }
  24846. #endif /*FDCAN1 || FDCAN2*/
  24847. /*---------------------------- FMC configuration -------------------------------*/
  24848. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FMC) == RCC_PERIPHCLK_FMC)
  24849. 800ad78: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24850. 800ad7c: e9d3 2300 ldrd r2, r3, [r3]
  24851. 800ad80: f002 7380 and.w r3, r2, #16777216 @ 0x1000000
  24852. 800ad84: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
  24853. 800ad88: 2300 movs r3, #0
  24854. 800ad8a: f8c7 30cc str.w r3, [r7, #204] @ 0xcc
  24855. 800ad8e: e9d7 1232 ldrd r1, r2, [r7, #200] @ 0xc8
  24856. 800ad92: 460b mov r3, r1
  24857. 800ad94: 4313 orrs r3, r2
  24858. 800ad96: d039 beq.n 800ae0c <HAL_RCCEx_PeriphCLKConfig+0x7c4>
  24859. {
  24860. switch (PeriphClkInit->FmcClockSelection)
  24861. 800ad98: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24862. 800ad9c: 6c9b ldr r3, [r3, #72] @ 0x48
  24863. 800ad9e: 2b03 cmp r3, #3
  24864. 800ada0: d81c bhi.n 800addc <HAL_RCCEx_PeriphCLKConfig+0x794>
  24865. 800ada2: a201 add r2, pc, #4 @ (adr r2, 800ada8 <HAL_RCCEx_PeriphCLKConfig+0x760>)
  24866. 800ada4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  24867. 800ada8: 0800ade5 .word 0x0800ade5
  24868. 800adac: 0800adb9 .word 0x0800adb9
  24869. 800adb0: 0800adc7 .word 0x0800adc7
  24870. 800adb4: 0800ade5 .word 0x0800ade5
  24871. {
  24872. case RCC_FMCCLKSOURCE_PLL: /* PLL is used as clock source for FMC*/
  24873. /* Enable FMC Clock output generated form System PLL . */
  24874. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  24875. 800adb8: 4b67 ldr r3, [pc, #412] @ (800af58 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  24876. 800adba: 6adb ldr r3, [r3, #44] @ 0x2c
  24877. 800adbc: 4a66 ldr r2, [pc, #408] @ (800af58 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  24878. 800adbe: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  24879. 800adc2: 62d3 str r3, [r2, #44] @ 0x2c
  24880. /* FMC clock source configuration done later after clock selection check */
  24881. break;
  24882. 800adc4: e00f b.n 800ade6 <HAL_RCCEx_PeriphCLKConfig+0x79e>
  24883. case RCC_FMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for FMC*/
  24884. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  24885. 800adc6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24886. 800adca: 3308 adds r3, #8
  24887. 800adcc: 2102 movs r1, #2
  24888. 800adce: 4618 mov r0, r3
  24889. 800add0: f001 f8e6 bl 800bfa0 <RCCEx_PLL2_Config>
  24890. 800add4: 4603 mov r3, r0
  24891. 800add6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24892. /* FMC clock source configuration done later after clock selection check */
  24893. break;
  24894. 800adda: e004 b.n 800ade6 <HAL_RCCEx_PeriphCLKConfig+0x79e>
  24895. case RCC_FMCCLKSOURCE_HCLK:
  24896. /* D1/CD HCLK clock selected as FMC kernel peripheral clock */
  24897. break;
  24898. default:
  24899. ret = HAL_ERROR;
  24900. 800addc: 2301 movs r3, #1
  24901. 800adde: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24902. break;
  24903. 800ade2: e000 b.n 800ade6 <HAL_RCCEx_PeriphCLKConfig+0x79e>
  24904. break;
  24905. 800ade4: bf00 nop
  24906. }
  24907. if (ret == HAL_OK)
  24908. 800ade6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24909. 800adea: 2b00 cmp r3, #0
  24910. 800adec: d10a bne.n 800ae04 <HAL_RCCEx_PeriphCLKConfig+0x7bc>
  24911. {
  24912. /* Set the source of FMC clock*/
  24913. __HAL_RCC_FMC_CONFIG(PeriphClkInit->FmcClockSelection);
  24914. 800adee: 4b5a ldr r3, [pc, #360] @ (800af58 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  24915. 800adf0: 6cdb ldr r3, [r3, #76] @ 0x4c
  24916. 800adf2: f023 0103 bic.w r1, r3, #3
  24917. 800adf6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24918. 800adfa: 6c9b ldr r3, [r3, #72] @ 0x48
  24919. 800adfc: 4a56 ldr r2, [pc, #344] @ (800af58 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  24920. 800adfe: 430b orrs r3, r1
  24921. 800ae00: 64d3 str r3, [r2, #76] @ 0x4c
  24922. 800ae02: e003 b.n 800ae0c <HAL_RCCEx_PeriphCLKConfig+0x7c4>
  24923. }
  24924. else
  24925. {
  24926. /* set overall return value */
  24927. status = ret;
  24928. 800ae04: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24929. 800ae08: f887 311e strb.w r3, [r7, #286] @ 0x11e
  24930. }
  24931. }
  24932. /*---------------------------- RTC configuration -------------------------------*/
  24933. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC)
  24934. 800ae0c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24935. 800ae10: e9d3 2300 ldrd r2, r3, [r3]
  24936. 800ae14: f402 0380 and.w r3, r2, #4194304 @ 0x400000
  24937. 800ae18: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
  24938. 800ae1c: 2300 movs r3, #0
  24939. 800ae1e: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4
  24940. 800ae22: e9d7 1230 ldrd r1, r2, [r7, #192] @ 0xc0
  24941. 800ae26: 460b mov r3, r1
  24942. 800ae28: 4313 orrs r3, r2
  24943. 800ae2a: f000 809f beq.w 800af6c <HAL_RCCEx_PeriphCLKConfig+0x924>
  24944. {
  24945. /* check for RTC Parameters used to output RTCCLK */
  24946. assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection));
  24947. /* Enable write access to Backup domain */
  24948. SET_BIT(PWR->CR1, PWR_CR1_DBP);
  24949. 800ae2e: 4b4b ldr r3, [pc, #300] @ (800af5c <HAL_RCCEx_PeriphCLKConfig+0x914>)
  24950. 800ae30: 681b ldr r3, [r3, #0]
  24951. 800ae32: 4a4a ldr r2, [pc, #296] @ (800af5c <HAL_RCCEx_PeriphCLKConfig+0x914>)
  24952. 800ae34: f443 7380 orr.w r3, r3, #256 @ 0x100
  24953. 800ae38: 6013 str r3, [r2, #0]
  24954. /* Wait for Backup domain Write protection disable */
  24955. tickstart = HAL_GetTick();
  24956. 800ae3a: f7f9 fea9 bl 8004b90 <HAL_GetTick>
  24957. 800ae3e: f8c7 0118 str.w r0, [r7, #280] @ 0x118
  24958. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  24959. 800ae42: e00b b.n 800ae5c <HAL_RCCEx_PeriphCLKConfig+0x814>
  24960. {
  24961. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  24962. 800ae44: f7f9 fea4 bl 8004b90 <HAL_GetTick>
  24963. 800ae48: 4602 mov r2, r0
  24964. 800ae4a: f8d7 3118 ldr.w r3, [r7, #280] @ 0x118
  24965. 800ae4e: 1ad3 subs r3, r2, r3
  24966. 800ae50: 2b64 cmp r3, #100 @ 0x64
  24967. 800ae52: d903 bls.n 800ae5c <HAL_RCCEx_PeriphCLKConfig+0x814>
  24968. {
  24969. ret = HAL_TIMEOUT;
  24970. 800ae54: 2303 movs r3, #3
  24971. 800ae56: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24972. break;
  24973. 800ae5a: e005 b.n 800ae68 <HAL_RCCEx_PeriphCLKConfig+0x820>
  24974. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  24975. 800ae5c: 4b3f ldr r3, [pc, #252] @ (800af5c <HAL_RCCEx_PeriphCLKConfig+0x914>)
  24976. 800ae5e: 681b ldr r3, [r3, #0]
  24977. 800ae60: f403 7380 and.w r3, r3, #256 @ 0x100
  24978. 800ae64: 2b00 cmp r3, #0
  24979. 800ae66: d0ed beq.n 800ae44 <HAL_RCCEx_PeriphCLKConfig+0x7fc>
  24980. }
  24981. }
  24982. if (ret == HAL_OK)
  24983. 800ae68: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24984. 800ae6c: 2b00 cmp r3, #0
  24985. 800ae6e: d179 bne.n 800af64 <HAL_RCCEx_PeriphCLKConfig+0x91c>
  24986. {
  24987. /* Reset the Backup domain only if the RTC Clock source selection is modified */
  24988. if ((RCC->BDCR & RCC_BDCR_RTCSEL) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))
  24989. 800ae70: 4b39 ldr r3, [pc, #228] @ (800af58 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  24990. 800ae72: 6f1a ldr r2, [r3, #112] @ 0x70
  24991. 800ae74: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24992. 800ae78: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  24993. 800ae7c: 4053 eors r3, r2
  24994. 800ae7e: f403 7340 and.w r3, r3, #768 @ 0x300
  24995. 800ae82: 2b00 cmp r3, #0
  24996. 800ae84: d015 beq.n 800aeb2 <HAL_RCCEx_PeriphCLKConfig+0x86a>
  24997. {
  24998. /* Store the content of BDCR register before the reset of Backup Domain */
  24999. tmpreg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL));
  25000. 800ae86: 4b34 ldr r3, [pc, #208] @ (800af58 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25001. 800ae88: 6f1b ldr r3, [r3, #112] @ 0x70
  25002. 800ae8a: f423 7340 bic.w r3, r3, #768 @ 0x300
  25003. 800ae8e: f8c7 3114 str.w r3, [r7, #276] @ 0x114
  25004. /* RTC Clock selection can be changed only if the Backup Domain is reset */
  25005. __HAL_RCC_BACKUPRESET_FORCE();
  25006. 800ae92: 4b31 ldr r3, [pc, #196] @ (800af58 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25007. 800ae94: 6f1b ldr r3, [r3, #112] @ 0x70
  25008. 800ae96: 4a30 ldr r2, [pc, #192] @ (800af58 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25009. 800ae98: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25010. 800ae9c: 6713 str r3, [r2, #112] @ 0x70
  25011. __HAL_RCC_BACKUPRESET_RELEASE();
  25012. 800ae9e: 4b2e ldr r3, [pc, #184] @ (800af58 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25013. 800aea0: 6f1b ldr r3, [r3, #112] @ 0x70
  25014. 800aea2: 4a2d ldr r2, [pc, #180] @ (800af58 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25015. 800aea4: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25016. 800aea8: 6713 str r3, [r2, #112] @ 0x70
  25017. /* Restore the Content of BDCR register */
  25018. RCC->BDCR = tmpreg;
  25019. 800aeaa: 4a2b ldr r2, [pc, #172] @ (800af58 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25020. 800aeac: f8d7 3114 ldr.w r3, [r7, #276] @ 0x114
  25021. 800aeb0: 6713 str r3, [r2, #112] @ 0x70
  25022. }
  25023. /* If LSE is selected as RTC clock source (and enabled prior to Backup Domain reset), wait for LSE reactivation */
  25024. if (PeriphClkInit->RTCClockSelection == RCC_RTCCLKSOURCE_LSE)
  25025. 800aeb2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25026. 800aeb6: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  25027. 800aeba: f5b3 7f80 cmp.w r3, #256 @ 0x100
  25028. 800aebe: d118 bne.n 800aef2 <HAL_RCCEx_PeriphCLKConfig+0x8aa>
  25029. {
  25030. /* Get Start Tick*/
  25031. tickstart = HAL_GetTick();
  25032. 800aec0: f7f9 fe66 bl 8004b90 <HAL_GetTick>
  25033. 800aec4: f8c7 0118 str.w r0, [r7, #280] @ 0x118
  25034. /* Wait till LSE is ready */
  25035. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  25036. 800aec8: e00d b.n 800aee6 <HAL_RCCEx_PeriphCLKConfig+0x89e>
  25037. {
  25038. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  25039. 800aeca: f7f9 fe61 bl 8004b90 <HAL_GetTick>
  25040. 800aece: 4602 mov r2, r0
  25041. 800aed0: f8d7 3118 ldr.w r3, [r7, #280] @ 0x118
  25042. 800aed4: 1ad2 subs r2, r2, r3
  25043. 800aed6: f241 3388 movw r3, #5000 @ 0x1388
  25044. 800aeda: 429a cmp r2, r3
  25045. 800aedc: d903 bls.n 800aee6 <HAL_RCCEx_PeriphCLKConfig+0x89e>
  25046. {
  25047. ret = HAL_TIMEOUT;
  25048. 800aede: 2303 movs r3, #3
  25049. 800aee0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25050. break;
  25051. 800aee4: e005 b.n 800aef2 <HAL_RCCEx_PeriphCLKConfig+0x8aa>
  25052. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  25053. 800aee6: 4b1c ldr r3, [pc, #112] @ (800af58 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25054. 800aee8: 6f1b ldr r3, [r3, #112] @ 0x70
  25055. 800aeea: f003 0302 and.w r3, r3, #2
  25056. 800aeee: 2b00 cmp r3, #0
  25057. 800aef0: d0eb beq.n 800aeca <HAL_RCCEx_PeriphCLKConfig+0x882>
  25058. }
  25059. }
  25060. }
  25061. if (ret == HAL_OK)
  25062. 800aef2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25063. 800aef6: 2b00 cmp r3, #0
  25064. 800aef8: d129 bne.n 800af4e <HAL_RCCEx_PeriphCLKConfig+0x906>
  25065. {
  25066. __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection);
  25067. 800aefa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25068. 800aefe: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  25069. 800af02: f403 7340 and.w r3, r3, #768 @ 0x300
  25070. 800af06: f5b3 7f40 cmp.w r3, #768 @ 0x300
  25071. 800af0a: d10e bne.n 800af2a <HAL_RCCEx_PeriphCLKConfig+0x8e2>
  25072. 800af0c: 4b12 ldr r3, [pc, #72] @ (800af58 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25073. 800af0e: 691b ldr r3, [r3, #16]
  25074. 800af10: f423 517c bic.w r1, r3, #16128 @ 0x3f00
  25075. 800af14: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25076. 800af18: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  25077. 800af1c: 091a lsrs r2, r3, #4
  25078. 800af1e: 4b10 ldr r3, [pc, #64] @ (800af60 <HAL_RCCEx_PeriphCLKConfig+0x918>)
  25079. 800af20: 4013 ands r3, r2
  25080. 800af22: 4a0d ldr r2, [pc, #52] @ (800af58 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25081. 800af24: 430b orrs r3, r1
  25082. 800af26: 6113 str r3, [r2, #16]
  25083. 800af28: e005 b.n 800af36 <HAL_RCCEx_PeriphCLKConfig+0x8ee>
  25084. 800af2a: 4b0b ldr r3, [pc, #44] @ (800af58 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25085. 800af2c: 691b ldr r3, [r3, #16]
  25086. 800af2e: 4a0a ldr r2, [pc, #40] @ (800af58 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25087. 800af30: f423 537c bic.w r3, r3, #16128 @ 0x3f00
  25088. 800af34: 6113 str r3, [r2, #16]
  25089. 800af36: 4b08 ldr r3, [pc, #32] @ (800af58 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25090. 800af38: 6f19 ldr r1, [r3, #112] @ 0x70
  25091. 800af3a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25092. 800af3e: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  25093. 800af42: f3c3 030b ubfx r3, r3, #0, #12
  25094. 800af46: 4a04 ldr r2, [pc, #16] @ (800af58 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25095. 800af48: 430b orrs r3, r1
  25096. 800af4a: 6713 str r3, [r2, #112] @ 0x70
  25097. 800af4c: e00e b.n 800af6c <HAL_RCCEx_PeriphCLKConfig+0x924>
  25098. }
  25099. else
  25100. {
  25101. /* set overall return value */
  25102. status = ret;
  25103. 800af4e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25104. 800af52: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25105. 800af56: e009 b.n 800af6c <HAL_RCCEx_PeriphCLKConfig+0x924>
  25106. 800af58: 58024400 .word 0x58024400
  25107. 800af5c: 58024800 .word 0x58024800
  25108. 800af60: 00ffffcf .word 0x00ffffcf
  25109. }
  25110. }
  25111. else
  25112. {
  25113. /* set overall return value */
  25114. status = ret;
  25115. 800af64: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25116. 800af68: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25117. }
  25118. }
  25119. /*-------------------------- USART1/6 configuration --------------------------*/
  25120. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART16) == RCC_PERIPHCLK_USART16)
  25121. 800af6c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25122. 800af70: e9d3 2300 ldrd r2, r3, [r3]
  25123. 800af74: f002 0301 and.w r3, r2, #1
  25124. 800af78: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
  25125. 800af7c: 2300 movs r3, #0
  25126. 800af7e: f8c7 30bc str.w r3, [r7, #188] @ 0xbc
  25127. 800af82: e9d7 122e ldrd r1, r2, [r7, #184] @ 0xb8
  25128. 800af86: 460b mov r3, r1
  25129. 800af88: 4313 orrs r3, r2
  25130. 800af8a: f000 8089 beq.w 800b0a0 <HAL_RCCEx_PeriphCLKConfig+0xa58>
  25131. {
  25132. switch (PeriphClkInit->Usart16ClockSelection)
  25133. 800af8e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25134. 800af92: 6fdb ldr r3, [r3, #124] @ 0x7c
  25135. 800af94: 2b28 cmp r3, #40 @ 0x28
  25136. 800af96: d86b bhi.n 800b070 <HAL_RCCEx_PeriphCLKConfig+0xa28>
  25137. 800af98: a201 add r2, pc, #4 @ (adr r2, 800afa0 <HAL_RCCEx_PeriphCLKConfig+0x958>)
  25138. 800af9a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  25139. 800af9e: bf00 nop
  25140. 800afa0: 0800b079 .word 0x0800b079
  25141. 800afa4: 0800b071 .word 0x0800b071
  25142. 800afa8: 0800b071 .word 0x0800b071
  25143. 800afac: 0800b071 .word 0x0800b071
  25144. 800afb0: 0800b071 .word 0x0800b071
  25145. 800afb4: 0800b071 .word 0x0800b071
  25146. 800afb8: 0800b071 .word 0x0800b071
  25147. 800afbc: 0800b071 .word 0x0800b071
  25148. 800afc0: 0800b045 .word 0x0800b045
  25149. 800afc4: 0800b071 .word 0x0800b071
  25150. 800afc8: 0800b071 .word 0x0800b071
  25151. 800afcc: 0800b071 .word 0x0800b071
  25152. 800afd0: 0800b071 .word 0x0800b071
  25153. 800afd4: 0800b071 .word 0x0800b071
  25154. 800afd8: 0800b071 .word 0x0800b071
  25155. 800afdc: 0800b071 .word 0x0800b071
  25156. 800afe0: 0800b05b .word 0x0800b05b
  25157. 800afe4: 0800b071 .word 0x0800b071
  25158. 800afe8: 0800b071 .word 0x0800b071
  25159. 800afec: 0800b071 .word 0x0800b071
  25160. 800aff0: 0800b071 .word 0x0800b071
  25161. 800aff4: 0800b071 .word 0x0800b071
  25162. 800aff8: 0800b071 .word 0x0800b071
  25163. 800affc: 0800b071 .word 0x0800b071
  25164. 800b000: 0800b079 .word 0x0800b079
  25165. 800b004: 0800b071 .word 0x0800b071
  25166. 800b008: 0800b071 .word 0x0800b071
  25167. 800b00c: 0800b071 .word 0x0800b071
  25168. 800b010: 0800b071 .word 0x0800b071
  25169. 800b014: 0800b071 .word 0x0800b071
  25170. 800b018: 0800b071 .word 0x0800b071
  25171. 800b01c: 0800b071 .word 0x0800b071
  25172. 800b020: 0800b079 .word 0x0800b079
  25173. 800b024: 0800b071 .word 0x0800b071
  25174. 800b028: 0800b071 .word 0x0800b071
  25175. 800b02c: 0800b071 .word 0x0800b071
  25176. 800b030: 0800b071 .word 0x0800b071
  25177. 800b034: 0800b071 .word 0x0800b071
  25178. 800b038: 0800b071 .word 0x0800b071
  25179. 800b03c: 0800b071 .word 0x0800b071
  25180. 800b040: 0800b079 .word 0x0800b079
  25181. case RCC_USART16CLKSOURCE_PCLK2: /* CD/D2 PCLK2 as clock source for USART1/6 */
  25182. /* USART1/6 clock source configuration done later after clock selection check */
  25183. break;
  25184. case RCC_USART16CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART1/6 */
  25185. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  25186. 800b044: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25187. 800b048: 3308 adds r3, #8
  25188. 800b04a: 2101 movs r1, #1
  25189. 800b04c: 4618 mov r0, r3
  25190. 800b04e: f000 ffa7 bl 800bfa0 <RCCEx_PLL2_Config>
  25191. 800b052: 4603 mov r3, r0
  25192. 800b054: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25193. /* USART1/6 clock source configuration done later after clock selection check */
  25194. break;
  25195. 800b058: e00f b.n 800b07a <HAL_RCCEx_PeriphCLKConfig+0xa32>
  25196. case RCC_USART16CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART1/6 */
  25197. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  25198. 800b05a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25199. 800b05e: 3328 adds r3, #40 @ 0x28
  25200. 800b060: 2101 movs r1, #1
  25201. 800b062: 4618 mov r0, r3
  25202. 800b064: f001 f84e bl 800c104 <RCCEx_PLL3_Config>
  25203. 800b068: 4603 mov r3, r0
  25204. 800b06a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25205. /* USART1/6 clock source configuration done later after clock selection check */
  25206. break;
  25207. 800b06e: e004 b.n 800b07a <HAL_RCCEx_PeriphCLKConfig+0xa32>
  25208. /* LSE, oscillator is used as source of USART1/6 clock */
  25209. /* USART1/6 clock source configuration done later after clock selection check */
  25210. break;
  25211. default:
  25212. ret = HAL_ERROR;
  25213. 800b070: 2301 movs r3, #1
  25214. 800b072: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25215. break;
  25216. 800b076: e000 b.n 800b07a <HAL_RCCEx_PeriphCLKConfig+0xa32>
  25217. break;
  25218. 800b078: bf00 nop
  25219. }
  25220. if (ret == HAL_OK)
  25221. 800b07a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25222. 800b07e: 2b00 cmp r3, #0
  25223. 800b080: d10a bne.n 800b098 <HAL_RCCEx_PeriphCLKConfig+0xa50>
  25224. {
  25225. /* Set the source of USART1/6 clock */
  25226. __HAL_RCC_USART16_CONFIG(PeriphClkInit->Usart16ClockSelection);
  25227. 800b082: 4bbf ldr r3, [pc, #764] @ (800b380 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  25228. 800b084: 6d5b ldr r3, [r3, #84] @ 0x54
  25229. 800b086: f023 0138 bic.w r1, r3, #56 @ 0x38
  25230. 800b08a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25231. 800b08e: 6fdb ldr r3, [r3, #124] @ 0x7c
  25232. 800b090: 4abb ldr r2, [pc, #748] @ (800b380 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  25233. 800b092: 430b orrs r3, r1
  25234. 800b094: 6553 str r3, [r2, #84] @ 0x54
  25235. 800b096: e003 b.n 800b0a0 <HAL_RCCEx_PeriphCLKConfig+0xa58>
  25236. }
  25237. else
  25238. {
  25239. /* set overall return value */
  25240. status = ret;
  25241. 800b098: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25242. 800b09c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25243. }
  25244. }
  25245. /*-------------------------- USART2/3/4/5/7/8 Configuration --------------------------*/
  25246. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART234578) == RCC_PERIPHCLK_USART234578)
  25247. 800b0a0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25248. 800b0a4: e9d3 2300 ldrd r2, r3, [r3]
  25249. 800b0a8: f002 0302 and.w r3, r2, #2
  25250. 800b0ac: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
  25251. 800b0b0: 2300 movs r3, #0
  25252. 800b0b2: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  25253. 800b0b6: e9d7 122c ldrd r1, r2, [r7, #176] @ 0xb0
  25254. 800b0ba: 460b mov r3, r1
  25255. 800b0bc: 4313 orrs r3, r2
  25256. 800b0be: d041 beq.n 800b144 <HAL_RCCEx_PeriphCLKConfig+0xafc>
  25257. {
  25258. switch (PeriphClkInit->Usart234578ClockSelection)
  25259. 800b0c0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25260. 800b0c4: 6f9b ldr r3, [r3, #120] @ 0x78
  25261. 800b0c6: 2b05 cmp r3, #5
  25262. 800b0c8: d824 bhi.n 800b114 <HAL_RCCEx_PeriphCLKConfig+0xacc>
  25263. 800b0ca: a201 add r2, pc, #4 @ (adr r2, 800b0d0 <HAL_RCCEx_PeriphCLKConfig+0xa88>)
  25264. 800b0cc: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  25265. 800b0d0: 0800b11d .word 0x0800b11d
  25266. 800b0d4: 0800b0e9 .word 0x0800b0e9
  25267. 800b0d8: 0800b0ff .word 0x0800b0ff
  25268. 800b0dc: 0800b11d .word 0x0800b11d
  25269. 800b0e0: 0800b11d .word 0x0800b11d
  25270. 800b0e4: 0800b11d .word 0x0800b11d
  25271. case RCC_USART234578CLKSOURCE_PCLK1: /* CD/D2 PCLK1 as clock source for USART2/3/4/5/7/8 */
  25272. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  25273. break;
  25274. case RCC_USART234578CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART2/3/4/5/7/8 */
  25275. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  25276. 800b0e8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25277. 800b0ec: 3308 adds r3, #8
  25278. 800b0ee: 2101 movs r1, #1
  25279. 800b0f0: 4618 mov r0, r3
  25280. 800b0f2: f000 ff55 bl 800bfa0 <RCCEx_PLL2_Config>
  25281. 800b0f6: 4603 mov r3, r0
  25282. 800b0f8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25283. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  25284. break;
  25285. 800b0fc: e00f b.n 800b11e <HAL_RCCEx_PeriphCLKConfig+0xad6>
  25286. case RCC_USART234578CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART2/3/4/5/7/8 */
  25287. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  25288. 800b0fe: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25289. 800b102: 3328 adds r3, #40 @ 0x28
  25290. 800b104: 2101 movs r1, #1
  25291. 800b106: 4618 mov r0, r3
  25292. 800b108: f000 fffc bl 800c104 <RCCEx_PLL3_Config>
  25293. 800b10c: 4603 mov r3, r0
  25294. 800b10e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25295. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  25296. break;
  25297. 800b112: e004 b.n 800b11e <HAL_RCCEx_PeriphCLKConfig+0xad6>
  25298. /* LSE, oscillator is used as source of USART2/3/4/5/7/8 clock */
  25299. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  25300. break;
  25301. default:
  25302. ret = HAL_ERROR;
  25303. 800b114: 2301 movs r3, #1
  25304. 800b116: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25305. break;
  25306. 800b11a: e000 b.n 800b11e <HAL_RCCEx_PeriphCLKConfig+0xad6>
  25307. break;
  25308. 800b11c: bf00 nop
  25309. }
  25310. if (ret == HAL_OK)
  25311. 800b11e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25312. 800b122: 2b00 cmp r3, #0
  25313. 800b124: d10a bne.n 800b13c <HAL_RCCEx_PeriphCLKConfig+0xaf4>
  25314. {
  25315. /* Set the source of USART2/3/4/5/7/8 clock */
  25316. __HAL_RCC_USART234578_CONFIG(PeriphClkInit->Usart234578ClockSelection);
  25317. 800b126: 4b96 ldr r3, [pc, #600] @ (800b380 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  25318. 800b128: 6d5b ldr r3, [r3, #84] @ 0x54
  25319. 800b12a: f023 0107 bic.w r1, r3, #7
  25320. 800b12e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25321. 800b132: 6f9b ldr r3, [r3, #120] @ 0x78
  25322. 800b134: 4a92 ldr r2, [pc, #584] @ (800b380 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  25323. 800b136: 430b orrs r3, r1
  25324. 800b138: 6553 str r3, [r2, #84] @ 0x54
  25325. 800b13a: e003 b.n 800b144 <HAL_RCCEx_PeriphCLKConfig+0xafc>
  25326. }
  25327. else
  25328. {
  25329. /* set overall return value */
  25330. status = ret;
  25331. 800b13c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25332. 800b140: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25333. }
  25334. }
  25335. /*-------------------------- LPUART1 Configuration -------------------------*/
  25336. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPUART1) == RCC_PERIPHCLK_LPUART1)
  25337. 800b144: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25338. 800b148: e9d3 2300 ldrd r2, r3, [r3]
  25339. 800b14c: f002 0304 and.w r3, r2, #4
  25340. 800b150: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  25341. 800b154: 2300 movs r3, #0
  25342. 800b156: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  25343. 800b15a: e9d7 122a ldrd r1, r2, [r7, #168] @ 0xa8
  25344. 800b15e: 460b mov r3, r1
  25345. 800b160: 4313 orrs r3, r2
  25346. 800b162: d044 beq.n 800b1ee <HAL_RCCEx_PeriphCLKConfig+0xba6>
  25347. {
  25348. switch (PeriphClkInit->Lpuart1ClockSelection)
  25349. 800b164: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25350. 800b168: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94
  25351. 800b16c: 2b05 cmp r3, #5
  25352. 800b16e: d825 bhi.n 800b1bc <HAL_RCCEx_PeriphCLKConfig+0xb74>
  25353. 800b170: a201 add r2, pc, #4 @ (adr r2, 800b178 <HAL_RCCEx_PeriphCLKConfig+0xb30>)
  25354. 800b172: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  25355. 800b176: bf00 nop
  25356. 800b178: 0800b1c5 .word 0x0800b1c5
  25357. 800b17c: 0800b191 .word 0x0800b191
  25358. 800b180: 0800b1a7 .word 0x0800b1a7
  25359. 800b184: 0800b1c5 .word 0x0800b1c5
  25360. 800b188: 0800b1c5 .word 0x0800b1c5
  25361. 800b18c: 0800b1c5 .word 0x0800b1c5
  25362. case RCC_LPUART1CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPUART1 */
  25363. /* LPUART1 clock source configuration done later after clock selection check */
  25364. break;
  25365. case RCC_LPUART1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPUART1 */
  25366. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  25367. 800b190: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25368. 800b194: 3308 adds r3, #8
  25369. 800b196: 2101 movs r1, #1
  25370. 800b198: 4618 mov r0, r3
  25371. 800b19a: f000 ff01 bl 800bfa0 <RCCEx_PLL2_Config>
  25372. 800b19e: 4603 mov r3, r0
  25373. 800b1a0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25374. /* LPUART1 clock source configuration done later after clock selection check */
  25375. break;
  25376. 800b1a4: e00f b.n 800b1c6 <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  25377. case RCC_LPUART1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPUART1 */
  25378. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  25379. 800b1a6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25380. 800b1aa: 3328 adds r3, #40 @ 0x28
  25381. 800b1ac: 2101 movs r1, #1
  25382. 800b1ae: 4618 mov r0, r3
  25383. 800b1b0: f000 ffa8 bl 800c104 <RCCEx_PLL3_Config>
  25384. 800b1b4: 4603 mov r3, r0
  25385. 800b1b6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25386. /* LPUART1 clock source configuration done later after clock selection check */
  25387. break;
  25388. 800b1ba: e004 b.n 800b1c6 <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  25389. /* LSE, oscillator is used as source of LPUART1 clock */
  25390. /* LPUART1 clock source configuration done later after clock selection check */
  25391. break;
  25392. default:
  25393. ret = HAL_ERROR;
  25394. 800b1bc: 2301 movs r3, #1
  25395. 800b1be: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25396. break;
  25397. 800b1c2: e000 b.n 800b1c6 <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  25398. break;
  25399. 800b1c4: bf00 nop
  25400. }
  25401. if (ret == HAL_OK)
  25402. 800b1c6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25403. 800b1ca: 2b00 cmp r3, #0
  25404. 800b1cc: d10b bne.n 800b1e6 <HAL_RCCEx_PeriphCLKConfig+0xb9e>
  25405. {
  25406. /* Set the source of LPUART1 clock */
  25407. __HAL_RCC_LPUART1_CONFIG(PeriphClkInit->Lpuart1ClockSelection);
  25408. 800b1ce: 4b6c ldr r3, [pc, #432] @ (800b380 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  25409. 800b1d0: 6d9b ldr r3, [r3, #88] @ 0x58
  25410. 800b1d2: f023 0107 bic.w r1, r3, #7
  25411. 800b1d6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25412. 800b1da: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94
  25413. 800b1de: 4a68 ldr r2, [pc, #416] @ (800b380 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  25414. 800b1e0: 430b orrs r3, r1
  25415. 800b1e2: 6593 str r3, [r2, #88] @ 0x58
  25416. 800b1e4: e003 b.n 800b1ee <HAL_RCCEx_PeriphCLKConfig+0xba6>
  25417. }
  25418. else
  25419. {
  25420. /* set overall return value */
  25421. status = ret;
  25422. 800b1e6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25423. 800b1ea: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25424. }
  25425. }
  25426. /*---------------------------- LPTIM1 configuration -------------------------------*/
  25427. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM1) == RCC_PERIPHCLK_LPTIM1)
  25428. 800b1ee: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25429. 800b1f2: e9d3 2300 ldrd r2, r3, [r3]
  25430. 800b1f6: f002 0320 and.w r3, r2, #32
  25431. 800b1fa: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  25432. 800b1fe: 2300 movs r3, #0
  25433. 800b200: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  25434. 800b204: e9d7 1228 ldrd r1, r2, [r7, #160] @ 0xa0
  25435. 800b208: 460b mov r3, r1
  25436. 800b20a: 4313 orrs r3, r2
  25437. 800b20c: d055 beq.n 800b2ba <HAL_RCCEx_PeriphCLKConfig+0xc72>
  25438. {
  25439. switch (PeriphClkInit->Lptim1ClockSelection)
  25440. 800b20e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25441. 800b212: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  25442. 800b216: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  25443. 800b21a: d033 beq.n 800b284 <HAL_RCCEx_PeriphCLKConfig+0xc3c>
  25444. 800b21c: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  25445. 800b220: d82c bhi.n 800b27c <HAL_RCCEx_PeriphCLKConfig+0xc34>
  25446. 800b222: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  25447. 800b226: d02f beq.n 800b288 <HAL_RCCEx_PeriphCLKConfig+0xc40>
  25448. 800b228: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  25449. 800b22c: d826 bhi.n 800b27c <HAL_RCCEx_PeriphCLKConfig+0xc34>
  25450. 800b22e: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  25451. 800b232: d02b beq.n 800b28c <HAL_RCCEx_PeriphCLKConfig+0xc44>
  25452. 800b234: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  25453. 800b238: d820 bhi.n 800b27c <HAL_RCCEx_PeriphCLKConfig+0xc34>
  25454. 800b23a: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  25455. 800b23e: d012 beq.n 800b266 <HAL_RCCEx_PeriphCLKConfig+0xc1e>
  25456. 800b240: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  25457. 800b244: d81a bhi.n 800b27c <HAL_RCCEx_PeriphCLKConfig+0xc34>
  25458. 800b246: 2b00 cmp r3, #0
  25459. 800b248: d022 beq.n 800b290 <HAL_RCCEx_PeriphCLKConfig+0xc48>
  25460. 800b24a: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  25461. 800b24e: d115 bne.n 800b27c <HAL_RCCEx_PeriphCLKConfig+0xc34>
  25462. /* LPTIM1 clock source configuration done later after clock selection check */
  25463. break;
  25464. case RCC_LPTIM1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM1*/
  25465. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  25466. 800b250: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25467. 800b254: 3308 adds r3, #8
  25468. 800b256: 2100 movs r1, #0
  25469. 800b258: 4618 mov r0, r3
  25470. 800b25a: f000 fea1 bl 800bfa0 <RCCEx_PLL2_Config>
  25471. 800b25e: 4603 mov r3, r0
  25472. 800b260: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25473. /* LPTIM1 clock source configuration done later after clock selection check */
  25474. break;
  25475. 800b264: e015 b.n 800b292 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  25476. case RCC_LPTIM1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM1*/
  25477. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  25478. 800b266: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25479. 800b26a: 3328 adds r3, #40 @ 0x28
  25480. 800b26c: 2102 movs r1, #2
  25481. 800b26e: 4618 mov r0, r3
  25482. 800b270: f000 ff48 bl 800c104 <RCCEx_PLL3_Config>
  25483. 800b274: 4603 mov r3, r0
  25484. 800b276: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25485. /* LPTIM1 clock source configuration done later after clock selection check */
  25486. break;
  25487. 800b27a: e00a b.n 800b292 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  25488. /* HSI, HSE, or CSI oscillator is used as source of LPTIM1 clock */
  25489. /* LPTIM1 clock source configuration done later after clock selection check */
  25490. break;
  25491. default:
  25492. ret = HAL_ERROR;
  25493. 800b27c: 2301 movs r3, #1
  25494. 800b27e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25495. break;
  25496. 800b282: e006 b.n 800b292 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  25497. break;
  25498. 800b284: bf00 nop
  25499. 800b286: e004 b.n 800b292 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  25500. break;
  25501. 800b288: bf00 nop
  25502. 800b28a: e002 b.n 800b292 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  25503. break;
  25504. 800b28c: bf00 nop
  25505. 800b28e: e000 b.n 800b292 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  25506. break;
  25507. 800b290: bf00 nop
  25508. }
  25509. if (ret == HAL_OK)
  25510. 800b292: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25511. 800b296: 2b00 cmp r3, #0
  25512. 800b298: d10b bne.n 800b2b2 <HAL_RCCEx_PeriphCLKConfig+0xc6a>
  25513. {
  25514. /* Set the source of LPTIM1 clock*/
  25515. __HAL_RCC_LPTIM1_CONFIG(PeriphClkInit->Lptim1ClockSelection);
  25516. 800b29a: 4b39 ldr r3, [pc, #228] @ (800b380 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  25517. 800b29c: 6d5b ldr r3, [r3, #84] @ 0x54
  25518. 800b29e: f023 41e0 bic.w r1, r3, #1879048192 @ 0x70000000
  25519. 800b2a2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25520. 800b2a6: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  25521. 800b2aa: 4a35 ldr r2, [pc, #212] @ (800b380 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  25522. 800b2ac: 430b orrs r3, r1
  25523. 800b2ae: 6553 str r3, [r2, #84] @ 0x54
  25524. 800b2b0: e003 b.n 800b2ba <HAL_RCCEx_PeriphCLKConfig+0xc72>
  25525. }
  25526. else
  25527. {
  25528. /* set overall return value */
  25529. status = ret;
  25530. 800b2b2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25531. 800b2b6: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25532. }
  25533. }
  25534. /*---------------------------- LPTIM2 configuration -------------------------------*/
  25535. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM2) == RCC_PERIPHCLK_LPTIM2)
  25536. 800b2ba: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25537. 800b2be: e9d3 2300 ldrd r2, r3, [r3]
  25538. 800b2c2: f002 0340 and.w r3, r2, #64 @ 0x40
  25539. 800b2c6: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  25540. 800b2ca: 2300 movs r3, #0
  25541. 800b2cc: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  25542. 800b2d0: e9d7 1226 ldrd r1, r2, [r7, #152] @ 0x98
  25543. 800b2d4: 460b mov r3, r1
  25544. 800b2d6: 4313 orrs r3, r2
  25545. 800b2d8: d058 beq.n 800b38c <HAL_RCCEx_PeriphCLKConfig+0xd44>
  25546. {
  25547. switch (PeriphClkInit->Lptim2ClockSelection)
  25548. 800b2da: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25549. 800b2de: f8d3 309c ldr.w r3, [r3, #156] @ 0x9c
  25550. 800b2e2: f5b3 5fa0 cmp.w r3, #5120 @ 0x1400
  25551. 800b2e6: d033 beq.n 800b350 <HAL_RCCEx_PeriphCLKConfig+0xd08>
  25552. 800b2e8: f5b3 5fa0 cmp.w r3, #5120 @ 0x1400
  25553. 800b2ec: d82c bhi.n 800b348 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  25554. 800b2ee: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  25555. 800b2f2: d02f beq.n 800b354 <HAL_RCCEx_PeriphCLKConfig+0xd0c>
  25556. 800b2f4: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  25557. 800b2f8: d826 bhi.n 800b348 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  25558. 800b2fa: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
  25559. 800b2fe: d02b beq.n 800b358 <HAL_RCCEx_PeriphCLKConfig+0xd10>
  25560. 800b300: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
  25561. 800b304: d820 bhi.n 800b348 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  25562. 800b306: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  25563. 800b30a: d012 beq.n 800b332 <HAL_RCCEx_PeriphCLKConfig+0xcea>
  25564. 800b30c: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  25565. 800b310: d81a bhi.n 800b348 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  25566. 800b312: 2b00 cmp r3, #0
  25567. 800b314: d022 beq.n 800b35c <HAL_RCCEx_PeriphCLKConfig+0xd14>
  25568. 800b316: f5b3 6f80 cmp.w r3, #1024 @ 0x400
  25569. 800b31a: d115 bne.n 800b348 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  25570. /* LPTIM2 clock source configuration done later after clock selection check */
  25571. break;
  25572. case RCC_LPTIM2CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM2*/
  25573. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  25574. 800b31c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25575. 800b320: 3308 adds r3, #8
  25576. 800b322: 2100 movs r1, #0
  25577. 800b324: 4618 mov r0, r3
  25578. 800b326: f000 fe3b bl 800bfa0 <RCCEx_PLL2_Config>
  25579. 800b32a: 4603 mov r3, r0
  25580. 800b32c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25581. /* LPTIM2 clock source configuration done later after clock selection check */
  25582. break;
  25583. 800b330: e015 b.n 800b35e <HAL_RCCEx_PeriphCLKConfig+0xd16>
  25584. case RCC_LPTIM2CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM2*/
  25585. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  25586. 800b332: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25587. 800b336: 3328 adds r3, #40 @ 0x28
  25588. 800b338: 2102 movs r1, #2
  25589. 800b33a: 4618 mov r0, r3
  25590. 800b33c: f000 fee2 bl 800c104 <RCCEx_PLL3_Config>
  25591. 800b340: 4603 mov r3, r0
  25592. 800b342: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25593. /* LPTIM2 clock source configuration done later after clock selection check */
  25594. break;
  25595. 800b346: e00a b.n 800b35e <HAL_RCCEx_PeriphCLKConfig+0xd16>
  25596. /* HSI, HSE, or CSI oscillator is used as source of LPTIM2 clock */
  25597. /* LPTIM2 clock source configuration done later after clock selection check */
  25598. break;
  25599. default:
  25600. ret = HAL_ERROR;
  25601. 800b348: 2301 movs r3, #1
  25602. 800b34a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25603. break;
  25604. 800b34e: e006 b.n 800b35e <HAL_RCCEx_PeriphCLKConfig+0xd16>
  25605. break;
  25606. 800b350: bf00 nop
  25607. 800b352: e004 b.n 800b35e <HAL_RCCEx_PeriphCLKConfig+0xd16>
  25608. break;
  25609. 800b354: bf00 nop
  25610. 800b356: e002 b.n 800b35e <HAL_RCCEx_PeriphCLKConfig+0xd16>
  25611. break;
  25612. 800b358: bf00 nop
  25613. 800b35a: e000 b.n 800b35e <HAL_RCCEx_PeriphCLKConfig+0xd16>
  25614. break;
  25615. 800b35c: bf00 nop
  25616. }
  25617. if (ret == HAL_OK)
  25618. 800b35e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25619. 800b362: 2b00 cmp r3, #0
  25620. 800b364: d10e bne.n 800b384 <HAL_RCCEx_PeriphCLKConfig+0xd3c>
  25621. {
  25622. /* Set the source of LPTIM2 clock*/
  25623. __HAL_RCC_LPTIM2_CONFIG(PeriphClkInit->Lptim2ClockSelection);
  25624. 800b366: 4b06 ldr r3, [pc, #24] @ (800b380 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  25625. 800b368: 6d9b ldr r3, [r3, #88] @ 0x58
  25626. 800b36a: f423 51e0 bic.w r1, r3, #7168 @ 0x1c00
  25627. 800b36e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25628. 800b372: f8d3 309c ldr.w r3, [r3, #156] @ 0x9c
  25629. 800b376: 4a02 ldr r2, [pc, #8] @ (800b380 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  25630. 800b378: 430b orrs r3, r1
  25631. 800b37a: 6593 str r3, [r2, #88] @ 0x58
  25632. 800b37c: e006 b.n 800b38c <HAL_RCCEx_PeriphCLKConfig+0xd44>
  25633. 800b37e: bf00 nop
  25634. 800b380: 58024400 .word 0x58024400
  25635. }
  25636. else
  25637. {
  25638. /* set overall return value */
  25639. status = ret;
  25640. 800b384: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25641. 800b388: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25642. }
  25643. }
  25644. /*---------------------------- LPTIM345 configuration -------------------------------*/
  25645. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM345) == RCC_PERIPHCLK_LPTIM345)
  25646. 800b38c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25647. 800b390: e9d3 2300 ldrd r2, r3, [r3]
  25648. 800b394: f002 0380 and.w r3, r2, #128 @ 0x80
  25649. 800b398: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  25650. 800b39c: 2300 movs r3, #0
  25651. 800b39e: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  25652. 800b3a2: e9d7 1224 ldrd r1, r2, [r7, #144] @ 0x90
  25653. 800b3a6: 460b mov r3, r1
  25654. 800b3a8: 4313 orrs r3, r2
  25655. 800b3aa: d055 beq.n 800b458 <HAL_RCCEx_PeriphCLKConfig+0xe10>
  25656. {
  25657. switch (PeriphClkInit->Lptim345ClockSelection)
  25658. 800b3ac: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25659. 800b3b0: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  25660. 800b3b4: f5b3 4f20 cmp.w r3, #40960 @ 0xa000
  25661. 800b3b8: d033 beq.n 800b422 <HAL_RCCEx_PeriphCLKConfig+0xdda>
  25662. 800b3ba: f5b3 4f20 cmp.w r3, #40960 @ 0xa000
  25663. 800b3be: d82c bhi.n 800b41a <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  25664. 800b3c0: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  25665. 800b3c4: d02f beq.n 800b426 <HAL_RCCEx_PeriphCLKConfig+0xdde>
  25666. 800b3c6: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  25667. 800b3ca: d826 bhi.n 800b41a <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  25668. 800b3cc: f5b3 4fc0 cmp.w r3, #24576 @ 0x6000
  25669. 800b3d0: d02b beq.n 800b42a <HAL_RCCEx_PeriphCLKConfig+0xde2>
  25670. 800b3d2: f5b3 4fc0 cmp.w r3, #24576 @ 0x6000
  25671. 800b3d6: d820 bhi.n 800b41a <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  25672. 800b3d8: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  25673. 800b3dc: d012 beq.n 800b404 <HAL_RCCEx_PeriphCLKConfig+0xdbc>
  25674. 800b3de: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  25675. 800b3e2: d81a bhi.n 800b41a <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  25676. 800b3e4: 2b00 cmp r3, #0
  25677. 800b3e6: d022 beq.n 800b42e <HAL_RCCEx_PeriphCLKConfig+0xde6>
  25678. 800b3e8: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  25679. 800b3ec: d115 bne.n 800b41a <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  25680. case RCC_LPTIM345CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPTIM3/4/5 */
  25681. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  25682. break;
  25683. case RCC_LPTIM345CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM3/4/5 */
  25684. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  25685. 800b3ee: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25686. 800b3f2: 3308 adds r3, #8
  25687. 800b3f4: 2100 movs r1, #0
  25688. 800b3f6: 4618 mov r0, r3
  25689. 800b3f8: f000 fdd2 bl 800bfa0 <RCCEx_PLL2_Config>
  25690. 800b3fc: 4603 mov r3, r0
  25691. 800b3fe: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25692. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  25693. break;
  25694. 800b402: e015 b.n 800b430 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  25695. case RCC_LPTIM345CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM3/4/5 */
  25696. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  25697. 800b404: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25698. 800b408: 3328 adds r3, #40 @ 0x28
  25699. 800b40a: 2102 movs r1, #2
  25700. 800b40c: 4618 mov r0, r3
  25701. 800b40e: f000 fe79 bl 800c104 <RCCEx_PLL3_Config>
  25702. 800b412: 4603 mov r3, r0
  25703. 800b414: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25704. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  25705. break;
  25706. 800b418: e00a b.n 800b430 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  25707. /* HSI, HSE, or CSI oscillator is used as source of LPTIM3/4/5 clock */
  25708. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  25709. break;
  25710. default:
  25711. ret = HAL_ERROR;
  25712. 800b41a: 2301 movs r3, #1
  25713. 800b41c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25714. break;
  25715. 800b420: e006 b.n 800b430 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  25716. break;
  25717. 800b422: bf00 nop
  25718. 800b424: e004 b.n 800b430 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  25719. break;
  25720. 800b426: bf00 nop
  25721. 800b428: e002 b.n 800b430 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  25722. break;
  25723. 800b42a: bf00 nop
  25724. 800b42c: e000 b.n 800b430 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  25725. break;
  25726. 800b42e: bf00 nop
  25727. }
  25728. if (ret == HAL_OK)
  25729. 800b430: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25730. 800b434: 2b00 cmp r3, #0
  25731. 800b436: d10b bne.n 800b450 <HAL_RCCEx_PeriphCLKConfig+0xe08>
  25732. {
  25733. /* Set the source of LPTIM3/4/5 clock */
  25734. __HAL_RCC_LPTIM345_CONFIG(PeriphClkInit->Lptim345ClockSelection);
  25735. 800b438: 4bbb ldr r3, [pc, #748] @ (800b728 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  25736. 800b43a: 6d9b ldr r3, [r3, #88] @ 0x58
  25737. 800b43c: f423 4160 bic.w r1, r3, #57344 @ 0xe000
  25738. 800b440: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25739. 800b444: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  25740. 800b448: 4ab7 ldr r2, [pc, #732] @ (800b728 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  25741. 800b44a: 430b orrs r3, r1
  25742. 800b44c: 6593 str r3, [r2, #88] @ 0x58
  25743. 800b44e: e003 b.n 800b458 <HAL_RCCEx_PeriphCLKConfig+0xe10>
  25744. }
  25745. else
  25746. {
  25747. /* set overall return value */
  25748. status = ret;
  25749. 800b450: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25750. 800b454: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25751. __HAL_RCC_I2C1235_CONFIG(PeriphClkInit->I2c1235ClockSelection);
  25752. }
  25753. #else
  25754. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C123) == RCC_PERIPHCLK_I2C123)
  25755. 800b458: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25756. 800b45c: e9d3 2300 ldrd r2, r3, [r3]
  25757. 800b460: f002 0308 and.w r3, r2, #8
  25758. 800b464: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  25759. 800b468: 2300 movs r3, #0
  25760. 800b46a: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  25761. 800b46e: e9d7 1222 ldrd r1, r2, [r7, #136] @ 0x88
  25762. 800b472: 460b mov r3, r1
  25763. 800b474: 4313 orrs r3, r2
  25764. 800b476: d01e beq.n 800b4b6 <HAL_RCCEx_PeriphCLKConfig+0xe6e>
  25765. {
  25766. /* Check the parameters */
  25767. assert_param(IS_RCC_I2C123CLKSOURCE(PeriphClkInit->I2c123ClockSelection));
  25768. if ((PeriphClkInit->I2c123ClockSelection) == RCC_I2C123CLKSOURCE_PLL3)
  25769. 800b478: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25770. 800b47c: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  25771. 800b480: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  25772. 800b484: d10c bne.n 800b4a0 <HAL_RCCEx_PeriphCLKConfig+0xe58>
  25773. {
  25774. if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK)
  25775. 800b486: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25776. 800b48a: 3328 adds r3, #40 @ 0x28
  25777. 800b48c: 2102 movs r1, #2
  25778. 800b48e: 4618 mov r0, r3
  25779. 800b490: f000 fe38 bl 800c104 <RCCEx_PLL3_Config>
  25780. 800b494: 4603 mov r3, r0
  25781. 800b496: 2b00 cmp r3, #0
  25782. 800b498: d002 beq.n 800b4a0 <HAL_RCCEx_PeriphCLKConfig+0xe58>
  25783. {
  25784. status = HAL_ERROR;
  25785. 800b49a: 2301 movs r3, #1
  25786. 800b49c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25787. }
  25788. }
  25789. __HAL_RCC_I2C123_CONFIG(PeriphClkInit->I2c123ClockSelection);
  25790. 800b4a0: 4ba1 ldr r3, [pc, #644] @ (800b728 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  25791. 800b4a2: 6d5b ldr r3, [r3, #84] @ 0x54
  25792. 800b4a4: f423 5140 bic.w r1, r3, #12288 @ 0x3000
  25793. 800b4a8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25794. 800b4ac: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  25795. 800b4b0: 4a9d ldr r2, [pc, #628] @ (800b728 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  25796. 800b4b2: 430b orrs r3, r1
  25797. 800b4b4: 6553 str r3, [r2, #84] @ 0x54
  25798. }
  25799. #endif /* I2C5 */
  25800. /*------------------------------ I2C4 Configuration ------------------------*/
  25801. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C4) == RCC_PERIPHCLK_I2C4)
  25802. 800b4b6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25803. 800b4ba: e9d3 2300 ldrd r2, r3, [r3]
  25804. 800b4be: f002 0310 and.w r3, r2, #16
  25805. 800b4c2: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  25806. 800b4c6: 2300 movs r3, #0
  25807. 800b4c8: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  25808. 800b4cc: e9d7 1220 ldrd r1, r2, [r7, #128] @ 0x80
  25809. 800b4d0: 460b mov r3, r1
  25810. 800b4d2: 4313 orrs r3, r2
  25811. 800b4d4: d01e beq.n 800b514 <HAL_RCCEx_PeriphCLKConfig+0xecc>
  25812. {
  25813. /* Check the parameters */
  25814. assert_param(IS_RCC_I2C4CLKSOURCE(PeriphClkInit->I2c4ClockSelection));
  25815. if ((PeriphClkInit->I2c4ClockSelection) == RCC_I2C4CLKSOURCE_PLL3)
  25816. 800b4d6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25817. 800b4da: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98
  25818. 800b4de: f5b3 7f80 cmp.w r3, #256 @ 0x100
  25819. 800b4e2: d10c bne.n 800b4fe <HAL_RCCEx_PeriphCLKConfig+0xeb6>
  25820. {
  25821. if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK)
  25822. 800b4e4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25823. 800b4e8: 3328 adds r3, #40 @ 0x28
  25824. 800b4ea: 2102 movs r1, #2
  25825. 800b4ec: 4618 mov r0, r3
  25826. 800b4ee: f000 fe09 bl 800c104 <RCCEx_PLL3_Config>
  25827. 800b4f2: 4603 mov r3, r0
  25828. 800b4f4: 2b00 cmp r3, #0
  25829. 800b4f6: d002 beq.n 800b4fe <HAL_RCCEx_PeriphCLKConfig+0xeb6>
  25830. {
  25831. status = HAL_ERROR;
  25832. 800b4f8: 2301 movs r3, #1
  25833. 800b4fa: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25834. }
  25835. }
  25836. __HAL_RCC_I2C4_CONFIG(PeriphClkInit->I2c4ClockSelection);
  25837. 800b4fe: 4b8a ldr r3, [pc, #552] @ (800b728 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  25838. 800b500: 6d9b ldr r3, [r3, #88] @ 0x58
  25839. 800b502: f423 7140 bic.w r1, r3, #768 @ 0x300
  25840. 800b506: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25841. 800b50a: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98
  25842. 800b50e: 4a86 ldr r2, [pc, #536] @ (800b728 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  25843. 800b510: 430b orrs r3, r1
  25844. 800b512: 6593 str r3, [r2, #88] @ 0x58
  25845. }
  25846. /*---------------------------- ADC configuration -------------------------------*/
  25847. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_ADC) == RCC_PERIPHCLK_ADC)
  25848. 800b514: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25849. 800b518: e9d3 2300 ldrd r2, r3, [r3]
  25850. 800b51c: f402 2300 and.w r3, r2, #524288 @ 0x80000
  25851. 800b520: 67bb str r3, [r7, #120] @ 0x78
  25852. 800b522: 2300 movs r3, #0
  25853. 800b524: 67fb str r3, [r7, #124] @ 0x7c
  25854. 800b526: e9d7 121e ldrd r1, r2, [r7, #120] @ 0x78
  25855. 800b52a: 460b mov r3, r1
  25856. 800b52c: 4313 orrs r3, r2
  25857. 800b52e: d03e beq.n 800b5ae <HAL_RCCEx_PeriphCLKConfig+0xf66>
  25858. {
  25859. switch (PeriphClkInit->AdcClockSelection)
  25860. 800b530: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25861. 800b534: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
  25862. 800b538: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  25863. 800b53c: d022 beq.n 800b584 <HAL_RCCEx_PeriphCLKConfig+0xf3c>
  25864. 800b53e: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  25865. 800b542: d81b bhi.n 800b57c <HAL_RCCEx_PeriphCLKConfig+0xf34>
  25866. 800b544: 2b00 cmp r3, #0
  25867. 800b546: d003 beq.n 800b550 <HAL_RCCEx_PeriphCLKConfig+0xf08>
  25868. 800b548: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  25869. 800b54c: d00b beq.n 800b566 <HAL_RCCEx_PeriphCLKConfig+0xf1e>
  25870. 800b54e: e015 b.n 800b57c <HAL_RCCEx_PeriphCLKConfig+0xf34>
  25871. {
  25872. case RCC_ADCCLKSOURCE_PLL2: /* PLL2 is used as clock source for ADC*/
  25873. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  25874. 800b550: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25875. 800b554: 3308 adds r3, #8
  25876. 800b556: 2100 movs r1, #0
  25877. 800b558: 4618 mov r0, r3
  25878. 800b55a: f000 fd21 bl 800bfa0 <RCCEx_PLL2_Config>
  25879. 800b55e: 4603 mov r3, r0
  25880. 800b560: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25881. /* ADC clock source configuration done later after clock selection check */
  25882. break;
  25883. 800b564: e00f b.n 800b586 <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  25884. case RCC_ADCCLKSOURCE_PLL3: /* PLL3 is used as clock source for ADC*/
  25885. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  25886. 800b566: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25887. 800b56a: 3328 adds r3, #40 @ 0x28
  25888. 800b56c: 2102 movs r1, #2
  25889. 800b56e: 4618 mov r0, r3
  25890. 800b570: f000 fdc8 bl 800c104 <RCCEx_PLL3_Config>
  25891. 800b574: 4603 mov r3, r0
  25892. 800b576: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25893. /* ADC clock source configuration done later after clock selection check */
  25894. break;
  25895. 800b57a: e004 b.n 800b586 <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  25896. /* HSI, HSE, or CSI oscillator is used as source of ADC clock */
  25897. /* ADC clock source configuration done later after clock selection check */
  25898. break;
  25899. default:
  25900. ret = HAL_ERROR;
  25901. 800b57c: 2301 movs r3, #1
  25902. 800b57e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25903. break;
  25904. 800b582: e000 b.n 800b586 <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  25905. break;
  25906. 800b584: bf00 nop
  25907. }
  25908. if (ret == HAL_OK)
  25909. 800b586: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25910. 800b58a: 2b00 cmp r3, #0
  25911. 800b58c: d10b bne.n 800b5a6 <HAL_RCCEx_PeriphCLKConfig+0xf5e>
  25912. {
  25913. /* Set the source of ADC clock*/
  25914. __HAL_RCC_ADC_CONFIG(PeriphClkInit->AdcClockSelection);
  25915. 800b58e: 4b66 ldr r3, [pc, #408] @ (800b728 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  25916. 800b590: 6d9b ldr r3, [r3, #88] @ 0x58
  25917. 800b592: f423 3140 bic.w r1, r3, #196608 @ 0x30000
  25918. 800b596: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25919. 800b59a: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
  25920. 800b59e: 4a62 ldr r2, [pc, #392] @ (800b728 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  25921. 800b5a0: 430b orrs r3, r1
  25922. 800b5a2: 6593 str r3, [r2, #88] @ 0x58
  25923. 800b5a4: e003 b.n 800b5ae <HAL_RCCEx_PeriphCLKConfig+0xf66>
  25924. }
  25925. else
  25926. {
  25927. /* set overall return value */
  25928. status = ret;
  25929. 800b5a6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25930. 800b5aa: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25931. }
  25932. }
  25933. /*------------------------------ USB Configuration -------------------------*/
  25934. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USB) == RCC_PERIPHCLK_USB)
  25935. 800b5ae: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25936. 800b5b2: e9d3 2300 ldrd r2, r3, [r3]
  25937. 800b5b6: f402 2380 and.w r3, r2, #262144 @ 0x40000
  25938. 800b5ba: 673b str r3, [r7, #112] @ 0x70
  25939. 800b5bc: 2300 movs r3, #0
  25940. 800b5be: 677b str r3, [r7, #116] @ 0x74
  25941. 800b5c0: e9d7 121c ldrd r1, r2, [r7, #112] @ 0x70
  25942. 800b5c4: 460b mov r3, r1
  25943. 800b5c6: 4313 orrs r3, r2
  25944. 800b5c8: d03b beq.n 800b642 <HAL_RCCEx_PeriphCLKConfig+0xffa>
  25945. {
  25946. switch (PeriphClkInit->UsbClockSelection)
  25947. 800b5ca: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25948. 800b5ce: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  25949. 800b5d2: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  25950. 800b5d6: d01f beq.n 800b618 <HAL_RCCEx_PeriphCLKConfig+0xfd0>
  25951. 800b5d8: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  25952. 800b5dc: d818 bhi.n 800b610 <HAL_RCCEx_PeriphCLKConfig+0xfc8>
  25953. 800b5de: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  25954. 800b5e2: d003 beq.n 800b5ec <HAL_RCCEx_PeriphCLKConfig+0xfa4>
  25955. 800b5e4: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  25956. 800b5e8: d007 beq.n 800b5fa <HAL_RCCEx_PeriphCLKConfig+0xfb2>
  25957. 800b5ea: e011 b.n 800b610 <HAL_RCCEx_PeriphCLKConfig+0xfc8>
  25958. {
  25959. case RCC_USBCLKSOURCE_PLL: /* PLL is used as clock source for USB*/
  25960. /* Enable USB Clock output generated form System USB . */
  25961. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  25962. 800b5ec: 4b4e ldr r3, [pc, #312] @ (800b728 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  25963. 800b5ee: 6adb ldr r3, [r3, #44] @ 0x2c
  25964. 800b5f0: 4a4d ldr r2, [pc, #308] @ (800b728 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  25965. 800b5f2: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  25966. 800b5f6: 62d3 str r3, [r2, #44] @ 0x2c
  25967. /* USB clock source configuration done later after clock selection check */
  25968. break;
  25969. 800b5f8: e00f b.n 800b61a <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  25970. case RCC_USBCLKSOURCE_PLL3: /* PLL3 is used as clock source for USB*/
  25971. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  25972. 800b5fa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25973. 800b5fe: 3328 adds r3, #40 @ 0x28
  25974. 800b600: 2101 movs r1, #1
  25975. 800b602: 4618 mov r0, r3
  25976. 800b604: f000 fd7e bl 800c104 <RCCEx_PLL3_Config>
  25977. 800b608: 4603 mov r3, r0
  25978. 800b60a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25979. /* USB clock source configuration done later after clock selection check */
  25980. break;
  25981. 800b60e: e004 b.n 800b61a <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  25982. /* HSI48 oscillator is used as source of USB clock */
  25983. /* USB clock source configuration done later after clock selection check */
  25984. break;
  25985. default:
  25986. ret = HAL_ERROR;
  25987. 800b610: 2301 movs r3, #1
  25988. 800b612: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25989. break;
  25990. 800b616: e000 b.n 800b61a <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  25991. break;
  25992. 800b618: bf00 nop
  25993. }
  25994. if (ret == HAL_OK)
  25995. 800b61a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25996. 800b61e: 2b00 cmp r3, #0
  25997. 800b620: d10b bne.n 800b63a <HAL_RCCEx_PeriphCLKConfig+0xff2>
  25998. {
  25999. /* Set the source of USB clock*/
  26000. __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection);
  26001. 800b622: 4b41 ldr r3, [pc, #260] @ (800b728 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26002. 800b624: 6d5b ldr r3, [r3, #84] @ 0x54
  26003. 800b626: f423 1140 bic.w r1, r3, #3145728 @ 0x300000
  26004. 800b62a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26005. 800b62e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  26006. 800b632: 4a3d ldr r2, [pc, #244] @ (800b728 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26007. 800b634: 430b orrs r3, r1
  26008. 800b636: 6553 str r3, [r2, #84] @ 0x54
  26009. 800b638: e003 b.n 800b642 <HAL_RCCEx_PeriphCLKConfig+0xffa>
  26010. }
  26011. else
  26012. {
  26013. /* set overall return value */
  26014. status = ret;
  26015. 800b63a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26016. 800b63e: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26017. }
  26018. }
  26019. /*------------------------------------- SDMMC Configuration ------------------------------------*/
  26020. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDMMC) == RCC_PERIPHCLK_SDMMC)
  26021. 800b642: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26022. 800b646: e9d3 2300 ldrd r2, r3, [r3]
  26023. 800b64a: f402 3380 and.w r3, r2, #65536 @ 0x10000
  26024. 800b64e: 66bb str r3, [r7, #104] @ 0x68
  26025. 800b650: 2300 movs r3, #0
  26026. 800b652: 66fb str r3, [r7, #108] @ 0x6c
  26027. 800b654: e9d7 121a ldrd r1, r2, [r7, #104] @ 0x68
  26028. 800b658: 460b mov r3, r1
  26029. 800b65a: 4313 orrs r3, r2
  26030. 800b65c: d031 beq.n 800b6c2 <HAL_RCCEx_PeriphCLKConfig+0x107a>
  26031. {
  26032. /* Check the parameters */
  26033. assert_param(IS_RCC_SDMMC(PeriphClkInit->SdmmcClockSelection));
  26034. switch (PeriphClkInit->SdmmcClockSelection)
  26035. 800b65e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26036. 800b662: 6d1b ldr r3, [r3, #80] @ 0x50
  26037. 800b664: 2b00 cmp r3, #0
  26038. 800b666: d003 beq.n 800b670 <HAL_RCCEx_PeriphCLKConfig+0x1028>
  26039. 800b668: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  26040. 800b66c: d007 beq.n 800b67e <HAL_RCCEx_PeriphCLKConfig+0x1036>
  26041. 800b66e: e011 b.n 800b694 <HAL_RCCEx_PeriphCLKConfig+0x104c>
  26042. {
  26043. case RCC_SDMMCCLKSOURCE_PLL: /* PLL is used as clock source for SDMMC*/
  26044. /* Enable SDMMC Clock output generated form System PLL . */
  26045. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  26046. 800b670: 4b2d ldr r3, [pc, #180] @ (800b728 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26047. 800b672: 6adb ldr r3, [r3, #44] @ 0x2c
  26048. 800b674: 4a2c ldr r2, [pc, #176] @ (800b728 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26049. 800b676: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26050. 800b67a: 62d3 str r3, [r2, #44] @ 0x2c
  26051. /* SDMMC clock source configuration done later after clock selection check */
  26052. break;
  26053. 800b67c: e00e b.n 800b69c <HAL_RCCEx_PeriphCLKConfig+0x1054>
  26054. case RCC_SDMMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for SDMMC*/
  26055. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  26056. 800b67e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26057. 800b682: 3308 adds r3, #8
  26058. 800b684: 2102 movs r1, #2
  26059. 800b686: 4618 mov r0, r3
  26060. 800b688: f000 fc8a bl 800bfa0 <RCCEx_PLL2_Config>
  26061. 800b68c: 4603 mov r3, r0
  26062. 800b68e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26063. /* SDMMC clock source configuration done later after clock selection check */
  26064. break;
  26065. 800b692: e003 b.n 800b69c <HAL_RCCEx_PeriphCLKConfig+0x1054>
  26066. default:
  26067. ret = HAL_ERROR;
  26068. 800b694: 2301 movs r3, #1
  26069. 800b696: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26070. break;
  26071. 800b69a: bf00 nop
  26072. }
  26073. if (ret == HAL_OK)
  26074. 800b69c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26075. 800b6a0: 2b00 cmp r3, #0
  26076. 800b6a2: d10a bne.n 800b6ba <HAL_RCCEx_PeriphCLKConfig+0x1072>
  26077. {
  26078. /* Set the source of SDMMC clock*/
  26079. __HAL_RCC_SDMMC_CONFIG(PeriphClkInit->SdmmcClockSelection);
  26080. 800b6a4: 4b20 ldr r3, [pc, #128] @ (800b728 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26081. 800b6a6: 6cdb ldr r3, [r3, #76] @ 0x4c
  26082. 800b6a8: f423 3180 bic.w r1, r3, #65536 @ 0x10000
  26083. 800b6ac: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26084. 800b6b0: 6d1b ldr r3, [r3, #80] @ 0x50
  26085. 800b6b2: 4a1d ldr r2, [pc, #116] @ (800b728 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26086. 800b6b4: 430b orrs r3, r1
  26087. 800b6b6: 64d3 str r3, [r2, #76] @ 0x4c
  26088. 800b6b8: e003 b.n 800b6c2 <HAL_RCCEx_PeriphCLKConfig+0x107a>
  26089. }
  26090. else
  26091. {
  26092. /* set overall return value */
  26093. status = ret;
  26094. 800b6ba: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26095. 800b6be: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26096. }
  26097. }
  26098. #endif /* LTDC */
  26099. /*------------------------------ RNG Configuration -------------------------*/
  26100. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RNG) == RCC_PERIPHCLK_RNG)
  26101. 800b6c2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26102. 800b6c6: e9d3 2300 ldrd r2, r3, [r3]
  26103. 800b6ca: f402 3300 and.w r3, r2, #131072 @ 0x20000
  26104. 800b6ce: 663b str r3, [r7, #96] @ 0x60
  26105. 800b6d0: 2300 movs r3, #0
  26106. 800b6d2: 667b str r3, [r7, #100] @ 0x64
  26107. 800b6d4: e9d7 1218 ldrd r1, r2, [r7, #96] @ 0x60
  26108. 800b6d8: 460b mov r3, r1
  26109. 800b6da: 4313 orrs r3, r2
  26110. 800b6dc: d03b beq.n 800b756 <HAL_RCCEx_PeriphCLKConfig+0x110e>
  26111. {
  26112. switch (PeriphClkInit->RngClockSelection)
  26113. 800b6de: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26114. 800b6e2: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  26115. 800b6e6: f5b3 7f40 cmp.w r3, #768 @ 0x300
  26116. 800b6ea: d018 beq.n 800b71e <HAL_RCCEx_PeriphCLKConfig+0x10d6>
  26117. 800b6ec: f5b3 7f40 cmp.w r3, #768 @ 0x300
  26118. 800b6f0: d811 bhi.n 800b716 <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  26119. 800b6f2: f5b3 7f00 cmp.w r3, #512 @ 0x200
  26120. 800b6f6: d014 beq.n 800b722 <HAL_RCCEx_PeriphCLKConfig+0x10da>
  26121. 800b6f8: f5b3 7f00 cmp.w r3, #512 @ 0x200
  26122. 800b6fc: d80b bhi.n 800b716 <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  26123. 800b6fe: 2b00 cmp r3, #0
  26124. 800b700: d014 beq.n 800b72c <HAL_RCCEx_PeriphCLKConfig+0x10e4>
  26125. 800b702: f5b3 7f80 cmp.w r3, #256 @ 0x100
  26126. 800b706: d106 bne.n 800b716 <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  26127. {
  26128. case RCC_RNGCLKSOURCE_PLL: /* PLL is used as clock source for RNG*/
  26129. /* Enable RNG Clock output generated form System RNG . */
  26130. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  26131. 800b708: 4b07 ldr r3, [pc, #28] @ (800b728 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26132. 800b70a: 6adb ldr r3, [r3, #44] @ 0x2c
  26133. 800b70c: 4a06 ldr r2, [pc, #24] @ (800b728 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26134. 800b70e: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26135. 800b712: 62d3 str r3, [r2, #44] @ 0x2c
  26136. /* RNG clock source configuration done later after clock selection check */
  26137. break;
  26138. 800b714: e00b b.n 800b72e <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  26139. /* HSI48 oscillator is used as source of RNG clock */
  26140. /* RNG clock source configuration done later after clock selection check */
  26141. break;
  26142. default:
  26143. ret = HAL_ERROR;
  26144. 800b716: 2301 movs r3, #1
  26145. 800b718: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26146. break;
  26147. 800b71c: e007 b.n 800b72e <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  26148. break;
  26149. 800b71e: bf00 nop
  26150. 800b720: e005 b.n 800b72e <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  26151. break;
  26152. 800b722: bf00 nop
  26153. 800b724: e003 b.n 800b72e <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  26154. 800b726: bf00 nop
  26155. 800b728: 58024400 .word 0x58024400
  26156. break;
  26157. 800b72c: bf00 nop
  26158. }
  26159. if (ret == HAL_OK)
  26160. 800b72e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26161. 800b732: 2b00 cmp r3, #0
  26162. 800b734: d10b bne.n 800b74e <HAL_RCCEx_PeriphCLKConfig+0x1106>
  26163. {
  26164. /* Set the source of RNG clock*/
  26165. __HAL_RCC_RNG_CONFIG(PeriphClkInit->RngClockSelection);
  26166. 800b736: 4bba ldr r3, [pc, #744] @ (800ba20 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  26167. 800b738: 6d5b ldr r3, [r3, #84] @ 0x54
  26168. 800b73a: f423 7140 bic.w r1, r3, #768 @ 0x300
  26169. 800b73e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26170. 800b742: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  26171. 800b746: 4ab6 ldr r2, [pc, #728] @ (800ba20 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  26172. 800b748: 430b orrs r3, r1
  26173. 800b74a: 6553 str r3, [r2, #84] @ 0x54
  26174. 800b74c: e003 b.n 800b756 <HAL_RCCEx_PeriphCLKConfig+0x110e>
  26175. }
  26176. else
  26177. {
  26178. /* set overall return value */
  26179. status = ret;
  26180. 800b74e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26181. 800b752: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26182. }
  26183. }
  26184. /*------------------------------ SWPMI1 Configuration ------------------------*/
  26185. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SWPMI1) == RCC_PERIPHCLK_SWPMI1)
  26186. 800b756: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26187. 800b75a: e9d3 2300 ldrd r2, r3, [r3]
  26188. 800b75e: f402 1380 and.w r3, r2, #1048576 @ 0x100000
  26189. 800b762: 65bb str r3, [r7, #88] @ 0x58
  26190. 800b764: 2300 movs r3, #0
  26191. 800b766: 65fb str r3, [r7, #92] @ 0x5c
  26192. 800b768: e9d7 1216 ldrd r1, r2, [r7, #88] @ 0x58
  26193. 800b76c: 460b mov r3, r1
  26194. 800b76e: 4313 orrs r3, r2
  26195. 800b770: d009 beq.n 800b786 <HAL_RCCEx_PeriphCLKConfig+0x113e>
  26196. {
  26197. /* Check the parameters */
  26198. assert_param(IS_RCC_SWPMI1CLKSOURCE(PeriphClkInit->Swpmi1ClockSelection));
  26199. /* Configure the SWPMI1 interface clock source */
  26200. __HAL_RCC_SWPMI1_CONFIG(PeriphClkInit->Swpmi1ClockSelection);
  26201. 800b772: 4bab ldr r3, [pc, #684] @ (800ba20 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  26202. 800b774: 6d1b ldr r3, [r3, #80] @ 0x50
  26203. 800b776: f023 4100 bic.w r1, r3, #2147483648 @ 0x80000000
  26204. 800b77a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26205. 800b77e: 6f5b ldr r3, [r3, #116] @ 0x74
  26206. 800b780: 4aa7 ldr r2, [pc, #668] @ (800ba20 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  26207. 800b782: 430b orrs r3, r1
  26208. 800b784: 6513 str r3, [r2, #80] @ 0x50
  26209. }
  26210. #if defined(HRTIM1)
  26211. /*------------------------------ HRTIM1 clock Configuration ----------------*/
  26212. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_HRTIM1) == RCC_PERIPHCLK_HRTIM1)
  26213. 800b786: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26214. 800b78a: e9d3 2300 ldrd r2, r3, [r3]
  26215. 800b78e: f002 5380 and.w r3, r2, #268435456 @ 0x10000000
  26216. 800b792: 653b str r3, [r7, #80] @ 0x50
  26217. 800b794: 2300 movs r3, #0
  26218. 800b796: 657b str r3, [r7, #84] @ 0x54
  26219. 800b798: e9d7 1214 ldrd r1, r2, [r7, #80] @ 0x50
  26220. 800b79c: 460b mov r3, r1
  26221. 800b79e: 4313 orrs r3, r2
  26222. 800b7a0: d00a beq.n 800b7b8 <HAL_RCCEx_PeriphCLKConfig+0x1170>
  26223. {
  26224. /* Check the parameters */
  26225. assert_param(IS_RCC_HRTIM1CLKSOURCE(PeriphClkInit->Hrtim1ClockSelection));
  26226. /* Configure the HRTIM1 clock source */
  26227. __HAL_RCC_HRTIM1_CONFIG(PeriphClkInit->Hrtim1ClockSelection);
  26228. 800b7a2: 4b9f ldr r3, [pc, #636] @ (800ba20 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  26229. 800b7a4: 691b ldr r3, [r3, #16]
  26230. 800b7a6: f423 4180 bic.w r1, r3, #16384 @ 0x4000
  26231. 800b7aa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26232. 800b7ae: f8d3 30b8 ldr.w r3, [r3, #184] @ 0xb8
  26233. 800b7b2: 4a9b ldr r2, [pc, #620] @ (800ba20 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  26234. 800b7b4: 430b orrs r3, r1
  26235. 800b7b6: 6113 str r3, [r2, #16]
  26236. }
  26237. #endif /*HRTIM1*/
  26238. /*------------------------------ DFSDM1 Configuration ------------------------*/
  26239. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_DFSDM1) == RCC_PERIPHCLK_DFSDM1)
  26240. 800b7b8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26241. 800b7bc: e9d3 2300 ldrd r2, r3, [r3]
  26242. 800b7c0: f402 1300 and.w r3, r2, #2097152 @ 0x200000
  26243. 800b7c4: 64bb str r3, [r7, #72] @ 0x48
  26244. 800b7c6: 2300 movs r3, #0
  26245. 800b7c8: 64fb str r3, [r7, #76] @ 0x4c
  26246. 800b7ca: e9d7 1212 ldrd r1, r2, [r7, #72] @ 0x48
  26247. 800b7ce: 460b mov r3, r1
  26248. 800b7d0: 4313 orrs r3, r2
  26249. 800b7d2: d009 beq.n 800b7e8 <HAL_RCCEx_PeriphCLKConfig+0x11a0>
  26250. {
  26251. /* Check the parameters */
  26252. assert_param(IS_RCC_DFSDM1CLKSOURCE(PeriphClkInit->Dfsdm1ClockSelection));
  26253. /* Configure the DFSDM1 interface clock source */
  26254. __HAL_RCC_DFSDM1_CONFIG(PeriphClkInit->Dfsdm1ClockSelection);
  26255. 800b7d4: 4b92 ldr r3, [pc, #584] @ (800ba20 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  26256. 800b7d6: 6d1b ldr r3, [r3, #80] @ 0x50
  26257. 800b7d8: f023 7180 bic.w r1, r3, #16777216 @ 0x1000000
  26258. 800b7dc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26259. 800b7e0: 6edb ldr r3, [r3, #108] @ 0x6c
  26260. 800b7e2: 4a8f ldr r2, [pc, #572] @ (800ba20 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  26261. 800b7e4: 430b orrs r3, r1
  26262. 800b7e6: 6513 str r3, [r2, #80] @ 0x50
  26263. __HAL_RCC_DFSDM2_CONFIG(PeriphClkInit->Dfsdm2ClockSelection);
  26264. }
  26265. #endif /* DFSDM2 */
  26266. /*------------------------------------ TIM configuration --------------------------------------*/
  26267. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == RCC_PERIPHCLK_TIM)
  26268. 800b7e8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26269. 800b7ec: e9d3 2300 ldrd r2, r3, [r3]
  26270. 800b7f0: f002 4380 and.w r3, r2, #1073741824 @ 0x40000000
  26271. 800b7f4: 643b str r3, [r7, #64] @ 0x40
  26272. 800b7f6: 2300 movs r3, #0
  26273. 800b7f8: 647b str r3, [r7, #68] @ 0x44
  26274. 800b7fa: e9d7 1210 ldrd r1, r2, [r7, #64] @ 0x40
  26275. 800b7fe: 460b mov r3, r1
  26276. 800b800: 4313 orrs r3, r2
  26277. 800b802: d00e beq.n 800b822 <HAL_RCCEx_PeriphCLKConfig+0x11da>
  26278. {
  26279. /* Check the parameters */
  26280. assert_param(IS_RCC_TIMPRES(PeriphClkInit->TIMPresSelection));
  26281. /* Configure Timer Prescaler */
  26282. __HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection);
  26283. 800b804: 4b86 ldr r3, [pc, #536] @ (800ba20 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  26284. 800b806: 691b ldr r3, [r3, #16]
  26285. 800b808: 4a85 ldr r2, [pc, #532] @ (800ba20 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  26286. 800b80a: f423 4300 bic.w r3, r3, #32768 @ 0x8000
  26287. 800b80e: 6113 str r3, [r2, #16]
  26288. 800b810: 4b83 ldr r3, [pc, #524] @ (800ba20 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  26289. 800b812: 6919 ldr r1, [r3, #16]
  26290. 800b814: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26291. 800b818: f8d3 30bc ldr.w r3, [r3, #188] @ 0xbc
  26292. 800b81c: 4a80 ldr r2, [pc, #512] @ (800ba20 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  26293. 800b81e: 430b orrs r3, r1
  26294. 800b820: 6113 str r3, [r2, #16]
  26295. }
  26296. /*------------------------------------ CKPER configuration --------------------------------------*/
  26297. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CKPER) == RCC_PERIPHCLK_CKPER)
  26298. 800b822: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26299. 800b826: e9d3 2300 ldrd r2, r3, [r3]
  26300. 800b82a: f002 4300 and.w r3, r2, #2147483648 @ 0x80000000
  26301. 800b82e: 63bb str r3, [r7, #56] @ 0x38
  26302. 800b830: 2300 movs r3, #0
  26303. 800b832: 63fb str r3, [r7, #60] @ 0x3c
  26304. 800b834: e9d7 120e ldrd r1, r2, [r7, #56] @ 0x38
  26305. 800b838: 460b mov r3, r1
  26306. 800b83a: 4313 orrs r3, r2
  26307. 800b83c: d009 beq.n 800b852 <HAL_RCCEx_PeriphCLKConfig+0x120a>
  26308. {
  26309. /* Check the parameters */
  26310. assert_param(IS_RCC_CLKPSOURCE(PeriphClkInit->CkperClockSelection));
  26311. /* Configure the CKPER clock source */
  26312. __HAL_RCC_CLKP_CONFIG(PeriphClkInit->CkperClockSelection);
  26313. 800b83e: 4b78 ldr r3, [pc, #480] @ (800ba20 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  26314. 800b840: 6cdb ldr r3, [r3, #76] @ 0x4c
  26315. 800b842: f023 5140 bic.w r1, r3, #805306368 @ 0x30000000
  26316. 800b846: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26317. 800b84a: 6d5b ldr r3, [r3, #84] @ 0x54
  26318. 800b84c: 4a74 ldr r2, [pc, #464] @ (800ba20 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  26319. 800b84e: 430b orrs r3, r1
  26320. 800b850: 64d3 str r3, [r2, #76] @ 0x4c
  26321. }
  26322. /*------------------------------ CEC Configuration ------------------------*/
  26323. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CEC) == RCC_PERIPHCLK_CEC)
  26324. 800b852: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26325. 800b856: e9d3 2300 ldrd r2, r3, [r3]
  26326. 800b85a: f402 0300 and.w r3, r2, #8388608 @ 0x800000
  26327. 800b85e: 633b str r3, [r7, #48] @ 0x30
  26328. 800b860: 2300 movs r3, #0
  26329. 800b862: 637b str r3, [r7, #52] @ 0x34
  26330. 800b864: e9d7 120c ldrd r1, r2, [r7, #48] @ 0x30
  26331. 800b868: 460b mov r3, r1
  26332. 800b86a: 4313 orrs r3, r2
  26333. 800b86c: d00a beq.n 800b884 <HAL_RCCEx_PeriphCLKConfig+0x123c>
  26334. {
  26335. /* Check the parameters */
  26336. assert_param(IS_RCC_CECCLKSOURCE(PeriphClkInit->CecClockSelection));
  26337. /* Configure the CEC interface clock source */
  26338. __HAL_RCC_CEC_CONFIG(PeriphClkInit->CecClockSelection);
  26339. 800b86e: 4b6c ldr r3, [pc, #432] @ (800ba20 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  26340. 800b870: 6d5b ldr r3, [r3, #84] @ 0x54
  26341. 800b872: f423 0140 bic.w r1, r3, #12582912 @ 0xc00000
  26342. 800b876: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26343. 800b87a: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  26344. 800b87e: 4a68 ldr r2, [pc, #416] @ (800ba20 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  26345. 800b880: 430b orrs r3, r1
  26346. 800b882: 6553 str r3, [r2, #84] @ 0x54
  26347. }
  26348. /*---------------------------- PLL2 configuration -------------------------------*/
  26349. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVP) == RCC_PERIPHCLK_PLL2_DIVP)
  26350. 800b884: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26351. 800b888: e9d3 2300 ldrd r2, r3, [r3]
  26352. 800b88c: 2100 movs r1, #0
  26353. 800b88e: 62b9 str r1, [r7, #40] @ 0x28
  26354. 800b890: f003 0301 and.w r3, r3, #1
  26355. 800b894: 62fb str r3, [r7, #44] @ 0x2c
  26356. 800b896: e9d7 120a ldrd r1, r2, [r7, #40] @ 0x28
  26357. 800b89a: 460b mov r3, r1
  26358. 800b89c: 4313 orrs r3, r2
  26359. 800b89e: d011 beq.n 800b8c4 <HAL_RCCEx_PeriphCLKConfig+0x127c>
  26360. {
  26361. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  26362. 800b8a0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26363. 800b8a4: 3308 adds r3, #8
  26364. 800b8a6: 2100 movs r1, #0
  26365. 800b8a8: 4618 mov r0, r3
  26366. 800b8aa: f000 fb79 bl 800bfa0 <RCCEx_PLL2_Config>
  26367. 800b8ae: 4603 mov r3, r0
  26368. 800b8b0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26369. if (ret == HAL_OK)
  26370. 800b8b4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26371. 800b8b8: 2b00 cmp r3, #0
  26372. 800b8ba: d003 beq.n 800b8c4 <HAL_RCCEx_PeriphCLKConfig+0x127c>
  26373. /*Nothing to do*/
  26374. }
  26375. else
  26376. {
  26377. /* set overall return value */
  26378. status = ret;
  26379. 800b8bc: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26380. 800b8c0: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26381. }
  26382. }
  26383. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVQ) == RCC_PERIPHCLK_PLL2_DIVQ)
  26384. 800b8c4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26385. 800b8c8: e9d3 2300 ldrd r2, r3, [r3]
  26386. 800b8cc: 2100 movs r1, #0
  26387. 800b8ce: 6239 str r1, [r7, #32]
  26388. 800b8d0: f003 0302 and.w r3, r3, #2
  26389. 800b8d4: 627b str r3, [r7, #36] @ 0x24
  26390. 800b8d6: e9d7 1208 ldrd r1, r2, [r7, #32]
  26391. 800b8da: 460b mov r3, r1
  26392. 800b8dc: 4313 orrs r3, r2
  26393. 800b8de: d011 beq.n 800b904 <HAL_RCCEx_PeriphCLKConfig+0x12bc>
  26394. {
  26395. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  26396. 800b8e0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26397. 800b8e4: 3308 adds r3, #8
  26398. 800b8e6: 2101 movs r1, #1
  26399. 800b8e8: 4618 mov r0, r3
  26400. 800b8ea: f000 fb59 bl 800bfa0 <RCCEx_PLL2_Config>
  26401. 800b8ee: 4603 mov r3, r0
  26402. 800b8f0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26403. if (ret == HAL_OK)
  26404. 800b8f4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26405. 800b8f8: 2b00 cmp r3, #0
  26406. 800b8fa: d003 beq.n 800b904 <HAL_RCCEx_PeriphCLKConfig+0x12bc>
  26407. /*Nothing to do*/
  26408. }
  26409. else
  26410. {
  26411. /* set overall return value */
  26412. status = ret;
  26413. 800b8fc: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26414. 800b900: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26415. }
  26416. }
  26417. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVR) == RCC_PERIPHCLK_PLL2_DIVR)
  26418. 800b904: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26419. 800b908: e9d3 2300 ldrd r2, r3, [r3]
  26420. 800b90c: 2100 movs r1, #0
  26421. 800b90e: 61b9 str r1, [r7, #24]
  26422. 800b910: f003 0304 and.w r3, r3, #4
  26423. 800b914: 61fb str r3, [r7, #28]
  26424. 800b916: e9d7 1206 ldrd r1, r2, [r7, #24]
  26425. 800b91a: 460b mov r3, r1
  26426. 800b91c: 4313 orrs r3, r2
  26427. 800b91e: d011 beq.n 800b944 <HAL_RCCEx_PeriphCLKConfig+0x12fc>
  26428. {
  26429. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  26430. 800b920: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26431. 800b924: 3308 adds r3, #8
  26432. 800b926: 2102 movs r1, #2
  26433. 800b928: 4618 mov r0, r3
  26434. 800b92a: f000 fb39 bl 800bfa0 <RCCEx_PLL2_Config>
  26435. 800b92e: 4603 mov r3, r0
  26436. 800b930: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26437. if (ret == HAL_OK)
  26438. 800b934: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26439. 800b938: 2b00 cmp r3, #0
  26440. 800b93a: d003 beq.n 800b944 <HAL_RCCEx_PeriphCLKConfig+0x12fc>
  26441. /*Nothing to do*/
  26442. }
  26443. else
  26444. {
  26445. /* set overall return value */
  26446. status = ret;
  26447. 800b93c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26448. 800b940: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26449. }
  26450. }
  26451. /*---------------------------- PLL3 configuration -------------------------------*/
  26452. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVP) == RCC_PERIPHCLK_PLL3_DIVP)
  26453. 800b944: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26454. 800b948: e9d3 2300 ldrd r2, r3, [r3]
  26455. 800b94c: 2100 movs r1, #0
  26456. 800b94e: 6139 str r1, [r7, #16]
  26457. 800b950: f003 0308 and.w r3, r3, #8
  26458. 800b954: 617b str r3, [r7, #20]
  26459. 800b956: e9d7 1204 ldrd r1, r2, [r7, #16]
  26460. 800b95a: 460b mov r3, r1
  26461. 800b95c: 4313 orrs r3, r2
  26462. 800b95e: d011 beq.n 800b984 <HAL_RCCEx_PeriphCLKConfig+0x133c>
  26463. {
  26464. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  26465. 800b960: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26466. 800b964: 3328 adds r3, #40 @ 0x28
  26467. 800b966: 2100 movs r1, #0
  26468. 800b968: 4618 mov r0, r3
  26469. 800b96a: f000 fbcb bl 800c104 <RCCEx_PLL3_Config>
  26470. 800b96e: 4603 mov r3, r0
  26471. 800b970: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26472. if (ret == HAL_OK)
  26473. 800b974: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26474. 800b978: 2b00 cmp r3, #0
  26475. 800b97a: d003 beq.n 800b984 <HAL_RCCEx_PeriphCLKConfig+0x133c>
  26476. /*Nothing to do*/
  26477. }
  26478. else
  26479. {
  26480. /* set overall return value */
  26481. status = ret;
  26482. 800b97c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26483. 800b980: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26484. }
  26485. }
  26486. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVQ) == RCC_PERIPHCLK_PLL3_DIVQ)
  26487. 800b984: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26488. 800b988: e9d3 2300 ldrd r2, r3, [r3]
  26489. 800b98c: 2100 movs r1, #0
  26490. 800b98e: 60b9 str r1, [r7, #8]
  26491. 800b990: f003 0310 and.w r3, r3, #16
  26492. 800b994: 60fb str r3, [r7, #12]
  26493. 800b996: e9d7 1202 ldrd r1, r2, [r7, #8]
  26494. 800b99a: 460b mov r3, r1
  26495. 800b99c: 4313 orrs r3, r2
  26496. 800b99e: d011 beq.n 800b9c4 <HAL_RCCEx_PeriphCLKConfig+0x137c>
  26497. {
  26498. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  26499. 800b9a0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26500. 800b9a4: 3328 adds r3, #40 @ 0x28
  26501. 800b9a6: 2101 movs r1, #1
  26502. 800b9a8: 4618 mov r0, r3
  26503. 800b9aa: f000 fbab bl 800c104 <RCCEx_PLL3_Config>
  26504. 800b9ae: 4603 mov r3, r0
  26505. 800b9b0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26506. if (ret == HAL_OK)
  26507. 800b9b4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26508. 800b9b8: 2b00 cmp r3, #0
  26509. 800b9ba: d003 beq.n 800b9c4 <HAL_RCCEx_PeriphCLKConfig+0x137c>
  26510. /*Nothing to do*/
  26511. }
  26512. else
  26513. {
  26514. /* set overall return value */
  26515. status = ret;
  26516. 800b9bc: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26517. 800b9c0: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26518. }
  26519. }
  26520. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVR) == RCC_PERIPHCLK_PLL3_DIVR)
  26521. 800b9c4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26522. 800b9c8: e9d3 2300 ldrd r2, r3, [r3]
  26523. 800b9cc: 2100 movs r1, #0
  26524. 800b9ce: 6039 str r1, [r7, #0]
  26525. 800b9d0: f003 0320 and.w r3, r3, #32
  26526. 800b9d4: 607b str r3, [r7, #4]
  26527. 800b9d6: e9d7 1200 ldrd r1, r2, [r7]
  26528. 800b9da: 460b mov r3, r1
  26529. 800b9dc: 4313 orrs r3, r2
  26530. 800b9de: d011 beq.n 800ba04 <HAL_RCCEx_PeriphCLKConfig+0x13bc>
  26531. {
  26532. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  26533. 800b9e0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26534. 800b9e4: 3328 adds r3, #40 @ 0x28
  26535. 800b9e6: 2102 movs r1, #2
  26536. 800b9e8: 4618 mov r0, r3
  26537. 800b9ea: f000 fb8b bl 800c104 <RCCEx_PLL3_Config>
  26538. 800b9ee: 4603 mov r3, r0
  26539. 800b9f0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26540. if (ret == HAL_OK)
  26541. 800b9f4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26542. 800b9f8: 2b00 cmp r3, #0
  26543. 800b9fa: d003 beq.n 800ba04 <HAL_RCCEx_PeriphCLKConfig+0x13bc>
  26544. /*Nothing to do*/
  26545. }
  26546. else
  26547. {
  26548. /* set overall return value */
  26549. status = ret;
  26550. 800b9fc: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26551. 800ba00: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26552. }
  26553. }
  26554. if (status == HAL_OK)
  26555. 800ba04: f897 311e ldrb.w r3, [r7, #286] @ 0x11e
  26556. 800ba08: 2b00 cmp r3, #0
  26557. 800ba0a: d101 bne.n 800ba10 <HAL_RCCEx_PeriphCLKConfig+0x13c8>
  26558. {
  26559. return HAL_OK;
  26560. 800ba0c: 2300 movs r3, #0
  26561. 800ba0e: e000 b.n 800ba12 <HAL_RCCEx_PeriphCLKConfig+0x13ca>
  26562. }
  26563. return HAL_ERROR;
  26564. 800ba10: 2301 movs r3, #1
  26565. }
  26566. 800ba12: 4618 mov r0, r3
  26567. 800ba14: f507 7790 add.w r7, r7, #288 @ 0x120
  26568. 800ba18: 46bd mov sp, r7
  26569. 800ba1a: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
  26570. 800ba1e: bf00 nop
  26571. 800ba20: 58024400 .word 0x58024400
  26572. 0800ba24 <HAL_RCCEx_GetD3PCLK1Freq>:
  26573. * @note Each time D3PCLK1 changes, this function must be called to update the
  26574. * right D3PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  26575. * @retval D3PCLK1 frequency
  26576. */
  26577. uint32_t HAL_RCCEx_GetD3PCLK1Freq(void)
  26578. {
  26579. 800ba24: b580 push {r7, lr}
  26580. 800ba26: af00 add r7, sp, #0
  26581. #if defined(RCC_D3CFGR_D3PPRE)
  26582. /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/
  26583. return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->D3CFGR & RCC_D3CFGR_D3PPRE) >> RCC_D3CFGR_D3PPRE_Pos] & 0x1FU));
  26584. 800ba28: f7fe fd70 bl 800a50c <HAL_RCC_GetHCLKFreq>
  26585. 800ba2c: 4602 mov r2, r0
  26586. 800ba2e: 4b06 ldr r3, [pc, #24] @ (800ba48 <HAL_RCCEx_GetD3PCLK1Freq+0x24>)
  26587. 800ba30: 6a1b ldr r3, [r3, #32]
  26588. 800ba32: 091b lsrs r3, r3, #4
  26589. 800ba34: f003 0307 and.w r3, r3, #7
  26590. 800ba38: 4904 ldr r1, [pc, #16] @ (800ba4c <HAL_RCCEx_GetD3PCLK1Freq+0x28>)
  26591. 800ba3a: 5ccb ldrb r3, [r1, r3]
  26592. 800ba3c: f003 031f and.w r3, r3, #31
  26593. 800ba40: fa22 f303 lsr.w r3, r2, r3
  26594. #else
  26595. /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/
  26596. return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE) >> RCC_SRDCFGR_SRDPPRE_Pos] & 0x1FU));
  26597. #endif
  26598. }
  26599. 800ba44: 4618 mov r0, r3
  26600. 800ba46: bd80 pop {r7, pc}
  26601. 800ba48: 58024400 .word 0x58024400
  26602. 800ba4c: 080305b8 .word 0x080305b8
  26603. 0800ba50 <HAL_RCCEx_GetPLL2ClockFreq>:
  26604. * right PLL2CLK value. Otherwise, any configuration based on this function will be incorrect.
  26605. * @param PLL2_Clocks structure.
  26606. * @retval None
  26607. */
  26608. void HAL_RCCEx_GetPLL2ClockFreq(PLL2_ClocksTypeDef *PLL2_Clocks)
  26609. {
  26610. 800ba50: b480 push {r7}
  26611. 800ba52: b089 sub sp, #36 @ 0x24
  26612. 800ba54: af00 add r7, sp, #0
  26613. 800ba56: 6078 str r0, [r7, #4]
  26614. float_t fracn2, pll2vco;
  26615. /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL2M) * PLL2N
  26616. PLL2xCLK = PLL2_VCO / PLL2x
  26617. */
  26618. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  26619. 800ba58: 4ba1 ldr r3, [pc, #644] @ (800bce0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  26620. 800ba5a: 6a9b ldr r3, [r3, #40] @ 0x28
  26621. 800ba5c: f003 0303 and.w r3, r3, #3
  26622. 800ba60: 61bb str r3, [r7, #24]
  26623. pll2m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM2) >> 12);
  26624. 800ba62: 4b9f ldr r3, [pc, #636] @ (800bce0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  26625. 800ba64: 6a9b ldr r3, [r3, #40] @ 0x28
  26626. 800ba66: 0b1b lsrs r3, r3, #12
  26627. 800ba68: f003 033f and.w r3, r3, #63 @ 0x3f
  26628. 800ba6c: 617b str r3, [r7, #20]
  26629. pll2fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL2FRACEN) >> RCC_PLLCFGR_PLL2FRACEN_Pos;
  26630. 800ba6e: 4b9c ldr r3, [pc, #624] @ (800bce0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  26631. 800ba70: 6adb ldr r3, [r3, #44] @ 0x2c
  26632. 800ba72: 091b lsrs r3, r3, #4
  26633. 800ba74: f003 0301 and.w r3, r3, #1
  26634. 800ba78: 613b str r3, [r7, #16]
  26635. fracn2 = (float_t)(uint32_t)(pll2fracen * ((RCC->PLL2FRACR & RCC_PLL2FRACR_FRACN2) >> 3));
  26636. 800ba7a: 4b99 ldr r3, [pc, #612] @ (800bce0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  26637. 800ba7c: 6bdb ldr r3, [r3, #60] @ 0x3c
  26638. 800ba7e: 08db lsrs r3, r3, #3
  26639. 800ba80: f3c3 030c ubfx r3, r3, #0, #13
  26640. 800ba84: 693a ldr r2, [r7, #16]
  26641. 800ba86: fb02 f303 mul.w r3, r2, r3
  26642. 800ba8a: ee07 3a90 vmov s15, r3
  26643. 800ba8e: eef8 7a67 vcvt.f32.u32 s15, s15
  26644. 800ba92: edc7 7a03 vstr s15, [r7, #12]
  26645. if (pll2m != 0U)
  26646. 800ba96: 697b ldr r3, [r7, #20]
  26647. 800ba98: 2b00 cmp r3, #0
  26648. 800ba9a: f000 8111 beq.w 800bcc0 <HAL_RCCEx_GetPLL2ClockFreq+0x270>
  26649. {
  26650. switch (pllsource)
  26651. 800ba9e: 69bb ldr r3, [r7, #24]
  26652. 800baa0: 2b02 cmp r3, #2
  26653. 800baa2: f000 8083 beq.w 800bbac <HAL_RCCEx_GetPLL2ClockFreq+0x15c>
  26654. 800baa6: 69bb ldr r3, [r7, #24]
  26655. 800baa8: 2b02 cmp r3, #2
  26656. 800baaa: f200 80a1 bhi.w 800bbf0 <HAL_RCCEx_GetPLL2ClockFreq+0x1a0>
  26657. 800baae: 69bb ldr r3, [r7, #24]
  26658. 800bab0: 2b00 cmp r3, #0
  26659. 800bab2: d003 beq.n 800babc <HAL_RCCEx_GetPLL2ClockFreq+0x6c>
  26660. 800bab4: 69bb ldr r3, [r7, #24]
  26661. 800bab6: 2b01 cmp r3, #1
  26662. 800bab8: d056 beq.n 800bb68 <HAL_RCCEx_GetPLL2ClockFreq+0x118>
  26663. 800baba: e099 b.n 800bbf0 <HAL_RCCEx_GetPLL2ClockFreq+0x1a0>
  26664. {
  26665. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  26666. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  26667. 800babc: 4b88 ldr r3, [pc, #544] @ (800bce0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  26668. 800babe: 681b ldr r3, [r3, #0]
  26669. 800bac0: f003 0320 and.w r3, r3, #32
  26670. 800bac4: 2b00 cmp r3, #0
  26671. 800bac6: d02d beq.n 800bb24 <HAL_RCCEx_GetPLL2ClockFreq+0xd4>
  26672. {
  26673. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  26674. 800bac8: 4b85 ldr r3, [pc, #532] @ (800bce0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  26675. 800baca: 681b ldr r3, [r3, #0]
  26676. 800bacc: 08db lsrs r3, r3, #3
  26677. 800bace: f003 0303 and.w r3, r3, #3
  26678. 800bad2: 4a84 ldr r2, [pc, #528] @ (800bce4 <HAL_RCCEx_GetPLL2ClockFreq+0x294>)
  26679. 800bad4: fa22 f303 lsr.w r3, r2, r3
  26680. 800bad8: 60bb str r3, [r7, #8]
  26681. pll2vco = ((float_t)hsivalue / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  26682. 800bada: 68bb ldr r3, [r7, #8]
  26683. 800badc: ee07 3a90 vmov s15, r3
  26684. 800bae0: eef8 6a67 vcvt.f32.u32 s13, s15
  26685. 800bae4: 697b ldr r3, [r7, #20]
  26686. 800bae6: ee07 3a90 vmov s15, r3
  26687. 800baea: eef8 7a67 vcvt.f32.u32 s15, s15
  26688. 800baee: ee86 7aa7 vdiv.f32 s14, s13, s15
  26689. 800baf2: 4b7b ldr r3, [pc, #492] @ (800bce0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  26690. 800baf4: 6b9b ldr r3, [r3, #56] @ 0x38
  26691. 800baf6: f3c3 0308 ubfx r3, r3, #0, #9
  26692. 800bafa: ee07 3a90 vmov s15, r3
  26693. 800bafe: eef8 6a67 vcvt.f32.u32 s13, s15
  26694. 800bb02: ed97 6a03 vldr s12, [r7, #12]
  26695. 800bb06: eddf 5a78 vldr s11, [pc, #480] @ 800bce8 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  26696. 800bb0a: eec6 7a25 vdiv.f32 s15, s12, s11
  26697. 800bb0e: ee76 7aa7 vadd.f32 s15, s13, s15
  26698. 800bb12: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  26699. 800bb16: ee77 7aa6 vadd.f32 s15, s15, s13
  26700. 800bb1a: ee67 7a27 vmul.f32 s15, s14, s15
  26701. 800bb1e: edc7 7a07 vstr s15, [r7, #28]
  26702. }
  26703. else
  26704. {
  26705. pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  26706. }
  26707. break;
  26708. 800bb22: e087 b.n 800bc34 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  26709. pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  26710. 800bb24: 697b ldr r3, [r7, #20]
  26711. 800bb26: ee07 3a90 vmov s15, r3
  26712. 800bb2a: eef8 7a67 vcvt.f32.u32 s15, s15
  26713. 800bb2e: eddf 6a6f vldr s13, [pc, #444] @ 800bcec <HAL_RCCEx_GetPLL2ClockFreq+0x29c>
  26714. 800bb32: ee86 7aa7 vdiv.f32 s14, s13, s15
  26715. 800bb36: 4b6a ldr r3, [pc, #424] @ (800bce0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  26716. 800bb38: 6b9b ldr r3, [r3, #56] @ 0x38
  26717. 800bb3a: f3c3 0308 ubfx r3, r3, #0, #9
  26718. 800bb3e: ee07 3a90 vmov s15, r3
  26719. 800bb42: eef8 6a67 vcvt.f32.u32 s13, s15
  26720. 800bb46: ed97 6a03 vldr s12, [r7, #12]
  26721. 800bb4a: eddf 5a67 vldr s11, [pc, #412] @ 800bce8 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  26722. 800bb4e: eec6 7a25 vdiv.f32 s15, s12, s11
  26723. 800bb52: ee76 7aa7 vadd.f32 s15, s13, s15
  26724. 800bb56: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  26725. 800bb5a: ee77 7aa6 vadd.f32 s15, s15, s13
  26726. 800bb5e: ee67 7a27 vmul.f32 s15, s14, s15
  26727. 800bb62: edc7 7a07 vstr s15, [r7, #28]
  26728. break;
  26729. 800bb66: e065 b.n 800bc34 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  26730. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  26731. pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  26732. 800bb68: 697b ldr r3, [r7, #20]
  26733. 800bb6a: ee07 3a90 vmov s15, r3
  26734. 800bb6e: eef8 7a67 vcvt.f32.u32 s15, s15
  26735. 800bb72: eddf 6a5f vldr s13, [pc, #380] @ 800bcf0 <HAL_RCCEx_GetPLL2ClockFreq+0x2a0>
  26736. 800bb76: ee86 7aa7 vdiv.f32 s14, s13, s15
  26737. 800bb7a: 4b59 ldr r3, [pc, #356] @ (800bce0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  26738. 800bb7c: 6b9b ldr r3, [r3, #56] @ 0x38
  26739. 800bb7e: f3c3 0308 ubfx r3, r3, #0, #9
  26740. 800bb82: ee07 3a90 vmov s15, r3
  26741. 800bb86: eef8 6a67 vcvt.f32.u32 s13, s15
  26742. 800bb8a: ed97 6a03 vldr s12, [r7, #12]
  26743. 800bb8e: eddf 5a56 vldr s11, [pc, #344] @ 800bce8 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  26744. 800bb92: eec6 7a25 vdiv.f32 s15, s12, s11
  26745. 800bb96: ee76 7aa7 vadd.f32 s15, s13, s15
  26746. 800bb9a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  26747. 800bb9e: ee77 7aa6 vadd.f32 s15, s15, s13
  26748. 800bba2: ee67 7a27 vmul.f32 s15, s14, s15
  26749. 800bba6: edc7 7a07 vstr s15, [r7, #28]
  26750. break;
  26751. 800bbaa: e043 b.n 800bc34 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  26752. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  26753. pll2vco = ((float_t)HSE_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  26754. 800bbac: 697b ldr r3, [r7, #20]
  26755. 800bbae: ee07 3a90 vmov s15, r3
  26756. 800bbb2: eef8 7a67 vcvt.f32.u32 s15, s15
  26757. 800bbb6: eddf 6a4f vldr s13, [pc, #316] @ 800bcf4 <HAL_RCCEx_GetPLL2ClockFreq+0x2a4>
  26758. 800bbba: ee86 7aa7 vdiv.f32 s14, s13, s15
  26759. 800bbbe: 4b48 ldr r3, [pc, #288] @ (800bce0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  26760. 800bbc0: 6b9b ldr r3, [r3, #56] @ 0x38
  26761. 800bbc2: f3c3 0308 ubfx r3, r3, #0, #9
  26762. 800bbc6: ee07 3a90 vmov s15, r3
  26763. 800bbca: eef8 6a67 vcvt.f32.u32 s13, s15
  26764. 800bbce: ed97 6a03 vldr s12, [r7, #12]
  26765. 800bbd2: eddf 5a45 vldr s11, [pc, #276] @ 800bce8 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  26766. 800bbd6: eec6 7a25 vdiv.f32 s15, s12, s11
  26767. 800bbda: ee76 7aa7 vadd.f32 s15, s13, s15
  26768. 800bbde: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  26769. 800bbe2: ee77 7aa6 vadd.f32 s15, s15, s13
  26770. 800bbe6: ee67 7a27 vmul.f32 s15, s14, s15
  26771. 800bbea: edc7 7a07 vstr s15, [r7, #28]
  26772. break;
  26773. 800bbee: e021 b.n 800bc34 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  26774. default:
  26775. pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  26776. 800bbf0: 697b ldr r3, [r7, #20]
  26777. 800bbf2: ee07 3a90 vmov s15, r3
  26778. 800bbf6: eef8 7a67 vcvt.f32.u32 s15, s15
  26779. 800bbfa: eddf 6a3d vldr s13, [pc, #244] @ 800bcf0 <HAL_RCCEx_GetPLL2ClockFreq+0x2a0>
  26780. 800bbfe: ee86 7aa7 vdiv.f32 s14, s13, s15
  26781. 800bc02: 4b37 ldr r3, [pc, #220] @ (800bce0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  26782. 800bc04: 6b9b ldr r3, [r3, #56] @ 0x38
  26783. 800bc06: f3c3 0308 ubfx r3, r3, #0, #9
  26784. 800bc0a: ee07 3a90 vmov s15, r3
  26785. 800bc0e: eef8 6a67 vcvt.f32.u32 s13, s15
  26786. 800bc12: ed97 6a03 vldr s12, [r7, #12]
  26787. 800bc16: eddf 5a34 vldr s11, [pc, #208] @ 800bce8 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  26788. 800bc1a: eec6 7a25 vdiv.f32 s15, s12, s11
  26789. 800bc1e: ee76 7aa7 vadd.f32 s15, s13, s15
  26790. 800bc22: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  26791. 800bc26: ee77 7aa6 vadd.f32 s15, s15, s13
  26792. 800bc2a: ee67 7a27 vmul.f32 s15, s14, s15
  26793. 800bc2e: edc7 7a07 vstr s15, [r7, #28]
  26794. break;
  26795. 800bc32: bf00 nop
  26796. }
  26797. PLL2_Clocks->PLL2_P_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_P2) >> 9) + (float_t)1)) ;
  26798. 800bc34: 4b2a ldr r3, [pc, #168] @ (800bce0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  26799. 800bc36: 6b9b ldr r3, [r3, #56] @ 0x38
  26800. 800bc38: 0a5b lsrs r3, r3, #9
  26801. 800bc3a: f003 037f and.w r3, r3, #127 @ 0x7f
  26802. 800bc3e: ee07 3a90 vmov s15, r3
  26803. 800bc42: eef8 7a67 vcvt.f32.u32 s15, s15
  26804. 800bc46: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  26805. 800bc4a: ee37 7a87 vadd.f32 s14, s15, s14
  26806. 800bc4e: edd7 6a07 vldr s13, [r7, #28]
  26807. 800bc52: eec6 7a87 vdiv.f32 s15, s13, s14
  26808. 800bc56: eefc 7ae7 vcvt.u32.f32 s15, s15
  26809. 800bc5a: ee17 2a90 vmov r2, s15
  26810. 800bc5e: 687b ldr r3, [r7, #4]
  26811. 800bc60: 601a str r2, [r3, #0]
  26812. PLL2_Clocks->PLL2_Q_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_Q2) >> 16) + (float_t)1)) ;
  26813. 800bc62: 4b1f ldr r3, [pc, #124] @ (800bce0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  26814. 800bc64: 6b9b ldr r3, [r3, #56] @ 0x38
  26815. 800bc66: 0c1b lsrs r3, r3, #16
  26816. 800bc68: f003 037f and.w r3, r3, #127 @ 0x7f
  26817. 800bc6c: ee07 3a90 vmov s15, r3
  26818. 800bc70: eef8 7a67 vcvt.f32.u32 s15, s15
  26819. 800bc74: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  26820. 800bc78: ee37 7a87 vadd.f32 s14, s15, s14
  26821. 800bc7c: edd7 6a07 vldr s13, [r7, #28]
  26822. 800bc80: eec6 7a87 vdiv.f32 s15, s13, s14
  26823. 800bc84: eefc 7ae7 vcvt.u32.f32 s15, s15
  26824. 800bc88: ee17 2a90 vmov r2, s15
  26825. 800bc8c: 687b ldr r3, [r7, #4]
  26826. 800bc8e: 605a str r2, [r3, #4]
  26827. PLL2_Clocks->PLL2_R_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_R2) >> 24) + (float_t)1)) ;
  26828. 800bc90: 4b13 ldr r3, [pc, #76] @ (800bce0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  26829. 800bc92: 6b9b ldr r3, [r3, #56] @ 0x38
  26830. 800bc94: 0e1b lsrs r3, r3, #24
  26831. 800bc96: f003 037f and.w r3, r3, #127 @ 0x7f
  26832. 800bc9a: ee07 3a90 vmov s15, r3
  26833. 800bc9e: eef8 7a67 vcvt.f32.u32 s15, s15
  26834. 800bca2: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  26835. 800bca6: ee37 7a87 vadd.f32 s14, s15, s14
  26836. 800bcaa: edd7 6a07 vldr s13, [r7, #28]
  26837. 800bcae: eec6 7a87 vdiv.f32 s15, s13, s14
  26838. 800bcb2: eefc 7ae7 vcvt.u32.f32 s15, s15
  26839. 800bcb6: ee17 2a90 vmov r2, s15
  26840. 800bcba: 687b ldr r3, [r7, #4]
  26841. 800bcbc: 609a str r2, [r3, #8]
  26842. {
  26843. PLL2_Clocks->PLL2_P_Frequency = 0U;
  26844. PLL2_Clocks->PLL2_Q_Frequency = 0U;
  26845. PLL2_Clocks->PLL2_R_Frequency = 0U;
  26846. }
  26847. }
  26848. 800bcbe: e008 b.n 800bcd2 <HAL_RCCEx_GetPLL2ClockFreq+0x282>
  26849. PLL2_Clocks->PLL2_P_Frequency = 0U;
  26850. 800bcc0: 687b ldr r3, [r7, #4]
  26851. 800bcc2: 2200 movs r2, #0
  26852. 800bcc4: 601a str r2, [r3, #0]
  26853. PLL2_Clocks->PLL2_Q_Frequency = 0U;
  26854. 800bcc6: 687b ldr r3, [r7, #4]
  26855. 800bcc8: 2200 movs r2, #0
  26856. 800bcca: 605a str r2, [r3, #4]
  26857. PLL2_Clocks->PLL2_R_Frequency = 0U;
  26858. 800bccc: 687b ldr r3, [r7, #4]
  26859. 800bcce: 2200 movs r2, #0
  26860. 800bcd0: 609a str r2, [r3, #8]
  26861. }
  26862. 800bcd2: bf00 nop
  26863. 800bcd4: 3724 adds r7, #36 @ 0x24
  26864. 800bcd6: 46bd mov sp, r7
  26865. 800bcd8: f85d 7b04 ldr.w r7, [sp], #4
  26866. 800bcdc: 4770 bx lr
  26867. 800bcde: bf00 nop
  26868. 800bce0: 58024400 .word 0x58024400
  26869. 800bce4: 03d09000 .word 0x03d09000
  26870. 800bce8: 46000000 .word 0x46000000
  26871. 800bcec: 4c742400 .word 0x4c742400
  26872. 800bcf0: 4a742400 .word 0x4a742400
  26873. 800bcf4: 4bbebc20 .word 0x4bbebc20
  26874. 0800bcf8 <HAL_RCCEx_GetPLL3ClockFreq>:
  26875. * right PLL3CLK value. Otherwise, any configuration based on this function will be incorrect.
  26876. * @param PLL3_Clocks structure.
  26877. * @retval None
  26878. */
  26879. void HAL_RCCEx_GetPLL3ClockFreq(PLL3_ClocksTypeDef *PLL3_Clocks)
  26880. {
  26881. 800bcf8: b480 push {r7}
  26882. 800bcfa: b089 sub sp, #36 @ 0x24
  26883. 800bcfc: af00 add r7, sp, #0
  26884. 800bcfe: 6078 str r0, [r7, #4]
  26885. float_t fracn3, pll3vco;
  26886. /* PLL3_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL3M) * PLL3N
  26887. PLL3xCLK = PLL3_VCO / PLLxR
  26888. */
  26889. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  26890. 800bd00: 4ba1 ldr r3, [pc, #644] @ (800bf88 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  26891. 800bd02: 6a9b ldr r3, [r3, #40] @ 0x28
  26892. 800bd04: f003 0303 and.w r3, r3, #3
  26893. 800bd08: 61bb str r3, [r7, #24]
  26894. pll3m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM3) >> 20) ;
  26895. 800bd0a: 4b9f ldr r3, [pc, #636] @ (800bf88 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  26896. 800bd0c: 6a9b ldr r3, [r3, #40] @ 0x28
  26897. 800bd0e: 0d1b lsrs r3, r3, #20
  26898. 800bd10: f003 033f and.w r3, r3, #63 @ 0x3f
  26899. 800bd14: 617b str r3, [r7, #20]
  26900. pll3fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL3FRACEN) >> RCC_PLLCFGR_PLL3FRACEN_Pos;
  26901. 800bd16: 4b9c ldr r3, [pc, #624] @ (800bf88 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  26902. 800bd18: 6adb ldr r3, [r3, #44] @ 0x2c
  26903. 800bd1a: 0a1b lsrs r3, r3, #8
  26904. 800bd1c: f003 0301 and.w r3, r3, #1
  26905. 800bd20: 613b str r3, [r7, #16]
  26906. fracn3 = (float_t)(uint32_t)(pll3fracen * ((RCC->PLL3FRACR & RCC_PLL3FRACR_FRACN3) >> 3));
  26907. 800bd22: 4b99 ldr r3, [pc, #612] @ (800bf88 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  26908. 800bd24: 6c5b ldr r3, [r3, #68] @ 0x44
  26909. 800bd26: 08db lsrs r3, r3, #3
  26910. 800bd28: f3c3 030c ubfx r3, r3, #0, #13
  26911. 800bd2c: 693a ldr r2, [r7, #16]
  26912. 800bd2e: fb02 f303 mul.w r3, r2, r3
  26913. 800bd32: ee07 3a90 vmov s15, r3
  26914. 800bd36: eef8 7a67 vcvt.f32.u32 s15, s15
  26915. 800bd3a: edc7 7a03 vstr s15, [r7, #12]
  26916. if (pll3m != 0U)
  26917. 800bd3e: 697b ldr r3, [r7, #20]
  26918. 800bd40: 2b00 cmp r3, #0
  26919. 800bd42: f000 8111 beq.w 800bf68 <HAL_RCCEx_GetPLL3ClockFreq+0x270>
  26920. {
  26921. switch (pllsource)
  26922. 800bd46: 69bb ldr r3, [r7, #24]
  26923. 800bd48: 2b02 cmp r3, #2
  26924. 800bd4a: f000 8083 beq.w 800be54 <HAL_RCCEx_GetPLL3ClockFreq+0x15c>
  26925. 800bd4e: 69bb ldr r3, [r7, #24]
  26926. 800bd50: 2b02 cmp r3, #2
  26927. 800bd52: f200 80a1 bhi.w 800be98 <HAL_RCCEx_GetPLL3ClockFreq+0x1a0>
  26928. 800bd56: 69bb ldr r3, [r7, #24]
  26929. 800bd58: 2b00 cmp r3, #0
  26930. 800bd5a: d003 beq.n 800bd64 <HAL_RCCEx_GetPLL3ClockFreq+0x6c>
  26931. 800bd5c: 69bb ldr r3, [r7, #24]
  26932. 800bd5e: 2b01 cmp r3, #1
  26933. 800bd60: d056 beq.n 800be10 <HAL_RCCEx_GetPLL3ClockFreq+0x118>
  26934. 800bd62: e099 b.n 800be98 <HAL_RCCEx_GetPLL3ClockFreq+0x1a0>
  26935. {
  26936. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  26937. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  26938. 800bd64: 4b88 ldr r3, [pc, #544] @ (800bf88 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  26939. 800bd66: 681b ldr r3, [r3, #0]
  26940. 800bd68: f003 0320 and.w r3, r3, #32
  26941. 800bd6c: 2b00 cmp r3, #0
  26942. 800bd6e: d02d beq.n 800bdcc <HAL_RCCEx_GetPLL3ClockFreq+0xd4>
  26943. {
  26944. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  26945. 800bd70: 4b85 ldr r3, [pc, #532] @ (800bf88 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  26946. 800bd72: 681b ldr r3, [r3, #0]
  26947. 800bd74: 08db lsrs r3, r3, #3
  26948. 800bd76: f003 0303 and.w r3, r3, #3
  26949. 800bd7a: 4a84 ldr r2, [pc, #528] @ (800bf8c <HAL_RCCEx_GetPLL3ClockFreq+0x294>)
  26950. 800bd7c: fa22 f303 lsr.w r3, r2, r3
  26951. 800bd80: 60bb str r3, [r7, #8]
  26952. pll3vco = ((float_t)hsivalue / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  26953. 800bd82: 68bb ldr r3, [r7, #8]
  26954. 800bd84: ee07 3a90 vmov s15, r3
  26955. 800bd88: eef8 6a67 vcvt.f32.u32 s13, s15
  26956. 800bd8c: 697b ldr r3, [r7, #20]
  26957. 800bd8e: ee07 3a90 vmov s15, r3
  26958. 800bd92: eef8 7a67 vcvt.f32.u32 s15, s15
  26959. 800bd96: ee86 7aa7 vdiv.f32 s14, s13, s15
  26960. 800bd9a: 4b7b ldr r3, [pc, #492] @ (800bf88 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  26961. 800bd9c: 6c1b ldr r3, [r3, #64] @ 0x40
  26962. 800bd9e: f3c3 0308 ubfx r3, r3, #0, #9
  26963. 800bda2: ee07 3a90 vmov s15, r3
  26964. 800bda6: eef8 6a67 vcvt.f32.u32 s13, s15
  26965. 800bdaa: ed97 6a03 vldr s12, [r7, #12]
  26966. 800bdae: eddf 5a78 vldr s11, [pc, #480] @ 800bf90 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  26967. 800bdb2: eec6 7a25 vdiv.f32 s15, s12, s11
  26968. 800bdb6: ee76 7aa7 vadd.f32 s15, s13, s15
  26969. 800bdba: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  26970. 800bdbe: ee77 7aa6 vadd.f32 s15, s15, s13
  26971. 800bdc2: ee67 7a27 vmul.f32 s15, s14, s15
  26972. 800bdc6: edc7 7a07 vstr s15, [r7, #28]
  26973. }
  26974. else
  26975. {
  26976. pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  26977. }
  26978. break;
  26979. 800bdca: e087 b.n 800bedc <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  26980. pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  26981. 800bdcc: 697b ldr r3, [r7, #20]
  26982. 800bdce: ee07 3a90 vmov s15, r3
  26983. 800bdd2: eef8 7a67 vcvt.f32.u32 s15, s15
  26984. 800bdd6: eddf 6a6f vldr s13, [pc, #444] @ 800bf94 <HAL_RCCEx_GetPLL3ClockFreq+0x29c>
  26985. 800bdda: ee86 7aa7 vdiv.f32 s14, s13, s15
  26986. 800bdde: 4b6a ldr r3, [pc, #424] @ (800bf88 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  26987. 800bde0: 6c1b ldr r3, [r3, #64] @ 0x40
  26988. 800bde2: f3c3 0308 ubfx r3, r3, #0, #9
  26989. 800bde6: ee07 3a90 vmov s15, r3
  26990. 800bdea: eef8 6a67 vcvt.f32.u32 s13, s15
  26991. 800bdee: ed97 6a03 vldr s12, [r7, #12]
  26992. 800bdf2: eddf 5a67 vldr s11, [pc, #412] @ 800bf90 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  26993. 800bdf6: eec6 7a25 vdiv.f32 s15, s12, s11
  26994. 800bdfa: ee76 7aa7 vadd.f32 s15, s13, s15
  26995. 800bdfe: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  26996. 800be02: ee77 7aa6 vadd.f32 s15, s15, s13
  26997. 800be06: ee67 7a27 vmul.f32 s15, s14, s15
  26998. 800be0a: edc7 7a07 vstr s15, [r7, #28]
  26999. break;
  27000. 800be0e: e065 b.n 800bedc <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  27001. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  27002. pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  27003. 800be10: 697b ldr r3, [r7, #20]
  27004. 800be12: ee07 3a90 vmov s15, r3
  27005. 800be16: eef8 7a67 vcvt.f32.u32 s15, s15
  27006. 800be1a: eddf 6a5f vldr s13, [pc, #380] @ 800bf98 <HAL_RCCEx_GetPLL3ClockFreq+0x2a0>
  27007. 800be1e: ee86 7aa7 vdiv.f32 s14, s13, s15
  27008. 800be22: 4b59 ldr r3, [pc, #356] @ (800bf88 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  27009. 800be24: 6c1b ldr r3, [r3, #64] @ 0x40
  27010. 800be26: f3c3 0308 ubfx r3, r3, #0, #9
  27011. 800be2a: ee07 3a90 vmov s15, r3
  27012. 800be2e: eef8 6a67 vcvt.f32.u32 s13, s15
  27013. 800be32: ed97 6a03 vldr s12, [r7, #12]
  27014. 800be36: eddf 5a56 vldr s11, [pc, #344] @ 800bf90 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  27015. 800be3a: eec6 7a25 vdiv.f32 s15, s12, s11
  27016. 800be3e: ee76 7aa7 vadd.f32 s15, s13, s15
  27017. 800be42: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27018. 800be46: ee77 7aa6 vadd.f32 s15, s15, s13
  27019. 800be4a: ee67 7a27 vmul.f32 s15, s14, s15
  27020. 800be4e: edc7 7a07 vstr s15, [r7, #28]
  27021. break;
  27022. 800be52: e043 b.n 800bedc <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  27023. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  27024. pll3vco = ((float_t)HSE_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  27025. 800be54: 697b ldr r3, [r7, #20]
  27026. 800be56: ee07 3a90 vmov s15, r3
  27027. 800be5a: eef8 7a67 vcvt.f32.u32 s15, s15
  27028. 800be5e: eddf 6a4f vldr s13, [pc, #316] @ 800bf9c <HAL_RCCEx_GetPLL3ClockFreq+0x2a4>
  27029. 800be62: ee86 7aa7 vdiv.f32 s14, s13, s15
  27030. 800be66: 4b48 ldr r3, [pc, #288] @ (800bf88 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  27031. 800be68: 6c1b ldr r3, [r3, #64] @ 0x40
  27032. 800be6a: f3c3 0308 ubfx r3, r3, #0, #9
  27033. 800be6e: ee07 3a90 vmov s15, r3
  27034. 800be72: eef8 6a67 vcvt.f32.u32 s13, s15
  27035. 800be76: ed97 6a03 vldr s12, [r7, #12]
  27036. 800be7a: eddf 5a45 vldr s11, [pc, #276] @ 800bf90 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  27037. 800be7e: eec6 7a25 vdiv.f32 s15, s12, s11
  27038. 800be82: ee76 7aa7 vadd.f32 s15, s13, s15
  27039. 800be86: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27040. 800be8a: ee77 7aa6 vadd.f32 s15, s15, s13
  27041. 800be8e: ee67 7a27 vmul.f32 s15, s14, s15
  27042. 800be92: edc7 7a07 vstr s15, [r7, #28]
  27043. break;
  27044. 800be96: e021 b.n 800bedc <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  27045. default:
  27046. pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  27047. 800be98: 697b ldr r3, [r7, #20]
  27048. 800be9a: ee07 3a90 vmov s15, r3
  27049. 800be9e: eef8 7a67 vcvt.f32.u32 s15, s15
  27050. 800bea2: eddf 6a3d vldr s13, [pc, #244] @ 800bf98 <HAL_RCCEx_GetPLL3ClockFreq+0x2a0>
  27051. 800bea6: ee86 7aa7 vdiv.f32 s14, s13, s15
  27052. 800beaa: 4b37 ldr r3, [pc, #220] @ (800bf88 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  27053. 800beac: 6c1b ldr r3, [r3, #64] @ 0x40
  27054. 800beae: f3c3 0308 ubfx r3, r3, #0, #9
  27055. 800beb2: ee07 3a90 vmov s15, r3
  27056. 800beb6: eef8 6a67 vcvt.f32.u32 s13, s15
  27057. 800beba: ed97 6a03 vldr s12, [r7, #12]
  27058. 800bebe: eddf 5a34 vldr s11, [pc, #208] @ 800bf90 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  27059. 800bec2: eec6 7a25 vdiv.f32 s15, s12, s11
  27060. 800bec6: ee76 7aa7 vadd.f32 s15, s13, s15
  27061. 800beca: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27062. 800bece: ee77 7aa6 vadd.f32 s15, s15, s13
  27063. 800bed2: ee67 7a27 vmul.f32 s15, s14, s15
  27064. 800bed6: edc7 7a07 vstr s15, [r7, #28]
  27065. break;
  27066. 800beda: bf00 nop
  27067. }
  27068. PLL3_Clocks->PLL3_P_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_P3) >> 9) + (float_t)1)) ;
  27069. 800bedc: 4b2a ldr r3, [pc, #168] @ (800bf88 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  27070. 800bede: 6c1b ldr r3, [r3, #64] @ 0x40
  27071. 800bee0: 0a5b lsrs r3, r3, #9
  27072. 800bee2: f003 037f and.w r3, r3, #127 @ 0x7f
  27073. 800bee6: ee07 3a90 vmov s15, r3
  27074. 800beea: eef8 7a67 vcvt.f32.u32 s15, s15
  27075. 800beee: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  27076. 800bef2: ee37 7a87 vadd.f32 s14, s15, s14
  27077. 800bef6: edd7 6a07 vldr s13, [r7, #28]
  27078. 800befa: eec6 7a87 vdiv.f32 s15, s13, s14
  27079. 800befe: eefc 7ae7 vcvt.u32.f32 s15, s15
  27080. 800bf02: ee17 2a90 vmov r2, s15
  27081. 800bf06: 687b ldr r3, [r7, #4]
  27082. 800bf08: 601a str r2, [r3, #0]
  27083. PLL3_Clocks->PLL3_Q_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_Q3) >> 16) + (float_t)1)) ;
  27084. 800bf0a: 4b1f ldr r3, [pc, #124] @ (800bf88 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  27085. 800bf0c: 6c1b ldr r3, [r3, #64] @ 0x40
  27086. 800bf0e: 0c1b lsrs r3, r3, #16
  27087. 800bf10: f003 037f and.w r3, r3, #127 @ 0x7f
  27088. 800bf14: ee07 3a90 vmov s15, r3
  27089. 800bf18: eef8 7a67 vcvt.f32.u32 s15, s15
  27090. 800bf1c: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  27091. 800bf20: ee37 7a87 vadd.f32 s14, s15, s14
  27092. 800bf24: edd7 6a07 vldr s13, [r7, #28]
  27093. 800bf28: eec6 7a87 vdiv.f32 s15, s13, s14
  27094. 800bf2c: eefc 7ae7 vcvt.u32.f32 s15, s15
  27095. 800bf30: ee17 2a90 vmov r2, s15
  27096. 800bf34: 687b ldr r3, [r7, #4]
  27097. 800bf36: 605a str r2, [r3, #4]
  27098. PLL3_Clocks->PLL3_R_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_R3) >> 24) + (float_t)1)) ;
  27099. 800bf38: 4b13 ldr r3, [pc, #76] @ (800bf88 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  27100. 800bf3a: 6c1b ldr r3, [r3, #64] @ 0x40
  27101. 800bf3c: 0e1b lsrs r3, r3, #24
  27102. 800bf3e: f003 037f and.w r3, r3, #127 @ 0x7f
  27103. 800bf42: ee07 3a90 vmov s15, r3
  27104. 800bf46: eef8 7a67 vcvt.f32.u32 s15, s15
  27105. 800bf4a: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  27106. 800bf4e: ee37 7a87 vadd.f32 s14, s15, s14
  27107. 800bf52: edd7 6a07 vldr s13, [r7, #28]
  27108. 800bf56: eec6 7a87 vdiv.f32 s15, s13, s14
  27109. 800bf5a: eefc 7ae7 vcvt.u32.f32 s15, s15
  27110. 800bf5e: ee17 2a90 vmov r2, s15
  27111. 800bf62: 687b ldr r3, [r7, #4]
  27112. 800bf64: 609a str r2, [r3, #8]
  27113. PLL3_Clocks->PLL3_P_Frequency = 0U;
  27114. PLL3_Clocks->PLL3_Q_Frequency = 0U;
  27115. PLL3_Clocks->PLL3_R_Frequency = 0U;
  27116. }
  27117. }
  27118. 800bf66: e008 b.n 800bf7a <HAL_RCCEx_GetPLL3ClockFreq+0x282>
  27119. PLL3_Clocks->PLL3_P_Frequency = 0U;
  27120. 800bf68: 687b ldr r3, [r7, #4]
  27121. 800bf6a: 2200 movs r2, #0
  27122. 800bf6c: 601a str r2, [r3, #0]
  27123. PLL3_Clocks->PLL3_Q_Frequency = 0U;
  27124. 800bf6e: 687b ldr r3, [r7, #4]
  27125. 800bf70: 2200 movs r2, #0
  27126. 800bf72: 605a str r2, [r3, #4]
  27127. PLL3_Clocks->PLL3_R_Frequency = 0U;
  27128. 800bf74: 687b ldr r3, [r7, #4]
  27129. 800bf76: 2200 movs r2, #0
  27130. 800bf78: 609a str r2, [r3, #8]
  27131. }
  27132. 800bf7a: bf00 nop
  27133. 800bf7c: 3724 adds r7, #36 @ 0x24
  27134. 800bf7e: 46bd mov sp, r7
  27135. 800bf80: f85d 7b04 ldr.w r7, [sp], #4
  27136. 800bf84: 4770 bx lr
  27137. 800bf86: bf00 nop
  27138. 800bf88: 58024400 .word 0x58024400
  27139. 800bf8c: 03d09000 .word 0x03d09000
  27140. 800bf90: 46000000 .word 0x46000000
  27141. 800bf94: 4c742400 .word 0x4c742400
  27142. 800bf98: 4a742400 .word 0x4a742400
  27143. 800bf9c: 4bbebc20 .word 0x4bbebc20
  27144. 0800bfa0 <RCCEx_PLL2_Config>:
  27145. * @note PLL2 is temporary disabled to apply new parameters
  27146. *
  27147. * @retval HAL status
  27148. */
  27149. static HAL_StatusTypeDef RCCEx_PLL2_Config(RCC_PLL2InitTypeDef *pll2, uint32_t Divider)
  27150. {
  27151. 800bfa0: b580 push {r7, lr}
  27152. 800bfa2: b084 sub sp, #16
  27153. 800bfa4: af00 add r7, sp, #0
  27154. 800bfa6: 6078 str r0, [r7, #4]
  27155. 800bfa8: 6039 str r1, [r7, #0]
  27156. uint32_t tickstart;
  27157. HAL_StatusTypeDef status = HAL_OK;
  27158. 800bfaa: 2300 movs r3, #0
  27159. 800bfac: 73fb strb r3, [r7, #15]
  27160. assert_param(IS_RCC_PLL2RGE_VALUE(pll2->PLL2RGE));
  27161. assert_param(IS_RCC_PLL2VCO_VALUE(pll2->PLL2VCOSEL));
  27162. assert_param(IS_RCC_PLLFRACN_VALUE(pll2->PLL2FRACN));
  27163. /* Check that PLL2 OSC clock source is already set */
  27164. if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE)
  27165. 800bfae: 4b53 ldr r3, [pc, #332] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27166. 800bfb0: 6a9b ldr r3, [r3, #40] @ 0x28
  27167. 800bfb2: f003 0303 and.w r3, r3, #3
  27168. 800bfb6: 2b03 cmp r3, #3
  27169. 800bfb8: d101 bne.n 800bfbe <RCCEx_PLL2_Config+0x1e>
  27170. {
  27171. return HAL_ERROR;
  27172. 800bfba: 2301 movs r3, #1
  27173. 800bfbc: e099 b.n 800c0f2 <RCCEx_PLL2_Config+0x152>
  27174. else
  27175. {
  27176. /* Disable PLL2. */
  27177. __HAL_RCC_PLL2_DISABLE();
  27178. 800bfbe: 4b4f ldr r3, [pc, #316] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27179. 800bfc0: 681b ldr r3, [r3, #0]
  27180. 800bfc2: 4a4e ldr r2, [pc, #312] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27181. 800bfc4: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  27182. 800bfc8: 6013 str r3, [r2, #0]
  27183. /* Get Start Tick*/
  27184. tickstart = HAL_GetTick();
  27185. 800bfca: f7f8 fde1 bl 8004b90 <HAL_GetTick>
  27186. 800bfce: 60b8 str r0, [r7, #8]
  27187. /* Wait till PLL is disabled */
  27188. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U)
  27189. 800bfd0: e008 b.n 800bfe4 <RCCEx_PLL2_Config+0x44>
  27190. {
  27191. if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE)
  27192. 800bfd2: f7f8 fddd bl 8004b90 <HAL_GetTick>
  27193. 800bfd6: 4602 mov r2, r0
  27194. 800bfd8: 68bb ldr r3, [r7, #8]
  27195. 800bfda: 1ad3 subs r3, r2, r3
  27196. 800bfdc: 2b02 cmp r3, #2
  27197. 800bfde: d901 bls.n 800bfe4 <RCCEx_PLL2_Config+0x44>
  27198. {
  27199. return HAL_TIMEOUT;
  27200. 800bfe0: 2303 movs r3, #3
  27201. 800bfe2: e086 b.n 800c0f2 <RCCEx_PLL2_Config+0x152>
  27202. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U)
  27203. 800bfe4: 4b45 ldr r3, [pc, #276] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27204. 800bfe6: 681b ldr r3, [r3, #0]
  27205. 800bfe8: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  27206. 800bfec: 2b00 cmp r3, #0
  27207. 800bfee: d1f0 bne.n 800bfd2 <RCCEx_PLL2_Config+0x32>
  27208. }
  27209. }
  27210. /* Configure PLL2 multiplication and division factors. */
  27211. __HAL_RCC_PLL2_CONFIG(pll2->PLL2M,
  27212. 800bff0: 4b42 ldr r3, [pc, #264] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27213. 800bff2: 6a9b ldr r3, [r3, #40] @ 0x28
  27214. 800bff4: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  27215. 800bff8: 687b ldr r3, [r7, #4]
  27216. 800bffa: 681b ldr r3, [r3, #0]
  27217. 800bffc: 031b lsls r3, r3, #12
  27218. 800bffe: 493f ldr r1, [pc, #252] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27219. 800c000: 4313 orrs r3, r2
  27220. 800c002: 628b str r3, [r1, #40] @ 0x28
  27221. 800c004: 687b ldr r3, [r7, #4]
  27222. 800c006: 685b ldr r3, [r3, #4]
  27223. 800c008: 3b01 subs r3, #1
  27224. 800c00a: f3c3 0208 ubfx r2, r3, #0, #9
  27225. 800c00e: 687b ldr r3, [r7, #4]
  27226. 800c010: 689b ldr r3, [r3, #8]
  27227. 800c012: 3b01 subs r3, #1
  27228. 800c014: 025b lsls r3, r3, #9
  27229. 800c016: b29b uxth r3, r3
  27230. 800c018: 431a orrs r2, r3
  27231. 800c01a: 687b ldr r3, [r7, #4]
  27232. 800c01c: 68db ldr r3, [r3, #12]
  27233. 800c01e: 3b01 subs r3, #1
  27234. 800c020: 041b lsls r3, r3, #16
  27235. 800c022: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  27236. 800c026: 431a orrs r2, r3
  27237. 800c028: 687b ldr r3, [r7, #4]
  27238. 800c02a: 691b ldr r3, [r3, #16]
  27239. 800c02c: 3b01 subs r3, #1
  27240. 800c02e: 061b lsls r3, r3, #24
  27241. 800c030: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  27242. 800c034: 4931 ldr r1, [pc, #196] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27243. 800c036: 4313 orrs r3, r2
  27244. 800c038: 638b str r3, [r1, #56] @ 0x38
  27245. pll2->PLL2P,
  27246. pll2->PLL2Q,
  27247. pll2->PLL2R);
  27248. /* Select PLL2 input reference frequency range: VCI */
  27249. __HAL_RCC_PLL2_VCIRANGE(pll2->PLL2RGE) ;
  27250. 800c03a: 4b30 ldr r3, [pc, #192] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27251. 800c03c: 6adb ldr r3, [r3, #44] @ 0x2c
  27252. 800c03e: f023 02c0 bic.w r2, r3, #192 @ 0xc0
  27253. 800c042: 687b ldr r3, [r7, #4]
  27254. 800c044: 695b ldr r3, [r3, #20]
  27255. 800c046: 492d ldr r1, [pc, #180] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27256. 800c048: 4313 orrs r3, r2
  27257. 800c04a: 62cb str r3, [r1, #44] @ 0x2c
  27258. /* Select PLL2 output frequency range : VCO */
  27259. __HAL_RCC_PLL2_VCORANGE(pll2->PLL2VCOSEL) ;
  27260. 800c04c: 4b2b ldr r3, [pc, #172] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27261. 800c04e: 6adb ldr r3, [r3, #44] @ 0x2c
  27262. 800c050: f023 0220 bic.w r2, r3, #32
  27263. 800c054: 687b ldr r3, [r7, #4]
  27264. 800c056: 699b ldr r3, [r3, #24]
  27265. 800c058: 4928 ldr r1, [pc, #160] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27266. 800c05a: 4313 orrs r3, r2
  27267. 800c05c: 62cb str r3, [r1, #44] @ 0x2c
  27268. /* Disable PLL2FRACN . */
  27269. __HAL_RCC_PLL2FRACN_DISABLE();
  27270. 800c05e: 4b27 ldr r3, [pc, #156] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27271. 800c060: 6adb ldr r3, [r3, #44] @ 0x2c
  27272. 800c062: 4a26 ldr r2, [pc, #152] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27273. 800c064: f023 0310 bic.w r3, r3, #16
  27274. 800c068: 62d3 str r3, [r2, #44] @ 0x2c
  27275. /* Configures PLL2 clock Fractional Part Of The Multiplication Factor */
  27276. __HAL_RCC_PLL2FRACN_CONFIG(pll2->PLL2FRACN);
  27277. 800c06a: 4b24 ldr r3, [pc, #144] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27278. 800c06c: 6bda ldr r2, [r3, #60] @ 0x3c
  27279. 800c06e: 4b24 ldr r3, [pc, #144] @ (800c100 <RCCEx_PLL2_Config+0x160>)
  27280. 800c070: 4013 ands r3, r2
  27281. 800c072: 687a ldr r2, [r7, #4]
  27282. 800c074: 69d2 ldr r2, [r2, #28]
  27283. 800c076: 00d2 lsls r2, r2, #3
  27284. 800c078: 4920 ldr r1, [pc, #128] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27285. 800c07a: 4313 orrs r3, r2
  27286. 800c07c: 63cb str r3, [r1, #60] @ 0x3c
  27287. /* Enable PLL2FRACN . */
  27288. __HAL_RCC_PLL2FRACN_ENABLE();
  27289. 800c07e: 4b1f ldr r3, [pc, #124] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27290. 800c080: 6adb ldr r3, [r3, #44] @ 0x2c
  27291. 800c082: 4a1e ldr r2, [pc, #120] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27292. 800c084: f043 0310 orr.w r3, r3, #16
  27293. 800c088: 62d3 str r3, [r2, #44] @ 0x2c
  27294. /* Enable the PLL2 clock output */
  27295. if (Divider == DIVIDER_P_UPDATE)
  27296. 800c08a: 683b ldr r3, [r7, #0]
  27297. 800c08c: 2b00 cmp r3, #0
  27298. 800c08e: d106 bne.n 800c09e <RCCEx_PLL2_Config+0xfe>
  27299. {
  27300. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVP);
  27301. 800c090: 4b1a ldr r3, [pc, #104] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27302. 800c092: 6adb ldr r3, [r3, #44] @ 0x2c
  27303. 800c094: 4a19 ldr r2, [pc, #100] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27304. 800c096: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  27305. 800c09a: 62d3 str r3, [r2, #44] @ 0x2c
  27306. 800c09c: e00f b.n 800c0be <RCCEx_PLL2_Config+0x11e>
  27307. }
  27308. else if (Divider == DIVIDER_Q_UPDATE)
  27309. 800c09e: 683b ldr r3, [r7, #0]
  27310. 800c0a0: 2b01 cmp r3, #1
  27311. 800c0a2: d106 bne.n 800c0b2 <RCCEx_PLL2_Config+0x112>
  27312. {
  27313. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVQ);
  27314. 800c0a4: 4b15 ldr r3, [pc, #84] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27315. 800c0a6: 6adb ldr r3, [r3, #44] @ 0x2c
  27316. 800c0a8: 4a14 ldr r2, [pc, #80] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27317. 800c0aa: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  27318. 800c0ae: 62d3 str r3, [r2, #44] @ 0x2c
  27319. 800c0b0: e005 b.n 800c0be <RCCEx_PLL2_Config+0x11e>
  27320. }
  27321. else
  27322. {
  27323. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVR);
  27324. 800c0b2: 4b12 ldr r3, [pc, #72] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27325. 800c0b4: 6adb ldr r3, [r3, #44] @ 0x2c
  27326. 800c0b6: 4a11 ldr r2, [pc, #68] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27327. 800c0b8: f443 1300 orr.w r3, r3, #2097152 @ 0x200000
  27328. 800c0bc: 62d3 str r3, [r2, #44] @ 0x2c
  27329. }
  27330. /* Enable PLL2. */
  27331. __HAL_RCC_PLL2_ENABLE();
  27332. 800c0be: 4b0f ldr r3, [pc, #60] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27333. 800c0c0: 681b ldr r3, [r3, #0]
  27334. 800c0c2: 4a0e ldr r2, [pc, #56] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27335. 800c0c4: f043 6380 orr.w r3, r3, #67108864 @ 0x4000000
  27336. 800c0c8: 6013 str r3, [r2, #0]
  27337. /* Get Start Tick*/
  27338. tickstart = HAL_GetTick();
  27339. 800c0ca: f7f8 fd61 bl 8004b90 <HAL_GetTick>
  27340. 800c0ce: 60b8 str r0, [r7, #8]
  27341. /* Wait till PLL2 is ready */
  27342. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U)
  27343. 800c0d0: e008 b.n 800c0e4 <RCCEx_PLL2_Config+0x144>
  27344. {
  27345. if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE)
  27346. 800c0d2: f7f8 fd5d bl 8004b90 <HAL_GetTick>
  27347. 800c0d6: 4602 mov r2, r0
  27348. 800c0d8: 68bb ldr r3, [r7, #8]
  27349. 800c0da: 1ad3 subs r3, r2, r3
  27350. 800c0dc: 2b02 cmp r3, #2
  27351. 800c0de: d901 bls.n 800c0e4 <RCCEx_PLL2_Config+0x144>
  27352. {
  27353. return HAL_TIMEOUT;
  27354. 800c0e0: 2303 movs r3, #3
  27355. 800c0e2: e006 b.n 800c0f2 <RCCEx_PLL2_Config+0x152>
  27356. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U)
  27357. 800c0e4: 4b05 ldr r3, [pc, #20] @ (800c0fc <RCCEx_PLL2_Config+0x15c>)
  27358. 800c0e6: 681b ldr r3, [r3, #0]
  27359. 800c0e8: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  27360. 800c0ec: 2b00 cmp r3, #0
  27361. 800c0ee: d0f0 beq.n 800c0d2 <RCCEx_PLL2_Config+0x132>
  27362. }
  27363. }
  27364. return status;
  27365. 800c0f0: 7bfb ldrb r3, [r7, #15]
  27366. }
  27367. 800c0f2: 4618 mov r0, r3
  27368. 800c0f4: 3710 adds r7, #16
  27369. 800c0f6: 46bd mov sp, r7
  27370. 800c0f8: bd80 pop {r7, pc}
  27371. 800c0fa: bf00 nop
  27372. 800c0fc: 58024400 .word 0x58024400
  27373. 800c100: ffff0007 .word 0xffff0007
  27374. 0800c104 <RCCEx_PLL3_Config>:
  27375. * @note PLL3 is temporary disabled to apply new parameters
  27376. *
  27377. * @retval HAL status
  27378. */
  27379. static HAL_StatusTypeDef RCCEx_PLL3_Config(RCC_PLL3InitTypeDef *pll3, uint32_t Divider)
  27380. {
  27381. 800c104: b580 push {r7, lr}
  27382. 800c106: b084 sub sp, #16
  27383. 800c108: af00 add r7, sp, #0
  27384. 800c10a: 6078 str r0, [r7, #4]
  27385. 800c10c: 6039 str r1, [r7, #0]
  27386. uint32_t tickstart;
  27387. HAL_StatusTypeDef status = HAL_OK;
  27388. 800c10e: 2300 movs r3, #0
  27389. 800c110: 73fb strb r3, [r7, #15]
  27390. assert_param(IS_RCC_PLL3RGE_VALUE(pll3->PLL3RGE));
  27391. assert_param(IS_RCC_PLL3VCO_VALUE(pll3->PLL3VCOSEL));
  27392. assert_param(IS_RCC_PLLFRACN_VALUE(pll3->PLL3FRACN));
  27393. /* Check that PLL3 OSC clock source is already set */
  27394. if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE)
  27395. 800c112: 4b53 ldr r3, [pc, #332] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27396. 800c114: 6a9b ldr r3, [r3, #40] @ 0x28
  27397. 800c116: f003 0303 and.w r3, r3, #3
  27398. 800c11a: 2b03 cmp r3, #3
  27399. 800c11c: d101 bne.n 800c122 <RCCEx_PLL3_Config+0x1e>
  27400. {
  27401. return HAL_ERROR;
  27402. 800c11e: 2301 movs r3, #1
  27403. 800c120: e099 b.n 800c256 <RCCEx_PLL3_Config+0x152>
  27404. else
  27405. {
  27406. /* Disable PLL3. */
  27407. __HAL_RCC_PLL3_DISABLE();
  27408. 800c122: 4b4f ldr r3, [pc, #316] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27409. 800c124: 681b ldr r3, [r3, #0]
  27410. 800c126: 4a4e ldr r2, [pc, #312] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27411. 800c128: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  27412. 800c12c: 6013 str r3, [r2, #0]
  27413. /* Get Start Tick*/
  27414. tickstart = HAL_GetTick();
  27415. 800c12e: f7f8 fd2f bl 8004b90 <HAL_GetTick>
  27416. 800c132: 60b8 str r0, [r7, #8]
  27417. /* Wait till PLL3 is ready */
  27418. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U)
  27419. 800c134: e008 b.n 800c148 <RCCEx_PLL3_Config+0x44>
  27420. {
  27421. if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE)
  27422. 800c136: f7f8 fd2b bl 8004b90 <HAL_GetTick>
  27423. 800c13a: 4602 mov r2, r0
  27424. 800c13c: 68bb ldr r3, [r7, #8]
  27425. 800c13e: 1ad3 subs r3, r2, r3
  27426. 800c140: 2b02 cmp r3, #2
  27427. 800c142: d901 bls.n 800c148 <RCCEx_PLL3_Config+0x44>
  27428. {
  27429. return HAL_TIMEOUT;
  27430. 800c144: 2303 movs r3, #3
  27431. 800c146: e086 b.n 800c256 <RCCEx_PLL3_Config+0x152>
  27432. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U)
  27433. 800c148: 4b45 ldr r3, [pc, #276] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27434. 800c14a: 681b ldr r3, [r3, #0]
  27435. 800c14c: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  27436. 800c150: 2b00 cmp r3, #0
  27437. 800c152: d1f0 bne.n 800c136 <RCCEx_PLL3_Config+0x32>
  27438. }
  27439. }
  27440. /* Configure the PLL3 multiplication and division factors. */
  27441. __HAL_RCC_PLL3_CONFIG(pll3->PLL3M,
  27442. 800c154: 4b42 ldr r3, [pc, #264] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27443. 800c156: 6a9b ldr r3, [r3, #40] @ 0x28
  27444. 800c158: f023 727c bic.w r2, r3, #66060288 @ 0x3f00000
  27445. 800c15c: 687b ldr r3, [r7, #4]
  27446. 800c15e: 681b ldr r3, [r3, #0]
  27447. 800c160: 051b lsls r3, r3, #20
  27448. 800c162: 493f ldr r1, [pc, #252] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27449. 800c164: 4313 orrs r3, r2
  27450. 800c166: 628b str r3, [r1, #40] @ 0x28
  27451. 800c168: 687b ldr r3, [r7, #4]
  27452. 800c16a: 685b ldr r3, [r3, #4]
  27453. 800c16c: 3b01 subs r3, #1
  27454. 800c16e: f3c3 0208 ubfx r2, r3, #0, #9
  27455. 800c172: 687b ldr r3, [r7, #4]
  27456. 800c174: 689b ldr r3, [r3, #8]
  27457. 800c176: 3b01 subs r3, #1
  27458. 800c178: 025b lsls r3, r3, #9
  27459. 800c17a: b29b uxth r3, r3
  27460. 800c17c: 431a orrs r2, r3
  27461. 800c17e: 687b ldr r3, [r7, #4]
  27462. 800c180: 68db ldr r3, [r3, #12]
  27463. 800c182: 3b01 subs r3, #1
  27464. 800c184: 041b lsls r3, r3, #16
  27465. 800c186: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  27466. 800c18a: 431a orrs r2, r3
  27467. 800c18c: 687b ldr r3, [r7, #4]
  27468. 800c18e: 691b ldr r3, [r3, #16]
  27469. 800c190: 3b01 subs r3, #1
  27470. 800c192: 061b lsls r3, r3, #24
  27471. 800c194: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  27472. 800c198: 4931 ldr r1, [pc, #196] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27473. 800c19a: 4313 orrs r3, r2
  27474. 800c19c: 640b str r3, [r1, #64] @ 0x40
  27475. pll3->PLL3P,
  27476. pll3->PLL3Q,
  27477. pll3->PLL3R);
  27478. /* Select PLL3 input reference frequency range: VCI */
  27479. __HAL_RCC_PLL3_VCIRANGE(pll3->PLL3RGE) ;
  27480. 800c19e: 4b30 ldr r3, [pc, #192] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27481. 800c1a0: 6adb ldr r3, [r3, #44] @ 0x2c
  27482. 800c1a2: f423 6240 bic.w r2, r3, #3072 @ 0xc00
  27483. 800c1a6: 687b ldr r3, [r7, #4]
  27484. 800c1a8: 695b ldr r3, [r3, #20]
  27485. 800c1aa: 492d ldr r1, [pc, #180] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27486. 800c1ac: 4313 orrs r3, r2
  27487. 800c1ae: 62cb str r3, [r1, #44] @ 0x2c
  27488. /* Select PLL3 output frequency range : VCO */
  27489. __HAL_RCC_PLL3_VCORANGE(pll3->PLL3VCOSEL) ;
  27490. 800c1b0: 4b2b ldr r3, [pc, #172] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27491. 800c1b2: 6adb ldr r3, [r3, #44] @ 0x2c
  27492. 800c1b4: f423 7200 bic.w r2, r3, #512 @ 0x200
  27493. 800c1b8: 687b ldr r3, [r7, #4]
  27494. 800c1ba: 699b ldr r3, [r3, #24]
  27495. 800c1bc: 4928 ldr r1, [pc, #160] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27496. 800c1be: 4313 orrs r3, r2
  27497. 800c1c0: 62cb str r3, [r1, #44] @ 0x2c
  27498. /* Disable PLL3FRACN . */
  27499. __HAL_RCC_PLL3FRACN_DISABLE();
  27500. 800c1c2: 4b27 ldr r3, [pc, #156] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27501. 800c1c4: 6adb ldr r3, [r3, #44] @ 0x2c
  27502. 800c1c6: 4a26 ldr r2, [pc, #152] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27503. 800c1c8: f423 7380 bic.w r3, r3, #256 @ 0x100
  27504. 800c1cc: 62d3 str r3, [r2, #44] @ 0x2c
  27505. /* Configures PLL3 clock Fractional Part Of The Multiplication Factor */
  27506. __HAL_RCC_PLL3FRACN_CONFIG(pll3->PLL3FRACN);
  27507. 800c1ce: 4b24 ldr r3, [pc, #144] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27508. 800c1d0: 6c5a ldr r2, [r3, #68] @ 0x44
  27509. 800c1d2: 4b24 ldr r3, [pc, #144] @ (800c264 <RCCEx_PLL3_Config+0x160>)
  27510. 800c1d4: 4013 ands r3, r2
  27511. 800c1d6: 687a ldr r2, [r7, #4]
  27512. 800c1d8: 69d2 ldr r2, [r2, #28]
  27513. 800c1da: 00d2 lsls r2, r2, #3
  27514. 800c1dc: 4920 ldr r1, [pc, #128] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27515. 800c1de: 4313 orrs r3, r2
  27516. 800c1e0: 644b str r3, [r1, #68] @ 0x44
  27517. /* Enable PLL3FRACN . */
  27518. __HAL_RCC_PLL3FRACN_ENABLE();
  27519. 800c1e2: 4b1f ldr r3, [pc, #124] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27520. 800c1e4: 6adb ldr r3, [r3, #44] @ 0x2c
  27521. 800c1e6: 4a1e ldr r2, [pc, #120] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27522. 800c1e8: f443 7380 orr.w r3, r3, #256 @ 0x100
  27523. 800c1ec: 62d3 str r3, [r2, #44] @ 0x2c
  27524. /* Enable the PLL3 clock output */
  27525. if (Divider == DIVIDER_P_UPDATE)
  27526. 800c1ee: 683b ldr r3, [r7, #0]
  27527. 800c1f0: 2b00 cmp r3, #0
  27528. 800c1f2: d106 bne.n 800c202 <RCCEx_PLL3_Config+0xfe>
  27529. {
  27530. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVP);
  27531. 800c1f4: 4b1a ldr r3, [pc, #104] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27532. 800c1f6: 6adb ldr r3, [r3, #44] @ 0x2c
  27533. 800c1f8: 4a19 ldr r2, [pc, #100] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27534. 800c1fa: f443 0380 orr.w r3, r3, #4194304 @ 0x400000
  27535. 800c1fe: 62d3 str r3, [r2, #44] @ 0x2c
  27536. 800c200: e00f b.n 800c222 <RCCEx_PLL3_Config+0x11e>
  27537. }
  27538. else if (Divider == DIVIDER_Q_UPDATE)
  27539. 800c202: 683b ldr r3, [r7, #0]
  27540. 800c204: 2b01 cmp r3, #1
  27541. 800c206: d106 bne.n 800c216 <RCCEx_PLL3_Config+0x112>
  27542. {
  27543. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVQ);
  27544. 800c208: 4b15 ldr r3, [pc, #84] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27545. 800c20a: 6adb ldr r3, [r3, #44] @ 0x2c
  27546. 800c20c: 4a14 ldr r2, [pc, #80] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27547. 800c20e: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  27548. 800c212: 62d3 str r3, [r2, #44] @ 0x2c
  27549. 800c214: e005 b.n 800c222 <RCCEx_PLL3_Config+0x11e>
  27550. }
  27551. else
  27552. {
  27553. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVR);
  27554. 800c216: 4b12 ldr r3, [pc, #72] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27555. 800c218: 6adb ldr r3, [r3, #44] @ 0x2c
  27556. 800c21a: 4a11 ldr r2, [pc, #68] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27557. 800c21c: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  27558. 800c220: 62d3 str r3, [r2, #44] @ 0x2c
  27559. }
  27560. /* Enable PLL3. */
  27561. __HAL_RCC_PLL3_ENABLE();
  27562. 800c222: 4b0f ldr r3, [pc, #60] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27563. 800c224: 681b ldr r3, [r3, #0]
  27564. 800c226: 4a0e ldr r2, [pc, #56] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27565. 800c228: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
  27566. 800c22c: 6013 str r3, [r2, #0]
  27567. /* Get Start Tick*/
  27568. tickstart = HAL_GetTick();
  27569. 800c22e: f7f8 fcaf bl 8004b90 <HAL_GetTick>
  27570. 800c232: 60b8 str r0, [r7, #8]
  27571. /* Wait till PLL3 is ready */
  27572. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U)
  27573. 800c234: e008 b.n 800c248 <RCCEx_PLL3_Config+0x144>
  27574. {
  27575. if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE)
  27576. 800c236: f7f8 fcab bl 8004b90 <HAL_GetTick>
  27577. 800c23a: 4602 mov r2, r0
  27578. 800c23c: 68bb ldr r3, [r7, #8]
  27579. 800c23e: 1ad3 subs r3, r2, r3
  27580. 800c240: 2b02 cmp r3, #2
  27581. 800c242: d901 bls.n 800c248 <RCCEx_PLL3_Config+0x144>
  27582. {
  27583. return HAL_TIMEOUT;
  27584. 800c244: 2303 movs r3, #3
  27585. 800c246: e006 b.n 800c256 <RCCEx_PLL3_Config+0x152>
  27586. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U)
  27587. 800c248: 4b05 ldr r3, [pc, #20] @ (800c260 <RCCEx_PLL3_Config+0x15c>)
  27588. 800c24a: 681b ldr r3, [r3, #0]
  27589. 800c24c: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  27590. 800c250: 2b00 cmp r3, #0
  27591. 800c252: d0f0 beq.n 800c236 <RCCEx_PLL3_Config+0x132>
  27592. }
  27593. }
  27594. return status;
  27595. 800c254: 7bfb ldrb r3, [r7, #15]
  27596. }
  27597. 800c256: 4618 mov r0, r3
  27598. 800c258: 3710 adds r7, #16
  27599. 800c25a: 46bd mov sp, r7
  27600. 800c25c: bd80 pop {r7, pc}
  27601. 800c25e: bf00 nop
  27602. 800c260: 58024400 .word 0x58024400
  27603. 800c264: ffff0007 .word 0xffff0007
  27604. 0800c268 <HAL_RNG_Init>:
  27605. * @param hrng pointer to a RNG_HandleTypeDef structure that contains
  27606. * the configuration information for RNG.
  27607. * @retval HAL status
  27608. */
  27609. HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng)
  27610. {
  27611. 800c268: b580 push {r7, lr}
  27612. 800c26a: b084 sub sp, #16
  27613. 800c26c: af00 add r7, sp, #0
  27614. 800c26e: 6078 str r0, [r7, #4]
  27615. uint32_t tickstart;
  27616. /* Check the RNG handle allocation */
  27617. if (hrng == NULL)
  27618. 800c270: 687b ldr r3, [r7, #4]
  27619. 800c272: 2b00 cmp r3, #0
  27620. 800c274: d101 bne.n 800c27a <HAL_RNG_Init+0x12>
  27621. {
  27622. return HAL_ERROR;
  27623. 800c276: 2301 movs r3, #1
  27624. 800c278: e054 b.n 800c324 <HAL_RNG_Init+0xbc>
  27625. /* Init the low level hardware */
  27626. hrng->MspInitCallback(hrng);
  27627. }
  27628. #else
  27629. if (hrng->State == HAL_RNG_STATE_RESET)
  27630. 800c27a: 687b ldr r3, [r7, #4]
  27631. 800c27c: 7a5b ldrb r3, [r3, #9]
  27632. 800c27e: b2db uxtb r3, r3
  27633. 800c280: 2b00 cmp r3, #0
  27634. 800c282: d105 bne.n 800c290 <HAL_RNG_Init+0x28>
  27635. {
  27636. /* Allocate lock resource and initialize it */
  27637. hrng->Lock = HAL_UNLOCKED;
  27638. 800c284: 687b ldr r3, [r7, #4]
  27639. 800c286: 2200 movs r2, #0
  27640. 800c288: 721a strb r2, [r3, #8]
  27641. /* Init the low level hardware */
  27642. HAL_RNG_MspInit(hrng);
  27643. 800c28a: 6878 ldr r0, [r7, #4]
  27644. 800c28c: f7f7 fa46 bl 800371c <HAL_RNG_MspInit>
  27645. }
  27646. #endif /* USE_HAL_RNG_REGISTER_CALLBACKS */
  27647. /* Change RNG peripheral state */
  27648. hrng->State = HAL_RNG_STATE_BUSY;
  27649. 800c290: 687b ldr r3, [r7, #4]
  27650. 800c292: 2202 movs r2, #2
  27651. 800c294: 725a strb r2, [r3, #9]
  27652. }
  27653. }
  27654. }
  27655. #else
  27656. /* Clock Error Detection Configuration */
  27657. MODIFY_REG(hrng->Instance->CR, RNG_CR_CED, hrng->Init.ClockErrorDetection);
  27658. 800c296: 687b ldr r3, [r7, #4]
  27659. 800c298: 681b ldr r3, [r3, #0]
  27660. 800c29a: 681b ldr r3, [r3, #0]
  27661. 800c29c: f023 0120 bic.w r1, r3, #32
  27662. 800c2a0: 687b ldr r3, [r7, #4]
  27663. 800c2a2: 685a ldr r2, [r3, #4]
  27664. 800c2a4: 687b ldr r3, [r7, #4]
  27665. 800c2a6: 681b ldr r3, [r3, #0]
  27666. 800c2a8: 430a orrs r2, r1
  27667. 800c2aa: 601a str r2, [r3, #0]
  27668. #endif /* RNG_CR_CONDRST */
  27669. /* Enable the RNG Peripheral */
  27670. __HAL_RNG_ENABLE(hrng);
  27671. 800c2ac: 687b ldr r3, [r7, #4]
  27672. 800c2ae: 681b ldr r3, [r3, #0]
  27673. 800c2b0: 681a ldr r2, [r3, #0]
  27674. 800c2b2: 687b ldr r3, [r7, #4]
  27675. 800c2b4: 681b ldr r3, [r3, #0]
  27676. 800c2b6: f042 0204 orr.w r2, r2, #4
  27677. 800c2ba: 601a str r2, [r3, #0]
  27678. /* verify that no seed error */
  27679. if (__HAL_RNG_GET_IT(hrng, RNG_IT_SEI) != RESET)
  27680. 800c2bc: 687b ldr r3, [r7, #4]
  27681. 800c2be: 681b ldr r3, [r3, #0]
  27682. 800c2c0: 685b ldr r3, [r3, #4]
  27683. 800c2c2: f003 0340 and.w r3, r3, #64 @ 0x40
  27684. 800c2c6: 2b40 cmp r3, #64 @ 0x40
  27685. 800c2c8: d104 bne.n 800c2d4 <HAL_RNG_Init+0x6c>
  27686. {
  27687. hrng->State = HAL_RNG_STATE_ERROR;
  27688. 800c2ca: 687b ldr r3, [r7, #4]
  27689. 800c2cc: 2204 movs r2, #4
  27690. 800c2ce: 725a strb r2, [r3, #9]
  27691. return HAL_ERROR;
  27692. 800c2d0: 2301 movs r3, #1
  27693. 800c2d2: e027 b.n 800c324 <HAL_RNG_Init+0xbc>
  27694. }
  27695. /* Get tick */
  27696. tickstart = HAL_GetTick();
  27697. 800c2d4: f7f8 fc5c bl 8004b90 <HAL_GetTick>
  27698. 800c2d8: 60f8 str r0, [r7, #12]
  27699. /* Check if data register contains valid random data */
  27700. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  27701. 800c2da: e015 b.n 800c308 <HAL_RNG_Init+0xa0>
  27702. {
  27703. if ((HAL_GetTick() - tickstart) > RNG_TIMEOUT_VALUE)
  27704. 800c2dc: f7f8 fc58 bl 8004b90 <HAL_GetTick>
  27705. 800c2e0: 4602 mov r2, r0
  27706. 800c2e2: 68fb ldr r3, [r7, #12]
  27707. 800c2e4: 1ad3 subs r3, r2, r3
  27708. 800c2e6: 2b02 cmp r3, #2
  27709. 800c2e8: d90e bls.n 800c308 <HAL_RNG_Init+0xa0>
  27710. {
  27711. /* New check to avoid false timeout detection in case of preemption */
  27712. if (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  27713. 800c2ea: 687b ldr r3, [r7, #4]
  27714. 800c2ec: 681b ldr r3, [r3, #0]
  27715. 800c2ee: 685b ldr r3, [r3, #4]
  27716. 800c2f0: f003 0304 and.w r3, r3, #4
  27717. 800c2f4: 2b04 cmp r3, #4
  27718. 800c2f6: d107 bne.n 800c308 <HAL_RNG_Init+0xa0>
  27719. {
  27720. hrng->State = HAL_RNG_STATE_ERROR;
  27721. 800c2f8: 687b ldr r3, [r7, #4]
  27722. 800c2fa: 2204 movs r2, #4
  27723. 800c2fc: 725a strb r2, [r3, #9]
  27724. hrng->ErrorCode = HAL_RNG_ERROR_TIMEOUT;
  27725. 800c2fe: 687b ldr r3, [r7, #4]
  27726. 800c300: 2202 movs r2, #2
  27727. 800c302: 60da str r2, [r3, #12]
  27728. return HAL_ERROR;
  27729. 800c304: 2301 movs r3, #1
  27730. 800c306: e00d b.n 800c324 <HAL_RNG_Init+0xbc>
  27731. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  27732. 800c308: 687b ldr r3, [r7, #4]
  27733. 800c30a: 681b ldr r3, [r3, #0]
  27734. 800c30c: 685b ldr r3, [r3, #4]
  27735. 800c30e: f003 0304 and.w r3, r3, #4
  27736. 800c312: 2b04 cmp r3, #4
  27737. 800c314: d0e2 beq.n 800c2dc <HAL_RNG_Init+0x74>
  27738. }
  27739. }
  27740. }
  27741. /* Initialize the RNG state */
  27742. hrng->State = HAL_RNG_STATE_READY;
  27743. 800c316: 687b ldr r3, [r7, #4]
  27744. 800c318: 2201 movs r2, #1
  27745. 800c31a: 725a strb r2, [r3, #9]
  27746. /* Initialise the error code */
  27747. hrng->ErrorCode = HAL_RNG_ERROR_NONE;
  27748. 800c31c: 687b ldr r3, [r7, #4]
  27749. 800c31e: 2200 movs r2, #0
  27750. 800c320: 60da str r2, [r3, #12]
  27751. /* Return function status */
  27752. return HAL_OK;
  27753. 800c322: 2300 movs r3, #0
  27754. }
  27755. 800c324: 4618 mov r0, r3
  27756. 800c326: 3710 adds r7, #16
  27757. 800c328: 46bd mov sp, r7
  27758. 800c32a: bd80 pop {r7, pc}
  27759. 0800c32c <HAL_RNG_GenerateRandomNumber>:
  27760. * @param random32bit pointer to generated random number variable if successful.
  27761. * @retval HAL status
  27762. */
  27763. HAL_StatusTypeDef HAL_RNG_GenerateRandomNumber(RNG_HandleTypeDef *hrng, uint32_t *random32bit)
  27764. {
  27765. 800c32c: b580 push {r7, lr}
  27766. 800c32e: b084 sub sp, #16
  27767. 800c330: af00 add r7, sp, #0
  27768. 800c332: 6078 str r0, [r7, #4]
  27769. 800c334: 6039 str r1, [r7, #0]
  27770. uint32_t tickstart;
  27771. HAL_StatusTypeDef status = HAL_OK;
  27772. 800c336: 2300 movs r3, #0
  27773. 800c338: 73fb strb r3, [r7, #15]
  27774. /* Process Locked */
  27775. __HAL_LOCK(hrng);
  27776. 800c33a: 687b ldr r3, [r7, #4]
  27777. 800c33c: 7a1b ldrb r3, [r3, #8]
  27778. 800c33e: 2b01 cmp r3, #1
  27779. 800c340: d101 bne.n 800c346 <HAL_RNG_GenerateRandomNumber+0x1a>
  27780. 800c342: 2302 movs r3, #2
  27781. 800c344: e044 b.n 800c3d0 <HAL_RNG_GenerateRandomNumber+0xa4>
  27782. 800c346: 687b ldr r3, [r7, #4]
  27783. 800c348: 2201 movs r2, #1
  27784. 800c34a: 721a strb r2, [r3, #8]
  27785. /* Check RNG peripheral state */
  27786. if (hrng->State == HAL_RNG_STATE_READY)
  27787. 800c34c: 687b ldr r3, [r7, #4]
  27788. 800c34e: 7a5b ldrb r3, [r3, #9]
  27789. 800c350: b2db uxtb r3, r3
  27790. 800c352: 2b01 cmp r3, #1
  27791. 800c354: d133 bne.n 800c3be <HAL_RNG_GenerateRandomNumber+0x92>
  27792. {
  27793. /* Change RNG peripheral state */
  27794. hrng->State = HAL_RNG_STATE_BUSY;
  27795. 800c356: 687b ldr r3, [r7, #4]
  27796. 800c358: 2202 movs r2, #2
  27797. 800c35a: 725a strb r2, [r3, #9]
  27798. }
  27799. }
  27800. #endif /* RNG_CR_CONDRST */
  27801. /* Get tick */
  27802. tickstart = HAL_GetTick();
  27803. 800c35c: f7f8 fc18 bl 8004b90 <HAL_GetTick>
  27804. 800c360: 60b8 str r0, [r7, #8]
  27805. /* Check if data register contains valid random data */
  27806. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_DRDY) == RESET)
  27807. 800c362: e018 b.n 800c396 <HAL_RNG_GenerateRandomNumber+0x6a>
  27808. {
  27809. if ((HAL_GetTick() - tickstart) > RNG_TIMEOUT_VALUE)
  27810. 800c364: f7f8 fc14 bl 8004b90 <HAL_GetTick>
  27811. 800c368: 4602 mov r2, r0
  27812. 800c36a: 68bb ldr r3, [r7, #8]
  27813. 800c36c: 1ad3 subs r3, r2, r3
  27814. 800c36e: 2b02 cmp r3, #2
  27815. 800c370: d911 bls.n 800c396 <HAL_RNG_GenerateRandomNumber+0x6a>
  27816. {
  27817. /* New check to avoid false timeout detection in case of preemption */
  27818. if (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_DRDY) == RESET)
  27819. 800c372: 687b ldr r3, [r7, #4]
  27820. 800c374: 681b ldr r3, [r3, #0]
  27821. 800c376: 685b ldr r3, [r3, #4]
  27822. 800c378: f003 0301 and.w r3, r3, #1
  27823. 800c37c: 2b01 cmp r3, #1
  27824. 800c37e: d00a beq.n 800c396 <HAL_RNG_GenerateRandomNumber+0x6a>
  27825. {
  27826. hrng->State = HAL_RNG_STATE_READY;
  27827. 800c380: 687b ldr r3, [r7, #4]
  27828. 800c382: 2201 movs r2, #1
  27829. 800c384: 725a strb r2, [r3, #9]
  27830. hrng->ErrorCode = HAL_RNG_ERROR_TIMEOUT;
  27831. 800c386: 687b ldr r3, [r7, #4]
  27832. 800c388: 2202 movs r2, #2
  27833. 800c38a: 60da str r2, [r3, #12]
  27834. /* Process Unlocked */
  27835. __HAL_UNLOCK(hrng);
  27836. 800c38c: 687b ldr r3, [r7, #4]
  27837. 800c38e: 2200 movs r2, #0
  27838. 800c390: 721a strb r2, [r3, #8]
  27839. return HAL_ERROR;
  27840. 800c392: 2301 movs r3, #1
  27841. 800c394: e01c b.n 800c3d0 <HAL_RNG_GenerateRandomNumber+0xa4>
  27842. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_DRDY) == RESET)
  27843. 800c396: 687b ldr r3, [r7, #4]
  27844. 800c398: 681b ldr r3, [r3, #0]
  27845. 800c39a: 685b ldr r3, [r3, #4]
  27846. 800c39c: f003 0301 and.w r3, r3, #1
  27847. 800c3a0: 2b01 cmp r3, #1
  27848. 800c3a2: d1df bne.n 800c364 <HAL_RNG_GenerateRandomNumber+0x38>
  27849. }
  27850. }
  27851. }
  27852. /* Get a 32bit Random number */
  27853. hrng->RandomNumber = hrng->Instance->DR;
  27854. 800c3a4: 687b ldr r3, [r7, #4]
  27855. 800c3a6: 681b ldr r3, [r3, #0]
  27856. 800c3a8: 689a ldr r2, [r3, #8]
  27857. 800c3aa: 687b ldr r3, [r7, #4]
  27858. 800c3ac: 611a str r2, [r3, #16]
  27859. else /* No seed error */
  27860. {
  27861. *random32bit = hrng->RandomNumber;
  27862. }
  27863. #else
  27864. *random32bit = hrng->RandomNumber;
  27865. 800c3ae: 687b ldr r3, [r7, #4]
  27866. 800c3b0: 691a ldr r2, [r3, #16]
  27867. 800c3b2: 683b ldr r3, [r7, #0]
  27868. 800c3b4: 601a str r2, [r3, #0]
  27869. #endif /* RNG_CR_CONDRST */
  27870. hrng->State = HAL_RNG_STATE_READY;
  27871. 800c3b6: 687b ldr r3, [r7, #4]
  27872. 800c3b8: 2201 movs r2, #1
  27873. 800c3ba: 725a strb r2, [r3, #9]
  27874. 800c3bc: e004 b.n 800c3c8 <HAL_RNG_GenerateRandomNumber+0x9c>
  27875. }
  27876. else
  27877. {
  27878. hrng->ErrorCode = HAL_RNG_ERROR_BUSY;
  27879. 800c3be: 687b ldr r3, [r7, #4]
  27880. 800c3c0: 2204 movs r2, #4
  27881. 800c3c2: 60da str r2, [r3, #12]
  27882. status = HAL_ERROR;
  27883. 800c3c4: 2301 movs r3, #1
  27884. 800c3c6: 73fb strb r3, [r7, #15]
  27885. }
  27886. /* Process Unlocked */
  27887. __HAL_UNLOCK(hrng);
  27888. 800c3c8: 687b ldr r3, [r7, #4]
  27889. 800c3ca: 2200 movs r2, #0
  27890. 800c3cc: 721a strb r2, [r3, #8]
  27891. return status;
  27892. 800c3ce: 7bfb ldrb r3, [r7, #15]
  27893. }
  27894. 800c3d0: 4618 mov r0, r3
  27895. 800c3d2: 3710 adds r7, #16
  27896. 800c3d4: 46bd mov sp, r7
  27897. 800c3d6: bd80 pop {r7, pc}
  27898. 0800c3d8 <HAL_TIM_Base_Init>:
  27899. * Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init()
  27900. * @param htim TIM Base handle
  27901. * @retval HAL status
  27902. */
  27903. HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim)
  27904. {
  27905. 800c3d8: b580 push {r7, lr}
  27906. 800c3da: b082 sub sp, #8
  27907. 800c3dc: af00 add r7, sp, #0
  27908. 800c3de: 6078 str r0, [r7, #4]
  27909. /* Check the TIM handle allocation */
  27910. if (htim == NULL)
  27911. 800c3e0: 687b ldr r3, [r7, #4]
  27912. 800c3e2: 2b00 cmp r3, #0
  27913. 800c3e4: d101 bne.n 800c3ea <HAL_TIM_Base_Init+0x12>
  27914. {
  27915. return HAL_ERROR;
  27916. 800c3e6: 2301 movs r3, #1
  27917. 800c3e8: e049 b.n 800c47e <HAL_TIM_Base_Init+0xa6>
  27918. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  27919. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  27920. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  27921. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  27922. if (htim->State == HAL_TIM_STATE_RESET)
  27923. 800c3ea: 687b ldr r3, [r7, #4]
  27924. 800c3ec: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  27925. 800c3f0: b2db uxtb r3, r3
  27926. 800c3f2: 2b00 cmp r3, #0
  27927. 800c3f4: d106 bne.n 800c404 <HAL_TIM_Base_Init+0x2c>
  27928. {
  27929. /* Allocate lock resource and initialize it */
  27930. htim->Lock = HAL_UNLOCKED;
  27931. 800c3f6: 687b ldr r3, [r7, #4]
  27932. 800c3f8: 2200 movs r2, #0
  27933. 800c3fa: f883 203c strb.w r2, [r3, #60] @ 0x3c
  27934. }
  27935. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  27936. htim->Base_MspInitCallback(htim);
  27937. #else
  27938. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  27939. HAL_TIM_Base_MspInit(htim);
  27940. 800c3fe: 6878 ldr r0, [r7, #4]
  27941. 800c400: f000 f841 bl 800c486 <HAL_TIM_Base_MspInit>
  27942. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  27943. }
  27944. /* Set the TIM state */
  27945. htim->State = HAL_TIM_STATE_BUSY;
  27946. 800c404: 687b ldr r3, [r7, #4]
  27947. 800c406: 2202 movs r2, #2
  27948. 800c408: f883 203d strb.w r2, [r3, #61] @ 0x3d
  27949. /* Set the Time Base configuration */
  27950. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  27951. 800c40c: 687b ldr r3, [r7, #4]
  27952. 800c40e: 681a ldr r2, [r3, #0]
  27953. 800c410: 687b ldr r3, [r7, #4]
  27954. 800c412: 3304 adds r3, #4
  27955. 800c414: 4619 mov r1, r3
  27956. 800c416: 4610 mov r0, r2
  27957. 800c418: f000 f9e8 bl 800c7ec <TIM_Base_SetConfig>
  27958. /* Initialize the DMA burst operation state */
  27959. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  27960. 800c41c: 687b ldr r3, [r7, #4]
  27961. 800c41e: 2201 movs r2, #1
  27962. 800c420: f883 2048 strb.w r2, [r3, #72] @ 0x48
  27963. /* Initialize the TIM channels state */
  27964. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  27965. 800c424: 687b ldr r3, [r7, #4]
  27966. 800c426: 2201 movs r2, #1
  27967. 800c428: f883 203e strb.w r2, [r3, #62] @ 0x3e
  27968. 800c42c: 687b ldr r3, [r7, #4]
  27969. 800c42e: 2201 movs r2, #1
  27970. 800c430: f883 203f strb.w r2, [r3, #63] @ 0x3f
  27971. 800c434: 687b ldr r3, [r7, #4]
  27972. 800c436: 2201 movs r2, #1
  27973. 800c438: f883 2040 strb.w r2, [r3, #64] @ 0x40
  27974. 800c43c: 687b ldr r3, [r7, #4]
  27975. 800c43e: 2201 movs r2, #1
  27976. 800c440: f883 2041 strb.w r2, [r3, #65] @ 0x41
  27977. 800c444: 687b ldr r3, [r7, #4]
  27978. 800c446: 2201 movs r2, #1
  27979. 800c448: f883 2042 strb.w r2, [r3, #66] @ 0x42
  27980. 800c44c: 687b ldr r3, [r7, #4]
  27981. 800c44e: 2201 movs r2, #1
  27982. 800c450: f883 2043 strb.w r2, [r3, #67] @ 0x43
  27983. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  27984. 800c454: 687b ldr r3, [r7, #4]
  27985. 800c456: 2201 movs r2, #1
  27986. 800c458: f883 2044 strb.w r2, [r3, #68] @ 0x44
  27987. 800c45c: 687b ldr r3, [r7, #4]
  27988. 800c45e: 2201 movs r2, #1
  27989. 800c460: f883 2045 strb.w r2, [r3, #69] @ 0x45
  27990. 800c464: 687b ldr r3, [r7, #4]
  27991. 800c466: 2201 movs r2, #1
  27992. 800c468: f883 2046 strb.w r2, [r3, #70] @ 0x46
  27993. 800c46c: 687b ldr r3, [r7, #4]
  27994. 800c46e: 2201 movs r2, #1
  27995. 800c470: f883 2047 strb.w r2, [r3, #71] @ 0x47
  27996. /* Initialize the TIM state*/
  27997. htim->State = HAL_TIM_STATE_READY;
  27998. 800c474: 687b ldr r3, [r7, #4]
  27999. 800c476: 2201 movs r2, #1
  28000. 800c478: f883 203d strb.w r2, [r3, #61] @ 0x3d
  28001. return HAL_OK;
  28002. 800c47c: 2300 movs r3, #0
  28003. }
  28004. 800c47e: 4618 mov r0, r3
  28005. 800c480: 3708 adds r7, #8
  28006. 800c482: 46bd mov sp, r7
  28007. 800c484: bd80 pop {r7, pc}
  28008. 0800c486 <HAL_TIM_Base_MspInit>:
  28009. * @brief Initializes the TIM Base MSP.
  28010. * @param htim TIM Base handle
  28011. * @retval None
  28012. */
  28013. __weak void HAL_TIM_Base_MspInit(TIM_HandleTypeDef *htim)
  28014. {
  28015. 800c486: b480 push {r7}
  28016. 800c488: b083 sub sp, #12
  28017. 800c48a: af00 add r7, sp, #0
  28018. 800c48c: 6078 str r0, [r7, #4]
  28019. UNUSED(htim);
  28020. /* NOTE : This function should not be modified, when the callback is needed,
  28021. the HAL_TIM_Base_MspInit could be implemented in the user file
  28022. */
  28023. }
  28024. 800c48e: bf00 nop
  28025. 800c490: 370c adds r7, #12
  28026. 800c492: 46bd mov sp, r7
  28027. 800c494: f85d 7b04 ldr.w r7, [sp], #4
  28028. 800c498: 4770 bx lr
  28029. ...
  28030. 0800c49c <HAL_TIM_Base_Start_IT>:
  28031. * @brief Starts the TIM Base generation in interrupt mode.
  28032. * @param htim TIM Base handle
  28033. * @retval HAL status
  28034. */
  28035. HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim)
  28036. {
  28037. 800c49c: b480 push {r7}
  28038. 800c49e: b085 sub sp, #20
  28039. 800c4a0: af00 add r7, sp, #0
  28040. 800c4a2: 6078 str r0, [r7, #4]
  28041. /* Check the parameters */
  28042. assert_param(IS_TIM_INSTANCE(htim->Instance));
  28043. /* Check the TIM state */
  28044. if (htim->State != HAL_TIM_STATE_READY)
  28045. 800c4a4: 687b ldr r3, [r7, #4]
  28046. 800c4a6: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  28047. 800c4aa: b2db uxtb r3, r3
  28048. 800c4ac: 2b01 cmp r3, #1
  28049. 800c4ae: d001 beq.n 800c4b4 <HAL_TIM_Base_Start_IT+0x18>
  28050. {
  28051. return HAL_ERROR;
  28052. 800c4b0: 2301 movs r3, #1
  28053. 800c4b2: e054 b.n 800c55e <HAL_TIM_Base_Start_IT+0xc2>
  28054. }
  28055. /* Set the TIM state */
  28056. htim->State = HAL_TIM_STATE_BUSY;
  28057. 800c4b4: 687b ldr r3, [r7, #4]
  28058. 800c4b6: 2202 movs r2, #2
  28059. 800c4b8: f883 203d strb.w r2, [r3, #61] @ 0x3d
  28060. /* Enable the TIM Update interrupt */
  28061. __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE);
  28062. 800c4bc: 687b ldr r3, [r7, #4]
  28063. 800c4be: 681b ldr r3, [r3, #0]
  28064. 800c4c0: 68da ldr r2, [r3, #12]
  28065. 800c4c2: 687b ldr r3, [r7, #4]
  28066. 800c4c4: 681b ldr r3, [r3, #0]
  28067. 800c4c6: f042 0201 orr.w r2, r2, #1
  28068. 800c4ca: 60da str r2, [r3, #12]
  28069. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  28070. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  28071. 800c4cc: 687b ldr r3, [r7, #4]
  28072. 800c4ce: 681b ldr r3, [r3, #0]
  28073. 800c4d0: 4a26 ldr r2, [pc, #152] @ (800c56c <HAL_TIM_Base_Start_IT+0xd0>)
  28074. 800c4d2: 4293 cmp r3, r2
  28075. 800c4d4: d022 beq.n 800c51c <HAL_TIM_Base_Start_IT+0x80>
  28076. 800c4d6: 687b ldr r3, [r7, #4]
  28077. 800c4d8: 681b ldr r3, [r3, #0]
  28078. 800c4da: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  28079. 800c4de: d01d beq.n 800c51c <HAL_TIM_Base_Start_IT+0x80>
  28080. 800c4e0: 687b ldr r3, [r7, #4]
  28081. 800c4e2: 681b ldr r3, [r3, #0]
  28082. 800c4e4: 4a22 ldr r2, [pc, #136] @ (800c570 <HAL_TIM_Base_Start_IT+0xd4>)
  28083. 800c4e6: 4293 cmp r3, r2
  28084. 800c4e8: d018 beq.n 800c51c <HAL_TIM_Base_Start_IT+0x80>
  28085. 800c4ea: 687b ldr r3, [r7, #4]
  28086. 800c4ec: 681b ldr r3, [r3, #0]
  28087. 800c4ee: 4a21 ldr r2, [pc, #132] @ (800c574 <HAL_TIM_Base_Start_IT+0xd8>)
  28088. 800c4f0: 4293 cmp r3, r2
  28089. 800c4f2: d013 beq.n 800c51c <HAL_TIM_Base_Start_IT+0x80>
  28090. 800c4f4: 687b ldr r3, [r7, #4]
  28091. 800c4f6: 681b ldr r3, [r3, #0]
  28092. 800c4f8: 4a1f ldr r2, [pc, #124] @ (800c578 <HAL_TIM_Base_Start_IT+0xdc>)
  28093. 800c4fa: 4293 cmp r3, r2
  28094. 800c4fc: d00e beq.n 800c51c <HAL_TIM_Base_Start_IT+0x80>
  28095. 800c4fe: 687b ldr r3, [r7, #4]
  28096. 800c500: 681b ldr r3, [r3, #0]
  28097. 800c502: 4a1e ldr r2, [pc, #120] @ (800c57c <HAL_TIM_Base_Start_IT+0xe0>)
  28098. 800c504: 4293 cmp r3, r2
  28099. 800c506: d009 beq.n 800c51c <HAL_TIM_Base_Start_IT+0x80>
  28100. 800c508: 687b ldr r3, [r7, #4]
  28101. 800c50a: 681b ldr r3, [r3, #0]
  28102. 800c50c: 4a1c ldr r2, [pc, #112] @ (800c580 <HAL_TIM_Base_Start_IT+0xe4>)
  28103. 800c50e: 4293 cmp r3, r2
  28104. 800c510: d004 beq.n 800c51c <HAL_TIM_Base_Start_IT+0x80>
  28105. 800c512: 687b ldr r3, [r7, #4]
  28106. 800c514: 681b ldr r3, [r3, #0]
  28107. 800c516: 4a1b ldr r2, [pc, #108] @ (800c584 <HAL_TIM_Base_Start_IT+0xe8>)
  28108. 800c518: 4293 cmp r3, r2
  28109. 800c51a: d115 bne.n 800c548 <HAL_TIM_Base_Start_IT+0xac>
  28110. {
  28111. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  28112. 800c51c: 687b ldr r3, [r7, #4]
  28113. 800c51e: 681b ldr r3, [r3, #0]
  28114. 800c520: 689a ldr r2, [r3, #8]
  28115. 800c522: 4b19 ldr r3, [pc, #100] @ (800c588 <HAL_TIM_Base_Start_IT+0xec>)
  28116. 800c524: 4013 ands r3, r2
  28117. 800c526: 60fb str r3, [r7, #12]
  28118. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  28119. 800c528: 68fb ldr r3, [r7, #12]
  28120. 800c52a: 2b06 cmp r3, #6
  28121. 800c52c: d015 beq.n 800c55a <HAL_TIM_Base_Start_IT+0xbe>
  28122. 800c52e: 68fb ldr r3, [r7, #12]
  28123. 800c530: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  28124. 800c534: d011 beq.n 800c55a <HAL_TIM_Base_Start_IT+0xbe>
  28125. {
  28126. __HAL_TIM_ENABLE(htim);
  28127. 800c536: 687b ldr r3, [r7, #4]
  28128. 800c538: 681b ldr r3, [r3, #0]
  28129. 800c53a: 681a ldr r2, [r3, #0]
  28130. 800c53c: 687b ldr r3, [r7, #4]
  28131. 800c53e: 681b ldr r3, [r3, #0]
  28132. 800c540: f042 0201 orr.w r2, r2, #1
  28133. 800c544: 601a str r2, [r3, #0]
  28134. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  28135. 800c546: e008 b.n 800c55a <HAL_TIM_Base_Start_IT+0xbe>
  28136. }
  28137. }
  28138. else
  28139. {
  28140. __HAL_TIM_ENABLE(htim);
  28141. 800c548: 687b ldr r3, [r7, #4]
  28142. 800c54a: 681b ldr r3, [r3, #0]
  28143. 800c54c: 681a ldr r2, [r3, #0]
  28144. 800c54e: 687b ldr r3, [r7, #4]
  28145. 800c550: 681b ldr r3, [r3, #0]
  28146. 800c552: f042 0201 orr.w r2, r2, #1
  28147. 800c556: 601a str r2, [r3, #0]
  28148. 800c558: e000 b.n 800c55c <HAL_TIM_Base_Start_IT+0xc0>
  28149. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  28150. 800c55a: bf00 nop
  28151. }
  28152. /* Return function status */
  28153. return HAL_OK;
  28154. 800c55c: 2300 movs r3, #0
  28155. }
  28156. 800c55e: 4618 mov r0, r3
  28157. 800c560: 3714 adds r7, #20
  28158. 800c562: 46bd mov sp, r7
  28159. 800c564: f85d 7b04 ldr.w r7, [sp], #4
  28160. 800c568: 4770 bx lr
  28161. 800c56a: bf00 nop
  28162. 800c56c: 40010000 .word 0x40010000
  28163. 800c570: 40000400 .word 0x40000400
  28164. 800c574: 40000800 .word 0x40000800
  28165. 800c578: 40000c00 .word 0x40000c00
  28166. 800c57c: 40010400 .word 0x40010400
  28167. 800c580: 40001800 .word 0x40001800
  28168. 800c584: 40014000 .word 0x40014000
  28169. 800c588: 00010007 .word 0x00010007
  28170. 0800c58c <HAL_TIM_IRQHandler>:
  28171. * @brief This function handles TIM interrupts requests.
  28172. * @param htim TIM handle
  28173. * @retval None
  28174. */
  28175. void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
  28176. {
  28177. 800c58c: b580 push {r7, lr}
  28178. 800c58e: b084 sub sp, #16
  28179. 800c590: af00 add r7, sp, #0
  28180. 800c592: 6078 str r0, [r7, #4]
  28181. uint32_t itsource = htim->Instance->DIER;
  28182. 800c594: 687b ldr r3, [r7, #4]
  28183. 800c596: 681b ldr r3, [r3, #0]
  28184. 800c598: 68db ldr r3, [r3, #12]
  28185. 800c59a: 60fb str r3, [r7, #12]
  28186. uint32_t itflag = htim->Instance->SR;
  28187. 800c59c: 687b ldr r3, [r7, #4]
  28188. 800c59e: 681b ldr r3, [r3, #0]
  28189. 800c5a0: 691b ldr r3, [r3, #16]
  28190. 800c5a2: 60bb str r3, [r7, #8]
  28191. /* Capture compare 1 event */
  28192. if ((itflag & (TIM_FLAG_CC1)) == (TIM_FLAG_CC1))
  28193. 800c5a4: 68bb ldr r3, [r7, #8]
  28194. 800c5a6: f003 0302 and.w r3, r3, #2
  28195. 800c5aa: 2b00 cmp r3, #0
  28196. 800c5ac: d020 beq.n 800c5f0 <HAL_TIM_IRQHandler+0x64>
  28197. {
  28198. if ((itsource & (TIM_IT_CC1)) == (TIM_IT_CC1))
  28199. 800c5ae: 68fb ldr r3, [r7, #12]
  28200. 800c5b0: f003 0302 and.w r3, r3, #2
  28201. 800c5b4: 2b00 cmp r3, #0
  28202. 800c5b6: d01b beq.n 800c5f0 <HAL_TIM_IRQHandler+0x64>
  28203. {
  28204. {
  28205. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC1);
  28206. 800c5b8: 687b ldr r3, [r7, #4]
  28207. 800c5ba: 681b ldr r3, [r3, #0]
  28208. 800c5bc: f06f 0202 mvn.w r2, #2
  28209. 800c5c0: 611a str r2, [r3, #16]
  28210. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
  28211. 800c5c2: 687b ldr r3, [r7, #4]
  28212. 800c5c4: 2201 movs r2, #1
  28213. 800c5c6: 771a strb r2, [r3, #28]
  28214. /* Input capture event */
  28215. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U)
  28216. 800c5c8: 687b ldr r3, [r7, #4]
  28217. 800c5ca: 681b ldr r3, [r3, #0]
  28218. 800c5cc: 699b ldr r3, [r3, #24]
  28219. 800c5ce: f003 0303 and.w r3, r3, #3
  28220. 800c5d2: 2b00 cmp r3, #0
  28221. 800c5d4: d003 beq.n 800c5de <HAL_TIM_IRQHandler+0x52>
  28222. {
  28223. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  28224. htim->IC_CaptureCallback(htim);
  28225. #else
  28226. HAL_TIM_IC_CaptureCallback(htim);
  28227. 800c5d6: 6878 ldr r0, [r7, #4]
  28228. 800c5d8: f000 f8e9 bl 800c7ae <HAL_TIM_IC_CaptureCallback>
  28229. 800c5dc: e005 b.n 800c5ea <HAL_TIM_IRQHandler+0x5e>
  28230. {
  28231. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  28232. htim->OC_DelayElapsedCallback(htim);
  28233. htim->PWM_PulseFinishedCallback(htim);
  28234. #else
  28235. HAL_TIM_OC_DelayElapsedCallback(htim);
  28236. 800c5de: 6878 ldr r0, [r7, #4]
  28237. 800c5e0: f000 f8db bl 800c79a <HAL_TIM_OC_DelayElapsedCallback>
  28238. HAL_TIM_PWM_PulseFinishedCallback(htim);
  28239. 800c5e4: 6878 ldr r0, [r7, #4]
  28240. 800c5e6: f000 f8ec bl 800c7c2 <HAL_TIM_PWM_PulseFinishedCallback>
  28241. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  28242. }
  28243. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  28244. 800c5ea: 687b ldr r3, [r7, #4]
  28245. 800c5ec: 2200 movs r2, #0
  28246. 800c5ee: 771a strb r2, [r3, #28]
  28247. }
  28248. }
  28249. }
  28250. /* Capture compare 2 event */
  28251. if ((itflag & (TIM_FLAG_CC2)) == (TIM_FLAG_CC2))
  28252. 800c5f0: 68bb ldr r3, [r7, #8]
  28253. 800c5f2: f003 0304 and.w r3, r3, #4
  28254. 800c5f6: 2b00 cmp r3, #0
  28255. 800c5f8: d020 beq.n 800c63c <HAL_TIM_IRQHandler+0xb0>
  28256. {
  28257. if ((itsource & (TIM_IT_CC2)) == (TIM_IT_CC2))
  28258. 800c5fa: 68fb ldr r3, [r7, #12]
  28259. 800c5fc: f003 0304 and.w r3, r3, #4
  28260. 800c600: 2b00 cmp r3, #0
  28261. 800c602: d01b beq.n 800c63c <HAL_TIM_IRQHandler+0xb0>
  28262. {
  28263. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC2);
  28264. 800c604: 687b ldr r3, [r7, #4]
  28265. 800c606: 681b ldr r3, [r3, #0]
  28266. 800c608: f06f 0204 mvn.w r2, #4
  28267. 800c60c: 611a str r2, [r3, #16]
  28268. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
  28269. 800c60e: 687b ldr r3, [r7, #4]
  28270. 800c610: 2202 movs r2, #2
  28271. 800c612: 771a strb r2, [r3, #28]
  28272. /* Input capture event */
  28273. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
  28274. 800c614: 687b ldr r3, [r7, #4]
  28275. 800c616: 681b ldr r3, [r3, #0]
  28276. 800c618: 699b ldr r3, [r3, #24]
  28277. 800c61a: f403 7340 and.w r3, r3, #768 @ 0x300
  28278. 800c61e: 2b00 cmp r3, #0
  28279. 800c620: d003 beq.n 800c62a <HAL_TIM_IRQHandler+0x9e>
  28280. {
  28281. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  28282. htim->IC_CaptureCallback(htim);
  28283. #else
  28284. HAL_TIM_IC_CaptureCallback(htim);
  28285. 800c622: 6878 ldr r0, [r7, #4]
  28286. 800c624: f000 f8c3 bl 800c7ae <HAL_TIM_IC_CaptureCallback>
  28287. 800c628: e005 b.n 800c636 <HAL_TIM_IRQHandler+0xaa>
  28288. {
  28289. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  28290. htim->OC_DelayElapsedCallback(htim);
  28291. htim->PWM_PulseFinishedCallback(htim);
  28292. #else
  28293. HAL_TIM_OC_DelayElapsedCallback(htim);
  28294. 800c62a: 6878 ldr r0, [r7, #4]
  28295. 800c62c: f000 f8b5 bl 800c79a <HAL_TIM_OC_DelayElapsedCallback>
  28296. HAL_TIM_PWM_PulseFinishedCallback(htim);
  28297. 800c630: 6878 ldr r0, [r7, #4]
  28298. 800c632: f000 f8c6 bl 800c7c2 <HAL_TIM_PWM_PulseFinishedCallback>
  28299. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  28300. }
  28301. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  28302. 800c636: 687b ldr r3, [r7, #4]
  28303. 800c638: 2200 movs r2, #0
  28304. 800c63a: 771a strb r2, [r3, #28]
  28305. }
  28306. }
  28307. /* Capture compare 3 event */
  28308. if ((itflag & (TIM_FLAG_CC3)) == (TIM_FLAG_CC3))
  28309. 800c63c: 68bb ldr r3, [r7, #8]
  28310. 800c63e: f003 0308 and.w r3, r3, #8
  28311. 800c642: 2b00 cmp r3, #0
  28312. 800c644: d020 beq.n 800c688 <HAL_TIM_IRQHandler+0xfc>
  28313. {
  28314. if ((itsource & (TIM_IT_CC3)) == (TIM_IT_CC3))
  28315. 800c646: 68fb ldr r3, [r7, #12]
  28316. 800c648: f003 0308 and.w r3, r3, #8
  28317. 800c64c: 2b00 cmp r3, #0
  28318. 800c64e: d01b beq.n 800c688 <HAL_TIM_IRQHandler+0xfc>
  28319. {
  28320. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC3);
  28321. 800c650: 687b ldr r3, [r7, #4]
  28322. 800c652: 681b ldr r3, [r3, #0]
  28323. 800c654: f06f 0208 mvn.w r2, #8
  28324. 800c658: 611a str r2, [r3, #16]
  28325. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
  28326. 800c65a: 687b ldr r3, [r7, #4]
  28327. 800c65c: 2204 movs r2, #4
  28328. 800c65e: 771a strb r2, [r3, #28]
  28329. /* Input capture event */
  28330. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
  28331. 800c660: 687b ldr r3, [r7, #4]
  28332. 800c662: 681b ldr r3, [r3, #0]
  28333. 800c664: 69db ldr r3, [r3, #28]
  28334. 800c666: f003 0303 and.w r3, r3, #3
  28335. 800c66a: 2b00 cmp r3, #0
  28336. 800c66c: d003 beq.n 800c676 <HAL_TIM_IRQHandler+0xea>
  28337. {
  28338. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  28339. htim->IC_CaptureCallback(htim);
  28340. #else
  28341. HAL_TIM_IC_CaptureCallback(htim);
  28342. 800c66e: 6878 ldr r0, [r7, #4]
  28343. 800c670: f000 f89d bl 800c7ae <HAL_TIM_IC_CaptureCallback>
  28344. 800c674: e005 b.n 800c682 <HAL_TIM_IRQHandler+0xf6>
  28345. {
  28346. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  28347. htim->OC_DelayElapsedCallback(htim);
  28348. htim->PWM_PulseFinishedCallback(htim);
  28349. #else
  28350. HAL_TIM_OC_DelayElapsedCallback(htim);
  28351. 800c676: 6878 ldr r0, [r7, #4]
  28352. 800c678: f000 f88f bl 800c79a <HAL_TIM_OC_DelayElapsedCallback>
  28353. HAL_TIM_PWM_PulseFinishedCallback(htim);
  28354. 800c67c: 6878 ldr r0, [r7, #4]
  28355. 800c67e: f000 f8a0 bl 800c7c2 <HAL_TIM_PWM_PulseFinishedCallback>
  28356. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  28357. }
  28358. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  28359. 800c682: 687b ldr r3, [r7, #4]
  28360. 800c684: 2200 movs r2, #0
  28361. 800c686: 771a strb r2, [r3, #28]
  28362. }
  28363. }
  28364. /* Capture compare 4 event */
  28365. if ((itflag & (TIM_FLAG_CC4)) == (TIM_FLAG_CC4))
  28366. 800c688: 68bb ldr r3, [r7, #8]
  28367. 800c68a: f003 0310 and.w r3, r3, #16
  28368. 800c68e: 2b00 cmp r3, #0
  28369. 800c690: d020 beq.n 800c6d4 <HAL_TIM_IRQHandler+0x148>
  28370. {
  28371. if ((itsource & (TIM_IT_CC4)) == (TIM_IT_CC4))
  28372. 800c692: 68fb ldr r3, [r7, #12]
  28373. 800c694: f003 0310 and.w r3, r3, #16
  28374. 800c698: 2b00 cmp r3, #0
  28375. 800c69a: d01b beq.n 800c6d4 <HAL_TIM_IRQHandler+0x148>
  28376. {
  28377. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC4);
  28378. 800c69c: 687b ldr r3, [r7, #4]
  28379. 800c69e: 681b ldr r3, [r3, #0]
  28380. 800c6a0: f06f 0210 mvn.w r2, #16
  28381. 800c6a4: 611a str r2, [r3, #16]
  28382. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
  28383. 800c6a6: 687b ldr r3, [r7, #4]
  28384. 800c6a8: 2208 movs r2, #8
  28385. 800c6aa: 771a strb r2, [r3, #28]
  28386. /* Input capture event */
  28387. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
  28388. 800c6ac: 687b ldr r3, [r7, #4]
  28389. 800c6ae: 681b ldr r3, [r3, #0]
  28390. 800c6b0: 69db ldr r3, [r3, #28]
  28391. 800c6b2: f403 7340 and.w r3, r3, #768 @ 0x300
  28392. 800c6b6: 2b00 cmp r3, #0
  28393. 800c6b8: d003 beq.n 800c6c2 <HAL_TIM_IRQHandler+0x136>
  28394. {
  28395. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  28396. htim->IC_CaptureCallback(htim);
  28397. #else
  28398. HAL_TIM_IC_CaptureCallback(htim);
  28399. 800c6ba: 6878 ldr r0, [r7, #4]
  28400. 800c6bc: f000 f877 bl 800c7ae <HAL_TIM_IC_CaptureCallback>
  28401. 800c6c0: e005 b.n 800c6ce <HAL_TIM_IRQHandler+0x142>
  28402. {
  28403. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  28404. htim->OC_DelayElapsedCallback(htim);
  28405. htim->PWM_PulseFinishedCallback(htim);
  28406. #else
  28407. HAL_TIM_OC_DelayElapsedCallback(htim);
  28408. 800c6c2: 6878 ldr r0, [r7, #4]
  28409. 800c6c4: f000 f869 bl 800c79a <HAL_TIM_OC_DelayElapsedCallback>
  28410. HAL_TIM_PWM_PulseFinishedCallback(htim);
  28411. 800c6c8: 6878 ldr r0, [r7, #4]
  28412. 800c6ca: f000 f87a bl 800c7c2 <HAL_TIM_PWM_PulseFinishedCallback>
  28413. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  28414. }
  28415. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  28416. 800c6ce: 687b ldr r3, [r7, #4]
  28417. 800c6d0: 2200 movs r2, #0
  28418. 800c6d2: 771a strb r2, [r3, #28]
  28419. }
  28420. }
  28421. /* TIM Update event */
  28422. if ((itflag & (TIM_FLAG_UPDATE)) == (TIM_FLAG_UPDATE))
  28423. 800c6d4: 68bb ldr r3, [r7, #8]
  28424. 800c6d6: f003 0301 and.w r3, r3, #1
  28425. 800c6da: 2b00 cmp r3, #0
  28426. 800c6dc: d00c beq.n 800c6f8 <HAL_TIM_IRQHandler+0x16c>
  28427. {
  28428. if ((itsource & (TIM_IT_UPDATE)) == (TIM_IT_UPDATE))
  28429. 800c6de: 68fb ldr r3, [r7, #12]
  28430. 800c6e0: f003 0301 and.w r3, r3, #1
  28431. 800c6e4: 2b00 cmp r3, #0
  28432. 800c6e6: d007 beq.n 800c6f8 <HAL_TIM_IRQHandler+0x16c>
  28433. {
  28434. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_UPDATE);
  28435. 800c6e8: 687b ldr r3, [r7, #4]
  28436. 800c6ea: 681b ldr r3, [r3, #0]
  28437. 800c6ec: f06f 0201 mvn.w r2, #1
  28438. 800c6f0: 611a str r2, [r3, #16]
  28439. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  28440. htim->PeriodElapsedCallback(htim);
  28441. #else
  28442. HAL_TIM_PeriodElapsedCallback(htim);
  28443. 800c6f2: 6878 ldr r0, [r7, #4]
  28444. 800c6f4: f7f5 fd92 bl 800221c <HAL_TIM_PeriodElapsedCallback>
  28445. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  28446. }
  28447. }
  28448. /* TIM Break input event */
  28449. if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
  28450. 800c6f8: 68bb ldr r3, [r7, #8]
  28451. 800c6fa: f003 0380 and.w r3, r3, #128 @ 0x80
  28452. 800c6fe: 2b00 cmp r3, #0
  28453. 800c700: d104 bne.n 800c70c <HAL_TIM_IRQHandler+0x180>
  28454. ((itflag & (TIM_FLAG_SYSTEM_BREAK)) == (TIM_FLAG_SYSTEM_BREAK)))
  28455. 800c702: 68bb ldr r3, [r7, #8]
  28456. 800c704: f403 5300 and.w r3, r3, #8192 @ 0x2000
  28457. if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
  28458. 800c708: 2b00 cmp r3, #0
  28459. 800c70a: d00c beq.n 800c726 <HAL_TIM_IRQHandler+0x19a>
  28460. {
  28461. if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
  28462. 800c70c: 68fb ldr r3, [r7, #12]
  28463. 800c70e: f003 0380 and.w r3, r3, #128 @ 0x80
  28464. 800c712: 2b00 cmp r3, #0
  28465. 800c714: d007 beq.n 800c726 <HAL_TIM_IRQHandler+0x19a>
  28466. {
  28467. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK | TIM_FLAG_SYSTEM_BREAK);
  28468. 800c716: 687b ldr r3, [r7, #4]
  28469. 800c718: 681b ldr r3, [r3, #0]
  28470. 800c71a: f46f 5202 mvn.w r2, #8320 @ 0x2080
  28471. 800c71e: 611a str r2, [r3, #16]
  28472. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  28473. htim->BreakCallback(htim);
  28474. #else
  28475. HAL_TIMEx_BreakCallback(htim);
  28476. 800c720: 6878 ldr r0, [r7, #4]
  28477. 800c722: f000 f913 bl 800c94c <HAL_TIMEx_BreakCallback>
  28478. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  28479. }
  28480. }
  28481. /* TIM Break2 input event */
  28482. if ((itflag & (TIM_FLAG_BREAK2)) == (TIM_FLAG_BREAK2))
  28483. 800c726: 68bb ldr r3, [r7, #8]
  28484. 800c728: f403 7380 and.w r3, r3, #256 @ 0x100
  28485. 800c72c: 2b00 cmp r3, #0
  28486. 800c72e: d00c beq.n 800c74a <HAL_TIM_IRQHandler+0x1be>
  28487. {
  28488. if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
  28489. 800c730: 68fb ldr r3, [r7, #12]
  28490. 800c732: f003 0380 and.w r3, r3, #128 @ 0x80
  28491. 800c736: 2b00 cmp r3, #0
  28492. 800c738: d007 beq.n 800c74a <HAL_TIM_IRQHandler+0x1be>
  28493. {
  28494. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK2);
  28495. 800c73a: 687b ldr r3, [r7, #4]
  28496. 800c73c: 681b ldr r3, [r3, #0]
  28497. 800c73e: f46f 7280 mvn.w r2, #256 @ 0x100
  28498. 800c742: 611a str r2, [r3, #16]
  28499. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  28500. htim->Break2Callback(htim);
  28501. #else
  28502. HAL_TIMEx_Break2Callback(htim);
  28503. 800c744: 6878 ldr r0, [r7, #4]
  28504. 800c746: f000 f90b bl 800c960 <HAL_TIMEx_Break2Callback>
  28505. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  28506. }
  28507. }
  28508. /* TIM Trigger detection event */
  28509. if ((itflag & (TIM_FLAG_TRIGGER)) == (TIM_FLAG_TRIGGER))
  28510. 800c74a: 68bb ldr r3, [r7, #8]
  28511. 800c74c: f003 0340 and.w r3, r3, #64 @ 0x40
  28512. 800c750: 2b00 cmp r3, #0
  28513. 800c752: d00c beq.n 800c76e <HAL_TIM_IRQHandler+0x1e2>
  28514. {
  28515. if ((itsource & (TIM_IT_TRIGGER)) == (TIM_IT_TRIGGER))
  28516. 800c754: 68fb ldr r3, [r7, #12]
  28517. 800c756: f003 0340 and.w r3, r3, #64 @ 0x40
  28518. 800c75a: 2b00 cmp r3, #0
  28519. 800c75c: d007 beq.n 800c76e <HAL_TIM_IRQHandler+0x1e2>
  28520. {
  28521. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_TRIGGER);
  28522. 800c75e: 687b ldr r3, [r7, #4]
  28523. 800c760: 681b ldr r3, [r3, #0]
  28524. 800c762: f06f 0240 mvn.w r2, #64 @ 0x40
  28525. 800c766: 611a str r2, [r3, #16]
  28526. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  28527. htim->TriggerCallback(htim);
  28528. #else
  28529. HAL_TIM_TriggerCallback(htim);
  28530. 800c768: 6878 ldr r0, [r7, #4]
  28531. 800c76a: f000 f834 bl 800c7d6 <HAL_TIM_TriggerCallback>
  28532. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  28533. }
  28534. }
  28535. /* TIM commutation event */
  28536. if ((itflag & (TIM_FLAG_COM)) == (TIM_FLAG_COM))
  28537. 800c76e: 68bb ldr r3, [r7, #8]
  28538. 800c770: f003 0320 and.w r3, r3, #32
  28539. 800c774: 2b00 cmp r3, #0
  28540. 800c776: d00c beq.n 800c792 <HAL_TIM_IRQHandler+0x206>
  28541. {
  28542. if ((itsource & (TIM_IT_COM)) == (TIM_IT_COM))
  28543. 800c778: 68fb ldr r3, [r7, #12]
  28544. 800c77a: f003 0320 and.w r3, r3, #32
  28545. 800c77e: 2b00 cmp r3, #0
  28546. 800c780: d007 beq.n 800c792 <HAL_TIM_IRQHandler+0x206>
  28547. {
  28548. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_COM);
  28549. 800c782: 687b ldr r3, [r7, #4]
  28550. 800c784: 681b ldr r3, [r3, #0]
  28551. 800c786: f06f 0220 mvn.w r2, #32
  28552. 800c78a: 611a str r2, [r3, #16]
  28553. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  28554. htim->CommutationCallback(htim);
  28555. #else
  28556. HAL_TIMEx_CommutCallback(htim);
  28557. 800c78c: 6878 ldr r0, [r7, #4]
  28558. 800c78e: f000 f8d3 bl 800c938 <HAL_TIMEx_CommutCallback>
  28559. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  28560. }
  28561. }
  28562. }
  28563. 800c792: bf00 nop
  28564. 800c794: 3710 adds r7, #16
  28565. 800c796: 46bd mov sp, r7
  28566. 800c798: bd80 pop {r7, pc}
  28567. 0800c79a <HAL_TIM_OC_DelayElapsedCallback>:
  28568. * @brief Output Compare callback in non-blocking mode
  28569. * @param htim TIM OC handle
  28570. * @retval None
  28571. */
  28572. __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim)
  28573. {
  28574. 800c79a: b480 push {r7}
  28575. 800c79c: b083 sub sp, #12
  28576. 800c79e: af00 add r7, sp, #0
  28577. 800c7a0: 6078 str r0, [r7, #4]
  28578. UNUSED(htim);
  28579. /* NOTE : This function should not be modified, when the callback is needed,
  28580. the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file
  28581. */
  28582. }
  28583. 800c7a2: bf00 nop
  28584. 800c7a4: 370c adds r7, #12
  28585. 800c7a6: 46bd mov sp, r7
  28586. 800c7a8: f85d 7b04 ldr.w r7, [sp], #4
  28587. 800c7ac: 4770 bx lr
  28588. 0800c7ae <HAL_TIM_IC_CaptureCallback>:
  28589. * @brief Input Capture callback in non-blocking mode
  28590. * @param htim TIM IC handle
  28591. * @retval None
  28592. */
  28593. __weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim)
  28594. {
  28595. 800c7ae: b480 push {r7}
  28596. 800c7b0: b083 sub sp, #12
  28597. 800c7b2: af00 add r7, sp, #0
  28598. 800c7b4: 6078 str r0, [r7, #4]
  28599. UNUSED(htim);
  28600. /* NOTE : This function should not be modified, when the callback is needed,
  28601. the HAL_TIM_IC_CaptureCallback could be implemented in the user file
  28602. */
  28603. }
  28604. 800c7b6: bf00 nop
  28605. 800c7b8: 370c adds r7, #12
  28606. 800c7ba: 46bd mov sp, r7
  28607. 800c7bc: f85d 7b04 ldr.w r7, [sp], #4
  28608. 800c7c0: 4770 bx lr
  28609. 0800c7c2 <HAL_TIM_PWM_PulseFinishedCallback>:
  28610. * @brief PWM Pulse finished callback in non-blocking mode
  28611. * @param htim TIM handle
  28612. * @retval None
  28613. */
  28614. __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim)
  28615. {
  28616. 800c7c2: b480 push {r7}
  28617. 800c7c4: b083 sub sp, #12
  28618. 800c7c6: af00 add r7, sp, #0
  28619. 800c7c8: 6078 str r0, [r7, #4]
  28620. UNUSED(htim);
  28621. /* NOTE : This function should not be modified, when the callback is needed,
  28622. the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file
  28623. */
  28624. }
  28625. 800c7ca: bf00 nop
  28626. 800c7cc: 370c adds r7, #12
  28627. 800c7ce: 46bd mov sp, r7
  28628. 800c7d0: f85d 7b04 ldr.w r7, [sp], #4
  28629. 800c7d4: 4770 bx lr
  28630. 0800c7d6 <HAL_TIM_TriggerCallback>:
  28631. * @brief Hall Trigger detection callback in non-blocking mode
  28632. * @param htim TIM handle
  28633. * @retval None
  28634. */
  28635. __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim)
  28636. {
  28637. 800c7d6: b480 push {r7}
  28638. 800c7d8: b083 sub sp, #12
  28639. 800c7da: af00 add r7, sp, #0
  28640. 800c7dc: 6078 str r0, [r7, #4]
  28641. UNUSED(htim);
  28642. /* NOTE : This function should not be modified, when the callback is needed,
  28643. the HAL_TIM_TriggerCallback could be implemented in the user file
  28644. */
  28645. }
  28646. 800c7de: bf00 nop
  28647. 800c7e0: 370c adds r7, #12
  28648. 800c7e2: 46bd mov sp, r7
  28649. 800c7e4: f85d 7b04 ldr.w r7, [sp], #4
  28650. 800c7e8: 4770 bx lr
  28651. ...
  28652. 0800c7ec <TIM_Base_SetConfig>:
  28653. * @param TIMx TIM peripheral
  28654. * @param Structure TIM Base configuration structure
  28655. * @retval None
  28656. */
  28657. void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure)
  28658. {
  28659. 800c7ec: b480 push {r7}
  28660. 800c7ee: b085 sub sp, #20
  28661. 800c7f0: af00 add r7, sp, #0
  28662. 800c7f2: 6078 str r0, [r7, #4]
  28663. 800c7f4: 6039 str r1, [r7, #0]
  28664. uint32_t tmpcr1;
  28665. tmpcr1 = TIMx->CR1;
  28666. 800c7f6: 687b ldr r3, [r7, #4]
  28667. 800c7f8: 681b ldr r3, [r3, #0]
  28668. 800c7fa: 60fb str r3, [r7, #12]
  28669. /* Set TIM Time Base Unit parameters ---------------------------------------*/
  28670. if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
  28671. 800c7fc: 687b ldr r3, [r7, #4]
  28672. 800c7fe: 4a46 ldr r2, [pc, #280] @ (800c918 <TIM_Base_SetConfig+0x12c>)
  28673. 800c800: 4293 cmp r3, r2
  28674. 800c802: d013 beq.n 800c82c <TIM_Base_SetConfig+0x40>
  28675. 800c804: 687b ldr r3, [r7, #4]
  28676. 800c806: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  28677. 800c80a: d00f beq.n 800c82c <TIM_Base_SetConfig+0x40>
  28678. 800c80c: 687b ldr r3, [r7, #4]
  28679. 800c80e: 4a43 ldr r2, [pc, #268] @ (800c91c <TIM_Base_SetConfig+0x130>)
  28680. 800c810: 4293 cmp r3, r2
  28681. 800c812: d00b beq.n 800c82c <TIM_Base_SetConfig+0x40>
  28682. 800c814: 687b ldr r3, [r7, #4]
  28683. 800c816: 4a42 ldr r2, [pc, #264] @ (800c920 <TIM_Base_SetConfig+0x134>)
  28684. 800c818: 4293 cmp r3, r2
  28685. 800c81a: d007 beq.n 800c82c <TIM_Base_SetConfig+0x40>
  28686. 800c81c: 687b ldr r3, [r7, #4]
  28687. 800c81e: 4a41 ldr r2, [pc, #260] @ (800c924 <TIM_Base_SetConfig+0x138>)
  28688. 800c820: 4293 cmp r3, r2
  28689. 800c822: d003 beq.n 800c82c <TIM_Base_SetConfig+0x40>
  28690. 800c824: 687b ldr r3, [r7, #4]
  28691. 800c826: 4a40 ldr r2, [pc, #256] @ (800c928 <TIM_Base_SetConfig+0x13c>)
  28692. 800c828: 4293 cmp r3, r2
  28693. 800c82a: d108 bne.n 800c83e <TIM_Base_SetConfig+0x52>
  28694. {
  28695. /* Select the Counter Mode */
  28696. tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
  28697. 800c82c: 68fb ldr r3, [r7, #12]
  28698. 800c82e: f023 0370 bic.w r3, r3, #112 @ 0x70
  28699. 800c832: 60fb str r3, [r7, #12]
  28700. tmpcr1 |= Structure->CounterMode;
  28701. 800c834: 683b ldr r3, [r7, #0]
  28702. 800c836: 685b ldr r3, [r3, #4]
  28703. 800c838: 68fa ldr r2, [r7, #12]
  28704. 800c83a: 4313 orrs r3, r2
  28705. 800c83c: 60fb str r3, [r7, #12]
  28706. }
  28707. if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
  28708. 800c83e: 687b ldr r3, [r7, #4]
  28709. 800c840: 4a35 ldr r2, [pc, #212] @ (800c918 <TIM_Base_SetConfig+0x12c>)
  28710. 800c842: 4293 cmp r3, r2
  28711. 800c844: d01f beq.n 800c886 <TIM_Base_SetConfig+0x9a>
  28712. 800c846: 687b ldr r3, [r7, #4]
  28713. 800c848: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  28714. 800c84c: d01b beq.n 800c886 <TIM_Base_SetConfig+0x9a>
  28715. 800c84e: 687b ldr r3, [r7, #4]
  28716. 800c850: 4a32 ldr r2, [pc, #200] @ (800c91c <TIM_Base_SetConfig+0x130>)
  28717. 800c852: 4293 cmp r3, r2
  28718. 800c854: d017 beq.n 800c886 <TIM_Base_SetConfig+0x9a>
  28719. 800c856: 687b ldr r3, [r7, #4]
  28720. 800c858: 4a31 ldr r2, [pc, #196] @ (800c920 <TIM_Base_SetConfig+0x134>)
  28721. 800c85a: 4293 cmp r3, r2
  28722. 800c85c: d013 beq.n 800c886 <TIM_Base_SetConfig+0x9a>
  28723. 800c85e: 687b ldr r3, [r7, #4]
  28724. 800c860: 4a30 ldr r2, [pc, #192] @ (800c924 <TIM_Base_SetConfig+0x138>)
  28725. 800c862: 4293 cmp r3, r2
  28726. 800c864: d00f beq.n 800c886 <TIM_Base_SetConfig+0x9a>
  28727. 800c866: 687b ldr r3, [r7, #4]
  28728. 800c868: 4a2f ldr r2, [pc, #188] @ (800c928 <TIM_Base_SetConfig+0x13c>)
  28729. 800c86a: 4293 cmp r3, r2
  28730. 800c86c: d00b beq.n 800c886 <TIM_Base_SetConfig+0x9a>
  28731. 800c86e: 687b ldr r3, [r7, #4]
  28732. 800c870: 4a2e ldr r2, [pc, #184] @ (800c92c <TIM_Base_SetConfig+0x140>)
  28733. 800c872: 4293 cmp r3, r2
  28734. 800c874: d007 beq.n 800c886 <TIM_Base_SetConfig+0x9a>
  28735. 800c876: 687b ldr r3, [r7, #4]
  28736. 800c878: 4a2d ldr r2, [pc, #180] @ (800c930 <TIM_Base_SetConfig+0x144>)
  28737. 800c87a: 4293 cmp r3, r2
  28738. 800c87c: d003 beq.n 800c886 <TIM_Base_SetConfig+0x9a>
  28739. 800c87e: 687b ldr r3, [r7, #4]
  28740. 800c880: 4a2c ldr r2, [pc, #176] @ (800c934 <TIM_Base_SetConfig+0x148>)
  28741. 800c882: 4293 cmp r3, r2
  28742. 800c884: d108 bne.n 800c898 <TIM_Base_SetConfig+0xac>
  28743. {
  28744. /* Set the clock division */
  28745. tmpcr1 &= ~TIM_CR1_CKD;
  28746. 800c886: 68fb ldr r3, [r7, #12]
  28747. 800c888: f423 7340 bic.w r3, r3, #768 @ 0x300
  28748. 800c88c: 60fb str r3, [r7, #12]
  28749. tmpcr1 |= (uint32_t)Structure->ClockDivision;
  28750. 800c88e: 683b ldr r3, [r7, #0]
  28751. 800c890: 68db ldr r3, [r3, #12]
  28752. 800c892: 68fa ldr r2, [r7, #12]
  28753. 800c894: 4313 orrs r3, r2
  28754. 800c896: 60fb str r3, [r7, #12]
  28755. }
  28756. /* Set the auto-reload preload */
  28757. MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload);
  28758. 800c898: 68fb ldr r3, [r7, #12]
  28759. 800c89a: f023 0280 bic.w r2, r3, #128 @ 0x80
  28760. 800c89e: 683b ldr r3, [r7, #0]
  28761. 800c8a0: 695b ldr r3, [r3, #20]
  28762. 800c8a2: 4313 orrs r3, r2
  28763. 800c8a4: 60fb str r3, [r7, #12]
  28764. TIMx->CR1 = tmpcr1;
  28765. 800c8a6: 687b ldr r3, [r7, #4]
  28766. 800c8a8: 68fa ldr r2, [r7, #12]
  28767. 800c8aa: 601a str r2, [r3, #0]
  28768. /* Set the Autoreload value */
  28769. TIMx->ARR = (uint32_t)Structure->Period ;
  28770. 800c8ac: 683b ldr r3, [r7, #0]
  28771. 800c8ae: 689a ldr r2, [r3, #8]
  28772. 800c8b0: 687b ldr r3, [r7, #4]
  28773. 800c8b2: 62da str r2, [r3, #44] @ 0x2c
  28774. /* Set the Prescaler value */
  28775. TIMx->PSC = Structure->Prescaler;
  28776. 800c8b4: 683b ldr r3, [r7, #0]
  28777. 800c8b6: 681a ldr r2, [r3, #0]
  28778. 800c8b8: 687b ldr r3, [r7, #4]
  28779. 800c8ba: 629a str r2, [r3, #40] @ 0x28
  28780. if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx))
  28781. 800c8bc: 687b ldr r3, [r7, #4]
  28782. 800c8be: 4a16 ldr r2, [pc, #88] @ (800c918 <TIM_Base_SetConfig+0x12c>)
  28783. 800c8c0: 4293 cmp r3, r2
  28784. 800c8c2: d00f beq.n 800c8e4 <TIM_Base_SetConfig+0xf8>
  28785. 800c8c4: 687b ldr r3, [r7, #4]
  28786. 800c8c6: 4a18 ldr r2, [pc, #96] @ (800c928 <TIM_Base_SetConfig+0x13c>)
  28787. 800c8c8: 4293 cmp r3, r2
  28788. 800c8ca: d00b beq.n 800c8e4 <TIM_Base_SetConfig+0xf8>
  28789. 800c8cc: 687b ldr r3, [r7, #4]
  28790. 800c8ce: 4a17 ldr r2, [pc, #92] @ (800c92c <TIM_Base_SetConfig+0x140>)
  28791. 800c8d0: 4293 cmp r3, r2
  28792. 800c8d2: d007 beq.n 800c8e4 <TIM_Base_SetConfig+0xf8>
  28793. 800c8d4: 687b ldr r3, [r7, #4]
  28794. 800c8d6: 4a16 ldr r2, [pc, #88] @ (800c930 <TIM_Base_SetConfig+0x144>)
  28795. 800c8d8: 4293 cmp r3, r2
  28796. 800c8da: d003 beq.n 800c8e4 <TIM_Base_SetConfig+0xf8>
  28797. 800c8dc: 687b ldr r3, [r7, #4]
  28798. 800c8de: 4a15 ldr r2, [pc, #84] @ (800c934 <TIM_Base_SetConfig+0x148>)
  28799. 800c8e0: 4293 cmp r3, r2
  28800. 800c8e2: d103 bne.n 800c8ec <TIM_Base_SetConfig+0x100>
  28801. {
  28802. /* Set the Repetition Counter value */
  28803. TIMx->RCR = Structure->RepetitionCounter;
  28804. 800c8e4: 683b ldr r3, [r7, #0]
  28805. 800c8e6: 691a ldr r2, [r3, #16]
  28806. 800c8e8: 687b ldr r3, [r7, #4]
  28807. 800c8ea: 631a str r2, [r3, #48] @ 0x30
  28808. }
  28809. /* Generate an update event to reload the Prescaler
  28810. and the repetition counter (only for advanced timer) value immediately */
  28811. TIMx->EGR = TIM_EGR_UG;
  28812. 800c8ec: 687b ldr r3, [r7, #4]
  28813. 800c8ee: 2201 movs r2, #1
  28814. 800c8f0: 615a str r2, [r3, #20]
  28815. /* Check if the update flag is set after the Update Generation, if so clear the UIF flag */
  28816. if (HAL_IS_BIT_SET(TIMx->SR, TIM_FLAG_UPDATE))
  28817. 800c8f2: 687b ldr r3, [r7, #4]
  28818. 800c8f4: 691b ldr r3, [r3, #16]
  28819. 800c8f6: f003 0301 and.w r3, r3, #1
  28820. 800c8fa: 2b01 cmp r3, #1
  28821. 800c8fc: d105 bne.n 800c90a <TIM_Base_SetConfig+0x11e>
  28822. {
  28823. /* Clear the update flag */
  28824. CLEAR_BIT(TIMx->SR, TIM_FLAG_UPDATE);
  28825. 800c8fe: 687b ldr r3, [r7, #4]
  28826. 800c900: 691b ldr r3, [r3, #16]
  28827. 800c902: f023 0201 bic.w r2, r3, #1
  28828. 800c906: 687b ldr r3, [r7, #4]
  28829. 800c908: 611a str r2, [r3, #16]
  28830. }
  28831. }
  28832. 800c90a: bf00 nop
  28833. 800c90c: 3714 adds r7, #20
  28834. 800c90e: 46bd mov sp, r7
  28835. 800c910: f85d 7b04 ldr.w r7, [sp], #4
  28836. 800c914: 4770 bx lr
  28837. 800c916: bf00 nop
  28838. 800c918: 40010000 .word 0x40010000
  28839. 800c91c: 40000400 .word 0x40000400
  28840. 800c920: 40000800 .word 0x40000800
  28841. 800c924: 40000c00 .word 0x40000c00
  28842. 800c928: 40010400 .word 0x40010400
  28843. 800c92c: 40014000 .word 0x40014000
  28844. 800c930: 40014400 .word 0x40014400
  28845. 800c934: 40014800 .word 0x40014800
  28846. 0800c938 <HAL_TIMEx_CommutCallback>:
  28847. * @brief Commutation callback in non-blocking mode
  28848. * @param htim TIM handle
  28849. * @retval None
  28850. */
  28851. __weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim)
  28852. {
  28853. 800c938: b480 push {r7}
  28854. 800c93a: b083 sub sp, #12
  28855. 800c93c: af00 add r7, sp, #0
  28856. 800c93e: 6078 str r0, [r7, #4]
  28857. UNUSED(htim);
  28858. /* NOTE : This function should not be modified, when the callback is needed,
  28859. the HAL_TIMEx_CommutCallback could be implemented in the user file
  28860. */
  28861. }
  28862. 800c940: bf00 nop
  28863. 800c942: 370c adds r7, #12
  28864. 800c944: 46bd mov sp, r7
  28865. 800c946: f85d 7b04 ldr.w r7, [sp], #4
  28866. 800c94a: 4770 bx lr
  28867. 0800c94c <HAL_TIMEx_BreakCallback>:
  28868. * @brief Break detection callback in non-blocking mode
  28869. * @param htim TIM handle
  28870. * @retval None
  28871. */
  28872. __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim)
  28873. {
  28874. 800c94c: b480 push {r7}
  28875. 800c94e: b083 sub sp, #12
  28876. 800c950: af00 add r7, sp, #0
  28877. 800c952: 6078 str r0, [r7, #4]
  28878. UNUSED(htim);
  28879. /* NOTE : This function should not be modified, when the callback is needed,
  28880. the HAL_TIMEx_BreakCallback could be implemented in the user file
  28881. */
  28882. }
  28883. 800c954: bf00 nop
  28884. 800c956: 370c adds r7, #12
  28885. 800c958: 46bd mov sp, r7
  28886. 800c95a: f85d 7b04 ldr.w r7, [sp], #4
  28887. 800c95e: 4770 bx lr
  28888. 0800c960 <HAL_TIMEx_Break2Callback>:
  28889. * @brief Break2 detection callback in non blocking mode
  28890. * @param htim: TIM handle
  28891. * @retval None
  28892. */
  28893. __weak void HAL_TIMEx_Break2Callback(TIM_HandleTypeDef *htim)
  28894. {
  28895. 800c960: b480 push {r7}
  28896. 800c962: b083 sub sp, #12
  28897. 800c964: af00 add r7, sp, #0
  28898. 800c966: 6078 str r0, [r7, #4]
  28899. UNUSED(htim);
  28900. /* NOTE : This function Should not be modified, when the callback is needed,
  28901. the HAL_TIMEx_Break2Callback could be implemented in the user file
  28902. */
  28903. }
  28904. 800c968: bf00 nop
  28905. 800c96a: 370c adds r7, #12
  28906. 800c96c: 46bd mov sp, r7
  28907. 800c96e: f85d 7b04 ldr.w r7, [sp], #4
  28908. 800c972: 4770 bx lr
  28909. 0800c974 <HAL_UART_Init>:
  28910. * parameters in the UART_InitTypeDef and initialize the associated handle.
  28911. * @param huart UART handle.
  28912. * @retval HAL status
  28913. */
  28914. HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart)
  28915. {
  28916. 800c974: b580 push {r7, lr}
  28917. 800c976: b082 sub sp, #8
  28918. 800c978: af00 add r7, sp, #0
  28919. 800c97a: 6078 str r0, [r7, #4]
  28920. /* Check the UART handle allocation */
  28921. if (huart == NULL)
  28922. 800c97c: 687b ldr r3, [r7, #4]
  28923. 800c97e: 2b00 cmp r3, #0
  28924. 800c980: d101 bne.n 800c986 <HAL_UART_Init+0x12>
  28925. {
  28926. return HAL_ERROR;
  28927. 800c982: 2301 movs r3, #1
  28928. 800c984: e042 b.n 800ca0c <HAL_UART_Init+0x98>
  28929. {
  28930. /* Check the parameters */
  28931. assert_param((IS_UART_INSTANCE(huart->Instance)) || (IS_LPUART_INSTANCE(huart->Instance)));
  28932. }
  28933. if (huart->gState == HAL_UART_STATE_RESET)
  28934. 800c986: 687b ldr r3, [r7, #4]
  28935. 800c988: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  28936. 800c98c: 2b00 cmp r3, #0
  28937. 800c98e: d106 bne.n 800c99e <HAL_UART_Init+0x2a>
  28938. {
  28939. /* Allocate lock resource and initialize it */
  28940. huart->Lock = HAL_UNLOCKED;
  28941. 800c990: 687b ldr r3, [r7, #4]
  28942. 800c992: 2200 movs r2, #0
  28943. 800c994: f883 2084 strb.w r2, [r3, #132] @ 0x84
  28944. /* Init the low level hardware */
  28945. huart->MspInitCallback(huart);
  28946. #else
  28947. /* Init the low level hardware : GPIO, CLOCK */
  28948. HAL_UART_MspInit(huart);
  28949. 800c998: 6878 ldr r0, [r7, #4]
  28950. 800c99a: f7f6 fef9 bl 8003790 <HAL_UART_MspInit>
  28951. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  28952. }
  28953. huart->gState = HAL_UART_STATE_BUSY;
  28954. 800c99e: 687b ldr r3, [r7, #4]
  28955. 800c9a0: 2224 movs r2, #36 @ 0x24
  28956. 800c9a2: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  28957. __HAL_UART_DISABLE(huart);
  28958. 800c9a6: 687b ldr r3, [r7, #4]
  28959. 800c9a8: 681b ldr r3, [r3, #0]
  28960. 800c9aa: 681a ldr r2, [r3, #0]
  28961. 800c9ac: 687b ldr r3, [r7, #4]
  28962. 800c9ae: 681b ldr r3, [r3, #0]
  28963. 800c9b0: f022 0201 bic.w r2, r2, #1
  28964. 800c9b4: 601a str r2, [r3, #0]
  28965. /* Perform advanced settings configuration */
  28966. /* For some items, configuration requires to be done prior TE and RE bits are set */
  28967. if (huart->AdvancedInit.AdvFeatureInit != UART_ADVFEATURE_NO_INIT)
  28968. 800c9b6: 687b ldr r3, [r7, #4]
  28969. 800c9b8: 6a9b ldr r3, [r3, #40] @ 0x28
  28970. 800c9ba: 2b00 cmp r3, #0
  28971. 800c9bc: d002 beq.n 800c9c4 <HAL_UART_Init+0x50>
  28972. {
  28973. UART_AdvFeatureConfig(huart);
  28974. 800c9be: 6878 ldr r0, [r7, #4]
  28975. 800c9c0: f001 f9e8 bl 800dd94 <UART_AdvFeatureConfig>
  28976. }
  28977. /* Set the UART Communication parameters */
  28978. if (UART_SetConfig(huart) == HAL_ERROR)
  28979. 800c9c4: 6878 ldr r0, [r7, #4]
  28980. 800c9c6: f000 fc7d bl 800d2c4 <UART_SetConfig>
  28981. 800c9ca: 4603 mov r3, r0
  28982. 800c9cc: 2b01 cmp r3, #1
  28983. 800c9ce: d101 bne.n 800c9d4 <HAL_UART_Init+0x60>
  28984. {
  28985. return HAL_ERROR;
  28986. 800c9d0: 2301 movs r3, #1
  28987. 800c9d2: e01b b.n 800ca0c <HAL_UART_Init+0x98>
  28988. }
  28989. /* In asynchronous mode, the following bits must be kept cleared:
  28990. - LINEN and CLKEN bits in the USART_CR2 register,
  28991. - SCEN, HDSEL and IREN bits in the USART_CR3 register.*/
  28992. CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN));
  28993. 800c9d4: 687b ldr r3, [r7, #4]
  28994. 800c9d6: 681b ldr r3, [r3, #0]
  28995. 800c9d8: 685a ldr r2, [r3, #4]
  28996. 800c9da: 687b ldr r3, [r7, #4]
  28997. 800c9dc: 681b ldr r3, [r3, #0]
  28998. 800c9de: f422 4290 bic.w r2, r2, #18432 @ 0x4800
  28999. 800c9e2: 605a str r2, [r3, #4]
  29000. CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN));
  29001. 800c9e4: 687b ldr r3, [r7, #4]
  29002. 800c9e6: 681b ldr r3, [r3, #0]
  29003. 800c9e8: 689a ldr r2, [r3, #8]
  29004. 800c9ea: 687b ldr r3, [r7, #4]
  29005. 800c9ec: 681b ldr r3, [r3, #0]
  29006. 800c9ee: f022 022a bic.w r2, r2, #42 @ 0x2a
  29007. 800c9f2: 609a str r2, [r3, #8]
  29008. __HAL_UART_ENABLE(huart);
  29009. 800c9f4: 687b ldr r3, [r7, #4]
  29010. 800c9f6: 681b ldr r3, [r3, #0]
  29011. 800c9f8: 681a ldr r2, [r3, #0]
  29012. 800c9fa: 687b ldr r3, [r7, #4]
  29013. 800c9fc: 681b ldr r3, [r3, #0]
  29014. 800c9fe: f042 0201 orr.w r2, r2, #1
  29015. 800ca02: 601a str r2, [r3, #0]
  29016. /* TEACK and/or REACK to check before moving huart->gState and huart->RxState to Ready */
  29017. return (UART_CheckIdleState(huart));
  29018. 800ca04: 6878 ldr r0, [r7, #4]
  29019. 800ca06: f001 fa67 bl 800ded8 <UART_CheckIdleState>
  29020. 800ca0a: 4603 mov r3, r0
  29021. }
  29022. 800ca0c: 4618 mov r0, r3
  29023. 800ca0e: 3708 adds r7, #8
  29024. 800ca10: 46bd mov sp, r7
  29025. 800ca12: bd80 pop {r7, pc}
  29026. 0800ca14 <HAL_UART_Transmit_IT>:
  29027. * @param pData Pointer to data buffer (u8 or u16 data elements).
  29028. * @param Size Amount of data elements (u8 or u16) to be sent.
  29029. * @retval HAL status
  29030. */
  29031. HAL_StatusTypeDef HAL_UART_Transmit_IT(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size)
  29032. {
  29033. 800ca14: b480 push {r7}
  29034. 800ca16: b091 sub sp, #68 @ 0x44
  29035. 800ca18: af00 add r7, sp, #0
  29036. 800ca1a: 60f8 str r0, [r7, #12]
  29037. 800ca1c: 60b9 str r1, [r7, #8]
  29038. 800ca1e: 4613 mov r3, r2
  29039. 800ca20: 80fb strh r3, [r7, #6]
  29040. /* Check that a Tx process is not already ongoing */
  29041. if (huart->gState == HAL_UART_STATE_READY)
  29042. 800ca22: 68fb ldr r3, [r7, #12]
  29043. 800ca24: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  29044. 800ca28: 2b20 cmp r3, #32
  29045. 800ca2a: d178 bne.n 800cb1e <HAL_UART_Transmit_IT+0x10a>
  29046. {
  29047. if ((pData == NULL) || (Size == 0U))
  29048. 800ca2c: 68bb ldr r3, [r7, #8]
  29049. 800ca2e: 2b00 cmp r3, #0
  29050. 800ca30: d002 beq.n 800ca38 <HAL_UART_Transmit_IT+0x24>
  29051. 800ca32: 88fb ldrh r3, [r7, #6]
  29052. 800ca34: 2b00 cmp r3, #0
  29053. 800ca36: d101 bne.n 800ca3c <HAL_UART_Transmit_IT+0x28>
  29054. {
  29055. return HAL_ERROR;
  29056. 800ca38: 2301 movs r3, #1
  29057. 800ca3a: e071 b.n 800cb20 <HAL_UART_Transmit_IT+0x10c>
  29058. }
  29059. huart->pTxBuffPtr = pData;
  29060. 800ca3c: 68fb ldr r3, [r7, #12]
  29061. 800ca3e: 68ba ldr r2, [r7, #8]
  29062. 800ca40: 651a str r2, [r3, #80] @ 0x50
  29063. huart->TxXferSize = Size;
  29064. 800ca42: 68fb ldr r3, [r7, #12]
  29065. 800ca44: 88fa ldrh r2, [r7, #6]
  29066. 800ca46: f8a3 2054 strh.w r2, [r3, #84] @ 0x54
  29067. huart->TxXferCount = Size;
  29068. 800ca4a: 68fb ldr r3, [r7, #12]
  29069. 800ca4c: 88fa ldrh r2, [r7, #6]
  29070. 800ca4e: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  29071. huart->TxISR = NULL;
  29072. 800ca52: 68fb ldr r3, [r7, #12]
  29073. 800ca54: 2200 movs r2, #0
  29074. 800ca56: 679a str r2, [r3, #120] @ 0x78
  29075. huart->ErrorCode = HAL_UART_ERROR_NONE;
  29076. 800ca58: 68fb ldr r3, [r7, #12]
  29077. 800ca5a: 2200 movs r2, #0
  29078. 800ca5c: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  29079. huart->gState = HAL_UART_STATE_BUSY_TX;
  29080. 800ca60: 68fb ldr r3, [r7, #12]
  29081. 800ca62: 2221 movs r2, #33 @ 0x21
  29082. 800ca64: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  29083. /* Configure Tx interrupt processing */
  29084. if (huart->FifoMode == UART_FIFOMODE_ENABLE)
  29085. 800ca68: 68fb ldr r3, [r7, #12]
  29086. 800ca6a: 6e5b ldr r3, [r3, #100] @ 0x64
  29087. 800ca6c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  29088. 800ca70: d12a bne.n 800cac8 <HAL_UART_Transmit_IT+0xb4>
  29089. {
  29090. /* Set the Tx ISR function pointer according to the data word length */
  29091. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  29092. 800ca72: 68fb ldr r3, [r7, #12]
  29093. 800ca74: 689b ldr r3, [r3, #8]
  29094. 800ca76: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  29095. 800ca7a: d107 bne.n 800ca8c <HAL_UART_Transmit_IT+0x78>
  29096. 800ca7c: 68fb ldr r3, [r7, #12]
  29097. 800ca7e: 691b ldr r3, [r3, #16]
  29098. 800ca80: 2b00 cmp r3, #0
  29099. 800ca82: d103 bne.n 800ca8c <HAL_UART_Transmit_IT+0x78>
  29100. {
  29101. huart->TxISR = UART_TxISR_16BIT_FIFOEN;
  29102. 800ca84: 68fb ldr r3, [r7, #12]
  29103. 800ca86: 4a29 ldr r2, [pc, #164] @ (800cb2c <HAL_UART_Transmit_IT+0x118>)
  29104. 800ca88: 679a str r2, [r3, #120] @ 0x78
  29105. 800ca8a: e002 b.n 800ca92 <HAL_UART_Transmit_IT+0x7e>
  29106. }
  29107. else
  29108. {
  29109. huart->TxISR = UART_TxISR_8BIT_FIFOEN;
  29110. 800ca8c: 68fb ldr r3, [r7, #12]
  29111. 800ca8e: 4a28 ldr r2, [pc, #160] @ (800cb30 <HAL_UART_Transmit_IT+0x11c>)
  29112. 800ca90: 679a str r2, [r3, #120] @ 0x78
  29113. }
  29114. /* Enable the TX FIFO threshold interrupt */
  29115. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  29116. 800ca92: 68fb ldr r3, [r7, #12]
  29117. 800ca94: 681b ldr r3, [r3, #0]
  29118. 800ca96: 3308 adds r3, #8
  29119. 800ca98: 62bb str r3, [r7, #40] @ 0x28
  29120. */
  29121. __STATIC_FORCEINLINE uint32_t __LDREXW(volatile uint32_t *addr)
  29122. {
  29123. uint32_t result;
  29124. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  29125. 800ca9a: 6abb ldr r3, [r7, #40] @ 0x28
  29126. 800ca9c: e853 3f00 ldrex r3, [r3]
  29127. 800caa0: 627b str r3, [r7, #36] @ 0x24
  29128. return(result);
  29129. 800caa2: 6a7b ldr r3, [r7, #36] @ 0x24
  29130. 800caa4: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  29131. 800caa8: 63bb str r3, [r7, #56] @ 0x38
  29132. 800caaa: 68fb ldr r3, [r7, #12]
  29133. 800caac: 681b ldr r3, [r3, #0]
  29134. 800caae: 3308 adds r3, #8
  29135. 800cab0: 6bba ldr r2, [r7, #56] @ 0x38
  29136. 800cab2: 637a str r2, [r7, #52] @ 0x34
  29137. 800cab4: 633b str r3, [r7, #48] @ 0x30
  29138. */
  29139. __STATIC_FORCEINLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr)
  29140. {
  29141. uint32_t result;
  29142. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  29143. 800cab6: 6b39 ldr r1, [r7, #48] @ 0x30
  29144. 800cab8: 6b7a ldr r2, [r7, #52] @ 0x34
  29145. 800caba: e841 2300 strex r3, r2, [r1]
  29146. 800cabe: 62fb str r3, [r7, #44] @ 0x2c
  29147. return(result);
  29148. 800cac0: 6afb ldr r3, [r7, #44] @ 0x2c
  29149. 800cac2: 2b00 cmp r3, #0
  29150. 800cac4: d1e5 bne.n 800ca92 <HAL_UART_Transmit_IT+0x7e>
  29151. 800cac6: e028 b.n 800cb1a <HAL_UART_Transmit_IT+0x106>
  29152. }
  29153. else
  29154. {
  29155. /* Set the Tx ISR function pointer according to the data word length */
  29156. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  29157. 800cac8: 68fb ldr r3, [r7, #12]
  29158. 800caca: 689b ldr r3, [r3, #8]
  29159. 800cacc: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  29160. 800cad0: d107 bne.n 800cae2 <HAL_UART_Transmit_IT+0xce>
  29161. 800cad2: 68fb ldr r3, [r7, #12]
  29162. 800cad4: 691b ldr r3, [r3, #16]
  29163. 800cad6: 2b00 cmp r3, #0
  29164. 800cad8: d103 bne.n 800cae2 <HAL_UART_Transmit_IT+0xce>
  29165. {
  29166. huart->TxISR = UART_TxISR_16BIT;
  29167. 800cada: 68fb ldr r3, [r7, #12]
  29168. 800cadc: 4a15 ldr r2, [pc, #84] @ (800cb34 <HAL_UART_Transmit_IT+0x120>)
  29169. 800cade: 679a str r2, [r3, #120] @ 0x78
  29170. 800cae0: e002 b.n 800cae8 <HAL_UART_Transmit_IT+0xd4>
  29171. }
  29172. else
  29173. {
  29174. huart->TxISR = UART_TxISR_8BIT;
  29175. 800cae2: 68fb ldr r3, [r7, #12]
  29176. 800cae4: 4a14 ldr r2, [pc, #80] @ (800cb38 <HAL_UART_Transmit_IT+0x124>)
  29177. 800cae6: 679a str r2, [r3, #120] @ 0x78
  29178. }
  29179. /* Enable the Transmit Data Register Empty interrupt */
  29180. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  29181. 800cae8: 68fb ldr r3, [r7, #12]
  29182. 800caea: 681b ldr r3, [r3, #0]
  29183. 800caec: 617b str r3, [r7, #20]
  29184. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  29185. 800caee: 697b ldr r3, [r7, #20]
  29186. 800caf0: e853 3f00 ldrex r3, [r3]
  29187. 800caf4: 613b str r3, [r7, #16]
  29188. return(result);
  29189. 800caf6: 693b ldr r3, [r7, #16]
  29190. 800caf8: f043 0380 orr.w r3, r3, #128 @ 0x80
  29191. 800cafc: 63fb str r3, [r7, #60] @ 0x3c
  29192. 800cafe: 68fb ldr r3, [r7, #12]
  29193. 800cb00: 681b ldr r3, [r3, #0]
  29194. 800cb02: 461a mov r2, r3
  29195. 800cb04: 6bfb ldr r3, [r7, #60] @ 0x3c
  29196. 800cb06: 623b str r3, [r7, #32]
  29197. 800cb08: 61fa str r2, [r7, #28]
  29198. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  29199. 800cb0a: 69f9 ldr r1, [r7, #28]
  29200. 800cb0c: 6a3a ldr r2, [r7, #32]
  29201. 800cb0e: e841 2300 strex r3, r2, [r1]
  29202. 800cb12: 61bb str r3, [r7, #24]
  29203. return(result);
  29204. 800cb14: 69bb ldr r3, [r7, #24]
  29205. 800cb16: 2b00 cmp r3, #0
  29206. 800cb18: d1e6 bne.n 800cae8 <HAL_UART_Transmit_IT+0xd4>
  29207. }
  29208. return HAL_OK;
  29209. 800cb1a: 2300 movs r3, #0
  29210. 800cb1c: e000 b.n 800cb20 <HAL_UART_Transmit_IT+0x10c>
  29211. }
  29212. else
  29213. {
  29214. return HAL_BUSY;
  29215. 800cb1e: 2302 movs r3, #2
  29216. }
  29217. }
  29218. 800cb20: 4618 mov r0, r3
  29219. 800cb22: 3744 adds r7, #68 @ 0x44
  29220. 800cb24: 46bd mov sp, r7
  29221. 800cb26: f85d 7b04 ldr.w r7, [sp], #4
  29222. 800cb2a: 4770 bx lr
  29223. 800cb2c: 0800e69f .word 0x0800e69f
  29224. 800cb30: 0800e5bf .word 0x0800e5bf
  29225. 800cb34: 0800e4fd .word 0x0800e4fd
  29226. 800cb38: 0800e445 .word 0x0800e445
  29227. 0800cb3c <HAL_UART_IRQHandler>:
  29228. * @brief Handle UART interrupt request.
  29229. * @param huart UART handle.
  29230. * @retval None
  29231. */
  29232. void HAL_UART_IRQHandler(UART_HandleTypeDef *huart)
  29233. {
  29234. 800cb3c: b580 push {r7, lr}
  29235. 800cb3e: b0ba sub sp, #232 @ 0xe8
  29236. 800cb40: af00 add r7, sp, #0
  29237. 800cb42: 6078 str r0, [r7, #4]
  29238. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  29239. 800cb44: 687b ldr r3, [r7, #4]
  29240. 800cb46: 681b ldr r3, [r3, #0]
  29241. 800cb48: 69db ldr r3, [r3, #28]
  29242. 800cb4a: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  29243. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  29244. 800cb4e: 687b ldr r3, [r7, #4]
  29245. 800cb50: 681b ldr r3, [r3, #0]
  29246. 800cb52: 681b ldr r3, [r3, #0]
  29247. 800cb54: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  29248. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  29249. 800cb58: 687b ldr r3, [r7, #4]
  29250. 800cb5a: 681b ldr r3, [r3, #0]
  29251. 800cb5c: 689b ldr r3, [r3, #8]
  29252. 800cb5e: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  29253. uint32_t errorflags;
  29254. uint32_t errorcode;
  29255. /* If no error occurs */
  29256. errorflags = (isrflags & (uint32_t)(USART_ISR_PE | USART_ISR_FE | USART_ISR_ORE | USART_ISR_NE | USART_ISR_RTOF));
  29257. 800cb62: f8d7 20e4 ldr.w r2, [r7, #228] @ 0xe4
  29258. 800cb66: f640 030f movw r3, #2063 @ 0x80f
  29259. 800cb6a: 4013 ands r3, r2
  29260. 800cb6c: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
  29261. if (errorflags == 0U)
  29262. 800cb70: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8
  29263. 800cb74: 2b00 cmp r3, #0
  29264. 800cb76: d11b bne.n 800cbb0 <HAL_UART_IRQHandler+0x74>
  29265. {
  29266. /* UART in mode Receiver ---------------------------------------------------*/
  29267. if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U)
  29268. 800cb78: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  29269. 800cb7c: f003 0320 and.w r3, r3, #32
  29270. 800cb80: 2b00 cmp r3, #0
  29271. 800cb82: d015 beq.n 800cbb0 <HAL_UART_IRQHandler+0x74>
  29272. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U)
  29273. 800cb84: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  29274. 800cb88: f003 0320 and.w r3, r3, #32
  29275. 800cb8c: 2b00 cmp r3, #0
  29276. 800cb8e: d105 bne.n 800cb9c <HAL_UART_IRQHandler+0x60>
  29277. || ((cr3its & USART_CR3_RXFTIE) != 0U)))
  29278. 800cb90: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  29279. 800cb94: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  29280. 800cb98: 2b00 cmp r3, #0
  29281. 800cb9a: d009 beq.n 800cbb0 <HAL_UART_IRQHandler+0x74>
  29282. {
  29283. if (huart->RxISR != NULL)
  29284. 800cb9c: 687b ldr r3, [r7, #4]
  29285. 800cb9e: 6f5b ldr r3, [r3, #116] @ 0x74
  29286. 800cba0: 2b00 cmp r3, #0
  29287. 800cba2: f000 8377 beq.w 800d294 <HAL_UART_IRQHandler+0x758>
  29288. {
  29289. huart->RxISR(huart);
  29290. 800cba6: 687b ldr r3, [r7, #4]
  29291. 800cba8: 6f5b ldr r3, [r3, #116] @ 0x74
  29292. 800cbaa: 6878 ldr r0, [r7, #4]
  29293. 800cbac: 4798 blx r3
  29294. }
  29295. return;
  29296. 800cbae: e371 b.n 800d294 <HAL_UART_IRQHandler+0x758>
  29297. }
  29298. }
  29299. /* If some errors occur */
  29300. if ((errorflags != 0U)
  29301. 800cbb0: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8
  29302. 800cbb4: 2b00 cmp r3, #0
  29303. 800cbb6: f000 8123 beq.w 800ce00 <HAL_UART_IRQHandler+0x2c4>
  29304. && ((((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U)
  29305. 800cbba: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc
  29306. 800cbbe: 4b8d ldr r3, [pc, #564] @ (800cdf4 <HAL_UART_IRQHandler+0x2b8>)
  29307. 800cbc0: 4013 ands r3, r2
  29308. 800cbc2: 2b00 cmp r3, #0
  29309. 800cbc4: d106 bne.n 800cbd4 <HAL_UART_IRQHandler+0x98>
  29310. || ((cr1its & (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE | USART_CR1_RTOIE)) != 0U))))
  29311. 800cbc6: f8d7 20e0 ldr.w r2, [r7, #224] @ 0xe0
  29312. 800cbca: 4b8b ldr r3, [pc, #556] @ (800cdf8 <HAL_UART_IRQHandler+0x2bc>)
  29313. 800cbcc: 4013 ands r3, r2
  29314. 800cbce: 2b00 cmp r3, #0
  29315. 800cbd0: f000 8116 beq.w 800ce00 <HAL_UART_IRQHandler+0x2c4>
  29316. {
  29317. /* UART parity error interrupt occurred -------------------------------------*/
  29318. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  29319. 800cbd4: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  29320. 800cbd8: f003 0301 and.w r3, r3, #1
  29321. 800cbdc: 2b00 cmp r3, #0
  29322. 800cbde: d011 beq.n 800cc04 <HAL_UART_IRQHandler+0xc8>
  29323. 800cbe0: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  29324. 800cbe4: f403 7380 and.w r3, r3, #256 @ 0x100
  29325. 800cbe8: 2b00 cmp r3, #0
  29326. 800cbea: d00b beq.n 800cc04 <HAL_UART_IRQHandler+0xc8>
  29327. {
  29328. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  29329. 800cbec: 687b ldr r3, [r7, #4]
  29330. 800cbee: 681b ldr r3, [r3, #0]
  29331. 800cbf0: 2201 movs r2, #1
  29332. 800cbf2: 621a str r2, [r3, #32]
  29333. huart->ErrorCode |= HAL_UART_ERROR_PE;
  29334. 800cbf4: 687b ldr r3, [r7, #4]
  29335. 800cbf6: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  29336. 800cbfa: f043 0201 orr.w r2, r3, #1
  29337. 800cbfe: 687b ldr r3, [r7, #4]
  29338. 800cc00: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  29339. }
  29340. /* UART frame error interrupt occurred --------------------------------------*/
  29341. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  29342. 800cc04: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  29343. 800cc08: f003 0302 and.w r3, r3, #2
  29344. 800cc0c: 2b00 cmp r3, #0
  29345. 800cc0e: d011 beq.n 800cc34 <HAL_UART_IRQHandler+0xf8>
  29346. 800cc10: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  29347. 800cc14: f003 0301 and.w r3, r3, #1
  29348. 800cc18: 2b00 cmp r3, #0
  29349. 800cc1a: d00b beq.n 800cc34 <HAL_UART_IRQHandler+0xf8>
  29350. {
  29351. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  29352. 800cc1c: 687b ldr r3, [r7, #4]
  29353. 800cc1e: 681b ldr r3, [r3, #0]
  29354. 800cc20: 2202 movs r2, #2
  29355. 800cc22: 621a str r2, [r3, #32]
  29356. huart->ErrorCode |= HAL_UART_ERROR_FE;
  29357. 800cc24: 687b ldr r3, [r7, #4]
  29358. 800cc26: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  29359. 800cc2a: f043 0204 orr.w r2, r3, #4
  29360. 800cc2e: 687b ldr r3, [r7, #4]
  29361. 800cc30: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  29362. }
  29363. /* UART noise error interrupt occurred --------------------------------------*/
  29364. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  29365. 800cc34: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  29366. 800cc38: f003 0304 and.w r3, r3, #4
  29367. 800cc3c: 2b00 cmp r3, #0
  29368. 800cc3e: d011 beq.n 800cc64 <HAL_UART_IRQHandler+0x128>
  29369. 800cc40: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  29370. 800cc44: f003 0301 and.w r3, r3, #1
  29371. 800cc48: 2b00 cmp r3, #0
  29372. 800cc4a: d00b beq.n 800cc64 <HAL_UART_IRQHandler+0x128>
  29373. {
  29374. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  29375. 800cc4c: 687b ldr r3, [r7, #4]
  29376. 800cc4e: 681b ldr r3, [r3, #0]
  29377. 800cc50: 2204 movs r2, #4
  29378. 800cc52: 621a str r2, [r3, #32]
  29379. huart->ErrorCode |= HAL_UART_ERROR_NE;
  29380. 800cc54: 687b ldr r3, [r7, #4]
  29381. 800cc56: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  29382. 800cc5a: f043 0202 orr.w r2, r3, #2
  29383. 800cc5e: 687b ldr r3, [r7, #4]
  29384. 800cc60: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  29385. }
  29386. /* UART Over-Run interrupt occurred -----------------------------------------*/
  29387. if (((isrflags & USART_ISR_ORE) != 0U)
  29388. 800cc64: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  29389. 800cc68: f003 0308 and.w r3, r3, #8
  29390. 800cc6c: 2b00 cmp r3, #0
  29391. 800cc6e: d017 beq.n 800cca0 <HAL_UART_IRQHandler+0x164>
  29392. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) ||
  29393. 800cc70: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  29394. 800cc74: f003 0320 and.w r3, r3, #32
  29395. 800cc78: 2b00 cmp r3, #0
  29396. 800cc7a: d105 bne.n 800cc88 <HAL_UART_IRQHandler+0x14c>
  29397. ((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U)))
  29398. 800cc7c: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc
  29399. 800cc80: 4b5c ldr r3, [pc, #368] @ (800cdf4 <HAL_UART_IRQHandler+0x2b8>)
  29400. 800cc82: 4013 ands r3, r2
  29401. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) ||
  29402. 800cc84: 2b00 cmp r3, #0
  29403. 800cc86: d00b beq.n 800cca0 <HAL_UART_IRQHandler+0x164>
  29404. {
  29405. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
  29406. 800cc88: 687b ldr r3, [r7, #4]
  29407. 800cc8a: 681b ldr r3, [r3, #0]
  29408. 800cc8c: 2208 movs r2, #8
  29409. 800cc8e: 621a str r2, [r3, #32]
  29410. huart->ErrorCode |= HAL_UART_ERROR_ORE;
  29411. 800cc90: 687b ldr r3, [r7, #4]
  29412. 800cc92: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  29413. 800cc96: f043 0208 orr.w r2, r3, #8
  29414. 800cc9a: 687b ldr r3, [r7, #4]
  29415. 800cc9c: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  29416. }
  29417. /* UART Receiver Timeout interrupt occurred ---------------------------------*/
  29418. if (((isrflags & USART_ISR_RTOF) != 0U) && ((cr1its & USART_CR1_RTOIE) != 0U))
  29419. 800cca0: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  29420. 800cca4: f403 6300 and.w r3, r3, #2048 @ 0x800
  29421. 800cca8: 2b00 cmp r3, #0
  29422. 800ccaa: d012 beq.n 800ccd2 <HAL_UART_IRQHandler+0x196>
  29423. 800ccac: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  29424. 800ccb0: f003 6380 and.w r3, r3, #67108864 @ 0x4000000
  29425. 800ccb4: 2b00 cmp r3, #0
  29426. 800ccb6: d00c beq.n 800ccd2 <HAL_UART_IRQHandler+0x196>
  29427. {
  29428. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
  29429. 800ccb8: 687b ldr r3, [r7, #4]
  29430. 800ccba: 681b ldr r3, [r3, #0]
  29431. 800ccbc: f44f 6200 mov.w r2, #2048 @ 0x800
  29432. 800ccc0: 621a str r2, [r3, #32]
  29433. huart->ErrorCode |= HAL_UART_ERROR_RTO;
  29434. 800ccc2: 687b ldr r3, [r7, #4]
  29435. 800ccc4: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  29436. 800ccc8: f043 0220 orr.w r2, r3, #32
  29437. 800cccc: 687b ldr r3, [r7, #4]
  29438. 800ccce: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  29439. }
  29440. /* Call UART Error Call back function if need be ----------------------------*/
  29441. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  29442. 800ccd2: 687b ldr r3, [r7, #4]
  29443. 800ccd4: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  29444. 800ccd8: 2b00 cmp r3, #0
  29445. 800ccda: f000 82dd beq.w 800d298 <HAL_UART_IRQHandler+0x75c>
  29446. {
  29447. /* UART in mode Receiver --------------------------------------------------*/
  29448. if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U)
  29449. 800ccde: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  29450. 800cce2: f003 0320 and.w r3, r3, #32
  29451. 800cce6: 2b00 cmp r3, #0
  29452. 800cce8: d013 beq.n 800cd12 <HAL_UART_IRQHandler+0x1d6>
  29453. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U)
  29454. 800ccea: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  29455. 800ccee: f003 0320 and.w r3, r3, #32
  29456. 800ccf2: 2b00 cmp r3, #0
  29457. 800ccf4: d105 bne.n 800cd02 <HAL_UART_IRQHandler+0x1c6>
  29458. || ((cr3its & USART_CR3_RXFTIE) != 0U)))
  29459. 800ccf6: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  29460. 800ccfa: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  29461. 800ccfe: 2b00 cmp r3, #0
  29462. 800cd00: d007 beq.n 800cd12 <HAL_UART_IRQHandler+0x1d6>
  29463. {
  29464. if (huart->RxISR != NULL)
  29465. 800cd02: 687b ldr r3, [r7, #4]
  29466. 800cd04: 6f5b ldr r3, [r3, #116] @ 0x74
  29467. 800cd06: 2b00 cmp r3, #0
  29468. 800cd08: d003 beq.n 800cd12 <HAL_UART_IRQHandler+0x1d6>
  29469. {
  29470. huart->RxISR(huart);
  29471. 800cd0a: 687b ldr r3, [r7, #4]
  29472. 800cd0c: 6f5b ldr r3, [r3, #116] @ 0x74
  29473. 800cd0e: 6878 ldr r0, [r7, #4]
  29474. 800cd10: 4798 blx r3
  29475. /* If Error is to be considered as blocking :
  29476. - Receiver Timeout error in Reception
  29477. - Overrun error in Reception
  29478. - any error occurs in DMA mode reception
  29479. */
  29480. errorcode = huart->ErrorCode;
  29481. 800cd12: 687b ldr r3, [r7, #4]
  29482. 800cd14: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  29483. 800cd18: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  29484. if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
  29485. 800cd1c: 687b ldr r3, [r7, #4]
  29486. 800cd1e: 681b ldr r3, [r3, #0]
  29487. 800cd20: 689b ldr r3, [r3, #8]
  29488. 800cd22: f003 0340 and.w r3, r3, #64 @ 0x40
  29489. 800cd26: 2b40 cmp r3, #64 @ 0x40
  29490. 800cd28: d005 beq.n 800cd36 <HAL_UART_IRQHandler+0x1fa>
  29491. ((errorcode & (HAL_UART_ERROR_RTO | HAL_UART_ERROR_ORE)) != 0U))
  29492. 800cd2a: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4
  29493. 800cd2e: f003 0328 and.w r3, r3, #40 @ 0x28
  29494. if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
  29495. 800cd32: 2b00 cmp r3, #0
  29496. 800cd34: d054 beq.n 800cde0 <HAL_UART_IRQHandler+0x2a4>
  29497. {
  29498. /* Blocking error : transfer is aborted
  29499. Set the UART state ready to be able to start again the process,
  29500. Disable Rx Interrupts, and disable Rx DMA request, if ongoing */
  29501. UART_EndRxTransfer(huart);
  29502. 800cd36: 6878 ldr r0, [r7, #4]
  29503. 800cd38: f001 fb08 bl 800e34c <UART_EndRxTransfer>
  29504. /* Abort the UART DMA Rx channel if enabled */
  29505. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  29506. 800cd3c: 687b ldr r3, [r7, #4]
  29507. 800cd3e: 681b ldr r3, [r3, #0]
  29508. 800cd40: 689b ldr r3, [r3, #8]
  29509. 800cd42: f003 0340 and.w r3, r3, #64 @ 0x40
  29510. 800cd46: 2b40 cmp r3, #64 @ 0x40
  29511. 800cd48: d146 bne.n 800cdd8 <HAL_UART_IRQHandler+0x29c>
  29512. {
  29513. /* Disable the UART DMA Rx request if enabled */
  29514. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  29515. 800cd4a: 687b ldr r3, [r7, #4]
  29516. 800cd4c: 681b ldr r3, [r3, #0]
  29517. 800cd4e: 3308 adds r3, #8
  29518. 800cd50: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  29519. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  29520. 800cd54: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c
  29521. 800cd58: e853 3f00 ldrex r3, [r3]
  29522. 800cd5c: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  29523. return(result);
  29524. 800cd60: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  29525. 800cd64: f023 0340 bic.w r3, r3, #64 @ 0x40
  29526. 800cd68: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
  29527. 800cd6c: 687b ldr r3, [r7, #4]
  29528. 800cd6e: 681b ldr r3, [r3, #0]
  29529. 800cd70: 3308 adds r3, #8
  29530. 800cd72: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0
  29531. 800cd76: f8c7 20a8 str.w r2, [r7, #168] @ 0xa8
  29532. 800cd7a: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  29533. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  29534. 800cd7e: f8d7 10a4 ldr.w r1, [r7, #164] @ 0xa4
  29535. 800cd82: f8d7 20a8 ldr.w r2, [r7, #168] @ 0xa8
  29536. 800cd86: e841 2300 strex r3, r2, [r1]
  29537. 800cd8a: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  29538. return(result);
  29539. 800cd8e: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  29540. 800cd92: 2b00 cmp r3, #0
  29541. 800cd94: d1d9 bne.n 800cd4a <HAL_UART_IRQHandler+0x20e>
  29542. /* Abort the UART DMA Rx channel */
  29543. if (huart->hdmarx != NULL)
  29544. 800cd96: 687b ldr r3, [r7, #4]
  29545. 800cd98: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  29546. 800cd9c: 2b00 cmp r3, #0
  29547. 800cd9e: d017 beq.n 800cdd0 <HAL_UART_IRQHandler+0x294>
  29548. {
  29549. /* Set the UART DMA Abort callback :
  29550. will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */
  29551. huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError;
  29552. 800cda0: 687b ldr r3, [r7, #4]
  29553. 800cda2: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  29554. 800cda6: 4a15 ldr r2, [pc, #84] @ (800cdfc <HAL_UART_IRQHandler+0x2c0>)
  29555. 800cda8: 651a str r2, [r3, #80] @ 0x50
  29556. /* Abort DMA RX */
  29557. if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK)
  29558. 800cdaa: 687b ldr r3, [r7, #4]
  29559. 800cdac: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  29560. 800cdb0: 4618 mov r0, r3
  29561. 800cdb2: f7f9 f915 bl 8005fe0 <HAL_DMA_Abort_IT>
  29562. 800cdb6: 4603 mov r3, r0
  29563. 800cdb8: 2b00 cmp r3, #0
  29564. 800cdba: d019 beq.n 800cdf0 <HAL_UART_IRQHandler+0x2b4>
  29565. {
  29566. /* Call Directly huart->hdmarx->XferAbortCallback function in case of error */
  29567. huart->hdmarx->XferAbortCallback(huart->hdmarx);
  29568. 800cdbc: 687b ldr r3, [r7, #4]
  29569. 800cdbe: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  29570. 800cdc2: 6d1b ldr r3, [r3, #80] @ 0x50
  29571. 800cdc4: 687a ldr r2, [r7, #4]
  29572. 800cdc6: f8d2 2080 ldr.w r2, [r2, #128] @ 0x80
  29573. 800cdca: 4610 mov r0, r2
  29574. 800cdcc: 4798 blx r3
  29575. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  29576. 800cdce: e00f b.n 800cdf0 <HAL_UART_IRQHandler+0x2b4>
  29577. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  29578. /*Call registered error callback*/
  29579. huart->ErrorCallback(huart);
  29580. #else
  29581. /*Call legacy weak error callback*/
  29582. HAL_UART_ErrorCallback(huart);
  29583. 800cdd0: 6878 ldr r0, [r7, #4]
  29584. 800cdd2: f000 fa6d bl 800d2b0 <HAL_UART_ErrorCallback>
  29585. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  29586. 800cdd6: e00b b.n 800cdf0 <HAL_UART_IRQHandler+0x2b4>
  29587. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  29588. /*Call registered error callback*/
  29589. huart->ErrorCallback(huart);
  29590. #else
  29591. /*Call legacy weak error callback*/
  29592. HAL_UART_ErrorCallback(huart);
  29593. 800cdd8: 6878 ldr r0, [r7, #4]
  29594. 800cdda: f000 fa69 bl 800d2b0 <HAL_UART_ErrorCallback>
  29595. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  29596. 800cdde: e007 b.n 800cdf0 <HAL_UART_IRQHandler+0x2b4>
  29597. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  29598. /*Call registered error callback*/
  29599. huart->ErrorCallback(huart);
  29600. #else
  29601. /*Call legacy weak error callback*/
  29602. HAL_UART_ErrorCallback(huart);
  29603. 800cde0: 6878 ldr r0, [r7, #4]
  29604. 800cde2: f000 fa65 bl 800d2b0 <HAL_UART_ErrorCallback>
  29605. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  29606. huart->ErrorCode = HAL_UART_ERROR_NONE;
  29607. 800cde6: 687b ldr r3, [r7, #4]
  29608. 800cde8: 2200 movs r2, #0
  29609. 800cdea: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  29610. }
  29611. }
  29612. return;
  29613. 800cdee: e253 b.n 800d298 <HAL_UART_IRQHandler+0x75c>
  29614. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  29615. 800cdf0: bf00 nop
  29616. return;
  29617. 800cdf2: e251 b.n 800d298 <HAL_UART_IRQHandler+0x75c>
  29618. 800cdf4: 10000001 .word 0x10000001
  29619. 800cdf8: 04000120 .word 0x04000120
  29620. 800cdfc: 0800e419 .word 0x0800e419
  29621. } /* End if some error occurs */
  29622. /* Check current reception Mode :
  29623. If Reception till IDLE event has been selected : */
  29624. if ((huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  29625. 800ce00: 687b ldr r3, [r7, #4]
  29626. 800ce02: 6edb ldr r3, [r3, #108] @ 0x6c
  29627. 800ce04: 2b01 cmp r3, #1
  29628. 800ce06: f040 81e7 bne.w 800d1d8 <HAL_UART_IRQHandler+0x69c>
  29629. && ((isrflags & USART_ISR_IDLE) != 0U)
  29630. 800ce0a: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  29631. 800ce0e: f003 0310 and.w r3, r3, #16
  29632. 800ce12: 2b00 cmp r3, #0
  29633. 800ce14: f000 81e0 beq.w 800d1d8 <HAL_UART_IRQHandler+0x69c>
  29634. && ((cr1its & USART_ISR_IDLE) != 0U))
  29635. 800ce18: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  29636. 800ce1c: f003 0310 and.w r3, r3, #16
  29637. 800ce20: 2b00 cmp r3, #0
  29638. 800ce22: f000 81d9 beq.w 800d1d8 <HAL_UART_IRQHandler+0x69c>
  29639. {
  29640. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  29641. 800ce26: 687b ldr r3, [r7, #4]
  29642. 800ce28: 681b ldr r3, [r3, #0]
  29643. 800ce2a: 2210 movs r2, #16
  29644. 800ce2c: 621a str r2, [r3, #32]
  29645. /* Check if DMA mode is enabled in UART */
  29646. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  29647. 800ce2e: 687b ldr r3, [r7, #4]
  29648. 800ce30: 681b ldr r3, [r3, #0]
  29649. 800ce32: 689b ldr r3, [r3, #8]
  29650. 800ce34: f003 0340 and.w r3, r3, #64 @ 0x40
  29651. 800ce38: 2b40 cmp r3, #64 @ 0x40
  29652. 800ce3a: f040 8151 bne.w 800d0e0 <HAL_UART_IRQHandler+0x5a4>
  29653. {
  29654. /* DMA mode enabled */
  29655. /* Check received length : If all expected data are received, do nothing,
  29656. (DMA cplt callback will be called).
  29657. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */
  29658. uint16_t nb_remaining_rx_data = (uint16_t) __HAL_DMA_GET_COUNTER(huart->hdmarx);
  29659. 800ce3e: 687b ldr r3, [r7, #4]
  29660. 800ce40: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  29661. 800ce44: 681b ldr r3, [r3, #0]
  29662. 800ce46: 4a96 ldr r2, [pc, #600] @ (800d0a0 <HAL_UART_IRQHandler+0x564>)
  29663. 800ce48: 4293 cmp r3, r2
  29664. 800ce4a: d068 beq.n 800cf1e <HAL_UART_IRQHandler+0x3e2>
  29665. 800ce4c: 687b ldr r3, [r7, #4]
  29666. 800ce4e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  29667. 800ce52: 681b ldr r3, [r3, #0]
  29668. 800ce54: 4a93 ldr r2, [pc, #588] @ (800d0a4 <HAL_UART_IRQHandler+0x568>)
  29669. 800ce56: 4293 cmp r3, r2
  29670. 800ce58: d061 beq.n 800cf1e <HAL_UART_IRQHandler+0x3e2>
  29671. 800ce5a: 687b ldr r3, [r7, #4]
  29672. 800ce5c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  29673. 800ce60: 681b ldr r3, [r3, #0]
  29674. 800ce62: 4a91 ldr r2, [pc, #580] @ (800d0a8 <HAL_UART_IRQHandler+0x56c>)
  29675. 800ce64: 4293 cmp r3, r2
  29676. 800ce66: d05a beq.n 800cf1e <HAL_UART_IRQHandler+0x3e2>
  29677. 800ce68: 687b ldr r3, [r7, #4]
  29678. 800ce6a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  29679. 800ce6e: 681b ldr r3, [r3, #0]
  29680. 800ce70: 4a8e ldr r2, [pc, #568] @ (800d0ac <HAL_UART_IRQHandler+0x570>)
  29681. 800ce72: 4293 cmp r3, r2
  29682. 800ce74: d053 beq.n 800cf1e <HAL_UART_IRQHandler+0x3e2>
  29683. 800ce76: 687b ldr r3, [r7, #4]
  29684. 800ce78: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  29685. 800ce7c: 681b ldr r3, [r3, #0]
  29686. 800ce7e: 4a8c ldr r2, [pc, #560] @ (800d0b0 <HAL_UART_IRQHandler+0x574>)
  29687. 800ce80: 4293 cmp r3, r2
  29688. 800ce82: d04c beq.n 800cf1e <HAL_UART_IRQHandler+0x3e2>
  29689. 800ce84: 687b ldr r3, [r7, #4]
  29690. 800ce86: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  29691. 800ce8a: 681b ldr r3, [r3, #0]
  29692. 800ce8c: 4a89 ldr r2, [pc, #548] @ (800d0b4 <HAL_UART_IRQHandler+0x578>)
  29693. 800ce8e: 4293 cmp r3, r2
  29694. 800ce90: d045 beq.n 800cf1e <HAL_UART_IRQHandler+0x3e2>
  29695. 800ce92: 687b ldr r3, [r7, #4]
  29696. 800ce94: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  29697. 800ce98: 681b ldr r3, [r3, #0]
  29698. 800ce9a: 4a87 ldr r2, [pc, #540] @ (800d0b8 <HAL_UART_IRQHandler+0x57c>)
  29699. 800ce9c: 4293 cmp r3, r2
  29700. 800ce9e: d03e beq.n 800cf1e <HAL_UART_IRQHandler+0x3e2>
  29701. 800cea0: 687b ldr r3, [r7, #4]
  29702. 800cea2: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  29703. 800cea6: 681b ldr r3, [r3, #0]
  29704. 800cea8: 4a84 ldr r2, [pc, #528] @ (800d0bc <HAL_UART_IRQHandler+0x580>)
  29705. 800ceaa: 4293 cmp r3, r2
  29706. 800ceac: d037 beq.n 800cf1e <HAL_UART_IRQHandler+0x3e2>
  29707. 800ceae: 687b ldr r3, [r7, #4]
  29708. 800ceb0: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  29709. 800ceb4: 681b ldr r3, [r3, #0]
  29710. 800ceb6: 4a82 ldr r2, [pc, #520] @ (800d0c0 <HAL_UART_IRQHandler+0x584>)
  29711. 800ceb8: 4293 cmp r3, r2
  29712. 800ceba: d030 beq.n 800cf1e <HAL_UART_IRQHandler+0x3e2>
  29713. 800cebc: 687b ldr r3, [r7, #4]
  29714. 800cebe: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  29715. 800cec2: 681b ldr r3, [r3, #0]
  29716. 800cec4: 4a7f ldr r2, [pc, #508] @ (800d0c4 <HAL_UART_IRQHandler+0x588>)
  29717. 800cec6: 4293 cmp r3, r2
  29718. 800cec8: d029 beq.n 800cf1e <HAL_UART_IRQHandler+0x3e2>
  29719. 800ceca: 687b ldr r3, [r7, #4]
  29720. 800cecc: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  29721. 800ced0: 681b ldr r3, [r3, #0]
  29722. 800ced2: 4a7d ldr r2, [pc, #500] @ (800d0c8 <HAL_UART_IRQHandler+0x58c>)
  29723. 800ced4: 4293 cmp r3, r2
  29724. 800ced6: d022 beq.n 800cf1e <HAL_UART_IRQHandler+0x3e2>
  29725. 800ced8: 687b ldr r3, [r7, #4]
  29726. 800ceda: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  29727. 800cede: 681b ldr r3, [r3, #0]
  29728. 800cee0: 4a7a ldr r2, [pc, #488] @ (800d0cc <HAL_UART_IRQHandler+0x590>)
  29729. 800cee2: 4293 cmp r3, r2
  29730. 800cee4: d01b beq.n 800cf1e <HAL_UART_IRQHandler+0x3e2>
  29731. 800cee6: 687b ldr r3, [r7, #4]
  29732. 800cee8: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  29733. 800ceec: 681b ldr r3, [r3, #0]
  29734. 800ceee: 4a78 ldr r2, [pc, #480] @ (800d0d0 <HAL_UART_IRQHandler+0x594>)
  29735. 800cef0: 4293 cmp r3, r2
  29736. 800cef2: d014 beq.n 800cf1e <HAL_UART_IRQHandler+0x3e2>
  29737. 800cef4: 687b ldr r3, [r7, #4]
  29738. 800cef6: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  29739. 800cefa: 681b ldr r3, [r3, #0]
  29740. 800cefc: 4a75 ldr r2, [pc, #468] @ (800d0d4 <HAL_UART_IRQHandler+0x598>)
  29741. 800cefe: 4293 cmp r3, r2
  29742. 800cf00: d00d beq.n 800cf1e <HAL_UART_IRQHandler+0x3e2>
  29743. 800cf02: 687b ldr r3, [r7, #4]
  29744. 800cf04: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  29745. 800cf08: 681b ldr r3, [r3, #0]
  29746. 800cf0a: 4a73 ldr r2, [pc, #460] @ (800d0d8 <HAL_UART_IRQHandler+0x59c>)
  29747. 800cf0c: 4293 cmp r3, r2
  29748. 800cf0e: d006 beq.n 800cf1e <HAL_UART_IRQHandler+0x3e2>
  29749. 800cf10: 687b ldr r3, [r7, #4]
  29750. 800cf12: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  29751. 800cf16: 681b ldr r3, [r3, #0]
  29752. 800cf18: 4a70 ldr r2, [pc, #448] @ (800d0dc <HAL_UART_IRQHandler+0x5a0>)
  29753. 800cf1a: 4293 cmp r3, r2
  29754. 800cf1c: d106 bne.n 800cf2c <HAL_UART_IRQHandler+0x3f0>
  29755. 800cf1e: 687b ldr r3, [r7, #4]
  29756. 800cf20: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  29757. 800cf24: 681b ldr r3, [r3, #0]
  29758. 800cf26: 685b ldr r3, [r3, #4]
  29759. 800cf28: b29b uxth r3, r3
  29760. 800cf2a: e005 b.n 800cf38 <HAL_UART_IRQHandler+0x3fc>
  29761. 800cf2c: 687b ldr r3, [r7, #4]
  29762. 800cf2e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  29763. 800cf32: 681b ldr r3, [r3, #0]
  29764. 800cf34: 685b ldr r3, [r3, #4]
  29765. 800cf36: b29b uxth r3, r3
  29766. 800cf38: f8a7 30be strh.w r3, [r7, #190] @ 0xbe
  29767. if ((nb_remaining_rx_data > 0U)
  29768. 800cf3c: f8b7 30be ldrh.w r3, [r7, #190] @ 0xbe
  29769. 800cf40: 2b00 cmp r3, #0
  29770. 800cf42: f000 81ab beq.w 800d29c <HAL_UART_IRQHandler+0x760>
  29771. && (nb_remaining_rx_data < huart->RxXferSize))
  29772. 800cf46: 687b ldr r3, [r7, #4]
  29773. 800cf48: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  29774. 800cf4c: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe
  29775. 800cf50: 429a cmp r2, r3
  29776. 800cf52: f080 81a3 bcs.w 800d29c <HAL_UART_IRQHandler+0x760>
  29777. {
  29778. /* Reception is not complete */
  29779. huart->RxXferCount = nb_remaining_rx_data;
  29780. 800cf56: 687b ldr r3, [r7, #4]
  29781. 800cf58: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe
  29782. 800cf5c: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  29783. /* In Normal mode, end DMA xfer and HAL UART Rx process*/
  29784. if (huart->hdmarx->Init.Mode != DMA_CIRCULAR)
  29785. 800cf60: 687b ldr r3, [r7, #4]
  29786. 800cf62: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  29787. 800cf66: 69db ldr r3, [r3, #28]
  29788. 800cf68: f5b3 7f80 cmp.w r3, #256 @ 0x100
  29789. 800cf6c: f000 8087 beq.w 800d07e <HAL_UART_IRQHandler+0x542>
  29790. {
  29791. /* Disable PE and ERR (Frame error, noise error, overrun error) interrupts */
  29792. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  29793. 800cf70: 687b ldr r3, [r7, #4]
  29794. 800cf72: 681b ldr r3, [r3, #0]
  29795. 800cf74: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  29796. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  29797. 800cf78: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  29798. 800cf7c: e853 3f00 ldrex r3, [r3]
  29799. 800cf80: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  29800. return(result);
  29801. 800cf84: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  29802. 800cf88: f423 7380 bic.w r3, r3, #256 @ 0x100
  29803. 800cf8c: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
  29804. 800cf90: 687b ldr r3, [r7, #4]
  29805. 800cf92: 681b ldr r3, [r3, #0]
  29806. 800cf94: 461a mov r2, r3
  29807. 800cf96: f8d7 30b8 ldr.w r3, [r7, #184] @ 0xb8
  29808. 800cf9a: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  29809. 800cf9e: f8c7 2090 str.w r2, [r7, #144] @ 0x90
  29810. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  29811. 800cfa2: f8d7 1090 ldr.w r1, [r7, #144] @ 0x90
  29812. 800cfa6: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94
  29813. 800cfaa: e841 2300 strex r3, r2, [r1]
  29814. 800cfae: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  29815. return(result);
  29816. 800cfb2: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  29817. 800cfb6: 2b00 cmp r3, #0
  29818. 800cfb8: d1da bne.n 800cf70 <HAL_UART_IRQHandler+0x434>
  29819. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  29820. 800cfba: 687b ldr r3, [r7, #4]
  29821. 800cfbc: 681b ldr r3, [r3, #0]
  29822. 800cfbe: 3308 adds r3, #8
  29823. 800cfc0: 677b str r3, [r7, #116] @ 0x74
  29824. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  29825. 800cfc2: 6f7b ldr r3, [r7, #116] @ 0x74
  29826. 800cfc4: e853 3f00 ldrex r3, [r3]
  29827. 800cfc8: 673b str r3, [r7, #112] @ 0x70
  29828. return(result);
  29829. 800cfca: 6f3b ldr r3, [r7, #112] @ 0x70
  29830. 800cfcc: f023 0301 bic.w r3, r3, #1
  29831. 800cfd0: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  29832. 800cfd4: 687b ldr r3, [r7, #4]
  29833. 800cfd6: 681b ldr r3, [r3, #0]
  29834. 800cfd8: 3308 adds r3, #8
  29835. 800cfda: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4
  29836. 800cfde: f8c7 2080 str.w r2, [r7, #128] @ 0x80
  29837. 800cfe2: 67fb str r3, [r7, #124] @ 0x7c
  29838. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  29839. 800cfe4: 6ff9 ldr r1, [r7, #124] @ 0x7c
  29840. 800cfe6: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80
  29841. 800cfea: e841 2300 strex r3, r2, [r1]
  29842. 800cfee: 67bb str r3, [r7, #120] @ 0x78
  29843. return(result);
  29844. 800cff0: 6fbb ldr r3, [r7, #120] @ 0x78
  29845. 800cff2: 2b00 cmp r3, #0
  29846. 800cff4: d1e1 bne.n 800cfba <HAL_UART_IRQHandler+0x47e>
  29847. /* Disable the DMA transfer for the receiver request by resetting the DMAR bit
  29848. in the UART CR3 register */
  29849. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  29850. 800cff6: 687b ldr r3, [r7, #4]
  29851. 800cff8: 681b ldr r3, [r3, #0]
  29852. 800cffa: 3308 adds r3, #8
  29853. 800cffc: 663b str r3, [r7, #96] @ 0x60
  29854. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  29855. 800cffe: 6e3b ldr r3, [r7, #96] @ 0x60
  29856. 800d000: e853 3f00 ldrex r3, [r3]
  29857. 800d004: 65fb str r3, [r7, #92] @ 0x5c
  29858. return(result);
  29859. 800d006: 6dfb ldr r3, [r7, #92] @ 0x5c
  29860. 800d008: f023 0340 bic.w r3, r3, #64 @ 0x40
  29861. 800d00c: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
  29862. 800d010: 687b ldr r3, [r7, #4]
  29863. 800d012: 681b ldr r3, [r3, #0]
  29864. 800d014: 3308 adds r3, #8
  29865. 800d016: f8d7 20b0 ldr.w r2, [r7, #176] @ 0xb0
  29866. 800d01a: 66fa str r2, [r7, #108] @ 0x6c
  29867. 800d01c: 66bb str r3, [r7, #104] @ 0x68
  29868. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  29869. 800d01e: 6eb9 ldr r1, [r7, #104] @ 0x68
  29870. 800d020: 6efa ldr r2, [r7, #108] @ 0x6c
  29871. 800d022: e841 2300 strex r3, r2, [r1]
  29872. 800d026: 667b str r3, [r7, #100] @ 0x64
  29873. return(result);
  29874. 800d028: 6e7b ldr r3, [r7, #100] @ 0x64
  29875. 800d02a: 2b00 cmp r3, #0
  29876. 800d02c: d1e3 bne.n 800cff6 <HAL_UART_IRQHandler+0x4ba>
  29877. /* At end of Rx process, restore huart->RxState to Ready */
  29878. huart->RxState = HAL_UART_STATE_READY;
  29879. 800d02e: 687b ldr r3, [r7, #4]
  29880. 800d030: 2220 movs r2, #32
  29881. 800d032: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  29882. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  29883. 800d036: 687b ldr r3, [r7, #4]
  29884. 800d038: 2200 movs r2, #0
  29885. 800d03a: 66da str r2, [r3, #108] @ 0x6c
  29886. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  29887. 800d03c: 687b ldr r3, [r7, #4]
  29888. 800d03e: 681b ldr r3, [r3, #0]
  29889. 800d040: 64fb str r3, [r7, #76] @ 0x4c
  29890. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  29891. 800d042: 6cfb ldr r3, [r7, #76] @ 0x4c
  29892. 800d044: e853 3f00 ldrex r3, [r3]
  29893. 800d048: 64bb str r3, [r7, #72] @ 0x48
  29894. return(result);
  29895. 800d04a: 6cbb ldr r3, [r7, #72] @ 0x48
  29896. 800d04c: f023 0310 bic.w r3, r3, #16
  29897. 800d050: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  29898. 800d054: 687b ldr r3, [r7, #4]
  29899. 800d056: 681b ldr r3, [r3, #0]
  29900. 800d058: 461a mov r2, r3
  29901. 800d05a: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  29902. 800d05e: 65bb str r3, [r7, #88] @ 0x58
  29903. 800d060: 657a str r2, [r7, #84] @ 0x54
  29904. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  29905. 800d062: 6d79 ldr r1, [r7, #84] @ 0x54
  29906. 800d064: 6dba ldr r2, [r7, #88] @ 0x58
  29907. 800d066: e841 2300 strex r3, r2, [r1]
  29908. 800d06a: 653b str r3, [r7, #80] @ 0x50
  29909. return(result);
  29910. 800d06c: 6d3b ldr r3, [r7, #80] @ 0x50
  29911. 800d06e: 2b00 cmp r3, #0
  29912. 800d070: d1e4 bne.n 800d03c <HAL_UART_IRQHandler+0x500>
  29913. /* Last bytes received, so no need as the abort is immediate */
  29914. (void)HAL_DMA_Abort(huart->hdmarx);
  29915. 800d072: 687b ldr r3, [r7, #4]
  29916. 800d074: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  29917. 800d078: 4618 mov r0, r3
  29918. 800d07a: f7f8 fc93 bl 80059a4 <HAL_DMA_Abort>
  29919. }
  29920. /* Initialize type of RxEvent that correspond to RxEvent callback execution;
  29921. In this case, Rx Event type is Idle Event */
  29922. huart->RxEventType = HAL_UART_RXEVENT_IDLE;
  29923. 800d07e: 687b ldr r3, [r7, #4]
  29924. 800d080: 2202 movs r2, #2
  29925. 800d082: 671a str r2, [r3, #112] @ 0x70
  29926. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  29927. /*Call registered Rx Event callback*/
  29928. huart->RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount));
  29929. #else
  29930. /*Call legacy weak Rx Event callback*/
  29931. HAL_UARTEx_RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount));
  29932. 800d084: 687b ldr r3, [r7, #4]
  29933. 800d086: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c
  29934. 800d08a: 687b ldr r3, [r7, #4]
  29935. 800d08c: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  29936. 800d090: b29b uxth r3, r3
  29937. 800d092: 1ad3 subs r3, r2, r3
  29938. 800d094: b29b uxth r3, r3
  29939. 800d096: 4619 mov r1, r3
  29940. 800d098: 6878 ldr r0, [r7, #4]
  29941. 800d09a: f7f6 ff19 bl 8003ed0 <HAL_UARTEx_RxEventCallback>
  29942. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  29943. }
  29944. return;
  29945. 800d09e: e0fd b.n 800d29c <HAL_UART_IRQHandler+0x760>
  29946. 800d0a0: 40020010 .word 0x40020010
  29947. 800d0a4: 40020028 .word 0x40020028
  29948. 800d0a8: 40020040 .word 0x40020040
  29949. 800d0ac: 40020058 .word 0x40020058
  29950. 800d0b0: 40020070 .word 0x40020070
  29951. 800d0b4: 40020088 .word 0x40020088
  29952. 800d0b8: 400200a0 .word 0x400200a0
  29953. 800d0bc: 400200b8 .word 0x400200b8
  29954. 800d0c0: 40020410 .word 0x40020410
  29955. 800d0c4: 40020428 .word 0x40020428
  29956. 800d0c8: 40020440 .word 0x40020440
  29957. 800d0cc: 40020458 .word 0x40020458
  29958. 800d0d0: 40020470 .word 0x40020470
  29959. 800d0d4: 40020488 .word 0x40020488
  29960. 800d0d8: 400204a0 .word 0x400204a0
  29961. 800d0dc: 400204b8 .word 0x400204b8
  29962. else
  29963. {
  29964. /* DMA mode not enabled */
  29965. /* Check received length : If all expected data are received, do nothing.
  29966. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */
  29967. uint16_t nb_rx_data = huart->RxXferSize - huart->RxXferCount;
  29968. 800d0e0: 687b ldr r3, [r7, #4]
  29969. 800d0e2: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c
  29970. 800d0e6: 687b ldr r3, [r7, #4]
  29971. 800d0e8: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  29972. 800d0ec: b29b uxth r3, r3
  29973. 800d0ee: 1ad3 subs r3, r2, r3
  29974. 800d0f0: f8a7 30ce strh.w r3, [r7, #206] @ 0xce
  29975. if ((huart->RxXferCount > 0U)
  29976. 800d0f4: 687b ldr r3, [r7, #4]
  29977. 800d0f6: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  29978. 800d0fa: b29b uxth r3, r3
  29979. 800d0fc: 2b00 cmp r3, #0
  29980. 800d0fe: f000 80cf beq.w 800d2a0 <HAL_UART_IRQHandler+0x764>
  29981. && (nb_rx_data > 0U))
  29982. 800d102: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce
  29983. 800d106: 2b00 cmp r3, #0
  29984. 800d108: f000 80ca beq.w 800d2a0 <HAL_UART_IRQHandler+0x764>
  29985. {
  29986. /* Disable the UART Parity Error Interrupt and RXNE interrupts */
  29987. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  29988. 800d10c: 687b ldr r3, [r7, #4]
  29989. 800d10e: 681b ldr r3, [r3, #0]
  29990. 800d110: 63bb str r3, [r7, #56] @ 0x38
  29991. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  29992. 800d112: 6bbb ldr r3, [r7, #56] @ 0x38
  29993. 800d114: e853 3f00 ldrex r3, [r3]
  29994. 800d118: 637b str r3, [r7, #52] @ 0x34
  29995. return(result);
  29996. 800d11a: 6b7b ldr r3, [r7, #52] @ 0x34
  29997. 800d11c: f423 7390 bic.w r3, r3, #288 @ 0x120
  29998. 800d120: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
  29999. 800d124: 687b ldr r3, [r7, #4]
  30000. 800d126: 681b ldr r3, [r3, #0]
  30001. 800d128: 461a mov r2, r3
  30002. 800d12a: f8d7 30c8 ldr.w r3, [r7, #200] @ 0xc8
  30003. 800d12e: 647b str r3, [r7, #68] @ 0x44
  30004. 800d130: 643a str r2, [r7, #64] @ 0x40
  30005. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  30006. 800d132: 6c39 ldr r1, [r7, #64] @ 0x40
  30007. 800d134: 6c7a ldr r2, [r7, #68] @ 0x44
  30008. 800d136: e841 2300 strex r3, r2, [r1]
  30009. 800d13a: 63fb str r3, [r7, #60] @ 0x3c
  30010. return(result);
  30011. 800d13c: 6bfb ldr r3, [r7, #60] @ 0x3c
  30012. 800d13e: 2b00 cmp r3, #0
  30013. 800d140: d1e4 bne.n 800d10c <HAL_UART_IRQHandler+0x5d0>
  30014. /* Disable the UART Error Interrupt:(Frame error, noise error, overrun error) and RX FIFO Threshold interrupt */
  30015. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  30016. 800d142: 687b ldr r3, [r7, #4]
  30017. 800d144: 681b ldr r3, [r3, #0]
  30018. 800d146: 3308 adds r3, #8
  30019. 800d148: 627b str r3, [r7, #36] @ 0x24
  30020. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  30021. 800d14a: 6a7b ldr r3, [r7, #36] @ 0x24
  30022. 800d14c: e853 3f00 ldrex r3, [r3]
  30023. 800d150: 623b str r3, [r7, #32]
  30024. return(result);
  30025. 800d152: 6a3a ldr r2, [r7, #32]
  30026. 800d154: 4b55 ldr r3, [pc, #340] @ (800d2ac <HAL_UART_IRQHandler+0x770>)
  30027. 800d156: 4013 ands r3, r2
  30028. 800d158: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4
  30029. 800d15c: 687b ldr r3, [r7, #4]
  30030. 800d15e: 681b ldr r3, [r3, #0]
  30031. 800d160: 3308 adds r3, #8
  30032. 800d162: f8d7 20c4 ldr.w r2, [r7, #196] @ 0xc4
  30033. 800d166: 633a str r2, [r7, #48] @ 0x30
  30034. 800d168: 62fb str r3, [r7, #44] @ 0x2c
  30035. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  30036. 800d16a: 6af9 ldr r1, [r7, #44] @ 0x2c
  30037. 800d16c: 6b3a ldr r2, [r7, #48] @ 0x30
  30038. 800d16e: e841 2300 strex r3, r2, [r1]
  30039. 800d172: 62bb str r3, [r7, #40] @ 0x28
  30040. return(result);
  30041. 800d174: 6abb ldr r3, [r7, #40] @ 0x28
  30042. 800d176: 2b00 cmp r3, #0
  30043. 800d178: d1e3 bne.n 800d142 <HAL_UART_IRQHandler+0x606>
  30044. /* Rx process is completed, restore huart->RxState to Ready */
  30045. huart->RxState = HAL_UART_STATE_READY;
  30046. 800d17a: 687b ldr r3, [r7, #4]
  30047. 800d17c: 2220 movs r2, #32
  30048. 800d17e: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  30049. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  30050. 800d182: 687b ldr r3, [r7, #4]
  30051. 800d184: 2200 movs r2, #0
  30052. 800d186: 66da str r2, [r3, #108] @ 0x6c
  30053. /* Clear RxISR function pointer */
  30054. huart->RxISR = NULL;
  30055. 800d188: 687b ldr r3, [r7, #4]
  30056. 800d18a: 2200 movs r2, #0
  30057. 800d18c: 675a str r2, [r3, #116] @ 0x74
  30058. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  30059. 800d18e: 687b ldr r3, [r7, #4]
  30060. 800d190: 681b ldr r3, [r3, #0]
  30061. 800d192: 613b str r3, [r7, #16]
  30062. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  30063. 800d194: 693b ldr r3, [r7, #16]
  30064. 800d196: e853 3f00 ldrex r3, [r3]
  30065. 800d19a: 60fb str r3, [r7, #12]
  30066. return(result);
  30067. 800d19c: 68fb ldr r3, [r7, #12]
  30068. 800d19e: f023 0310 bic.w r3, r3, #16
  30069. 800d1a2: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
  30070. 800d1a6: 687b ldr r3, [r7, #4]
  30071. 800d1a8: 681b ldr r3, [r3, #0]
  30072. 800d1aa: 461a mov r2, r3
  30073. 800d1ac: f8d7 30c0 ldr.w r3, [r7, #192] @ 0xc0
  30074. 800d1b0: 61fb str r3, [r7, #28]
  30075. 800d1b2: 61ba str r2, [r7, #24]
  30076. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  30077. 800d1b4: 69b9 ldr r1, [r7, #24]
  30078. 800d1b6: 69fa ldr r2, [r7, #28]
  30079. 800d1b8: e841 2300 strex r3, r2, [r1]
  30080. 800d1bc: 617b str r3, [r7, #20]
  30081. return(result);
  30082. 800d1be: 697b ldr r3, [r7, #20]
  30083. 800d1c0: 2b00 cmp r3, #0
  30084. 800d1c2: d1e4 bne.n 800d18e <HAL_UART_IRQHandler+0x652>
  30085. /* Initialize type of RxEvent that correspond to RxEvent callback execution;
  30086. In this case, Rx Event type is Idle Event */
  30087. huart->RxEventType = HAL_UART_RXEVENT_IDLE;
  30088. 800d1c4: 687b ldr r3, [r7, #4]
  30089. 800d1c6: 2202 movs r2, #2
  30090. 800d1c8: 671a str r2, [r3, #112] @ 0x70
  30091. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  30092. /*Call registered Rx complete callback*/
  30093. huart->RxEventCallback(huart, nb_rx_data);
  30094. #else
  30095. /*Call legacy weak Rx Event callback*/
  30096. HAL_UARTEx_RxEventCallback(huart, nb_rx_data);
  30097. 800d1ca: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce
  30098. 800d1ce: 4619 mov r1, r3
  30099. 800d1d0: 6878 ldr r0, [r7, #4]
  30100. 800d1d2: f7f6 fe7d bl 8003ed0 <HAL_UARTEx_RxEventCallback>
  30101. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  30102. }
  30103. return;
  30104. 800d1d6: e063 b.n 800d2a0 <HAL_UART_IRQHandler+0x764>
  30105. }
  30106. }
  30107. /* UART wakeup from Stop mode interrupt occurred ---------------------------*/
  30108. if (((isrflags & USART_ISR_WUF) != 0U) && ((cr3its & USART_CR3_WUFIE) != 0U))
  30109. 800d1d8: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  30110. 800d1dc: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  30111. 800d1e0: 2b00 cmp r3, #0
  30112. 800d1e2: d00e beq.n 800d202 <HAL_UART_IRQHandler+0x6c6>
  30113. 800d1e4: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  30114. 800d1e8: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  30115. 800d1ec: 2b00 cmp r3, #0
  30116. 800d1ee: d008 beq.n 800d202 <HAL_UART_IRQHandler+0x6c6>
  30117. {
  30118. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_WUF);
  30119. 800d1f0: 687b ldr r3, [r7, #4]
  30120. 800d1f2: 681b ldr r3, [r3, #0]
  30121. 800d1f4: f44f 1280 mov.w r2, #1048576 @ 0x100000
  30122. 800d1f8: 621a str r2, [r3, #32]
  30123. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  30124. /* Call registered Wakeup Callback */
  30125. huart->WakeupCallback(huart);
  30126. #else
  30127. /* Call legacy weak Wakeup Callback */
  30128. HAL_UARTEx_WakeupCallback(huart);
  30129. 800d1fa: 6878 ldr r0, [r7, #4]
  30130. 800d1fc: f002 f80c bl 800f218 <HAL_UARTEx_WakeupCallback>
  30131. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  30132. return;
  30133. 800d200: e051 b.n 800d2a6 <HAL_UART_IRQHandler+0x76a>
  30134. }
  30135. /* UART in mode Transmitter ------------------------------------------------*/
  30136. if (((isrflags & USART_ISR_TXE_TXFNF) != 0U)
  30137. 800d202: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  30138. 800d206: f003 0380 and.w r3, r3, #128 @ 0x80
  30139. 800d20a: 2b00 cmp r3, #0
  30140. 800d20c: d014 beq.n 800d238 <HAL_UART_IRQHandler+0x6fc>
  30141. && (((cr1its & USART_CR1_TXEIE_TXFNFIE) != 0U)
  30142. 800d20e: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  30143. 800d212: f003 0380 and.w r3, r3, #128 @ 0x80
  30144. 800d216: 2b00 cmp r3, #0
  30145. 800d218: d105 bne.n 800d226 <HAL_UART_IRQHandler+0x6ea>
  30146. || ((cr3its & USART_CR3_TXFTIE) != 0U)))
  30147. 800d21a: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  30148. 800d21e: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  30149. 800d222: 2b00 cmp r3, #0
  30150. 800d224: d008 beq.n 800d238 <HAL_UART_IRQHandler+0x6fc>
  30151. {
  30152. if (huart->TxISR != NULL)
  30153. 800d226: 687b ldr r3, [r7, #4]
  30154. 800d228: 6f9b ldr r3, [r3, #120] @ 0x78
  30155. 800d22a: 2b00 cmp r3, #0
  30156. 800d22c: d03a beq.n 800d2a4 <HAL_UART_IRQHandler+0x768>
  30157. {
  30158. huart->TxISR(huart);
  30159. 800d22e: 687b ldr r3, [r7, #4]
  30160. 800d230: 6f9b ldr r3, [r3, #120] @ 0x78
  30161. 800d232: 6878 ldr r0, [r7, #4]
  30162. 800d234: 4798 blx r3
  30163. }
  30164. return;
  30165. 800d236: e035 b.n 800d2a4 <HAL_UART_IRQHandler+0x768>
  30166. }
  30167. /* UART in mode Transmitter (transmission end) -----------------------------*/
  30168. if (((isrflags & USART_ISR_TC) != 0U) && ((cr1its & USART_CR1_TCIE) != 0U))
  30169. 800d238: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  30170. 800d23c: f003 0340 and.w r3, r3, #64 @ 0x40
  30171. 800d240: 2b00 cmp r3, #0
  30172. 800d242: d009 beq.n 800d258 <HAL_UART_IRQHandler+0x71c>
  30173. 800d244: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  30174. 800d248: f003 0340 and.w r3, r3, #64 @ 0x40
  30175. 800d24c: 2b00 cmp r3, #0
  30176. 800d24e: d003 beq.n 800d258 <HAL_UART_IRQHandler+0x71c>
  30177. {
  30178. UART_EndTransmit_IT(huart);
  30179. 800d250: 6878 ldr r0, [r7, #4]
  30180. 800d252: f001 fa99 bl 800e788 <UART_EndTransmit_IT>
  30181. return;
  30182. 800d256: e026 b.n 800d2a6 <HAL_UART_IRQHandler+0x76a>
  30183. }
  30184. /* UART TX Fifo Empty occurred ----------------------------------------------*/
  30185. if (((isrflags & USART_ISR_TXFE) != 0U) && ((cr1its & USART_CR1_TXFEIE) != 0U))
  30186. 800d258: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  30187. 800d25c: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  30188. 800d260: 2b00 cmp r3, #0
  30189. 800d262: d009 beq.n 800d278 <HAL_UART_IRQHandler+0x73c>
  30190. 800d264: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  30191. 800d268: f003 4380 and.w r3, r3, #1073741824 @ 0x40000000
  30192. 800d26c: 2b00 cmp r3, #0
  30193. 800d26e: d003 beq.n 800d278 <HAL_UART_IRQHandler+0x73c>
  30194. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  30195. /* Call registered Tx Fifo Empty Callback */
  30196. huart->TxFifoEmptyCallback(huart);
  30197. #else
  30198. /* Call legacy weak Tx Fifo Empty Callback */
  30199. HAL_UARTEx_TxFifoEmptyCallback(huart);
  30200. 800d270: 6878 ldr r0, [r7, #4]
  30201. 800d272: f001 ffe5 bl 800f240 <HAL_UARTEx_TxFifoEmptyCallback>
  30202. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  30203. return;
  30204. 800d276: e016 b.n 800d2a6 <HAL_UART_IRQHandler+0x76a>
  30205. }
  30206. /* UART RX Fifo Full occurred ----------------------------------------------*/
  30207. if (((isrflags & USART_ISR_RXFF) != 0U) && ((cr1its & USART_CR1_RXFFIE) != 0U))
  30208. 800d278: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  30209. 800d27c: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  30210. 800d280: 2b00 cmp r3, #0
  30211. 800d282: d010 beq.n 800d2a6 <HAL_UART_IRQHandler+0x76a>
  30212. 800d284: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  30213. 800d288: 2b00 cmp r3, #0
  30214. 800d28a: da0c bge.n 800d2a6 <HAL_UART_IRQHandler+0x76a>
  30215. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  30216. /* Call registered Rx Fifo Full Callback */
  30217. huart->RxFifoFullCallback(huart);
  30218. #else
  30219. /* Call legacy weak Rx Fifo Full Callback */
  30220. HAL_UARTEx_RxFifoFullCallback(huart);
  30221. 800d28c: 6878 ldr r0, [r7, #4]
  30222. 800d28e: f001 ffcd bl 800f22c <HAL_UARTEx_RxFifoFullCallback>
  30223. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  30224. return;
  30225. 800d292: e008 b.n 800d2a6 <HAL_UART_IRQHandler+0x76a>
  30226. return;
  30227. 800d294: bf00 nop
  30228. 800d296: e006 b.n 800d2a6 <HAL_UART_IRQHandler+0x76a>
  30229. return;
  30230. 800d298: bf00 nop
  30231. 800d29a: e004 b.n 800d2a6 <HAL_UART_IRQHandler+0x76a>
  30232. return;
  30233. 800d29c: bf00 nop
  30234. 800d29e: e002 b.n 800d2a6 <HAL_UART_IRQHandler+0x76a>
  30235. return;
  30236. 800d2a0: bf00 nop
  30237. 800d2a2: e000 b.n 800d2a6 <HAL_UART_IRQHandler+0x76a>
  30238. return;
  30239. 800d2a4: bf00 nop
  30240. }
  30241. }
  30242. 800d2a6: 37e8 adds r7, #232 @ 0xe8
  30243. 800d2a8: 46bd mov sp, r7
  30244. 800d2aa: bd80 pop {r7, pc}
  30245. 800d2ac: effffffe .word 0xeffffffe
  30246. 0800d2b0 <HAL_UART_ErrorCallback>:
  30247. * @brief UART error callback.
  30248. * @param huart UART handle.
  30249. * @retval None
  30250. */
  30251. __weak void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart)
  30252. {
  30253. 800d2b0: b480 push {r7}
  30254. 800d2b2: b083 sub sp, #12
  30255. 800d2b4: af00 add r7, sp, #0
  30256. 800d2b6: 6078 str r0, [r7, #4]
  30257. UNUSED(huart);
  30258. /* NOTE : This function should not be modified, when the callback is needed,
  30259. the HAL_UART_ErrorCallback can be implemented in the user file.
  30260. */
  30261. }
  30262. 800d2b8: bf00 nop
  30263. 800d2ba: 370c adds r7, #12
  30264. 800d2bc: 46bd mov sp, r7
  30265. 800d2be: f85d 7b04 ldr.w r7, [sp], #4
  30266. 800d2c2: 4770 bx lr
  30267. 0800d2c4 <UART_SetConfig>:
  30268. * @brief Configure the UART peripheral.
  30269. * @param huart UART handle.
  30270. * @retval HAL status
  30271. */
  30272. HAL_StatusTypeDef UART_SetConfig(UART_HandleTypeDef *huart)
  30273. {
  30274. 800d2c4: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
  30275. 800d2c8: b092 sub sp, #72 @ 0x48
  30276. 800d2ca: af00 add r7, sp, #0
  30277. 800d2cc: 6178 str r0, [r7, #20]
  30278. uint32_t tmpreg;
  30279. uint16_t brrtemp;
  30280. UART_ClockSourceTypeDef clocksource;
  30281. uint32_t usartdiv;
  30282. HAL_StatusTypeDef ret = HAL_OK;
  30283. 800d2ce: 2300 movs r3, #0
  30284. 800d2d0: f887 3042 strb.w r3, [r7, #66] @ 0x42
  30285. * the UART Word Length, Parity, Mode and oversampling:
  30286. * set the M bits according to huart->Init.WordLength value
  30287. * set PCE and PS bits according to huart->Init.Parity value
  30288. * set TE and RE bits according to huart->Init.Mode value
  30289. * set OVER8 bit according to huart->Init.OverSampling value */
  30290. tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling ;
  30291. 800d2d4: 697b ldr r3, [r7, #20]
  30292. 800d2d6: 689a ldr r2, [r3, #8]
  30293. 800d2d8: 697b ldr r3, [r7, #20]
  30294. 800d2da: 691b ldr r3, [r3, #16]
  30295. 800d2dc: 431a orrs r2, r3
  30296. 800d2de: 697b ldr r3, [r7, #20]
  30297. 800d2e0: 695b ldr r3, [r3, #20]
  30298. 800d2e2: 431a orrs r2, r3
  30299. 800d2e4: 697b ldr r3, [r7, #20]
  30300. 800d2e6: 69db ldr r3, [r3, #28]
  30301. 800d2e8: 4313 orrs r3, r2
  30302. 800d2ea: 647b str r3, [r7, #68] @ 0x44
  30303. MODIFY_REG(huart->Instance->CR1, USART_CR1_FIELDS, tmpreg);
  30304. 800d2ec: 697b ldr r3, [r7, #20]
  30305. 800d2ee: 681b ldr r3, [r3, #0]
  30306. 800d2f0: 681a ldr r2, [r3, #0]
  30307. 800d2f2: 4bbe ldr r3, [pc, #760] @ (800d5ec <UART_SetConfig+0x328>)
  30308. 800d2f4: 4013 ands r3, r2
  30309. 800d2f6: 697a ldr r2, [r7, #20]
  30310. 800d2f8: 6812 ldr r2, [r2, #0]
  30311. 800d2fa: 6c79 ldr r1, [r7, #68] @ 0x44
  30312. 800d2fc: 430b orrs r3, r1
  30313. 800d2fe: 6013 str r3, [r2, #0]
  30314. /*-------------------------- USART CR2 Configuration -----------------------*/
  30315. /* Configure the UART Stop Bits: Set STOP[13:12] bits according
  30316. * to huart->Init.StopBits value */
  30317. MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits);
  30318. 800d300: 697b ldr r3, [r7, #20]
  30319. 800d302: 681b ldr r3, [r3, #0]
  30320. 800d304: 685b ldr r3, [r3, #4]
  30321. 800d306: f423 5140 bic.w r1, r3, #12288 @ 0x3000
  30322. 800d30a: 697b ldr r3, [r7, #20]
  30323. 800d30c: 68da ldr r2, [r3, #12]
  30324. 800d30e: 697b ldr r3, [r7, #20]
  30325. 800d310: 681b ldr r3, [r3, #0]
  30326. 800d312: 430a orrs r2, r1
  30327. 800d314: 605a str r2, [r3, #4]
  30328. /* Configure
  30329. * - UART HardWare Flow Control: set CTSE and RTSE bits according
  30330. * to huart->Init.HwFlowCtl value
  30331. * - one-bit sampling method versus three samples' majority rule according
  30332. * to huart->Init.OneBitSampling (not applicable to LPUART) */
  30333. tmpreg = (uint32_t)huart->Init.HwFlowCtl;
  30334. 800d316: 697b ldr r3, [r7, #20]
  30335. 800d318: 699b ldr r3, [r3, #24]
  30336. 800d31a: 647b str r3, [r7, #68] @ 0x44
  30337. if (!(UART_INSTANCE_LOWPOWER(huart)))
  30338. 800d31c: 697b ldr r3, [r7, #20]
  30339. 800d31e: 681b ldr r3, [r3, #0]
  30340. 800d320: 4ab3 ldr r2, [pc, #716] @ (800d5f0 <UART_SetConfig+0x32c>)
  30341. 800d322: 4293 cmp r3, r2
  30342. 800d324: d004 beq.n 800d330 <UART_SetConfig+0x6c>
  30343. {
  30344. tmpreg |= huart->Init.OneBitSampling;
  30345. 800d326: 697b ldr r3, [r7, #20]
  30346. 800d328: 6a1b ldr r3, [r3, #32]
  30347. 800d32a: 6c7a ldr r2, [r7, #68] @ 0x44
  30348. 800d32c: 4313 orrs r3, r2
  30349. 800d32e: 647b str r3, [r7, #68] @ 0x44
  30350. }
  30351. MODIFY_REG(huart->Instance->CR3, USART_CR3_FIELDS, tmpreg);
  30352. 800d330: 697b ldr r3, [r7, #20]
  30353. 800d332: 681b ldr r3, [r3, #0]
  30354. 800d334: 689a ldr r2, [r3, #8]
  30355. 800d336: 4baf ldr r3, [pc, #700] @ (800d5f4 <UART_SetConfig+0x330>)
  30356. 800d338: 4013 ands r3, r2
  30357. 800d33a: 697a ldr r2, [r7, #20]
  30358. 800d33c: 6812 ldr r2, [r2, #0]
  30359. 800d33e: 6c79 ldr r1, [r7, #68] @ 0x44
  30360. 800d340: 430b orrs r3, r1
  30361. 800d342: 6093 str r3, [r2, #8]
  30362. /*-------------------------- USART PRESC Configuration -----------------------*/
  30363. /* Configure
  30364. * - UART Clock Prescaler : set PRESCALER according to huart->Init.ClockPrescaler value */
  30365. MODIFY_REG(huart->Instance->PRESC, USART_PRESC_PRESCALER, huart->Init.ClockPrescaler);
  30366. 800d344: 697b ldr r3, [r7, #20]
  30367. 800d346: 681b ldr r3, [r3, #0]
  30368. 800d348: 6adb ldr r3, [r3, #44] @ 0x2c
  30369. 800d34a: f023 010f bic.w r1, r3, #15
  30370. 800d34e: 697b ldr r3, [r7, #20]
  30371. 800d350: 6a5a ldr r2, [r3, #36] @ 0x24
  30372. 800d352: 697b ldr r3, [r7, #20]
  30373. 800d354: 681b ldr r3, [r3, #0]
  30374. 800d356: 430a orrs r2, r1
  30375. 800d358: 62da str r2, [r3, #44] @ 0x2c
  30376. /*-------------------------- USART BRR Configuration -----------------------*/
  30377. UART_GETCLOCKSOURCE(huart, clocksource);
  30378. 800d35a: 697b ldr r3, [r7, #20]
  30379. 800d35c: 681b ldr r3, [r3, #0]
  30380. 800d35e: 4aa6 ldr r2, [pc, #664] @ (800d5f8 <UART_SetConfig+0x334>)
  30381. 800d360: 4293 cmp r3, r2
  30382. 800d362: d177 bne.n 800d454 <UART_SetConfig+0x190>
  30383. 800d364: 4ba5 ldr r3, [pc, #660] @ (800d5fc <UART_SetConfig+0x338>)
  30384. 800d366: 6d5b ldr r3, [r3, #84] @ 0x54
  30385. 800d368: f003 0338 and.w r3, r3, #56 @ 0x38
  30386. 800d36c: 2b28 cmp r3, #40 @ 0x28
  30387. 800d36e: d86d bhi.n 800d44c <UART_SetConfig+0x188>
  30388. 800d370: a201 add r2, pc, #4 @ (adr r2, 800d378 <UART_SetConfig+0xb4>)
  30389. 800d372: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30390. 800d376: bf00 nop
  30391. 800d378: 0800d41d .word 0x0800d41d
  30392. 800d37c: 0800d44d .word 0x0800d44d
  30393. 800d380: 0800d44d .word 0x0800d44d
  30394. 800d384: 0800d44d .word 0x0800d44d
  30395. 800d388: 0800d44d .word 0x0800d44d
  30396. 800d38c: 0800d44d .word 0x0800d44d
  30397. 800d390: 0800d44d .word 0x0800d44d
  30398. 800d394: 0800d44d .word 0x0800d44d
  30399. 800d398: 0800d425 .word 0x0800d425
  30400. 800d39c: 0800d44d .word 0x0800d44d
  30401. 800d3a0: 0800d44d .word 0x0800d44d
  30402. 800d3a4: 0800d44d .word 0x0800d44d
  30403. 800d3a8: 0800d44d .word 0x0800d44d
  30404. 800d3ac: 0800d44d .word 0x0800d44d
  30405. 800d3b0: 0800d44d .word 0x0800d44d
  30406. 800d3b4: 0800d44d .word 0x0800d44d
  30407. 800d3b8: 0800d42d .word 0x0800d42d
  30408. 800d3bc: 0800d44d .word 0x0800d44d
  30409. 800d3c0: 0800d44d .word 0x0800d44d
  30410. 800d3c4: 0800d44d .word 0x0800d44d
  30411. 800d3c8: 0800d44d .word 0x0800d44d
  30412. 800d3cc: 0800d44d .word 0x0800d44d
  30413. 800d3d0: 0800d44d .word 0x0800d44d
  30414. 800d3d4: 0800d44d .word 0x0800d44d
  30415. 800d3d8: 0800d435 .word 0x0800d435
  30416. 800d3dc: 0800d44d .word 0x0800d44d
  30417. 800d3e0: 0800d44d .word 0x0800d44d
  30418. 800d3e4: 0800d44d .word 0x0800d44d
  30419. 800d3e8: 0800d44d .word 0x0800d44d
  30420. 800d3ec: 0800d44d .word 0x0800d44d
  30421. 800d3f0: 0800d44d .word 0x0800d44d
  30422. 800d3f4: 0800d44d .word 0x0800d44d
  30423. 800d3f8: 0800d43d .word 0x0800d43d
  30424. 800d3fc: 0800d44d .word 0x0800d44d
  30425. 800d400: 0800d44d .word 0x0800d44d
  30426. 800d404: 0800d44d .word 0x0800d44d
  30427. 800d408: 0800d44d .word 0x0800d44d
  30428. 800d40c: 0800d44d .word 0x0800d44d
  30429. 800d410: 0800d44d .word 0x0800d44d
  30430. 800d414: 0800d44d .word 0x0800d44d
  30431. 800d418: 0800d445 .word 0x0800d445
  30432. 800d41c: 2301 movs r3, #1
  30433. 800d41e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30434. 800d422: e222 b.n 800d86a <UART_SetConfig+0x5a6>
  30435. 800d424: 2304 movs r3, #4
  30436. 800d426: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30437. 800d42a: e21e b.n 800d86a <UART_SetConfig+0x5a6>
  30438. 800d42c: 2308 movs r3, #8
  30439. 800d42e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30440. 800d432: e21a b.n 800d86a <UART_SetConfig+0x5a6>
  30441. 800d434: 2310 movs r3, #16
  30442. 800d436: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30443. 800d43a: e216 b.n 800d86a <UART_SetConfig+0x5a6>
  30444. 800d43c: 2320 movs r3, #32
  30445. 800d43e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30446. 800d442: e212 b.n 800d86a <UART_SetConfig+0x5a6>
  30447. 800d444: 2340 movs r3, #64 @ 0x40
  30448. 800d446: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30449. 800d44a: e20e b.n 800d86a <UART_SetConfig+0x5a6>
  30450. 800d44c: 2380 movs r3, #128 @ 0x80
  30451. 800d44e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30452. 800d452: e20a b.n 800d86a <UART_SetConfig+0x5a6>
  30453. 800d454: 697b ldr r3, [r7, #20]
  30454. 800d456: 681b ldr r3, [r3, #0]
  30455. 800d458: 4a69 ldr r2, [pc, #420] @ (800d600 <UART_SetConfig+0x33c>)
  30456. 800d45a: 4293 cmp r3, r2
  30457. 800d45c: d130 bne.n 800d4c0 <UART_SetConfig+0x1fc>
  30458. 800d45e: 4b67 ldr r3, [pc, #412] @ (800d5fc <UART_SetConfig+0x338>)
  30459. 800d460: 6d5b ldr r3, [r3, #84] @ 0x54
  30460. 800d462: f003 0307 and.w r3, r3, #7
  30461. 800d466: 2b05 cmp r3, #5
  30462. 800d468: d826 bhi.n 800d4b8 <UART_SetConfig+0x1f4>
  30463. 800d46a: a201 add r2, pc, #4 @ (adr r2, 800d470 <UART_SetConfig+0x1ac>)
  30464. 800d46c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30465. 800d470: 0800d489 .word 0x0800d489
  30466. 800d474: 0800d491 .word 0x0800d491
  30467. 800d478: 0800d499 .word 0x0800d499
  30468. 800d47c: 0800d4a1 .word 0x0800d4a1
  30469. 800d480: 0800d4a9 .word 0x0800d4a9
  30470. 800d484: 0800d4b1 .word 0x0800d4b1
  30471. 800d488: 2300 movs r3, #0
  30472. 800d48a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30473. 800d48e: e1ec b.n 800d86a <UART_SetConfig+0x5a6>
  30474. 800d490: 2304 movs r3, #4
  30475. 800d492: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30476. 800d496: e1e8 b.n 800d86a <UART_SetConfig+0x5a6>
  30477. 800d498: 2308 movs r3, #8
  30478. 800d49a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30479. 800d49e: e1e4 b.n 800d86a <UART_SetConfig+0x5a6>
  30480. 800d4a0: 2310 movs r3, #16
  30481. 800d4a2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30482. 800d4a6: e1e0 b.n 800d86a <UART_SetConfig+0x5a6>
  30483. 800d4a8: 2320 movs r3, #32
  30484. 800d4aa: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30485. 800d4ae: e1dc b.n 800d86a <UART_SetConfig+0x5a6>
  30486. 800d4b0: 2340 movs r3, #64 @ 0x40
  30487. 800d4b2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30488. 800d4b6: e1d8 b.n 800d86a <UART_SetConfig+0x5a6>
  30489. 800d4b8: 2380 movs r3, #128 @ 0x80
  30490. 800d4ba: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30491. 800d4be: e1d4 b.n 800d86a <UART_SetConfig+0x5a6>
  30492. 800d4c0: 697b ldr r3, [r7, #20]
  30493. 800d4c2: 681b ldr r3, [r3, #0]
  30494. 800d4c4: 4a4f ldr r2, [pc, #316] @ (800d604 <UART_SetConfig+0x340>)
  30495. 800d4c6: 4293 cmp r3, r2
  30496. 800d4c8: d130 bne.n 800d52c <UART_SetConfig+0x268>
  30497. 800d4ca: 4b4c ldr r3, [pc, #304] @ (800d5fc <UART_SetConfig+0x338>)
  30498. 800d4cc: 6d5b ldr r3, [r3, #84] @ 0x54
  30499. 800d4ce: f003 0307 and.w r3, r3, #7
  30500. 800d4d2: 2b05 cmp r3, #5
  30501. 800d4d4: d826 bhi.n 800d524 <UART_SetConfig+0x260>
  30502. 800d4d6: a201 add r2, pc, #4 @ (adr r2, 800d4dc <UART_SetConfig+0x218>)
  30503. 800d4d8: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30504. 800d4dc: 0800d4f5 .word 0x0800d4f5
  30505. 800d4e0: 0800d4fd .word 0x0800d4fd
  30506. 800d4e4: 0800d505 .word 0x0800d505
  30507. 800d4e8: 0800d50d .word 0x0800d50d
  30508. 800d4ec: 0800d515 .word 0x0800d515
  30509. 800d4f0: 0800d51d .word 0x0800d51d
  30510. 800d4f4: 2300 movs r3, #0
  30511. 800d4f6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30512. 800d4fa: e1b6 b.n 800d86a <UART_SetConfig+0x5a6>
  30513. 800d4fc: 2304 movs r3, #4
  30514. 800d4fe: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30515. 800d502: e1b2 b.n 800d86a <UART_SetConfig+0x5a6>
  30516. 800d504: 2308 movs r3, #8
  30517. 800d506: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30518. 800d50a: e1ae b.n 800d86a <UART_SetConfig+0x5a6>
  30519. 800d50c: 2310 movs r3, #16
  30520. 800d50e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30521. 800d512: e1aa b.n 800d86a <UART_SetConfig+0x5a6>
  30522. 800d514: 2320 movs r3, #32
  30523. 800d516: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30524. 800d51a: e1a6 b.n 800d86a <UART_SetConfig+0x5a6>
  30525. 800d51c: 2340 movs r3, #64 @ 0x40
  30526. 800d51e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30527. 800d522: e1a2 b.n 800d86a <UART_SetConfig+0x5a6>
  30528. 800d524: 2380 movs r3, #128 @ 0x80
  30529. 800d526: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30530. 800d52a: e19e b.n 800d86a <UART_SetConfig+0x5a6>
  30531. 800d52c: 697b ldr r3, [r7, #20]
  30532. 800d52e: 681b ldr r3, [r3, #0]
  30533. 800d530: 4a35 ldr r2, [pc, #212] @ (800d608 <UART_SetConfig+0x344>)
  30534. 800d532: 4293 cmp r3, r2
  30535. 800d534: d130 bne.n 800d598 <UART_SetConfig+0x2d4>
  30536. 800d536: 4b31 ldr r3, [pc, #196] @ (800d5fc <UART_SetConfig+0x338>)
  30537. 800d538: 6d5b ldr r3, [r3, #84] @ 0x54
  30538. 800d53a: f003 0307 and.w r3, r3, #7
  30539. 800d53e: 2b05 cmp r3, #5
  30540. 800d540: d826 bhi.n 800d590 <UART_SetConfig+0x2cc>
  30541. 800d542: a201 add r2, pc, #4 @ (adr r2, 800d548 <UART_SetConfig+0x284>)
  30542. 800d544: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30543. 800d548: 0800d561 .word 0x0800d561
  30544. 800d54c: 0800d569 .word 0x0800d569
  30545. 800d550: 0800d571 .word 0x0800d571
  30546. 800d554: 0800d579 .word 0x0800d579
  30547. 800d558: 0800d581 .word 0x0800d581
  30548. 800d55c: 0800d589 .word 0x0800d589
  30549. 800d560: 2300 movs r3, #0
  30550. 800d562: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30551. 800d566: e180 b.n 800d86a <UART_SetConfig+0x5a6>
  30552. 800d568: 2304 movs r3, #4
  30553. 800d56a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30554. 800d56e: e17c b.n 800d86a <UART_SetConfig+0x5a6>
  30555. 800d570: 2308 movs r3, #8
  30556. 800d572: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30557. 800d576: e178 b.n 800d86a <UART_SetConfig+0x5a6>
  30558. 800d578: 2310 movs r3, #16
  30559. 800d57a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30560. 800d57e: e174 b.n 800d86a <UART_SetConfig+0x5a6>
  30561. 800d580: 2320 movs r3, #32
  30562. 800d582: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30563. 800d586: e170 b.n 800d86a <UART_SetConfig+0x5a6>
  30564. 800d588: 2340 movs r3, #64 @ 0x40
  30565. 800d58a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30566. 800d58e: e16c b.n 800d86a <UART_SetConfig+0x5a6>
  30567. 800d590: 2380 movs r3, #128 @ 0x80
  30568. 800d592: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30569. 800d596: e168 b.n 800d86a <UART_SetConfig+0x5a6>
  30570. 800d598: 697b ldr r3, [r7, #20]
  30571. 800d59a: 681b ldr r3, [r3, #0]
  30572. 800d59c: 4a1b ldr r2, [pc, #108] @ (800d60c <UART_SetConfig+0x348>)
  30573. 800d59e: 4293 cmp r3, r2
  30574. 800d5a0: d142 bne.n 800d628 <UART_SetConfig+0x364>
  30575. 800d5a2: 4b16 ldr r3, [pc, #88] @ (800d5fc <UART_SetConfig+0x338>)
  30576. 800d5a4: 6d5b ldr r3, [r3, #84] @ 0x54
  30577. 800d5a6: f003 0307 and.w r3, r3, #7
  30578. 800d5aa: 2b05 cmp r3, #5
  30579. 800d5ac: d838 bhi.n 800d620 <UART_SetConfig+0x35c>
  30580. 800d5ae: a201 add r2, pc, #4 @ (adr r2, 800d5b4 <UART_SetConfig+0x2f0>)
  30581. 800d5b0: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30582. 800d5b4: 0800d5cd .word 0x0800d5cd
  30583. 800d5b8: 0800d5d5 .word 0x0800d5d5
  30584. 800d5bc: 0800d5dd .word 0x0800d5dd
  30585. 800d5c0: 0800d5e5 .word 0x0800d5e5
  30586. 800d5c4: 0800d611 .word 0x0800d611
  30587. 800d5c8: 0800d619 .word 0x0800d619
  30588. 800d5cc: 2300 movs r3, #0
  30589. 800d5ce: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30590. 800d5d2: e14a b.n 800d86a <UART_SetConfig+0x5a6>
  30591. 800d5d4: 2304 movs r3, #4
  30592. 800d5d6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30593. 800d5da: e146 b.n 800d86a <UART_SetConfig+0x5a6>
  30594. 800d5dc: 2308 movs r3, #8
  30595. 800d5de: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30596. 800d5e2: e142 b.n 800d86a <UART_SetConfig+0x5a6>
  30597. 800d5e4: 2310 movs r3, #16
  30598. 800d5e6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30599. 800d5ea: e13e b.n 800d86a <UART_SetConfig+0x5a6>
  30600. 800d5ec: cfff69f3 .word 0xcfff69f3
  30601. 800d5f0: 58000c00 .word 0x58000c00
  30602. 800d5f4: 11fff4ff .word 0x11fff4ff
  30603. 800d5f8: 40011000 .word 0x40011000
  30604. 800d5fc: 58024400 .word 0x58024400
  30605. 800d600: 40004400 .word 0x40004400
  30606. 800d604: 40004800 .word 0x40004800
  30607. 800d608: 40004c00 .word 0x40004c00
  30608. 800d60c: 40005000 .word 0x40005000
  30609. 800d610: 2320 movs r3, #32
  30610. 800d612: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30611. 800d616: e128 b.n 800d86a <UART_SetConfig+0x5a6>
  30612. 800d618: 2340 movs r3, #64 @ 0x40
  30613. 800d61a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30614. 800d61e: e124 b.n 800d86a <UART_SetConfig+0x5a6>
  30615. 800d620: 2380 movs r3, #128 @ 0x80
  30616. 800d622: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30617. 800d626: e120 b.n 800d86a <UART_SetConfig+0x5a6>
  30618. 800d628: 697b ldr r3, [r7, #20]
  30619. 800d62a: 681b ldr r3, [r3, #0]
  30620. 800d62c: 4acb ldr r2, [pc, #812] @ (800d95c <UART_SetConfig+0x698>)
  30621. 800d62e: 4293 cmp r3, r2
  30622. 800d630: d176 bne.n 800d720 <UART_SetConfig+0x45c>
  30623. 800d632: 4bcb ldr r3, [pc, #812] @ (800d960 <UART_SetConfig+0x69c>)
  30624. 800d634: 6d5b ldr r3, [r3, #84] @ 0x54
  30625. 800d636: f003 0338 and.w r3, r3, #56 @ 0x38
  30626. 800d63a: 2b28 cmp r3, #40 @ 0x28
  30627. 800d63c: d86c bhi.n 800d718 <UART_SetConfig+0x454>
  30628. 800d63e: a201 add r2, pc, #4 @ (adr r2, 800d644 <UART_SetConfig+0x380>)
  30629. 800d640: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30630. 800d644: 0800d6e9 .word 0x0800d6e9
  30631. 800d648: 0800d719 .word 0x0800d719
  30632. 800d64c: 0800d719 .word 0x0800d719
  30633. 800d650: 0800d719 .word 0x0800d719
  30634. 800d654: 0800d719 .word 0x0800d719
  30635. 800d658: 0800d719 .word 0x0800d719
  30636. 800d65c: 0800d719 .word 0x0800d719
  30637. 800d660: 0800d719 .word 0x0800d719
  30638. 800d664: 0800d6f1 .word 0x0800d6f1
  30639. 800d668: 0800d719 .word 0x0800d719
  30640. 800d66c: 0800d719 .word 0x0800d719
  30641. 800d670: 0800d719 .word 0x0800d719
  30642. 800d674: 0800d719 .word 0x0800d719
  30643. 800d678: 0800d719 .word 0x0800d719
  30644. 800d67c: 0800d719 .word 0x0800d719
  30645. 800d680: 0800d719 .word 0x0800d719
  30646. 800d684: 0800d6f9 .word 0x0800d6f9
  30647. 800d688: 0800d719 .word 0x0800d719
  30648. 800d68c: 0800d719 .word 0x0800d719
  30649. 800d690: 0800d719 .word 0x0800d719
  30650. 800d694: 0800d719 .word 0x0800d719
  30651. 800d698: 0800d719 .word 0x0800d719
  30652. 800d69c: 0800d719 .word 0x0800d719
  30653. 800d6a0: 0800d719 .word 0x0800d719
  30654. 800d6a4: 0800d701 .word 0x0800d701
  30655. 800d6a8: 0800d719 .word 0x0800d719
  30656. 800d6ac: 0800d719 .word 0x0800d719
  30657. 800d6b0: 0800d719 .word 0x0800d719
  30658. 800d6b4: 0800d719 .word 0x0800d719
  30659. 800d6b8: 0800d719 .word 0x0800d719
  30660. 800d6bc: 0800d719 .word 0x0800d719
  30661. 800d6c0: 0800d719 .word 0x0800d719
  30662. 800d6c4: 0800d709 .word 0x0800d709
  30663. 800d6c8: 0800d719 .word 0x0800d719
  30664. 800d6cc: 0800d719 .word 0x0800d719
  30665. 800d6d0: 0800d719 .word 0x0800d719
  30666. 800d6d4: 0800d719 .word 0x0800d719
  30667. 800d6d8: 0800d719 .word 0x0800d719
  30668. 800d6dc: 0800d719 .word 0x0800d719
  30669. 800d6e0: 0800d719 .word 0x0800d719
  30670. 800d6e4: 0800d711 .word 0x0800d711
  30671. 800d6e8: 2301 movs r3, #1
  30672. 800d6ea: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30673. 800d6ee: e0bc b.n 800d86a <UART_SetConfig+0x5a6>
  30674. 800d6f0: 2304 movs r3, #4
  30675. 800d6f2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30676. 800d6f6: e0b8 b.n 800d86a <UART_SetConfig+0x5a6>
  30677. 800d6f8: 2308 movs r3, #8
  30678. 800d6fa: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30679. 800d6fe: e0b4 b.n 800d86a <UART_SetConfig+0x5a6>
  30680. 800d700: 2310 movs r3, #16
  30681. 800d702: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30682. 800d706: e0b0 b.n 800d86a <UART_SetConfig+0x5a6>
  30683. 800d708: 2320 movs r3, #32
  30684. 800d70a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30685. 800d70e: e0ac b.n 800d86a <UART_SetConfig+0x5a6>
  30686. 800d710: 2340 movs r3, #64 @ 0x40
  30687. 800d712: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30688. 800d716: e0a8 b.n 800d86a <UART_SetConfig+0x5a6>
  30689. 800d718: 2380 movs r3, #128 @ 0x80
  30690. 800d71a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30691. 800d71e: e0a4 b.n 800d86a <UART_SetConfig+0x5a6>
  30692. 800d720: 697b ldr r3, [r7, #20]
  30693. 800d722: 681b ldr r3, [r3, #0]
  30694. 800d724: 4a8f ldr r2, [pc, #572] @ (800d964 <UART_SetConfig+0x6a0>)
  30695. 800d726: 4293 cmp r3, r2
  30696. 800d728: d130 bne.n 800d78c <UART_SetConfig+0x4c8>
  30697. 800d72a: 4b8d ldr r3, [pc, #564] @ (800d960 <UART_SetConfig+0x69c>)
  30698. 800d72c: 6d5b ldr r3, [r3, #84] @ 0x54
  30699. 800d72e: f003 0307 and.w r3, r3, #7
  30700. 800d732: 2b05 cmp r3, #5
  30701. 800d734: d826 bhi.n 800d784 <UART_SetConfig+0x4c0>
  30702. 800d736: a201 add r2, pc, #4 @ (adr r2, 800d73c <UART_SetConfig+0x478>)
  30703. 800d738: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30704. 800d73c: 0800d755 .word 0x0800d755
  30705. 800d740: 0800d75d .word 0x0800d75d
  30706. 800d744: 0800d765 .word 0x0800d765
  30707. 800d748: 0800d76d .word 0x0800d76d
  30708. 800d74c: 0800d775 .word 0x0800d775
  30709. 800d750: 0800d77d .word 0x0800d77d
  30710. 800d754: 2300 movs r3, #0
  30711. 800d756: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30712. 800d75a: e086 b.n 800d86a <UART_SetConfig+0x5a6>
  30713. 800d75c: 2304 movs r3, #4
  30714. 800d75e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30715. 800d762: e082 b.n 800d86a <UART_SetConfig+0x5a6>
  30716. 800d764: 2308 movs r3, #8
  30717. 800d766: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30718. 800d76a: e07e b.n 800d86a <UART_SetConfig+0x5a6>
  30719. 800d76c: 2310 movs r3, #16
  30720. 800d76e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30721. 800d772: e07a b.n 800d86a <UART_SetConfig+0x5a6>
  30722. 800d774: 2320 movs r3, #32
  30723. 800d776: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30724. 800d77a: e076 b.n 800d86a <UART_SetConfig+0x5a6>
  30725. 800d77c: 2340 movs r3, #64 @ 0x40
  30726. 800d77e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30727. 800d782: e072 b.n 800d86a <UART_SetConfig+0x5a6>
  30728. 800d784: 2380 movs r3, #128 @ 0x80
  30729. 800d786: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30730. 800d78a: e06e b.n 800d86a <UART_SetConfig+0x5a6>
  30731. 800d78c: 697b ldr r3, [r7, #20]
  30732. 800d78e: 681b ldr r3, [r3, #0]
  30733. 800d790: 4a75 ldr r2, [pc, #468] @ (800d968 <UART_SetConfig+0x6a4>)
  30734. 800d792: 4293 cmp r3, r2
  30735. 800d794: d130 bne.n 800d7f8 <UART_SetConfig+0x534>
  30736. 800d796: 4b72 ldr r3, [pc, #456] @ (800d960 <UART_SetConfig+0x69c>)
  30737. 800d798: 6d5b ldr r3, [r3, #84] @ 0x54
  30738. 800d79a: f003 0307 and.w r3, r3, #7
  30739. 800d79e: 2b05 cmp r3, #5
  30740. 800d7a0: d826 bhi.n 800d7f0 <UART_SetConfig+0x52c>
  30741. 800d7a2: a201 add r2, pc, #4 @ (adr r2, 800d7a8 <UART_SetConfig+0x4e4>)
  30742. 800d7a4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30743. 800d7a8: 0800d7c1 .word 0x0800d7c1
  30744. 800d7ac: 0800d7c9 .word 0x0800d7c9
  30745. 800d7b0: 0800d7d1 .word 0x0800d7d1
  30746. 800d7b4: 0800d7d9 .word 0x0800d7d9
  30747. 800d7b8: 0800d7e1 .word 0x0800d7e1
  30748. 800d7bc: 0800d7e9 .word 0x0800d7e9
  30749. 800d7c0: 2300 movs r3, #0
  30750. 800d7c2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30751. 800d7c6: e050 b.n 800d86a <UART_SetConfig+0x5a6>
  30752. 800d7c8: 2304 movs r3, #4
  30753. 800d7ca: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30754. 800d7ce: e04c b.n 800d86a <UART_SetConfig+0x5a6>
  30755. 800d7d0: 2308 movs r3, #8
  30756. 800d7d2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30757. 800d7d6: e048 b.n 800d86a <UART_SetConfig+0x5a6>
  30758. 800d7d8: 2310 movs r3, #16
  30759. 800d7da: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30760. 800d7de: e044 b.n 800d86a <UART_SetConfig+0x5a6>
  30761. 800d7e0: 2320 movs r3, #32
  30762. 800d7e2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30763. 800d7e6: e040 b.n 800d86a <UART_SetConfig+0x5a6>
  30764. 800d7e8: 2340 movs r3, #64 @ 0x40
  30765. 800d7ea: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30766. 800d7ee: e03c b.n 800d86a <UART_SetConfig+0x5a6>
  30767. 800d7f0: 2380 movs r3, #128 @ 0x80
  30768. 800d7f2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30769. 800d7f6: e038 b.n 800d86a <UART_SetConfig+0x5a6>
  30770. 800d7f8: 697b ldr r3, [r7, #20]
  30771. 800d7fa: 681b ldr r3, [r3, #0]
  30772. 800d7fc: 4a5b ldr r2, [pc, #364] @ (800d96c <UART_SetConfig+0x6a8>)
  30773. 800d7fe: 4293 cmp r3, r2
  30774. 800d800: d130 bne.n 800d864 <UART_SetConfig+0x5a0>
  30775. 800d802: 4b57 ldr r3, [pc, #348] @ (800d960 <UART_SetConfig+0x69c>)
  30776. 800d804: 6d9b ldr r3, [r3, #88] @ 0x58
  30777. 800d806: f003 0307 and.w r3, r3, #7
  30778. 800d80a: 2b05 cmp r3, #5
  30779. 800d80c: d826 bhi.n 800d85c <UART_SetConfig+0x598>
  30780. 800d80e: a201 add r2, pc, #4 @ (adr r2, 800d814 <UART_SetConfig+0x550>)
  30781. 800d810: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30782. 800d814: 0800d82d .word 0x0800d82d
  30783. 800d818: 0800d835 .word 0x0800d835
  30784. 800d81c: 0800d83d .word 0x0800d83d
  30785. 800d820: 0800d845 .word 0x0800d845
  30786. 800d824: 0800d84d .word 0x0800d84d
  30787. 800d828: 0800d855 .word 0x0800d855
  30788. 800d82c: 2302 movs r3, #2
  30789. 800d82e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30790. 800d832: e01a b.n 800d86a <UART_SetConfig+0x5a6>
  30791. 800d834: 2304 movs r3, #4
  30792. 800d836: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30793. 800d83a: e016 b.n 800d86a <UART_SetConfig+0x5a6>
  30794. 800d83c: 2308 movs r3, #8
  30795. 800d83e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30796. 800d842: e012 b.n 800d86a <UART_SetConfig+0x5a6>
  30797. 800d844: 2310 movs r3, #16
  30798. 800d846: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30799. 800d84a: e00e b.n 800d86a <UART_SetConfig+0x5a6>
  30800. 800d84c: 2320 movs r3, #32
  30801. 800d84e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30802. 800d852: e00a b.n 800d86a <UART_SetConfig+0x5a6>
  30803. 800d854: 2340 movs r3, #64 @ 0x40
  30804. 800d856: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30805. 800d85a: e006 b.n 800d86a <UART_SetConfig+0x5a6>
  30806. 800d85c: 2380 movs r3, #128 @ 0x80
  30807. 800d85e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30808. 800d862: e002 b.n 800d86a <UART_SetConfig+0x5a6>
  30809. 800d864: 2380 movs r3, #128 @ 0x80
  30810. 800d866: f887 3043 strb.w r3, [r7, #67] @ 0x43
  30811. /* Check LPUART instance */
  30812. if (UART_INSTANCE_LOWPOWER(huart))
  30813. 800d86a: 697b ldr r3, [r7, #20]
  30814. 800d86c: 681b ldr r3, [r3, #0]
  30815. 800d86e: 4a3f ldr r2, [pc, #252] @ (800d96c <UART_SetConfig+0x6a8>)
  30816. 800d870: 4293 cmp r3, r2
  30817. 800d872: f040 80f8 bne.w 800da66 <UART_SetConfig+0x7a2>
  30818. {
  30819. /* Retrieve frequency clock */
  30820. switch (clocksource)
  30821. 800d876: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  30822. 800d87a: 2b20 cmp r3, #32
  30823. 800d87c: dc46 bgt.n 800d90c <UART_SetConfig+0x648>
  30824. 800d87e: 2b02 cmp r3, #2
  30825. 800d880: f2c0 8082 blt.w 800d988 <UART_SetConfig+0x6c4>
  30826. 800d884: 3b02 subs r3, #2
  30827. 800d886: 2b1e cmp r3, #30
  30828. 800d888: d87e bhi.n 800d988 <UART_SetConfig+0x6c4>
  30829. 800d88a: a201 add r2, pc, #4 @ (adr r2, 800d890 <UART_SetConfig+0x5cc>)
  30830. 800d88c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30831. 800d890: 0800d913 .word 0x0800d913
  30832. 800d894: 0800d989 .word 0x0800d989
  30833. 800d898: 0800d91b .word 0x0800d91b
  30834. 800d89c: 0800d989 .word 0x0800d989
  30835. 800d8a0: 0800d989 .word 0x0800d989
  30836. 800d8a4: 0800d989 .word 0x0800d989
  30837. 800d8a8: 0800d92b .word 0x0800d92b
  30838. 800d8ac: 0800d989 .word 0x0800d989
  30839. 800d8b0: 0800d989 .word 0x0800d989
  30840. 800d8b4: 0800d989 .word 0x0800d989
  30841. 800d8b8: 0800d989 .word 0x0800d989
  30842. 800d8bc: 0800d989 .word 0x0800d989
  30843. 800d8c0: 0800d989 .word 0x0800d989
  30844. 800d8c4: 0800d989 .word 0x0800d989
  30845. 800d8c8: 0800d93b .word 0x0800d93b
  30846. 800d8cc: 0800d989 .word 0x0800d989
  30847. 800d8d0: 0800d989 .word 0x0800d989
  30848. 800d8d4: 0800d989 .word 0x0800d989
  30849. 800d8d8: 0800d989 .word 0x0800d989
  30850. 800d8dc: 0800d989 .word 0x0800d989
  30851. 800d8e0: 0800d989 .word 0x0800d989
  30852. 800d8e4: 0800d989 .word 0x0800d989
  30853. 800d8e8: 0800d989 .word 0x0800d989
  30854. 800d8ec: 0800d989 .word 0x0800d989
  30855. 800d8f0: 0800d989 .word 0x0800d989
  30856. 800d8f4: 0800d989 .word 0x0800d989
  30857. 800d8f8: 0800d989 .word 0x0800d989
  30858. 800d8fc: 0800d989 .word 0x0800d989
  30859. 800d900: 0800d989 .word 0x0800d989
  30860. 800d904: 0800d989 .word 0x0800d989
  30861. 800d908: 0800d97b .word 0x0800d97b
  30862. 800d90c: 2b40 cmp r3, #64 @ 0x40
  30863. 800d90e: d037 beq.n 800d980 <UART_SetConfig+0x6bc>
  30864. 800d910: e03a b.n 800d988 <UART_SetConfig+0x6c4>
  30865. {
  30866. case UART_CLOCKSOURCE_D3PCLK1:
  30867. pclk = HAL_RCCEx_GetD3PCLK1Freq();
  30868. 800d912: f7fe f887 bl 800ba24 <HAL_RCCEx_GetD3PCLK1Freq>
  30869. 800d916: 63f8 str r0, [r7, #60] @ 0x3c
  30870. break;
  30871. 800d918: e03c b.n 800d994 <UART_SetConfig+0x6d0>
  30872. case UART_CLOCKSOURCE_PLL2:
  30873. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  30874. 800d91a: f107 0324 add.w r3, r7, #36 @ 0x24
  30875. 800d91e: 4618 mov r0, r3
  30876. 800d920: f7fe f896 bl 800ba50 <HAL_RCCEx_GetPLL2ClockFreq>
  30877. pclk = pll2_clocks.PLL2_Q_Frequency;
  30878. 800d924: 6abb ldr r3, [r7, #40] @ 0x28
  30879. 800d926: 63fb str r3, [r7, #60] @ 0x3c
  30880. break;
  30881. 800d928: e034 b.n 800d994 <UART_SetConfig+0x6d0>
  30882. case UART_CLOCKSOURCE_PLL3:
  30883. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  30884. 800d92a: f107 0318 add.w r3, r7, #24
  30885. 800d92e: 4618 mov r0, r3
  30886. 800d930: f7fe f9e2 bl 800bcf8 <HAL_RCCEx_GetPLL3ClockFreq>
  30887. pclk = pll3_clocks.PLL3_Q_Frequency;
  30888. 800d934: 69fb ldr r3, [r7, #28]
  30889. 800d936: 63fb str r3, [r7, #60] @ 0x3c
  30890. break;
  30891. 800d938: e02c b.n 800d994 <UART_SetConfig+0x6d0>
  30892. case UART_CLOCKSOURCE_HSI:
  30893. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  30894. 800d93a: 4b09 ldr r3, [pc, #36] @ (800d960 <UART_SetConfig+0x69c>)
  30895. 800d93c: 681b ldr r3, [r3, #0]
  30896. 800d93e: f003 0320 and.w r3, r3, #32
  30897. 800d942: 2b00 cmp r3, #0
  30898. 800d944: d016 beq.n 800d974 <UART_SetConfig+0x6b0>
  30899. {
  30900. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  30901. 800d946: 4b06 ldr r3, [pc, #24] @ (800d960 <UART_SetConfig+0x69c>)
  30902. 800d948: 681b ldr r3, [r3, #0]
  30903. 800d94a: 08db lsrs r3, r3, #3
  30904. 800d94c: f003 0303 and.w r3, r3, #3
  30905. 800d950: 4a07 ldr r2, [pc, #28] @ (800d970 <UART_SetConfig+0x6ac>)
  30906. 800d952: fa22 f303 lsr.w r3, r2, r3
  30907. 800d956: 63fb str r3, [r7, #60] @ 0x3c
  30908. }
  30909. else
  30910. {
  30911. pclk = (uint32_t) HSI_VALUE;
  30912. }
  30913. break;
  30914. 800d958: e01c b.n 800d994 <UART_SetConfig+0x6d0>
  30915. 800d95a: bf00 nop
  30916. 800d95c: 40011400 .word 0x40011400
  30917. 800d960: 58024400 .word 0x58024400
  30918. 800d964: 40007800 .word 0x40007800
  30919. 800d968: 40007c00 .word 0x40007c00
  30920. 800d96c: 58000c00 .word 0x58000c00
  30921. 800d970: 03d09000 .word 0x03d09000
  30922. pclk = (uint32_t) HSI_VALUE;
  30923. 800d974: 4b9d ldr r3, [pc, #628] @ (800dbec <UART_SetConfig+0x928>)
  30924. 800d976: 63fb str r3, [r7, #60] @ 0x3c
  30925. break;
  30926. 800d978: e00c b.n 800d994 <UART_SetConfig+0x6d0>
  30927. case UART_CLOCKSOURCE_CSI:
  30928. pclk = (uint32_t) CSI_VALUE;
  30929. 800d97a: 4b9d ldr r3, [pc, #628] @ (800dbf0 <UART_SetConfig+0x92c>)
  30930. 800d97c: 63fb str r3, [r7, #60] @ 0x3c
  30931. break;
  30932. 800d97e: e009 b.n 800d994 <UART_SetConfig+0x6d0>
  30933. case UART_CLOCKSOURCE_LSE:
  30934. pclk = (uint32_t) LSE_VALUE;
  30935. 800d980: f44f 4300 mov.w r3, #32768 @ 0x8000
  30936. 800d984: 63fb str r3, [r7, #60] @ 0x3c
  30937. break;
  30938. 800d986: e005 b.n 800d994 <UART_SetConfig+0x6d0>
  30939. default:
  30940. pclk = 0U;
  30941. 800d988: 2300 movs r3, #0
  30942. 800d98a: 63fb str r3, [r7, #60] @ 0x3c
  30943. ret = HAL_ERROR;
  30944. 800d98c: 2301 movs r3, #1
  30945. 800d98e: f887 3042 strb.w r3, [r7, #66] @ 0x42
  30946. break;
  30947. 800d992: bf00 nop
  30948. }
  30949. /* If proper clock source reported */
  30950. if (pclk != 0U)
  30951. 800d994: 6bfb ldr r3, [r7, #60] @ 0x3c
  30952. 800d996: 2b00 cmp r3, #0
  30953. 800d998: f000 81de beq.w 800dd58 <UART_SetConfig+0xa94>
  30954. {
  30955. /* Compute clock after Prescaler */
  30956. lpuart_ker_ck_pres = (pclk / UARTPrescTable[huart->Init.ClockPrescaler]);
  30957. 800d99c: 697b ldr r3, [r7, #20]
  30958. 800d99e: 6a5b ldr r3, [r3, #36] @ 0x24
  30959. 800d9a0: 4a94 ldr r2, [pc, #592] @ (800dbf4 <UART_SetConfig+0x930>)
  30960. 800d9a2: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  30961. 800d9a6: 461a mov r2, r3
  30962. 800d9a8: 6bfb ldr r3, [r7, #60] @ 0x3c
  30963. 800d9aa: fbb3 f3f2 udiv r3, r3, r2
  30964. 800d9ae: 633b str r3, [r7, #48] @ 0x30
  30965. /* Ensure that Frequency clock is in the range [3 * baudrate, 4096 * baudrate] */
  30966. if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) ||
  30967. 800d9b0: 697b ldr r3, [r7, #20]
  30968. 800d9b2: 685a ldr r2, [r3, #4]
  30969. 800d9b4: 4613 mov r3, r2
  30970. 800d9b6: 005b lsls r3, r3, #1
  30971. 800d9b8: 4413 add r3, r2
  30972. 800d9ba: 6b3a ldr r2, [r7, #48] @ 0x30
  30973. 800d9bc: 429a cmp r2, r3
  30974. 800d9be: d305 bcc.n 800d9cc <UART_SetConfig+0x708>
  30975. (lpuart_ker_ck_pres > (4096U * huart->Init.BaudRate)))
  30976. 800d9c0: 697b ldr r3, [r7, #20]
  30977. 800d9c2: 685b ldr r3, [r3, #4]
  30978. 800d9c4: 031b lsls r3, r3, #12
  30979. if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) ||
  30980. 800d9c6: 6b3a ldr r2, [r7, #48] @ 0x30
  30981. 800d9c8: 429a cmp r2, r3
  30982. 800d9ca: d903 bls.n 800d9d4 <UART_SetConfig+0x710>
  30983. {
  30984. ret = HAL_ERROR;
  30985. 800d9cc: 2301 movs r3, #1
  30986. 800d9ce: f887 3042 strb.w r3, [r7, #66] @ 0x42
  30987. 800d9d2: e1c1 b.n 800dd58 <UART_SetConfig+0xa94>
  30988. }
  30989. else
  30990. {
  30991. /* Check computed UsartDiv value is in allocated range
  30992. (it is forbidden to write values lower than 0x300 in the LPUART_BRR register) */
  30993. usartdiv = (uint32_t)(UART_DIV_LPUART(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  30994. 800d9d4: 6bfb ldr r3, [r7, #60] @ 0x3c
  30995. 800d9d6: 2200 movs r2, #0
  30996. 800d9d8: 60bb str r3, [r7, #8]
  30997. 800d9da: 60fa str r2, [r7, #12]
  30998. 800d9dc: 697b ldr r3, [r7, #20]
  30999. 800d9de: 6a5b ldr r3, [r3, #36] @ 0x24
  31000. 800d9e0: 4a84 ldr r2, [pc, #528] @ (800dbf4 <UART_SetConfig+0x930>)
  31001. 800d9e2: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  31002. 800d9e6: b29b uxth r3, r3
  31003. 800d9e8: 2200 movs r2, #0
  31004. 800d9ea: 603b str r3, [r7, #0]
  31005. 800d9ec: 607a str r2, [r7, #4]
  31006. 800d9ee: e9d7 2300 ldrd r2, r3, [r7]
  31007. 800d9f2: e9d7 0102 ldrd r0, r1, [r7, #8]
  31008. 800d9f6: f7f2 fe97 bl 8000728 <__aeabi_uldivmod>
  31009. 800d9fa: 4602 mov r2, r0
  31010. 800d9fc: 460b mov r3, r1
  31011. 800d9fe: 4610 mov r0, r2
  31012. 800da00: 4619 mov r1, r3
  31013. 800da02: f04f 0200 mov.w r2, #0
  31014. 800da06: f04f 0300 mov.w r3, #0
  31015. 800da0a: 020b lsls r3, r1, #8
  31016. 800da0c: ea43 6310 orr.w r3, r3, r0, lsr #24
  31017. 800da10: 0202 lsls r2, r0, #8
  31018. 800da12: 6979 ldr r1, [r7, #20]
  31019. 800da14: 6849 ldr r1, [r1, #4]
  31020. 800da16: 0849 lsrs r1, r1, #1
  31021. 800da18: 2000 movs r0, #0
  31022. 800da1a: 460c mov r4, r1
  31023. 800da1c: 4605 mov r5, r0
  31024. 800da1e: eb12 0804 adds.w r8, r2, r4
  31025. 800da22: eb43 0905 adc.w r9, r3, r5
  31026. 800da26: 697b ldr r3, [r7, #20]
  31027. 800da28: 685b ldr r3, [r3, #4]
  31028. 800da2a: 2200 movs r2, #0
  31029. 800da2c: 469a mov sl, r3
  31030. 800da2e: 4693 mov fp, r2
  31031. 800da30: 4652 mov r2, sl
  31032. 800da32: 465b mov r3, fp
  31033. 800da34: 4640 mov r0, r8
  31034. 800da36: 4649 mov r1, r9
  31035. 800da38: f7f2 fe76 bl 8000728 <__aeabi_uldivmod>
  31036. 800da3c: 4602 mov r2, r0
  31037. 800da3e: 460b mov r3, r1
  31038. 800da40: 4613 mov r3, r2
  31039. 800da42: 63bb str r3, [r7, #56] @ 0x38
  31040. if ((usartdiv >= LPUART_BRR_MIN) && (usartdiv <= LPUART_BRR_MAX))
  31041. 800da44: 6bbb ldr r3, [r7, #56] @ 0x38
  31042. 800da46: f5b3 7f40 cmp.w r3, #768 @ 0x300
  31043. 800da4a: d308 bcc.n 800da5e <UART_SetConfig+0x79a>
  31044. 800da4c: 6bbb ldr r3, [r7, #56] @ 0x38
  31045. 800da4e: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  31046. 800da52: d204 bcs.n 800da5e <UART_SetConfig+0x79a>
  31047. {
  31048. huart->Instance->BRR = usartdiv;
  31049. 800da54: 697b ldr r3, [r7, #20]
  31050. 800da56: 681b ldr r3, [r3, #0]
  31051. 800da58: 6bba ldr r2, [r7, #56] @ 0x38
  31052. 800da5a: 60da str r2, [r3, #12]
  31053. 800da5c: e17c b.n 800dd58 <UART_SetConfig+0xa94>
  31054. }
  31055. else
  31056. {
  31057. ret = HAL_ERROR;
  31058. 800da5e: 2301 movs r3, #1
  31059. 800da60: f887 3042 strb.w r3, [r7, #66] @ 0x42
  31060. 800da64: e178 b.n 800dd58 <UART_SetConfig+0xa94>
  31061. } /* if ( (lpuart_ker_ck_pres < (3 * huart->Init.BaudRate) ) ||
  31062. (lpuart_ker_ck_pres > (4096 * huart->Init.BaudRate) )) */
  31063. } /* if (pclk != 0) */
  31064. }
  31065. /* Check UART Over Sampling to set Baud Rate Register */
  31066. else if (huart->Init.OverSampling == UART_OVERSAMPLING_8)
  31067. 800da66: 697b ldr r3, [r7, #20]
  31068. 800da68: 69db ldr r3, [r3, #28]
  31069. 800da6a: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  31070. 800da6e: f040 80c5 bne.w 800dbfc <UART_SetConfig+0x938>
  31071. {
  31072. switch (clocksource)
  31073. 800da72: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  31074. 800da76: 2b20 cmp r3, #32
  31075. 800da78: dc48 bgt.n 800db0c <UART_SetConfig+0x848>
  31076. 800da7a: 2b00 cmp r3, #0
  31077. 800da7c: db7b blt.n 800db76 <UART_SetConfig+0x8b2>
  31078. 800da7e: 2b20 cmp r3, #32
  31079. 800da80: d879 bhi.n 800db76 <UART_SetConfig+0x8b2>
  31080. 800da82: a201 add r2, pc, #4 @ (adr r2, 800da88 <UART_SetConfig+0x7c4>)
  31081. 800da84: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  31082. 800da88: 0800db13 .word 0x0800db13
  31083. 800da8c: 0800db1b .word 0x0800db1b
  31084. 800da90: 0800db77 .word 0x0800db77
  31085. 800da94: 0800db77 .word 0x0800db77
  31086. 800da98: 0800db23 .word 0x0800db23
  31087. 800da9c: 0800db77 .word 0x0800db77
  31088. 800daa0: 0800db77 .word 0x0800db77
  31089. 800daa4: 0800db77 .word 0x0800db77
  31090. 800daa8: 0800db33 .word 0x0800db33
  31091. 800daac: 0800db77 .word 0x0800db77
  31092. 800dab0: 0800db77 .word 0x0800db77
  31093. 800dab4: 0800db77 .word 0x0800db77
  31094. 800dab8: 0800db77 .word 0x0800db77
  31095. 800dabc: 0800db77 .word 0x0800db77
  31096. 800dac0: 0800db77 .word 0x0800db77
  31097. 800dac4: 0800db77 .word 0x0800db77
  31098. 800dac8: 0800db43 .word 0x0800db43
  31099. 800dacc: 0800db77 .word 0x0800db77
  31100. 800dad0: 0800db77 .word 0x0800db77
  31101. 800dad4: 0800db77 .word 0x0800db77
  31102. 800dad8: 0800db77 .word 0x0800db77
  31103. 800dadc: 0800db77 .word 0x0800db77
  31104. 800dae0: 0800db77 .word 0x0800db77
  31105. 800dae4: 0800db77 .word 0x0800db77
  31106. 800dae8: 0800db77 .word 0x0800db77
  31107. 800daec: 0800db77 .word 0x0800db77
  31108. 800daf0: 0800db77 .word 0x0800db77
  31109. 800daf4: 0800db77 .word 0x0800db77
  31110. 800daf8: 0800db77 .word 0x0800db77
  31111. 800dafc: 0800db77 .word 0x0800db77
  31112. 800db00: 0800db77 .word 0x0800db77
  31113. 800db04: 0800db77 .word 0x0800db77
  31114. 800db08: 0800db69 .word 0x0800db69
  31115. 800db0c: 2b40 cmp r3, #64 @ 0x40
  31116. 800db0e: d02e beq.n 800db6e <UART_SetConfig+0x8aa>
  31117. 800db10: e031 b.n 800db76 <UART_SetConfig+0x8b2>
  31118. {
  31119. case UART_CLOCKSOURCE_D2PCLK1:
  31120. pclk = HAL_RCC_GetPCLK1Freq();
  31121. 800db12: f7fc fd2b bl 800a56c <HAL_RCC_GetPCLK1Freq>
  31122. 800db16: 63f8 str r0, [r7, #60] @ 0x3c
  31123. break;
  31124. 800db18: e033 b.n 800db82 <UART_SetConfig+0x8be>
  31125. case UART_CLOCKSOURCE_D2PCLK2:
  31126. pclk = HAL_RCC_GetPCLK2Freq();
  31127. 800db1a: f7fc fd3d bl 800a598 <HAL_RCC_GetPCLK2Freq>
  31128. 800db1e: 63f8 str r0, [r7, #60] @ 0x3c
  31129. break;
  31130. 800db20: e02f b.n 800db82 <UART_SetConfig+0x8be>
  31131. case UART_CLOCKSOURCE_PLL2:
  31132. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  31133. 800db22: f107 0324 add.w r3, r7, #36 @ 0x24
  31134. 800db26: 4618 mov r0, r3
  31135. 800db28: f7fd ff92 bl 800ba50 <HAL_RCCEx_GetPLL2ClockFreq>
  31136. pclk = pll2_clocks.PLL2_Q_Frequency;
  31137. 800db2c: 6abb ldr r3, [r7, #40] @ 0x28
  31138. 800db2e: 63fb str r3, [r7, #60] @ 0x3c
  31139. break;
  31140. 800db30: e027 b.n 800db82 <UART_SetConfig+0x8be>
  31141. case UART_CLOCKSOURCE_PLL3:
  31142. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  31143. 800db32: f107 0318 add.w r3, r7, #24
  31144. 800db36: 4618 mov r0, r3
  31145. 800db38: f7fe f8de bl 800bcf8 <HAL_RCCEx_GetPLL3ClockFreq>
  31146. pclk = pll3_clocks.PLL3_Q_Frequency;
  31147. 800db3c: 69fb ldr r3, [r7, #28]
  31148. 800db3e: 63fb str r3, [r7, #60] @ 0x3c
  31149. break;
  31150. 800db40: e01f b.n 800db82 <UART_SetConfig+0x8be>
  31151. case UART_CLOCKSOURCE_HSI:
  31152. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  31153. 800db42: 4b2d ldr r3, [pc, #180] @ (800dbf8 <UART_SetConfig+0x934>)
  31154. 800db44: 681b ldr r3, [r3, #0]
  31155. 800db46: f003 0320 and.w r3, r3, #32
  31156. 800db4a: 2b00 cmp r3, #0
  31157. 800db4c: d009 beq.n 800db62 <UART_SetConfig+0x89e>
  31158. {
  31159. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  31160. 800db4e: 4b2a ldr r3, [pc, #168] @ (800dbf8 <UART_SetConfig+0x934>)
  31161. 800db50: 681b ldr r3, [r3, #0]
  31162. 800db52: 08db lsrs r3, r3, #3
  31163. 800db54: f003 0303 and.w r3, r3, #3
  31164. 800db58: 4a24 ldr r2, [pc, #144] @ (800dbec <UART_SetConfig+0x928>)
  31165. 800db5a: fa22 f303 lsr.w r3, r2, r3
  31166. 800db5e: 63fb str r3, [r7, #60] @ 0x3c
  31167. }
  31168. else
  31169. {
  31170. pclk = (uint32_t) HSI_VALUE;
  31171. }
  31172. break;
  31173. 800db60: e00f b.n 800db82 <UART_SetConfig+0x8be>
  31174. pclk = (uint32_t) HSI_VALUE;
  31175. 800db62: 4b22 ldr r3, [pc, #136] @ (800dbec <UART_SetConfig+0x928>)
  31176. 800db64: 63fb str r3, [r7, #60] @ 0x3c
  31177. break;
  31178. 800db66: e00c b.n 800db82 <UART_SetConfig+0x8be>
  31179. case UART_CLOCKSOURCE_CSI:
  31180. pclk = (uint32_t) CSI_VALUE;
  31181. 800db68: 4b21 ldr r3, [pc, #132] @ (800dbf0 <UART_SetConfig+0x92c>)
  31182. 800db6a: 63fb str r3, [r7, #60] @ 0x3c
  31183. break;
  31184. 800db6c: e009 b.n 800db82 <UART_SetConfig+0x8be>
  31185. case UART_CLOCKSOURCE_LSE:
  31186. pclk = (uint32_t) LSE_VALUE;
  31187. 800db6e: f44f 4300 mov.w r3, #32768 @ 0x8000
  31188. 800db72: 63fb str r3, [r7, #60] @ 0x3c
  31189. break;
  31190. 800db74: e005 b.n 800db82 <UART_SetConfig+0x8be>
  31191. default:
  31192. pclk = 0U;
  31193. 800db76: 2300 movs r3, #0
  31194. 800db78: 63fb str r3, [r7, #60] @ 0x3c
  31195. ret = HAL_ERROR;
  31196. 800db7a: 2301 movs r3, #1
  31197. 800db7c: f887 3042 strb.w r3, [r7, #66] @ 0x42
  31198. break;
  31199. 800db80: bf00 nop
  31200. }
  31201. /* USARTDIV must be greater than or equal to 0d16 */
  31202. if (pclk != 0U)
  31203. 800db82: 6bfb ldr r3, [r7, #60] @ 0x3c
  31204. 800db84: 2b00 cmp r3, #0
  31205. 800db86: f000 80e7 beq.w 800dd58 <UART_SetConfig+0xa94>
  31206. {
  31207. usartdiv = (uint32_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  31208. 800db8a: 697b ldr r3, [r7, #20]
  31209. 800db8c: 6a5b ldr r3, [r3, #36] @ 0x24
  31210. 800db8e: 4a19 ldr r2, [pc, #100] @ (800dbf4 <UART_SetConfig+0x930>)
  31211. 800db90: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  31212. 800db94: 461a mov r2, r3
  31213. 800db96: 6bfb ldr r3, [r7, #60] @ 0x3c
  31214. 800db98: fbb3 f3f2 udiv r3, r3, r2
  31215. 800db9c: 005a lsls r2, r3, #1
  31216. 800db9e: 697b ldr r3, [r7, #20]
  31217. 800dba0: 685b ldr r3, [r3, #4]
  31218. 800dba2: 085b lsrs r3, r3, #1
  31219. 800dba4: 441a add r2, r3
  31220. 800dba6: 697b ldr r3, [r7, #20]
  31221. 800dba8: 685b ldr r3, [r3, #4]
  31222. 800dbaa: fbb2 f3f3 udiv r3, r2, r3
  31223. 800dbae: 63bb str r3, [r7, #56] @ 0x38
  31224. if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
  31225. 800dbb0: 6bbb ldr r3, [r7, #56] @ 0x38
  31226. 800dbb2: 2b0f cmp r3, #15
  31227. 800dbb4: d916 bls.n 800dbe4 <UART_SetConfig+0x920>
  31228. 800dbb6: 6bbb ldr r3, [r7, #56] @ 0x38
  31229. 800dbb8: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  31230. 800dbbc: d212 bcs.n 800dbe4 <UART_SetConfig+0x920>
  31231. {
  31232. brrtemp = (uint16_t)(usartdiv & 0xFFF0U);
  31233. 800dbbe: 6bbb ldr r3, [r7, #56] @ 0x38
  31234. 800dbc0: b29b uxth r3, r3
  31235. 800dbc2: f023 030f bic.w r3, r3, #15
  31236. 800dbc6: 86fb strh r3, [r7, #54] @ 0x36
  31237. brrtemp |= (uint16_t)((usartdiv & (uint16_t)0x000FU) >> 1U);
  31238. 800dbc8: 6bbb ldr r3, [r7, #56] @ 0x38
  31239. 800dbca: 085b lsrs r3, r3, #1
  31240. 800dbcc: b29b uxth r3, r3
  31241. 800dbce: f003 0307 and.w r3, r3, #7
  31242. 800dbd2: b29a uxth r2, r3
  31243. 800dbd4: 8efb ldrh r3, [r7, #54] @ 0x36
  31244. 800dbd6: 4313 orrs r3, r2
  31245. 800dbd8: 86fb strh r3, [r7, #54] @ 0x36
  31246. huart->Instance->BRR = brrtemp;
  31247. 800dbda: 697b ldr r3, [r7, #20]
  31248. 800dbdc: 681b ldr r3, [r3, #0]
  31249. 800dbde: 8efa ldrh r2, [r7, #54] @ 0x36
  31250. 800dbe0: 60da str r2, [r3, #12]
  31251. 800dbe2: e0b9 b.n 800dd58 <UART_SetConfig+0xa94>
  31252. }
  31253. else
  31254. {
  31255. ret = HAL_ERROR;
  31256. 800dbe4: 2301 movs r3, #1
  31257. 800dbe6: f887 3042 strb.w r3, [r7, #66] @ 0x42
  31258. 800dbea: e0b5 b.n 800dd58 <UART_SetConfig+0xa94>
  31259. 800dbec: 03d09000 .word 0x03d09000
  31260. 800dbf0: 003d0900 .word 0x003d0900
  31261. 800dbf4: 080305d0 .word 0x080305d0
  31262. 800dbf8: 58024400 .word 0x58024400
  31263. }
  31264. }
  31265. }
  31266. else
  31267. {
  31268. switch (clocksource)
  31269. 800dbfc: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  31270. 800dc00: 2b20 cmp r3, #32
  31271. 800dc02: dc49 bgt.n 800dc98 <UART_SetConfig+0x9d4>
  31272. 800dc04: 2b00 cmp r3, #0
  31273. 800dc06: db7c blt.n 800dd02 <UART_SetConfig+0xa3e>
  31274. 800dc08: 2b20 cmp r3, #32
  31275. 800dc0a: d87a bhi.n 800dd02 <UART_SetConfig+0xa3e>
  31276. 800dc0c: a201 add r2, pc, #4 @ (adr r2, 800dc14 <UART_SetConfig+0x950>)
  31277. 800dc0e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  31278. 800dc12: bf00 nop
  31279. 800dc14: 0800dc9f .word 0x0800dc9f
  31280. 800dc18: 0800dca7 .word 0x0800dca7
  31281. 800dc1c: 0800dd03 .word 0x0800dd03
  31282. 800dc20: 0800dd03 .word 0x0800dd03
  31283. 800dc24: 0800dcaf .word 0x0800dcaf
  31284. 800dc28: 0800dd03 .word 0x0800dd03
  31285. 800dc2c: 0800dd03 .word 0x0800dd03
  31286. 800dc30: 0800dd03 .word 0x0800dd03
  31287. 800dc34: 0800dcbf .word 0x0800dcbf
  31288. 800dc38: 0800dd03 .word 0x0800dd03
  31289. 800dc3c: 0800dd03 .word 0x0800dd03
  31290. 800dc40: 0800dd03 .word 0x0800dd03
  31291. 800dc44: 0800dd03 .word 0x0800dd03
  31292. 800dc48: 0800dd03 .word 0x0800dd03
  31293. 800dc4c: 0800dd03 .word 0x0800dd03
  31294. 800dc50: 0800dd03 .word 0x0800dd03
  31295. 800dc54: 0800dccf .word 0x0800dccf
  31296. 800dc58: 0800dd03 .word 0x0800dd03
  31297. 800dc5c: 0800dd03 .word 0x0800dd03
  31298. 800dc60: 0800dd03 .word 0x0800dd03
  31299. 800dc64: 0800dd03 .word 0x0800dd03
  31300. 800dc68: 0800dd03 .word 0x0800dd03
  31301. 800dc6c: 0800dd03 .word 0x0800dd03
  31302. 800dc70: 0800dd03 .word 0x0800dd03
  31303. 800dc74: 0800dd03 .word 0x0800dd03
  31304. 800dc78: 0800dd03 .word 0x0800dd03
  31305. 800dc7c: 0800dd03 .word 0x0800dd03
  31306. 800dc80: 0800dd03 .word 0x0800dd03
  31307. 800dc84: 0800dd03 .word 0x0800dd03
  31308. 800dc88: 0800dd03 .word 0x0800dd03
  31309. 800dc8c: 0800dd03 .word 0x0800dd03
  31310. 800dc90: 0800dd03 .word 0x0800dd03
  31311. 800dc94: 0800dcf5 .word 0x0800dcf5
  31312. 800dc98: 2b40 cmp r3, #64 @ 0x40
  31313. 800dc9a: d02e beq.n 800dcfa <UART_SetConfig+0xa36>
  31314. 800dc9c: e031 b.n 800dd02 <UART_SetConfig+0xa3e>
  31315. {
  31316. case UART_CLOCKSOURCE_D2PCLK1:
  31317. pclk = HAL_RCC_GetPCLK1Freq();
  31318. 800dc9e: f7fc fc65 bl 800a56c <HAL_RCC_GetPCLK1Freq>
  31319. 800dca2: 63f8 str r0, [r7, #60] @ 0x3c
  31320. break;
  31321. 800dca4: e033 b.n 800dd0e <UART_SetConfig+0xa4a>
  31322. case UART_CLOCKSOURCE_D2PCLK2:
  31323. pclk = HAL_RCC_GetPCLK2Freq();
  31324. 800dca6: f7fc fc77 bl 800a598 <HAL_RCC_GetPCLK2Freq>
  31325. 800dcaa: 63f8 str r0, [r7, #60] @ 0x3c
  31326. break;
  31327. 800dcac: e02f b.n 800dd0e <UART_SetConfig+0xa4a>
  31328. case UART_CLOCKSOURCE_PLL2:
  31329. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  31330. 800dcae: f107 0324 add.w r3, r7, #36 @ 0x24
  31331. 800dcb2: 4618 mov r0, r3
  31332. 800dcb4: f7fd fecc bl 800ba50 <HAL_RCCEx_GetPLL2ClockFreq>
  31333. pclk = pll2_clocks.PLL2_Q_Frequency;
  31334. 800dcb8: 6abb ldr r3, [r7, #40] @ 0x28
  31335. 800dcba: 63fb str r3, [r7, #60] @ 0x3c
  31336. break;
  31337. 800dcbc: e027 b.n 800dd0e <UART_SetConfig+0xa4a>
  31338. case UART_CLOCKSOURCE_PLL3:
  31339. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  31340. 800dcbe: f107 0318 add.w r3, r7, #24
  31341. 800dcc2: 4618 mov r0, r3
  31342. 800dcc4: f7fe f818 bl 800bcf8 <HAL_RCCEx_GetPLL3ClockFreq>
  31343. pclk = pll3_clocks.PLL3_Q_Frequency;
  31344. 800dcc8: 69fb ldr r3, [r7, #28]
  31345. 800dcca: 63fb str r3, [r7, #60] @ 0x3c
  31346. break;
  31347. 800dccc: e01f b.n 800dd0e <UART_SetConfig+0xa4a>
  31348. case UART_CLOCKSOURCE_HSI:
  31349. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  31350. 800dcce: 4b2d ldr r3, [pc, #180] @ (800dd84 <UART_SetConfig+0xac0>)
  31351. 800dcd0: 681b ldr r3, [r3, #0]
  31352. 800dcd2: f003 0320 and.w r3, r3, #32
  31353. 800dcd6: 2b00 cmp r3, #0
  31354. 800dcd8: d009 beq.n 800dcee <UART_SetConfig+0xa2a>
  31355. {
  31356. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  31357. 800dcda: 4b2a ldr r3, [pc, #168] @ (800dd84 <UART_SetConfig+0xac0>)
  31358. 800dcdc: 681b ldr r3, [r3, #0]
  31359. 800dcde: 08db lsrs r3, r3, #3
  31360. 800dce0: f003 0303 and.w r3, r3, #3
  31361. 800dce4: 4a28 ldr r2, [pc, #160] @ (800dd88 <UART_SetConfig+0xac4>)
  31362. 800dce6: fa22 f303 lsr.w r3, r2, r3
  31363. 800dcea: 63fb str r3, [r7, #60] @ 0x3c
  31364. }
  31365. else
  31366. {
  31367. pclk = (uint32_t) HSI_VALUE;
  31368. }
  31369. break;
  31370. 800dcec: e00f b.n 800dd0e <UART_SetConfig+0xa4a>
  31371. pclk = (uint32_t) HSI_VALUE;
  31372. 800dcee: 4b26 ldr r3, [pc, #152] @ (800dd88 <UART_SetConfig+0xac4>)
  31373. 800dcf0: 63fb str r3, [r7, #60] @ 0x3c
  31374. break;
  31375. 800dcf2: e00c b.n 800dd0e <UART_SetConfig+0xa4a>
  31376. case UART_CLOCKSOURCE_CSI:
  31377. pclk = (uint32_t) CSI_VALUE;
  31378. 800dcf4: 4b25 ldr r3, [pc, #148] @ (800dd8c <UART_SetConfig+0xac8>)
  31379. 800dcf6: 63fb str r3, [r7, #60] @ 0x3c
  31380. break;
  31381. 800dcf8: e009 b.n 800dd0e <UART_SetConfig+0xa4a>
  31382. case UART_CLOCKSOURCE_LSE:
  31383. pclk = (uint32_t) LSE_VALUE;
  31384. 800dcfa: f44f 4300 mov.w r3, #32768 @ 0x8000
  31385. 800dcfe: 63fb str r3, [r7, #60] @ 0x3c
  31386. break;
  31387. 800dd00: e005 b.n 800dd0e <UART_SetConfig+0xa4a>
  31388. default:
  31389. pclk = 0U;
  31390. 800dd02: 2300 movs r3, #0
  31391. 800dd04: 63fb str r3, [r7, #60] @ 0x3c
  31392. ret = HAL_ERROR;
  31393. 800dd06: 2301 movs r3, #1
  31394. 800dd08: f887 3042 strb.w r3, [r7, #66] @ 0x42
  31395. break;
  31396. 800dd0c: bf00 nop
  31397. }
  31398. if (pclk != 0U)
  31399. 800dd0e: 6bfb ldr r3, [r7, #60] @ 0x3c
  31400. 800dd10: 2b00 cmp r3, #0
  31401. 800dd12: d021 beq.n 800dd58 <UART_SetConfig+0xa94>
  31402. {
  31403. /* USARTDIV must be greater than or equal to 0d16 */
  31404. usartdiv = (uint32_t)(UART_DIV_SAMPLING16(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  31405. 800dd14: 697b ldr r3, [r7, #20]
  31406. 800dd16: 6a5b ldr r3, [r3, #36] @ 0x24
  31407. 800dd18: 4a1d ldr r2, [pc, #116] @ (800dd90 <UART_SetConfig+0xacc>)
  31408. 800dd1a: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  31409. 800dd1e: 461a mov r2, r3
  31410. 800dd20: 6bfb ldr r3, [r7, #60] @ 0x3c
  31411. 800dd22: fbb3 f2f2 udiv r2, r3, r2
  31412. 800dd26: 697b ldr r3, [r7, #20]
  31413. 800dd28: 685b ldr r3, [r3, #4]
  31414. 800dd2a: 085b lsrs r3, r3, #1
  31415. 800dd2c: 441a add r2, r3
  31416. 800dd2e: 697b ldr r3, [r7, #20]
  31417. 800dd30: 685b ldr r3, [r3, #4]
  31418. 800dd32: fbb2 f3f3 udiv r3, r2, r3
  31419. 800dd36: 63bb str r3, [r7, #56] @ 0x38
  31420. if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
  31421. 800dd38: 6bbb ldr r3, [r7, #56] @ 0x38
  31422. 800dd3a: 2b0f cmp r3, #15
  31423. 800dd3c: d909 bls.n 800dd52 <UART_SetConfig+0xa8e>
  31424. 800dd3e: 6bbb ldr r3, [r7, #56] @ 0x38
  31425. 800dd40: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  31426. 800dd44: d205 bcs.n 800dd52 <UART_SetConfig+0xa8e>
  31427. {
  31428. huart->Instance->BRR = (uint16_t)usartdiv;
  31429. 800dd46: 6bbb ldr r3, [r7, #56] @ 0x38
  31430. 800dd48: b29a uxth r2, r3
  31431. 800dd4a: 697b ldr r3, [r7, #20]
  31432. 800dd4c: 681b ldr r3, [r3, #0]
  31433. 800dd4e: 60da str r2, [r3, #12]
  31434. 800dd50: e002 b.n 800dd58 <UART_SetConfig+0xa94>
  31435. }
  31436. else
  31437. {
  31438. ret = HAL_ERROR;
  31439. 800dd52: 2301 movs r3, #1
  31440. 800dd54: f887 3042 strb.w r3, [r7, #66] @ 0x42
  31441. }
  31442. }
  31443. }
  31444. /* Initialize the number of data to process during RX/TX ISR execution */
  31445. huart->NbTxDataToProcess = 1;
  31446. 800dd58: 697b ldr r3, [r7, #20]
  31447. 800dd5a: 2201 movs r2, #1
  31448. 800dd5c: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  31449. huart->NbRxDataToProcess = 1;
  31450. 800dd60: 697b ldr r3, [r7, #20]
  31451. 800dd62: 2201 movs r2, #1
  31452. 800dd64: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  31453. /* Clear ISR function pointers */
  31454. huart->RxISR = NULL;
  31455. 800dd68: 697b ldr r3, [r7, #20]
  31456. 800dd6a: 2200 movs r2, #0
  31457. 800dd6c: 675a str r2, [r3, #116] @ 0x74
  31458. huart->TxISR = NULL;
  31459. 800dd6e: 697b ldr r3, [r7, #20]
  31460. 800dd70: 2200 movs r2, #0
  31461. 800dd72: 679a str r2, [r3, #120] @ 0x78
  31462. return ret;
  31463. 800dd74: f897 3042 ldrb.w r3, [r7, #66] @ 0x42
  31464. }
  31465. 800dd78: 4618 mov r0, r3
  31466. 800dd7a: 3748 adds r7, #72 @ 0x48
  31467. 800dd7c: 46bd mov sp, r7
  31468. 800dd7e: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
  31469. 800dd82: bf00 nop
  31470. 800dd84: 58024400 .word 0x58024400
  31471. 800dd88: 03d09000 .word 0x03d09000
  31472. 800dd8c: 003d0900 .word 0x003d0900
  31473. 800dd90: 080305d0 .word 0x080305d0
  31474. 0800dd94 <UART_AdvFeatureConfig>:
  31475. * @brief Configure the UART peripheral advanced features.
  31476. * @param huart UART handle.
  31477. * @retval None
  31478. */
  31479. void UART_AdvFeatureConfig(UART_HandleTypeDef *huart)
  31480. {
  31481. 800dd94: b480 push {r7}
  31482. 800dd96: b083 sub sp, #12
  31483. 800dd98: af00 add r7, sp, #0
  31484. 800dd9a: 6078 str r0, [r7, #4]
  31485. /* Check whether the set of advanced features to configure is properly set */
  31486. assert_param(IS_UART_ADVFEATURE_INIT(huart->AdvancedInit.AdvFeatureInit));
  31487. /* if required, configure RX/TX pins swap */
  31488. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_SWAP_INIT))
  31489. 800dd9c: 687b ldr r3, [r7, #4]
  31490. 800dd9e: 6a9b ldr r3, [r3, #40] @ 0x28
  31491. 800dda0: f003 0308 and.w r3, r3, #8
  31492. 800dda4: 2b00 cmp r3, #0
  31493. 800dda6: d00a beq.n 800ddbe <UART_AdvFeatureConfig+0x2a>
  31494. {
  31495. assert_param(IS_UART_ADVFEATURE_SWAP(huart->AdvancedInit.Swap));
  31496. MODIFY_REG(huart->Instance->CR2, USART_CR2_SWAP, huart->AdvancedInit.Swap);
  31497. 800dda8: 687b ldr r3, [r7, #4]
  31498. 800ddaa: 681b ldr r3, [r3, #0]
  31499. 800ddac: 685b ldr r3, [r3, #4]
  31500. 800ddae: f423 4100 bic.w r1, r3, #32768 @ 0x8000
  31501. 800ddb2: 687b ldr r3, [r7, #4]
  31502. 800ddb4: 6b9a ldr r2, [r3, #56] @ 0x38
  31503. 800ddb6: 687b ldr r3, [r7, #4]
  31504. 800ddb8: 681b ldr r3, [r3, #0]
  31505. 800ddba: 430a orrs r2, r1
  31506. 800ddbc: 605a str r2, [r3, #4]
  31507. }
  31508. /* if required, configure TX pin active level inversion */
  31509. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_TXINVERT_INIT))
  31510. 800ddbe: 687b ldr r3, [r7, #4]
  31511. 800ddc0: 6a9b ldr r3, [r3, #40] @ 0x28
  31512. 800ddc2: f003 0301 and.w r3, r3, #1
  31513. 800ddc6: 2b00 cmp r3, #0
  31514. 800ddc8: d00a beq.n 800dde0 <UART_AdvFeatureConfig+0x4c>
  31515. {
  31516. assert_param(IS_UART_ADVFEATURE_TXINV(huart->AdvancedInit.TxPinLevelInvert));
  31517. MODIFY_REG(huart->Instance->CR2, USART_CR2_TXINV, huart->AdvancedInit.TxPinLevelInvert);
  31518. 800ddca: 687b ldr r3, [r7, #4]
  31519. 800ddcc: 681b ldr r3, [r3, #0]
  31520. 800ddce: 685b ldr r3, [r3, #4]
  31521. 800ddd0: f423 3100 bic.w r1, r3, #131072 @ 0x20000
  31522. 800ddd4: 687b ldr r3, [r7, #4]
  31523. 800ddd6: 6ada ldr r2, [r3, #44] @ 0x2c
  31524. 800ddd8: 687b ldr r3, [r7, #4]
  31525. 800ddda: 681b ldr r3, [r3, #0]
  31526. 800dddc: 430a orrs r2, r1
  31527. 800ddde: 605a str r2, [r3, #4]
  31528. }
  31529. /* if required, configure RX pin active level inversion */
  31530. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXINVERT_INIT))
  31531. 800dde0: 687b ldr r3, [r7, #4]
  31532. 800dde2: 6a9b ldr r3, [r3, #40] @ 0x28
  31533. 800dde4: f003 0302 and.w r3, r3, #2
  31534. 800dde8: 2b00 cmp r3, #0
  31535. 800ddea: d00a beq.n 800de02 <UART_AdvFeatureConfig+0x6e>
  31536. {
  31537. assert_param(IS_UART_ADVFEATURE_RXINV(huart->AdvancedInit.RxPinLevelInvert));
  31538. MODIFY_REG(huart->Instance->CR2, USART_CR2_RXINV, huart->AdvancedInit.RxPinLevelInvert);
  31539. 800ddec: 687b ldr r3, [r7, #4]
  31540. 800ddee: 681b ldr r3, [r3, #0]
  31541. 800ddf0: 685b ldr r3, [r3, #4]
  31542. 800ddf2: f423 3180 bic.w r1, r3, #65536 @ 0x10000
  31543. 800ddf6: 687b ldr r3, [r7, #4]
  31544. 800ddf8: 6b1a ldr r2, [r3, #48] @ 0x30
  31545. 800ddfa: 687b ldr r3, [r7, #4]
  31546. 800ddfc: 681b ldr r3, [r3, #0]
  31547. 800ddfe: 430a orrs r2, r1
  31548. 800de00: 605a str r2, [r3, #4]
  31549. }
  31550. /* if required, configure data inversion */
  31551. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DATAINVERT_INIT))
  31552. 800de02: 687b ldr r3, [r7, #4]
  31553. 800de04: 6a9b ldr r3, [r3, #40] @ 0x28
  31554. 800de06: f003 0304 and.w r3, r3, #4
  31555. 800de0a: 2b00 cmp r3, #0
  31556. 800de0c: d00a beq.n 800de24 <UART_AdvFeatureConfig+0x90>
  31557. {
  31558. assert_param(IS_UART_ADVFEATURE_DATAINV(huart->AdvancedInit.DataInvert));
  31559. MODIFY_REG(huart->Instance->CR2, USART_CR2_DATAINV, huart->AdvancedInit.DataInvert);
  31560. 800de0e: 687b ldr r3, [r7, #4]
  31561. 800de10: 681b ldr r3, [r3, #0]
  31562. 800de12: 685b ldr r3, [r3, #4]
  31563. 800de14: f423 2180 bic.w r1, r3, #262144 @ 0x40000
  31564. 800de18: 687b ldr r3, [r7, #4]
  31565. 800de1a: 6b5a ldr r2, [r3, #52] @ 0x34
  31566. 800de1c: 687b ldr r3, [r7, #4]
  31567. 800de1e: 681b ldr r3, [r3, #0]
  31568. 800de20: 430a orrs r2, r1
  31569. 800de22: 605a str r2, [r3, #4]
  31570. }
  31571. /* if required, configure RX overrun detection disabling */
  31572. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXOVERRUNDISABLE_INIT))
  31573. 800de24: 687b ldr r3, [r7, #4]
  31574. 800de26: 6a9b ldr r3, [r3, #40] @ 0x28
  31575. 800de28: f003 0310 and.w r3, r3, #16
  31576. 800de2c: 2b00 cmp r3, #0
  31577. 800de2e: d00a beq.n 800de46 <UART_AdvFeatureConfig+0xb2>
  31578. {
  31579. assert_param(IS_UART_OVERRUN(huart->AdvancedInit.OverrunDisable));
  31580. MODIFY_REG(huart->Instance->CR3, USART_CR3_OVRDIS, huart->AdvancedInit.OverrunDisable);
  31581. 800de30: 687b ldr r3, [r7, #4]
  31582. 800de32: 681b ldr r3, [r3, #0]
  31583. 800de34: 689b ldr r3, [r3, #8]
  31584. 800de36: f423 5180 bic.w r1, r3, #4096 @ 0x1000
  31585. 800de3a: 687b ldr r3, [r7, #4]
  31586. 800de3c: 6bda ldr r2, [r3, #60] @ 0x3c
  31587. 800de3e: 687b ldr r3, [r7, #4]
  31588. 800de40: 681b ldr r3, [r3, #0]
  31589. 800de42: 430a orrs r2, r1
  31590. 800de44: 609a str r2, [r3, #8]
  31591. }
  31592. /* if required, configure DMA disabling on reception error */
  31593. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DMADISABLEONERROR_INIT))
  31594. 800de46: 687b ldr r3, [r7, #4]
  31595. 800de48: 6a9b ldr r3, [r3, #40] @ 0x28
  31596. 800de4a: f003 0320 and.w r3, r3, #32
  31597. 800de4e: 2b00 cmp r3, #0
  31598. 800de50: d00a beq.n 800de68 <UART_AdvFeatureConfig+0xd4>
  31599. {
  31600. assert_param(IS_UART_ADVFEATURE_DMAONRXERROR(huart->AdvancedInit.DMADisableonRxError));
  31601. MODIFY_REG(huart->Instance->CR3, USART_CR3_DDRE, huart->AdvancedInit.DMADisableonRxError);
  31602. 800de52: 687b ldr r3, [r7, #4]
  31603. 800de54: 681b ldr r3, [r3, #0]
  31604. 800de56: 689b ldr r3, [r3, #8]
  31605. 800de58: f423 5100 bic.w r1, r3, #8192 @ 0x2000
  31606. 800de5c: 687b ldr r3, [r7, #4]
  31607. 800de5e: 6c1a ldr r2, [r3, #64] @ 0x40
  31608. 800de60: 687b ldr r3, [r7, #4]
  31609. 800de62: 681b ldr r3, [r3, #0]
  31610. 800de64: 430a orrs r2, r1
  31611. 800de66: 609a str r2, [r3, #8]
  31612. }
  31613. /* if required, configure auto Baud rate detection scheme */
  31614. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_AUTOBAUDRATE_INIT))
  31615. 800de68: 687b ldr r3, [r7, #4]
  31616. 800de6a: 6a9b ldr r3, [r3, #40] @ 0x28
  31617. 800de6c: f003 0340 and.w r3, r3, #64 @ 0x40
  31618. 800de70: 2b00 cmp r3, #0
  31619. 800de72: d01a beq.n 800deaa <UART_AdvFeatureConfig+0x116>
  31620. {
  31621. assert_param(IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(huart->Instance));
  31622. assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATE(huart->AdvancedInit.AutoBaudRateEnable));
  31623. MODIFY_REG(huart->Instance->CR2, USART_CR2_ABREN, huart->AdvancedInit.AutoBaudRateEnable);
  31624. 800de74: 687b ldr r3, [r7, #4]
  31625. 800de76: 681b ldr r3, [r3, #0]
  31626. 800de78: 685b ldr r3, [r3, #4]
  31627. 800de7a: f423 1180 bic.w r1, r3, #1048576 @ 0x100000
  31628. 800de7e: 687b ldr r3, [r7, #4]
  31629. 800de80: 6c5a ldr r2, [r3, #68] @ 0x44
  31630. 800de82: 687b ldr r3, [r7, #4]
  31631. 800de84: 681b ldr r3, [r3, #0]
  31632. 800de86: 430a orrs r2, r1
  31633. 800de88: 605a str r2, [r3, #4]
  31634. /* set auto Baudrate detection parameters if detection is enabled */
  31635. if (huart->AdvancedInit.AutoBaudRateEnable == UART_ADVFEATURE_AUTOBAUDRATE_ENABLE)
  31636. 800de8a: 687b ldr r3, [r7, #4]
  31637. 800de8c: 6c5b ldr r3, [r3, #68] @ 0x44
  31638. 800de8e: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  31639. 800de92: d10a bne.n 800deaa <UART_AdvFeatureConfig+0x116>
  31640. {
  31641. assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATEMODE(huart->AdvancedInit.AutoBaudRateMode));
  31642. MODIFY_REG(huart->Instance->CR2, USART_CR2_ABRMODE, huart->AdvancedInit.AutoBaudRateMode);
  31643. 800de94: 687b ldr r3, [r7, #4]
  31644. 800de96: 681b ldr r3, [r3, #0]
  31645. 800de98: 685b ldr r3, [r3, #4]
  31646. 800de9a: f423 01c0 bic.w r1, r3, #6291456 @ 0x600000
  31647. 800de9e: 687b ldr r3, [r7, #4]
  31648. 800dea0: 6c9a ldr r2, [r3, #72] @ 0x48
  31649. 800dea2: 687b ldr r3, [r7, #4]
  31650. 800dea4: 681b ldr r3, [r3, #0]
  31651. 800dea6: 430a orrs r2, r1
  31652. 800dea8: 605a str r2, [r3, #4]
  31653. }
  31654. }
  31655. /* if required, configure MSB first on communication line */
  31656. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_MSBFIRST_INIT))
  31657. 800deaa: 687b ldr r3, [r7, #4]
  31658. 800deac: 6a9b ldr r3, [r3, #40] @ 0x28
  31659. 800deae: f003 0380 and.w r3, r3, #128 @ 0x80
  31660. 800deb2: 2b00 cmp r3, #0
  31661. 800deb4: d00a beq.n 800decc <UART_AdvFeatureConfig+0x138>
  31662. {
  31663. assert_param(IS_UART_ADVFEATURE_MSBFIRST(huart->AdvancedInit.MSBFirst));
  31664. MODIFY_REG(huart->Instance->CR2, USART_CR2_MSBFIRST, huart->AdvancedInit.MSBFirst);
  31665. 800deb6: 687b ldr r3, [r7, #4]
  31666. 800deb8: 681b ldr r3, [r3, #0]
  31667. 800deba: 685b ldr r3, [r3, #4]
  31668. 800debc: f423 2100 bic.w r1, r3, #524288 @ 0x80000
  31669. 800dec0: 687b ldr r3, [r7, #4]
  31670. 800dec2: 6cda ldr r2, [r3, #76] @ 0x4c
  31671. 800dec4: 687b ldr r3, [r7, #4]
  31672. 800dec6: 681b ldr r3, [r3, #0]
  31673. 800dec8: 430a orrs r2, r1
  31674. 800deca: 605a str r2, [r3, #4]
  31675. }
  31676. }
  31677. 800decc: bf00 nop
  31678. 800dece: 370c adds r7, #12
  31679. 800ded0: 46bd mov sp, r7
  31680. 800ded2: f85d 7b04 ldr.w r7, [sp], #4
  31681. 800ded6: 4770 bx lr
  31682. 0800ded8 <UART_CheckIdleState>:
  31683. * @brief Check the UART Idle State.
  31684. * @param huart UART handle.
  31685. * @retval HAL status
  31686. */
  31687. HAL_StatusTypeDef UART_CheckIdleState(UART_HandleTypeDef *huart)
  31688. {
  31689. 800ded8: b580 push {r7, lr}
  31690. 800deda: b098 sub sp, #96 @ 0x60
  31691. 800dedc: af02 add r7, sp, #8
  31692. 800dede: 6078 str r0, [r7, #4]
  31693. uint32_t tickstart;
  31694. /* Initialize the UART ErrorCode */
  31695. huart->ErrorCode = HAL_UART_ERROR_NONE;
  31696. 800dee0: 687b ldr r3, [r7, #4]
  31697. 800dee2: 2200 movs r2, #0
  31698. 800dee4: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  31699. /* Init tickstart for timeout management */
  31700. tickstart = HAL_GetTick();
  31701. 800dee8: f7f6 fe52 bl 8004b90 <HAL_GetTick>
  31702. 800deec: 6578 str r0, [r7, #84] @ 0x54
  31703. /* Check if the Transmitter is enabled */
  31704. if ((huart->Instance->CR1 & USART_CR1_TE) == USART_CR1_TE)
  31705. 800deee: 687b ldr r3, [r7, #4]
  31706. 800def0: 681b ldr r3, [r3, #0]
  31707. 800def2: 681b ldr r3, [r3, #0]
  31708. 800def4: f003 0308 and.w r3, r3, #8
  31709. 800def8: 2b08 cmp r3, #8
  31710. 800defa: d12f bne.n 800df5c <UART_CheckIdleState+0x84>
  31711. {
  31712. /* Wait until TEACK flag is set */
  31713. if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_TEACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
  31714. 800defc: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000
  31715. 800df00: 9300 str r3, [sp, #0]
  31716. 800df02: 6d7b ldr r3, [r7, #84] @ 0x54
  31717. 800df04: 2200 movs r2, #0
  31718. 800df06: f44f 1100 mov.w r1, #2097152 @ 0x200000
  31719. 800df0a: 6878 ldr r0, [r7, #4]
  31720. 800df0c: f000 f88e bl 800e02c <UART_WaitOnFlagUntilTimeout>
  31721. 800df10: 4603 mov r3, r0
  31722. 800df12: 2b00 cmp r3, #0
  31723. 800df14: d022 beq.n 800df5c <UART_CheckIdleState+0x84>
  31724. {
  31725. /* Disable TXE interrupt for the interrupt process */
  31726. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE_TXFNFIE));
  31727. 800df16: 687b ldr r3, [r7, #4]
  31728. 800df18: 681b ldr r3, [r3, #0]
  31729. 800df1a: 63bb str r3, [r7, #56] @ 0x38
  31730. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  31731. 800df1c: 6bbb ldr r3, [r7, #56] @ 0x38
  31732. 800df1e: e853 3f00 ldrex r3, [r3]
  31733. 800df22: 637b str r3, [r7, #52] @ 0x34
  31734. return(result);
  31735. 800df24: 6b7b ldr r3, [r7, #52] @ 0x34
  31736. 800df26: f023 0380 bic.w r3, r3, #128 @ 0x80
  31737. 800df2a: 653b str r3, [r7, #80] @ 0x50
  31738. 800df2c: 687b ldr r3, [r7, #4]
  31739. 800df2e: 681b ldr r3, [r3, #0]
  31740. 800df30: 461a mov r2, r3
  31741. 800df32: 6d3b ldr r3, [r7, #80] @ 0x50
  31742. 800df34: 647b str r3, [r7, #68] @ 0x44
  31743. 800df36: 643a str r2, [r7, #64] @ 0x40
  31744. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  31745. 800df38: 6c39 ldr r1, [r7, #64] @ 0x40
  31746. 800df3a: 6c7a ldr r2, [r7, #68] @ 0x44
  31747. 800df3c: e841 2300 strex r3, r2, [r1]
  31748. 800df40: 63fb str r3, [r7, #60] @ 0x3c
  31749. return(result);
  31750. 800df42: 6bfb ldr r3, [r7, #60] @ 0x3c
  31751. 800df44: 2b00 cmp r3, #0
  31752. 800df46: d1e6 bne.n 800df16 <UART_CheckIdleState+0x3e>
  31753. huart->gState = HAL_UART_STATE_READY;
  31754. 800df48: 687b ldr r3, [r7, #4]
  31755. 800df4a: 2220 movs r2, #32
  31756. 800df4c: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  31757. __HAL_UNLOCK(huart);
  31758. 800df50: 687b ldr r3, [r7, #4]
  31759. 800df52: 2200 movs r2, #0
  31760. 800df54: f883 2084 strb.w r2, [r3, #132] @ 0x84
  31761. /* Timeout occurred */
  31762. return HAL_TIMEOUT;
  31763. 800df58: 2303 movs r3, #3
  31764. 800df5a: e063 b.n 800e024 <UART_CheckIdleState+0x14c>
  31765. }
  31766. }
  31767. /* Check if the Receiver is enabled */
  31768. if ((huart->Instance->CR1 & USART_CR1_RE) == USART_CR1_RE)
  31769. 800df5c: 687b ldr r3, [r7, #4]
  31770. 800df5e: 681b ldr r3, [r3, #0]
  31771. 800df60: 681b ldr r3, [r3, #0]
  31772. 800df62: f003 0304 and.w r3, r3, #4
  31773. 800df66: 2b04 cmp r3, #4
  31774. 800df68: d149 bne.n 800dffe <UART_CheckIdleState+0x126>
  31775. {
  31776. /* Wait until REACK flag is set */
  31777. if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_REACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
  31778. 800df6a: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000
  31779. 800df6e: 9300 str r3, [sp, #0]
  31780. 800df70: 6d7b ldr r3, [r7, #84] @ 0x54
  31781. 800df72: 2200 movs r2, #0
  31782. 800df74: f44f 0180 mov.w r1, #4194304 @ 0x400000
  31783. 800df78: 6878 ldr r0, [r7, #4]
  31784. 800df7a: f000 f857 bl 800e02c <UART_WaitOnFlagUntilTimeout>
  31785. 800df7e: 4603 mov r3, r0
  31786. 800df80: 2b00 cmp r3, #0
  31787. 800df82: d03c beq.n 800dffe <UART_CheckIdleState+0x126>
  31788. {
  31789. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error)
  31790. interrupts for the interrupt process */
  31791. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  31792. 800df84: 687b ldr r3, [r7, #4]
  31793. 800df86: 681b ldr r3, [r3, #0]
  31794. 800df88: 627b str r3, [r7, #36] @ 0x24
  31795. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  31796. 800df8a: 6a7b ldr r3, [r7, #36] @ 0x24
  31797. 800df8c: e853 3f00 ldrex r3, [r3]
  31798. 800df90: 623b str r3, [r7, #32]
  31799. return(result);
  31800. 800df92: 6a3b ldr r3, [r7, #32]
  31801. 800df94: f423 7390 bic.w r3, r3, #288 @ 0x120
  31802. 800df98: 64fb str r3, [r7, #76] @ 0x4c
  31803. 800df9a: 687b ldr r3, [r7, #4]
  31804. 800df9c: 681b ldr r3, [r3, #0]
  31805. 800df9e: 461a mov r2, r3
  31806. 800dfa0: 6cfb ldr r3, [r7, #76] @ 0x4c
  31807. 800dfa2: 633b str r3, [r7, #48] @ 0x30
  31808. 800dfa4: 62fa str r2, [r7, #44] @ 0x2c
  31809. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  31810. 800dfa6: 6af9 ldr r1, [r7, #44] @ 0x2c
  31811. 800dfa8: 6b3a ldr r2, [r7, #48] @ 0x30
  31812. 800dfaa: e841 2300 strex r3, r2, [r1]
  31813. 800dfae: 62bb str r3, [r7, #40] @ 0x28
  31814. return(result);
  31815. 800dfb0: 6abb ldr r3, [r7, #40] @ 0x28
  31816. 800dfb2: 2b00 cmp r3, #0
  31817. 800dfb4: d1e6 bne.n 800df84 <UART_CheckIdleState+0xac>
  31818. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  31819. 800dfb6: 687b ldr r3, [r7, #4]
  31820. 800dfb8: 681b ldr r3, [r3, #0]
  31821. 800dfba: 3308 adds r3, #8
  31822. 800dfbc: 613b str r3, [r7, #16]
  31823. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  31824. 800dfbe: 693b ldr r3, [r7, #16]
  31825. 800dfc0: e853 3f00 ldrex r3, [r3]
  31826. 800dfc4: 60fb str r3, [r7, #12]
  31827. return(result);
  31828. 800dfc6: 68fb ldr r3, [r7, #12]
  31829. 800dfc8: f023 0301 bic.w r3, r3, #1
  31830. 800dfcc: 64bb str r3, [r7, #72] @ 0x48
  31831. 800dfce: 687b ldr r3, [r7, #4]
  31832. 800dfd0: 681b ldr r3, [r3, #0]
  31833. 800dfd2: 3308 adds r3, #8
  31834. 800dfd4: 6cba ldr r2, [r7, #72] @ 0x48
  31835. 800dfd6: 61fa str r2, [r7, #28]
  31836. 800dfd8: 61bb str r3, [r7, #24]
  31837. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  31838. 800dfda: 69b9 ldr r1, [r7, #24]
  31839. 800dfdc: 69fa ldr r2, [r7, #28]
  31840. 800dfde: e841 2300 strex r3, r2, [r1]
  31841. 800dfe2: 617b str r3, [r7, #20]
  31842. return(result);
  31843. 800dfe4: 697b ldr r3, [r7, #20]
  31844. 800dfe6: 2b00 cmp r3, #0
  31845. 800dfe8: d1e5 bne.n 800dfb6 <UART_CheckIdleState+0xde>
  31846. huart->RxState = HAL_UART_STATE_READY;
  31847. 800dfea: 687b ldr r3, [r7, #4]
  31848. 800dfec: 2220 movs r2, #32
  31849. 800dfee: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  31850. __HAL_UNLOCK(huart);
  31851. 800dff2: 687b ldr r3, [r7, #4]
  31852. 800dff4: 2200 movs r2, #0
  31853. 800dff6: f883 2084 strb.w r2, [r3, #132] @ 0x84
  31854. /* Timeout occurred */
  31855. return HAL_TIMEOUT;
  31856. 800dffa: 2303 movs r3, #3
  31857. 800dffc: e012 b.n 800e024 <UART_CheckIdleState+0x14c>
  31858. }
  31859. }
  31860. /* Initialize the UART State */
  31861. huart->gState = HAL_UART_STATE_READY;
  31862. 800dffe: 687b ldr r3, [r7, #4]
  31863. 800e000: 2220 movs r2, #32
  31864. 800e002: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  31865. huart->RxState = HAL_UART_STATE_READY;
  31866. 800e006: 687b ldr r3, [r7, #4]
  31867. 800e008: 2220 movs r2, #32
  31868. 800e00a: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  31869. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  31870. 800e00e: 687b ldr r3, [r7, #4]
  31871. 800e010: 2200 movs r2, #0
  31872. 800e012: 66da str r2, [r3, #108] @ 0x6c
  31873. huart->RxEventType = HAL_UART_RXEVENT_TC;
  31874. 800e014: 687b ldr r3, [r7, #4]
  31875. 800e016: 2200 movs r2, #0
  31876. 800e018: 671a str r2, [r3, #112] @ 0x70
  31877. __HAL_UNLOCK(huart);
  31878. 800e01a: 687b ldr r3, [r7, #4]
  31879. 800e01c: 2200 movs r2, #0
  31880. 800e01e: f883 2084 strb.w r2, [r3, #132] @ 0x84
  31881. return HAL_OK;
  31882. 800e022: 2300 movs r3, #0
  31883. }
  31884. 800e024: 4618 mov r0, r3
  31885. 800e026: 3758 adds r7, #88 @ 0x58
  31886. 800e028: 46bd mov sp, r7
  31887. 800e02a: bd80 pop {r7, pc}
  31888. 0800e02c <UART_WaitOnFlagUntilTimeout>:
  31889. * @param Timeout Timeout duration
  31890. * @retval HAL status
  31891. */
  31892. HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status,
  31893. uint32_t Tickstart, uint32_t Timeout)
  31894. {
  31895. 800e02c: b580 push {r7, lr}
  31896. 800e02e: b084 sub sp, #16
  31897. 800e030: af00 add r7, sp, #0
  31898. 800e032: 60f8 str r0, [r7, #12]
  31899. 800e034: 60b9 str r1, [r7, #8]
  31900. 800e036: 603b str r3, [r7, #0]
  31901. 800e038: 4613 mov r3, r2
  31902. 800e03a: 71fb strb r3, [r7, #7]
  31903. /* Wait until flag is set */
  31904. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  31905. 800e03c: e04f b.n 800e0de <UART_WaitOnFlagUntilTimeout+0xb2>
  31906. {
  31907. /* Check for the Timeout */
  31908. if (Timeout != HAL_MAX_DELAY)
  31909. 800e03e: 69bb ldr r3, [r7, #24]
  31910. 800e040: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  31911. 800e044: d04b beq.n 800e0de <UART_WaitOnFlagUntilTimeout+0xb2>
  31912. {
  31913. if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
  31914. 800e046: f7f6 fda3 bl 8004b90 <HAL_GetTick>
  31915. 800e04a: 4602 mov r2, r0
  31916. 800e04c: 683b ldr r3, [r7, #0]
  31917. 800e04e: 1ad3 subs r3, r2, r3
  31918. 800e050: 69ba ldr r2, [r7, #24]
  31919. 800e052: 429a cmp r2, r3
  31920. 800e054: d302 bcc.n 800e05c <UART_WaitOnFlagUntilTimeout+0x30>
  31921. 800e056: 69bb ldr r3, [r7, #24]
  31922. 800e058: 2b00 cmp r3, #0
  31923. 800e05a: d101 bne.n 800e060 <UART_WaitOnFlagUntilTimeout+0x34>
  31924. {
  31925. return HAL_TIMEOUT;
  31926. 800e05c: 2303 movs r3, #3
  31927. 800e05e: e04e b.n 800e0fe <UART_WaitOnFlagUntilTimeout+0xd2>
  31928. }
  31929. if ((READ_BIT(huart->Instance->CR1, USART_CR1_RE) != 0U) && (Flag != UART_FLAG_TXE) && (Flag != UART_FLAG_TC))
  31930. 800e060: 68fb ldr r3, [r7, #12]
  31931. 800e062: 681b ldr r3, [r3, #0]
  31932. 800e064: 681b ldr r3, [r3, #0]
  31933. 800e066: f003 0304 and.w r3, r3, #4
  31934. 800e06a: 2b00 cmp r3, #0
  31935. 800e06c: d037 beq.n 800e0de <UART_WaitOnFlagUntilTimeout+0xb2>
  31936. 800e06e: 68bb ldr r3, [r7, #8]
  31937. 800e070: 2b80 cmp r3, #128 @ 0x80
  31938. 800e072: d034 beq.n 800e0de <UART_WaitOnFlagUntilTimeout+0xb2>
  31939. 800e074: 68bb ldr r3, [r7, #8]
  31940. 800e076: 2b40 cmp r3, #64 @ 0x40
  31941. 800e078: d031 beq.n 800e0de <UART_WaitOnFlagUntilTimeout+0xb2>
  31942. {
  31943. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) == SET)
  31944. 800e07a: 68fb ldr r3, [r7, #12]
  31945. 800e07c: 681b ldr r3, [r3, #0]
  31946. 800e07e: 69db ldr r3, [r3, #28]
  31947. 800e080: f003 0308 and.w r3, r3, #8
  31948. 800e084: 2b08 cmp r3, #8
  31949. 800e086: d110 bne.n 800e0aa <UART_WaitOnFlagUntilTimeout+0x7e>
  31950. {
  31951. /* Clear Overrun Error flag*/
  31952. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
  31953. 800e088: 68fb ldr r3, [r7, #12]
  31954. 800e08a: 681b ldr r3, [r3, #0]
  31955. 800e08c: 2208 movs r2, #8
  31956. 800e08e: 621a str r2, [r3, #32]
  31957. /* Blocking error : transfer is aborted
  31958. Set the UART state ready to be able to start again the process,
  31959. Disable Rx Interrupts if ongoing */
  31960. UART_EndRxTransfer(huart);
  31961. 800e090: 68f8 ldr r0, [r7, #12]
  31962. 800e092: f000 f95b bl 800e34c <UART_EndRxTransfer>
  31963. huart->ErrorCode = HAL_UART_ERROR_ORE;
  31964. 800e096: 68fb ldr r3, [r7, #12]
  31965. 800e098: 2208 movs r2, #8
  31966. 800e09a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  31967. /* Process Unlocked */
  31968. __HAL_UNLOCK(huart);
  31969. 800e09e: 68fb ldr r3, [r7, #12]
  31970. 800e0a0: 2200 movs r2, #0
  31971. 800e0a2: f883 2084 strb.w r2, [r3, #132] @ 0x84
  31972. return HAL_ERROR;
  31973. 800e0a6: 2301 movs r3, #1
  31974. 800e0a8: e029 b.n 800e0fe <UART_WaitOnFlagUntilTimeout+0xd2>
  31975. }
  31976. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_RTOF) == SET)
  31977. 800e0aa: 68fb ldr r3, [r7, #12]
  31978. 800e0ac: 681b ldr r3, [r3, #0]
  31979. 800e0ae: 69db ldr r3, [r3, #28]
  31980. 800e0b0: f403 6300 and.w r3, r3, #2048 @ 0x800
  31981. 800e0b4: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  31982. 800e0b8: d111 bne.n 800e0de <UART_WaitOnFlagUntilTimeout+0xb2>
  31983. {
  31984. /* Clear Receiver Timeout flag*/
  31985. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
  31986. 800e0ba: 68fb ldr r3, [r7, #12]
  31987. 800e0bc: 681b ldr r3, [r3, #0]
  31988. 800e0be: f44f 6200 mov.w r2, #2048 @ 0x800
  31989. 800e0c2: 621a str r2, [r3, #32]
  31990. /* Blocking error : transfer is aborted
  31991. Set the UART state ready to be able to start again the process,
  31992. Disable Rx Interrupts if ongoing */
  31993. UART_EndRxTransfer(huart);
  31994. 800e0c4: 68f8 ldr r0, [r7, #12]
  31995. 800e0c6: f000 f941 bl 800e34c <UART_EndRxTransfer>
  31996. huart->ErrorCode = HAL_UART_ERROR_RTO;
  31997. 800e0ca: 68fb ldr r3, [r7, #12]
  31998. 800e0cc: 2220 movs r2, #32
  31999. 800e0ce: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  32000. /* Process Unlocked */
  32001. __HAL_UNLOCK(huart);
  32002. 800e0d2: 68fb ldr r3, [r7, #12]
  32003. 800e0d4: 2200 movs r2, #0
  32004. 800e0d6: f883 2084 strb.w r2, [r3, #132] @ 0x84
  32005. return HAL_TIMEOUT;
  32006. 800e0da: 2303 movs r3, #3
  32007. 800e0dc: e00f b.n 800e0fe <UART_WaitOnFlagUntilTimeout+0xd2>
  32008. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  32009. 800e0de: 68fb ldr r3, [r7, #12]
  32010. 800e0e0: 681b ldr r3, [r3, #0]
  32011. 800e0e2: 69da ldr r2, [r3, #28]
  32012. 800e0e4: 68bb ldr r3, [r7, #8]
  32013. 800e0e6: 4013 ands r3, r2
  32014. 800e0e8: 68ba ldr r2, [r7, #8]
  32015. 800e0ea: 429a cmp r2, r3
  32016. 800e0ec: bf0c ite eq
  32017. 800e0ee: 2301 moveq r3, #1
  32018. 800e0f0: 2300 movne r3, #0
  32019. 800e0f2: b2db uxtb r3, r3
  32020. 800e0f4: 461a mov r2, r3
  32021. 800e0f6: 79fb ldrb r3, [r7, #7]
  32022. 800e0f8: 429a cmp r2, r3
  32023. 800e0fa: d0a0 beq.n 800e03e <UART_WaitOnFlagUntilTimeout+0x12>
  32024. }
  32025. }
  32026. }
  32027. }
  32028. return HAL_OK;
  32029. 800e0fc: 2300 movs r3, #0
  32030. }
  32031. 800e0fe: 4618 mov r0, r3
  32032. 800e100: 3710 adds r7, #16
  32033. 800e102: 46bd mov sp, r7
  32034. 800e104: bd80 pop {r7, pc}
  32035. ...
  32036. 0800e108 <UART_Start_Receive_IT>:
  32037. * @param pData Pointer to data buffer (u8 or u16 data elements).
  32038. * @param Size Amount of data elements (u8 or u16) to be received.
  32039. * @retval HAL status
  32040. */
  32041. HAL_StatusTypeDef UART_Start_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  32042. {
  32043. 800e108: b480 push {r7}
  32044. 800e10a: b0a3 sub sp, #140 @ 0x8c
  32045. 800e10c: af00 add r7, sp, #0
  32046. 800e10e: 60f8 str r0, [r7, #12]
  32047. 800e110: 60b9 str r1, [r7, #8]
  32048. 800e112: 4613 mov r3, r2
  32049. 800e114: 80fb strh r3, [r7, #6]
  32050. huart->pRxBuffPtr = pData;
  32051. 800e116: 68fb ldr r3, [r7, #12]
  32052. 800e118: 68ba ldr r2, [r7, #8]
  32053. 800e11a: 659a str r2, [r3, #88] @ 0x58
  32054. huart->RxXferSize = Size;
  32055. 800e11c: 68fb ldr r3, [r7, #12]
  32056. 800e11e: 88fa ldrh r2, [r7, #6]
  32057. 800e120: f8a3 205c strh.w r2, [r3, #92] @ 0x5c
  32058. huart->RxXferCount = Size;
  32059. 800e124: 68fb ldr r3, [r7, #12]
  32060. 800e126: 88fa ldrh r2, [r7, #6]
  32061. 800e128: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  32062. huart->RxISR = NULL;
  32063. 800e12c: 68fb ldr r3, [r7, #12]
  32064. 800e12e: 2200 movs r2, #0
  32065. 800e130: 675a str r2, [r3, #116] @ 0x74
  32066. /* Computation of UART mask to apply to RDR register */
  32067. UART_MASK_COMPUTATION(huart);
  32068. 800e132: 68fb ldr r3, [r7, #12]
  32069. 800e134: 689b ldr r3, [r3, #8]
  32070. 800e136: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  32071. 800e13a: d10e bne.n 800e15a <UART_Start_Receive_IT+0x52>
  32072. 800e13c: 68fb ldr r3, [r7, #12]
  32073. 800e13e: 691b ldr r3, [r3, #16]
  32074. 800e140: 2b00 cmp r3, #0
  32075. 800e142: d105 bne.n 800e150 <UART_Start_Receive_IT+0x48>
  32076. 800e144: 68fb ldr r3, [r7, #12]
  32077. 800e146: f240 12ff movw r2, #511 @ 0x1ff
  32078. 800e14a: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  32079. 800e14e: e02d b.n 800e1ac <UART_Start_Receive_IT+0xa4>
  32080. 800e150: 68fb ldr r3, [r7, #12]
  32081. 800e152: 22ff movs r2, #255 @ 0xff
  32082. 800e154: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  32083. 800e158: e028 b.n 800e1ac <UART_Start_Receive_IT+0xa4>
  32084. 800e15a: 68fb ldr r3, [r7, #12]
  32085. 800e15c: 689b ldr r3, [r3, #8]
  32086. 800e15e: 2b00 cmp r3, #0
  32087. 800e160: d10d bne.n 800e17e <UART_Start_Receive_IT+0x76>
  32088. 800e162: 68fb ldr r3, [r7, #12]
  32089. 800e164: 691b ldr r3, [r3, #16]
  32090. 800e166: 2b00 cmp r3, #0
  32091. 800e168: d104 bne.n 800e174 <UART_Start_Receive_IT+0x6c>
  32092. 800e16a: 68fb ldr r3, [r7, #12]
  32093. 800e16c: 22ff movs r2, #255 @ 0xff
  32094. 800e16e: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  32095. 800e172: e01b b.n 800e1ac <UART_Start_Receive_IT+0xa4>
  32096. 800e174: 68fb ldr r3, [r7, #12]
  32097. 800e176: 227f movs r2, #127 @ 0x7f
  32098. 800e178: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  32099. 800e17c: e016 b.n 800e1ac <UART_Start_Receive_IT+0xa4>
  32100. 800e17e: 68fb ldr r3, [r7, #12]
  32101. 800e180: 689b ldr r3, [r3, #8]
  32102. 800e182: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32103. 800e186: d10d bne.n 800e1a4 <UART_Start_Receive_IT+0x9c>
  32104. 800e188: 68fb ldr r3, [r7, #12]
  32105. 800e18a: 691b ldr r3, [r3, #16]
  32106. 800e18c: 2b00 cmp r3, #0
  32107. 800e18e: d104 bne.n 800e19a <UART_Start_Receive_IT+0x92>
  32108. 800e190: 68fb ldr r3, [r7, #12]
  32109. 800e192: 227f movs r2, #127 @ 0x7f
  32110. 800e194: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  32111. 800e198: e008 b.n 800e1ac <UART_Start_Receive_IT+0xa4>
  32112. 800e19a: 68fb ldr r3, [r7, #12]
  32113. 800e19c: 223f movs r2, #63 @ 0x3f
  32114. 800e19e: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  32115. 800e1a2: e003 b.n 800e1ac <UART_Start_Receive_IT+0xa4>
  32116. 800e1a4: 68fb ldr r3, [r7, #12]
  32117. 800e1a6: 2200 movs r2, #0
  32118. 800e1a8: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  32119. huart->ErrorCode = HAL_UART_ERROR_NONE;
  32120. 800e1ac: 68fb ldr r3, [r7, #12]
  32121. 800e1ae: 2200 movs r2, #0
  32122. 800e1b0: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  32123. huart->RxState = HAL_UART_STATE_BUSY_RX;
  32124. 800e1b4: 68fb ldr r3, [r7, #12]
  32125. 800e1b6: 2222 movs r2, #34 @ 0x22
  32126. 800e1b8: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  32127. /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  32128. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_EIE);
  32129. 800e1bc: 68fb ldr r3, [r7, #12]
  32130. 800e1be: 681b ldr r3, [r3, #0]
  32131. 800e1c0: 3308 adds r3, #8
  32132. 800e1c2: 667b str r3, [r7, #100] @ 0x64
  32133. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32134. 800e1c4: 6e7b ldr r3, [r7, #100] @ 0x64
  32135. 800e1c6: e853 3f00 ldrex r3, [r3]
  32136. 800e1ca: 663b str r3, [r7, #96] @ 0x60
  32137. return(result);
  32138. 800e1cc: 6e3b ldr r3, [r7, #96] @ 0x60
  32139. 800e1ce: f043 0301 orr.w r3, r3, #1
  32140. 800e1d2: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  32141. 800e1d6: 68fb ldr r3, [r7, #12]
  32142. 800e1d8: 681b ldr r3, [r3, #0]
  32143. 800e1da: 3308 adds r3, #8
  32144. 800e1dc: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84
  32145. 800e1e0: 673a str r2, [r7, #112] @ 0x70
  32146. 800e1e2: 66fb str r3, [r7, #108] @ 0x6c
  32147. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  32148. 800e1e4: 6ef9 ldr r1, [r7, #108] @ 0x6c
  32149. 800e1e6: 6f3a ldr r2, [r7, #112] @ 0x70
  32150. 800e1e8: e841 2300 strex r3, r2, [r1]
  32151. 800e1ec: 66bb str r3, [r7, #104] @ 0x68
  32152. return(result);
  32153. 800e1ee: 6ebb ldr r3, [r7, #104] @ 0x68
  32154. 800e1f0: 2b00 cmp r3, #0
  32155. 800e1f2: d1e3 bne.n 800e1bc <UART_Start_Receive_IT+0xb4>
  32156. /* Configure Rx interrupt processing */
  32157. if ((huart->FifoMode == UART_FIFOMODE_ENABLE) && (Size >= huart->NbRxDataToProcess))
  32158. 800e1f4: 68fb ldr r3, [r7, #12]
  32159. 800e1f6: 6e5b ldr r3, [r3, #100] @ 0x64
  32160. 800e1f8: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32161. 800e1fc: d14f bne.n 800e29e <UART_Start_Receive_IT+0x196>
  32162. 800e1fe: 68fb ldr r3, [r7, #12]
  32163. 800e200: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  32164. 800e204: 88fa ldrh r2, [r7, #6]
  32165. 800e206: 429a cmp r2, r3
  32166. 800e208: d349 bcc.n 800e29e <UART_Start_Receive_IT+0x196>
  32167. {
  32168. /* Set the Rx ISR function pointer according to the data word length */
  32169. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  32170. 800e20a: 68fb ldr r3, [r7, #12]
  32171. 800e20c: 689b ldr r3, [r3, #8]
  32172. 800e20e: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  32173. 800e212: d107 bne.n 800e224 <UART_Start_Receive_IT+0x11c>
  32174. 800e214: 68fb ldr r3, [r7, #12]
  32175. 800e216: 691b ldr r3, [r3, #16]
  32176. 800e218: 2b00 cmp r3, #0
  32177. 800e21a: d103 bne.n 800e224 <UART_Start_Receive_IT+0x11c>
  32178. {
  32179. huart->RxISR = UART_RxISR_16BIT_FIFOEN;
  32180. 800e21c: 68fb ldr r3, [r7, #12]
  32181. 800e21e: 4a47 ldr r2, [pc, #284] @ (800e33c <UART_Start_Receive_IT+0x234>)
  32182. 800e220: 675a str r2, [r3, #116] @ 0x74
  32183. 800e222: e002 b.n 800e22a <UART_Start_Receive_IT+0x122>
  32184. }
  32185. else
  32186. {
  32187. huart->RxISR = UART_RxISR_8BIT_FIFOEN;
  32188. 800e224: 68fb ldr r3, [r7, #12]
  32189. 800e226: 4a46 ldr r2, [pc, #280] @ (800e340 <UART_Start_Receive_IT+0x238>)
  32190. 800e228: 675a str r2, [r3, #116] @ 0x74
  32191. }
  32192. /* Enable the UART Parity Error interrupt and RX FIFO Threshold interrupt */
  32193. if (huart->Init.Parity != UART_PARITY_NONE)
  32194. 800e22a: 68fb ldr r3, [r7, #12]
  32195. 800e22c: 691b ldr r3, [r3, #16]
  32196. 800e22e: 2b00 cmp r3, #0
  32197. 800e230: d01a beq.n 800e268 <UART_Start_Receive_IT+0x160>
  32198. {
  32199. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  32200. 800e232: 68fb ldr r3, [r7, #12]
  32201. 800e234: 681b ldr r3, [r3, #0]
  32202. 800e236: 653b str r3, [r7, #80] @ 0x50
  32203. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32204. 800e238: 6d3b ldr r3, [r7, #80] @ 0x50
  32205. 800e23a: e853 3f00 ldrex r3, [r3]
  32206. 800e23e: 64fb str r3, [r7, #76] @ 0x4c
  32207. return(result);
  32208. 800e240: 6cfb ldr r3, [r7, #76] @ 0x4c
  32209. 800e242: f443 7380 orr.w r3, r3, #256 @ 0x100
  32210. 800e246: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  32211. 800e24a: 68fb ldr r3, [r7, #12]
  32212. 800e24c: 681b ldr r3, [r3, #0]
  32213. 800e24e: 461a mov r2, r3
  32214. 800e250: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  32215. 800e254: 65fb str r3, [r7, #92] @ 0x5c
  32216. 800e256: 65ba str r2, [r7, #88] @ 0x58
  32217. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  32218. 800e258: 6db9 ldr r1, [r7, #88] @ 0x58
  32219. 800e25a: 6dfa ldr r2, [r7, #92] @ 0x5c
  32220. 800e25c: e841 2300 strex r3, r2, [r1]
  32221. 800e260: 657b str r3, [r7, #84] @ 0x54
  32222. return(result);
  32223. 800e262: 6d7b ldr r3, [r7, #84] @ 0x54
  32224. 800e264: 2b00 cmp r3, #0
  32225. 800e266: d1e4 bne.n 800e232 <UART_Start_Receive_IT+0x12a>
  32226. }
  32227. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  32228. 800e268: 68fb ldr r3, [r7, #12]
  32229. 800e26a: 681b ldr r3, [r3, #0]
  32230. 800e26c: 3308 adds r3, #8
  32231. 800e26e: 63fb str r3, [r7, #60] @ 0x3c
  32232. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32233. 800e270: 6bfb ldr r3, [r7, #60] @ 0x3c
  32234. 800e272: e853 3f00 ldrex r3, [r3]
  32235. 800e276: 63bb str r3, [r7, #56] @ 0x38
  32236. return(result);
  32237. 800e278: 6bbb ldr r3, [r7, #56] @ 0x38
  32238. 800e27a: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
  32239. 800e27e: 67fb str r3, [r7, #124] @ 0x7c
  32240. 800e280: 68fb ldr r3, [r7, #12]
  32241. 800e282: 681b ldr r3, [r3, #0]
  32242. 800e284: 3308 adds r3, #8
  32243. 800e286: 6ffa ldr r2, [r7, #124] @ 0x7c
  32244. 800e288: 64ba str r2, [r7, #72] @ 0x48
  32245. 800e28a: 647b str r3, [r7, #68] @ 0x44
  32246. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  32247. 800e28c: 6c79 ldr r1, [r7, #68] @ 0x44
  32248. 800e28e: 6cba ldr r2, [r7, #72] @ 0x48
  32249. 800e290: e841 2300 strex r3, r2, [r1]
  32250. 800e294: 643b str r3, [r7, #64] @ 0x40
  32251. return(result);
  32252. 800e296: 6c3b ldr r3, [r7, #64] @ 0x40
  32253. 800e298: 2b00 cmp r3, #0
  32254. 800e29a: d1e5 bne.n 800e268 <UART_Start_Receive_IT+0x160>
  32255. 800e29c: e046 b.n 800e32c <UART_Start_Receive_IT+0x224>
  32256. }
  32257. else
  32258. {
  32259. /* Set the Rx ISR function pointer according to the data word length */
  32260. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  32261. 800e29e: 68fb ldr r3, [r7, #12]
  32262. 800e2a0: 689b ldr r3, [r3, #8]
  32263. 800e2a2: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  32264. 800e2a6: d107 bne.n 800e2b8 <UART_Start_Receive_IT+0x1b0>
  32265. 800e2a8: 68fb ldr r3, [r7, #12]
  32266. 800e2aa: 691b ldr r3, [r3, #16]
  32267. 800e2ac: 2b00 cmp r3, #0
  32268. 800e2ae: d103 bne.n 800e2b8 <UART_Start_Receive_IT+0x1b0>
  32269. {
  32270. huart->RxISR = UART_RxISR_16BIT;
  32271. 800e2b0: 68fb ldr r3, [r7, #12]
  32272. 800e2b2: 4a24 ldr r2, [pc, #144] @ (800e344 <UART_Start_Receive_IT+0x23c>)
  32273. 800e2b4: 675a str r2, [r3, #116] @ 0x74
  32274. 800e2b6: e002 b.n 800e2be <UART_Start_Receive_IT+0x1b6>
  32275. }
  32276. else
  32277. {
  32278. huart->RxISR = UART_RxISR_8BIT;
  32279. 800e2b8: 68fb ldr r3, [r7, #12]
  32280. 800e2ba: 4a23 ldr r2, [pc, #140] @ (800e348 <UART_Start_Receive_IT+0x240>)
  32281. 800e2bc: 675a str r2, [r3, #116] @ 0x74
  32282. }
  32283. /* Enable the UART Parity Error interrupt and Data Register Not Empty interrupt */
  32284. if (huart->Init.Parity != UART_PARITY_NONE)
  32285. 800e2be: 68fb ldr r3, [r7, #12]
  32286. 800e2c0: 691b ldr r3, [r3, #16]
  32287. 800e2c2: 2b00 cmp r3, #0
  32288. 800e2c4: d019 beq.n 800e2fa <UART_Start_Receive_IT+0x1f2>
  32289. {
  32290. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE | USART_CR1_RXNEIE_RXFNEIE);
  32291. 800e2c6: 68fb ldr r3, [r7, #12]
  32292. 800e2c8: 681b ldr r3, [r3, #0]
  32293. 800e2ca: 62bb str r3, [r7, #40] @ 0x28
  32294. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32295. 800e2cc: 6abb ldr r3, [r7, #40] @ 0x28
  32296. 800e2ce: e853 3f00 ldrex r3, [r3]
  32297. 800e2d2: 627b str r3, [r7, #36] @ 0x24
  32298. return(result);
  32299. 800e2d4: 6a7b ldr r3, [r7, #36] @ 0x24
  32300. 800e2d6: f443 7390 orr.w r3, r3, #288 @ 0x120
  32301. 800e2da: 677b str r3, [r7, #116] @ 0x74
  32302. 800e2dc: 68fb ldr r3, [r7, #12]
  32303. 800e2de: 681b ldr r3, [r3, #0]
  32304. 800e2e0: 461a mov r2, r3
  32305. 800e2e2: 6f7b ldr r3, [r7, #116] @ 0x74
  32306. 800e2e4: 637b str r3, [r7, #52] @ 0x34
  32307. 800e2e6: 633a str r2, [r7, #48] @ 0x30
  32308. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  32309. 800e2e8: 6b39 ldr r1, [r7, #48] @ 0x30
  32310. 800e2ea: 6b7a ldr r2, [r7, #52] @ 0x34
  32311. 800e2ec: e841 2300 strex r3, r2, [r1]
  32312. 800e2f0: 62fb str r3, [r7, #44] @ 0x2c
  32313. return(result);
  32314. 800e2f2: 6afb ldr r3, [r7, #44] @ 0x2c
  32315. 800e2f4: 2b00 cmp r3, #0
  32316. 800e2f6: d1e6 bne.n 800e2c6 <UART_Start_Receive_IT+0x1be>
  32317. 800e2f8: e018 b.n 800e32c <UART_Start_Receive_IT+0x224>
  32318. }
  32319. else
  32320. {
  32321. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  32322. 800e2fa: 68fb ldr r3, [r7, #12]
  32323. 800e2fc: 681b ldr r3, [r3, #0]
  32324. 800e2fe: 617b str r3, [r7, #20]
  32325. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32326. 800e300: 697b ldr r3, [r7, #20]
  32327. 800e302: e853 3f00 ldrex r3, [r3]
  32328. 800e306: 613b str r3, [r7, #16]
  32329. return(result);
  32330. 800e308: 693b ldr r3, [r7, #16]
  32331. 800e30a: f043 0320 orr.w r3, r3, #32
  32332. 800e30e: 67bb str r3, [r7, #120] @ 0x78
  32333. 800e310: 68fb ldr r3, [r7, #12]
  32334. 800e312: 681b ldr r3, [r3, #0]
  32335. 800e314: 461a mov r2, r3
  32336. 800e316: 6fbb ldr r3, [r7, #120] @ 0x78
  32337. 800e318: 623b str r3, [r7, #32]
  32338. 800e31a: 61fa str r2, [r7, #28]
  32339. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  32340. 800e31c: 69f9 ldr r1, [r7, #28]
  32341. 800e31e: 6a3a ldr r2, [r7, #32]
  32342. 800e320: e841 2300 strex r3, r2, [r1]
  32343. 800e324: 61bb str r3, [r7, #24]
  32344. return(result);
  32345. 800e326: 69bb ldr r3, [r7, #24]
  32346. 800e328: 2b00 cmp r3, #0
  32347. 800e32a: d1e6 bne.n 800e2fa <UART_Start_Receive_IT+0x1f2>
  32348. }
  32349. }
  32350. return HAL_OK;
  32351. 800e32c: 2300 movs r3, #0
  32352. }
  32353. 800e32e: 4618 mov r0, r3
  32354. 800e330: 378c adds r7, #140 @ 0x8c
  32355. 800e332: 46bd mov sp, r7
  32356. 800e334: f85d 7b04 ldr.w r7, [sp], #4
  32357. 800e338: 4770 bx lr
  32358. 800e33a: bf00 nop
  32359. 800e33c: 0800eeb1 .word 0x0800eeb1
  32360. 800e340: 0800eb51 .word 0x0800eb51
  32361. 800e344: 0800e999 .word 0x0800e999
  32362. 800e348: 0800e7e1 .word 0x0800e7e1
  32363. 0800e34c <UART_EndRxTransfer>:
  32364. * @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion).
  32365. * @param huart UART handle.
  32366. * @retval None
  32367. */
  32368. static void UART_EndRxTransfer(UART_HandleTypeDef *huart)
  32369. {
  32370. 800e34c: b480 push {r7}
  32371. 800e34e: b095 sub sp, #84 @ 0x54
  32372. 800e350: af00 add r7, sp, #0
  32373. 800e352: 6078 str r0, [r7, #4]
  32374. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */
  32375. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  32376. 800e354: 687b ldr r3, [r7, #4]
  32377. 800e356: 681b ldr r3, [r3, #0]
  32378. 800e358: 637b str r3, [r7, #52] @ 0x34
  32379. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32380. 800e35a: 6b7b ldr r3, [r7, #52] @ 0x34
  32381. 800e35c: e853 3f00 ldrex r3, [r3]
  32382. 800e360: 633b str r3, [r7, #48] @ 0x30
  32383. return(result);
  32384. 800e362: 6b3b ldr r3, [r7, #48] @ 0x30
  32385. 800e364: f423 7390 bic.w r3, r3, #288 @ 0x120
  32386. 800e368: 64fb str r3, [r7, #76] @ 0x4c
  32387. 800e36a: 687b ldr r3, [r7, #4]
  32388. 800e36c: 681b ldr r3, [r3, #0]
  32389. 800e36e: 461a mov r2, r3
  32390. 800e370: 6cfb ldr r3, [r7, #76] @ 0x4c
  32391. 800e372: 643b str r3, [r7, #64] @ 0x40
  32392. 800e374: 63fa str r2, [r7, #60] @ 0x3c
  32393. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  32394. 800e376: 6bf9 ldr r1, [r7, #60] @ 0x3c
  32395. 800e378: 6c3a ldr r2, [r7, #64] @ 0x40
  32396. 800e37a: e841 2300 strex r3, r2, [r1]
  32397. 800e37e: 63bb str r3, [r7, #56] @ 0x38
  32398. return(result);
  32399. 800e380: 6bbb ldr r3, [r7, #56] @ 0x38
  32400. 800e382: 2b00 cmp r3, #0
  32401. 800e384: d1e6 bne.n 800e354 <UART_EndRxTransfer+0x8>
  32402. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  32403. 800e386: 687b ldr r3, [r7, #4]
  32404. 800e388: 681b ldr r3, [r3, #0]
  32405. 800e38a: 3308 adds r3, #8
  32406. 800e38c: 623b str r3, [r7, #32]
  32407. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32408. 800e38e: 6a3b ldr r3, [r7, #32]
  32409. 800e390: e853 3f00 ldrex r3, [r3]
  32410. 800e394: 61fb str r3, [r7, #28]
  32411. return(result);
  32412. 800e396: 69fa ldr r2, [r7, #28]
  32413. 800e398: 4b1e ldr r3, [pc, #120] @ (800e414 <UART_EndRxTransfer+0xc8>)
  32414. 800e39a: 4013 ands r3, r2
  32415. 800e39c: 64bb str r3, [r7, #72] @ 0x48
  32416. 800e39e: 687b ldr r3, [r7, #4]
  32417. 800e3a0: 681b ldr r3, [r3, #0]
  32418. 800e3a2: 3308 adds r3, #8
  32419. 800e3a4: 6cba ldr r2, [r7, #72] @ 0x48
  32420. 800e3a6: 62fa str r2, [r7, #44] @ 0x2c
  32421. 800e3a8: 62bb str r3, [r7, #40] @ 0x28
  32422. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  32423. 800e3aa: 6ab9 ldr r1, [r7, #40] @ 0x28
  32424. 800e3ac: 6afa ldr r2, [r7, #44] @ 0x2c
  32425. 800e3ae: e841 2300 strex r3, r2, [r1]
  32426. 800e3b2: 627b str r3, [r7, #36] @ 0x24
  32427. return(result);
  32428. 800e3b4: 6a7b ldr r3, [r7, #36] @ 0x24
  32429. 800e3b6: 2b00 cmp r3, #0
  32430. 800e3b8: d1e5 bne.n 800e386 <UART_EndRxTransfer+0x3a>
  32431. /* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */
  32432. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  32433. 800e3ba: 687b ldr r3, [r7, #4]
  32434. 800e3bc: 6edb ldr r3, [r3, #108] @ 0x6c
  32435. 800e3be: 2b01 cmp r3, #1
  32436. 800e3c0: d118 bne.n 800e3f4 <UART_EndRxTransfer+0xa8>
  32437. {
  32438. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  32439. 800e3c2: 687b ldr r3, [r7, #4]
  32440. 800e3c4: 681b ldr r3, [r3, #0]
  32441. 800e3c6: 60fb str r3, [r7, #12]
  32442. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32443. 800e3c8: 68fb ldr r3, [r7, #12]
  32444. 800e3ca: e853 3f00 ldrex r3, [r3]
  32445. 800e3ce: 60bb str r3, [r7, #8]
  32446. return(result);
  32447. 800e3d0: 68bb ldr r3, [r7, #8]
  32448. 800e3d2: f023 0310 bic.w r3, r3, #16
  32449. 800e3d6: 647b str r3, [r7, #68] @ 0x44
  32450. 800e3d8: 687b ldr r3, [r7, #4]
  32451. 800e3da: 681b ldr r3, [r3, #0]
  32452. 800e3dc: 461a mov r2, r3
  32453. 800e3de: 6c7b ldr r3, [r7, #68] @ 0x44
  32454. 800e3e0: 61bb str r3, [r7, #24]
  32455. 800e3e2: 617a str r2, [r7, #20]
  32456. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  32457. 800e3e4: 6979 ldr r1, [r7, #20]
  32458. 800e3e6: 69ba ldr r2, [r7, #24]
  32459. 800e3e8: e841 2300 strex r3, r2, [r1]
  32460. 800e3ec: 613b str r3, [r7, #16]
  32461. return(result);
  32462. 800e3ee: 693b ldr r3, [r7, #16]
  32463. 800e3f0: 2b00 cmp r3, #0
  32464. 800e3f2: d1e6 bne.n 800e3c2 <UART_EndRxTransfer+0x76>
  32465. }
  32466. /* At end of Rx process, restore huart->RxState to Ready */
  32467. huart->RxState = HAL_UART_STATE_READY;
  32468. 800e3f4: 687b ldr r3, [r7, #4]
  32469. 800e3f6: 2220 movs r2, #32
  32470. 800e3f8: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  32471. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  32472. 800e3fc: 687b ldr r3, [r7, #4]
  32473. 800e3fe: 2200 movs r2, #0
  32474. 800e400: 66da str r2, [r3, #108] @ 0x6c
  32475. /* Reset RxIsr function pointer */
  32476. huart->RxISR = NULL;
  32477. 800e402: 687b ldr r3, [r7, #4]
  32478. 800e404: 2200 movs r2, #0
  32479. 800e406: 675a str r2, [r3, #116] @ 0x74
  32480. }
  32481. 800e408: bf00 nop
  32482. 800e40a: 3754 adds r7, #84 @ 0x54
  32483. 800e40c: 46bd mov sp, r7
  32484. 800e40e: f85d 7b04 ldr.w r7, [sp], #4
  32485. 800e412: 4770 bx lr
  32486. 800e414: effffffe .word 0xeffffffe
  32487. 0800e418 <UART_DMAAbortOnError>:
  32488. * (To be called at end of DMA Abort procedure following error occurrence).
  32489. * @param hdma DMA handle.
  32490. * @retval None
  32491. */
  32492. static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma)
  32493. {
  32494. 800e418: b580 push {r7, lr}
  32495. 800e41a: b084 sub sp, #16
  32496. 800e41c: af00 add r7, sp, #0
  32497. 800e41e: 6078 str r0, [r7, #4]
  32498. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)(hdma->Parent);
  32499. 800e420: 687b ldr r3, [r7, #4]
  32500. 800e422: 6b9b ldr r3, [r3, #56] @ 0x38
  32501. 800e424: 60fb str r3, [r7, #12]
  32502. huart->RxXferCount = 0U;
  32503. 800e426: 68fb ldr r3, [r7, #12]
  32504. 800e428: 2200 movs r2, #0
  32505. 800e42a: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  32506. huart->TxXferCount = 0U;
  32507. 800e42e: 68fb ldr r3, [r7, #12]
  32508. 800e430: 2200 movs r2, #0
  32509. 800e432: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  32510. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  32511. /*Call registered error callback*/
  32512. huart->ErrorCallback(huart);
  32513. #else
  32514. /*Call legacy weak error callback*/
  32515. HAL_UART_ErrorCallback(huart);
  32516. 800e436: 68f8 ldr r0, [r7, #12]
  32517. 800e438: f7fe ff3a bl 800d2b0 <HAL_UART_ErrorCallback>
  32518. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  32519. }
  32520. 800e43c: bf00 nop
  32521. 800e43e: 3710 adds r7, #16
  32522. 800e440: 46bd mov sp, r7
  32523. 800e442: bd80 pop {r7, pc}
  32524. 0800e444 <UART_TxISR_8BIT>:
  32525. * interruptions have been enabled by HAL_UART_Transmit_IT().
  32526. * @param huart UART handle.
  32527. * @retval None
  32528. */
  32529. static void UART_TxISR_8BIT(UART_HandleTypeDef *huart)
  32530. {
  32531. 800e444: b480 push {r7}
  32532. 800e446: b08f sub sp, #60 @ 0x3c
  32533. 800e448: af00 add r7, sp, #0
  32534. 800e44a: 6078 str r0, [r7, #4]
  32535. /* Check that a Tx process is ongoing */
  32536. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  32537. 800e44c: 687b ldr r3, [r7, #4]
  32538. 800e44e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  32539. 800e452: 2b21 cmp r3, #33 @ 0x21
  32540. 800e454: d14c bne.n 800e4f0 <UART_TxISR_8BIT+0xac>
  32541. {
  32542. if (huart->TxXferCount == 0U)
  32543. 800e456: 687b ldr r3, [r7, #4]
  32544. 800e458: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  32545. 800e45c: b29b uxth r3, r3
  32546. 800e45e: 2b00 cmp r3, #0
  32547. 800e460: d132 bne.n 800e4c8 <UART_TxISR_8BIT+0x84>
  32548. {
  32549. /* Disable the UART Transmit Data Register Empty Interrupt */
  32550. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  32551. 800e462: 687b ldr r3, [r7, #4]
  32552. 800e464: 681b ldr r3, [r3, #0]
  32553. 800e466: 623b str r3, [r7, #32]
  32554. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32555. 800e468: 6a3b ldr r3, [r7, #32]
  32556. 800e46a: e853 3f00 ldrex r3, [r3]
  32557. 800e46e: 61fb str r3, [r7, #28]
  32558. return(result);
  32559. 800e470: 69fb ldr r3, [r7, #28]
  32560. 800e472: f023 0380 bic.w r3, r3, #128 @ 0x80
  32561. 800e476: 637b str r3, [r7, #52] @ 0x34
  32562. 800e478: 687b ldr r3, [r7, #4]
  32563. 800e47a: 681b ldr r3, [r3, #0]
  32564. 800e47c: 461a mov r2, r3
  32565. 800e47e: 6b7b ldr r3, [r7, #52] @ 0x34
  32566. 800e480: 62fb str r3, [r7, #44] @ 0x2c
  32567. 800e482: 62ba str r2, [r7, #40] @ 0x28
  32568. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  32569. 800e484: 6ab9 ldr r1, [r7, #40] @ 0x28
  32570. 800e486: 6afa ldr r2, [r7, #44] @ 0x2c
  32571. 800e488: e841 2300 strex r3, r2, [r1]
  32572. 800e48c: 627b str r3, [r7, #36] @ 0x24
  32573. return(result);
  32574. 800e48e: 6a7b ldr r3, [r7, #36] @ 0x24
  32575. 800e490: 2b00 cmp r3, #0
  32576. 800e492: d1e6 bne.n 800e462 <UART_TxISR_8BIT+0x1e>
  32577. /* Enable the UART Transmit Complete Interrupt */
  32578. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  32579. 800e494: 687b ldr r3, [r7, #4]
  32580. 800e496: 681b ldr r3, [r3, #0]
  32581. 800e498: 60fb str r3, [r7, #12]
  32582. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32583. 800e49a: 68fb ldr r3, [r7, #12]
  32584. 800e49c: e853 3f00 ldrex r3, [r3]
  32585. 800e4a0: 60bb str r3, [r7, #8]
  32586. return(result);
  32587. 800e4a2: 68bb ldr r3, [r7, #8]
  32588. 800e4a4: f043 0340 orr.w r3, r3, #64 @ 0x40
  32589. 800e4a8: 633b str r3, [r7, #48] @ 0x30
  32590. 800e4aa: 687b ldr r3, [r7, #4]
  32591. 800e4ac: 681b ldr r3, [r3, #0]
  32592. 800e4ae: 461a mov r2, r3
  32593. 800e4b0: 6b3b ldr r3, [r7, #48] @ 0x30
  32594. 800e4b2: 61bb str r3, [r7, #24]
  32595. 800e4b4: 617a str r2, [r7, #20]
  32596. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  32597. 800e4b6: 6979 ldr r1, [r7, #20]
  32598. 800e4b8: 69ba ldr r2, [r7, #24]
  32599. 800e4ba: e841 2300 strex r3, r2, [r1]
  32600. 800e4be: 613b str r3, [r7, #16]
  32601. return(result);
  32602. 800e4c0: 693b ldr r3, [r7, #16]
  32603. 800e4c2: 2b00 cmp r3, #0
  32604. 800e4c4: d1e6 bne.n 800e494 <UART_TxISR_8BIT+0x50>
  32605. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  32606. huart->pTxBuffPtr++;
  32607. huart->TxXferCount--;
  32608. }
  32609. }
  32610. }
  32611. 800e4c6: e013 b.n 800e4f0 <UART_TxISR_8BIT+0xac>
  32612. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  32613. 800e4c8: 687b ldr r3, [r7, #4]
  32614. 800e4ca: 6d1b ldr r3, [r3, #80] @ 0x50
  32615. 800e4cc: 781a ldrb r2, [r3, #0]
  32616. 800e4ce: 687b ldr r3, [r7, #4]
  32617. 800e4d0: 681b ldr r3, [r3, #0]
  32618. 800e4d2: 629a str r2, [r3, #40] @ 0x28
  32619. huart->pTxBuffPtr++;
  32620. 800e4d4: 687b ldr r3, [r7, #4]
  32621. 800e4d6: 6d1b ldr r3, [r3, #80] @ 0x50
  32622. 800e4d8: 1c5a adds r2, r3, #1
  32623. 800e4da: 687b ldr r3, [r7, #4]
  32624. 800e4dc: 651a str r2, [r3, #80] @ 0x50
  32625. huart->TxXferCount--;
  32626. 800e4de: 687b ldr r3, [r7, #4]
  32627. 800e4e0: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  32628. 800e4e4: b29b uxth r3, r3
  32629. 800e4e6: 3b01 subs r3, #1
  32630. 800e4e8: b29a uxth r2, r3
  32631. 800e4ea: 687b ldr r3, [r7, #4]
  32632. 800e4ec: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  32633. }
  32634. 800e4f0: bf00 nop
  32635. 800e4f2: 373c adds r7, #60 @ 0x3c
  32636. 800e4f4: 46bd mov sp, r7
  32637. 800e4f6: f85d 7b04 ldr.w r7, [sp], #4
  32638. 800e4fa: 4770 bx lr
  32639. 0800e4fc <UART_TxISR_16BIT>:
  32640. * interruptions have been enabled by HAL_UART_Transmit_IT().
  32641. * @param huart UART handle.
  32642. * @retval None
  32643. */
  32644. static void UART_TxISR_16BIT(UART_HandleTypeDef *huart)
  32645. {
  32646. 800e4fc: b480 push {r7}
  32647. 800e4fe: b091 sub sp, #68 @ 0x44
  32648. 800e500: af00 add r7, sp, #0
  32649. 800e502: 6078 str r0, [r7, #4]
  32650. const uint16_t *tmp;
  32651. /* Check that a Tx process is ongoing */
  32652. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  32653. 800e504: 687b ldr r3, [r7, #4]
  32654. 800e506: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  32655. 800e50a: 2b21 cmp r3, #33 @ 0x21
  32656. 800e50c: d151 bne.n 800e5b2 <UART_TxISR_16BIT+0xb6>
  32657. {
  32658. if (huart->TxXferCount == 0U)
  32659. 800e50e: 687b ldr r3, [r7, #4]
  32660. 800e510: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  32661. 800e514: b29b uxth r3, r3
  32662. 800e516: 2b00 cmp r3, #0
  32663. 800e518: d132 bne.n 800e580 <UART_TxISR_16BIT+0x84>
  32664. {
  32665. /* Disable the UART Transmit Data Register Empty Interrupt */
  32666. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  32667. 800e51a: 687b ldr r3, [r7, #4]
  32668. 800e51c: 681b ldr r3, [r3, #0]
  32669. 800e51e: 627b str r3, [r7, #36] @ 0x24
  32670. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32671. 800e520: 6a7b ldr r3, [r7, #36] @ 0x24
  32672. 800e522: e853 3f00 ldrex r3, [r3]
  32673. 800e526: 623b str r3, [r7, #32]
  32674. return(result);
  32675. 800e528: 6a3b ldr r3, [r7, #32]
  32676. 800e52a: f023 0380 bic.w r3, r3, #128 @ 0x80
  32677. 800e52e: 63bb str r3, [r7, #56] @ 0x38
  32678. 800e530: 687b ldr r3, [r7, #4]
  32679. 800e532: 681b ldr r3, [r3, #0]
  32680. 800e534: 461a mov r2, r3
  32681. 800e536: 6bbb ldr r3, [r7, #56] @ 0x38
  32682. 800e538: 633b str r3, [r7, #48] @ 0x30
  32683. 800e53a: 62fa str r2, [r7, #44] @ 0x2c
  32684. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  32685. 800e53c: 6af9 ldr r1, [r7, #44] @ 0x2c
  32686. 800e53e: 6b3a ldr r2, [r7, #48] @ 0x30
  32687. 800e540: e841 2300 strex r3, r2, [r1]
  32688. 800e544: 62bb str r3, [r7, #40] @ 0x28
  32689. return(result);
  32690. 800e546: 6abb ldr r3, [r7, #40] @ 0x28
  32691. 800e548: 2b00 cmp r3, #0
  32692. 800e54a: d1e6 bne.n 800e51a <UART_TxISR_16BIT+0x1e>
  32693. /* Enable the UART Transmit Complete Interrupt */
  32694. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  32695. 800e54c: 687b ldr r3, [r7, #4]
  32696. 800e54e: 681b ldr r3, [r3, #0]
  32697. 800e550: 613b str r3, [r7, #16]
  32698. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32699. 800e552: 693b ldr r3, [r7, #16]
  32700. 800e554: e853 3f00 ldrex r3, [r3]
  32701. 800e558: 60fb str r3, [r7, #12]
  32702. return(result);
  32703. 800e55a: 68fb ldr r3, [r7, #12]
  32704. 800e55c: f043 0340 orr.w r3, r3, #64 @ 0x40
  32705. 800e560: 637b str r3, [r7, #52] @ 0x34
  32706. 800e562: 687b ldr r3, [r7, #4]
  32707. 800e564: 681b ldr r3, [r3, #0]
  32708. 800e566: 461a mov r2, r3
  32709. 800e568: 6b7b ldr r3, [r7, #52] @ 0x34
  32710. 800e56a: 61fb str r3, [r7, #28]
  32711. 800e56c: 61ba str r2, [r7, #24]
  32712. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  32713. 800e56e: 69b9 ldr r1, [r7, #24]
  32714. 800e570: 69fa ldr r2, [r7, #28]
  32715. 800e572: e841 2300 strex r3, r2, [r1]
  32716. 800e576: 617b str r3, [r7, #20]
  32717. return(result);
  32718. 800e578: 697b ldr r3, [r7, #20]
  32719. 800e57a: 2b00 cmp r3, #0
  32720. 800e57c: d1e6 bne.n 800e54c <UART_TxISR_16BIT+0x50>
  32721. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  32722. huart->pTxBuffPtr += 2U;
  32723. huart->TxXferCount--;
  32724. }
  32725. }
  32726. }
  32727. 800e57e: e018 b.n 800e5b2 <UART_TxISR_16BIT+0xb6>
  32728. tmp = (const uint16_t *) huart->pTxBuffPtr;
  32729. 800e580: 687b ldr r3, [r7, #4]
  32730. 800e582: 6d1b ldr r3, [r3, #80] @ 0x50
  32731. 800e584: 63fb str r3, [r7, #60] @ 0x3c
  32732. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  32733. 800e586: 6bfb ldr r3, [r7, #60] @ 0x3c
  32734. 800e588: 881b ldrh r3, [r3, #0]
  32735. 800e58a: 461a mov r2, r3
  32736. 800e58c: 687b ldr r3, [r7, #4]
  32737. 800e58e: 681b ldr r3, [r3, #0]
  32738. 800e590: f3c2 0208 ubfx r2, r2, #0, #9
  32739. 800e594: 629a str r2, [r3, #40] @ 0x28
  32740. huart->pTxBuffPtr += 2U;
  32741. 800e596: 687b ldr r3, [r7, #4]
  32742. 800e598: 6d1b ldr r3, [r3, #80] @ 0x50
  32743. 800e59a: 1c9a adds r2, r3, #2
  32744. 800e59c: 687b ldr r3, [r7, #4]
  32745. 800e59e: 651a str r2, [r3, #80] @ 0x50
  32746. huart->TxXferCount--;
  32747. 800e5a0: 687b ldr r3, [r7, #4]
  32748. 800e5a2: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  32749. 800e5a6: b29b uxth r3, r3
  32750. 800e5a8: 3b01 subs r3, #1
  32751. 800e5aa: b29a uxth r2, r3
  32752. 800e5ac: 687b ldr r3, [r7, #4]
  32753. 800e5ae: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  32754. }
  32755. 800e5b2: bf00 nop
  32756. 800e5b4: 3744 adds r7, #68 @ 0x44
  32757. 800e5b6: 46bd mov sp, r7
  32758. 800e5b8: f85d 7b04 ldr.w r7, [sp], #4
  32759. 800e5bc: 4770 bx lr
  32760. 0800e5be <UART_TxISR_8BIT_FIFOEN>:
  32761. * interruptions have been enabled by HAL_UART_Transmit_IT().
  32762. * @param huart UART handle.
  32763. * @retval None
  32764. */
  32765. static void UART_TxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart)
  32766. {
  32767. 800e5be: b480 push {r7}
  32768. 800e5c0: b091 sub sp, #68 @ 0x44
  32769. 800e5c2: af00 add r7, sp, #0
  32770. 800e5c4: 6078 str r0, [r7, #4]
  32771. uint16_t nb_tx_data;
  32772. /* Check that a Tx process is ongoing */
  32773. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  32774. 800e5c6: 687b ldr r3, [r7, #4]
  32775. 800e5c8: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  32776. 800e5cc: 2b21 cmp r3, #33 @ 0x21
  32777. 800e5ce: d160 bne.n 800e692 <UART_TxISR_8BIT_FIFOEN+0xd4>
  32778. {
  32779. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  32780. 800e5d0: 687b ldr r3, [r7, #4]
  32781. 800e5d2: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  32782. 800e5d6: 87fb strh r3, [r7, #62] @ 0x3e
  32783. 800e5d8: e057 b.n 800e68a <UART_TxISR_8BIT_FIFOEN+0xcc>
  32784. {
  32785. if (huart->TxXferCount == 0U)
  32786. 800e5da: 687b ldr r3, [r7, #4]
  32787. 800e5dc: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  32788. 800e5e0: b29b uxth r3, r3
  32789. 800e5e2: 2b00 cmp r3, #0
  32790. 800e5e4: d133 bne.n 800e64e <UART_TxISR_8BIT_FIFOEN+0x90>
  32791. {
  32792. /* Disable the TX FIFO threshold interrupt */
  32793. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  32794. 800e5e6: 687b ldr r3, [r7, #4]
  32795. 800e5e8: 681b ldr r3, [r3, #0]
  32796. 800e5ea: 3308 adds r3, #8
  32797. 800e5ec: 627b str r3, [r7, #36] @ 0x24
  32798. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32799. 800e5ee: 6a7b ldr r3, [r7, #36] @ 0x24
  32800. 800e5f0: e853 3f00 ldrex r3, [r3]
  32801. 800e5f4: 623b str r3, [r7, #32]
  32802. return(result);
  32803. 800e5f6: 6a3b ldr r3, [r7, #32]
  32804. 800e5f8: f423 0300 bic.w r3, r3, #8388608 @ 0x800000
  32805. 800e5fc: 63bb str r3, [r7, #56] @ 0x38
  32806. 800e5fe: 687b ldr r3, [r7, #4]
  32807. 800e600: 681b ldr r3, [r3, #0]
  32808. 800e602: 3308 adds r3, #8
  32809. 800e604: 6bba ldr r2, [r7, #56] @ 0x38
  32810. 800e606: 633a str r2, [r7, #48] @ 0x30
  32811. 800e608: 62fb str r3, [r7, #44] @ 0x2c
  32812. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  32813. 800e60a: 6af9 ldr r1, [r7, #44] @ 0x2c
  32814. 800e60c: 6b3a ldr r2, [r7, #48] @ 0x30
  32815. 800e60e: e841 2300 strex r3, r2, [r1]
  32816. 800e612: 62bb str r3, [r7, #40] @ 0x28
  32817. return(result);
  32818. 800e614: 6abb ldr r3, [r7, #40] @ 0x28
  32819. 800e616: 2b00 cmp r3, #0
  32820. 800e618: d1e5 bne.n 800e5e6 <UART_TxISR_8BIT_FIFOEN+0x28>
  32821. /* Enable the UART Transmit Complete Interrupt */
  32822. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  32823. 800e61a: 687b ldr r3, [r7, #4]
  32824. 800e61c: 681b ldr r3, [r3, #0]
  32825. 800e61e: 613b str r3, [r7, #16]
  32826. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32827. 800e620: 693b ldr r3, [r7, #16]
  32828. 800e622: e853 3f00 ldrex r3, [r3]
  32829. 800e626: 60fb str r3, [r7, #12]
  32830. return(result);
  32831. 800e628: 68fb ldr r3, [r7, #12]
  32832. 800e62a: f043 0340 orr.w r3, r3, #64 @ 0x40
  32833. 800e62e: 637b str r3, [r7, #52] @ 0x34
  32834. 800e630: 687b ldr r3, [r7, #4]
  32835. 800e632: 681b ldr r3, [r3, #0]
  32836. 800e634: 461a mov r2, r3
  32837. 800e636: 6b7b ldr r3, [r7, #52] @ 0x34
  32838. 800e638: 61fb str r3, [r7, #28]
  32839. 800e63a: 61ba str r2, [r7, #24]
  32840. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  32841. 800e63c: 69b9 ldr r1, [r7, #24]
  32842. 800e63e: 69fa ldr r2, [r7, #28]
  32843. 800e640: e841 2300 strex r3, r2, [r1]
  32844. 800e644: 617b str r3, [r7, #20]
  32845. return(result);
  32846. 800e646: 697b ldr r3, [r7, #20]
  32847. 800e648: 2b00 cmp r3, #0
  32848. 800e64a: d1e6 bne.n 800e61a <UART_TxISR_8BIT_FIFOEN+0x5c>
  32849. break; /* force exit loop */
  32850. 800e64c: e021 b.n 800e692 <UART_TxISR_8BIT_FIFOEN+0xd4>
  32851. }
  32852. else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U)
  32853. 800e64e: 687b ldr r3, [r7, #4]
  32854. 800e650: 681b ldr r3, [r3, #0]
  32855. 800e652: 69db ldr r3, [r3, #28]
  32856. 800e654: f003 0380 and.w r3, r3, #128 @ 0x80
  32857. 800e658: 2b00 cmp r3, #0
  32858. 800e65a: d013 beq.n 800e684 <UART_TxISR_8BIT_FIFOEN+0xc6>
  32859. {
  32860. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  32861. 800e65c: 687b ldr r3, [r7, #4]
  32862. 800e65e: 6d1b ldr r3, [r3, #80] @ 0x50
  32863. 800e660: 781a ldrb r2, [r3, #0]
  32864. 800e662: 687b ldr r3, [r7, #4]
  32865. 800e664: 681b ldr r3, [r3, #0]
  32866. 800e666: 629a str r2, [r3, #40] @ 0x28
  32867. huart->pTxBuffPtr++;
  32868. 800e668: 687b ldr r3, [r7, #4]
  32869. 800e66a: 6d1b ldr r3, [r3, #80] @ 0x50
  32870. 800e66c: 1c5a adds r2, r3, #1
  32871. 800e66e: 687b ldr r3, [r7, #4]
  32872. 800e670: 651a str r2, [r3, #80] @ 0x50
  32873. huart->TxXferCount--;
  32874. 800e672: 687b ldr r3, [r7, #4]
  32875. 800e674: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  32876. 800e678: b29b uxth r3, r3
  32877. 800e67a: 3b01 subs r3, #1
  32878. 800e67c: b29a uxth r2, r3
  32879. 800e67e: 687b ldr r3, [r7, #4]
  32880. 800e680: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  32881. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  32882. 800e684: 8ffb ldrh r3, [r7, #62] @ 0x3e
  32883. 800e686: 3b01 subs r3, #1
  32884. 800e688: 87fb strh r3, [r7, #62] @ 0x3e
  32885. 800e68a: 8ffb ldrh r3, [r7, #62] @ 0x3e
  32886. 800e68c: 2b00 cmp r3, #0
  32887. 800e68e: d1a4 bne.n 800e5da <UART_TxISR_8BIT_FIFOEN+0x1c>
  32888. {
  32889. /* Nothing to do */
  32890. }
  32891. }
  32892. }
  32893. }
  32894. 800e690: e7ff b.n 800e692 <UART_TxISR_8BIT_FIFOEN+0xd4>
  32895. 800e692: bf00 nop
  32896. 800e694: 3744 adds r7, #68 @ 0x44
  32897. 800e696: 46bd mov sp, r7
  32898. 800e698: f85d 7b04 ldr.w r7, [sp], #4
  32899. 800e69c: 4770 bx lr
  32900. 0800e69e <UART_TxISR_16BIT_FIFOEN>:
  32901. * interruptions have been enabled by HAL_UART_Transmit_IT().
  32902. * @param huart UART handle.
  32903. * @retval None
  32904. */
  32905. static void UART_TxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart)
  32906. {
  32907. 800e69e: b480 push {r7}
  32908. 800e6a0: b091 sub sp, #68 @ 0x44
  32909. 800e6a2: af00 add r7, sp, #0
  32910. 800e6a4: 6078 str r0, [r7, #4]
  32911. const uint16_t *tmp;
  32912. uint16_t nb_tx_data;
  32913. /* Check that a Tx process is ongoing */
  32914. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  32915. 800e6a6: 687b ldr r3, [r7, #4]
  32916. 800e6a8: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  32917. 800e6ac: 2b21 cmp r3, #33 @ 0x21
  32918. 800e6ae: d165 bne.n 800e77c <UART_TxISR_16BIT_FIFOEN+0xde>
  32919. {
  32920. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  32921. 800e6b0: 687b ldr r3, [r7, #4]
  32922. 800e6b2: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  32923. 800e6b6: 87fb strh r3, [r7, #62] @ 0x3e
  32924. 800e6b8: e05c b.n 800e774 <UART_TxISR_16BIT_FIFOEN+0xd6>
  32925. {
  32926. if (huart->TxXferCount == 0U)
  32927. 800e6ba: 687b ldr r3, [r7, #4]
  32928. 800e6bc: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  32929. 800e6c0: b29b uxth r3, r3
  32930. 800e6c2: 2b00 cmp r3, #0
  32931. 800e6c4: d133 bne.n 800e72e <UART_TxISR_16BIT_FIFOEN+0x90>
  32932. {
  32933. /* Disable the TX FIFO threshold interrupt */
  32934. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  32935. 800e6c6: 687b ldr r3, [r7, #4]
  32936. 800e6c8: 681b ldr r3, [r3, #0]
  32937. 800e6ca: 3308 adds r3, #8
  32938. 800e6cc: 623b str r3, [r7, #32]
  32939. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32940. 800e6ce: 6a3b ldr r3, [r7, #32]
  32941. 800e6d0: e853 3f00 ldrex r3, [r3]
  32942. 800e6d4: 61fb str r3, [r7, #28]
  32943. return(result);
  32944. 800e6d6: 69fb ldr r3, [r7, #28]
  32945. 800e6d8: f423 0300 bic.w r3, r3, #8388608 @ 0x800000
  32946. 800e6dc: 637b str r3, [r7, #52] @ 0x34
  32947. 800e6de: 687b ldr r3, [r7, #4]
  32948. 800e6e0: 681b ldr r3, [r3, #0]
  32949. 800e6e2: 3308 adds r3, #8
  32950. 800e6e4: 6b7a ldr r2, [r7, #52] @ 0x34
  32951. 800e6e6: 62fa str r2, [r7, #44] @ 0x2c
  32952. 800e6e8: 62bb str r3, [r7, #40] @ 0x28
  32953. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  32954. 800e6ea: 6ab9 ldr r1, [r7, #40] @ 0x28
  32955. 800e6ec: 6afa ldr r2, [r7, #44] @ 0x2c
  32956. 800e6ee: e841 2300 strex r3, r2, [r1]
  32957. 800e6f2: 627b str r3, [r7, #36] @ 0x24
  32958. return(result);
  32959. 800e6f4: 6a7b ldr r3, [r7, #36] @ 0x24
  32960. 800e6f6: 2b00 cmp r3, #0
  32961. 800e6f8: d1e5 bne.n 800e6c6 <UART_TxISR_16BIT_FIFOEN+0x28>
  32962. /* Enable the UART Transmit Complete Interrupt */
  32963. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  32964. 800e6fa: 687b ldr r3, [r7, #4]
  32965. 800e6fc: 681b ldr r3, [r3, #0]
  32966. 800e6fe: 60fb str r3, [r7, #12]
  32967. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32968. 800e700: 68fb ldr r3, [r7, #12]
  32969. 800e702: e853 3f00 ldrex r3, [r3]
  32970. 800e706: 60bb str r3, [r7, #8]
  32971. return(result);
  32972. 800e708: 68bb ldr r3, [r7, #8]
  32973. 800e70a: f043 0340 orr.w r3, r3, #64 @ 0x40
  32974. 800e70e: 633b str r3, [r7, #48] @ 0x30
  32975. 800e710: 687b ldr r3, [r7, #4]
  32976. 800e712: 681b ldr r3, [r3, #0]
  32977. 800e714: 461a mov r2, r3
  32978. 800e716: 6b3b ldr r3, [r7, #48] @ 0x30
  32979. 800e718: 61bb str r3, [r7, #24]
  32980. 800e71a: 617a str r2, [r7, #20]
  32981. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  32982. 800e71c: 6979 ldr r1, [r7, #20]
  32983. 800e71e: 69ba ldr r2, [r7, #24]
  32984. 800e720: e841 2300 strex r3, r2, [r1]
  32985. 800e724: 613b str r3, [r7, #16]
  32986. return(result);
  32987. 800e726: 693b ldr r3, [r7, #16]
  32988. 800e728: 2b00 cmp r3, #0
  32989. 800e72a: d1e6 bne.n 800e6fa <UART_TxISR_16BIT_FIFOEN+0x5c>
  32990. break; /* force exit loop */
  32991. 800e72c: e026 b.n 800e77c <UART_TxISR_16BIT_FIFOEN+0xde>
  32992. }
  32993. else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U)
  32994. 800e72e: 687b ldr r3, [r7, #4]
  32995. 800e730: 681b ldr r3, [r3, #0]
  32996. 800e732: 69db ldr r3, [r3, #28]
  32997. 800e734: f003 0380 and.w r3, r3, #128 @ 0x80
  32998. 800e738: 2b00 cmp r3, #0
  32999. 800e73a: d018 beq.n 800e76e <UART_TxISR_16BIT_FIFOEN+0xd0>
  33000. {
  33001. tmp = (const uint16_t *) huart->pTxBuffPtr;
  33002. 800e73c: 687b ldr r3, [r7, #4]
  33003. 800e73e: 6d1b ldr r3, [r3, #80] @ 0x50
  33004. 800e740: 63bb str r3, [r7, #56] @ 0x38
  33005. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  33006. 800e742: 6bbb ldr r3, [r7, #56] @ 0x38
  33007. 800e744: 881b ldrh r3, [r3, #0]
  33008. 800e746: 461a mov r2, r3
  33009. 800e748: 687b ldr r3, [r7, #4]
  33010. 800e74a: 681b ldr r3, [r3, #0]
  33011. 800e74c: f3c2 0208 ubfx r2, r2, #0, #9
  33012. 800e750: 629a str r2, [r3, #40] @ 0x28
  33013. huart->pTxBuffPtr += 2U;
  33014. 800e752: 687b ldr r3, [r7, #4]
  33015. 800e754: 6d1b ldr r3, [r3, #80] @ 0x50
  33016. 800e756: 1c9a adds r2, r3, #2
  33017. 800e758: 687b ldr r3, [r7, #4]
  33018. 800e75a: 651a str r2, [r3, #80] @ 0x50
  33019. huart->TxXferCount--;
  33020. 800e75c: 687b ldr r3, [r7, #4]
  33021. 800e75e: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  33022. 800e762: b29b uxth r3, r3
  33023. 800e764: 3b01 subs r3, #1
  33024. 800e766: b29a uxth r2, r3
  33025. 800e768: 687b ldr r3, [r7, #4]
  33026. 800e76a: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  33027. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  33028. 800e76e: 8ffb ldrh r3, [r7, #62] @ 0x3e
  33029. 800e770: 3b01 subs r3, #1
  33030. 800e772: 87fb strh r3, [r7, #62] @ 0x3e
  33031. 800e774: 8ffb ldrh r3, [r7, #62] @ 0x3e
  33032. 800e776: 2b00 cmp r3, #0
  33033. 800e778: d19f bne.n 800e6ba <UART_TxISR_16BIT_FIFOEN+0x1c>
  33034. {
  33035. /* Nothing to do */
  33036. }
  33037. }
  33038. }
  33039. }
  33040. 800e77a: e7ff b.n 800e77c <UART_TxISR_16BIT_FIFOEN+0xde>
  33041. 800e77c: bf00 nop
  33042. 800e77e: 3744 adds r7, #68 @ 0x44
  33043. 800e780: 46bd mov sp, r7
  33044. 800e782: f85d 7b04 ldr.w r7, [sp], #4
  33045. 800e786: 4770 bx lr
  33046. 0800e788 <UART_EndTransmit_IT>:
  33047. * @param huart pointer to a UART_HandleTypeDef structure that contains
  33048. * the configuration information for the specified UART module.
  33049. * @retval None
  33050. */
  33051. static void UART_EndTransmit_IT(UART_HandleTypeDef *huart)
  33052. {
  33053. 800e788: b580 push {r7, lr}
  33054. 800e78a: b088 sub sp, #32
  33055. 800e78c: af00 add r7, sp, #0
  33056. 800e78e: 6078 str r0, [r7, #4]
  33057. /* Disable the UART Transmit Complete Interrupt */
  33058. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  33059. 800e790: 687b ldr r3, [r7, #4]
  33060. 800e792: 681b ldr r3, [r3, #0]
  33061. 800e794: 60fb str r3, [r7, #12]
  33062. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33063. 800e796: 68fb ldr r3, [r7, #12]
  33064. 800e798: e853 3f00 ldrex r3, [r3]
  33065. 800e79c: 60bb str r3, [r7, #8]
  33066. return(result);
  33067. 800e79e: 68bb ldr r3, [r7, #8]
  33068. 800e7a0: f023 0340 bic.w r3, r3, #64 @ 0x40
  33069. 800e7a4: 61fb str r3, [r7, #28]
  33070. 800e7a6: 687b ldr r3, [r7, #4]
  33071. 800e7a8: 681b ldr r3, [r3, #0]
  33072. 800e7aa: 461a mov r2, r3
  33073. 800e7ac: 69fb ldr r3, [r7, #28]
  33074. 800e7ae: 61bb str r3, [r7, #24]
  33075. 800e7b0: 617a str r2, [r7, #20]
  33076. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33077. 800e7b2: 6979 ldr r1, [r7, #20]
  33078. 800e7b4: 69ba ldr r2, [r7, #24]
  33079. 800e7b6: e841 2300 strex r3, r2, [r1]
  33080. 800e7ba: 613b str r3, [r7, #16]
  33081. return(result);
  33082. 800e7bc: 693b ldr r3, [r7, #16]
  33083. 800e7be: 2b00 cmp r3, #0
  33084. 800e7c0: d1e6 bne.n 800e790 <UART_EndTransmit_IT+0x8>
  33085. /* Tx process is ended, restore huart->gState to Ready */
  33086. huart->gState = HAL_UART_STATE_READY;
  33087. 800e7c2: 687b ldr r3, [r7, #4]
  33088. 800e7c4: 2220 movs r2, #32
  33089. 800e7c6: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  33090. /* Cleat TxISR function pointer */
  33091. huart->TxISR = NULL;
  33092. 800e7ca: 687b ldr r3, [r7, #4]
  33093. 800e7cc: 2200 movs r2, #0
  33094. 800e7ce: 679a str r2, [r3, #120] @ 0x78
  33095. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  33096. /*Call registered Tx complete callback*/
  33097. huart->TxCpltCallback(huart);
  33098. #else
  33099. /*Call legacy weak Tx complete callback*/
  33100. HAL_UART_TxCpltCallback(huart);
  33101. 800e7d0: 6878 ldr r0, [r7, #4]
  33102. 800e7d2: f7f5 fb97 bl 8003f04 <HAL_UART_TxCpltCallback>
  33103. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  33104. }
  33105. 800e7d6: bf00 nop
  33106. 800e7d8: 3720 adds r7, #32
  33107. 800e7da: 46bd mov sp, r7
  33108. 800e7dc: bd80 pop {r7, pc}
  33109. ...
  33110. 0800e7e0 <UART_RxISR_8BIT>:
  33111. * @brief RX interrupt handler for 7 or 8 bits data word length .
  33112. * @param huart UART handle.
  33113. * @retval None
  33114. */
  33115. static void UART_RxISR_8BIT(UART_HandleTypeDef *huart)
  33116. {
  33117. 800e7e0: b580 push {r7, lr}
  33118. 800e7e2: b09c sub sp, #112 @ 0x70
  33119. 800e7e4: af00 add r7, sp, #0
  33120. 800e7e6: 6078 str r0, [r7, #4]
  33121. uint16_t uhMask = huart->Mask;
  33122. 800e7e8: 687b ldr r3, [r7, #4]
  33123. 800e7ea: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  33124. 800e7ee: f8a7 306e strh.w r3, [r7, #110] @ 0x6e
  33125. uint16_t uhdata;
  33126. /* Check that a Rx process is ongoing */
  33127. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  33128. 800e7f2: 687b ldr r3, [r7, #4]
  33129. 800e7f4: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  33130. 800e7f8: 2b22 cmp r3, #34 @ 0x22
  33131. 800e7fa: f040 80be bne.w 800e97a <UART_RxISR_8BIT+0x19a>
  33132. {
  33133. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  33134. 800e7fe: 687b ldr r3, [r7, #4]
  33135. 800e800: 681b ldr r3, [r3, #0]
  33136. 800e802: 6a5b ldr r3, [r3, #36] @ 0x24
  33137. 800e804: f8a7 306c strh.w r3, [r7, #108] @ 0x6c
  33138. *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask);
  33139. 800e808: f8b7 306c ldrh.w r3, [r7, #108] @ 0x6c
  33140. 800e80c: b2d9 uxtb r1, r3
  33141. 800e80e: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e
  33142. 800e812: b2da uxtb r2, r3
  33143. 800e814: 687b ldr r3, [r7, #4]
  33144. 800e816: 6d9b ldr r3, [r3, #88] @ 0x58
  33145. 800e818: 400a ands r2, r1
  33146. 800e81a: b2d2 uxtb r2, r2
  33147. 800e81c: 701a strb r2, [r3, #0]
  33148. huart->pRxBuffPtr++;
  33149. 800e81e: 687b ldr r3, [r7, #4]
  33150. 800e820: 6d9b ldr r3, [r3, #88] @ 0x58
  33151. 800e822: 1c5a adds r2, r3, #1
  33152. 800e824: 687b ldr r3, [r7, #4]
  33153. 800e826: 659a str r2, [r3, #88] @ 0x58
  33154. huart->RxXferCount--;
  33155. 800e828: 687b ldr r3, [r7, #4]
  33156. 800e82a: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  33157. 800e82e: b29b uxth r3, r3
  33158. 800e830: 3b01 subs r3, #1
  33159. 800e832: b29a uxth r2, r3
  33160. 800e834: 687b ldr r3, [r7, #4]
  33161. 800e836: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  33162. if (huart->RxXferCount == 0U)
  33163. 800e83a: 687b ldr r3, [r7, #4]
  33164. 800e83c: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  33165. 800e840: b29b uxth r3, r3
  33166. 800e842: 2b00 cmp r3, #0
  33167. 800e844: f040 80a1 bne.w 800e98a <UART_RxISR_8BIT+0x1aa>
  33168. {
  33169. /* Disable the UART Parity Error Interrupt and RXNE interrupts */
  33170. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  33171. 800e848: 687b ldr r3, [r7, #4]
  33172. 800e84a: 681b ldr r3, [r3, #0]
  33173. 800e84c: 64fb str r3, [r7, #76] @ 0x4c
  33174. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33175. 800e84e: 6cfb ldr r3, [r7, #76] @ 0x4c
  33176. 800e850: e853 3f00 ldrex r3, [r3]
  33177. 800e854: 64bb str r3, [r7, #72] @ 0x48
  33178. return(result);
  33179. 800e856: 6cbb ldr r3, [r7, #72] @ 0x48
  33180. 800e858: f423 7390 bic.w r3, r3, #288 @ 0x120
  33181. 800e85c: 66bb str r3, [r7, #104] @ 0x68
  33182. 800e85e: 687b ldr r3, [r7, #4]
  33183. 800e860: 681b ldr r3, [r3, #0]
  33184. 800e862: 461a mov r2, r3
  33185. 800e864: 6ebb ldr r3, [r7, #104] @ 0x68
  33186. 800e866: 65bb str r3, [r7, #88] @ 0x58
  33187. 800e868: 657a str r2, [r7, #84] @ 0x54
  33188. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33189. 800e86a: 6d79 ldr r1, [r7, #84] @ 0x54
  33190. 800e86c: 6dba ldr r2, [r7, #88] @ 0x58
  33191. 800e86e: e841 2300 strex r3, r2, [r1]
  33192. 800e872: 653b str r3, [r7, #80] @ 0x50
  33193. return(result);
  33194. 800e874: 6d3b ldr r3, [r7, #80] @ 0x50
  33195. 800e876: 2b00 cmp r3, #0
  33196. 800e878: d1e6 bne.n 800e848 <UART_RxISR_8BIT+0x68>
  33197. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  33198. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  33199. 800e87a: 687b ldr r3, [r7, #4]
  33200. 800e87c: 681b ldr r3, [r3, #0]
  33201. 800e87e: 3308 adds r3, #8
  33202. 800e880: 63bb str r3, [r7, #56] @ 0x38
  33203. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33204. 800e882: 6bbb ldr r3, [r7, #56] @ 0x38
  33205. 800e884: e853 3f00 ldrex r3, [r3]
  33206. 800e888: 637b str r3, [r7, #52] @ 0x34
  33207. return(result);
  33208. 800e88a: 6b7b ldr r3, [r7, #52] @ 0x34
  33209. 800e88c: f023 0301 bic.w r3, r3, #1
  33210. 800e890: 667b str r3, [r7, #100] @ 0x64
  33211. 800e892: 687b ldr r3, [r7, #4]
  33212. 800e894: 681b ldr r3, [r3, #0]
  33213. 800e896: 3308 adds r3, #8
  33214. 800e898: 6e7a ldr r2, [r7, #100] @ 0x64
  33215. 800e89a: 647a str r2, [r7, #68] @ 0x44
  33216. 800e89c: 643b str r3, [r7, #64] @ 0x40
  33217. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33218. 800e89e: 6c39 ldr r1, [r7, #64] @ 0x40
  33219. 800e8a0: 6c7a ldr r2, [r7, #68] @ 0x44
  33220. 800e8a2: e841 2300 strex r3, r2, [r1]
  33221. 800e8a6: 63fb str r3, [r7, #60] @ 0x3c
  33222. return(result);
  33223. 800e8a8: 6bfb ldr r3, [r7, #60] @ 0x3c
  33224. 800e8aa: 2b00 cmp r3, #0
  33225. 800e8ac: d1e5 bne.n 800e87a <UART_RxISR_8BIT+0x9a>
  33226. /* Rx process is completed, restore huart->RxState to Ready */
  33227. huart->RxState = HAL_UART_STATE_READY;
  33228. 800e8ae: 687b ldr r3, [r7, #4]
  33229. 800e8b0: 2220 movs r2, #32
  33230. 800e8b2: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  33231. /* Clear RxISR function pointer */
  33232. huart->RxISR = NULL;
  33233. 800e8b6: 687b ldr r3, [r7, #4]
  33234. 800e8b8: 2200 movs r2, #0
  33235. 800e8ba: 675a str r2, [r3, #116] @ 0x74
  33236. /* Initialize type of RxEvent to Transfer Complete */
  33237. huart->RxEventType = HAL_UART_RXEVENT_TC;
  33238. 800e8bc: 687b ldr r3, [r7, #4]
  33239. 800e8be: 2200 movs r2, #0
  33240. 800e8c0: 671a str r2, [r3, #112] @ 0x70
  33241. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  33242. 800e8c2: 687b ldr r3, [r7, #4]
  33243. 800e8c4: 681b ldr r3, [r3, #0]
  33244. 800e8c6: 4a33 ldr r2, [pc, #204] @ (800e994 <UART_RxISR_8BIT+0x1b4>)
  33245. 800e8c8: 4293 cmp r3, r2
  33246. 800e8ca: d01f beq.n 800e90c <UART_RxISR_8BIT+0x12c>
  33247. {
  33248. /* Check that USART RTOEN bit is set */
  33249. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  33250. 800e8cc: 687b ldr r3, [r7, #4]
  33251. 800e8ce: 681b ldr r3, [r3, #0]
  33252. 800e8d0: 685b ldr r3, [r3, #4]
  33253. 800e8d2: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  33254. 800e8d6: 2b00 cmp r3, #0
  33255. 800e8d8: d018 beq.n 800e90c <UART_RxISR_8BIT+0x12c>
  33256. {
  33257. /* Enable the UART Receiver Timeout Interrupt */
  33258. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  33259. 800e8da: 687b ldr r3, [r7, #4]
  33260. 800e8dc: 681b ldr r3, [r3, #0]
  33261. 800e8de: 627b str r3, [r7, #36] @ 0x24
  33262. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33263. 800e8e0: 6a7b ldr r3, [r7, #36] @ 0x24
  33264. 800e8e2: e853 3f00 ldrex r3, [r3]
  33265. 800e8e6: 623b str r3, [r7, #32]
  33266. return(result);
  33267. 800e8e8: 6a3b ldr r3, [r7, #32]
  33268. 800e8ea: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  33269. 800e8ee: 663b str r3, [r7, #96] @ 0x60
  33270. 800e8f0: 687b ldr r3, [r7, #4]
  33271. 800e8f2: 681b ldr r3, [r3, #0]
  33272. 800e8f4: 461a mov r2, r3
  33273. 800e8f6: 6e3b ldr r3, [r7, #96] @ 0x60
  33274. 800e8f8: 633b str r3, [r7, #48] @ 0x30
  33275. 800e8fa: 62fa str r2, [r7, #44] @ 0x2c
  33276. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33277. 800e8fc: 6af9 ldr r1, [r7, #44] @ 0x2c
  33278. 800e8fe: 6b3a ldr r2, [r7, #48] @ 0x30
  33279. 800e900: e841 2300 strex r3, r2, [r1]
  33280. 800e904: 62bb str r3, [r7, #40] @ 0x28
  33281. return(result);
  33282. 800e906: 6abb ldr r3, [r7, #40] @ 0x28
  33283. 800e908: 2b00 cmp r3, #0
  33284. 800e90a: d1e6 bne.n 800e8da <UART_RxISR_8BIT+0xfa>
  33285. }
  33286. }
  33287. /* Check current reception Mode :
  33288. If Reception till IDLE event has been selected : */
  33289. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  33290. 800e90c: 687b ldr r3, [r7, #4]
  33291. 800e90e: 6edb ldr r3, [r3, #108] @ 0x6c
  33292. 800e910: 2b01 cmp r3, #1
  33293. 800e912: d12e bne.n 800e972 <UART_RxISR_8BIT+0x192>
  33294. {
  33295. /* Set reception type to Standard */
  33296. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  33297. 800e914: 687b ldr r3, [r7, #4]
  33298. 800e916: 2200 movs r2, #0
  33299. 800e918: 66da str r2, [r3, #108] @ 0x6c
  33300. /* Disable IDLE interrupt */
  33301. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  33302. 800e91a: 687b ldr r3, [r7, #4]
  33303. 800e91c: 681b ldr r3, [r3, #0]
  33304. 800e91e: 613b str r3, [r7, #16]
  33305. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33306. 800e920: 693b ldr r3, [r7, #16]
  33307. 800e922: e853 3f00 ldrex r3, [r3]
  33308. 800e926: 60fb str r3, [r7, #12]
  33309. return(result);
  33310. 800e928: 68fb ldr r3, [r7, #12]
  33311. 800e92a: f023 0310 bic.w r3, r3, #16
  33312. 800e92e: 65fb str r3, [r7, #92] @ 0x5c
  33313. 800e930: 687b ldr r3, [r7, #4]
  33314. 800e932: 681b ldr r3, [r3, #0]
  33315. 800e934: 461a mov r2, r3
  33316. 800e936: 6dfb ldr r3, [r7, #92] @ 0x5c
  33317. 800e938: 61fb str r3, [r7, #28]
  33318. 800e93a: 61ba str r2, [r7, #24]
  33319. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33320. 800e93c: 69b9 ldr r1, [r7, #24]
  33321. 800e93e: 69fa ldr r2, [r7, #28]
  33322. 800e940: e841 2300 strex r3, r2, [r1]
  33323. 800e944: 617b str r3, [r7, #20]
  33324. return(result);
  33325. 800e946: 697b ldr r3, [r7, #20]
  33326. 800e948: 2b00 cmp r3, #0
  33327. 800e94a: d1e6 bne.n 800e91a <UART_RxISR_8BIT+0x13a>
  33328. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  33329. 800e94c: 687b ldr r3, [r7, #4]
  33330. 800e94e: 681b ldr r3, [r3, #0]
  33331. 800e950: 69db ldr r3, [r3, #28]
  33332. 800e952: f003 0310 and.w r3, r3, #16
  33333. 800e956: 2b10 cmp r3, #16
  33334. 800e958: d103 bne.n 800e962 <UART_RxISR_8BIT+0x182>
  33335. {
  33336. /* Clear IDLE Flag */
  33337. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  33338. 800e95a: 687b ldr r3, [r7, #4]
  33339. 800e95c: 681b ldr r3, [r3, #0]
  33340. 800e95e: 2210 movs r2, #16
  33341. 800e960: 621a str r2, [r3, #32]
  33342. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  33343. /*Call registered Rx Event callback*/
  33344. huart->RxEventCallback(huart, huart->RxXferSize);
  33345. #else
  33346. /*Call legacy weak Rx Event callback*/
  33347. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  33348. 800e962: 687b ldr r3, [r7, #4]
  33349. 800e964: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  33350. 800e968: 4619 mov r1, r3
  33351. 800e96a: 6878 ldr r0, [r7, #4]
  33352. 800e96c: f7f5 fab0 bl 8003ed0 <HAL_UARTEx_RxEventCallback>
  33353. else
  33354. {
  33355. /* Clear RXNE interrupt flag */
  33356. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  33357. }
  33358. }
  33359. 800e970: e00b b.n 800e98a <UART_RxISR_8BIT+0x1aa>
  33360. HAL_UART_RxCpltCallback(huart);
  33361. 800e972: 6878 ldr r0, [r7, #4]
  33362. 800e974: f7f5 faa2 bl 8003ebc <HAL_UART_RxCpltCallback>
  33363. }
  33364. 800e978: e007 b.n 800e98a <UART_RxISR_8BIT+0x1aa>
  33365. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  33366. 800e97a: 687b ldr r3, [r7, #4]
  33367. 800e97c: 681b ldr r3, [r3, #0]
  33368. 800e97e: 699a ldr r2, [r3, #24]
  33369. 800e980: 687b ldr r3, [r7, #4]
  33370. 800e982: 681b ldr r3, [r3, #0]
  33371. 800e984: f042 0208 orr.w r2, r2, #8
  33372. 800e988: 619a str r2, [r3, #24]
  33373. }
  33374. 800e98a: bf00 nop
  33375. 800e98c: 3770 adds r7, #112 @ 0x70
  33376. 800e98e: 46bd mov sp, r7
  33377. 800e990: bd80 pop {r7, pc}
  33378. 800e992: bf00 nop
  33379. 800e994: 58000c00 .word 0x58000c00
  33380. 0800e998 <UART_RxISR_16BIT>:
  33381. * interruptions have been enabled by HAL_UART_Receive_IT()
  33382. * @param huart UART handle.
  33383. * @retval None
  33384. */
  33385. static void UART_RxISR_16BIT(UART_HandleTypeDef *huart)
  33386. {
  33387. 800e998: b580 push {r7, lr}
  33388. 800e99a: b09c sub sp, #112 @ 0x70
  33389. 800e99c: af00 add r7, sp, #0
  33390. 800e99e: 6078 str r0, [r7, #4]
  33391. uint16_t *tmp;
  33392. uint16_t uhMask = huart->Mask;
  33393. 800e9a0: 687b ldr r3, [r7, #4]
  33394. 800e9a2: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  33395. 800e9a6: f8a7 306e strh.w r3, [r7, #110] @ 0x6e
  33396. uint16_t uhdata;
  33397. /* Check that a Rx process is ongoing */
  33398. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  33399. 800e9aa: 687b ldr r3, [r7, #4]
  33400. 800e9ac: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  33401. 800e9b0: 2b22 cmp r3, #34 @ 0x22
  33402. 800e9b2: f040 80be bne.w 800eb32 <UART_RxISR_16BIT+0x19a>
  33403. {
  33404. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  33405. 800e9b6: 687b ldr r3, [r7, #4]
  33406. 800e9b8: 681b ldr r3, [r3, #0]
  33407. 800e9ba: 6a5b ldr r3, [r3, #36] @ 0x24
  33408. 800e9bc: f8a7 306c strh.w r3, [r7, #108] @ 0x6c
  33409. tmp = (uint16_t *) huart->pRxBuffPtr ;
  33410. 800e9c0: 687b ldr r3, [r7, #4]
  33411. 800e9c2: 6d9b ldr r3, [r3, #88] @ 0x58
  33412. 800e9c4: 66bb str r3, [r7, #104] @ 0x68
  33413. *tmp = (uint16_t)(uhdata & uhMask);
  33414. 800e9c6: f8b7 206c ldrh.w r2, [r7, #108] @ 0x6c
  33415. 800e9ca: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e
  33416. 800e9ce: 4013 ands r3, r2
  33417. 800e9d0: b29a uxth r2, r3
  33418. 800e9d2: 6ebb ldr r3, [r7, #104] @ 0x68
  33419. 800e9d4: 801a strh r2, [r3, #0]
  33420. huart->pRxBuffPtr += 2U;
  33421. 800e9d6: 687b ldr r3, [r7, #4]
  33422. 800e9d8: 6d9b ldr r3, [r3, #88] @ 0x58
  33423. 800e9da: 1c9a adds r2, r3, #2
  33424. 800e9dc: 687b ldr r3, [r7, #4]
  33425. 800e9de: 659a str r2, [r3, #88] @ 0x58
  33426. huart->RxXferCount--;
  33427. 800e9e0: 687b ldr r3, [r7, #4]
  33428. 800e9e2: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  33429. 800e9e6: b29b uxth r3, r3
  33430. 800e9e8: 3b01 subs r3, #1
  33431. 800e9ea: b29a uxth r2, r3
  33432. 800e9ec: 687b ldr r3, [r7, #4]
  33433. 800e9ee: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  33434. if (huart->RxXferCount == 0U)
  33435. 800e9f2: 687b ldr r3, [r7, #4]
  33436. 800e9f4: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  33437. 800e9f8: b29b uxth r3, r3
  33438. 800e9fa: 2b00 cmp r3, #0
  33439. 800e9fc: f040 80a1 bne.w 800eb42 <UART_RxISR_16BIT+0x1aa>
  33440. {
  33441. /* Disable the UART Parity Error Interrupt and RXNE interrupt*/
  33442. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  33443. 800ea00: 687b ldr r3, [r7, #4]
  33444. 800ea02: 681b ldr r3, [r3, #0]
  33445. 800ea04: 64bb str r3, [r7, #72] @ 0x48
  33446. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33447. 800ea06: 6cbb ldr r3, [r7, #72] @ 0x48
  33448. 800ea08: e853 3f00 ldrex r3, [r3]
  33449. 800ea0c: 647b str r3, [r7, #68] @ 0x44
  33450. return(result);
  33451. 800ea0e: 6c7b ldr r3, [r7, #68] @ 0x44
  33452. 800ea10: f423 7390 bic.w r3, r3, #288 @ 0x120
  33453. 800ea14: 667b str r3, [r7, #100] @ 0x64
  33454. 800ea16: 687b ldr r3, [r7, #4]
  33455. 800ea18: 681b ldr r3, [r3, #0]
  33456. 800ea1a: 461a mov r2, r3
  33457. 800ea1c: 6e7b ldr r3, [r7, #100] @ 0x64
  33458. 800ea1e: 657b str r3, [r7, #84] @ 0x54
  33459. 800ea20: 653a str r2, [r7, #80] @ 0x50
  33460. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33461. 800ea22: 6d39 ldr r1, [r7, #80] @ 0x50
  33462. 800ea24: 6d7a ldr r2, [r7, #84] @ 0x54
  33463. 800ea26: e841 2300 strex r3, r2, [r1]
  33464. 800ea2a: 64fb str r3, [r7, #76] @ 0x4c
  33465. return(result);
  33466. 800ea2c: 6cfb ldr r3, [r7, #76] @ 0x4c
  33467. 800ea2e: 2b00 cmp r3, #0
  33468. 800ea30: d1e6 bne.n 800ea00 <UART_RxISR_16BIT+0x68>
  33469. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  33470. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  33471. 800ea32: 687b ldr r3, [r7, #4]
  33472. 800ea34: 681b ldr r3, [r3, #0]
  33473. 800ea36: 3308 adds r3, #8
  33474. 800ea38: 637b str r3, [r7, #52] @ 0x34
  33475. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33476. 800ea3a: 6b7b ldr r3, [r7, #52] @ 0x34
  33477. 800ea3c: e853 3f00 ldrex r3, [r3]
  33478. 800ea40: 633b str r3, [r7, #48] @ 0x30
  33479. return(result);
  33480. 800ea42: 6b3b ldr r3, [r7, #48] @ 0x30
  33481. 800ea44: f023 0301 bic.w r3, r3, #1
  33482. 800ea48: 663b str r3, [r7, #96] @ 0x60
  33483. 800ea4a: 687b ldr r3, [r7, #4]
  33484. 800ea4c: 681b ldr r3, [r3, #0]
  33485. 800ea4e: 3308 adds r3, #8
  33486. 800ea50: 6e3a ldr r2, [r7, #96] @ 0x60
  33487. 800ea52: 643a str r2, [r7, #64] @ 0x40
  33488. 800ea54: 63fb str r3, [r7, #60] @ 0x3c
  33489. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33490. 800ea56: 6bf9 ldr r1, [r7, #60] @ 0x3c
  33491. 800ea58: 6c3a ldr r2, [r7, #64] @ 0x40
  33492. 800ea5a: e841 2300 strex r3, r2, [r1]
  33493. 800ea5e: 63bb str r3, [r7, #56] @ 0x38
  33494. return(result);
  33495. 800ea60: 6bbb ldr r3, [r7, #56] @ 0x38
  33496. 800ea62: 2b00 cmp r3, #0
  33497. 800ea64: d1e5 bne.n 800ea32 <UART_RxISR_16BIT+0x9a>
  33498. /* Rx process is completed, restore huart->RxState to Ready */
  33499. huart->RxState = HAL_UART_STATE_READY;
  33500. 800ea66: 687b ldr r3, [r7, #4]
  33501. 800ea68: 2220 movs r2, #32
  33502. 800ea6a: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  33503. /* Clear RxISR function pointer */
  33504. huart->RxISR = NULL;
  33505. 800ea6e: 687b ldr r3, [r7, #4]
  33506. 800ea70: 2200 movs r2, #0
  33507. 800ea72: 675a str r2, [r3, #116] @ 0x74
  33508. /* Initialize type of RxEvent to Transfer Complete */
  33509. huart->RxEventType = HAL_UART_RXEVENT_TC;
  33510. 800ea74: 687b ldr r3, [r7, #4]
  33511. 800ea76: 2200 movs r2, #0
  33512. 800ea78: 671a str r2, [r3, #112] @ 0x70
  33513. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  33514. 800ea7a: 687b ldr r3, [r7, #4]
  33515. 800ea7c: 681b ldr r3, [r3, #0]
  33516. 800ea7e: 4a33 ldr r2, [pc, #204] @ (800eb4c <UART_RxISR_16BIT+0x1b4>)
  33517. 800ea80: 4293 cmp r3, r2
  33518. 800ea82: d01f beq.n 800eac4 <UART_RxISR_16BIT+0x12c>
  33519. {
  33520. /* Check that USART RTOEN bit is set */
  33521. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  33522. 800ea84: 687b ldr r3, [r7, #4]
  33523. 800ea86: 681b ldr r3, [r3, #0]
  33524. 800ea88: 685b ldr r3, [r3, #4]
  33525. 800ea8a: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  33526. 800ea8e: 2b00 cmp r3, #0
  33527. 800ea90: d018 beq.n 800eac4 <UART_RxISR_16BIT+0x12c>
  33528. {
  33529. /* Enable the UART Receiver Timeout Interrupt */
  33530. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  33531. 800ea92: 687b ldr r3, [r7, #4]
  33532. 800ea94: 681b ldr r3, [r3, #0]
  33533. 800ea96: 623b str r3, [r7, #32]
  33534. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33535. 800ea98: 6a3b ldr r3, [r7, #32]
  33536. 800ea9a: e853 3f00 ldrex r3, [r3]
  33537. 800ea9e: 61fb str r3, [r7, #28]
  33538. return(result);
  33539. 800eaa0: 69fb ldr r3, [r7, #28]
  33540. 800eaa2: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  33541. 800eaa6: 65fb str r3, [r7, #92] @ 0x5c
  33542. 800eaa8: 687b ldr r3, [r7, #4]
  33543. 800eaaa: 681b ldr r3, [r3, #0]
  33544. 800eaac: 461a mov r2, r3
  33545. 800eaae: 6dfb ldr r3, [r7, #92] @ 0x5c
  33546. 800eab0: 62fb str r3, [r7, #44] @ 0x2c
  33547. 800eab2: 62ba str r2, [r7, #40] @ 0x28
  33548. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33549. 800eab4: 6ab9 ldr r1, [r7, #40] @ 0x28
  33550. 800eab6: 6afa ldr r2, [r7, #44] @ 0x2c
  33551. 800eab8: e841 2300 strex r3, r2, [r1]
  33552. 800eabc: 627b str r3, [r7, #36] @ 0x24
  33553. return(result);
  33554. 800eabe: 6a7b ldr r3, [r7, #36] @ 0x24
  33555. 800eac0: 2b00 cmp r3, #0
  33556. 800eac2: d1e6 bne.n 800ea92 <UART_RxISR_16BIT+0xfa>
  33557. }
  33558. }
  33559. /* Check current reception Mode :
  33560. If Reception till IDLE event has been selected : */
  33561. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  33562. 800eac4: 687b ldr r3, [r7, #4]
  33563. 800eac6: 6edb ldr r3, [r3, #108] @ 0x6c
  33564. 800eac8: 2b01 cmp r3, #1
  33565. 800eaca: d12e bne.n 800eb2a <UART_RxISR_16BIT+0x192>
  33566. {
  33567. /* Set reception type to Standard */
  33568. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  33569. 800eacc: 687b ldr r3, [r7, #4]
  33570. 800eace: 2200 movs r2, #0
  33571. 800ead0: 66da str r2, [r3, #108] @ 0x6c
  33572. /* Disable IDLE interrupt */
  33573. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  33574. 800ead2: 687b ldr r3, [r7, #4]
  33575. 800ead4: 681b ldr r3, [r3, #0]
  33576. 800ead6: 60fb str r3, [r7, #12]
  33577. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33578. 800ead8: 68fb ldr r3, [r7, #12]
  33579. 800eada: e853 3f00 ldrex r3, [r3]
  33580. 800eade: 60bb str r3, [r7, #8]
  33581. return(result);
  33582. 800eae0: 68bb ldr r3, [r7, #8]
  33583. 800eae2: f023 0310 bic.w r3, r3, #16
  33584. 800eae6: 65bb str r3, [r7, #88] @ 0x58
  33585. 800eae8: 687b ldr r3, [r7, #4]
  33586. 800eaea: 681b ldr r3, [r3, #0]
  33587. 800eaec: 461a mov r2, r3
  33588. 800eaee: 6dbb ldr r3, [r7, #88] @ 0x58
  33589. 800eaf0: 61bb str r3, [r7, #24]
  33590. 800eaf2: 617a str r2, [r7, #20]
  33591. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33592. 800eaf4: 6979 ldr r1, [r7, #20]
  33593. 800eaf6: 69ba ldr r2, [r7, #24]
  33594. 800eaf8: e841 2300 strex r3, r2, [r1]
  33595. 800eafc: 613b str r3, [r7, #16]
  33596. return(result);
  33597. 800eafe: 693b ldr r3, [r7, #16]
  33598. 800eb00: 2b00 cmp r3, #0
  33599. 800eb02: d1e6 bne.n 800ead2 <UART_RxISR_16BIT+0x13a>
  33600. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  33601. 800eb04: 687b ldr r3, [r7, #4]
  33602. 800eb06: 681b ldr r3, [r3, #0]
  33603. 800eb08: 69db ldr r3, [r3, #28]
  33604. 800eb0a: f003 0310 and.w r3, r3, #16
  33605. 800eb0e: 2b10 cmp r3, #16
  33606. 800eb10: d103 bne.n 800eb1a <UART_RxISR_16BIT+0x182>
  33607. {
  33608. /* Clear IDLE Flag */
  33609. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  33610. 800eb12: 687b ldr r3, [r7, #4]
  33611. 800eb14: 681b ldr r3, [r3, #0]
  33612. 800eb16: 2210 movs r2, #16
  33613. 800eb18: 621a str r2, [r3, #32]
  33614. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  33615. /*Call registered Rx Event callback*/
  33616. huart->RxEventCallback(huart, huart->RxXferSize);
  33617. #else
  33618. /*Call legacy weak Rx Event callback*/
  33619. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  33620. 800eb1a: 687b ldr r3, [r7, #4]
  33621. 800eb1c: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  33622. 800eb20: 4619 mov r1, r3
  33623. 800eb22: 6878 ldr r0, [r7, #4]
  33624. 800eb24: f7f5 f9d4 bl 8003ed0 <HAL_UARTEx_RxEventCallback>
  33625. else
  33626. {
  33627. /* Clear RXNE interrupt flag */
  33628. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  33629. }
  33630. }
  33631. 800eb28: e00b b.n 800eb42 <UART_RxISR_16BIT+0x1aa>
  33632. HAL_UART_RxCpltCallback(huart);
  33633. 800eb2a: 6878 ldr r0, [r7, #4]
  33634. 800eb2c: f7f5 f9c6 bl 8003ebc <HAL_UART_RxCpltCallback>
  33635. }
  33636. 800eb30: e007 b.n 800eb42 <UART_RxISR_16BIT+0x1aa>
  33637. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  33638. 800eb32: 687b ldr r3, [r7, #4]
  33639. 800eb34: 681b ldr r3, [r3, #0]
  33640. 800eb36: 699a ldr r2, [r3, #24]
  33641. 800eb38: 687b ldr r3, [r7, #4]
  33642. 800eb3a: 681b ldr r3, [r3, #0]
  33643. 800eb3c: f042 0208 orr.w r2, r2, #8
  33644. 800eb40: 619a str r2, [r3, #24]
  33645. }
  33646. 800eb42: bf00 nop
  33647. 800eb44: 3770 adds r7, #112 @ 0x70
  33648. 800eb46: 46bd mov sp, r7
  33649. 800eb48: bd80 pop {r7, pc}
  33650. 800eb4a: bf00 nop
  33651. 800eb4c: 58000c00 .word 0x58000c00
  33652. 0800eb50 <UART_RxISR_8BIT_FIFOEN>:
  33653. * interruptions have been enabled by HAL_UART_Receive_IT()
  33654. * @param huart UART handle.
  33655. * @retval None
  33656. */
  33657. static void UART_RxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart)
  33658. {
  33659. 800eb50: b580 push {r7, lr}
  33660. 800eb52: b0ac sub sp, #176 @ 0xb0
  33661. 800eb54: af00 add r7, sp, #0
  33662. 800eb56: 6078 str r0, [r7, #4]
  33663. uint16_t uhMask = huart->Mask;
  33664. 800eb58: 687b ldr r3, [r7, #4]
  33665. 800eb5a: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  33666. 800eb5e: f8a7 30aa strh.w r3, [r7, #170] @ 0xaa
  33667. uint16_t uhdata;
  33668. uint16_t nb_rx_data;
  33669. uint16_t rxdatacount;
  33670. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  33671. 800eb62: 687b ldr r3, [r7, #4]
  33672. 800eb64: 681b ldr r3, [r3, #0]
  33673. 800eb66: 69db ldr r3, [r3, #28]
  33674. 800eb68: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  33675. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  33676. 800eb6c: 687b ldr r3, [r7, #4]
  33677. 800eb6e: 681b ldr r3, [r3, #0]
  33678. 800eb70: 681b ldr r3, [r3, #0]
  33679. 800eb72: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  33680. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  33681. 800eb76: 687b ldr r3, [r7, #4]
  33682. 800eb78: 681b ldr r3, [r3, #0]
  33683. 800eb7a: 689b ldr r3, [r3, #8]
  33684. 800eb7c: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  33685. /* Check that a Rx process is ongoing */
  33686. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  33687. 800eb80: 687b ldr r3, [r7, #4]
  33688. 800eb82: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  33689. 800eb86: 2b22 cmp r3, #34 @ 0x22
  33690. 800eb88: f040 8180 bne.w 800ee8c <UART_RxISR_8BIT_FIFOEN+0x33c>
  33691. {
  33692. nb_rx_data = huart->NbRxDataToProcess;
  33693. 800eb8c: 687b ldr r3, [r7, #4]
  33694. 800eb8e: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  33695. 800eb92: f8a7 309e strh.w r3, [r7, #158] @ 0x9e
  33696. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  33697. 800eb96: e123 b.n 800ede0 <UART_RxISR_8BIT_FIFOEN+0x290>
  33698. {
  33699. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  33700. 800eb98: 687b ldr r3, [r7, #4]
  33701. 800eb9a: 681b ldr r3, [r3, #0]
  33702. 800eb9c: 6a5b ldr r3, [r3, #36] @ 0x24
  33703. 800eb9e: f8a7 309c strh.w r3, [r7, #156] @ 0x9c
  33704. *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask);
  33705. 800eba2: f8b7 309c ldrh.w r3, [r7, #156] @ 0x9c
  33706. 800eba6: b2d9 uxtb r1, r3
  33707. 800eba8: f8b7 30aa ldrh.w r3, [r7, #170] @ 0xaa
  33708. 800ebac: b2da uxtb r2, r3
  33709. 800ebae: 687b ldr r3, [r7, #4]
  33710. 800ebb0: 6d9b ldr r3, [r3, #88] @ 0x58
  33711. 800ebb2: 400a ands r2, r1
  33712. 800ebb4: b2d2 uxtb r2, r2
  33713. 800ebb6: 701a strb r2, [r3, #0]
  33714. huart->pRxBuffPtr++;
  33715. 800ebb8: 687b ldr r3, [r7, #4]
  33716. 800ebba: 6d9b ldr r3, [r3, #88] @ 0x58
  33717. 800ebbc: 1c5a adds r2, r3, #1
  33718. 800ebbe: 687b ldr r3, [r7, #4]
  33719. 800ebc0: 659a str r2, [r3, #88] @ 0x58
  33720. huart->RxXferCount--;
  33721. 800ebc2: 687b ldr r3, [r7, #4]
  33722. 800ebc4: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  33723. 800ebc8: b29b uxth r3, r3
  33724. 800ebca: 3b01 subs r3, #1
  33725. 800ebcc: b29a uxth r2, r3
  33726. 800ebce: 687b ldr r3, [r7, #4]
  33727. 800ebd0: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  33728. isrflags = READ_REG(huart->Instance->ISR);
  33729. 800ebd4: 687b ldr r3, [r7, #4]
  33730. 800ebd6: 681b ldr r3, [r3, #0]
  33731. 800ebd8: 69db ldr r3, [r3, #28]
  33732. 800ebda: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  33733. /* If some non blocking errors occurred */
  33734. if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U)
  33735. 800ebde: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  33736. 800ebe2: f003 0307 and.w r3, r3, #7
  33737. 800ebe6: 2b00 cmp r3, #0
  33738. 800ebe8: d053 beq.n 800ec92 <UART_RxISR_8BIT_FIFOEN+0x142>
  33739. {
  33740. /* UART parity error interrupt occurred -------------------------------------*/
  33741. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  33742. 800ebea: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  33743. 800ebee: f003 0301 and.w r3, r3, #1
  33744. 800ebf2: 2b00 cmp r3, #0
  33745. 800ebf4: d011 beq.n 800ec1a <UART_RxISR_8BIT_FIFOEN+0xca>
  33746. 800ebf6: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4
  33747. 800ebfa: f403 7380 and.w r3, r3, #256 @ 0x100
  33748. 800ebfe: 2b00 cmp r3, #0
  33749. 800ec00: d00b beq.n 800ec1a <UART_RxISR_8BIT_FIFOEN+0xca>
  33750. {
  33751. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  33752. 800ec02: 687b ldr r3, [r7, #4]
  33753. 800ec04: 681b ldr r3, [r3, #0]
  33754. 800ec06: 2201 movs r2, #1
  33755. 800ec08: 621a str r2, [r3, #32]
  33756. huart->ErrorCode |= HAL_UART_ERROR_PE;
  33757. 800ec0a: 687b ldr r3, [r7, #4]
  33758. 800ec0c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  33759. 800ec10: f043 0201 orr.w r2, r3, #1
  33760. 800ec14: 687b ldr r3, [r7, #4]
  33761. 800ec16: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  33762. }
  33763. /* UART frame error interrupt occurred --------------------------------------*/
  33764. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  33765. 800ec1a: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  33766. 800ec1e: f003 0302 and.w r3, r3, #2
  33767. 800ec22: 2b00 cmp r3, #0
  33768. 800ec24: d011 beq.n 800ec4a <UART_RxISR_8BIT_FIFOEN+0xfa>
  33769. 800ec26: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  33770. 800ec2a: f003 0301 and.w r3, r3, #1
  33771. 800ec2e: 2b00 cmp r3, #0
  33772. 800ec30: d00b beq.n 800ec4a <UART_RxISR_8BIT_FIFOEN+0xfa>
  33773. {
  33774. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  33775. 800ec32: 687b ldr r3, [r7, #4]
  33776. 800ec34: 681b ldr r3, [r3, #0]
  33777. 800ec36: 2202 movs r2, #2
  33778. 800ec38: 621a str r2, [r3, #32]
  33779. huart->ErrorCode |= HAL_UART_ERROR_FE;
  33780. 800ec3a: 687b ldr r3, [r7, #4]
  33781. 800ec3c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  33782. 800ec40: f043 0204 orr.w r2, r3, #4
  33783. 800ec44: 687b ldr r3, [r7, #4]
  33784. 800ec46: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  33785. }
  33786. /* UART noise error interrupt occurred --------------------------------------*/
  33787. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  33788. 800ec4a: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  33789. 800ec4e: f003 0304 and.w r3, r3, #4
  33790. 800ec52: 2b00 cmp r3, #0
  33791. 800ec54: d011 beq.n 800ec7a <UART_RxISR_8BIT_FIFOEN+0x12a>
  33792. 800ec56: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  33793. 800ec5a: f003 0301 and.w r3, r3, #1
  33794. 800ec5e: 2b00 cmp r3, #0
  33795. 800ec60: d00b beq.n 800ec7a <UART_RxISR_8BIT_FIFOEN+0x12a>
  33796. {
  33797. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  33798. 800ec62: 687b ldr r3, [r7, #4]
  33799. 800ec64: 681b ldr r3, [r3, #0]
  33800. 800ec66: 2204 movs r2, #4
  33801. 800ec68: 621a str r2, [r3, #32]
  33802. huart->ErrorCode |= HAL_UART_ERROR_NE;
  33803. 800ec6a: 687b ldr r3, [r7, #4]
  33804. 800ec6c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  33805. 800ec70: f043 0202 orr.w r2, r3, #2
  33806. 800ec74: 687b ldr r3, [r7, #4]
  33807. 800ec76: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  33808. }
  33809. /* Call UART Error Call back function if need be ----------------------------*/
  33810. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  33811. 800ec7a: 687b ldr r3, [r7, #4]
  33812. 800ec7c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  33813. 800ec80: 2b00 cmp r3, #0
  33814. 800ec82: d006 beq.n 800ec92 <UART_RxISR_8BIT_FIFOEN+0x142>
  33815. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  33816. /*Call registered error callback*/
  33817. huart->ErrorCallback(huart);
  33818. #else
  33819. /*Call legacy weak error callback*/
  33820. HAL_UART_ErrorCallback(huart);
  33821. 800ec84: 6878 ldr r0, [r7, #4]
  33822. 800ec86: f7fe fb13 bl 800d2b0 <HAL_UART_ErrorCallback>
  33823. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  33824. huart->ErrorCode = HAL_UART_ERROR_NONE;
  33825. 800ec8a: 687b ldr r3, [r7, #4]
  33826. 800ec8c: 2200 movs r2, #0
  33827. 800ec8e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  33828. }
  33829. }
  33830. if (huart->RxXferCount == 0U)
  33831. 800ec92: 687b ldr r3, [r7, #4]
  33832. 800ec94: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  33833. 800ec98: b29b uxth r3, r3
  33834. 800ec9a: 2b00 cmp r3, #0
  33835. 800ec9c: f040 80a0 bne.w 800ede0 <UART_RxISR_8BIT_FIFOEN+0x290>
  33836. {
  33837. /* Disable the UART Parity Error Interrupt and RXFT interrupt*/
  33838. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  33839. 800eca0: 687b ldr r3, [r7, #4]
  33840. 800eca2: 681b ldr r3, [r3, #0]
  33841. 800eca4: 673b str r3, [r7, #112] @ 0x70
  33842. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33843. 800eca6: 6f3b ldr r3, [r7, #112] @ 0x70
  33844. 800eca8: e853 3f00 ldrex r3, [r3]
  33845. 800ecac: 66fb str r3, [r7, #108] @ 0x6c
  33846. return(result);
  33847. 800ecae: 6efb ldr r3, [r7, #108] @ 0x6c
  33848. 800ecb0: f423 7380 bic.w r3, r3, #256 @ 0x100
  33849. 800ecb4: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  33850. 800ecb8: 687b ldr r3, [r7, #4]
  33851. 800ecba: 681b ldr r3, [r3, #0]
  33852. 800ecbc: 461a mov r2, r3
  33853. 800ecbe: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  33854. 800ecc2: 67fb str r3, [r7, #124] @ 0x7c
  33855. 800ecc4: 67ba str r2, [r7, #120] @ 0x78
  33856. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33857. 800ecc6: 6fb9 ldr r1, [r7, #120] @ 0x78
  33858. 800ecc8: 6ffa ldr r2, [r7, #124] @ 0x7c
  33859. 800ecca: e841 2300 strex r3, r2, [r1]
  33860. 800ecce: 677b str r3, [r7, #116] @ 0x74
  33861. return(result);
  33862. 800ecd0: 6f7b ldr r3, [r7, #116] @ 0x74
  33863. 800ecd2: 2b00 cmp r3, #0
  33864. 800ecd4: d1e4 bne.n 800eca0 <UART_RxISR_8BIT_FIFOEN+0x150>
  33865. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error)
  33866. and RX FIFO Threshold interrupt */
  33867. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  33868. 800ecd6: 687b ldr r3, [r7, #4]
  33869. 800ecd8: 681b ldr r3, [r3, #0]
  33870. 800ecda: 3308 adds r3, #8
  33871. 800ecdc: 65fb str r3, [r7, #92] @ 0x5c
  33872. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33873. 800ecde: 6dfb ldr r3, [r7, #92] @ 0x5c
  33874. 800ece0: e853 3f00 ldrex r3, [r3]
  33875. 800ece4: 65bb str r3, [r7, #88] @ 0x58
  33876. return(result);
  33877. 800ece6: 6dba ldr r2, [r7, #88] @ 0x58
  33878. 800ece8: 4b6e ldr r3, [pc, #440] @ (800eea4 <UART_RxISR_8BIT_FIFOEN+0x354>)
  33879. 800ecea: 4013 ands r3, r2
  33880. 800ecec: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  33881. 800ecf0: 687b ldr r3, [r7, #4]
  33882. 800ecf2: 681b ldr r3, [r3, #0]
  33883. 800ecf4: 3308 adds r3, #8
  33884. 800ecf6: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94
  33885. 800ecfa: 66ba str r2, [r7, #104] @ 0x68
  33886. 800ecfc: 667b str r3, [r7, #100] @ 0x64
  33887. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33888. 800ecfe: 6e79 ldr r1, [r7, #100] @ 0x64
  33889. 800ed00: 6eba ldr r2, [r7, #104] @ 0x68
  33890. 800ed02: e841 2300 strex r3, r2, [r1]
  33891. 800ed06: 663b str r3, [r7, #96] @ 0x60
  33892. return(result);
  33893. 800ed08: 6e3b ldr r3, [r7, #96] @ 0x60
  33894. 800ed0a: 2b00 cmp r3, #0
  33895. 800ed0c: d1e3 bne.n 800ecd6 <UART_RxISR_8BIT_FIFOEN+0x186>
  33896. /* Rx process is completed, restore huart->RxState to Ready */
  33897. huart->RxState = HAL_UART_STATE_READY;
  33898. 800ed0e: 687b ldr r3, [r7, #4]
  33899. 800ed10: 2220 movs r2, #32
  33900. 800ed12: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  33901. /* Clear RxISR function pointer */
  33902. huart->RxISR = NULL;
  33903. 800ed16: 687b ldr r3, [r7, #4]
  33904. 800ed18: 2200 movs r2, #0
  33905. 800ed1a: 675a str r2, [r3, #116] @ 0x74
  33906. /* Initialize type of RxEvent to Transfer Complete */
  33907. huart->RxEventType = HAL_UART_RXEVENT_TC;
  33908. 800ed1c: 687b ldr r3, [r7, #4]
  33909. 800ed1e: 2200 movs r2, #0
  33910. 800ed20: 671a str r2, [r3, #112] @ 0x70
  33911. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  33912. 800ed22: 687b ldr r3, [r7, #4]
  33913. 800ed24: 681b ldr r3, [r3, #0]
  33914. 800ed26: 4a60 ldr r2, [pc, #384] @ (800eea8 <UART_RxISR_8BIT_FIFOEN+0x358>)
  33915. 800ed28: 4293 cmp r3, r2
  33916. 800ed2a: d021 beq.n 800ed70 <UART_RxISR_8BIT_FIFOEN+0x220>
  33917. {
  33918. /* Check that USART RTOEN bit is set */
  33919. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  33920. 800ed2c: 687b ldr r3, [r7, #4]
  33921. 800ed2e: 681b ldr r3, [r3, #0]
  33922. 800ed30: 685b ldr r3, [r3, #4]
  33923. 800ed32: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  33924. 800ed36: 2b00 cmp r3, #0
  33925. 800ed38: d01a beq.n 800ed70 <UART_RxISR_8BIT_FIFOEN+0x220>
  33926. {
  33927. /* Enable the UART Receiver Timeout Interrupt */
  33928. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  33929. 800ed3a: 687b ldr r3, [r7, #4]
  33930. 800ed3c: 681b ldr r3, [r3, #0]
  33931. 800ed3e: 64bb str r3, [r7, #72] @ 0x48
  33932. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33933. 800ed40: 6cbb ldr r3, [r7, #72] @ 0x48
  33934. 800ed42: e853 3f00 ldrex r3, [r3]
  33935. 800ed46: 647b str r3, [r7, #68] @ 0x44
  33936. return(result);
  33937. 800ed48: 6c7b ldr r3, [r7, #68] @ 0x44
  33938. 800ed4a: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  33939. 800ed4e: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  33940. 800ed52: 687b ldr r3, [r7, #4]
  33941. 800ed54: 681b ldr r3, [r3, #0]
  33942. 800ed56: 461a mov r2, r3
  33943. 800ed58: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  33944. 800ed5c: 657b str r3, [r7, #84] @ 0x54
  33945. 800ed5e: 653a str r2, [r7, #80] @ 0x50
  33946. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33947. 800ed60: 6d39 ldr r1, [r7, #80] @ 0x50
  33948. 800ed62: 6d7a ldr r2, [r7, #84] @ 0x54
  33949. 800ed64: e841 2300 strex r3, r2, [r1]
  33950. 800ed68: 64fb str r3, [r7, #76] @ 0x4c
  33951. return(result);
  33952. 800ed6a: 6cfb ldr r3, [r7, #76] @ 0x4c
  33953. 800ed6c: 2b00 cmp r3, #0
  33954. 800ed6e: d1e4 bne.n 800ed3a <UART_RxISR_8BIT_FIFOEN+0x1ea>
  33955. }
  33956. }
  33957. /* Check current reception Mode :
  33958. If Reception till IDLE event has been selected : */
  33959. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  33960. 800ed70: 687b ldr r3, [r7, #4]
  33961. 800ed72: 6edb ldr r3, [r3, #108] @ 0x6c
  33962. 800ed74: 2b01 cmp r3, #1
  33963. 800ed76: d130 bne.n 800edda <UART_RxISR_8BIT_FIFOEN+0x28a>
  33964. {
  33965. /* Set reception type to Standard */
  33966. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  33967. 800ed78: 687b ldr r3, [r7, #4]
  33968. 800ed7a: 2200 movs r2, #0
  33969. 800ed7c: 66da str r2, [r3, #108] @ 0x6c
  33970. /* Disable IDLE interrupt */
  33971. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  33972. 800ed7e: 687b ldr r3, [r7, #4]
  33973. 800ed80: 681b ldr r3, [r3, #0]
  33974. 800ed82: 637b str r3, [r7, #52] @ 0x34
  33975. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33976. 800ed84: 6b7b ldr r3, [r7, #52] @ 0x34
  33977. 800ed86: e853 3f00 ldrex r3, [r3]
  33978. 800ed8a: 633b str r3, [r7, #48] @ 0x30
  33979. return(result);
  33980. 800ed8c: 6b3b ldr r3, [r7, #48] @ 0x30
  33981. 800ed8e: f023 0310 bic.w r3, r3, #16
  33982. 800ed92: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  33983. 800ed96: 687b ldr r3, [r7, #4]
  33984. 800ed98: 681b ldr r3, [r3, #0]
  33985. 800ed9a: 461a mov r2, r3
  33986. 800ed9c: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  33987. 800eda0: 643b str r3, [r7, #64] @ 0x40
  33988. 800eda2: 63fa str r2, [r7, #60] @ 0x3c
  33989. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33990. 800eda4: 6bf9 ldr r1, [r7, #60] @ 0x3c
  33991. 800eda6: 6c3a ldr r2, [r7, #64] @ 0x40
  33992. 800eda8: e841 2300 strex r3, r2, [r1]
  33993. 800edac: 63bb str r3, [r7, #56] @ 0x38
  33994. return(result);
  33995. 800edae: 6bbb ldr r3, [r7, #56] @ 0x38
  33996. 800edb0: 2b00 cmp r3, #0
  33997. 800edb2: d1e4 bne.n 800ed7e <UART_RxISR_8BIT_FIFOEN+0x22e>
  33998. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  33999. 800edb4: 687b ldr r3, [r7, #4]
  34000. 800edb6: 681b ldr r3, [r3, #0]
  34001. 800edb8: 69db ldr r3, [r3, #28]
  34002. 800edba: f003 0310 and.w r3, r3, #16
  34003. 800edbe: 2b10 cmp r3, #16
  34004. 800edc0: d103 bne.n 800edca <UART_RxISR_8BIT_FIFOEN+0x27a>
  34005. {
  34006. /* Clear IDLE Flag */
  34007. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  34008. 800edc2: 687b ldr r3, [r7, #4]
  34009. 800edc4: 681b ldr r3, [r3, #0]
  34010. 800edc6: 2210 movs r2, #16
  34011. 800edc8: 621a str r2, [r3, #32]
  34012. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  34013. /*Call registered Rx Event callback*/
  34014. huart->RxEventCallback(huart, huart->RxXferSize);
  34015. #else
  34016. /*Call legacy weak Rx Event callback*/
  34017. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  34018. 800edca: 687b ldr r3, [r7, #4]
  34019. 800edcc: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  34020. 800edd0: 4619 mov r1, r3
  34021. 800edd2: 6878 ldr r0, [r7, #4]
  34022. 800edd4: f7f5 f87c bl 8003ed0 <HAL_UARTEx_RxEventCallback>
  34023. 800edd8: e002 b.n 800ede0 <UART_RxISR_8BIT_FIFOEN+0x290>
  34024. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  34025. /*Call registered Rx complete callback*/
  34026. huart->RxCpltCallback(huart);
  34027. #else
  34028. /*Call legacy weak Rx complete callback*/
  34029. HAL_UART_RxCpltCallback(huart);
  34030. 800edda: 6878 ldr r0, [r7, #4]
  34031. 800eddc: f7f5 f86e bl 8003ebc <HAL_UART_RxCpltCallback>
  34032. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  34033. 800ede0: f8b7 309e ldrh.w r3, [r7, #158] @ 0x9e
  34034. 800ede4: 2b00 cmp r3, #0
  34035. 800ede6: d006 beq.n 800edf6 <UART_RxISR_8BIT_FIFOEN+0x2a6>
  34036. 800ede8: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  34037. 800edec: f003 0320 and.w r3, r3, #32
  34038. 800edf0: 2b00 cmp r3, #0
  34039. 800edf2: f47f aed1 bne.w 800eb98 <UART_RxISR_8BIT_FIFOEN+0x48>
  34040. /* When remaining number of bytes to receive is less than the RX FIFO
  34041. threshold, next incoming frames are processed as if FIFO mode was
  34042. disabled (i.e. one interrupt per received frame).
  34043. */
  34044. rxdatacount = huart->RxXferCount;
  34045. 800edf6: 687b ldr r3, [r7, #4]
  34046. 800edf8: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  34047. 800edfc: f8a7 308a strh.w r3, [r7, #138] @ 0x8a
  34048. if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess))
  34049. 800ee00: f8b7 308a ldrh.w r3, [r7, #138] @ 0x8a
  34050. 800ee04: 2b00 cmp r3, #0
  34051. 800ee06: d049 beq.n 800ee9c <UART_RxISR_8BIT_FIFOEN+0x34c>
  34052. 800ee08: 687b ldr r3, [r7, #4]
  34053. 800ee0a: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  34054. 800ee0e: f8b7 208a ldrh.w r2, [r7, #138] @ 0x8a
  34055. 800ee12: 429a cmp r2, r3
  34056. 800ee14: d242 bcs.n 800ee9c <UART_RxISR_8BIT_FIFOEN+0x34c>
  34057. {
  34058. /* Disable the UART RXFT interrupt*/
  34059. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  34060. 800ee16: 687b ldr r3, [r7, #4]
  34061. 800ee18: 681b ldr r3, [r3, #0]
  34062. 800ee1a: 3308 adds r3, #8
  34063. 800ee1c: 623b str r3, [r7, #32]
  34064. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34065. 800ee1e: 6a3b ldr r3, [r7, #32]
  34066. 800ee20: e853 3f00 ldrex r3, [r3]
  34067. 800ee24: 61fb str r3, [r7, #28]
  34068. return(result);
  34069. 800ee26: 69fb ldr r3, [r7, #28]
  34070. 800ee28: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  34071. 800ee2c: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  34072. 800ee30: 687b ldr r3, [r7, #4]
  34073. 800ee32: 681b ldr r3, [r3, #0]
  34074. 800ee34: 3308 adds r3, #8
  34075. 800ee36: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84
  34076. 800ee3a: 62fa str r2, [r7, #44] @ 0x2c
  34077. 800ee3c: 62bb str r3, [r7, #40] @ 0x28
  34078. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34079. 800ee3e: 6ab9 ldr r1, [r7, #40] @ 0x28
  34080. 800ee40: 6afa ldr r2, [r7, #44] @ 0x2c
  34081. 800ee42: e841 2300 strex r3, r2, [r1]
  34082. 800ee46: 627b str r3, [r7, #36] @ 0x24
  34083. return(result);
  34084. 800ee48: 6a7b ldr r3, [r7, #36] @ 0x24
  34085. 800ee4a: 2b00 cmp r3, #0
  34086. 800ee4c: d1e3 bne.n 800ee16 <UART_RxISR_8BIT_FIFOEN+0x2c6>
  34087. /* Update the RxISR function pointer */
  34088. huart->RxISR = UART_RxISR_8BIT;
  34089. 800ee4e: 687b ldr r3, [r7, #4]
  34090. 800ee50: 4a16 ldr r2, [pc, #88] @ (800eeac <UART_RxISR_8BIT_FIFOEN+0x35c>)
  34091. 800ee52: 675a str r2, [r3, #116] @ 0x74
  34092. /* Enable the UART Data Register Not Empty interrupt */
  34093. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  34094. 800ee54: 687b ldr r3, [r7, #4]
  34095. 800ee56: 681b ldr r3, [r3, #0]
  34096. 800ee58: 60fb str r3, [r7, #12]
  34097. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34098. 800ee5a: 68fb ldr r3, [r7, #12]
  34099. 800ee5c: e853 3f00 ldrex r3, [r3]
  34100. 800ee60: 60bb str r3, [r7, #8]
  34101. return(result);
  34102. 800ee62: 68bb ldr r3, [r7, #8]
  34103. 800ee64: f043 0320 orr.w r3, r3, #32
  34104. 800ee68: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  34105. 800ee6c: 687b ldr r3, [r7, #4]
  34106. 800ee6e: 681b ldr r3, [r3, #0]
  34107. 800ee70: 461a mov r2, r3
  34108. 800ee72: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  34109. 800ee76: 61bb str r3, [r7, #24]
  34110. 800ee78: 617a str r2, [r7, #20]
  34111. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34112. 800ee7a: 6979 ldr r1, [r7, #20]
  34113. 800ee7c: 69ba ldr r2, [r7, #24]
  34114. 800ee7e: e841 2300 strex r3, r2, [r1]
  34115. 800ee82: 613b str r3, [r7, #16]
  34116. return(result);
  34117. 800ee84: 693b ldr r3, [r7, #16]
  34118. 800ee86: 2b00 cmp r3, #0
  34119. 800ee88: d1e4 bne.n 800ee54 <UART_RxISR_8BIT_FIFOEN+0x304>
  34120. else
  34121. {
  34122. /* Clear RXNE interrupt flag */
  34123. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  34124. }
  34125. }
  34126. 800ee8a: e007 b.n 800ee9c <UART_RxISR_8BIT_FIFOEN+0x34c>
  34127. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  34128. 800ee8c: 687b ldr r3, [r7, #4]
  34129. 800ee8e: 681b ldr r3, [r3, #0]
  34130. 800ee90: 699a ldr r2, [r3, #24]
  34131. 800ee92: 687b ldr r3, [r7, #4]
  34132. 800ee94: 681b ldr r3, [r3, #0]
  34133. 800ee96: f042 0208 orr.w r2, r2, #8
  34134. 800ee9a: 619a str r2, [r3, #24]
  34135. }
  34136. 800ee9c: bf00 nop
  34137. 800ee9e: 37b0 adds r7, #176 @ 0xb0
  34138. 800eea0: 46bd mov sp, r7
  34139. 800eea2: bd80 pop {r7, pc}
  34140. 800eea4: effffffe .word 0xeffffffe
  34141. 800eea8: 58000c00 .word 0x58000c00
  34142. 800eeac: 0800e7e1 .word 0x0800e7e1
  34143. 0800eeb0 <UART_RxISR_16BIT_FIFOEN>:
  34144. * interruptions have been enabled by HAL_UART_Receive_IT()
  34145. * @param huart UART handle.
  34146. * @retval None
  34147. */
  34148. static void UART_RxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart)
  34149. {
  34150. 800eeb0: b580 push {r7, lr}
  34151. 800eeb2: b0ae sub sp, #184 @ 0xb8
  34152. 800eeb4: af00 add r7, sp, #0
  34153. 800eeb6: 6078 str r0, [r7, #4]
  34154. uint16_t *tmp;
  34155. uint16_t uhMask = huart->Mask;
  34156. 800eeb8: 687b ldr r3, [r7, #4]
  34157. 800eeba: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  34158. 800eebe: f8a7 30b2 strh.w r3, [r7, #178] @ 0xb2
  34159. uint16_t uhdata;
  34160. uint16_t nb_rx_data;
  34161. uint16_t rxdatacount;
  34162. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  34163. 800eec2: 687b ldr r3, [r7, #4]
  34164. 800eec4: 681b ldr r3, [r3, #0]
  34165. 800eec6: 69db ldr r3, [r3, #28]
  34166. 800eec8: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  34167. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  34168. 800eecc: 687b ldr r3, [r7, #4]
  34169. 800eece: 681b ldr r3, [r3, #0]
  34170. 800eed0: 681b ldr r3, [r3, #0]
  34171. 800eed2: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  34172. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  34173. 800eed6: 687b ldr r3, [r7, #4]
  34174. 800eed8: 681b ldr r3, [r3, #0]
  34175. 800eeda: 689b ldr r3, [r3, #8]
  34176. 800eedc: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  34177. /* Check that a Rx process is ongoing */
  34178. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  34179. 800eee0: 687b ldr r3, [r7, #4]
  34180. 800eee2: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  34181. 800eee6: 2b22 cmp r3, #34 @ 0x22
  34182. 800eee8: f040 8184 bne.w 800f1f4 <UART_RxISR_16BIT_FIFOEN+0x344>
  34183. {
  34184. nb_rx_data = huart->NbRxDataToProcess;
  34185. 800eeec: 687b ldr r3, [r7, #4]
  34186. 800eeee: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  34187. 800eef2: f8a7 30a6 strh.w r3, [r7, #166] @ 0xa6
  34188. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  34189. 800eef6: e127 b.n 800f148 <UART_RxISR_16BIT_FIFOEN+0x298>
  34190. {
  34191. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  34192. 800eef8: 687b ldr r3, [r7, #4]
  34193. 800eefa: 681b ldr r3, [r3, #0]
  34194. 800eefc: 6a5b ldr r3, [r3, #36] @ 0x24
  34195. 800eefe: f8a7 30a4 strh.w r3, [r7, #164] @ 0xa4
  34196. tmp = (uint16_t *) huart->pRxBuffPtr ;
  34197. 800ef02: 687b ldr r3, [r7, #4]
  34198. 800ef04: 6d9b ldr r3, [r3, #88] @ 0x58
  34199. 800ef06: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  34200. *tmp = (uint16_t)(uhdata & uhMask);
  34201. 800ef0a: f8b7 20a4 ldrh.w r2, [r7, #164] @ 0xa4
  34202. 800ef0e: f8b7 30b2 ldrh.w r3, [r7, #178] @ 0xb2
  34203. 800ef12: 4013 ands r3, r2
  34204. 800ef14: b29a uxth r2, r3
  34205. 800ef16: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  34206. 800ef1a: 801a strh r2, [r3, #0]
  34207. huart->pRxBuffPtr += 2U;
  34208. 800ef1c: 687b ldr r3, [r7, #4]
  34209. 800ef1e: 6d9b ldr r3, [r3, #88] @ 0x58
  34210. 800ef20: 1c9a adds r2, r3, #2
  34211. 800ef22: 687b ldr r3, [r7, #4]
  34212. 800ef24: 659a str r2, [r3, #88] @ 0x58
  34213. huart->RxXferCount--;
  34214. 800ef26: 687b ldr r3, [r7, #4]
  34215. 800ef28: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  34216. 800ef2c: b29b uxth r3, r3
  34217. 800ef2e: 3b01 subs r3, #1
  34218. 800ef30: b29a uxth r2, r3
  34219. 800ef32: 687b ldr r3, [r7, #4]
  34220. 800ef34: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  34221. isrflags = READ_REG(huart->Instance->ISR);
  34222. 800ef38: 687b ldr r3, [r7, #4]
  34223. 800ef3a: 681b ldr r3, [r3, #0]
  34224. 800ef3c: 69db ldr r3, [r3, #28]
  34225. 800ef3e: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  34226. /* If some non blocking errors occurred */
  34227. if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U)
  34228. 800ef42: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  34229. 800ef46: f003 0307 and.w r3, r3, #7
  34230. 800ef4a: 2b00 cmp r3, #0
  34231. 800ef4c: d053 beq.n 800eff6 <UART_RxISR_16BIT_FIFOEN+0x146>
  34232. {
  34233. /* UART parity error interrupt occurred -------------------------------------*/
  34234. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  34235. 800ef4e: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  34236. 800ef52: f003 0301 and.w r3, r3, #1
  34237. 800ef56: 2b00 cmp r3, #0
  34238. 800ef58: d011 beq.n 800ef7e <UART_RxISR_16BIT_FIFOEN+0xce>
  34239. 800ef5a: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  34240. 800ef5e: f403 7380 and.w r3, r3, #256 @ 0x100
  34241. 800ef62: 2b00 cmp r3, #0
  34242. 800ef64: d00b beq.n 800ef7e <UART_RxISR_16BIT_FIFOEN+0xce>
  34243. {
  34244. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  34245. 800ef66: 687b ldr r3, [r7, #4]
  34246. 800ef68: 681b ldr r3, [r3, #0]
  34247. 800ef6a: 2201 movs r2, #1
  34248. 800ef6c: 621a str r2, [r3, #32]
  34249. huart->ErrorCode |= HAL_UART_ERROR_PE;
  34250. 800ef6e: 687b ldr r3, [r7, #4]
  34251. 800ef70: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  34252. 800ef74: f043 0201 orr.w r2, r3, #1
  34253. 800ef78: 687b ldr r3, [r7, #4]
  34254. 800ef7a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  34255. }
  34256. /* UART frame error interrupt occurred --------------------------------------*/
  34257. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  34258. 800ef7e: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  34259. 800ef82: f003 0302 and.w r3, r3, #2
  34260. 800ef86: 2b00 cmp r3, #0
  34261. 800ef88: d011 beq.n 800efae <UART_RxISR_16BIT_FIFOEN+0xfe>
  34262. 800ef8a: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8
  34263. 800ef8e: f003 0301 and.w r3, r3, #1
  34264. 800ef92: 2b00 cmp r3, #0
  34265. 800ef94: d00b beq.n 800efae <UART_RxISR_16BIT_FIFOEN+0xfe>
  34266. {
  34267. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  34268. 800ef96: 687b ldr r3, [r7, #4]
  34269. 800ef98: 681b ldr r3, [r3, #0]
  34270. 800ef9a: 2202 movs r2, #2
  34271. 800ef9c: 621a str r2, [r3, #32]
  34272. huart->ErrorCode |= HAL_UART_ERROR_FE;
  34273. 800ef9e: 687b ldr r3, [r7, #4]
  34274. 800efa0: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  34275. 800efa4: f043 0204 orr.w r2, r3, #4
  34276. 800efa8: 687b ldr r3, [r7, #4]
  34277. 800efaa: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  34278. }
  34279. /* UART noise error interrupt occurred --------------------------------------*/
  34280. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  34281. 800efae: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  34282. 800efb2: f003 0304 and.w r3, r3, #4
  34283. 800efb6: 2b00 cmp r3, #0
  34284. 800efb8: d011 beq.n 800efde <UART_RxISR_16BIT_FIFOEN+0x12e>
  34285. 800efba: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8
  34286. 800efbe: f003 0301 and.w r3, r3, #1
  34287. 800efc2: 2b00 cmp r3, #0
  34288. 800efc4: d00b beq.n 800efde <UART_RxISR_16BIT_FIFOEN+0x12e>
  34289. {
  34290. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  34291. 800efc6: 687b ldr r3, [r7, #4]
  34292. 800efc8: 681b ldr r3, [r3, #0]
  34293. 800efca: 2204 movs r2, #4
  34294. 800efcc: 621a str r2, [r3, #32]
  34295. huart->ErrorCode |= HAL_UART_ERROR_NE;
  34296. 800efce: 687b ldr r3, [r7, #4]
  34297. 800efd0: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  34298. 800efd4: f043 0202 orr.w r2, r3, #2
  34299. 800efd8: 687b ldr r3, [r7, #4]
  34300. 800efda: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  34301. }
  34302. /* Call UART Error Call back function if need be ----------------------------*/
  34303. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  34304. 800efde: 687b ldr r3, [r7, #4]
  34305. 800efe0: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  34306. 800efe4: 2b00 cmp r3, #0
  34307. 800efe6: d006 beq.n 800eff6 <UART_RxISR_16BIT_FIFOEN+0x146>
  34308. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  34309. /*Call registered error callback*/
  34310. huart->ErrorCallback(huart);
  34311. #else
  34312. /*Call legacy weak error callback*/
  34313. HAL_UART_ErrorCallback(huart);
  34314. 800efe8: 6878 ldr r0, [r7, #4]
  34315. 800efea: f7fe f961 bl 800d2b0 <HAL_UART_ErrorCallback>
  34316. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  34317. huart->ErrorCode = HAL_UART_ERROR_NONE;
  34318. 800efee: 687b ldr r3, [r7, #4]
  34319. 800eff0: 2200 movs r2, #0
  34320. 800eff2: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  34321. }
  34322. }
  34323. if (huart->RxXferCount == 0U)
  34324. 800eff6: 687b ldr r3, [r7, #4]
  34325. 800eff8: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  34326. 800effc: b29b uxth r3, r3
  34327. 800effe: 2b00 cmp r3, #0
  34328. 800f000: f040 80a2 bne.w 800f148 <UART_RxISR_16BIT_FIFOEN+0x298>
  34329. {
  34330. /* Disable the UART Parity Error Interrupt and RXFT interrupt*/
  34331. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  34332. 800f004: 687b ldr r3, [r7, #4]
  34333. 800f006: 681b ldr r3, [r3, #0]
  34334. 800f008: 677b str r3, [r7, #116] @ 0x74
  34335. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34336. 800f00a: 6f7b ldr r3, [r7, #116] @ 0x74
  34337. 800f00c: e853 3f00 ldrex r3, [r3]
  34338. 800f010: 673b str r3, [r7, #112] @ 0x70
  34339. return(result);
  34340. 800f012: 6f3b ldr r3, [r7, #112] @ 0x70
  34341. 800f014: f423 7380 bic.w r3, r3, #256 @ 0x100
  34342. 800f018: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  34343. 800f01c: 687b ldr r3, [r7, #4]
  34344. 800f01e: 681b ldr r3, [r3, #0]
  34345. 800f020: 461a mov r2, r3
  34346. 800f022: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c
  34347. 800f026: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  34348. 800f02a: 67fa str r2, [r7, #124] @ 0x7c
  34349. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34350. 800f02c: 6ff9 ldr r1, [r7, #124] @ 0x7c
  34351. 800f02e: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80
  34352. 800f032: e841 2300 strex r3, r2, [r1]
  34353. 800f036: 67bb str r3, [r7, #120] @ 0x78
  34354. return(result);
  34355. 800f038: 6fbb ldr r3, [r7, #120] @ 0x78
  34356. 800f03a: 2b00 cmp r3, #0
  34357. 800f03c: d1e2 bne.n 800f004 <UART_RxISR_16BIT_FIFOEN+0x154>
  34358. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error)
  34359. and RX FIFO Threshold interrupt */
  34360. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  34361. 800f03e: 687b ldr r3, [r7, #4]
  34362. 800f040: 681b ldr r3, [r3, #0]
  34363. 800f042: 3308 adds r3, #8
  34364. 800f044: 663b str r3, [r7, #96] @ 0x60
  34365. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34366. 800f046: 6e3b ldr r3, [r7, #96] @ 0x60
  34367. 800f048: e853 3f00 ldrex r3, [r3]
  34368. 800f04c: 65fb str r3, [r7, #92] @ 0x5c
  34369. return(result);
  34370. 800f04e: 6dfa ldr r2, [r7, #92] @ 0x5c
  34371. 800f050: 4b6e ldr r3, [pc, #440] @ (800f20c <UART_RxISR_16BIT_FIFOEN+0x35c>)
  34372. 800f052: 4013 ands r3, r2
  34373. 800f054: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  34374. 800f058: 687b ldr r3, [r7, #4]
  34375. 800f05a: 681b ldr r3, [r3, #0]
  34376. 800f05c: 3308 adds r3, #8
  34377. 800f05e: f8d7 2098 ldr.w r2, [r7, #152] @ 0x98
  34378. 800f062: 66fa str r2, [r7, #108] @ 0x6c
  34379. 800f064: 66bb str r3, [r7, #104] @ 0x68
  34380. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34381. 800f066: 6eb9 ldr r1, [r7, #104] @ 0x68
  34382. 800f068: 6efa ldr r2, [r7, #108] @ 0x6c
  34383. 800f06a: e841 2300 strex r3, r2, [r1]
  34384. 800f06e: 667b str r3, [r7, #100] @ 0x64
  34385. return(result);
  34386. 800f070: 6e7b ldr r3, [r7, #100] @ 0x64
  34387. 800f072: 2b00 cmp r3, #0
  34388. 800f074: d1e3 bne.n 800f03e <UART_RxISR_16BIT_FIFOEN+0x18e>
  34389. /* Rx process is completed, restore huart->RxState to Ready */
  34390. huart->RxState = HAL_UART_STATE_READY;
  34391. 800f076: 687b ldr r3, [r7, #4]
  34392. 800f078: 2220 movs r2, #32
  34393. 800f07a: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  34394. /* Clear RxISR function pointer */
  34395. huart->RxISR = NULL;
  34396. 800f07e: 687b ldr r3, [r7, #4]
  34397. 800f080: 2200 movs r2, #0
  34398. 800f082: 675a str r2, [r3, #116] @ 0x74
  34399. /* Initialize type of RxEvent to Transfer Complete */
  34400. huart->RxEventType = HAL_UART_RXEVENT_TC;
  34401. 800f084: 687b ldr r3, [r7, #4]
  34402. 800f086: 2200 movs r2, #0
  34403. 800f088: 671a str r2, [r3, #112] @ 0x70
  34404. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  34405. 800f08a: 687b ldr r3, [r7, #4]
  34406. 800f08c: 681b ldr r3, [r3, #0]
  34407. 800f08e: 4a60 ldr r2, [pc, #384] @ (800f210 <UART_RxISR_16BIT_FIFOEN+0x360>)
  34408. 800f090: 4293 cmp r3, r2
  34409. 800f092: d021 beq.n 800f0d8 <UART_RxISR_16BIT_FIFOEN+0x228>
  34410. {
  34411. /* Check that USART RTOEN bit is set */
  34412. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  34413. 800f094: 687b ldr r3, [r7, #4]
  34414. 800f096: 681b ldr r3, [r3, #0]
  34415. 800f098: 685b ldr r3, [r3, #4]
  34416. 800f09a: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  34417. 800f09e: 2b00 cmp r3, #0
  34418. 800f0a0: d01a beq.n 800f0d8 <UART_RxISR_16BIT_FIFOEN+0x228>
  34419. {
  34420. /* Enable the UART Receiver Timeout Interrupt */
  34421. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  34422. 800f0a2: 687b ldr r3, [r7, #4]
  34423. 800f0a4: 681b ldr r3, [r3, #0]
  34424. 800f0a6: 64fb str r3, [r7, #76] @ 0x4c
  34425. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34426. 800f0a8: 6cfb ldr r3, [r7, #76] @ 0x4c
  34427. 800f0aa: e853 3f00 ldrex r3, [r3]
  34428. 800f0ae: 64bb str r3, [r7, #72] @ 0x48
  34429. return(result);
  34430. 800f0b0: 6cbb ldr r3, [r7, #72] @ 0x48
  34431. 800f0b2: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  34432. 800f0b6: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  34433. 800f0ba: 687b ldr r3, [r7, #4]
  34434. 800f0bc: 681b ldr r3, [r3, #0]
  34435. 800f0be: 461a mov r2, r3
  34436. 800f0c0: f8d7 3094 ldr.w r3, [r7, #148] @ 0x94
  34437. 800f0c4: 65bb str r3, [r7, #88] @ 0x58
  34438. 800f0c6: 657a str r2, [r7, #84] @ 0x54
  34439. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34440. 800f0c8: 6d79 ldr r1, [r7, #84] @ 0x54
  34441. 800f0ca: 6dba ldr r2, [r7, #88] @ 0x58
  34442. 800f0cc: e841 2300 strex r3, r2, [r1]
  34443. 800f0d0: 653b str r3, [r7, #80] @ 0x50
  34444. return(result);
  34445. 800f0d2: 6d3b ldr r3, [r7, #80] @ 0x50
  34446. 800f0d4: 2b00 cmp r3, #0
  34447. 800f0d6: d1e4 bne.n 800f0a2 <UART_RxISR_16BIT_FIFOEN+0x1f2>
  34448. }
  34449. }
  34450. /* Check current reception Mode :
  34451. If Reception till IDLE event has been selected : */
  34452. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  34453. 800f0d8: 687b ldr r3, [r7, #4]
  34454. 800f0da: 6edb ldr r3, [r3, #108] @ 0x6c
  34455. 800f0dc: 2b01 cmp r3, #1
  34456. 800f0de: d130 bne.n 800f142 <UART_RxISR_16BIT_FIFOEN+0x292>
  34457. {
  34458. /* Set reception type to Standard */
  34459. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  34460. 800f0e0: 687b ldr r3, [r7, #4]
  34461. 800f0e2: 2200 movs r2, #0
  34462. 800f0e4: 66da str r2, [r3, #108] @ 0x6c
  34463. /* Disable IDLE interrupt */
  34464. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  34465. 800f0e6: 687b ldr r3, [r7, #4]
  34466. 800f0e8: 681b ldr r3, [r3, #0]
  34467. 800f0ea: 63bb str r3, [r7, #56] @ 0x38
  34468. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34469. 800f0ec: 6bbb ldr r3, [r7, #56] @ 0x38
  34470. 800f0ee: e853 3f00 ldrex r3, [r3]
  34471. 800f0f2: 637b str r3, [r7, #52] @ 0x34
  34472. return(result);
  34473. 800f0f4: 6b7b ldr r3, [r7, #52] @ 0x34
  34474. 800f0f6: f023 0310 bic.w r3, r3, #16
  34475. 800f0fa: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  34476. 800f0fe: 687b ldr r3, [r7, #4]
  34477. 800f100: 681b ldr r3, [r3, #0]
  34478. 800f102: 461a mov r2, r3
  34479. 800f104: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  34480. 800f108: 647b str r3, [r7, #68] @ 0x44
  34481. 800f10a: 643a str r2, [r7, #64] @ 0x40
  34482. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34483. 800f10c: 6c39 ldr r1, [r7, #64] @ 0x40
  34484. 800f10e: 6c7a ldr r2, [r7, #68] @ 0x44
  34485. 800f110: e841 2300 strex r3, r2, [r1]
  34486. 800f114: 63fb str r3, [r7, #60] @ 0x3c
  34487. return(result);
  34488. 800f116: 6bfb ldr r3, [r7, #60] @ 0x3c
  34489. 800f118: 2b00 cmp r3, #0
  34490. 800f11a: d1e4 bne.n 800f0e6 <UART_RxISR_16BIT_FIFOEN+0x236>
  34491. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  34492. 800f11c: 687b ldr r3, [r7, #4]
  34493. 800f11e: 681b ldr r3, [r3, #0]
  34494. 800f120: 69db ldr r3, [r3, #28]
  34495. 800f122: f003 0310 and.w r3, r3, #16
  34496. 800f126: 2b10 cmp r3, #16
  34497. 800f128: d103 bne.n 800f132 <UART_RxISR_16BIT_FIFOEN+0x282>
  34498. {
  34499. /* Clear IDLE Flag */
  34500. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  34501. 800f12a: 687b ldr r3, [r7, #4]
  34502. 800f12c: 681b ldr r3, [r3, #0]
  34503. 800f12e: 2210 movs r2, #16
  34504. 800f130: 621a str r2, [r3, #32]
  34505. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  34506. /*Call registered Rx Event callback*/
  34507. huart->RxEventCallback(huart, huart->RxXferSize);
  34508. #else
  34509. /*Call legacy weak Rx Event callback*/
  34510. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  34511. 800f132: 687b ldr r3, [r7, #4]
  34512. 800f134: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  34513. 800f138: 4619 mov r1, r3
  34514. 800f13a: 6878 ldr r0, [r7, #4]
  34515. 800f13c: f7f4 fec8 bl 8003ed0 <HAL_UARTEx_RxEventCallback>
  34516. 800f140: e002 b.n 800f148 <UART_RxISR_16BIT_FIFOEN+0x298>
  34517. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  34518. /*Call registered Rx complete callback*/
  34519. huart->RxCpltCallback(huart);
  34520. #else
  34521. /*Call legacy weak Rx complete callback*/
  34522. HAL_UART_RxCpltCallback(huart);
  34523. 800f142: 6878 ldr r0, [r7, #4]
  34524. 800f144: f7f4 feba bl 8003ebc <HAL_UART_RxCpltCallback>
  34525. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  34526. 800f148: f8b7 30a6 ldrh.w r3, [r7, #166] @ 0xa6
  34527. 800f14c: 2b00 cmp r3, #0
  34528. 800f14e: d006 beq.n 800f15e <UART_RxISR_16BIT_FIFOEN+0x2ae>
  34529. 800f150: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  34530. 800f154: f003 0320 and.w r3, r3, #32
  34531. 800f158: 2b00 cmp r3, #0
  34532. 800f15a: f47f aecd bne.w 800eef8 <UART_RxISR_16BIT_FIFOEN+0x48>
  34533. /* When remaining number of bytes to receive is less than the RX FIFO
  34534. threshold, next incoming frames are processed as if FIFO mode was
  34535. disabled (i.e. one interrupt per received frame).
  34536. */
  34537. rxdatacount = huart->RxXferCount;
  34538. 800f15e: 687b ldr r3, [r7, #4]
  34539. 800f160: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  34540. 800f164: f8a7 308e strh.w r3, [r7, #142] @ 0x8e
  34541. if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess))
  34542. 800f168: f8b7 308e ldrh.w r3, [r7, #142] @ 0x8e
  34543. 800f16c: 2b00 cmp r3, #0
  34544. 800f16e: d049 beq.n 800f204 <UART_RxISR_16BIT_FIFOEN+0x354>
  34545. 800f170: 687b ldr r3, [r7, #4]
  34546. 800f172: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  34547. 800f176: f8b7 208e ldrh.w r2, [r7, #142] @ 0x8e
  34548. 800f17a: 429a cmp r2, r3
  34549. 800f17c: d242 bcs.n 800f204 <UART_RxISR_16BIT_FIFOEN+0x354>
  34550. {
  34551. /* Disable the UART RXFT interrupt*/
  34552. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  34553. 800f17e: 687b ldr r3, [r7, #4]
  34554. 800f180: 681b ldr r3, [r3, #0]
  34555. 800f182: 3308 adds r3, #8
  34556. 800f184: 627b str r3, [r7, #36] @ 0x24
  34557. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34558. 800f186: 6a7b ldr r3, [r7, #36] @ 0x24
  34559. 800f188: e853 3f00 ldrex r3, [r3]
  34560. 800f18c: 623b str r3, [r7, #32]
  34561. return(result);
  34562. 800f18e: 6a3b ldr r3, [r7, #32]
  34563. 800f190: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  34564. 800f194: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  34565. 800f198: 687b ldr r3, [r7, #4]
  34566. 800f19a: 681b ldr r3, [r3, #0]
  34567. 800f19c: 3308 adds r3, #8
  34568. 800f19e: f8d7 2088 ldr.w r2, [r7, #136] @ 0x88
  34569. 800f1a2: 633a str r2, [r7, #48] @ 0x30
  34570. 800f1a4: 62fb str r3, [r7, #44] @ 0x2c
  34571. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34572. 800f1a6: 6af9 ldr r1, [r7, #44] @ 0x2c
  34573. 800f1a8: 6b3a ldr r2, [r7, #48] @ 0x30
  34574. 800f1aa: e841 2300 strex r3, r2, [r1]
  34575. 800f1ae: 62bb str r3, [r7, #40] @ 0x28
  34576. return(result);
  34577. 800f1b0: 6abb ldr r3, [r7, #40] @ 0x28
  34578. 800f1b2: 2b00 cmp r3, #0
  34579. 800f1b4: d1e3 bne.n 800f17e <UART_RxISR_16BIT_FIFOEN+0x2ce>
  34580. /* Update the RxISR function pointer */
  34581. huart->RxISR = UART_RxISR_16BIT;
  34582. 800f1b6: 687b ldr r3, [r7, #4]
  34583. 800f1b8: 4a16 ldr r2, [pc, #88] @ (800f214 <UART_RxISR_16BIT_FIFOEN+0x364>)
  34584. 800f1ba: 675a str r2, [r3, #116] @ 0x74
  34585. /* Enable the UART Data Register Not Empty interrupt */
  34586. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  34587. 800f1bc: 687b ldr r3, [r7, #4]
  34588. 800f1be: 681b ldr r3, [r3, #0]
  34589. 800f1c0: 613b str r3, [r7, #16]
  34590. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34591. 800f1c2: 693b ldr r3, [r7, #16]
  34592. 800f1c4: e853 3f00 ldrex r3, [r3]
  34593. 800f1c8: 60fb str r3, [r7, #12]
  34594. return(result);
  34595. 800f1ca: 68fb ldr r3, [r7, #12]
  34596. 800f1cc: f043 0320 orr.w r3, r3, #32
  34597. 800f1d0: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  34598. 800f1d4: 687b ldr r3, [r7, #4]
  34599. 800f1d6: 681b ldr r3, [r3, #0]
  34600. 800f1d8: 461a mov r2, r3
  34601. 800f1da: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  34602. 800f1de: 61fb str r3, [r7, #28]
  34603. 800f1e0: 61ba str r2, [r7, #24]
  34604. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34605. 800f1e2: 69b9 ldr r1, [r7, #24]
  34606. 800f1e4: 69fa ldr r2, [r7, #28]
  34607. 800f1e6: e841 2300 strex r3, r2, [r1]
  34608. 800f1ea: 617b str r3, [r7, #20]
  34609. return(result);
  34610. 800f1ec: 697b ldr r3, [r7, #20]
  34611. 800f1ee: 2b00 cmp r3, #0
  34612. 800f1f0: d1e4 bne.n 800f1bc <UART_RxISR_16BIT_FIFOEN+0x30c>
  34613. else
  34614. {
  34615. /* Clear RXNE interrupt flag */
  34616. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  34617. }
  34618. }
  34619. 800f1f2: e007 b.n 800f204 <UART_RxISR_16BIT_FIFOEN+0x354>
  34620. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  34621. 800f1f4: 687b ldr r3, [r7, #4]
  34622. 800f1f6: 681b ldr r3, [r3, #0]
  34623. 800f1f8: 699a ldr r2, [r3, #24]
  34624. 800f1fa: 687b ldr r3, [r7, #4]
  34625. 800f1fc: 681b ldr r3, [r3, #0]
  34626. 800f1fe: f042 0208 orr.w r2, r2, #8
  34627. 800f202: 619a str r2, [r3, #24]
  34628. }
  34629. 800f204: bf00 nop
  34630. 800f206: 37b8 adds r7, #184 @ 0xb8
  34631. 800f208: 46bd mov sp, r7
  34632. 800f20a: bd80 pop {r7, pc}
  34633. 800f20c: effffffe .word 0xeffffffe
  34634. 800f210: 58000c00 .word 0x58000c00
  34635. 800f214: 0800e999 .word 0x0800e999
  34636. 0800f218 <HAL_UARTEx_WakeupCallback>:
  34637. * @brief UART wakeup from Stop mode callback.
  34638. * @param huart UART handle.
  34639. * @retval None
  34640. */
  34641. __weak void HAL_UARTEx_WakeupCallback(UART_HandleTypeDef *huart)
  34642. {
  34643. 800f218: b480 push {r7}
  34644. 800f21a: b083 sub sp, #12
  34645. 800f21c: af00 add r7, sp, #0
  34646. 800f21e: 6078 str r0, [r7, #4]
  34647. UNUSED(huart);
  34648. /* NOTE : This function should not be modified, when the callback is needed,
  34649. the HAL_UARTEx_WakeupCallback can be implemented in the user file.
  34650. */
  34651. }
  34652. 800f220: bf00 nop
  34653. 800f222: 370c adds r7, #12
  34654. 800f224: 46bd mov sp, r7
  34655. 800f226: f85d 7b04 ldr.w r7, [sp], #4
  34656. 800f22a: 4770 bx lr
  34657. 0800f22c <HAL_UARTEx_RxFifoFullCallback>:
  34658. * @brief UART RX Fifo full callback.
  34659. * @param huart UART handle.
  34660. * @retval None
  34661. */
  34662. __weak void HAL_UARTEx_RxFifoFullCallback(UART_HandleTypeDef *huart)
  34663. {
  34664. 800f22c: b480 push {r7}
  34665. 800f22e: b083 sub sp, #12
  34666. 800f230: af00 add r7, sp, #0
  34667. 800f232: 6078 str r0, [r7, #4]
  34668. UNUSED(huart);
  34669. /* NOTE : This function should not be modified, when the callback is needed,
  34670. the HAL_UARTEx_RxFifoFullCallback can be implemented in the user file.
  34671. */
  34672. }
  34673. 800f234: bf00 nop
  34674. 800f236: 370c adds r7, #12
  34675. 800f238: 46bd mov sp, r7
  34676. 800f23a: f85d 7b04 ldr.w r7, [sp], #4
  34677. 800f23e: 4770 bx lr
  34678. 0800f240 <HAL_UARTEx_TxFifoEmptyCallback>:
  34679. * @brief UART TX Fifo empty callback.
  34680. * @param huart UART handle.
  34681. * @retval None
  34682. */
  34683. __weak void HAL_UARTEx_TxFifoEmptyCallback(UART_HandleTypeDef *huart)
  34684. {
  34685. 800f240: b480 push {r7}
  34686. 800f242: b083 sub sp, #12
  34687. 800f244: af00 add r7, sp, #0
  34688. 800f246: 6078 str r0, [r7, #4]
  34689. UNUSED(huart);
  34690. /* NOTE : This function should not be modified, when the callback is needed,
  34691. the HAL_UARTEx_TxFifoEmptyCallback can be implemented in the user file.
  34692. */
  34693. }
  34694. 800f248: bf00 nop
  34695. 800f24a: 370c adds r7, #12
  34696. 800f24c: 46bd mov sp, r7
  34697. 800f24e: f85d 7b04 ldr.w r7, [sp], #4
  34698. 800f252: 4770 bx lr
  34699. 0800f254 <HAL_UARTEx_DisableFifoMode>:
  34700. * @brief Disable the FIFO mode.
  34701. * @param huart UART handle.
  34702. * @retval HAL status
  34703. */
  34704. HAL_StatusTypeDef HAL_UARTEx_DisableFifoMode(UART_HandleTypeDef *huart)
  34705. {
  34706. 800f254: b480 push {r7}
  34707. 800f256: b085 sub sp, #20
  34708. 800f258: af00 add r7, sp, #0
  34709. 800f25a: 6078 str r0, [r7, #4]
  34710. /* Check parameters */
  34711. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  34712. /* Process Locked */
  34713. __HAL_LOCK(huart);
  34714. 800f25c: 687b ldr r3, [r7, #4]
  34715. 800f25e: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  34716. 800f262: 2b01 cmp r3, #1
  34717. 800f264: d101 bne.n 800f26a <HAL_UARTEx_DisableFifoMode+0x16>
  34718. 800f266: 2302 movs r3, #2
  34719. 800f268: e027 b.n 800f2ba <HAL_UARTEx_DisableFifoMode+0x66>
  34720. 800f26a: 687b ldr r3, [r7, #4]
  34721. 800f26c: 2201 movs r2, #1
  34722. 800f26e: f883 2084 strb.w r2, [r3, #132] @ 0x84
  34723. huart->gState = HAL_UART_STATE_BUSY;
  34724. 800f272: 687b ldr r3, [r7, #4]
  34725. 800f274: 2224 movs r2, #36 @ 0x24
  34726. 800f276: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  34727. /* Save actual UART configuration */
  34728. tmpcr1 = READ_REG(huart->Instance->CR1);
  34729. 800f27a: 687b ldr r3, [r7, #4]
  34730. 800f27c: 681b ldr r3, [r3, #0]
  34731. 800f27e: 681b ldr r3, [r3, #0]
  34732. 800f280: 60fb str r3, [r7, #12]
  34733. /* Disable UART */
  34734. __HAL_UART_DISABLE(huart);
  34735. 800f282: 687b ldr r3, [r7, #4]
  34736. 800f284: 681b ldr r3, [r3, #0]
  34737. 800f286: 681a ldr r2, [r3, #0]
  34738. 800f288: 687b ldr r3, [r7, #4]
  34739. 800f28a: 681b ldr r3, [r3, #0]
  34740. 800f28c: f022 0201 bic.w r2, r2, #1
  34741. 800f290: 601a str r2, [r3, #0]
  34742. /* Enable FIFO mode */
  34743. CLEAR_BIT(tmpcr1, USART_CR1_FIFOEN);
  34744. 800f292: 68fb ldr r3, [r7, #12]
  34745. 800f294: f023 5300 bic.w r3, r3, #536870912 @ 0x20000000
  34746. 800f298: 60fb str r3, [r7, #12]
  34747. huart->FifoMode = UART_FIFOMODE_DISABLE;
  34748. 800f29a: 687b ldr r3, [r7, #4]
  34749. 800f29c: 2200 movs r2, #0
  34750. 800f29e: 665a str r2, [r3, #100] @ 0x64
  34751. /* Restore UART configuration */
  34752. WRITE_REG(huart->Instance->CR1, tmpcr1);
  34753. 800f2a0: 687b ldr r3, [r7, #4]
  34754. 800f2a2: 681b ldr r3, [r3, #0]
  34755. 800f2a4: 68fa ldr r2, [r7, #12]
  34756. 800f2a6: 601a str r2, [r3, #0]
  34757. huart->gState = HAL_UART_STATE_READY;
  34758. 800f2a8: 687b ldr r3, [r7, #4]
  34759. 800f2aa: 2220 movs r2, #32
  34760. 800f2ac: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  34761. /* Process Unlocked */
  34762. __HAL_UNLOCK(huart);
  34763. 800f2b0: 687b ldr r3, [r7, #4]
  34764. 800f2b2: 2200 movs r2, #0
  34765. 800f2b4: f883 2084 strb.w r2, [r3, #132] @ 0x84
  34766. return HAL_OK;
  34767. 800f2b8: 2300 movs r3, #0
  34768. }
  34769. 800f2ba: 4618 mov r0, r3
  34770. 800f2bc: 3714 adds r7, #20
  34771. 800f2be: 46bd mov sp, r7
  34772. 800f2c0: f85d 7b04 ldr.w r7, [sp], #4
  34773. 800f2c4: 4770 bx lr
  34774. 0800f2c6 <HAL_UARTEx_SetTxFifoThreshold>:
  34775. * @arg @ref UART_TXFIFO_THRESHOLD_7_8
  34776. * @arg @ref UART_TXFIFO_THRESHOLD_8_8
  34777. * @retval HAL status
  34778. */
  34779. HAL_StatusTypeDef HAL_UARTEx_SetTxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
  34780. {
  34781. 800f2c6: b580 push {r7, lr}
  34782. 800f2c8: b084 sub sp, #16
  34783. 800f2ca: af00 add r7, sp, #0
  34784. 800f2cc: 6078 str r0, [r7, #4]
  34785. 800f2ce: 6039 str r1, [r7, #0]
  34786. /* Check parameters */
  34787. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  34788. assert_param(IS_UART_TXFIFO_THRESHOLD(Threshold));
  34789. /* Process Locked */
  34790. __HAL_LOCK(huart);
  34791. 800f2d0: 687b ldr r3, [r7, #4]
  34792. 800f2d2: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  34793. 800f2d6: 2b01 cmp r3, #1
  34794. 800f2d8: d101 bne.n 800f2de <HAL_UARTEx_SetTxFifoThreshold+0x18>
  34795. 800f2da: 2302 movs r3, #2
  34796. 800f2dc: e02d b.n 800f33a <HAL_UARTEx_SetTxFifoThreshold+0x74>
  34797. 800f2de: 687b ldr r3, [r7, #4]
  34798. 800f2e0: 2201 movs r2, #1
  34799. 800f2e2: f883 2084 strb.w r2, [r3, #132] @ 0x84
  34800. huart->gState = HAL_UART_STATE_BUSY;
  34801. 800f2e6: 687b ldr r3, [r7, #4]
  34802. 800f2e8: 2224 movs r2, #36 @ 0x24
  34803. 800f2ea: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  34804. /* Save actual UART configuration */
  34805. tmpcr1 = READ_REG(huart->Instance->CR1);
  34806. 800f2ee: 687b ldr r3, [r7, #4]
  34807. 800f2f0: 681b ldr r3, [r3, #0]
  34808. 800f2f2: 681b ldr r3, [r3, #0]
  34809. 800f2f4: 60fb str r3, [r7, #12]
  34810. /* Disable UART */
  34811. __HAL_UART_DISABLE(huart);
  34812. 800f2f6: 687b ldr r3, [r7, #4]
  34813. 800f2f8: 681b ldr r3, [r3, #0]
  34814. 800f2fa: 681a ldr r2, [r3, #0]
  34815. 800f2fc: 687b ldr r3, [r7, #4]
  34816. 800f2fe: 681b ldr r3, [r3, #0]
  34817. 800f300: f022 0201 bic.w r2, r2, #1
  34818. 800f304: 601a str r2, [r3, #0]
  34819. /* Update TX threshold configuration */
  34820. MODIFY_REG(huart->Instance->CR3, USART_CR3_TXFTCFG, Threshold);
  34821. 800f306: 687b ldr r3, [r7, #4]
  34822. 800f308: 681b ldr r3, [r3, #0]
  34823. 800f30a: 689b ldr r3, [r3, #8]
  34824. 800f30c: f023 4160 bic.w r1, r3, #3758096384 @ 0xe0000000
  34825. 800f310: 687b ldr r3, [r7, #4]
  34826. 800f312: 681b ldr r3, [r3, #0]
  34827. 800f314: 683a ldr r2, [r7, #0]
  34828. 800f316: 430a orrs r2, r1
  34829. 800f318: 609a str r2, [r3, #8]
  34830. /* Determine the number of data to process during RX/TX ISR execution */
  34831. UARTEx_SetNbDataToProcess(huart);
  34832. 800f31a: 6878 ldr r0, [r7, #4]
  34833. 800f31c: f000 f8a0 bl 800f460 <UARTEx_SetNbDataToProcess>
  34834. /* Restore UART configuration */
  34835. WRITE_REG(huart->Instance->CR1, tmpcr1);
  34836. 800f320: 687b ldr r3, [r7, #4]
  34837. 800f322: 681b ldr r3, [r3, #0]
  34838. 800f324: 68fa ldr r2, [r7, #12]
  34839. 800f326: 601a str r2, [r3, #0]
  34840. huart->gState = HAL_UART_STATE_READY;
  34841. 800f328: 687b ldr r3, [r7, #4]
  34842. 800f32a: 2220 movs r2, #32
  34843. 800f32c: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  34844. /* Process Unlocked */
  34845. __HAL_UNLOCK(huart);
  34846. 800f330: 687b ldr r3, [r7, #4]
  34847. 800f332: 2200 movs r2, #0
  34848. 800f334: f883 2084 strb.w r2, [r3, #132] @ 0x84
  34849. return HAL_OK;
  34850. 800f338: 2300 movs r3, #0
  34851. }
  34852. 800f33a: 4618 mov r0, r3
  34853. 800f33c: 3710 adds r7, #16
  34854. 800f33e: 46bd mov sp, r7
  34855. 800f340: bd80 pop {r7, pc}
  34856. 0800f342 <HAL_UARTEx_SetRxFifoThreshold>:
  34857. * @arg @ref UART_RXFIFO_THRESHOLD_7_8
  34858. * @arg @ref UART_RXFIFO_THRESHOLD_8_8
  34859. * @retval HAL status
  34860. */
  34861. HAL_StatusTypeDef HAL_UARTEx_SetRxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
  34862. {
  34863. 800f342: b580 push {r7, lr}
  34864. 800f344: b084 sub sp, #16
  34865. 800f346: af00 add r7, sp, #0
  34866. 800f348: 6078 str r0, [r7, #4]
  34867. 800f34a: 6039 str r1, [r7, #0]
  34868. /* Check the parameters */
  34869. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  34870. assert_param(IS_UART_RXFIFO_THRESHOLD(Threshold));
  34871. /* Process Locked */
  34872. __HAL_LOCK(huart);
  34873. 800f34c: 687b ldr r3, [r7, #4]
  34874. 800f34e: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  34875. 800f352: 2b01 cmp r3, #1
  34876. 800f354: d101 bne.n 800f35a <HAL_UARTEx_SetRxFifoThreshold+0x18>
  34877. 800f356: 2302 movs r3, #2
  34878. 800f358: e02d b.n 800f3b6 <HAL_UARTEx_SetRxFifoThreshold+0x74>
  34879. 800f35a: 687b ldr r3, [r7, #4]
  34880. 800f35c: 2201 movs r2, #1
  34881. 800f35e: f883 2084 strb.w r2, [r3, #132] @ 0x84
  34882. huart->gState = HAL_UART_STATE_BUSY;
  34883. 800f362: 687b ldr r3, [r7, #4]
  34884. 800f364: 2224 movs r2, #36 @ 0x24
  34885. 800f366: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  34886. /* Save actual UART configuration */
  34887. tmpcr1 = READ_REG(huart->Instance->CR1);
  34888. 800f36a: 687b ldr r3, [r7, #4]
  34889. 800f36c: 681b ldr r3, [r3, #0]
  34890. 800f36e: 681b ldr r3, [r3, #0]
  34891. 800f370: 60fb str r3, [r7, #12]
  34892. /* Disable UART */
  34893. __HAL_UART_DISABLE(huart);
  34894. 800f372: 687b ldr r3, [r7, #4]
  34895. 800f374: 681b ldr r3, [r3, #0]
  34896. 800f376: 681a ldr r2, [r3, #0]
  34897. 800f378: 687b ldr r3, [r7, #4]
  34898. 800f37a: 681b ldr r3, [r3, #0]
  34899. 800f37c: f022 0201 bic.w r2, r2, #1
  34900. 800f380: 601a str r2, [r3, #0]
  34901. /* Update RX threshold configuration */
  34902. MODIFY_REG(huart->Instance->CR3, USART_CR3_RXFTCFG, Threshold);
  34903. 800f382: 687b ldr r3, [r7, #4]
  34904. 800f384: 681b ldr r3, [r3, #0]
  34905. 800f386: 689b ldr r3, [r3, #8]
  34906. 800f388: f023 6160 bic.w r1, r3, #234881024 @ 0xe000000
  34907. 800f38c: 687b ldr r3, [r7, #4]
  34908. 800f38e: 681b ldr r3, [r3, #0]
  34909. 800f390: 683a ldr r2, [r7, #0]
  34910. 800f392: 430a orrs r2, r1
  34911. 800f394: 609a str r2, [r3, #8]
  34912. /* Determine the number of data to process during RX/TX ISR execution */
  34913. UARTEx_SetNbDataToProcess(huart);
  34914. 800f396: 6878 ldr r0, [r7, #4]
  34915. 800f398: f000 f862 bl 800f460 <UARTEx_SetNbDataToProcess>
  34916. /* Restore UART configuration */
  34917. WRITE_REG(huart->Instance->CR1, tmpcr1);
  34918. 800f39c: 687b ldr r3, [r7, #4]
  34919. 800f39e: 681b ldr r3, [r3, #0]
  34920. 800f3a0: 68fa ldr r2, [r7, #12]
  34921. 800f3a2: 601a str r2, [r3, #0]
  34922. huart->gState = HAL_UART_STATE_READY;
  34923. 800f3a4: 687b ldr r3, [r7, #4]
  34924. 800f3a6: 2220 movs r2, #32
  34925. 800f3a8: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  34926. /* Process Unlocked */
  34927. __HAL_UNLOCK(huart);
  34928. 800f3ac: 687b ldr r3, [r7, #4]
  34929. 800f3ae: 2200 movs r2, #0
  34930. 800f3b0: f883 2084 strb.w r2, [r3, #132] @ 0x84
  34931. return HAL_OK;
  34932. 800f3b4: 2300 movs r3, #0
  34933. }
  34934. 800f3b6: 4618 mov r0, r3
  34935. 800f3b8: 3710 adds r7, #16
  34936. 800f3ba: 46bd mov sp, r7
  34937. 800f3bc: bd80 pop {r7, pc}
  34938. 0800f3be <HAL_UARTEx_ReceiveToIdle_IT>:
  34939. * @param pData Pointer to data buffer (uint8_t or uint16_t data elements).
  34940. * @param Size Amount of data elements (uint8_t or uint16_t) to be received.
  34941. * @retval HAL status
  34942. */
  34943. HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  34944. {
  34945. 800f3be: b580 push {r7, lr}
  34946. 800f3c0: b08c sub sp, #48 @ 0x30
  34947. 800f3c2: af00 add r7, sp, #0
  34948. 800f3c4: 60f8 str r0, [r7, #12]
  34949. 800f3c6: 60b9 str r1, [r7, #8]
  34950. 800f3c8: 4613 mov r3, r2
  34951. 800f3ca: 80fb strh r3, [r7, #6]
  34952. HAL_StatusTypeDef status = HAL_OK;
  34953. 800f3cc: 2300 movs r3, #0
  34954. 800f3ce: f887 302f strb.w r3, [r7, #47] @ 0x2f
  34955. /* Check that a Rx process is not already ongoing */
  34956. if (huart->RxState == HAL_UART_STATE_READY)
  34957. 800f3d2: 68fb ldr r3, [r7, #12]
  34958. 800f3d4: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  34959. 800f3d8: 2b20 cmp r3, #32
  34960. 800f3da: d13b bne.n 800f454 <HAL_UARTEx_ReceiveToIdle_IT+0x96>
  34961. {
  34962. if ((pData == NULL) || (Size == 0U))
  34963. 800f3dc: 68bb ldr r3, [r7, #8]
  34964. 800f3de: 2b00 cmp r3, #0
  34965. 800f3e0: d002 beq.n 800f3e8 <HAL_UARTEx_ReceiveToIdle_IT+0x2a>
  34966. 800f3e2: 88fb ldrh r3, [r7, #6]
  34967. 800f3e4: 2b00 cmp r3, #0
  34968. 800f3e6: d101 bne.n 800f3ec <HAL_UARTEx_ReceiveToIdle_IT+0x2e>
  34969. {
  34970. return HAL_ERROR;
  34971. 800f3e8: 2301 movs r3, #1
  34972. 800f3ea: e034 b.n 800f456 <HAL_UARTEx_ReceiveToIdle_IT+0x98>
  34973. }
  34974. /* Set Reception type to reception till IDLE Event*/
  34975. huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE;
  34976. 800f3ec: 68fb ldr r3, [r7, #12]
  34977. 800f3ee: 2201 movs r2, #1
  34978. 800f3f0: 66da str r2, [r3, #108] @ 0x6c
  34979. huart->RxEventType = HAL_UART_RXEVENT_TC;
  34980. 800f3f2: 68fb ldr r3, [r7, #12]
  34981. 800f3f4: 2200 movs r2, #0
  34982. 800f3f6: 671a str r2, [r3, #112] @ 0x70
  34983. (void)UART_Start_Receive_IT(huart, pData, Size);
  34984. 800f3f8: 88fb ldrh r3, [r7, #6]
  34985. 800f3fa: 461a mov r2, r3
  34986. 800f3fc: 68b9 ldr r1, [r7, #8]
  34987. 800f3fe: 68f8 ldr r0, [r7, #12]
  34988. 800f400: f7fe fe82 bl 800e108 <UART_Start_Receive_IT>
  34989. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  34990. 800f404: 68fb ldr r3, [r7, #12]
  34991. 800f406: 6edb ldr r3, [r3, #108] @ 0x6c
  34992. 800f408: 2b01 cmp r3, #1
  34993. 800f40a: d11d bne.n 800f448 <HAL_UARTEx_ReceiveToIdle_IT+0x8a>
  34994. {
  34995. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  34996. 800f40c: 68fb ldr r3, [r7, #12]
  34997. 800f40e: 681b ldr r3, [r3, #0]
  34998. 800f410: 2210 movs r2, #16
  34999. 800f412: 621a str r2, [r3, #32]
  35000. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  35001. 800f414: 68fb ldr r3, [r7, #12]
  35002. 800f416: 681b ldr r3, [r3, #0]
  35003. 800f418: 61bb str r3, [r7, #24]
  35004. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35005. 800f41a: 69bb ldr r3, [r7, #24]
  35006. 800f41c: e853 3f00 ldrex r3, [r3]
  35007. 800f420: 617b str r3, [r7, #20]
  35008. return(result);
  35009. 800f422: 697b ldr r3, [r7, #20]
  35010. 800f424: f043 0310 orr.w r3, r3, #16
  35011. 800f428: 62bb str r3, [r7, #40] @ 0x28
  35012. 800f42a: 68fb ldr r3, [r7, #12]
  35013. 800f42c: 681b ldr r3, [r3, #0]
  35014. 800f42e: 461a mov r2, r3
  35015. 800f430: 6abb ldr r3, [r7, #40] @ 0x28
  35016. 800f432: 627b str r3, [r7, #36] @ 0x24
  35017. 800f434: 623a str r2, [r7, #32]
  35018. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35019. 800f436: 6a39 ldr r1, [r7, #32]
  35020. 800f438: 6a7a ldr r2, [r7, #36] @ 0x24
  35021. 800f43a: e841 2300 strex r3, r2, [r1]
  35022. 800f43e: 61fb str r3, [r7, #28]
  35023. return(result);
  35024. 800f440: 69fb ldr r3, [r7, #28]
  35025. 800f442: 2b00 cmp r3, #0
  35026. 800f444: d1e6 bne.n 800f414 <HAL_UARTEx_ReceiveToIdle_IT+0x56>
  35027. 800f446: e002 b.n 800f44e <HAL_UARTEx_ReceiveToIdle_IT+0x90>
  35028. {
  35029. /* In case of errors already pending when reception is started,
  35030. Interrupts may have already been raised and lead to reception abortion.
  35031. (Overrun error for instance).
  35032. In such case Reception Type has been reset to HAL_UART_RECEPTION_STANDARD. */
  35033. status = HAL_ERROR;
  35034. 800f448: 2301 movs r3, #1
  35035. 800f44a: f887 302f strb.w r3, [r7, #47] @ 0x2f
  35036. }
  35037. return status;
  35038. 800f44e: f897 302f ldrb.w r3, [r7, #47] @ 0x2f
  35039. 800f452: e000 b.n 800f456 <HAL_UARTEx_ReceiveToIdle_IT+0x98>
  35040. }
  35041. else
  35042. {
  35043. return HAL_BUSY;
  35044. 800f454: 2302 movs r3, #2
  35045. }
  35046. }
  35047. 800f456: 4618 mov r0, r3
  35048. 800f458: 3730 adds r7, #48 @ 0x30
  35049. 800f45a: 46bd mov sp, r7
  35050. 800f45c: bd80 pop {r7, pc}
  35051. ...
  35052. 0800f460 <UARTEx_SetNbDataToProcess>:
  35053. * the UART configuration registers.
  35054. * @param huart UART handle.
  35055. * @retval None
  35056. */
  35057. static void UARTEx_SetNbDataToProcess(UART_HandleTypeDef *huart)
  35058. {
  35059. 800f460: b480 push {r7}
  35060. 800f462: b085 sub sp, #20
  35061. 800f464: af00 add r7, sp, #0
  35062. 800f466: 6078 str r0, [r7, #4]
  35063. uint8_t rx_fifo_threshold;
  35064. uint8_t tx_fifo_threshold;
  35065. static const uint8_t numerator[] = {1U, 1U, 1U, 3U, 7U, 1U, 0U, 0U};
  35066. static const uint8_t denominator[] = {8U, 4U, 2U, 4U, 8U, 1U, 1U, 1U};
  35067. if (huart->FifoMode == UART_FIFOMODE_DISABLE)
  35068. 800f468: 687b ldr r3, [r7, #4]
  35069. 800f46a: 6e5b ldr r3, [r3, #100] @ 0x64
  35070. 800f46c: 2b00 cmp r3, #0
  35071. 800f46e: d108 bne.n 800f482 <UARTEx_SetNbDataToProcess+0x22>
  35072. {
  35073. huart->NbTxDataToProcess = 1U;
  35074. 800f470: 687b ldr r3, [r7, #4]
  35075. 800f472: 2201 movs r2, #1
  35076. 800f474: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  35077. huart->NbRxDataToProcess = 1U;
  35078. 800f478: 687b ldr r3, [r7, #4]
  35079. 800f47a: 2201 movs r2, #1
  35080. 800f47c: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  35081. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  35082. (uint16_t)denominator[tx_fifo_threshold];
  35083. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  35084. (uint16_t)denominator[rx_fifo_threshold];
  35085. }
  35086. }
  35087. 800f480: e031 b.n 800f4e6 <UARTEx_SetNbDataToProcess+0x86>
  35088. rx_fifo_depth = RX_FIFO_DEPTH;
  35089. 800f482: 2310 movs r3, #16
  35090. 800f484: 73fb strb r3, [r7, #15]
  35091. tx_fifo_depth = TX_FIFO_DEPTH;
  35092. 800f486: 2310 movs r3, #16
  35093. 800f488: 73bb strb r3, [r7, #14]
  35094. rx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_RXFTCFG) >> USART_CR3_RXFTCFG_Pos);
  35095. 800f48a: 687b ldr r3, [r7, #4]
  35096. 800f48c: 681b ldr r3, [r3, #0]
  35097. 800f48e: 689b ldr r3, [r3, #8]
  35098. 800f490: 0e5b lsrs r3, r3, #25
  35099. 800f492: b2db uxtb r3, r3
  35100. 800f494: f003 0307 and.w r3, r3, #7
  35101. 800f498: 737b strb r3, [r7, #13]
  35102. tx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_TXFTCFG) >> USART_CR3_TXFTCFG_Pos);
  35103. 800f49a: 687b ldr r3, [r7, #4]
  35104. 800f49c: 681b ldr r3, [r3, #0]
  35105. 800f49e: 689b ldr r3, [r3, #8]
  35106. 800f4a0: 0f5b lsrs r3, r3, #29
  35107. 800f4a2: b2db uxtb r3, r3
  35108. 800f4a4: f003 0307 and.w r3, r3, #7
  35109. 800f4a8: 733b strb r3, [r7, #12]
  35110. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  35111. 800f4aa: 7bbb ldrb r3, [r7, #14]
  35112. 800f4ac: 7b3a ldrb r2, [r7, #12]
  35113. 800f4ae: 4911 ldr r1, [pc, #68] @ (800f4f4 <UARTEx_SetNbDataToProcess+0x94>)
  35114. 800f4b0: 5c8a ldrb r2, [r1, r2]
  35115. 800f4b2: fb02 f303 mul.w r3, r2, r3
  35116. (uint16_t)denominator[tx_fifo_threshold];
  35117. 800f4b6: 7b3a ldrb r2, [r7, #12]
  35118. 800f4b8: 490f ldr r1, [pc, #60] @ (800f4f8 <UARTEx_SetNbDataToProcess+0x98>)
  35119. 800f4ba: 5c8a ldrb r2, [r1, r2]
  35120. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  35121. 800f4bc: fb93 f3f2 sdiv r3, r3, r2
  35122. 800f4c0: b29a uxth r2, r3
  35123. 800f4c2: 687b ldr r3, [r7, #4]
  35124. 800f4c4: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  35125. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  35126. 800f4c8: 7bfb ldrb r3, [r7, #15]
  35127. 800f4ca: 7b7a ldrb r2, [r7, #13]
  35128. 800f4cc: 4909 ldr r1, [pc, #36] @ (800f4f4 <UARTEx_SetNbDataToProcess+0x94>)
  35129. 800f4ce: 5c8a ldrb r2, [r1, r2]
  35130. 800f4d0: fb02 f303 mul.w r3, r2, r3
  35131. (uint16_t)denominator[rx_fifo_threshold];
  35132. 800f4d4: 7b7a ldrb r2, [r7, #13]
  35133. 800f4d6: 4908 ldr r1, [pc, #32] @ (800f4f8 <UARTEx_SetNbDataToProcess+0x98>)
  35134. 800f4d8: 5c8a ldrb r2, [r1, r2]
  35135. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  35136. 800f4da: fb93 f3f2 sdiv r3, r3, r2
  35137. 800f4de: b29a uxth r2, r3
  35138. 800f4e0: 687b ldr r3, [r7, #4]
  35139. 800f4e2: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  35140. }
  35141. 800f4e6: bf00 nop
  35142. 800f4e8: 3714 adds r7, #20
  35143. 800f4ea: 46bd mov sp, r7
  35144. 800f4ec: f85d 7b04 ldr.w r7, [sp], #4
  35145. 800f4f0: 4770 bx lr
  35146. 800f4f2: bf00 nop
  35147. 800f4f4: 080305e8 .word 0x080305e8
  35148. 800f4f8: 080305f0 .word 0x080305f0
  35149. 0800f4fc <tcpip_init_wrap>:
  35150. /* USER CODE END OS_THREAD_ATTR_CMSIS_RTOS_V2 */
  35151. /* USER CODE BEGIN 2 */
  35152. /* ETH_CODE: workaround to call LOCK_TCPIP_CORE after tcpip_init in MX_LWIP_Init
  35153. * This is to keep the code after MX code re-generation */
  35154. static inline void tcpip_init_wrap(tcpip_init_done_fn tcpip_init_done, void *arg){
  35155. 800f4fc: b580 push {r7, lr}
  35156. 800f4fe: b082 sub sp, #8
  35157. 800f500: af00 add r7, sp, #0
  35158. 800f502: 6078 str r0, [r7, #4]
  35159. 800f504: 6039 str r1, [r7, #0]
  35160. tcpip_init(tcpip_init_done, arg);
  35161. 800f506: 6839 ldr r1, [r7, #0]
  35162. 800f508: 6878 ldr r0, [r7, #4]
  35163. 800f50a: f009 f85b bl 80185c4 <tcpip_init>
  35164. LOCK_TCPIP_CORE();
  35165. 800f50e: f000 fd91 bl 8010034 <sys_lock_tcpip_core>
  35166. }
  35167. 800f512: bf00 nop
  35168. 800f514: 3708 adds r7, #8
  35169. 800f516: 46bd mov sp, r7
  35170. 800f518: bd80 pop {r7, pc}
  35171. ...
  35172. 0800f51c <is_link_up>:
  35173. #define tcpip_init tcpip_init_wrap
  35174. uint8_t is_link_up(void)
  35175. {
  35176. 800f51c: b480 push {r7}
  35177. 800f51e: af00 add r7, sp, #0
  35178. return netif_is_up(&gnetif);
  35179. 800f520: 4b05 ldr r3, [pc, #20] @ (800f538 <is_link_up+0x1c>)
  35180. 800f522: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  35181. 800f526: f003 0301 and.w r3, r3, #1
  35182. 800f52a: b2db uxtb r3, r3
  35183. }
  35184. 800f52c: 4618 mov r0, r3
  35185. 800f52e: 46bd mov sp, r7
  35186. 800f530: f85d 7b04 ldr.w r7, [sp], #4
  35187. 800f534: 4770 bx lr
  35188. 800f536: bf00 nop
  35189. 800f538: 240012d8 .word 0x240012d8
  35190. 0800f53c <MX_LWIP_Init>:
  35191. /**
  35192. * LwIP initialization function
  35193. */
  35194. void MX_LWIP_Init(void)
  35195. {
  35196. 800f53c: b580 push {r7, lr}
  35197. 800f53e: b084 sub sp, #16
  35198. 800f540: af04 add r7, sp, #16
  35199. /* IP addresses initialization without DHCP (IPv4) */
  35200. ipaddr_aton(STATIC_IP, &ipaddr);
  35201. ipaddr_aton(STATIC_MASK, &netmask);
  35202. ipaddr_aton(STATIC_GW, &gw);
  35203. #else
  35204. ip_addr_set_zero_ip4(&ipaddr);
  35205. 800f542: 4b27 ldr r3, [pc, #156] @ (800f5e0 <MX_LWIP_Init+0xa4>)
  35206. 800f544: 2200 movs r2, #0
  35207. 800f546: 601a str r2, [r3, #0]
  35208. ip_addr_set_zero_ip4(&netmask);
  35209. 800f548: 4b26 ldr r3, [pc, #152] @ (800f5e4 <MX_LWIP_Init+0xa8>)
  35210. 800f54a: 2200 movs r2, #0
  35211. 800f54c: 601a str r2, [r3, #0]
  35212. ip_addr_set_zero_ip4(&gw);
  35213. 800f54e: 4b26 ldr r3, [pc, #152] @ (800f5e8 <MX_LWIP_Init+0xac>)
  35214. 800f550: 2200 movs r2, #0
  35215. 800f552: 601a str r2, [r3, #0]
  35216. #endif
  35217. /* USER CODE END IP_ADDRESSES */
  35218. /* Initilialize the LwIP stack with RTOS */
  35219. tcpip_init( NULL, NULL );
  35220. 800f554: 2100 movs r1, #0
  35221. 800f556: 2000 movs r0, #0
  35222. 800f558: f7ff ffd0 bl 800f4fc <tcpip_init_wrap>
  35223. // IP4_ADDR(&ipaddr, IP_ADDRESS[0], IP_ADDRESS[1], IP_ADDRESS[2], IP_ADDRESS[3]);
  35224. // IP4_ADDR(&netmask, NETMASK_ADDRESS[0], NETMASK_ADDRESS[1] , NETMASK_ADDRESS[2], NETMASK_ADDRESS[3]);
  35225. // IP4_ADDR(&gw, GATEWAY_ADDRESS[0], GATEWAY_ADDRESS[1], GATEWAY_ADDRESS[2], GATEWAY_ADDRESS[3]);
  35226. /* add the network interface (IPv4/IPv6) with RTOS */
  35227. netif_add(&gnetif, &ipaddr, &netmask, &gw, NULL, &ethernetif_init, &tcpip_input);
  35228. 800f55c: 4b23 ldr r3, [pc, #140] @ (800f5ec <MX_LWIP_Init+0xb0>)
  35229. 800f55e: 9302 str r3, [sp, #8]
  35230. 800f560: 4b23 ldr r3, [pc, #140] @ (800f5f0 <MX_LWIP_Init+0xb4>)
  35231. 800f562: 9301 str r3, [sp, #4]
  35232. 800f564: 2300 movs r3, #0
  35233. 800f566: 9300 str r3, [sp, #0]
  35234. 800f568: 4b1f ldr r3, [pc, #124] @ (800f5e8 <MX_LWIP_Init+0xac>)
  35235. 800f56a: 4a1e ldr r2, [pc, #120] @ (800f5e4 <MX_LWIP_Init+0xa8>)
  35236. 800f56c: 491c ldr r1, [pc, #112] @ (800f5e0 <MX_LWIP_Init+0xa4>)
  35237. 800f56e: 4821 ldr r0, [pc, #132] @ (800f5f4 <MX_LWIP_Init+0xb8>)
  35238. 800f570: f009 fe98 bl 80192a4 <netif_add>
  35239. /* Registers the default network interface */
  35240. netif_set_default(&gnetif);
  35241. 800f574: 481f ldr r0, [pc, #124] @ (800f5f4 <MX_LWIP_Init+0xb8>)
  35242. 800f576: f00a f853 bl 8019620 <netif_set_default>
  35243. if (netif_is_link_up(&gnetif))
  35244. 800f57a: 4b1e ldr r3, [pc, #120] @ (800f5f4 <MX_LWIP_Init+0xb8>)
  35245. 800f57c: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  35246. 800f580: 089b lsrs r3, r3, #2
  35247. 800f582: f003 0301 and.w r3, r3, #1
  35248. 800f586: b2db uxtb r3, r3
  35249. 800f588: 2b00 cmp r3, #0
  35250. 800f58a: d003 beq.n 800f594 <MX_LWIP_Init+0x58>
  35251. {
  35252. /* When the netif is fully configured this function must be called */
  35253. netif_set_up(&gnetif);
  35254. 800f58c: 4819 ldr r0, [pc, #100] @ (800f5f4 <MX_LWIP_Init+0xb8>)
  35255. 800f58e: f00a f857 bl 8019640 <netif_set_up>
  35256. 800f592: e002 b.n 800f59a <MX_LWIP_Init+0x5e>
  35257. }
  35258. else
  35259. {
  35260. /* When the netif link is down this function must be called */
  35261. netif_set_down(&gnetif);
  35262. 800f594: 4817 ldr r0, [pc, #92] @ (800f5f4 <MX_LWIP_Init+0xb8>)
  35263. 800f596: f00a f8c1 bl 801971c <netif_set_down>
  35264. }
  35265. /* Set the link callback function, this function is called on change of link status*/
  35266. netif_set_link_callback(&gnetif, ethernet_link_status_updated);
  35267. 800f59a: 4917 ldr r1, [pc, #92] @ (800f5f8 <MX_LWIP_Init+0xbc>)
  35268. 800f59c: 4815 ldr r0, [pc, #84] @ (800f5f4 <MX_LWIP_Init+0xb8>)
  35269. 800f59e: f00a f95d bl 801985c <netif_set_link_callback>
  35270. /* Create the Ethernet link handler thread */
  35271. /* USER CODE BEGIN H7_OS_THREAD_NEW_CMSIS_RTOS_V2 */
  35272. memset(&attributes, 0x0, sizeof(osThreadAttr_t));
  35273. 800f5a2: 2224 movs r2, #36 @ 0x24
  35274. 800f5a4: 2100 movs r1, #0
  35275. 800f5a6: 4815 ldr r0, [pc, #84] @ (800f5fc <MX_LWIP_Init+0xc0>)
  35276. 800f5a8: f01a f942 bl 8029830 <memset>
  35277. attributes.name = "EthLink";
  35278. 800f5ac: 4b13 ldr r3, [pc, #76] @ (800f5fc <MX_LWIP_Init+0xc0>)
  35279. 800f5ae: 4a14 ldr r2, [pc, #80] @ (800f600 <MX_LWIP_Init+0xc4>)
  35280. 800f5b0: 601a str r2, [r3, #0]
  35281. attributes.stack_size = INTERFACE_THREAD_STACK_SIZE * 2;
  35282. 800f5b2: 4b12 ldr r3, [pc, #72] @ (800f5fc <MX_LWIP_Init+0xc0>)
  35283. 800f5b4: f44f 6200 mov.w r2, #2048 @ 0x800
  35284. 800f5b8: 615a str r2, [r3, #20]
  35285. attributes.priority = osPriorityBelowNormal;
  35286. 800f5ba: 4b10 ldr r3, [pc, #64] @ (800f5fc <MX_LWIP_Init+0xc0>)
  35287. 800f5bc: 2210 movs r2, #16
  35288. 800f5be: 619a str r2, [r3, #24]
  35289. osThreadNew(ethernet_link_thread, &gnetif, &attributes);
  35290. 800f5c0: 4a0e ldr r2, [pc, #56] @ (800f5fc <MX_LWIP_Init+0xc0>)
  35291. 800f5c2: 490c ldr r1, [pc, #48] @ (800f5f4 <MX_LWIP_Init+0xb8>)
  35292. 800f5c4: 480f ldr r0, [pc, #60] @ (800f604 <MX_LWIP_Init+0xc8>)
  35293. 800f5c6: f000 fede bl 8010386 <osThreadNew>
  35294. /* USER CODE END H7_OS_THREAD_NEW_CMSIS_RTOS_V2 */
  35295. /* USER CODE BEGIN 3 */
  35296. /* Start DHCP negotiation for a network interface (IPv4) */
  35297. #if USE_DHCP
  35298. netif_set_up(&gnetif);
  35299. 800f5ca: 480a ldr r0, [pc, #40] @ (800f5f4 <MX_LWIP_Init+0xb8>)
  35300. 800f5cc: f00a f838 bl 8019640 <netif_set_up>
  35301. dhcp_start(&gnetif);
  35302. 800f5d0: 4808 ldr r0, [pc, #32] @ (800f5f4 <MX_LWIP_Init+0xb8>)
  35303. 800f5d2: f012 fb25 bl 8021c20 <dhcp_start>
  35304. #else
  35305. netif_set_addr(&gnetif, ip_2_ip4(&ipaddr), ip_2_ip4(&netmask), ip_2_ip4(&gw));
  35306. #endif
  35307. /* ETH_CODE: call UNLOCK_TCPIP_CORE after we are done */
  35308. UNLOCK_TCPIP_CORE();
  35309. 800f5d6: f000 fd3d bl 8010054 <sys_unlock_tcpip_core>
  35310. /* USER CODE END 3 */
  35311. }
  35312. 800f5da: bf00 nop
  35313. 800f5dc: 46bd mov sp, r7
  35314. 800f5de: bd80 pop {r7, pc}
  35315. 800f5e0: 24001310 .word 0x24001310
  35316. 800f5e4: 24001314 .word 0x24001314
  35317. 800f5e8: 24001318 .word 0x24001318
  35318. 800f5ec: 080184dd .word 0x080184dd
  35319. 800f5f0: 0800fabd .word 0x0800fabd
  35320. 800f5f4: 240012d8 .word 0x240012d8
  35321. 800f5f8: 0800f609 .word 0x0800f609
  35322. 800f5fc: 2400131c .word 0x2400131c
  35323. 800f600: 0802c56c .word 0x0802c56c
  35324. 800f604: 0800fd6d .word 0x0800fd6d
  35325. 0800f608 <ethernet_link_status_updated>:
  35326. * @brief Notify the User about the network interface config status
  35327. * @param netif: the network interface
  35328. * @retval None
  35329. */
  35330. static void ethernet_link_status_updated(struct netif *netif)
  35331. {
  35332. 800f608: b480 push {r7}
  35333. 800f60a: b083 sub sp, #12
  35334. 800f60c: af00 add r7, sp, #0
  35335. 800f60e: 6078 str r0, [r7, #4]
  35336. else /* netif is down */
  35337. {
  35338. /* USER CODE BEGIN 6 */
  35339. /* USER CODE END 6 */
  35340. }
  35341. }
  35342. 800f610: bf00 nop
  35343. 800f612: 370c adds r7, #12
  35344. 800f614: 46bd mov sp, r7
  35345. 800f616: f85d 7b04 ldr.w r7, [sp], #4
  35346. 800f61a: 4770 bx lr
  35347. 0800f61c <HAL_ETH_RxCpltCallback>:
  35348. * @brief Ethernet Rx Transfer completed callback
  35349. * @param handlerEth: ETH handler
  35350. * @retval None
  35351. */
  35352. void HAL_ETH_RxCpltCallback(ETH_HandleTypeDef *handlerEth)
  35353. {
  35354. 800f61c: b580 push {r7, lr}
  35355. 800f61e: b082 sub sp, #8
  35356. 800f620: af00 add r7, sp, #0
  35357. 800f622: 6078 str r0, [r7, #4]
  35358. osSemaphoreRelease(RxPktSemaphore);
  35359. 800f624: 4b04 ldr r3, [pc, #16] @ (800f638 <HAL_ETH_RxCpltCallback+0x1c>)
  35360. 800f626: 681b ldr r3, [r3, #0]
  35361. 800f628: 4618 mov r0, r3
  35362. 800f62a: f001 f94f bl 80108cc <osSemaphoreRelease>
  35363. }
  35364. 800f62e: bf00 nop
  35365. 800f630: 3708 adds r7, #8
  35366. 800f632: 46bd mov sp, r7
  35367. 800f634: bd80 pop {r7, pc}
  35368. 800f636: bf00 nop
  35369. 800f638: 24001348 .word 0x24001348
  35370. 0800f63c <HAL_ETH_TxCpltCallback>:
  35371. * @brief Ethernet Tx Transfer completed callback
  35372. * @param handlerEth: ETH handler
  35373. * @retval None
  35374. */
  35375. void HAL_ETH_TxCpltCallback(ETH_HandleTypeDef *handlerEth)
  35376. {
  35377. 800f63c: b580 push {r7, lr}
  35378. 800f63e: b082 sub sp, #8
  35379. 800f640: af00 add r7, sp, #0
  35380. 800f642: 6078 str r0, [r7, #4]
  35381. osSemaphoreRelease(TxPktSemaphore);
  35382. 800f644: 4b04 ldr r3, [pc, #16] @ (800f658 <HAL_ETH_TxCpltCallback+0x1c>)
  35383. 800f646: 681b ldr r3, [r3, #0]
  35384. 800f648: 4618 mov r0, r3
  35385. 800f64a: f001 f93f bl 80108cc <osSemaphoreRelease>
  35386. }
  35387. 800f64e: bf00 nop
  35388. 800f650: 3708 adds r7, #8
  35389. 800f652: 46bd mov sp, r7
  35390. 800f654: bd80 pop {r7, pc}
  35391. 800f656: bf00 nop
  35392. 800f658: 2400134c .word 0x2400134c
  35393. 0800f65c <HAL_ETH_ErrorCallback>:
  35394. * @brief Ethernet DMA transfer error callback
  35395. * @param handlerEth: ETH handler
  35396. * @retval None
  35397. */
  35398. void HAL_ETH_ErrorCallback(ETH_HandleTypeDef *handlerEth)
  35399. {
  35400. 800f65c: b580 push {r7, lr}
  35401. 800f65e: b082 sub sp, #8
  35402. 800f660: af00 add r7, sp, #0
  35403. 800f662: 6078 str r0, [r7, #4]
  35404. if((HAL_ETH_GetDMAError(handlerEth) & ETH_DMACSR_RBU) == ETH_DMACSR_RBU)
  35405. 800f664: 6878 ldr r0, [r7, #4]
  35406. 800f666: f7f9 f833 bl 80086d0 <HAL_ETH_GetDMAError>
  35407. 800f66a: 4603 mov r3, r0
  35408. 800f66c: f003 0380 and.w r3, r3, #128 @ 0x80
  35409. 800f670: 2b80 cmp r3, #128 @ 0x80
  35410. 800f672: d104 bne.n 800f67e <HAL_ETH_ErrorCallback+0x22>
  35411. {
  35412. osSemaphoreRelease(RxPktSemaphore);
  35413. 800f674: 4b04 ldr r3, [pc, #16] @ (800f688 <HAL_ETH_ErrorCallback+0x2c>)
  35414. 800f676: 681b ldr r3, [r3, #0]
  35415. 800f678: 4618 mov r0, r3
  35416. 800f67a: f001 f927 bl 80108cc <osSemaphoreRelease>
  35417. }
  35418. }
  35419. 800f67e: bf00 nop
  35420. 800f680: 3708 adds r7, #8
  35421. 800f682: 46bd mov sp, r7
  35422. 800f684: bd80 pop {r7, pc}
  35423. 800f686: bf00 nop
  35424. 800f688: 24001348 .word 0x24001348
  35425. 0800f68c <low_level_init>:
  35426. *
  35427. * @param netif the already initialized lwip network interface structure
  35428. * for this ethernetif
  35429. */
  35430. static void low_level_init(struct netif *netif)
  35431. {
  35432. 800f68c: b580 push {r7, lr}
  35433. 800f68e: b0aa sub sp, #168 @ 0xa8
  35434. 800f690: af00 add r7, sp, #0
  35435. 800f692: 6078 str r0, [r7, #4]
  35436. HAL_StatusTypeDef hal_eth_init_status = HAL_OK;
  35437. 800f694: 2300 movs r3, #0
  35438. 800f696: f887 309f strb.w r3, [r7, #159] @ 0x9f
  35439. /* USER CODE BEGIN OS_THREAD_ATTR_CMSIS_RTOS_V2 */
  35440. osThreadAttr_t attributes;
  35441. /* USER CODE END OS_THREAD_ATTR_CMSIS_RTOS_V2 */
  35442. uint32_t duplex, speed = 0;
  35443. 800f69a: 2300 movs r3, #0
  35444. 800f69c: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  35445. int32_t PHYLinkState = 0;
  35446. 800f6a0: 2300 movs r3, #0
  35447. 800f6a2: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  35448. ETH_MACConfigTypeDef MACConf = {0};
  35449. 800f6a6: f107 0310 add.w r3, r7, #16
  35450. 800f6aa: 2264 movs r2, #100 @ 0x64
  35451. 800f6ac: 2100 movs r1, #0
  35452. 800f6ae: 4618 mov r0, r3
  35453. 800f6b0: f01a f8be bl 8029830 <memset>
  35454. /* Start ETH HAL Init */
  35455. uint8_t MACAddr[6] ;
  35456. heth.Instance = ETH;
  35457. 800f6b4: 4b86 ldr r3, [pc, #536] @ (800f8d0 <low_level_init+0x244>)
  35458. 800f6b6: 4a87 ldr r2, [pc, #540] @ (800f8d4 <low_level_init+0x248>)
  35459. 800f6b8: 601a str r2, [r3, #0]
  35460. // MACAddr[1] = 0x80;
  35461. // MACAddr[2] = 0xE1;
  35462. // MACAddr[3] = 0x00;
  35463. // MACAddr[4] = 0x00;
  35464. // MACAddr[5] = 0x00;
  35465. MACAddr[0] = 0x7C;
  35466. 800f6ba: 237c movs r3, #124 @ 0x7c
  35467. 800f6bc: 723b strb r3, [r7, #8]
  35468. MACAddr[1] = 0xF6;
  35469. 800f6be: 23f6 movs r3, #246 @ 0xf6
  35470. 800f6c0: 727b strb r3, [r7, #9]
  35471. MACAddr[2] = 0x66;
  35472. 800f6c2: 2366 movs r3, #102 @ 0x66
  35473. 800f6c4: 72bb strb r3, [r7, #10]
  35474. MACAddr[3] = 0xE4;
  35475. 800f6c6: 23e4 movs r3, #228 @ 0xe4
  35476. 800f6c8: 72fb strb r3, [r7, #11]
  35477. MACAddr[4] = 0xB5;
  35478. 800f6ca: 23b5 movs r3, #181 @ 0xb5
  35479. 800f6cc: 733b strb r3, [r7, #12]
  35480. MACAddr[5] = 0x41;
  35481. 800f6ce: 2341 movs r3, #65 @ 0x41
  35482. 800f6d0: 737b strb r3, [r7, #13]
  35483. heth.Init.MACAddr = &MACAddr[0];
  35484. 800f6d2: 4a7f ldr r2, [pc, #508] @ (800f8d0 <low_level_init+0x244>)
  35485. 800f6d4: f107 0308 add.w r3, r7, #8
  35486. 800f6d8: 6053 str r3, [r2, #4]
  35487. heth.Init.MediaInterface = HAL_ETH_MII_MODE;
  35488. 800f6da: 4b7d ldr r3, [pc, #500] @ (800f8d0 <low_level_init+0x244>)
  35489. 800f6dc: 2200 movs r2, #0
  35490. 800f6de: 721a strb r2, [r3, #8]
  35491. heth.Init.TxDesc = DMATxDscrTab;
  35492. 800f6e0: 4b7b ldr r3, [pc, #492] @ (800f8d0 <low_level_init+0x244>)
  35493. 800f6e2: 4a7d ldr r2, [pc, #500] @ (800f8d8 <low_level_init+0x24c>)
  35494. 800f6e4: 60da str r2, [r3, #12]
  35495. heth.Init.RxDesc = DMARxDscrTab;
  35496. 800f6e6: 4b7a ldr r3, [pc, #488] @ (800f8d0 <low_level_init+0x244>)
  35497. 800f6e8: 4a7c ldr r2, [pc, #496] @ (800f8dc <low_level_init+0x250>)
  35498. 800f6ea: 611a str r2, [r3, #16]
  35499. heth.Init.RxBuffLen = 1536;
  35500. 800f6ec: 4b78 ldr r3, [pc, #480] @ (800f8d0 <low_level_init+0x244>)
  35501. 800f6ee: f44f 62c0 mov.w r2, #1536 @ 0x600
  35502. 800f6f2: 615a str r2, [r3, #20]
  35503. /* USER CODE BEGIN MACADDRESS */
  35504. /* USER CODE END MACADDRESS */
  35505. hal_eth_init_status = HAL_ETH_Init(&heth);
  35506. 800f6f4: 4876 ldr r0, [pc, #472] @ (800f8d0 <low_level_init+0x244>)
  35507. 800f6f6: f7f8 f81f bl 8007738 <HAL_ETH_Init>
  35508. 800f6fa: 4603 mov r3, r0
  35509. 800f6fc: f887 309f strb.w r3, [r7, #159] @ 0x9f
  35510. memset(&TxConfig, 0 , sizeof(ETH_TxPacketConfig));
  35511. 800f700: 2238 movs r2, #56 @ 0x38
  35512. 800f702: 2100 movs r1, #0
  35513. 800f704: 4876 ldr r0, [pc, #472] @ (800f8e0 <low_level_init+0x254>)
  35514. 800f706: f01a f893 bl 8029830 <memset>
  35515. TxConfig.Attributes = ETH_TX_PACKETS_FEATURES_CSUM | ETH_TX_PACKETS_FEATURES_CRCPAD;
  35516. 800f70a: 4b75 ldr r3, [pc, #468] @ (800f8e0 <low_level_init+0x254>)
  35517. 800f70c: 2221 movs r2, #33 @ 0x21
  35518. 800f70e: 601a str r2, [r3, #0]
  35519. TxConfig.ChecksumCtrl = ETH_CHECKSUM_IPHDR_PAYLOAD_INSERT_PHDR_CALC;
  35520. 800f710: 4b73 ldr r3, [pc, #460] @ (800f8e0 <low_level_init+0x254>)
  35521. 800f712: f44f 3240 mov.w r2, #196608 @ 0x30000
  35522. 800f716: 615a str r2, [r3, #20]
  35523. TxConfig.CRCPadCtrl = ETH_CRC_PAD_INSERT;
  35524. 800f718: 4b71 ldr r3, [pc, #452] @ (800f8e0 <low_level_init+0x254>)
  35525. 800f71a: 2200 movs r2, #0
  35526. 800f71c: 611a str r2, [r3, #16]
  35527. /* End ETH HAL Init */
  35528. /* Initialize the RX POOL */
  35529. LWIP_MEMPOOL_INIT(RX_POOL);
  35530. 800f71e: 4871 ldr r0, [pc, #452] @ (800f8e4 <low_level_init+0x258>)
  35531. 800f720: f009 fc7a bl 8019018 <memp_init_pool>
  35532. #if LWIP_ARP || LWIP_ETHERNET
  35533. /* set MAC hardware address length */
  35534. netif->hwaddr_len = ETH_HWADDR_LEN;
  35535. 800f724: 687b ldr r3, [r7, #4]
  35536. 800f726: 2206 movs r2, #6
  35537. 800f728: f883 2030 strb.w r2, [r3, #48] @ 0x30
  35538. /* set MAC hardware address */
  35539. netif->hwaddr[0] = heth.Init.MACAddr[0];
  35540. 800f72c: 4b68 ldr r3, [pc, #416] @ (800f8d0 <low_level_init+0x244>)
  35541. 800f72e: 685b ldr r3, [r3, #4]
  35542. 800f730: 781a ldrb r2, [r3, #0]
  35543. 800f732: 687b ldr r3, [r7, #4]
  35544. 800f734: f883 202a strb.w r2, [r3, #42] @ 0x2a
  35545. netif->hwaddr[1] = heth.Init.MACAddr[1];
  35546. 800f738: 4b65 ldr r3, [pc, #404] @ (800f8d0 <low_level_init+0x244>)
  35547. 800f73a: 685b ldr r3, [r3, #4]
  35548. 800f73c: 785a ldrb r2, [r3, #1]
  35549. 800f73e: 687b ldr r3, [r7, #4]
  35550. 800f740: f883 202b strb.w r2, [r3, #43] @ 0x2b
  35551. netif->hwaddr[2] = heth.Init.MACAddr[2];
  35552. 800f744: 4b62 ldr r3, [pc, #392] @ (800f8d0 <low_level_init+0x244>)
  35553. 800f746: 685b ldr r3, [r3, #4]
  35554. 800f748: 789a ldrb r2, [r3, #2]
  35555. 800f74a: 687b ldr r3, [r7, #4]
  35556. 800f74c: f883 202c strb.w r2, [r3, #44] @ 0x2c
  35557. netif->hwaddr[3] = heth.Init.MACAddr[3];
  35558. 800f750: 4b5f ldr r3, [pc, #380] @ (800f8d0 <low_level_init+0x244>)
  35559. 800f752: 685b ldr r3, [r3, #4]
  35560. 800f754: 78da ldrb r2, [r3, #3]
  35561. 800f756: 687b ldr r3, [r7, #4]
  35562. 800f758: f883 202d strb.w r2, [r3, #45] @ 0x2d
  35563. netif->hwaddr[4] = heth.Init.MACAddr[4];
  35564. 800f75c: 4b5c ldr r3, [pc, #368] @ (800f8d0 <low_level_init+0x244>)
  35565. 800f75e: 685b ldr r3, [r3, #4]
  35566. 800f760: 791a ldrb r2, [r3, #4]
  35567. 800f762: 687b ldr r3, [r7, #4]
  35568. 800f764: f883 202e strb.w r2, [r3, #46] @ 0x2e
  35569. netif->hwaddr[5] = heth.Init.MACAddr[5];
  35570. 800f768: 4b59 ldr r3, [pc, #356] @ (800f8d0 <low_level_init+0x244>)
  35571. 800f76a: 685b ldr r3, [r3, #4]
  35572. 800f76c: 795a ldrb r2, [r3, #5]
  35573. 800f76e: 687b ldr r3, [r7, #4]
  35574. 800f770: f883 202f strb.w r2, [r3, #47] @ 0x2f
  35575. /* maximum transfer unit */
  35576. netif->mtu = ETH_MAX_PAYLOAD;
  35577. 800f774: 687b ldr r3, [r7, #4]
  35578. 800f776: f240 52dc movw r2, #1500 @ 0x5dc
  35579. 800f77a: 851a strh r2, [r3, #40] @ 0x28
  35580. /* Accept broadcast address and ARP traffic */
  35581. /* don't set NETIF_FLAG_ETHARP if this device is not an ethernet one */
  35582. #if LWIP_ARP
  35583. netif->flags |= NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP;
  35584. 800f77c: 687b ldr r3, [r7, #4]
  35585. 800f77e: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  35586. 800f782: f043 030a orr.w r3, r3, #10
  35587. 800f786: b2da uxtb r2, r3
  35588. 800f788: 687b ldr r3, [r7, #4]
  35589. 800f78a: f883 2031 strb.w r2, [r3, #49] @ 0x31
  35590. #else
  35591. netif->flags |= NETIF_FLAG_BROADCAST;
  35592. #endif /* LWIP_ARP */
  35593. /* create a binary semaphore used for informing ethernetif of frame reception */
  35594. RxPktSemaphore = osSemaphoreNew(1, 1, NULL);
  35595. 800f78e: 2200 movs r2, #0
  35596. 800f790: 2101 movs r1, #1
  35597. 800f792: 2001 movs r0, #1
  35598. 800f794: f000 ffbe bl 8010714 <osSemaphoreNew>
  35599. 800f798: 4603 mov r3, r0
  35600. 800f79a: 4a53 ldr r2, [pc, #332] @ (800f8e8 <low_level_init+0x25c>)
  35601. 800f79c: 6013 str r3, [r2, #0]
  35602. /* create a binary semaphore used for informing ethernetif of frame transmission */
  35603. TxPktSemaphore = osSemaphoreNew(1, 1, NULL);
  35604. 800f79e: 2200 movs r2, #0
  35605. 800f7a0: 2101 movs r1, #1
  35606. 800f7a2: 2001 movs r0, #1
  35607. 800f7a4: f000 ffb6 bl 8010714 <osSemaphoreNew>
  35608. 800f7a8: 4603 mov r3, r0
  35609. 800f7aa: 4a50 ldr r2, [pc, #320] @ (800f8ec <low_level_init+0x260>)
  35610. 800f7ac: 6013 str r3, [r2, #0]
  35611. /* create the task that handles the ETH_MAC */
  35612. /* USER CODE BEGIN OS_THREAD_NEW_CMSIS_RTOS_V2 */
  35613. memset(&attributes, 0x0, sizeof(osThreadAttr_t));
  35614. 800f7ae: f107 0374 add.w r3, r7, #116 @ 0x74
  35615. 800f7b2: 2224 movs r2, #36 @ 0x24
  35616. 800f7b4: 2100 movs r1, #0
  35617. 800f7b6: 4618 mov r0, r3
  35618. 800f7b8: f01a f83a bl 8029830 <memset>
  35619. attributes.name = "EthIf";
  35620. 800f7bc: 4b4c ldr r3, [pc, #304] @ (800f8f0 <low_level_init+0x264>)
  35621. 800f7be: 677b str r3, [r7, #116] @ 0x74
  35622. attributes.stack_size = INTERFACE_THREAD_STACK_SIZE;
  35623. 800f7c0: f44f 6380 mov.w r3, #1024 @ 0x400
  35624. 800f7c4: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  35625. attributes.priority = osPriorityRealtime;
  35626. 800f7c8: 2330 movs r3, #48 @ 0x30
  35627. 800f7ca: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  35628. osThreadNew(ethernetif_input, netif, &attributes);
  35629. 800f7ce: f107 0374 add.w r3, r7, #116 @ 0x74
  35630. 800f7d2: 461a mov r2, r3
  35631. 800f7d4: 6879 ldr r1, [r7, #4]
  35632. 800f7d6: 4847 ldr r0, [pc, #284] @ (800f8f4 <low_level_init+0x268>)
  35633. 800f7d8: f000 fdd5 bl 8010386 <osThreadNew>
  35634. /* USER CODE BEGIN PHY_PRE_CONFIG */
  35635. /* USER CODE END PHY_PRE_CONFIG */
  35636. /* Set PHY IO functions */
  35637. DP83848_RegisterBusIO(&DP83848, &DP83848_IOCtx);
  35638. 800f7dc: 4946 ldr r1, [pc, #280] @ (800f8f8 <low_level_init+0x26c>)
  35639. 800f7de: 4847 ldr r0, [pc, #284] @ (800f8fc <low_level_init+0x270>)
  35640. 800f7e0: f7f5 f87f bl 80048e2 <DP83848_RegisterBusIO>
  35641. /* Initialize the DP83848 ETH PHY */
  35642. DP83848_Init(&DP83848);
  35643. 800f7e4: 4845 ldr r0, [pc, #276] @ (800f8fc <low_level_init+0x270>)
  35644. 800f7e6: f7f5 f8ae bl 8004946 <DP83848_Init>
  35645. if (hal_eth_init_status == HAL_OK)
  35646. 800f7ea: f897 309f ldrb.w r3, [r7, #159] @ 0x9f
  35647. 800f7ee: 2b00 cmp r3, #0
  35648. 800f7f0: d168 bne.n 800f8c4 <low_level_init+0x238>
  35649. {
  35650. PHYLinkState = DP83848_GetLinkState(&DP83848);
  35651. 800f7f2: 4842 ldr r0, [pc, #264] @ (800f8fc <low_level_init+0x270>)
  35652. 800f7f4: f7f5 f8f4 bl 80049e0 <DP83848_GetLinkState>
  35653. 800f7f8: f8c7 0098 str.w r0, [r7, #152] @ 0x98
  35654. /* Get link state */
  35655. if(PHYLinkState <= DP83848_STATUS_LINK_DOWN)
  35656. 800f7fc: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  35657. 800f800: 2b01 cmp r3, #1
  35658. 800f802: dc06 bgt.n 800f812 <low_level_init+0x186>
  35659. {
  35660. netif_set_link_down(netif);
  35661. 800f804: 6878 ldr r0, [r7, #4]
  35662. 800f806: f009 fff7 bl 80197f8 <netif_set_link_down>
  35663. netif_set_down(netif);
  35664. 800f80a: 6878 ldr r0, [r7, #4]
  35665. 800f80c: f009 ff86 bl 801971c <netif_set_down>
  35666. #endif /* LWIP_ARP || LWIP_ETHERNET */
  35667. /* USER CODE BEGIN LOW_LEVEL_INIT */
  35668. /* USER CODE END LOW_LEVEL_INIT */
  35669. }
  35670. 800f810: e05a b.n 800f8c8 <low_level_init+0x23c>
  35671. switch (PHYLinkState)
  35672. 800f812: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  35673. 800f816: 3b02 subs r3, #2
  35674. 800f818: 2b03 cmp r3, #3
  35675. 800f81a: d82b bhi.n 800f874 <low_level_init+0x1e8>
  35676. 800f81c: a201 add r2, pc, #4 @ (adr r2, 800f824 <low_level_init+0x198>)
  35677. 800f81e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  35678. 800f822: bf00 nop
  35679. 800f824: 0800f835 .word 0x0800f835
  35680. 800f828: 0800f847 .word 0x0800f847
  35681. 800f82c: 0800f857 .word 0x0800f857
  35682. 800f830: 0800f867 .word 0x0800f867
  35683. duplex = ETH_FULLDUPLEX_MODE;
  35684. 800f834: f44f 5300 mov.w r3, #8192 @ 0x2000
  35685. 800f838: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  35686. speed = ETH_SPEED_100M;
  35687. 800f83c: f44f 4380 mov.w r3, #16384 @ 0x4000
  35688. 800f840: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  35689. break;
  35690. 800f844: e01f b.n 800f886 <low_level_init+0x1fa>
  35691. duplex = ETH_HALFDUPLEX_MODE;
  35692. 800f846: 2300 movs r3, #0
  35693. 800f848: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  35694. speed = ETH_SPEED_100M;
  35695. 800f84c: f44f 4380 mov.w r3, #16384 @ 0x4000
  35696. 800f850: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  35697. break;
  35698. 800f854: e017 b.n 800f886 <low_level_init+0x1fa>
  35699. duplex = ETH_FULLDUPLEX_MODE;
  35700. 800f856: f44f 5300 mov.w r3, #8192 @ 0x2000
  35701. 800f85a: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  35702. speed = ETH_SPEED_10M;
  35703. 800f85e: 2300 movs r3, #0
  35704. 800f860: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  35705. break;
  35706. 800f864: e00f b.n 800f886 <low_level_init+0x1fa>
  35707. duplex = ETH_HALFDUPLEX_MODE;
  35708. 800f866: 2300 movs r3, #0
  35709. 800f868: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  35710. speed = ETH_SPEED_10M;
  35711. 800f86c: 2300 movs r3, #0
  35712. 800f86e: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  35713. break;
  35714. 800f872: e008 b.n 800f886 <low_level_init+0x1fa>
  35715. duplex = ETH_FULLDUPLEX_MODE;
  35716. 800f874: f44f 5300 mov.w r3, #8192 @ 0x2000
  35717. 800f878: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  35718. speed = ETH_SPEED_100M;
  35719. 800f87c: f44f 4380 mov.w r3, #16384 @ 0x4000
  35720. 800f880: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  35721. break;
  35722. 800f884: bf00 nop
  35723. HAL_ETH_GetMACConfig(&heth, &MACConf);
  35724. 800f886: f107 0310 add.w r3, r7, #16
  35725. 800f88a: 4619 mov r1, r3
  35726. 800f88c: 4810 ldr r0, [pc, #64] @ (800f8d0 <low_level_init+0x244>)
  35727. 800f88e: f7f8 fce1 bl 8008254 <HAL_ETH_GetMACConfig>
  35728. MACConf.DuplexMode = duplex;
  35729. 800f892: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4
  35730. 800f896: 62bb str r3, [r7, #40] @ 0x28
  35731. MACConf.Speed = speed;
  35732. 800f898: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  35733. 800f89c: 627b str r3, [r7, #36] @ 0x24
  35734. HAL_ETH_SetMACConfig(&heth, &MACConf);
  35735. 800f89e: f107 0310 add.w r3, r7, #16
  35736. 800f8a2: 4619 mov r1, r3
  35737. 800f8a4: 480a ldr r0, [pc, #40] @ (800f8d0 <low_level_init+0x244>)
  35738. 800f8a6: f7f8 fea9 bl 80085fc <HAL_ETH_SetMACConfig>
  35739. HAL_ETH_Start_IT(&heth);
  35740. 800f8aa: 4809 ldr r0, [pc, #36] @ (800f8d0 <low_level_init+0x244>)
  35741. 800f8ac: f7f8 f842 bl 8007934 <HAL_ETH_Start_IT>
  35742. netif_set_up(netif);
  35743. 800f8b0: 6878 ldr r0, [r7, #4]
  35744. 800f8b2: f009 fec5 bl 8019640 <netif_set_up>
  35745. netif_set_link_up(netif);
  35746. 800f8b6: 6878 ldr r0, [r7, #4]
  35747. 800f8b8: f009 ff64 bl 8019784 <netif_set_link_up>
  35748. ethernetif_notify_conn_changed(netif);
  35749. 800f8bc: 6878 ldr r0, [r7, #4]
  35750. 800f8be: f000 fb0b bl 800fed8 <ethernetif_notify_conn_changed>
  35751. }
  35752. 800f8c2: e001 b.n 800f8c8 <low_level_init+0x23c>
  35753. Error_Handler();
  35754. 800f8c4: f7f2 fcc8 bl 8002258 <Error_Handler>
  35755. }
  35756. 800f8c8: bf00 nop
  35757. 800f8ca: 37a8 adds r7, #168 @ 0xa8
  35758. 800f8cc: 46bd mov sp, r7
  35759. 800f8ce: bd80 pop {r7, pc}
  35760. 800f8d0: 24001350 .word 0x24001350
  35761. 800f8d4: 40028000 .word 0x40028000
  35762. 800f8d8: 24040100 .word 0x24040100
  35763. 800f8dc: 24040000 .word 0x24040000
  35764. 800f8e0: 24001400 .word 0x24001400
  35765. 800f8e4: 080305f8 .word 0x080305f8
  35766. 800f8e8: 24001348 .word 0x24001348
  35767. 800f8ec: 2400134c .word 0x2400134c
  35768. 800f8f0: 0802c58c .word 0x0802c58c
  35769. 800f8f4: 0800fa69 .word 0x0800fa69
  35770. 800f8f8: 24000020 .word 0x24000020
  35771. 800f8fc: 24001438 .word 0x24001438
  35772. 0800f900 <low_level_output>:
  35773. * to become available since the stack doesn't retry to send a packet
  35774. * dropped because of memory failure (except for the TCP timers).
  35775. */
  35776. static err_t low_level_output(struct netif *netif, struct pbuf *p)
  35777. {
  35778. 800f900: b580 push {r7, lr}
  35779. 800f902: b092 sub sp, #72 @ 0x48
  35780. 800f904: af00 add r7, sp, #0
  35781. 800f906: 6078 str r0, [r7, #4]
  35782. 800f908: 6039 str r1, [r7, #0]
  35783. uint32_t i = 0U;
  35784. 800f90a: 2300 movs r3, #0
  35785. 800f90c: 647b str r3, [r7, #68] @ 0x44
  35786. struct pbuf *q = NULL;
  35787. 800f90e: 2300 movs r3, #0
  35788. 800f910: 643b str r3, [r7, #64] @ 0x40
  35789. err_t errval = ERR_OK;
  35790. 800f912: 2300 movs r3, #0
  35791. 800f914: f887 303f strb.w r3, [r7, #63] @ 0x3f
  35792. ETH_BufferTypeDef Txbuffer[ETH_TX_DESC_CNT] = {0};
  35793. 800f918: f107 030c add.w r3, r7, #12
  35794. 800f91c: 2230 movs r2, #48 @ 0x30
  35795. 800f91e: 2100 movs r1, #0
  35796. 800f920: 4618 mov r0, r3
  35797. 800f922: f019 ff85 bl 8029830 <memset>
  35798. memset(Txbuffer, 0 , ETH_TX_DESC_CNT*sizeof(ETH_BufferTypeDef));
  35799. 800f926: f107 030c add.w r3, r7, #12
  35800. 800f92a: 2230 movs r2, #48 @ 0x30
  35801. 800f92c: 2100 movs r1, #0
  35802. 800f92e: 4618 mov r0, r3
  35803. 800f930: f019 ff7e bl 8029830 <memset>
  35804. for(q = p; q != NULL; q = q->next)
  35805. 800f934: 683b ldr r3, [r7, #0]
  35806. 800f936: 643b str r3, [r7, #64] @ 0x40
  35807. 800f938: e045 b.n 800f9c6 <low_level_output+0xc6>
  35808. {
  35809. if(i >= ETH_TX_DESC_CNT)
  35810. 800f93a: 6c7b ldr r3, [r7, #68] @ 0x44
  35811. 800f93c: 2b03 cmp r3, #3
  35812. 800f93e: d902 bls.n 800f946 <low_level_output+0x46>
  35813. return ERR_IF;
  35814. 800f940: f06f 030b mvn.w r3, #11
  35815. 800f944: e06c b.n 800fa20 <low_level_output+0x120>
  35816. Txbuffer[i].buffer = q->payload;
  35817. 800f946: 6c3b ldr r3, [r7, #64] @ 0x40
  35818. 800f948: 6859 ldr r1, [r3, #4]
  35819. 800f94a: 6c7a ldr r2, [r7, #68] @ 0x44
  35820. 800f94c: 4613 mov r3, r2
  35821. 800f94e: 005b lsls r3, r3, #1
  35822. 800f950: 4413 add r3, r2
  35823. 800f952: 009b lsls r3, r3, #2
  35824. 800f954: 3348 adds r3, #72 @ 0x48
  35825. 800f956: 443b add r3, r7
  35826. 800f958: 3b3c subs r3, #60 @ 0x3c
  35827. 800f95a: 6019 str r1, [r3, #0]
  35828. Txbuffer[i].len = q->len;
  35829. 800f95c: 6c3b ldr r3, [r7, #64] @ 0x40
  35830. 800f95e: 895b ldrh r3, [r3, #10]
  35831. 800f960: 4619 mov r1, r3
  35832. 800f962: 6c7a ldr r2, [r7, #68] @ 0x44
  35833. 800f964: 4613 mov r3, r2
  35834. 800f966: 005b lsls r3, r3, #1
  35835. 800f968: 4413 add r3, r2
  35836. 800f96a: 009b lsls r3, r3, #2
  35837. 800f96c: 3348 adds r3, #72 @ 0x48
  35838. 800f96e: 443b add r3, r7
  35839. 800f970: 3b38 subs r3, #56 @ 0x38
  35840. 800f972: 6019 str r1, [r3, #0]
  35841. if(i>0)
  35842. 800f974: 6c7b ldr r3, [r7, #68] @ 0x44
  35843. 800f976: 2b00 cmp r3, #0
  35844. 800f978: d011 beq.n 800f99e <low_level_output+0x9e>
  35845. {
  35846. Txbuffer[i-1].next = &Txbuffer[i];
  35847. 800f97a: 6c7b ldr r3, [r7, #68] @ 0x44
  35848. 800f97c: 1e5a subs r2, r3, #1
  35849. 800f97e: f107 000c add.w r0, r7, #12
  35850. 800f982: 6c79 ldr r1, [r7, #68] @ 0x44
  35851. 800f984: 460b mov r3, r1
  35852. 800f986: 005b lsls r3, r3, #1
  35853. 800f988: 440b add r3, r1
  35854. 800f98a: 009b lsls r3, r3, #2
  35855. 800f98c: 18c1 adds r1, r0, r3
  35856. 800f98e: 4613 mov r3, r2
  35857. 800f990: 005b lsls r3, r3, #1
  35858. 800f992: 4413 add r3, r2
  35859. 800f994: 009b lsls r3, r3, #2
  35860. 800f996: 3348 adds r3, #72 @ 0x48
  35861. 800f998: 443b add r3, r7
  35862. 800f99a: 3b34 subs r3, #52 @ 0x34
  35863. 800f99c: 6019 str r1, [r3, #0]
  35864. }
  35865. if(q->next == NULL)
  35866. 800f99e: 6c3b ldr r3, [r7, #64] @ 0x40
  35867. 800f9a0: 681b ldr r3, [r3, #0]
  35868. 800f9a2: 2b00 cmp r3, #0
  35869. 800f9a4: d109 bne.n 800f9ba <low_level_output+0xba>
  35870. {
  35871. Txbuffer[i].next = NULL;
  35872. 800f9a6: 6c7a ldr r2, [r7, #68] @ 0x44
  35873. 800f9a8: 4613 mov r3, r2
  35874. 800f9aa: 005b lsls r3, r3, #1
  35875. 800f9ac: 4413 add r3, r2
  35876. 800f9ae: 009b lsls r3, r3, #2
  35877. 800f9b0: 3348 adds r3, #72 @ 0x48
  35878. 800f9b2: 443b add r3, r7
  35879. 800f9b4: 3b34 subs r3, #52 @ 0x34
  35880. 800f9b6: 2200 movs r2, #0
  35881. 800f9b8: 601a str r2, [r3, #0]
  35882. }
  35883. i++;
  35884. 800f9ba: 6c7b ldr r3, [r7, #68] @ 0x44
  35885. 800f9bc: 3301 adds r3, #1
  35886. 800f9be: 647b str r3, [r7, #68] @ 0x44
  35887. for(q = p; q != NULL; q = q->next)
  35888. 800f9c0: 6c3b ldr r3, [r7, #64] @ 0x40
  35889. 800f9c2: 681b ldr r3, [r3, #0]
  35890. 800f9c4: 643b str r3, [r7, #64] @ 0x40
  35891. 800f9c6: 6c3b ldr r3, [r7, #64] @ 0x40
  35892. 800f9c8: 2b00 cmp r3, #0
  35893. 800f9ca: d1b6 bne.n 800f93a <low_level_output+0x3a>
  35894. }
  35895. TxConfig.Length = p->tot_len;
  35896. 800f9cc: 683b ldr r3, [r7, #0]
  35897. 800f9ce: 891b ldrh r3, [r3, #8]
  35898. 800f9d0: 461a mov r2, r3
  35899. 800f9d2: 4b15 ldr r3, [pc, #84] @ (800fa28 <low_level_output+0x128>)
  35900. 800f9d4: 605a str r2, [r3, #4]
  35901. TxConfig.TxBuffer = Txbuffer;
  35902. 800f9d6: 4a14 ldr r2, [pc, #80] @ (800fa28 <low_level_output+0x128>)
  35903. 800f9d8: f107 030c add.w r3, r7, #12
  35904. 800f9dc: 6093 str r3, [r2, #8]
  35905. TxConfig.pData = p;
  35906. 800f9de: 4a12 ldr r2, [pc, #72] @ (800fa28 <low_level_output+0x128>)
  35907. 800f9e0: 683b ldr r3, [r7, #0]
  35908. 800f9e2: 6353 str r3, [r2, #52] @ 0x34
  35909. pbuf_ref(p);
  35910. 800f9e4: 6838 ldr r0, [r7, #0]
  35911. 800f9e6: f00a fbbf bl 801a168 <pbuf_ref>
  35912. #if 1
  35913. if (HAL_ETH_Transmit_IT(&heth, &TxConfig) == HAL_OK) {
  35914. 800f9ea: 490f ldr r1, [pc, #60] @ (800fa28 <low_level_output+0x128>)
  35915. 800f9ec: 480f ldr r0, [pc, #60] @ (800fa2c <low_level_output+0x12c>)
  35916. 800f9ee: f7f8 f88d bl 8007b0c <HAL_ETH_Transmit_IT>
  35917. 800f9f2: 4603 mov r3, r0
  35918. 800f9f4: 2b00 cmp r3, #0
  35919. 800f9f6: d10e bne.n 800fa16 <low_level_output+0x116>
  35920. while(osSemaphoreAcquire(TxPktSemaphore, TIME_WAITING_FOR_INPUT)!=osOK)
  35921. 800f9f8: bf00 nop
  35922. 800f9fa: 4b0d ldr r3, [pc, #52] @ (800fa30 <low_level_output+0x130>)
  35923. 800f9fc: 681b ldr r3, [r3, #0]
  35924. 800f9fe: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  35925. 800fa02: 4618 mov r0, r3
  35926. 800fa04: f000 ff10 bl 8010828 <osSemaphoreAcquire>
  35927. 800fa08: 4603 mov r3, r0
  35928. 800fa0a: 2b00 cmp r3, #0
  35929. 800fa0c: d1f5 bne.n 800f9fa <low_level_output+0xfa>
  35930. {
  35931. }
  35932. // osSemaphoreAcquire(TxPktSemaphore, pdMS_TO_TICKS(1000));
  35933. HAL_ETH_ReleaseTxPacket(&heth);
  35934. 800fa0e: 4807 ldr r0, [pc, #28] @ (800fa2c <low_level_output+0x12c>)
  35935. 800fa10: f7f8 fa03 bl 8007e1a <HAL_ETH_ReleaseTxPacket>
  35936. 800fa14: e002 b.n 800fa1c <low_level_output+0x11c>
  35937. } else {
  35938. pbuf_free(p);
  35939. 800fa16: 6838 ldr r0, [r7, #0]
  35940. 800fa18: f00a fb00 bl 801a01c <pbuf_free>
  35941. HAL_ETH_Transmit_IT(&heth, &TxConfig);
  35942. osSemaphoreAcquire(TxPktSemaphore, pdMS_TO_TICKS(100));
  35943. HAL_ETH_ReleaseTxPacket(&heth);
  35944. #endif
  35945. return errval;
  35946. 800fa1c: f997 303f ldrsb.w r3, [r7, #63] @ 0x3f
  35947. }
  35948. 800fa20: 4618 mov r0, r3
  35949. 800fa22: 3748 adds r7, #72 @ 0x48
  35950. 800fa24: 46bd mov sp, r7
  35951. 800fa26: bd80 pop {r7, pc}
  35952. 800fa28: 24001400 .word 0x24001400
  35953. 800fa2c: 24001350 .word 0x24001350
  35954. 800fa30: 2400134c .word 0x2400134c
  35955. 0800fa34 <low_level_input>:
  35956. * @param netif the lwip network interface structure for this ethernetif
  35957. * @return a pbuf filled with the received packet (including MAC header)
  35958. * NULL on memory error
  35959. */
  35960. static struct pbuf * low_level_input(struct netif *netif)
  35961. {
  35962. 800fa34: b580 push {r7, lr}
  35963. 800fa36: b084 sub sp, #16
  35964. 800fa38: af00 add r7, sp, #0
  35965. 800fa3a: 6078 str r0, [r7, #4]
  35966. struct pbuf *p = NULL;
  35967. 800fa3c: 2300 movs r3, #0
  35968. 800fa3e: 60fb str r3, [r7, #12]
  35969. if(RxAllocStatus == RX_ALLOC_OK)
  35970. 800fa40: 4b07 ldr r3, [pc, #28] @ (800fa60 <low_level_input+0x2c>)
  35971. 800fa42: 781b ldrb r3, [r3, #0]
  35972. 800fa44: 2b00 cmp r3, #0
  35973. 800fa46: d105 bne.n 800fa54 <low_level_input+0x20>
  35974. {
  35975. HAL_ETH_ReadData(&heth, (void **)&p);
  35976. 800fa48: f107 030c add.w r3, r7, #12
  35977. 800fa4c: 4619 mov r1, r3
  35978. 800fa4e: 4805 ldr r0, [pc, #20] @ (800fa64 <low_level_input+0x30>)
  35979. 800fa50: f7f8 f8ad bl 8007bae <HAL_ETH_ReadData>
  35980. }
  35981. return p;
  35982. 800fa54: 68fb ldr r3, [r7, #12]
  35983. }
  35984. 800fa56: 4618 mov r0, r3
  35985. 800fa58: 3710 adds r7, #16
  35986. 800fa5a: 46bd mov sp, r7
  35987. 800fa5c: bd80 pop {r7, pc}
  35988. 800fa5e: bf00 nop
  35989. 800fa60: 24001344 .word 0x24001344
  35990. 800fa64: 24001350 .word 0x24001350
  35991. 0800fa68 <ethernetif_input>:
  35992. * the appropriate input function is called.
  35993. *
  35994. * @param netif the lwip network interface structure for this ethernetif
  35995. */
  35996. void ethernetif_input(void* argument)
  35997. {
  35998. 800fa68: b580 push {r7, lr}
  35999. 800fa6a: b084 sub sp, #16
  36000. 800fa6c: af00 add r7, sp, #0
  36001. 800fa6e: 6078 str r0, [r7, #4]
  36002. struct pbuf *p = NULL;
  36003. 800fa70: 2300 movs r3, #0
  36004. 800fa72: 60fb str r3, [r7, #12]
  36005. struct netif *netif = (struct netif *) argument;
  36006. 800fa74: 687b ldr r3, [r7, #4]
  36007. 800fa76: 60bb str r3, [r7, #8]
  36008. for( ;; )
  36009. {
  36010. if (osSemaphoreAcquire(RxPktSemaphore, TIME_WAITING_FOR_INPUT) == osOK)
  36011. 800fa78: 4b0f ldr r3, [pc, #60] @ (800fab8 <ethernetif_input+0x50>)
  36012. 800fa7a: 681b ldr r3, [r3, #0]
  36013. 800fa7c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  36014. 800fa80: 4618 mov r0, r3
  36015. 800fa82: f000 fed1 bl 8010828 <osSemaphoreAcquire>
  36016. 800fa86: 4603 mov r3, r0
  36017. 800fa88: 2b00 cmp r3, #0
  36018. 800fa8a: d1f5 bne.n 800fa78 <ethernetif_input+0x10>
  36019. {
  36020. do
  36021. {
  36022. p = low_level_input( netif );
  36023. 800fa8c: 68b8 ldr r0, [r7, #8]
  36024. 800fa8e: f7ff ffd1 bl 800fa34 <low_level_input>
  36025. 800fa92: 60f8 str r0, [r7, #12]
  36026. if (p != NULL)
  36027. 800fa94: 68fb ldr r3, [r7, #12]
  36028. 800fa96: 2b00 cmp r3, #0
  36029. 800fa98: d00a beq.n 800fab0 <ethernetif_input+0x48>
  36030. {
  36031. if (netif->input( p, netif) != ERR_OK )
  36032. 800fa9a: 68bb ldr r3, [r7, #8]
  36033. 800fa9c: 691b ldr r3, [r3, #16]
  36034. 800fa9e: 68b9 ldr r1, [r7, #8]
  36035. 800faa0: 68f8 ldr r0, [r7, #12]
  36036. 800faa2: 4798 blx r3
  36037. 800faa4: 4603 mov r3, r0
  36038. 800faa6: 2b00 cmp r3, #0
  36039. 800faa8: d002 beq.n 800fab0 <ethernetif_input+0x48>
  36040. {
  36041. pbuf_free(p);
  36042. 800faaa: 68f8 ldr r0, [r7, #12]
  36043. 800faac: f00a fab6 bl 801a01c <pbuf_free>
  36044. }
  36045. }
  36046. } while(p!=NULL);
  36047. 800fab0: 68fb ldr r3, [r7, #12]
  36048. 800fab2: 2b00 cmp r3, #0
  36049. 800fab4: d1ea bne.n 800fa8c <ethernetif_input+0x24>
  36050. if (osSemaphoreAcquire(RxPktSemaphore, TIME_WAITING_FOR_INPUT) == osOK)
  36051. 800fab6: e7df b.n 800fa78 <ethernetif_input+0x10>
  36052. 800fab8: 24001348 .word 0x24001348
  36053. 0800fabc <ethernetif_init>:
  36054. * @return ERR_OK if the loopif is initialized
  36055. * ERR_MEM if private data couldn't be allocated
  36056. * any other err_t on error
  36057. */
  36058. err_t ethernetif_init(struct netif *netif)
  36059. {
  36060. 800fabc: b580 push {r7, lr}
  36061. 800fabe: b082 sub sp, #8
  36062. 800fac0: af00 add r7, sp, #0
  36063. 800fac2: 6078 str r0, [r7, #4]
  36064. LWIP_ASSERT("netif != NULL", (netif != NULL));
  36065. 800fac4: 687b ldr r3, [r7, #4]
  36066. 800fac6: 2b00 cmp r3, #0
  36067. 800fac8: d106 bne.n 800fad8 <ethernetif_init+0x1c>
  36068. 800faca: 4b0e ldr r3, [pc, #56] @ (800fb04 <ethernetif_init+0x48>)
  36069. 800facc: f240 2235 movw r2, #565 @ 0x235
  36070. 800fad0: 490d ldr r1, [pc, #52] @ (800fb08 <ethernetif_init+0x4c>)
  36071. 800fad2: 480e ldr r0, [pc, #56] @ (800fb0c <ethernetif_init+0x50>)
  36072. 800fad4: f019 fd1a bl 802950c <iprintf>
  36073. * The last argument should be replaced with your link speed, in units
  36074. * of bits per second.
  36075. */
  36076. // MIB2_INIT_NETIF(netif, snmp_ifType_ethernet_csmacd, LINK_SPEED_OF_YOUR_NETIF_IN_BPS);
  36077. netif->name[0] = IFNAME0;
  36078. 800fad8: 687b ldr r3, [r7, #4]
  36079. 800fada: 2273 movs r2, #115 @ 0x73
  36080. 800fadc: f883 2032 strb.w r2, [r3, #50] @ 0x32
  36081. netif->name[1] = IFNAME1;
  36082. 800fae0: 687b ldr r3, [r7, #4]
  36083. 800fae2: 2274 movs r2, #116 @ 0x74
  36084. 800fae4: f883 2033 strb.w r2, [r3, #51] @ 0x33
  36085. * is available...) */
  36086. #if LWIP_IPV4
  36087. #if LWIP_ARP || LWIP_ETHERNET
  36088. #if LWIP_ARP
  36089. netif->output = etharp_output;
  36090. 800fae8: 687b ldr r3, [r7, #4]
  36091. 800faea: 4a09 ldr r2, [pc, #36] @ (800fb10 <ethernetif_init+0x54>)
  36092. 800faec: 615a str r2, [r3, #20]
  36093. #if LWIP_IPV6
  36094. netif->output_ip6 = ethip6_output;
  36095. #endif /* LWIP_IPV6 */
  36096. netif->linkoutput = low_level_output;
  36097. 800faee: 687b ldr r3, [r7, #4]
  36098. 800faf0: 4a08 ldr r2, [pc, #32] @ (800fb14 <ethernetif_init+0x58>)
  36099. 800faf2: 619a str r2, [r3, #24]
  36100. /* initialize the hardware */
  36101. low_level_init(netif);
  36102. 800faf4: 6878 ldr r0, [r7, #4]
  36103. 800faf6: f7ff fdc9 bl 800f68c <low_level_init>
  36104. return ERR_OK;
  36105. 800fafa: 2300 movs r3, #0
  36106. }
  36107. 800fafc: 4618 mov r0, r3
  36108. 800fafe: 3708 adds r7, #8
  36109. 800fb00: 46bd mov sp, r7
  36110. 800fb02: bd80 pop {r7, pc}
  36111. 800fb04: 0802c594 .word 0x0802c594
  36112. 800fb08: 0802c5b0 .word 0x0802c5b0
  36113. 800fb0c: 0802c5c0 .word 0x0802c5c0
  36114. 800fb10: 08023b7d .word 0x08023b7d
  36115. 800fb14: 0800f901 .word 0x0800f901
  36116. 0800fb18 <pbuf_free_custom>:
  36117. * @brief Custom Rx pbuf free callback
  36118. * @param pbuf: pbuf to be freed
  36119. * @retval None
  36120. */
  36121. void pbuf_free_custom(struct pbuf *p)
  36122. {
  36123. 800fb18: b580 push {r7, lr}
  36124. 800fb1a: b084 sub sp, #16
  36125. 800fb1c: af00 add r7, sp, #0
  36126. 800fb1e: 6078 str r0, [r7, #4]
  36127. struct pbuf_custom* custom_pbuf = (struct pbuf_custom*)p;
  36128. 800fb20: 687b ldr r3, [r7, #4]
  36129. 800fb22: 60fb str r3, [r7, #12]
  36130. LWIP_MEMPOOL_FREE(RX_POOL, custom_pbuf);
  36131. 800fb24: 68f9 ldr r1, [r7, #12]
  36132. 800fb26: 4809 ldr r0, [pc, #36] @ (800fb4c <pbuf_free_custom+0x34>)
  36133. 800fb28: f009 fb66 bl 80191f8 <memp_free_pool>
  36134. /* If the Rx Buffer Pool was exhausted, signal the ethernetif_input task to
  36135. * call HAL_ETH_GetRxDataBuffer to rebuild the Rx descriptors. */
  36136. if (RxAllocStatus == RX_ALLOC_ERROR)
  36137. 800fb2c: 4b08 ldr r3, [pc, #32] @ (800fb50 <pbuf_free_custom+0x38>)
  36138. 800fb2e: 781b ldrb r3, [r3, #0]
  36139. 800fb30: 2b01 cmp r3, #1
  36140. 800fb32: d107 bne.n 800fb44 <pbuf_free_custom+0x2c>
  36141. {
  36142. RxAllocStatus = RX_ALLOC_OK;
  36143. 800fb34: 4b06 ldr r3, [pc, #24] @ (800fb50 <pbuf_free_custom+0x38>)
  36144. 800fb36: 2200 movs r2, #0
  36145. 800fb38: 701a strb r2, [r3, #0]
  36146. osSemaphoreRelease(RxPktSemaphore);
  36147. 800fb3a: 4b06 ldr r3, [pc, #24] @ (800fb54 <pbuf_free_custom+0x3c>)
  36148. 800fb3c: 681b ldr r3, [r3, #0]
  36149. 800fb3e: 4618 mov r0, r3
  36150. 800fb40: f000 fec4 bl 80108cc <osSemaphoreRelease>
  36151. }
  36152. }
  36153. 800fb44: bf00 nop
  36154. 800fb46: 3710 adds r7, #16
  36155. 800fb48: 46bd mov sp, r7
  36156. 800fb4a: bd80 pop {r7, pc}
  36157. 800fb4c: 080305f8 .word 0x080305f8
  36158. 800fb50: 24001344 .word 0x24001344
  36159. 800fb54: 24001348 .word 0x24001348
  36160. 0800fb58 <sys_now>:
  36161. * when LWIP_TIMERS == 1 and NO_SYS == 1
  36162. * @param None
  36163. * @retval Current Time value
  36164. */
  36165. u32_t sys_now(void)
  36166. {
  36167. 800fb58: b580 push {r7, lr}
  36168. 800fb5a: af00 add r7, sp, #0
  36169. return HAL_GetTick();
  36170. 800fb5c: f7f5 f818 bl 8004b90 <HAL_GetTick>
  36171. 800fb60: 4603 mov r3, r0
  36172. }
  36173. 800fb62: 4618 mov r0, r3
  36174. 800fb64: bd80 pop {r7, pc}
  36175. ...
  36176. 0800fb68 <HAL_ETH_MspInit>:
  36177. * @param ethHandle: ETH handle
  36178. * @retval None
  36179. */
  36180. void HAL_ETH_MspInit(ETH_HandleTypeDef* ethHandle)
  36181. {
  36182. 800fb68: b580 push {r7, lr}
  36183. 800fb6a: b08e sub sp, #56 @ 0x38
  36184. 800fb6c: af00 add r7, sp, #0
  36185. 800fb6e: 6078 str r0, [r7, #4]
  36186. GPIO_InitTypeDef GPIO_InitStruct = {0};
  36187. 800fb70: f107 0324 add.w r3, r7, #36 @ 0x24
  36188. 800fb74: 2200 movs r2, #0
  36189. 800fb76: 601a str r2, [r3, #0]
  36190. 800fb78: 605a str r2, [r3, #4]
  36191. 800fb7a: 609a str r2, [r3, #8]
  36192. 800fb7c: 60da str r2, [r3, #12]
  36193. 800fb7e: 611a str r2, [r3, #16]
  36194. if(ethHandle->Instance==ETH)
  36195. 800fb80: 687b ldr r3, [r7, #4]
  36196. 800fb82: 681b ldr r3, [r3, #0]
  36197. 800fb84: 4a4d ldr r2, [pc, #308] @ (800fcbc <HAL_ETH_MspInit+0x154>)
  36198. 800fb86: 4293 cmp r3, r2
  36199. 800fb88: f040 8093 bne.w 800fcb2 <HAL_ETH_MspInit+0x14a>
  36200. {
  36201. /* USER CODE BEGIN ETH_MspInit 0 */
  36202. /* USER CODE END ETH_MspInit 0 */
  36203. /* Enable Peripheral clock */
  36204. __HAL_RCC_ETH1MAC_CLK_ENABLE();
  36205. 800fb8c: 4b4c ldr r3, [pc, #304] @ (800fcc0 <HAL_ETH_MspInit+0x158>)
  36206. 800fb8e: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  36207. 800fb92: 4a4b ldr r2, [pc, #300] @ (800fcc0 <HAL_ETH_MspInit+0x158>)
  36208. 800fb94: f443 4300 orr.w r3, r3, #32768 @ 0x8000
  36209. 800fb98: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  36210. 800fb9c: 4b48 ldr r3, [pc, #288] @ (800fcc0 <HAL_ETH_MspInit+0x158>)
  36211. 800fb9e: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  36212. 800fba2: f403 4300 and.w r3, r3, #32768 @ 0x8000
  36213. 800fba6: 623b str r3, [r7, #32]
  36214. 800fba8: 6a3b ldr r3, [r7, #32]
  36215. __HAL_RCC_ETH1TX_CLK_ENABLE();
  36216. 800fbaa: 4b45 ldr r3, [pc, #276] @ (800fcc0 <HAL_ETH_MspInit+0x158>)
  36217. 800fbac: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  36218. 800fbb0: 4a43 ldr r2, [pc, #268] @ (800fcc0 <HAL_ETH_MspInit+0x158>)
  36219. 800fbb2: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  36220. 800fbb6: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  36221. 800fbba: 4b41 ldr r3, [pc, #260] @ (800fcc0 <HAL_ETH_MspInit+0x158>)
  36222. 800fbbc: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  36223. 800fbc0: f403 3380 and.w r3, r3, #65536 @ 0x10000
  36224. 800fbc4: 61fb str r3, [r7, #28]
  36225. 800fbc6: 69fb ldr r3, [r7, #28]
  36226. __HAL_RCC_ETH1RX_CLK_ENABLE();
  36227. 800fbc8: 4b3d ldr r3, [pc, #244] @ (800fcc0 <HAL_ETH_MspInit+0x158>)
  36228. 800fbca: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  36229. 800fbce: 4a3c ldr r2, [pc, #240] @ (800fcc0 <HAL_ETH_MspInit+0x158>)
  36230. 800fbd0: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  36231. 800fbd4: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  36232. 800fbd8: 4b39 ldr r3, [pc, #228] @ (800fcc0 <HAL_ETH_MspInit+0x158>)
  36233. 800fbda: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  36234. 800fbde: f403 3300 and.w r3, r3, #131072 @ 0x20000
  36235. 800fbe2: 61bb str r3, [r7, #24]
  36236. 800fbe4: 69bb ldr r3, [r7, #24]
  36237. __HAL_RCC_GPIOC_CLK_ENABLE();
  36238. 800fbe6: 4b36 ldr r3, [pc, #216] @ (800fcc0 <HAL_ETH_MspInit+0x158>)
  36239. 800fbe8: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  36240. 800fbec: 4a34 ldr r2, [pc, #208] @ (800fcc0 <HAL_ETH_MspInit+0x158>)
  36241. 800fbee: f043 0304 orr.w r3, r3, #4
  36242. 800fbf2: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  36243. 800fbf6: 4b32 ldr r3, [pc, #200] @ (800fcc0 <HAL_ETH_MspInit+0x158>)
  36244. 800fbf8: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  36245. 800fbfc: f003 0304 and.w r3, r3, #4
  36246. 800fc00: 617b str r3, [r7, #20]
  36247. 800fc02: 697b ldr r3, [r7, #20]
  36248. __HAL_RCC_GPIOA_CLK_ENABLE();
  36249. 800fc04: 4b2e ldr r3, [pc, #184] @ (800fcc0 <HAL_ETH_MspInit+0x158>)
  36250. 800fc06: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  36251. 800fc0a: 4a2d ldr r2, [pc, #180] @ (800fcc0 <HAL_ETH_MspInit+0x158>)
  36252. 800fc0c: f043 0301 orr.w r3, r3, #1
  36253. 800fc10: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  36254. 800fc14: 4b2a ldr r3, [pc, #168] @ (800fcc0 <HAL_ETH_MspInit+0x158>)
  36255. 800fc16: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  36256. 800fc1a: f003 0301 and.w r3, r3, #1
  36257. 800fc1e: 613b str r3, [r7, #16]
  36258. 800fc20: 693b ldr r3, [r7, #16]
  36259. __HAL_RCC_GPIOB_CLK_ENABLE();
  36260. 800fc22: 4b27 ldr r3, [pc, #156] @ (800fcc0 <HAL_ETH_MspInit+0x158>)
  36261. 800fc24: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  36262. 800fc28: 4a25 ldr r2, [pc, #148] @ (800fcc0 <HAL_ETH_MspInit+0x158>)
  36263. 800fc2a: f043 0302 orr.w r3, r3, #2
  36264. 800fc2e: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  36265. 800fc32: 4b23 ldr r3, [pc, #140] @ (800fcc0 <HAL_ETH_MspInit+0x158>)
  36266. 800fc34: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  36267. 800fc38: f003 0302 and.w r3, r3, #2
  36268. 800fc3c: 60fb str r3, [r7, #12]
  36269. 800fc3e: 68fb ldr r3, [r7, #12]
  36270. PB11 ------> ETH_TX_EN
  36271. PB12 ------> ETH_TXD0
  36272. PB13 ------> ETH_TXD1
  36273. PB8 ------> ETH_TXD3
  36274. */
  36275. GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3|GPIO_PIN_4
  36276. 800fc40: 233e movs r3, #62 @ 0x3e
  36277. 800fc42: 627b str r3, [r7, #36] @ 0x24
  36278. |GPIO_PIN_5;
  36279. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  36280. 800fc44: 2302 movs r3, #2
  36281. 800fc46: 62bb str r3, [r7, #40] @ 0x28
  36282. GPIO_InitStruct.Pull = GPIO_NOPULL;
  36283. 800fc48: 2300 movs r3, #0
  36284. 800fc4a: 62fb str r3, [r7, #44] @ 0x2c
  36285. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  36286. 800fc4c: 2303 movs r3, #3
  36287. 800fc4e: 633b str r3, [r7, #48] @ 0x30
  36288. GPIO_InitStruct.Alternate = GPIO_AF11_ETH;
  36289. 800fc50: 230b movs r3, #11
  36290. 800fc52: 637b str r3, [r7, #52] @ 0x34
  36291. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  36292. 800fc54: f107 0324 add.w r3, r7, #36 @ 0x24
  36293. 800fc58: 4619 mov r1, r3
  36294. 800fc5a: 481a ldr r0, [pc, #104] @ (800fcc4 <HAL_ETH_MspInit+0x15c>)
  36295. 800fc5c: f7f9 fac8 bl 80091f0 <HAL_GPIO_Init>
  36296. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3
  36297. 800fc60: 238f movs r3, #143 @ 0x8f
  36298. 800fc62: 627b str r3, [r7, #36] @ 0x24
  36299. |GPIO_PIN_7;
  36300. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  36301. 800fc64: 2302 movs r3, #2
  36302. 800fc66: 62bb str r3, [r7, #40] @ 0x28
  36303. GPIO_InitStruct.Pull = GPIO_NOPULL;
  36304. 800fc68: 2300 movs r3, #0
  36305. 800fc6a: 62fb str r3, [r7, #44] @ 0x2c
  36306. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  36307. 800fc6c: 2303 movs r3, #3
  36308. 800fc6e: 633b str r3, [r7, #48] @ 0x30
  36309. GPIO_InitStruct.Alternate = GPIO_AF11_ETH;
  36310. 800fc70: 230b movs r3, #11
  36311. 800fc72: 637b str r3, [r7, #52] @ 0x34
  36312. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  36313. 800fc74: f107 0324 add.w r3, r7, #36 @ 0x24
  36314. 800fc78: 4619 mov r1, r3
  36315. 800fc7a: 4813 ldr r0, [pc, #76] @ (800fcc8 <HAL_ETH_MspInit+0x160>)
  36316. 800fc7c: f7f9 fab8 bl 80091f0 <HAL_GPIO_Init>
  36317. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_11|GPIO_PIN_12
  36318. 800fc80: f643 1303 movw r3, #14595 @ 0x3903
  36319. 800fc84: 627b str r3, [r7, #36] @ 0x24
  36320. |GPIO_PIN_13|GPIO_PIN_8;
  36321. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  36322. 800fc86: 2302 movs r3, #2
  36323. 800fc88: 62bb str r3, [r7, #40] @ 0x28
  36324. GPIO_InitStruct.Pull = GPIO_NOPULL;
  36325. 800fc8a: 2300 movs r3, #0
  36326. 800fc8c: 62fb str r3, [r7, #44] @ 0x2c
  36327. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  36328. 800fc8e: 2303 movs r3, #3
  36329. 800fc90: 633b str r3, [r7, #48] @ 0x30
  36330. GPIO_InitStruct.Alternate = GPIO_AF11_ETH;
  36331. 800fc92: 230b movs r3, #11
  36332. 800fc94: 637b str r3, [r7, #52] @ 0x34
  36333. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  36334. 800fc96: f107 0324 add.w r3, r7, #36 @ 0x24
  36335. 800fc9a: 4619 mov r1, r3
  36336. 800fc9c: 480b ldr r0, [pc, #44] @ (800fccc <HAL_ETH_MspInit+0x164>)
  36337. 800fc9e: f7f9 faa7 bl 80091f0 <HAL_GPIO_Init>
  36338. /* Peripheral interrupt init */
  36339. HAL_NVIC_SetPriority(ETH_IRQn, 5, 0);
  36340. 800fca2: 2200 movs r2, #0
  36341. 800fca4: 2105 movs r1, #5
  36342. 800fca6: 203d movs r0, #61 @ 0x3d
  36343. 800fca8: f7f5 f87a bl 8004da0 <HAL_NVIC_SetPriority>
  36344. HAL_NVIC_EnableIRQ(ETH_IRQn);
  36345. 800fcac: 203d movs r0, #61 @ 0x3d
  36346. 800fcae: f7f5 f891 bl 8004dd4 <HAL_NVIC_EnableIRQ>
  36347. /* USER CODE BEGIN ETH_MspInit 1 */
  36348. /* USER CODE END ETH_MspInit 1 */
  36349. }
  36350. }
  36351. 800fcb2: bf00 nop
  36352. 800fcb4: 3738 adds r7, #56 @ 0x38
  36353. 800fcb6: 46bd mov sp, r7
  36354. 800fcb8: bd80 pop {r7, pc}
  36355. 800fcba: bf00 nop
  36356. 800fcbc: 40028000 .word 0x40028000
  36357. 800fcc0: 58024400 .word 0x58024400
  36358. 800fcc4: 58020800 .word 0x58020800
  36359. 800fcc8: 58020000 .word 0x58020000
  36360. 800fccc: 58020400 .word 0x58020400
  36361. 0800fcd0 <ETH_PHY_IO_Init>:
  36362. * @brief Initializes the MDIO interface GPIO and clocks.
  36363. * @param None
  36364. * @retval 0 if OK, -1 if ERROR
  36365. */
  36366. int32_t ETH_PHY_IO_Init(void)
  36367. {
  36368. 800fcd0: b580 push {r7, lr}
  36369. 800fcd2: af00 add r7, sp, #0
  36370. /* We assume that MDIO GPIO configuration is already done
  36371. in the ETH_MspInit() else it should be done here
  36372. */
  36373. /* Configure the MDIO Clock */
  36374. HAL_ETH_SetMDIOClockRange(&heth);
  36375. 800fcd4: 4802 ldr r0, [pc, #8] @ (800fce0 <ETH_PHY_IO_Init+0x10>)
  36376. 800fcd6: f7f8 fcab bl 8008630 <HAL_ETH_SetMDIOClockRange>
  36377. return 0;
  36378. 800fcda: 2300 movs r3, #0
  36379. }
  36380. 800fcdc: 4618 mov r0, r3
  36381. 800fcde: bd80 pop {r7, pc}
  36382. 800fce0: 24001350 .word 0x24001350
  36383. 0800fce4 <ETH_PHY_IO_DeInit>:
  36384. * @brief De-Initializes the MDIO interface .
  36385. * @param None
  36386. * @retval 0 if OK, -1 if ERROR
  36387. */
  36388. int32_t ETH_PHY_IO_DeInit (void)
  36389. {
  36390. 800fce4: b480 push {r7}
  36391. 800fce6: af00 add r7, sp, #0
  36392. return 0;
  36393. 800fce8: 2300 movs r3, #0
  36394. }
  36395. 800fcea: 4618 mov r0, r3
  36396. 800fcec: 46bd mov sp, r7
  36397. 800fcee: f85d 7b04 ldr.w r7, [sp], #4
  36398. 800fcf2: 4770 bx lr
  36399. 0800fcf4 <ETH_PHY_IO_ReadReg>:
  36400. * @param RegAddr: PHY register address
  36401. * @param pRegVal: pointer to hold the register value
  36402. * @retval 0 if OK -1 if Error
  36403. */
  36404. int32_t ETH_PHY_IO_ReadReg(uint32_t DevAddr, uint32_t RegAddr, uint32_t *pRegVal)
  36405. {
  36406. 800fcf4: b580 push {r7, lr}
  36407. 800fcf6: b084 sub sp, #16
  36408. 800fcf8: af00 add r7, sp, #0
  36409. 800fcfa: 60f8 str r0, [r7, #12]
  36410. 800fcfc: 60b9 str r1, [r7, #8]
  36411. 800fcfe: 607a str r2, [r7, #4]
  36412. if(HAL_ETH_ReadPHYRegister(&heth, DevAddr, RegAddr, pRegVal) != HAL_OK)
  36413. 800fd00: 687b ldr r3, [r7, #4]
  36414. 800fd02: 68ba ldr r2, [r7, #8]
  36415. 800fd04: 68f9 ldr r1, [r7, #12]
  36416. 800fd06: 4807 ldr r0, [pc, #28] @ (800fd24 <ETH_PHY_IO_ReadReg+0x30>)
  36417. 800fd08: f7f8 f9fc bl 8008104 <HAL_ETH_ReadPHYRegister>
  36418. 800fd0c: 4603 mov r3, r0
  36419. 800fd0e: 2b00 cmp r3, #0
  36420. 800fd10: d002 beq.n 800fd18 <ETH_PHY_IO_ReadReg+0x24>
  36421. {
  36422. return -1;
  36423. 800fd12: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  36424. 800fd16: e000 b.n 800fd1a <ETH_PHY_IO_ReadReg+0x26>
  36425. }
  36426. return 0;
  36427. 800fd18: 2300 movs r3, #0
  36428. }
  36429. 800fd1a: 4618 mov r0, r3
  36430. 800fd1c: 3710 adds r7, #16
  36431. 800fd1e: 46bd mov sp, r7
  36432. 800fd20: bd80 pop {r7, pc}
  36433. 800fd22: bf00 nop
  36434. 800fd24: 24001350 .word 0x24001350
  36435. 0800fd28 <ETH_PHY_IO_WriteReg>:
  36436. * @param RegAddr: PHY register address
  36437. * @param RegVal: Value to be written
  36438. * @retval 0 if OK -1 if Error
  36439. */
  36440. int32_t ETH_PHY_IO_WriteReg(uint32_t DevAddr, uint32_t RegAddr, uint32_t RegVal)
  36441. {
  36442. 800fd28: b580 push {r7, lr}
  36443. 800fd2a: b084 sub sp, #16
  36444. 800fd2c: af00 add r7, sp, #0
  36445. 800fd2e: 60f8 str r0, [r7, #12]
  36446. 800fd30: 60b9 str r1, [r7, #8]
  36447. 800fd32: 607a str r2, [r7, #4]
  36448. if(HAL_ETH_WritePHYRegister(&heth, DevAddr, RegAddr, RegVal) != HAL_OK)
  36449. 800fd34: 687b ldr r3, [r7, #4]
  36450. 800fd36: 68ba ldr r2, [r7, #8]
  36451. 800fd38: 68f9 ldr r1, [r7, #12]
  36452. 800fd3a: 4807 ldr r0, [pc, #28] @ (800fd58 <ETH_PHY_IO_WriteReg+0x30>)
  36453. 800fd3c: f7f8 fa36 bl 80081ac <HAL_ETH_WritePHYRegister>
  36454. 800fd40: 4603 mov r3, r0
  36455. 800fd42: 2b00 cmp r3, #0
  36456. 800fd44: d002 beq.n 800fd4c <ETH_PHY_IO_WriteReg+0x24>
  36457. {
  36458. return -1;
  36459. 800fd46: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  36460. 800fd4a: e000 b.n 800fd4e <ETH_PHY_IO_WriteReg+0x26>
  36461. }
  36462. return 0;
  36463. 800fd4c: 2300 movs r3, #0
  36464. }
  36465. 800fd4e: 4618 mov r0, r3
  36466. 800fd50: 3710 adds r7, #16
  36467. 800fd52: 46bd mov sp, r7
  36468. 800fd54: bd80 pop {r7, pc}
  36469. 800fd56: bf00 nop
  36470. 800fd58: 24001350 .word 0x24001350
  36471. 0800fd5c <ETH_PHY_IO_GetTick>:
  36472. /**
  36473. * @brief Get the time in millisecons used for internal PHY driver process.
  36474. * @retval Time value
  36475. */
  36476. int32_t ETH_PHY_IO_GetTick(void)
  36477. {
  36478. 800fd5c: b580 push {r7, lr}
  36479. 800fd5e: af00 add r7, sp, #0
  36480. return HAL_GetTick();
  36481. 800fd60: f7f4 ff16 bl 8004b90 <HAL_GetTick>
  36482. 800fd64: 4603 mov r3, r0
  36483. }
  36484. 800fd66: 4618 mov r0, r3
  36485. 800fd68: bd80 pop {r7, pc}
  36486. ...
  36487. 0800fd6c <ethernet_link_thread>:
  36488. /**
  36489. * @brief Check the ETH link state then update ETH driver and netif link accordingly.
  36490. * @retval None
  36491. */
  36492. void ethernet_link_thread(void* argument)
  36493. {
  36494. 800fd6c: b580 push {r7, lr}
  36495. 800fd6e: b0a2 sub sp, #136 @ 0x88
  36496. 800fd70: af00 add r7, sp, #0
  36497. 800fd72: 6078 str r0, [r7, #4]
  36498. ETH_MACConfigTypeDef MACConf = {0};
  36499. 800fd74: f107 0310 add.w r3, r7, #16
  36500. 800fd78: 2264 movs r2, #100 @ 0x64
  36501. 800fd7a: 2100 movs r1, #0
  36502. 800fd7c: 4618 mov r0, r3
  36503. 800fd7e: f019 fd57 bl 8029830 <memset>
  36504. int32_t PHYLinkState = 0;
  36505. 800fd82: 2300 movs r3, #0
  36506. 800fd84: 67bb str r3, [r7, #120] @ 0x78
  36507. uint32_t linkchanged = 0U, speed = 0U, duplex = 0U;
  36508. 800fd86: 2300 movs r3, #0
  36509. 800fd88: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  36510. 800fd8c: 2300 movs r3, #0
  36511. 800fd8e: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  36512. 800fd92: 2300 movs r3, #0
  36513. 800fd94: 67fb str r3, [r7, #124] @ 0x7c
  36514. struct netif *netif = (struct netif *) argument;
  36515. 800fd96: 687b ldr r3, [r7, #4]
  36516. 800fd98: 677b str r3, [r7, #116] @ 0x74
  36517. /* USER CODE BEGIN ETH link init */
  36518. #if USE_DHCP
  36519. enum dhcp_states DHCP_state = DHCP_START;
  36520. 800fd9a: 2301 movs r3, #1
  36521. 800fd9c: 73fb strb r3, [r7, #15]
  36522. // LOCK_TCPIP_CORE();
  36523. /* USER CODE END ETH link init */
  36524. for(;;)
  36525. {
  36526. PHYLinkState = DP83848_GetLinkState(&DP83848);
  36527. 800fd9e: 484a ldr r0, [pc, #296] @ (800fec8 <ethernet_link_thread+0x15c>)
  36528. 800fda0: f7f4 fe1e bl 80049e0 <DP83848_GetLinkState>
  36529. 800fda4: 67b8 str r0, [r7, #120] @ 0x78
  36530. if(netif_is_link_up(netif) && (PHYLinkState <= DP83848_STATUS_LINK_DOWN))
  36531. 800fda6: 6f7b ldr r3, [r7, #116] @ 0x74
  36532. 800fda8: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  36533. 800fdac: 089b lsrs r3, r3, #2
  36534. 800fdae: f003 0301 and.w r3, r3, #1
  36535. 800fdb2: b2db uxtb r3, r3
  36536. 800fdb4: 2b00 cmp r3, #0
  36537. 800fdb6: d013 beq.n 800fde0 <ethernet_link_thread+0x74>
  36538. 800fdb8: 6fbb ldr r3, [r7, #120] @ 0x78
  36539. 800fdba: 2b01 cmp r3, #1
  36540. 800fdbc: dc10 bgt.n 800fde0 <ethernet_link_thread+0x74>
  36541. {
  36542. HAL_ETH_Stop_IT(&heth);
  36543. 800fdbe: 4843 ldr r0, [pc, #268] @ (800fecc <ethernet_link_thread+0x160>)
  36544. 800fdc0: f7f7 fe2c bl 8007a1c <HAL_ETH_Stop_IT>
  36545. LOCK_TCPIP_CORE();
  36546. 800fdc4: f000 f936 bl 8010034 <sys_lock_tcpip_core>
  36547. netif_set_down(netif);
  36548. 800fdc8: 6f78 ldr r0, [r7, #116] @ 0x74
  36549. 800fdca: f009 fca7 bl 801971c <netif_set_down>
  36550. netif_set_link_down(netif);
  36551. 800fdce: 6f78 ldr r0, [r7, #116] @ 0x74
  36552. 800fdd0: f009 fd12 bl 80197f8 <netif_set_link_down>
  36553. UNLOCK_TCPIP_CORE();
  36554. 800fdd4: f000 f93e bl 8010054 <sys_unlock_tcpip_core>
  36555. printf("Link down...\r\n");
  36556. 800fdd8: 483d ldr r0, [pc, #244] @ (800fed0 <ethernet_link_thread+0x164>)
  36557. 800fdda: f019 fbff bl 80295dc <puts>
  36558. 800fdde: e067 b.n 800feb0 <ethernet_link_thread+0x144>
  36559. }
  36560. else if(!netif_is_link_up(netif) && (PHYLinkState > DP83848_STATUS_LINK_DOWN))
  36561. 800fde0: 6f7b ldr r3, [r7, #116] @ 0x74
  36562. 800fde2: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  36563. 800fde6: f003 0304 and.w r3, r3, #4
  36564. 800fdea: 2b00 cmp r3, #0
  36565. 800fdec: d160 bne.n 800feb0 <ethernet_link_thread+0x144>
  36566. 800fdee: 6fbb ldr r3, [r7, #120] @ 0x78
  36567. 800fdf0: 2b01 cmp r3, #1
  36568. 800fdf2: dd5d ble.n 800feb0 <ethernet_link_thread+0x144>
  36569. {
  36570. switch (PHYLinkState)
  36571. 800fdf4: 6fbb ldr r3, [r7, #120] @ 0x78
  36572. 800fdf6: 3b02 subs r3, #2
  36573. 800fdf8: 2b03 cmp r3, #3
  36574. 800fdfa: d833 bhi.n 800fe64 <ethernet_link_thread+0xf8>
  36575. 800fdfc: a201 add r2, pc, #4 @ (adr r2, 800fe04 <ethernet_link_thread+0x98>)
  36576. 800fdfe: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  36577. 800fe02: bf00 nop
  36578. 800fe04: 0800fe15 .word 0x0800fe15
  36579. 800fe08: 0800fe2b .word 0x0800fe2b
  36580. 800fe0c: 0800fe3f .word 0x0800fe3f
  36581. 800fe10: 0800fe53 .word 0x0800fe53
  36582. {
  36583. case DP83848_STATUS_100MBITS_FULLDUPLEX:
  36584. duplex = ETH_FULLDUPLEX_MODE;
  36585. 800fe14: f44f 5300 mov.w r3, #8192 @ 0x2000
  36586. 800fe18: 67fb str r3, [r7, #124] @ 0x7c
  36587. speed = ETH_SPEED_100M;
  36588. 800fe1a: f44f 4380 mov.w r3, #16384 @ 0x4000
  36589. 800fe1e: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  36590. linkchanged = 1;
  36591. 800fe22: 2301 movs r3, #1
  36592. 800fe24: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  36593. break;
  36594. 800fe28: e01d b.n 800fe66 <ethernet_link_thread+0xfa>
  36595. case DP83848_STATUS_100MBITS_HALFDUPLEX:
  36596. duplex = ETH_HALFDUPLEX_MODE;
  36597. 800fe2a: 2300 movs r3, #0
  36598. 800fe2c: 67fb str r3, [r7, #124] @ 0x7c
  36599. speed = ETH_SPEED_100M;
  36600. 800fe2e: f44f 4380 mov.w r3, #16384 @ 0x4000
  36601. 800fe32: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  36602. linkchanged = 1;
  36603. 800fe36: 2301 movs r3, #1
  36604. 800fe38: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  36605. break;
  36606. 800fe3c: e013 b.n 800fe66 <ethernet_link_thread+0xfa>
  36607. case DP83848_STATUS_10MBITS_FULLDUPLEX:
  36608. duplex = ETH_FULLDUPLEX_MODE;
  36609. 800fe3e: f44f 5300 mov.w r3, #8192 @ 0x2000
  36610. 800fe42: 67fb str r3, [r7, #124] @ 0x7c
  36611. speed = ETH_SPEED_10M;
  36612. 800fe44: 2300 movs r3, #0
  36613. 800fe46: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  36614. linkchanged = 1;
  36615. 800fe4a: 2301 movs r3, #1
  36616. 800fe4c: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  36617. break;
  36618. 800fe50: e009 b.n 800fe66 <ethernet_link_thread+0xfa>
  36619. case DP83848_STATUS_10MBITS_HALFDUPLEX:
  36620. duplex = ETH_HALFDUPLEX_MODE;
  36621. 800fe52: 2300 movs r3, #0
  36622. 800fe54: 67fb str r3, [r7, #124] @ 0x7c
  36623. speed = ETH_SPEED_10M;
  36624. 800fe56: 2300 movs r3, #0
  36625. 800fe58: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  36626. linkchanged = 1;
  36627. 800fe5c: 2301 movs r3, #1
  36628. 800fe5e: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  36629. break;
  36630. 800fe62: e000 b.n 800fe66 <ethernet_link_thread+0xfa>
  36631. default:
  36632. break;
  36633. 800fe64: bf00 nop
  36634. }
  36635. if(linkchanged)
  36636. 800fe66: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  36637. 800fe6a: 2b00 cmp r3, #0
  36638. 800fe6c: d020 beq.n 800feb0 <ethernet_link_thread+0x144>
  36639. {
  36640. /* Get MAC Config MAC */
  36641. HAL_ETH_GetMACConfig(&heth, &MACConf);
  36642. 800fe6e: f107 0310 add.w r3, r7, #16
  36643. 800fe72: 4619 mov r1, r3
  36644. 800fe74: 4815 ldr r0, [pc, #84] @ (800fecc <ethernet_link_thread+0x160>)
  36645. 800fe76: f7f8 f9ed bl 8008254 <HAL_ETH_GetMACConfig>
  36646. MACConf.DuplexMode = duplex;
  36647. 800fe7a: 6ffb ldr r3, [r7, #124] @ 0x7c
  36648. 800fe7c: 62bb str r3, [r7, #40] @ 0x28
  36649. MACConf.Speed = speed;
  36650. 800fe7e: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  36651. 800fe82: 627b str r3, [r7, #36] @ 0x24
  36652. HAL_ETH_SetMACConfig(&heth, &MACConf);
  36653. 800fe84: f107 0310 add.w r3, r7, #16
  36654. 800fe88: 4619 mov r1, r3
  36655. 800fe8a: 4810 ldr r0, [pc, #64] @ (800fecc <ethernet_link_thread+0x160>)
  36656. 800fe8c: f7f8 fbb6 bl 80085fc <HAL_ETH_SetMACConfig>
  36657. HAL_ETH_Start_IT(&heth);
  36658. 800fe90: 480e ldr r0, [pc, #56] @ (800fecc <ethernet_link_thread+0x160>)
  36659. 800fe92: f7f7 fd4f bl 8007934 <HAL_ETH_Start_IT>
  36660. LOCK_TCPIP_CORE();
  36661. 800fe96: f000 f8cd bl 8010034 <sys_lock_tcpip_core>
  36662. netif_set_up(netif);
  36663. 800fe9a: 6f78 ldr r0, [r7, #116] @ 0x74
  36664. 800fe9c: f009 fbd0 bl 8019640 <netif_set_up>
  36665. netif_set_link_up(netif);
  36666. 800fea0: 6f78 ldr r0, [r7, #116] @ 0x74
  36667. 800fea2: f009 fc6f bl 8019784 <netif_set_link_up>
  36668. UNLOCK_TCPIP_CORE();
  36669. 800fea6: f000 f8d5 bl 8010054 <sys_unlock_tcpip_core>
  36670. printf("Link up...\r\n");
  36671. 800feaa: 480a ldr r0, [pc, #40] @ (800fed4 <ethernet_link_thread+0x168>)
  36672. 800feac: f019 fb96 bl 80295dc <puts>
  36673. }
  36674. }
  36675. /* USER CODE BEGIN ETH link Thread core code for User BSP */
  36676. #if USE_DHCP
  36677. dhcp_sm(netif, &DHCP_state);
  36678. 800feb0: f107 030f add.w r3, r7, #15
  36679. 800feb4: 4619 mov r1, r3
  36680. 800feb6: 6f78 ldr r0, [r7, #116] @ 0x74
  36681. 800feb8: f000 f922 bl 8010100 <dhcp_sm>
  36682. #endif
  36683. /* ETH_CODE: workaround to call LOCK_TCPIP_CORE when accessing netif link functions*/
  36684. // UNLOCK_TCPIP_CORE();
  36685. osDelay(pdMS_TO_TICKS(500));
  36686. 800febc: f44f 70fa mov.w r0, #500 @ 0x1f4
  36687. 800fec0: f000 faff bl 80104c2 <osDelay>
  36688. // LOCK_TCPIP_CORE();
  36689. continue; /* skip next osDelay */
  36690. 800fec4: bf00 nop
  36691. PHYLinkState = DP83848_GetLinkState(&DP83848);
  36692. 800fec6: e76a b.n 800fd9e <ethernet_link_thread+0x32>
  36693. 800fec8: 24001438 .word 0x24001438
  36694. 800fecc: 24001350 .word 0x24001350
  36695. 800fed0: 0802c5e8 .word 0x0802c5e8
  36696. 800fed4: 0802c5f8 .word 0x0802c5f8
  36697. 0800fed8 <ethernetif_notify_conn_changed>:
  36698. * @brief This function notify user about link status changement.
  36699. * @param netif: the network interface
  36700. * @retval None
  36701. */
  36702. __weak void ethernetif_notify_conn_changed(struct netif *netif)
  36703. {
  36704. 800fed8: b480 push {r7}
  36705. 800feda: b083 sub sp, #12
  36706. 800fedc: af00 add r7, sp, #0
  36707. 800fede: 6078 str r0, [r7, #4]
  36708. /* NOTE : This is function could be implemented in user file
  36709. when the callback is needed,
  36710. */
  36711. }
  36712. 800fee0: bf00 nop
  36713. 800fee2: 370c adds r7, #12
  36714. 800fee4: 46bd mov sp, r7
  36715. 800fee6: f85d 7b04 ldr.w r7, [sp], #4
  36716. 800feea: 4770 bx lr
  36717. 0800feec <HAL_ETH_RxAllocateCallback>:
  36718. void HAL_ETH_RxAllocateCallback(uint8_t **buff)
  36719. {
  36720. 800feec: b580 push {r7, lr}
  36721. 800feee: b086 sub sp, #24
  36722. 800fef0: af02 add r7, sp, #8
  36723. 800fef2: 6078 str r0, [r7, #4]
  36724. /* USER CODE BEGIN HAL ETH RxAllocateCallback */
  36725. struct pbuf_custom *p = LWIP_MEMPOOL_ALLOC(RX_POOL);
  36726. 800fef4: 4812 ldr r0, [pc, #72] @ (800ff40 <HAL_ETH_RxAllocateCallback+0x54>)
  36727. 800fef6: f009 f90b bl 8019110 <memp_malloc_pool>
  36728. 800fefa: 60f8 str r0, [r7, #12]
  36729. if (p)
  36730. 800fefc: 68fb ldr r3, [r7, #12]
  36731. 800fefe: 2b00 cmp r3, #0
  36732. 800ff00: d014 beq.n 800ff2c <HAL_ETH_RxAllocateCallback+0x40>
  36733. {
  36734. /* Get the buff from the struct pbuf address. */
  36735. *buff = (uint8_t *)p + offsetof(RxBuff_t, buff);
  36736. 800ff02: 68fb ldr r3, [r7, #12]
  36737. 800ff04: f103 0220 add.w r2, r3, #32
  36738. 800ff08: 687b ldr r3, [r7, #4]
  36739. 800ff0a: 601a str r2, [r3, #0]
  36740. p->custom_free_function = pbuf_free_custom;
  36741. 800ff0c: 68fb ldr r3, [r7, #12]
  36742. 800ff0e: 4a0d ldr r2, [pc, #52] @ (800ff44 <HAL_ETH_RxAllocateCallback+0x58>)
  36743. 800ff10: 611a str r2, [r3, #16]
  36744. /* Initialize the struct pbuf.
  36745. * This must be performed whenever a buffer's allocated because it may be
  36746. * changed by lwIP or the app, e.g., pbuf_free decrements ref. */
  36747. pbuf_alloced_custom(PBUF_RAW, 0, PBUF_REF, p, *buff, ETH_RX_BUFFER_SIZE);
  36748. 800ff12: 687b ldr r3, [r7, #4]
  36749. 800ff14: 681b ldr r3, [r3, #0]
  36750. 800ff16: f44f 62c0 mov.w r2, #1536 @ 0x600
  36751. 800ff1a: 9201 str r2, [sp, #4]
  36752. 800ff1c: 9300 str r3, [sp, #0]
  36753. 800ff1e: 68fb ldr r3, [r7, #12]
  36754. 800ff20: 2241 movs r2, #65 @ 0x41
  36755. 800ff22: 2100 movs r1, #0
  36756. 800ff24: 2000 movs r0, #0
  36757. 800ff26: f009 fe8f bl 8019c48 <pbuf_alloced_custom>
  36758. {
  36759. RxAllocStatus = RX_ALLOC_ERROR;
  36760. *buff = NULL;
  36761. }
  36762. /* USER CODE END HAL ETH RxAllocateCallback */
  36763. }
  36764. 800ff2a: e005 b.n 800ff38 <HAL_ETH_RxAllocateCallback+0x4c>
  36765. RxAllocStatus = RX_ALLOC_ERROR;
  36766. 800ff2c: 4b06 ldr r3, [pc, #24] @ (800ff48 <HAL_ETH_RxAllocateCallback+0x5c>)
  36767. 800ff2e: 2201 movs r2, #1
  36768. 800ff30: 701a strb r2, [r3, #0]
  36769. *buff = NULL;
  36770. 800ff32: 687b ldr r3, [r7, #4]
  36771. 800ff34: 2200 movs r2, #0
  36772. 800ff36: 601a str r2, [r3, #0]
  36773. }
  36774. 800ff38: bf00 nop
  36775. 800ff3a: 3710 adds r7, #16
  36776. 800ff3c: 46bd mov sp, r7
  36777. 800ff3e: bd80 pop {r7, pc}
  36778. 800ff40: 080305f8 .word 0x080305f8
  36779. 800ff44: 0800fb19 .word 0x0800fb19
  36780. 800ff48: 24001344 .word 0x24001344
  36781. 0800ff4c <HAL_ETH_RxLinkCallback>:
  36782. void HAL_ETH_RxLinkCallback(void **pStart, void **pEnd, uint8_t *buff, uint16_t Length)
  36783. {
  36784. 800ff4c: b480 push {r7}
  36785. 800ff4e: b08d sub sp, #52 @ 0x34
  36786. 800ff50: af00 add r7, sp, #0
  36787. 800ff52: 60f8 str r0, [r7, #12]
  36788. 800ff54: 60b9 str r1, [r7, #8]
  36789. 800ff56: 607a str r2, [r7, #4]
  36790. 800ff58: 807b strh r3, [r7, #2]
  36791. /* USER CODE BEGIN HAL ETH RxLinkCallback */
  36792. struct pbuf **ppStart = (struct pbuf **)pStart;
  36793. 800ff5a: 68fb ldr r3, [r7, #12]
  36794. 800ff5c: 62bb str r3, [r7, #40] @ 0x28
  36795. struct pbuf **ppEnd = (struct pbuf **)pEnd;
  36796. 800ff5e: 68bb ldr r3, [r7, #8]
  36797. 800ff60: 627b str r3, [r7, #36] @ 0x24
  36798. struct pbuf *p = NULL;
  36799. 800ff62: 2300 movs r3, #0
  36800. 800ff64: 62fb str r3, [r7, #44] @ 0x2c
  36801. /* Get the struct pbuf from the buff address. */
  36802. p = (struct pbuf *)(buff - offsetof(RxBuff_t, buff));
  36803. 800ff66: 687b ldr r3, [r7, #4]
  36804. 800ff68: 3b20 subs r3, #32
  36805. 800ff6a: 62fb str r3, [r7, #44] @ 0x2c
  36806. p->next = NULL;
  36807. 800ff6c: 6afb ldr r3, [r7, #44] @ 0x2c
  36808. 800ff6e: 2200 movs r2, #0
  36809. 800ff70: 601a str r2, [r3, #0]
  36810. p->tot_len = 0;
  36811. 800ff72: 6afb ldr r3, [r7, #44] @ 0x2c
  36812. 800ff74: 2200 movs r2, #0
  36813. 800ff76: 811a strh r2, [r3, #8]
  36814. p->len = Length;
  36815. 800ff78: 6afb ldr r3, [r7, #44] @ 0x2c
  36816. 800ff7a: 887a ldrh r2, [r7, #2]
  36817. 800ff7c: 815a strh r2, [r3, #10]
  36818. /* Chain the buffer. */
  36819. if (!*ppStart)
  36820. 800ff7e: 6abb ldr r3, [r7, #40] @ 0x28
  36821. 800ff80: 681b ldr r3, [r3, #0]
  36822. 800ff82: 2b00 cmp r3, #0
  36823. 800ff84: d103 bne.n 800ff8e <HAL_ETH_RxLinkCallback+0x42>
  36824. {
  36825. /* The first buffer of the packet. */
  36826. *ppStart = p;
  36827. 800ff86: 6abb ldr r3, [r7, #40] @ 0x28
  36828. 800ff88: 6afa ldr r2, [r7, #44] @ 0x2c
  36829. 800ff8a: 601a str r2, [r3, #0]
  36830. 800ff8c: e003 b.n 800ff96 <HAL_ETH_RxLinkCallback+0x4a>
  36831. }
  36832. else
  36833. {
  36834. /* Chain the buffer to the end of the packet. */
  36835. (*ppEnd)->next = p;
  36836. 800ff8e: 6a7b ldr r3, [r7, #36] @ 0x24
  36837. 800ff90: 681b ldr r3, [r3, #0]
  36838. 800ff92: 6afa ldr r2, [r7, #44] @ 0x2c
  36839. 800ff94: 601a str r2, [r3, #0]
  36840. }
  36841. *ppEnd = p;
  36842. 800ff96: 6a7b ldr r3, [r7, #36] @ 0x24
  36843. 800ff98: 6afa ldr r2, [r7, #44] @ 0x2c
  36844. 800ff9a: 601a str r2, [r3, #0]
  36845. /* Update the total length of all the buffers of the chain. Each pbuf in the chain should have its tot_len
  36846. * set to its own length, plus the length of all the following pbufs in the chain. */
  36847. for (p = *ppStart; p != NULL; p = p->next)
  36848. 800ff9c: 6abb ldr r3, [r7, #40] @ 0x28
  36849. 800ff9e: 681b ldr r3, [r3, #0]
  36850. 800ffa0: 62fb str r3, [r7, #44] @ 0x2c
  36851. 800ffa2: e009 b.n 800ffb8 <HAL_ETH_RxLinkCallback+0x6c>
  36852. {
  36853. p->tot_len += Length;
  36854. 800ffa4: 6afb ldr r3, [r7, #44] @ 0x2c
  36855. 800ffa6: 891a ldrh r2, [r3, #8]
  36856. 800ffa8: 887b ldrh r3, [r7, #2]
  36857. 800ffaa: 4413 add r3, r2
  36858. 800ffac: b29a uxth r2, r3
  36859. 800ffae: 6afb ldr r3, [r7, #44] @ 0x2c
  36860. 800ffb0: 811a strh r2, [r3, #8]
  36861. for (p = *ppStart; p != NULL; p = p->next)
  36862. 800ffb2: 6afb ldr r3, [r7, #44] @ 0x2c
  36863. 800ffb4: 681b ldr r3, [r3, #0]
  36864. 800ffb6: 62fb str r3, [r7, #44] @ 0x2c
  36865. 800ffb8: 6afb ldr r3, [r7, #44] @ 0x2c
  36866. 800ffba: 2b00 cmp r3, #0
  36867. 800ffbc: d1f2 bne.n 800ffa4 <HAL_ETH_RxLinkCallback+0x58>
  36868. }
  36869. /* Invalidate data cache because Rx DMA's writing to physical memory makes it stale. */
  36870. SCB_InvalidateDCache_by_Addr((uint32_t *)buff, Length);
  36871. 800ffbe: 887b ldrh r3, [r7, #2]
  36872. 800ffc0: 687a ldr r2, [r7, #4]
  36873. 800ffc2: 623a str r2, [r7, #32]
  36874. 800ffc4: 61fb str r3, [r7, #28]
  36875. if ( dsize > 0 ) {
  36876. 800ffc6: 69fb ldr r3, [r7, #28]
  36877. 800ffc8: 2b00 cmp r3, #0
  36878. 800ffca: dd1d ble.n 8010008 <HAL_ETH_RxLinkCallback+0xbc>
  36879. int32_t op_size = dsize + (((uint32_t)addr) & (__SCB_DCACHE_LINE_SIZE - 1U));
  36880. 800ffcc: 6a3b ldr r3, [r7, #32]
  36881. 800ffce: f003 021f and.w r2, r3, #31
  36882. 800ffd2: 69fb ldr r3, [r7, #28]
  36883. 800ffd4: 4413 add r3, r2
  36884. 800ffd6: 61bb str r3, [r7, #24]
  36885. uint32_t op_addr = (uint32_t)addr /* & ~(__SCB_DCACHE_LINE_SIZE - 1U) */;
  36886. 800ffd8: 6a3b ldr r3, [r7, #32]
  36887. 800ffda: 617b str r3, [r7, #20]
  36888. __ASM volatile ("dsb 0xF":::"memory");
  36889. 800ffdc: f3bf 8f4f dsb sy
  36890. }
  36891. 800ffe0: bf00 nop
  36892. SCB->DCIMVAC = op_addr; /* register accepts only 32byte aligned values, only bits 31..5 are valid */
  36893. 800ffe2: 4a0d ldr r2, [pc, #52] @ (8010018 <HAL_ETH_RxLinkCallback+0xcc>)
  36894. 800ffe4: 697b ldr r3, [r7, #20]
  36895. 800ffe6: f8c2 325c str.w r3, [r2, #604] @ 0x25c
  36896. op_addr += __SCB_DCACHE_LINE_SIZE;
  36897. 800ffea: 697b ldr r3, [r7, #20]
  36898. 800ffec: 3320 adds r3, #32
  36899. 800ffee: 617b str r3, [r7, #20]
  36900. op_size -= __SCB_DCACHE_LINE_SIZE;
  36901. 800fff0: 69bb ldr r3, [r7, #24]
  36902. 800fff2: 3b20 subs r3, #32
  36903. 800fff4: 61bb str r3, [r7, #24]
  36904. } while ( op_size > 0 );
  36905. 800fff6: 69bb ldr r3, [r7, #24]
  36906. 800fff8: 2b00 cmp r3, #0
  36907. 800fffa: dcf2 bgt.n 800ffe2 <HAL_ETH_RxLinkCallback+0x96>
  36908. __ASM volatile ("dsb 0xF":::"memory");
  36909. 800fffc: f3bf 8f4f dsb sy
  36910. }
  36911. 8010000: bf00 nop
  36912. __ASM volatile ("isb 0xF":::"memory");
  36913. 8010002: f3bf 8f6f isb sy
  36914. }
  36915. 8010006: bf00 nop
  36916. }
  36917. 8010008: bf00 nop
  36918. /* USER CODE END HAL ETH RxLinkCallback */
  36919. }
  36920. 801000a: bf00 nop
  36921. 801000c: 3734 adds r7, #52 @ 0x34
  36922. 801000e: 46bd mov sp, r7
  36923. 8010010: f85d 7b04 ldr.w r7, [sp], #4
  36924. 8010014: 4770 bx lr
  36925. 8010016: bf00 nop
  36926. 8010018: e000ed00 .word 0xe000ed00
  36927. 0801001c <HAL_ETH_TxFreeCallback>:
  36928. void HAL_ETH_TxFreeCallback(uint32_t * buff)
  36929. {
  36930. 801001c: b580 push {r7, lr}
  36931. 801001e: b082 sub sp, #8
  36932. 8010020: af00 add r7, sp, #0
  36933. 8010022: 6078 str r0, [r7, #4]
  36934. /* USER CODE BEGIN HAL ETH TxFreeCallback */
  36935. pbuf_free((struct pbuf *)buff);
  36936. 8010024: 6878 ldr r0, [r7, #4]
  36937. 8010026: f009 fff9 bl 801a01c <pbuf_free>
  36938. /* USER CODE END HAL ETH TxFreeCallback */
  36939. }
  36940. 801002a: bf00 nop
  36941. 801002c: 3708 adds r7, #8
  36942. 801002e: 46bd mov sp, r7
  36943. 8010030: bd80 pop {r7, pc}
  36944. ...
  36945. 08010034 <sys_lock_tcpip_core>:
  36946. /* ETH_CODE: add functions needed for proper multithreading support and check */
  36947. static osThreadId_t lwip_core_lock_holder_thread_id;
  36948. static osThreadId_t lwip_tcpip_thread_id;
  36949. void sys_lock_tcpip_core(void){
  36950. 8010034: b580 push {r7, lr}
  36951. 8010036: af00 add r7, sp, #0
  36952. sys_mutex_lock(&lock_tcpip_core);
  36953. 8010038: 4804 ldr r0, [pc, #16] @ (801004c <sys_lock_tcpip_core+0x18>)
  36954. 801003a: f015 ff95 bl 8025f68 <sys_mutex_lock>
  36955. lwip_core_lock_holder_thread_id = osThreadGetId();
  36956. 801003e: f000 fa35 bl 80104ac <osThreadGetId>
  36957. 8010042: 4603 mov r3, r0
  36958. 8010044: 4a02 ldr r2, [pc, #8] @ (8010050 <sys_lock_tcpip_core+0x1c>)
  36959. 8010046: 6013 str r3, [r2, #0]
  36960. }
  36961. 8010048: bf00 nop
  36962. 801004a: bd80 pop {r7, pc}
  36963. 801004c: 24023498 .word 0x24023498
  36964. 8010050: 24001458 .word 0x24001458
  36965. 08010054 <sys_unlock_tcpip_core>:
  36966. void sys_unlock_tcpip_core(void){
  36967. 8010054: b580 push {r7, lr}
  36968. 8010056: af00 add r7, sp, #0
  36969. lwip_core_lock_holder_thread_id = 0;
  36970. 8010058: 4b03 ldr r3, [pc, #12] @ (8010068 <sys_unlock_tcpip_core+0x14>)
  36971. 801005a: 2200 movs r2, #0
  36972. 801005c: 601a str r2, [r3, #0]
  36973. sys_mutex_unlock(&lock_tcpip_core);
  36974. 801005e: 4803 ldr r0, [pc, #12] @ (801006c <sys_unlock_tcpip_core+0x18>)
  36975. 8010060: f015 ff91 bl 8025f86 <sys_mutex_unlock>
  36976. }
  36977. 8010064: bf00 nop
  36978. 8010066: bd80 pop {r7, pc}
  36979. 8010068: 24001458 .word 0x24001458
  36980. 801006c: 24023498 .word 0x24023498
  36981. 08010070 <sys_check_core_locking>:
  36982. void sys_check_core_locking(void){
  36983. 8010070: b580 push {r7, lr}
  36984. 8010072: b082 sub sp, #8
  36985. 8010074: af00 add r7, sp, #0
  36986. /* Embedded systems should check we are NOT in an interrupt context here */
  36987. LWIP_ASSERT("Function called from interrupt context", (SCB->ICSR & SCB_ICSR_VECTACTIVE_Msk) == 0);
  36988. 8010076: 4b15 ldr r3, [pc, #84] @ (80100cc <sys_check_core_locking+0x5c>)
  36989. 8010078: 685b ldr r3, [r3, #4]
  36990. 801007a: f3c3 0308 ubfx r3, r3, #0, #9
  36991. 801007e: 2b00 cmp r3, #0
  36992. 8010080: d006 beq.n 8010090 <sys_check_core_locking+0x20>
  36993. 8010082: 4b13 ldr r3, [pc, #76] @ (80100d0 <sys_check_core_locking+0x60>)
  36994. 8010084: f240 420e movw r2, #1038 @ 0x40e
  36995. 8010088: 4912 ldr r1, [pc, #72] @ (80100d4 <sys_check_core_locking+0x64>)
  36996. 801008a: 4813 ldr r0, [pc, #76] @ (80100d8 <sys_check_core_locking+0x68>)
  36997. 801008c: f019 fa3e bl 802950c <iprintf>
  36998. if (lwip_tcpip_thread_id != 0) {
  36999. 8010090: 4b12 ldr r3, [pc, #72] @ (80100dc <sys_check_core_locking+0x6c>)
  37000. 8010092: 681b ldr r3, [r3, #0]
  37001. 8010094: 2b00 cmp r3, #0
  37002. 8010096: d014 beq.n 80100c2 <sys_check_core_locking+0x52>
  37003. osThreadId_t current_thread_id = osThreadGetId();
  37004. 8010098: f000 fa08 bl 80104ac <osThreadGetId>
  37005. 801009c: 6078 str r0, [r7, #4]
  37006. #if LWIP_TCPIP_CORE_LOCKING
  37007. LWIP_ASSERT("Function called without core lock", current_thread_id == lwip_core_lock_holder_thread_id);
  37008. 801009e: 4b10 ldr r3, [pc, #64] @ (80100e0 <sys_check_core_locking+0x70>)
  37009. 80100a0: 681b ldr r3, [r3, #0]
  37010. 80100a2: 687a ldr r2, [r7, #4]
  37011. 80100a4: 429a cmp r2, r3
  37012. 80100a6: d006 beq.n 80100b6 <sys_check_core_locking+0x46>
  37013. 80100a8: 4b09 ldr r3, [pc, #36] @ (80100d0 <sys_check_core_locking+0x60>)
  37014. 80100aa: f240 4214 movw r2, #1044 @ 0x414
  37015. 80100ae: 490d ldr r1, [pc, #52] @ (80100e4 <sys_check_core_locking+0x74>)
  37016. 80100b0: 4809 ldr r0, [pc, #36] @ (80100d8 <sys_check_core_locking+0x68>)
  37017. 80100b2: f019 fa2b bl 802950c <iprintf>
  37018. /* ETH_CODE: to easily check that example has correct handling of core lock
  37019. * This will trigger breakpoint (__BKPT)
  37020. */
  37021. #warning Below check should be removed in production code
  37022. if(current_thread_id != lwip_core_lock_holder_thread_id) __BKPT(0);
  37023. 80100b6: 4b0a ldr r3, [pc, #40] @ (80100e0 <sys_check_core_locking+0x70>)
  37024. 80100b8: 681b ldr r3, [r3, #0]
  37025. 80100ba: 687a ldr r2, [r7, #4]
  37026. 80100bc: 429a cmp r2, r3
  37027. 80100be: d000 beq.n 80100c2 <sys_check_core_locking+0x52>
  37028. 80100c0: be00 bkpt 0x0000
  37029. #else /* LWIP_TCPIP_CORE_LOCKING */
  37030. LWIP_ASSERT("Function called from wrong thread", current_thread_id == lwip_tcpip_thread_id);
  37031. #endif /* LWIP_TCPIP_CORE_LOCKING */
  37032. LWIP_UNUSED_ARG(current_thread_id); /* for LWIP_NOASSERT */
  37033. }
  37034. }
  37035. 80100c2: bf00 nop
  37036. 80100c4: 3708 adds r7, #8
  37037. 80100c6: 46bd mov sp, r7
  37038. 80100c8: bd80 pop {r7, pc}
  37039. 80100ca: bf00 nop
  37040. 80100cc: e000ed00 .word 0xe000ed00
  37041. 80100d0: 0802c594 .word 0x0802c594
  37042. 80100d4: 0802c604 .word 0x0802c604
  37043. 80100d8: 0802c5c0 .word 0x0802c5c0
  37044. 80100dc: 2400145c .word 0x2400145c
  37045. 80100e0: 24001458 .word 0x24001458
  37046. 80100e4: 0802c62c .word 0x0802c62c
  37047. 080100e8 <sys_mark_tcpip_thread>:
  37048. void sys_mark_tcpip_thread(void){
  37049. 80100e8: b580 push {r7, lr}
  37050. 80100ea: af00 add r7, sp, #0
  37051. lwip_tcpip_thread_id = osThreadGetId();
  37052. 80100ec: f000 f9de bl 80104ac <osThreadGetId>
  37053. 80100f0: 4603 mov r3, r0
  37054. 80100f2: 4a02 ldr r2, [pc, #8] @ (80100fc <sys_mark_tcpip_thread+0x14>)
  37055. 80100f4: 6013 str r3, [r2, #0]
  37056. }
  37057. 80100f6: bf00 nop
  37058. 80100f8: bd80 pop {r7, pc}
  37059. 80100fa: bf00 nop
  37060. 80100fc: 2400145c .word 0x2400145c
  37061. 08010100 <dhcp_sm>:
  37062. #if USE_DHCP
  37063. void dhcp_sm(struct netif *netif, enum dhcp_states *state)
  37064. {
  37065. 8010100: b580 push {r7, lr}
  37066. 8010102: b08c sub sp, #48 @ 0x30
  37067. 8010104: af00 add r7, sp, #0
  37068. 8010106: 6078 str r0, [r7, #4]
  37069. 8010108: 6039 str r1, [r7, #0]
  37070. ip_addr_t gw;
  37071. #ifdef DHCP_USER_LOGS
  37072. uint8_t iptxt[20];
  37073. #endif
  37074. switch(*state)
  37075. 801010a: 683b ldr r3, [r7, #0]
  37076. 801010c: 781b ldrb r3, [r3, #0]
  37077. 801010e: 2b03 cmp r3, #3
  37078. 8010110: d072 beq.n 80101f8 <dhcp_sm+0xf8>
  37079. 8010112: 2b03 cmp r3, #3
  37080. 8010114: dc7b bgt.n 801020e <dhcp_sm+0x10e>
  37081. 8010116: 2b01 cmp r3, #1
  37082. 8010118: d002 beq.n 8010120 <dhcp_sm+0x20>
  37083. 801011a: 2b02 cmp r3, #2
  37084. 801011c: d00a beq.n 8010134 <dhcp_sm+0x34>
  37085. {
  37086. *state = DHCP_START;
  37087. }
  37088. break;
  37089. default:
  37090. break;
  37091. 801011e: e076 b.n 801020e <dhcp_sm+0x10e>
  37092. *state = DHCP_WAIT_ADDRESS;
  37093. 8010120: 683b ldr r3, [r7, #0]
  37094. 8010122: 2202 movs r2, #2
  37095. 8010124: 701a strb r2, [r3, #0]
  37096. dhcp = (struct dhcp *)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP);
  37097. 8010126: 687b ldr r3, [r7, #4]
  37098. 8010128: 6a5b ldr r3, [r3, #36] @ 0x24
  37099. 801012a: 62fb str r3, [r7, #44] @ 0x2c
  37100. printf(" State: Looking for DHCP server ...\n");
  37101. 801012c: 483c ldr r0, [pc, #240] @ (8010220 <dhcp_sm+0x120>)
  37102. 801012e: f019 fa55 bl 80295dc <puts>
  37103. break;
  37104. 8010132: e071 b.n 8010218 <dhcp_sm+0x118>
  37105. if (dhcp_supplied_address(netif))
  37106. 8010134: 6878 ldr r0, [r7, #4]
  37107. 8010136: f013 f87b bl 8023230 <dhcp_supplied_address>
  37108. 801013a: 4603 mov r3, r0
  37109. 801013c: 2b00 cmp r3, #0
  37110. 801013e: d015 beq.n 801016c <dhcp_sm+0x6c>
  37111. *state = DHCP_ADDRESS_ASSIGNED;
  37112. 8010140: 683b ldr r3, [r7, #0]
  37113. 8010142: 2203 movs r2, #3
  37114. 8010144: 701a strb r2, [r3, #0]
  37115. sprintf((char *)iptxt, "%s", ip4addr_ntoa((const ip4_addr_t *)&netif->ip_addr));
  37116. 8010146: 687b ldr r3, [r7, #4]
  37117. 8010148: 3304 adds r3, #4
  37118. 801014a: 4618 mov r0, r3
  37119. 801014c: f014 fe08 bl 8024d60 <ip4addr_ntoa>
  37120. 8010150: 4602 mov r2, r0
  37121. 8010152: f107 030c add.w r3, r7, #12
  37122. 8010156: 4933 ldr r1, [pc, #204] @ (8010224 <dhcp_sm+0x124>)
  37123. 8010158: 4618 mov r0, r3
  37124. 801015a: f019 fa47 bl 80295ec <siprintf>
  37125. printf("IP address assigned by a DHCP server: %s\n", iptxt);
  37126. 801015e: f107 030c add.w r3, r7, #12
  37127. 8010162: 4619 mov r1, r3
  37128. 8010164: 4830 ldr r0, [pc, #192] @ (8010228 <dhcp_sm+0x128>)
  37129. 8010166: f019 f9d1 bl 802950c <iprintf>
  37130. break;
  37131. 801016a: e052 b.n 8010212 <dhcp_sm+0x112>
  37132. dhcp = (struct dhcp *)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP);
  37133. 801016c: 687b ldr r3, [r7, #4]
  37134. 801016e: 6a5b ldr r3, [r3, #36] @ 0x24
  37135. 8010170: 62fb str r3, [r7, #44] @ 0x2c
  37136. if (dhcp->tries > MAX_DHCP_TRIES)
  37137. 8010172: 6afb ldr r3, [r7, #44] @ 0x2c
  37138. 8010174: 799b ldrb r3, [r3, #6]
  37139. 8010176: 2b04 cmp r3, #4
  37140. 8010178: d94b bls.n 8010212 <dhcp_sm+0x112>
  37141. *state = DHCP_TIMEOUT;
  37142. 801017a: 683b ldr r3, [r7, #0]
  37143. 801017c: 2204 movs r2, #4
  37144. 801017e: 701a strb r2, [r3, #0]
  37145. LOCK_TCPIP_CORE();
  37146. 8010180: f7ff ff58 bl 8010034 <sys_lock_tcpip_core>
  37147. dhcp_stop(netif);
  37148. 8010184: 6878 ldr r0, [r7, #4]
  37149. 8010186: f012 faab bl 80226e0 <dhcp_stop>
  37150. UNLOCK_TCPIP_CORE();
  37151. 801018a: f7ff ff63 bl 8010054 <sys_unlock_tcpip_core>
  37152. ipaddr_aton(STATIC_IP, &ipaddr);
  37153. 801018e: f107 0328 add.w r3, r7, #40 @ 0x28
  37154. 8010192: 4619 mov r1, r3
  37155. 8010194: 4825 ldr r0, [pc, #148] @ (801022c <dhcp_sm+0x12c>)
  37156. 8010196: f014 fcb9 bl 8024b0c <ip4addr_aton>
  37157. ipaddr_aton(STATIC_MASK, &netmask);
  37158. 801019a: f107 0324 add.w r3, r7, #36 @ 0x24
  37159. 801019e: 4619 mov r1, r3
  37160. 80101a0: 4823 ldr r0, [pc, #140] @ (8010230 <dhcp_sm+0x130>)
  37161. 80101a2: f014 fcb3 bl 8024b0c <ip4addr_aton>
  37162. ipaddr_aton(STATIC_GW, &gw);
  37163. 80101a6: f107 0320 add.w r3, r7, #32
  37164. 80101aa: 4619 mov r1, r3
  37165. 80101ac: 4821 ldr r0, [pc, #132] @ (8010234 <dhcp_sm+0x134>)
  37166. 80101ae: f014 fcad bl 8024b0c <ip4addr_aton>
  37167. LOCK_TCPIP_CORE();
  37168. 80101b2: f7ff ff3f bl 8010034 <sys_lock_tcpip_core>
  37169. netif_set_addr(netif, ip_2_ip4(&ipaddr), ip_2_ip4(&netmask), ip_2_ip4(&gw));
  37170. 80101b6: f107 0320 add.w r3, r7, #32
  37171. 80101ba: f107 0224 add.w r2, r7, #36 @ 0x24
  37172. 80101be: f107 0128 add.w r1, r7, #40 @ 0x28
  37173. 80101c2: 6878 ldr r0, [r7, #4]
  37174. 80101c4: f009 f9e0 bl 8019588 <netif_set_addr>
  37175. UNLOCK_TCPIP_CORE();
  37176. 80101c8: f7ff ff44 bl 8010054 <sys_unlock_tcpip_core>
  37177. sprintf((char *)iptxt, "%s", ip4addr_ntoa((const ip4_addr_t *)&netif->ip_addr));
  37178. 80101cc: 687b ldr r3, [r7, #4]
  37179. 80101ce: 3304 adds r3, #4
  37180. 80101d0: 4618 mov r0, r3
  37181. 80101d2: f014 fdc5 bl 8024d60 <ip4addr_ntoa>
  37182. 80101d6: 4602 mov r2, r0
  37183. 80101d8: f107 030c add.w r3, r7, #12
  37184. 80101dc: 4911 ldr r1, [pc, #68] @ (8010224 <dhcp_sm+0x124>)
  37185. 80101de: 4618 mov r0, r3
  37186. 80101e0: f019 fa04 bl 80295ec <siprintf>
  37187. printf("DHCP Timeout !! \n");
  37188. 80101e4: 4814 ldr r0, [pc, #80] @ (8010238 <dhcp_sm+0x138>)
  37189. 80101e6: f019 f9f9 bl 80295dc <puts>
  37190. printf("Static IP address: %s\n", iptxt);
  37191. 80101ea: f107 030c add.w r3, r7, #12
  37192. 80101ee: 4619 mov r1, r3
  37193. 80101f0: 4812 ldr r0, [pc, #72] @ (801023c <dhcp_sm+0x13c>)
  37194. 80101f2: f019 f98b bl 802950c <iprintf>
  37195. break;
  37196. 80101f6: e00c b.n 8010212 <dhcp_sm+0x112>
  37197. dhcp = (struct dhcp *)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP);
  37198. 80101f8: 687b ldr r3, [r7, #4]
  37199. 80101fa: 6a5b ldr r3, [r3, #36] @ 0x24
  37200. 80101fc: 62fb str r3, [r7, #44] @ 0x2c
  37201. if(dhcp->state == 3)
  37202. 80101fe: 6afb ldr r3, [r7, #44] @ 0x2c
  37203. 8010200: 795b ldrb r3, [r3, #5]
  37204. 8010202: 2b03 cmp r3, #3
  37205. 8010204: d107 bne.n 8010216 <dhcp_sm+0x116>
  37206. *state = DHCP_START;
  37207. 8010206: 683b ldr r3, [r7, #0]
  37208. 8010208: 2201 movs r2, #1
  37209. 801020a: 701a strb r2, [r3, #0]
  37210. break;
  37211. 801020c: e003 b.n 8010216 <dhcp_sm+0x116>
  37212. break;
  37213. 801020e: bf00 nop
  37214. 8010210: e002 b.n 8010218 <dhcp_sm+0x118>
  37215. break;
  37216. 8010212: bf00 nop
  37217. 8010214: e000 b.n 8010218 <dhcp_sm+0x118>
  37218. break;
  37219. 8010216: bf00 nop
  37220. }
  37221. }
  37222. 8010218: bf00 nop
  37223. 801021a: 3730 adds r7, #48 @ 0x30
  37224. 801021c: 46bd mov sp, r7
  37225. 801021e: bd80 pop {r7, pc}
  37226. 8010220: 0802c650 .word 0x0802c650
  37227. 8010224: 0802c678 .word 0x0802c678
  37228. 8010228: 0802c67c .word 0x0802c67c
  37229. 801022c: 0802c6a8 .word 0x0802c6a8
  37230. 8010230: 0802c6b8 .word 0x0802c6b8
  37231. 8010234: 0802c6c8 .word 0x0802c6c8
  37232. 8010238: 0802c6d4 .word 0x0802c6d4
  37233. 801023c: 0802c6e8 .word 0x0802c6e8
  37234. 08010240 <__NVIC_SetPriority>:
  37235. {
  37236. 8010240: b480 push {r7}
  37237. 8010242: b083 sub sp, #12
  37238. 8010244: af00 add r7, sp, #0
  37239. 8010246: 4603 mov r3, r0
  37240. 8010248: 6039 str r1, [r7, #0]
  37241. 801024a: 80fb strh r3, [r7, #6]
  37242. if ((int32_t)(IRQn) >= 0)
  37243. 801024c: f9b7 3006 ldrsh.w r3, [r7, #6]
  37244. 8010250: 2b00 cmp r3, #0
  37245. 8010252: db0a blt.n 801026a <__NVIC_SetPriority+0x2a>
  37246. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  37247. 8010254: 683b ldr r3, [r7, #0]
  37248. 8010256: b2da uxtb r2, r3
  37249. 8010258: 490c ldr r1, [pc, #48] @ (801028c <__NVIC_SetPriority+0x4c>)
  37250. 801025a: f9b7 3006 ldrsh.w r3, [r7, #6]
  37251. 801025e: 0112 lsls r2, r2, #4
  37252. 8010260: b2d2 uxtb r2, r2
  37253. 8010262: 440b add r3, r1
  37254. 8010264: f883 2300 strb.w r2, [r3, #768] @ 0x300
  37255. }
  37256. 8010268: e00a b.n 8010280 <__NVIC_SetPriority+0x40>
  37257. SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  37258. 801026a: 683b ldr r3, [r7, #0]
  37259. 801026c: b2da uxtb r2, r3
  37260. 801026e: 4908 ldr r1, [pc, #32] @ (8010290 <__NVIC_SetPriority+0x50>)
  37261. 8010270: 88fb ldrh r3, [r7, #6]
  37262. 8010272: f003 030f and.w r3, r3, #15
  37263. 8010276: 3b04 subs r3, #4
  37264. 8010278: 0112 lsls r2, r2, #4
  37265. 801027a: b2d2 uxtb r2, r2
  37266. 801027c: 440b add r3, r1
  37267. 801027e: 761a strb r2, [r3, #24]
  37268. }
  37269. 8010280: bf00 nop
  37270. 8010282: 370c adds r7, #12
  37271. 8010284: 46bd mov sp, r7
  37272. 8010286: f85d 7b04 ldr.w r7, [sp], #4
  37273. 801028a: 4770 bx lr
  37274. 801028c: e000e100 .word 0xe000e100
  37275. 8010290: e000ed00 .word 0xe000ed00
  37276. 08010294 <SysTick_Handler>:
  37277. /*
  37278. SysTick handler implementation that also clears overflow flag.
  37279. */
  37280. #if (USE_CUSTOM_SYSTICK_HANDLER_IMPLEMENTATION == 0)
  37281. void SysTick_Handler (void) {
  37282. 8010294: b580 push {r7, lr}
  37283. 8010296: af00 add r7, sp, #0
  37284. /* Clear overflow flag */
  37285. SysTick->CTRL;
  37286. 8010298: 4b05 ldr r3, [pc, #20] @ (80102b0 <SysTick_Handler+0x1c>)
  37287. 801029a: 681b ldr r3, [r3, #0]
  37288. if (xTaskGetSchedulerState() != taskSCHEDULER_NOT_STARTED) {
  37289. 801029c: f003 f946 bl 801352c <xTaskGetSchedulerState>
  37290. 80102a0: 4603 mov r3, r0
  37291. 80102a2: 2b01 cmp r3, #1
  37292. 80102a4: d001 beq.n 80102aa <SysTick_Handler+0x16>
  37293. /* Call tick handler */
  37294. xPortSysTickHandler();
  37295. 80102a6: f004 fa6f bl 8014788 <xPortSysTickHandler>
  37296. }
  37297. }
  37298. 80102aa: bf00 nop
  37299. 80102ac: bd80 pop {r7, pc}
  37300. 80102ae: bf00 nop
  37301. 80102b0: e000e010 .word 0xe000e010
  37302. 080102b4 <SVC_Setup>:
  37303. #endif /* SysTick */
  37304. /*
  37305. Setup SVC to reset value.
  37306. */
  37307. __STATIC_INLINE void SVC_Setup (void) {
  37308. 80102b4: b580 push {r7, lr}
  37309. 80102b6: af00 add r7, sp, #0
  37310. #if (__ARM_ARCH_7A__ == 0U)
  37311. /* Service Call interrupt might be configured before kernel start */
  37312. /* and when its priority is lower or equal to BASEPRI, svc intruction */
  37313. /* causes a Hard Fault. */
  37314. NVIC_SetPriority (SVCall_IRQ_NBR, 0U);
  37315. 80102b8: 2100 movs r1, #0
  37316. 80102ba: f06f 0004 mvn.w r0, #4
  37317. 80102be: f7ff ffbf bl 8010240 <__NVIC_SetPriority>
  37318. #endif
  37319. }
  37320. 80102c2: bf00 nop
  37321. 80102c4: bd80 pop {r7, pc}
  37322. ...
  37323. 080102c8 <osKernelInitialize>:
  37324. static uint32_t OS_Tick_GetOverflow (void);
  37325. /* Get OS Tick interval */
  37326. static uint32_t OS_Tick_GetInterval (void);
  37327. /*---------------------------------------------------------------------------*/
  37328. osStatus_t osKernelInitialize (void) {
  37329. 80102c8: b480 push {r7}
  37330. 80102ca: b083 sub sp, #12
  37331. 80102cc: af00 add r7, sp, #0
  37332. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  37333. 80102ce: f3ef 8305 mrs r3, IPSR
  37334. 80102d2: 603b str r3, [r7, #0]
  37335. return(result);
  37336. 80102d4: 683b ldr r3, [r7, #0]
  37337. osStatus_t stat;
  37338. if (IS_IRQ()) {
  37339. 80102d6: 2b00 cmp r3, #0
  37340. 80102d8: d003 beq.n 80102e2 <osKernelInitialize+0x1a>
  37341. stat = osErrorISR;
  37342. 80102da: f06f 0305 mvn.w r3, #5
  37343. 80102de: 607b str r3, [r7, #4]
  37344. 80102e0: e00c b.n 80102fc <osKernelInitialize+0x34>
  37345. }
  37346. else {
  37347. if (KernelState == osKernelInactive) {
  37348. 80102e2: 4b0a ldr r3, [pc, #40] @ (801030c <osKernelInitialize+0x44>)
  37349. 80102e4: 681b ldr r3, [r3, #0]
  37350. 80102e6: 2b00 cmp r3, #0
  37351. 80102e8: d105 bne.n 80102f6 <osKernelInitialize+0x2e>
  37352. EvrFreeRTOSSetup(0U);
  37353. #endif
  37354. #if defined(USE_FreeRTOS_HEAP_5) && (HEAP_5_REGION_SETUP == 1)
  37355. vPortDefineHeapRegions (configHEAP_5_REGIONS);
  37356. #endif
  37357. KernelState = osKernelReady;
  37358. 80102ea: 4b08 ldr r3, [pc, #32] @ (801030c <osKernelInitialize+0x44>)
  37359. 80102ec: 2201 movs r2, #1
  37360. 80102ee: 601a str r2, [r3, #0]
  37361. stat = osOK;
  37362. 80102f0: 2300 movs r3, #0
  37363. 80102f2: 607b str r3, [r7, #4]
  37364. 80102f4: e002 b.n 80102fc <osKernelInitialize+0x34>
  37365. } else {
  37366. stat = osError;
  37367. 80102f6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  37368. 80102fa: 607b str r3, [r7, #4]
  37369. }
  37370. }
  37371. return (stat);
  37372. 80102fc: 687b ldr r3, [r7, #4]
  37373. }
  37374. 80102fe: 4618 mov r0, r3
  37375. 8010300: 370c adds r7, #12
  37376. 8010302: 46bd mov sp, r7
  37377. 8010304: f85d 7b04 ldr.w r7, [sp], #4
  37378. 8010308: 4770 bx lr
  37379. 801030a: bf00 nop
  37380. 801030c: 24001460 .word 0x24001460
  37381. 08010310 <osKernelStart>:
  37382. }
  37383. return (state);
  37384. }
  37385. osStatus_t osKernelStart (void) {
  37386. 8010310: b580 push {r7, lr}
  37387. 8010312: b082 sub sp, #8
  37388. 8010314: af00 add r7, sp, #0
  37389. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  37390. 8010316: f3ef 8305 mrs r3, IPSR
  37391. 801031a: 603b str r3, [r7, #0]
  37392. return(result);
  37393. 801031c: 683b ldr r3, [r7, #0]
  37394. osStatus_t stat;
  37395. if (IS_IRQ()) {
  37396. 801031e: 2b00 cmp r3, #0
  37397. 8010320: d003 beq.n 801032a <osKernelStart+0x1a>
  37398. stat = osErrorISR;
  37399. 8010322: f06f 0305 mvn.w r3, #5
  37400. 8010326: 607b str r3, [r7, #4]
  37401. 8010328: e010 b.n 801034c <osKernelStart+0x3c>
  37402. }
  37403. else {
  37404. if (KernelState == osKernelReady) {
  37405. 801032a: 4b0b ldr r3, [pc, #44] @ (8010358 <osKernelStart+0x48>)
  37406. 801032c: 681b ldr r3, [r3, #0]
  37407. 801032e: 2b01 cmp r3, #1
  37408. 8010330: d109 bne.n 8010346 <osKernelStart+0x36>
  37409. /* Ensure SVC priority is at the reset value */
  37410. SVC_Setup();
  37411. 8010332: f7ff ffbf bl 80102b4 <SVC_Setup>
  37412. /* Change state to enable IRQ masking check */
  37413. KernelState = osKernelRunning;
  37414. 8010336: 4b08 ldr r3, [pc, #32] @ (8010358 <osKernelStart+0x48>)
  37415. 8010338: 2202 movs r2, #2
  37416. 801033a: 601a str r2, [r3, #0]
  37417. /* Start the kernel scheduler */
  37418. vTaskStartScheduler();
  37419. 801033c: f002 fc3a bl 8012bb4 <vTaskStartScheduler>
  37420. stat = osOK;
  37421. 8010340: 2300 movs r3, #0
  37422. 8010342: 607b str r3, [r7, #4]
  37423. 8010344: e002 b.n 801034c <osKernelStart+0x3c>
  37424. } else {
  37425. stat = osError;
  37426. 8010346: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  37427. 801034a: 607b str r3, [r7, #4]
  37428. }
  37429. }
  37430. return (stat);
  37431. 801034c: 687b ldr r3, [r7, #4]
  37432. }
  37433. 801034e: 4618 mov r0, r3
  37434. 8010350: 3708 adds r7, #8
  37435. 8010352: 46bd mov sp, r7
  37436. 8010354: bd80 pop {r7, pc}
  37437. 8010356: bf00 nop
  37438. 8010358: 24001460 .word 0x24001460
  37439. 0801035c <osKernelGetTickCount>:
  37440. }
  37441. return (lock);
  37442. }
  37443. uint32_t osKernelGetTickCount (void) {
  37444. 801035c: b580 push {r7, lr}
  37445. 801035e: b082 sub sp, #8
  37446. 8010360: af00 add r7, sp, #0
  37447. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  37448. 8010362: f3ef 8305 mrs r3, IPSR
  37449. 8010366: 603b str r3, [r7, #0]
  37450. return(result);
  37451. 8010368: 683b ldr r3, [r7, #0]
  37452. TickType_t ticks;
  37453. if (IS_IRQ()) {
  37454. 801036a: 2b00 cmp r3, #0
  37455. 801036c: d003 beq.n 8010376 <osKernelGetTickCount+0x1a>
  37456. ticks = xTaskGetTickCountFromISR();
  37457. 801036e: f002 fd4d bl 8012e0c <xTaskGetTickCountFromISR>
  37458. 8010372: 6078 str r0, [r7, #4]
  37459. 8010374: e002 b.n 801037c <osKernelGetTickCount+0x20>
  37460. } else {
  37461. ticks = xTaskGetTickCount();
  37462. 8010376: f002 fd39 bl 8012dec <xTaskGetTickCount>
  37463. 801037a: 6078 str r0, [r7, #4]
  37464. }
  37465. return (ticks);
  37466. 801037c: 687b ldr r3, [r7, #4]
  37467. }
  37468. 801037e: 4618 mov r0, r3
  37469. 8010380: 3708 adds r7, #8
  37470. 8010382: 46bd mov sp, r7
  37471. 8010384: bd80 pop {r7, pc}
  37472. 08010386 <osThreadNew>:
  37473. return (configCPU_CLOCK_HZ);
  37474. }
  37475. /*---------------------------------------------------------------------------*/
  37476. osThreadId_t osThreadNew (osThreadFunc_t func, void *argument, const osThreadAttr_t *attr) {
  37477. 8010386: b580 push {r7, lr}
  37478. 8010388: b08e sub sp, #56 @ 0x38
  37479. 801038a: af04 add r7, sp, #16
  37480. 801038c: 60f8 str r0, [r7, #12]
  37481. 801038e: 60b9 str r1, [r7, #8]
  37482. 8010390: 607a str r2, [r7, #4]
  37483. uint32_t stack;
  37484. TaskHandle_t hTask;
  37485. UBaseType_t prio;
  37486. int32_t mem;
  37487. hTask = NULL;
  37488. 8010392: 2300 movs r3, #0
  37489. 8010394: 613b str r3, [r7, #16]
  37490. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  37491. 8010396: f3ef 8305 mrs r3, IPSR
  37492. 801039a: 617b str r3, [r7, #20]
  37493. return(result);
  37494. 801039c: 697b ldr r3, [r7, #20]
  37495. if (!IS_IRQ() && (func != NULL)) {
  37496. 801039e: 2b00 cmp r3, #0
  37497. 80103a0: d17f bne.n 80104a2 <osThreadNew+0x11c>
  37498. 80103a2: 68fb ldr r3, [r7, #12]
  37499. 80103a4: 2b00 cmp r3, #0
  37500. 80103a6: d07c beq.n 80104a2 <osThreadNew+0x11c>
  37501. stack = configMINIMAL_STACK_SIZE;
  37502. 80103a8: f44f 7300 mov.w r3, #512 @ 0x200
  37503. 80103ac: 623b str r3, [r7, #32]
  37504. prio = (UBaseType_t)osPriorityNormal;
  37505. 80103ae: 2318 movs r3, #24
  37506. 80103b0: 61fb str r3, [r7, #28]
  37507. name = NULL;
  37508. 80103b2: 2300 movs r3, #0
  37509. 80103b4: 627b str r3, [r7, #36] @ 0x24
  37510. mem = -1;
  37511. 80103b6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  37512. 80103ba: 61bb str r3, [r7, #24]
  37513. if (attr != NULL) {
  37514. 80103bc: 687b ldr r3, [r7, #4]
  37515. 80103be: 2b00 cmp r3, #0
  37516. 80103c0: d045 beq.n 801044e <osThreadNew+0xc8>
  37517. if (attr->name != NULL) {
  37518. 80103c2: 687b ldr r3, [r7, #4]
  37519. 80103c4: 681b ldr r3, [r3, #0]
  37520. 80103c6: 2b00 cmp r3, #0
  37521. 80103c8: d002 beq.n 80103d0 <osThreadNew+0x4a>
  37522. name = attr->name;
  37523. 80103ca: 687b ldr r3, [r7, #4]
  37524. 80103cc: 681b ldr r3, [r3, #0]
  37525. 80103ce: 627b str r3, [r7, #36] @ 0x24
  37526. }
  37527. if (attr->priority != osPriorityNone) {
  37528. 80103d0: 687b ldr r3, [r7, #4]
  37529. 80103d2: 699b ldr r3, [r3, #24]
  37530. 80103d4: 2b00 cmp r3, #0
  37531. 80103d6: d002 beq.n 80103de <osThreadNew+0x58>
  37532. prio = (UBaseType_t)attr->priority;
  37533. 80103d8: 687b ldr r3, [r7, #4]
  37534. 80103da: 699b ldr r3, [r3, #24]
  37535. 80103dc: 61fb str r3, [r7, #28]
  37536. }
  37537. if ((prio < osPriorityIdle) || (prio > osPriorityISR) || ((attr->attr_bits & osThreadJoinable) == osThreadJoinable)) {
  37538. 80103de: 69fb ldr r3, [r7, #28]
  37539. 80103e0: 2b00 cmp r3, #0
  37540. 80103e2: d008 beq.n 80103f6 <osThreadNew+0x70>
  37541. 80103e4: 69fb ldr r3, [r7, #28]
  37542. 80103e6: 2b38 cmp r3, #56 @ 0x38
  37543. 80103e8: d805 bhi.n 80103f6 <osThreadNew+0x70>
  37544. 80103ea: 687b ldr r3, [r7, #4]
  37545. 80103ec: 685b ldr r3, [r3, #4]
  37546. 80103ee: f003 0301 and.w r3, r3, #1
  37547. 80103f2: 2b00 cmp r3, #0
  37548. 80103f4: d001 beq.n 80103fa <osThreadNew+0x74>
  37549. return (NULL);
  37550. 80103f6: 2300 movs r3, #0
  37551. 80103f8: e054 b.n 80104a4 <osThreadNew+0x11e>
  37552. }
  37553. if (attr->stack_size > 0U) {
  37554. 80103fa: 687b ldr r3, [r7, #4]
  37555. 80103fc: 695b ldr r3, [r3, #20]
  37556. 80103fe: 2b00 cmp r3, #0
  37557. 8010400: d003 beq.n 801040a <osThreadNew+0x84>
  37558. /* In FreeRTOS stack is not in bytes, but in sizeof(StackType_t) which is 4 on ARM ports. */
  37559. /* Stack size should be therefore 4 byte aligned in order to avoid division caused side effects */
  37560. stack = attr->stack_size / sizeof(StackType_t);
  37561. 8010402: 687b ldr r3, [r7, #4]
  37562. 8010404: 695b ldr r3, [r3, #20]
  37563. 8010406: 089b lsrs r3, r3, #2
  37564. 8010408: 623b str r3, [r7, #32]
  37565. }
  37566. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
  37567. 801040a: 687b ldr r3, [r7, #4]
  37568. 801040c: 689b ldr r3, [r3, #8]
  37569. 801040e: 2b00 cmp r3, #0
  37570. 8010410: d00e beq.n 8010430 <osThreadNew+0xaa>
  37571. 8010412: 687b ldr r3, [r7, #4]
  37572. 8010414: 68db ldr r3, [r3, #12]
  37573. 8010416: 2ba7 cmp r3, #167 @ 0xa7
  37574. 8010418: d90a bls.n 8010430 <osThreadNew+0xaa>
  37575. (attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
  37576. 801041a: 687b ldr r3, [r7, #4]
  37577. 801041c: 691b ldr r3, [r3, #16]
  37578. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
  37579. 801041e: 2b00 cmp r3, #0
  37580. 8010420: d006 beq.n 8010430 <osThreadNew+0xaa>
  37581. (attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
  37582. 8010422: 687b ldr r3, [r7, #4]
  37583. 8010424: 695b ldr r3, [r3, #20]
  37584. 8010426: 2b00 cmp r3, #0
  37585. 8010428: d002 beq.n 8010430 <osThreadNew+0xaa>
  37586. mem = 1;
  37587. 801042a: 2301 movs r3, #1
  37588. 801042c: 61bb str r3, [r7, #24]
  37589. 801042e: e010 b.n 8010452 <osThreadNew+0xcc>
  37590. }
  37591. else {
  37592. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) && (attr->stack_mem == NULL)) {
  37593. 8010430: 687b ldr r3, [r7, #4]
  37594. 8010432: 689b ldr r3, [r3, #8]
  37595. 8010434: 2b00 cmp r3, #0
  37596. 8010436: d10c bne.n 8010452 <osThreadNew+0xcc>
  37597. 8010438: 687b ldr r3, [r7, #4]
  37598. 801043a: 68db ldr r3, [r3, #12]
  37599. 801043c: 2b00 cmp r3, #0
  37600. 801043e: d108 bne.n 8010452 <osThreadNew+0xcc>
  37601. 8010440: 687b ldr r3, [r7, #4]
  37602. 8010442: 691b ldr r3, [r3, #16]
  37603. 8010444: 2b00 cmp r3, #0
  37604. 8010446: d104 bne.n 8010452 <osThreadNew+0xcc>
  37605. mem = 0;
  37606. 8010448: 2300 movs r3, #0
  37607. 801044a: 61bb str r3, [r7, #24]
  37608. 801044c: e001 b.n 8010452 <osThreadNew+0xcc>
  37609. }
  37610. }
  37611. }
  37612. else {
  37613. mem = 0;
  37614. 801044e: 2300 movs r3, #0
  37615. 8010450: 61bb str r3, [r7, #24]
  37616. }
  37617. if (mem == 1) {
  37618. 8010452: 69bb ldr r3, [r7, #24]
  37619. 8010454: 2b01 cmp r3, #1
  37620. 8010456: d110 bne.n 801047a <osThreadNew+0xf4>
  37621. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  37622. hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
  37623. 8010458: 687b ldr r3, [r7, #4]
  37624. 801045a: 691b ldr r3, [r3, #16]
  37625. (StaticTask_t *)attr->cb_mem);
  37626. 801045c: 687a ldr r2, [r7, #4]
  37627. 801045e: 6892 ldr r2, [r2, #8]
  37628. hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
  37629. 8010460: 9202 str r2, [sp, #8]
  37630. 8010462: 9301 str r3, [sp, #4]
  37631. 8010464: 69fb ldr r3, [r7, #28]
  37632. 8010466: 9300 str r3, [sp, #0]
  37633. 8010468: 68bb ldr r3, [r7, #8]
  37634. 801046a: 6a3a ldr r2, [r7, #32]
  37635. 801046c: 6a79 ldr r1, [r7, #36] @ 0x24
  37636. 801046e: 68f8 ldr r0, [r7, #12]
  37637. 8010470: f002 f9ac bl 80127cc <xTaskCreateStatic>
  37638. 8010474: 4603 mov r3, r0
  37639. 8010476: 613b str r3, [r7, #16]
  37640. 8010478: e013 b.n 80104a2 <osThreadNew+0x11c>
  37641. #endif
  37642. }
  37643. else {
  37644. if (mem == 0) {
  37645. 801047a: 69bb ldr r3, [r7, #24]
  37646. 801047c: 2b00 cmp r3, #0
  37647. 801047e: d110 bne.n 80104a2 <osThreadNew+0x11c>
  37648. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  37649. if (xTaskCreate ((TaskFunction_t)func, name, (uint16_t)stack, argument, prio, &hTask) != pdPASS) {
  37650. 8010480: 6a3b ldr r3, [r7, #32]
  37651. 8010482: b29a uxth r2, r3
  37652. 8010484: f107 0310 add.w r3, r7, #16
  37653. 8010488: 9301 str r3, [sp, #4]
  37654. 801048a: 69fb ldr r3, [r7, #28]
  37655. 801048c: 9300 str r3, [sp, #0]
  37656. 801048e: 68bb ldr r3, [r7, #8]
  37657. 8010490: 6a79 ldr r1, [r7, #36] @ 0x24
  37658. 8010492: 68f8 ldr r0, [r7, #12]
  37659. 8010494: f002 f9fa bl 801288c <xTaskCreate>
  37660. 8010498: 4603 mov r3, r0
  37661. 801049a: 2b01 cmp r3, #1
  37662. 801049c: d001 beq.n 80104a2 <osThreadNew+0x11c>
  37663. hTask = NULL;
  37664. 801049e: 2300 movs r3, #0
  37665. 80104a0: 613b str r3, [r7, #16]
  37666. #endif
  37667. }
  37668. }
  37669. }
  37670. return ((osThreadId_t)hTask);
  37671. 80104a2: 693b ldr r3, [r7, #16]
  37672. }
  37673. 80104a4: 4618 mov r0, r3
  37674. 80104a6: 3728 adds r7, #40 @ 0x28
  37675. 80104a8: 46bd mov sp, r7
  37676. 80104aa: bd80 pop {r7, pc}
  37677. 080104ac <osThreadGetId>:
  37678. }
  37679. return (name);
  37680. }
  37681. osThreadId_t osThreadGetId (void) {
  37682. 80104ac: b580 push {r7, lr}
  37683. 80104ae: b082 sub sp, #8
  37684. 80104b0: af00 add r7, sp, #0
  37685. osThreadId_t id;
  37686. id = (osThreadId_t)xTaskGetCurrentTaskHandle();
  37687. 80104b2: f003 f82b bl 801350c <xTaskGetCurrentTaskHandle>
  37688. 80104b6: 6078 str r0, [r7, #4]
  37689. return (id);
  37690. 80104b8: 687b ldr r3, [r7, #4]
  37691. }
  37692. 80104ba: 4618 mov r0, r3
  37693. 80104bc: 3708 adds r7, #8
  37694. 80104be: 46bd mov sp, r7
  37695. 80104c0: bd80 pop {r7, pc}
  37696. 080104c2 <osDelay>:
  37697. /* Return flags before clearing */
  37698. return (rflags);
  37699. }
  37700. #endif /* (configUSE_OS2_THREAD_FLAGS == 1) */
  37701. osStatus_t osDelay (uint32_t ticks) {
  37702. 80104c2: b580 push {r7, lr}
  37703. 80104c4: b084 sub sp, #16
  37704. 80104c6: af00 add r7, sp, #0
  37705. 80104c8: 6078 str r0, [r7, #4]
  37706. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  37707. 80104ca: f3ef 8305 mrs r3, IPSR
  37708. 80104ce: 60bb str r3, [r7, #8]
  37709. return(result);
  37710. 80104d0: 68bb ldr r3, [r7, #8]
  37711. osStatus_t stat;
  37712. if (IS_IRQ()) {
  37713. 80104d2: 2b00 cmp r3, #0
  37714. 80104d4: d003 beq.n 80104de <osDelay+0x1c>
  37715. stat = osErrorISR;
  37716. 80104d6: f06f 0305 mvn.w r3, #5
  37717. 80104da: 60fb str r3, [r7, #12]
  37718. 80104dc: e007 b.n 80104ee <osDelay+0x2c>
  37719. }
  37720. else {
  37721. stat = osOK;
  37722. 80104de: 2300 movs r3, #0
  37723. 80104e0: 60fb str r3, [r7, #12]
  37724. if (ticks != 0U) {
  37725. 80104e2: 687b ldr r3, [r7, #4]
  37726. 80104e4: 2b00 cmp r3, #0
  37727. 80104e6: d002 beq.n 80104ee <osDelay+0x2c>
  37728. vTaskDelay(ticks);
  37729. 80104e8: 6878 ldr r0, [r7, #4]
  37730. 80104ea: f002 fb2d bl 8012b48 <vTaskDelay>
  37731. }
  37732. }
  37733. return (stat);
  37734. 80104ee: 68fb ldr r3, [r7, #12]
  37735. }
  37736. 80104f0: 4618 mov r0, r3
  37737. 80104f2: 3710 adds r7, #16
  37738. 80104f4: 46bd mov sp, r7
  37739. 80104f6: bd80 pop {r7, pc}
  37740. 080104f8 <osMutexNew>:
  37741. }
  37742. /*---------------------------------------------------------------------------*/
  37743. #if (configUSE_OS2_MUTEX == 1)
  37744. osMutexId_t osMutexNew (const osMutexAttr_t *attr) {
  37745. 80104f8: b580 push {r7, lr}
  37746. 80104fa: b088 sub sp, #32
  37747. 80104fc: af00 add r7, sp, #0
  37748. 80104fe: 6078 str r0, [r7, #4]
  37749. int32_t mem;
  37750. #if (configQUEUE_REGISTRY_SIZE > 0)
  37751. const char *name;
  37752. #endif
  37753. hMutex = NULL;
  37754. 8010500: 2300 movs r3, #0
  37755. 8010502: 61fb str r3, [r7, #28]
  37756. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  37757. 8010504: f3ef 8305 mrs r3, IPSR
  37758. 8010508: 60bb str r3, [r7, #8]
  37759. return(result);
  37760. 801050a: 68bb ldr r3, [r7, #8]
  37761. if (!IS_IRQ()) {
  37762. 801050c: 2b00 cmp r3, #0
  37763. 801050e: d174 bne.n 80105fa <osMutexNew+0x102>
  37764. if (attr != NULL) {
  37765. 8010510: 687b ldr r3, [r7, #4]
  37766. 8010512: 2b00 cmp r3, #0
  37767. 8010514: d003 beq.n 801051e <osMutexNew+0x26>
  37768. type = attr->attr_bits;
  37769. 8010516: 687b ldr r3, [r7, #4]
  37770. 8010518: 685b ldr r3, [r3, #4]
  37771. 801051a: 61bb str r3, [r7, #24]
  37772. 801051c: e001 b.n 8010522 <osMutexNew+0x2a>
  37773. } else {
  37774. type = 0U;
  37775. 801051e: 2300 movs r3, #0
  37776. 8010520: 61bb str r3, [r7, #24]
  37777. }
  37778. if ((type & osMutexRecursive) == osMutexRecursive) {
  37779. 8010522: 69bb ldr r3, [r7, #24]
  37780. 8010524: f003 0301 and.w r3, r3, #1
  37781. 8010528: 2b00 cmp r3, #0
  37782. 801052a: d002 beq.n 8010532 <osMutexNew+0x3a>
  37783. rmtx = 1U;
  37784. 801052c: 2301 movs r3, #1
  37785. 801052e: 617b str r3, [r7, #20]
  37786. 8010530: e001 b.n 8010536 <osMutexNew+0x3e>
  37787. } else {
  37788. rmtx = 0U;
  37789. 8010532: 2300 movs r3, #0
  37790. 8010534: 617b str r3, [r7, #20]
  37791. }
  37792. if ((type & osMutexRobust) != osMutexRobust) {
  37793. 8010536: 69bb ldr r3, [r7, #24]
  37794. 8010538: f003 0308 and.w r3, r3, #8
  37795. 801053c: 2b00 cmp r3, #0
  37796. 801053e: d15c bne.n 80105fa <osMutexNew+0x102>
  37797. mem = -1;
  37798. 8010540: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  37799. 8010544: 613b str r3, [r7, #16]
  37800. if (attr != NULL) {
  37801. 8010546: 687b ldr r3, [r7, #4]
  37802. 8010548: 2b00 cmp r3, #0
  37803. 801054a: d015 beq.n 8010578 <osMutexNew+0x80>
  37804. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticSemaphore_t))) {
  37805. 801054c: 687b ldr r3, [r7, #4]
  37806. 801054e: 689b ldr r3, [r3, #8]
  37807. 8010550: 2b00 cmp r3, #0
  37808. 8010552: d006 beq.n 8010562 <osMutexNew+0x6a>
  37809. 8010554: 687b ldr r3, [r7, #4]
  37810. 8010556: 68db ldr r3, [r3, #12]
  37811. 8010558: 2b4f cmp r3, #79 @ 0x4f
  37812. 801055a: d902 bls.n 8010562 <osMutexNew+0x6a>
  37813. mem = 1;
  37814. 801055c: 2301 movs r3, #1
  37815. 801055e: 613b str r3, [r7, #16]
  37816. 8010560: e00c b.n 801057c <osMutexNew+0x84>
  37817. }
  37818. else {
  37819. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  37820. 8010562: 687b ldr r3, [r7, #4]
  37821. 8010564: 689b ldr r3, [r3, #8]
  37822. 8010566: 2b00 cmp r3, #0
  37823. 8010568: d108 bne.n 801057c <osMutexNew+0x84>
  37824. 801056a: 687b ldr r3, [r7, #4]
  37825. 801056c: 68db ldr r3, [r3, #12]
  37826. 801056e: 2b00 cmp r3, #0
  37827. 8010570: d104 bne.n 801057c <osMutexNew+0x84>
  37828. mem = 0;
  37829. 8010572: 2300 movs r3, #0
  37830. 8010574: 613b str r3, [r7, #16]
  37831. 8010576: e001 b.n 801057c <osMutexNew+0x84>
  37832. }
  37833. }
  37834. }
  37835. else {
  37836. mem = 0;
  37837. 8010578: 2300 movs r3, #0
  37838. 801057a: 613b str r3, [r7, #16]
  37839. }
  37840. if (mem == 1) {
  37841. 801057c: 693b ldr r3, [r7, #16]
  37842. 801057e: 2b01 cmp r3, #1
  37843. 8010580: d112 bne.n 80105a8 <osMutexNew+0xb0>
  37844. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  37845. if (rmtx != 0U) {
  37846. 8010582: 697b ldr r3, [r7, #20]
  37847. 8010584: 2b00 cmp r3, #0
  37848. 8010586: d007 beq.n 8010598 <osMutexNew+0xa0>
  37849. #if (configUSE_RECURSIVE_MUTEXES == 1)
  37850. hMutex = xSemaphoreCreateRecursiveMutexStatic (attr->cb_mem);
  37851. 8010588: 687b ldr r3, [r7, #4]
  37852. 801058a: 689b ldr r3, [r3, #8]
  37853. 801058c: 4619 mov r1, r3
  37854. 801058e: 2004 movs r0, #4
  37855. 8010590: f000 fdd9 bl 8011146 <xQueueCreateMutexStatic>
  37856. 8010594: 61f8 str r0, [r7, #28]
  37857. 8010596: e016 b.n 80105c6 <osMutexNew+0xce>
  37858. #endif
  37859. }
  37860. else {
  37861. hMutex = xSemaphoreCreateMutexStatic (attr->cb_mem);
  37862. 8010598: 687b ldr r3, [r7, #4]
  37863. 801059a: 689b ldr r3, [r3, #8]
  37864. 801059c: 4619 mov r1, r3
  37865. 801059e: 2001 movs r0, #1
  37866. 80105a0: f000 fdd1 bl 8011146 <xQueueCreateMutexStatic>
  37867. 80105a4: 61f8 str r0, [r7, #28]
  37868. 80105a6: e00e b.n 80105c6 <osMutexNew+0xce>
  37869. }
  37870. #endif
  37871. }
  37872. else {
  37873. if (mem == 0) {
  37874. 80105a8: 693b ldr r3, [r7, #16]
  37875. 80105aa: 2b00 cmp r3, #0
  37876. 80105ac: d10b bne.n 80105c6 <osMutexNew+0xce>
  37877. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  37878. if (rmtx != 0U) {
  37879. 80105ae: 697b ldr r3, [r7, #20]
  37880. 80105b0: 2b00 cmp r3, #0
  37881. 80105b2: d004 beq.n 80105be <osMutexNew+0xc6>
  37882. #if (configUSE_RECURSIVE_MUTEXES == 1)
  37883. hMutex = xSemaphoreCreateRecursiveMutex ();
  37884. 80105b4: 2004 movs r0, #4
  37885. 80105b6: f000 fdae bl 8011116 <xQueueCreateMutex>
  37886. 80105ba: 61f8 str r0, [r7, #28]
  37887. 80105bc: e003 b.n 80105c6 <osMutexNew+0xce>
  37888. #endif
  37889. } else {
  37890. hMutex = xSemaphoreCreateMutex ();
  37891. 80105be: 2001 movs r0, #1
  37892. 80105c0: f000 fda9 bl 8011116 <xQueueCreateMutex>
  37893. 80105c4: 61f8 str r0, [r7, #28]
  37894. #endif
  37895. }
  37896. }
  37897. #if (configQUEUE_REGISTRY_SIZE > 0)
  37898. if (hMutex != NULL) {
  37899. 80105c6: 69fb ldr r3, [r7, #28]
  37900. 80105c8: 2b00 cmp r3, #0
  37901. 80105ca: d00c beq.n 80105e6 <osMutexNew+0xee>
  37902. if (attr != NULL) {
  37903. 80105cc: 687b ldr r3, [r7, #4]
  37904. 80105ce: 2b00 cmp r3, #0
  37905. 80105d0: d003 beq.n 80105da <osMutexNew+0xe2>
  37906. name = attr->name;
  37907. 80105d2: 687b ldr r3, [r7, #4]
  37908. 80105d4: 681b ldr r3, [r3, #0]
  37909. 80105d6: 60fb str r3, [r7, #12]
  37910. 80105d8: e001 b.n 80105de <osMutexNew+0xe6>
  37911. } else {
  37912. name = NULL;
  37913. 80105da: 2300 movs r3, #0
  37914. 80105dc: 60fb str r3, [r7, #12]
  37915. }
  37916. vQueueAddToRegistry (hMutex, name);
  37917. 80105de: 68f9 ldr r1, [r7, #12]
  37918. 80105e0: 69f8 ldr r0, [r7, #28]
  37919. 80105e2: f001 fcd3 bl 8011f8c <vQueueAddToRegistry>
  37920. }
  37921. #endif
  37922. if ((hMutex != NULL) && (rmtx != 0U)) {
  37923. 80105e6: 69fb ldr r3, [r7, #28]
  37924. 80105e8: 2b00 cmp r3, #0
  37925. 80105ea: d006 beq.n 80105fa <osMutexNew+0x102>
  37926. 80105ec: 697b ldr r3, [r7, #20]
  37927. 80105ee: 2b00 cmp r3, #0
  37928. 80105f0: d003 beq.n 80105fa <osMutexNew+0x102>
  37929. hMutex = (SemaphoreHandle_t)((uint32_t)hMutex | 1U);
  37930. 80105f2: 69fb ldr r3, [r7, #28]
  37931. 80105f4: f043 0301 orr.w r3, r3, #1
  37932. 80105f8: 61fb str r3, [r7, #28]
  37933. }
  37934. }
  37935. }
  37936. return ((osMutexId_t)hMutex);
  37937. 80105fa: 69fb ldr r3, [r7, #28]
  37938. }
  37939. 80105fc: 4618 mov r0, r3
  37940. 80105fe: 3720 adds r7, #32
  37941. 8010600: 46bd mov sp, r7
  37942. 8010602: bd80 pop {r7, pc}
  37943. 08010604 <osMutexAcquire>:
  37944. osStatus_t osMutexAcquire (osMutexId_t mutex_id, uint32_t timeout) {
  37945. 8010604: b580 push {r7, lr}
  37946. 8010606: b086 sub sp, #24
  37947. 8010608: af00 add r7, sp, #0
  37948. 801060a: 6078 str r0, [r7, #4]
  37949. 801060c: 6039 str r1, [r7, #0]
  37950. SemaphoreHandle_t hMutex;
  37951. osStatus_t stat;
  37952. uint32_t rmtx;
  37953. hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
  37954. 801060e: 687b ldr r3, [r7, #4]
  37955. 8010610: f023 0301 bic.w r3, r3, #1
  37956. 8010614: 613b str r3, [r7, #16]
  37957. rmtx = (uint32_t)mutex_id & 1U;
  37958. 8010616: 687b ldr r3, [r7, #4]
  37959. 8010618: f003 0301 and.w r3, r3, #1
  37960. 801061c: 60fb str r3, [r7, #12]
  37961. stat = osOK;
  37962. 801061e: 2300 movs r3, #0
  37963. 8010620: 617b str r3, [r7, #20]
  37964. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  37965. 8010622: f3ef 8305 mrs r3, IPSR
  37966. 8010626: 60bb str r3, [r7, #8]
  37967. return(result);
  37968. 8010628: 68bb ldr r3, [r7, #8]
  37969. if (IS_IRQ()) {
  37970. 801062a: 2b00 cmp r3, #0
  37971. 801062c: d003 beq.n 8010636 <osMutexAcquire+0x32>
  37972. stat = osErrorISR;
  37973. 801062e: f06f 0305 mvn.w r3, #5
  37974. 8010632: 617b str r3, [r7, #20]
  37975. 8010634: e02c b.n 8010690 <osMutexAcquire+0x8c>
  37976. }
  37977. else if (hMutex == NULL) {
  37978. 8010636: 693b ldr r3, [r7, #16]
  37979. 8010638: 2b00 cmp r3, #0
  37980. 801063a: d103 bne.n 8010644 <osMutexAcquire+0x40>
  37981. stat = osErrorParameter;
  37982. 801063c: f06f 0303 mvn.w r3, #3
  37983. 8010640: 617b str r3, [r7, #20]
  37984. 8010642: e025 b.n 8010690 <osMutexAcquire+0x8c>
  37985. }
  37986. else {
  37987. if (rmtx != 0U) {
  37988. 8010644: 68fb ldr r3, [r7, #12]
  37989. 8010646: 2b00 cmp r3, #0
  37990. 8010648: d011 beq.n 801066e <osMutexAcquire+0x6a>
  37991. #if (configUSE_RECURSIVE_MUTEXES == 1)
  37992. if (xSemaphoreTakeRecursive (hMutex, timeout) != pdPASS) {
  37993. 801064a: 6839 ldr r1, [r7, #0]
  37994. 801064c: 6938 ldr r0, [r7, #16]
  37995. 801064e: f000 fdca bl 80111e6 <xQueueTakeMutexRecursive>
  37996. 8010652: 4603 mov r3, r0
  37997. 8010654: 2b01 cmp r3, #1
  37998. 8010656: d01b beq.n 8010690 <osMutexAcquire+0x8c>
  37999. if (timeout != 0U) {
  38000. 8010658: 683b ldr r3, [r7, #0]
  38001. 801065a: 2b00 cmp r3, #0
  38002. 801065c: d003 beq.n 8010666 <osMutexAcquire+0x62>
  38003. stat = osErrorTimeout;
  38004. 801065e: f06f 0301 mvn.w r3, #1
  38005. 8010662: 617b str r3, [r7, #20]
  38006. 8010664: e014 b.n 8010690 <osMutexAcquire+0x8c>
  38007. } else {
  38008. stat = osErrorResource;
  38009. 8010666: f06f 0302 mvn.w r3, #2
  38010. 801066a: 617b str r3, [r7, #20]
  38011. 801066c: e010 b.n 8010690 <osMutexAcquire+0x8c>
  38012. }
  38013. }
  38014. #endif
  38015. }
  38016. else {
  38017. if (xSemaphoreTake (hMutex, timeout) != pdPASS) {
  38018. 801066e: 6839 ldr r1, [r7, #0]
  38019. 8010670: 6938 ldr r0, [r7, #16]
  38020. 8010672: f001 f96f bl 8011954 <xQueueSemaphoreTake>
  38021. 8010676: 4603 mov r3, r0
  38022. 8010678: 2b01 cmp r3, #1
  38023. 801067a: d009 beq.n 8010690 <osMutexAcquire+0x8c>
  38024. if (timeout != 0U) {
  38025. 801067c: 683b ldr r3, [r7, #0]
  38026. 801067e: 2b00 cmp r3, #0
  38027. 8010680: d003 beq.n 801068a <osMutexAcquire+0x86>
  38028. stat = osErrorTimeout;
  38029. 8010682: f06f 0301 mvn.w r3, #1
  38030. 8010686: 617b str r3, [r7, #20]
  38031. 8010688: e002 b.n 8010690 <osMutexAcquire+0x8c>
  38032. } else {
  38033. stat = osErrorResource;
  38034. 801068a: f06f 0302 mvn.w r3, #2
  38035. 801068e: 617b str r3, [r7, #20]
  38036. }
  38037. }
  38038. }
  38039. }
  38040. return (stat);
  38041. 8010690: 697b ldr r3, [r7, #20]
  38042. }
  38043. 8010692: 4618 mov r0, r3
  38044. 8010694: 3718 adds r7, #24
  38045. 8010696: 46bd mov sp, r7
  38046. 8010698: bd80 pop {r7, pc}
  38047. 0801069a <osMutexRelease>:
  38048. osStatus_t osMutexRelease (osMutexId_t mutex_id) {
  38049. 801069a: b580 push {r7, lr}
  38050. 801069c: b086 sub sp, #24
  38051. 801069e: af00 add r7, sp, #0
  38052. 80106a0: 6078 str r0, [r7, #4]
  38053. SemaphoreHandle_t hMutex;
  38054. osStatus_t stat;
  38055. uint32_t rmtx;
  38056. hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
  38057. 80106a2: 687b ldr r3, [r7, #4]
  38058. 80106a4: f023 0301 bic.w r3, r3, #1
  38059. 80106a8: 613b str r3, [r7, #16]
  38060. rmtx = (uint32_t)mutex_id & 1U;
  38061. 80106aa: 687b ldr r3, [r7, #4]
  38062. 80106ac: f003 0301 and.w r3, r3, #1
  38063. 80106b0: 60fb str r3, [r7, #12]
  38064. stat = osOK;
  38065. 80106b2: 2300 movs r3, #0
  38066. 80106b4: 617b str r3, [r7, #20]
  38067. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  38068. 80106b6: f3ef 8305 mrs r3, IPSR
  38069. 80106ba: 60bb str r3, [r7, #8]
  38070. return(result);
  38071. 80106bc: 68bb ldr r3, [r7, #8]
  38072. if (IS_IRQ()) {
  38073. 80106be: 2b00 cmp r3, #0
  38074. 80106c0: d003 beq.n 80106ca <osMutexRelease+0x30>
  38075. stat = osErrorISR;
  38076. 80106c2: f06f 0305 mvn.w r3, #5
  38077. 80106c6: 617b str r3, [r7, #20]
  38078. 80106c8: e01f b.n 801070a <osMutexRelease+0x70>
  38079. }
  38080. else if (hMutex == NULL) {
  38081. 80106ca: 693b ldr r3, [r7, #16]
  38082. 80106cc: 2b00 cmp r3, #0
  38083. 80106ce: d103 bne.n 80106d8 <osMutexRelease+0x3e>
  38084. stat = osErrorParameter;
  38085. 80106d0: f06f 0303 mvn.w r3, #3
  38086. 80106d4: 617b str r3, [r7, #20]
  38087. 80106d6: e018 b.n 801070a <osMutexRelease+0x70>
  38088. }
  38089. else {
  38090. if (rmtx != 0U) {
  38091. 80106d8: 68fb ldr r3, [r7, #12]
  38092. 80106da: 2b00 cmp r3, #0
  38093. 80106dc: d009 beq.n 80106f2 <osMutexRelease+0x58>
  38094. #if (configUSE_RECURSIVE_MUTEXES == 1)
  38095. if (xSemaphoreGiveRecursive (hMutex) != pdPASS) {
  38096. 80106de: 6938 ldr r0, [r7, #16]
  38097. 80106e0: f000 fd4c bl 801117c <xQueueGiveMutexRecursive>
  38098. 80106e4: 4603 mov r3, r0
  38099. 80106e6: 2b01 cmp r3, #1
  38100. 80106e8: d00f beq.n 801070a <osMutexRelease+0x70>
  38101. stat = osErrorResource;
  38102. 80106ea: f06f 0302 mvn.w r3, #2
  38103. 80106ee: 617b str r3, [r7, #20]
  38104. 80106f0: e00b b.n 801070a <osMutexRelease+0x70>
  38105. }
  38106. #endif
  38107. }
  38108. else {
  38109. if (xSemaphoreGive (hMutex) != pdPASS) {
  38110. 80106f2: 2300 movs r3, #0
  38111. 80106f4: 2200 movs r2, #0
  38112. 80106f6: 2100 movs r1, #0
  38113. 80106f8: 6938 ldr r0, [r7, #16]
  38114. 80106fa: f000 fe19 bl 8011330 <xQueueGenericSend>
  38115. 80106fe: 4603 mov r3, r0
  38116. 8010700: 2b01 cmp r3, #1
  38117. 8010702: d002 beq.n 801070a <osMutexRelease+0x70>
  38118. stat = osErrorResource;
  38119. 8010704: f06f 0302 mvn.w r3, #2
  38120. 8010708: 617b str r3, [r7, #20]
  38121. }
  38122. }
  38123. }
  38124. return (stat);
  38125. 801070a: 697b ldr r3, [r7, #20]
  38126. }
  38127. 801070c: 4618 mov r0, r3
  38128. 801070e: 3718 adds r7, #24
  38129. 8010710: 46bd mov sp, r7
  38130. 8010712: bd80 pop {r7, pc}
  38131. 08010714 <osSemaphoreNew>:
  38132. }
  38133. #endif /* (configUSE_OS2_MUTEX == 1) */
  38134. /*---------------------------------------------------------------------------*/
  38135. osSemaphoreId_t osSemaphoreNew (uint32_t max_count, uint32_t initial_count, const osSemaphoreAttr_t *attr) {
  38136. 8010714: b580 push {r7, lr}
  38137. 8010716: b08a sub sp, #40 @ 0x28
  38138. 8010718: af02 add r7, sp, #8
  38139. 801071a: 60f8 str r0, [r7, #12]
  38140. 801071c: 60b9 str r1, [r7, #8]
  38141. 801071e: 607a str r2, [r7, #4]
  38142. int32_t mem;
  38143. #if (configQUEUE_REGISTRY_SIZE > 0)
  38144. const char *name;
  38145. #endif
  38146. hSemaphore = NULL;
  38147. 8010720: 2300 movs r3, #0
  38148. 8010722: 61fb str r3, [r7, #28]
  38149. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  38150. 8010724: f3ef 8305 mrs r3, IPSR
  38151. 8010728: 613b str r3, [r7, #16]
  38152. return(result);
  38153. 801072a: 693b ldr r3, [r7, #16]
  38154. if (!IS_IRQ() && (max_count > 0U) && (initial_count <= max_count)) {
  38155. 801072c: 2b00 cmp r3, #0
  38156. 801072e: d175 bne.n 801081c <osSemaphoreNew+0x108>
  38157. 8010730: 68fb ldr r3, [r7, #12]
  38158. 8010732: 2b00 cmp r3, #0
  38159. 8010734: d072 beq.n 801081c <osSemaphoreNew+0x108>
  38160. 8010736: 68ba ldr r2, [r7, #8]
  38161. 8010738: 68fb ldr r3, [r7, #12]
  38162. 801073a: 429a cmp r2, r3
  38163. 801073c: d86e bhi.n 801081c <osSemaphoreNew+0x108>
  38164. mem = -1;
  38165. 801073e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  38166. 8010742: 61bb str r3, [r7, #24]
  38167. if (attr != NULL) {
  38168. 8010744: 687b ldr r3, [r7, #4]
  38169. 8010746: 2b00 cmp r3, #0
  38170. 8010748: d015 beq.n 8010776 <osSemaphoreNew+0x62>
  38171. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticSemaphore_t))) {
  38172. 801074a: 687b ldr r3, [r7, #4]
  38173. 801074c: 689b ldr r3, [r3, #8]
  38174. 801074e: 2b00 cmp r3, #0
  38175. 8010750: d006 beq.n 8010760 <osSemaphoreNew+0x4c>
  38176. 8010752: 687b ldr r3, [r7, #4]
  38177. 8010754: 68db ldr r3, [r3, #12]
  38178. 8010756: 2b4f cmp r3, #79 @ 0x4f
  38179. 8010758: d902 bls.n 8010760 <osSemaphoreNew+0x4c>
  38180. mem = 1;
  38181. 801075a: 2301 movs r3, #1
  38182. 801075c: 61bb str r3, [r7, #24]
  38183. 801075e: e00c b.n 801077a <osSemaphoreNew+0x66>
  38184. }
  38185. else {
  38186. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  38187. 8010760: 687b ldr r3, [r7, #4]
  38188. 8010762: 689b ldr r3, [r3, #8]
  38189. 8010764: 2b00 cmp r3, #0
  38190. 8010766: d108 bne.n 801077a <osSemaphoreNew+0x66>
  38191. 8010768: 687b ldr r3, [r7, #4]
  38192. 801076a: 68db ldr r3, [r3, #12]
  38193. 801076c: 2b00 cmp r3, #0
  38194. 801076e: d104 bne.n 801077a <osSemaphoreNew+0x66>
  38195. mem = 0;
  38196. 8010770: 2300 movs r3, #0
  38197. 8010772: 61bb str r3, [r7, #24]
  38198. 8010774: e001 b.n 801077a <osSemaphoreNew+0x66>
  38199. }
  38200. }
  38201. }
  38202. else {
  38203. mem = 0;
  38204. 8010776: 2300 movs r3, #0
  38205. 8010778: 61bb str r3, [r7, #24]
  38206. }
  38207. if (mem != -1) {
  38208. 801077a: 69bb ldr r3, [r7, #24]
  38209. 801077c: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  38210. 8010780: d04c beq.n 801081c <osSemaphoreNew+0x108>
  38211. if (max_count == 1U) {
  38212. 8010782: 68fb ldr r3, [r7, #12]
  38213. 8010784: 2b01 cmp r3, #1
  38214. 8010786: d128 bne.n 80107da <osSemaphoreNew+0xc6>
  38215. if (mem == 1) {
  38216. 8010788: 69bb ldr r3, [r7, #24]
  38217. 801078a: 2b01 cmp r3, #1
  38218. 801078c: d10a bne.n 80107a4 <osSemaphoreNew+0x90>
  38219. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  38220. hSemaphore = xSemaphoreCreateBinaryStatic ((StaticSemaphore_t *)attr->cb_mem);
  38221. 801078e: 687b ldr r3, [r7, #4]
  38222. 8010790: 689b ldr r3, [r3, #8]
  38223. 8010792: 2203 movs r2, #3
  38224. 8010794: 9200 str r2, [sp, #0]
  38225. 8010796: 2200 movs r2, #0
  38226. 8010798: 2100 movs r1, #0
  38227. 801079a: 2001 movs r0, #1
  38228. 801079c: f000 fbc6 bl 8010f2c <xQueueGenericCreateStatic>
  38229. 80107a0: 61f8 str r0, [r7, #28]
  38230. 80107a2: e005 b.n 80107b0 <osSemaphoreNew+0x9c>
  38231. #endif
  38232. }
  38233. else {
  38234. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  38235. hSemaphore = xSemaphoreCreateBinary();
  38236. 80107a4: 2203 movs r2, #3
  38237. 80107a6: 2100 movs r1, #0
  38238. 80107a8: 2001 movs r0, #1
  38239. 80107aa: f000 fc3c bl 8011026 <xQueueGenericCreate>
  38240. 80107ae: 61f8 str r0, [r7, #28]
  38241. #endif
  38242. }
  38243. if ((hSemaphore != NULL) && (initial_count != 0U)) {
  38244. 80107b0: 69fb ldr r3, [r7, #28]
  38245. 80107b2: 2b00 cmp r3, #0
  38246. 80107b4: d022 beq.n 80107fc <osSemaphoreNew+0xe8>
  38247. 80107b6: 68bb ldr r3, [r7, #8]
  38248. 80107b8: 2b00 cmp r3, #0
  38249. 80107ba: d01f beq.n 80107fc <osSemaphoreNew+0xe8>
  38250. if (xSemaphoreGive (hSemaphore) != pdPASS) {
  38251. 80107bc: 2300 movs r3, #0
  38252. 80107be: 2200 movs r2, #0
  38253. 80107c0: 2100 movs r1, #0
  38254. 80107c2: 69f8 ldr r0, [r7, #28]
  38255. 80107c4: f000 fdb4 bl 8011330 <xQueueGenericSend>
  38256. 80107c8: 4603 mov r3, r0
  38257. 80107ca: 2b01 cmp r3, #1
  38258. 80107cc: d016 beq.n 80107fc <osSemaphoreNew+0xe8>
  38259. vSemaphoreDelete (hSemaphore);
  38260. 80107ce: 69f8 ldr r0, [r7, #28]
  38261. 80107d0: f001 fa90 bl 8011cf4 <vQueueDelete>
  38262. hSemaphore = NULL;
  38263. 80107d4: 2300 movs r3, #0
  38264. 80107d6: 61fb str r3, [r7, #28]
  38265. 80107d8: e010 b.n 80107fc <osSemaphoreNew+0xe8>
  38266. }
  38267. }
  38268. }
  38269. else {
  38270. if (mem == 1) {
  38271. 80107da: 69bb ldr r3, [r7, #24]
  38272. 80107dc: 2b01 cmp r3, #1
  38273. 80107de: d108 bne.n 80107f2 <osSemaphoreNew+0xde>
  38274. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  38275. hSemaphore = xSemaphoreCreateCountingStatic (max_count, initial_count, (StaticSemaphore_t *)attr->cb_mem);
  38276. 80107e0: 687b ldr r3, [r7, #4]
  38277. 80107e2: 689b ldr r3, [r3, #8]
  38278. 80107e4: 461a mov r2, r3
  38279. 80107e6: 68b9 ldr r1, [r7, #8]
  38280. 80107e8: 68f8 ldr r0, [r7, #12]
  38281. 80107ea: f000 fd33 bl 8011254 <xQueueCreateCountingSemaphoreStatic>
  38282. 80107ee: 61f8 str r0, [r7, #28]
  38283. 80107f0: e004 b.n 80107fc <osSemaphoreNew+0xe8>
  38284. #endif
  38285. }
  38286. else {
  38287. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  38288. hSemaphore = xSemaphoreCreateCounting (max_count, initial_count);
  38289. 80107f2: 68b9 ldr r1, [r7, #8]
  38290. 80107f4: 68f8 ldr r0, [r7, #12]
  38291. 80107f6: f000 fd66 bl 80112c6 <xQueueCreateCountingSemaphore>
  38292. 80107fa: 61f8 str r0, [r7, #28]
  38293. #endif
  38294. }
  38295. }
  38296. #if (configQUEUE_REGISTRY_SIZE > 0)
  38297. if (hSemaphore != NULL) {
  38298. 80107fc: 69fb ldr r3, [r7, #28]
  38299. 80107fe: 2b00 cmp r3, #0
  38300. 8010800: d00c beq.n 801081c <osSemaphoreNew+0x108>
  38301. if (attr != NULL) {
  38302. 8010802: 687b ldr r3, [r7, #4]
  38303. 8010804: 2b00 cmp r3, #0
  38304. 8010806: d003 beq.n 8010810 <osSemaphoreNew+0xfc>
  38305. name = attr->name;
  38306. 8010808: 687b ldr r3, [r7, #4]
  38307. 801080a: 681b ldr r3, [r3, #0]
  38308. 801080c: 617b str r3, [r7, #20]
  38309. 801080e: e001 b.n 8010814 <osSemaphoreNew+0x100>
  38310. } else {
  38311. name = NULL;
  38312. 8010810: 2300 movs r3, #0
  38313. 8010812: 617b str r3, [r7, #20]
  38314. }
  38315. vQueueAddToRegistry (hSemaphore, name);
  38316. 8010814: 6979 ldr r1, [r7, #20]
  38317. 8010816: 69f8 ldr r0, [r7, #28]
  38318. 8010818: f001 fbb8 bl 8011f8c <vQueueAddToRegistry>
  38319. }
  38320. #endif
  38321. }
  38322. }
  38323. return ((osSemaphoreId_t)hSemaphore);
  38324. 801081c: 69fb ldr r3, [r7, #28]
  38325. }
  38326. 801081e: 4618 mov r0, r3
  38327. 8010820: 3720 adds r7, #32
  38328. 8010822: 46bd mov sp, r7
  38329. 8010824: bd80 pop {r7, pc}
  38330. ...
  38331. 08010828 <osSemaphoreAcquire>:
  38332. osStatus_t osSemaphoreAcquire (osSemaphoreId_t semaphore_id, uint32_t timeout) {
  38333. 8010828: b580 push {r7, lr}
  38334. 801082a: b086 sub sp, #24
  38335. 801082c: af00 add r7, sp, #0
  38336. 801082e: 6078 str r0, [r7, #4]
  38337. 8010830: 6039 str r1, [r7, #0]
  38338. SemaphoreHandle_t hSemaphore = (SemaphoreHandle_t)semaphore_id;
  38339. 8010832: 687b ldr r3, [r7, #4]
  38340. 8010834: 613b str r3, [r7, #16]
  38341. osStatus_t stat;
  38342. BaseType_t yield;
  38343. stat = osOK;
  38344. 8010836: 2300 movs r3, #0
  38345. 8010838: 617b str r3, [r7, #20]
  38346. if (hSemaphore == NULL) {
  38347. 801083a: 693b ldr r3, [r7, #16]
  38348. 801083c: 2b00 cmp r3, #0
  38349. 801083e: d103 bne.n 8010848 <osSemaphoreAcquire+0x20>
  38350. stat = osErrorParameter;
  38351. 8010840: f06f 0303 mvn.w r3, #3
  38352. 8010844: 617b str r3, [r7, #20]
  38353. 8010846: e039 b.n 80108bc <osSemaphoreAcquire+0x94>
  38354. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  38355. 8010848: f3ef 8305 mrs r3, IPSR
  38356. 801084c: 60fb str r3, [r7, #12]
  38357. return(result);
  38358. 801084e: 68fb ldr r3, [r7, #12]
  38359. }
  38360. else if (IS_IRQ()) {
  38361. 8010850: 2b00 cmp r3, #0
  38362. 8010852: d022 beq.n 801089a <osSemaphoreAcquire+0x72>
  38363. if (timeout != 0U) {
  38364. 8010854: 683b ldr r3, [r7, #0]
  38365. 8010856: 2b00 cmp r3, #0
  38366. 8010858: d003 beq.n 8010862 <osSemaphoreAcquire+0x3a>
  38367. stat = osErrorParameter;
  38368. 801085a: f06f 0303 mvn.w r3, #3
  38369. 801085e: 617b str r3, [r7, #20]
  38370. 8010860: e02c b.n 80108bc <osSemaphoreAcquire+0x94>
  38371. }
  38372. else {
  38373. yield = pdFALSE;
  38374. 8010862: 2300 movs r3, #0
  38375. 8010864: 60bb str r3, [r7, #8]
  38376. if (xSemaphoreTakeFromISR (hSemaphore, &yield) != pdPASS) {
  38377. 8010866: f107 0308 add.w r3, r7, #8
  38378. 801086a: 461a mov r2, r3
  38379. 801086c: 2100 movs r1, #0
  38380. 801086e: 6938 ldr r0, [r7, #16]
  38381. 8010870: f001 f980 bl 8011b74 <xQueueReceiveFromISR>
  38382. 8010874: 4603 mov r3, r0
  38383. 8010876: 2b01 cmp r3, #1
  38384. 8010878: d003 beq.n 8010882 <osSemaphoreAcquire+0x5a>
  38385. stat = osErrorResource;
  38386. 801087a: f06f 0302 mvn.w r3, #2
  38387. 801087e: 617b str r3, [r7, #20]
  38388. 8010880: e01c b.n 80108bc <osSemaphoreAcquire+0x94>
  38389. } else {
  38390. portYIELD_FROM_ISR (yield);
  38391. 8010882: 68bb ldr r3, [r7, #8]
  38392. 8010884: 2b00 cmp r3, #0
  38393. 8010886: d019 beq.n 80108bc <osSemaphoreAcquire+0x94>
  38394. 8010888: 4b0f ldr r3, [pc, #60] @ (80108c8 <osSemaphoreAcquire+0xa0>)
  38395. 801088a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  38396. 801088e: 601a str r2, [r3, #0]
  38397. 8010890: f3bf 8f4f dsb sy
  38398. 8010894: f3bf 8f6f isb sy
  38399. 8010898: e010 b.n 80108bc <osSemaphoreAcquire+0x94>
  38400. }
  38401. }
  38402. }
  38403. else {
  38404. if (xSemaphoreTake (hSemaphore, (TickType_t)timeout) != pdPASS) {
  38405. 801089a: 6839 ldr r1, [r7, #0]
  38406. 801089c: 6938 ldr r0, [r7, #16]
  38407. 801089e: f001 f859 bl 8011954 <xQueueSemaphoreTake>
  38408. 80108a2: 4603 mov r3, r0
  38409. 80108a4: 2b01 cmp r3, #1
  38410. 80108a6: d009 beq.n 80108bc <osSemaphoreAcquire+0x94>
  38411. if (timeout != 0U) {
  38412. 80108a8: 683b ldr r3, [r7, #0]
  38413. 80108aa: 2b00 cmp r3, #0
  38414. 80108ac: d003 beq.n 80108b6 <osSemaphoreAcquire+0x8e>
  38415. stat = osErrorTimeout;
  38416. 80108ae: f06f 0301 mvn.w r3, #1
  38417. 80108b2: 617b str r3, [r7, #20]
  38418. 80108b4: e002 b.n 80108bc <osSemaphoreAcquire+0x94>
  38419. } else {
  38420. stat = osErrorResource;
  38421. 80108b6: f06f 0302 mvn.w r3, #2
  38422. 80108ba: 617b str r3, [r7, #20]
  38423. }
  38424. }
  38425. }
  38426. return (stat);
  38427. 80108bc: 697b ldr r3, [r7, #20]
  38428. }
  38429. 80108be: 4618 mov r0, r3
  38430. 80108c0: 3718 adds r7, #24
  38431. 80108c2: 46bd mov sp, r7
  38432. 80108c4: bd80 pop {r7, pc}
  38433. 80108c6: bf00 nop
  38434. 80108c8: e000ed04 .word 0xe000ed04
  38435. 080108cc <osSemaphoreRelease>:
  38436. osStatus_t osSemaphoreRelease (osSemaphoreId_t semaphore_id) {
  38437. 80108cc: b580 push {r7, lr}
  38438. 80108ce: b086 sub sp, #24
  38439. 80108d0: af00 add r7, sp, #0
  38440. 80108d2: 6078 str r0, [r7, #4]
  38441. SemaphoreHandle_t hSemaphore = (SemaphoreHandle_t)semaphore_id;
  38442. 80108d4: 687b ldr r3, [r7, #4]
  38443. 80108d6: 613b str r3, [r7, #16]
  38444. osStatus_t stat;
  38445. BaseType_t yield;
  38446. stat = osOK;
  38447. 80108d8: 2300 movs r3, #0
  38448. 80108da: 617b str r3, [r7, #20]
  38449. if (hSemaphore == NULL) {
  38450. 80108dc: 693b ldr r3, [r7, #16]
  38451. 80108de: 2b00 cmp r3, #0
  38452. 80108e0: d103 bne.n 80108ea <osSemaphoreRelease+0x1e>
  38453. stat = osErrorParameter;
  38454. 80108e2: f06f 0303 mvn.w r3, #3
  38455. 80108e6: 617b str r3, [r7, #20]
  38456. 80108e8: e02c b.n 8010944 <osSemaphoreRelease+0x78>
  38457. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  38458. 80108ea: f3ef 8305 mrs r3, IPSR
  38459. 80108ee: 60fb str r3, [r7, #12]
  38460. return(result);
  38461. 80108f0: 68fb ldr r3, [r7, #12]
  38462. }
  38463. else if (IS_IRQ()) {
  38464. 80108f2: 2b00 cmp r3, #0
  38465. 80108f4: d01a beq.n 801092c <osSemaphoreRelease+0x60>
  38466. yield = pdFALSE;
  38467. 80108f6: 2300 movs r3, #0
  38468. 80108f8: 60bb str r3, [r7, #8]
  38469. if (xSemaphoreGiveFromISR (hSemaphore, &yield) != pdTRUE) {
  38470. 80108fa: f107 0308 add.w r3, r7, #8
  38471. 80108fe: 4619 mov r1, r3
  38472. 8010900: 6938 ldr r0, [r7, #16]
  38473. 8010902: f000 feb5 bl 8011670 <xQueueGiveFromISR>
  38474. 8010906: 4603 mov r3, r0
  38475. 8010908: 2b01 cmp r3, #1
  38476. 801090a: d003 beq.n 8010914 <osSemaphoreRelease+0x48>
  38477. stat = osErrorResource;
  38478. 801090c: f06f 0302 mvn.w r3, #2
  38479. 8010910: 617b str r3, [r7, #20]
  38480. 8010912: e017 b.n 8010944 <osSemaphoreRelease+0x78>
  38481. } else {
  38482. portYIELD_FROM_ISR (yield);
  38483. 8010914: 68bb ldr r3, [r7, #8]
  38484. 8010916: 2b00 cmp r3, #0
  38485. 8010918: d014 beq.n 8010944 <osSemaphoreRelease+0x78>
  38486. 801091a: 4b0d ldr r3, [pc, #52] @ (8010950 <osSemaphoreRelease+0x84>)
  38487. 801091c: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  38488. 8010920: 601a str r2, [r3, #0]
  38489. 8010922: f3bf 8f4f dsb sy
  38490. 8010926: f3bf 8f6f isb sy
  38491. 801092a: e00b b.n 8010944 <osSemaphoreRelease+0x78>
  38492. }
  38493. }
  38494. else {
  38495. if (xSemaphoreGive (hSemaphore) != pdPASS) {
  38496. 801092c: 2300 movs r3, #0
  38497. 801092e: 2200 movs r2, #0
  38498. 8010930: 2100 movs r1, #0
  38499. 8010932: 6938 ldr r0, [r7, #16]
  38500. 8010934: f000 fcfc bl 8011330 <xQueueGenericSend>
  38501. 8010938: 4603 mov r3, r0
  38502. 801093a: 2b01 cmp r3, #1
  38503. 801093c: d002 beq.n 8010944 <osSemaphoreRelease+0x78>
  38504. stat = osErrorResource;
  38505. 801093e: f06f 0302 mvn.w r3, #2
  38506. 8010942: 617b str r3, [r7, #20]
  38507. }
  38508. }
  38509. return (stat);
  38510. 8010944: 697b ldr r3, [r7, #20]
  38511. }
  38512. 8010946: 4618 mov r0, r3
  38513. 8010948: 3718 adds r7, #24
  38514. 801094a: 46bd mov sp, r7
  38515. 801094c: bd80 pop {r7, pc}
  38516. 801094e: bf00 nop
  38517. 8010950: e000ed04 .word 0xe000ed04
  38518. 08010954 <osSemaphoreDelete>:
  38519. }
  38520. return (count);
  38521. }
  38522. osStatus_t osSemaphoreDelete (osSemaphoreId_t semaphore_id) {
  38523. 8010954: b580 push {r7, lr}
  38524. 8010956: b086 sub sp, #24
  38525. 8010958: af00 add r7, sp, #0
  38526. 801095a: 6078 str r0, [r7, #4]
  38527. SemaphoreHandle_t hSemaphore = (SemaphoreHandle_t)semaphore_id;
  38528. 801095c: 687b ldr r3, [r7, #4]
  38529. 801095e: 613b str r3, [r7, #16]
  38530. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  38531. 8010960: f3ef 8305 mrs r3, IPSR
  38532. 8010964: 60fb str r3, [r7, #12]
  38533. return(result);
  38534. 8010966: 68fb ldr r3, [r7, #12]
  38535. osStatus_t stat;
  38536. #ifndef USE_FreeRTOS_HEAP_1
  38537. if (IS_IRQ()) {
  38538. 8010968: 2b00 cmp r3, #0
  38539. 801096a: d003 beq.n 8010974 <osSemaphoreDelete+0x20>
  38540. stat = osErrorISR;
  38541. 801096c: f06f 0305 mvn.w r3, #5
  38542. 8010970: 617b str r3, [r7, #20]
  38543. 8010972: e00e b.n 8010992 <osSemaphoreDelete+0x3e>
  38544. }
  38545. else if (hSemaphore == NULL) {
  38546. 8010974: 693b ldr r3, [r7, #16]
  38547. 8010976: 2b00 cmp r3, #0
  38548. 8010978: d103 bne.n 8010982 <osSemaphoreDelete+0x2e>
  38549. stat = osErrorParameter;
  38550. 801097a: f06f 0303 mvn.w r3, #3
  38551. 801097e: 617b str r3, [r7, #20]
  38552. 8010980: e007 b.n 8010992 <osSemaphoreDelete+0x3e>
  38553. }
  38554. else {
  38555. #if (configQUEUE_REGISTRY_SIZE > 0)
  38556. vQueueUnregisterQueue (hSemaphore);
  38557. 8010982: 6938 ldr r0, [r7, #16]
  38558. 8010984: f001 fb2c bl 8011fe0 <vQueueUnregisterQueue>
  38559. #endif
  38560. stat = osOK;
  38561. 8010988: 2300 movs r3, #0
  38562. 801098a: 617b str r3, [r7, #20]
  38563. vSemaphoreDelete (hSemaphore);
  38564. 801098c: 6938 ldr r0, [r7, #16]
  38565. 801098e: f001 f9b1 bl 8011cf4 <vQueueDelete>
  38566. }
  38567. #else
  38568. stat = osError;
  38569. #endif
  38570. return (stat);
  38571. 8010992: 697b ldr r3, [r7, #20]
  38572. }
  38573. 8010994: 4618 mov r0, r3
  38574. 8010996: 3718 adds r7, #24
  38575. 8010998: 46bd mov sp, r7
  38576. 801099a: bd80 pop {r7, pc}
  38577. 0801099c <osMessageQueueNew>:
  38578. /*---------------------------------------------------------------------------*/
  38579. osMessageQueueId_t osMessageQueueNew (uint32_t msg_count, uint32_t msg_size, const osMessageQueueAttr_t *attr) {
  38580. 801099c: b580 push {r7, lr}
  38581. 801099e: b08a sub sp, #40 @ 0x28
  38582. 80109a0: af02 add r7, sp, #8
  38583. 80109a2: 60f8 str r0, [r7, #12]
  38584. 80109a4: 60b9 str r1, [r7, #8]
  38585. 80109a6: 607a str r2, [r7, #4]
  38586. int32_t mem;
  38587. #if (configQUEUE_REGISTRY_SIZE > 0)
  38588. const char *name;
  38589. #endif
  38590. hQueue = NULL;
  38591. 80109a8: 2300 movs r3, #0
  38592. 80109aa: 61fb str r3, [r7, #28]
  38593. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  38594. 80109ac: f3ef 8305 mrs r3, IPSR
  38595. 80109b0: 613b str r3, [r7, #16]
  38596. return(result);
  38597. 80109b2: 693b ldr r3, [r7, #16]
  38598. if (!IS_IRQ() && (msg_count > 0U) && (msg_size > 0U)) {
  38599. 80109b4: 2b00 cmp r3, #0
  38600. 80109b6: d15f bne.n 8010a78 <osMessageQueueNew+0xdc>
  38601. 80109b8: 68fb ldr r3, [r7, #12]
  38602. 80109ba: 2b00 cmp r3, #0
  38603. 80109bc: d05c beq.n 8010a78 <osMessageQueueNew+0xdc>
  38604. 80109be: 68bb ldr r3, [r7, #8]
  38605. 80109c0: 2b00 cmp r3, #0
  38606. 80109c2: d059 beq.n 8010a78 <osMessageQueueNew+0xdc>
  38607. mem = -1;
  38608. 80109c4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  38609. 80109c8: 61bb str r3, [r7, #24]
  38610. if (attr != NULL) {
  38611. 80109ca: 687b ldr r3, [r7, #4]
  38612. 80109cc: 2b00 cmp r3, #0
  38613. 80109ce: d029 beq.n 8010a24 <osMessageQueueNew+0x88>
  38614. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
  38615. 80109d0: 687b ldr r3, [r7, #4]
  38616. 80109d2: 689b ldr r3, [r3, #8]
  38617. 80109d4: 2b00 cmp r3, #0
  38618. 80109d6: d012 beq.n 80109fe <osMessageQueueNew+0x62>
  38619. 80109d8: 687b ldr r3, [r7, #4]
  38620. 80109da: 68db ldr r3, [r3, #12]
  38621. 80109dc: 2b4f cmp r3, #79 @ 0x4f
  38622. 80109de: d90e bls.n 80109fe <osMessageQueueNew+0x62>
  38623. (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
  38624. 80109e0: 687b ldr r3, [r7, #4]
  38625. 80109e2: 691b ldr r3, [r3, #16]
  38626. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
  38627. 80109e4: 2b00 cmp r3, #0
  38628. 80109e6: d00a beq.n 80109fe <osMessageQueueNew+0x62>
  38629. (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
  38630. 80109e8: 687b ldr r3, [r7, #4]
  38631. 80109ea: 695a ldr r2, [r3, #20]
  38632. 80109ec: 68fb ldr r3, [r7, #12]
  38633. 80109ee: 68b9 ldr r1, [r7, #8]
  38634. 80109f0: fb01 f303 mul.w r3, r1, r3
  38635. 80109f4: 429a cmp r2, r3
  38636. 80109f6: d302 bcc.n 80109fe <osMessageQueueNew+0x62>
  38637. mem = 1;
  38638. 80109f8: 2301 movs r3, #1
  38639. 80109fa: 61bb str r3, [r7, #24]
  38640. 80109fc: e014 b.n 8010a28 <osMessageQueueNew+0x8c>
  38641. }
  38642. else {
  38643. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
  38644. 80109fe: 687b ldr r3, [r7, #4]
  38645. 8010a00: 689b ldr r3, [r3, #8]
  38646. 8010a02: 2b00 cmp r3, #0
  38647. 8010a04: d110 bne.n 8010a28 <osMessageQueueNew+0x8c>
  38648. 8010a06: 687b ldr r3, [r7, #4]
  38649. 8010a08: 68db ldr r3, [r3, #12]
  38650. 8010a0a: 2b00 cmp r3, #0
  38651. 8010a0c: d10c bne.n 8010a28 <osMessageQueueNew+0x8c>
  38652. (attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
  38653. 8010a0e: 687b ldr r3, [r7, #4]
  38654. 8010a10: 691b ldr r3, [r3, #16]
  38655. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
  38656. 8010a12: 2b00 cmp r3, #0
  38657. 8010a14: d108 bne.n 8010a28 <osMessageQueueNew+0x8c>
  38658. (attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
  38659. 8010a16: 687b ldr r3, [r7, #4]
  38660. 8010a18: 695b ldr r3, [r3, #20]
  38661. 8010a1a: 2b00 cmp r3, #0
  38662. 8010a1c: d104 bne.n 8010a28 <osMessageQueueNew+0x8c>
  38663. mem = 0;
  38664. 8010a1e: 2300 movs r3, #0
  38665. 8010a20: 61bb str r3, [r7, #24]
  38666. 8010a22: e001 b.n 8010a28 <osMessageQueueNew+0x8c>
  38667. }
  38668. }
  38669. }
  38670. else {
  38671. mem = 0;
  38672. 8010a24: 2300 movs r3, #0
  38673. 8010a26: 61bb str r3, [r7, #24]
  38674. }
  38675. if (mem == 1) {
  38676. 8010a28: 69bb ldr r3, [r7, #24]
  38677. 8010a2a: 2b01 cmp r3, #1
  38678. 8010a2c: d10b bne.n 8010a46 <osMessageQueueNew+0xaa>
  38679. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  38680. hQueue = xQueueCreateStatic (msg_count, msg_size, attr->mq_mem, attr->cb_mem);
  38681. 8010a2e: 687b ldr r3, [r7, #4]
  38682. 8010a30: 691a ldr r2, [r3, #16]
  38683. 8010a32: 687b ldr r3, [r7, #4]
  38684. 8010a34: 689b ldr r3, [r3, #8]
  38685. 8010a36: 2100 movs r1, #0
  38686. 8010a38: 9100 str r1, [sp, #0]
  38687. 8010a3a: 68b9 ldr r1, [r7, #8]
  38688. 8010a3c: 68f8 ldr r0, [r7, #12]
  38689. 8010a3e: f000 fa75 bl 8010f2c <xQueueGenericCreateStatic>
  38690. 8010a42: 61f8 str r0, [r7, #28]
  38691. 8010a44: e008 b.n 8010a58 <osMessageQueueNew+0xbc>
  38692. #endif
  38693. }
  38694. else {
  38695. if (mem == 0) {
  38696. 8010a46: 69bb ldr r3, [r7, #24]
  38697. 8010a48: 2b00 cmp r3, #0
  38698. 8010a4a: d105 bne.n 8010a58 <osMessageQueueNew+0xbc>
  38699. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  38700. hQueue = xQueueCreate (msg_count, msg_size);
  38701. 8010a4c: 2200 movs r2, #0
  38702. 8010a4e: 68b9 ldr r1, [r7, #8]
  38703. 8010a50: 68f8 ldr r0, [r7, #12]
  38704. 8010a52: f000 fae8 bl 8011026 <xQueueGenericCreate>
  38705. 8010a56: 61f8 str r0, [r7, #28]
  38706. #endif
  38707. }
  38708. }
  38709. #if (configQUEUE_REGISTRY_SIZE > 0)
  38710. if (hQueue != NULL) {
  38711. 8010a58: 69fb ldr r3, [r7, #28]
  38712. 8010a5a: 2b00 cmp r3, #0
  38713. 8010a5c: d00c beq.n 8010a78 <osMessageQueueNew+0xdc>
  38714. if (attr != NULL) {
  38715. 8010a5e: 687b ldr r3, [r7, #4]
  38716. 8010a60: 2b00 cmp r3, #0
  38717. 8010a62: d003 beq.n 8010a6c <osMessageQueueNew+0xd0>
  38718. name = attr->name;
  38719. 8010a64: 687b ldr r3, [r7, #4]
  38720. 8010a66: 681b ldr r3, [r3, #0]
  38721. 8010a68: 617b str r3, [r7, #20]
  38722. 8010a6a: e001 b.n 8010a70 <osMessageQueueNew+0xd4>
  38723. } else {
  38724. name = NULL;
  38725. 8010a6c: 2300 movs r3, #0
  38726. 8010a6e: 617b str r3, [r7, #20]
  38727. }
  38728. vQueueAddToRegistry (hQueue, name);
  38729. 8010a70: 6979 ldr r1, [r7, #20]
  38730. 8010a72: 69f8 ldr r0, [r7, #28]
  38731. 8010a74: f001 fa8a bl 8011f8c <vQueueAddToRegistry>
  38732. }
  38733. #endif
  38734. }
  38735. return ((osMessageQueueId_t)hQueue);
  38736. 8010a78: 69fb ldr r3, [r7, #28]
  38737. }
  38738. 8010a7a: 4618 mov r0, r3
  38739. 8010a7c: 3720 adds r7, #32
  38740. 8010a7e: 46bd mov sp, r7
  38741. 8010a80: bd80 pop {r7, pc}
  38742. ...
  38743. 08010a84 <osMessageQueuePut>:
  38744. osStatus_t osMessageQueuePut (osMessageQueueId_t mq_id, const void *msg_ptr, uint8_t msg_prio, uint32_t timeout) {
  38745. 8010a84: b580 push {r7, lr}
  38746. 8010a86: b088 sub sp, #32
  38747. 8010a88: af00 add r7, sp, #0
  38748. 8010a8a: 60f8 str r0, [r7, #12]
  38749. 8010a8c: 60b9 str r1, [r7, #8]
  38750. 8010a8e: 603b str r3, [r7, #0]
  38751. 8010a90: 4613 mov r3, r2
  38752. 8010a92: 71fb strb r3, [r7, #7]
  38753. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  38754. 8010a94: 68fb ldr r3, [r7, #12]
  38755. 8010a96: 61bb str r3, [r7, #24]
  38756. osStatus_t stat;
  38757. BaseType_t yield;
  38758. (void)msg_prio; /* Message priority is ignored */
  38759. stat = osOK;
  38760. 8010a98: 2300 movs r3, #0
  38761. 8010a9a: 61fb str r3, [r7, #28]
  38762. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  38763. 8010a9c: f3ef 8305 mrs r3, IPSR
  38764. 8010aa0: 617b str r3, [r7, #20]
  38765. return(result);
  38766. 8010aa2: 697b ldr r3, [r7, #20]
  38767. if (IS_IRQ()) {
  38768. 8010aa4: 2b00 cmp r3, #0
  38769. 8010aa6: d028 beq.n 8010afa <osMessageQueuePut+0x76>
  38770. if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) {
  38771. 8010aa8: 69bb ldr r3, [r7, #24]
  38772. 8010aaa: 2b00 cmp r3, #0
  38773. 8010aac: d005 beq.n 8010aba <osMessageQueuePut+0x36>
  38774. 8010aae: 68bb ldr r3, [r7, #8]
  38775. 8010ab0: 2b00 cmp r3, #0
  38776. 8010ab2: d002 beq.n 8010aba <osMessageQueuePut+0x36>
  38777. 8010ab4: 683b ldr r3, [r7, #0]
  38778. 8010ab6: 2b00 cmp r3, #0
  38779. 8010ab8: d003 beq.n 8010ac2 <osMessageQueuePut+0x3e>
  38780. stat = osErrorParameter;
  38781. 8010aba: f06f 0303 mvn.w r3, #3
  38782. 8010abe: 61fb str r3, [r7, #28]
  38783. 8010ac0: e038 b.n 8010b34 <osMessageQueuePut+0xb0>
  38784. }
  38785. else {
  38786. yield = pdFALSE;
  38787. 8010ac2: 2300 movs r3, #0
  38788. 8010ac4: 613b str r3, [r7, #16]
  38789. if (xQueueSendToBackFromISR (hQueue, msg_ptr, &yield) != pdTRUE) {
  38790. 8010ac6: f107 0210 add.w r2, r7, #16
  38791. 8010aca: 2300 movs r3, #0
  38792. 8010acc: 68b9 ldr r1, [r7, #8]
  38793. 8010ace: 69b8 ldr r0, [r7, #24]
  38794. 8010ad0: f000 fd30 bl 8011534 <xQueueGenericSendFromISR>
  38795. 8010ad4: 4603 mov r3, r0
  38796. 8010ad6: 2b01 cmp r3, #1
  38797. 8010ad8: d003 beq.n 8010ae2 <osMessageQueuePut+0x5e>
  38798. stat = osErrorResource;
  38799. 8010ada: f06f 0302 mvn.w r3, #2
  38800. 8010ade: 61fb str r3, [r7, #28]
  38801. 8010ae0: e028 b.n 8010b34 <osMessageQueuePut+0xb0>
  38802. } else {
  38803. portYIELD_FROM_ISR (yield);
  38804. 8010ae2: 693b ldr r3, [r7, #16]
  38805. 8010ae4: 2b00 cmp r3, #0
  38806. 8010ae6: d025 beq.n 8010b34 <osMessageQueuePut+0xb0>
  38807. 8010ae8: 4b15 ldr r3, [pc, #84] @ (8010b40 <osMessageQueuePut+0xbc>)
  38808. 8010aea: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  38809. 8010aee: 601a str r2, [r3, #0]
  38810. 8010af0: f3bf 8f4f dsb sy
  38811. 8010af4: f3bf 8f6f isb sy
  38812. 8010af8: e01c b.n 8010b34 <osMessageQueuePut+0xb0>
  38813. }
  38814. }
  38815. }
  38816. else {
  38817. if ((hQueue == NULL) || (msg_ptr == NULL)) {
  38818. 8010afa: 69bb ldr r3, [r7, #24]
  38819. 8010afc: 2b00 cmp r3, #0
  38820. 8010afe: d002 beq.n 8010b06 <osMessageQueuePut+0x82>
  38821. 8010b00: 68bb ldr r3, [r7, #8]
  38822. 8010b02: 2b00 cmp r3, #0
  38823. 8010b04: d103 bne.n 8010b0e <osMessageQueuePut+0x8a>
  38824. stat = osErrorParameter;
  38825. 8010b06: f06f 0303 mvn.w r3, #3
  38826. 8010b0a: 61fb str r3, [r7, #28]
  38827. 8010b0c: e012 b.n 8010b34 <osMessageQueuePut+0xb0>
  38828. }
  38829. else {
  38830. if (xQueueSendToBack (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) {
  38831. 8010b0e: 2300 movs r3, #0
  38832. 8010b10: 683a ldr r2, [r7, #0]
  38833. 8010b12: 68b9 ldr r1, [r7, #8]
  38834. 8010b14: 69b8 ldr r0, [r7, #24]
  38835. 8010b16: f000 fc0b bl 8011330 <xQueueGenericSend>
  38836. 8010b1a: 4603 mov r3, r0
  38837. 8010b1c: 2b01 cmp r3, #1
  38838. 8010b1e: d009 beq.n 8010b34 <osMessageQueuePut+0xb0>
  38839. if (timeout != 0U) {
  38840. 8010b20: 683b ldr r3, [r7, #0]
  38841. 8010b22: 2b00 cmp r3, #0
  38842. 8010b24: d003 beq.n 8010b2e <osMessageQueuePut+0xaa>
  38843. stat = osErrorTimeout;
  38844. 8010b26: f06f 0301 mvn.w r3, #1
  38845. 8010b2a: 61fb str r3, [r7, #28]
  38846. 8010b2c: e002 b.n 8010b34 <osMessageQueuePut+0xb0>
  38847. } else {
  38848. stat = osErrorResource;
  38849. 8010b2e: f06f 0302 mvn.w r3, #2
  38850. 8010b32: 61fb str r3, [r7, #28]
  38851. }
  38852. }
  38853. }
  38854. }
  38855. return (stat);
  38856. 8010b34: 69fb ldr r3, [r7, #28]
  38857. }
  38858. 8010b36: 4618 mov r0, r3
  38859. 8010b38: 3720 adds r7, #32
  38860. 8010b3a: 46bd mov sp, r7
  38861. 8010b3c: bd80 pop {r7, pc}
  38862. 8010b3e: bf00 nop
  38863. 8010b40: e000ed04 .word 0xe000ed04
  38864. 08010b44 <osMessageQueueGet>:
  38865. osStatus_t osMessageQueueGet (osMessageQueueId_t mq_id, void *msg_ptr, uint8_t *msg_prio, uint32_t timeout) {
  38866. 8010b44: b580 push {r7, lr}
  38867. 8010b46: b088 sub sp, #32
  38868. 8010b48: af00 add r7, sp, #0
  38869. 8010b4a: 60f8 str r0, [r7, #12]
  38870. 8010b4c: 60b9 str r1, [r7, #8]
  38871. 8010b4e: 607a str r2, [r7, #4]
  38872. 8010b50: 603b str r3, [r7, #0]
  38873. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  38874. 8010b52: 68fb ldr r3, [r7, #12]
  38875. 8010b54: 61bb str r3, [r7, #24]
  38876. osStatus_t stat;
  38877. BaseType_t yield;
  38878. (void)msg_prio; /* Message priority is ignored */
  38879. stat = osOK;
  38880. 8010b56: 2300 movs r3, #0
  38881. 8010b58: 61fb str r3, [r7, #28]
  38882. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  38883. 8010b5a: f3ef 8305 mrs r3, IPSR
  38884. 8010b5e: 617b str r3, [r7, #20]
  38885. return(result);
  38886. 8010b60: 697b ldr r3, [r7, #20]
  38887. if (IS_IRQ()) {
  38888. 8010b62: 2b00 cmp r3, #0
  38889. 8010b64: d028 beq.n 8010bb8 <osMessageQueueGet+0x74>
  38890. if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) {
  38891. 8010b66: 69bb ldr r3, [r7, #24]
  38892. 8010b68: 2b00 cmp r3, #0
  38893. 8010b6a: d005 beq.n 8010b78 <osMessageQueueGet+0x34>
  38894. 8010b6c: 68bb ldr r3, [r7, #8]
  38895. 8010b6e: 2b00 cmp r3, #0
  38896. 8010b70: d002 beq.n 8010b78 <osMessageQueueGet+0x34>
  38897. 8010b72: 683b ldr r3, [r7, #0]
  38898. 8010b74: 2b00 cmp r3, #0
  38899. 8010b76: d003 beq.n 8010b80 <osMessageQueueGet+0x3c>
  38900. stat = osErrorParameter;
  38901. 8010b78: f06f 0303 mvn.w r3, #3
  38902. 8010b7c: 61fb str r3, [r7, #28]
  38903. 8010b7e: e037 b.n 8010bf0 <osMessageQueueGet+0xac>
  38904. }
  38905. else {
  38906. yield = pdFALSE;
  38907. 8010b80: 2300 movs r3, #0
  38908. 8010b82: 613b str r3, [r7, #16]
  38909. if (xQueueReceiveFromISR (hQueue, msg_ptr, &yield) != pdPASS) {
  38910. 8010b84: f107 0310 add.w r3, r7, #16
  38911. 8010b88: 461a mov r2, r3
  38912. 8010b8a: 68b9 ldr r1, [r7, #8]
  38913. 8010b8c: 69b8 ldr r0, [r7, #24]
  38914. 8010b8e: f000 fff1 bl 8011b74 <xQueueReceiveFromISR>
  38915. 8010b92: 4603 mov r3, r0
  38916. 8010b94: 2b01 cmp r3, #1
  38917. 8010b96: d003 beq.n 8010ba0 <osMessageQueueGet+0x5c>
  38918. stat = osErrorResource;
  38919. 8010b98: f06f 0302 mvn.w r3, #2
  38920. 8010b9c: 61fb str r3, [r7, #28]
  38921. 8010b9e: e027 b.n 8010bf0 <osMessageQueueGet+0xac>
  38922. } else {
  38923. portYIELD_FROM_ISR (yield);
  38924. 8010ba0: 693b ldr r3, [r7, #16]
  38925. 8010ba2: 2b00 cmp r3, #0
  38926. 8010ba4: d024 beq.n 8010bf0 <osMessageQueueGet+0xac>
  38927. 8010ba6: 4b15 ldr r3, [pc, #84] @ (8010bfc <osMessageQueueGet+0xb8>)
  38928. 8010ba8: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  38929. 8010bac: 601a str r2, [r3, #0]
  38930. 8010bae: f3bf 8f4f dsb sy
  38931. 8010bb2: f3bf 8f6f isb sy
  38932. 8010bb6: e01b b.n 8010bf0 <osMessageQueueGet+0xac>
  38933. }
  38934. }
  38935. }
  38936. else {
  38937. if ((hQueue == NULL) || (msg_ptr == NULL)) {
  38938. 8010bb8: 69bb ldr r3, [r7, #24]
  38939. 8010bba: 2b00 cmp r3, #0
  38940. 8010bbc: d002 beq.n 8010bc4 <osMessageQueueGet+0x80>
  38941. 8010bbe: 68bb ldr r3, [r7, #8]
  38942. 8010bc0: 2b00 cmp r3, #0
  38943. 8010bc2: d103 bne.n 8010bcc <osMessageQueueGet+0x88>
  38944. stat = osErrorParameter;
  38945. 8010bc4: f06f 0303 mvn.w r3, #3
  38946. 8010bc8: 61fb str r3, [r7, #28]
  38947. 8010bca: e011 b.n 8010bf0 <osMessageQueueGet+0xac>
  38948. }
  38949. else {
  38950. if (xQueueReceive (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) {
  38951. 8010bcc: 683a ldr r2, [r7, #0]
  38952. 8010bce: 68b9 ldr r1, [r7, #8]
  38953. 8010bd0: 69b8 ldr r0, [r7, #24]
  38954. 8010bd2: f000 fddd bl 8011790 <xQueueReceive>
  38955. 8010bd6: 4603 mov r3, r0
  38956. 8010bd8: 2b01 cmp r3, #1
  38957. 8010bda: d009 beq.n 8010bf0 <osMessageQueueGet+0xac>
  38958. if (timeout != 0U) {
  38959. 8010bdc: 683b ldr r3, [r7, #0]
  38960. 8010bde: 2b00 cmp r3, #0
  38961. 8010be0: d003 beq.n 8010bea <osMessageQueueGet+0xa6>
  38962. stat = osErrorTimeout;
  38963. 8010be2: f06f 0301 mvn.w r3, #1
  38964. 8010be6: 61fb str r3, [r7, #28]
  38965. 8010be8: e002 b.n 8010bf0 <osMessageQueueGet+0xac>
  38966. } else {
  38967. stat = osErrorResource;
  38968. 8010bea: f06f 0302 mvn.w r3, #2
  38969. 8010bee: 61fb str r3, [r7, #28]
  38970. }
  38971. }
  38972. }
  38973. }
  38974. return (stat);
  38975. 8010bf0: 69fb ldr r3, [r7, #28]
  38976. }
  38977. 8010bf2: 4618 mov r0, r3
  38978. 8010bf4: 3720 adds r7, #32
  38979. 8010bf6: 46bd mov sp, r7
  38980. 8010bf8: bd80 pop {r7, pc}
  38981. 8010bfa: bf00 nop
  38982. 8010bfc: e000ed04 .word 0xe000ed04
  38983. 08010c00 <osMessageQueueGetCount>:
  38984. }
  38985. return (size);
  38986. }
  38987. uint32_t osMessageQueueGetCount (osMessageQueueId_t mq_id) {
  38988. 8010c00: b580 push {r7, lr}
  38989. 8010c02: b086 sub sp, #24
  38990. 8010c04: af00 add r7, sp, #0
  38991. 8010c06: 6078 str r0, [r7, #4]
  38992. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  38993. 8010c08: 687b ldr r3, [r7, #4]
  38994. 8010c0a: 613b str r3, [r7, #16]
  38995. UBaseType_t count;
  38996. if (hQueue == NULL) {
  38997. 8010c0c: 693b ldr r3, [r7, #16]
  38998. 8010c0e: 2b00 cmp r3, #0
  38999. 8010c10: d102 bne.n 8010c18 <osMessageQueueGetCount+0x18>
  39000. count = 0U;
  39001. 8010c12: 2300 movs r3, #0
  39002. 8010c14: 617b str r3, [r7, #20]
  39003. 8010c16: e00e b.n 8010c36 <osMessageQueueGetCount+0x36>
  39004. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  39005. 8010c18: f3ef 8305 mrs r3, IPSR
  39006. 8010c1c: 60fb str r3, [r7, #12]
  39007. return(result);
  39008. 8010c1e: 68fb ldr r3, [r7, #12]
  39009. }
  39010. else if (IS_IRQ()) {
  39011. 8010c20: 2b00 cmp r3, #0
  39012. 8010c22: d004 beq.n 8010c2e <osMessageQueueGetCount+0x2e>
  39013. count = uxQueueMessagesWaitingFromISR (hQueue);
  39014. 8010c24: 6938 ldr r0, [r7, #16]
  39015. 8010c26: f001 f846 bl 8011cb6 <uxQueueMessagesWaitingFromISR>
  39016. 8010c2a: 6178 str r0, [r7, #20]
  39017. 8010c2c: e003 b.n 8010c36 <osMessageQueueGetCount+0x36>
  39018. }
  39019. else {
  39020. count = uxQueueMessagesWaiting (hQueue);
  39021. 8010c2e: 6938 ldr r0, [r7, #16]
  39022. 8010c30: f001 f822 bl 8011c78 <uxQueueMessagesWaiting>
  39023. 8010c34: 6178 str r0, [r7, #20]
  39024. }
  39025. return ((uint32_t)count);
  39026. 8010c36: 697b ldr r3, [r7, #20]
  39027. }
  39028. 8010c38: 4618 mov r0, r3
  39029. 8010c3a: 3718 adds r7, #24
  39030. 8010c3c: 46bd mov sp, r7
  39031. 8010c3e: bd80 pop {r7, pc}
  39032. 08010c40 <osMessageQueueDelete>:
  39033. }
  39034. return (stat);
  39035. }
  39036. osStatus_t osMessageQueueDelete (osMessageQueueId_t mq_id) {
  39037. 8010c40: b580 push {r7, lr}
  39038. 8010c42: b086 sub sp, #24
  39039. 8010c44: af00 add r7, sp, #0
  39040. 8010c46: 6078 str r0, [r7, #4]
  39041. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  39042. 8010c48: 687b ldr r3, [r7, #4]
  39043. 8010c4a: 613b str r3, [r7, #16]
  39044. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  39045. 8010c4c: f3ef 8305 mrs r3, IPSR
  39046. 8010c50: 60fb str r3, [r7, #12]
  39047. return(result);
  39048. 8010c52: 68fb ldr r3, [r7, #12]
  39049. osStatus_t stat;
  39050. #ifndef USE_FreeRTOS_HEAP_1
  39051. if (IS_IRQ()) {
  39052. 8010c54: 2b00 cmp r3, #0
  39053. 8010c56: d003 beq.n 8010c60 <osMessageQueueDelete+0x20>
  39054. stat = osErrorISR;
  39055. 8010c58: f06f 0305 mvn.w r3, #5
  39056. 8010c5c: 617b str r3, [r7, #20]
  39057. 8010c5e: e00e b.n 8010c7e <osMessageQueueDelete+0x3e>
  39058. }
  39059. else if (hQueue == NULL) {
  39060. 8010c60: 693b ldr r3, [r7, #16]
  39061. 8010c62: 2b00 cmp r3, #0
  39062. 8010c64: d103 bne.n 8010c6e <osMessageQueueDelete+0x2e>
  39063. stat = osErrorParameter;
  39064. 8010c66: f06f 0303 mvn.w r3, #3
  39065. 8010c6a: 617b str r3, [r7, #20]
  39066. 8010c6c: e007 b.n 8010c7e <osMessageQueueDelete+0x3e>
  39067. }
  39068. else {
  39069. #if (configQUEUE_REGISTRY_SIZE > 0)
  39070. vQueueUnregisterQueue (hQueue);
  39071. 8010c6e: 6938 ldr r0, [r7, #16]
  39072. 8010c70: f001 f9b6 bl 8011fe0 <vQueueUnregisterQueue>
  39073. #endif
  39074. stat = osOK;
  39075. 8010c74: 2300 movs r3, #0
  39076. 8010c76: 617b str r3, [r7, #20]
  39077. vQueueDelete (hQueue);
  39078. 8010c78: 6938 ldr r0, [r7, #16]
  39079. 8010c7a: f001 f83b bl 8011cf4 <vQueueDelete>
  39080. }
  39081. #else
  39082. stat = osError;
  39083. #endif
  39084. return (stat);
  39085. 8010c7e: 697b ldr r3, [r7, #20]
  39086. }
  39087. 8010c80: 4618 mov r0, r3
  39088. 8010c82: 3718 adds r7, #24
  39089. 8010c84: 46bd mov sp, r7
  39090. 8010c86: bd80 pop {r7, pc}
  39091. 08010c88 <vApplicationGetIdleTaskMemory>:
  39092. /*
  39093. vApplicationGetIdleTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
  39094. equals to 1 and is required for static memory allocation support.
  39095. */
  39096. __WEAK void vApplicationGetIdleTaskMemory (StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize) {
  39097. 8010c88: b480 push {r7}
  39098. 8010c8a: b085 sub sp, #20
  39099. 8010c8c: af00 add r7, sp, #0
  39100. 8010c8e: 60f8 str r0, [r7, #12]
  39101. 8010c90: 60b9 str r1, [r7, #8]
  39102. 8010c92: 607a str r2, [r7, #4]
  39103. /* Idle task control block and stack */
  39104. static StaticTask_t Idle_TCB;
  39105. static StackType_t Idle_Stack[configMINIMAL_STACK_SIZE];
  39106. *ppxIdleTaskTCBBuffer = &Idle_TCB;
  39107. 8010c94: 68fb ldr r3, [r7, #12]
  39108. 8010c96: 4a07 ldr r2, [pc, #28] @ (8010cb4 <vApplicationGetIdleTaskMemory+0x2c>)
  39109. 8010c98: 601a str r2, [r3, #0]
  39110. *ppxIdleTaskStackBuffer = &Idle_Stack[0];
  39111. 8010c9a: 68bb ldr r3, [r7, #8]
  39112. 8010c9c: 4a06 ldr r2, [pc, #24] @ (8010cb8 <vApplicationGetIdleTaskMemory+0x30>)
  39113. 8010c9e: 601a str r2, [r3, #0]
  39114. *pulIdleTaskStackSize = (uint32_t)configMINIMAL_STACK_SIZE;
  39115. 8010ca0: 687b ldr r3, [r7, #4]
  39116. 8010ca2: f44f 7200 mov.w r2, #512 @ 0x200
  39117. 8010ca6: 601a str r2, [r3, #0]
  39118. }
  39119. 8010ca8: bf00 nop
  39120. 8010caa: 3714 adds r7, #20
  39121. 8010cac: 46bd mov sp, r7
  39122. 8010cae: f85d 7b04 ldr.w r7, [sp], #4
  39123. 8010cb2: 4770 bx lr
  39124. 8010cb4: 24001464 .word 0x24001464
  39125. 8010cb8: 2400150c .word 0x2400150c
  39126. 08010cbc <vApplicationGetTimerTaskMemory>:
  39127. /*
  39128. vApplicationGetTimerTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
  39129. equals to 1 and is required for static memory allocation support.
  39130. */
  39131. __WEAK void vApplicationGetTimerTaskMemory (StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize) {
  39132. 8010cbc: b480 push {r7}
  39133. 8010cbe: b085 sub sp, #20
  39134. 8010cc0: af00 add r7, sp, #0
  39135. 8010cc2: 60f8 str r0, [r7, #12]
  39136. 8010cc4: 60b9 str r1, [r7, #8]
  39137. 8010cc6: 607a str r2, [r7, #4]
  39138. /* Timer task control block and stack */
  39139. static StaticTask_t Timer_TCB;
  39140. static StackType_t Timer_Stack[configTIMER_TASK_STACK_DEPTH];
  39141. *ppxTimerTaskTCBBuffer = &Timer_TCB;
  39142. 8010cc8: 68fb ldr r3, [r7, #12]
  39143. 8010cca: 4a07 ldr r2, [pc, #28] @ (8010ce8 <vApplicationGetTimerTaskMemory+0x2c>)
  39144. 8010ccc: 601a str r2, [r3, #0]
  39145. *ppxTimerTaskStackBuffer = &Timer_Stack[0];
  39146. 8010cce: 68bb ldr r3, [r7, #8]
  39147. 8010cd0: 4a06 ldr r2, [pc, #24] @ (8010cec <vApplicationGetTimerTaskMemory+0x30>)
  39148. 8010cd2: 601a str r2, [r3, #0]
  39149. *pulTimerTaskStackSize = (uint32_t)configTIMER_TASK_STACK_DEPTH;
  39150. 8010cd4: 687b ldr r3, [r7, #4]
  39151. 8010cd6: f44f 6280 mov.w r2, #1024 @ 0x400
  39152. 8010cda: 601a str r2, [r3, #0]
  39153. }
  39154. 8010cdc: bf00 nop
  39155. 8010cde: 3714 adds r7, #20
  39156. 8010ce0: 46bd mov sp, r7
  39157. 8010ce2: f85d 7b04 ldr.w r7, [sp], #4
  39158. 8010ce6: 4770 bx lr
  39159. 8010ce8: 24001d0c .word 0x24001d0c
  39160. 8010cec: 24001db4 .word 0x24001db4
  39161. 08010cf0 <vListInitialise>:
  39162. /*-----------------------------------------------------------
  39163. * PUBLIC LIST API documented in list.h
  39164. *----------------------------------------------------------*/
  39165. void vListInitialise( List_t * const pxList )
  39166. {
  39167. 8010cf0: b480 push {r7}
  39168. 8010cf2: b083 sub sp, #12
  39169. 8010cf4: af00 add r7, sp, #0
  39170. 8010cf6: 6078 str r0, [r7, #4]
  39171. /* The list structure contains a list item which is used to mark the
  39172. end of the list. To initialise the list the list end is inserted
  39173. as the only list entry. */
  39174. pxList->pxIndex = ( ListItem_t * ) &( pxList->xListEnd ); /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */
  39175. 8010cf8: 687b ldr r3, [r7, #4]
  39176. 8010cfa: f103 0208 add.w r2, r3, #8
  39177. 8010cfe: 687b ldr r3, [r7, #4]
  39178. 8010d00: 605a str r2, [r3, #4]
  39179. /* The list end value is the highest possible value in the list to
  39180. ensure it remains at the end of the list. */
  39181. pxList->xListEnd.xItemValue = portMAX_DELAY;
  39182. 8010d02: 687b ldr r3, [r7, #4]
  39183. 8010d04: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  39184. 8010d08: 609a str r2, [r3, #8]
  39185. /* The list end next and previous pointers point to itself so we know
  39186. when the list is empty. */
  39187. pxList->xListEnd.pxNext = ( ListItem_t * ) &( pxList->xListEnd ); /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */
  39188. 8010d0a: 687b ldr r3, [r7, #4]
  39189. 8010d0c: f103 0208 add.w r2, r3, #8
  39190. 8010d10: 687b ldr r3, [r7, #4]
  39191. 8010d12: 60da str r2, [r3, #12]
  39192. pxList->xListEnd.pxPrevious = ( ListItem_t * ) &( pxList->xListEnd );/*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */
  39193. 8010d14: 687b ldr r3, [r7, #4]
  39194. 8010d16: f103 0208 add.w r2, r3, #8
  39195. 8010d1a: 687b ldr r3, [r7, #4]
  39196. 8010d1c: 611a str r2, [r3, #16]
  39197. pxList->uxNumberOfItems = ( UBaseType_t ) 0U;
  39198. 8010d1e: 687b ldr r3, [r7, #4]
  39199. 8010d20: 2200 movs r2, #0
  39200. 8010d22: 601a str r2, [r3, #0]
  39201. /* Write known values into the list if
  39202. configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
  39203. listSET_LIST_INTEGRITY_CHECK_1_VALUE( pxList );
  39204. listSET_LIST_INTEGRITY_CHECK_2_VALUE( pxList );
  39205. }
  39206. 8010d24: bf00 nop
  39207. 8010d26: 370c adds r7, #12
  39208. 8010d28: 46bd mov sp, r7
  39209. 8010d2a: f85d 7b04 ldr.w r7, [sp], #4
  39210. 8010d2e: 4770 bx lr
  39211. 08010d30 <vListInitialiseItem>:
  39212. /*-----------------------------------------------------------*/
  39213. void vListInitialiseItem( ListItem_t * const pxItem )
  39214. {
  39215. 8010d30: b480 push {r7}
  39216. 8010d32: b083 sub sp, #12
  39217. 8010d34: af00 add r7, sp, #0
  39218. 8010d36: 6078 str r0, [r7, #4]
  39219. /* Make sure the list item is not recorded as being on a list. */
  39220. pxItem->pxContainer = NULL;
  39221. 8010d38: 687b ldr r3, [r7, #4]
  39222. 8010d3a: 2200 movs r2, #0
  39223. 8010d3c: 611a str r2, [r3, #16]
  39224. /* Write known values into the list item if
  39225. configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
  39226. listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
  39227. listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
  39228. }
  39229. 8010d3e: bf00 nop
  39230. 8010d40: 370c adds r7, #12
  39231. 8010d42: 46bd mov sp, r7
  39232. 8010d44: f85d 7b04 ldr.w r7, [sp], #4
  39233. 8010d48: 4770 bx lr
  39234. 08010d4a <vListInsertEnd>:
  39235. /*-----------------------------------------------------------*/
  39236. void vListInsertEnd( List_t * const pxList, ListItem_t * const pxNewListItem )
  39237. {
  39238. 8010d4a: b480 push {r7}
  39239. 8010d4c: b085 sub sp, #20
  39240. 8010d4e: af00 add r7, sp, #0
  39241. 8010d50: 6078 str r0, [r7, #4]
  39242. 8010d52: 6039 str r1, [r7, #0]
  39243. ListItem_t * const pxIndex = pxList->pxIndex;
  39244. 8010d54: 687b ldr r3, [r7, #4]
  39245. 8010d56: 685b ldr r3, [r3, #4]
  39246. 8010d58: 60fb str r3, [r7, #12]
  39247. listTEST_LIST_ITEM_INTEGRITY( pxNewListItem );
  39248. /* Insert a new list item into pxList, but rather than sort the list,
  39249. makes the new list item the last item to be removed by a call to
  39250. listGET_OWNER_OF_NEXT_ENTRY(). */
  39251. pxNewListItem->pxNext = pxIndex;
  39252. 8010d5a: 683b ldr r3, [r7, #0]
  39253. 8010d5c: 68fa ldr r2, [r7, #12]
  39254. 8010d5e: 605a str r2, [r3, #4]
  39255. pxNewListItem->pxPrevious = pxIndex->pxPrevious;
  39256. 8010d60: 68fb ldr r3, [r7, #12]
  39257. 8010d62: 689a ldr r2, [r3, #8]
  39258. 8010d64: 683b ldr r3, [r7, #0]
  39259. 8010d66: 609a str r2, [r3, #8]
  39260. /* Only used during decision coverage testing. */
  39261. mtCOVERAGE_TEST_DELAY();
  39262. pxIndex->pxPrevious->pxNext = pxNewListItem;
  39263. 8010d68: 68fb ldr r3, [r7, #12]
  39264. 8010d6a: 689b ldr r3, [r3, #8]
  39265. 8010d6c: 683a ldr r2, [r7, #0]
  39266. 8010d6e: 605a str r2, [r3, #4]
  39267. pxIndex->pxPrevious = pxNewListItem;
  39268. 8010d70: 68fb ldr r3, [r7, #12]
  39269. 8010d72: 683a ldr r2, [r7, #0]
  39270. 8010d74: 609a str r2, [r3, #8]
  39271. /* Remember which list the item is in. */
  39272. pxNewListItem->pxContainer = pxList;
  39273. 8010d76: 683b ldr r3, [r7, #0]
  39274. 8010d78: 687a ldr r2, [r7, #4]
  39275. 8010d7a: 611a str r2, [r3, #16]
  39276. ( pxList->uxNumberOfItems )++;
  39277. 8010d7c: 687b ldr r3, [r7, #4]
  39278. 8010d7e: 681b ldr r3, [r3, #0]
  39279. 8010d80: 1c5a adds r2, r3, #1
  39280. 8010d82: 687b ldr r3, [r7, #4]
  39281. 8010d84: 601a str r2, [r3, #0]
  39282. }
  39283. 8010d86: bf00 nop
  39284. 8010d88: 3714 adds r7, #20
  39285. 8010d8a: 46bd mov sp, r7
  39286. 8010d8c: f85d 7b04 ldr.w r7, [sp], #4
  39287. 8010d90: 4770 bx lr
  39288. 08010d92 <vListInsert>:
  39289. /*-----------------------------------------------------------*/
  39290. void vListInsert( List_t * const pxList, ListItem_t * const pxNewListItem )
  39291. {
  39292. 8010d92: b480 push {r7}
  39293. 8010d94: b085 sub sp, #20
  39294. 8010d96: af00 add r7, sp, #0
  39295. 8010d98: 6078 str r0, [r7, #4]
  39296. 8010d9a: 6039 str r1, [r7, #0]
  39297. ListItem_t *pxIterator;
  39298. const TickType_t xValueOfInsertion = pxNewListItem->xItemValue;
  39299. 8010d9c: 683b ldr r3, [r7, #0]
  39300. 8010d9e: 681b ldr r3, [r3, #0]
  39301. 8010da0: 60bb str r3, [r7, #8]
  39302. new list item should be placed after it. This ensures that TCBs which are
  39303. stored in ready lists (all of which have the same xItemValue value) get a
  39304. share of the CPU. However, if the xItemValue is the same as the back marker
  39305. the iteration loop below will not end. Therefore the value is checked
  39306. first, and the algorithm slightly modified if necessary. */
  39307. if( xValueOfInsertion == portMAX_DELAY )
  39308. 8010da2: 68bb ldr r3, [r7, #8]
  39309. 8010da4: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  39310. 8010da8: d103 bne.n 8010db2 <vListInsert+0x20>
  39311. {
  39312. pxIterator = pxList->xListEnd.pxPrevious;
  39313. 8010daa: 687b ldr r3, [r7, #4]
  39314. 8010dac: 691b ldr r3, [r3, #16]
  39315. 8010dae: 60fb str r3, [r7, #12]
  39316. 8010db0: e00c b.n 8010dcc <vListInsert+0x3a>
  39317. 4) Using a queue or semaphore before it has been initialised or
  39318. before the scheduler has been started (are interrupts firing
  39319. before vTaskStartScheduler() has been called?).
  39320. **********************************************************************/
  39321. for( pxIterator = ( ListItem_t * ) &( pxList->xListEnd ); pxIterator->pxNext->xItemValue <= xValueOfInsertion; pxIterator = pxIterator->pxNext ) /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. *//*lint !e440 The iterator moves to a different value, not xValueOfInsertion. */
  39322. 8010db2: 687b ldr r3, [r7, #4]
  39323. 8010db4: 3308 adds r3, #8
  39324. 8010db6: 60fb str r3, [r7, #12]
  39325. 8010db8: e002 b.n 8010dc0 <vListInsert+0x2e>
  39326. 8010dba: 68fb ldr r3, [r7, #12]
  39327. 8010dbc: 685b ldr r3, [r3, #4]
  39328. 8010dbe: 60fb str r3, [r7, #12]
  39329. 8010dc0: 68fb ldr r3, [r7, #12]
  39330. 8010dc2: 685b ldr r3, [r3, #4]
  39331. 8010dc4: 681b ldr r3, [r3, #0]
  39332. 8010dc6: 68ba ldr r2, [r7, #8]
  39333. 8010dc8: 429a cmp r2, r3
  39334. 8010dca: d2f6 bcs.n 8010dba <vListInsert+0x28>
  39335. /* There is nothing to do here, just iterating to the wanted
  39336. insertion position. */
  39337. }
  39338. }
  39339. pxNewListItem->pxNext = pxIterator->pxNext;
  39340. 8010dcc: 68fb ldr r3, [r7, #12]
  39341. 8010dce: 685a ldr r2, [r3, #4]
  39342. 8010dd0: 683b ldr r3, [r7, #0]
  39343. 8010dd2: 605a str r2, [r3, #4]
  39344. pxNewListItem->pxNext->pxPrevious = pxNewListItem;
  39345. 8010dd4: 683b ldr r3, [r7, #0]
  39346. 8010dd6: 685b ldr r3, [r3, #4]
  39347. 8010dd8: 683a ldr r2, [r7, #0]
  39348. 8010dda: 609a str r2, [r3, #8]
  39349. pxNewListItem->pxPrevious = pxIterator;
  39350. 8010ddc: 683b ldr r3, [r7, #0]
  39351. 8010dde: 68fa ldr r2, [r7, #12]
  39352. 8010de0: 609a str r2, [r3, #8]
  39353. pxIterator->pxNext = pxNewListItem;
  39354. 8010de2: 68fb ldr r3, [r7, #12]
  39355. 8010de4: 683a ldr r2, [r7, #0]
  39356. 8010de6: 605a str r2, [r3, #4]
  39357. /* Remember which list the item is in. This allows fast removal of the
  39358. item later. */
  39359. pxNewListItem->pxContainer = pxList;
  39360. 8010de8: 683b ldr r3, [r7, #0]
  39361. 8010dea: 687a ldr r2, [r7, #4]
  39362. 8010dec: 611a str r2, [r3, #16]
  39363. ( pxList->uxNumberOfItems )++;
  39364. 8010dee: 687b ldr r3, [r7, #4]
  39365. 8010df0: 681b ldr r3, [r3, #0]
  39366. 8010df2: 1c5a adds r2, r3, #1
  39367. 8010df4: 687b ldr r3, [r7, #4]
  39368. 8010df6: 601a str r2, [r3, #0]
  39369. }
  39370. 8010df8: bf00 nop
  39371. 8010dfa: 3714 adds r7, #20
  39372. 8010dfc: 46bd mov sp, r7
  39373. 8010dfe: f85d 7b04 ldr.w r7, [sp], #4
  39374. 8010e02: 4770 bx lr
  39375. 08010e04 <uxListRemove>:
  39376. /*-----------------------------------------------------------*/
  39377. UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove )
  39378. {
  39379. 8010e04: b480 push {r7}
  39380. 8010e06: b085 sub sp, #20
  39381. 8010e08: af00 add r7, sp, #0
  39382. 8010e0a: 6078 str r0, [r7, #4]
  39383. /* The list item knows which list it is in. Obtain the list from the list
  39384. item. */
  39385. List_t * const pxList = pxItemToRemove->pxContainer;
  39386. 8010e0c: 687b ldr r3, [r7, #4]
  39387. 8010e0e: 691b ldr r3, [r3, #16]
  39388. 8010e10: 60fb str r3, [r7, #12]
  39389. pxItemToRemove->pxNext->pxPrevious = pxItemToRemove->pxPrevious;
  39390. 8010e12: 687b ldr r3, [r7, #4]
  39391. 8010e14: 685b ldr r3, [r3, #4]
  39392. 8010e16: 687a ldr r2, [r7, #4]
  39393. 8010e18: 6892 ldr r2, [r2, #8]
  39394. 8010e1a: 609a str r2, [r3, #8]
  39395. pxItemToRemove->pxPrevious->pxNext = pxItemToRemove->pxNext;
  39396. 8010e1c: 687b ldr r3, [r7, #4]
  39397. 8010e1e: 689b ldr r3, [r3, #8]
  39398. 8010e20: 687a ldr r2, [r7, #4]
  39399. 8010e22: 6852 ldr r2, [r2, #4]
  39400. 8010e24: 605a str r2, [r3, #4]
  39401. /* Only used during decision coverage testing. */
  39402. mtCOVERAGE_TEST_DELAY();
  39403. /* Make sure the index is left pointing to a valid item. */
  39404. if( pxList->pxIndex == pxItemToRemove )
  39405. 8010e26: 68fb ldr r3, [r7, #12]
  39406. 8010e28: 685b ldr r3, [r3, #4]
  39407. 8010e2a: 687a ldr r2, [r7, #4]
  39408. 8010e2c: 429a cmp r2, r3
  39409. 8010e2e: d103 bne.n 8010e38 <uxListRemove+0x34>
  39410. {
  39411. pxList->pxIndex = pxItemToRemove->pxPrevious;
  39412. 8010e30: 687b ldr r3, [r7, #4]
  39413. 8010e32: 689a ldr r2, [r3, #8]
  39414. 8010e34: 68fb ldr r3, [r7, #12]
  39415. 8010e36: 605a str r2, [r3, #4]
  39416. else
  39417. {
  39418. mtCOVERAGE_TEST_MARKER();
  39419. }
  39420. pxItemToRemove->pxContainer = NULL;
  39421. 8010e38: 687b ldr r3, [r7, #4]
  39422. 8010e3a: 2200 movs r2, #0
  39423. 8010e3c: 611a str r2, [r3, #16]
  39424. ( pxList->uxNumberOfItems )--;
  39425. 8010e3e: 68fb ldr r3, [r7, #12]
  39426. 8010e40: 681b ldr r3, [r3, #0]
  39427. 8010e42: 1e5a subs r2, r3, #1
  39428. 8010e44: 68fb ldr r3, [r7, #12]
  39429. 8010e46: 601a str r2, [r3, #0]
  39430. return pxList->uxNumberOfItems;
  39431. 8010e48: 68fb ldr r3, [r7, #12]
  39432. 8010e4a: 681b ldr r3, [r3, #0]
  39433. }
  39434. 8010e4c: 4618 mov r0, r3
  39435. 8010e4e: 3714 adds r7, #20
  39436. 8010e50: 46bd mov sp, r7
  39437. 8010e52: f85d 7b04 ldr.w r7, [sp], #4
  39438. 8010e56: 4770 bx lr
  39439. 08010e58 <xQueueGenericReset>:
  39440. } \
  39441. taskEXIT_CRITICAL()
  39442. /*-----------------------------------------------------------*/
  39443. BaseType_t xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue )
  39444. {
  39445. 8010e58: b580 push {r7, lr}
  39446. 8010e5a: b084 sub sp, #16
  39447. 8010e5c: af00 add r7, sp, #0
  39448. 8010e5e: 6078 str r0, [r7, #4]
  39449. 8010e60: 6039 str r1, [r7, #0]
  39450. Queue_t * const pxQueue = xQueue;
  39451. 8010e62: 687b ldr r3, [r7, #4]
  39452. 8010e64: 60fb str r3, [r7, #12]
  39453. configASSERT( pxQueue );
  39454. 8010e66: 68fb ldr r3, [r7, #12]
  39455. 8010e68: 2b00 cmp r3, #0
  39456. 8010e6a: d10b bne.n 8010e84 <xQueueGenericReset+0x2c>
  39457. portFORCE_INLINE static void vPortRaiseBASEPRI( void )
  39458. {
  39459. uint32_t ulNewBASEPRI;
  39460. __asm volatile
  39461. 8010e6c: f04f 0350 mov.w r3, #80 @ 0x50
  39462. 8010e70: f383 8811 msr BASEPRI, r3
  39463. 8010e74: f3bf 8f6f isb sy
  39464. 8010e78: f3bf 8f4f dsb sy
  39465. 8010e7c: 60bb str r3, [r7, #8]
  39466. " msr basepri, %0 \n" \
  39467. " isb \n" \
  39468. " dsb \n" \
  39469. :"=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
  39470. );
  39471. }
  39472. 8010e7e: bf00 nop
  39473. 8010e80: bf00 nop
  39474. 8010e82: e7fd b.n 8010e80 <xQueueGenericReset+0x28>
  39475. taskENTER_CRITICAL();
  39476. 8010e84: f003 fbf0 bl 8014668 <vPortEnterCritical>
  39477. {
  39478. pxQueue->u.xQueue.pcTail = pxQueue->pcHead + ( pxQueue->uxLength * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  39479. 8010e88: 68fb ldr r3, [r7, #12]
  39480. 8010e8a: 681a ldr r2, [r3, #0]
  39481. 8010e8c: 68fb ldr r3, [r7, #12]
  39482. 8010e8e: 6bdb ldr r3, [r3, #60] @ 0x3c
  39483. 8010e90: 68f9 ldr r1, [r7, #12]
  39484. 8010e92: 6c09 ldr r1, [r1, #64] @ 0x40
  39485. 8010e94: fb01 f303 mul.w r3, r1, r3
  39486. 8010e98: 441a add r2, r3
  39487. 8010e9a: 68fb ldr r3, [r7, #12]
  39488. 8010e9c: 609a str r2, [r3, #8]
  39489. pxQueue->uxMessagesWaiting = ( UBaseType_t ) 0U;
  39490. 8010e9e: 68fb ldr r3, [r7, #12]
  39491. 8010ea0: 2200 movs r2, #0
  39492. 8010ea2: 639a str r2, [r3, #56] @ 0x38
  39493. pxQueue->pcWriteTo = pxQueue->pcHead;
  39494. 8010ea4: 68fb ldr r3, [r7, #12]
  39495. 8010ea6: 681a ldr r2, [r3, #0]
  39496. 8010ea8: 68fb ldr r3, [r7, #12]
  39497. 8010eaa: 605a str r2, [r3, #4]
  39498. pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead + ( ( pxQueue->uxLength - 1U ) * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  39499. 8010eac: 68fb ldr r3, [r7, #12]
  39500. 8010eae: 681a ldr r2, [r3, #0]
  39501. 8010eb0: 68fb ldr r3, [r7, #12]
  39502. 8010eb2: 6bdb ldr r3, [r3, #60] @ 0x3c
  39503. 8010eb4: 3b01 subs r3, #1
  39504. 8010eb6: 68f9 ldr r1, [r7, #12]
  39505. 8010eb8: 6c09 ldr r1, [r1, #64] @ 0x40
  39506. 8010eba: fb01 f303 mul.w r3, r1, r3
  39507. 8010ebe: 441a add r2, r3
  39508. 8010ec0: 68fb ldr r3, [r7, #12]
  39509. 8010ec2: 60da str r2, [r3, #12]
  39510. pxQueue->cRxLock = queueUNLOCKED;
  39511. 8010ec4: 68fb ldr r3, [r7, #12]
  39512. 8010ec6: 22ff movs r2, #255 @ 0xff
  39513. 8010ec8: f883 2044 strb.w r2, [r3, #68] @ 0x44
  39514. pxQueue->cTxLock = queueUNLOCKED;
  39515. 8010ecc: 68fb ldr r3, [r7, #12]
  39516. 8010ece: 22ff movs r2, #255 @ 0xff
  39517. 8010ed0: f883 2045 strb.w r2, [r3, #69] @ 0x45
  39518. if( xNewQueue == pdFALSE )
  39519. 8010ed4: 683b ldr r3, [r7, #0]
  39520. 8010ed6: 2b00 cmp r3, #0
  39521. 8010ed8: d114 bne.n 8010f04 <xQueueGenericReset+0xac>
  39522. /* If there are tasks blocked waiting to read from the queue, then
  39523. the tasks will remain blocked as after this function exits the queue
  39524. will still be empty. If there are tasks blocked waiting to write to
  39525. the queue, then one should be unblocked as after this function exits
  39526. it will be possible to write to it. */
  39527. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  39528. 8010eda: 68fb ldr r3, [r7, #12]
  39529. 8010edc: 691b ldr r3, [r3, #16]
  39530. 8010ede: 2b00 cmp r3, #0
  39531. 8010ee0: d01a beq.n 8010f18 <xQueueGenericReset+0xc0>
  39532. {
  39533. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  39534. 8010ee2: 68fb ldr r3, [r7, #12]
  39535. 8010ee4: 3310 adds r3, #16
  39536. 8010ee6: 4618 mov r0, r3
  39537. 8010ee8: f002 f922 bl 8013130 <xTaskRemoveFromEventList>
  39538. 8010eec: 4603 mov r3, r0
  39539. 8010eee: 2b00 cmp r3, #0
  39540. 8010ef0: d012 beq.n 8010f18 <xQueueGenericReset+0xc0>
  39541. {
  39542. queueYIELD_IF_USING_PREEMPTION();
  39543. 8010ef2: 4b0d ldr r3, [pc, #52] @ (8010f28 <xQueueGenericReset+0xd0>)
  39544. 8010ef4: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  39545. 8010ef8: 601a str r2, [r3, #0]
  39546. 8010efa: f3bf 8f4f dsb sy
  39547. 8010efe: f3bf 8f6f isb sy
  39548. 8010f02: e009 b.n 8010f18 <xQueueGenericReset+0xc0>
  39549. }
  39550. }
  39551. else
  39552. {
  39553. /* Ensure the event queues start in the correct state. */
  39554. vListInitialise( &( pxQueue->xTasksWaitingToSend ) );
  39555. 8010f04: 68fb ldr r3, [r7, #12]
  39556. 8010f06: 3310 adds r3, #16
  39557. 8010f08: 4618 mov r0, r3
  39558. 8010f0a: f7ff fef1 bl 8010cf0 <vListInitialise>
  39559. vListInitialise( &( pxQueue->xTasksWaitingToReceive ) );
  39560. 8010f0e: 68fb ldr r3, [r7, #12]
  39561. 8010f10: 3324 adds r3, #36 @ 0x24
  39562. 8010f12: 4618 mov r0, r3
  39563. 8010f14: f7ff feec bl 8010cf0 <vListInitialise>
  39564. }
  39565. }
  39566. taskEXIT_CRITICAL();
  39567. 8010f18: f003 fbd8 bl 80146cc <vPortExitCritical>
  39568. /* A value is returned for calling semantic consistency with previous
  39569. versions. */
  39570. return pdPASS;
  39571. 8010f1c: 2301 movs r3, #1
  39572. }
  39573. 8010f1e: 4618 mov r0, r3
  39574. 8010f20: 3710 adds r7, #16
  39575. 8010f22: 46bd mov sp, r7
  39576. 8010f24: bd80 pop {r7, pc}
  39577. 8010f26: bf00 nop
  39578. 8010f28: e000ed04 .word 0xe000ed04
  39579. 08010f2c <xQueueGenericCreateStatic>:
  39580. /*-----------------------------------------------------------*/
  39581. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  39582. QueueHandle_t xQueueGenericCreateStatic( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, StaticQueue_t *pxStaticQueue, const uint8_t ucQueueType )
  39583. {
  39584. 8010f2c: b580 push {r7, lr}
  39585. 8010f2e: b08e sub sp, #56 @ 0x38
  39586. 8010f30: af02 add r7, sp, #8
  39587. 8010f32: 60f8 str r0, [r7, #12]
  39588. 8010f34: 60b9 str r1, [r7, #8]
  39589. 8010f36: 607a str r2, [r7, #4]
  39590. 8010f38: 603b str r3, [r7, #0]
  39591. Queue_t *pxNewQueue;
  39592. configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
  39593. 8010f3a: 68fb ldr r3, [r7, #12]
  39594. 8010f3c: 2b00 cmp r3, #0
  39595. 8010f3e: d10b bne.n 8010f58 <xQueueGenericCreateStatic+0x2c>
  39596. __asm volatile
  39597. 8010f40: f04f 0350 mov.w r3, #80 @ 0x50
  39598. 8010f44: f383 8811 msr BASEPRI, r3
  39599. 8010f48: f3bf 8f6f isb sy
  39600. 8010f4c: f3bf 8f4f dsb sy
  39601. 8010f50: 62bb str r3, [r7, #40] @ 0x28
  39602. }
  39603. 8010f52: bf00 nop
  39604. 8010f54: bf00 nop
  39605. 8010f56: e7fd b.n 8010f54 <xQueueGenericCreateStatic+0x28>
  39606. /* The StaticQueue_t structure and the queue storage area must be
  39607. supplied. */
  39608. configASSERT( pxStaticQueue != NULL );
  39609. 8010f58: 683b ldr r3, [r7, #0]
  39610. 8010f5a: 2b00 cmp r3, #0
  39611. 8010f5c: d10b bne.n 8010f76 <xQueueGenericCreateStatic+0x4a>
  39612. __asm volatile
  39613. 8010f5e: f04f 0350 mov.w r3, #80 @ 0x50
  39614. 8010f62: f383 8811 msr BASEPRI, r3
  39615. 8010f66: f3bf 8f6f isb sy
  39616. 8010f6a: f3bf 8f4f dsb sy
  39617. 8010f6e: 627b str r3, [r7, #36] @ 0x24
  39618. }
  39619. 8010f70: bf00 nop
  39620. 8010f72: bf00 nop
  39621. 8010f74: e7fd b.n 8010f72 <xQueueGenericCreateStatic+0x46>
  39622. /* A queue storage area should be provided if the item size is not 0, and
  39623. should not be provided if the item size is 0. */
  39624. configASSERT( !( ( pucQueueStorage != NULL ) && ( uxItemSize == 0 ) ) );
  39625. 8010f76: 687b ldr r3, [r7, #4]
  39626. 8010f78: 2b00 cmp r3, #0
  39627. 8010f7a: d002 beq.n 8010f82 <xQueueGenericCreateStatic+0x56>
  39628. 8010f7c: 68bb ldr r3, [r7, #8]
  39629. 8010f7e: 2b00 cmp r3, #0
  39630. 8010f80: d001 beq.n 8010f86 <xQueueGenericCreateStatic+0x5a>
  39631. 8010f82: 2301 movs r3, #1
  39632. 8010f84: e000 b.n 8010f88 <xQueueGenericCreateStatic+0x5c>
  39633. 8010f86: 2300 movs r3, #0
  39634. 8010f88: 2b00 cmp r3, #0
  39635. 8010f8a: d10b bne.n 8010fa4 <xQueueGenericCreateStatic+0x78>
  39636. __asm volatile
  39637. 8010f8c: f04f 0350 mov.w r3, #80 @ 0x50
  39638. 8010f90: f383 8811 msr BASEPRI, r3
  39639. 8010f94: f3bf 8f6f isb sy
  39640. 8010f98: f3bf 8f4f dsb sy
  39641. 8010f9c: 623b str r3, [r7, #32]
  39642. }
  39643. 8010f9e: bf00 nop
  39644. 8010fa0: bf00 nop
  39645. 8010fa2: e7fd b.n 8010fa0 <xQueueGenericCreateStatic+0x74>
  39646. configASSERT( !( ( pucQueueStorage == NULL ) && ( uxItemSize != 0 ) ) );
  39647. 8010fa4: 687b ldr r3, [r7, #4]
  39648. 8010fa6: 2b00 cmp r3, #0
  39649. 8010fa8: d102 bne.n 8010fb0 <xQueueGenericCreateStatic+0x84>
  39650. 8010faa: 68bb ldr r3, [r7, #8]
  39651. 8010fac: 2b00 cmp r3, #0
  39652. 8010fae: d101 bne.n 8010fb4 <xQueueGenericCreateStatic+0x88>
  39653. 8010fb0: 2301 movs r3, #1
  39654. 8010fb2: e000 b.n 8010fb6 <xQueueGenericCreateStatic+0x8a>
  39655. 8010fb4: 2300 movs r3, #0
  39656. 8010fb6: 2b00 cmp r3, #0
  39657. 8010fb8: d10b bne.n 8010fd2 <xQueueGenericCreateStatic+0xa6>
  39658. __asm volatile
  39659. 8010fba: f04f 0350 mov.w r3, #80 @ 0x50
  39660. 8010fbe: f383 8811 msr BASEPRI, r3
  39661. 8010fc2: f3bf 8f6f isb sy
  39662. 8010fc6: f3bf 8f4f dsb sy
  39663. 8010fca: 61fb str r3, [r7, #28]
  39664. }
  39665. 8010fcc: bf00 nop
  39666. 8010fce: bf00 nop
  39667. 8010fd0: e7fd b.n 8010fce <xQueueGenericCreateStatic+0xa2>
  39668. #if( configASSERT_DEFINED == 1 )
  39669. {
  39670. /* Sanity check that the size of the structure used to declare a
  39671. variable of type StaticQueue_t or StaticSemaphore_t equals the size of
  39672. the real queue and semaphore structures. */
  39673. volatile size_t xSize = sizeof( StaticQueue_t );
  39674. 8010fd2: 2350 movs r3, #80 @ 0x50
  39675. 8010fd4: 617b str r3, [r7, #20]
  39676. configASSERT( xSize == sizeof( Queue_t ) );
  39677. 8010fd6: 697b ldr r3, [r7, #20]
  39678. 8010fd8: 2b50 cmp r3, #80 @ 0x50
  39679. 8010fda: d00b beq.n 8010ff4 <xQueueGenericCreateStatic+0xc8>
  39680. __asm volatile
  39681. 8010fdc: f04f 0350 mov.w r3, #80 @ 0x50
  39682. 8010fe0: f383 8811 msr BASEPRI, r3
  39683. 8010fe4: f3bf 8f6f isb sy
  39684. 8010fe8: f3bf 8f4f dsb sy
  39685. 8010fec: 61bb str r3, [r7, #24]
  39686. }
  39687. 8010fee: bf00 nop
  39688. 8010ff0: bf00 nop
  39689. 8010ff2: e7fd b.n 8010ff0 <xQueueGenericCreateStatic+0xc4>
  39690. ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
  39691. 8010ff4: 697b ldr r3, [r7, #20]
  39692. #endif /* configASSERT_DEFINED */
  39693. /* The address of a statically allocated queue was passed in, use it.
  39694. The address of a statically allocated storage area was also passed in
  39695. but is already set. */
  39696. pxNewQueue = ( Queue_t * ) pxStaticQueue; /*lint !e740 !e9087 Unusual cast is ok as the structures are designed to have the same alignment, and the size is checked by an assert. */
  39697. 8010ff6: 683b ldr r3, [r7, #0]
  39698. 8010ff8: 62fb str r3, [r7, #44] @ 0x2c
  39699. if( pxNewQueue != NULL )
  39700. 8010ffa: 6afb ldr r3, [r7, #44] @ 0x2c
  39701. 8010ffc: 2b00 cmp r3, #0
  39702. 8010ffe: d00d beq.n 801101c <xQueueGenericCreateStatic+0xf0>
  39703. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  39704. {
  39705. /* Queues can be allocated wither statically or dynamically, so
  39706. note this queue was allocated statically in case the queue is
  39707. later deleted. */
  39708. pxNewQueue->ucStaticallyAllocated = pdTRUE;
  39709. 8011000: 6afb ldr r3, [r7, #44] @ 0x2c
  39710. 8011002: 2201 movs r2, #1
  39711. 8011004: f883 2046 strb.w r2, [r3, #70] @ 0x46
  39712. }
  39713. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  39714. prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
  39715. 8011008: f897 2038 ldrb.w r2, [r7, #56] @ 0x38
  39716. 801100c: 6afb ldr r3, [r7, #44] @ 0x2c
  39717. 801100e: 9300 str r3, [sp, #0]
  39718. 8011010: 4613 mov r3, r2
  39719. 8011012: 687a ldr r2, [r7, #4]
  39720. 8011014: 68b9 ldr r1, [r7, #8]
  39721. 8011016: 68f8 ldr r0, [r7, #12]
  39722. 8011018: f000 f840 bl 801109c <prvInitialiseNewQueue>
  39723. {
  39724. traceQUEUE_CREATE_FAILED( ucQueueType );
  39725. mtCOVERAGE_TEST_MARKER();
  39726. }
  39727. return pxNewQueue;
  39728. 801101c: 6afb ldr r3, [r7, #44] @ 0x2c
  39729. }
  39730. 801101e: 4618 mov r0, r3
  39731. 8011020: 3730 adds r7, #48 @ 0x30
  39732. 8011022: 46bd mov sp, r7
  39733. 8011024: bd80 pop {r7, pc}
  39734. 08011026 <xQueueGenericCreate>:
  39735. /*-----------------------------------------------------------*/
  39736. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  39737. QueueHandle_t xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType )
  39738. {
  39739. 8011026: b580 push {r7, lr}
  39740. 8011028: b08a sub sp, #40 @ 0x28
  39741. 801102a: af02 add r7, sp, #8
  39742. 801102c: 60f8 str r0, [r7, #12]
  39743. 801102e: 60b9 str r1, [r7, #8]
  39744. 8011030: 4613 mov r3, r2
  39745. 8011032: 71fb strb r3, [r7, #7]
  39746. Queue_t *pxNewQueue;
  39747. size_t xQueueSizeInBytes;
  39748. uint8_t *pucQueueStorage;
  39749. configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
  39750. 8011034: 68fb ldr r3, [r7, #12]
  39751. 8011036: 2b00 cmp r3, #0
  39752. 8011038: d10b bne.n 8011052 <xQueueGenericCreate+0x2c>
  39753. __asm volatile
  39754. 801103a: f04f 0350 mov.w r3, #80 @ 0x50
  39755. 801103e: f383 8811 msr BASEPRI, r3
  39756. 8011042: f3bf 8f6f isb sy
  39757. 8011046: f3bf 8f4f dsb sy
  39758. 801104a: 613b str r3, [r7, #16]
  39759. }
  39760. 801104c: bf00 nop
  39761. 801104e: bf00 nop
  39762. 8011050: e7fd b.n 801104e <xQueueGenericCreate+0x28>
  39763. /* Allocate enough space to hold the maximum number of items that
  39764. can be in the queue at any time. It is valid for uxItemSize to be
  39765. zero in the case the queue is used as a semaphore. */
  39766. xQueueSizeInBytes = ( size_t ) ( uxQueueLength * uxItemSize ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  39767. 8011052: 68fb ldr r3, [r7, #12]
  39768. 8011054: 68ba ldr r2, [r7, #8]
  39769. 8011056: fb02 f303 mul.w r3, r2, r3
  39770. 801105a: 61fb str r3, [r7, #28]
  39771. alignment requirements of the Queue_t structure - which in this case
  39772. is an int8_t *. Therefore, whenever the stack alignment requirements
  39773. are greater than or equal to the pointer to char requirements the cast
  39774. is safe. In other cases alignment requirements are not strict (one or
  39775. two bytes). */
  39776. pxNewQueue = ( Queue_t * ) pvPortMalloc( sizeof( Queue_t ) + xQueueSizeInBytes ); /*lint !e9087 !e9079 see comment above. */
  39777. 801105c: 69fb ldr r3, [r7, #28]
  39778. 801105e: 3350 adds r3, #80 @ 0x50
  39779. 8011060: 4618 mov r0, r3
  39780. 8011062: f003 fc23 bl 80148ac <pvPortMalloc>
  39781. 8011066: 61b8 str r0, [r7, #24]
  39782. if( pxNewQueue != NULL )
  39783. 8011068: 69bb ldr r3, [r7, #24]
  39784. 801106a: 2b00 cmp r3, #0
  39785. 801106c: d011 beq.n 8011092 <xQueueGenericCreate+0x6c>
  39786. {
  39787. /* Jump past the queue structure to find the location of the queue
  39788. storage area. */
  39789. pucQueueStorage = ( uint8_t * ) pxNewQueue;
  39790. 801106e: 69bb ldr r3, [r7, #24]
  39791. 8011070: 617b str r3, [r7, #20]
  39792. pucQueueStorage += sizeof( Queue_t ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  39793. 8011072: 697b ldr r3, [r7, #20]
  39794. 8011074: 3350 adds r3, #80 @ 0x50
  39795. 8011076: 617b str r3, [r7, #20]
  39796. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  39797. {
  39798. /* Queues can be created either statically or dynamically, so
  39799. note this task was created dynamically in case it is later
  39800. deleted. */
  39801. pxNewQueue->ucStaticallyAllocated = pdFALSE;
  39802. 8011078: 69bb ldr r3, [r7, #24]
  39803. 801107a: 2200 movs r2, #0
  39804. 801107c: f883 2046 strb.w r2, [r3, #70] @ 0x46
  39805. }
  39806. #endif /* configSUPPORT_STATIC_ALLOCATION */
  39807. prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
  39808. 8011080: 79fa ldrb r2, [r7, #7]
  39809. 8011082: 69bb ldr r3, [r7, #24]
  39810. 8011084: 9300 str r3, [sp, #0]
  39811. 8011086: 4613 mov r3, r2
  39812. 8011088: 697a ldr r2, [r7, #20]
  39813. 801108a: 68b9 ldr r1, [r7, #8]
  39814. 801108c: 68f8 ldr r0, [r7, #12]
  39815. 801108e: f000 f805 bl 801109c <prvInitialiseNewQueue>
  39816. {
  39817. traceQUEUE_CREATE_FAILED( ucQueueType );
  39818. mtCOVERAGE_TEST_MARKER();
  39819. }
  39820. return pxNewQueue;
  39821. 8011092: 69bb ldr r3, [r7, #24]
  39822. }
  39823. 8011094: 4618 mov r0, r3
  39824. 8011096: 3720 adds r7, #32
  39825. 8011098: 46bd mov sp, r7
  39826. 801109a: bd80 pop {r7, pc}
  39827. 0801109c <prvInitialiseNewQueue>:
  39828. #endif /* configSUPPORT_STATIC_ALLOCATION */
  39829. /*-----------------------------------------------------------*/
  39830. static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, const uint8_t ucQueueType, Queue_t *pxNewQueue )
  39831. {
  39832. 801109c: b580 push {r7, lr}
  39833. 801109e: b084 sub sp, #16
  39834. 80110a0: af00 add r7, sp, #0
  39835. 80110a2: 60f8 str r0, [r7, #12]
  39836. 80110a4: 60b9 str r1, [r7, #8]
  39837. 80110a6: 607a str r2, [r7, #4]
  39838. 80110a8: 70fb strb r3, [r7, #3]
  39839. /* Remove compiler warnings about unused parameters should
  39840. configUSE_TRACE_FACILITY not be set to 1. */
  39841. ( void ) ucQueueType;
  39842. if( uxItemSize == ( UBaseType_t ) 0 )
  39843. 80110aa: 68bb ldr r3, [r7, #8]
  39844. 80110ac: 2b00 cmp r3, #0
  39845. 80110ae: d103 bne.n 80110b8 <prvInitialiseNewQueue+0x1c>
  39846. {
  39847. /* No RAM was allocated for the queue storage area, but PC head cannot
  39848. be set to NULL because NULL is used as a key to say the queue is used as
  39849. a mutex. Therefore just set pcHead to point to the queue as a benign
  39850. value that is known to be within the memory map. */
  39851. pxNewQueue->pcHead = ( int8_t * ) pxNewQueue;
  39852. 80110b0: 69bb ldr r3, [r7, #24]
  39853. 80110b2: 69ba ldr r2, [r7, #24]
  39854. 80110b4: 601a str r2, [r3, #0]
  39855. 80110b6: e002 b.n 80110be <prvInitialiseNewQueue+0x22>
  39856. }
  39857. else
  39858. {
  39859. /* Set the head to the start of the queue storage area. */
  39860. pxNewQueue->pcHead = ( int8_t * ) pucQueueStorage;
  39861. 80110b8: 69bb ldr r3, [r7, #24]
  39862. 80110ba: 687a ldr r2, [r7, #4]
  39863. 80110bc: 601a str r2, [r3, #0]
  39864. }
  39865. /* Initialise the queue members as described where the queue type is
  39866. defined. */
  39867. pxNewQueue->uxLength = uxQueueLength;
  39868. 80110be: 69bb ldr r3, [r7, #24]
  39869. 80110c0: 68fa ldr r2, [r7, #12]
  39870. 80110c2: 63da str r2, [r3, #60] @ 0x3c
  39871. pxNewQueue->uxItemSize = uxItemSize;
  39872. 80110c4: 69bb ldr r3, [r7, #24]
  39873. 80110c6: 68ba ldr r2, [r7, #8]
  39874. 80110c8: 641a str r2, [r3, #64] @ 0x40
  39875. ( void ) xQueueGenericReset( pxNewQueue, pdTRUE );
  39876. 80110ca: 2101 movs r1, #1
  39877. 80110cc: 69b8 ldr r0, [r7, #24]
  39878. 80110ce: f7ff fec3 bl 8010e58 <xQueueGenericReset>
  39879. #if ( configUSE_TRACE_FACILITY == 1 )
  39880. {
  39881. pxNewQueue->ucQueueType = ucQueueType;
  39882. 80110d2: 69bb ldr r3, [r7, #24]
  39883. 80110d4: 78fa ldrb r2, [r7, #3]
  39884. 80110d6: f883 204c strb.w r2, [r3, #76] @ 0x4c
  39885. pxNewQueue->pxQueueSetContainer = NULL;
  39886. }
  39887. #endif /* configUSE_QUEUE_SETS */
  39888. traceQUEUE_CREATE( pxNewQueue );
  39889. }
  39890. 80110da: bf00 nop
  39891. 80110dc: 3710 adds r7, #16
  39892. 80110de: 46bd mov sp, r7
  39893. 80110e0: bd80 pop {r7, pc}
  39894. 080110e2 <prvInitialiseMutex>:
  39895. /*-----------------------------------------------------------*/
  39896. #if( configUSE_MUTEXES == 1 )
  39897. static void prvInitialiseMutex( Queue_t *pxNewQueue )
  39898. {
  39899. 80110e2: b580 push {r7, lr}
  39900. 80110e4: b082 sub sp, #8
  39901. 80110e6: af00 add r7, sp, #0
  39902. 80110e8: 6078 str r0, [r7, #4]
  39903. if( pxNewQueue != NULL )
  39904. 80110ea: 687b ldr r3, [r7, #4]
  39905. 80110ec: 2b00 cmp r3, #0
  39906. 80110ee: d00e beq.n 801110e <prvInitialiseMutex+0x2c>
  39907. {
  39908. /* The queue create function will set all the queue structure members
  39909. correctly for a generic queue, but this function is creating a
  39910. mutex. Overwrite those members that need to be set differently -
  39911. in particular the information required for priority inheritance. */
  39912. pxNewQueue->u.xSemaphore.xMutexHolder = NULL;
  39913. 80110f0: 687b ldr r3, [r7, #4]
  39914. 80110f2: 2200 movs r2, #0
  39915. 80110f4: 609a str r2, [r3, #8]
  39916. pxNewQueue->uxQueueType = queueQUEUE_IS_MUTEX;
  39917. 80110f6: 687b ldr r3, [r7, #4]
  39918. 80110f8: 2200 movs r2, #0
  39919. 80110fa: 601a str r2, [r3, #0]
  39920. /* In case this is a recursive mutex. */
  39921. pxNewQueue->u.xSemaphore.uxRecursiveCallCount = 0;
  39922. 80110fc: 687b ldr r3, [r7, #4]
  39923. 80110fe: 2200 movs r2, #0
  39924. 8011100: 60da str r2, [r3, #12]
  39925. traceCREATE_MUTEX( pxNewQueue );
  39926. /* Start with the semaphore in the expected state. */
  39927. ( void ) xQueueGenericSend( pxNewQueue, NULL, ( TickType_t ) 0U, queueSEND_TO_BACK );
  39928. 8011102: 2300 movs r3, #0
  39929. 8011104: 2200 movs r2, #0
  39930. 8011106: 2100 movs r1, #0
  39931. 8011108: 6878 ldr r0, [r7, #4]
  39932. 801110a: f000 f911 bl 8011330 <xQueueGenericSend>
  39933. }
  39934. else
  39935. {
  39936. traceCREATE_MUTEX_FAILED();
  39937. }
  39938. }
  39939. 801110e: bf00 nop
  39940. 8011110: 3708 adds r7, #8
  39941. 8011112: 46bd mov sp, r7
  39942. 8011114: bd80 pop {r7, pc}
  39943. 08011116 <xQueueCreateMutex>:
  39944. /*-----------------------------------------------------------*/
  39945. #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
  39946. QueueHandle_t xQueueCreateMutex( const uint8_t ucQueueType )
  39947. {
  39948. 8011116: b580 push {r7, lr}
  39949. 8011118: b086 sub sp, #24
  39950. 801111a: af00 add r7, sp, #0
  39951. 801111c: 4603 mov r3, r0
  39952. 801111e: 71fb strb r3, [r7, #7]
  39953. QueueHandle_t xNewQueue;
  39954. const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
  39955. 8011120: 2301 movs r3, #1
  39956. 8011122: 617b str r3, [r7, #20]
  39957. 8011124: 2300 movs r3, #0
  39958. 8011126: 613b str r3, [r7, #16]
  39959. xNewQueue = xQueueGenericCreate( uxMutexLength, uxMutexSize, ucQueueType );
  39960. 8011128: 79fb ldrb r3, [r7, #7]
  39961. 801112a: 461a mov r2, r3
  39962. 801112c: 6939 ldr r1, [r7, #16]
  39963. 801112e: 6978 ldr r0, [r7, #20]
  39964. 8011130: f7ff ff79 bl 8011026 <xQueueGenericCreate>
  39965. 8011134: 60f8 str r0, [r7, #12]
  39966. prvInitialiseMutex( ( Queue_t * ) xNewQueue );
  39967. 8011136: 68f8 ldr r0, [r7, #12]
  39968. 8011138: f7ff ffd3 bl 80110e2 <prvInitialiseMutex>
  39969. return xNewQueue;
  39970. 801113c: 68fb ldr r3, [r7, #12]
  39971. }
  39972. 801113e: 4618 mov r0, r3
  39973. 8011140: 3718 adds r7, #24
  39974. 8011142: 46bd mov sp, r7
  39975. 8011144: bd80 pop {r7, pc}
  39976. 08011146 <xQueueCreateMutexStatic>:
  39977. /*-----------------------------------------------------------*/
  39978. #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
  39979. QueueHandle_t xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue )
  39980. {
  39981. 8011146: b580 push {r7, lr}
  39982. 8011148: b088 sub sp, #32
  39983. 801114a: af02 add r7, sp, #8
  39984. 801114c: 4603 mov r3, r0
  39985. 801114e: 6039 str r1, [r7, #0]
  39986. 8011150: 71fb strb r3, [r7, #7]
  39987. QueueHandle_t xNewQueue;
  39988. const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
  39989. 8011152: 2301 movs r3, #1
  39990. 8011154: 617b str r3, [r7, #20]
  39991. 8011156: 2300 movs r3, #0
  39992. 8011158: 613b str r3, [r7, #16]
  39993. /* Prevent compiler warnings about unused parameters if
  39994. configUSE_TRACE_FACILITY does not equal 1. */
  39995. ( void ) ucQueueType;
  39996. xNewQueue = xQueueGenericCreateStatic( uxMutexLength, uxMutexSize, NULL, pxStaticQueue, ucQueueType );
  39997. 801115a: 79fb ldrb r3, [r7, #7]
  39998. 801115c: 9300 str r3, [sp, #0]
  39999. 801115e: 683b ldr r3, [r7, #0]
  40000. 8011160: 2200 movs r2, #0
  40001. 8011162: 6939 ldr r1, [r7, #16]
  40002. 8011164: 6978 ldr r0, [r7, #20]
  40003. 8011166: f7ff fee1 bl 8010f2c <xQueueGenericCreateStatic>
  40004. 801116a: 60f8 str r0, [r7, #12]
  40005. prvInitialiseMutex( ( Queue_t * ) xNewQueue );
  40006. 801116c: 68f8 ldr r0, [r7, #12]
  40007. 801116e: f7ff ffb8 bl 80110e2 <prvInitialiseMutex>
  40008. return xNewQueue;
  40009. 8011172: 68fb ldr r3, [r7, #12]
  40010. }
  40011. 8011174: 4618 mov r0, r3
  40012. 8011176: 3718 adds r7, #24
  40013. 8011178: 46bd mov sp, r7
  40014. 801117a: bd80 pop {r7, pc}
  40015. 0801117c <xQueueGiveMutexRecursive>:
  40016. /*-----------------------------------------------------------*/
  40017. #if ( configUSE_RECURSIVE_MUTEXES == 1 )
  40018. BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex )
  40019. {
  40020. 801117c: b590 push {r4, r7, lr}
  40021. 801117e: b087 sub sp, #28
  40022. 8011180: af00 add r7, sp, #0
  40023. 8011182: 6078 str r0, [r7, #4]
  40024. BaseType_t xReturn;
  40025. Queue_t * const pxMutex = ( Queue_t * ) xMutex;
  40026. 8011184: 687b ldr r3, [r7, #4]
  40027. 8011186: 613b str r3, [r7, #16]
  40028. configASSERT( pxMutex );
  40029. 8011188: 693b ldr r3, [r7, #16]
  40030. 801118a: 2b00 cmp r3, #0
  40031. 801118c: d10b bne.n 80111a6 <xQueueGiveMutexRecursive+0x2a>
  40032. __asm volatile
  40033. 801118e: f04f 0350 mov.w r3, #80 @ 0x50
  40034. 8011192: f383 8811 msr BASEPRI, r3
  40035. 8011196: f3bf 8f6f isb sy
  40036. 801119a: f3bf 8f4f dsb sy
  40037. 801119e: 60fb str r3, [r7, #12]
  40038. }
  40039. 80111a0: bf00 nop
  40040. 80111a2: bf00 nop
  40041. 80111a4: e7fd b.n 80111a2 <xQueueGiveMutexRecursive+0x26>
  40042. change outside of this task. If this task does not hold the mutex then
  40043. pxMutexHolder can never coincidentally equal the tasks handle, and as
  40044. this is the only condition we are interested in it does not matter if
  40045. pxMutexHolder is accessed simultaneously by another task. Therefore no
  40046. mutual exclusion is required to test the pxMutexHolder variable. */
  40047. if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
  40048. 80111a6: 693b ldr r3, [r7, #16]
  40049. 80111a8: 689c ldr r4, [r3, #8]
  40050. 80111aa: f002 f9af bl 801350c <xTaskGetCurrentTaskHandle>
  40051. 80111ae: 4603 mov r3, r0
  40052. 80111b0: 429c cmp r4, r3
  40053. 80111b2: d111 bne.n 80111d8 <xQueueGiveMutexRecursive+0x5c>
  40054. /* uxRecursiveCallCount cannot be zero if xMutexHolder is equal to
  40055. the task handle, therefore no underflow check is required. Also,
  40056. uxRecursiveCallCount is only modified by the mutex holder, and as
  40057. there can only be one, no mutual exclusion is required to modify the
  40058. uxRecursiveCallCount member. */
  40059. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )--;
  40060. 80111b4: 693b ldr r3, [r7, #16]
  40061. 80111b6: 68db ldr r3, [r3, #12]
  40062. 80111b8: 1e5a subs r2, r3, #1
  40063. 80111ba: 693b ldr r3, [r7, #16]
  40064. 80111bc: 60da str r2, [r3, #12]
  40065. /* Has the recursive call count unwound to 0? */
  40066. if( pxMutex->u.xSemaphore.uxRecursiveCallCount == ( UBaseType_t ) 0 )
  40067. 80111be: 693b ldr r3, [r7, #16]
  40068. 80111c0: 68db ldr r3, [r3, #12]
  40069. 80111c2: 2b00 cmp r3, #0
  40070. 80111c4: d105 bne.n 80111d2 <xQueueGiveMutexRecursive+0x56>
  40071. {
  40072. /* Return the mutex. This will automatically unblock any other
  40073. task that might be waiting to access the mutex. */
  40074. ( void ) xQueueGenericSend( pxMutex, NULL, queueMUTEX_GIVE_BLOCK_TIME, queueSEND_TO_BACK );
  40075. 80111c6: 2300 movs r3, #0
  40076. 80111c8: 2200 movs r2, #0
  40077. 80111ca: 2100 movs r1, #0
  40078. 80111cc: 6938 ldr r0, [r7, #16]
  40079. 80111ce: f000 f8af bl 8011330 <xQueueGenericSend>
  40080. else
  40081. {
  40082. mtCOVERAGE_TEST_MARKER();
  40083. }
  40084. xReturn = pdPASS;
  40085. 80111d2: 2301 movs r3, #1
  40086. 80111d4: 617b str r3, [r7, #20]
  40087. 80111d6: e001 b.n 80111dc <xQueueGiveMutexRecursive+0x60>
  40088. }
  40089. else
  40090. {
  40091. /* The mutex cannot be given because the calling task is not the
  40092. holder. */
  40093. xReturn = pdFAIL;
  40094. 80111d8: 2300 movs r3, #0
  40095. 80111da: 617b str r3, [r7, #20]
  40096. traceGIVE_MUTEX_RECURSIVE_FAILED( pxMutex );
  40097. }
  40098. return xReturn;
  40099. 80111dc: 697b ldr r3, [r7, #20]
  40100. }
  40101. 80111de: 4618 mov r0, r3
  40102. 80111e0: 371c adds r7, #28
  40103. 80111e2: 46bd mov sp, r7
  40104. 80111e4: bd90 pop {r4, r7, pc}
  40105. 080111e6 <xQueueTakeMutexRecursive>:
  40106. /*-----------------------------------------------------------*/
  40107. #if ( configUSE_RECURSIVE_MUTEXES == 1 )
  40108. BaseType_t xQueueTakeMutexRecursive( QueueHandle_t xMutex, TickType_t xTicksToWait )
  40109. {
  40110. 80111e6: b590 push {r4, r7, lr}
  40111. 80111e8: b087 sub sp, #28
  40112. 80111ea: af00 add r7, sp, #0
  40113. 80111ec: 6078 str r0, [r7, #4]
  40114. 80111ee: 6039 str r1, [r7, #0]
  40115. BaseType_t xReturn;
  40116. Queue_t * const pxMutex = ( Queue_t * ) xMutex;
  40117. 80111f0: 687b ldr r3, [r7, #4]
  40118. 80111f2: 613b str r3, [r7, #16]
  40119. configASSERT( pxMutex );
  40120. 80111f4: 693b ldr r3, [r7, #16]
  40121. 80111f6: 2b00 cmp r3, #0
  40122. 80111f8: d10b bne.n 8011212 <xQueueTakeMutexRecursive+0x2c>
  40123. __asm volatile
  40124. 80111fa: f04f 0350 mov.w r3, #80 @ 0x50
  40125. 80111fe: f383 8811 msr BASEPRI, r3
  40126. 8011202: f3bf 8f6f isb sy
  40127. 8011206: f3bf 8f4f dsb sy
  40128. 801120a: 60fb str r3, [r7, #12]
  40129. }
  40130. 801120c: bf00 nop
  40131. 801120e: bf00 nop
  40132. 8011210: e7fd b.n 801120e <xQueueTakeMutexRecursive+0x28>
  40133. /* Comments regarding mutual exclusion as per those within
  40134. xQueueGiveMutexRecursive(). */
  40135. traceTAKE_MUTEX_RECURSIVE( pxMutex );
  40136. if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
  40137. 8011212: 693b ldr r3, [r7, #16]
  40138. 8011214: 689c ldr r4, [r3, #8]
  40139. 8011216: f002 f979 bl 801350c <xTaskGetCurrentTaskHandle>
  40140. 801121a: 4603 mov r3, r0
  40141. 801121c: 429c cmp r4, r3
  40142. 801121e: d107 bne.n 8011230 <xQueueTakeMutexRecursive+0x4a>
  40143. {
  40144. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
  40145. 8011220: 693b ldr r3, [r7, #16]
  40146. 8011222: 68db ldr r3, [r3, #12]
  40147. 8011224: 1c5a adds r2, r3, #1
  40148. 8011226: 693b ldr r3, [r7, #16]
  40149. 8011228: 60da str r2, [r3, #12]
  40150. xReturn = pdPASS;
  40151. 801122a: 2301 movs r3, #1
  40152. 801122c: 617b str r3, [r7, #20]
  40153. 801122e: e00c b.n 801124a <xQueueTakeMutexRecursive+0x64>
  40154. }
  40155. else
  40156. {
  40157. xReturn = xQueueSemaphoreTake( pxMutex, xTicksToWait );
  40158. 8011230: 6839 ldr r1, [r7, #0]
  40159. 8011232: 6938 ldr r0, [r7, #16]
  40160. 8011234: f000 fb8e bl 8011954 <xQueueSemaphoreTake>
  40161. 8011238: 6178 str r0, [r7, #20]
  40162. /* pdPASS will only be returned if the mutex was successfully
  40163. obtained. The calling task may have entered the Blocked state
  40164. before reaching here. */
  40165. if( xReturn != pdFAIL )
  40166. 801123a: 697b ldr r3, [r7, #20]
  40167. 801123c: 2b00 cmp r3, #0
  40168. 801123e: d004 beq.n 801124a <xQueueTakeMutexRecursive+0x64>
  40169. {
  40170. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
  40171. 8011240: 693b ldr r3, [r7, #16]
  40172. 8011242: 68db ldr r3, [r3, #12]
  40173. 8011244: 1c5a adds r2, r3, #1
  40174. 8011246: 693b ldr r3, [r7, #16]
  40175. 8011248: 60da str r2, [r3, #12]
  40176. {
  40177. traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex );
  40178. }
  40179. }
  40180. return xReturn;
  40181. 801124a: 697b ldr r3, [r7, #20]
  40182. }
  40183. 801124c: 4618 mov r0, r3
  40184. 801124e: 371c adds r7, #28
  40185. 8011250: 46bd mov sp, r7
  40186. 8011252: bd90 pop {r4, r7, pc}
  40187. 08011254 <xQueueCreateCountingSemaphoreStatic>:
  40188. /*-----------------------------------------------------------*/
  40189. #if( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
  40190. QueueHandle_t xQueueCreateCountingSemaphoreStatic( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount, StaticQueue_t *pxStaticQueue )
  40191. {
  40192. 8011254: b580 push {r7, lr}
  40193. 8011256: b08a sub sp, #40 @ 0x28
  40194. 8011258: af02 add r7, sp, #8
  40195. 801125a: 60f8 str r0, [r7, #12]
  40196. 801125c: 60b9 str r1, [r7, #8]
  40197. 801125e: 607a str r2, [r7, #4]
  40198. QueueHandle_t xHandle;
  40199. configASSERT( uxMaxCount != 0 );
  40200. 8011260: 68fb ldr r3, [r7, #12]
  40201. 8011262: 2b00 cmp r3, #0
  40202. 8011264: d10b bne.n 801127e <xQueueCreateCountingSemaphoreStatic+0x2a>
  40203. __asm volatile
  40204. 8011266: f04f 0350 mov.w r3, #80 @ 0x50
  40205. 801126a: f383 8811 msr BASEPRI, r3
  40206. 801126e: f3bf 8f6f isb sy
  40207. 8011272: f3bf 8f4f dsb sy
  40208. 8011276: 61bb str r3, [r7, #24]
  40209. }
  40210. 8011278: bf00 nop
  40211. 801127a: bf00 nop
  40212. 801127c: e7fd b.n 801127a <xQueueCreateCountingSemaphoreStatic+0x26>
  40213. configASSERT( uxInitialCount <= uxMaxCount );
  40214. 801127e: 68ba ldr r2, [r7, #8]
  40215. 8011280: 68fb ldr r3, [r7, #12]
  40216. 8011282: 429a cmp r2, r3
  40217. 8011284: d90b bls.n 801129e <xQueueCreateCountingSemaphoreStatic+0x4a>
  40218. __asm volatile
  40219. 8011286: f04f 0350 mov.w r3, #80 @ 0x50
  40220. 801128a: f383 8811 msr BASEPRI, r3
  40221. 801128e: f3bf 8f6f isb sy
  40222. 8011292: f3bf 8f4f dsb sy
  40223. 8011296: 617b str r3, [r7, #20]
  40224. }
  40225. 8011298: bf00 nop
  40226. 801129a: bf00 nop
  40227. 801129c: e7fd b.n 801129a <xQueueCreateCountingSemaphoreStatic+0x46>
  40228. xHandle = xQueueGenericCreateStatic( uxMaxCount, queueSEMAPHORE_QUEUE_ITEM_LENGTH, NULL, pxStaticQueue, queueQUEUE_TYPE_COUNTING_SEMAPHORE );
  40229. 801129e: 2302 movs r3, #2
  40230. 80112a0: 9300 str r3, [sp, #0]
  40231. 80112a2: 687b ldr r3, [r7, #4]
  40232. 80112a4: 2200 movs r2, #0
  40233. 80112a6: 2100 movs r1, #0
  40234. 80112a8: 68f8 ldr r0, [r7, #12]
  40235. 80112aa: f7ff fe3f bl 8010f2c <xQueueGenericCreateStatic>
  40236. 80112ae: 61f8 str r0, [r7, #28]
  40237. if( xHandle != NULL )
  40238. 80112b0: 69fb ldr r3, [r7, #28]
  40239. 80112b2: 2b00 cmp r3, #0
  40240. 80112b4: d002 beq.n 80112bc <xQueueCreateCountingSemaphoreStatic+0x68>
  40241. {
  40242. ( ( Queue_t * ) xHandle )->uxMessagesWaiting = uxInitialCount;
  40243. 80112b6: 69fb ldr r3, [r7, #28]
  40244. 80112b8: 68ba ldr r2, [r7, #8]
  40245. 80112ba: 639a str r2, [r3, #56] @ 0x38
  40246. else
  40247. {
  40248. traceCREATE_COUNTING_SEMAPHORE_FAILED();
  40249. }
  40250. return xHandle;
  40251. 80112bc: 69fb ldr r3, [r7, #28]
  40252. }
  40253. 80112be: 4618 mov r0, r3
  40254. 80112c0: 3720 adds r7, #32
  40255. 80112c2: 46bd mov sp, r7
  40256. 80112c4: bd80 pop {r7, pc}
  40257. 080112c6 <xQueueCreateCountingSemaphore>:
  40258. /*-----------------------------------------------------------*/
  40259. #if( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
  40260. QueueHandle_t xQueueCreateCountingSemaphore( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount )
  40261. {
  40262. 80112c6: b580 push {r7, lr}
  40263. 80112c8: b086 sub sp, #24
  40264. 80112ca: af00 add r7, sp, #0
  40265. 80112cc: 6078 str r0, [r7, #4]
  40266. 80112ce: 6039 str r1, [r7, #0]
  40267. QueueHandle_t xHandle;
  40268. configASSERT( uxMaxCount != 0 );
  40269. 80112d0: 687b ldr r3, [r7, #4]
  40270. 80112d2: 2b00 cmp r3, #0
  40271. 80112d4: d10b bne.n 80112ee <xQueueCreateCountingSemaphore+0x28>
  40272. __asm volatile
  40273. 80112d6: f04f 0350 mov.w r3, #80 @ 0x50
  40274. 80112da: f383 8811 msr BASEPRI, r3
  40275. 80112de: f3bf 8f6f isb sy
  40276. 80112e2: f3bf 8f4f dsb sy
  40277. 80112e6: 613b str r3, [r7, #16]
  40278. }
  40279. 80112e8: bf00 nop
  40280. 80112ea: bf00 nop
  40281. 80112ec: e7fd b.n 80112ea <xQueueCreateCountingSemaphore+0x24>
  40282. configASSERT( uxInitialCount <= uxMaxCount );
  40283. 80112ee: 683a ldr r2, [r7, #0]
  40284. 80112f0: 687b ldr r3, [r7, #4]
  40285. 80112f2: 429a cmp r2, r3
  40286. 80112f4: d90b bls.n 801130e <xQueueCreateCountingSemaphore+0x48>
  40287. __asm volatile
  40288. 80112f6: f04f 0350 mov.w r3, #80 @ 0x50
  40289. 80112fa: f383 8811 msr BASEPRI, r3
  40290. 80112fe: f3bf 8f6f isb sy
  40291. 8011302: f3bf 8f4f dsb sy
  40292. 8011306: 60fb str r3, [r7, #12]
  40293. }
  40294. 8011308: bf00 nop
  40295. 801130a: bf00 nop
  40296. 801130c: e7fd b.n 801130a <xQueueCreateCountingSemaphore+0x44>
  40297. xHandle = xQueueGenericCreate( uxMaxCount, queueSEMAPHORE_QUEUE_ITEM_LENGTH, queueQUEUE_TYPE_COUNTING_SEMAPHORE );
  40298. 801130e: 2202 movs r2, #2
  40299. 8011310: 2100 movs r1, #0
  40300. 8011312: 6878 ldr r0, [r7, #4]
  40301. 8011314: f7ff fe87 bl 8011026 <xQueueGenericCreate>
  40302. 8011318: 6178 str r0, [r7, #20]
  40303. if( xHandle != NULL )
  40304. 801131a: 697b ldr r3, [r7, #20]
  40305. 801131c: 2b00 cmp r3, #0
  40306. 801131e: d002 beq.n 8011326 <xQueueCreateCountingSemaphore+0x60>
  40307. {
  40308. ( ( Queue_t * ) xHandle )->uxMessagesWaiting = uxInitialCount;
  40309. 8011320: 697b ldr r3, [r7, #20]
  40310. 8011322: 683a ldr r2, [r7, #0]
  40311. 8011324: 639a str r2, [r3, #56] @ 0x38
  40312. else
  40313. {
  40314. traceCREATE_COUNTING_SEMAPHORE_FAILED();
  40315. }
  40316. return xHandle;
  40317. 8011326: 697b ldr r3, [r7, #20]
  40318. }
  40319. 8011328: 4618 mov r0, r3
  40320. 801132a: 3718 adds r7, #24
  40321. 801132c: 46bd mov sp, r7
  40322. 801132e: bd80 pop {r7, pc}
  40323. 08011330 <xQueueGenericSend>:
  40324. #endif /* ( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) */
  40325. /*-----------------------------------------------------------*/
  40326. BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition )
  40327. {
  40328. 8011330: b580 push {r7, lr}
  40329. 8011332: b08e sub sp, #56 @ 0x38
  40330. 8011334: af00 add r7, sp, #0
  40331. 8011336: 60f8 str r0, [r7, #12]
  40332. 8011338: 60b9 str r1, [r7, #8]
  40333. 801133a: 607a str r2, [r7, #4]
  40334. 801133c: 603b str r3, [r7, #0]
  40335. BaseType_t xEntryTimeSet = pdFALSE, xYieldRequired;
  40336. 801133e: 2300 movs r3, #0
  40337. 8011340: 637b str r3, [r7, #52] @ 0x34
  40338. TimeOut_t xTimeOut;
  40339. Queue_t * const pxQueue = xQueue;
  40340. 8011342: 68fb ldr r3, [r7, #12]
  40341. 8011344: 633b str r3, [r7, #48] @ 0x30
  40342. configASSERT( pxQueue );
  40343. 8011346: 6b3b ldr r3, [r7, #48] @ 0x30
  40344. 8011348: 2b00 cmp r3, #0
  40345. 801134a: d10b bne.n 8011364 <xQueueGenericSend+0x34>
  40346. __asm volatile
  40347. 801134c: f04f 0350 mov.w r3, #80 @ 0x50
  40348. 8011350: f383 8811 msr BASEPRI, r3
  40349. 8011354: f3bf 8f6f isb sy
  40350. 8011358: f3bf 8f4f dsb sy
  40351. 801135c: 62bb str r3, [r7, #40] @ 0x28
  40352. }
  40353. 801135e: bf00 nop
  40354. 8011360: bf00 nop
  40355. 8011362: e7fd b.n 8011360 <xQueueGenericSend+0x30>
  40356. configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  40357. 8011364: 68bb ldr r3, [r7, #8]
  40358. 8011366: 2b00 cmp r3, #0
  40359. 8011368: d103 bne.n 8011372 <xQueueGenericSend+0x42>
  40360. 801136a: 6b3b ldr r3, [r7, #48] @ 0x30
  40361. 801136c: 6c1b ldr r3, [r3, #64] @ 0x40
  40362. 801136e: 2b00 cmp r3, #0
  40363. 8011370: d101 bne.n 8011376 <xQueueGenericSend+0x46>
  40364. 8011372: 2301 movs r3, #1
  40365. 8011374: e000 b.n 8011378 <xQueueGenericSend+0x48>
  40366. 8011376: 2300 movs r3, #0
  40367. 8011378: 2b00 cmp r3, #0
  40368. 801137a: d10b bne.n 8011394 <xQueueGenericSend+0x64>
  40369. __asm volatile
  40370. 801137c: f04f 0350 mov.w r3, #80 @ 0x50
  40371. 8011380: f383 8811 msr BASEPRI, r3
  40372. 8011384: f3bf 8f6f isb sy
  40373. 8011388: f3bf 8f4f dsb sy
  40374. 801138c: 627b str r3, [r7, #36] @ 0x24
  40375. }
  40376. 801138e: bf00 nop
  40377. 8011390: bf00 nop
  40378. 8011392: e7fd b.n 8011390 <xQueueGenericSend+0x60>
  40379. configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
  40380. 8011394: 683b ldr r3, [r7, #0]
  40381. 8011396: 2b02 cmp r3, #2
  40382. 8011398: d103 bne.n 80113a2 <xQueueGenericSend+0x72>
  40383. 801139a: 6b3b ldr r3, [r7, #48] @ 0x30
  40384. 801139c: 6bdb ldr r3, [r3, #60] @ 0x3c
  40385. 801139e: 2b01 cmp r3, #1
  40386. 80113a0: d101 bne.n 80113a6 <xQueueGenericSend+0x76>
  40387. 80113a2: 2301 movs r3, #1
  40388. 80113a4: e000 b.n 80113a8 <xQueueGenericSend+0x78>
  40389. 80113a6: 2300 movs r3, #0
  40390. 80113a8: 2b00 cmp r3, #0
  40391. 80113aa: d10b bne.n 80113c4 <xQueueGenericSend+0x94>
  40392. __asm volatile
  40393. 80113ac: f04f 0350 mov.w r3, #80 @ 0x50
  40394. 80113b0: f383 8811 msr BASEPRI, r3
  40395. 80113b4: f3bf 8f6f isb sy
  40396. 80113b8: f3bf 8f4f dsb sy
  40397. 80113bc: 623b str r3, [r7, #32]
  40398. }
  40399. 80113be: bf00 nop
  40400. 80113c0: bf00 nop
  40401. 80113c2: e7fd b.n 80113c0 <xQueueGenericSend+0x90>
  40402. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  40403. {
  40404. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  40405. 80113c4: f002 f8b2 bl 801352c <xTaskGetSchedulerState>
  40406. 80113c8: 4603 mov r3, r0
  40407. 80113ca: 2b00 cmp r3, #0
  40408. 80113cc: d102 bne.n 80113d4 <xQueueGenericSend+0xa4>
  40409. 80113ce: 687b ldr r3, [r7, #4]
  40410. 80113d0: 2b00 cmp r3, #0
  40411. 80113d2: d101 bne.n 80113d8 <xQueueGenericSend+0xa8>
  40412. 80113d4: 2301 movs r3, #1
  40413. 80113d6: e000 b.n 80113da <xQueueGenericSend+0xaa>
  40414. 80113d8: 2300 movs r3, #0
  40415. 80113da: 2b00 cmp r3, #0
  40416. 80113dc: d10b bne.n 80113f6 <xQueueGenericSend+0xc6>
  40417. __asm volatile
  40418. 80113de: f04f 0350 mov.w r3, #80 @ 0x50
  40419. 80113e2: f383 8811 msr BASEPRI, r3
  40420. 80113e6: f3bf 8f6f isb sy
  40421. 80113ea: f3bf 8f4f dsb sy
  40422. 80113ee: 61fb str r3, [r7, #28]
  40423. }
  40424. 80113f0: bf00 nop
  40425. 80113f2: bf00 nop
  40426. 80113f4: e7fd b.n 80113f2 <xQueueGenericSend+0xc2>
  40427. /*lint -save -e904 This function relaxes the coding standard somewhat to
  40428. allow return statements within the function itself. This is done in the
  40429. interest of execution time efficiency. */
  40430. for( ;; )
  40431. {
  40432. taskENTER_CRITICAL();
  40433. 80113f6: f003 f937 bl 8014668 <vPortEnterCritical>
  40434. {
  40435. /* Is there room on the queue now? The running task must be the
  40436. highest priority task wanting to access the queue. If the head item
  40437. in the queue is to be overwritten then it does not matter if the
  40438. queue is full. */
  40439. if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
  40440. 80113fa: 6b3b ldr r3, [r7, #48] @ 0x30
  40441. 80113fc: 6b9a ldr r2, [r3, #56] @ 0x38
  40442. 80113fe: 6b3b ldr r3, [r7, #48] @ 0x30
  40443. 8011400: 6bdb ldr r3, [r3, #60] @ 0x3c
  40444. 8011402: 429a cmp r2, r3
  40445. 8011404: d302 bcc.n 801140c <xQueueGenericSend+0xdc>
  40446. 8011406: 683b ldr r3, [r7, #0]
  40447. 8011408: 2b02 cmp r3, #2
  40448. 801140a: d129 bne.n 8011460 <xQueueGenericSend+0x130>
  40449. }
  40450. }
  40451. }
  40452. #else /* configUSE_QUEUE_SETS */
  40453. {
  40454. xYieldRequired = prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
  40455. 801140c: 683a ldr r2, [r7, #0]
  40456. 801140e: 68b9 ldr r1, [r7, #8]
  40457. 8011410: 6b38 ldr r0, [r7, #48] @ 0x30
  40458. 8011412: f000 fcab bl 8011d6c <prvCopyDataToQueue>
  40459. 8011416: 62f8 str r0, [r7, #44] @ 0x2c
  40460. /* If there was a task waiting for data to arrive on the
  40461. queue then unblock it now. */
  40462. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  40463. 8011418: 6b3b ldr r3, [r7, #48] @ 0x30
  40464. 801141a: 6a5b ldr r3, [r3, #36] @ 0x24
  40465. 801141c: 2b00 cmp r3, #0
  40466. 801141e: d010 beq.n 8011442 <xQueueGenericSend+0x112>
  40467. {
  40468. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  40469. 8011420: 6b3b ldr r3, [r7, #48] @ 0x30
  40470. 8011422: 3324 adds r3, #36 @ 0x24
  40471. 8011424: 4618 mov r0, r3
  40472. 8011426: f001 fe83 bl 8013130 <xTaskRemoveFromEventList>
  40473. 801142a: 4603 mov r3, r0
  40474. 801142c: 2b00 cmp r3, #0
  40475. 801142e: d013 beq.n 8011458 <xQueueGenericSend+0x128>
  40476. {
  40477. /* The unblocked task has a priority higher than
  40478. our own so yield immediately. Yes it is ok to do
  40479. this from within the critical section - the kernel
  40480. takes care of that. */
  40481. queueYIELD_IF_USING_PREEMPTION();
  40482. 8011430: 4b3f ldr r3, [pc, #252] @ (8011530 <xQueueGenericSend+0x200>)
  40483. 8011432: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  40484. 8011436: 601a str r2, [r3, #0]
  40485. 8011438: f3bf 8f4f dsb sy
  40486. 801143c: f3bf 8f6f isb sy
  40487. 8011440: e00a b.n 8011458 <xQueueGenericSend+0x128>
  40488. else
  40489. {
  40490. mtCOVERAGE_TEST_MARKER();
  40491. }
  40492. }
  40493. else if( xYieldRequired != pdFALSE )
  40494. 8011442: 6afb ldr r3, [r7, #44] @ 0x2c
  40495. 8011444: 2b00 cmp r3, #0
  40496. 8011446: d007 beq.n 8011458 <xQueueGenericSend+0x128>
  40497. {
  40498. /* This path is a special case that will only get
  40499. executed if the task was holding multiple mutexes and
  40500. the mutexes were given back in an order that is
  40501. different to that in which they were taken. */
  40502. queueYIELD_IF_USING_PREEMPTION();
  40503. 8011448: 4b39 ldr r3, [pc, #228] @ (8011530 <xQueueGenericSend+0x200>)
  40504. 801144a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  40505. 801144e: 601a str r2, [r3, #0]
  40506. 8011450: f3bf 8f4f dsb sy
  40507. 8011454: f3bf 8f6f isb sy
  40508. mtCOVERAGE_TEST_MARKER();
  40509. }
  40510. }
  40511. #endif /* configUSE_QUEUE_SETS */
  40512. taskEXIT_CRITICAL();
  40513. 8011458: f003 f938 bl 80146cc <vPortExitCritical>
  40514. return pdPASS;
  40515. 801145c: 2301 movs r3, #1
  40516. 801145e: e063 b.n 8011528 <xQueueGenericSend+0x1f8>
  40517. }
  40518. else
  40519. {
  40520. if( xTicksToWait == ( TickType_t ) 0 )
  40521. 8011460: 687b ldr r3, [r7, #4]
  40522. 8011462: 2b00 cmp r3, #0
  40523. 8011464: d103 bne.n 801146e <xQueueGenericSend+0x13e>
  40524. {
  40525. /* The queue was full and no block time is specified (or
  40526. the block time has expired) so leave now. */
  40527. taskEXIT_CRITICAL();
  40528. 8011466: f003 f931 bl 80146cc <vPortExitCritical>
  40529. /* Return to the original privilege level before exiting
  40530. the function. */
  40531. traceQUEUE_SEND_FAILED( pxQueue );
  40532. return errQUEUE_FULL;
  40533. 801146a: 2300 movs r3, #0
  40534. 801146c: e05c b.n 8011528 <xQueueGenericSend+0x1f8>
  40535. }
  40536. else if( xEntryTimeSet == pdFALSE )
  40537. 801146e: 6b7b ldr r3, [r7, #52] @ 0x34
  40538. 8011470: 2b00 cmp r3, #0
  40539. 8011472: d106 bne.n 8011482 <xQueueGenericSend+0x152>
  40540. {
  40541. /* The queue was full and a block time was specified so
  40542. configure the timeout structure. */
  40543. vTaskInternalSetTimeOutState( &xTimeOut );
  40544. 8011474: f107 0314 add.w r3, r7, #20
  40545. 8011478: 4618 mov r0, r3
  40546. 801147a: f001 fee5 bl 8013248 <vTaskInternalSetTimeOutState>
  40547. xEntryTimeSet = pdTRUE;
  40548. 801147e: 2301 movs r3, #1
  40549. 8011480: 637b str r3, [r7, #52] @ 0x34
  40550. /* Entry time was already set. */
  40551. mtCOVERAGE_TEST_MARKER();
  40552. }
  40553. }
  40554. }
  40555. taskEXIT_CRITICAL();
  40556. 8011482: f003 f923 bl 80146cc <vPortExitCritical>
  40557. /* Interrupts and other tasks can send to and receive from the queue
  40558. now the critical section has been exited. */
  40559. vTaskSuspendAll();
  40560. 8011486: f001 fc05 bl 8012c94 <vTaskSuspendAll>
  40561. prvLockQueue( pxQueue );
  40562. 801148a: f003 f8ed bl 8014668 <vPortEnterCritical>
  40563. 801148e: 6b3b ldr r3, [r7, #48] @ 0x30
  40564. 8011490: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  40565. 8011494: b25b sxtb r3, r3
  40566. 8011496: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  40567. 801149a: d103 bne.n 80114a4 <xQueueGenericSend+0x174>
  40568. 801149c: 6b3b ldr r3, [r7, #48] @ 0x30
  40569. 801149e: 2200 movs r2, #0
  40570. 80114a0: f883 2044 strb.w r2, [r3, #68] @ 0x44
  40571. 80114a4: 6b3b ldr r3, [r7, #48] @ 0x30
  40572. 80114a6: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  40573. 80114aa: b25b sxtb r3, r3
  40574. 80114ac: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  40575. 80114b0: d103 bne.n 80114ba <xQueueGenericSend+0x18a>
  40576. 80114b2: 6b3b ldr r3, [r7, #48] @ 0x30
  40577. 80114b4: 2200 movs r2, #0
  40578. 80114b6: f883 2045 strb.w r2, [r3, #69] @ 0x45
  40579. 80114ba: f003 f907 bl 80146cc <vPortExitCritical>
  40580. /* Update the timeout state to see if it has expired yet. */
  40581. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  40582. 80114be: 1d3a adds r2, r7, #4
  40583. 80114c0: f107 0314 add.w r3, r7, #20
  40584. 80114c4: 4611 mov r1, r2
  40585. 80114c6: 4618 mov r0, r3
  40586. 80114c8: f001 fed4 bl 8013274 <xTaskCheckForTimeOut>
  40587. 80114cc: 4603 mov r3, r0
  40588. 80114ce: 2b00 cmp r3, #0
  40589. 80114d0: d124 bne.n 801151c <xQueueGenericSend+0x1ec>
  40590. {
  40591. if( prvIsQueueFull( pxQueue ) != pdFALSE )
  40592. 80114d2: 6b38 ldr r0, [r7, #48] @ 0x30
  40593. 80114d4: f000 fd42 bl 8011f5c <prvIsQueueFull>
  40594. 80114d8: 4603 mov r3, r0
  40595. 80114da: 2b00 cmp r3, #0
  40596. 80114dc: d018 beq.n 8011510 <xQueueGenericSend+0x1e0>
  40597. {
  40598. traceBLOCKING_ON_QUEUE_SEND( pxQueue );
  40599. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToSend ), xTicksToWait );
  40600. 80114de: 6b3b ldr r3, [r7, #48] @ 0x30
  40601. 80114e0: 3310 adds r3, #16
  40602. 80114e2: 687a ldr r2, [r7, #4]
  40603. 80114e4: 4611 mov r1, r2
  40604. 80114e6: 4618 mov r0, r3
  40605. 80114e8: f001 fdd0 bl 801308c <vTaskPlaceOnEventList>
  40606. /* Unlocking the queue means queue events can effect the
  40607. event list. It is possible that interrupts occurring now
  40608. remove this task from the event list again - but as the
  40609. scheduler is suspended the task will go onto the pending
  40610. ready last instead of the actual ready list. */
  40611. prvUnlockQueue( pxQueue );
  40612. 80114ec: 6b38 ldr r0, [r7, #48] @ 0x30
  40613. 80114ee: f000 fccd bl 8011e8c <prvUnlockQueue>
  40614. /* Resuming the scheduler will move tasks from the pending
  40615. ready list into the ready list - so it is feasible that this
  40616. task is already in a ready list before it yields - in which
  40617. case the yield will not cause a context switch unless there
  40618. is also a higher priority task in the pending ready list. */
  40619. if( xTaskResumeAll() == pdFALSE )
  40620. 80114f2: f001 fbdd bl 8012cb0 <xTaskResumeAll>
  40621. 80114f6: 4603 mov r3, r0
  40622. 80114f8: 2b00 cmp r3, #0
  40623. 80114fa: f47f af7c bne.w 80113f6 <xQueueGenericSend+0xc6>
  40624. {
  40625. portYIELD_WITHIN_API();
  40626. 80114fe: 4b0c ldr r3, [pc, #48] @ (8011530 <xQueueGenericSend+0x200>)
  40627. 8011500: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  40628. 8011504: 601a str r2, [r3, #0]
  40629. 8011506: f3bf 8f4f dsb sy
  40630. 801150a: f3bf 8f6f isb sy
  40631. 801150e: e772 b.n 80113f6 <xQueueGenericSend+0xc6>
  40632. }
  40633. }
  40634. else
  40635. {
  40636. /* Try again. */
  40637. prvUnlockQueue( pxQueue );
  40638. 8011510: 6b38 ldr r0, [r7, #48] @ 0x30
  40639. 8011512: f000 fcbb bl 8011e8c <prvUnlockQueue>
  40640. ( void ) xTaskResumeAll();
  40641. 8011516: f001 fbcb bl 8012cb0 <xTaskResumeAll>
  40642. 801151a: e76c b.n 80113f6 <xQueueGenericSend+0xc6>
  40643. }
  40644. }
  40645. else
  40646. {
  40647. /* The timeout has expired. */
  40648. prvUnlockQueue( pxQueue );
  40649. 801151c: 6b38 ldr r0, [r7, #48] @ 0x30
  40650. 801151e: f000 fcb5 bl 8011e8c <prvUnlockQueue>
  40651. ( void ) xTaskResumeAll();
  40652. 8011522: f001 fbc5 bl 8012cb0 <xTaskResumeAll>
  40653. traceQUEUE_SEND_FAILED( pxQueue );
  40654. return errQUEUE_FULL;
  40655. 8011526: 2300 movs r3, #0
  40656. }
  40657. } /*lint -restore */
  40658. }
  40659. 8011528: 4618 mov r0, r3
  40660. 801152a: 3738 adds r7, #56 @ 0x38
  40661. 801152c: 46bd mov sp, r7
  40662. 801152e: bd80 pop {r7, pc}
  40663. 8011530: e000ed04 .word 0xe000ed04
  40664. 08011534 <xQueueGenericSendFromISR>:
  40665. /*-----------------------------------------------------------*/
  40666. BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue, const void * const pvItemToQueue, BaseType_t * const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition )
  40667. {
  40668. 8011534: b580 push {r7, lr}
  40669. 8011536: b090 sub sp, #64 @ 0x40
  40670. 8011538: af00 add r7, sp, #0
  40671. 801153a: 60f8 str r0, [r7, #12]
  40672. 801153c: 60b9 str r1, [r7, #8]
  40673. 801153e: 607a str r2, [r7, #4]
  40674. 8011540: 603b str r3, [r7, #0]
  40675. BaseType_t xReturn;
  40676. UBaseType_t uxSavedInterruptStatus;
  40677. Queue_t * const pxQueue = xQueue;
  40678. 8011542: 68fb ldr r3, [r7, #12]
  40679. 8011544: 63bb str r3, [r7, #56] @ 0x38
  40680. configASSERT( pxQueue );
  40681. 8011546: 6bbb ldr r3, [r7, #56] @ 0x38
  40682. 8011548: 2b00 cmp r3, #0
  40683. 801154a: d10b bne.n 8011564 <xQueueGenericSendFromISR+0x30>
  40684. __asm volatile
  40685. 801154c: f04f 0350 mov.w r3, #80 @ 0x50
  40686. 8011550: f383 8811 msr BASEPRI, r3
  40687. 8011554: f3bf 8f6f isb sy
  40688. 8011558: f3bf 8f4f dsb sy
  40689. 801155c: 62bb str r3, [r7, #40] @ 0x28
  40690. }
  40691. 801155e: bf00 nop
  40692. 8011560: bf00 nop
  40693. 8011562: e7fd b.n 8011560 <xQueueGenericSendFromISR+0x2c>
  40694. configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  40695. 8011564: 68bb ldr r3, [r7, #8]
  40696. 8011566: 2b00 cmp r3, #0
  40697. 8011568: d103 bne.n 8011572 <xQueueGenericSendFromISR+0x3e>
  40698. 801156a: 6bbb ldr r3, [r7, #56] @ 0x38
  40699. 801156c: 6c1b ldr r3, [r3, #64] @ 0x40
  40700. 801156e: 2b00 cmp r3, #0
  40701. 8011570: d101 bne.n 8011576 <xQueueGenericSendFromISR+0x42>
  40702. 8011572: 2301 movs r3, #1
  40703. 8011574: e000 b.n 8011578 <xQueueGenericSendFromISR+0x44>
  40704. 8011576: 2300 movs r3, #0
  40705. 8011578: 2b00 cmp r3, #0
  40706. 801157a: d10b bne.n 8011594 <xQueueGenericSendFromISR+0x60>
  40707. __asm volatile
  40708. 801157c: f04f 0350 mov.w r3, #80 @ 0x50
  40709. 8011580: f383 8811 msr BASEPRI, r3
  40710. 8011584: f3bf 8f6f isb sy
  40711. 8011588: f3bf 8f4f dsb sy
  40712. 801158c: 627b str r3, [r7, #36] @ 0x24
  40713. }
  40714. 801158e: bf00 nop
  40715. 8011590: bf00 nop
  40716. 8011592: e7fd b.n 8011590 <xQueueGenericSendFromISR+0x5c>
  40717. configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
  40718. 8011594: 683b ldr r3, [r7, #0]
  40719. 8011596: 2b02 cmp r3, #2
  40720. 8011598: d103 bne.n 80115a2 <xQueueGenericSendFromISR+0x6e>
  40721. 801159a: 6bbb ldr r3, [r7, #56] @ 0x38
  40722. 801159c: 6bdb ldr r3, [r3, #60] @ 0x3c
  40723. 801159e: 2b01 cmp r3, #1
  40724. 80115a0: d101 bne.n 80115a6 <xQueueGenericSendFromISR+0x72>
  40725. 80115a2: 2301 movs r3, #1
  40726. 80115a4: e000 b.n 80115a8 <xQueueGenericSendFromISR+0x74>
  40727. 80115a6: 2300 movs r3, #0
  40728. 80115a8: 2b00 cmp r3, #0
  40729. 80115aa: d10b bne.n 80115c4 <xQueueGenericSendFromISR+0x90>
  40730. __asm volatile
  40731. 80115ac: f04f 0350 mov.w r3, #80 @ 0x50
  40732. 80115b0: f383 8811 msr BASEPRI, r3
  40733. 80115b4: f3bf 8f6f isb sy
  40734. 80115b8: f3bf 8f4f dsb sy
  40735. 80115bc: 623b str r3, [r7, #32]
  40736. }
  40737. 80115be: bf00 nop
  40738. 80115c0: bf00 nop
  40739. 80115c2: e7fd b.n 80115c0 <xQueueGenericSendFromISR+0x8c>
  40740. that have been assigned a priority at or (logically) below the maximum
  40741. system call interrupt priority. FreeRTOS maintains a separate interrupt
  40742. safe API to ensure interrupt entry is as fast and as simple as possible.
  40743. More information (albeit Cortex-M specific) is provided on the following
  40744. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  40745. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  40746. 80115c4: f003 f930 bl 8014828 <vPortValidateInterruptPriority>
  40747. portFORCE_INLINE static uint32_t ulPortRaiseBASEPRI( void )
  40748. {
  40749. uint32_t ulOriginalBASEPRI, ulNewBASEPRI;
  40750. __asm volatile
  40751. 80115c8: f3ef 8211 mrs r2, BASEPRI
  40752. 80115cc: f04f 0350 mov.w r3, #80 @ 0x50
  40753. 80115d0: f383 8811 msr BASEPRI, r3
  40754. 80115d4: f3bf 8f6f isb sy
  40755. 80115d8: f3bf 8f4f dsb sy
  40756. 80115dc: 61fa str r2, [r7, #28]
  40757. 80115de: 61bb str r3, [r7, #24]
  40758. :"=r" (ulOriginalBASEPRI), "=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
  40759. );
  40760. /* This return will not be reached but is necessary to prevent compiler
  40761. warnings. */
  40762. return ulOriginalBASEPRI;
  40763. 80115e0: 69fb ldr r3, [r7, #28]
  40764. /* Similar to xQueueGenericSend, except without blocking if there is no room
  40765. in the queue. Also don't directly wake a task that was blocked on a queue
  40766. read, instead return a flag to say whether a context switch is required or
  40767. not (i.e. has a task with a higher priority than us been woken by this
  40768. post). */
  40769. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  40770. 80115e2: 637b str r3, [r7, #52] @ 0x34
  40771. {
  40772. if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
  40773. 80115e4: 6bbb ldr r3, [r7, #56] @ 0x38
  40774. 80115e6: 6b9a ldr r2, [r3, #56] @ 0x38
  40775. 80115e8: 6bbb ldr r3, [r7, #56] @ 0x38
  40776. 80115ea: 6bdb ldr r3, [r3, #60] @ 0x3c
  40777. 80115ec: 429a cmp r2, r3
  40778. 80115ee: d302 bcc.n 80115f6 <xQueueGenericSendFromISR+0xc2>
  40779. 80115f0: 683b ldr r3, [r7, #0]
  40780. 80115f2: 2b02 cmp r3, #2
  40781. 80115f4: d12f bne.n 8011656 <xQueueGenericSendFromISR+0x122>
  40782. {
  40783. const int8_t cTxLock = pxQueue->cTxLock;
  40784. 80115f6: 6bbb ldr r3, [r7, #56] @ 0x38
  40785. 80115f8: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  40786. 80115fc: f887 3033 strb.w r3, [r7, #51] @ 0x33
  40787. const UBaseType_t uxPreviousMessagesWaiting = pxQueue->uxMessagesWaiting;
  40788. 8011600: 6bbb ldr r3, [r7, #56] @ 0x38
  40789. 8011602: 6b9b ldr r3, [r3, #56] @ 0x38
  40790. 8011604: 62fb str r3, [r7, #44] @ 0x2c
  40791. /* Semaphores use xQueueGiveFromISR(), so pxQueue will not be a
  40792. semaphore or mutex. That means prvCopyDataToQueue() cannot result
  40793. in a task disinheriting a priority and prvCopyDataToQueue() can be
  40794. called here even though the disinherit function does not check if
  40795. the scheduler is suspended before accessing the ready lists. */
  40796. ( void ) prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
  40797. 8011606: 683a ldr r2, [r7, #0]
  40798. 8011608: 68b9 ldr r1, [r7, #8]
  40799. 801160a: 6bb8 ldr r0, [r7, #56] @ 0x38
  40800. 801160c: f000 fbae bl 8011d6c <prvCopyDataToQueue>
  40801. /* The event list is not altered if the queue is locked. This will
  40802. be done when the queue is unlocked later. */
  40803. if( cTxLock == queueUNLOCKED )
  40804. 8011610: f997 3033 ldrsb.w r3, [r7, #51] @ 0x33
  40805. 8011614: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  40806. 8011618: d112 bne.n 8011640 <xQueueGenericSendFromISR+0x10c>
  40807. }
  40808. }
  40809. }
  40810. #else /* configUSE_QUEUE_SETS */
  40811. {
  40812. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  40813. 801161a: 6bbb ldr r3, [r7, #56] @ 0x38
  40814. 801161c: 6a5b ldr r3, [r3, #36] @ 0x24
  40815. 801161e: 2b00 cmp r3, #0
  40816. 8011620: d016 beq.n 8011650 <xQueueGenericSendFromISR+0x11c>
  40817. {
  40818. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  40819. 8011622: 6bbb ldr r3, [r7, #56] @ 0x38
  40820. 8011624: 3324 adds r3, #36 @ 0x24
  40821. 8011626: 4618 mov r0, r3
  40822. 8011628: f001 fd82 bl 8013130 <xTaskRemoveFromEventList>
  40823. 801162c: 4603 mov r3, r0
  40824. 801162e: 2b00 cmp r3, #0
  40825. 8011630: d00e beq.n 8011650 <xQueueGenericSendFromISR+0x11c>
  40826. {
  40827. /* The task waiting has a higher priority so record that a
  40828. context switch is required. */
  40829. if( pxHigherPriorityTaskWoken != NULL )
  40830. 8011632: 687b ldr r3, [r7, #4]
  40831. 8011634: 2b00 cmp r3, #0
  40832. 8011636: d00b beq.n 8011650 <xQueueGenericSendFromISR+0x11c>
  40833. {
  40834. *pxHigherPriorityTaskWoken = pdTRUE;
  40835. 8011638: 687b ldr r3, [r7, #4]
  40836. 801163a: 2201 movs r2, #1
  40837. 801163c: 601a str r2, [r3, #0]
  40838. 801163e: e007 b.n 8011650 <xQueueGenericSendFromISR+0x11c>
  40839. }
  40840. else
  40841. {
  40842. /* Increment the lock count so the task that unlocks the queue
  40843. knows that data was posted while it was locked. */
  40844. pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 );
  40845. 8011640: f897 3033 ldrb.w r3, [r7, #51] @ 0x33
  40846. 8011644: 3301 adds r3, #1
  40847. 8011646: b2db uxtb r3, r3
  40848. 8011648: b25a sxtb r2, r3
  40849. 801164a: 6bbb ldr r3, [r7, #56] @ 0x38
  40850. 801164c: f883 2045 strb.w r2, [r3, #69] @ 0x45
  40851. }
  40852. xReturn = pdPASS;
  40853. 8011650: 2301 movs r3, #1
  40854. 8011652: 63fb str r3, [r7, #60] @ 0x3c
  40855. {
  40856. 8011654: e001 b.n 801165a <xQueueGenericSendFromISR+0x126>
  40857. }
  40858. else
  40859. {
  40860. traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue );
  40861. xReturn = errQUEUE_FULL;
  40862. 8011656: 2300 movs r3, #0
  40863. 8011658: 63fb str r3, [r7, #60] @ 0x3c
  40864. 801165a: 6b7b ldr r3, [r7, #52] @ 0x34
  40865. 801165c: 617b str r3, [r7, #20]
  40866. }
  40867. /*-----------------------------------------------------------*/
  40868. portFORCE_INLINE static void vPortSetBASEPRI( uint32_t ulNewMaskValue )
  40869. {
  40870. __asm volatile
  40871. 801165e: 697b ldr r3, [r7, #20]
  40872. 8011660: f383 8811 msr BASEPRI, r3
  40873. (
  40874. " msr basepri, %0 " :: "r" ( ulNewMaskValue ) : "memory"
  40875. );
  40876. }
  40877. 8011664: bf00 nop
  40878. }
  40879. }
  40880. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  40881. return xReturn;
  40882. 8011666: 6bfb ldr r3, [r7, #60] @ 0x3c
  40883. }
  40884. 8011668: 4618 mov r0, r3
  40885. 801166a: 3740 adds r7, #64 @ 0x40
  40886. 801166c: 46bd mov sp, r7
  40887. 801166e: bd80 pop {r7, pc}
  40888. 08011670 <xQueueGiveFromISR>:
  40889. /*-----------------------------------------------------------*/
  40890. BaseType_t xQueueGiveFromISR( QueueHandle_t xQueue, BaseType_t * const pxHigherPriorityTaskWoken )
  40891. {
  40892. 8011670: b580 push {r7, lr}
  40893. 8011672: b08e sub sp, #56 @ 0x38
  40894. 8011674: af00 add r7, sp, #0
  40895. 8011676: 6078 str r0, [r7, #4]
  40896. 8011678: 6039 str r1, [r7, #0]
  40897. BaseType_t xReturn;
  40898. UBaseType_t uxSavedInterruptStatus;
  40899. Queue_t * const pxQueue = xQueue;
  40900. 801167a: 687b ldr r3, [r7, #4]
  40901. 801167c: 633b str r3, [r7, #48] @ 0x30
  40902. item size is 0. Don't directly wake a task that was blocked on a queue
  40903. read, instead return a flag to say whether a context switch is required or
  40904. not (i.e. has a task with a higher priority than us been woken by this
  40905. post). */
  40906. configASSERT( pxQueue );
  40907. 801167e: 6b3b ldr r3, [r7, #48] @ 0x30
  40908. 8011680: 2b00 cmp r3, #0
  40909. 8011682: d10b bne.n 801169c <xQueueGiveFromISR+0x2c>
  40910. __asm volatile
  40911. 8011684: f04f 0350 mov.w r3, #80 @ 0x50
  40912. 8011688: f383 8811 msr BASEPRI, r3
  40913. 801168c: f3bf 8f6f isb sy
  40914. 8011690: f3bf 8f4f dsb sy
  40915. 8011694: 623b str r3, [r7, #32]
  40916. }
  40917. 8011696: bf00 nop
  40918. 8011698: bf00 nop
  40919. 801169a: e7fd b.n 8011698 <xQueueGiveFromISR+0x28>
  40920. /* xQueueGenericSendFromISR() should be used instead of xQueueGiveFromISR()
  40921. if the item size is not 0. */
  40922. configASSERT( pxQueue->uxItemSize == 0 );
  40923. 801169c: 6b3b ldr r3, [r7, #48] @ 0x30
  40924. 801169e: 6c1b ldr r3, [r3, #64] @ 0x40
  40925. 80116a0: 2b00 cmp r3, #0
  40926. 80116a2: d00b beq.n 80116bc <xQueueGiveFromISR+0x4c>
  40927. __asm volatile
  40928. 80116a4: f04f 0350 mov.w r3, #80 @ 0x50
  40929. 80116a8: f383 8811 msr BASEPRI, r3
  40930. 80116ac: f3bf 8f6f isb sy
  40931. 80116b0: f3bf 8f4f dsb sy
  40932. 80116b4: 61fb str r3, [r7, #28]
  40933. }
  40934. 80116b6: bf00 nop
  40935. 80116b8: bf00 nop
  40936. 80116ba: e7fd b.n 80116b8 <xQueueGiveFromISR+0x48>
  40937. /* Normally a mutex would not be given from an interrupt, especially if
  40938. there is a mutex holder, as priority inheritance makes no sense for an
  40939. interrupts, only tasks. */
  40940. configASSERT( !( ( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX ) && ( pxQueue->u.xSemaphore.xMutexHolder != NULL ) ) );
  40941. 80116bc: 6b3b ldr r3, [r7, #48] @ 0x30
  40942. 80116be: 681b ldr r3, [r3, #0]
  40943. 80116c0: 2b00 cmp r3, #0
  40944. 80116c2: d103 bne.n 80116cc <xQueueGiveFromISR+0x5c>
  40945. 80116c4: 6b3b ldr r3, [r7, #48] @ 0x30
  40946. 80116c6: 689b ldr r3, [r3, #8]
  40947. 80116c8: 2b00 cmp r3, #0
  40948. 80116ca: d101 bne.n 80116d0 <xQueueGiveFromISR+0x60>
  40949. 80116cc: 2301 movs r3, #1
  40950. 80116ce: e000 b.n 80116d2 <xQueueGiveFromISR+0x62>
  40951. 80116d0: 2300 movs r3, #0
  40952. 80116d2: 2b00 cmp r3, #0
  40953. 80116d4: d10b bne.n 80116ee <xQueueGiveFromISR+0x7e>
  40954. __asm volatile
  40955. 80116d6: f04f 0350 mov.w r3, #80 @ 0x50
  40956. 80116da: f383 8811 msr BASEPRI, r3
  40957. 80116de: f3bf 8f6f isb sy
  40958. 80116e2: f3bf 8f4f dsb sy
  40959. 80116e6: 61bb str r3, [r7, #24]
  40960. }
  40961. 80116e8: bf00 nop
  40962. 80116ea: bf00 nop
  40963. 80116ec: e7fd b.n 80116ea <xQueueGiveFromISR+0x7a>
  40964. that have been assigned a priority at or (logically) below the maximum
  40965. system call interrupt priority. FreeRTOS maintains a separate interrupt
  40966. safe API to ensure interrupt entry is as fast and as simple as possible.
  40967. More information (albeit Cortex-M specific) is provided on the following
  40968. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  40969. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  40970. 80116ee: f003 f89b bl 8014828 <vPortValidateInterruptPriority>
  40971. __asm volatile
  40972. 80116f2: f3ef 8211 mrs r2, BASEPRI
  40973. 80116f6: f04f 0350 mov.w r3, #80 @ 0x50
  40974. 80116fa: f383 8811 msr BASEPRI, r3
  40975. 80116fe: f3bf 8f6f isb sy
  40976. 8011702: f3bf 8f4f dsb sy
  40977. 8011706: 617a str r2, [r7, #20]
  40978. 8011708: 613b str r3, [r7, #16]
  40979. return ulOriginalBASEPRI;
  40980. 801170a: 697b ldr r3, [r7, #20]
  40981. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  40982. 801170c: 62fb str r3, [r7, #44] @ 0x2c
  40983. {
  40984. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  40985. 801170e: 6b3b ldr r3, [r7, #48] @ 0x30
  40986. 8011710: 6b9b ldr r3, [r3, #56] @ 0x38
  40987. 8011712: 62bb str r3, [r7, #40] @ 0x28
  40988. /* When the queue is used to implement a semaphore no data is ever
  40989. moved through the queue but it is still valid to see if the queue 'has
  40990. space'. */
  40991. if( uxMessagesWaiting < pxQueue->uxLength )
  40992. 8011714: 6b3b ldr r3, [r7, #48] @ 0x30
  40993. 8011716: 6bdb ldr r3, [r3, #60] @ 0x3c
  40994. 8011718: 6aba ldr r2, [r7, #40] @ 0x28
  40995. 801171a: 429a cmp r2, r3
  40996. 801171c: d22b bcs.n 8011776 <xQueueGiveFromISR+0x106>
  40997. {
  40998. const int8_t cTxLock = pxQueue->cTxLock;
  40999. 801171e: 6b3b ldr r3, [r7, #48] @ 0x30
  41000. 8011720: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  41001. 8011724: f887 3027 strb.w r3, [r7, #39] @ 0x27
  41002. holder - and if there is a mutex holder then the mutex cannot be
  41003. given from an ISR. As this is the ISR version of the function it
  41004. can be assumed there is no mutex holder and no need to determine if
  41005. priority disinheritance is needed. Simply increase the count of
  41006. messages (semaphores) available. */
  41007. pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1;
  41008. 8011728: 6abb ldr r3, [r7, #40] @ 0x28
  41009. 801172a: 1c5a adds r2, r3, #1
  41010. 801172c: 6b3b ldr r3, [r7, #48] @ 0x30
  41011. 801172e: 639a str r2, [r3, #56] @ 0x38
  41012. /* The event list is not altered if the queue is locked. This will
  41013. be done when the queue is unlocked later. */
  41014. if( cTxLock == queueUNLOCKED )
  41015. 8011730: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  41016. 8011734: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  41017. 8011738: d112 bne.n 8011760 <xQueueGiveFromISR+0xf0>
  41018. }
  41019. }
  41020. }
  41021. #else /* configUSE_QUEUE_SETS */
  41022. {
  41023. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  41024. 801173a: 6b3b ldr r3, [r7, #48] @ 0x30
  41025. 801173c: 6a5b ldr r3, [r3, #36] @ 0x24
  41026. 801173e: 2b00 cmp r3, #0
  41027. 8011740: d016 beq.n 8011770 <xQueueGiveFromISR+0x100>
  41028. {
  41029. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  41030. 8011742: 6b3b ldr r3, [r7, #48] @ 0x30
  41031. 8011744: 3324 adds r3, #36 @ 0x24
  41032. 8011746: 4618 mov r0, r3
  41033. 8011748: f001 fcf2 bl 8013130 <xTaskRemoveFromEventList>
  41034. 801174c: 4603 mov r3, r0
  41035. 801174e: 2b00 cmp r3, #0
  41036. 8011750: d00e beq.n 8011770 <xQueueGiveFromISR+0x100>
  41037. {
  41038. /* The task waiting has a higher priority so record that a
  41039. context switch is required. */
  41040. if( pxHigherPriorityTaskWoken != NULL )
  41041. 8011752: 683b ldr r3, [r7, #0]
  41042. 8011754: 2b00 cmp r3, #0
  41043. 8011756: d00b beq.n 8011770 <xQueueGiveFromISR+0x100>
  41044. {
  41045. *pxHigherPriorityTaskWoken = pdTRUE;
  41046. 8011758: 683b ldr r3, [r7, #0]
  41047. 801175a: 2201 movs r2, #1
  41048. 801175c: 601a str r2, [r3, #0]
  41049. 801175e: e007 b.n 8011770 <xQueueGiveFromISR+0x100>
  41050. }
  41051. else
  41052. {
  41053. /* Increment the lock count so the task that unlocks the queue
  41054. knows that data was posted while it was locked. */
  41055. pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 );
  41056. 8011760: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  41057. 8011764: 3301 adds r3, #1
  41058. 8011766: b2db uxtb r3, r3
  41059. 8011768: b25a sxtb r2, r3
  41060. 801176a: 6b3b ldr r3, [r7, #48] @ 0x30
  41061. 801176c: f883 2045 strb.w r2, [r3, #69] @ 0x45
  41062. }
  41063. xReturn = pdPASS;
  41064. 8011770: 2301 movs r3, #1
  41065. 8011772: 637b str r3, [r7, #52] @ 0x34
  41066. 8011774: e001 b.n 801177a <xQueueGiveFromISR+0x10a>
  41067. }
  41068. else
  41069. {
  41070. traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue );
  41071. xReturn = errQUEUE_FULL;
  41072. 8011776: 2300 movs r3, #0
  41073. 8011778: 637b str r3, [r7, #52] @ 0x34
  41074. 801177a: 6afb ldr r3, [r7, #44] @ 0x2c
  41075. 801177c: 60fb str r3, [r7, #12]
  41076. __asm volatile
  41077. 801177e: 68fb ldr r3, [r7, #12]
  41078. 8011780: f383 8811 msr BASEPRI, r3
  41079. }
  41080. 8011784: bf00 nop
  41081. }
  41082. }
  41083. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  41084. return xReturn;
  41085. 8011786: 6b7b ldr r3, [r7, #52] @ 0x34
  41086. }
  41087. 8011788: 4618 mov r0, r3
  41088. 801178a: 3738 adds r7, #56 @ 0x38
  41089. 801178c: 46bd mov sp, r7
  41090. 801178e: bd80 pop {r7, pc}
  41091. 08011790 <xQueueReceive>:
  41092. /*-----------------------------------------------------------*/
  41093. BaseType_t xQueueReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait )
  41094. {
  41095. 8011790: b580 push {r7, lr}
  41096. 8011792: b08c sub sp, #48 @ 0x30
  41097. 8011794: af00 add r7, sp, #0
  41098. 8011796: 60f8 str r0, [r7, #12]
  41099. 8011798: 60b9 str r1, [r7, #8]
  41100. 801179a: 607a str r2, [r7, #4]
  41101. BaseType_t xEntryTimeSet = pdFALSE;
  41102. 801179c: 2300 movs r3, #0
  41103. 801179e: 62fb str r3, [r7, #44] @ 0x2c
  41104. TimeOut_t xTimeOut;
  41105. Queue_t * const pxQueue = xQueue;
  41106. 80117a0: 68fb ldr r3, [r7, #12]
  41107. 80117a2: 62bb str r3, [r7, #40] @ 0x28
  41108. /* Check the pointer is not NULL. */
  41109. configASSERT( ( pxQueue ) );
  41110. 80117a4: 6abb ldr r3, [r7, #40] @ 0x28
  41111. 80117a6: 2b00 cmp r3, #0
  41112. 80117a8: d10b bne.n 80117c2 <xQueueReceive+0x32>
  41113. __asm volatile
  41114. 80117aa: f04f 0350 mov.w r3, #80 @ 0x50
  41115. 80117ae: f383 8811 msr BASEPRI, r3
  41116. 80117b2: f3bf 8f6f isb sy
  41117. 80117b6: f3bf 8f4f dsb sy
  41118. 80117ba: 623b str r3, [r7, #32]
  41119. }
  41120. 80117bc: bf00 nop
  41121. 80117be: bf00 nop
  41122. 80117c0: e7fd b.n 80117be <xQueueReceive+0x2e>
  41123. /* The buffer into which data is received can only be NULL if the data size
  41124. is zero (so no data is copied into the buffer. */
  41125. configASSERT( !( ( ( pvBuffer ) == NULL ) && ( ( pxQueue )->uxItemSize != ( UBaseType_t ) 0U ) ) );
  41126. 80117c2: 68bb ldr r3, [r7, #8]
  41127. 80117c4: 2b00 cmp r3, #0
  41128. 80117c6: d103 bne.n 80117d0 <xQueueReceive+0x40>
  41129. 80117c8: 6abb ldr r3, [r7, #40] @ 0x28
  41130. 80117ca: 6c1b ldr r3, [r3, #64] @ 0x40
  41131. 80117cc: 2b00 cmp r3, #0
  41132. 80117ce: d101 bne.n 80117d4 <xQueueReceive+0x44>
  41133. 80117d0: 2301 movs r3, #1
  41134. 80117d2: e000 b.n 80117d6 <xQueueReceive+0x46>
  41135. 80117d4: 2300 movs r3, #0
  41136. 80117d6: 2b00 cmp r3, #0
  41137. 80117d8: d10b bne.n 80117f2 <xQueueReceive+0x62>
  41138. __asm volatile
  41139. 80117da: f04f 0350 mov.w r3, #80 @ 0x50
  41140. 80117de: f383 8811 msr BASEPRI, r3
  41141. 80117e2: f3bf 8f6f isb sy
  41142. 80117e6: f3bf 8f4f dsb sy
  41143. 80117ea: 61fb str r3, [r7, #28]
  41144. }
  41145. 80117ec: bf00 nop
  41146. 80117ee: bf00 nop
  41147. 80117f0: e7fd b.n 80117ee <xQueueReceive+0x5e>
  41148. /* Cannot block if the scheduler is suspended. */
  41149. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  41150. {
  41151. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  41152. 80117f2: f001 fe9b bl 801352c <xTaskGetSchedulerState>
  41153. 80117f6: 4603 mov r3, r0
  41154. 80117f8: 2b00 cmp r3, #0
  41155. 80117fa: d102 bne.n 8011802 <xQueueReceive+0x72>
  41156. 80117fc: 687b ldr r3, [r7, #4]
  41157. 80117fe: 2b00 cmp r3, #0
  41158. 8011800: d101 bne.n 8011806 <xQueueReceive+0x76>
  41159. 8011802: 2301 movs r3, #1
  41160. 8011804: e000 b.n 8011808 <xQueueReceive+0x78>
  41161. 8011806: 2300 movs r3, #0
  41162. 8011808: 2b00 cmp r3, #0
  41163. 801180a: d10b bne.n 8011824 <xQueueReceive+0x94>
  41164. __asm volatile
  41165. 801180c: f04f 0350 mov.w r3, #80 @ 0x50
  41166. 8011810: f383 8811 msr BASEPRI, r3
  41167. 8011814: f3bf 8f6f isb sy
  41168. 8011818: f3bf 8f4f dsb sy
  41169. 801181c: 61bb str r3, [r7, #24]
  41170. }
  41171. 801181e: bf00 nop
  41172. 8011820: bf00 nop
  41173. 8011822: e7fd b.n 8011820 <xQueueReceive+0x90>
  41174. /*lint -save -e904 This function relaxes the coding standard somewhat to
  41175. allow return statements within the function itself. This is done in the
  41176. interest of execution time efficiency. */
  41177. for( ;; )
  41178. {
  41179. taskENTER_CRITICAL();
  41180. 8011824: f002 ff20 bl 8014668 <vPortEnterCritical>
  41181. {
  41182. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  41183. 8011828: 6abb ldr r3, [r7, #40] @ 0x28
  41184. 801182a: 6b9b ldr r3, [r3, #56] @ 0x38
  41185. 801182c: 627b str r3, [r7, #36] @ 0x24
  41186. /* Is there data in the queue now? To be running the calling task
  41187. must be the highest priority task wanting to access the queue. */
  41188. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  41189. 801182e: 6a7b ldr r3, [r7, #36] @ 0x24
  41190. 8011830: 2b00 cmp r3, #0
  41191. 8011832: d01f beq.n 8011874 <xQueueReceive+0xe4>
  41192. {
  41193. /* Data available, remove one item. */
  41194. prvCopyDataFromQueue( pxQueue, pvBuffer );
  41195. 8011834: 68b9 ldr r1, [r7, #8]
  41196. 8011836: 6ab8 ldr r0, [r7, #40] @ 0x28
  41197. 8011838: f000 fb02 bl 8011e40 <prvCopyDataFromQueue>
  41198. traceQUEUE_RECEIVE( pxQueue );
  41199. pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
  41200. 801183c: 6a7b ldr r3, [r7, #36] @ 0x24
  41201. 801183e: 1e5a subs r2, r3, #1
  41202. 8011840: 6abb ldr r3, [r7, #40] @ 0x28
  41203. 8011842: 639a str r2, [r3, #56] @ 0x38
  41204. /* There is now space in the queue, were any tasks waiting to
  41205. post to the queue? If so, unblock the highest priority waiting
  41206. task. */
  41207. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  41208. 8011844: 6abb ldr r3, [r7, #40] @ 0x28
  41209. 8011846: 691b ldr r3, [r3, #16]
  41210. 8011848: 2b00 cmp r3, #0
  41211. 801184a: d00f beq.n 801186c <xQueueReceive+0xdc>
  41212. {
  41213. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  41214. 801184c: 6abb ldr r3, [r7, #40] @ 0x28
  41215. 801184e: 3310 adds r3, #16
  41216. 8011850: 4618 mov r0, r3
  41217. 8011852: f001 fc6d bl 8013130 <xTaskRemoveFromEventList>
  41218. 8011856: 4603 mov r3, r0
  41219. 8011858: 2b00 cmp r3, #0
  41220. 801185a: d007 beq.n 801186c <xQueueReceive+0xdc>
  41221. {
  41222. queueYIELD_IF_USING_PREEMPTION();
  41223. 801185c: 4b3c ldr r3, [pc, #240] @ (8011950 <xQueueReceive+0x1c0>)
  41224. 801185e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  41225. 8011862: 601a str r2, [r3, #0]
  41226. 8011864: f3bf 8f4f dsb sy
  41227. 8011868: f3bf 8f6f isb sy
  41228. else
  41229. {
  41230. mtCOVERAGE_TEST_MARKER();
  41231. }
  41232. taskEXIT_CRITICAL();
  41233. 801186c: f002 ff2e bl 80146cc <vPortExitCritical>
  41234. return pdPASS;
  41235. 8011870: 2301 movs r3, #1
  41236. 8011872: e069 b.n 8011948 <xQueueReceive+0x1b8>
  41237. }
  41238. else
  41239. {
  41240. if( xTicksToWait == ( TickType_t ) 0 )
  41241. 8011874: 687b ldr r3, [r7, #4]
  41242. 8011876: 2b00 cmp r3, #0
  41243. 8011878: d103 bne.n 8011882 <xQueueReceive+0xf2>
  41244. {
  41245. /* The queue was empty and no block time is specified (or
  41246. the block time has expired) so leave now. */
  41247. taskEXIT_CRITICAL();
  41248. 801187a: f002 ff27 bl 80146cc <vPortExitCritical>
  41249. traceQUEUE_RECEIVE_FAILED( pxQueue );
  41250. return errQUEUE_EMPTY;
  41251. 801187e: 2300 movs r3, #0
  41252. 8011880: e062 b.n 8011948 <xQueueReceive+0x1b8>
  41253. }
  41254. else if( xEntryTimeSet == pdFALSE )
  41255. 8011882: 6afb ldr r3, [r7, #44] @ 0x2c
  41256. 8011884: 2b00 cmp r3, #0
  41257. 8011886: d106 bne.n 8011896 <xQueueReceive+0x106>
  41258. {
  41259. /* The queue was empty and a block time was specified so
  41260. configure the timeout structure. */
  41261. vTaskInternalSetTimeOutState( &xTimeOut );
  41262. 8011888: f107 0310 add.w r3, r7, #16
  41263. 801188c: 4618 mov r0, r3
  41264. 801188e: f001 fcdb bl 8013248 <vTaskInternalSetTimeOutState>
  41265. xEntryTimeSet = pdTRUE;
  41266. 8011892: 2301 movs r3, #1
  41267. 8011894: 62fb str r3, [r7, #44] @ 0x2c
  41268. /* Entry time was already set. */
  41269. mtCOVERAGE_TEST_MARKER();
  41270. }
  41271. }
  41272. }
  41273. taskEXIT_CRITICAL();
  41274. 8011896: f002 ff19 bl 80146cc <vPortExitCritical>
  41275. /* Interrupts and other tasks can send to and receive from the queue
  41276. now the critical section has been exited. */
  41277. vTaskSuspendAll();
  41278. 801189a: f001 f9fb bl 8012c94 <vTaskSuspendAll>
  41279. prvLockQueue( pxQueue );
  41280. 801189e: f002 fee3 bl 8014668 <vPortEnterCritical>
  41281. 80118a2: 6abb ldr r3, [r7, #40] @ 0x28
  41282. 80118a4: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  41283. 80118a8: b25b sxtb r3, r3
  41284. 80118aa: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  41285. 80118ae: d103 bne.n 80118b8 <xQueueReceive+0x128>
  41286. 80118b0: 6abb ldr r3, [r7, #40] @ 0x28
  41287. 80118b2: 2200 movs r2, #0
  41288. 80118b4: f883 2044 strb.w r2, [r3, #68] @ 0x44
  41289. 80118b8: 6abb ldr r3, [r7, #40] @ 0x28
  41290. 80118ba: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  41291. 80118be: b25b sxtb r3, r3
  41292. 80118c0: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  41293. 80118c4: d103 bne.n 80118ce <xQueueReceive+0x13e>
  41294. 80118c6: 6abb ldr r3, [r7, #40] @ 0x28
  41295. 80118c8: 2200 movs r2, #0
  41296. 80118ca: f883 2045 strb.w r2, [r3, #69] @ 0x45
  41297. 80118ce: f002 fefd bl 80146cc <vPortExitCritical>
  41298. /* Update the timeout state to see if it has expired yet. */
  41299. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  41300. 80118d2: 1d3a adds r2, r7, #4
  41301. 80118d4: f107 0310 add.w r3, r7, #16
  41302. 80118d8: 4611 mov r1, r2
  41303. 80118da: 4618 mov r0, r3
  41304. 80118dc: f001 fcca bl 8013274 <xTaskCheckForTimeOut>
  41305. 80118e0: 4603 mov r3, r0
  41306. 80118e2: 2b00 cmp r3, #0
  41307. 80118e4: d123 bne.n 801192e <xQueueReceive+0x19e>
  41308. {
  41309. /* The timeout has not expired. If the queue is still empty place
  41310. the task on the list of tasks waiting to receive from the queue. */
  41311. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  41312. 80118e6: 6ab8 ldr r0, [r7, #40] @ 0x28
  41313. 80118e8: f000 fb22 bl 8011f30 <prvIsQueueEmpty>
  41314. 80118ec: 4603 mov r3, r0
  41315. 80118ee: 2b00 cmp r3, #0
  41316. 80118f0: d017 beq.n 8011922 <xQueueReceive+0x192>
  41317. {
  41318. traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
  41319. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
  41320. 80118f2: 6abb ldr r3, [r7, #40] @ 0x28
  41321. 80118f4: 3324 adds r3, #36 @ 0x24
  41322. 80118f6: 687a ldr r2, [r7, #4]
  41323. 80118f8: 4611 mov r1, r2
  41324. 80118fa: 4618 mov r0, r3
  41325. 80118fc: f001 fbc6 bl 801308c <vTaskPlaceOnEventList>
  41326. prvUnlockQueue( pxQueue );
  41327. 8011900: 6ab8 ldr r0, [r7, #40] @ 0x28
  41328. 8011902: f000 fac3 bl 8011e8c <prvUnlockQueue>
  41329. if( xTaskResumeAll() == pdFALSE )
  41330. 8011906: f001 f9d3 bl 8012cb0 <xTaskResumeAll>
  41331. 801190a: 4603 mov r3, r0
  41332. 801190c: 2b00 cmp r3, #0
  41333. 801190e: d189 bne.n 8011824 <xQueueReceive+0x94>
  41334. {
  41335. portYIELD_WITHIN_API();
  41336. 8011910: 4b0f ldr r3, [pc, #60] @ (8011950 <xQueueReceive+0x1c0>)
  41337. 8011912: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  41338. 8011916: 601a str r2, [r3, #0]
  41339. 8011918: f3bf 8f4f dsb sy
  41340. 801191c: f3bf 8f6f isb sy
  41341. 8011920: e780 b.n 8011824 <xQueueReceive+0x94>
  41342. }
  41343. else
  41344. {
  41345. /* The queue contains data again. Loop back to try and read the
  41346. data. */
  41347. prvUnlockQueue( pxQueue );
  41348. 8011922: 6ab8 ldr r0, [r7, #40] @ 0x28
  41349. 8011924: f000 fab2 bl 8011e8c <prvUnlockQueue>
  41350. ( void ) xTaskResumeAll();
  41351. 8011928: f001 f9c2 bl 8012cb0 <xTaskResumeAll>
  41352. 801192c: e77a b.n 8011824 <xQueueReceive+0x94>
  41353. }
  41354. else
  41355. {
  41356. /* Timed out. If there is no data in the queue exit, otherwise loop
  41357. back and attempt to read the data. */
  41358. prvUnlockQueue( pxQueue );
  41359. 801192e: 6ab8 ldr r0, [r7, #40] @ 0x28
  41360. 8011930: f000 faac bl 8011e8c <prvUnlockQueue>
  41361. ( void ) xTaskResumeAll();
  41362. 8011934: f001 f9bc bl 8012cb0 <xTaskResumeAll>
  41363. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  41364. 8011938: 6ab8 ldr r0, [r7, #40] @ 0x28
  41365. 801193a: f000 faf9 bl 8011f30 <prvIsQueueEmpty>
  41366. 801193e: 4603 mov r3, r0
  41367. 8011940: 2b00 cmp r3, #0
  41368. 8011942: f43f af6f beq.w 8011824 <xQueueReceive+0x94>
  41369. {
  41370. traceQUEUE_RECEIVE_FAILED( pxQueue );
  41371. return errQUEUE_EMPTY;
  41372. 8011946: 2300 movs r3, #0
  41373. {
  41374. mtCOVERAGE_TEST_MARKER();
  41375. }
  41376. }
  41377. } /*lint -restore */
  41378. }
  41379. 8011948: 4618 mov r0, r3
  41380. 801194a: 3730 adds r7, #48 @ 0x30
  41381. 801194c: 46bd mov sp, r7
  41382. 801194e: bd80 pop {r7, pc}
  41383. 8011950: e000ed04 .word 0xe000ed04
  41384. 08011954 <xQueueSemaphoreTake>:
  41385. /*-----------------------------------------------------------*/
  41386. BaseType_t xQueueSemaphoreTake( QueueHandle_t xQueue, TickType_t xTicksToWait )
  41387. {
  41388. 8011954: b580 push {r7, lr}
  41389. 8011956: b08e sub sp, #56 @ 0x38
  41390. 8011958: af00 add r7, sp, #0
  41391. 801195a: 6078 str r0, [r7, #4]
  41392. 801195c: 6039 str r1, [r7, #0]
  41393. BaseType_t xEntryTimeSet = pdFALSE;
  41394. 801195e: 2300 movs r3, #0
  41395. 8011960: 637b str r3, [r7, #52] @ 0x34
  41396. TimeOut_t xTimeOut;
  41397. Queue_t * const pxQueue = xQueue;
  41398. 8011962: 687b ldr r3, [r7, #4]
  41399. 8011964: 62fb str r3, [r7, #44] @ 0x2c
  41400. #if( configUSE_MUTEXES == 1 )
  41401. BaseType_t xInheritanceOccurred = pdFALSE;
  41402. 8011966: 2300 movs r3, #0
  41403. 8011968: 633b str r3, [r7, #48] @ 0x30
  41404. #endif
  41405. /* Check the queue pointer is not NULL. */
  41406. configASSERT( ( pxQueue ) );
  41407. 801196a: 6afb ldr r3, [r7, #44] @ 0x2c
  41408. 801196c: 2b00 cmp r3, #0
  41409. 801196e: d10b bne.n 8011988 <xQueueSemaphoreTake+0x34>
  41410. __asm volatile
  41411. 8011970: f04f 0350 mov.w r3, #80 @ 0x50
  41412. 8011974: f383 8811 msr BASEPRI, r3
  41413. 8011978: f3bf 8f6f isb sy
  41414. 801197c: f3bf 8f4f dsb sy
  41415. 8011980: 623b str r3, [r7, #32]
  41416. }
  41417. 8011982: bf00 nop
  41418. 8011984: bf00 nop
  41419. 8011986: e7fd b.n 8011984 <xQueueSemaphoreTake+0x30>
  41420. /* Check this really is a semaphore, in which case the item size will be
  41421. 0. */
  41422. configASSERT( pxQueue->uxItemSize == 0 );
  41423. 8011988: 6afb ldr r3, [r7, #44] @ 0x2c
  41424. 801198a: 6c1b ldr r3, [r3, #64] @ 0x40
  41425. 801198c: 2b00 cmp r3, #0
  41426. 801198e: d00b beq.n 80119a8 <xQueueSemaphoreTake+0x54>
  41427. __asm volatile
  41428. 8011990: f04f 0350 mov.w r3, #80 @ 0x50
  41429. 8011994: f383 8811 msr BASEPRI, r3
  41430. 8011998: f3bf 8f6f isb sy
  41431. 801199c: f3bf 8f4f dsb sy
  41432. 80119a0: 61fb str r3, [r7, #28]
  41433. }
  41434. 80119a2: bf00 nop
  41435. 80119a4: bf00 nop
  41436. 80119a6: e7fd b.n 80119a4 <xQueueSemaphoreTake+0x50>
  41437. /* Cannot block if the scheduler is suspended. */
  41438. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  41439. {
  41440. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  41441. 80119a8: f001 fdc0 bl 801352c <xTaskGetSchedulerState>
  41442. 80119ac: 4603 mov r3, r0
  41443. 80119ae: 2b00 cmp r3, #0
  41444. 80119b0: d102 bne.n 80119b8 <xQueueSemaphoreTake+0x64>
  41445. 80119b2: 683b ldr r3, [r7, #0]
  41446. 80119b4: 2b00 cmp r3, #0
  41447. 80119b6: d101 bne.n 80119bc <xQueueSemaphoreTake+0x68>
  41448. 80119b8: 2301 movs r3, #1
  41449. 80119ba: e000 b.n 80119be <xQueueSemaphoreTake+0x6a>
  41450. 80119bc: 2300 movs r3, #0
  41451. 80119be: 2b00 cmp r3, #0
  41452. 80119c0: d10b bne.n 80119da <xQueueSemaphoreTake+0x86>
  41453. __asm volatile
  41454. 80119c2: f04f 0350 mov.w r3, #80 @ 0x50
  41455. 80119c6: f383 8811 msr BASEPRI, r3
  41456. 80119ca: f3bf 8f6f isb sy
  41457. 80119ce: f3bf 8f4f dsb sy
  41458. 80119d2: 61bb str r3, [r7, #24]
  41459. }
  41460. 80119d4: bf00 nop
  41461. 80119d6: bf00 nop
  41462. 80119d8: e7fd b.n 80119d6 <xQueueSemaphoreTake+0x82>
  41463. /*lint -save -e904 This function relaxes the coding standard somewhat to allow return
  41464. statements within the function itself. This is done in the interest
  41465. of execution time efficiency. */
  41466. for( ;; )
  41467. {
  41468. taskENTER_CRITICAL();
  41469. 80119da: f002 fe45 bl 8014668 <vPortEnterCritical>
  41470. {
  41471. /* Semaphores are queues with an item size of 0, and where the
  41472. number of messages in the queue is the semaphore's count value. */
  41473. const UBaseType_t uxSemaphoreCount = pxQueue->uxMessagesWaiting;
  41474. 80119de: 6afb ldr r3, [r7, #44] @ 0x2c
  41475. 80119e0: 6b9b ldr r3, [r3, #56] @ 0x38
  41476. 80119e2: 62bb str r3, [r7, #40] @ 0x28
  41477. /* Is there data in the queue now? To be running the calling task
  41478. must be the highest priority task wanting to access the queue. */
  41479. if( uxSemaphoreCount > ( UBaseType_t ) 0 )
  41480. 80119e4: 6abb ldr r3, [r7, #40] @ 0x28
  41481. 80119e6: 2b00 cmp r3, #0
  41482. 80119e8: d024 beq.n 8011a34 <xQueueSemaphoreTake+0xe0>
  41483. {
  41484. traceQUEUE_RECEIVE( pxQueue );
  41485. /* Semaphores are queues with a data size of zero and where the
  41486. messages waiting is the semaphore's count. Reduce the count. */
  41487. pxQueue->uxMessagesWaiting = uxSemaphoreCount - ( UBaseType_t ) 1;
  41488. 80119ea: 6abb ldr r3, [r7, #40] @ 0x28
  41489. 80119ec: 1e5a subs r2, r3, #1
  41490. 80119ee: 6afb ldr r3, [r7, #44] @ 0x2c
  41491. 80119f0: 639a str r2, [r3, #56] @ 0x38
  41492. #if ( configUSE_MUTEXES == 1 )
  41493. {
  41494. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  41495. 80119f2: 6afb ldr r3, [r7, #44] @ 0x2c
  41496. 80119f4: 681b ldr r3, [r3, #0]
  41497. 80119f6: 2b00 cmp r3, #0
  41498. 80119f8: d104 bne.n 8011a04 <xQueueSemaphoreTake+0xb0>
  41499. {
  41500. /* Record the information required to implement
  41501. priority inheritance should it become necessary. */
  41502. pxQueue->u.xSemaphore.xMutexHolder = pvTaskIncrementMutexHeldCount();
  41503. 80119fa: f001 ff11 bl 8013820 <pvTaskIncrementMutexHeldCount>
  41504. 80119fe: 4602 mov r2, r0
  41505. 8011a00: 6afb ldr r3, [r7, #44] @ 0x2c
  41506. 8011a02: 609a str r2, [r3, #8]
  41507. }
  41508. #endif /* configUSE_MUTEXES */
  41509. /* Check to see if other tasks are blocked waiting to give the
  41510. semaphore, and if so, unblock the highest priority such task. */
  41511. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  41512. 8011a04: 6afb ldr r3, [r7, #44] @ 0x2c
  41513. 8011a06: 691b ldr r3, [r3, #16]
  41514. 8011a08: 2b00 cmp r3, #0
  41515. 8011a0a: d00f beq.n 8011a2c <xQueueSemaphoreTake+0xd8>
  41516. {
  41517. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  41518. 8011a0c: 6afb ldr r3, [r7, #44] @ 0x2c
  41519. 8011a0e: 3310 adds r3, #16
  41520. 8011a10: 4618 mov r0, r3
  41521. 8011a12: f001 fb8d bl 8013130 <xTaskRemoveFromEventList>
  41522. 8011a16: 4603 mov r3, r0
  41523. 8011a18: 2b00 cmp r3, #0
  41524. 8011a1a: d007 beq.n 8011a2c <xQueueSemaphoreTake+0xd8>
  41525. {
  41526. queueYIELD_IF_USING_PREEMPTION();
  41527. 8011a1c: 4b54 ldr r3, [pc, #336] @ (8011b70 <xQueueSemaphoreTake+0x21c>)
  41528. 8011a1e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  41529. 8011a22: 601a str r2, [r3, #0]
  41530. 8011a24: f3bf 8f4f dsb sy
  41531. 8011a28: f3bf 8f6f isb sy
  41532. else
  41533. {
  41534. mtCOVERAGE_TEST_MARKER();
  41535. }
  41536. taskEXIT_CRITICAL();
  41537. 8011a2c: f002 fe4e bl 80146cc <vPortExitCritical>
  41538. return pdPASS;
  41539. 8011a30: 2301 movs r3, #1
  41540. 8011a32: e098 b.n 8011b66 <xQueueSemaphoreTake+0x212>
  41541. }
  41542. else
  41543. {
  41544. if( xTicksToWait == ( TickType_t ) 0 )
  41545. 8011a34: 683b ldr r3, [r7, #0]
  41546. 8011a36: 2b00 cmp r3, #0
  41547. 8011a38: d112 bne.n 8011a60 <xQueueSemaphoreTake+0x10c>
  41548. /* For inheritance to have occurred there must have been an
  41549. initial timeout, and an adjusted timeout cannot become 0, as
  41550. if it were 0 the function would have exited. */
  41551. #if( configUSE_MUTEXES == 1 )
  41552. {
  41553. configASSERT( xInheritanceOccurred == pdFALSE );
  41554. 8011a3a: 6b3b ldr r3, [r7, #48] @ 0x30
  41555. 8011a3c: 2b00 cmp r3, #0
  41556. 8011a3e: d00b beq.n 8011a58 <xQueueSemaphoreTake+0x104>
  41557. __asm volatile
  41558. 8011a40: f04f 0350 mov.w r3, #80 @ 0x50
  41559. 8011a44: f383 8811 msr BASEPRI, r3
  41560. 8011a48: f3bf 8f6f isb sy
  41561. 8011a4c: f3bf 8f4f dsb sy
  41562. 8011a50: 617b str r3, [r7, #20]
  41563. }
  41564. 8011a52: bf00 nop
  41565. 8011a54: bf00 nop
  41566. 8011a56: e7fd b.n 8011a54 <xQueueSemaphoreTake+0x100>
  41567. }
  41568. #endif /* configUSE_MUTEXES */
  41569. /* The semaphore count was 0 and no block time is specified
  41570. (or the block time has expired) so exit now. */
  41571. taskEXIT_CRITICAL();
  41572. 8011a58: f002 fe38 bl 80146cc <vPortExitCritical>
  41573. traceQUEUE_RECEIVE_FAILED( pxQueue );
  41574. return errQUEUE_EMPTY;
  41575. 8011a5c: 2300 movs r3, #0
  41576. 8011a5e: e082 b.n 8011b66 <xQueueSemaphoreTake+0x212>
  41577. }
  41578. else if( xEntryTimeSet == pdFALSE )
  41579. 8011a60: 6b7b ldr r3, [r7, #52] @ 0x34
  41580. 8011a62: 2b00 cmp r3, #0
  41581. 8011a64: d106 bne.n 8011a74 <xQueueSemaphoreTake+0x120>
  41582. {
  41583. /* The semaphore count was 0 and a block time was specified
  41584. so configure the timeout structure ready to block. */
  41585. vTaskInternalSetTimeOutState( &xTimeOut );
  41586. 8011a66: f107 030c add.w r3, r7, #12
  41587. 8011a6a: 4618 mov r0, r3
  41588. 8011a6c: f001 fbec bl 8013248 <vTaskInternalSetTimeOutState>
  41589. xEntryTimeSet = pdTRUE;
  41590. 8011a70: 2301 movs r3, #1
  41591. 8011a72: 637b str r3, [r7, #52] @ 0x34
  41592. /* Entry time was already set. */
  41593. mtCOVERAGE_TEST_MARKER();
  41594. }
  41595. }
  41596. }
  41597. taskEXIT_CRITICAL();
  41598. 8011a74: f002 fe2a bl 80146cc <vPortExitCritical>
  41599. /* Interrupts and other tasks can give to and take from the semaphore
  41600. now the critical section has been exited. */
  41601. vTaskSuspendAll();
  41602. 8011a78: f001 f90c bl 8012c94 <vTaskSuspendAll>
  41603. prvLockQueue( pxQueue );
  41604. 8011a7c: f002 fdf4 bl 8014668 <vPortEnterCritical>
  41605. 8011a80: 6afb ldr r3, [r7, #44] @ 0x2c
  41606. 8011a82: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  41607. 8011a86: b25b sxtb r3, r3
  41608. 8011a88: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  41609. 8011a8c: d103 bne.n 8011a96 <xQueueSemaphoreTake+0x142>
  41610. 8011a8e: 6afb ldr r3, [r7, #44] @ 0x2c
  41611. 8011a90: 2200 movs r2, #0
  41612. 8011a92: f883 2044 strb.w r2, [r3, #68] @ 0x44
  41613. 8011a96: 6afb ldr r3, [r7, #44] @ 0x2c
  41614. 8011a98: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  41615. 8011a9c: b25b sxtb r3, r3
  41616. 8011a9e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  41617. 8011aa2: d103 bne.n 8011aac <xQueueSemaphoreTake+0x158>
  41618. 8011aa4: 6afb ldr r3, [r7, #44] @ 0x2c
  41619. 8011aa6: 2200 movs r2, #0
  41620. 8011aa8: f883 2045 strb.w r2, [r3, #69] @ 0x45
  41621. 8011aac: f002 fe0e bl 80146cc <vPortExitCritical>
  41622. /* Update the timeout state to see if it has expired yet. */
  41623. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  41624. 8011ab0: 463a mov r2, r7
  41625. 8011ab2: f107 030c add.w r3, r7, #12
  41626. 8011ab6: 4611 mov r1, r2
  41627. 8011ab8: 4618 mov r0, r3
  41628. 8011aba: f001 fbdb bl 8013274 <xTaskCheckForTimeOut>
  41629. 8011abe: 4603 mov r3, r0
  41630. 8011ac0: 2b00 cmp r3, #0
  41631. 8011ac2: d132 bne.n 8011b2a <xQueueSemaphoreTake+0x1d6>
  41632. {
  41633. /* A block time is specified and not expired. If the semaphore
  41634. count is 0 then enter the Blocked state to wait for a semaphore to
  41635. become available. As semaphores are implemented with queues the
  41636. queue being empty is equivalent to the semaphore count being 0. */
  41637. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  41638. 8011ac4: 6af8 ldr r0, [r7, #44] @ 0x2c
  41639. 8011ac6: f000 fa33 bl 8011f30 <prvIsQueueEmpty>
  41640. 8011aca: 4603 mov r3, r0
  41641. 8011acc: 2b00 cmp r3, #0
  41642. 8011ace: d026 beq.n 8011b1e <xQueueSemaphoreTake+0x1ca>
  41643. {
  41644. traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
  41645. #if ( configUSE_MUTEXES == 1 )
  41646. {
  41647. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  41648. 8011ad0: 6afb ldr r3, [r7, #44] @ 0x2c
  41649. 8011ad2: 681b ldr r3, [r3, #0]
  41650. 8011ad4: 2b00 cmp r3, #0
  41651. 8011ad6: d109 bne.n 8011aec <xQueueSemaphoreTake+0x198>
  41652. {
  41653. taskENTER_CRITICAL();
  41654. 8011ad8: f002 fdc6 bl 8014668 <vPortEnterCritical>
  41655. {
  41656. xInheritanceOccurred = xTaskPriorityInherit( pxQueue->u.xSemaphore.xMutexHolder );
  41657. 8011adc: 6afb ldr r3, [r7, #44] @ 0x2c
  41658. 8011ade: 689b ldr r3, [r3, #8]
  41659. 8011ae0: 4618 mov r0, r3
  41660. 8011ae2: f001 fd41 bl 8013568 <xTaskPriorityInherit>
  41661. 8011ae6: 6338 str r0, [r7, #48] @ 0x30
  41662. }
  41663. taskEXIT_CRITICAL();
  41664. 8011ae8: f002 fdf0 bl 80146cc <vPortExitCritical>
  41665. mtCOVERAGE_TEST_MARKER();
  41666. }
  41667. }
  41668. #endif
  41669. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
  41670. 8011aec: 6afb ldr r3, [r7, #44] @ 0x2c
  41671. 8011aee: 3324 adds r3, #36 @ 0x24
  41672. 8011af0: 683a ldr r2, [r7, #0]
  41673. 8011af2: 4611 mov r1, r2
  41674. 8011af4: 4618 mov r0, r3
  41675. 8011af6: f001 fac9 bl 801308c <vTaskPlaceOnEventList>
  41676. prvUnlockQueue( pxQueue );
  41677. 8011afa: 6af8 ldr r0, [r7, #44] @ 0x2c
  41678. 8011afc: f000 f9c6 bl 8011e8c <prvUnlockQueue>
  41679. if( xTaskResumeAll() == pdFALSE )
  41680. 8011b00: f001 f8d6 bl 8012cb0 <xTaskResumeAll>
  41681. 8011b04: 4603 mov r3, r0
  41682. 8011b06: 2b00 cmp r3, #0
  41683. 8011b08: f47f af67 bne.w 80119da <xQueueSemaphoreTake+0x86>
  41684. {
  41685. portYIELD_WITHIN_API();
  41686. 8011b0c: 4b18 ldr r3, [pc, #96] @ (8011b70 <xQueueSemaphoreTake+0x21c>)
  41687. 8011b0e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  41688. 8011b12: 601a str r2, [r3, #0]
  41689. 8011b14: f3bf 8f4f dsb sy
  41690. 8011b18: f3bf 8f6f isb sy
  41691. 8011b1c: e75d b.n 80119da <xQueueSemaphoreTake+0x86>
  41692. }
  41693. else
  41694. {
  41695. /* There was no timeout and the semaphore count was not 0, so
  41696. attempt to take the semaphore again. */
  41697. prvUnlockQueue( pxQueue );
  41698. 8011b1e: 6af8 ldr r0, [r7, #44] @ 0x2c
  41699. 8011b20: f000 f9b4 bl 8011e8c <prvUnlockQueue>
  41700. ( void ) xTaskResumeAll();
  41701. 8011b24: f001 f8c4 bl 8012cb0 <xTaskResumeAll>
  41702. 8011b28: e757 b.n 80119da <xQueueSemaphoreTake+0x86>
  41703. }
  41704. }
  41705. else
  41706. {
  41707. /* Timed out. */
  41708. prvUnlockQueue( pxQueue );
  41709. 8011b2a: 6af8 ldr r0, [r7, #44] @ 0x2c
  41710. 8011b2c: f000 f9ae bl 8011e8c <prvUnlockQueue>
  41711. ( void ) xTaskResumeAll();
  41712. 8011b30: f001 f8be bl 8012cb0 <xTaskResumeAll>
  41713. /* If the semaphore count is 0 exit now as the timeout has
  41714. expired. Otherwise return to attempt to take the semaphore that is
  41715. known to be available. As semaphores are implemented by queues the
  41716. queue being empty is equivalent to the semaphore count being 0. */
  41717. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  41718. 8011b34: 6af8 ldr r0, [r7, #44] @ 0x2c
  41719. 8011b36: f000 f9fb bl 8011f30 <prvIsQueueEmpty>
  41720. 8011b3a: 4603 mov r3, r0
  41721. 8011b3c: 2b00 cmp r3, #0
  41722. 8011b3e: f43f af4c beq.w 80119da <xQueueSemaphoreTake+0x86>
  41723. #if ( configUSE_MUTEXES == 1 )
  41724. {
  41725. /* xInheritanceOccurred could only have be set if
  41726. pxQueue->uxQueueType == queueQUEUE_IS_MUTEX so no need to
  41727. test the mutex type again to check it is actually a mutex. */
  41728. if( xInheritanceOccurred != pdFALSE )
  41729. 8011b42: 6b3b ldr r3, [r7, #48] @ 0x30
  41730. 8011b44: 2b00 cmp r3, #0
  41731. 8011b46: d00d beq.n 8011b64 <xQueueSemaphoreTake+0x210>
  41732. {
  41733. taskENTER_CRITICAL();
  41734. 8011b48: f002 fd8e bl 8014668 <vPortEnterCritical>
  41735. /* This task blocking on the mutex caused another
  41736. task to inherit this task's priority. Now this task
  41737. has timed out the priority should be disinherited
  41738. again, but only as low as the next highest priority
  41739. task that is waiting for the same mutex. */
  41740. uxHighestWaitingPriority = prvGetDisinheritPriorityAfterTimeout( pxQueue );
  41741. 8011b4c: 6af8 ldr r0, [r7, #44] @ 0x2c
  41742. 8011b4e: f000 f8f5 bl 8011d3c <prvGetDisinheritPriorityAfterTimeout>
  41743. 8011b52: 6278 str r0, [r7, #36] @ 0x24
  41744. vTaskPriorityDisinheritAfterTimeout( pxQueue->u.xSemaphore.xMutexHolder, uxHighestWaitingPriority );
  41745. 8011b54: 6afb ldr r3, [r7, #44] @ 0x2c
  41746. 8011b56: 689b ldr r3, [r3, #8]
  41747. 8011b58: 6a79 ldr r1, [r7, #36] @ 0x24
  41748. 8011b5a: 4618 mov r0, r3
  41749. 8011b5c: f001 fddc bl 8013718 <vTaskPriorityDisinheritAfterTimeout>
  41750. }
  41751. taskEXIT_CRITICAL();
  41752. 8011b60: f002 fdb4 bl 80146cc <vPortExitCritical>
  41753. }
  41754. }
  41755. #endif /* configUSE_MUTEXES */
  41756. traceQUEUE_RECEIVE_FAILED( pxQueue );
  41757. return errQUEUE_EMPTY;
  41758. 8011b64: 2300 movs r3, #0
  41759. {
  41760. mtCOVERAGE_TEST_MARKER();
  41761. }
  41762. }
  41763. } /*lint -restore */
  41764. }
  41765. 8011b66: 4618 mov r0, r3
  41766. 8011b68: 3738 adds r7, #56 @ 0x38
  41767. 8011b6a: 46bd mov sp, r7
  41768. 8011b6c: bd80 pop {r7, pc}
  41769. 8011b6e: bf00 nop
  41770. 8011b70: e000ed04 .word 0xe000ed04
  41771. 08011b74 <xQueueReceiveFromISR>:
  41772. } /*lint -restore */
  41773. }
  41774. /*-----------------------------------------------------------*/
  41775. BaseType_t xQueueReceiveFromISR( QueueHandle_t xQueue, void * const pvBuffer, BaseType_t * const pxHigherPriorityTaskWoken )
  41776. {
  41777. 8011b74: b580 push {r7, lr}
  41778. 8011b76: b08e sub sp, #56 @ 0x38
  41779. 8011b78: af00 add r7, sp, #0
  41780. 8011b7a: 60f8 str r0, [r7, #12]
  41781. 8011b7c: 60b9 str r1, [r7, #8]
  41782. 8011b7e: 607a str r2, [r7, #4]
  41783. BaseType_t xReturn;
  41784. UBaseType_t uxSavedInterruptStatus;
  41785. Queue_t * const pxQueue = xQueue;
  41786. 8011b80: 68fb ldr r3, [r7, #12]
  41787. 8011b82: 633b str r3, [r7, #48] @ 0x30
  41788. configASSERT( pxQueue );
  41789. 8011b84: 6b3b ldr r3, [r7, #48] @ 0x30
  41790. 8011b86: 2b00 cmp r3, #0
  41791. 8011b88: d10b bne.n 8011ba2 <xQueueReceiveFromISR+0x2e>
  41792. __asm volatile
  41793. 8011b8a: f04f 0350 mov.w r3, #80 @ 0x50
  41794. 8011b8e: f383 8811 msr BASEPRI, r3
  41795. 8011b92: f3bf 8f6f isb sy
  41796. 8011b96: f3bf 8f4f dsb sy
  41797. 8011b9a: 623b str r3, [r7, #32]
  41798. }
  41799. 8011b9c: bf00 nop
  41800. 8011b9e: bf00 nop
  41801. 8011ba0: e7fd b.n 8011b9e <xQueueReceiveFromISR+0x2a>
  41802. configASSERT( !( ( pvBuffer == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  41803. 8011ba2: 68bb ldr r3, [r7, #8]
  41804. 8011ba4: 2b00 cmp r3, #0
  41805. 8011ba6: d103 bne.n 8011bb0 <xQueueReceiveFromISR+0x3c>
  41806. 8011ba8: 6b3b ldr r3, [r7, #48] @ 0x30
  41807. 8011baa: 6c1b ldr r3, [r3, #64] @ 0x40
  41808. 8011bac: 2b00 cmp r3, #0
  41809. 8011bae: d101 bne.n 8011bb4 <xQueueReceiveFromISR+0x40>
  41810. 8011bb0: 2301 movs r3, #1
  41811. 8011bb2: e000 b.n 8011bb6 <xQueueReceiveFromISR+0x42>
  41812. 8011bb4: 2300 movs r3, #0
  41813. 8011bb6: 2b00 cmp r3, #0
  41814. 8011bb8: d10b bne.n 8011bd2 <xQueueReceiveFromISR+0x5e>
  41815. __asm volatile
  41816. 8011bba: f04f 0350 mov.w r3, #80 @ 0x50
  41817. 8011bbe: f383 8811 msr BASEPRI, r3
  41818. 8011bc2: f3bf 8f6f isb sy
  41819. 8011bc6: f3bf 8f4f dsb sy
  41820. 8011bca: 61fb str r3, [r7, #28]
  41821. }
  41822. 8011bcc: bf00 nop
  41823. 8011bce: bf00 nop
  41824. 8011bd0: e7fd b.n 8011bce <xQueueReceiveFromISR+0x5a>
  41825. that have been assigned a priority at or (logically) below the maximum
  41826. system call interrupt priority. FreeRTOS maintains a separate interrupt
  41827. safe API to ensure interrupt entry is as fast and as simple as possible.
  41828. More information (albeit Cortex-M specific) is provided on the following
  41829. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  41830. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  41831. 8011bd2: f002 fe29 bl 8014828 <vPortValidateInterruptPriority>
  41832. __asm volatile
  41833. 8011bd6: f3ef 8211 mrs r2, BASEPRI
  41834. 8011bda: f04f 0350 mov.w r3, #80 @ 0x50
  41835. 8011bde: f383 8811 msr BASEPRI, r3
  41836. 8011be2: f3bf 8f6f isb sy
  41837. 8011be6: f3bf 8f4f dsb sy
  41838. 8011bea: 61ba str r2, [r7, #24]
  41839. 8011bec: 617b str r3, [r7, #20]
  41840. return ulOriginalBASEPRI;
  41841. 8011bee: 69bb ldr r3, [r7, #24]
  41842. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  41843. 8011bf0: 62fb str r3, [r7, #44] @ 0x2c
  41844. {
  41845. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  41846. 8011bf2: 6b3b ldr r3, [r7, #48] @ 0x30
  41847. 8011bf4: 6b9b ldr r3, [r3, #56] @ 0x38
  41848. 8011bf6: 62bb str r3, [r7, #40] @ 0x28
  41849. /* Cannot block in an ISR, so check there is data available. */
  41850. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  41851. 8011bf8: 6abb ldr r3, [r7, #40] @ 0x28
  41852. 8011bfa: 2b00 cmp r3, #0
  41853. 8011bfc: d02f beq.n 8011c5e <xQueueReceiveFromISR+0xea>
  41854. {
  41855. const int8_t cRxLock = pxQueue->cRxLock;
  41856. 8011bfe: 6b3b ldr r3, [r7, #48] @ 0x30
  41857. 8011c00: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  41858. 8011c04: f887 3027 strb.w r3, [r7, #39] @ 0x27
  41859. traceQUEUE_RECEIVE_FROM_ISR( pxQueue );
  41860. prvCopyDataFromQueue( pxQueue, pvBuffer );
  41861. 8011c08: 68b9 ldr r1, [r7, #8]
  41862. 8011c0a: 6b38 ldr r0, [r7, #48] @ 0x30
  41863. 8011c0c: f000 f918 bl 8011e40 <prvCopyDataFromQueue>
  41864. pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
  41865. 8011c10: 6abb ldr r3, [r7, #40] @ 0x28
  41866. 8011c12: 1e5a subs r2, r3, #1
  41867. 8011c14: 6b3b ldr r3, [r7, #48] @ 0x30
  41868. 8011c16: 639a str r2, [r3, #56] @ 0x38
  41869. /* If the queue is locked the event list will not be modified.
  41870. Instead update the lock count so the task that unlocks the queue
  41871. will know that an ISR has removed data while the queue was
  41872. locked. */
  41873. if( cRxLock == queueUNLOCKED )
  41874. 8011c18: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  41875. 8011c1c: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  41876. 8011c20: d112 bne.n 8011c48 <xQueueReceiveFromISR+0xd4>
  41877. {
  41878. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  41879. 8011c22: 6b3b ldr r3, [r7, #48] @ 0x30
  41880. 8011c24: 691b ldr r3, [r3, #16]
  41881. 8011c26: 2b00 cmp r3, #0
  41882. 8011c28: d016 beq.n 8011c58 <xQueueReceiveFromISR+0xe4>
  41883. {
  41884. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  41885. 8011c2a: 6b3b ldr r3, [r7, #48] @ 0x30
  41886. 8011c2c: 3310 adds r3, #16
  41887. 8011c2e: 4618 mov r0, r3
  41888. 8011c30: f001 fa7e bl 8013130 <xTaskRemoveFromEventList>
  41889. 8011c34: 4603 mov r3, r0
  41890. 8011c36: 2b00 cmp r3, #0
  41891. 8011c38: d00e beq.n 8011c58 <xQueueReceiveFromISR+0xe4>
  41892. {
  41893. /* The task waiting has a higher priority than us so
  41894. force a context switch. */
  41895. if( pxHigherPriorityTaskWoken != NULL )
  41896. 8011c3a: 687b ldr r3, [r7, #4]
  41897. 8011c3c: 2b00 cmp r3, #0
  41898. 8011c3e: d00b beq.n 8011c58 <xQueueReceiveFromISR+0xe4>
  41899. {
  41900. *pxHigherPriorityTaskWoken = pdTRUE;
  41901. 8011c40: 687b ldr r3, [r7, #4]
  41902. 8011c42: 2201 movs r2, #1
  41903. 8011c44: 601a str r2, [r3, #0]
  41904. 8011c46: e007 b.n 8011c58 <xQueueReceiveFromISR+0xe4>
  41905. }
  41906. else
  41907. {
  41908. /* Increment the lock count so the task that unlocks the queue
  41909. knows that data was removed while it was locked. */
  41910. pxQueue->cRxLock = ( int8_t ) ( cRxLock + 1 );
  41911. 8011c48: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  41912. 8011c4c: 3301 adds r3, #1
  41913. 8011c4e: b2db uxtb r3, r3
  41914. 8011c50: b25a sxtb r2, r3
  41915. 8011c52: 6b3b ldr r3, [r7, #48] @ 0x30
  41916. 8011c54: f883 2044 strb.w r2, [r3, #68] @ 0x44
  41917. }
  41918. xReturn = pdPASS;
  41919. 8011c58: 2301 movs r3, #1
  41920. 8011c5a: 637b str r3, [r7, #52] @ 0x34
  41921. 8011c5c: e001 b.n 8011c62 <xQueueReceiveFromISR+0xee>
  41922. }
  41923. else
  41924. {
  41925. xReturn = pdFAIL;
  41926. 8011c5e: 2300 movs r3, #0
  41927. 8011c60: 637b str r3, [r7, #52] @ 0x34
  41928. 8011c62: 6afb ldr r3, [r7, #44] @ 0x2c
  41929. 8011c64: 613b str r3, [r7, #16]
  41930. __asm volatile
  41931. 8011c66: 693b ldr r3, [r7, #16]
  41932. 8011c68: f383 8811 msr BASEPRI, r3
  41933. }
  41934. 8011c6c: bf00 nop
  41935. traceQUEUE_RECEIVE_FROM_ISR_FAILED( pxQueue );
  41936. }
  41937. }
  41938. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  41939. return xReturn;
  41940. 8011c6e: 6b7b ldr r3, [r7, #52] @ 0x34
  41941. }
  41942. 8011c70: 4618 mov r0, r3
  41943. 8011c72: 3738 adds r7, #56 @ 0x38
  41944. 8011c74: 46bd mov sp, r7
  41945. 8011c76: bd80 pop {r7, pc}
  41946. 08011c78 <uxQueueMessagesWaiting>:
  41947. return xReturn;
  41948. }
  41949. /*-----------------------------------------------------------*/
  41950. UBaseType_t uxQueueMessagesWaiting( const QueueHandle_t xQueue )
  41951. {
  41952. 8011c78: b580 push {r7, lr}
  41953. 8011c7a: b084 sub sp, #16
  41954. 8011c7c: af00 add r7, sp, #0
  41955. 8011c7e: 6078 str r0, [r7, #4]
  41956. UBaseType_t uxReturn;
  41957. configASSERT( xQueue );
  41958. 8011c80: 687b ldr r3, [r7, #4]
  41959. 8011c82: 2b00 cmp r3, #0
  41960. 8011c84: d10b bne.n 8011c9e <uxQueueMessagesWaiting+0x26>
  41961. __asm volatile
  41962. 8011c86: f04f 0350 mov.w r3, #80 @ 0x50
  41963. 8011c8a: f383 8811 msr BASEPRI, r3
  41964. 8011c8e: f3bf 8f6f isb sy
  41965. 8011c92: f3bf 8f4f dsb sy
  41966. 8011c96: 60bb str r3, [r7, #8]
  41967. }
  41968. 8011c98: bf00 nop
  41969. 8011c9a: bf00 nop
  41970. 8011c9c: e7fd b.n 8011c9a <uxQueueMessagesWaiting+0x22>
  41971. taskENTER_CRITICAL();
  41972. 8011c9e: f002 fce3 bl 8014668 <vPortEnterCritical>
  41973. {
  41974. uxReturn = ( ( Queue_t * ) xQueue )->uxMessagesWaiting;
  41975. 8011ca2: 687b ldr r3, [r7, #4]
  41976. 8011ca4: 6b9b ldr r3, [r3, #56] @ 0x38
  41977. 8011ca6: 60fb str r3, [r7, #12]
  41978. }
  41979. taskEXIT_CRITICAL();
  41980. 8011ca8: f002 fd10 bl 80146cc <vPortExitCritical>
  41981. return uxReturn;
  41982. 8011cac: 68fb ldr r3, [r7, #12]
  41983. } /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */
  41984. 8011cae: 4618 mov r0, r3
  41985. 8011cb0: 3710 adds r7, #16
  41986. 8011cb2: 46bd mov sp, r7
  41987. 8011cb4: bd80 pop {r7, pc}
  41988. 08011cb6 <uxQueueMessagesWaitingFromISR>:
  41989. return uxReturn;
  41990. } /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */
  41991. /*-----------------------------------------------------------*/
  41992. UBaseType_t uxQueueMessagesWaitingFromISR( const QueueHandle_t xQueue )
  41993. {
  41994. 8011cb6: b480 push {r7}
  41995. 8011cb8: b087 sub sp, #28
  41996. 8011cba: af00 add r7, sp, #0
  41997. 8011cbc: 6078 str r0, [r7, #4]
  41998. UBaseType_t uxReturn;
  41999. Queue_t * const pxQueue = xQueue;
  42000. 8011cbe: 687b ldr r3, [r7, #4]
  42001. 8011cc0: 617b str r3, [r7, #20]
  42002. configASSERT( pxQueue );
  42003. 8011cc2: 697b ldr r3, [r7, #20]
  42004. 8011cc4: 2b00 cmp r3, #0
  42005. 8011cc6: d10b bne.n 8011ce0 <uxQueueMessagesWaitingFromISR+0x2a>
  42006. __asm volatile
  42007. 8011cc8: f04f 0350 mov.w r3, #80 @ 0x50
  42008. 8011ccc: f383 8811 msr BASEPRI, r3
  42009. 8011cd0: f3bf 8f6f isb sy
  42010. 8011cd4: f3bf 8f4f dsb sy
  42011. 8011cd8: 60fb str r3, [r7, #12]
  42012. }
  42013. 8011cda: bf00 nop
  42014. 8011cdc: bf00 nop
  42015. 8011cde: e7fd b.n 8011cdc <uxQueueMessagesWaitingFromISR+0x26>
  42016. uxReturn = pxQueue->uxMessagesWaiting;
  42017. 8011ce0: 697b ldr r3, [r7, #20]
  42018. 8011ce2: 6b9b ldr r3, [r3, #56] @ 0x38
  42019. 8011ce4: 613b str r3, [r7, #16]
  42020. return uxReturn;
  42021. 8011ce6: 693b ldr r3, [r7, #16]
  42022. } /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */
  42023. 8011ce8: 4618 mov r0, r3
  42024. 8011cea: 371c adds r7, #28
  42025. 8011cec: 46bd mov sp, r7
  42026. 8011cee: f85d 7b04 ldr.w r7, [sp], #4
  42027. 8011cf2: 4770 bx lr
  42028. 08011cf4 <vQueueDelete>:
  42029. /*-----------------------------------------------------------*/
  42030. void vQueueDelete( QueueHandle_t xQueue )
  42031. {
  42032. 8011cf4: b580 push {r7, lr}
  42033. 8011cf6: b084 sub sp, #16
  42034. 8011cf8: af00 add r7, sp, #0
  42035. 8011cfa: 6078 str r0, [r7, #4]
  42036. Queue_t * const pxQueue = xQueue;
  42037. 8011cfc: 687b ldr r3, [r7, #4]
  42038. 8011cfe: 60fb str r3, [r7, #12]
  42039. configASSERT( pxQueue );
  42040. 8011d00: 68fb ldr r3, [r7, #12]
  42041. 8011d02: 2b00 cmp r3, #0
  42042. 8011d04: d10b bne.n 8011d1e <vQueueDelete+0x2a>
  42043. __asm volatile
  42044. 8011d06: f04f 0350 mov.w r3, #80 @ 0x50
  42045. 8011d0a: f383 8811 msr BASEPRI, r3
  42046. 8011d0e: f3bf 8f6f isb sy
  42047. 8011d12: f3bf 8f4f dsb sy
  42048. 8011d16: 60bb str r3, [r7, #8]
  42049. }
  42050. 8011d18: bf00 nop
  42051. 8011d1a: bf00 nop
  42052. 8011d1c: e7fd b.n 8011d1a <vQueueDelete+0x26>
  42053. traceQUEUE_DELETE( pxQueue );
  42054. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  42055. {
  42056. vQueueUnregisterQueue( pxQueue );
  42057. 8011d1e: 68f8 ldr r0, [r7, #12]
  42058. 8011d20: f000 f95e bl 8011fe0 <vQueueUnregisterQueue>
  42059. }
  42060. #elif( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
  42061. {
  42062. /* The queue could have been allocated statically or dynamically, so
  42063. check before attempting to free the memory. */
  42064. if( pxQueue->ucStaticallyAllocated == ( uint8_t ) pdFALSE )
  42065. 8011d24: 68fb ldr r3, [r7, #12]
  42066. 8011d26: f893 3046 ldrb.w r3, [r3, #70] @ 0x46
  42067. 8011d2a: 2b00 cmp r3, #0
  42068. 8011d2c: d102 bne.n 8011d34 <vQueueDelete+0x40>
  42069. {
  42070. vPortFree( pxQueue );
  42071. 8011d2e: 68f8 ldr r0, [r7, #12]
  42072. 8011d30: f002 fe8a bl 8014a48 <vPortFree>
  42073. /* The queue must have been statically allocated, so is not going to be
  42074. deleted. Avoid compiler warnings about the unused parameter. */
  42075. ( void ) pxQueue;
  42076. }
  42077. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  42078. }
  42079. 8011d34: bf00 nop
  42080. 8011d36: 3710 adds r7, #16
  42081. 8011d38: 46bd mov sp, r7
  42082. 8011d3a: bd80 pop {r7, pc}
  42083. 08011d3c <prvGetDisinheritPriorityAfterTimeout>:
  42084. /*-----------------------------------------------------------*/
  42085. #if( configUSE_MUTEXES == 1 )
  42086. static UBaseType_t prvGetDisinheritPriorityAfterTimeout( const Queue_t * const pxQueue )
  42087. {
  42088. 8011d3c: b480 push {r7}
  42089. 8011d3e: b085 sub sp, #20
  42090. 8011d40: af00 add r7, sp, #0
  42091. 8011d42: 6078 str r0, [r7, #4]
  42092. priority, but the waiting task times out, then the holder should
  42093. disinherit the priority - but only down to the highest priority of any
  42094. other tasks that are waiting for the same mutex. For this purpose,
  42095. return the priority of the highest priority task that is waiting for the
  42096. mutex. */
  42097. if( listCURRENT_LIST_LENGTH( &( pxQueue->xTasksWaitingToReceive ) ) > 0U )
  42098. 8011d44: 687b ldr r3, [r7, #4]
  42099. 8011d46: 6a5b ldr r3, [r3, #36] @ 0x24
  42100. 8011d48: 2b00 cmp r3, #0
  42101. 8011d4a: d006 beq.n 8011d5a <prvGetDisinheritPriorityAfterTimeout+0x1e>
  42102. {
  42103. uxHighestPriorityOfWaitingTasks = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) listGET_ITEM_VALUE_OF_HEAD_ENTRY( &( pxQueue->xTasksWaitingToReceive ) );
  42104. 8011d4c: 687b ldr r3, [r7, #4]
  42105. 8011d4e: 6b1b ldr r3, [r3, #48] @ 0x30
  42106. 8011d50: 681b ldr r3, [r3, #0]
  42107. 8011d52: f1c3 0338 rsb r3, r3, #56 @ 0x38
  42108. 8011d56: 60fb str r3, [r7, #12]
  42109. 8011d58: e001 b.n 8011d5e <prvGetDisinheritPriorityAfterTimeout+0x22>
  42110. }
  42111. else
  42112. {
  42113. uxHighestPriorityOfWaitingTasks = tskIDLE_PRIORITY;
  42114. 8011d5a: 2300 movs r3, #0
  42115. 8011d5c: 60fb str r3, [r7, #12]
  42116. }
  42117. return uxHighestPriorityOfWaitingTasks;
  42118. 8011d5e: 68fb ldr r3, [r7, #12]
  42119. }
  42120. 8011d60: 4618 mov r0, r3
  42121. 8011d62: 3714 adds r7, #20
  42122. 8011d64: 46bd mov sp, r7
  42123. 8011d66: f85d 7b04 ldr.w r7, [sp], #4
  42124. 8011d6a: 4770 bx lr
  42125. 08011d6c <prvCopyDataToQueue>:
  42126. #endif /* configUSE_MUTEXES */
  42127. /*-----------------------------------------------------------*/
  42128. static BaseType_t prvCopyDataToQueue( Queue_t * const pxQueue, const void *pvItemToQueue, const BaseType_t xPosition )
  42129. {
  42130. 8011d6c: b580 push {r7, lr}
  42131. 8011d6e: b086 sub sp, #24
  42132. 8011d70: af00 add r7, sp, #0
  42133. 8011d72: 60f8 str r0, [r7, #12]
  42134. 8011d74: 60b9 str r1, [r7, #8]
  42135. 8011d76: 607a str r2, [r7, #4]
  42136. BaseType_t xReturn = pdFALSE;
  42137. 8011d78: 2300 movs r3, #0
  42138. 8011d7a: 617b str r3, [r7, #20]
  42139. UBaseType_t uxMessagesWaiting;
  42140. /* This function is called from a critical section. */
  42141. uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  42142. 8011d7c: 68fb ldr r3, [r7, #12]
  42143. 8011d7e: 6b9b ldr r3, [r3, #56] @ 0x38
  42144. 8011d80: 613b str r3, [r7, #16]
  42145. if( pxQueue->uxItemSize == ( UBaseType_t ) 0 )
  42146. 8011d82: 68fb ldr r3, [r7, #12]
  42147. 8011d84: 6c1b ldr r3, [r3, #64] @ 0x40
  42148. 8011d86: 2b00 cmp r3, #0
  42149. 8011d88: d10d bne.n 8011da6 <prvCopyDataToQueue+0x3a>
  42150. {
  42151. #if ( configUSE_MUTEXES == 1 )
  42152. {
  42153. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  42154. 8011d8a: 68fb ldr r3, [r7, #12]
  42155. 8011d8c: 681b ldr r3, [r3, #0]
  42156. 8011d8e: 2b00 cmp r3, #0
  42157. 8011d90: d14d bne.n 8011e2e <prvCopyDataToQueue+0xc2>
  42158. {
  42159. /* The mutex is no longer being held. */
  42160. xReturn = xTaskPriorityDisinherit( pxQueue->u.xSemaphore.xMutexHolder );
  42161. 8011d92: 68fb ldr r3, [r7, #12]
  42162. 8011d94: 689b ldr r3, [r3, #8]
  42163. 8011d96: 4618 mov r0, r3
  42164. 8011d98: f001 fc4e bl 8013638 <xTaskPriorityDisinherit>
  42165. 8011d9c: 6178 str r0, [r7, #20]
  42166. pxQueue->u.xSemaphore.xMutexHolder = NULL;
  42167. 8011d9e: 68fb ldr r3, [r7, #12]
  42168. 8011da0: 2200 movs r2, #0
  42169. 8011da2: 609a str r2, [r3, #8]
  42170. 8011da4: e043 b.n 8011e2e <prvCopyDataToQueue+0xc2>
  42171. mtCOVERAGE_TEST_MARKER();
  42172. }
  42173. }
  42174. #endif /* configUSE_MUTEXES */
  42175. }
  42176. else if( xPosition == queueSEND_TO_BACK )
  42177. 8011da6: 687b ldr r3, [r7, #4]
  42178. 8011da8: 2b00 cmp r3, #0
  42179. 8011daa: d119 bne.n 8011de0 <prvCopyDataToQueue+0x74>
  42180. {
  42181. ( void ) memcpy( ( void * ) pxQueue->pcWriteTo, pvItemToQueue, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e418 !e9087 MISRA exception as the casts are only redundant for some ports, plus previous logic ensures a null pointer can only be passed to memcpy() if the copy size is 0. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. */
  42182. 8011dac: 68fb ldr r3, [r7, #12]
  42183. 8011dae: 6858 ldr r0, [r3, #4]
  42184. 8011db0: 68fb ldr r3, [r7, #12]
  42185. 8011db2: 6c1b ldr r3, [r3, #64] @ 0x40
  42186. 8011db4: 461a mov r2, r3
  42187. 8011db6: 68b9 ldr r1, [r7, #8]
  42188. 8011db8: f017 fe31 bl 8029a1e <memcpy>
  42189. pxQueue->pcWriteTo += pxQueue->uxItemSize; /*lint !e9016 Pointer arithmetic on char types ok, especially in this use case where it is the clearest way of conveying intent. */
  42190. 8011dbc: 68fb ldr r3, [r7, #12]
  42191. 8011dbe: 685a ldr r2, [r3, #4]
  42192. 8011dc0: 68fb ldr r3, [r7, #12]
  42193. 8011dc2: 6c1b ldr r3, [r3, #64] @ 0x40
  42194. 8011dc4: 441a add r2, r3
  42195. 8011dc6: 68fb ldr r3, [r7, #12]
  42196. 8011dc8: 605a str r2, [r3, #4]
  42197. if( pxQueue->pcWriteTo >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
  42198. 8011dca: 68fb ldr r3, [r7, #12]
  42199. 8011dcc: 685a ldr r2, [r3, #4]
  42200. 8011dce: 68fb ldr r3, [r7, #12]
  42201. 8011dd0: 689b ldr r3, [r3, #8]
  42202. 8011dd2: 429a cmp r2, r3
  42203. 8011dd4: d32b bcc.n 8011e2e <prvCopyDataToQueue+0xc2>
  42204. {
  42205. pxQueue->pcWriteTo = pxQueue->pcHead;
  42206. 8011dd6: 68fb ldr r3, [r7, #12]
  42207. 8011dd8: 681a ldr r2, [r3, #0]
  42208. 8011dda: 68fb ldr r3, [r7, #12]
  42209. 8011ddc: 605a str r2, [r3, #4]
  42210. 8011dde: e026 b.n 8011e2e <prvCopyDataToQueue+0xc2>
  42211. mtCOVERAGE_TEST_MARKER();
  42212. }
  42213. }
  42214. else
  42215. {
  42216. ( void ) memcpy( ( void * ) pxQueue->u.xQueue.pcReadFrom, pvItemToQueue, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e9087 !e418 MISRA exception as the casts are only redundant for some ports. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. Assert checks null pointer only used when length is 0. */
  42217. 8011de0: 68fb ldr r3, [r7, #12]
  42218. 8011de2: 68d8 ldr r0, [r3, #12]
  42219. 8011de4: 68fb ldr r3, [r7, #12]
  42220. 8011de6: 6c1b ldr r3, [r3, #64] @ 0x40
  42221. 8011de8: 461a mov r2, r3
  42222. 8011dea: 68b9 ldr r1, [r7, #8]
  42223. 8011dec: f017 fe17 bl 8029a1e <memcpy>
  42224. pxQueue->u.xQueue.pcReadFrom -= pxQueue->uxItemSize;
  42225. 8011df0: 68fb ldr r3, [r7, #12]
  42226. 8011df2: 68da ldr r2, [r3, #12]
  42227. 8011df4: 68fb ldr r3, [r7, #12]
  42228. 8011df6: 6c1b ldr r3, [r3, #64] @ 0x40
  42229. 8011df8: 425b negs r3, r3
  42230. 8011dfa: 441a add r2, r3
  42231. 8011dfc: 68fb ldr r3, [r7, #12]
  42232. 8011dfe: 60da str r2, [r3, #12]
  42233. if( pxQueue->u.xQueue.pcReadFrom < pxQueue->pcHead ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
  42234. 8011e00: 68fb ldr r3, [r7, #12]
  42235. 8011e02: 68da ldr r2, [r3, #12]
  42236. 8011e04: 68fb ldr r3, [r7, #12]
  42237. 8011e06: 681b ldr r3, [r3, #0]
  42238. 8011e08: 429a cmp r2, r3
  42239. 8011e0a: d207 bcs.n 8011e1c <prvCopyDataToQueue+0xb0>
  42240. {
  42241. pxQueue->u.xQueue.pcReadFrom = ( pxQueue->u.xQueue.pcTail - pxQueue->uxItemSize );
  42242. 8011e0c: 68fb ldr r3, [r7, #12]
  42243. 8011e0e: 689a ldr r2, [r3, #8]
  42244. 8011e10: 68fb ldr r3, [r7, #12]
  42245. 8011e12: 6c1b ldr r3, [r3, #64] @ 0x40
  42246. 8011e14: 425b negs r3, r3
  42247. 8011e16: 441a add r2, r3
  42248. 8011e18: 68fb ldr r3, [r7, #12]
  42249. 8011e1a: 60da str r2, [r3, #12]
  42250. else
  42251. {
  42252. mtCOVERAGE_TEST_MARKER();
  42253. }
  42254. if( xPosition == queueOVERWRITE )
  42255. 8011e1c: 687b ldr r3, [r7, #4]
  42256. 8011e1e: 2b02 cmp r3, #2
  42257. 8011e20: d105 bne.n 8011e2e <prvCopyDataToQueue+0xc2>
  42258. {
  42259. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  42260. 8011e22: 693b ldr r3, [r7, #16]
  42261. 8011e24: 2b00 cmp r3, #0
  42262. 8011e26: d002 beq.n 8011e2e <prvCopyDataToQueue+0xc2>
  42263. {
  42264. /* An item is not being added but overwritten, so subtract
  42265. one from the recorded number of items in the queue so when
  42266. one is added again below the number of recorded items remains
  42267. correct. */
  42268. --uxMessagesWaiting;
  42269. 8011e28: 693b ldr r3, [r7, #16]
  42270. 8011e2a: 3b01 subs r3, #1
  42271. 8011e2c: 613b str r3, [r7, #16]
  42272. {
  42273. mtCOVERAGE_TEST_MARKER();
  42274. }
  42275. }
  42276. pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1;
  42277. 8011e2e: 693b ldr r3, [r7, #16]
  42278. 8011e30: 1c5a adds r2, r3, #1
  42279. 8011e32: 68fb ldr r3, [r7, #12]
  42280. 8011e34: 639a str r2, [r3, #56] @ 0x38
  42281. return xReturn;
  42282. 8011e36: 697b ldr r3, [r7, #20]
  42283. }
  42284. 8011e38: 4618 mov r0, r3
  42285. 8011e3a: 3718 adds r7, #24
  42286. 8011e3c: 46bd mov sp, r7
  42287. 8011e3e: bd80 pop {r7, pc}
  42288. 08011e40 <prvCopyDataFromQueue>:
  42289. /*-----------------------------------------------------------*/
  42290. static void prvCopyDataFromQueue( Queue_t * const pxQueue, void * const pvBuffer )
  42291. {
  42292. 8011e40: b580 push {r7, lr}
  42293. 8011e42: b082 sub sp, #8
  42294. 8011e44: af00 add r7, sp, #0
  42295. 8011e46: 6078 str r0, [r7, #4]
  42296. 8011e48: 6039 str r1, [r7, #0]
  42297. if( pxQueue->uxItemSize != ( UBaseType_t ) 0 )
  42298. 8011e4a: 687b ldr r3, [r7, #4]
  42299. 8011e4c: 6c1b ldr r3, [r3, #64] @ 0x40
  42300. 8011e4e: 2b00 cmp r3, #0
  42301. 8011e50: d018 beq.n 8011e84 <prvCopyDataFromQueue+0x44>
  42302. {
  42303. pxQueue->u.xQueue.pcReadFrom += pxQueue->uxItemSize; /*lint !e9016 Pointer arithmetic on char types ok, especially in this use case where it is the clearest way of conveying intent. */
  42304. 8011e52: 687b ldr r3, [r7, #4]
  42305. 8011e54: 68da ldr r2, [r3, #12]
  42306. 8011e56: 687b ldr r3, [r7, #4]
  42307. 8011e58: 6c1b ldr r3, [r3, #64] @ 0x40
  42308. 8011e5a: 441a add r2, r3
  42309. 8011e5c: 687b ldr r3, [r7, #4]
  42310. 8011e5e: 60da str r2, [r3, #12]
  42311. if( pxQueue->u.xQueue.pcReadFrom >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as use of the relational operator is the cleanest solutions. */
  42312. 8011e60: 687b ldr r3, [r7, #4]
  42313. 8011e62: 68da ldr r2, [r3, #12]
  42314. 8011e64: 687b ldr r3, [r7, #4]
  42315. 8011e66: 689b ldr r3, [r3, #8]
  42316. 8011e68: 429a cmp r2, r3
  42317. 8011e6a: d303 bcc.n 8011e74 <prvCopyDataFromQueue+0x34>
  42318. {
  42319. pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead;
  42320. 8011e6c: 687b ldr r3, [r7, #4]
  42321. 8011e6e: 681a ldr r2, [r3, #0]
  42322. 8011e70: 687b ldr r3, [r7, #4]
  42323. 8011e72: 60da str r2, [r3, #12]
  42324. }
  42325. else
  42326. {
  42327. mtCOVERAGE_TEST_MARKER();
  42328. }
  42329. ( void ) memcpy( ( void * ) pvBuffer, ( void * ) pxQueue->u.xQueue.pcReadFrom, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e418 !e9087 MISRA exception as the casts are only redundant for some ports. Also previous logic ensures a null pointer can only be passed to memcpy() when the count is 0. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. */
  42330. 8011e74: 687b ldr r3, [r7, #4]
  42331. 8011e76: 68d9 ldr r1, [r3, #12]
  42332. 8011e78: 687b ldr r3, [r7, #4]
  42333. 8011e7a: 6c1b ldr r3, [r3, #64] @ 0x40
  42334. 8011e7c: 461a mov r2, r3
  42335. 8011e7e: 6838 ldr r0, [r7, #0]
  42336. 8011e80: f017 fdcd bl 8029a1e <memcpy>
  42337. }
  42338. }
  42339. 8011e84: bf00 nop
  42340. 8011e86: 3708 adds r7, #8
  42341. 8011e88: 46bd mov sp, r7
  42342. 8011e8a: bd80 pop {r7, pc}
  42343. 08011e8c <prvUnlockQueue>:
  42344. /*-----------------------------------------------------------*/
  42345. static void prvUnlockQueue( Queue_t * const pxQueue )
  42346. {
  42347. 8011e8c: b580 push {r7, lr}
  42348. 8011e8e: b084 sub sp, #16
  42349. 8011e90: af00 add r7, sp, #0
  42350. 8011e92: 6078 str r0, [r7, #4]
  42351. /* The lock counts contains the number of extra data items placed or
  42352. removed from the queue while the queue was locked. When a queue is
  42353. locked items can be added or removed, but the event lists cannot be
  42354. updated. */
  42355. taskENTER_CRITICAL();
  42356. 8011e94: f002 fbe8 bl 8014668 <vPortEnterCritical>
  42357. {
  42358. int8_t cTxLock = pxQueue->cTxLock;
  42359. 8011e98: 687b ldr r3, [r7, #4]
  42360. 8011e9a: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  42361. 8011e9e: 73fb strb r3, [r7, #15]
  42362. /* See if data was added to the queue while it was locked. */
  42363. while( cTxLock > queueLOCKED_UNMODIFIED )
  42364. 8011ea0: e011 b.n 8011ec6 <prvUnlockQueue+0x3a>
  42365. }
  42366. #else /* configUSE_QUEUE_SETS */
  42367. {
  42368. /* Tasks that are removed from the event list will get added to
  42369. the pending ready list as the scheduler is still suspended. */
  42370. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  42371. 8011ea2: 687b ldr r3, [r7, #4]
  42372. 8011ea4: 6a5b ldr r3, [r3, #36] @ 0x24
  42373. 8011ea6: 2b00 cmp r3, #0
  42374. 8011ea8: d012 beq.n 8011ed0 <prvUnlockQueue+0x44>
  42375. {
  42376. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  42377. 8011eaa: 687b ldr r3, [r7, #4]
  42378. 8011eac: 3324 adds r3, #36 @ 0x24
  42379. 8011eae: 4618 mov r0, r3
  42380. 8011eb0: f001 f93e bl 8013130 <xTaskRemoveFromEventList>
  42381. 8011eb4: 4603 mov r3, r0
  42382. 8011eb6: 2b00 cmp r3, #0
  42383. 8011eb8: d001 beq.n 8011ebe <prvUnlockQueue+0x32>
  42384. {
  42385. /* The task waiting has a higher priority so record that
  42386. a context switch is required. */
  42387. vTaskMissedYield();
  42388. 8011eba: f001 fa3f bl 801333c <vTaskMissedYield>
  42389. break;
  42390. }
  42391. }
  42392. #endif /* configUSE_QUEUE_SETS */
  42393. --cTxLock;
  42394. 8011ebe: 7bfb ldrb r3, [r7, #15]
  42395. 8011ec0: 3b01 subs r3, #1
  42396. 8011ec2: b2db uxtb r3, r3
  42397. 8011ec4: 73fb strb r3, [r7, #15]
  42398. while( cTxLock > queueLOCKED_UNMODIFIED )
  42399. 8011ec6: f997 300f ldrsb.w r3, [r7, #15]
  42400. 8011eca: 2b00 cmp r3, #0
  42401. 8011ecc: dce9 bgt.n 8011ea2 <prvUnlockQueue+0x16>
  42402. 8011ece: e000 b.n 8011ed2 <prvUnlockQueue+0x46>
  42403. break;
  42404. 8011ed0: bf00 nop
  42405. }
  42406. pxQueue->cTxLock = queueUNLOCKED;
  42407. 8011ed2: 687b ldr r3, [r7, #4]
  42408. 8011ed4: 22ff movs r2, #255 @ 0xff
  42409. 8011ed6: f883 2045 strb.w r2, [r3, #69] @ 0x45
  42410. }
  42411. taskEXIT_CRITICAL();
  42412. 8011eda: f002 fbf7 bl 80146cc <vPortExitCritical>
  42413. /* Do the same for the Rx lock. */
  42414. taskENTER_CRITICAL();
  42415. 8011ede: f002 fbc3 bl 8014668 <vPortEnterCritical>
  42416. {
  42417. int8_t cRxLock = pxQueue->cRxLock;
  42418. 8011ee2: 687b ldr r3, [r7, #4]
  42419. 8011ee4: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  42420. 8011ee8: 73bb strb r3, [r7, #14]
  42421. while( cRxLock > queueLOCKED_UNMODIFIED )
  42422. 8011eea: e011 b.n 8011f10 <prvUnlockQueue+0x84>
  42423. {
  42424. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  42425. 8011eec: 687b ldr r3, [r7, #4]
  42426. 8011eee: 691b ldr r3, [r3, #16]
  42427. 8011ef0: 2b00 cmp r3, #0
  42428. 8011ef2: d012 beq.n 8011f1a <prvUnlockQueue+0x8e>
  42429. {
  42430. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  42431. 8011ef4: 687b ldr r3, [r7, #4]
  42432. 8011ef6: 3310 adds r3, #16
  42433. 8011ef8: 4618 mov r0, r3
  42434. 8011efa: f001 f919 bl 8013130 <xTaskRemoveFromEventList>
  42435. 8011efe: 4603 mov r3, r0
  42436. 8011f00: 2b00 cmp r3, #0
  42437. 8011f02: d001 beq.n 8011f08 <prvUnlockQueue+0x7c>
  42438. {
  42439. vTaskMissedYield();
  42440. 8011f04: f001 fa1a bl 801333c <vTaskMissedYield>
  42441. else
  42442. {
  42443. mtCOVERAGE_TEST_MARKER();
  42444. }
  42445. --cRxLock;
  42446. 8011f08: 7bbb ldrb r3, [r7, #14]
  42447. 8011f0a: 3b01 subs r3, #1
  42448. 8011f0c: b2db uxtb r3, r3
  42449. 8011f0e: 73bb strb r3, [r7, #14]
  42450. while( cRxLock > queueLOCKED_UNMODIFIED )
  42451. 8011f10: f997 300e ldrsb.w r3, [r7, #14]
  42452. 8011f14: 2b00 cmp r3, #0
  42453. 8011f16: dce9 bgt.n 8011eec <prvUnlockQueue+0x60>
  42454. 8011f18: e000 b.n 8011f1c <prvUnlockQueue+0x90>
  42455. }
  42456. else
  42457. {
  42458. break;
  42459. 8011f1a: bf00 nop
  42460. }
  42461. }
  42462. pxQueue->cRxLock = queueUNLOCKED;
  42463. 8011f1c: 687b ldr r3, [r7, #4]
  42464. 8011f1e: 22ff movs r2, #255 @ 0xff
  42465. 8011f20: f883 2044 strb.w r2, [r3, #68] @ 0x44
  42466. }
  42467. taskEXIT_CRITICAL();
  42468. 8011f24: f002 fbd2 bl 80146cc <vPortExitCritical>
  42469. }
  42470. 8011f28: bf00 nop
  42471. 8011f2a: 3710 adds r7, #16
  42472. 8011f2c: 46bd mov sp, r7
  42473. 8011f2e: bd80 pop {r7, pc}
  42474. 08011f30 <prvIsQueueEmpty>:
  42475. /*-----------------------------------------------------------*/
  42476. static BaseType_t prvIsQueueEmpty( const Queue_t *pxQueue )
  42477. {
  42478. 8011f30: b580 push {r7, lr}
  42479. 8011f32: b084 sub sp, #16
  42480. 8011f34: af00 add r7, sp, #0
  42481. 8011f36: 6078 str r0, [r7, #4]
  42482. BaseType_t xReturn;
  42483. taskENTER_CRITICAL();
  42484. 8011f38: f002 fb96 bl 8014668 <vPortEnterCritical>
  42485. {
  42486. if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0 )
  42487. 8011f3c: 687b ldr r3, [r7, #4]
  42488. 8011f3e: 6b9b ldr r3, [r3, #56] @ 0x38
  42489. 8011f40: 2b00 cmp r3, #0
  42490. 8011f42: d102 bne.n 8011f4a <prvIsQueueEmpty+0x1a>
  42491. {
  42492. xReturn = pdTRUE;
  42493. 8011f44: 2301 movs r3, #1
  42494. 8011f46: 60fb str r3, [r7, #12]
  42495. 8011f48: e001 b.n 8011f4e <prvIsQueueEmpty+0x1e>
  42496. }
  42497. else
  42498. {
  42499. xReturn = pdFALSE;
  42500. 8011f4a: 2300 movs r3, #0
  42501. 8011f4c: 60fb str r3, [r7, #12]
  42502. }
  42503. }
  42504. taskEXIT_CRITICAL();
  42505. 8011f4e: f002 fbbd bl 80146cc <vPortExitCritical>
  42506. return xReturn;
  42507. 8011f52: 68fb ldr r3, [r7, #12]
  42508. }
  42509. 8011f54: 4618 mov r0, r3
  42510. 8011f56: 3710 adds r7, #16
  42511. 8011f58: 46bd mov sp, r7
  42512. 8011f5a: bd80 pop {r7, pc}
  42513. 08011f5c <prvIsQueueFull>:
  42514. return xReturn;
  42515. } /*lint !e818 xQueue could not be pointer to const because it is a typedef. */
  42516. /*-----------------------------------------------------------*/
  42517. static BaseType_t prvIsQueueFull( const Queue_t *pxQueue )
  42518. {
  42519. 8011f5c: b580 push {r7, lr}
  42520. 8011f5e: b084 sub sp, #16
  42521. 8011f60: af00 add r7, sp, #0
  42522. 8011f62: 6078 str r0, [r7, #4]
  42523. BaseType_t xReturn;
  42524. taskENTER_CRITICAL();
  42525. 8011f64: f002 fb80 bl 8014668 <vPortEnterCritical>
  42526. {
  42527. if( pxQueue->uxMessagesWaiting == pxQueue->uxLength )
  42528. 8011f68: 687b ldr r3, [r7, #4]
  42529. 8011f6a: 6b9a ldr r2, [r3, #56] @ 0x38
  42530. 8011f6c: 687b ldr r3, [r7, #4]
  42531. 8011f6e: 6bdb ldr r3, [r3, #60] @ 0x3c
  42532. 8011f70: 429a cmp r2, r3
  42533. 8011f72: d102 bne.n 8011f7a <prvIsQueueFull+0x1e>
  42534. {
  42535. xReturn = pdTRUE;
  42536. 8011f74: 2301 movs r3, #1
  42537. 8011f76: 60fb str r3, [r7, #12]
  42538. 8011f78: e001 b.n 8011f7e <prvIsQueueFull+0x22>
  42539. }
  42540. else
  42541. {
  42542. xReturn = pdFALSE;
  42543. 8011f7a: 2300 movs r3, #0
  42544. 8011f7c: 60fb str r3, [r7, #12]
  42545. }
  42546. }
  42547. taskEXIT_CRITICAL();
  42548. 8011f7e: f002 fba5 bl 80146cc <vPortExitCritical>
  42549. return xReturn;
  42550. 8011f82: 68fb ldr r3, [r7, #12]
  42551. }
  42552. 8011f84: 4618 mov r0, r3
  42553. 8011f86: 3710 adds r7, #16
  42554. 8011f88: 46bd mov sp, r7
  42555. 8011f8a: bd80 pop {r7, pc}
  42556. 08011f8c <vQueueAddToRegistry>:
  42557. /*-----------------------------------------------------------*/
  42558. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  42559. void vQueueAddToRegistry( QueueHandle_t xQueue, const char *pcQueueName ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  42560. {
  42561. 8011f8c: b480 push {r7}
  42562. 8011f8e: b085 sub sp, #20
  42563. 8011f90: af00 add r7, sp, #0
  42564. 8011f92: 6078 str r0, [r7, #4]
  42565. 8011f94: 6039 str r1, [r7, #0]
  42566. UBaseType_t ux;
  42567. /* See if there is an empty space in the registry. A NULL name denotes
  42568. a free slot. */
  42569. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  42570. 8011f96: 2300 movs r3, #0
  42571. 8011f98: 60fb str r3, [r7, #12]
  42572. 8011f9a: e014 b.n 8011fc6 <vQueueAddToRegistry+0x3a>
  42573. {
  42574. if( xQueueRegistry[ ux ].pcQueueName == NULL )
  42575. 8011f9c: 4a0f ldr r2, [pc, #60] @ (8011fdc <vQueueAddToRegistry+0x50>)
  42576. 8011f9e: 68fb ldr r3, [r7, #12]
  42577. 8011fa0: f852 3033 ldr.w r3, [r2, r3, lsl #3]
  42578. 8011fa4: 2b00 cmp r3, #0
  42579. 8011fa6: d10b bne.n 8011fc0 <vQueueAddToRegistry+0x34>
  42580. {
  42581. /* Store the information on this queue. */
  42582. xQueueRegistry[ ux ].pcQueueName = pcQueueName;
  42583. 8011fa8: 490c ldr r1, [pc, #48] @ (8011fdc <vQueueAddToRegistry+0x50>)
  42584. 8011faa: 68fb ldr r3, [r7, #12]
  42585. 8011fac: 683a ldr r2, [r7, #0]
  42586. 8011fae: f841 2033 str.w r2, [r1, r3, lsl #3]
  42587. xQueueRegistry[ ux ].xHandle = xQueue;
  42588. 8011fb2: 4a0a ldr r2, [pc, #40] @ (8011fdc <vQueueAddToRegistry+0x50>)
  42589. 8011fb4: 68fb ldr r3, [r7, #12]
  42590. 8011fb6: 00db lsls r3, r3, #3
  42591. 8011fb8: 4413 add r3, r2
  42592. 8011fba: 687a ldr r2, [r7, #4]
  42593. 8011fbc: 605a str r2, [r3, #4]
  42594. traceQUEUE_REGISTRY_ADD( xQueue, pcQueueName );
  42595. break;
  42596. 8011fbe: e006 b.n 8011fce <vQueueAddToRegistry+0x42>
  42597. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  42598. 8011fc0: 68fb ldr r3, [r7, #12]
  42599. 8011fc2: 3301 adds r3, #1
  42600. 8011fc4: 60fb str r3, [r7, #12]
  42601. 8011fc6: 68fb ldr r3, [r7, #12]
  42602. 8011fc8: 2b07 cmp r3, #7
  42603. 8011fca: d9e7 bls.n 8011f9c <vQueueAddToRegistry+0x10>
  42604. else
  42605. {
  42606. mtCOVERAGE_TEST_MARKER();
  42607. }
  42608. }
  42609. }
  42610. 8011fcc: bf00 nop
  42611. 8011fce: bf00 nop
  42612. 8011fd0: 3714 adds r7, #20
  42613. 8011fd2: 46bd mov sp, r7
  42614. 8011fd4: f85d 7b04 ldr.w r7, [sp], #4
  42615. 8011fd8: 4770 bx lr
  42616. 8011fda: bf00 nop
  42617. 8011fdc: 24002db4 .word 0x24002db4
  42618. 08011fe0 <vQueueUnregisterQueue>:
  42619. /*-----------------------------------------------------------*/
  42620. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  42621. void vQueueUnregisterQueue( QueueHandle_t xQueue )
  42622. {
  42623. 8011fe0: b480 push {r7}
  42624. 8011fe2: b085 sub sp, #20
  42625. 8011fe4: af00 add r7, sp, #0
  42626. 8011fe6: 6078 str r0, [r7, #4]
  42627. UBaseType_t ux;
  42628. /* See if the handle of the queue being unregistered in actually in the
  42629. registry. */
  42630. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  42631. 8011fe8: 2300 movs r3, #0
  42632. 8011fea: 60fb str r3, [r7, #12]
  42633. 8011fec: e016 b.n 801201c <vQueueUnregisterQueue+0x3c>
  42634. {
  42635. if( xQueueRegistry[ ux ].xHandle == xQueue )
  42636. 8011fee: 4a10 ldr r2, [pc, #64] @ (8012030 <vQueueUnregisterQueue+0x50>)
  42637. 8011ff0: 68fb ldr r3, [r7, #12]
  42638. 8011ff2: 00db lsls r3, r3, #3
  42639. 8011ff4: 4413 add r3, r2
  42640. 8011ff6: 685b ldr r3, [r3, #4]
  42641. 8011ff8: 687a ldr r2, [r7, #4]
  42642. 8011ffa: 429a cmp r2, r3
  42643. 8011ffc: d10b bne.n 8012016 <vQueueUnregisterQueue+0x36>
  42644. {
  42645. /* Set the name to NULL to show that this slot if free again. */
  42646. xQueueRegistry[ ux ].pcQueueName = NULL;
  42647. 8011ffe: 4a0c ldr r2, [pc, #48] @ (8012030 <vQueueUnregisterQueue+0x50>)
  42648. 8012000: 68fb ldr r3, [r7, #12]
  42649. 8012002: 2100 movs r1, #0
  42650. 8012004: f842 1033 str.w r1, [r2, r3, lsl #3]
  42651. /* Set the handle to NULL to ensure the same queue handle cannot
  42652. appear in the registry twice if it is added, removed, then
  42653. added again. */
  42654. xQueueRegistry[ ux ].xHandle = ( QueueHandle_t ) 0;
  42655. 8012008: 4a09 ldr r2, [pc, #36] @ (8012030 <vQueueUnregisterQueue+0x50>)
  42656. 801200a: 68fb ldr r3, [r7, #12]
  42657. 801200c: 00db lsls r3, r3, #3
  42658. 801200e: 4413 add r3, r2
  42659. 8012010: 2200 movs r2, #0
  42660. 8012012: 605a str r2, [r3, #4]
  42661. break;
  42662. 8012014: e006 b.n 8012024 <vQueueUnregisterQueue+0x44>
  42663. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  42664. 8012016: 68fb ldr r3, [r7, #12]
  42665. 8012018: 3301 adds r3, #1
  42666. 801201a: 60fb str r3, [r7, #12]
  42667. 801201c: 68fb ldr r3, [r7, #12]
  42668. 801201e: 2b07 cmp r3, #7
  42669. 8012020: d9e5 bls.n 8011fee <vQueueUnregisterQueue+0xe>
  42670. {
  42671. mtCOVERAGE_TEST_MARKER();
  42672. }
  42673. }
  42674. } /*lint !e818 xQueue could not be pointer to const because it is a typedef. */
  42675. 8012022: bf00 nop
  42676. 8012024: bf00 nop
  42677. 8012026: 3714 adds r7, #20
  42678. 8012028: 46bd mov sp, r7
  42679. 801202a: f85d 7b04 ldr.w r7, [sp], #4
  42680. 801202e: 4770 bx lr
  42681. 8012030: 24002db4 .word 0x24002db4
  42682. 08012034 <vQueueWaitForMessageRestricted>:
  42683. /*-----------------------------------------------------------*/
  42684. #if ( configUSE_TIMERS == 1 )
  42685. void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
  42686. {
  42687. 8012034: b580 push {r7, lr}
  42688. 8012036: b086 sub sp, #24
  42689. 8012038: af00 add r7, sp, #0
  42690. 801203a: 60f8 str r0, [r7, #12]
  42691. 801203c: 60b9 str r1, [r7, #8]
  42692. 801203e: 607a str r2, [r7, #4]
  42693. Queue_t * const pxQueue = xQueue;
  42694. 8012040: 68fb ldr r3, [r7, #12]
  42695. 8012042: 617b str r3, [r7, #20]
  42696. will not actually cause the task to block, just place it on a blocked
  42697. list. It will not block until the scheduler is unlocked - at which
  42698. time a yield will be performed. If an item is added to the queue while
  42699. the queue is locked, and the calling task blocks on the queue, then the
  42700. calling task will be immediately unblocked when the queue is unlocked. */
  42701. prvLockQueue( pxQueue );
  42702. 8012044: f002 fb10 bl 8014668 <vPortEnterCritical>
  42703. 8012048: 697b ldr r3, [r7, #20]
  42704. 801204a: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  42705. 801204e: b25b sxtb r3, r3
  42706. 8012050: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  42707. 8012054: d103 bne.n 801205e <vQueueWaitForMessageRestricted+0x2a>
  42708. 8012056: 697b ldr r3, [r7, #20]
  42709. 8012058: 2200 movs r2, #0
  42710. 801205a: f883 2044 strb.w r2, [r3, #68] @ 0x44
  42711. 801205e: 697b ldr r3, [r7, #20]
  42712. 8012060: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  42713. 8012064: b25b sxtb r3, r3
  42714. 8012066: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  42715. 801206a: d103 bne.n 8012074 <vQueueWaitForMessageRestricted+0x40>
  42716. 801206c: 697b ldr r3, [r7, #20]
  42717. 801206e: 2200 movs r2, #0
  42718. 8012070: f883 2045 strb.w r2, [r3, #69] @ 0x45
  42719. 8012074: f002 fb2a bl 80146cc <vPortExitCritical>
  42720. if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0U )
  42721. 8012078: 697b ldr r3, [r7, #20]
  42722. 801207a: 6b9b ldr r3, [r3, #56] @ 0x38
  42723. 801207c: 2b00 cmp r3, #0
  42724. 801207e: d106 bne.n 801208e <vQueueWaitForMessageRestricted+0x5a>
  42725. {
  42726. /* There is nothing in the queue, block for the specified period. */
  42727. vTaskPlaceOnEventListRestricted( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait, xWaitIndefinitely );
  42728. 8012080: 697b ldr r3, [r7, #20]
  42729. 8012082: 3324 adds r3, #36 @ 0x24
  42730. 8012084: 687a ldr r2, [r7, #4]
  42731. 8012086: 68b9 ldr r1, [r7, #8]
  42732. 8012088: 4618 mov r0, r3
  42733. 801208a: f001 f825 bl 80130d8 <vTaskPlaceOnEventListRestricted>
  42734. }
  42735. else
  42736. {
  42737. mtCOVERAGE_TEST_MARKER();
  42738. }
  42739. prvUnlockQueue( pxQueue );
  42740. 801208e: 6978 ldr r0, [r7, #20]
  42741. 8012090: f7ff fefc bl 8011e8c <prvUnlockQueue>
  42742. }
  42743. 8012094: bf00 nop
  42744. 8012096: 3718 adds r7, #24
  42745. 8012098: 46bd mov sp, r7
  42746. 801209a: bd80 pop {r7, pc}
  42747. 0801209c <xStreamBufferGenericCreate>:
  42748. /*-----------------------------------------------------------*/
  42749. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  42750. StreamBufferHandle_t xStreamBufferGenericCreate( size_t xBufferSizeBytes, size_t xTriggerLevelBytes, BaseType_t xIsMessageBuffer )
  42751. {
  42752. 801209c: b580 push {r7, lr}
  42753. 801209e: b08c sub sp, #48 @ 0x30
  42754. 80120a0: af02 add r7, sp, #8
  42755. 80120a2: 60f8 str r0, [r7, #12]
  42756. 80120a4: 60b9 str r1, [r7, #8]
  42757. 80120a6: 607a str r2, [r7, #4]
  42758. /* In case the stream buffer is going to be used as a message buffer
  42759. (that is, it will hold discrete messages with a little meta data that
  42760. says how big the next message is) check the buffer will be large enough
  42761. to hold at least one message. */
  42762. if( xIsMessageBuffer == pdTRUE )
  42763. 80120a8: 687b ldr r3, [r7, #4]
  42764. 80120aa: 2b01 cmp r3, #1
  42765. 80120ac: d111 bne.n 80120d2 <xStreamBufferGenericCreate+0x36>
  42766. {
  42767. /* Is a message buffer but not statically allocated. */
  42768. ucFlags = sbFLAGS_IS_MESSAGE_BUFFER;
  42769. 80120ae: 2301 movs r3, #1
  42770. 80120b0: f887 3027 strb.w r3, [r7, #39] @ 0x27
  42771. configASSERT( xBufferSizeBytes > sbBYTES_TO_STORE_MESSAGE_LENGTH );
  42772. 80120b4: 68fb ldr r3, [r7, #12]
  42773. 80120b6: 2b04 cmp r3, #4
  42774. 80120b8: d81d bhi.n 80120f6 <xStreamBufferGenericCreate+0x5a>
  42775. __asm volatile
  42776. 80120ba: f04f 0350 mov.w r3, #80 @ 0x50
  42777. 80120be: f383 8811 msr BASEPRI, r3
  42778. 80120c2: f3bf 8f6f isb sy
  42779. 80120c6: f3bf 8f4f dsb sy
  42780. 80120ca: 61fb str r3, [r7, #28]
  42781. }
  42782. 80120cc: bf00 nop
  42783. 80120ce: bf00 nop
  42784. 80120d0: e7fd b.n 80120ce <xStreamBufferGenericCreate+0x32>
  42785. }
  42786. else
  42787. {
  42788. /* Not a message buffer and not statically allocated. */
  42789. ucFlags = 0;
  42790. 80120d2: 2300 movs r3, #0
  42791. 80120d4: f887 3027 strb.w r3, [r7, #39] @ 0x27
  42792. configASSERT( xBufferSizeBytes > 0 );
  42793. 80120d8: 68fb ldr r3, [r7, #12]
  42794. 80120da: 2b00 cmp r3, #0
  42795. 80120dc: d10b bne.n 80120f6 <xStreamBufferGenericCreate+0x5a>
  42796. __asm volatile
  42797. 80120de: f04f 0350 mov.w r3, #80 @ 0x50
  42798. 80120e2: f383 8811 msr BASEPRI, r3
  42799. 80120e6: f3bf 8f6f isb sy
  42800. 80120ea: f3bf 8f4f dsb sy
  42801. 80120ee: 61bb str r3, [r7, #24]
  42802. }
  42803. 80120f0: bf00 nop
  42804. 80120f2: bf00 nop
  42805. 80120f4: e7fd b.n 80120f2 <xStreamBufferGenericCreate+0x56>
  42806. }
  42807. configASSERT( xTriggerLevelBytes <= xBufferSizeBytes );
  42808. 80120f6: 68ba ldr r2, [r7, #8]
  42809. 80120f8: 68fb ldr r3, [r7, #12]
  42810. 80120fa: 429a cmp r2, r3
  42811. 80120fc: d90b bls.n 8012116 <xStreamBufferGenericCreate+0x7a>
  42812. __asm volatile
  42813. 80120fe: f04f 0350 mov.w r3, #80 @ 0x50
  42814. 8012102: f383 8811 msr BASEPRI, r3
  42815. 8012106: f3bf 8f6f isb sy
  42816. 801210a: f3bf 8f4f dsb sy
  42817. 801210e: 617b str r3, [r7, #20]
  42818. }
  42819. 8012110: bf00 nop
  42820. 8012112: bf00 nop
  42821. 8012114: e7fd b.n 8012112 <xStreamBufferGenericCreate+0x76>
  42822. /* A trigger level of 0 would cause a waiting task to unblock even when
  42823. the buffer was empty. */
  42824. if( xTriggerLevelBytes == ( size_t ) 0 )
  42825. 8012116: 68bb ldr r3, [r7, #8]
  42826. 8012118: 2b00 cmp r3, #0
  42827. 801211a: d101 bne.n 8012120 <xStreamBufferGenericCreate+0x84>
  42828. {
  42829. xTriggerLevelBytes = ( size_t ) 1;
  42830. 801211c: 2301 movs r3, #1
  42831. 801211e: 60bb str r3, [r7, #8]
  42832. and the buffer follows immediately after. The requested size is
  42833. incremented so the free space is returned as the user would expect -
  42834. this is a quirk of the implementation that means otherwise the free
  42835. space would be reported as one byte smaller than would be logically
  42836. expected. */
  42837. xBufferSizeBytes++;
  42838. 8012120: 68fb ldr r3, [r7, #12]
  42839. 8012122: 3301 adds r3, #1
  42840. 8012124: 60fb str r3, [r7, #12]
  42841. pucAllocatedMemory = ( uint8_t * ) pvPortMalloc( xBufferSizeBytes + sizeof( StreamBuffer_t ) ); /*lint !e9079 malloc() only returns void*. */
  42842. 8012126: 68fb ldr r3, [r7, #12]
  42843. 8012128: 3324 adds r3, #36 @ 0x24
  42844. 801212a: 4618 mov r0, r3
  42845. 801212c: f002 fbbe bl 80148ac <pvPortMalloc>
  42846. 8012130: 6238 str r0, [r7, #32]
  42847. if( pucAllocatedMemory != NULL )
  42848. 8012132: 6a3b ldr r3, [r7, #32]
  42849. 8012134: 2b00 cmp r3, #0
  42850. 8012136: d00a beq.n 801214e <xStreamBufferGenericCreate+0xb2>
  42851. {
  42852. prvInitialiseNewStreamBuffer( ( StreamBuffer_t * ) pucAllocatedMemory, /* Structure at the start of the allocated memory. */ /*lint !e9087 Safe cast as allocated memory is aligned. */ /*lint !e826 Area is not too small and alignment is guaranteed provided malloc() behaves as expected and returns aligned buffer. */
  42853. 8012138: 6a3b ldr r3, [r7, #32]
  42854. 801213a: f103 0124 add.w r1, r3, #36 @ 0x24
  42855. 801213e: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  42856. 8012142: 9300 str r3, [sp, #0]
  42857. 8012144: 68bb ldr r3, [r7, #8]
  42858. 8012146: 68fa ldr r2, [r7, #12]
  42859. 8012148: 6a38 ldr r0, [r7, #32]
  42860. 801214a: f000 fb0b bl 8012764 <prvInitialiseNewStreamBuffer>
  42861. else
  42862. {
  42863. traceSTREAM_BUFFER_CREATE_FAILED( xIsMessageBuffer );
  42864. }
  42865. return ( StreamBufferHandle_t ) pucAllocatedMemory; /*lint !e9087 !e826 Safe cast as allocated memory is aligned. */
  42866. 801214e: 6a3b ldr r3, [r7, #32]
  42867. }
  42868. 8012150: 4618 mov r0, r3
  42869. 8012152: 3728 adds r7, #40 @ 0x28
  42870. 8012154: 46bd mov sp, r7
  42871. 8012156: bd80 pop {r7, pc}
  42872. 08012158 <xStreamBufferSpacesAvailable>:
  42873. return xReturn;
  42874. }
  42875. /*-----------------------------------------------------------*/
  42876. size_t xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer )
  42877. {
  42878. 8012158: b480 push {r7}
  42879. 801215a: b087 sub sp, #28
  42880. 801215c: af00 add r7, sp, #0
  42881. 801215e: 6078 str r0, [r7, #4]
  42882. const StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  42883. 8012160: 687b ldr r3, [r7, #4]
  42884. 8012162: 613b str r3, [r7, #16]
  42885. size_t xSpace;
  42886. configASSERT( pxStreamBuffer );
  42887. 8012164: 693b ldr r3, [r7, #16]
  42888. 8012166: 2b00 cmp r3, #0
  42889. 8012168: d10b bne.n 8012182 <xStreamBufferSpacesAvailable+0x2a>
  42890. __asm volatile
  42891. 801216a: f04f 0350 mov.w r3, #80 @ 0x50
  42892. 801216e: f383 8811 msr BASEPRI, r3
  42893. 8012172: f3bf 8f6f isb sy
  42894. 8012176: f3bf 8f4f dsb sy
  42895. 801217a: 60fb str r3, [r7, #12]
  42896. }
  42897. 801217c: bf00 nop
  42898. 801217e: bf00 nop
  42899. 8012180: e7fd b.n 801217e <xStreamBufferSpacesAvailable+0x26>
  42900. xSpace = pxStreamBuffer->xLength + pxStreamBuffer->xTail;
  42901. 8012182: 693b ldr r3, [r7, #16]
  42902. 8012184: 689a ldr r2, [r3, #8]
  42903. 8012186: 693b ldr r3, [r7, #16]
  42904. 8012188: 681b ldr r3, [r3, #0]
  42905. 801218a: 4413 add r3, r2
  42906. 801218c: 617b str r3, [r7, #20]
  42907. xSpace -= pxStreamBuffer->xHead;
  42908. 801218e: 693b ldr r3, [r7, #16]
  42909. 8012190: 685b ldr r3, [r3, #4]
  42910. 8012192: 697a ldr r2, [r7, #20]
  42911. 8012194: 1ad3 subs r3, r2, r3
  42912. 8012196: 617b str r3, [r7, #20]
  42913. xSpace -= ( size_t ) 1;
  42914. 8012198: 697b ldr r3, [r7, #20]
  42915. 801219a: 3b01 subs r3, #1
  42916. 801219c: 617b str r3, [r7, #20]
  42917. if( xSpace >= pxStreamBuffer->xLength )
  42918. 801219e: 693b ldr r3, [r7, #16]
  42919. 80121a0: 689b ldr r3, [r3, #8]
  42920. 80121a2: 697a ldr r2, [r7, #20]
  42921. 80121a4: 429a cmp r2, r3
  42922. 80121a6: d304 bcc.n 80121b2 <xStreamBufferSpacesAvailable+0x5a>
  42923. {
  42924. xSpace -= pxStreamBuffer->xLength;
  42925. 80121a8: 693b ldr r3, [r7, #16]
  42926. 80121aa: 689b ldr r3, [r3, #8]
  42927. 80121ac: 697a ldr r2, [r7, #20]
  42928. 80121ae: 1ad3 subs r3, r2, r3
  42929. 80121b0: 617b str r3, [r7, #20]
  42930. else
  42931. {
  42932. mtCOVERAGE_TEST_MARKER();
  42933. }
  42934. return xSpace;
  42935. 80121b2: 697b ldr r3, [r7, #20]
  42936. }
  42937. 80121b4: 4618 mov r0, r3
  42938. 80121b6: 371c adds r7, #28
  42939. 80121b8: 46bd mov sp, r7
  42940. 80121ba: f85d 7b04 ldr.w r7, [sp], #4
  42941. 80121be: 4770 bx lr
  42942. 080121c0 <xStreamBufferSend>:
  42943. size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer,
  42944. const void *pvTxData,
  42945. size_t xDataLengthBytes,
  42946. TickType_t xTicksToWait )
  42947. {
  42948. 80121c0: b580 push {r7, lr}
  42949. 80121c2: b090 sub sp, #64 @ 0x40
  42950. 80121c4: af02 add r7, sp, #8
  42951. 80121c6: 60f8 str r0, [r7, #12]
  42952. 80121c8: 60b9 str r1, [r7, #8]
  42953. 80121ca: 607a str r2, [r7, #4]
  42954. 80121cc: 603b str r3, [r7, #0]
  42955. StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  42956. 80121ce: 68fb ldr r3, [r7, #12]
  42957. 80121d0: 62fb str r3, [r7, #44] @ 0x2c
  42958. size_t xReturn, xSpace = 0;
  42959. 80121d2: 2300 movs r3, #0
  42960. 80121d4: 637b str r3, [r7, #52] @ 0x34
  42961. size_t xRequiredSpace = xDataLengthBytes;
  42962. 80121d6: 687b ldr r3, [r7, #4]
  42963. 80121d8: 633b str r3, [r7, #48] @ 0x30
  42964. TimeOut_t xTimeOut;
  42965. configASSERT( pvTxData );
  42966. 80121da: 68bb ldr r3, [r7, #8]
  42967. 80121dc: 2b00 cmp r3, #0
  42968. 80121de: d10b bne.n 80121f8 <xStreamBufferSend+0x38>
  42969. __asm volatile
  42970. 80121e0: f04f 0350 mov.w r3, #80 @ 0x50
  42971. 80121e4: f383 8811 msr BASEPRI, r3
  42972. 80121e8: f3bf 8f6f isb sy
  42973. 80121ec: f3bf 8f4f dsb sy
  42974. 80121f0: 627b str r3, [r7, #36] @ 0x24
  42975. }
  42976. 80121f2: bf00 nop
  42977. 80121f4: bf00 nop
  42978. 80121f6: e7fd b.n 80121f4 <xStreamBufferSend+0x34>
  42979. configASSERT( pxStreamBuffer );
  42980. 80121f8: 6afb ldr r3, [r7, #44] @ 0x2c
  42981. 80121fa: 2b00 cmp r3, #0
  42982. 80121fc: d10b bne.n 8012216 <xStreamBufferSend+0x56>
  42983. __asm volatile
  42984. 80121fe: f04f 0350 mov.w r3, #80 @ 0x50
  42985. 8012202: f383 8811 msr BASEPRI, r3
  42986. 8012206: f3bf 8f6f isb sy
  42987. 801220a: f3bf 8f4f dsb sy
  42988. 801220e: 623b str r3, [r7, #32]
  42989. }
  42990. 8012210: bf00 nop
  42991. 8012212: bf00 nop
  42992. 8012214: e7fd b.n 8012212 <xStreamBufferSend+0x52>
  42993. /* This send function is used to write to both message buffers and stream
  42994. buffers. If this is a message buffer then the space needed must be
  42995. increased by the amount of bytes needed to store the length of the
  42996. message. */
  42997. if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 )
  42998. 8012216: 6afb ldr r3, [r7, #44] @ 0x2c
  42999. 8012218: 7f1b ldrb r3, [r3, #28]
  43000. 801221a: f003 0301 and.w r3, r3, #1
  43001. 801221e: 2b00 cmp r3, #0
  43002. 8012220: d012 beq.n 8012248 <xStreamBufferSend+0x88>
  43003. {
  43004. xRequiredSpace += sbBYTES_TO_STORE_MESSAGE_LENGTH;
  43005. 8012222: 6b3b ldr r3, [r7, #48] @ 0x30
  43006. 8012224: 3304 adds r3, #4
  43007. 8012226: 633b str r3, [r7, #48] @ 0x30
  43008. /* Overflow? */
  43009. configASSERT( xRequiredSpace > xDataLengthBytes );
  43010. 8012228: 6b3a ldr r2, [r7, #48] @ 0x30
  43011. 801222a: 687b ldr r3, [r7, #4]
  43012. 801222c: 429a cmp r2, r3
  43013. 801222e: d80b bhi.n 8012248 <xStreamBufferSend+0x88>
  43014. __asm volatile
  43015. 8012230: f04f 0350 mov.w r3, #80 @ 0x50
  43016. 8012234: f383 8811 msr BASEPRI, r3
  43017. 8012238: f3bf 8f6f isb sy
  43018. 801223c: f3bf 8f4f dsb sy
  43019. 8012240: 61fb str r3, [r7, #28]
  43020. }
  43021. 8012242: bf00 nop
  43022. 8012244: bf00 nop
  43023. 8012246: e7fd b.n 8012244 <xStreamBufferSend+0x84>
  43024. else
  43025. {
  43026. mtCOVERAGE_TEST_MARKER();
  43027. }
  43028. if( xTicksToWait != ( TickType_t ) 0 )
  43029. 8012248: 683b ldr r3, [r7, #0]
  43030. 801224a: 2b00 cmp r3, #0
  43031. 801224c: d03f beq.n 80122ce <xStreamBufferSend+0x10e>
  43032. {
  43033. vTaskSetTimeOutState( &xTimeOut );
  43034. 801224e: f107 0310 add.w r3, r7, #16
  43035. 8012252: 4618 mov r0, r3
  43036. 8012254: f000 ffd0 bl 80131f8 <vTaskSetTimeOutState>
  43037. do
  43038. {
  43039. /* Wait until the required number of bytes are free in the message
  43040. buffer. */
  43041. taskENTER_CRITICAL();
  43042. 8012258: f002 fa06 bl 8014668 <vPortEnterCritical>
  43043. {
  43044. xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
  43045. 801225c: 6af8 ldr r0, [r7, #44] @ 0x2c
  43046. 801225e: f7ff ff7b bl 8012158 <xStreamBufferSpacesAvailable>
  43047. 8012262: 6378 str r0, [r7, #52] @ 0x34
  43048. if( xSpace < xRequiredSpace )
  43049. 8012264: 6b7a ldr r2, [r7, #52] @ 0x34
  43050. 8012266: 6b3b ldr r3, [r7, #48] @ 0x30
  43051. 8012268: 429a cmp r2, r3
  43052. 801226a: d218 bcs.n 801229e <xStreamBufferSend+0xde>
  43053. {
  43054. /* Clear notification state as going to wait for space. */
  43055. ( void ) xTaskNotifyStateClear( NULL );
  43056. 801226c: 2000 movs r0, #0
  43057. 801226e: f001 fcf3 bl 8013c58 <xTaskNotifyStateClear>
  43058. /* Should only be one writer. */
  43059. configASSERT( pxStreamBuffer->xTaskWaitingToSend == NULL );
  43060. 8012272: 6afb ldr r3, [r7, #44] @ 0x2c
  43061. 8012274: 695b ldr r3, [r3, #20]
  43062. 8012276: 2b00 cmp r3, #0
  43063. 8012278: d00b beq.n 8012292 <xStreamBufferSend+0xd2>
  43064. __asm volatile
  43065. 801227a: f04f 0350 mov.w r3, #80 @ 0x50
  43066. 801227e: f383 8811 msr BASEPRI, r3
  43067. 8012282: f3bf 8f6f isb sy
  43068. 8012286: f3bf 8f4f dsb sy
  43069. 801228a: 61bb str r3, [r7, #24]
  43070. }
  43071. 801228c: bf00 nop
  43072. 801228e: bf00 nop
  43073. 8012290: e7fd b.n 801228e <xStreamBufferSend+0xce>
  43074. pxStreamBuffer->xTaskWaitingToSend = xTaskGetCurrentTaskHandle();
  43075. 8012292: f001 f93b bl 801350c <xTaskGetCurrentTaskHandle>
  43076. 8012296: 4602 mov r2, r0
  43077. 8012298: 6afb ldr r3, [r7, #44] @ 0x2c
  43078. 801229a: 615a str r2, [r3, #20]
  43079. 801229c: e002 b.n 80122a4 <xStreamBufferSend+0xe4>
  43080. }
  43081. else
  43082. {
  43083. taskEXIT_CRITICAL();
  43084. 801229e: f002 fa15 bl 80146cc <vPortExitCritical>
  43085. break;
  43086. 80122a2: e014 b.n 80122ce <xStreamBufferSend+0x10e>
  43087. }
  43088. }
  43089. taskEXIT_CRITICAL();
  43090. 80122a4: f002 fa12 bl 80146cc <vPortExitCritical>
  43091. traceBLOCKING_ON_STREAM_BUFFER_SEND( xStreamBuffer );
  43092. ( void ) xTaskNotifyWait( ( uint32_t ) 0, ( uint32_t ) 0, NULL, xTicksToWait );
  43093. 80122a8: 683b ldr r3, [r7, #0]
  43094. 80122aa: 2200 movs r2, #0
  43095. 80122ac: 2100 movs r1, #0
  43096. 80122ae: 2000 movs r0, #0
  43097. 80122b0: f001 faca bl 8013848 <xTaskNotifyWait>
  43098. pxStreamBuffer->xTaskWaitingToSend = NULL;
  43099. 80122b4: 6afb ldr r3, [r7, #44] @ 0x2c
  43100. 80122b6: 2200 movs r2, #0
  43101. 80122b8: 615a str r2, [r3, #20]
  43102. } while( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE );
  43103. 80122ba: 463a mov r2, r7
  43104. 80122bc: f107 0310 add.w r3, r7, #16
  43105. 80122c0: 4611 mov r1, r2
  43106. 80122c2: 4618 mov r0, r3
  43107. 80122c4: f000 ffd6 bl 8013274 <xTaskCheckForTimeOut>
  43108. 80122c8: 4603 mov r3, r0
  43109. 80122ca: 2b00 cmp r3, #0
  43110. 80122cc: d0c4 beq.n 8012258 <xStreamBufferSend+0x98>
  43111. else
  43112. {
  43113. mtCOVERAGE_TEST_MARKER();
  43114. }
  43115. if( xSpace == ( size_t ) 0 )
  43116. 80122ce: 6b7b ldr r3, [r7, #52] @ 0x34
  43117. 80122d0: 2b00 cmp r3, #0
  43118. 80122d2: d103 bne.n 80122dc <xStreamBufferSend+0x11c>
  43119. {
  43120. xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
  43121. 80122d4: 6af8 ldr r0, [r7, #44] @ 0x2c
  43122. 80122d6: f7ff ff3f bl 8012158 <xStreamBufferSpacesAvailable>
  43123. 80122da: 6378 str r0, [r7, #52] @ 0x34
  43124. else
  43125. {
  43126. mtCOVERAGE_TEST_MARKER();
  43127. }
  43128. xReturn = prvWriteMessageToBuffer( pxStreamBuffer, pvTxData, xDataLengthBytes, xSpace, xRequiredSpace );
  43129. 80122dc: 6b3b ldr r3, [r7, #48] @ 0x30
  43130. 80122de: 9300 str r3, [sp, #0]
  43131. 80122e0: 6b7b ldr r3, [r7, #52] @ 0x34
  43132. 80122e2: 687a ldr r2, [r7, #4]
  43133. 80122e4: 68b9 ldr r1, [r7, #8]
  43134. 80122e6: 6af8 ldr r0, [r7, #44] @ 0x2c
  43135. 80122e8: f000 f823 bl 8012332 <prvWriteMessageToBuffer>
  43136. 80122ec: 62b8 str r0, [r7, #40] @ 0x28
  43137. if( xReturn > ( size_t ) 0 )
  43138. 80122ee: 6abb ldr r3, [r7, #40] @ 0x28
  43139. 80122f0: 2b00 cmp r3, #0
  43140. 80122f2: d019 beq.n 8012328 <xStreamBufferSend+0x168>
  43141. {
  43142. traceSTREAM_BUFFER_SEND( xStreamBuffer, xReturn );
  43143. /* Was a task waiting for the data? */
  43144. if( prvBytesInBuffer( pxStreamBuffer ) >= pxStreamBuffer->xTriggerLevelBytes )
  43145. 80122f4: 6af8 ldr r0, [r7, #44] @ 0x2c
  43146. 80122f6: f000 fa15 bl 8012724 <prvBytesInBuffer>
  43147. 80122fa: 4602 mov r2, r0
  43148. 80122fc: 6afb ldr r3, [r7, #44] @ 0x2c
  43149. 80122fe: 68db ldr r3, [r3, #12]
  43150. 8012300: 429a cmp r2, r3
  43151. 8012302: d311 bcc.n 8012328 <xStreamBufferSend+0x168>
  43152. {
  43153. sbSEND_COMPLETED( pxStreamBuffer );
  43154. 8012304: f000 fcc6 bl 8012c94 <vTaskSuspendAll>
  43155. 8012308: 6afb ldr r3, [r7, #44] @ 0x2c
  43156. 801230a: 691b ldr r3, [r3, #16]
  43157. 801230c: 2b00 cmp r3, #0
  43158. 801230e: d009 beq.n 8012324 <xStreamBufferSend+0x164>
  43159. 8012310: 6afb ldr r3, [r7, #44] @ 0x2c
  43160. 8012312: 6918 ldr r0, [r3, #16]
  43161. 8012314: 2300 movs r3, #0
  43162. 8012316: 2200 movs r2, #0
  43163. 8012318: 2100 movs r1, #0
  43164. 801231a: f001 faf5 bl 8013908 <xTaskGenericNotify>
  43165. 801231e: 6afb ldr r3, [r7, #44] @ 0x2c
  43166. 8012320: 2200 movs r2, #0
  43167. 8012322: 611a str r2, [r3, #16]
  43168. 8012324: f000 fcc4 bl 8012cb0 <xTaskResumeAll>
  43169. {
  43170. mtCOVERAGE_TEST_MARKER();
  43171. traceSTREAM_BUFFER_SEND_FAILED( xStreamBuffer );
  43172. }
  43173. return xReturn;
  43174. 8012328: 6abb ldr r3, [r7, #40] @ 0x28
  43175. }
  43176. 801232a: 4618 mov r0, r3
  43177. 801232c: 3738 adds r7, #56 @ 0x38
  43178. 801232e: 46bd mov sp, r7
  43179. 8012330: bd80 pop {r7, pc}
  43180. 08012332 <prvWriteMessageToBuffer>:
  43181. static size_t prvWriteMessageToBuffer( StreamBuffer_t * const pxStreamBuffer,
  43182. const void * pvTxData,
  43183. size_t xDataLengthBytes,
  43184. size_t xSpace,
  43185. size_t xRequiredSpace )
  43186. {
  43187. 8012332: b580 push {r7, lr}
  43188. 8012334: b086 sub sp, #24
  43189. 8012336: af00 add r7, sp, #0
  43190. 8012338: 60f8 str r0, [r7, #12]
  43191. 801233a: 60b9 str r1, [r7, #8]
  43192. 801233c: 607a str r2, [r7, #4]
  43193. 801233e: 603b str r3, [r7, #0]
  43194. BaseType_t xShouldWrite;
  43195. size_t xReturn;
  43196. if( xSpace == ( size_t ) 0 )
  43197. 8012340: 683b ldr r3, [r7, #0]
  43198. 8012342: 2b00 cmp r3, #0
  43199. 8012344: d102 bne.n 801234c <prvWriteMessageToBuffer+0x1a>
  43200. {
  43201. /* Doesn't matter if this is a stream buffer or a message buffer, there
  43202. is no space to write. */
  43203. xShouldWrite = pdFALSE;
  43204. 8012346: 2300 movs r3, #0
  43205. 8012348: 617b str r3, [r7, #20]
  43206. 801234a: e01d b.n 8012388 <prvWriteMessageToBuffer+0x56>
  43207. }
  43208. else if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) == ( uint8_t ) 0 )
  43209. 801234c: 68fb ldr r3, [r7, #12]
  43210. 801234e: 7f1b ldrb r3, [r3, #28]
  43211. 8012350: f003 0301 and.w r3, r3, #1
  43212. 8012354: 2b00 cmp r3, #0
  43213. 8012356: d108 bne.n 801236a <prvWriteMessageToBuffer+0x38>
  43214. {
  43215. /* This is a stream buffer, as opposed to a message buffer, so writing a
  43216. stream of bytes rather than discrete messages. Write as many bytes as
  43217. possible. */
  43218. xShouldWrite = pdTRUE;
  43219. 8012358: 2301 movs r3, #1
  43220. 801235a: 617b str r3, [r7, #20]
  43221. xDataLengthBytes = configMIN( xDataLengthBytes, xSpace );
  43222. 801235c: 687a ldr r2, [r7, #4]
  43223. 801235e: 683b ldr r3, [r7, #0]
  43224. 8012360: 4293 cmp r3, r2
  43225. 8012362: bf28 it cs
  43226. 8012364: 4613 movcs r3, r2
  43227. 8012366: 607b str r3, [r7, #4]
  43228. 8012368: e00e b.n 8012388 <prvWriteMessageToBuffer+0x56>
  43229. }
  43230. else if( xSpace >= xRequiredSpace )
  43231. 801236a: 683a ldr r2, [r7, #0]
  43232. 801236c: 6a3b ldr r3, [r7, #32]
  43233. 801236e: 429a cmp r2, r3
  43234. 8012370: d308 bcc.n 8012384 <prvWriteMessageToBuffer+0x52>
  43235. {
  43236. /* This is a message buffer, as opposed to a stream buffer, and there
  43237. is enough space to write both the message length and the message itself
  43238. into the buffer. Start by writing the length of the data, the data
  43239. itself will be written later in this function. */
  43240. xShouldWrite = pdTRUE;
  43241. 8012372: 2301 movs r3, #1
  43242. 8012374: 617b str r3, [r7, #20]
  43243. ( void ) prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) &( xDataLengthBytes ), sbBYTES_TO_STORE_MESSAGE_LENGTH );
  43244. 8012376: 1d3b adds r3, r7, #4
  43245. 8012378: 2204 movs r2, #4
  43246. 801237a: 4619 mov r1, r3
  43247. 801237c: 68f8 ldr r0, [r7, #12]
  43248. 801237e: f000 f8df bl 8012540 <prvWriteBytesToBuffer>
  43249. 8012382: e001 b.n 8012388 <prvWriteMessageToBuffer+0x56>
  43250. }
  43251. else
  43252. {
  43253. /* There is space available, but not enough space. */
  43254. xShouldWrite = pdFALSE;
  43255. 8012384: 2300 movs r3, #0
  43256. 8012386: 617b str r3, [r7, #20]
  43257. }
  43258. if( xShouldWrite != pdFALSE )
  43259. 8012388: 697b ldr r3, [r7, #20]
  43260. 801238a: 2b00 cmp r3, #0
  43261. 801238c: d007 beq.n 801239e <prvWriteMessageToBuffer+0x6c>
  43262. {
  43263. /* Writes the data itself. */
  43264. xReturn = prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) pvTxData, xDataLengthBytes ); /*lint !e9079 Storage buffer is implemented as uint8_t for ease of sizing, alighment and access. */
  43265. 801238e: 687b ldr r3, [r7, #4]
  43266. 8012390: 461a mov r2, r3
  43267. 8012392: 68b9 ldr r1, [r7, #8]
  43268. 8012394: 68f8 ldr r0, [r7, #12]
  43269. 8012396: f000 f8d3 bl 8012540 <prvWriteBytesToBuffer>
  43270. 801239a: 6138 str r0, [r7, #16]
  43271. 801239c: e001 b.n 80123a2 <prvWriteMessageToBuffer+0x70>
  43272. }
  43273. else
  43274. {
  43275. xReturn = 0;
  43276. 801239e: 2300 movs r3, #0
  43277. 80123a0: 613b str r3, [r7, #16]
  43278. }
  43279. return xReturn;
  43280. 80123a2: 693b ldr r3, [r7, #16]
  43281. }
  43282. 80123a4: 4618 mov r0, r3
  43283. 80123a6: 3718 adds r7, #24
  43284. 80123a8: 46bd mov sp, r7
  43285. 80123aa: bd80 pop {r7, pc}
  43286. 080123ac <xStreamBufferReceive>:
  43287. size_t xStreamBufferReceive( StreamBufferHandle_t xStreamBuffer,
  43288. void *pvRxData,
  43289. size_t xBufferLengthBytes,
  43290. TickType_t xTicksToWait )
  43291. {
  43292. 80123ac: b580 push {r7, lr}
  43293. 80123ae: b08e sub sp, #56 @ 0x38
  43294. 80123b0: af02 add r7, sp, #8
  43295. 80123b2: 60f8 str r0, [r7, #12]
  43296. 80123b4: 60b9 str r1, [r7, #8]
  43297. 80123b6: 607a str r2, [r7, #4]
  43298. 80123b8: 603b str r3, [r7, #0]
  43299. StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  43300. 80123ba: 68fb ldr r3, [r7, #12]
  43301. 80123bc: 623b str r3, [r7, #32]
  43302. size_t xReceivedLength = 0, xBytesAvailable, xBytesToStoreMessageLength;
  43303. 80123be: 2300 movs r3, #0
  43304. 80123c0: 62fb str r3, [r7, #44] @ 0x2c
  43305. configASSERT( pvRxData );
  43306. 80123c2: 68bb ldr r3, [r7, #8]
  43307. 80123c4: 2b00 cmp r3, #0
  43308. 80123c6: d10b bne.n 80123e0 <xStreamBufferReceive+0x34>
  43309. __asm volatile
  43310. 80123c8: f04f 0350 mov.w r3, #80 @ 0x50
  43311. 80123cc: f383 8811 msr BASEPRI, r3
  43312. 80123d0: f3bf 8f6f isb sy
  43313. 80123d4: f3bf 8f4f dsb sy
  43314. 80123d8: 61fb str r3, [r7, #28]
  43315. }
  43316. 80123da: bf00 nop
  43317. 80123dc: bf00 nop
  43318. 80123de: e7fd b.n 80123dc <xStreamBufferReceive+0x30>
  43319. configASSERT( pxStreamBuffer );
  43320. 80123e0: 6a3b ldr r3, [r7, #32]
  43321. 80123e2: 2b00 cmp r3, #0
  43322. 80123e4: d10b bne.n 80123fe <xStreamBufferReceive+0x52>
  43323. __asm volatile
  43324. 80123e6: f04f 0350 mov.w r3, #80 @ 0x50
  43325. 80123ea: f383 8811 msr BASEPRI, r3
  43326. 80123ee: f3bf 8f6f isb sy
  43327. 80123f2: f3bf 8f4f dsb sy
  43328. 80123f6: 61bb str r3, [r7, #24]
  43329. }
  43330. 80123f8: bf00 nop
  43331. 80123fa: bf00 nop
  43332. 80123fc: e7fd b.n 80123fa <xStreamBufferReceive+0x4e>
  43333. /* This receive function is used by both message buffers, which store
  43334. discrete messages, and stream buffers, which store a continuous stream of
  43335. bytes. Discrete messages include an additional
  43336. sbBYTES_TO_STORE_MESSAGE_LENGTH bytes that hold the length of the
  43337. message. */
  43338. if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 )
  43339. 80123fe: 6a3b ldr r3, [r7, #32]
  43340. 8012400: 7f1b ldrb r3, [r3, #28]
  43341. 8012402: f003 0301 and.w r3, r3, #1
  43342. 8012406: 2b00 cmp r3, #0
  43343. 8012408: d002 beq.n 8012410 <xStreamBufferReceive+0x64>
  43344. {
  43345. xBytesToStoreMessageLength = sbBYTES_TO_STORE_MESSAGE_LENGTH;
  43346. 801240a: 2304 movs r3, #4
  43347. 801240c: 627b str r3, [r7, #36] @ 0x24
  43348. 801240e: e001 b.n 8012414 <xStreamBufferReceive+0x68>
  43349. }
  43350. else
  43351. {
  43352. xBytesToStoreMessageLength = 0;
  43353. 8012410: 2300 movs r3, #0
  43354. 8012412: 627b str r3, [r7, #36] @ 0x24
  43355. }
  43356. if( xTicksToWait != ( TickType_t ) 0 )
  43357. 8012414: 683b ldr r3, [r7, #0]
  43358. 8012416: 2b00 cmp r3, #0
  43359. 8012418: d035 beq.n 8012486 <xStreamBufferReceive+0xda>
  43360. {
  43361. /* Checking if there is data and clearing the notification state must be
  43362. performed atomically. */
  43363. taskENTER_CRITICAL();
  43364. 801241a: f002 f925 bl 8014668 <vPortEnterCritical>
  43365. {
  43366. xBytesAvailable = prvBytesInBuffer( pxStreamBuffer );
  43367. 801241e: 6a38 ldr r0, [r7, #32]
  43368. 8012420: f000 f980 bl 8012724 <prvBytesInBuffer>
  43369. 8012424: 62b8 str r0, [r7, #40] @ 0x28
  43370. /* If this function was invoked by a message buffer read then
  43371. xBytesToStoreMessageLength holds the number of bytes used to hold
  43372. the length of the next discrete message. If this function was
  43373. invoked by a stream buffer read then xBytesToStoreMessageLength will
  43374. be 0. */
  43375. if( xBytesAvailable <= xBytesToStoreMessageLength )
  43376. 8012426: 6aba ldr r2, [r7, #40] @ 0x28
  43377. 8012428: 6a7b ldr r3, [r7, #36] @ 0x24
  43378. 801242a: 429a cmp r2, r3
  43379. 801242c: d817 bhi.n 801245e <xStreamBufferReceive+0xb2>
  43380. {
  43381. /* Clear notification state as going to wait for data. */
  43382. ( void ) xTaskNotifyStateClear( NULL );
  43383. 801242e: 2000 movs r0, #0
  43384. 8012430: f001 fc12 bl 8013c58 <xTaskNotifyStateClear>
  43385. /* Should only be one reader. */
  43386. configASSERT( pxStreamBuffer->xTaskWaitingToReceive == NULL );
  43387. 8012434: 6a3b ldr r3, [r7, #32]
  43388. 8012436: 691b ldr r3, [r3, #16]
  43389. 8012438: 2b00 cmp r3, #0
  43390. 801243a: d00b beq.n 8012454 <xStreamBufferReceive+0xa8>
  43391. __asm volatile
  43392. 801243c: f04f 0350 mov.w r3, #80 @ 0x50
  43393. 8012440: f383 8811 msr BASEPRI, r3
  43394. 8012444: f3bf 8f6f isb sy
  43395. 8012448: f3bf 8f4f dsb sy
  43396. 801244c: 617b str r3, [r7, #20]
  43397. }
  43398. 801244e: bf00 nop
  43399. 8012450: bf00 nop
  43400. 8012452: e7fd b.n 8012450 <xStreamBufferReceive+0xa4>
  43401. pxStreamBuffer->xTaskWaitingToReceive = xTaskGetCurrentTaskHandle();
  43402. 8012454: f001 f85a bl 801350c <xTaskGetCurrentTaskHandle>
  43403. 8012458: 4602 mov r2, r0
  43404. 801245a: 6a3b ldr r3, [r7, #32]
  43405. 801245c: 611a str r2, [r3, #16]
  43406. else
  43407. {
  43408. mtCOVERAGE_TEST_MARKER();
  43409. }
  43410. }
  43411. taskEXIT_CRITICAL();
  43412. 801245e: f002 f935 bl 80146cc <vPortExitCritical>
  43413. if( xBytesAvailable <= xBytesToStoreMessageLength )
  43414. 8012462: 6aba ldr r2, [r7, #40] @ 0x28
  43415. 8012464: 6a7b ldr r3, [r7, #36] @ 0x24
  43416. 8012466: 429a cmp r2, r3
  43417. 8012468: d811 bhi.n 801248e <xStreamBufferReceive+0xe2>
  43418. {
  43419. /* Wait for data to be available. */
  43420. traceBLOCKING_ON_STREAM_BUFFER_RECEIVE( xStreamBuffer );
  43421. ( void ) xTaskNotifyWait( ( uint32_t ) 0, ( uint32_t ) 0, NULL, xTicksToWait );
  43422. 801246a: 683b ldr r3, [r7, #0]
  43423. 801246c: 2200 movs r2, #0
  43424. 801246e: 2100 movs r1, #0
  43425. 8012470: 2000 movs r0, #0
  43426. 8012472: f001 f9e9 bl 8013848 <xTaskNotifyWait>
  43427. pxStreamBuffer->xTaskWaitingToReceive = NULL;
  43428. 8012476: 6a3b ldr r3, [r7, #32]
  43429. 8012478: 2200 movs r2, #0
  43430. 801247a: 611a str r2, [r3, #16]
  43431. /* Recheck the data available after blocking. */
  43432. xBytesAvailable = prvBytesInBuffer( pxStreamBuffer );
  43433. 801247c: 6a38 ldr r0, [r7, #32]
  43434. 801247e: f000 f951 bl 8012724 <prvBytesInBuffer>
  43435. 8012482: 62b8 str r0, [r7, #40] @ 0x28
  43436. 8012484: e003 b.n 801248e <xStreamBufferReceive+0xe2>
  43437. mtCOVERAGE_TEST_MARKER();
  43438. }
  43439. }
  43440. else
  43441. {
  43442. xBytesAvailable = prvBytesInBuffer( pxStreamBuffer );
  43443. 8012486: 6a38 ldr r0, [r7, #32]
  43444. 8012488: f000 f94c bl 8012724 <prvBytesInBuffer>
  43445. 801248c: 62b8 str r0, [r7, #40] @ 0x28
  43446. /* Whether receiving a discrete message (where xBytesToStoreMessageLength
  43447. holds the number of bytes used to store the message length) or a stream of
  43448. bytes (where xBytesToStoreMessageLength is zero), the number of bytes
  43449. available must be greater than xBytesToStoreMessageLength to be able to
  43450. read bytes from the buffer. */
  43451. if( xBytesAvailable > xBytesToStoreMessageLength )
  43452. 801248e: 6aba ldr r2, [r7, #40] @ 0x28
  43453. 8012490: 6a7b ldr r3, [r7, #36] @ 0x24
  43454. 8012492: 429a cmp r2, r3
  43455. 8012494: d91d bls.n 80124d2 <xStreamBufferReceive+0x126>
  43456. {
  43457. xReceivedLength = prvReadMessageFromBuffer( pxStreamBuffer, pvRxData, xBufferLengthBytes, xBytesAvailable, xBytesToStoreMessageLength );
  43458. 8012496: 6a7b ldr r3, [r7, #36] @ 0x24
  43459. 8012498: 9300 str r3, [sp, #0]
  43460. 801249a: 6abb ldr r3, [r7, #40] @ 0x28
  43461. 801249c: 687a ldr r2, [r7, #4]
  43462. 801249e: 68b9 ldr r1, [r7, #8]
  43463. 80124a0: 6a38 ldr r0, [r7, #32]
  43464. 80124a2: f000 f81b bl 80124dc <prvReadMessageFromBuffer>
  43465. 80124a6: 62f8 str r0, [r7, #44] @ 0x2c
  43466. /* Was a task waiting for space in the buffer? */
  43467. if( xReceivedLength != ( size_t ) 0 )
  43468. 80124a8: 6afb ldr r3, [r7, #44] @ 0x2c
  43469. 80124aa: 2b00 cmp r3, #0
  43470. 80124ac: d011 beq.n 80124d2 <xStreamBufferReceive+0x126>
  43471. {
  43472. traceSTREAM_BUFFER_RECEIVE( xStreamBuffer, xReceivedLength );
  43473. sbRECEIVE_COMPLETED( pxStreamBuffer );
  43474. 80124ae: f000 fbf1 bl 8012c94 <vTaskSuspendAll>
  43475. 80124b2: 6a3b ldr r3, [r7, #32]
  43476. 80124b4: 695b ldr r3, [r3, #20]
  43477. 80124b6: 2b00 cmp r3, #0
  43478. 80124b8: d009 beq.n 80124ce <xStreamBufferReceive+0x122>
  43479. 80124ba: 6a3b ldr r3, [r7, #32]
  43480. 80124bc: 6958 ldr r0, [r3, #20]
  43481. 80124be: 2300 movs r3, #0
  43482. 80124c0: 2200 movs r2, #0
  43483. 80124c2: 2100 movs r1, #0
  43484. 80124c4: f001 fa20 bl 8013908 <xTaskGenericNotify>
  43485. 80124c8: 6a3b ldr r3, [r7, #32]
  43486. 80124ca: 2200 movs r2, #0
  43487. 80124cc: 615a str r2, [r3, #20]
  43488. 80124ce: f000 fbef bl 8012cb0 <xTaskResumeAll>
  43489. {
  43490. traceSTREAM_BUFFER_RECEIVE_FAILED( xStreamBuffer );
  43491. mtCOVERAGE_TEST_MARKER();
  43492. }
  43493. return xReceivedLength;
  43494. 80124d2: 6afb ldr r3, [r7, #44] @ 0x2c
  43495. }
  43496. 80124d4: 4618 mov r0, r3
  43497. 80124d6: 3730 adds r7, #48 @ 0x30
  43498. 80124d8: 46bd mov sp, r7
  43499. 80124da: bd80 pop {r7, pc}
  43500. 080124dc <prvReadMessageFromBuffer>:
  43501. static size_t prvReadMessageFromBuffer( StreamBuffer_t *pxStreamBuffer,
  43502. void *pvRxData,
  43503. size_t xBufferLengthBytes,
  43504. size_t xBytesAvailable,
  43505. size_t xBytesToStoreMessageLength )
  43506. {
  43507. 80124dc: b580 push {r7, lr}
  43508. 80124de: b088 sub sp, #32
  43509. 80124e0: af00 add r7, sp, #0
  43510. 80124e2: 60f8 str r0, [r7, #12]
  43511. 80124e4: 60b9 str r1, [r7, #8]
  43512. 80124e6: 607a str r2, [r7, #4]
  43513. 80124e8: 603b str r3, [r7, #0]
  43514. size_t xOriginalTail, xReceivedLength, xNextMessageLength;
  43515. configMESSAGE_BUFFER_LENGTH_TYPE xTempNextMessageLength;
  43516. if( xBytesToStoreMessageLength != ( size_t ) 0 )
  43517. 80124ea: 6abb ldr r3, [r7, #40] @ 0x28
  43518. 80124ec: 2b00 cmp r3, #0
  43519. 80124ee: d019 beq.n 8012524 <prvReadMessageFromBuffer+0x48>
  43520. {
  43521. /* A discrete message is being received. First receive the length
  43522. of the message. A copy of the tail is stored so the buffer can be
  43523. returned to its prior state if the length of the message is too
  43524. large for the provided buffer. */
  43525. xOriginalTail = pxStreamBuffer->xTail;
  43526. 80124f0: 68fb ldr r3, [r7, #12]
  43527. 80124f2: 681b ldr r3, [r3, #0]
  43528. 80124f4: 61bb str r3, [r7, #24]
  43529. ( void ) prvReadBytesFromBuffer( pxStreamBuffer, ( uint8_t * ) &xTempNextMessageLength, xBytesToStoreMessageLength, xBytesAvailable );
  43530. 80124f6: f107 0110 add.w r1, r7, #16
  43531. 80124fa: 683b ldr r3, [r7, #0]
  43532. 80124fc: 6aba ldr r2, [r7, #40] @ 0x28
  43533. 80124fe: 68f8 ldr r0, [r7, #12]
  43534. 8012500: f000 f893 bl 801262a <prvReadBytesFromBuffer>
  43535. xNextMessageLength = ( size_t ) xTempNextMessageLength;
  43536. 8012504: 693b ldr r3, [r7, #16]
  43537. 8012506: 61fb str r3, [r7, #28]
  43538. /* Reduce the number of bytes available by the number of bytes just
  43539. read out. */
  43540. xBytesAvailable -= xBytesToStoreMessageLength;
  43541. 8012508: 683a ldr r2, [r7, #0]
  43542. 801250a: 6abb ldr r3, [r7, #40] @ 0x28
  43543. 801250c: 1ad3 subs r3, r2, r3
  43544. 801250e: 603b str r3, [r7, #0]
  43545. /* Check there is enough space in the buffer provided by the
  43546. user. */
  43547. if( xNextMessageLength > xBufferLengthBytes )
  43548. 8012510: 69fa ldr r2, [r7, #28]
  43549. 8012512: 687b ldr r3, [r7, #4]
  43550. 8012514: 429a cmp r2, r3
  43551. 8012516: d907 bls.n 8012528 <prvReadMessageFromBuffer+0x4c>
  43552. {
  43553. /* The user has provided insufficient space to read the message
  43554. so return the buffer to its previous state (so the length of
  43555. the message is in the buffer again). */
  43556. pxStreamBuffer->xTail = xOriginalTail;
  43557. 8012518: 68fb ldr r3, [r7, #12]
  43558. 801251a: 69ba ldr r2, [r7, #24]
  43559. 801251c: 601a str r2, [r3, #0]
  43560. xNextMessageLength = 0;
  43561. 801251e: 2300 movs r3, #0
  43562. 8012520: 61fb str r3, [r7, #28]
  43563. 8012522: e001 b.n 8012528 <prvReadMessageFromBuffer+0x4c>
  43564. }
  43565. else
  43566. {
  43567. /* A stream of bytes is being received (as opposed to a discrete
  43568. message), so read as many bytes as possible. */
  43569. xNextMessageLength = xBufferLengthBytes;
  43570. 8012524: 687b ldr r3, [r7, #4]
  43571. 8012526: 61fb str r3, [r7, #28]
  43572. }
  43573. /* Read the actual data. */
  43574. xReceivedLength = prvReadBytesFromBuffer( pxStreamBuffer, ( uint8_t * ) pvRxData, xNextMessageLength, xBytesAvailable ); /*lint !e9079 Data storage area is implemented as uint8_t array for ease of sizing, indexing and alignment. */
  43575. 8012528: 683b ldr r3, [r7, #0]
  43576. 801252a: 69fa ldr r2, [r7, #28]
  43577. 801252c: 68b9 ldr r1, [r7, #8]
  43578. 801252e: 68f8 ldr r0, [r7, #12]
  43579. 8012530: f000 f87b bl 801262a <prvReadBytesFromBuffer>
  43580. 8012534: 6178 str r0, [r7, #20]
  43581. return xReceivedLength;
  43582. 8012536: 697b ldr r3, [r7, #20]
  43583. }
  43584. 8012538: 4618 mov r0, r3
  43585. 801253a: 3720 adds r7, #32
  43586. 801253c: 46bd mov sp, r7
  43587. 801253e: bd80 pop {r7, pc}
  43588. 08012540 <prvWriteBytesToBuffer>:
  43589. return xReturn;
  43590. }
  43591. /*-----------------------------------------------------------*/
  43592. static size_t prvWriteBytesToBuffer( StreamBuffer_t * const pxStreamBuffer, const uint8_t *pucData, size_t xCount )
  43593. {
  43594. 8012540: b580 push {r7, lr}
  43595. 8012542: b08a sub sp, #40 @ 0x28
  43596. 8012544: af00 add r7, sp, #0
  43597. 8012546: 60f8 str r0, [r7, #12]
  43598. 8012548: 60b9 str r1, [r7, #8]
  43599. 801254a: 607a str r2, [r7, #4]
  43600. size_t xNextHead, xFirstLength;
  43601. configASSERT( xCount > ( size_t ) 0 );
  43602. 801254c: 687b ldr r3, [r7, #4]
  43603. 801254e: 2b00 cmp r3, #0
  43604. 8012550: d10b bne.n 801256a <prvWriteBytesToBuffer+0x2a>
  43605. __asm volatile
  43606. 8012552: f04f 0350 mov.w r3, #80 @ 0x50
  43607. 8012556: f383 8811 msr BASEPRI, r3
  43608. 801255a: f3bf 8f6f isb sy
  43609. 801255e: f3bf 8f4f dsb sy
  43610. 8012562: 61fb str r3, [r7, #28]
  43611. }
  43612. 8012564: bf00 nop
  43613. 8012566: bf00 nop
  43614. 8012568: e7fd b.n 8012566 <prvWriteBytesToBuffer+0x26>
  43615. xNextHead = pxStreamBuffer->xHead;
  43616. 801256a: 68fb ldr r3, [r7, #12]
  43617. 801256c: 685b ldr r3, [r3, #4]
  43618. 801256e: 627b str r3, [r7, #36] @ 0x24
  43619. /* Calculate the number of bytes that can be added in the first write -
  43620. which may be less than the total number of bytes that need to be added if
  43621. the buffer will wrap back to the beginning. */
  43622. xFirstLength = configMIN( pxStreamBuffer->xLength - xNextHead, xCount );
  43623. 8012570: 68fb ldr r3, [r7, #12]
  43624. 8012572: 689a ldr r2, [r3, #8]
  43625. 8012574: 6a7b ldr r3, [r7, #36] @ 0x24
  43626. 8012576: 1ad3 subs r3, r2, r3
  43627. 8012578: 687a ldr r2, [r7, #4]
  43628. 801257a: 4293 cmp r3, r2
  43629. 801257c: bf28 it cs
  43630. 801257e: 4613 movcs r3, r2
  43631. 8012580: 623b str r3, [r7, #32]
  43632. /* Write as many bytes as can be written in the first write. */
  43633. configASSERT( ( xNextHead + xFirstLength ) <= pxStreamBuffer->xLength );
  43634. 8012582: 6a7a ldr r2, [r7, #36] @ 0x24
  43635. 8012584: 6a3b ldr r3, [r7, #32]
  43636. 8012586: 441a add r2, r3
  43637. 8012588: 68fb ldr r3, [r7, #12]
  43638. 801258a: 689b ldr r3, [r3, #8]
  43639. 801258c: 429a cmp r2, r3
  43640. 801258e: d90b bls.n 80125a8 <prvWriteBytesToBuffer+0x68>
  43641. __asm volatile
  43642. 8012590: f04f 0350 mov.w r3, #80 @ 0x50
  43643. 8012594: f383 8811 msr BASEPRI, r3
  43644. 8012598: f3bf 8f6f isb sy
  43645. 801259c: f3bf 8f4f dsb sy
  43646. 80125a0: 61bb str r3, [r7, #24]
  43647. }
  43648. 80125a2: bf00 nop
  43649. 80125a4: bf00 nop
  43650. 80125a6: e7fd b.n 80125a4 <prvWriteBytesToBuffer+0x64>
  43651. ( void ) memcpy( ( void* ) ( &( pxStreamBuffer->pucBuffer[ xNextHead ] ) ), ( const void * ) pucData, xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  43652. 80125a8: 68fb ldr r3, [r7, #12]
  43653. 80125aa: 699a ldr r2, [r3, #24]
  43654. 80125ac: 6a7b ldr r3, [r7, #36] @ 0x24
  43655. 80125ae: 4413 add r3, r2
  43656. 80125b0: 6a3a ldr r2, [r7, #32]
  43657. 80125b2: 68b9 ldr r1, [r7, #8]
  43658. 80125b4: 4618 mov r0, r3
  43659. 80125b6: f017 fa32 bl 8029a1e <memcpy>
  43660. /* If the number of bytes written was less than the number that could be
  43661. written in the first write... */
  43662. if( xCount > xFirstLength )
  43663. 80125ba: 687a ldr r2, [r7, #4]
  43664. 80125bc: 6a3b ldr r3, [r7, #32]
  43665. 80125be: 429a cmp r2, r3
  43666. 80125c0: d91d bls.n 80125fe <prvWriteBytesToBuffer+0xbe>
  43667. {
  43668. /* ...then write the remaining bytes to the start of the buffer. */
  43669. configASSERT( ( xCount - xFirstLength ) <= pxStreamBuffer->xLength );
  43670. 80125c2: 687a ldr r2, [r7, #4]
  43671. 80125c4: 6a3b ldr r3, [r7, #32]
  43672. 80125c6: 1ad2 subs r2, r2, r3
  43673. 80125c8: 68fb ldr r3, [r7, #12]
  43674. 80125ca: 689b ldr r3, [r3, #8]
  43675. 80125cc: 429a cmp r2, r3
  43676. 80125ce: d90b bls.n 80125e8 <prvWriteBytesToBuffer+0xa8>
  43677. __asm volatile
  43678. 80125d0: f04f 0350 mov.w r3, #80 @ 0x50
  43679. 80125d4: f383 8811 msr BASEPRI, r3
  43680. 80125d8: f3bf 8f6f isb sy
  43681. 80125dc: f3bf 8f4f dsb sy
  43682. 80125e0: 617b str r3, [r7, #20]
  43683. }
  43684. 80125e2: bf00 nop
  43685. 80125e4: bf00 nop
  43686. 80125e6: e7fd b.n 80125e4 <prvWriteBytesToBuffer+0xa4>
  43687. ( void ) memcpy( ( void * ) pxStreamBuffer->pucBuffer, ( const void * ) &( pucData[ xFirstLength ] ), xCount - xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  43688. 80125e8: 68fb ldr r3, [r7, #12]
  43689. 80125ea: 6998 ldr r0, [r3, #24]
  43690. 80125ec: 68ba ldr r2, [r7, #8]
  43691. 80125ee: 6a3b ldr r3, [r7, #32]
  43692. 80125f0: 18d1 adds r1, r2, r3
  43693. 80125f2: 687a ldr r2, [r7, #4]
  43694. 80125f4: 6a3b ldr r3, [r7, #32]
  43695. 80125f6: 1ad3 subs r3, r2, r3
  43696. 80125f8: 461a mov r2, r3
  43697. 80125fa: f017 fa10 bl 8029a1e <memcpy>
  43698. else
  43699. {
  43700. mtCOVERAGE_TEST_MARKER();
  43701. }
  43702. xNextHead += xCount;
  43703. 80125fe: 6a7a ldr r2, [r7, #36] @ 0x24
  43704. 8012600: 687b ldr r3, [r7, #4]
  43705. 8012602: 4413 add r3, r2
  43706. 8012604: 627b str r3, [r7, #36] @ 0x24
  43707. if( xNextHead >= pxStreamBuffer->xLength )
  43708. 8012606: 68fb ldr r3, [r7, #12]
  43709. 8012608: 689b ldr r3, [r3, #8]
  43710. 801260a: 6a7a ldr r2, [r7, #36] @ 0x24
  43711. 801260c: 429a cmp r2, r3
  43712. 801260e: d304 bcc.n 801261a <prvWriteBytesToBuffer+0xda>
  43713. {
  43714. xNextHead -= pxStreamBuffer->xLength;
  43715. 8012610: 68fb ldr r3, [r7, #12]
  43716. 8012612: 689b ldr r3, [r3, #8]
  43717. 8012614: 6a7a ldr r2, [r7, #36] @ 0x24
  43718. 8012616: 1ad3 subs r3, r2, r3
  43719. 8012618: 627b str r3, [r7, #36] @ 0x24
  43720. else
  43721. {
  43722. mtCOVERAGE_TEST_MARKER();
  43723. }
  43724. pxStreamBuffer->xHead = xNextHead;
  43725. 801261a: 68fb ldr r3, [r7, #12]
  43726. 801261c: 6a7a ldr r2, [r7, #36] @ 0x24
  43727. 801261e: 605a str r2, [r3, #4]
  43728. return xCount;
  43729. 8012620: 687b ldr r3, [r7, #4]
  43730. }
  43731. 8012622: 4618 mov r0, r3
  43732. 8012624: 3728 adds r7, #40 @ 0x28
  43733. 8012626: 46bd mov sp, r7
  43734. 8012628: bd80 pop {r7, pc}
  43735. 0801262a <prvReadBytesFromBuffer>:
  43736. /*-----------------------------------------------------------*/
  43737. static size_t prvReadBytesFromBuffer( StreamBuffer_t *pxStreamBuffer, uint8_t *pucData, size_t xMaxCount, size_t xBytesAvailable )
  43738. {
  43739. 801262a: b580 push {r7, lr}
  43740. 801262c: b08a sub sp, #40 @ 0x28
  43741. 801262e: af00 add r7, sp, #0
  43742. 8012630: 60f8 str r0, [r7, #12]
  43743. 8012632: 60b9 str r1, [r7, #8]
  43744. 8012634: 607a str r2, [r7, #4]
  43745. 8012636: 603b str r3, [r7, #0]
  43746. size_t xCount, xFirstLength, xNextTail;
  43747. /* Use the minimum of the wanted bytes and the available bytes. */
  43748. xCount = configMIN( xBytesAvailable, xMaxCount );
  43749. 8012638: 687a ldr r2, [r7, #4]
  43750. 801263a: 683b ldr r3, [r7, #0]
  43751. 801263c: 4293 cmp r3, r2
  43752. 801263e: bf28 it cs
  43753. 8012640: 4613 movcs r3, r2
  43754. 8012642: 623b str r3, [r7, #32]
  43755. if( xCount > ( size_t ) 0 )
  43756. 8012644: 6a3b ldr r3, [r7, #32]
  43757. 8012646: 2b00 cmp r3, #0
  43758. 8012648: d067 beq.n 801271a <prvReadBytesFromBuffer+0xf0>
  43759. {
  43760. xNextTail = pxStreamBuffer->xTail;
  43761. 801264a: 68fb ldr r3, [r7, #12]
  43762. 801264c: 681b ldr r3, [r3, #0]
  43763. 801264e: 627b str r3, [r7, #36] @ 0x24
  43764. /* Calculate the number of bytes that can be read - which may be
  43765. less than the number wanted if the data wraps around to the start of
  43766. the buffer. */
  43767. xFirstLength = configMIN( pxStreamBuffer->xLength - xNextTail, xCount );
  43768. 8012650: 68fb ldr r3, [r7, #12]
  43769. 8012652: 689a ldr r2, [r3, #8]
  43770. 8012654: 6a7b ldr r3, [r7, #36] @ 0x24
  43771. 8012656: 1ad3 subs r3, r2, r3
  43772. 8012658: 6a3a ldr r2, [r7, #32]
  43773. 801265a: 4293 cmp r3, r2
  43774. 801265c: bf28 it cs
  43775. 801265e: 4613 movcs r3, r2
  43776. 8012660: 61fb str r3, [r7, #28]
  43777. /* Obtain the number of bytes it is possible to obtain in the first
  43778. read. Asserts check bounds of read and write. */
  43779. configASSERT( xFirstLength <= xMaxCount );
  43780. 8012662: 69fa ldr r2, [r7, #28]
  43781. 8012664: 687b ldr r3, [r7, #4]
  43782. 8012666: 429a cmp r2, r3
  43783. 8012668: d90b bls.n 8012682 <prvReadBytesFromBuffer+0x58>
  43784. __asm volatile
  43785. 801266a: f04f 0350 mov.w r3, #80 @ 0x50
  43786. 801266e: f383 8811 msr BASEPRI, r3
  43787. 8012672: f3bf 8f6f isb sy
  43788. 8012676: f3bf 8f4f dsb sy
  43789. 801267a: 61bb str r3, [r7, #24]
  43790. }
  43791. 801267c: bf00 nop
  43792. 801267e: bf00 nop
  43793. 8012680: e7fd b.n 801267e <prvReadBytesFromBuffer+0x54>
  43794. configASSERT( ( xNextTail + xFirstLength ) <= pxStreamBuffer->xLength );
  43795. 8012682: 6a7a ldr r2, [r7, #36] @ 0x24
  43796. 8012684: 69fb ldr r3, [r7, #28]
  43797. 8012686: 441a add r2, r3
  43798. 8012688: 68fb ldr r3, [r7, #12]
  43799. 801268a: 689b ldr r3, [r3, #8]
  43800. 801268c: 429a cmp r2, r3
  43801. 801268e: d90b bls.n 80126a8 <prvReadBytesFromBuffer+0x7e>
  43802. __asm volatile
  43803. 8012690: f04f 0350 mov.w r3, #80 @ 0x50
  43804. 8012694: f383 8811 msr BASEPRI, r3
  43805. 8012698: f3bf 8f6f isb sy
  43806. 801269c: f3bf 8f4f dsb sy
  43807. 80126a0: 617b str r3, [r7, #20]
  43808. }
  43809. 80126a2: bf00 nop
  43810. 80126a4: bf00 nop
  43811. 80126a6: e7fd b.n 80126a4 <prvReadBytesFromBuffer+0x7a>
  43812. ( void ) memcpy( ( void * ) pucData, ( const void * ) &( pxStreamBuffer->pucBuffer[ xNextTail ] ), xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  43813. 80126a8: 68fb ldr r3, [r7, #12]
  43814. 80126aa: 699a ldr r2, [r3, #24]
  43815. 80126ac: 6a7b ldr r3, [r7, #36] @ 0x24
  43816. 80126ae: 4413 add r3, r2
  43817. 80126b0: 69fa ldr r2, [r7, #28]
  43818. 80126b2: 4619 mov r1, r3
  43819. 80126b4: 68b8 ldr r0, [r7, #8]
  43820. 80126b6: f017 f9b2 bl 8029a1e <memcpy>
  43821. /* If the total number of wanted bytes is greater than the number
  43822. that could be read in the first read... */
  43823. if( xCount > xFirstLength )
  43824. 80126ba: 6a3a ldr r2, [r7, #32]
  43825. 80126bc: 69fb ldr r3, [r7, #28]
  43826. 80126be: 429a cmp r2, r3
  43827. 80126c0: d91a bls.n 80126f8 <prvReadBytesFromBuffer+0xce>
  43828. {
  43829. /*...then read the remaining bytes from the start of the buffer. */
  43830. configASSERT( xCount <= xMaxCount );
  43831. 80126c2: 6a3a ldr r2, [r7, #32]
  43832. 80126c4: 687b ldr r3, [r7, #4]
  43833. 80126c6: 429a cmp r2, r3
  43834. 80126c8: d90b bls.n 80126e2 <prvReadBytesFromBuffer+0xb8>
  43835. __asm volatile
  43836. 80126ca: f04f 0350 mov.w r3, #80 @ 0x50
  43837. 80126ce: f383 8811 msr BASEPRI, r3
  43838. 80126d2: f3bf 8f6f isb sy
  43839. 80126d6: f3bf 8f4f dsb sy
  43840. 80126da: 613b str r3, [r7, #16]
  43841. }
  43842. 80126dc: bf00 nop
  43843. 80126de: bf00 nop
  43844. 80126e0: e7fd b.n 80126de <prvReadBytesFromBuffer+0xb4>
  43845. ( void ) memcpy( ( void * ) &( pucData[ xFirstLength ] ), ( void * ) ( pxStreamBuffer->pucBuffer ), xCount - xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  43846. 80126e2: 68ba ldr r2, [r7, #8]
  43847. 80126e4: 69fb ldr r3, [r7, #28]
  43848. 80126e6: 18d0 adds r0, r2, r3
  43849. 80126e8: 68fb ldr r3, [r7, #12]
  43850. 80126ea: 6999 ldr r1, [r3, #24]
  43851. 80126ec: 6a3a ldr r2, [r7, #32]
  43852. 80126ee: 69fb ldr r3, [r7, #28]
  43853. 80126f0: 1ad3 subs r3, r2, r3
  43854. 80126f2: 461a mov r2, r3
  43855. 80126f4: f017 f993 bl 8029a1e <memcpy>
  43856. mtCOVERAGE_TEST_MARKER();
  43857. }
  43858. /* Move the tail pointer to effectively remove the data read from
  43859. the buffer. */
  43860. xNextTail += xCount;
  43861. 80126f8: 6a7a ldr r2, [r7, #36] @ 0x24
  43862. 80126fa: 6a3b ldr r3, [r7, #32]
  43863. 80126fc: 4413 add r3, r2
  43864. 80126fe: 627b str r3, [r7, #36] @ 0x24
  43865. if( xNextTail >= pxStreamBuffer->xLength )
  43866. 8012700: 68fb ldr r3, [r7, #12]
  43867. 8012702: 689b ldr r3, [r3, #8]
  43868. 8012704: 6a7a ldr r2, [r7, #36] @ 0x24
  43869. 8012706: 429a cmp r2, r3
  43870. 8012708: d304 bcc.n 8012714 <prvReadBytesFromBuffer+0xea>
  43871. {
  43872. xNextTail -= pxStreamBuffer->xLength;
  43873. 801270a: 68fb ldr r3, [r7, #12]
  43874. 801270c: 689b ldr r3, [r3, #8]
  43875. 801270e: 6a7a ldr r2, [r7, #36] @ 0x24
  43876. 8012710: 1ad3 subs r3, r2, r3
  43877. 8012712: 627b str r3, [r7, #36] @ 0x24
  43878. }
  43879. pxStreamBuffer->xTail = xNextTail;
  43880. 8012714: 68fb ldr r3, [r7, #12]
  43881. 8012716: 6a7a ldr r2, [r7, #36] @ 0x24
  43882. 8012718: 601a str r2, [r3, #0]
  43883. else
  43884. {
  43885. mtCOVERAGE_TEST_MARKER();
  43886. }
  43887. return xCount;
  43888. 801271a: 6a3b ldr r3, [r7, #32]
  43889. }
  43890. 801271c: 4618 mov r0, r3
  43891. 801271e: 3728 adds r7, #40 @ 0x28
  43892. 8012720: 46bd mov sp, r7
  43893. 8012722: bd80 pop {r7, pc}
  43894. 08012724 <prvBytesInBuffer>:
  43895. /*-----------------------------------------------------------*/
  43896. static size_t prvBytesInBuffer( const StreamBuffer_t * const pxStreamBuffer )
  43897. {
  43898. 8012724: b480 push {r7}
  43899. 8012726: b085 sub sp, #20
  43900. 8012728: af00 add r7, sp, #0
  43901. 801272a: 6078 str r0, [r7, #4]
  43902. /* Returns the distance between xTail and xHead. */
  43903. size_t xCount;
  43904. xCount = pxStreamBuffer->xLength + pxStreamBuffer->xHead;
  43905. 801272c: 687b ldr r3, [r7, #4]
  43906. 801272e: 689a ldr r2, [r3, #8]
  43907. 8012730: 687b ldr r3, [r7, #4]
  43908. 8012732: 685b ldr r3, [r3, #4]
  43909. 8012734: 4413 add r3, r2
  43910. 8012736: 60fb str r3, [r7, #12]
  43911. xCount -= pxStreamBuffer->xTail;
  43912. 8012738: 687b ldr r3, [r7, #4]
  43913. 801273a: 681b ldr r3, [r3, #0]
  43914. 801273c: 68fa ldr r2, [r7, #12]
  43915. 801273e: 1ad3 subs r3, r2, r3
  43916. 8012740: 60fb str r3, [r7, #12]
  43917. if ( xCount >= pxStreamBuffer->xLength )
  43918. 8012742: 687b ldr r3, [r7, #4]
  43919. 8012744: 689b ldr r3, [r3, #8]
  43920. 8012746: 68fa ldr r2, [r7, #12]
  43921. 8012748: 429a cmp r2, r3
  43922. 801274a: d304 bcc.n 8012756 <prvBytesInBuffer+0x32>
  43923. {
  43924. xCount -= pxStreamBuffer->xLength;
  43925. 801274c: 687b ldr r3, [r7, #4]
  43926. 801274e: 689b ldr r3, [r3, #8]
  43927. 8012750: 68fa ldr r2, [r7, #12]
  43928. 8012752: 1ad3 subs r3, r2, r3
  43929. 8012754: 60fb str r3, [r7, #12]
  43930. else
  43931. {
  43932. mtCOVERAGE_TEST_MARKER();
  43933. }
  43934. return xCount;
  43935. 8012756: 68fb ldr r3, [r7, #12]
  43936. }
  43937. 8012758: 4618 mov r0, r3
  43938. 801275a: 3714 adds r7, #20
  43939. 801275c: 46bd mov sp, r7
  43940. 801275e: f85d 7b04 ldr.w r7, [sp], #4
  43941. 8012762: 4770 bx lr
  43942. 08012764 <prvInitialiseNewStreamBuffer>:
  43943. static void prvInitialiseNewStreamBuffer( StreamBuffer_t * const pxStreamBuffer,
  43944. uint8_t * const pucBuffer,
  43945. size_t xBufferSizeBytes,
  43946. size_t xTriggerLevelBytes,
  43947. uint8_t ucFlags )
  43948. {
  43949. 8012764: b580 push {r7, lr}
  43950. 8012766: b086 sub sp, #24
  43951. 8012768: af00 add r7, sp, #0
  43952. 801276a: 60f8 str r0, [r7, #12]
  43953. 801276c: 60b9 str r1, [r7, #8]
  43954. 801276e: 607a str r2, [r7, #4]
  43955. 8012770: 603b str r3, [r7, #0]
  43956. #if( configASSERT_DEFINED == 1 )
  43957. {
  43958. /* The value written just has to be identifiable when looking at the
  43959. memory. Don't use 0xA5 as that is the stack fill value and could
  43960. result in confusion as to what is actually being observed. */
  43961. const BaseType_t xWriteValue = 0x55;
  43962. 8012772: 2355 movs r3, #85 @ 0x55
  43963. 8012774: 617b str r3, [r7, #20]
  43964. configASSERT( memset( pucBuffer, ( int ) xWriteValue, xBufferSizeBytes ) == pucBuffer );
  43965. 8012776: 687a ldr r2, [r7, #4]
  43966. 8012778: 6979 ldr r1, [r7, #20]
  43967. 801277a: 68b8 ldr r0, [r7, #8]
  43968. 801277c: f017 f858 bl 8029830 <memset>
  43969. 8012780: 4602 mov r2, r0
  43970. 8012782: 68bb ldr r3, [r7, #8]
  43971. 8012784: 4293 cmp r3, r2
  43972. 8012786: d00b beq.n 80127a0 <prvInitialiseNewStreamBuffer+0x3c>
  43973. __asm volatile
  43974. 8012788: f04f 0350 mov.w r3, #80 @ 0x50
  43975. 801278c: f383 8811 msr BASEPRI, r3
  43976. 8012790: f3bf 8f6f isb sy
  43977. 8012794: f3bf 8f4f dsb sy
  43978. 8012798: 613b str r3, [r7, #16]
  43979. }
  43980. 801279a: bf00 nop
  43981. 801279c: bf00 nop
  43982. 801279e: e7fd b.n 801279c <prvInitialiseNewStreamBuffer+0x38>
  43983. } /*lint !e529 !e438 xWriteValue is only used if configASSERT() is defined. */
  43984. #endif
  43985. ( void ) memset( ( void * ) pxStreamBuffer, 0x00, sizeof( StreamBuffer_t ) ); /*lint !e9087 memset() requires void *. */
  43986. 80127a0: 2224 movs r2, #36 @ 0x24
  43987. 80127a2: 2100 movs r1, #0
  43988. 80127a4: 68f8 ldr r0, [r7, #12]
  43989. 80127a6: f017 f843 bl 8029830 <memset>
  43990. pxStreamBuffer->pucBuffer = pucBuffer;
  43991. 80127aa: 68fb ldr r3, [r7, #12]
  43992. 80127ac: 68ba ldr r2, [r7, #8]
  43993. 80127ae: 619a str r2, [r3, #24]
  43994. pxStreamBuffer->xLength = xBufferSizeBytes;
  43995. 80127b0: 68fb ldr r3, [r7, #12]
  43996. 80127b2: 687a ldr r2, [r7, #4]
  43997. 80127b4: 609a str r2, [r3, #8]
  43998. pxStreamBuffer->xTriggerLevelBytes = xTriggerLevelBytes;
  43999. 80127b6: 68fb ldr r3, [r7, #12]
  44000. 80127b8: 683a ldr r2, [r7, #0]
  44001. 80127ba: 60da str r2, [r3, #12]
  44002. pxStreamBuffer->ucFlags = ucFlags;
  44003. 80127bc: 68fb ldr r3, [r7, #12]
  44004. 80127be: f897 2020 ldrb.w r2, [r7, #32]
  44005. 80127c2: 771a strb r2, [r3, #28]
  44006. }
  44007. 80127c4: bf00 nop
  44008. 80127c6: 3718 adds r7, #24
  44009. 80127c8: 46bd mov sp, r7
  44010. 80127ca: bd80 pop {r7, pc}
  44011. 080127cc <xTaskCreateStatic>:
  44012. const uint32_t ulStackDepth,
  44013. void * const pvParameters,
  44014. UBaseType_t uxPriority,
  44015. StackType_t * const puxStackBuffer,
  44016. StaticTask_t * const pxTaskBuffer )
  44017. {
  44018. 80127cc: b580 push {r7, lr}
  44019. 80127ce: b08e sub sp, #56 @ 0x38
  44020. 80127d0: af04 add r7, sp, #16
  44021. 80127d2: 60f8 str r0, [r7, #12]
  44022. 80127d4: 60b9 str r1, [r7, #8]
  44023. 80127d6: 607a str r2, [r7, #4]
  44024. 80127d8: 603b str r3, [r7, #0]
  44025. TCB_t *pxNewTCB;
  44026. TaskHandle_t xReturn;
  44027. configASSERT( puxStackBuffer != NULL );
  44028. 80127da: 6b7b ldr r3, [r7, #52] @ 0x34
  44029. 80127dc: 2b00 cmp r3, #0
  44030. 80127de: d10b bne.n 80127f8 <xTaskCreateStatic+0x2c>
  44031. __asm volatile
  44032. 80127e0: f04f 0350 mov.w r3, #80 @ 0x50
  44033. 80127e4: f383 8811 msr BASEPRI, r3
  44034. 80127e8: f3bf 8f6f isb sy
  44035. 80127ec: f3bf 8f4f dsb sy
  44036. 80127f0: 623b str r3, [r7, #32]
  44037. }
  44038. 80127f2: bf00 nop
  44039. 80127f4: bf00 nop
  44040. 80127f6: e7fd b.n 80127f4 <xTaskCreateStatic+0x28>
  44041. configASSERT( pxTaskBuffer != NULL );
  44042. 80127f8: 6bbb ldr r3, [r7, #56] @ 0x38
  44043. 80127fa: 2b00 cmp r3, #0
  44044. 80127fc: d10b bne.n 8012816 <xTaskCreateStatic+0x4a>
  44045. __asm volatile
  44046. 80127fe: f04f 0350 mov.w r3, #80 @ 0x50
  44047. 8012802: f383 8811 msr BASEPRI, r3
  44048. 8012806: f3bf 8f6f isb sy
  44049. 801280a: f3bf 8f4f dsb sy
  44050. 801280e: 61fb str r3, [r7, #28]
  44051. }
  44052. 8012810: bf00 nop
  44053. 8012812: bf00 nop
  44054. 8012814: e7fd b.n 8012812 <xTaskCreateStatic+0x46>
  44055. #if( configASSERT_DEFINED == 1 )
  44056. {
  44057. /* Sanity check that the size of the structure used to declare a
  44058. variable of type StaticTask_t equals the size of the real task
  44059. structure. */
  44060. volatile size_t xSize = sizeof( StaticTask_t );
  44061. 8012816: 23a8 movs r3, #168 @ 0xa8
  44062. 8012818: 613b str r3, [r7, #16]
  44063. configASSERT( xSize == sizeof( TCB_t ) );
  44064. 801281a: 693b ldr r3, [r7, #16]
  44065. 801281c: 2ba8 cmp r3, #168 @ 0xa8
  44066. 801281e: d00b beq.n 8012838 <xTaskCreateStatic+0x6c>
  44067. __asm volatile
  44068. 8012820: f04f 0350 mov.w r3, #80 @ 0x50
  44069. 8012824: f383 8811 msr BASEPRI, r3
  44070. 8012828: f3bf 8f6f isb sy
  44071. 801282c: f3bf 8f4f dsb sy
  44072. 8012830: 61bb str r3, [r7, #24]
  44073. }
  44074. 8012832: bf00 nop
  44075. 8012834: bf00 nop
  44076. 8012836: e7fd b.n 8012834 <xTaskCreateStatic+0x68>
  44077. ( void ) xSize; /* Prevent lint warning when configASSERT() is not used. */
  44078. 8012838: 693b ldr r3, [r7, #16]
  44079. }
  44080. #endif /* configASSERT_DEFINED */
  44081. if( ( pxTaskBuffer != NULL ) && ( puxStackBuffer != NULL ) )
  44082. 801283a: 6bbb ldr r3, [r7, #56] @ 0x38
  44083. 801283c: 2b00 cmp r3, #0
  44084. 801283e: d01e beq.n 801287e <xTaskCreateStatic+0xb2>
  44085. 8012840: 6b7b ldr r3, [r7, #52] @ 0x34
  44086. 8012842: 2b00 cmp r3, #0
  44087. 8012844: d01b beq.n 801287e <xTaskCreateStatic+0xb2>
  44088. {
  44089. /* The memory used for the task's TCB and stack are passed into this
  44090. function - use them. */
  44091. pxNewTCB = ( TCB_t * ) pxTaskBuffer; /*lint !e740 !e9087 Unusual cast is ok as the structures are designed to have the same alignment, and the size is checked by an assert. */
  44092. 8012846: 6bbb ldr r3, [r7, #56] @ 0x38
  44093. 8012848: 627b str r3, [r7, #36] @ 0x24
  44094. pxNewTCB->pxStack = ( StackType_t * ) puxStackBuffer;
  44095. 801284a: 6a7b ldr r3, [r7, #36] @ 0x24
  44096. 801284c: 6b7a ldr r2, [r7, #52] @ 0x34
  44097. 801284e: 631a str r2, [r3, #48] @ 0x30
  44098. #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
  44099. {
  44100. /* Tasks can be created statically or dynamically, so note this
  44101. task was created statically in case the task is later deleted. */
  44102. pxNewTCB->ucStaticallyAllocated = tskSTATICALLY_ALLOCATED_STACK_AND_TCB;
  44103. 8012850: 6a7b ldr r3, [r7, #36] @ 0x24
  44104. 8012852: 2202 movs r2, #2
  44105. 8012854: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
  44106. }
  44107. #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
  44108. prvInitialiseNewTask( pxTaskCode, pcName, ulStackDepth, pvParameters, uxPriority, &xReturn, pxNewTCB, NULL );
  44109. 8012858: 2300 movs r3, #0
  44110. 801285a: 9303 str r3, [sp, #12]
  44111. 801285c: 6a7b ldr r3, [r7, #36] @ 0x24
  44112. 801285e: 9302 str r3, [sp, #8]
  44113. 8012860: f107 0314 add.w r3, r7, #20
  44114. 8012864: 9301 str r3, [sp, #4]
  44115. 8012866: 6b3b ldr r3, [r7, #48] @ 0x30
  44116. 8012868: 9300 str r3, [sp, #0]
  44117. 801286a: 683b ldr r3, [r7, #0]
  44118. 801286c: 687a ldr r2, [r7, #4]
  44119. 801286e: 68b9 ldr r1, [r7, #8]
  44120. 8012870: 68f8 ldr r0, [r7, #12]
  44121. 8012872: f000 f851 bl 8012918 <prvInitialiseNewTask>
  44122. prvAddNewTaskToReadyList( pxNewTCB );
  44123. 8012876: 6a78 ldr r0, [r7, #36] @ 0x24
  44124. 8012878: f000 f8f6 bl 8012a68 <prvAddNewTaskToReadyList>
  44125. 801287c: e001 b.n 8012882 <xTaskCreateStatic+0xb6>
  44126. }
  44127. else
  44128. {
  44129. xReturn = NULL;
  44130. 801287e: 2300 movs r3, #0
  44131. 8012880: 617b str r3, [r7, #20]
  44132. }
  44133. return xReturn;
  44134. 8012882: 697b ldr r3, [r7, #20]
  44135. }
  44136. 8012884: 4618 mov r0, r3
  44137. 8012886: 3728 adds r7, #40 @ 0x28
  44138. 8012888: 46bd mov sp, r7
  44139. 801288a: bd80 pop {r7, pc}
  44140. 0801288c <xTaskCreate>:
  44141. const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  44142. const configSTACK_DEPTH_TYPE usStackDepth,
  44143. void * const pvParameters,
  44144. UBaseType_t uxPriority,
  44145. TaskHandle_t * const pxCreatedTask )
  44146. {
  44147. 801288c: b580 push {r7, lr}
  44148. 801288e: b08c sub sp, #48 @ 0x30
  44149. 8012890: af04 add r7, sp, #16
  44150. 8012892: 60f8 str r0, [r7, #12]
  44151. 8012894: 60b9 str r1, [r7, #8]
  44152. 8012896: 603b str r3, [r7, #0]
  44153. 8012898: 4613 mov r3, r2
  44154. 801289a: 80fb strh r3, [r7, #6]
  44155. #else /* portSTACK_GROWTH */
  44156. {
  44157. StackType_t *pxStack;
  44158. /* Allocate space for the stack used by the task being created. */
  44159. pxStack = pvPortMalloc( ( ( ( size_t ) usStackDepth ) * sizeof( StackType_t ) ) ); /*lint !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack and this allocation is the stack. */
  44160. 801289c: 88fb ldrh r3, [r7, #6]
  44161. 801289e: 009b lsls r3, r3, #2
  44162. 80128a0: 4618 mov r0, r3
  44163. 80128a2: f002 f803 bl 80148ac <pvPortMalloc>
  44164. 80128a6: 6178 str r0, [r7, #20]
  44165. if( pxStack != NULL )
  44166. 80128a8: 697b ldr r3, [r7, #20]
  44167. 80128aa: 2b00 cmp r3, #0
  44168. 80128ac: d00e beq.n 80128cc <xTaskCreate+0x40>
  44169. {
  44170. /* Allocate space for the TCB. */
  44171. pxNewTCB = ( TCB_t * ) pvPortMalloc( sizeof( TCB_t ) ); /*lint !e9087 !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack, and the first member of TCB_t is always a pointer to the task's stack. */
  44172. 80128ae: 20a8 movs r0, #168 @ 0xa8
  44173. 80128b0: f001 fffc bl 80148ac <pvPortMalloc>
  44174. 80128b4: 61f8 str r0, [r7, #28]
  44175. if( pxNewTCB != NULL )
  44176. 80128b6: 69fb ldr r3, [r7, #28]
  44177. 80128b8: 2b00 cmp r3, #0
  44178. 80128ba: d003 beq.n 80128c4 <xTaskCreate+0x38>
  44179. {
  44180. /* Store the stack location in the TCB. */
  44181. pxNewTCB->pxStack = pxStack;
  44182. 80128bc: 69fb ldr r3, [r7, #28]
  44183. 80128be: 697a ldr r2, [r7, #20]
  44184. 80128c0: 631a str r2, [r3, #48] @ 0x30
  44185. 80128c2: e005 b.n 80128d0 <xTaskCreate+0x44>
  44186. }
  44187. else
  44188. {
  44189. /* The stack cannot be used as the TCB was not created. Free
  44190. it again. */
  44191. vPortFree( pxStack );
  44192. 80128c4: 6978 ldr r0, [r7, #20]
  44193. 80128c6: f002 f8bf bl 8014a48 <vPortFree>
  44194. 80128ca: e001 b.n 80128d0 <xTaskCreate+0x44>
  44195. }
  44196. }
  44197. else
  44198. {
  44199. pxNewTCB = NULL;
  44200. 80128cc: 2300 movs r3, #0
  44201. 80128ce: 61fb str r3, [r7, #28]
  44202. }
  44203. }
  44204. #endif /* portSTACK_GROWTH */
  44205. if( pxNewTCB != NULL )
  44206. 80128d0: 69fb ldr r3, [r7, #28]
  44207. 80128d2: 2b00 cmp r3, #0
  44208. 80128d4: d017 beq.n 8012906 <xTaskCreate+0x7a>
  44209. {
  44210. #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e9029 !e731 Macro has been consolidated for readability reasons. */
  44211. {
  44212. /* Tasks can be created statically or dynamically, so note this
  44213. task was created dynamically in case it is later deleted. */
  44214. pxNewTCB->ucStaticallyAllocated = tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB;
  44215. 80128d6: 69fb ldr r3, [r7, #28]
  44216. 80128d8: 2200 movs r2, #0
  44217. 80128da: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
  44218. }
  44219. #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
  44220. prvInitialiseNewTask( pxTaskCode, pcName, ( uint32_t ) usStackDepth, pvParameters, uxPriority, pxCreatedTask, pxNewTCB, NULL );
  44221. 80128de: 88fa ldrh r2, [r7, #6]
  44222. 80128e0: 2300 movs r3, #0
  44223. 80128e2: 9303 str r3, [sp, #12]
  44224. 80128e4: 69fb ldr r3, [r7, #28]
  44225. 80128e6: 9302 str r3, [sp, #8]
  44226. 80128e8: 6afb ldr r3, [r7, #44] @ 0x2c
  44227. 80128ea: 9301 str r3, [sp, #4]
  44228. 80128ec: 6abb ldr r3, [r7, #40] @ 0x28
  44229. 80128ee: 9300 str r3, [sp, #0]
  44230. 80128f0: 683b ldr r3, [r7, #0]
  44231. 80128f2: 68b9 ldr r1, [r7, #8]
  44232. 80128f4: 68f8 ldr r0, [r7, #12]
  44233. 80128f6: f000 f80f bl 8012918 <prvInitialiseNewTask>
  44234. prvAddNewTaskToReadyList( pxNewTCB );
  44235. 80128fa: 69f8 ldr r0, [r7, #28]
  44236. 80128fc: f000 f8b4 bl 8012a68 <prvAddNewTaskToReadyList>
  44237. xReturn = pdPASS;
  44238. 8012900: 2301 movs r3, #1
  44239. 8012902: 61bb str r3, [r7, #24]
  44240. 8012904: e002 b.n 801290c <xTaskCreate+0x80>
  44241. }
  44242. else
  44243. {
  44244. xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY;
  44245. 8012906: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  44246. 801290a: 61bb str r3, [r7, #24]
  44247. }
  44248. return xReturn;
  44249. 801290c: 69bb ldr r3, [r7, #24]
  44250. }
  44251. 801290e: 4618 mov r0, r3
  44252. 8012910: 3720 adds r7, #32
  44253. 8012912: 46bd mov sp, r7
  44254. 8012914: bd80 pop {r7, pc}
  44255. ...
  44256. 08012918 <prvInitialiseNewTask>:
  44257. void * const pvParameters,
  44258. UBaseType_t uxPriority,
  44259. TaskHandle_t * const pxCreatedTask,
  44260. TCB_t *pxNewTCB,
  44261. const MemoryRegion_t * const xRegions )
  44262. {
  44263. 8012918: b580 push {r7, lr}
  44264. 801291a: b088 sub sp, #32
  44265. 801291c: af00 add r7, sp, #0
  44266. 801291e: 60f8 str r0, [r7, #12]
  44267. 8012920: 60b9 str r1, [r7, #8]
  44268. 8012922: 607a str r2, [r7, #4]
  44269. 8012924: 603b str r3, [r7, #0]
  44270. /* Avoid dependency on memset() if it is not required. */
  44271. #if( tskSET_NEW_STACKS_TO_KNOWN_VALUE == 1 )
  44272. {
  44273. /* Fill the stack with a known value to assist debugging. */
  44274. ( void ) memset( pxNewTCB->pxStack, ( int ) tskSTACK_FILL_BYTE, ( size_t ) ulStackDepth * sizeof( StackType_t ) );
  44275. 8012926: 6b3b ldr r3, [r7, #48] @ 0x30
  44276. 8012928: 6b18 ldr r0, [r3, #48] @ 0x30
  44277. 801292a: 687b ldr r3, [r7, #4]
  44278. 801292c: 009b lsls r3, r3, #2
  44279. 801292e: 461a mov r2, r3
  44280. 8012930: 21a5 movs r1, #165 @ 0xa5
  44281. 8012932: f016 ff7d bl 8029830 <memset>
  44282. grows from high memory to low (as per the 80x86) or vice versa.
  44283. portSTACK_GROWTH is used to make the result positive or negative as required
  44284. by the port. */
  44285. #if( portSTACK_GROWTH < 0 )
  44286. {
  44287. pxTopOfStack = &( pxNewTCB->pxStack[ ulStackDepth - ( uint32_t ) 1 ] );
  44288. 8012936: 6b3b ldr r3, [r7, #48] @ 0x30
  44289. 8012938: 6b1a ldr r2, [r3, #48] @ 0x30
  44290. 801293a: 6879 ldr r1, [r7, #4]
  44291. 801293c: f06f 4340 mvn.w r3, #3221225472 @ 0xc0000000
  44292. 8012940: 440b add r3, r1
  44293. 8012942: 009b lsls r3, r3, #2
  44294. 8012944: 4413 add r3, r2
  44295. 8012946: 61bb str r3, [r7, #24]
  44296. pxTopOfStack = ( StackType_t * ) ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack ) & ( ~( ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) ) ); /*lint !e923 !e9033 !e9078 MISRA exception. Avoiding casts between pointers and integers is not practical. Size differences accounted for using portPOINTER_SIZE_TYPE type. Checked by assert(). */
  44297. 8012948: 69bb ldr r3, [r7, #24]
  44298. 801294a: f023 0307 bic.w r3, r3, #7
  44299. 801294e: 61bb str r3, [r7, #24]
  44300. /* Check the alignment of the calculated top of stack is correct. */
  44301. configASSERT( ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack & ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) == 0UL ) );
  44302. 8012950: 69bb ldr r3, [r7, #24]
  44303. 8012952: f003 0307 and.w r3, r3, #7
  44304. 8012956: 2b00 cmp r3, #0
  44305. 8012958: d00b beq.n 8012972 <prvInitialiseNewTask+0x5a>
  44306. __asm volatile
  44307. 801295a: f04f 0350 mov.w r3, #80 @ 0x50
  44308. 801295e: f383 8811 msr BASEPRI, r3
  44309. 8012962: f3bf 8f6f isb sy
  44310. 8012966: f3bf 8f4f dsb sy
  44311. 801296a: 617b str r3, [r7, #20]
  44312. }
  44313. 801296c: bf00 nop
  44314. 801296e: bf00 nop
  44315. 8012970: e7fd b.n 801296e <prvInitialiseNewTask+0x56>
  44316. pxNewTCB->pxEndOfStack = pxNewTCB->pxStack + ( ulStackDepth - ( uint32_t ) 1 );
  44317. }
  44318. #endif /* portSTACK_GROWTH */
  44319. /* Store the task name in the TCB. */
  44320. if( pcName != NULL )
  44321. 8012972: 68bb ldr r3, [r7, #8]
  44322. 8012974: 2b00 cmp r3, #0
  44323. 8012976: d01f beq.n 80129b8 <prvInitialiseNewTask+0xa0>
  44324. {
  44325. for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
  44326. 8012978: 2300 movs r3, #0
  44327. 801297a: 61fb str r3, [r7, #28]
  44328. 801297c: e012 b.n 80129a4 <prvInitialiseNewTask+0x8c>
  44329. {
  44330. pxNewTCB->pcTaskName[ x ] = pcName[ x ];
  44331. 801297e: 68ba ldr r2, [r7, #8]
  44332. 8012980: 69fb ldr r3, [r7, #28]
  44333. 8012982: 4413 add r3, r2
  44334. 8012984: 7819 ldrb r1, [r3, #0]
  44335. 8012986: 6b3a ldr r2, [r7, #48] @ 0x30
  44336. 8012988: 69fb ldr r3, [r7, #28]
  44337. 801298a: 4413 add r3, r2
  44338. 801298c: 3334 adds r3, #52 @ 0x34
  44339. 801298e: 460a mov r2, r1
  44340. 8012990: 701a strb r2, [r3, #0]
  44341. /* Don't copy all configMAX_TASK_NAME_LEN if the string is shorter than
  44342. configMAX_TASK_NAME_LEN characters just in case the memory after the
  44343. string is not accessible (extremely unlikely). */
  44344. if( pcName[ x ] == ( char ) 0x00 )
  44345. 8012992: 68ba ldr r2, [r7, #8]
  44346. 8012994: 69fb ldr r3, [r7, #28]
  44347. 8012996: 4413 add r3, r2
  44348. 8012998: 781b ldrb r3, [r3, #0]
  44349. 801299a: 2b00 cmp r3, #0
  44350. 801299c: d006 beq.n 80129ac <prvInitialiseNewTask+0x94>
  44351. for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
  44352. 801299e: 69fb ldr r3, [r7, #28]
  44353. 80129a0: 3301 adds r3, #1
  44354. 80129a2: 61fb str r3, [r7, #28]
  44355. 80129a4: 69fb ldr r3, [r7, #28]
  44356. 80129a6: 2b0f cmp r3, #15
  44357. 80129a8: d9e9 bls.n 801297e <prvInitialiseNewTask+0x66>
  44358. 80129aa: e000 b.n 80129ae <prvInitialiseNewTask+0x96>
  44359. {
  44360. break;
  44361. 80129ac: bf00 nop
  44362. }
  44363. }
  44364. /* Ensure the name string is terminated in the case that the string length
  44365. was greater or equal to configMAX_TASK_NAME_LEN. */
  44366. pxNewTCB->pcTaskName[ configMAX_TASK_NAME_LEN - 1 ] = '\0';
  44367. 80129ae: 6b3b ldr r3, [r7, #48] @ 0x30
  44368. 80129b0: 2200 movs r2, #0
  44369. 80129b2: f883 2043 strb.w r2, [r3, #67] @ 0x43
  44370. 80129b6: e003 b.n 80129c0 <prvInitialiseNewTask+0xa8>
  44371. }
  44372. else
  44373. {
  44374. /* The task has not been given a name, so just ensure there is a NULL
  44375. terminator when it is read out. */
  44376. pxNewTCB->pcTaskName[ 0 ] = 0x00;
  44377. 80129b8: 6b3b ldr r3, [r7, #48] @ 0x30
  44378. 80129ba: 2200 movs r2, #0
  44379. 80129bc: f883 2034 strb.w r2, [r3, #52] @ 0x34
  44380. }
  44381. /* This is used as an array index so must ensure it's not too large. First
  44382. remove the privilege bit if one is present. */
  44383. if( uxPriority >= ( UBaseType_t ) configMAX_PRIORITIES )
  44384. 80129c0: 6abb ldr r3, [r7, #40] @ 0x28
  44385. 80129c2: 2b37 cmp r3, #55 @ 0x37
  44386. 80129c4: d901 bls.n 80129ca <prvInitialiseNewTask+0xb2>
  44387. {
  44388. uxPriority = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) 1U;
  44389. 80129c6: 2337 movs r3, #55 @ 0x37
  44390. 80129c8: 62bb str r3, [r7, #40] @ 0x28
  44391. else
  44392. {
  44393. mtCOVERAGE_TEST_MARKER();
  44394. }
  44395. pxNewTCB->uxPriority = uxPriority;
  44396. 80129ca: 6b3b ldr r3, [r7, #48] @ 0x30
  44397. 80129cc: 6aba ldr r2, [r7, #40] @ 0x28
  44398. 80129ce: 62da str r2, [r3, #44] @ 0x2c
  44399. #if ( configUSE_MUTEXES == 1 )
  44400. {
  44401. pxNewTCB->uxBasePriority = uxPriority;
  44402. 80129d0: 6b3b ldr r3, [r7, #48] @ 0x30
  44403. 80129d2: 6aba ldr r2, [r7, #40] @ 0x28
  44404. 80129d4: 64da str r2, [r3, #76] @ 0x4c
  44405. pxNewTCB->uxMutexesHeld = 0;
  44406. 80129d6: 6b3b ldr r3, [r7, #48] @ 0x30
  44407. 80129d8: 2200 movs r2, #0
  44408. 80129da: 651a str r2, [r3, #80] @ 0x50
  44409. }
  44410. #endif /* configUSE_MUTEXES */
  44411. vListInitialiseItem( &( pxNewTCB->xStateListItem ) );
  44412. 80129dc: 6b3b ldr r3, [r7, #48] @ 0x30
  44413. 80129de: 3304 adds r3, #4
  44414. 80129e0: 4618 mov r0, r3
  44415. 80129e2: f7fe f9a5 bl 8010d30 <vListInitialiseItem>
  44416. vListInitialiseItem( &( pxNewTCB->xEventListItem ) );
  44417. 80129e6: 6b3b ldr r3, [r7, #48] @ 0x30
  44418. 80129e8: 3318 adds r3, #24
  44419. 80129ea: 4618 mov r0, r3
  44420. 80129ec: f7fe f9a0 bl 8010d30 <vListInitialiseItem>
  44421. /* Set the pxNewTCB as a link back from the ListItem_t. This is so we can get
  44422. back to the containing TCB from a generic item in a list. */
  44423. listSET_LIST_ITEM_OWNER( &( pxNewTCB->xStateListItem ), pxNewTCB );
  44424. 80129f0: 6b3b ldr r3, [r7, #48] @ 0x30
  44425. 80129f2: 6b3a ldr r2, [r7, #48] @ 0x30
  44426. 80129f4: 611a str r2, [r3, #16]
  44427. /* Event lists are always in priority order. */
  44428. listSET_LIST_ITEM_VALUE( &( pxNewTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) uxPriority ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  44429. 80129f6: 6abb ldr r3, [r7, #40] @ 0x28
  44430. 80129f8: f1c3 0238 rsb r2, r3, #56 @ 0x38
  44431. 80129fc: 6b3b ldr r3, [r7, #48] @ 0x30
  44432. 80129fe: 619a str r2, [r3, #24]
  44433. listSET_LIST_ITEM_OWNER( &( pxNewTCB->xEventListItem ), pxNewTCB );
  44434. 8012a00: 6b3b ldr r3, [r7, #48] @ 0x30
  44435. 8012a02: 6b3a ldr r2, [r7, #48] @ 0x30
  44436. 8012a04: 625a str r2, [r3, #36] @ 0x24
  44437. }
  44438. #endif
  44439. #if ( configUSE_TASK_NOTIFICATIONS == 1 )
  44440. {
  44441. pxNewTCB->ulNotifiedValue = 0;
  44442. 8012a06: 6b3b ldr r3, [r7, #48] @ 0x30
  44443. 8012a08: 2200 movs r2, #0
  44444. 8012a0a: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  44445. pxNewTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  44446. 8012a0e: 6b3b ldr r3, [r7, #48] @ 0x30
  44447. 8012a10: 2200 movs r2, #0
  44448. 8012a12: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  44449. #if ( configUSE_NEWLIB_REENTRANT == 1 )
  44450. {
  44451. /* Initialise this task's Newlib reent structure.
  44452. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  44453. for additional information. */
  44454. _REENT_INIT_PTR( ( &( pxNewTCB->xNewLib_reent ) ) );
  44455. 8012a16: 6b3b ldr r3, [r7, #48] @ 0x30
  44456. 8012a18: 3354 adds r3, #84 @ 0x54
  44457. 8012a1a: 224c movs r2, #76 @ 0x4c
  44458. 8012a1c: 2100 movs r1, #0
  44459. 8012a1e: 4618 mov r0, r3
  44460. 8012a20: f016 ff06 bl 8029830 <memset>
  44461. 8012a24: 6b3b ldr r3, [r7, #48] @ 0x30
  44462. 8012a26: 4a0d ldr r2, [pc, #52] @ (8012a5c <prvInitialiseNewTask+0x144>)
  44463. 8012a28: 659a str r2, [r3, #88] @ 0x58
  44464. 8012a2a: 6b3b ldr r3, [r7, #48] @ 0x30
  44465. 8012a2c: 4a0c ldr r2, [pc, #48] @ (8012a60 <prvInitialiseNewTask+0x148>)
  44466. 8012a2e: 65da str r2, [r3, #92] @ 0x5c
  44467. 8012a30: 6b3b ldr r3, [r7, #48] @ 0x30
  44468. 8012a32: 4a0c ldr r2, [pc, #48] @ (8012a64 <prvInitialiseNewTask+0x14c>)
  44469. 8012a34: 661a str r2, [r3, #96] @ 0x60
  44470. }
  44471. #endif /* portSTACK_GROWTH */
  44472. }
  44473. #else /* portHAS_STACK_OVERFLOW_CHECKING */
  44474. {
  44475. pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters );
  44476. 8012a36: 683a ldr r2, [r7, #0]
  44477. 8012a38: 68f9 ldr r1, [r7, #12]
  44478. 8012a3a: 69b8 ldr r0, [r7, #24]
  44479. 8012a3c: f001 fce0 bl 8014400 <pxPortInitialiseStack>
  44480. 8012a40: 4602 mov r2, r0
  44481. 8012a42: 6b3b ldr r3, [r7, #48] @ 0x30
  44482. 8012a44: 601a str r2, [r3, #0]
  44483. }
  44484. #endif /* portHAS_STACK_OVERFLOW_CHECKING */
  44485. }
  44486. #endif /* portUSING_MPU_WRAPPERS */
  44487. if( pxCreatedTask != NULL )
  44488. 8012a46: 6afb ldr r3, [r7, #44] @ 0x2c
  44489. 8012a48: 2b00 cmp r3, #0
  44490. 8012a4a: d002 beq.n 8012a52 <prvInitialiseNewTask+0x13a>
  44491. {
  44492. /* Pass the handle out in an anonymous way. The handle can be used to
  44493. change the created task's priority, delete the created task, etc.*/
  44494. *pxCreatedTask = ( TaskHandle_t ) pxNewTCB;
  44495. 8012a4c: 6afb ldr r3, [r7, #44] @ 0x2c
  44496. 8012a4e: 6b3a ldr r2, [r7, #48] @ 0x30
  44497. 8012a50: 601a str r2, [r3, #0]
  44498. }
  44499. else
  44500. {
  44501. mtCOVERAGE_TEST_MARKER();
  44502. }
  44503. }
  44504. 8012a52: bf00 nop
  44505. 8012a54: 3720 adds r7, #32
  44506. 8012a56: 46bd mov sp, r7
  44507. 8012a58: bd80 pop {r7, pc}
  44508. 8012a5a: bf00 nop
  44509. 8012a5c: 2402a1a8 .word 0x2402a1a8
  44510. 8012a60: 2402a210 .word 0x2402a210
  44511. 8012a64: 2402a278 .word 0x2402a278
  44512. 08012a68 <prvAddNewTaskToReadyList>:
  44513. /*-----------------------------------------------------------*/
  44514. static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB )
  44515. {
  44516. 8012a68: b580 push {r7, lr}
  44517. 8012a6a: b082 sub sp, #8
  44518. 8012a6c: af00 add r7, sp, #0
  44519. 8012a6e: 6078 str r0, [r7, #4]
  44520. /* Ensure interrupts don't access the task lists while the lists are being
  44521. updated. */
  44522. taskENTER_CRITICAL();
  44523. 8012a70: f001 fdfa bl 8014668 <vPortEnterCritical>
  44524. {
  44525. uxCurrentNumberOfTasks++;
  44526. 8012a74: 4b2d ldr r3, [pc, #180] @ (8012b2c <prvAddNewTaskToReadyList+0xc4>)
  44527. 8012a76: 681b ldr r3, [r3, #0]
  44528. 8012a78: 3301 adds r3, #1
  44529. 8012a7a: 4a2c ldr r2, [pc, #176] @ (8012b2c <prvAddNewTaskToReadyList+0xc4>)
  44530. 8012a7c: 6013 str r3, [r2, #0]
  44531. if( pxCurrentTCB == NULL )
  44532. 8012a7e: 4b2c ldr r3, [pc, #176] @ (8012b30 <prvAddNewTaskToReadyList+0xc8>)
  44533. 8012a80: 681b ldr r3, [r3, #0]
  44534. 8012a82: 2b00 cmp r3, #0
  44535. 8012a84: d109 bne.n 8012a9a <prvAddNewTaskToReadyList+0x32>
  44536. {
  44537. /* There are no other tasks, or all the other tasks are in
  44538. the suspended state - make this the current task. */
  44539. pxCurrentTCB = pxNewTCB;
  44540. 8012a86: 4a2a ldr r2, [pc, #168] @ (8012b30 <prvAddNewTaskToReadyList+0xc8>)
  44541. 8012a88: 687b ldr r3, [r7, #4]
  44542. 8012a8a: 6013 str r3, [r2, #0]
  44543. if( uxCurrentNumberOfTasks == ( UBaseType_t ) 1 )
  44544. 8012a8c: 4b27 ldr r3, [pc, #156] @ (8012b2c <prvAddNewTaskToReadyList+0xc4>)
  44545. 8012a8e: 681b ldr r3, [r3, #0]
  44546. 8012a90: 2b01 cmp r3, #1
  44547. 8012a92: d110 bne.n 8012ab6 <prvAddNewTaskToReadyList+0x4e>
  44548. {
  44549. /* This is the first task to be created so do the preliminary
  44550. initialisation required. We will not recover if this call
  44551. fails, but we will report the failure. */
  44552. prvInitialiseTaskLists();
  44553. 8012a94: f000 fc76 bl 8013384 <prvInitialiseTaskLists>
  44554. 8012a98: e00d b.n 8012ab6 <prvAddNewTaskToReadyList+0x4e>
  44555. else
  44556. {
  44557. /* If the scheduler is not already running, make this task the
  44558. current task if it is the highest priority task to be created
  44559. so far. */
  44560. if( xSchedulerRunning == pdFALSE )
  44561. 8012a9a: 4b26 ldr r3, [pc, #152] @ (8012b34 <prvAddNewTaskToReadyList+0xcc>)
  44562. 8012a9c: 681b ldr r3, [r3, #0]
  44563. 8012a9e: 2b00 cmp r3, #0
  44564. 8012aa0: d109 bne.n 8012ab6 <prvAddNewTaskToReadyList+0x4e>
  44565. {
  44566. if( pxCurrentTCB->uxPriority <= pxNewTCB->uxPriority )
  44567. 8012aa2: 4b23 ldr r3, [pc, #140] @ (8012b30 <prvAddNewTaskToReadyList+0xc8>)
  44568. 8012aa4: 681b ldr r3, [r3, #0]
  44569. 8012aa6: 6ada ldr r2, [r3, #44] @ 0x2c
  44570. 8012aa8: 687b ldr r3, [r7, #4]
  44571. 8012aaa: 6adb ldr r3, [r3, #44] @ 0x2c
  44572. 8012aac: 429a cmp r2, r3
  44573. 8012aae: d802 bhi.n 8012ab6 <prvAddNewTaskToReadyList+0x4e>
  44574. {
  44575. pxCurrentTCB = pxNewTCB;
  44576. 8012ab0: 4a1f ldr r2, [pc, #124] @ (8012b30 <prvAddNewTaskToReadyList+0xc8>)
  44577. 8012ab2: 687b ldr r3, [r7, #4]
  44578. 8012ab4: 6013 str r3, [r2, #0]
  44579. {
  44580. mtCOVERAGE_TEST_MARKER();
  44581. }
  44582. }
  44583. uxTaskNumber++;
  44584. 8012ab6: 4b20 ldr r3, [pc, #128] @ (8012b38 <prvAddNewTaskToReadyList+0xd0>)
  44585. 8012ab8: 681b ldr r3, [r3, #0]
  44586. 8012aba: 3301 adds r3, #1
  44587. 8012abc: 4a1e ldr r2, [pc, #120] @ (8012b38 <prvAddNewTaskToReadyList+0xd0>)
  44588. 8012abe: 6013 str r3, [r2, #0]
  44589. #if ( configUSE_TRACE_FACILITY == 1 )
  44590. {
  44591. /* Add a counter into the TCB for tracing only. */
  44592. pxNewTCB->uxTCBNumber = uxTaskNumber;
  44593. 8012ac0: 4b1d ldr r3, [pc, #116] @ (8012b38 <prvAddNewTaskToReadyList+0xd0>)
  44594. 8012ac2: 681a ldr r2, [r3, #0]
  44595. 8012ac4: 687b ldr r3, [r7, #4]
  44596. 8012ac6: 645a str r2, [r3, #68] @ 0x44
  44597. }
  44598. #endif /* configUSE_TRACE_FACILITY */
  44599. traceTASK_CREATE( pxNewTCB );
  44600. prvAddTaskToReadyList( pxNewTCB );
  44601. 8012ac8: 687b ldr r3, [r7, #4]
  44602. 8012aca: 6ada ldr r2, [r3, #44] @ 0x2c
  44603. 8012acc: 4b1b ldr r3, [pc, #108] @ (8012b3c <prvAddNewTaskToReadyList+0xd4>)
  44604. 8012ace: 681b ldr r3, [r3, #0]
  44605. 8012ad0: 429a cmp r2, r3
  44606. 8012ad2: d903 bls.n 8012adc <prvAddNewTaskToReadyList+0x74>
  44607. 8012ad4: 687b ldr r3, [r7, #4]
  44608. 8012ad6: 6adb ldr r3, [r3, #44] @ 0x2c
  44609. 8012ad8: 4a18 ldr r2, [pc, #96] @ (8012b3c <prvAddNewTaskToReadyList+0xd4>)
  44610. 8012ada: 6013 str r3, [r2, #0]
  44611. 8012adc: 687b ldr r3, [r7, #4]
  44612. 8012ade: 6ada ldr r2, [r3, #44] @ 0x2c
  44613. 8012ae0: 4613 mov r3, r2
  44614. 8012ae2: 009b lsls r3, r3, #2
  44615. 8012ae4: 4413 add r3, r2
  44616. 8012ae6: 009b lsls r3, r3, #2
  44617. 8012ae8: 4a15 ldr r2, [pc, #84] @ (8012b40 <prvAddNewTaskToReadyList+0xd8>)
  44618. 8012aea: 441a add r2, r3
  44619. 8012aec: 687b ldr r3, [r7, #4]
  44620. 8012aee: 3304 adds r3, #4
  44621. 8012af0: 4619 mov r1, r3
  44622. 8012af2: 4610 mov r0, r2
  44623. 8012af4: f7fe f929 bl 8010d4a <vListInsertEnd>
  44624. portSETUP_TCB( pxNewTCB );
  44625. }
  44626. taskEXIT_CRITICAL();
  44627. 8012af8: f001 fde8 bl 80146cc <vPortExitCritical>
  44628. if( xSchedulerRunning != pdFALSE )
  44629. 8012afc: 4b0d ldr r3, [pc, #52] @ (8012b34 <prvAddNewTaskToReadyList+0xcc>)
  44630. 8012afe: 681b ldr r3, [r3, #0]
  44631. 8012b00: 2b00 cmp r3, #0
  44632. 8012b02: d00e beq.n 8012b22 <prvAddNewTaskToReadyList+0xba>
  44633. {
  44634. /* If the created task is of a higher priority than the current task
  44635. then it should run now. */
  44636. if( pxCurrentTCB->uxPriority < pxNewTCB->uxPriority )
  44637. 8012b04: 4b0a ldr r3, [pc, #40] @ (8012b30 <prvAddNewTaskToReadyList+0xc8>)
  44638. 8012b06: 681b ldr r3, [r3, #0]
  44639. 8012b08: 6ada ldr r2, [r3, #44] @ 0x2c
  44640. 8012b0a: 687b ldr r3, [r7, #4]
  44641. 8012b0c: 6adb ldr r3, [r3, #44] @ 0x2c
  44642. 8012b0e: 429a cmp r2, r3
  44643. 8012b10: d207 bcs.n 8012b22 <prvAddNewTaskToReadyList+0xba>
  44644. {
  44645. taskYIELD_IF_USING_PREEMPTION();
  44646. 8012b12: 4b0c ldr r3, [pc, #48] @ (8012b44 <prvAddNewTaskToReadyList+0xdc>)
  44647. 8012b14: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  44648. 8012b18: 601a str r2, [r3, #0]
  44649. 8012b1a: f3bf 8f4f dsb sy
  44650. 8012b1e: f3bf 8f6f isb sy
  44651. }
  44652. else
  44653. {
  44654. mtCOVERAGE_TEST_MARKER();
  44655. }
  44656. }
  44657. 8012b22: bf00 nop
  44658. 8012b24: 3708 adds r7, #8
  44659. 8012b26: 46bd mov sp, r7
  44660. 8012b28: bd80 pop {r7, pc}
  44661. 8012b2a: bf00 nop
  44662. 8012b2c: 240032c8 .word 0x240032c8
  44663. 8012b30: 24002df4 .word 0x24002df4
  44664. 8012b34: 240032d4 .word 0x240032d4
  44665. 8012b38: 240032e4 .word 0x240032e4
  44666. 8012b3c: 240032d0 .word 0x240032d0
  44667. 8012b40: 24002df8 .word 0x24002df8
  44668. 8012b44: e000ed04 .word 0xe000ed04
  44669. 08012b48 <vTaskDelay>:
  44670. /*-----------------------------------------------------------*/
  44671. #if ( INCLUDE_vTaskDelay == 1 )
  44672. void vTaskDelay( const TickType_t xTicksToDelay )
  44673. {
  44674. 8012b48: b580 push {r7, lr}
  44675. 8012b4a: b084 sub sp, #16
  44676. 8012b4c: af00 add r7, sp, #0
  44677. 8012b4e: 6078 str r0, [r7, #4]
  44678. BaseType_t xAlreadyYielded = pdFALSE;
  44679. 8012b50: 2300 movs r3, #0
  44680. 8012b52: 60fb str r3, [r7, #12]
  44681. /* A delay time of zero just forces a reschedule. */
  44682. if( xTicksToDelay > ( TickType_t ) 0U )
  44683. 8012b54: 687b ldr r3, [r7, #4]
  44684. 8012b56: 2b00 cmp r3, #0
  44685. 8012b58: d018 beq.n 8012b8c <vTaskDelay+0x44>
  44686. {
  44687. configASSERT( uxSchedulerSuspended == 0 );
  44688. 8012b5a: 4b14 ldr r3, [pc, #80] @ (8012bac <vTaskDelay+0x64>)
  44689. 8012b5c: 681b ldr r3, [r3, #0]
  44690. 8012b5e: 2b00 cmp r3, #0
  44691. 8012b60: d00b beq.n 8012b7a <vTaskDelay+0x32>
  44692. __asm volatile
  44693. 8012b62: f04f 0350 mov.w r3, #80 @ 0x50
  44694. 8012b66: f383 8811 msr BASEPRI, r3
  44695. 8012b6a: f3bf 8f6f isb sy
  44696. 8012b6e: f3bf 8f4f dsb sy
  44697. 8012b72: 60bb str r3, [r7, #8]
  44698. }
  44699. 8012b74: bf00 nop
  44700. 8012b76: bf00 nop
  44701. 8012b78: e7fd b.n 8012b76 <vTaskDelay+0x2e>
  44702. vTaskSuspendAll();
  44703. 8012b7a: f000 f88b bl 8012c94 <vTaskSuspendAll>
  44704. list or removed from the blocked list until the scheduler
  44705. is resumed.
  44706. This task cannot be in an event list as it is the currently
  44707. executing task. */
  44708. prvAddCurrentTaskToDelayedList( xTicksToDelay, pdFALSE );
  44709. 8012b7e: 2100 movs r1, #0
  44710. 8012b80: 6878 ldr r0, [r7, #4]
  44711. 8012b82: f001 f88f bl 8013ca4 <prvAddCurrentTaskToDelayedList>
  44712. }
  44713. xAlreadyYielded = xTaskResumeAll();
  44714. 8012b86: f000 f893 bl 8012cb0 <xTaskResumeAll>
  44715. 8012b8a: 60f8 str r0, [r7, #12]
  44716. mtCOVERAGE_TEST_MARKER();
  44717. }
  44718. /* Force a reschedule if xTaskResumeAll has not already done so, we may
  44719. have put ourselves to sleep. */
  44720. if( xAlreadyYielded == pdFALSE )
  44721. 8012b8c: 68fb ldr r3, [r7, #12]
  44722. 8012b8e: 2b00 cmp r3, #0
  44723. 8012b90: d107 bne.n 8012ba2 <vTaskDelay+0x5a>
  44724. {
  44725. portYIELD_WITHIN_API();
  44726. 8012b92: 4b07 ldr r3, [pc, #28] @ (8012bb0 <vTaskDelay+0x68>)
  44727. 8012b94: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  44728. 8012b98: 601a str r2, [r3, #0]
  44729. 8012b9a: f3bf 8f4f dsb sy
  44730. 8012b9e: f3bf 8f6f isb sy
  44731. }
  44732. else
  44733. {
  44734. mtCOVERAGE_TEST_MARKER();
  44735. }
  44736. }
  44737. 8012ba2: bf00 nop
  44738. 8012ba4: 3710 adds r7, #16
  44739. 8012ba6: 46bd mov sp, r7
  44740. 8012ba8: bd80 pop {r7, pc}
  44741. 8012baa: bf00 nop
  44742. 8012bac: 240032f0 .word 0x240032f0
  44743. 8012bb0: e000ed04 .word 0xe000ed04
  44744. 08012bb4 <vTaskStartScheduler>:
  44745. #endif /* ( ( INCLUDE_xTaskResumeFromISR == 1 ) && ( INCLUDE_vTaskSuspend == 1 ) ) */
  44746. /*-----------------------------------------------------------*/
  44747. void vTaskStartScheduler( void )
  44748. {
  44749. 8012bb4: b580 push {r7, lr}
  44750. 8012bb6: b08a sub sp, #40 @ 0x28
  44751. 8012bb8: af04 add r7, sp, #16
  44752. BaseType_t xReturn;
  44753. /* Add the idle task at the lowest priority. */
  44754. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  44755. {
  44756. StaticTask_t *pxIdleTaskTCBBuffer = NULL;
  44757. 8012bba: 2300 movs r3, #0
  44758. 8012bbc: 60bb str r3, [r7, #8]
  44759. StackType_t *pxIdleTaskStackBuffer = NULL;
  44760. 8012bbe: 2300 movs r3, #0
  44761. 8012bc0: 607b str r3, [r7, #4]
  44762. uint32_t ulIdleTaskStackSize;
  44763. /* The Idle task is created using user provided RAM - obtain the
  44764. address of the RAM then create the idle task. */
  44765. vApplicationGetIdleTaskMemory( &pxIdleTaskTCBBuffer, &pxIdleTaskStackBuffer, &ulIdleTaskStackSize );
  44766. 8012bc2: 463a mov r2, r7
  44767. 8012bc4: 1d39 adds r1, r7, #4
  44768. 8012bc6: f107 0308 add.w r3, r7, #8
  44769. 8012bca: 4618 mov r0, r3
  44770. 8012bcc: f7fe f85c bl 8010c88 <vApplicationGetIdleTaskMemory>
  44771. xIdleTaskHandle = xTaskCreateStatic( prvIdleTask,
  44772. 8012bd0: 6839 ldr r1, [r7, #0]
  44773. 8012bd2: 687b ldr r3, [r7, #4]
  44774. 8012bd4: 68ba ldr r2, [r7, #8]
  44775. 8012bd6: 9202 str r2, [sp, #8]
  44776. 8012bd8: 9301 str r3, [sp, #4]
  44777. 8012bda: 2300 movs r3, #0
  44778. 8012bdc: 9300 str r3, [sp, #0]
  44779. 8012bde: 2300 movs r3, #0
  44780. 8012be0: 460a mov r2, r1
  44781. 8012be2: 4924 ldr r1, [pc, #144] @ (8012c74 <vTaskStartScheduler+0xc0>)
  44782. 8012be4: 4824 ldr r0, [pc, #144] @ (8012c78 <vTaskStartScheduler+0xc4>)
  44783. 8012be6: f7ff fdf1 bl 80127cc <xTaskCreateStatic>
  44784. 8012bea: 4603 mov r3, r0
  44785. 8012bec: 4a23 ldr r2, [pc, #140] @ (8012c7c <vTaskStartScheduler+0xc8>)
  44786. 8012bee: 6013 str r3, [r2, #0]
  44787. ( void * ) NULL, /*lint !e961. The cast is not redundant for all compilers. */
  44788. portPRIVILEGE_BIT, /* In effect ( tskIDLE_PRIORITY | portPRIVILEGE_BIT ), but tskIDLE_PRIORITY is zero. */
  44789. pxIdleTaskStackBuffer,
  44790. pxIdleTaskTCBBuffer ); /*lint !e961 MISRA exception, justified as it is not a redundant explicit cast to all supported compilers. */
  44791. if( xIdleTaskHandle != NULL )
  44792. 8012bf0: 4b22 ldr r3, [pc, #136] @ (8012c7c <vTaskStartScheduler+0xc8>)
  44793. 8012bf2: 681b ldr r3, [r3, #0]
  44794. 8012bf4: 2b00 cmp r3, #0
  44795. 8012bf6: d002 beq.n 8012bfe <vTaskStartScheduler+0x4a>
  44796. {
  44797. xReturn = pdPASS;
  44798. 8012bf8: 2301 movs r3, #1
  44799. 8012bfa: 617b str r3, [r7, #20]
  44800. 8012bfc: e001 b.n 8012c02 <vTaskStartScheduler+0x4e>
  44801. }
  44802. else
  44803. {
  44804. xReturn = pdFAIL;
  44805. 8012bfe: 2300 movs r3, #0
  44806. 8012c00: 617b str r3, [r7, #20]
  44807. }
  44808. #endif /* configSUPPORT_STATIC_ALLOCATION */
  44809. #if ( configUSE_TIMERS == 1 )
  44810. {
  44811. if( xReturn == pdPASS )
  44812. 8012c02: 697b ldr r3, [r7, #20]
  44813. 8012c04: 2b01 cmp r3, #1
  44814. 8012c06: d102 bne.n 8012c0e <vTaskStartScheduler+0x5a>
  44815. {
  44816. xReturn = xTimerCreateTimerTask();
  44817. 8012c08: f001 f8a0 bl 8013d4c <xTimerCreateTimerTask>
  44818. 8012c0c: 6178 str r0, [r7, #20]
  44819. mtCOVERAGE_TEST_MARKER();
  44820. }
  44821. }
  44822. #endif /* configUSE_TIMERS */
  44823. if( xReturn == pdPASS )
  44824. 8012c0e: 697b ldr r3, [r7, #20]
  44825. 8012c10: 2b01 cmp r3, #1
  44826. 8012c12: d11b bne.n 8012c4c <vTaskStartScheduler+0x98>
  44827. __asm volatile
  44828. 8012c14: f04f 0350 mov.w r3, #80 @ 0x50
  44829. 8012c18: f383 8811 msr BASEPRI, r3
  44830. 8012c1c: f3bf 8f6f isb sy
  44831. 8012c20: f3bf 8f4f dsb sy
  44832. 8012c24: 613b str r3, [r7, #16]
  44833. }
  44834. 8012c26: bf00 nop
  44835. {
  44836. /* Switch Newlib's _impure_ptr variable to point to the _reent
  44837. structure specific to the task that will run first.
  44838. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  44839. for additional information. */
  44840. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  44841. 8012c28: 4b15 ldr r3, [pc, #84] @ (8012c80 <vTaskStartScheduler+0xcc>)
  44842. 8012c2a: 681b ldr r3, [r3, #0]
  44843. 8012c2c: 3354 adds r3, #84 @ 0x54
  44844. 8012c2e: 4a15 ldr r2, [pc, #84] @ (8012c84 <vTaskStartScheduler+0xd0>)
  44845. 8012c30: 6013 str r3, [r2, #0]
  44846. }
  44847. #endif /* configUSE_NEWLIB_REENTRANT */
  44848. xNextTaskUnblockTime = portMAX_DELAY;
  44849. 8012c32: 4b15 ldr r3, [pc, #84] @ (8012c88 <vTaskStartScheduler+0xd4>)
  44850. 8012c34: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  44851. 8012c38: 601a str r2, [r3, #0]
  44852. xSchedulerRunning = pdTRUE;
  44853. 8012c3a: 4b14 ldr r3, [pc, #80] @ (8012c8c <vTaskStartScheduler+0xd8>)
  44854. 8012c3c: 2201 movs r2, #1
  44855. 8012c3e: 601a str r2, [r3, #0]
  44856. xTickCount = ( TickType_t ) configINITIAL_TICK_COUNT;
  44857. 8012c40: 4b13 ldr r3, [pc, #76] @ (8012c90 <vTaskStartScheduler+0xdc>)
  44858. 8012c42: 2200 movs r2, #0
  44859. 8012c44: 601a str r2, [r3, #0]
  44860. traceTASK_SWITCHED_IN();
  44861. /* Setting up the timer tick is hardware specific and thus in the
  44862. portable interface. */
  44863. if( xPortStartScheduler() != pdFALSE )
  44864. 8012c46: f001 fc6b bl 8014520 <xPortStartScheduler>
  44865. }
  44866. /* Prevent compiler warnings if INCLUDE_xTaskGetIdleTaskHandle is set to 0,
  44867. meaning xIdleTaskHandle is not used anywhere else. */
  44868. ( void ) xIdleTaskHandle;
  44869. }
  44870. 8012c4a: e00f b.n 8012c6c <vTaskStartScheduler+0xb8>
  44871. configASSERT( xReturn != errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY );
  44872. 8012c4c: 697b ldr r3, [r7, #20]
  44873. 8012c4e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  44874. 8012c52: d10b bne.n 8012c6c <vTaskStartScheduler+0xb8>
  44875. __asm volatile
  44876. 8012c54: f04f 0350 mov.w r3, #80 @ 0x50
  44877. 8012c58: f383 8811 msr BASEPRI, r3
  44878. 8012c5c: f3bf 8f6f isb sy
  44879. 8012c60: f3bf 8f4f dsb sy
  44880. 8012c64: 60fb str r3, [r7, #12]
  44881. }
  44882. 8012c66: bf00 nop
  44883. 8012c68: bf00 nop
  44884. 8012c6a: e7fd b.n 8012c68 <vTaskStartScheduler+0xb4>
  44885. }
  44886. 8012c6c: bf00 nop
  44887. 8012c6e: 3718 adds r7, #24
  44888. 8012c70: 46bd mov sp, r7
  44889. 8012c72: bd80 pop {r7, pc}
  44890. 8012c74: 0802c700 .word 0x0802c700
  44891. 8012c78: 08013355 .word 0x08013355
  44892. 8012c7c: 240032ec .word 0x240032ec
  44893. 8012c80: 24002df4 .word 0x24002df4
  44894. 8012c84: 240001c0 .word 0x240001c0
  44895. 8012c88: 240032e8 .word 0x240032e8
  44896. 8012c8c: 240032d4 .word 0x240032d4
  44897. 8012c90: 240032cc .word 0x240032cc
  44898. 08012c94 <vTaskSuspendAll>:
  44899. vPortEndScheduler();
  44900. }
  44901. /*----------------------------------------------------------*/
  44902. void vTaskSuspendAll( void )
  44903. {
  44904. 8012c94: b480 push {r7}
  44905. 8012c96: af00 add r7, sp, #0
  44906. do not otherwise exhibit real time behaviour. */
  44907. portSOFTWARE_BARRIER();
  44908. /* The scheduler is suspended if uxSchedulerSuspended is non-zero. An increment
  44909. is used to allow calls to vTaskSuspendAll() to nest. */
  44910. ++uxSchedulerSuspended;
  44911. 8012c98: 4b04 ldr r3, [pc, #16] @ (8012cac <vTaskSuspendAll+0x18>)
  44912. 8012c9a: 681b ldr r3, [r3, #0]
  44913. 8012c9c: 3301 adds r3, #1
  44914. 8012c9e: 4a03 ldr r2, [pc, #12] @ (8012cac <vTaskSuspendAll+0x18>)
  44915. 8012ca0: 6013 str r3, [r2, #0]
  44916. /* Enforces ordering for ports and optimised compilers that may otherwise place
  44917. the above increment elsewhere. */
  44918. portMEMORY_BARRIER();
  44919. }
  44920. 8012ca2: bf00 nop
  44921. 8012ca4: 46bd mov sp, r7
  44922. 8012ca6: f85d 7b04 ldr.w r7, [sp], #4
  44923. 8012caa: 4770 bx lr
  44924. 8012cac: 240032f0 .word 0x240032f0
  44925. 08012cb0 <xTaskResumeAll>:
  44926. #endif /* configUSE_TICKLESS_IDLE */
  44927. /*----------------------------------------------------------*/
  44928. BaseType_t xTaskResumeAll( void )
  44929. {
  44930. 8012cb0: b580 push {r7, lr}
  44931. 8012cb2: b084 sub sp, #16
  44932. 8012cb4: af00 add r7, sp, #0
  44933. TCB_t *pxTCB = NULL;
  44934. 8012cb6: 2300 movs r3, #0
  44935. 8012cb8: 60fb str r3, [r7, #12]
  44936. BaseType_t xAlreadyYielded = pdFALSE;
  44937. 8012cba: 2300 movs r3, #0
  44938. 8012cbc: 60bb str r3, [r7, #8]
  44939. /* If uxSchedulerSuspended is zero then this function does not match a
  44940. previous call to vTaskSuspendAll(). */
  44941. configASSERT( uxSchedulerSuspended );
  44942. 8012cbe: 4b42 ldr r3, [pc, #264] @ (8012dc8 <xTaskResumeAll+0x118>)
  44943. 8012cc0: 681b ldr r3, [r3, #0]
  44944. 8012cc2: 2b00 cmp r3, #0
  44945. 8012cc4: d10b bne.n 8012cde <xTaskResumeAll+0x2e>
  44946. __asm volatile
  44947. 8012cc6: f04f 0350 mov.w r3, #80 @ 0x50
  44948. 8012cca: f383 8811 msr BASEPRI, r3
  44949. 8012cce: f3bf 8f6f isb sy
  44950. 8012cd2: f3bf 8f4f dsb sy
  44951. 8012cd6: 603b str r3, [r7, #0]
  44952. }
  44953. 8012cd8: bf00 nop
  44954. 8012cda: bf00 nop
  44955. 8012cdc: e7fd b.n 8012cda <xTaskResumeAll+0x2a>
  44956. /* It is possible that an ISR caused a task to be removed from an event
  44957. list while the scheduler was suspended. If this was the case then the
  44958. removed task will have been added to the xPendingReadyList. Once the
  44959. scheduler has been resumed it is safe to move all the pending ready
  44960. tasks from this list into their appropriate ready list. */
  44961. taskENTER_CRITICAL();
  44962. 8012cde: f001 fcc3 bl 8014668 <vPortEnterCritical>
  44963. {
  44964. --uxSchedulerSuspended;
  44965. 8012ce2: 4b39 ldr r3, [pc, #228] @ (8012dc8 <xTaskResumeAll+0x118>)
  44966. 8012ce4: 681b ldr r3, [r3, #0]
  44967. 8012ce6: 3b01 subs r3, #1
  44968. 8012ce8: 4a37 ldr r2, [pc, #220] @ (8012dc8 <xTaskResumeAll+0x118>)
  44969. 8012cea: 6013 str r3, [r2, #0]
  44970. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  44971. 8012cec: 4b36 ldr r3, [pc, #216] @ (8012dc8 <xTaskResumeAll+0x118>)
  44972. 8012cee: 681b ldr r3, [r3, #0]
  44973. 8012cf0: 2b00 cmp r3, #0
  44974. 8012cf2: d162 bne.n 8012dba <xTaskResumeAll+0x10a>
  44975. {
  44976. if( uxCurrentNumberOfTasks > ( UBaseType_t ) 0U )
  44977. 8012cf4: 4b35 ldr r3, [pc, #212] @ (8012dcc <xTaskResumeAll+0x11c>)
  44978. 8012cf6: 681b ldr r3, [r3, #0]
  44979. 8012cf8: 2b00 cmp r3, #0
  44980. 8012cfa: d05e beq.n 8012dba <xTaskResumeAll+0x10a>
  44981. {
  44982. /* Move any readied tasks from the pending list into the
  44983. appropriate ready list. */
  44984. while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
  44985. 8012cfc: e02f b.n 8012d5e <xTaskResumeAll+0xae>
  44986. {
  44987. pxTCB = listGET_OWNER_OF_HEAD_ENTRY( ( &xPendingReadyList ) ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  44988. 8012cfe: 4b34 ldr r3, [pc, #208] @ (8012dd0 <xTaskResumeAll+0x120>)
  44989. 8012d00: 68db ldr r3, [r3, #12]
  44990. 8012d02: 68db ldr r3, [r3, #12]
  44991. 8012d04: 60fb str r3, [r7, #12]
  44992. ( void ) uxListRemove( &( pxTCB->xEventListItem ) );
  44993. 8012d06: 68fb ldr r3, [r7, #12]
  44994. 8012d08: 3318 adds r3, #24
  44995. 8012d0a: 4618 mov r0, r3
  44996. 8012d0c: f7fe f87a bl 8010e04 <uxListRemove>
  44997. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  44998. 8012d10: 68fb ldr r3, [r7, #12]
  44999. 8012d12: 3304 adds r3, #4
  45000. 8012d14: 4618 mov r0, r3
  45001. 8012d16: f7fe f875 bl 8010e04 <uxListRemove>
  45002. prvAddTaskToReadyList( pxTCB );
  45003. 8012d1a: 68fb ldr r3, [r7, #12]
  45004. 8012d1c: 6ada ldr r2, [r3, #44] @ 0x2c
  45005. 8012d1e: 4b2d ldr r3, [pc, #180] @ (8012dd4 <xTaskResumeAll+0x124>)
  45006. 8012d20: 681b ldr r3, [r3, #0]
  45007. 8012d22: 429a cmp r2, r3
  45008. 8012d24: d903 bls.n 8012d2e <xTaskResumeAll+0x7e>
  45009. 8012d26: 68fb ldr r3, [r7, #12]
  45010. 8012d28: 6adb ldr r3, [r3, #44] @ 0x2c
  45011. 8012d2a: 4a2a ldr r2, [pc, #168] @ (8012dd4 <xTaskResumeAll+0x124>)
  45012. 8012d2c: 6013 str r3, [r2, #0]
  45013. 8012d2e: 68fb ldr r3, [r7, #12]
  45014. 8012d30: 6ada ldr r2, [r3, #44] @ 0x2c
  45015. 8012d32: 4613 mov r3, r2
  45016. 8012d34: 009b lsls r3, r3, #2
  45017. 8012d36: 4413 add r3, r2
  45018. 8012d38: 009b lsls r3, r3, #2
  45019. 8012d3a: 4a27 ldr r2, [pc, #156] @ (8012dd8 <xTaskResumeAll+0x128>)
  45020. 8012d3c: 441a add r2, r3
  45021. 8012d3e: 68fb ldr r3, [r7, #12]
  45022. 8012d40: 3304 adds r3, #4
  45023. 8012d42: 4619 mov r1, r3
  45024. 8012d44: 4610 mov r0, r2
  45025. 8012d46: f7fe f800 bl 8010d4a <vListInsertEnd>
  45026. /* If the moved task has a priority higher than the current
  45027. task then a yield must be performed. */
  45028. if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
  45029. 8012d4a: 68fb ldr r3, [r7, #12]
  45030. 8012d4c: 6ada ldr r2, [r3, #44] @ 0x2c
  45031. 8012d4e: 4b23 ldr r3, [pc, #140] @ (8012ddc <xTaskResumeAll+0x12c>)
  45032. 8012d50: 681b ldr r3, [r3, #0]
  45033. 8012d52: 6adb ldr r3, [r3, #44] @ 0x2c
  45034. 8012d54: 429a cmp r2, r3
  45035. 8012d56: d302 bcc.n 8012d5e <xTaskResumeAll+0xae>
  45036. {
  45037. xYieldPending = pdTRUE;
  45038. 8012d58: 4b21 ldr r3, [pc, #132] @ (8012de0 <xTaskResumeAll+0x130>)
  45039. 8012d5a: 2201 movs r2, #1
  45040. 8012d5c: 601a str r2, [r3, #0]
  45041. while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
  45042. 8012d5e: 4b1c ldr r3, [pc, #112] @ (8012dd0 <xTaskResumeAll+0x120>)
  45043. 8012d60: 681b ldr r3, [r3, #0]
  45044. 8012d62: 2b00 cmp r3, #0
  45045. 8012d64: d1cb bne.n 8012cfe <xTaskResumeAll+0x4e>
  45046. {
  45047. mtCOVERAGE_TEST_MARKER();
  45048. }
  45049. }
  45050. if( pxTCB != NULL )
  45051. 8012d66: 68fb ldr r3, [r7, #12]
  45052. 8012d68: 2b00 cmp r3, #0
  45053. 8012d6a: d001 beq.n 8012d70 <xTaskResumeAll+0xc0>
  45054. which may have prevented the next unblock time from being
  45055. re-calculated, in which case re-calculate it now. Mainly
  45056. important for low power tickless implementations, where
  45057. this can prevent an unnecessary exit from low power
  45058. state. */
  45059. prvResetNextTaskUnblockTime();
  45060. 8012d6c: f000 fbae bl 80134cc <prvResetNextTaskUnblockTime>
  45061. /* If any ticks occurred while the scheduler was suspended then
  45062. they should be processed now. This ensures the tick count does
  45063. not slip, and that any delayed tasks are resumed at the correct
  45064. time. */
  45065. {
  45066. TickType_t xPendedCounts = xPendedTicks; /* Non-volatile copy. */
  45067. 8012d70: 4b1c ldr r3, [pc, #112] @ (8012de4 <xTaskResumeAll+0x134>)
  45068. 8012d72: 681b ldr r3, [r3, #0]
  45069. 8012d74: 607b str r3, [r7, #4]
  45070. if( xPendedCounts > ( TickType_t ) 0U )
  45071. 8012d76: 687b ldr r3, [r7, #4]
  45072. 8012d78: 2b00 cmp r3, #0
  45073. 8012d7a: d010 beq.n 8012d9e <xTaskResumeAll+0xee>
  45074. {
  45075. do
  45076. {
  45077. if( xTaskIncrementTick() != pdFALSE )
  45078. 8012d7c: f000 f858 bl 8012e30 <xTaskIncrementTick>
  45079. 8012d80: 4603 mov r3, r0
  45080. 8012d82: 2b00 cmp r3, #0
  45081. 8012d84: d002 beq.n 8012d8c <xTaskResumeAll+0xdc>
  45082. {
  45083. xYieldPending = pdTRUE;
  45084. 8012d86: 4b16 ldr r3, [pc, #88] @ (8012de0 <xTaskResumeAll+0x130>)
  45085. 8012d88: 2201 movs r2, #1
  45086. 8012d8a: 601a str r2, [r3, #0]
  45087. }
  45088. else
  45089. {
  45090. mtCOVERAGE_TEST_MARKER();
  45091. }
  45092. --xPendedCounts;
  45093. 8012d8c: 687b ldr r3, [r7, #4]
  45094. 8012d8e: 3b01 subs r3, #1
  45095. 8012d90: 607b str r3, [r7, #4]
  45096. } while( xPendedCounts > ( TickType_t ) 0U );
  45097. 8012d92: 687b ldr r3, [r7, #4]
  45098. 8012d94: 2b00 cmp r3, #0
  45099. 8012d96: d1f1 bne.n 8012d7c <xTaskResumeAll+0xcc>
  45100. xPendedTicks = 0;
  45101. 8012d98: 4b12 ldr r3, [pc, #72] @ (8012de4 <xTaskResumeAll+0x134>)
  45102. 8012d9a: 2200 movs r2, #0
  45103. 8012d9c: 601a str r2, [r3, #0]
  45104. {
  45105. mtCOVERAGE_TEST_MARKER();
  45106. }
  45107. }
  45108. if( xYieldPending != pdFALSE )
  45109. 8012d9e: 4b10 ldr r3, [pc, #64] @ (8012de0 <xTaskResumeAll+0x130>)
  45110. 8012da0: 681b ldr r3, [r3, #0]
  45111. 8012da2: 2b00 cmp r3, #0
  45112. 8012da4: d009 beq.n 8012dba <xTaskResumeAll+0x10a>
  45113. {
  45114. #if( configUSE_PREEMPTION != 0 )
  45115. {
  45116. xAlreadyYielded = pdTRUE;
  45117. 8012da6: 2301 movs r3, #1
  45118. 8012da8: 60bb str r3, [r7, #8]
  45119. }
  45120. #endif
  45121. taskYIELD_IF_USING_PREEMPTION();
  45122. 8012daa: 4b0f ldr r3, [pc, #60] @ (8012de8 <xTaskResumeAll+0x138>)
  45123. 8012dac: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  45124. 8012db0: 601a str r2, [r3, #0]
  45125. 8012db2: f3bf 8f4f dsb sy
  45126. 8012db6: f3bf 8f6f isb sy
  45127. else
  45128. {
  45129. mtCOVERAGE_TEST_MARKER();
  45130. }
  45131. }
  45132. taskEXIT_CRITICAL();
  45133. 8012dba: f001 fc87 bl 80146cc <vPortExitCritical>
  45134. return xAlreadyYielded;
  45135. 8012dbe: 68bb ldr r3, [r7, #8]
  45136. }
  45137. 8012dc0: 4618 mov r0, r3
  45138. 8012dc2: 3710 adds r7, #16
  45139. 8012dc4: 46bd mov sp, r7
  45140. 8012dc6: bd80 pop {r7, pc}
  45141. 8012dc8: 240032f0 .word 0x240032f0
  45142. 8012dcc: 240032c8 .word 0x240032c8
  45143. 8012dd0: 24003288 .word 0x24003288
  45144. 8012dd4: 240032d0 .word 0x240032d0
  45145. 8012dd8: 24002df8 .word 0x24002df8
  45146. 8012ddc: 24002df4 .word 0x24002df4
  45147. 8012de0: 240032dc .word 0x240032dc
  45148. 8012de4: 240032d8 .word 0x240032d8
  45149. 8012de8: e000ed04 .word 0xe000ed04
  45150. 08012dec <xTaskGetTickCount>:
  45151. /*-----------------------------------------------------------*/
  45152. TickType_t xTaskGetTickCount( void )
  45153. {
  45154. 8012dec: b480 push {r7}
  45155. 8012dee: b083 sub sp, #12
  45156. 8012df0: af00 add r7, sp, #0
  45157. TickType_t xTicks;
  45158. /* Critical section required if running on a 16 bit processor. */
  45159. portTICK_TYPE_ENTER_CRITICAL();
  45160. {
  45161. xTicks = xTickCount;
  45162. 8012df2: 4b05 ldr r3, [pc, #20] @ (8012e08 <xTaskGetTickCount+0x1c>)
  45163. 8012df4: 681b ldr r3, [r3, #0]
  45164. 8012df6: 607b str r3, [r7, #4]
  45165. }
  45166. portTICK_TYPE_EXIT_CRITICAL();
  45167. return xTicks;
  45168. 8012df8: 687b ldr r3, [r7, #4]
  45169. }
  45170. 8012dfa: 4618 mov r0, r3
  45171. 8012dfc: 370c adds r7, #12
  45172. 8012dfe: 46bd mov sp, r7
  45173. 8012e00: f85d 7b04 ldr.w r7, [sp], #4
  45174. 8012e04: 4770 bx lr
  45175. 8012e06: bf00 nop
  45176. 8012e08: 240032cc .word 0x240032cc
  45177. 08012e0c <xTaskGetTickCountFromISR>:
  45178. /*-----------------------------------------------------------*/
  45179. TickType_t xTaskGetTickCountFromISR( void )
  45180. {
  45181. 8012e0c: b580 push {r7, lr}
  45182. 8012e0e: b082 sub sp, #8
  45183. 8012e10: af00 add r7, sp, #0
  45184. that have been assigned a priority at or (logically) below the maximum
  45185. system call interrupt priority. FreeRTOS maintains a separate interrupt
  45186. safe API to ensure interrupt entry is as fast and as simple as possible.
  45187. More information (albeit Cortex-M specific) is provided on the following
  45188. link: https://www.freertos.org/RTOS-Cortex-M3-M4.html */
  45189. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  45190. 8012e12: f001 fd09 bl 8014828 <vPortValidateInterruptPriority>
  45191. uxSavedInterruptStatus = portTICK_TYPE_SET_INTERRUPT_MASK_FROM_ISR();
  45192. 8012e16: 2300 movs r3, #0
  45193. 8012e18: 607b str r3, [r7, #4]
  45194. {
  45195. xReturn = xTickCount;
  45196. 8012e1a: 4b04 ldr r3, [pc, #16] @ (8012e2c <xTaskGetTickCountFromISR+0x20>)
  45197. 8012e1c: 681b ldr r3, [r3, #0]
  45198. 8012e1e: 603b str r3, [r7, #0]
  45199. }
  45200. portTICK_TYPE_CLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  45201. return xReturn;
  45202. 8012e20: 683b ldr r3, [r7, #0]
  45203. }
  45204. 8012e22: 4618 mov r0, r3
  45205. 8012e24: 3708 adds r7, #8
  45206. 8012e26: 46bd mov sp, r7
  45207. 8012e28: bd80 pop {r7, pc}
  45208. 8012e2a: bf00 nop
  45209. 8012e2c: 240032cc .word 0x240032cc
  45210. 08012e30 <xTaskIncrementTick>:
  45211. #endif /* INCLUDE_xTaskAbortDelay */
  45212. /*----------------------------------------------------------*/
  45213. BaseType_t xTaskIncrementTick( void )
  45214. {
  45215. 8012e30: b580 push {r7, lr}
  45216. 8012e32: b086 sub sp, #24
  45217. 8012e34: af00 add r7, sp, #0
  45218. TCB_t * pxTCB;
  45219. TickType_t xItemValue;
  45220. BaseType_t xSwitchRequired = pdFALSE;
  45221. 8012e36: 2300 movs r3, #0
  45222. 8012e38: 617b str r3, [r7, #20]
  45223. /* Called by the portable layer each time a tick interrupt occurs.
  45224. Increments the tick then checks to see if the new tick value will cause any
  45225. tasks to be unblocked. */
  45226. traceTASK_INCREMENT_TICK( xTickCount );
  45227. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  45228. 8012e3a: 4b4f ldr r3, [pc, #316] @ (8012f78 <xTaskIncrementTick+0x148>)
  45229. 8012e3c: 681b ldr r3, [r3, #0]
  45230. 8012e3e: 2b00 cmp r3, #0
  45231. 8012e40: f040 8090 bne.w 8012f64 <xTaskIncrementTick+0x134>
  45232. {
  45233. /* Minor optimisation. The tick count cannot change in this
  45234. block. */
  45235. const TickType_t xConstTickCount = xTickCount + ( TickType_t ) 1;
  45236. 8012e44: 4b4d ldr r3, [pc, #308] @ (8012f7c <xTaskIncrementTick+0x14c>)
  45237. 8012e46: 681b ldr r3, [r3, #0]
  45238. 8012e48: 3301 adds r3, #1
  45239. 8012e4a: 613b str r3, [r7, #16]
  45240. /* Increment the RTOS tick, switching the delayed and overflowed
  45241. delayed lists if it wraps to 0. */
  45242. xTickCount = xConstTickCount;
  45243. 8012e4c: 4a4b ldr r2, [pc, #300] @ (8012f7c <xTaskIncrementTick+0x14c>)
  45244. 8012e4e: 693b ldr r3, [r7, #16]
  45245. 8012e50: 6013 str r3, [r2, #0]
  45246. if( xConstTickCount == ( TickType_t ) 0U ) /*lint !e774 'if' does not always evaluate to false as it is looking for an overflow. */
  45247. 8012e52: 693b ldr r3, [r7, #16]
  45248. 8012e54: 2b00 cmp r3, #0
  45249. 8012e56: d121 bne.n 8012e9c <xTaskIncrementTick+0x6c>
  45250. {
  45251. taskSWITCH_DELAYED_LISTS();
  45252. 8012e58: 4b49 ldr r3, [pc, #292] @ (8012f80 <xTaskIncrementTick+0x150>)
  45253. 8012e5a: 681b ldr r3, [r3, #0]
  45254. 8012e5c: 681b ldr r3, [r3, #0]
  45255. 8012e5e: 2b00 cmp r3, #0
  45256. 8012e60: d00b beq.n 8012e7a <xTaskIncrementTick+0x4a>
  45257. __asm volatile
  45258. 8012e62: f04f 0350 mov.w r3, #80 @ 0x50
  45259. 8012e66: f383 8811 msr BASEPRI, r3
  45260. 8012e6a: f3bf 8f6f isb sy
  45261. 8012e6e: f3bf 8f4f dsb sy
  45262. 8012e72: 603b str r3, [r7, #0]
  45263. }
  45264. 8012e74: bf00 nop
  45265. 8012e76: bf00 nop
  45266. 8012e78: e7fd b.n 8012e76 <xTaskIncrementTick+0x46>
  45267. 8012e7a: 4b41 ldr r3, [pc, #260] @ (8012f80 <xTaskIncrementTick+0x150>)
  45268. 8012e7c: 681b ldr r3, [r3, #0]
  45269. 8012e7e: 60fb str r3, [r7, #12]
  45270. 8012e80: 4b40 ldr r3, [pc, #256] @ (8012f84 <xTaskIncrementTick+0x154>)
  45271. 8012e82: 681b ldr r3, [r3, #0]
  45272. 8012e84: 4a3e ldr r2, [pc, #248] @ (8012f80 <xTaskIncrementTick+0x150>)
  45273. 8012e86: 6013 str r3, [r2, #0]
  45274. 8012e88: 4a3e ldr r2, [pc, #248] @ (8012f84 <xTaskIncrementTick+0x154>)
  45275. 8012e8a: 68fb ldr r3, [r7, #12]
  45276. 8012e8c: 6013 str r3, [r2, #0]
  45277. 8012e8e: 4b3e ldr r3, [pc, #248] @ (8012f88 <xTaskIncrementTick+0x158>)
  45278. 8012e90: 681b ldr r3, [r3, #0]
  45279. 8012e92: 3301 adds r3, #1
  45280. 8012e94: 4a3c ldr r2, [pc, #240] @ (8012f88 <xTaskIncrementTick+0x158>)
  45281. 8012e96: 6013 str r3, [r2, #0]
  45282. 8012e98: f000 fb18 bl 80134cc <prvResetNextTaskUnblockTime>
  45283. /* See if this tick has made a timeout expire. Tasks are stored in
  45284. the queue in the order of their wake time - meaning once one task
  45285. has been found whose block time has not expired there is no need to
  45286. look any further down the list. */
  45287. if( xConstTickCount >= xNextTaskUnblockTime )
  45288. 8012e9c: 4b3b ldr r3, [pc, #236] @ (8012f8c <xTaskIncrementTick+0x15c>)
  45289. 8012e9e: 681b ldr r3, [r3, #0]
  45290. 8012ea0: 693a ldr r2, [r7, #16]
  45291. 8012ea2: 429a cmp r2, r3
  45292. 8012ea4: d349 bcc.n 8012f3a <xTaskIncrementTick+0x10a>
  45293. {
  45294. for( ;; )
  45295. {
  45296. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  45297. 8012ea6: 4b36 ldr r3, [pc, #216] @ (8012f80 <xTaskIncrementTick+0x150>)
  45298. 8012ea8: 681b ldr r3, [r3, #0]
  45299. 8012eaa: 681b ldr r3, [r3, #0]
  45300. 8012eac: 2b00 cmp r3, #0
  45301. 8012eae: d104 bne.n 8012eba <xTaskIncrementTick+0x8a>
  45302. /* The delayed list is empty. Set xNextTaskUnblockTime
  45303. to the maximum possible value so it is extremely
  45304. unlikely that the
  45305. if( xTickCount >= xNextTaskUnblockTime ) test will pass
  45306. next time through. */
  45307. xNextTaskUnblockTime = portMAX_DELAY; /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  45308. 8012eb0: 4b36 ldr r3, [pc, #216] @ (8012f8c <xTaskIncrementTick+0x15c>)
  45309. 8012eb2: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  45310. 8012eb6: 601a str r2, [r3, #0]
  45311. break;
  45312. 8012eb8: e03f b.n 8012f3a <xTaskIncrementTick+0x10a>
  45313. {
  45314. /* The delayed list is not empty, get the value of the
  45315. item at the head of the delayed list. This is the time
  45316. at which the task at the head of the delayed list must
  45317. be removed from the Blocked state. */
  45318. pxTCB = listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  45319. 8012eba: 4b31 ldr r3, [pc, #196] @ (8012f80 <xTaskIncrementTick+0x150>)
  45320. 8012ebc: 681b ldr r3, [r3, #0]
  45321. 8012ebe: 68db ldr r3, [r3, #12]
  45322. 8012ec0: 68db ldr r3, [r3, #12]
  45323. 8012ec2: 60bb str r3, [r7, #8]
  45324. xItemValue = listGET_LIST_ITEM_VALUE( &( pxTCB->xStateListItem ) );
  45325. 8012ec4: 68bb ldr r3, [r7, #8]
  45326. 8012ec6: 685b ldr r3, [r3, #4]
  45327. 8012ec8: 607b str r3, [r7, #4]
  45328. if( xConstTickCount < xItemValue )
  45329. 8012eca: 693a ldr r2, [r7, #16]
  45330. 8012ecc: 687b ldr r3, [r7, #4]
  45331. 8012ece: 429a cmp r2, r3
  45332. 8012ed0: d203 bcs.n 8012eda <xTaskIncrementTick+0xaa>
  45333. /* It is not time to unblock this item yet, but the
  45334. item value is the time at which the task at the head
  45335. of the blocked list must be removed from the Blocked
  45336. state - so record the item value in
  45337. xNextTaskUnblockTime. */
  45338. xNextTaskUnblockTime = xItemValue;
  45339. 8012ed2: 4a2e ldr r2, [pc, #184] @ (8012f8c <xTaskIncrementTick+0x15c>)
  45340. 8012ed4: 687b ldr r3, [r7, #4]
  45341. 8012ed6: 6013 str r3, [r2, #0]
  45342. break; /*lint !e9011 Code structure here is deedmed easier to understand with multiple breaks. */
  45343. 8012ed8: e02f b.n 8012f3a <xTaskIncrementTick+0x10a>
  45344. {
  45345. mtCOVERAGE_TEST_MARKER();
  45346. }
  45347. /* It is time to remove the item from the Blocked state. */
  45348. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  45349. 8012eda: 68bb ldr r3, [r7, #8]
  45350. 8012edc: 3304 adds r3, #4
  45351. 8012ede: 4618 mov r0, r3
  45352. 8012ee0: f7fd ff90 bl 8010e04 <uxListRemove>
  45353. /* Is the task waiting on an event also? If so remove
  45354. it from the event list. */
  45355. if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL )
  45356. 8012ee4: 68bb ldr r3, [r7, #8]
  45357. 8012ee6: 6a9b ldr r3, [r3, #40] @ 0x28
  45358. 8012ee8: 2b00 cmp r3, #0
  45359. 8012eea: d004 beq.n 8012ef6 <xTaskIncrementTick+0xc6>
  45360. {
  45361. ( void ) uxListRemove( &( pxTCB->xEventListItem ) );
  45362. 8012eec: 68bb ldr r3, [r7, #8]
  45363. 8012eee: 3318 adds r3, #24
  45364. 8012ef0: 4618 mov r0, r3
  45365. 8012ef2: f7fd ff87 bl 8010e04 <uxListRemove>
  45366. mtCOVERAGE_TEST_MARKER();
  45367. }
  45368. /* Place the unblocked task into the appropriate ready
  45369. list. */
  45370. prvAddTaskToReadyList( pxTCB );
  45371. 8012ef6: 68bb ldr r3, [r7, #8]
  45372. 8012ef8: 6ada ldr r2, [r3, #44] @ 0x2c
  45373. 8012efa: 4b25 ldr r3, [pc, #148] @ (8012f90 <xTaskIncrementTick+0x160>)
  45374. 8012efc: 681b ldr r3, [r3, #0]
  45375. 8012efe: 429a cmp r2, r3
  45376. 8012f00: d903 bls.n 8012f0a <xTaskIncrementTick+0xda>
  45377. 8012f02: 68bb ldr r3, [r7, #8]
  45378. 8012f04: 6adb ldr r3, [r3, #44] @ 0x2c
  45379. 8012f06: 4a22 ldr r2, [pc, #136] @ (8012f90 <xTaskIncrementTick+0x160>)
  45380. 8012f08: 6013 str r3, [r2, #0]
  45381. 8012f0a: 68bb ldr r3, [r7, #8]
  45382. 8012f0c: 6ada ldr r2, [r3, #44] @ 0x2c
  45383. 8012f0e: 4613 mov r3, r2
  45384. 8012f10: 009b lsls r3, r3, #2
  45385. 8012f12: 4413 add r3, r2
  45386. 8012f14: 009b lsls r3, r3, #2
  45387. 8012f16: 4a1f ldr r2, [pc, #124] @ (8012f94 <xTaskIncrementTick+0x164>)
  45388. 8012f18: 441a add r2, r3
  45389. 8012f1a: 68bb ldr r3, [r7, #8]
  45390. 8012f1c: 3304 adds r3, #4
  45391. 8012f1e: 4619 mov r1, r3
  45392. 8012f20: 4610 mov r0, r2
  45393. 8012f22: f7fd ff12 bl 8010d4a <vListInsertEnd>
  45394. {
  45395. /* Preemption is on, but a context switch should
  45396. only be performed if the unblocked task has a
  45397. priority that is equal to or higher than the
  45398. currently executing task. */
  45399. if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
  45400. 8012f26: 68bb ldr r3, [r7, #8]
  45401. 8012f28: 6ada ldr r2, [r3, #44] @ 0x2c
  45402. 8012f2a: 4b1b ldr r3, [pc, #108] @ (8012f98 <xTaskIncrementTick+0x168>)
  45403. 8012f2c: 681b ldr r3, [r3, #0]
  45404. 8012f2e: 6adb ldr r3, [r3, #44] @ 0x2c
  45405. 8012f30: 429a cmp r2, r3
  45406. 8012f32: d3b8 bcc.n 8012ea6 <xTaskIncrementTick+0x76>
  45407. {
  45408. xSwitchRequired = pdTRUE;
  45409. 8012f34: 2301 movs r3, #1
  45410. 8012f36: 617b str r3, [r7, #20]
  45411. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  45412. 8012f38: e7b5 b.n 8012ea6 <xTaskIncrementTick+0x76>
  45413. /* Tasks of equal priority to the currently running task will share
  45414. processing time (time slice) if preemption is on, and the application
  45415. writer has not explicitly turned time slicing off. */
  45416. #if ( ( configUSE_PREEMPTION == 1 ) && ( configUSE_TIME_SLICING == 1 ) )
  45417. {
  45418. if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ pxCurrentTCB->uxPriority ] ) ) > ( UBaseType_t ) 1 )
  45419. 8012f3a: 4b17 ldr r3, [pc, #92] @ (8012f98 <xTaskIncrementTick+0x168>)
  45420. 8012f3c: 681b ldr r3, [r3, #0]
  45421. 8012f3e: 6ada ldr r2, [r3, #44] @ 0x2c
  45422. 8012f40: 4914 ldr r1, [pc, #80] @ (8012f94 <xTaskIncrementTick+0x164>)
  45423. 8012f42: 4613 mov r3, r2
  45424. 8012f44: 009b lsls r3, r3, #2
  45425. 8012f46: 4413 add r3, r2
  45426. 8012f48: 009b lsls r3, r3, #2
  45427. 8012f4a: 440b add r3, r1
  45428. 8012f4c: 681b ldr r3, [r3, #0]
  45429. 8012f4e: 2b01 cmp r3, #1
  45430. 8012f50: d901 bls.n 8012f56 <xTaskIncrementTick+0x126>
  45431. {
  45432. xSwitchRequired = pdTRUE;
  45433. 8012f52: 2301 movs r3, #1
  45434. 8012f54: 617b str r3, [r7, #20]
  45435. }
  45436. #endif /* configUSE_TICK_HOOK */
  45437. #if ( configUSE_PREEMPTION == 1 )
  45438. {
  45439. if( xYieldPending != pdFALSE )
  45440. 8012f56: 4b11 ldr r3, [pc, #68] @ (8012f9c <xTaskIncrementTick+0x16c>)
  45441. 8012f58: 681b ldr r3, [r3, #0]
  45442. 8012f5a: 2b00 cmp r3, #0
  45443. 8012f5c: d007 beq.n 8012f6e <xTaskIncrementTick+0x13e>
  45444. {
  45445. xSwitchRequired = pdTRUE;
  45446. 8012f5e: 2301 movs r3, #1
  45447. 8012f60: 617b str r3, [r7, #20]
  45448. 8012f62: e004 b.n 8012f6e <xTaskIncrementTick+0x13e>
  45449. }
  45450. #endif /* configUSE_PREEMPTION */
  45451. }
  45452. else
  45453. {
  45454. ++xPendedTicks;
  45455. 8012f64: 4b0e ldr r3, [pc, #56] @ (8012fa0 <xTaskIncrementTick+0x170>)
  45456. 8012f66: 681b ldr r3, [r3, #0]
  45457. 8012f68: 3301 adds r3, #1
  45458. 8012f6a: 4a0d ldr r2, [pc, #52] @ (8012fa0 <xTaskIncrementTick+0x170>)
  45459. 8012f6c: 6013 str r3, [r2, #0]
  45460. vApplicationTickHook();
  45461. }
  45462. #endif
  45463. }
  45464. return xSwitchRequired;
  45465. 8012f6e: 697b ldr r3, [r7, #20]
  45466. }
  45467. 8012f70: 4618 mov r0, r3
  45468. 8012f72: 3718 adds r7, #24
  45469. 8012f74: 46bd mov sp, r7
  45470. 8012f76: bd80 pop {r7, pc}
  45471. 8012f78: 240032f0 .word 0x240032f0
  45472. 8012f7c: 240032cc .word 0x240032cc
  45473. 8012f80: 24003280 .word 0x24003280
  45474. 8012f84: 24003284 .word 0x24003284
  45475. 8012f88: 240032e0 .word 0x240032e0
  45476. 8012f8c: 240032e8 .word 0x240032e8
  45477. 8012f90: 240032d0 .word 0x240032d0
  45478. 8012f94: 24002df8 .word 0x24002df8
  45479. 8012f98: 24002df4 .word 0x24002df4
  45480. 8012f9c: 240032dc .word 0x240032dc
  45481. 8012fa0: 240032d8 .word 0x240032d8
  45482. 08012fa4 <vTaskSwitchContext>:
  45483. #endif /* configUSE_APPLICATION_TASK_TAG */
  45484. /*-----------------------------------------------------------*/
  45485. void vTaskSwitchContext( void )
  45486. {
  45487. 8012fa4: b580 push {r7, lr}
  45488. 8012fa6: b084 sub sp, #16
  45489. 8012fa8: af00 add r7, sp, #0
  45490. if( uxSchedulerSuspended != ( UBaseType_t ) pdFALSE )
  45491. 8012faa: 4b32 ldr r3, [pc, #200] @ (8013074 <vTaskSwitchContext+0xd0>)
  45492. 8012fac: 681b ldr r3, [r3, #0]
  45493. 8012fae: 2b00 cmp r3, #0
  45494. 8012fb0: d003 beq.n 8012fba <vTaskSwitchContext+0x16>
  45495. {
  45496. /* The scheduler is currently suspended - do not allow a context
  45497. switch. */
  45498. xYieldPending = pdTRUE;
  45499. 8012fb2: 4b31 ldr r3, [pc, #196] @ (8013078 <vTaskSwitchContext+0xd4>)
  45500. 8012fb4: 2201 movs r2, #1
  45501. 8012fb6: 601a str r2, [r3, #0]
  45502. for additional information. */
  45503. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  45504. }
  45505. #endif /* configUSE_NEWLIB_REENTRANT */
  45506. }
  45507. }
  45508. 8012fb8: e058 b.n 801306c <vTaskSwitchContext+0xc8>
  45509. xYieldPending = pdFALSE;
  45510. 8012fba: 4b2f ldr r3, [pc, #188] @ (8013078 <vTaskSwitchContext+0xd4>)
  45511. 8012fbc: 2200 movs r2, #0
  45512. 8012fbe: 601a str r2, [r3, #0]
  45513. taskCHECK_FOR_STACK_OVERFLOW();
  45514. 8012fc0: 4b2e ldr r3, [pc, #184] @ (801307c <vTaskSwitchContext+0xd8>)
  45515. 8012fc2: 681b ldr r3, [r3, #0]
  45516. 8012fc4: 681a ldr r2, [r3, #0]
  45517. 8012fc6: 4b2d ldr r3, [pc, #180] @ (801307c <vTaskSwitchContext+0xd8>)
  45518. 8012fc8: 681b ldr r3, [r3, #0]
  45519. 8012fca: 6b1b ldr r3, [r3, #48] @ 0x30
  45520. 8012fcc: 429a cmp r2, r3
  45521. 8012fce: d808 bhi.n 8012fe2 <vTaskSwitchContext+0x3e>
  45522. 8012fd0: 4b2a ldr r3, [pc, #168] @ (801307c <vTaskSwitchContext+0xd8>)
  45523. 8012fd2: 681a ldr r2, [r3, #0]
  45524. 8012fd4: 4b29 ldr r3, [pc, #164] @ (801307c <vTaskSwitchContext+0xd8>)
  45525. 8012fd6: 681b ldr r3, [r3, #0]
  45526. 8012fd8: 3334 adds r3, #52 @ 0x34
  45527. 8012fda: 4619 mov r1, r3
  45528. 8012fdc: 4610 mov r0, r2
  45529. 8012fde: f7ee fe60 bl 8001ca2 <vApplicationStackOverflowHook>
  45530. taskSELECT_HIGHEST_PRIORITY_TASK(); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  45531. 8012fe2: 4b27 ldr r3, [pc, #156] @ (8013080 <vTaskSwitchContext+0xdc>)
  45532. 8012fe4: 681b ldr r3, [r3, #0]
  45533. 8012fe6: 60fb str r3, [r7, #12]
  45534. 8012fe8: e011 b.n 801300e <vTaskSwitchContext+0x6a>
  45535. 8012fea: 68fb ldr r3, [r7, #12]
  45536. 8012fec: 2b00 cmp r3, #0
  45537. 8012fee: d10b bne.n 8013008 <vTaskSwitchContext+0x64>
  45538. __asm volatile
  45539. 8012ff0: f04f 0350 mov.w r3, #80 @ 0x50
  45540. 8012ff4: f383 8811 msr BASEPRI, r3
  45541. 8012ff8: f3bf 8f6f isb sy
  45542. 8012ffc: f3bf 8f4f dsb sy
  45543. 8013000: 607b str r3, [r7, #4]
  45544. }
  45545. 8013002: bf00 nop
  45546. 8013004: bf00 nop
  45547. 8013006: e7fd b.n 8013004 <vTaskSwitchContext+0x60>
  45548. 8013008: 68fb ldr r3, [r7, #12]
  45549. 801300a: 3b01 subs r3, #1
  45550. 801300c: 60fb str r3, [r7, #12]
  45551. 801300e: 491d ldr r1, [pc, #116] @ (8013084 <vTaskSwitchContext+0xe0>)
  45552. 8013010: 68fa ldr r2, [r7, #12]
  45553. 8013012: 4613 mov r3, r2
  45554. 8013014: 009b lsls r3, r3, #2
  45555. 8013016: 4413 add r3, r2
  45556. 8013018: 009b lsls r3, r3, #2
  45557. 801301a: 440b add r3, r1
  45558. 801301c: 681b ldr r3, [r3, #0]
  45559. 801301e: 2b00 cmp r3, #0
  45560. 8013020: d0e3 beq.n 8012fea <vTaskSwitchContext+0x46>
  45561. 8013022: 68fa ldr r2, [r7, #12]
  45562. 8013024: 4613 mov r3, r2
  45563. 8013026: 009b lsls r3, r3, #2
  45564. 8013028: 4413 add r3, r2
  45565. 801302a: 009b lsls r3, r3, #2
  45566. 801302c: 4a15 ldr r2, [pc, #84] @ (8013084 <vTaskSwitchContext+0xe0>)
  45567. 801302e: 4413 add r3, r2
  45568. 8013030: 60bb str r3, [r7, #8]
  45569. 8013032: 68bb ldr r3, [r7, #8]
  45570. 8013034: 685b ldr r3, [r3, #4]
  45571. 8013036: 685a ldr r2, [r3, #4]
  45572. 8013038: 68bb ldr r3, [r7, #8]
  45573. 801303a: 605a str r2, [r3, #4]
  45574. 801303c: 68bb ldr r3, [r7, #8]
  45575. 801303e: 685a ldr r2, [r3, #4]
  45576. 8013040: 68bb ldr r3, [r7, #8]
  45577. 8013042: 3308 adds r3, #8
  45578. 8013044: 429a cmp r2, r3
  45579. 8013046: d104 bne.n 8013052 <vTaskSwitchContext+0xae>
  45580. 8013048: 68bb ldr r3, [r7, #8]
  45581. 801304a: 685b ldr r3, [r3, #4]
  45582. 801304c: 685a ldr r2, [r3, #4]
  45583. 801304e: 68bb ldr r3, [r7, #8]
  45584. 8013050: 605a str r2, [r3, #4]
  45585. 8013052: 68bb ldr r3, [r7, #8]
  45586. 8013054: 685b ldr r3, [r3, #4]
  45587. 8013056: 68db ldr r3, [r3, #12]
  45588. 8013058: 4a08 ldr r2, [pc, #32] @ (801307c <vTaskSwitchContext+0xd8>)
  45589. 801305a: 6013 str r3, [r2, #0]
  45590. 801305c: 4a08 ldr r2, [pc, #32] @ (8013080 <vTaskSwitchContext+0xdc>)
  45591. 801305e: 68fb ldr r3, [r7, #12]
  45592. 8013060: 6013 str r3, [r2, #0]
  45593. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  45594. 8013062: 4b06 ldr r3, [pc, #24] @ (801307c <vTaskSwitchContext+0xd8>)
  45595. 8013064: 681b ldr r3, [r3, #0]
  45596. 8013066: 3354 adds r3, #84 @ 0x54
  45597. 8013068: 4a07 ldr r2, [pc, #28] @ (8013088 <vTaskSwitchContext+0xe4>)
  45598. 801306a: 6013 str r3, [r2, #0]
  45599. }
  45600. 801306c: bf00 nop
  45601. 801306e: 3710 adds r7, #16
  45602. 8013070: 46bd mov sp, r7
  45603. 8013072: bd80 pop {r7, pc}
  45604. 8013074: 240032f0 .word 0x240032f0
  45605. 8013078: 240032dc .word 0x240032dc
  45606. 801307c: 24002df4 .word 0x24002df4
  45607. 8013080: 240032d0 .word 0x240032d0
  45608. 8013084: 24002df8 .word 0x24002df8
  45609. 8013088: 240001c0 .word 0x240001c0
  45610. 0801308c <vTaskPlaceOnEventList>:
  45611. /*-----------------------------------------------------------*/
  45612. void vTaskPlaceOnEventList( List_t * const pxEventList, const TickType_t xTicksToWait )
  45613. {
  45614. 801308c: b580 push {r7, lr}
  45615. 801308e: b084 sub sp, #16
  45616. 8013090: af00 add r7, sp, #0
  45617. 8013092: 6078 str r0, [r7, #4]
  45618. 8013094: 6039 str r1, [r7, #0]
  45619. configASSERT( pxEventList );
  45620. 8013096: 687b ldr r3, [r7, #4]
  45621. 8013098: 2b00 cmp r3, #0
  45622. 801309a: d10b bne.n 80130b4 <vTaskPlaceOnEventList+0x28>
  45623. __asm volatile
  45624. 801309c: f04f 0350 mov.w r3, #80 @ 0x50
  45625. 80130a0: f383 8811 msr BASEPRI, r3
  45626. 80130a4: f3bf 8f6f isb sy
  45627. 80130a8: f3bf 8f4f dsb sy
  45628. 80130ac: 60fb str r3, [r7, #12]
  45629. }
  45630. 80130ae: bf00 nop
  45631. 80130b0: bf00 nop
  45632. 80130b2: e7fd b.n 80130b0 <vTaskPlaceOnEventList+0x24>
  45633. /* Place the event list item of the TCB in the appropriate event list.
  45634. This is placed in the list in priority order so the highest priority task
  45635. is the first to be woken by the event. The queue that contains the event
  45636. list is locked, preventing simultaneous access from interrupts. */
  45637. vListInsert( pxEventList, &( pxCurrentTCB->xEventListItem ) );
  45638. 80130b4: 4b07 ldr r3, [pc, #28] @ (80130d4 <vTaskPlaceOnEventList+0x48>)
  45639. 80130b6: 681b ldr r3, [r3, #0]
  45640. 80130b8: 3318 adds r3, #24
  45641. 80130ba: 4619 mov r1, r3
  45642. 80130bc: 6878 ldr r0, [r7, #4]
  45643. 80130be: f7fd fe68 bl 8010d92 <vListInsert>
  45644. prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
  45645. 80130c2: 2101 movs r1, #1
  45646. 80130c4: 6838 ldr r0, [r7, #0]
  45647. 80130c6: f000 fded bl 8013ca4 <prvAddCurrentTaskToDelayedList>
  45648. }
  45649. 80130ca: bf00 nop
  45650. 80130cc: 3710 adds r7, #16
  45651. 80130ce: 46bd mov sp, r7
  45652. 80130d0: bd80 pop {r7, pc}
  45653. 80130d2: bf00 nop
  45654. 80130d4: 24002df4 .word 0x24002df4
  45655. 080130d8 <vTaskPlaceOnEventListRestricted>:
  45656. /*-----------------------------------------------------------*/
  45657. #if( configUSE_TIMERS == 1 )
  45658. void vTaskPlaceOnEventListRestricted( List_t * const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
  45659. {
  45660. 80130d8: b580 push {r7, lr}
  45661. 80130da: b086 sub sp, #24
  45662. 80130dc: af00 add r7, sp, #0
  45663. 80130de: 60f8 str r0, [r7, #12]
  45664. 80130e0: 60b9 str r1, [r7, #8]
  45665. 80130e2: 607a str r2, [r7, #4]
  45666. configASSERT( pxEventList );
  45667. 80130e4: 68fb ldr r3, [r7, #12]
  45668. 80130e6: 2b00 cmp r3, #0
  45669. 80130e8: d10b bne.n 8013102 <vTaskPlaceOnEventListRestricted+0x2a>
  45670. __asm volatile
  45671. 80130ea: f04f 0350 mov.w r3, #80 @ 0x50
  45672. 80130ee: f383 8811 msr BASEPRI, r3
  45673. 80130f2: f3bf 8f6f isb sy
  45674. 80130f6: f3bf 8f4f dsb sy
  45675. 80130fa: 617b str r3, [r7, #20]
  45676. }
  45677. 80130fc: bf00 nop
  45678. 80130fe: bf00 nop
  45679. 8013100: e7fd b.n 80130fe <vTaskPlaceOnEventListRestricted+0x26>
  45680. /* Place the event list item of the TCB in the appropriate event list.
  45681. In this case it is assume that this is the only task that is going to
  45682. be waiting on this event list, so the faster vListInsertEnd() function
  45683. can be used in place of vListInsert. */
  45684. vListInsertEnd( pxEventList, &( pxCurrentTCB->xEventListItem ) );
  45685. 8013102: 4b0a ldr r3, [pc, #40] @ (801312c <vTaskPlaceOnEventListRestricted+0x54>)
  45686. 8013104: 681b ldr r3, [r3, #0]
  45687. 8013106: 3318 adds r3, #24
  45688. 8013108: 4619 mov r1, r3
  45689. 801310a: 68f8 ldr r0, [r7, #12]
  45690. 801310c: f7fd fe1d bl 8010d4a <vListInsertEnd>
  45691. /* If the task should block indefinitely then set the block time to a
  45692. value that will be recognised as an indefinite delay inside the
  45693. prvAddCurrentTaskToDelayedList() function. */
  45694. if( xWaitIndefinitely != pdFALSE )
  45695. 8013110: 687b ldr r3, [r7, #4]
  45696. 8013112: 2b00 cmp r3, #0
  45697. 8013114: d002 beq.n 801311c <vTaskPlaceOnEventListRestricted+0x44>
  45698. {
  45699. xTicksToWait = portMAX_DELAY;
  45700. 8013116: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  45701. 801311a: 60bb str r3, [r7, #8]
  45702. }
  45703. traceTASK_DELAY_UNTIL( ( xTickCount + xTicksToWait ) );
  45704. prvAddCurrentTaskToDelayedList( xTicksToWait, xWaitIndefinitely );
  45705. 801311c: 6879 ldr r1, [r7, #4]
  45706. 801311e: 68b8 ldr r0, [r7, #8]
  45707. 8013120: f000 fdc0 bl 8013ca4 <prvAddCurrentTaskToDelayedList>
  45708. }
  45709. 8013124: bf00 nop
  45710. 8013126: 3718 adds r7, #24
  45711. 8013128: 46bd mov sp, r7
  45712. 801312a: bd80 pop {r7, pc}
  45713. 801312c: 24002df4 .word 0x24002df4
  45714. 08013130 <xTaskRemoveFromEventList>:
  45715. #endif /* configUSE_TIMERS */
  45716. /*-----------------------------------------------------------*/
  45717. BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList )
  45718. {
  45719. 8013130: b580 push {r7, lr}
  45720. 8013132: b086 sub sp, #24
  45721. 8013134: af00 add r7, sp, #0
  45722. 8013136: 6078 str r0, [r7, #4]
  45723. get called - the lock count on the queue will get modified instead. This
  45724. means exclusive access to the event list is guaranteed here.
  45725. This function assumes that a check has already been made to ensure that
  45726. pxEventList is not empty. */
  45727. pxUnblockedTCB = listGET_OWNER_OF_HEAD_ENTRY( pxEventList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  45728. 8013138: 687b ldr r3, [r7, #4]
  45729. 801313a: 68db ldr r3, [r3, #12]
  45730. 801313c: 68db ldr r3, [r3, #12]
  45731. 801313e: 613b str r3, [r7, #16]
  45732. configASSERT( pxUnblockedTCB );
  45733. 8013140: 693b ldr r3, [r7, #16]
  45734. 8013142: 2b00 cmp r3, #0
  45735. 8013144: d10b bne.n 801315e <xTaskRemoveFromEventList+0x2e>
  45736. __asm volatile
  45737. 8013146: f04f 0350 mov.w r3, #80 @ 0x50
  45738. 801314a: f383 8811 msr BASEPRI, r3
  45739. 801314e: f3bf 8f6f isb sy
  45740. 8013152: f3bf 8f4f dsb sy
  45741. 8013156: 60fb str r3, [r7, #12]
  45742. }
  45743. 8013158: bf00 nop
  45744. 801315a: bf00 nop
  45745. 801315c: e7fd b.n 801315a <xTaskRemoveFromEventList+0x2a>
  45746. ( void ) uxListRemove( &( pxUnblockedTCB->xEventListItem ) );
  45747. 801315e: 693b ldr r3, [r7, #16]
  45748. 8013160: 3318 adds r3, #24
  45749. 8013162: 4618 mov r0, r3
  45750. 8013164: f7fd fe4e bl 8010e04 <uxListRemove>
  45751. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  45752. 8013168: 4b1d ldr r3, [pc, #116] @ (80131e0 <xTaskRemoveFromEventList+0xb0>)
  45753. 801316a: 681b ldr r3, [r3, #0]
  45754. 801316c: 2b00 cmp r3, #0
  45755. 801316e: d11d bne.n 80131ac <xTaskRemoveFromEventList+0x7c>
  45756. {
  45757. ( void ) uxListRemove( &( pxUnblockedTCB->xStateListItem ) );
  45758. 8013170: 693b ldr r3, [r7, #16]
  45759. 8013172: 3304 adds r3, #4
  45760. 8013174: 4618 mov r0, r3
  45761. 8013176: f7fd fe45 bl 8010e04 <uxListRemove>
  45762. prvAddTaskToReadyList( pxUnblockedTCB );
  45763. 801317a: 693b ldr r3, [r7, #16]
  45764. 801317c: 6ada ldr r2, [r3, #44] @ 0x2c
  45765. 801317e: 4b19 ldr r3, [pc, #100] @ (80131e4 <xTaskRemoveFromEventList+0xb4>)
  45766. 8013180: 681b ldr r3, [r3, #0]
  45767. 8013182: 429a cmp r2, r3
  45768. 8013184: d903 bls.n 801318e <xTaskRemoveFromEventList+0x5e>
  45769. 8013186: 693b ldr r3, [r7, #16]
  45770. 8013188: 6adb ldr r3, [r3, #44] @ 0x2c
  45771. 801318a: 4a16 ldr r2, [pc, #88] @ (80131e4 <xTaskRemoveFromEventList+0xb4>)
  45772. 801318c: 6013 str r3, [r2, #0]
  45773. 801318e: 693b ldr r3, [r7, #16]
  45774. 8013190: 6ada ldr r2, [r3, #44] @ 0x2c
  45775. 8013192: 4613 mov r3, r2
  45776. 8013194: 009b lsls r3, r3, #2
  45777. 8013196: 4413 add r3, r2
  45778. 8013198: 009b lsls r3, r3, #2
  45779. 801319a: 4a13 ldr r2, [pc, #76] @ (80131e8 <xTaskRemoveFromEventList+0xb8>)
  45780. 801319c: 441a add r2, r3
  45781. 801319e: 693b ldr r3, [r7, #16]
  45782. 80131a0: 3304 adds r3, #4
  45783. 80131a2: 4619 mov r1, r3
  45784. 80131a4: 4610 mov r0, r2
  45785. 80131a6: f7fd fdd0 bl 8010d4a <vListInsertEnd>
  45786. 80131aa: e005 b.n 80131b8 <xTaskRemoveFromEventList+0x88>
  45787. }
  45788. else
  45789. {
  45790. /* The delayed and ready lists cannot be accessed, so hold this task
  45791. pending until the scheduler is resumed. */
  45792. vListInsertEnd( &( xPendingReadyList ), &( pxUnblockedTCB->xEventListItem ) );
  45793. 80131ac: 693b ldr r3, [r7, #16]
  45794. 80131ae: 3318 adds r3, #24
  45795. 80131b0: 4619 mov r1, r3
  45796. 80131b2: 480e ldr r0, [pc, #56] @ (80131ec <xTaskRemoveFromEventList+0xbc>)
  45797. 80131b4: f7fd fdc9 bl 8010d4a <vListInsertEnd>
  45798. }
  45799. if( pxUnblockedTCB->uxPriority > pxCurrentTCB->uxPriority )
  45800. 80131b8: 693b ldr r3, [r7, #16]
  45801. 80131ba: 6ada ldr r2, [r3, #44] @ 0x2c
  45802. 80131bc: 4b0c ldr r3, [pc, #48] @ (80131f0 <xTaskRemoveFromEventList+0xc0>)
  45803. 80131be: 681b ldr r3, [r3, #0]
  45804. 80131c0: 6adb ldr r3, [r3, #44] @ 0x2c
  45805. 80131c2: 429a cmp r2, r3
  45806. 80131c4: d905 bls.n 80131d2 <xTaskRemoveFromEventList+0xa2>
  45807. {
  45808. /* Return true if the task removed from the event list has a higher
  45809. priority than the calling task. This allows the calling task to know if
  45810. it should force a context switch now. */
  45811. xReturn = pdTRUE;
  45812. 80131c6: 2301 movs r3, #1
  45813. 80131c8: 617b str r3, [r7, #20]
  45814. /* Mark that a yield is pending in case the user is not using the
  45815. "xHigherPriorityTaskWoken" parameter to an ISR safe FreeRTOS function. */
  45816. xYieldPending = pdTRUE;
  45817. 80131ca: 4b0a ldr r3, [pc, #40] @ (80131f4 <xTaskRemoveFromEventList+0xc4>)
  45818. 80131cc: 2201 movs r2, #1
  45819. 80131ce: 601a str r2, [r3, #0]
  45820. 80131d0: e001 b.n 80131d6 <xTaskRemoveFromEventList+0xa6>
  45821. }
  45822. else
  45823. {
  45824. xReturn = pdFALSE;
  45825. 80131d2: 2300 movs r3, #0
  45826. 80131d4: 617b str r3, [r7, #20]
  45827. }
  45828. return xReturn;
  45829. 80131d6: 697b ldr r3, [r7, #20]
  45830. }
  45831. 80131d8: 4618 mov r0, r3
  45832. 80131da: 3718 adds r7, #24
  45833. 80131dc: 46bd mov sp, r7
  45834. 80131de: bd80 pop {r7, pc}
  45835. 80131e0: 240032f0 .word 0x240032f0
  45836. 80131e4: 240032d0 .word 0x240032d0
  45837. 80131e8: 24002df8 .word 0x24002df8
  45838. 80131ec: 24003288 .word 0x24003288
  45839. 80131f0: 24002df4 .word 0x24002df4
  45840. 80131f4: 240032dc .word 0x240032dc
  45841. 080131f8 <vTaskSetTimeOutState>:
  45842. }
  45843. }
  45844. /*-----------------------------------------------------------*/
  45845. void vTaskSetTimeOutState( TimeOut_t * const pxTimeOut )
  45846. {
  45847. 80131f8: b580 push {r7, lr}
  45848. 80131fa: b084 sub sp, #16
  45849. 80131fc: af00 add r7, sp, #0
  45850. 80131fe: 6078 str r0, [r7, #4]
  45851. configASSERT( pxTimeOut );
  45852. 8013200: 687b ldr r3, [r7, #4]
  45853. 8013202: 2b00 cmp r3, #0
  45854. 8013204: d10b bne.n 801321e <vTaskSetTimeOutState+0x26>
  45855. __asm volatile
  45856. 8013206: f04f 0350 mov.w r3, #80 @ 0x50
  45857. 801320a: f383 8811 msr BASEPRI, r3
  45858. 801320e: f3bf 8f6f isb sy
  45859. 8013212: f3bf 8f4f dsb sy
  45860. 8013216: 60fb str r3, [r7, #12]
  45861. }
  45862. 8013218: bf00 nop
  45863. 801321a: bf00 nop
  45864. 801321c: e7fd b.n 801321a <vTaskSetTimeOutState+0x22>
  45865. taskENTER_CRITICAL();
  45866. 801321e: f001 fa23 bl 8014668 <vPortEnterCritical>
  45867. {
  45868. pxTimeOut->xOverflowCount = xNumOfOverflows;
  45869. 8013222: 4b07 ldr r3, [pc, #28] @ (8013240 <vTaskSetTimeOutState+0x48>)
  45870. 8013224: 681a ldr r2, [r3, #0]
  45871. 8013226: 687b ldr r3, [r7, #4]
  45872. 8013228: 601a str r2, [r3, #0]
  45873. pxTimeOut->xTimeOnEntering = xTickCount;
  45874. 801322a: 4b06 ldr r3, [pc, #24] @ (8013244 <vTaskSetTimeOutState+0x4c>)
  45875. 801322c: 681a ldr r2, [r3, #0]
  45876. 801322e: 687b ldr r3, [r7, #4]
  45877. 8013230: 605a str r2, [r3, #4]
  45878. }
  45879. taskEXIT_CRITICAL();
  45880. 8013232: f001 fa4b bl 80146cc <vPortExitCritical>
  45881. }
  45882. 8013236: bf00 nop
  45883. 8013238: 3710 adds r7, #16
  45884. 801323a: 46bd mov sp, r7
  45885. 801323c: bd80 pop {r7, pc}
  45886. 801323e: bf00 nop
  45887. 8013240: 240032e0 .word 0x240032e0
  45888. 8013244: 240032cc .word 0x240032cc
  45889. 08013248 <vTaskInternalSetTimeOutState>:
  45890. /*-----------------------------------------------------------*/
  45891. void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut )
  45892. {
  45893. 8013248: b480 push {r7}
  45894. 801324a: b083 sub sp, #12
  45895. 801324c: af00 add r7, sp, #0
  45896. 801324e: 6078 str r0, [r7, #4]
  45897. /* For internal use only as it does not use a critical section. */
  45898. pxTimeOut->xOverflowCount = xNumOfOverflows;
  45899. 8013250: 4b06 ldr r3, [pc, #24] @ (801326c <vTaskInternalSetTimeOutState+0x24>)
  45900. 8013252: 681a ldr r2, [r3, #0]
  45901. 8013254: 687b ldr r3, [r7, #4]
  45902. 8013256: 601a str r2, [r3, #0]
  45903. pxTimeOut->xTimeOnEntering = xTickCount;
  45904. 8013258: 4b05 ldr r3, [pc, #20] @ (8013270 <vTaskInternalSetTimeOutState+0x28>)
  45905. 801325a: 681a ldr r2, [r3, #0]
  45906. 801325c: 687b ldr r3, [r7, #4]
  45907. 801325e: 605a str r2, [r3, #4]
  45908. }
  45909. 8013260: bf00 nop
  45910. 8013262: 370c adds r7, #12
  45911. 8013264: 46bd mov sp, r7
  45912. 8013266: f85d 7b04 ldr.w r7, [sp], #4
  45913. 801326a: 4770 bx lr
  45914. 801326c: 240032e0 .word 0x240032e0
  45915. 8013270: 240032cc .word 0x240032cc
  45916. 08013274 <xTaskCheckForTimeOut>:
  45917. /*-----------------------------------------------------------*/
  45918. BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait )
  45919. {
  45920. 8013274: b580 push {r7, lr}
  45921. 8013276: b088 sub sp, #32
  45922. 8013278: af00 add r7, sp, #0
  45923. 801327a: 6078 str r0, [r7, #4]
  45924. 801327c: 6039 str r1, [r7, #0]
  45925. BaseType_t xReturn;
  45926. configASSERT( pxTimeOut );
  45927. 801327e: 687b ldr r3, [r7, #4]
  45928. 8013280: 2b00 cmp r3, #0
  45929. 8013282: d10b bne.n 801329c <xTaskCheckForTimeOut+0x28>
  45930. __asm volatile
  45931. 8013284: f04f 0350 mov.w r3, #80 @ 0x50
  45932. 8013288: f383 8811 msr BASEPRI, r3
  45933. 801328c: f3bf 8f6f isb sy
  45934. 8013290: f3bf 8f4f dsb sy
  45935. 8013294: 613b str r3, [r7, #16]
  45936. }
  45937. 8013296: bf00 nop
  45938. 8013298: bf00 nop
  45939. 801329a: e7fd b.n 8013298 <xTaskCheckForTimeOut+0x24>
  45940. configASSERT( pxTicksToWait );
  45941. 801329c: 683b ldr r3, [r7, #0]
  45942. 801329e: 2b00 cmp r3, #0
  45943. 80132a0: d10b bne.n 80132ba <xTaskCheckForTimeOut+0x46>
  45944. __asm volatile
  45945. 80132a2: f04f 0350 mov.w r3, #80 @ 0x50
  45946. 80132a6: f383 8811 msr BASEPRI, r3
  45947. 80132aa: f3bf 8f6f isb sy
  45948. 80132ae: f3bf 8f4f dsb sy
  45949. 80132b2: 60fb str r3, [r7, #12]
  45950. }
  45951. 80132b4: bf00 nop
  45952. 80132b6: bf00 nop
  45953. 80132b8: e7fd b.n 80132b6 <xTaskCheckForTimeOut+0x42>
  45954. taskENTER_CRITICAL();
  45955. 80132ba: f001 f9d5 bl 8014668 <vPortEnterCritical>
  45956. {
  45957. /* Minor optimisation. The tick count cannot change in this block. */
  45958. const TickType_t xConstTickCount = xTickCount;
  45959. 80132be: 4b1d ldr r3, [pc, #116] @ (8013334 <xTaskCheckForTimeOut+0xc0>)
  45960. 80132c0: 681b ldr r3, [r3, #0]
  45961. 80132c2: 61bb str r3, [r7, #24]
  45962. const TickType_t xElapsedTime = xConstTickCount - pxTimeOut->xTimeOnEntering;
  45963. 80132c4: 687b ldr r3, [r7, #4]
  45964. 80132c6: 685b ldr r3, [r3, #4]
  45965. 80132c8: 69ba ldr r2, [r7, #24]
  45966. 80132ca: 1ad3 subs r3, r2, r3
  45967. 80132cc: 617b str r3, [r7, #20]
  45968. }
  45969. else
  45970. #endif
  45971. #if ( INCLUDE_vTaskSuspend == 1 )
  45972. if( *pxTicksToWait == portMAX_DELAY )
  45973. 80132ce: 683b ldr r3, [r7, #0]
  45974. 80132d0: 681b ldr r3, [r3, #0]
  45975. 80132d2: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  45976. 80132d6: d102 bne.n 80132de <xTaskCheckForTimeOut+0x6a>
  45977. {
  45978. /* If INCLUDE_vTaskSuspend is set to 1 and the block time
  45979. specified is the maximum block time then the task should block
  45980. indefinitely, and therefore never time out. */
  45981. xReturn = pdFALSE;
  45982. 80132d8: 2300 movs r3, #0
  45983. 80132da: 61fb str r3, [r7, #28]
  45984. 80132dc: e023 b.n 8013326 <xTaskCheckForTimeOut+0xb2>
  45985. }
  45986. else
  45987. #endif
  45988. if( ( xNumOfOverflows != pxTimeOut->xOverflowCount ) && ( xConstTickCount >= pxTimeOut->xTimeOnEntering ) ) /*lint !e525 Indentation preferred as is to make code within pre-processor directives clearer. */
  45989. 80132de: 687b ldr r3, [r7, #4]
  45990. 80132e0: 681a ldr r2, [r3, #0]
  45991. 80132e2: 4b15 ldr r3, [pc, #84] @ (8013338 <xTaskCheckForTimeOut+0xc4>)
  45992. 80132e4: 681b ldr r3, [r3, #0]
  45993. 80132e6: 429a cmp r2, r3
  45994. 80132e8: d007 beq.n 80132fa <xTaskCheckForTimeOut+0x86>
  45995. 80132ea: 687b ldr r3, [r7, #4]
  45996. 80132ec: 685b ldr r3, [r3, #4]
  45997. 80132ee: 69ba ldr r2, [r7, #24]
  45998. 80132f0: 429a cmp r2, r3
  45999. 80132f2: d302 bcc.n 80132fa <xTaskCheckForTimeOut+0x86>
  46000. /* The tick count is greater than the time at which
  46001. vTaskSetTimeout() was called, but has also overflowed since
  46002. vTaskSetTimeOut() was called. It must have wrapped all the way
  46003. around and gone past again. This passed since vTaskSetTimeout()
  46004. was called. */
  46005. xReturn = pdTRUE;
  46006. 80132f4: 2301 movs r3, #1
  46007. 80132f6: 61fb str r3, [r7, #28]
  46008. 80132f8: e015 b.n 8013326 <xTaskCheckForTimeOut+0xb2>
  46009. }
  46010. else if( xElapsedTime < *pxTicksToWait ) /*lint !e961 Explicit casting is only redundant with some compilers, whereas others require it to prevent integer conversion errors. */
  46011. 80132fa: 683b ldr r3, [r7, #0]
  46012. 80132fc: 681b ldr r3, [r3, #0]
  46013. 80132fe: 697a ldr r2, [r7, #20]
  46014. 8013300: 429a cmp r2, r3
  46015. 8013302: d20b bcs.n 801331c <xTaskCheckForTimeOut+0xa8>
  46016. {
  46017. /* Not a genuine timeout. Adjust parameters for time remaining. */
  46018. *pxTicksToWait -= xElapsedTime;
  46019. 8013304: 683b ldr r3, [r7, #0]
  46020. 8013306: 681a ldr r2, [r3, #0]
  46021. 8013308: 697b ldr r3, [r7, #20]
  46022. 801330a: 1ad2 subs r2, r2, r3
  46023. 801330c: 683b ldr r3, [r7, #0]
  46024. 801330e: 601a str r2, [r3, #0]
  46025. vTaskInternalSetTimeOutState( pxTimeOut );
  46026. 8013310: 6878 ldr r0, [r7, #4]
  46027. 8013312: f7ff ff99 bl 8013248 <vTaskInternalSetTimeOutState>
  46028. xReturn = pdFALSE;
  46029. 8013316: 2300 movs r3, #0
  46030. 8013318: 61fb str r3, [r7, #28]
  46031. 801331a: e004 b.n 8013326 <xTaskCheckForTimeOut+0xb2>
  46032. }
  46033. else
  46034. {
  46035. *pxTicksToWait = 0;
  46036. 801331c: 683b ldr r3, [r7, #0]
  46037. 801331e: 2200 movs r2, #0
  46038. 8013320: 601a str r2, [r3, #0]
  46039. xReturn = pdTRUE;
  46040. 8013322: 2301 movs r3, #1
  46041. 8013324: 61fb str r3, [r7, #28]
  46042. }
  46043. }
  46044. taskEXIT_CRITICAL();
  46045. 8013326: f001 f9d1 bl 80146cc <vPortExitCritical>
  46046. return xReturn;
  46047. 801332a: 69fb ldr r3, [r7, #28]
  46048. }
  46049. 801332c: 4618 mov r0, r3
  46050. 801332e: 3720 adds r7, #32
  46051. 8013330: 46bd mov sp, r7
  46052. 8013332: bd80 pop {r7, pc}
  46053. 8013334: 240032cc .word 0x240032cc
  46054. 8013338: 240032e0 .word 0x240032e0
  46055. 0801333c <vTaskMissedYield>:
  46056. /*-----------------------------------------------------------*/
  46057. void vTaskMissedYield( void )
  46058. {
  46059. 801333c: b480 push {r7}
  46060. 801333e: af00 add r7, sp, #0
  46061. xYieldPending = pdTRUE;
  46062. 8013340: 4b03 ldr r3, [pc, #12] @ (8013350 <vTaskMissedYield+0x14>)
  46063. 8013342: 2201 movs r2, #1
  46064. 8013344: 601a str r2, [r3, #0]
  46065. }
  46066. 8013346: bf00 nop
  46067. 8013348: 46bd mov sp, r7
  46068. 801334a: f85d 7b04 ldr.w r7, [sp], #4
  46069. 801334e: 4770 bx lr
  46070. 8013350: 240032dc .word 0x240032dc
  46071. 08013354 <prvIdleTask>:
  46072. *
  46073. * void prvIdleTask( void *pvParameters );
  46074. *
  46075. */
  46076. static portTASK_FUNCTION( prvIdleTask, pvParameters )
  46077. {
  46078. 8013354: b580 push {r7, lr}
  46079. 8013356: b082 sub sp, #8
  46080. 8013358: af00 add r7, sp, #0
  46081. 801335a: 6078 str r0, [r7, #4]
  46082. for( ;; )
  46083. {
  46084. /* See if any tasks have deleted themselves - if so then the idle task
  46085. is responsible for freeing the deleted task's TCB and stack. */
  46086. prvCheckTasksWaitingTermination();
  46087. 801335c: f000 f852 bl 8013404 <prvCheckTasksWaitingTermination>
  46088. A critical region is not required here as we are just reading from
  46089. the list, and an occasional incorrect value will not matter. If
  46090. the ready list at the idle priority contains more than one task
  46091. then a task other than the idle task is ready to execute. */
  46092. if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ tskIDLE_PRIORITY ] ) ) > ( UBaseType_t ) 1 )
  46093. 8013360: 4b06 ldr r3, [pc, #24] @ (801337c <prvIdleTask+0x28>)
  46094. 8013362: 681b ldr r3, [r3, #0]
  46095. 8013364: 2b01 cmp r3, #1
  46096. 8013366: d9f9 bls.n 801335c <prvIdleTask+0x8>
  46097. {
  46098. taskYIELD();
  46099. 8013368: 4b05 ldr r3, [pc, #20] @ (8013380 <prvIdleTask+0x2c>)
  46100. 801336a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  46101. 801336e: 601a str r2, [r3, #0]
  46102. 8013370: f3bf 8f4f dsb sy
  46103. 8013374: f3bf 8f6f isb sy
  46104. prvCheckTasksWaitingTermination();
  46105. 8013378: e7f0 b.n 801335c <prvIdleTask+0x8>
  46106. 801337a: bf00 nop
  46107. 801337c: 24002df8 .word 0x24002df8
  46108. 8013380: e000ed04 .word 0xe000ed04
  46109. 08013384 <prvInitialiseTaskLists>:
  46110. #endif /* portUSING_MPU_WRAPPERS */
  46111. /*-----------------------------------------------------------*/
  46112. static void prvInitialiseTaskLists( void )
  46113. {
  46114. 8013384: b580 push {r7, lr}
  46115. 8013386: b082 sub sp, #8
  46116. 8013388: af00 add r7, sp, #0
  46117. UBaseType_t uxPriority;
  46118. for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
  46119. 801338a: 2300 movs r3, #0
  46120. 801338c: 607b str r3, [r7, #4]
  46121. 801338e: e00c b.n 80133aa <prvInitialiseTaskLists+0x26>
  46122. {
  46123. vListInitialise( &( pxReadyTasksLists[ uxPriority ] ) );
  46124. 8013390: 687a ldr r2, [r7, #4]
  46125. 8013392: 4613 mov r3, r2
  46126. 8013394: 009b lsls r3, r3, #2
  46127. 8013396: 4413 add r3, r2
  46128. 8013398: 009b lsls r3, r3, #2
  46129. 801339a: 4a12 ldr r2, [pc, #72] @ (80133e4 <prvInitialiseTaskLists+0x60>)
  46130. 801339c: 4413 add r3, r2
  46131. 801339e: 4618 mov r0, r3
  46132. 80133a0: f7fd fca6 bl 8010cf0 <vListInitialise>
  46133. for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
  46134. 80133a4: 687b ldr r3, [r7, #4]
  46135. 80133a6: 3301 adds r3, #1
  46136. 80133a8: 607b str r3, [r7, #4]
  46137. 80133aa: 687b ldr r3, [r7, #4]
  46138. 80133ac: 2b37 cmp r3, #55 @ 0x37
  46139. 80133ae: d9ef bls.n 8013390 <prvInitialiseTaskLists+0xc>
  46140. }
  46141. vListInitialise( &xDelayedTaskList1 );
  46142. 80133b0: 480d ldr r0, [pc, #52] @ (80133e8 <prvInitialiseTaskLists+0x64>)
  46143. 80133b2: f7fd fc9d bl 8010cf0 <vListInitialise>
  46144. vListInitialise( &xDelayedTaskList2 );
  46145. 80133b6: 480d ldr r0, [pc, #52] @ (80133ec <prvInitialiseTaskLists+0x68>)
  46146. 80133b8: f7fd fc9a bl 8010cf0 <vListInitialise>
  46147. vListInitialise( &xPendingReadyList );
  46148. 80133bc: 480c ldr r0, [pc, #48] @ (80133f0 <prvInitialiseTaskLists+0x6c>)
  46149. 80133be: f7fd fc97 bl 8010cf0 <vListInitialise>
  46150. #if ( INCLUDE_vTaskDelete == 1 )
  46151. {
  46152. vListInitialise( &xTasksWaitingTermination );
  46153. 80133c2: 480c ldr r0, [pc, #48] @ (80133f4 <prvInitialiseTaskLists+0x70>)
  46154. 80133c4: f7fd fc94 bl 8010cf0 <vListInitialise>
  46155. }
  46156. #endif /* INCLUDE_vTaskDelete */
  46157. #if ( INCLUDE_vTaskSuspend == 1 )
  46158. {
  46159. vListInitialise( &xSuspendedTaskList );
  46160. 80133c8: 480b ldr r0, [pc, #44] @ (80133f8 <prvInitialiseTaskLists+0x74>)
  46161. 80133ca: f7fd fc91 bl 8010cf0 <vListInitialise>
  46162. }
  46163. #endif /* INCLUDE_vTaskSuspend */
  46164. /* Start with pxDelayedTaskList using list1 and the pxOverflowDelayedTaskList
  46165. using list2. */
  46166. pxDelayedTaskList = &xDelayedTaskList1;
  46167. 80133ce: 4b0b ldr r3, [pc, #44] @ (80133fc <prvInitialiseTaskLists+0x78>)
  46168. 80133d0: 4a05 ldr r2, [pc, #20] @ (80133e8 <prvInitialiseTaskLists+0x64>)
  46169. 80133d2: 601a str r2, [r3, #0]
  46170. pxOverflowDelayedTaskList = &xDelayedTaskList2;
  46171. 80133d4: 4b0a ldr r3, [pc, #40] @ (8013400 <prvInitialiseTaskLists+0x7c>)
  46172. 80133d6: 4a05 ldr r2, [pc, #20] @ (80133ec <prvInitialiseTaskLists+0x68>)
  46173. 80133d8: 601a str r2, [r3, #0]
  46174. }
  46175. 80133da: bf00 nop
  46176. 80133dc: 3708 adds r7, #8
  46177. 80133de: 46bd mov sp, r7
  46178. 80133e0: bd80 pop {r7, pc}
  46179. 80133e2: bf00 nop
  46180. 80133e4: 24002df8 .word 0x24002df8
  46181. 80133e8: 24003258 .word 0x24003258
  46182. 80133ec: 2400326c .word 0x2400326c
  46183. 80133f0: 24003288 .word 0x24003288
  46184. 80133f4: 2400329c .word 0x2400329c
  46185. 80133f8: 240032b4 .word 0x240032b4
  46186. 80133fc: 24003280 .word 0x24003280
  46187. 8013400: 24003284 .word 0x24003284
  46188. 08013404 <prvCheckTasksWaitingTermination>:
  46189. /*-----------------------------------------------------------*/
  46190. static void prvCheckTasksWaitingTermination( void )
  46191. {
  46192. 8013404: b580 push {r7, lr}
  46193. 8013406: b082 sub sp, #8
  46194. 8013408: af00 add r7, sp, #0
  46195. {
  46196. TCB_t *pxTCB;
  46197. /* uxDeletedTasksWaitingCleanUp is used to prevent taskENTER_CRITICAL()
  46198. being called too often in the idle task. */
  46199. while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
  46200. 801340a: e019 b.n 8013440 <prvCheckTasksWaitingTermination+0x3c>
  46201. {
  46202. taskENTER_CRITICAL();
  46203. 801340c: f001 f92c bl 8014668 <vPortEnterCritical>
  46204. {
  46205. pxTCB = listGET_OWNER_OF_HEAD_ENTRY( ( &xTasksWaitingTermination ) ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  46206. 8013410: 4b10 ldr r3, [pc, #64] @ (8013454 <prvCheckTasksWaitingTermination+0x50>)
  46207. 8013412: 68db ldr r3, [r3, #12]
  46208. 8013414: 68db ldr r3, [r3, #12]
  46209. 8013416: 607b str r3, [r7, #4]
  46210. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  46211. 8013418: 687b ldr r3, [r7, #4]
  46212. 801341a: 3304 adds r3, #4
  46213. 801341c: 4618 mov r0, r3
  46214. 801341e: f7fd fcf1 bl 8010e04 <uxListRemove>
  46215. --uxCurrentNumberOfTasks;
  46216. 8013422: 4b0d ldr r3, [pc, #52] @ (8013458 <prvCheckTasksWaitingTermination+0x54>)
  46217. 8013424: 681b ldr r3, [r3, #0]
  46218. 8013426: 3b01 subs r3, #1
  46219. 8013428: 4a0b ldr r2, [pc, #44] @ (8013458 <prvCheckTasksWaitingTermination+0x54>)
  46220. 801342a: 6013 str r3, [r2, #0]
  46221. --uxDeletedTasksWaitingCleanUp;
  46222. 801342c: 4b0b ldr r3, [pc, #44] @ (801345c <prvCheckTasksWaitingTermination+0x58>)
  46223. 801342e: 681b ldr r3, [r3, #0]
  46224. 8013430: 3b01 subs r3, #1
  46225. 8013432: 4a0a ldr r2, [pc, #40] @ (801345c <prvCheckTasksWaitingTermination+0x58>)
  46226. 8013434: 6013 str r3, [r2, #0]
  46227. }
  46228. taskEXIT_CRITICAL();
  46229. 8013436: f001 f949 bl 80146cc <vPortExitCritical>
  46230. prvDeleteTCB( pxTCB );
  46231. 801343a: 6878 ldr r0, [r7, #4]
  46232. 801343c: f000 f810 bl 8013460 <prvDeleteTCB>
  46233. while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
  46234. 8013440: 4b06 ldr r3, [pc, #24] @ (801345c <prvCheckTasksWaitingTermination+0x58>)
  46235. 8013442: 681b ldr r3, [r3, #0]
  46236. 8013444: 2b00 cmp r3, #0
  46237. 8013446: d1e1 bne.n 801340c <prvCheckTasksWaitingTermination+0x8>
  46238. }
  46239. }
  46240. #endif /* INCLUDE_vTaskDelete */
  46241. }
  46242. 8013448: bf00 nop
  46243. 801344a: bf00 nop
  46244. 801344c: 3708 adds r7, #8
  46245. 801344e: 46bd mov sp, r7
  46246. 8013450: bd80 pop {r7, pc}
  46247. 8013452: bf00 nop
  46248. 8013454: 2400329c .word 0x2400329c
  46249. 8013458: 240032c8 .word 0x240032c8
  46250. 801345c: 240032b0 .word 0x240032b0
  46251. 08013460 <prvDeleteTCB>:
  46252. /*-----------------------------------------------------------*/
  46253. #if ( INCLUDE_vTaskDelete == 1 )
  46254. static void prvDeleteTCB( TCB_t *pxTCB )
  46255. {
  46256. 8013460: b580 push {r7, lr}
  46257. 8013462: b084 sub sp, #16
  46258. 8013464: af00 add r7, sp, #0
  46259. 8013466: 6078 str r0, [r7, #4]
  46260. to the task to free any memory allocated at the application level.
  46261. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  46262. for additional information. */
  46263. #if ( configUSE_NEWLIB_REENTRANT == 1 )
  46264. {
  46265. _reclaim_reent( &( pxTCB->xNewLib_reent ) );
  46266. 8013468: 687b ldr r3, [r7, #4]
  46267. 801346a: 3354 adds r3, #84 @ 0x54
  46268. 801346c: 4618 mov r0, r3
  46269. 801346e: f016 fa0d bl 802988c <_reclaim_reent>
  46270. #elif( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
  46271. {
  46272. /* The task could have been allocated statically or dynamically, so
  46273. check what was statically allocated before trying to free the
  46274. memory. */
  46275. if( pxTCB->ucStaticallyAllocated == tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB )
  46276. 8013472: 687b ldr r3, [r7, #4]
  46277. 8013474: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  46278. 8013478: 2b00 cmp r3, #0
  46279. 801347a: d108 bne.n 801348e <prvDeleteTCB+0x2e>
  46280. {
  46281. /* Both the stack and TCB were allocated dynamically, so both
  46282. must be freed. */
  46283. vPortFree( pxTCB->pxStack );
  46284. 801347c: 687b ldr r3, [r7, #4]
  46285. 801347e: 6b1b ldr r3, [r3, #48] @ 0x30
  46286. 8013480: 4618 mov r0, r3
  46287. 8013482: f001 fae1 bl 8014a48 <vPortFree>
  46288. vPortFree( pxTCB );
  46289. 8013486: 6878 ldr r0, [r7, #4]
  46290. 8013488: f001 fade bl 8014a48 <vPortFree>
  46291. configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
  46292. mtCOVERAGE_TEST_MARKER();
  46293. }
  46294. }
  46295. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  46296. }
  46297. 801348c: e019 b.n 80134c2 <prvDeleteTCB+0x62>
  46298. else if( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_ONLY )
  46299. 801348e: 687b ldr r3, [r7, #4]
  46300. 8013490: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  46301. 8013494: 2b01 cmp r3, #1
  46302. 8013496: d103 bne.n 80134a0 <prvDeleteTCB+0x40>
  46303. vPortFree( pxTCB );
  46304. 8013498: 6878 ldr r0, [r7, #4]
  46305. 801349a: f001 fad5 bl 8014a48 <vPortFree>
  46306. }
  46307. 801349e: e010 b.n 80134c2 <prvDeleteTCB+0x62>
  46308. configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
  46309. 80134a0: 687b ldr r3, [r7, #4]
  46310. 80134a2: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  46311. 80134a6: 2b02 cmp r3, #2
  46312. 80134a8: d00b beq.n 80134c2 <prvDeleteTCB+0x62>
  46313. __asm volatile
  46314. 80134aa: f04f 0350 mov.w r3, #80 @ 0x50
  46315. 80134ae: f383 8811 msr BASEPRI, r3
  46316. 80134b2: f3bf 8f6f isb sy
  46317. 80134b6: f3bf 8f4f dsb sy
  46318. 80134ba: 60fb str r3, [r7, #12]
  46319. }
  46320. 80134bc: bf00 nop
  46321. 80134be: bf00 nop
  46322. 80134c0: e7fd b.n 80134be <prvDeleteTCB+0x5e>
  46323. }
  46324. 80134c2: bf00 nop
  46325. 80134c4: 3710 adds r7, #16
  46326. 80134c6: 46bd mov sp, r7
  46327. 80134c8: bd80 pop {r7, pc}
  46328. ...
  46329. 080134cc <prvResetNextTaskUnblockTime>:
  46330. #endif /* INCLUDE_vTaskDelete */
  46331. /*-----------------------------------------------------------*/
  46332. static void prvResetNextTaskUnblockTime( void )
  46333. {
  46334. 80134cc: b480 push {r7}
  46335. 80134ce: b083 sub sp, #12
  46336. 80134d0: af00 add r7, sp, #0
  46337. TCB_t *pxTCB;
  46338. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  46339. 80134d2: 4b0c ldr r3, [pc, #48] @ (8013504 <prvResetNextTaskUnblockTime+0x38>)
  46340. 80134d4: 681b ldr r3, [r3, #0]
  46341. 80134d6: 681b ldr r3, [r3, #0]
  46342. 80134d8: 2b00 cmp r3, #0
  46343. 80134da: d104 bne.n 80134e6 <prvResetNextTaskUnblockTime+0x1a>
  46344. {
  46345. /* The new current delayed list is empty. Set xNextTaskUnblockTime to
  46346. the maximum possible value so it is extremely unlikely that the
  46347. if( xTickCount >= xNextTaskUnblockTime ) test will pass until
  46348. there is an item in the delayed list. */
  46349. xNextTaskUnblockTime = portMAX_DELAY;
  46350. 80134dc: 4b0a ldr r3, [pc, #40] @ (8013508 <prvResetNextTaskUnblockTime+0x3c>)
  46351. 80134de: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  46352. 80134e2: 601a str r2, [r3, #0]
  46353. which the task at the head of the delayed list should be removed
  46354. from the Blocked state. */
  46355. ( pxTCB ) = listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  46356. xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
  46357. }
  46358. }
  46359. 80134e4: e008 b.n 80134f8 <prvResetNextTaskUnblockTime+0x2c>
  46360. ( pxTCB ) = listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  46361. 80134e6: 4b07 ldr r3, [pc, #28] @ (8013504 <prvResetNextTaskUnblockTime+0x38>)
  46362. 80134e8: 681b ldr r3, [r3, #0]
  46363. 80134ea: 68db ldr r3, [r3, #12]
  46364. 80134ec: 68db ldr r3, [r3, #12]
  46365. 80134ee: 607b str r3, [r7, #4]
  46366. xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
  46367. 80134f0: 687b ldr r3, [r7, #4]
  46368. 80134f2: 685b ldr r3, [r3, #4]
  46369. 80134f4: 4a04 ldr r2, [pc, #16] @ (8013508 <prvResetNextTaskUnblockTime+0x3c>)
  46370. 80134f6: 6013 str r3, [r2, #0]
  46371. }
  46372. 80134f8: bf00 nop
  46373. 80134fa: 370c adds r7, #12
  46374. 80134fc: 46bd mov sp, r7
  46375. 80134fe: f85d 7b04 ldr.w r7, [sp], #4
  46376. 8013502: 4770 bx lr
  46377. 8013504: 24003280 .word 0x24003280
  46378. 8013508: 240032e8 .word 0x240032e8
  46379. 0801350c <xTaskGetCurrentTaskHandle>:
  46380. /*-----------------------------------------------------------*/
  46381. #if ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) )
  46382. TaskHandle_t xTaskGetCurrentTaskHandle( void )
  46383. {
  46384. 801350c: b480 push {r7}
  46385. 801350e: b083 sub sp, #12
  46386. 8013510: af00 add r7, sp, #0
  46387. TaskHandle_t xReturn;
  46388. /* A critical section is not required as this is not called from
  46389. an interrupt and the current TCB will always be the same for any
  46390. individual execution thread. */
  46391. xReturn = pxCurrentTCB;
  46392. 8013512: 4b05 ldr r3, [pc, #20] @ (8013528 <xTaskGetCurrentTaskHandle+0x1c>)
  46393. 8013514: 681b ldr r3, [r3, #0]
  46394. 8013516: 607b str r3, [r7, #4]
  46395. return xReturn;
  46396. 8013518: 687b ldr r3, [r7, #4]
  46397. }
  46398. 801351a: 4618 mov r0, r3
  46399. 801351c: 370c adds r7, #12
  46400. 801351e: 46bd mov sp, r7
  46401. 8013520: f85d 7b04 ldr.w r7, [sp], #4
  46402. 8013524: 4770 bx lr
  46403. 8013526: bf00 nop
  46404. 8013528: 24002df4 .word 0x24002df4
  46405. 0801352c <xTaskGetSchedulerState>:
  46406. /*-----------------------------------------------------------*/
  46407. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  46408. BaseType_t xTaskGetSchedulerState( void )
  46409. {
  46410. 801352c: b480 push {r7}
  46411. 801352e: b083 sub sp, #12
  46412. 8013530: af00 add r7, sp, #0
  46413. BaseType_t xReturn;
  46414. if( xSchedulerRunning == pdFALSE )
  46415. 8013532: 4b0b ldr r3, [pc, #44] @ (8013560 <xTaskGetSchedulerState+0x34>)
  46416. 8013534: 681b ldr r3, [r3, #0]
  46417. 8013536: 2b00 cmp r3, #0
  46418. 8013538: d102 bne.n 8013540 <xTaskGetSchedulerState+0x14>
  46419. {
  46420. xReturn = taskSCHEDULER_NOT_STARTED;
  46421. 801353a: 2301 movs r3, #1
  46422. 801353c: 607b str r3, [r7, #4]
  46423. 801353e: e008 b.n 8013552 <xTaskGetSchedulerState+0x26>
  46424. }
  46425. else
  46426. {
  46427. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  46428. 8013540: 4b08 ldr r3, [pc, #32] @ (8013564 <xTaskGetSchedulerState+0x38>)
  46429. 8013542: 681b ldr r3, [r3, #0]
  46430. 8013544: 2b00 cmp r3, #0
  46431. 8013546: d102 bne.n 801354e <xTaskGetSchedulerState+0x22>
  46432. {
  46433. xReturn = taskSCHEDULER_RUNNING;
  46434. 8013548: 2302 movs r3, #2
  46435. 801354a: 607b str r3, [r7, #4]
  46436. 801354c: e001 b.n 8013552 <xTaskGetSchedulerState+0x26>
  46437. }
  46438. else
  46439. {
  46440. xReturn = taskSCHEDULER_SUSPENDED;
  46441. 801354e: 2300 movs r3, #0
  46442. 8013550: 607b str r3, [r7, #4]
  46443. }
  46444. }
  46445. return xReturn;
  46446. 8013552: 687b ldr r3, [r7, #4]
  46447. }
  46448. 8013554: 4618 mov r0, r3
  46449. 8013556: 370c adds r7, #12
  46450. 8013558: 46bd mov sp, r7
  46451. 801355a: f85d 7b04 ldr.w r7, [sp], #4
  46452. 801355e: 4770 bx lr
  46453. 8013560: 240032d4 .word 0x240032d4
  46454. 8013564: 240032f0 .word 0x240032f0
  46455. 08013568 <xTaskPriorityInherit>:
  46456. /*-----------------------------------------------------------*/
  46457. #if ( configUSE_MUTEXES == 1 )
  46458. BaseType_t xTaskPriorityInherit( TaskHandle_t const pxMutexHolder )
  46459. {
  46460. 8013568: b580 push {r7, lr}
  46461. 801356a: b084 sub sp, #16
  46462. 801356c: af00 add r7, sp, #0
  46463. 801356e: 6078 str r0, [r7, #4]
  46464. TCB_t * const pxMutexHolderTCB = pxMutexHolder;
  46465. 8013570: 687b ldr r3, [r7, #4]
  46466. 8013572: 60bb str r3, [r7, #8]
  46467. BaseType_t xReturn = pdFALSE;
  46468. 8013574: 2300 movs r3, #0
  46469. 8013576: 60fb str r3, [r7, #12]
  46470. /* If the mutex was given back by an interrupt while the queue was
  46471. locked then the mutex holder might now be NULL. _RB_ Is this still
  46472. needed as interrupts can no longer use mutexes? */
  46473. if( pxMutexHolder != NULL )
  46474. 8013578: 687b ldr r3, [r7, #4]
  46475. 801357a: 2b00 cmp r3, #0
  46476. 801357c: d051 beq.n 8013622 <xTaskPriorityInherit+0xba>
  46477. {
  46478. /* If the holder of the mutex has a priority below the priority of
  46479. the task attempting to obtain the mutex then it will temporarily
  46480. inherit the priority of the task attempting to obtain the mutex. */
  46481. if( pxMutexHolderTCB->uxPriority < pxCurrentTCB->uxPriority )
  46482. 801357e: 68bb ldr r3, [r7, #8]
  46483. 8013580: 6ada ldr r2, [r3, #44] @ 0x2c
  46484. 8013582: 4b2a ldr r3, [pc, #168] @ (801362c <xTaskPriorityInherit+0xc4>)
  46485. 8013584: 681b ldr r3, [r3, #0]
  46486. 8013586: 6adb ldr r3, [r3, #44] @ 0x2c
  46487. 8013588: 429a cmp r2, r3
  46488. 801358a: d241 bcs.n 8013610 <xTaskPriorityInherit+0xa8>
  46489. {
  46490. /* Adjust the mutex holder state to account for its new
  46491. priority. Only reset the event list item value if the value is
  46492. not being used for anything else. */
  46493. if( ( listGET_LIST_ITEM_VALUE( &( pxMutexHolderTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
  46494. 801358c: 68bb ldr r3, [r7, #8]
  46495. 801358e: 699b ldr r3, [r3, #24]
  46496. 8013590: 2b00 cmp r3, #0
  46497. 8013592: db06 blt.n 80135a2 <xTaskPriorityInherit+0x3a>
  46498. {
  46499. listSET_LIST_ITEM_VALUE( &( pxMutexHolderTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) pxCurrentTCB->uxPriority ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  46500. 8013594: 4b25 ldr r3, [pc, #148] @ (801362c <xTaskPriorityInherit+0xc4>)
  46501. 8013596: 681b ldr r3, [r3, #0]
  46502. 8013598: 6adb ldr r3, [r3, #44] @ 0x2c
  46503. 801359a: f1c3 0238 rsb r2, r3, #56 @ 0x38
  46504. 801359e: 68bb ldr r3, [r7, #8]
  46505. 80135a0: 619a str r2, [r3, #24]
  46506. mtCOVERAGE_TEST_MARKER();
  46507. }
  46508. /* If the task being modified is in the ready state it will need
  46509. to be moved into a new list. */
  46510. if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ pxMutexHolderTCB->uxPriority ] ), &( pxMutexHolderTCB->xStateListItem ) ) != pdFALSE )
  46511. 80135a2: 68bb ldr r3, [r7, #8]
  46512. 80135a4: 6959 ldr r1, [r3, #20]
  46513. 80135a6: 68bb ldr r3, [r7, #8]
  46514. 80135a8: 6ada ldr r2, [r3, #44] @ 0x2c
  46515. 80135aa: 4613 mov r3, r2
  46516. 80135ac: 009b lsls r3, r3, #2
  46517. 80135ae: 4413 add r3, r2
  46518. 80135b0: 009b lsls r3, r3, #2
  46519. 80135b2: 4a1f ldr r2, [pc, #124] @ (8013630 <xTaskPriorityInherit+0xc8>)
  46520. 80135b4: 4413 add r3, r2
  46521. 80135b6: 4299 cmp r1, r3
  46522. 80135b8: d122 bne.n 8013600 <xTaskPriorityInherit+0x98>
  46523. {
  46524. if( uxListRemove( &( pxMutexHolderTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  46525. 80135ba: 68bb ldr r3, [r7, #8]
  46526. 80135bc: 3304 adds r3, #4
  46527. 80135be: 4618 mov r0, r3
  46528. 80135c0: f7fd fc20 bl 8010e04 <uxListRemove>
  46529. {
  46530. mtCOVERAGE_TEST_MARKER();
  46531. }
  46532. /* Inherit the priority before being moved into the new list. */
  46533. pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
  46534. 80135c4: 4b19 ldr r3, [pc, #100] @ (801362c <xTaskPriorityInherit+0xc4>)
  46535. 80135c6: 681b ldr r3, [r3, #0]
  46536. 80135c8: 6ada ldr r2, [r3, #44] @ 0x2c
  46537. 80135ca: 68bb ldr r3, [r7, #8]
  46538. 80135cc: 62da str r2, [r3, #44] @ 0x2c
  46539. prvAddTaskToReadyList( pxMutexHolderTCB );
  46540. 80135ce: 68bb ldr r3, [r7, #8]
  46541. 80135d0: 6ada ldr r2, [r3, #44] @ 0x2c
  46542. 80135d2: 4b18 ldr r3, [pc, #96] @ (8013634 <xTaskPriorityInherit+0xcc>)
  46543. 80135d4: 681b ldr r3, [r3, #0]
  46544. 80135d6: 429a cmp r2, r3
  46545. 80135d8: d903 bls.n 80135e2 <xTaskPriorityInherit+0x7a>
  46546. 80135da: 68bb ldr r3, [r7, #8]
  46547. 80135dc: 6adb ldr r3, [r3, #44] @ 0x2c
  46548. 80135de: 4a15 ldr r2, [pc, #84] @ (8013634 <xTaskPriorityInherit+0xcc>)
  46549. 80135e0: 6013 str r3, [r2, #0]
  46550. 80135e2: 68bb ldr r3, [r7, #8]
  46551. 80135e4: 6ada ldr r2, [r3, #44] @ 0x2c
  46552. 80135e6: 4613 mov r3, r2
  46553. 80135e8: 009b lsls r3, r3, #2
  46554. 80135ea: 4413 add r3, r2
  46555. 80135ec: 009b lsls r3, r3, #2
  46556. 80135ee: 4a10 ldr r2, [pc, #64] @ (8013630 <xTaskPriorityInherit+0xc8>)
  46557. 80135f0: 441a add r2, r3
  46558. 80135f2: 68bb ldr r3, [r7, #8]
  46559. 80135f4: 3304 adds r3, #4
  46560. 80135f6: 4619 mov r1, r3
  46561. 80135f8: 4610 mov r0, r2
  46562. 80135fa: f7fd fba6 bl 8010d4a <vListInsertEnd>
  46563. 80135fe: e004 b.n 801360a <xTaskPriorityInherit+0xa2>
  46564. }
  46565. else
  46566. {
  46567. /* Just inherit the priority. */
  46568. pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
  46569. 8013600: 4b0a ldr r3, [pc, #40] @ (801362c <xTaskPriorityInherit+0xc4>)
  46570. 8013602: 681b ldr r3, [r3, #0]
  46571. 8013604: 6ada ldr r2, [r3, #44] @ 0x2c
  46572. 8013606: 68bb ldr r3, [r7, #8]
  46573. 8013608: 62da str r2, [r3, #44] @ 0x2c
  46574. }
  46575. traceTASK_PRIORITY_INHERIT( pxMutexHolderTCB, pxCurrentTCB->uxPriority );
  46576. /* Inheritance occurred. */
  46577. xReturn = pdTRUE;
  46578. 801360a: 2301 movs r3, #1
  46579. 801360c: 60fb str r3, [r7, #12]
  46580. 801360e: e008 b.n 8013622 <xTaskPriorityInherit+0xba>
  46581. }
  46582. else
  46583. {
  46584. if( pxMutexHolderTCB->uxBasePriority < pxCurrentTCB->uxPriority )
  46585. 8013610: 68bb ldr r3, [r7, #8]
  46586. 8013612: 6cda ldr r2, [r3, #76] @ 0x4c
  46587. 8013614: 4b05 ldr r3, [pc, #20] @ (801362c <xTaskPriorityInherit+0xc4>)
  46588. 8013616: 681b ldr r3, [r3, #0]
  46589. 8013618: 6adb ldr r3, [r3, #44] @ 0x2c
  46590. 801361a: 429a cmp r2, r3
  46591. 801361c: d201 bcs.n 8013622 <xTaskPriorityInherit+0xba>
  46592. current priority of the mutex holder is not lower than the
  46593. priority of the task attempting to take the mutex.
  46594. Therefore the mutex holder must have already inherited a
  46595. priority, but inheritance would have occurred if that had
  46596. not been the case. */
  46597. xReturn = pdTRUE;
  46598. 801361e: 2301 movs r3, #1
  46599. 8013620: 60fb str r3, [r7, #12]
  46600. else
  46601. {
  46602. mtCOVERAGE_TEST_MARKER();
  46603. }
  46604. return xReturn;
  46605. 8013622: 68fb ldr r3, [r7, #12]
  46606. }
  46607. 8013624: 4618 mov r0, r3
  46608. 8013626: 3710 adds r7, #16
  46609. 8013628: 46bd mov sp, r7
  46610. 801362a: bd80 pop {r7, pc}
  46611. 801362c: 24002df4 .word 0x24002df4
  46612. 8013630: 24002df8 .word 0x24002df8
  46613. 8013634: 240032d0 .word 0x240032d0
  46614. 08013638 <xTaskPriorityDisinherit>:
  46615. /*-----------------------------------------------------------*/
  46616. #if ( configUSE_MUTEXES == 1 )
  46617. BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder )
  46618. {
  46619. 8013638: b580 push {r7, lr}
  46620. 801363a: b086 sub sp, #24
  46621. 801363c: af00 add r7, sp, #0
  46622. 801363e: 6078 str r0, [r7, #4]
  46623. TCB_t * const pxTCB = pxMutexHolder;
  46624. 8013640: 687b ldr r3, [r7, #4]
  46625. 8013642: 613b str r3, [r7, #16]
  46626. BaseType_t xReturn = pdFALSE;
  46627. 8013644: 2300 movs r3, #0
  46628. 8013646: 617b str r3, [r7, #20]
  46629. if( pxMutexHolder != NULL )
  46630. 8013648: 687b ldr r3, [r7, #4]
  46631. 801364a: 2b00 cmp r3, #0
  46632. 801364c: d058 beq.n 8013700 <xTaskPriorityDisinherit+0xc8>
  46633. {
  46634. /* A task can only have an inherited priority if it holds the mutex.
  46635. If the mutex is held by a task then it cannot be given from an
  46636. interrupt, and if a mutex is given by the holding task then it must
  46637. be the running state task. */
  46638. configASSERT( pxTCB == pxCurrentTCB );
  46639. 801364e: 4b2f ldr r3, [pc, #188] @ (801370c <xTaskPriorityDisinherit+0xd4>)
  46640. 8013650: 681b ldr r3, [r3, #0]
  46641. 8013652: 693a ldr r2, [r7, #16]
  46642. 8013654: 429a cmp r2, r3
  46643. 8013656: d00b beq.n 8013670 <xTaskPriorityDisinherit+0x38>
  46644. __asm volatile
  46645. 8013658: f04f 0350 mov.w r3, #80 @ 0x50
  46646. 801365c: f383 8811 msr BASEPRI, r3
  46647. 8013660: f3bf 8f6f isb sy
  46648. 8013664: f3bf 8f4f dsb sy
  46649. 8013668: 60fb str r3, [r7, #12]
  46650. }
  46651. 801366a: bf00 nop
  46652. 801366c: bf00 nop
  46653. 801366e: e7fd b.n 801366c <xTaskPriorityDisinherit+0x34>
  46654. configASSERT( pxTCB->uxMutexesHeld );
  46655. 8013670: 693b ldr r3, [r7, #16]
  46656. 8013672: 6d1b ldr r3, [r3, #80] @ 0x50
  46657. 8013674: 2b00 cmp r3, #0
  46658. 8013676: d10b bne.n 8013690 <xTaskPriorityDisinherit+0x58>
  46659. __asm volatile
  46660. 8013678: f04f 0350 mov.w r3, #80 @ 0x50
  46661. 801367c: f383 8811 msr BASEPRI, r3
  46662. 8013680: f3bf 8f6f isb sy
  46663. 8013684: f3bf 8f4f dsb sy
  46664. 8013688: 60bb str r3, [r7, #8]
  46665. }
  46666. 801368a: bf00 nop
  46667. 801368c: bf00 nop
  46668. 801368e: e7fd b.n 801368c <xTaskPriorityDisinherit+0x54>
  46669. ( pxTCB->uxMutexesHeld )--;
  46670. 8013690: 693b ldr r3, [r7, #16]
  46671. 8013692: 6d1b ldr r3, [r3, #80] @ 0x50
  46672. 8013694: 1e5a subs r2, r3, #1
  46673. 8013696: 693b ldr r3, [r7, #16]
  46674. 8013698: 651a str r2, [r3, #80] @ 0x50
  46675. /* Has the holder of the mutex inherited the priority of another
  46676. task? */
  46677. if( pxTCB->uxPriority != pxTCB->uxBasePriority )
  46678. 801369a: 693b ldr r3, [r7, #16]
  46679. 801369c: 6ada ldr r2, [r3, #44] @ 0x2c
  46680. 801369e: 693b ldr r3, [r7, #16]
  46681. 80136a0: 6cdb ldr r3, [r3, #76] @ 0x4c
  46682. 80136a2: 429a cmp r2, r3
  46683. 80136a4: d02c beq.n 8013700 <xTaskPriorityDisinherit+0xc8>
  46684. {
  46685. /* Only disinherit if no other mutexes are held. */
  46686. if( pxTCB->uxMutexesHeld == ( UBaseType_t ) 0 )
  46687. 80136a6: 693b ldr r3, [r7, #16]
  46688. 80136a8: 6d1b ldr r3, [r3, #80] @ 0x50
  46689. 80136aa: 2b00 cmp r3, #0
  46690. 80136ac: d128 bne.n 8013700 <xTaskPriorityDisinherit+0xc8>
  46691. /* A task can only have an inherited priority if it holds
  46692. the mutex. If the mutex is held by a task then it cannot be
  46693. given from an interrupt, and if a mutex is given by the
  46694. holding task then it must be the running state task. Remove
  46695. the holding task from the ready/delayed list. */
  46696. if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  46697. 80136ae: 693b ldr r3, [r7, #16]
  46698. 80136b0: 3304 adds r3, #4
  46699. 80136b2: 4618 mov r0, r3
  46700. 80136b4: f7fd fba6 bl 8010e04 <uxListRemove>
  46701. }
  46702. /* Disinherit the priority before adding the task into the
  46703. new ready list. */
  46704. traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
  46705. pxTCB->uxPriority = pxTCB->uxBasePriority;
  46706. 80136b8: 693b ldr r3, [r7, #16]
  46707. 80136ba: 6cda ldr r2, [r3, #76] @ 0x4c
  46708. 80136bc: 693b ldr r3, [r7, #16]
  46709. 80136be: 62da str r2, [r3, #44] @ 0x2c
  46710. /* Reset the event list item value. It cannot be in use for
  46711. any other purpose if this task is running, and it must be
  46712. running to give back the mutex. */
  46713. listSET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) pxTCB->uxPriority ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  46714. 80136c0: 693b ldr r3, [r7, #16]
  46715. 80136c2: 6adb ldr r3, [r3, #44] @ 0x2c
  46716. 80136c4: f1c3 0238 rsb r2, r3, #56 @ 0x38
  46717. 80136c8: 693b ldr r3, [r7, #16]
  46718. 80136ca: 619a str r2, [r3, #24]
  46719. prvAddTaskToReadyList( pxTCB );
  46720. 80136cc: 693b ldr r3, [r7, #16]
  46721. 80136ce: 6ada ldr r2, [r3, #44] @ 0x2c
  46722. 80136d0: 4b0f ldr r3, [pc, #60] @ (8013710 <xTaskPriorityDisinherit+0xd8>)
  46723. 80136d2: 681b ldr r3, [r3, #0]
  46724. 80136d4: 429a cmp r2, r3
  46725. 80136d6: d903 bls.n 80136e0 <xTaskPriorityDisinherit+0xa8>
  46726. 80136d8: 693b ldr r3, [r7, #16]
  46727. 80136da: 6adb ldr r3, [r3, #44] @ 0x2c
  46728. 80136dc: 4a0c ldr r2, [pc, #48] @ (8013710 <xTaskPriorityDisinherit+0xd8>)
  46729. 80136de: 6013 str r3, [r2, #0]
  46730. 80136e0: 693b ldr r3, [r7, #16]
  46731. 80136e2: 6ada ldr r2, [r3, #44] @ 0x2c
  46732. 80136e4: 4613 mov r3, r2
  46733. 80136e6: 009b lsls r3, r3, #2
  46734. 80136e8: 4413 add r3, r2
  46735. 80136ea: 009b lsls r3, r3, #2
  46736. 80136ec: 4a09 ldr r2, [pc, #36] @ (8013714 <xTaskPriorityDisinherit+0xdc>)
  46737. 80136ee: 441a add r2, r3
  46738. 80136f0: 693b ldr r3, [r7, #16]
  46739. 80136f2: 3304 adds r3, #4
  46740. 80136f4: 4619 mov r1, r3
  46741. 80136f6: 4610 mov r0, r2
  46742. 80136f8: f7fd fb27 bl 8010d4a <vListInsertEnd>
  46743. in an order different to that in which they were taken.
  46744. If a context switch did not occur when the first mutex was
  46745. returned, even if a task was waiting on it, then a context
  46746. switch should occur when the last mutex is returned whether
  46747. a task is waiting on it or not. */
  46748. xReturn = pdTRUE;
  46749. 80136fc: 2301 movs r3, #1
  46750. 80136fe: 617b str r3, [r7, #20]
  46751. else
  46752. {
  46753. mtCOVERAGE_TEST_MARKER();
  46754. }
  46755. return xReturn;
  46756. 8013700: 697b ldr r3, [r7, #20]
  46757. }
  46758. 8013702: 4618 mov r0, r3
  46759. 8013704: 3718 adds r7, #24
  46760. 8013706: 46bd mov sp, r7
  46761. 8013708: bd80 pop {r7, pc}
  46762. 801370a: bf00 nop
  46763. 801370c: 24002df4 .word 0x24002df4
  46764. 8013710: 240032d0 .word 0x240032d0
  46765. 8013714: 24002df8 .word 0x24002df8
  46766. 08013718 <vTaskPriorityDisinheritAfterTimeout>:
  46767. /*-----------------------------------------------------------*/
  46768. #if ( configUSE_MUTEXES == 1 )
  46769. void vTaskPriorityDisinheritAfterTimeout( TaskHandle_t const pxMutexHolder, UBaseType_t uxHighestPriorityWaitingTask )
  46770. {
  46771. 8013718: b580 push {r7, lr}
  46772. 801371a: b088 sub sp, #32
  46773. 801371c: af00 add r7, sp, #0
  46774. 801371e: 6078 str r0, [r7, #4]
  46775. 8013720: 6039 str r1, [r7, #0]
  46776. TCB_t * const pxTCB = pxMutexHolder;
  46777. 8013722: 687b ldr r3, [r7, #4]
  46778. 8013724: 61bb str r3, [r7, #24]
  46779. UBaseType_t uxPriorityUsedOnEntry, uxPriorityToUse;
  46780. const UBaseType_t uxOnlyOneMutexHeld = ( UBaseType_t ) 1;
  46781. 8013726: 2301 movs r3, #1
  46782. 8013728: 617b str r3, [r7, #20]
  46783. if( pxMutexHolder != NULL )
  46784. 801372a: 687b ldr r3, [r7, #4]
  46785. 801372c: 2b00 cmp r3, #0
  46786. 801372e: d06c beq.n 801380a <vTaskPriorityDisinheritAfterTimeout+0xf2>
  46787. {
  46788. /* If pxMutexHolder is not NULL then the holder must hold at least
  46789. one mutex. */
  46790. configASSERT( pxTCB->uxMutexesHeld );
  46791. 8013730: 69bb ldr r3, [r7, #24]
  46792. 8013732: 6d1b ldr r3, [r3, #80] @ 0x50
  46793. 8013734: 2b00 cmp r3, #0
  46794. 8013736: d10b bne.n 8013750 <vTaskPriorityDisinheritAfterTimeout+0x38>
  46795. __asm volatile
  46796. 8013738: f04f 0350 mov.w r3, #80 @ 0x50
  46797. 801373c: f383 8811 msr BASEPRI, r3
  46798. 8013740: f3bf 8f6f isb sy
  46799. 8013744: f3bf 8f4f dsb sy
  46800. 8013748: 60fb str r3, [r7, #12]
  46801. }
  46802. 801374a: bf00 nop
  46803. 801374c: bf00 nop
  46804. 801374e: e7fd b.n 801374c <vTaskPriorityDisinheritAfterTimeout+0x34>
  46805. /* Determine the priority to which the priority of the task that
  46806. holds the mutex should be set. This will be the greater of the
  46807. holding task's base priority and the priority of the highest
  46808. priority task that is waiting to obtain the mutex. */
  46809. if( pxTCB->uxBasePriority < uxHighestPriorityWaitingTask )
  46810. 8013750: 69bb ldr r3, [r7, #24]
  46811. 8013752: 6cdb ldr r3, [r3, #76] @ 0x4c
  46812. 8013754: 683a ldr r2, [r7, #0]
  46813. 8013756: 429a cmp r2, r3
  46814. 8013758: d902 bls.n 8013760 <vTaskPriorityDisinheritAfterTimeout+0x48>
  46815. {
  46816. uxPriorityToUse = uxHighestPriorityWaitingTask;
  46817. 801375a: 683b ldr r3, [r7, #0]
  46818. 801375c: 61fb str r3, [r7, #28]
  46819. 801375e: e002 b.n 8013766 <vTaskPriorityDisinheritAfterTimeout+0x4e>
  46820. }
  46821. else
  46822. {
  46823. uxPriorityToUse = pxTCB->uxBasePriority;
  46824. 8013760: 69bb ldr r3, [r7, #24]
  46825. 8013762: 6cdb ldr r3, [r3, #76] @ 0x4c
  46826. 8013764: 61fb str r3, [r7, #28]
  46827. }
  46828. /* Does the priority need to change? */
  46829. if( pxTCB->uxPriority != uxPriorityToUse )
  46830. 8013766: 69bb ldr r3, [r7, #24]
  46831. 8013768: 6adb ldr r3, [r3, #44] @ 0x2c
  46832. 801376a: 69fa ldr r2, [r7, #28]
  46833. 801376c: 429a cmp r2, r3
  46834. 801376e: d04c beq.n 801380a <vTaskPriorityDisinheritAfterTimeout+0xf2>
  46835. {
  46836. /* Only disinherit if no other mutexes are held. This is a
  46837. simplification in the priority inheritance implementation. If
  46838. the task that holds the mutex is also holding other mutexes then
  46839. the other mutexes may have caused the priority inheritance. */
  46840. if( pxTCB->uxMutexesHeld == uxOnlyOneMutexHeld )
  46841. 8013770: 69bb ldr r3, [r7, #24]
  46842. 8013772: 6d1b ldr r3, [r3, #80] @ 0x50
  46843. 8013774: 697a ldr r2, [r7, #20]
  46844. 8013776: 429a cmp r2, r3
  46845. 8013778: d147 bne.n 801380a <vTaskPriorityDisinheritAfterTimeout+0xf2>
  46846. {
  46847. /* If a task has timed out because it already holds the
  46848. mutex it was trying to obtain then it cannot of inherited
  46849. its own priority. */
  46850. configASSERT( pxTCB != pxCurrentTCB );
  46851. 801377a: 4b26 ldr r3, [pc, #152] @ (8013814 <vTaskPriorityDisinheritAfterTimeout+0xfc>)
  46852. 801377c: 681b ldr r3, [r3, #0]
  46853. 801377e: 69ba ldr r2, [r7, #24]
  46854. 8013780: 429a cmp r2, r3
  46855. 8013782: d10b bne.n 801379c <vTaskPriorityDisinheritAfterTimeout+0x84>
  46856. __asm volatile
  46857. 8013784: f04f 0350 mov.w r3, #80 @ 0x50
  46858. 8013788: f383 8811 msr BASEPRI, r3
  46859. 801378c: f3bf 8f6f isb sy
  46860. 8013790: f3bf 8f4f dsb sy
  46861. 8013794: 60bb str r3, [r7, #8]
  46862. }
  46863. 8013796: bf00 nop
  46864. 8013798: bf00 nop
  46865. 801379a: e7fd b.n 8013798 <vTaskPriorityDisinheritAfterTimeout+0x80>
  46866. /* Disinherit the priority, remembering the previous
  46867. priority to facilitate determining the subject task's
  46868. state. */
  46869. traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
  46870. uxPriorityUsedOnEntry = pxTCB->uxPriority;
  46871. 801379c: 69bb ldr r3, [r7, #24]
  46872. 801379e: 6adb ldr r3, [r3, #44] @ 0x2c
  46873. 80137a0: 613b str r3, [r7, #16]
  46874. pxTCB->uxPriority = uxPriorityToUse;
  46875. 80137a2: 69bb ldr r3, [r7, #24]
  46876. 80137a4: 69fa ldr r2, [r7, #28]
  46877. 80137a6: 62da str r2, [r3, #44] @ 0x2c
  46878. /* Only reset the event list item value if the value is not
  46879. being used for anything else. */
  46880. if( ( listGET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
  46881. 80137a8: 69bb ldr r3, [r7, #24]
  46882. 80137aa: 699b ldr r3, [r3, #24]
  46883. 80137ac: 2b00 cmp r3, #0
  46884. 80137ae: db04 blt.n 80137ba <vTaskPriorityDisinheritAfterTimeout+0xa2>
  46885. {
  46886. listSET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) uxPriorityToUse ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  46887. 80137b0: 69fb ldr r3, [r7, #28]
  46888. 80137b2: f1c3 0238 rsb r2, r3, #56 @ 0x38
  46889. 80137b6: 69bb ldr r3, [r7, #24]
  46890. 80137b8: 619a str r2, [r3, #24]
  46891. then the task that holds the mutex could be in either the
  46892. Ready, Blocked or Suspended states. Only remove the task
  46893. from its current state list if it is in the Ready state as
  46894. the task's priority is going to change and there is one
  46895. Ready list per priority. */
  46896. if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ uxPriorityUsedOnEntry ] ), &( pxTCB->xStateListItem ) ) != pdFALSE )
  46897. 80137ba: 69bb ldr r3, [r7, #24]
  46898. 80137bc: 6959 ldr r1, [r3, #20]
  46899. 80137be: 693a ldr r2, [r7, #16]
  46900. 80137c0: 4613 mov r3, r2
  46901. 80137c2: 009b lsls r3, r3, #2
  46902. 80137c4: 4413 add r3, r2
  46903. 80137c6: 009b lsls r3, r3, #2
  46904. 80137c8: 4a13 ldr r2, [pc, #76] @ (8013818 <vTaskPriorityDisinheritAfterTimeout+0x100>)
  46905. 80137ca: 4413 add r3, r2
  46906. 80137cc: 4299 cmp r1, r3
  46907. 80137ce: d11c bne.n 801380a <vTaskPriorityDisinheritAfterTimeout+0xf2>
  46908. {
  46909. if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  46910. 80137d0: 69bb ldr r3, [r7, #24]
  46911. 80137d2: 3304 adds r3, #4
  46912. 80137d4: 4618 mov r0, r3
  46913. 80137d6: f7fd fb15 bl 8010e04 <uxListRemove>
  46914. else
  46915. {
  46916. mtCOVERAGE_TEST_MARKER();
  46917. }
  46918. prvAddTaskToReadyList( pxTCB );
  46919. 80137da: 69bb ldr r3, [r7, #24]
  46920. 80137dc: 6ada ldr r2, [r3, #44] @ 0x2c
  46921. 80137de: 4b0f ldr r3, [pc, #60] @ (801381c <vTaskPriorityDisinheritAfterTimeout+0x104>)
  46922. 80137e0: 681b ldr r3, [r3, #0]
  46923. 80137e2: 429a cmp r2, r3
  46924. 80137e4: d903 bls.n 80137ee <vTaskPriorityDisinheritAfterTimeout+0xd6>
  46925. 80137e6: 69bb ldr r3, [r7, #24]
  46926. 80137e8: 6adb ldr r3, [r3, #44] @ 0x2c
  46927. 80137ea: 4a0c ldr r2, [pc, #48] @ (801381c <vTaskPriorityDisinheritAfterTimeout+0x104>)
  46928. 80137ec: 6013 str r3, [r2, #0]
  46929. 80137ee: 69bb ldr r3, [r7, #24]
  46930. 80137f0: 6ada ldr r2, [r3, #44] @ 0x2c
  46931. 80137f2: 4613 mov r3, r2
  46932. 80137f4: 009b lsls r3, r3, #2
  46933. 80137f6: 4413 add r3, r2
  46934. 80137f8: 009b lsls r3, r3, #2
  46935. 80137fa: 4a07 ldr r2, [pc, #28] @ (8013818 <vTaskPriorityDisinheritAfterTimeout+0x100>)
  46936. 80137fc: 441a add r2, r3
  46937. 80137fe: 69bb ldr r3, [r7, #24]
  46938. 8013800: 3304 adds r3, #4
  46939. 8013802: 4619 mov r1, r3
  46940. 8013804: 4610 mov r0, r2
  46941. 8013806: f7fd faa0 bl 8010d4a <vListInsertEnd>
  46942. }
  46943. else
  46944. {
  46945. mtCOVERAGE_TEST_MARKER();
  46946. }
  46947. }
  46948. 801380a: bf00 nop
  46949. 801380c: 3720 adds r7, #32
  46950. 801380e: 46bd mov sp, r7
  46951. 8013810: bd80 pop {r7, pc}
  46952. 8013812: bf00 nop
  46953. 8013814: 24002df4 .word 0x24002df4
  46954. 8013818: 24002df8 .word 0x24002df8
  46955. 801381c: 240032d0 .word 0x240032d0
  46956. 08013820 <pvTaskIncrementMutexHeldCount>:
  46957. /*-----------------------------------------------------------*/
  46958. #if ( configUSE_MUTEXES == 1 )
  46959. TaskHandle_t pvTaskIncrementMutexHeldCount( void )
  46960. {
  46961. 8013820: b480 push {r7}
  46962. 8013822: af00 add r7, sp, #0
  46963. /* If xSemaphoreCreateMutex() is called before any tasks have been created
  46964. then pxCurrentTCB will be NULL. */
  46965. if( pxCurrentTCB != NULL )
  46966. 8013824: 4b07 ldr r3, [pc, #28] @ (8013844 <pvTaskIncrementMutexHeldCount+0x24>)
  46967. 8013826: 681b ldr r3, [r3, #0]
  46968. 8013828: 2b00 cmp r3, #0
  46969. 801382a: d004 beq.n 8013836 <pvTaskIncrementMutexHeldCount+0x16>
  46970. {
  46971. ( pxCurrentTCB->uxMutexesHeld )++;
  46972. 801382c: 4b05 ldr r3, [pc, #20] @ (8013844 <pvTaskIncrementMutexHeldCount+0x24>)
  46973. 801382e: 681b ldr r3, [r3, #0]
  46974. 8013830: 6d1a ldr r2, [r3, #80] @ 0x50
  46975. 8013832: 3201 adds r2, #1
  46976. 8013834: 651a str r2, [r3, #80] @ 0x50
  46977. }
  46978. return pxCurrentTCB;
  46979. 8013836: 4b03 ldr r3, [pc, #12] @ (8013844 <pvTaskIncrementMutexHeldCount+0x24>)
  46980. 8013838: 681b ldr r3, [r3, #0]
  46981. }
  46982. 801383a: 4618 mov r0, r3
  46983. 801383c: 46bd mov sp, r7
  46984. 801383e: f85d 7b04 ldr.w r7, [sp], #4
  46985. 8013842: 4770 bx lr
  46986. 8013844: 24002df4 .word 0x24002df4
  46987. 08013848 <xTaskNotifyWait>:
  46988. /*-----------------------------------------------------------*/
  46989. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  46990. BaseType_t xTaskNotifyWait( uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait )
  46991. {
  46992. 8013848: b580 push {r7, lr}
  46993. 801384a: b086 sub sp, #24
  46994. 801384c: af00 add r7, sp, #0
  46995. 801384e: 60f8 str r0, [r7, #12]
  46996. 8013850: 60b9 str r1, [r7, #8]
  46997. 8013852: 607a str r2, [r7, #4]
  46998. 8013854: 603b str r3, [r7, #0]
  46999. BaseType_t xReturn;
  47000. taskENTER_CRITICAL();
  47001. 8013856: f000 ff07 bl 8014668 <vPortEnterCritical>
  47002. {
  47003. /* Only block if a notification is not already pending. */
  47004. if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
  47005. 801385a: 4b29 ldr r3, [pc, #164] @ (8013900 <xTaskNotifyWait+0xb8>)
  47006. 801385c: 681b ldr r3, [r3, #0]
  47007. 801385e: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  47008. 8013862: b2db uxtb r3, r3
  47009. 8013864: 2b02 cmp r3, #2
  47010. 8013866: d01c beq.n 80138a2 <xTaskNotifyWait+0x5a>
  47011. {
  47012. /* Clear bits in the task's notification value as bits may get
  47013. set by the notifying task or interrupt. This can be used to
  47014. clear the value to zero. */
  47015. pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnEntry;
  47016. 8013868: 4b25 ldr r3, [pc, #148] @ (8013900 <xTaskNotifyWait+0xb8>)
  47017. 801386a: 681b ldr r3, [r3, #0]
  47018. 801386c: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
  47019. 8013870: 68fa ldr r2, [r7, #12]
  47020. 8013872: 43d2 mvns r2, r2
  47021. 8013874: 400a ands r2, r1
  47022. 8013876: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  47023. /* Mark this task as waiting for a notification. */
  47024. pxCurrentTCB->ucNotifyState = taskWAITING_NOTIFICATION;
  47025. 801387a: 4b21 ldr r3, [pc, #132] @ (8013900 <xTaskNotifyWait+0xb8>)
  47026. 801387c: 681b ldr r3, [r3, #0]
  47027. 801387e: 2201 movs r2, #1
  47028. 8013880: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  47029. if( xTicksToWait > ( TickType_t ) 0 )
  47030. 8013884: 683b ldr r3, [r7, #0]
  47031. 8013886: 2b00 cmp r3, #0
  47032. 8013888: d00b beq.n 80138a2 <xTaskNotifyWait+0x5a>
  47033. {
  47034. prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
  47035. 801388a: 2101 movs r1, #1
  47036. 801388c: 6838 ldr r0, [r7, #0]
  47037. 801388e: f000 fa09 bl 8013ca4 <prvAddCurrentTaskToDelayedList>
  47038. /* All ports are written to allow a yield in a critical
  47039. section (some will yield immediately, others wait until the
  47040. critical section exits) - but it is not something that
  47041. application code should ever do. */
  47042. portYIELD_WITHIN_API();
  47043. 8013892: 4b1c ldr r3, [pc, #112] @ (8013904 <xTaskNotifyWait+0xbc>)
  47044. 8013894: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  47045. 8013898: 601a str r2, [r3, #0]
  47046. 801389a: f3bf 8f4f dsb sy
  47047. 801389e: f3bf 8f6f isb sy
  47048. else
  47049. {
  47050. mtCOVERAGE_TEST_MARKER();
  47051. }
  47052. }
  47053. taskEXIT_CRITICAL();
  47054. 80138a2: f000 ff13 bl 80146cc <vPortExitCritical>
  47055. taskENTER_CRITICAL();
  47056. 80138a6: f000 fedf bl 8014668 <vPortEnterCritical>
  47057. {
  47058. traceTASK_NOTIFY_WAIT();
  47059. if( pulNotificationValue != NULL )
  47060. 80138aa: 687b ldr r3, [r7, #4]
  47061. 80138ac: 2b00 cmp r3, #0
  47062. 80138ae: d005 beq.n 80138bc <xTaskNotifyWait+0x74>
  47063. {
  47064. /* Output the current notification value, which may or may not
  47065. have changed. */
  47066. *pulNotificationValue = pxCurrentTCB->ulNotifiedValue;
  47067. 80138b0: 4b13 ldr r3, [pc, #76] @ (8013900 <xTaskNotifyWait+0xb8>)
  47068. 80138b2: 681b ldr r3, [r3, #0]
  47069. 80138b4: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  47070. 80138b8: 687b ldr r3, [r7, #4]
  47071. 80138ba: 601a str r2, [r3, #0]
  47072. /* If ucNotifyValue is set then either the task never entered the
  47073. blocked state (because a notification was already pending) or the
  47074. task unblocked because of a notification. Otherwise the task
  47075. unblocked because of a timeout. */
  47076. if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
  47077. 80138bc: 4b10 ldr r3, [pc, #64] @ (8013900 <xTaskNotifyWait+0xb8>)
  47078. 80138be: 681b ldr r3, [r3, #0]
  47079. 80138c0: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  47080. 80138c4: b2db uxtb r3, r3
  47081. 80138c6: 2b02 cmp r3, #2
  47082. 80138c8: d002 beq.n 80138d0 <xTaskNotifyWait+0x88>
  47083. {
  47084. /* A notification was not received. */
  47085. xReturn = pdFALSE;
  47086. 80138ca: 2300 movs r3, #0
  47087. 80138cc: 617b str r3, [r7, #20]
  47088. 80138ce: e00a b.n 80138e6 <xTaskNotifyWait+0x9e>
  47089. }
  47090. else
  47091. {
  47092. /* A notification was already pending or a notification was
  47093. received while the task was waiting. */
  47094. pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnExit;
  47095. 80138d0: 4b0b ldr r3, [pc, #44] @ (8013900 <xTaskNotifyWait+0xb8>)
  47096. 80138d2: 681b ldr r3, [r3, #0]
  47097. 80138d4: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
  47098. 80138d8: 68ba ldr r2, [r7, #8]
  47099. 80138da: 43d2 mvns r2, r2
  47100. 80138dc: 400a ands r2, r1
  47101. 80138de: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  47102. xReturn = pdTRUE;
  47103. 80138e2: 2301 movs r3, #1
  47104. 80138e4: 617b str r3, [r7, #20]
  47105. }
  47106. pxCurrentTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  47107. 80138e6: 4b06 ldr r3, [pc, #24] @ (8013900 <xTaskNotifyWait+0xb8>)
  47108. 80138e8: 681b ldr r3, [r3, #0]
  47109. 80138ea: 2200 movs r2, #0
  47110. 80138ec: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  47111. }
  47112. taskEXIT_CRITICAL();
  47113. 80138f0: f000 feec bl 80146cc <vPortExitCritical>
  47114. return xReturn;
  47115. 80138f4: 697b ldr r3, [r7, #20]
  47116. }
  47117. 80138f6: 4618 mov r0, r3
  47118. 80138f8: 3718 adds r7, #24
  47119. 80138fa: 46bd mov sp, r7
  47120. 80138fc: bd80 pop {r7, pc}
  47121. 80138fe: bf00 nop
  47122. 8013900: 24002df4 .word 0x24002df4
  47123. 8013904: e000ed04 .word 0xe000ed04
  47124. 08013908 <xTaskGenericNotify>:
  47125. /*-----------------------------------------------------------*/
  47126. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  47127. BaseType_t xTaskGenericNotify( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue )
  47128. {
  47129. 8013908: b580 push {r7, lr}
  47130. 801390a: b08a sub sp, #40 @ 0x28
  47131. 801390c: af00 add r7, sp, #0
  47132. 801390e: 60f8 str r0, [r7, #12]
  47133. 8013910: 60b9 str r1, [r7, #8]
  47134. 8013912: 603b str r3, [r7, #0]
  47135. 8013914: 4613 mov r3, r2
  47136. 8013916: 71fb strb r3, [r7, #7]
  47137. TCB_t * pxTCB;
  47138. BaseType_t xReturn = pdPASS;
  47139. 8013918: 2301 movs r3, #1
  47140. 801391a: 627b str r3, [r7, #36] @ 0x24
  47141. uint8_t ucOriginalNotifyState;
  47142. configASSERT( xTaskToNotify );
  47143. 801391c: 68fb ldr r3, [r7, #12]
  47144. 801391e: 2b00 cmp r3, #0
  47145. 8013920: d10b bne.n 801393a <xTaskGenericNotify+0x32>
  47146. __asm volatile
  47147. 8013922: f04f 0350 mov.w r3, #80 @ 0x50
  47148. 8013926: f383 8811 msr BASEPRI, r3
  47149. 801392a: f3bf 8f6f isb sy
  47150. 801392e: f3bf 8f4f dsb sy
  47151. 8013932: 61bb str r3, [r7, #24]
  47152. }
  47153. 8013934: bf00 nop
  47154. 8013936: bf00 nop
  47155. 8013938: e7fd b.n 8013936 <xTaskGenericNotify+0x2e>
  47156. pxTCB = xTaskToNotify;
  47157. 801393a: 68fb ldr r3, [r7, #12]
  47158. 801393c: 623b str r3, [r7, #32]
  47159. taskENTER_CRITICAL();
  47160. 801393e: f000 fe93 bl 8014668 <vPortEnterCritical>
  47161. {
  47162. if( pulPreviousNotificationValue != NULL )
  47163. 8013942: 683b ldr r3, [r7, #0]
  47164. 8013944: 2b00 cmp r3, #0
  47165. 8013946: d004 beq.n 8013952 <xTaskGenericNotify+0x4a>
  47166. {
  47167. *pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
  47168. 8013948: 6a3b ldr r3, [r7, #32]
  47169. 801394a: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  47170. 801394e: 683b ldr r3, [r7, #0]
  47171. 8013950: 601a str r2, [r3, #0]
  47172. }
  47173. ucOriginalNotifyState = pxTCB->ucNotifyState;
  47174. 8013952: 6a3b ldr r3, [r7, #32]
  47175. 8013954: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  47176. 8013958: 77fb strb r3, [r7, #31]
  47177. pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
  47178. 801395a: 6a3b ldr r3, [r7, #32]
  47179. 801395c: 2202 movs r2, #2
  47180. 801395e: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  47181. switch( eAction )
  47182. 8013962: 79fb ldrb r3, [r7, #7]
  47183. 8013964: 2b04 cmp r3, #4
  47184. 8013966: d82e bhi.n 80139c6 <xTaskGenericNotify+0xbe>
  47185. 8013968: a201 add r2, pc, #4 @ (adr r2, 8013970 <xTaskGenericNotify+0x68>)
  47186. 801396a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  47187. 801396e: bf00 nop
  47188. 8013970: 080139eb .word 0x080139eb
  47189. 8013974: 08013985 .word 0x08013985
  47190. 8013978: 08013997 .word 0x08013997
  47191. 801397c: 080139a7 .word 0x080139a7
  47192. 8013980: 080139b1 .word 0x080139b1
  47193. {
  47194. case eSetBits :
  47195. pxTCB->ulNotifiedValue |= ulValue;
  47196. 8013984: 6a3b ldr r3, [r7, #32]
  47197. 8013986: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  47198. 801398a: 68bb ldr r3, [r7, #8]
  47199. 801398c: 431a orrs r2, r3
  47200. 801398e: 6a3b ldr r3, [r7, #32]
  47201. 8013990: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  47202. break;
  47203. 8013994: e02c b.n 80139f0 <xTaskGenericNotify+0xe8>
  47204. case eIncrement :
  47205. ( pxTCB->ulNotifiedValue )++;
  47206. 8013996: 6a3b ldr r3, [r7, #32]
  47207. 8013998: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  47208. 801399c: 1c5a adds r2, r3, #1
  47209. 801399e: 6a3b ldr r3, [r7, #32]
  47210. 80139a0: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  47211. break;
  47212. 80139a4: e024 b.n 80139f0 <xTaskGenericNotify+0xe8>
  47213. case eSetValueWithOverwrite :
  47214. pxTCB->ulNotifiedValue = ulValue;
  47215. 80139a6: 6a3b ldr r3, [r7, #32]
  47216. 80139a8: 68ba ldr r2, [r7, #8]
  47217. 80139aa: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  47218. break;
  47219. 80139ae: e01f b.n 80139f0 <xTaskGenericNotify+0xe8>
  47220. case eSetValueWithoutOverwrite :
  47221. if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
  47222. 80139b0: 7ffb ldrb r3, [r7, #31]
  47223. 80139b2: 2b02 cmp r3, #2
  47224. 80139b4: d004 beq.n 80139c0 <xTaskGenericNotify+0xb8>
  47225. {
  47226. pxTCB->ulNotifiedValue = ulValue;
  47227. 80139b6: 6a3b ldr r3, [r7, #32]
  47228. 80139b8: 68ba ldr r2, [r7, #8]
  47229. 80139ba: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  47230. else
  47231. {
  47232. /* The value could not be written to the task. */
  47233. xReturn = pdFAIL;
  47234. }
  47235. break;
  47236. 80139be: e017 b.n 80139f0 <xTaskGenericNotify+0xe8>
  47237. xReturn = pdFAIL;
  47238. 80139c0: 2300 movs r3, #0
  47239. 80139c2: 627b str r3, [r7, #36] @ 0x24
  47240. break;
  47241. 80139c4: e014 b.n 80139f0 <xTaskGenericNotify+0xe8>
  47242. default:
  47243. /* Should not get here if all enums are handled.
  47244. Artificially force an assert by testing a value the
  47245. compiler can't assume is const. */
  47246. configASSERT( pxTCB->ulNotifiedValue == ~0UL );
  47247. 80139c6: 6a3b ldr r3, [r7, #32]
  47248. 80139c8: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  47249. 80139cc: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  47250. 80139d0: d00d beq.n 80139ee <xTaskGenericNotify+0xe6>
  47251. __asm volatile
  47252. 80139d2: f04f 0350 mov.w r3, #80 @ 0x50
  47253. 80139d6: f383 8811 msr BASEPRI, r3
  47254. 80139da: f3bf 8f6f isb sy
  47255. 80139de: f3bf 8f4f dsb sy
  47256. 80139e2: 617b str r3, [r7, #20]
  47257. }
  47258. 80139e4: bf00 nop
  47259. 80139e6: bf00 nop
  47260. 80139e8: e7fd b.n 80139e6 <xTaskGenericNotify+0xde>
  47261. break;
  47262. 80139ea: bf00 nop
  47263. 80139ec: e000 b.n 80139f0 <xTaskGenericNotify+0xe8>
  47264. break;
  47265. 80139ee: bf00 nop
  47266. traceTASK_NOTIFY();
  47267. /* If the task is in the blocked state specifically to wait for a
  47268. notification then unblock it now. */
  47269. if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
  47270. 80139f0: 7ffb ldrb r3, [r7, #31]
  47271. 80139f2: 2b01 cmp r3, #1
  47272. 80139f4: d13b bne.n 8013a6e <xTaskGenericNotify+0x166>
  47273. {
  47274. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  47275. 80139f6: 6a3b ldr r3, [r7, #32]
  47276. 80139f8: 3304 adds r3, #4
  47277. 80139fa: 4618 mov r0, r3
  47278. 80139fc: f7fd fa02 bl 8010e04 <uxListRemove>
  47279. prvAddTaskToReadyList( pxTCB );
  47280. 8013a00: 6a3b ldr r3, [r7, #32]
  47281. 8013a02: 6ada ldr r2, [r3, #44] @ 0x2c
  47282. 8013a04: 4b1d ldr r3, [pc, #116] @ (8013a7c <xTaskGenericNotify+0x174>)
  47283. 8013a06: 681b ldr r3, [r3, #0]
  47284. 8013a08: 429a cmp r2, r3
  47285. 8013a0a: d903 bls.n 8013a14 <xTaskGenericNotify+0x10c>
  47286. 8013a0c: 6a3b ldr r3, [r7, #32]
  47287. 8013a0e: 6adb ldr r3, [r3, #44] @ 0x2c
  47288. 8013a10: 4a1a ldr r2, [pc, #104] @ (8013a7c <xTaskGenericNotify+0x174>)
  47289. 8013a12: 6013 str r3, [r2, #0]
  47290. 8013a14: 6a3b ldr r3, [r7, #32]
  47291. 8013a16: 6ada ldr r2, [r3, #44] @ 0x2c
  47292. 8013a18: 4613 mov r3, r2
  47293. 8013a1a: 009b lsls r3, r3, #2
  47294. 8013a1c: 4413 add r3, r2
  47295. 8013a1e: 009b lsls r3, r3, #2
  47296. 8013a20: 4a17 ldr r2, [pc, #92] @ (8013a80 <xTaskGenericNotify+0x178>)
  47297. 8013a22: 441a add r2, r3
  47298. 8013a24: 6a3b ldr r3, [r7, #32]
  47299. 8013a26: 3304 adds r3, #4
  47300. 8013a28: 4619 mov r1, r3
  47301. 8013a2a: 4610 mov r0, r2
  47302. 8013a2c: f7fd f98d bl 8010d4a <vListInsertEnd>
  47303. /* The task should not have been on an event list. */
  47304. configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
  47305. 8013a30: 6a3b ldr r3, [r7, #32]
  47306. 8013a32: 6a9b ldr r3, [r3, #40] @ 0x28
  47307. 8013a34: 2b00 cmp r3, #0
  47308. 8013a36: d00b beq.n 8013a50 <xTaskGenericNotify+0x148>
  47309. __asm volatile
  47310. 8013a38: f04f 0350 mov.w r3, #80 @ 0x50
  47311. 8013a3c: f383 8811 msr BASEPRI, r3
  47312. 8013a40: f3bf 8f6f isb sy
  47313. 8013a44: f3bf 8f4f dsb sy
  47314. 8013a48: 613b str r3, [r7, #16]
  47315. }
  47316. 8013a4a: bf00 nop
  47317. 8013a4c: bf00 nop
  47318. 8013a4e: e7fd b.n 8013a4c <xTaskGenericNotify+0x144>
  47319. earliest possible time. */
  47320. prvResetNextTaskUnblockTime();
  47321. }
  47322. #endif
  47323. if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
  47324. 8013a50: 6a3b ldr r3, [r7, #32]
  47325. 8013a52: 6ada ldr r2, [r3, #44] @ 0x2c
  47326. 8013a54: 4b0b ldr r3, [pc, #44] @ (8013a84 <xTaskGenericNotify+0x17c>)
  47327. 8013a56: 681b ldr r3, [r3, #0]
  47328. 8013a58: 6adb ldr r3, [r3, #44] @ 0x2c
  47329. 8013a5a: 429a cmp r2, r3
  47330. 8013a5c: d907 bls.n 8013a6e <xTaskGenericNotify+0x166>
  47331. {
  47332. /* The notified task has a priority above the currently
  47333. executing task so a yield is required. */
  47334. taskYIELD_IF_USING_PREEMPTION();
  47335. 8013a5e: 4b0a ldr r3, [pc, #40] @ (8013a88 <xTaskGenericNotify+0x180>)
  47336. 8013a60: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  47337. 8013a64: 601a str r2, [r3, #0]
  47338. 8013a66: f3bf 8f4f dsb sy
  47339. 8013a6a: f3bf 8f6f isb sy
  47340. else
  47341. {
  47342. mtCOVERAGE_TEST_MARKER();
  47343. }
  47344. }
  47345. taskEXIT_CRITICAL();
  47346. 8013a6e: f000 fe2d bl 80146cc <vPortExitCritical>
  47347. return xReturn;
  47348. 8013a72: 6a7b ldr r3, [r7, #36] @ 0x24
  47349. }
  47350. 8013a74: 4618 mov r0, r3
  47351. 8013a76: 3728 adds r7, #40 @ 0x28
  47352. 8013a78: 46bd mov sp, r7
  47353. 8013a7a: bd80 pop {r7, pc}
  47354. 8013a7c: 240032d0 .word 0x240032d0
  47355. 8013a80: 24002df8 .word 0x24002df8
  47356. 8013a84: 24002df4 .word 0x24002df4
  47357. 8013a88: e000ed04 .word 0xe000ed04
  47358. 08013a8c <xTaskGenericNotifyFromISR>:
  47359. /*-----------------------------------------------------------*/
  47360. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  47361. BaseType_t xTaskGenericNotifyFromISR( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue, BaseType_t *pxHigherPriorityTaskWoken )
  47362. {
  47363. 8013a8c: b580 push {r7, lr}
  47364. 8013a8e: b08e sub sp, #56 @ 0x38
  47365. 8013a90: af00 add r7, sp, #0
  47366. 8013a92: 60f8 str r0, [r7, #12]
  47367. 8013a94: 60b9 str r1, [r7, #8]
  47368. 8013a96: 603b str r3, [r7, #0]
  47369. 8013a98: 4613 mov r3, r2
  47370. 8013a9a: 71fb strb r3, [r7, #7]
  47371. TCB_t * pxTCB;
  47372. uint8_t ucOriginalNotifyState;
  47373. BaseType_t xReturn = pdPASS;
  47374. 8013a9c: 2301 movs r3, #1
  47375. 8013a9e: 637b str r3, [r7, #52] @ 0x34
  47376. UBaseType_t uxSavedInterruptStatus;
  47377. configASSERT( xTaskToNotify );
  47378. 8013aa0: 68fb ldr r3, [r7, #12]
  47379. 8013aa2: 2b00 cmp r3, #0
  47380. 8013aa4: d10b bne.n 8013abe <xTaskGenericNotifyFromISR+0x32>
  47381. __asm volatile
  47382. 8013aa6: f04f 0350 mov.w r3, #80 @ 0x50
  47383. 8013aaa: f383 8811 msr BASEPRI, r3
  47384. 8013aae: f3bf 8f6f isb sy
  47385. 8013ab2: f3bf 8f4f dsb sy
  47386. 8013ab6: 627b str r3, [r7, #36] @ 0x24
  47387. }
  47388. 8013ab8: bf00 nop
  47389. 8013aba: bf00 nop
  47390. 8013abc: e7fd b.n 8013aba <xTaskGenericNotifyFromISR+0x2e>
  47391. below the maximum system call interrupt priority. FreeRTOS maintains a
  47392. separate interrupt safe API to ensure interrupt entry is as fast and as
  47393. simple as possible. More information (albeit Cortex-M specific) is
  47394. provided on the following link:
  47395. http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  47396. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  47397. 8013abe: f000 feb3 bl 8014828 <vPortValidateInterruptPriority>
  47398. pxTCB = xTaskToNotify;
  47399. 8013ac2: 68fb ldr r3, [r7, #12]
  47400. 8013ac4: 633b str r3, [r7, #48] @ 0x30
  47401. __asm volatile
  47402. 8013ac6: f3ef 8211 mrs r2, BASEPRI
  47403. 8013aca: f04f 0350 mov.w r3, #80 @ 0x50
  47404. 8013ace: f383 8811 msr BASEPRI, r3
  47405. 8013ad2: f3bf 8f6f isb sy
  47406. 8013ad6: f3bf 8f4f dsb sy
  47407. 8013ada: 623a str r2, [r7, #32]
  47408. 8013adc: 61fb str r3, [r7, #28]
  47409. return ulOriginalBASEPRI;
  47410. 8013ade: 6a3b ldr r3, [r7, #32]
  47411. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  47412. 8013ae0: 62fb str r3, [r7, #44] @ 0x2c
  47413. {
  47414. if( pulPreviousNotificationValue != NULL )
  47415. 8013ae2: 683b ldr r3, [r7, #0]
  47416. 8013ae4: 2b00 cmp r3, #0
  47417. 8013ae6: d004 beq.n 8013af2 <xTaskGenericNotifyFromISR+0x66>
  47418. {
  47419. *pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
  47420. 8013ae8: 6b3b ldr r3, [r7, #48] @ 0x30
  47421. 8013aea: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  47422. 8013aee: 683b ldr r3, [r7, #0]
  47423. 8013af0: 601a str r2, [r3, #0]
  47424. }
  47425. ucOriginalNotifyState = pxTCB->ucNotifyState;
  47426. 8013af2: 6b3b ldr r3, [r7, #48] @ 0x30
  47427. 8013af4: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  47428. 8013af8: f887 302b strb.w r3, [r7, #43] @ 0x2b
  47429. pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
  47430. 8013afc: 6b3b ldr r3, [r7, #48] @ 0x30
  47431. 8013afe: 2202 movs r2, #2
  47432. 8013b00: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  47433. switch( eAction )
  47434. 8013b04: 79fb ldrb r3, [r7, #7]
  47435. 8013b06: 2b04 cmp r3, #4
  47436. 8013b08: d82e bhi.n 8013b68 <xTaskGenericNotifyFromISR+0xdc>
  47437. 8013b0a: a201 add r2, pc, #4 @ (adr r2, 8013b10 <xTaskGenericNotifyFromISR+0x84>)
  47438. 8013b0c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  47439. 8013b10: 08013b8d .word 0x08013b8d
  47440. 8013b14: 08013b25 .word 0x08013b25
  47441. 8013b18: 08013b37 .word 0x08013b37
  47442. 8013b1c: 08013b47 .word 0x08013b47
  47443. 8013b20: 08013b51 .word 0x08013b51
  47444. {
  47445. case eSetBits :
  47446. pxTCB->ulNotifiedValue |= ulValue;
  47447. 8013b24: 6b3b ldr r3, [r7, #48] @ 0x30
  47448. 8013b26: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  47449. 8013b2a: 68bb ldr r3, [r7, #8]
  47450. 8013b2c: 431a orrs r2, r3
  47451. 8013b2e: 6b3b ldr r3, [r7, #48] @ 0x30
  47452. 8013b30: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  47453. break;
  47454. 8013b34: e02d b.n 8013b92 <xTaskGenericNotifyFromISR+0x106>
  47455. case eIncrement :
  47456. ( pxTCB->ulNotifiedValue )++;
  47457. 8013b36: 6b3b ldr r3, [r7, #48] @ 0x30
  47458. 8013b38: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  47459. 8013b3c: 1c5a adds r2, r3, #1
  47460. 8013b3e: 6b3b ldr r3, [r7, #48] @ 0x30
  47461. 8013b40: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  47462. break;
  47463. 8013b44: e025 b.n 8013b92 <xTaskGenericNotifyFromISR+0x106>
  47464. case eSetValueWithOverwrite :
  47465. pxTCB->ulNotifiedValue = ulValue;
  47466. 8013b46: 6b3b ldr r3, [r7, #48] @ 0x30
  47467. 8013b48: 68ba ldr r2, [r7, #8]
  47468. 8013b4a: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  47469. break;
  47470. 8013b4e: e020 b.n 8013b92 <xTaskGenericNotifyFromISR+0x106>
  47471. case eSetValueWithoutOverwrite :
  47472. if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
  47473. 8013b50: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  47474. 8013b54: 2b02 cmp r3, #2
  47475. 8013b56: d004 beq.n 8013b62 <xTaskGenericNotifyFromISR+0xd6>
  47476. {
  47477. pxTCB->ulNotifiedValue = ulValue;
  47478. 8013b58: 6b3b ldr r3, [r7, #48] @ 0x30
  47479. 8013b5a: 68ba ldr r2, [r7, #8]
  47480. 8013b5c: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  47481. else
  47482. {
  47483. /* The value could not be written to the task. */
  47484. xReturn = pdFAIL;
  47485. }
  47486. break;
  47487. 8013b60: e017 b.n 8013b92 <xTaskGenericNotifyFromISR+0x106>
  47488. xReturn = pdFAIL;
  47489. 8013b62: 2300 movs r3, #0
  47490. 8013b64: 637b str r3, [r7, #52] @ 0x34
  47491. break;
  47492. 8013b66: e014 b.n 8013b92 <xTaskGenericNotifyFromISR+0x106>
  47493. default:
  47494. /* Should not get here if all enums are handled.
  47495. Artificially force an assert by testing a value the
  47496. compiler can't assume is const. */
  47497. configASSERT( pxTCB->ulNotifiedValue == ~0UL );
  47498. 8013b68: 6b3b ldr r3, [r7, #48] @ 0x30
  47499. 8013b6a: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  47500. 8013b6e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  47501. 8013b72: d00d beq.n 8013b90 <xTaskGenericNotifyFromISR+0x104>
  47502. __asm volatile
  47503. 8013b74: f04f 0350 mov.w r3, #80 @ 0x50
  47504. 8013b78: f383 8811 msr BASEPRI, r3
  47505. 8013b7c: f3bf 8f6f isb sy
  47506. 8013b80: f3bf 8f4f dsb sy
  47507. 8013b84: 61bb str r3, [r7, #24]
  47508. }
  47509. 8013b86: bf00 nop
  47510. 8013b88: bf00 nop
  47511. 8013b8a: e7fd b.n 8013b88 <xTaskGenericNotifyFromISR+0xfc>
  47512. break;
  47513. 8013b8c: bf00 nop
  47514. 8013b8e: e000 b.n 8013b92 <xTaskGenericNotifyFromISR+0x106>
  47515. break;
  47516. 8013b90: bf00 nop
  47517. traceTASK_NOTIFY_FROM_ISR();
  47518. /* If the task is in the blocked state specifically to wait for a
  47519. notification then unblock it now. */
  47520. if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
  47521. 8013b92: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  47522. 8013b96: 2b01 cmp r3, #1
  47523. 8013b98: d147 bne.n 8013c2a <xTaskGenericNotifyFromISR+0x19e>
  47524. {
  47525. /* The task should not have been on an event list. */
  47526. configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
  47527. 8013b9a: 6b3b ldr r3, [r7, #48] @ 0x30
  47528. 8013b9c: 6a9b ldr r3, [r3, #40] @ 0x28
  47529. 8013b9e: 2b00 cmp r3, #0
  47530. 8013ba0: d00b beq.n 8013bba <xTaskGenericNotifyFromISR+0x12e>
  47531. __asm volatile
  47532. 8013ba2: f04f 0350 mov.w r3, #80 @ 0x50
  47533. 8013ba6: f383 8811 msr BASEPRI, r3
  47534. 8013baa: f3bf 8f6f isb sy
  47535. 8013bae: f3bf 8f4f dsb sy
  47536. 8013bb2: 617b str r3, [r7, #20]
  47537. }
  47538. 8013bb4: bf00 nop
  47539. 8013bb6: bf00 nop
  47540. 8013bb8: e7fd b.n 8013bb6 <xTaskGenericNotifyFromISR+0x12a>
  47541. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  47542. 8013bba: 4b21 ldr r3, [pc, #132] @ (8013c40 <xTaskGenericNotifyFromISR+0x1b4>)
  47543. 8013bbc: 681b ldr r3, [r3, #0]
  47544. 8013bbe: 2b00 cmp r3, #0
  47545. 8013bc0: d11d bne.n 8013bfe <xTaskGenericNotifyFromISR+0x172>
  47546. {
  47547. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  47548. 8013bc2: 6b3b ldr r3, [r7, #48] @ 0x30
  47549. 8013bc4: 3304 adds r3, #4
  47550. 8013bc6: 4618 mov r0, r3
  47551. 8013bc8: f7fd f91c bl 8010e04 <uxListRemove>
  47552. prvAddTaskToReadyList( pxTCB );
  47553. 8013bcc: 6b3b ldr r3, [r7, #48] @ 0x30
  47554. 8013bce: 6ada ldr r2, [r3, #44] @ 0x2c
  47555. 8013bd0: 4b1c ldr r3, [pc, #112] @ (8013c44 <xTaskGenericNotifyFromISR+0x1b8>)
  47556. 8013bd2: 681b ldr r3, [r3, #0]
  47557. 8013bd4: 429a cmp r2, r3
  47558. 8013bd6: d903 bls.n 8013be0 <xTaskGenericNotifyFromISR+0x154>
  47559. 8013bd8: 6b3b ldr r3, [r7, #48] @ 0x30
  47560. 8013bda: 6adb ldr r3, [r3, #44] @ 0x2c
  47561. 8013bdc: 4a19 ldr r2, [pc, #100] @ (8013c44 <xTaskGenericNotifyFromISR+0x1b8>)
  47562. 8013bde: 6013 str r3, [r2, #0]
  47563. 8013be0: 6b3b ldr r3, [r7, #48] @ 0x30
  47564. 8013be2: 6ada ldr r2, [r3, #44] @ 0x2c
  47565. 8013be4: 4613 mov r3, r2
  47566. 8013be6: 009b lsls r3, r3, #2
  47567. 8013be8: 4413 add r3, r2
  47568. 8013bea: 009b lsls r3, r3, #2
  47569. 8013bec: 4a16 ldr r2, [pc, #88] @ (8013c48 <xTaskGenericNotifyFromISR+0x1bc>)
  47570. 8013bee: 441a add r2, r3
  47571. 8013bf0: 6b3b ldr r3, [r7, #48] @ 0x30
  47572. 8013bf2: 3304 adds r3, #4
  47573. 8013bf4: 4619 mov r1, r3
  47574. 8013bf6: 4610 mov r0, r2
  47575. 8013bf8: f7fd f8a7 bl 8010d4a <vListInsertEnd>
  47576. 8013bfc: e005 b.n 8013c0a <xTaskGenericNotifyFromISR+0x17e>
  47577. }
  47578. else
  47579. {
  47580. /* The delayed and ready lists cannot be accessed, so hold
  47581. this task pending until the scheduler is resumed. */
  47582. vListInsertEnd( &( xPendingReadyList ), &( pxTCB->xEventListItem ) );
  47583. 8013bfe: 6b3b ldr r3, [r7, #48] @ 0x30
  47584. 8013c00: 3318 adds r3, #24
  47585. 8013c02: 4619 mov r1, r3
  47586. 8013c04: 4811 ldr r0, [pc, #68] @ (8013c4c <xTaskGenericNotifyFromISR+0x1c0>)
  47587. 8013c06: f7fd f8a0 bl 8010d4a <vListInsertEnd>
  47588. }
  47589. if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
  47590. 8013c0a: 6b3b ldr r3, [r7, #48] @ 0x30
  47591. 8013c0c: 6ada ldr r2, [r3, #44] @ 0x2c
  47592. 8013c0e: 4b10 ldr r3, [pc, #64] @ (8013c50 <xTaskGenericNotifyFromISR+0x1c4>)
  47593. 8013c10: 681b ldr r3, [r3, #0]
  47594. 8013c12: 6adb ldr r3, [r3, #44] @ 0x2c
  47595. 8013c14: 429a cmp r2, r3
  47596. 8013c16: d908 bls.n 8013c2a <xTaskGenericNotifyFromISR+0x19e>
  47597. {
  47598. /* The notified task has a priority above the currently
  47599. executing task so a yield is required. */
  47600. if( pxHigherPriorityTaskWoken != NULL )
  47601. 8013c18: 6c3b ldr r3, [r7, #64] @ 0x40
  47602. 8013c1a: 2b00 cmp r3, #0
  47603. 8013c1c: d002 beq.n 8013c24 <xTaskGenericNotifyFromISR+0x198>
  47604. {
  47605. *pxHigherPriorityTaskWoken = pdTRUE;
  47606. 8013c1e: 6c3b ldr r3, [r7, #64] @ 0x40
  47607. 8013c20: 2201 movs r2, #1
  47608. 8013c22: 601a str r2, [r3, #0]
  47609. }
  47610. /* Mark that a yield is pending in case the user is not
  47611. using the "xHigherPriorityTaskWoken" parameter to an ISR
  47612. safe FreeRTOS function. */
  47613. xYieldPending = pdTRUE;
  47614. 8013c24: 4b0b ldr r3, [pc, #44] @ (8013c54 <xTaskGenericNotifyFromISR+0x1c8>)
  47615. 8013c26: 2201 movs r2, #1
  47616. 8013c28: 601a str r2, [r3, #0]
  47617. 8013c2a: 6afb ldr r3, [r7, #44] @ 0x2c
  47618. 8013c2c: 613b str r3, [r7, #16]
  47619. __asm volatile
  47620. 8013c2e: 693b ldr r3, [r7, #16]
  47621. 8013c30: f383 8811 msr BASEPRI, r3
  47622. }
  47623. 8013c34: bf00 nop
  47624. }
  47625. }
  47626. }
  47627. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  47628. return xReturn;
  47629. 8013c36: 6b7b ldr r3, [r7, #52] @ 0x34
  47630. }
  47631. 8013c38: 4618 mov r0, r3
  47632. 8013c3a: 3738 adds r7, #56 @ 0x38
  47633. 8013c3c: 46bd mov sp, r7
  47634. 8013c3e: bd80 pop {r7, pc}
  47635. 8013c40: 240032f0 .word 0x240032f0
  47636. 8013c44: 240032d0 .word 0x240032d0
  47637. 8013c48: 24002df8 .word 0x24002df8
  47638. 8013c4c: 24003288 .word 0x24003288
  47639. 8013c50: 24002df4 .word 0x24002df4
  47640. 8013c54: 240032dc .word 0x240032dc
  47641. 08013c58 <xTaskNotifyStateClear>:
  47642. /*-----------------------------------------------------------*/
  47643. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  47644. BaseType_t xTaskNotifyStateClear( TaskHandle_t xTask )
  47645. {
  47646. 8013c58: b580 push {r7, lr}
  47647. 8013c5a: b084 sub sp, #16
  47648. 8013c5c: af00 add r7, sp, #0
  47649. 8013c5e: 6078 str r0, [r7, #4]
  47650. TCB_t *pxTCB;
  47651. BaseType_t xReturn;
  47652. /* If null is passed in here then it is the calling task that is having
  47653. its notification state cleared. */
  47654. pxTCB = prvGetTCBFromHandle( xTask );
  47655. 8013c60: 687b ldr r3, [r7, #4]
  47656. 8013c62: 2b00 cmp r3, #0
  47657. 8013c64: d102 bne.n 8013c6c <xTaskNotifyStateClear+0x14>
  47658. 8013c66: 4b0e ldr r3, [pc, #56] @ (8013ca0 <xTaskNotifyStateClear+0x48>)
  47659. 8013c68: 681b ldr r3, [r3, #0]
  47660. 8013c6a: e000 b.n 8013c6e <xTaskNotifyStateClear+0x16>
  47661. 8013c6c: 687b ldr r3, [r7, #4]
  47662. 8013c6e: 60bb str r3, [r7, #8]
  47663. taskENTER_CRITICAL();
  47664. 8013c70: f000 fcfa bl 8014668 <vPortEnterCritical>
  47665. {
  47666. if( pxTCB->ucNotifyState == taskNOTIFICATION_RECEIVED )
  47667. 8013c74: 68bb ldr r3, [r7, #8]
  47668. 8013c76: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  47669. 8013c7a: b2db uxtb r3, r3
  47670. 8013c7c: 2b02 cmp r3, #2
  47671. 8013c7e: d106 bne.n 8013c8e <xTaskNotifyStateClear+0x36>
  47672. {
  47673. pxTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  47674. 8013c80: 68bb ldr r3, [r7, #8]
  47675. 8013c82: 2200 movs r2, #0
  47676. 8013c84: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  47677. xReturn = pdPASS;
  47678. 8013c88: 2301 movs r3, #1
  47679. 8013c8a: 60fb str r3, [r7, #12]
  47680. 8013c8c: e001 b.n 8013c92 <xTaskNotifyStateClear+0x3a>
  47681. }
  47682. else
  47683. {
  47684. xReturn = pdFAIL;
  47685. 8013c8e: 2300 movs r3, #0
  47686. 8013c90: 60fb str r3, [r7, #12]
  47687. }
  47688. }
  47689. taskEXIT_CRITICAL();
  47690. 8013c92: f000 fd1b bl 80146cc <vPortExitCritical>
  47691. return xReturn;
  47692. 8013c96: 68fb ldr r3, [r7, #12]
  47693. }
  47694. 8013c98: 4618 mov r0, r3
  47695. 8013c9a: 3710 adds r7, #16
  47696. 8013c9c: 46bd mov sp, r7
  47697. 8013c9e: bd80 pop {r7, pc}
  47698. 8013ca0: 24002df4 .word 0x24002df4
  47699. 08013ca4 <prvAddCurrentTaskToDelayedList>:
  47700. #endif
  47701. /*-----------------------------------------------------------*/
  47702. static void prvAddCurrentTaskToDelayedList( TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely )
  47703. {
  47704. 8013ca4: b580 push {r7, lr}
  47705. 8013ca6: b084 sub sp, #16
  47706. 8013ca8: af00 add r7, sp, #0
  47707. 8013caa: 6078 str r0, [r7, #4]
  47708. 8013cac: 6039 str r1, [r7, #0]
  47709. TickType_t xTimeToWake;
  47710. const TickType_t xConstTickCount = xTickCount;
  47711. 8013cae: 4b21 ldr r3, [pc, #132] @ (8013d34 <prvAddCurrentTaskToDelayedList+0x90>)
  47712. 8013cb0: 681b ldr r3, [r3, #0]
  47713. 8013cb2: 60fb str r3, [r7, #12]
  47714. }
  47715. #endif
  47716. /* Remove the task from the ready list before adding it to the blocked list
  47717. as the same list item is used for both lists. */
  47718. if( uxListRemove( &( pxCurrentTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  47719. 8013cb4: 4b20 ldr r3, [pc, #128] @ (8013d38 <prvAddCurrentTaskToDelayedList+0x94>)
  47720. 8013cb6: 681b ldr r3, [r3, #0]
  47721. 8013cb8: 3304 adds r3, #4
  47722. 8013cba: 4618 mov r0, r3
  47723. 8013cbc: f7fd f8a2 bl 8010e04 <uxListRemove>
  47724. mtCOVERAGE_TEST_MARKER();
  47725. }
  47726. #if ( INCLUDE_vTaskSuspend == 1 )
  47727. {
  47728. if( ( xTicksToWait == portMAX_DELAY ) && ( xCanBlockIndefinitely != pdFALSE ) )
  47729. 8013cc0: 687b ldr r3, [r7, #4]
  47730. 8013cc2: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  47731. 8013cc6: d10a bne.n 8013cde <prvAddCurrentTaskToDelayedList+0x3a>
  47732. 8013cc8: 683b ldr r3, [r7, #0]
  47733. 8013cca: 2b00 cmp r3, #0
  47734. 8013ccc: d007 beq.n 8013cde <prvAddCurrentTaskToDelayedList+0x3a>
  47735. {
  47736. /* Add the task to the suspended task list instead of a delayed task
  47737. list to ensure it is not woken by a timing event. It will block
  47738. indefinitely. */
  47739. vListInsertEnd( &xSuspendedTaskList, &( pxCurrentTCB->xStateListItem ) );
  47740. 8013cce: 4b1a ldr r3, [pc, #104] @ (8013d38 <prvAddCurrentTaskToDelayedList+0x94>)
  47741. 8013cd0: 681b ldr r3, [r3, #0]
  47742. 8013cd2: 3304 adds r3, #4
  47743. 8013cd4: 4619 mov r1, r3
  47744. 8013cd6: 4819 ldr r0, [pc, #100] @ (8013d3c <prvAddCurrentTaskToDelayedList+0x98>)
  47745. 8013cd8: f7fd f837 bl 8010d4a <vListInsertEnd>
  47746. /* Avoid compiler warning when INCLUDE_vTaskSuspend is not 1. */
  47747. ( void ) xCanBlockIndefinitely;
  47748. }
  47749. #endif /* INCLUDE_vTaskSuspend */
  47750. }
  47751. 8013cdc: e026 b.n 8013d2c <prvAddCurrentTaskToDelayedList+0x88>
  47752. xTimeToWake = xConstTickCount + xTicksToWait;
  47753. 8013cde: 68fa ldr r2, [r7, #12]
  47754. 8013ce0: 687b ldr r3, [r7, #4]
  47755. 8013ce2: 4413 add r3, r2
  47756. 8013ce4: 60bb str r3, [r7, #8]
  47757. listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xStateListItem ), xTimeToWake );
  47758. 8013ce6: 4b14 ldr r3, [pc, #80] @ (8013d38 <prvAddCurrentTaskToDelayedList+0x94>)
  47759. 8013ce8: 681b ldr r3, [r3, #0]
  47760. 8013cea: 68ba ldr r2, [r7, #8]
  47761. 8013cec: 605a str r2, [r3, #4]
  47762. if( xTimeToWake < xConstTickCount )
  47763. 8013cee: 68ba ldr r2, [r7, #8]
  47764. 8013cf0: 68fb ldr r3, [r7, #12]
  47765. 8013cf2: 429a cmp r2, r3
  47766. 8013cf4: d209 bcs.n 8013d0a <prvAddCurrentTaskToDelayedList+0x66>
  47767. vListInsert( pxOverflowDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
  47768. 8013cf6: 4b12 ldr r3, [pc, #72] @ (8013d40 <prvAddCurrentTaskToDelayedList+0x9c>)
  47769. 8013cf8: 681a ldr r2, [r3, #0]
  47770. 8013cfa: 4b0f ldr r3, [pc, #60] @ (8013d38 <prvAddCurrentTaskToDelayedList+0x94>)
  47771. 8013cfc: 681b ldr r3, [r3, #0]
  47772. 8013cfe: 3304 adds r3, #4
  47773. 8013d00: 4619 mov r1, r3
  47774. 8013d02: 4610 mov r0, r2
  47775. 8013d04: f7fd f845 bl 8010d92 <vListInsert>
  47776. }
  47777. 8013d08: e010 b.n 8013d2c <prvAddCurrentTaskToDelayedList+0x88>
  47778. vListInsert( pxDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
  47779. 8013d0a: 4b0e ldr r3, [pc, #56] @ (8013d44 <prvAddCurrentTaskToDelayedList+0xa0>)
  47780. 8013d0c: 681a ldr r2, [r3, #0]
  47781. 8013d0e: 4b0a ldr r3, [pc, #40] @ (8013d38 <prvAddCurrentTaskToDelayedList+0x94>)
  47782. 8013d10: 681b ldr r3, [r3, #0]
  47783. 8013d12: 3304 adds r3, #4
  47784. 8013d14: 4619 mov r1, r3
  47785. 8013d16: 4610 mov r0, r2
  47786. 8013d18: f7fd f83b bl 8010d92 <vListInsert>
  47787. if( xTimeToWake < xNextTaskUnblockTime )
  47788. 8013d1c: 4b0a ldr r3, [pc, #40] @ (8013d48 <prvAddCurrentTaskToDelayedList+0xa4>)
  47789. 8013d1e: 681b ldr r3, [r3, #0]
  47790. 8013d20: 68ba ldr r2, [r7, #8]
  47791. 8013d22: 429a cmp r2, r3
  47792. 8013d24: d202 bcs.n 8013d2c <prvAddCurrentTaskToDelayedList+0x88>
  47793. xNextTaskUnblockTime = xTimeToWake;
  47794. 8013d26: 4a08 ldr r2, [pc, #32] @ (8013d48 <prvAddCurrentTaskToDelayedList+0xa4>)
  47795. 8013d28: 68bb ldr r3, [r7, #8]
  47796. 8013d2a: 6013 str r3, [r2, #0]
  47797. }
  47798. 8013d2c: bf00 nop
  47799. 8013d2e: 3710 adds r7, #16
  47800. 8013d30: 46bd mov sp, r7
  47801. 8013d32: bd80 pop {r7, pc}
  47802. 8013d34: 240032cc .word 0x240032cc
  47803. 8013d38: 24002df4 .word 0x24002df4
  47804. 8013d3c: 240032b4 .word 0x240032b4
  47805. 8013d40: 24003284 .word 0x24003284
  47806. 8013d44: 24003280 .word 0x24003280
  47807. 8013d48: 240032e8 .word 0x240032e8
  47808. 08013d4c <xTimerCreateTimerTask>:
  47809. TimerCallbackFunction_t pxCallbackFunction,
  47810. Timer_t *pxNewTimer ) PRIVILEGED_FUNCTION;
  47811. /*-----------------------------------------------------------*/
  47812. BaseType_t xTimerCreateTimerTask( void )
  47813. {
  47814. 8013d4c: b580 push {r7, lr}
  47815. 8013d4e: b08a sub sp, #40 @ 0x28
  47816. 8013d50: af04 add r7, sp, #16
  47817. BaseType_t xReturn = pdFAIL;
  47818. 8013d52: 2300 movs r3, #0
  47819. 8013d54: 617b str r3, [r7, #20]
  47820. /* This function is called when the scheduler is started if
  47821. configUSE_TIMERS is set to 1. Check that the infrastructure used by the
  47822. timer service task has been created/initialised. If timers have already
  47823. been created then the initialisation will already have been performed. */
  47824. prvCheckForValidListAndQueue();
  47825. 8013d56: f000 fb13 bl 8014380 <prvCheckForValidListAndQueue>
  47826. if( xTimerQueue != NULL )
  47827. 8013d5a: 4b1d ldr r3, [pc, #116] @ (8013dd0 <xTimerCreateTimerTask+0x84>)
  47828. 8013d5c: 681b ldr r3, [r3, #0]
  47829. 8013d5e: 2b00 cmp r3, #0
  47830. 8013d60: d021 beq.n 8013da6 <xTimerCreateTimerTask+0x5a>
  47831. {
  47832. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  47833. {
  47834. StaticTask_t *pxTimerTaskTCBBuffer = NULL;
  47835. 8013d62: 2300 movs r3, #0
  47836. 8013d64: 60fb str r3, [r7, #12]
  47837. StackType_t *pxTimerTaskStackBuffer = NULL;
  47838. 8013d66: 2300 movs r3, #0
  47839. 8013d68: 60bb str r3, [r7, #8]
  47840. uint32_t ulTimerTaskStackSize;
  47841. vApplicationGetTimerTaskMemory( &pxTimerTaskTCBBuffer, &pxTimerTaskStackBuffer, &ulTimerTaskStackSize );
  47842. 8013d6a: 1d3a adds r2, r7, #4
  47843. 8013d6c: f107 0108 add.w r1, r7, #8
  47844. 8013d70: f107 030c add.w r3, r7, #12
  47845. 8013d74: 4618 mov r0, r3
  47846. 8013d76: f7fc ffa1 bl 8010cbc <vApplicationGetTimerTaskMemory>
  47847. xTimerTaskHandle = xTaskCreateStatic( prvTimerTask,
  47848. 8013d7a: 6879 ldr r1, [r7, #4]
  47849. 8013d7c: 68bb ldr r3, [r7, #8]
  47850. 8013d7e: 68fa ldr r2, [r7, #12]
  47851. 8013d80: 9202 str r2, [sp, #8]
  47852. 8013d82: 9301 str r3, [sp, #4]
  47853. 8013d84: 2302 movs r3, #2
  47854. 8013d86: 9300 str r3, [sp, #0]
  47855. 8013d88: 2300 movs r3, #0
  47856. 8013d8a: 460a mov r2, r1
  47857. 8013d8c: 4911 ldr r1, [pc, #68] @ (8013dd4 <xTimerCreateTimerTask+0x88>)
  47858. 8013d8e: 4812 ldr r0, [pc, #72] @ (8013dd8 <xTimerCreateTimerTask+0x8c>)
  47859. 8013d90: f7fe fd1c bl 80127cc <xTaskCreateStatic>
  47860. 8013d94: 4603 mov r3, r0
  47861. 8013d96: 4a11 ldr r2, [pc, #68] @ (8013ddc <xTimerCreateTimerTask+0x90>)
  47862. 8013d98: 6013 str r3, [r2, #0]
  47863. NULL,
  47864. ( ( UBaseType_t ) configTIMER_TASK_PRIORITY ) | portPRIVILEGE_BIT,
  47865. pxTimerTaskStackBuffer,
  47866. pxTimerTaskTCBBuffer );
  47867. if( xTimerTaskHandle != NULL )
  47868. 8013d9a: 4b10 ldr r3, [pc, #64] @ (8013ddc <xTimerCreateTimerTask+0x90>)
  47869. 8013d9c: 681b ldr r3, [r3, #0]
  47870. 8013d9e: 2b00 cmp r3, #0
  47871. 8013da0: d001 beq.n 8013da6 <xTimerCreateTimerTask+0x5a>
  47872. {
  47873. xReturn = pdPASS;
  47874. 8013da2: 2301 movs r3, #1
  47875. 8013da4: 617b str r3, [r7, #20]
  47876. else
  47877. {
  47878. mtCOVERAGE_TEST_MARKER();
  47879. }
  47880. configASSERT( xReturn );
  47881. 8013da6: 697b ldr r3, [r7, #20]
  47882. 8013da8: 2b00 cmp r3, #0
  47883. 8013daa: d10b bne.n 8013dc4 <xTimerCreateTimerTask+0x78>
  47884. __asm volatile
  47885. 8013dac: f04f 0350 mov.w r3, #80 @ 0x50
  47886. 8013db0: f383 8811 msr BASEPRI, r3
  47887. 8013db4: f3bf 8f6f isb sy
  47888. 8013db8: f3bf 8f4f dsb sy
  47889. 8013dbc: 613b str r3, [r7, #16]
  47890. }
  47891. 8013dbe: bf00 nop
  47892. 8013dc0: bf00 nop
  47893. 8013dc2: e7fd b.n 8013dc0 <xTimerCreateTimerTask+0x74>
  47894. return xReturn;
  47895. 8013dc4: 697b ldr r3, [r7, #20]
  47896. }
  47897. 8013dc6: 4618 mov r0, r3
  47898. 8013dc8: 3718 adds r7, #24
  47899. 8013dca: 46bd mov sp, r7
  47900. 8013dcc: bd80 pop {r7, pc}
  47901. 8013dce: bf00 nop
  47902. 8013dd0: 24003324 .word 0x24003324
  47903. 8013dd4: 0802c708 .word 0x0802c708
  47904. 8013dd8: 08013f19 .word 0x08013f19
  47905. 8013ddc: 24003328 .word 0x24003328
  47906. 08013de0 <xTimerGenericCommand>:
  47907. }
  47908. }
  47909. /*-----------------------------------------------------------*/
  47910. BaseType_t xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait )
  47911. {
  47912. 8013de0: b580 push {r7, lr}
  47913. 8013de2: b08a sub sp, #40 @ 0x28
  47914. 8013de4: af00 add r7, sp, #0
  47915. 8013de6: 60f8 str r0, [r7, #12]
  47916. 8013de8: 60b9 str r1, [r7, #8]
  47917. 8013dea: 607a str r2, [r7, #4]
  47918. 8013dec: 603b str r3, [r7, #0]
  47919. BaseType_t xReturn = pdFAIL;
  47920. 8013dee: 2300 movs r3, #0
  47921. 8013df0: 627b str r3, [r7, #36] @ 0x24
  47922. DaemonTaskMessage_t xMessage;
  47923. configASSERT( xTimer );
  47924. 8013df2: 68fb ldr r3, [r7, #12]
  47925. 8013df4: 2b00 cmp r3, #0
  47926. 8013df6: d10b bne.n 8013e10 <xTimerGenericCommand+0x30>
  47927. __asm volatile
  47928. 8013df8: f04f 0350 mov.w r3, #80 @ 0x50
  47929. 8013dfc: f383 8811 msr BASEPRI, r3
  47930. 8013e00: f3bf 8f6f isb sy
  47931. 8013e04: f3bf 8f4f dsb sy
  47932. 8013e08: 623b str r3, [r7, #32]
  47933. }
  47934. 8013e0a: bf00 nop
  47935. 8013e0c: bf00 nop
  47936. 8013e0e: e7fd b.n 8013e0c <xTimerGenericCommand+0x2c>
  47937. /* Send a message to the timer service task to perform a particular action
  47938. on a particular timer definition. */
  47939. if( xTimerQueue != NULL )
  47940. 8013e10: 4b19 ldr r3, [pc, #100] @ (8013e78 <xTimerGenericCommand+0x98>)
  47941. 8013e12: 681b ldr r3, [r3, #0]
  47942. 8013e14: 2b00 cmp r3, #0
  47943. 8013e16: d02a beq.n 8013e6e <xTimerGenericCommand+0x8e>
  47944. {
  47945. /* Send a command to the timer service task to start the xTimer timer. */
  47946. xMessage.xMessageID = xCommandID;
  47947. 8013e18: 68bb ldr r3, [r7, #8]
  47948. 8013e1a: 613b str r3, [r7, #16]
  47949. xMessage.u.xTimerParameters.xMessageValue = xOptionalValue;
  47950. 8013e1c: 687b ldr r3, [r7, #4]
  47951. 8013e1e: 617b str r3, [r7, #20]
  47952. xMessage.u.xTimerParameters.pxTimer = xTimer;
  47953. 8013e20: 68fb ldr r3, [r7, #12]
  47954. 8013e22: 61bb str r3, [r7, #24]
  47955. if( xCommandID < tmrFIRST_FROM_ISR_COMMAND )
  47956. 8013e24: 68bb ldr r3, [r7, #8]
  47957. 8013e26: 2b05 cmp r3, #5
  47958. 8013e28: dc18 bgt.n 8013e5c <xTimerGenericCommand+0x7c>
  47959. {
  47960. if( xTaskGetSchedulerState() == taskSCHEDULER_RUNNING )
  47961. 8013e2a: f7ff fb7f bl 801352c <xTaskGetSchedulerState>
  47962. 8013e2e: 4603 mov r3, r0
  47963. 8013e30: 2b02 cmp r3, #2
  47964. 8013e32: d109 bne.n 8013e48 <xTimerGenericCommand+0x68>
  47965. {
  47966. xReturn = xQueueSendToBack( xTimerQueue, &xMessage, xTicksToWait );
  47967. 8013e34: 4b10 ldr r3, [pc, #64] @ (8013e78 <xTimerGenericCommand+0x98>)
  47968. 8013e36: 6818 ldr r0, [r3, #0]
  47969. 8013e38: f107 0110 add.w r1, r7, #16
  47970. 8013e3c: 2300 movs r3, #0
  47971. 8013e3e: 6b3a ldr r2, [r7, #48] @ 0x30
  47972. 8013e40: f7fd fa76 bl 8011330 <xQueueGenericSend>
  47973. 8013e44: 6278 str r0, [r7, #36] @ 0x24
  47974. 8013e46: e012 b.n 8013e6e <xTimerGenericCommand+0x8e>
  47975. }
  47976. else
  47977. {
  47978. xReturn = xQueueSendToBack( xTimerQueue, &xMessage, tmrNO_DELAY );
  47979. 8013e48: 4b0b ldr r3, [pc, #44] @ (8013e78 <xTimerGenericCommand+0x98>)
  47980. 8013e4a: 6818 ldr r0, [r3, #0]
  47981. 8013e4c: f107 0110 add.w r1, r7, #16
  47982. 8013e50: 2300 movs r3, #0
  47983. 8013e52: 2200 movs r2, #0
  47984. 8013e54: f7fd fa6c bl 8011330 <xQueueGenericSend>
  47985. 8013e58: 6278 str r0, [r7, #36] @ 0x24
  47986. 8013e5a: e008 b.n 8013e6e <xTimerGenericCommand+0x8e>
  47987. }
  47988. }
  47989. else
  47990. {
  47991. xReturn = xQueueSendToBackFromISR( xTimerQueue, &xMessage, pxHigherPriorityTaskWoken );
  47992. 8013e5c: 4b06 ldr r3, [pc, #24] @ (8013e78 <xTimerGenericCommand+0x98>)
  47993. 8013e5e: 6818 ldr r0, [r3, #0]
  47994. 8013e60: f107 0110 add.w r1, r7, #16
  47995. 8013e64: 2300 movs r3, #0
  47996. 8013e66: 683a ldr r2, [r7, #0]
  47997. 8013e68: f7fd fb64 bl 8011534 <xQueueGenericSendFromISR>
  47998. 8013e6c: 6278 str r0, [r7, #36] @ 0x24
  47999. else
  48000. {
  48001. mtCOVERAGE_TEST_MARKER();
  48002. }
  48003. return xReturn;
  48004. 8013e6e: 6a7b ldr r3, [r7, #36] @ 0x24
  48005. }
  48006. 8013e70: 4618 mov r0, r3
  48007. 8013e72: 3728 adds r7, #40 @ 0x28
  48008. 8013e74: 46bd mov sp, r7
  48009. 8013e76: bd80 pop {r7, pc}
  48010. 8013e78: 24003324 .word 0x24003324
  48011. 08013e7c <prvProcessExpiredTimer>:
  48012. return pxTimer->pcTimerName;
  48013. }
  48014. /*-----------------------------------------------------------*/
  48015. static void prvProcessExpiredTimer( const TickType_t xNextExpireTime, const TickType_t xTimeNow )
  48016. {
  48017. 8013e7c: b580 push {r7, lr}
  48018. 8013e7e: b088 sub sp, #32
  48019. 8013e80: af02 add r7, sp, #8
  48020. 8013e82: 6078 str r0, [r7, #4]
  48021. 8013e84: 6039 str r1, [r7, #0]
  48022. BaseType_t xResult;
  48023. Timer_t * const pxTimer = ( Timer_t * ) listGET_OWNER_OF_HEAD_ENTRY( pxCurrentTimerList ); /*lint !e9087 !e9079 void * is used as this macro is used with tasks and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  48024. 8013e86: 4b23 ldr r3, [pc, #140] @ (8013f14 <prvProcessExpiredTimer+0x98>)
  48025. 8013e88: 681b ldr r3, [r3, #0]
  48026. 8013e8a: 68db ldr r3, [r3, #12]
  48027. 8013e8c: 68db ldr r3, [r3, #12]
  48028. 8013e8e: 617b str r3, [r7, #20]
  48029. /* Remove the timer from the list of active timers. A check has already
  48030. been performed to ensure the list is not empty. */
  48031. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  48032. 8013e90: 697b ldr r3, [r7, #20]
  48033. 8013e92: 3304 adds r3, #4
  48034. 8013e94: 4618 mov r0, r3
  48035. 8013e96: f7fc ffb5 bl 8010e04 <uxListRemove>
  48036. traceTIMER_EXPIRED( pxTimer );
  48037. /* If the timer is an auto-reload timer then calculate the next
  48038. expiry time and re-insert the timer in the list of active timers. */
  48039. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  48040. 8013e9a: 697b ldr r3, [r7, #20]
  48041. 8013e9c: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  48042. 8013ea0: f003 0304 and.w r3, r3, #4
  48043. 8013ea4: 2b00 cmp r3, #0
  48044. 8013ea6: d023 beq.n 8013ef0 <prvProcessExpiredTimer+0x74>
  48045. {
  48046. /* The timer is inserted into a list using a time relative to anything
  48047. other than the current time. It will therefore be inserted into the
  48048. correct list relative to the time this task thinks it is now. */
  48049. if( prvInsertTimerInActiveList( pxTimer, ( xNextExpireTime + pxTimer->xTimerPeriodInTicks ), xTimeNow, xNextExpireTime ) != pdFALSE )
  48050. 8013ea8: 697b ldr r3, [r7, #20]
  48051. 8013eaa: 699a ldr r2, [r3, #24]
  48052. 8013eac: 687b ldr r3, [r7, #4]
  48053. 8013eae: 18d1 adds r1, r2, r3
  48054. 8013eb0: 687b ldr r3, [r7, #4]
  48055. 8013eb2: 683a ldr r2, [r7, #0]
  48056. 8013eb4: 6978 ldr r0, [r7, #20]
  48057. 8013eb6: f000 f8d5 bl 8014064 <prvInsertTimerInActiveList>
  48058. 8013eba: 4603 mov r3, r0
  48059. 8013ebc: 2b00 cmp r3, #0
  48060. 8013ebe: d020 beq.n 8013f02 <prvProcessExpiredTimer+0x86>
  48061. {
  48062. /* The timer expired before it was added to the active timer
  48063. list. Reload it now. */
  48064. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
  48065. 8013ec0: 2300 movs r3, #0
  48066. 8013ec2: 9300 str r3, [sp, #0]
  48067. 8013ec4: 2300 movs r3, #0
  48068. 8013ec6: 687a ldr r2, [r7, #4]
  48069. 8013ec8: 2100 movs r1, #0
  48070. 8013eca: 6978 ldr r0, [r7, #20]
  48071. 8013ecc: f7ff ff88 bl 8013de0 <xTimerGenericCommand>
  48072. 8013ed0: 6138 str r0, [r7, #16]
  48073. configASSERT( xResult );
  48074. 8013ed2: 693b ldr r3, [r7, #16]
  48075. 8013ed4: 2b00 cmp r3, #0
  48076. 8013ed6: d114 bne.n 8013f02 <prvProcessExpiredTimer+0x86>
  48077. __asm volatile
  48078. 8013ed8: f04f 0350 mov.w r3, #80 @ 0x50
  48079. 8013edc: f383 8811 msr BASEPRI, r3
  48080. 8013ee0: f3bf 8f6f isb sy
  48081. 8013ee4: f3bf 8f4f dsb sy
  48082. 8013ee8: 60fb str r3, [r7, #12]
  48083. }
  48084. 8013eea: bf00 nop
  48085. 8013eec: bf00 nop
  48086. 8013eee: e7fd b.n 8013eec <prvProcessExpiredTimer+0x70>
  48087. mtCOVERAGE_TEST_MARKER();
  48088. }
  48089. }
  48090. else
  48091. {
  48092. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  48093. 8013ef0: 697b ldr r3, [r7, #20]
  48094. 8013ef2: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  48095. 8013ef6: f023 0301 bic.w r3, r3, #1
  48096. 8013efa: b2da uxtb r2, r3
  48097. 8013efc: 697b ldr r3, [r7, #20]
  48098. 8013efe: f883 2028 strb.w r2, [r3, #40] @ 0x28
  48099. mtCOVERAGE_TEST_MARKER();
  48100. }
  48101. /* Call the timer callback. */
  48102. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  48103. 8013f02: 697b ldr r3, [r7, #20]
  48104. 8013f04: 6a1b ldr r3, [r3, #32]
  48105. 8013f06: 6978 ldr r0, [r7, #20]
  48106. 8013f08: 4798 blx r3
  48107. }
  48108. 8013f0a: bf00 nop
  48109. 8013f0c: 3718 adds r7, #24
  48110. 8013f0e: 46bd mov sp, r7
  48111. 8013f10: bd80 pop {r7, pc}
  48112. 8013f12: bf00 nop
  48113. 8013f14: 2400331c .word 0x2400331c
  48114. 08013f18 <prvTimerTask>:
  48115. /*-----------------------------------------------------------*/
  48116. static portTASK_FUNCTION( prvTimerTask, pvParameters )
  48117. {
  48118. 8013f18: b580 push {r7, lr}
  48119. 8013f1a: b084 sub sp, #16
  48120. 8013f1c: af00 add r7, sp, #0
  48121. 8013f1e: 6078 str r0, [r7, #4]
  48122. for( ;; )
  48123. {
  48124. /* Query the timers list to see if it contains any timers, and if so,
  48125. obtain the time at which the next timer will expire. */
  48126. xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
  48127. 8013f20: f107 0308 add.w r3, r7, #8
  48128. 8013f24: 4618 mov r0, r3
  48129. 8013f26: f000 f859 bl 8013fdc <prvGetNextExpireTime>
  48130. 8013f2a: 60f8 str r0, [r7, #12]
  48131. /* If a timer has expired, process it. Otherwise, block this task
  48132. until either a timer does expire, or a command is received. */
  48133. prvProcessTimerOrBlockTask( xNextExpireTime, xListWasEmpty );
  48134. 8013f2c: 68bb ldr r3, [r7, #8]
  48135. 8013f2e: 4619 mov r1, r3
  48136. 8013f30: 68f8 ldr r0, [r7, #12]
  48137. 8013f32: f000 f805 bl 8013f40 <prvProcessTimerOrBlockTask>
  48138. /* Empty the command queue. */
  48139. prvProcessReceivedCommands();
  48140. 8013f36: f000 f8d7 bl 80140e8 <prvProcessReceivedCommands>
  48141. xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
  48142. 8013f3a: bf00 nop
  48143. 8013f3c: e7f0 b.n 8013f20 <prvTimerTask+0x8>
  48144. ...
  48145. 08013f40 <prvProcessTimerOrBlockTask>:
  48146. }
  48147. }
  48148. /*-----------------------------------------------------------*/
  48149. static void prvProcessTimerOrBlockTask( const TickType_t xNextExpireTime, BaseType_t xListWasEmpty )
  48150. {
  48151. 8013f40: b580 push {r7, lr}
  48152. 8013f42: b084 sub sp, #16
  48153. 8013f44: af00 add r7, sp, #0
  48154. 8013f46: 6078 str r0, [r7, #4]
  48155. 8013f48: 6039 str r1, [r7, #0]
  48156. TickType_t xTimeNow;
  48157. BaseType_t xTimerListsWereSwitched;
  48158. vTaskSuspendAll();
  48159. 8013f4a: f7fe fea3 bl 8012c94 <vTaskSuspendAll>
  48160. /* Obtain the time now to make an assessment as to whether the timer
  48161. has expired or not. If obtaining the time causes the lists to switch
  48162. then don't process this timer as any timers that remained in the list
  48163. when the lists were switched will have been processed within the
  48164. prvSampleTimeNow() function. */
  48165. xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
  48166. 8013f4e: f107 0308 add.w r3, r7, #8
  48167. 8013f52: 4618 mov r0, r3
  48168. 8013f54: f000 f866 bl 8014024 <prvSampleTimeNow>
  48169. 8013f58: 60f8 str r0, [r7, #12]
  48170. if( xTimerListsWereSwitched == pdFALSE )
  48171. 8013f5a: 68bb ldr r3, [r7, #8]
  48172. 8013f5c: 2b00 cmp r3, #0
  48173. 8013f5e: d130 bne.n 8013fc2 <prvProcessTimerOrBlockTask+0x82>
  48174. {
  48175. /* The tick count has not overflowed, has the timer expired? */
  48176. if( ( xListWasEmpty == pdFALSE ) && ( xNextExpireTime <= xTimeNow ) )
  48177. 8013f60: 683b ldr r3, [r7, #0]
  48178. 8013f62: 2b00 cmp r3, #0
  48179. 8013f64: d10a bne.n 8013f7c <prvProcessTimerOrBlockTask+0x3c>
  48180. 8013f66: 687a ldr r2, [r7, #4]
  48181. 8013f68: 68fb ldr r3, [r7, #12]
  48182. 8013f6a: 429a cmp r2, r3
  48183. 8013f6c: d806 bhi.n 8013f7c <prvProcessTimerOrBlockTask+0x3c>
  48184. {
  48185. ( void ) xTaskResumeAll();
  48186. 8013f6e: f7fe fe9f bl 8012cb0 <xTaskResumeAll>
  48187. prvProcessExpiredTimer( xNextExpireTime, xTimeNow );
  48188. 8013f72: 68f9 ldr r1, [r7, #12]
  48189. 8013f74: 6878 ldr r0, [r7, #4]
  48190. 8013f76: f7ff ff81 bl 8013e7c <prvProcessExpiredTimer>
  48191. else
  48192. {
  48193. ( void ) xTaskResumeAll();
  48194. }
  48195. }
  48196. }
  48197. 8013f7a: e024 b.n 8013fc6 <prvProcessTimerOrBlockTask+0x86>
  48198. if( xListWasEmpty != pdFALSE )
  48199. 8013f7c: 683b ldr r3, [r7, #0]
  48200. 8013f7e: 2b00 cmp r3, #0
  48201. 8013f80: d008 beq.n 8013f94 <prvProcessTimerOrBlockTask+0x54>
  48202. xListWasEmpty = listLIST_IS_EMPTY( pxOverflowTimerList );
  48203. 8013f82: 4b13 ldr r3, [pc, #76] @ (8013fd0 <prvProcessTimerOrBlockTask+0x90>)
  48204. 8013f84: 681b ldr r3, [r3, #0]
  48205. 8013f86: 681b ldr r3, [r3, #0]
  48206. 8013f88: 2b00 cmp r3, #0
  48207. 8013f8a: d101 bne.n 8013f90 <prvProcessTimerOrBlockTask+0x50>
  48208. 8013f8c: 2301 movs r3, #1
  48209. 8013f8e: e000 b.n 8013f92 <prvProcessTimerOrBlockTask+0x52>
  48210. 8013f90: 2300 movs r3, #0
  48211. 8013f92: 603b str r3, [r7, #0]
  48212. vQueueWaitForMessageRestricted( xTimerQueue, ( xNextExpireTime - xTimeNow ), xListWasEmpty );
  48213. 8013f94: 4b0f ldr r3, [pc, #60] @ (8013fd4 <prvProcessTimerOrBlockTask+0x94>)
  48214. 8013f96: 6818 ldr r0, [r3, #0]
  48215. 8013f98: 687a ldr r2, [r7, #4]
  48216. 8013f9a: 68fb ldr r3, [r7, #12]
  48217. 8013f9c: 1ad3 subs r3, r2, r3
  48218. 8013f9e: 683a ldr r2, [r7, #0]
  48219. 8013fa0: 4619 mov r1, r3
  48220. 8013fa2: f7fe f847 bl 8012034 <vQueueWaitForMessageRestricted>
  48221. if( xTaskResumeAll() == pdFALSE )
  48222. 8013fa6: f7fe fe83 bl 8012cb0 <xTaskResumeAll>
  48223. 8013faa: 4603 mov r3, r0
  48224. 8013fac: 2b00 cmp r3, #0
  48225. 8013fae: d10a bne.n 8013fc6 <prvProcessTimerOrBlockTask+0x86>
  48226. portYIELD_WITHIN_API();
  48227. 8013fb0: 4b09 ldr r3, [pc, #36] @ (8013fd8 <prvProcessTimerOrBlockTask+0x98>)
  48228. 8013fb2: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48229. 8013fb6: 601a str r2, [r3, #0]
  48230. 8013fb8: f3bf 8f4f dsb sy
  48231. 8013fbc: f3bf 8f6f isb sy
  48232. }
  48233. 8013fc0: e001 b.n 8013fc6 <prvProcessTimerOrBlockTask+0x86>
  48234. ( void ) xTaskResumeAll();
  48235. 8013fc2: f7fe fe75 bl 8012cb0 <xTaskResumeAll>
  48236. }
  48237. 8013fc6: bf00 nop
  48238. 8013fc8: 3710 adds r7, #16
  48239. 8013fca: 46bd mov sp, r7
  48240. 8013fcc: bd80 pop {r7, pc}
  48241. 8013fce: bf00 nop
  48242. 8013fd0: 24003320 .word 0x24003320
  48243. 8013fd4: 24003324 .word 0x24003324
  48244. 8013fd8: e000ed04 .word 0xe000ed04
  48245. 08013fdc <prvGetNextExpireTime>:
  48246. /*-----------------------------------------------------------*/
  48247. static TickType_t prvGetNextExpireTime( BaseType_t * const pxListWasEmpty )
  48248. {
  48249. 8013fdc: b480 push {r7}
  48250. 8013fde: b085 sub sp, #20
  48251. 8013fe0: af00 add r7, sp, #0
  48252. 8013fe2: 6078 str r0, [r7, #4]
  48253. the timer with the nearest expiry time will expire. If there are no
  48254. active timers then just set the next expire time to 0. That will cause
  48255. this task to unblock when the tick count overflows, at which point the
  48256. timer lists will be switched and the next expiry time can be
  48257. re-assessed. */
  48258. *pxListWasEmpty = listLIST_IS_EMPTY( pxCurrentTimerList );
  48259. 8013fe4: 4b0e ldr r3, [pc, #56] @ (8014020 <prvGetNextExpireTime+0x44>)
  48260. 8013fe6: 681b ldr r3, [r3, #0]
  48261. 8013fe8: 681b ldr r3, [r3, #0]
  48262. 8013fea: 2b00 cmp r3, #0
  48263. 8013fec: d101 bne.n 8013ff2 <prvGetNextExpireTime+0x16>
  48264. 8013fee: 2201 movs r2, #1
  48265. 8013ff0: e000 b.n 8013ff4 <prvGetNextExpireTime+0x18>
  48266. 8013ff2: 2200 movs r2, #0
  48267. 8013ff4: 687b ldr r3, [r7, #4]
  48268. 8013ff6: 601a str r2, [r3, #0]
  48269. if( *pxListWasEmpty == pdFALSE )
  48270. 8013ff8: 687b ldr r3, [r7, #4]
  48271. 8013ffa: 681b ldr r3, [r3, #0]
  48272. 8013ffc: 2b00 cmp r3, #0
  48273. 8013ffe: d105 bne.n 801400c <prvGetNextExpireTime+0x30>
  48274. {
  48275. xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
  48276. 8014000: 4b07 ldr r3, [pc, #28] @ (8014020 <prvGetNextExpireTime+0x44>)
  48277. 8014002: 681b ldr r3, [r3, #0]
  48278. 8014004: 68db ldr r3, [r3, #12]
  48279. 8014006: 681b ldr r3, [r3, #0]
  48280. 8014008: 60fb str r3, [r7, #12]
  48281. 801400a: e001 b.n 8014010 <prvGetNextExpireTime+0x34>
  48282. }
  48283. else
  48284. {
  48285. /* Ensure the task unblocks when the tick count rolls over. */
  48286. xNextExpireTime = ( TickType_t ) 0U;
  48287. 801400c: 2300 movs r3, #0
  48288. 801400e: 60fb str r3, [r7, #12]
  48289. }
  48290. return xNextExpireTime;
  48291. 8014010: 68fb ldr r3, [r7, #12]
  48292. }
  48293. 8014012: 4618 mov r0, r3
  48294. 8014014: 3714 adds r7, #20
  48295. 8014016: 46bd mov sp, r7
  48296. 8014018: f85d 7b04 ldr.w r7, [sp], #4
  48297. 801401c: 4770 bx lr
  48298. 801401e: bf00 nop
  48299. 8014020: 2400331c .word 0x2400331c
  48300. 08014024 <prvSampleTimeNow>:
  48301. /*-----------------------------------------------------------*/
  48302. static TickType_t prvSampleTimeNow( BaseType_t * const pxTimerListsWereSwitched )
  48303. {
  48304. 8014024: b580 push {r7, lr}
  48305. 8014026: b084 sub sp, #16
  48306. 8014028: af00 add r7, sp, #0
  48307. 801402a: 6078 str r0, [r7, #4]
  48308. TickType_t xTimeNow;
  48309. PRIVILEGED_DATA static TickType_t xLastTime = ( TickType_t ) 0U; /*lint !e956 Variable is only accessible to one task. */
  48310. xTimeNow = xTaskGetTickCount();
  48311. 801402c: f7fe fede bl 8012dec <xTaskGetTickCount>
  48312. 8014030: 60f8 str r0, [r7, #12]
  48313. if( xTimeNow < xLastTime )
  48314. 8014032: 4b0b ldr r3, [pc, #44] @ (8014060 <prvSampleTimeNow+0x3c>)
  48315. 8014034: 681b ldr r3, [r3, #0]
  48316. 8014036: 68fa ldr r2, [r7, #12]
  48317. 8014038: 429a cmp r2, r3
  48318. 801403a: d205 bcs.n 8014048 <prvSampleTimeNow+0x24>
  48319. {
  48320. prvSwitchTimerLists();
  48321. 801403c: f000 f93a bl 80142b4 <prvSwitchTimerLists>
  48322. *pxTimerListsWereSwitched = pdTRUE;
  48323. 8014040: 687b ldr r3, [r7, #4]
  48324. 8014042: 2201 movs r2, #1
  48325. 8014044: 601a str r2, [r3, #0]
  48326. 8014046: e002 b.n 801404e <prvSampleTimeNow+0x2a>
  48327. }
  48328. else
  48329. {
  48330. *pxTimerListsWereSwitched = pdFALSE;
  48331. 8014048: 687b ldr r3, [r7, #4]
  48332. 801404a: 2200 movs r2, #0
  48333. 801404c: 601a str r2, [r3, #0]
  48334. }
  48335. xLastTime = xTimeNow;
  48336. 801404e: 4a04 ldr r2, [pc, #16] @ (8014060 <prvSampleTimeNow+0x3c>)
  48337. 8014050: 68fb ldr r3, [r7, #12]
  48338. 8014052: 6013 str r3, [r2, #0]
  48339. return xTimeNow;
  48340. 8014054: 68fb ldr r3, [r7, #12]
  48341. }
  48342. 8014056: 4618 mov r0, r3
  48343. 8014058: 3710 adds r7, #16
  48344. 801405a: 46bd mov sp, r7
  48345. 801405c: bd80 pop {r7, pc}
  48346. 801405e: bf00 nop
  48347. 8014060: 2400332c .word 0x2400332c
  48348. 08014064 <prvInsertTimerInActiveList>:
  48349. /*-----------------------------------------------------------*/
  48350. static BaseType_t prvInsertTimerInActiveList( Timer_t * const pxTimer, const TickType_t xNextExpiryTime, const TickType_t xTimeNow, const TickType_t xCommandTime )
  48351. {
  48352. 8014064: b580 push {r7, lr}
  48353. 8014066: b086 sub sp, #24
  48354. 8014068: af00 add r7, sp, #0
  48355. 801406a: 60f8 str r0, [r7, #12]
  48356. 801406c: 60b9 str r1, [r7, #8]
  48357. 801406e: 607a str r2, [r7, #4]
  48358. 8014070: 603b str r3, [r7, #0]
  48359. BaseType_t xProcessTimerNow = pdFALSE;
  48360. 8014072: 2300 movs r3, #0
  48361. 8014074: 617b str r3, [r7, #20]
  48362. listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xNextExpiryTime );
  48363. 8014076: 68fb ldr r3, [r7, #12]
  48364. 8014078: 68ba ldr r2, [r7, #8]
  48365. 801407a: 605a str r2, [r3, #4]
  48366. listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
  48367. 801407c: 68fb ldr r3, [r7, #12]
  48368. 801407e: 68fa ldr r2, [r7, #12]
  48369. 8014080: 611a str r2, [r3, #16]
  48370. if( xNextExpiryTime <= xTimeNow )
  48371. 8014082: 68ba ldr r2, [r7, #8]
  48372. 8014084: 687b ldr r3, [r7, #4]
  48373. 8014086: 429a cmp r2, r3
  48374. 8014088: d812 bhi.n 80140b0 <prvInsertTimerInActiveList+0x4c>
  48375. {
  48376. /* Has the expiry time elapsed between the command to start/reset a
  48377. timer was issued, and the time the command was processed? */
  48378. if( ( ( TickType_t ) ( xTimeNow - xCommandTime ) ) >= pxTimer->xTimerPeriodInTicks ) /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  48379. 801408a: 687a ldr r2, [r7, #4]
  48380. 801408c: 683b ldr r3, [r7, #0]
  48381. 801408e: 1ad2 subs r2, r2, r3
  48382. 8014090: 68fb ldr r3, [r7, #12]
  48383. 8014092: 699b ldr r3, [r3, #24]
  48384. 8014094: 429a cmp r2, r3
  48385. 8014096: d302 bcc.n 801409e <prvInsertTimerInActiveList+0x3a>
  48386. {
  48387. /* The time between a command being issued and the command being
  48388. processed actually exceeds the timers period. */
  48389. xProcessTimerNow = pdTRUE;
  48390. 8014098: 2301 movs r3, #1
  48391. 801409a: 617b str r3, [r7, #20]
  48392. 801409c: e01b b.n 80140d6 <prvInsertTimerInActiveList+0x72>
  48393. }
  48394. else
  48395. {
  48396. vListInsert( pxOverflowTimerList, &( pxTimer->xTimerListItem ) );
  48397. 801409e: 4b10 ldr r3, [pc, #64] @ (80140e0 <prvInsertTimerInActiveList+0x7c>)
  48398. 80140a0: 681a ldr r2, [r3, #0]
  48399. 80140a2: 68fb ldr r3, [r7, #12]
  48400. 80140a4: 3304 adds r3, #4
  48401. 80140a6: 4619 mov r1, r3
  48402. 80140a8: 4610 mov r0, r2
  48403. 80140aa: f7fc fe72 bl 8010d92 <vListInsert>
  48404. 80140ae: e012 b.n 80140d6 <prvInsertTimerInActiveList+0x72>
  48405. }
  48406. }
  48407. else
  48408. {
  48409. if( ( xTimeNow < xCommandTime ) && ( xNextExpiryTime >= xCommandTime ) )
  48410. 80140b0: 687a ldr r2, [r7, #4]
  48411. 80140b2: 683b ldr r3, [r7, #0]
  48412. 80140b4: 429a cmp r2, r3
  48413. 80140b6: d206 bcs.n 80140c6 <prvInsertTimerInActiveList+0x62>
  48414. 80140b8: 68ba ldr r2, [r7, #8]
  48415. 80140ba: 683b ldr r3, [r7, #0]
  48416. 80140bc: 429a cmp r2, r3
  48417. 80140be: d302 bcc.n 80140c6 <prvInsertTimerInActiveList+0x62>
  48418. {
  48419. /* If, since the command was issued, the tick count has overflowed
  48420. but the expiry time has not, then the timer must have already passed
  48421. its expiry time and should be processed immediately. */
  48422. xProcessTimerNow = pdTRUE;
  48423. 80140c0: 2301 movs r3, #1
  48424. 80140c2: 617b str r3, [r7, #20]
  48425. 80140c4: e007 b.n 80140d6 <prvInsertTimerInActiveList+0x72>
  48426. }
  48427. else
  48428. {
  48429. vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
  48430. 80140c6: 4b07 ldr r3, [pc, #28] @ (80140e4 <prvInsertTimerInActiveList+0x80>)
  48431. 80140c8: 681a ldr r2, [r3, #0]
  48432. 80140ca: 68fb ldr r3, [r7, #12]
  48433. 80140cc: 3304 adds r3, #4
  48434. 80140ce: 4619 mov r1, r3
  48435. 80140d0: 4610 mov r0, r2
  48436. 80140d2: f7fc fe5e bl 8010d92 <vListInsert>
  48437. }
  48438. }
  48439. return xProcessTimerNow;
  48440. 80140d6: 697b ldr r3, [r7, #20]
  48441. }
  48442. 80140d8: 4618 mov r0, r3
  48443. 80140da: 3718 adds r7, #24
  48444. 80140dc: 46bd mov sp, r7
  48445. 80140de: bd80 pop {r7, pc}
  48446. 80140e0: 24003320 .word 0x24003320
  48447. 80140e4: 2400331c .word 0x2400331c
  48448. 080140e8 <prvProcessReceivedCommands>:
  48449. /*-----------------------------------------------------------*/
  48450. static void prvProcessReceivedCommands( void )
  48451. {
  48452. 80140e8: b580 push {r7, lr}
  48453. 80140ea: b08e sub sp, #56 @ 0x38
  48454. 80140ec: af02 add r7, sp, #8
  48455. DaemonTaskMessage_t xMessage;
  48456. Timer_t *pxTimer;
  48457. BaseType_t xTimerListsWereSwitched, xResult;
  48458. TickType_t xTimeNow;
  48459. while( xQueueReceive( xTimerQueue, &xMessage, tmrNO_DELAY ) != pdFAIL ) /*lint !e603 xMessage does not have to be initialised as it is passed out, not in, and it is not used unless xQueueReceive() returns pdTRUE. */
  48460. 80140ee: e0ce b.n 801428e <prvProcessReceivedCommands+0x1a6>
  48461. {
  48462. #if ( INCLUDE_xTimerPendFunctionCall == 1 )
  48463. {
  48464. /* Negative commands are pended function calls rather than timer
  48465. commands. */
  48466. if( xMessage.xMessageID < ( BaseType_t ) 0 )
  48467. 80140f0: 687b ldr r3, [r7, #4]
  48468. 80140f2: 2b00 cmp r3, #0
  48469. 80140f4: da19 bge.n 801412a <prvProcessReceivedCommands+0x42>
  48470. {
  48471. const CallbackParameters_t * const pxCallback = &( xMessage.u.xCallbackParameters );
  48472. 80140f6: 1d3b adds r3, r7, #4
  48473. 80140f8: 3304 adds r3, #4
  48474. 80140fa: 62fb str r3, [r7, #44] @ 0x2c
  48475. /* The timer uses the xCallbackParameters member to request a
  48476. callback be executed. Check the callback is not NULL. */
  48477. configASSERT( pxCallback );
  48478. 80140fc: 6afb ldr r3, [r7, #44] @ 0x2c
  48479. 80140fe: 2b00 cmp r3, #0
  48480. 8014100: d10b bne.n 801411a <prvProcessReceivedCommands+0x32>
  48481. __asm volatile
  48482. 8014102: f04f 0350 mov.w r3, #80 @ 0x50
  48483. 8014106: f383 8811 msr BASEPRI, r3
  48484. 801410a: f3bf 8f6f isb sy
  48485. 801410e: f3bf 8f4f dsb sy
  48486. 8014112: 61fb str r3, [r7, #28]
  48487. }
  48488. 8014114: bf00 nop
  48489. 8014116: bf00 nop
  48490. 8014118: e7fd b.n 8014116 <prvProcessReceivedCommands+0x2e>
  48491. /* Call the function. */
  48492. pxCallback->pxCallbackFunction( pxCallback->pvParameter1, pxCallback->ulParameter2 );
  48493. 801411a: 6afb ldr r3, [r7, #44] @ 0x2c
  48494. 801411c: 681b ldr r3, [r3, #0]
  48495. 801411e: 6afa ldr r2, [r7, #44] @ 0x2c
  48496. 8014120: 6850 ldr r0, [r2, #4]
  48497. 8014122: 6afa ldr r2, [r7, #44] @ 0x2c
  48498. 8014124: 6892 ldr r2, [r2, #8]
  48499. 8014126: 4611 mov r1, r2
  48500. 8014128: 4798 blx r3
  48501. }
  48502. #endif /* INCLUDE_xTimerPendFunctionCall */
  48503. /* Commands that are positive are timer commands rather than pended
  48504. function calls. */
  48505. if( xMessage.xMessageID >= ( BaseType_t ) 0 )
  48506. 801412a: 687b ldr r3, [r7, #4]
  48507. 801412c: 2b00 cmp r3, #0
  48508. 801412e: f2c0 80ae blt.w 801428e <prvProcessReceivedCommands+0x1a6>
  48509. {
  48510. /* The messages uses the xTimerParameters member to work on a
  48511. software timer. */
  48512. pxTimer = xMessage.u.xTimerParameters.pxTimer;
  48513. 8014132: 68fb ldr r3, [r7, #12]
  48514. 8014134: 62bb str r3, [r7, #40] @ 0x28
  48515. if( listIS_CONTAINED_WITHIN( NULL, &( pxTimer->xTimerListItem ) ) == pdFALSE ) /*lint !e961. The cast is only redundant when NULL is passed into the macro. */
  48516. 8014136: 6abb ldr r3, [r7, #40] @ 0x28
  48517. 8014138: 695b ldr r3, [r3, #20]
  48518. 801413a: 2b00 cmp r3, #0
  48519. 801413c: d004 beq.n 8014148 <prvProcessReceivedCommands+0x60>
  48520. {
  48521. /* The timer is in a list, remove it. */
  48522. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  48523. 801413e: 6abb ldr r3, [r7, #40] @ 0x28
  48524. 8014140: 3304 adds r3, #4
  48525. 8014142: 4618 mov r0, r3
  48526. 8014144: f7fc fe5e bl 8010e04 <uxListRemove>
  48527. it must be present in the function call. prvSampleTimeNow() must be
  48528. called after the message is received from xTimerQueue so there is no
  48529. possibility of a higher priority task adding a message to the message
  48530. queue with a time that is ahead of the timer daemon task (because it
  48531. pre-empted the timer daemon task after the xTimeNow value was set). */
  48532. xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
  48533. 8014148: 463b mov r3, r7
  48534. 801414a: 4618 mov r0, r3
  48535. 801414c: f7ff ff6a bl 8014024 <prvSampleTimeNow>
  48536. 8014150: 6278 str r0, [r7, #36] @ 0x24
  48537. switch( xMessage.xMessageID )
  48538. 8014152: 687b ldr r3, [r7, #4]
  48539. 8014154: 2b09 cmp r3, #9
  48540. 8014156: f200 8097 bhi.w 8014288 <prvProcessReceivedCommands+0x1a0>
  48541. 801415a: a201 add r2, pc, #4 @ (adr r2, 8014160 <prvProcessReceivedCommands+0x78>)
  48542. 801415c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  48543. 8014160: 08014189 .word 0x08014189
  48544. 8014164: 08014189 .word 0x08014189
  48545. 8014168: 08014189 .word 0x08014189
  48546. 801416c: 080141ff .word 0x080141ff
  48547. 8014170: 08014213 .word 0x08014213
  48548. 8014174: 0801425f .word 0x0801425f
  48549. 8014178: 08014189 .word 0x08014189
  48550. 801417c: 08014189 .word 0x08014189
  48551. 8014180: 080141ff .word 0x080141ff
  48552. 8014184: 08014213 .word 0x08014213
  48553. case tmrCOMMAND_START_FROM_ISR :
  48554. case tmrCOMMAND_RESET :
  48555. case tmrCOMMAND_RESET_FROM_ISR :
  48556. case tmrCOMMAND_START_DONT_TRACE :
  48557. /* Start or restart a timer. */
  48558. pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
  48559. 8014188: 6abb ldr r3, [r7, #40] @ 0x28
  48560. 801418a: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  48561. 801418e: f043 0301 orr.w r3, r3, #1
  48562. 8014192: b2da uxtb r2, r3
  48563. 8014194: 6abb ldr r3, [r7, #40] @ 0x28
  48564. 8014196: f883 2028 strb.w r2, [r3, #40] @ 0x28
  48565. if( prvInsertTimerInActiveList( pxTimer, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, xTimeNow, xMessage.u.xTimerParameters.xMessageValue ) != pdFALSE )
  48566. 801419a: 68ba ldr r2, [r7, #8]
  48567. 801419c: 6abb ldr r3, [r7, #40] @ 0x28
  48568. 801419e: 699b ldr r3, [r3, #24]
  48569. 80141a0: 18d1 adds r1, r2, r3
  48570. 80141a2: 68bb ldr r3, [r7, #8]
  48571. 80141a4: 6a7a ldr r2, [r7, #36] @ 0x24
  48572. 80141a6: 6ab8 ldr r0, [r7, #40] @ 0x28
  48573. 80141a8: f7ff ff5c bl 8014064 <prvInsertTimerInActiveList>
  48574. 80141ac: 4603 mov r3, r0
  48575. 80141ae: 2b00 cmp r3, #0
  48576. 80141b0: d06c beq.n 801428c <prvProcessReceivedCommands+0x1a4>
  48577. {
  48578. /* The timer expired before it was added to the active
  48579. timer list. Process it now. */
  48580. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  48581. 80141b2: 6abb ldr r3, [r7, #40] @ 0x28
  48582. 80141b4: 6a1b ldr r3, [r3, #32]
  48583. 80141b6: 6ab8 ldr r0, [r7, #40] @ 0x28
  48584. 80141b8: 4798 blx r3
  48585. traceTIMER_EXPIRED( pxTimer );
  48586. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  48587. 80141ba: 6abb ldr r3, [r7, #40] @ 0x28
  48588. 80141bc: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  48589. 80141c0: f003 0304 and.w r3, r3, #4
  48590. 80141c4: 2b00 cmp r3, #0
  48591. 80141c6: d061 beq.n 801428c <prvProcessReceivedCommands+0x1a4>
  48592. {
  48593. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, NULL, tmrNO_DELAY );
  48594. 80141c8: 68ba ldr r2, [r7, #8]
  48595. 80141ca: 6abb ldr r3, [r7, #40] @ 0x28
  48596. 80141cc: 699b ldr r3, [r3, #24]
  48597. 80141ce: 441a add r2, r3
  48598. 80141d0: 2300 movs r3, #0
  48599. 80141d2: 9300 str r3, [sp, #0]
  48600. 80141d4: 2300 movs r3, #0
  48601. 80141d6: 2100 movs r1, #0
  48602. 80141d8: 6ab8 ldr r0, [r7, #40] @ 0x28
  48603. 80141da: f7ff fe01 bl 8013de0 <xTimerGenericCommand>
  48604. 80141de: 6238 str r0, [r7, #32]
  48605. configASSERT( xResult );
  48606. 80141e0: 6a3b ldr r3, [r7, #32]
  48607. 80141e2: 2b00 cmp r3, #0
  48608. 80141e4: d152 bne.n 801428c <prvProcessReceivedCommands+0x1a4>
  48609. __asm volatile
  48610. 80141e6: f04f 0350 mov.w r3, #80 @ 0x50
  48611. 80141ea: f383 8811 msr BASEPRI, r3
  48612. 80141ee: f3bf 8f6f isb sy
  48613. 80141f2: f3bf 8f4f dsb sy
  48614. 80141f6: 61bb str r3, [r7, #24]
  48615. }
  48616. 80141f8: bf00 nop
  48617. 80141fa: bf00 nop
  48618. 80141fc: e7fd b.n 80141fa <prvProcessReceivedCommands+0x112>
  48619. break;
  48620. case tmrCOMMAND_STOP :
  48621. case tmrCOMMAND_STOP_FROM_ISR :
  48622. /* The timer has already been removed from the active list. */
  48623. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  48624. 80141fe: 6abb ldr r3, [r7, #40] @ 0x28
  48625. 8014200: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  48626. 8014204: f023 0301 bic.w r3, r3, #1
  48627. 8014208: b2da uxtb r2, r3
  48628. 801420a: 6abb ldr r3, [r7, #40] @ 0x28
  48629. 801420c: f883 2028 strb.w r2, [r3, #40] @ 0x28
  48630. break;
  48631. 8014210: e03d b.n 801428e <prvProcessReceivedCommands+0x1a6>
  48632. case tmrCOMMAND_CHANGE_PERIOD :
  48633. case tmrCOMMAND_CHANGE_PERIOD_FROM_ISR :
  48634. pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
  48635. 8014212: 6abb ldr r3, [r7, #40] @ 0x28
  48636. 8014214: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  48637. 8014218: f043 0301 orr.w r3, r3, #1
  48638. 801421c: b2da uxtb r2, r3
  48639. 801421e: 6abb ldr r3, [r7, #40] @ 0x28
  48640. 8014220: f883 2028 strb.w r2, [r3, #40] @ 0x28
  48641. pxTimer->xTimerPeriodInTicks = xMessage.u.xTimerParameters.xMessageValue;
  48642. 8014224: 68ba ldr r2, [r7, #8]
  48643. 8014226: 6abb ldr r3, [r7, #40] @ 0x28
  48644. 8014228: 619a str r2, [r3, #24]
  48645. configASSERT( ( pxTimer->xTimerPeriodInTicks > 0 ) );
  48646. 801422a: 6abb ldr r3, [r7, #40] @ 0x28
  48647. 801422c: 699b ldr r3, [r3, #24]
  48648. 801422e: 2b00 cmp r3, #0
  48649. 8014230: d10b bne.n 801424a <prvProcessReceivedCommands+0x162>
  48650. __asm volatile
  48651. 8014232: f04f 0350 mov.w r3, #80 @ 0x50
  48652. 8014236: f383 8811 msr BASEPRI, r3
  48653. 801423a: f3bf 8f6f isb sy
  48654. 801423e: f3bf 8f4f dsb sy
  48655. 8014242: 617b str r3, [r7, #20]
  48656. }
  48657. 8014244: bf00 nop
  48658. 8014246: bf00 nop
  48659. 8014248: e7fd b.n 8014246 <prvProcessReceivedCommands+0x15e>
  48660. be longer or shorter than the old one. The command time is
  48661. therefore set to the current time, and as the period cannot
  48662. be zero the next expiry time can only be in the future,
  48663. meaning (unlike for the xTimerStart() case above) there is
  48664. no fail case that needs to be handled here. */
  48665. ( void ) prvInsertTimerInActiveList( pxTimer, ( xTimeNow + pxTimer->xTimerPeriodInTicks ), xTimeNow, xTimeNow );
  48666. 801424a: 6abb ldr r3, [r7, #40] @ 0x28
  48667. 801424c: 699a ldr r2, [r3, #24]
  48668. 801424e: 6a7b ldr r3, [r7, #36] @ 0x24
  48669. 8014250: 18d1 adds r1, r2, r3
  48670. 8014252: 6a7b ldr r3, [r7, #36] @ 0x24
  48671. 8014254: 6a7a ldr r2, [r7, #36] @ 0x24
  48672. 8014256: 6ab8 ldr r0, [r7, #40] @ 0x28
  48673. 8014258: f7ff ff04 bl 8014064 <prvInsertTimerInActiveList>
  48674. break;
  48675. 801425c: e017 b.n 801428e <prvProcessReceivedCommands+0x1a6>
  48676. #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  48677. {
  48678. /* The timer has already been removed from the active list,
  48679. just free up the memory if the memory was dynamically
  48680. allocated. */
  48681. if( ( pxTimer->ucStatus & tmrSTATUS_IS_STATICALLY_ALLOCATED ) == ( uint8_t ) 0 )
  48682. 801425e: 6abb ldr r3, [r7, #40] @ 0x28
  48683. 8014260: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  48684. 8014264: f003 0302 and.w r3, r3, #2
  48685. 8014268: 2b00 cmp r3, #0
  48686. 801426a: d103 bne.n 8014274 <prvProcessReceivedCommands+0x18c>
  48687. {
  48688. vPortFree( pxTimer );
  48689. 801426c: 6ab8 ldr r0, [r7, #40] @ 0x28
  48690. 801426e: f000 fbeb bl 8014a48 <vPortFree>
  48691. no need to free the memory - just mark the timer as
  48692. "not active". */
  48693. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  48694. }
  48695. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  48696. break;
  48697. 8014272: e00c b.n 801428e <prvProcessReceivedCommands+0x1a6>
  48698. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  48699. 8014274: 6abb ldr r3, [r7, #40] @ 0x28
  48700. 8014276: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  48701. 801427a: f023 0301 bic.w r3, r3, #1
  48702. 801427e: b2da uxtb r2, r3
  48703. 8014280: 6abb ldr r3, [r7, #40] @ 0x28
  48704. 8014282: f883 2028 strb.w r2, [r3, #40] @ 0x28
  48705. break;
  48706. 8014286: e002 b.n 801428e <prvProcessReceivedCommands+0x1a6>
  48707. default :
  48708. /* Don't expect to get here. */
  48709. break;
  48710. 8014288: bf00 nop
  48711. 801428a: e000 b.n 801428e <prvProcessReceivedCommands+0x1a6>
  48712. break;
  48713. 801428c: bf00 nop
  48714. while( xQueueReceive( xTimerQueue, &xMessage, tmrNO_DELAY ) != pdFAIL ) /*lint !e603 xMessage does not have to be initialised as it is passed out, not in, and it is not used unless xQueueReceive() returns pdTRUE. */
  48715. 801428e: 4b08 ldr r3, [pc, #32] @ (80142b0 <prvProcessReceivedCommands+0x1c8>)
  48716. 8014290: 681b ldr r3, [r3, #0]
  48717. 8014292: 1d39 adds r1, r7, #4
  48718. 8014294: 2200 movs r2, #0
  48719. 8014296: 4618 mov r0, r3
  48720. 8014298: f7fd fa7a bl 8011790 <xQueueReceive>
  48721. 801429c: 4603 mov r3, r0
  48722. 801429e: 2b00 cmp r3, #0
  48723. 80142a0: f47f af26 bne.w 80140f0 <prvProcessReceivedCommands+0x8>
  48724. }
  48725. }
  48726. }
  48727. }
  48728. 80142a4: bf00 nop
  48729. 80142a6: bf00 nop
  48730. 80142a8: 3730 adds r7, #48 @ 0x30
  48731. 80142aa: 46bd mov sp, r7
  48732. 80142ac: bd80 pop {r7, pc}
  48733. 80142ae: bf00 nop
  48734. 80142b0: 24003324 .word 0x24003324
  48735. 080142b4 <prvSwitchTimerLists>:
  48736. /*-----------------------------------------------------------*/
  48737. static void prvSwitchTimerLists( void )
  48738. {
  48739. 80142b4: b580 push {r7, lr}
  48740. 80142b6: b088 sub sp, #32
  48741. 80142b8: af02 add r7, sp, #8
  48742. /* The tick count has overflowed. The timer lists must be switched.
  48743. If there are any timers still referenced from the current timer list
  48744. then they must have expired and should be processed before the lists
  48745. are switched. */
  48746. while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
  48747. 80142ba: e049 b.n 8014350 <prvSwitchTimerLists+0x9c>
  48748. {
  48749. xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
  48750. 80142bc: 4b2e ldr r3, [pc, #184] @ (8014378 <prvSwitchTimerLists+0xc4>)
  48751. 80142be: 681b ldr r3, [r3, #0]
  48752. 80142c0: 68db ldr r3, [r3, #12]
  48753. 80142c2: 681b ldr r3, [r3, #0]
  48754. 80142c4: 613b str r3, [r7, #16]
  48755. /* Remove the timer from the list. */
  48756. pxTimer = ( Timer_t * ) listGET_OWNER_OF_HEAD_ENTRY( pxCurrentTimerList ); /*lint !e9087 !e9079 void * is used as this macro is used with tasks and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  48757. 80142c6: 4b2c ldr r3, [pc, #176] @ (8014378 <prvSwitchTimerLists+0xc4>)
  48758. 80142c8: 681b ldr r3, [r3, #0]
  48759. 80142ca: 68db ldr r3, [r3, #12]
  48760. 80142cc: 68db ldr r3, [r3, #12]
  48761. 80142ce: 60fb str r3, [r7, #12]
  48762. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  48763. 80142d0: 68fb ldr r3, [r7, #12]
  48764. 80142d2: 3304 adds r3, #4
  48765. 80142d4: 4618 mov r0, r3
  48766. 80142d6: f7fc fd95 bl 8010e04 <uxListRemove>
  48767. traceTIMER_EXPIRED( pxTimer );
  48768. /* Execute its callback, then send a command to restart the timer if
  48769. it is an auto-reload timer. It cannot be restarted here as the lists
  48770. have not yet been switched. */
  48771. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  48772. 80142da: 68fb ldr r3, [r7, #12]
  48773. 80142dc: 6a1b ldr r3, [r3, #32]
  48774. 80142de: 68f8 ldr r0, [r7, #12]
  48775. 80142e0: 4798 blx r3
  48776. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  48777. 80142e2: 68fb ldr r3, [r7, #12]
  48778. 80142e4: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  48779. 80142e8: f003 0304 and.w r3, r3, #4
  48780. 80142ec: 2b00 cmp r3, #0
  48781. 80142ee: d02f beq.n 8014350 <prvSwitchTimerLists+0x9c>
  48782. the timer going into the same timer list then it has already expired
  48783. and the timer should be re-inserted into the current list so it is
  48784. processed again within this loop. Otherwise a command should be sent
  48785. to restart the timer to ensure it is only inserted into a list after
  48786. the lists have been swapped. */
  48787. xReloadTime = ( xNextExpireTime + pxTimer->xTimerPeriodInTicks );
  48788. 80142f0: 68fb ldr r3, [r7, #12]
  48789. 80142f2: 699b ldr r3, [r3, #24]
  48790. 80142f4: 693a ldr r2, [r7, #16]
  48791. 80142f6: 4413 add r3, r2
  48792. 80142f8: 60bb str r3, [r7, #8]
  48793. if( xReloadTime > xNextExpireTime )
  48794. 80142fa: 68ba ldr r2, [r7, #8]
  48795. 80142fc: 693b ldr r3, [r7, #16]
  48796. 80142fe: 429a cmp r2, r3
  48797. 8014300: d90e bls.n 8014320 <prvSwitchTimerLists+0x6c>
  48798. {
  48799. listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xReloadTime );
  48800. 8014302: 68fb ldr r3, [r7, #12]
  48801. 8014304: 68ba ldr r2, [r7, #8]
  48802. 8014306: 605a str r2, [r3, #4]
  48803. listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
  48804. 8014308: 68fb ldr r3, [r7, #12]
  48805. 801430a: 68fa ldr r2, [r7, #12]
  48806. 801430c: 611a str r2, [r3, #16]
  48807. vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
  48808. 801430e: 4b1a ldr r3, [pc, #104] @ (8014378 <prvSwitchTimerLists+0xc4>)
  48809. 8014310: 681a ldr r2, [r3, #0]
  48810. 8014312: 68fb ldr r3, [r7, #12]
  48811. 8014314: 3304 adds r3, #4
  48812. 8014316: 4619 mov r1, r3
  48813. 8014318: 4610 mov r0, r2
  48814. 801431a: f7fc fd3a bl 8010d92 <vListInsert>
  48815. 801431e: e017 b.n 8014350 <prvSwitchTimerLists+0x9c>
  48816. }
  48817. else
  48818. {
  48819. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
  48820. 8014320: 2300 movs r3, #0
  48821. 8014322: 9300 str r3, [sp, #0]
  48822. 8014324: 2300 movs r3, #0
  48823. 8014326: 693a ldr r2, [r7, #16]
  48824. 8014328: 2100 movs r1, #0
  48825. 801432a: 68f8 ldr r0, [r7, #12]
  48826. 801432c: f7ff fd58 bl 8013de0 <xTimerGenericCommand>
  48827. 8014330: 6078 str r0, [r7, #4]
  48828. configASSERT( xResult );
  48829. 8014332: 687b ldr r3, [r7, #4]
  48830. 8014334: 2b00 cmp r3, #0
  48831. 8014336: d10b bne.n 8014350 <prvSwitchTimerLists+0x9c>
  48832. __asm volatile
  48833. 8014338: f04f 0350 mov.w r3, #80 @ 0x50
  48834. 801433c: f383 8811 msr BASEPRI, r3
  48835. 8014340: f3bf 8f6f isb sy
  48836. 8014344: f3bf 8f4f dsb sy
  48837. 8014348: 603b str r3, [r7, #0]
  48838. }
  48839. 801434a: bf00 nop
  48840. 801434c: bf00 nop
  48841. 801434e: e7fd b.n 801434c <prvSwitchTimerLists+0x98>
  48842. while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
  48843. 8014350: 4b09 ldr r3, [pc, #36] @ (8014378 <prvSwitchTimerLists+0xc4>)
  48844. 8014352: 681b ldr r3, [r3, #0]
  48845. 8014354: 681b ldr r3, [r3, #0]
  48846. 8014356: 2b00 cmp r3, #0
  48847. 8014358: d1b0 bne.n 80142bc <prvSwitchTimerLists+0x8>
  48848. {
  48849. mtCOVERAGE_TEST_MARKER();
  48850. }
  48851. }
  48852. pxTemp = pxCurrentTimerList;
  48853. 801435a: 4b07 ldr r3, [pc, #28] @ (8014378 <prvSwitchTimerLists+0xc4>)
  48854. 801435c: 681b ldr r3, [r3, #0]
  48855. 801435e: 617b str r3, [r7, #20]
  48856. pxCurrentTimerList = pxOverflowTimerList;
  48857. 8014360: 4b06 ldr r3, [pc, #24] @ (801437c <prvSwitchTimerLists+0xc8>)
  48858. 8014362: 681b ldr r3, [r3, #0]
  48859. 8014364: 4a04 ldr r2, [pc, #16] @ (8014378 <prvSwitchTimerLists+0xc4>)
  48860. 8014366: 6013 str r3, [r2, #0]
  48861. pxOverflowTimerList = pxTemp;
  48862. 8014368: 4a04 ldr r2, [pc, #16] @ (801437c <prvSwitchTimerLists+0xc8>)
  48863. 801436a: 697b ldr r3, [r7, #20]
  48864. 801436c: 6013 str r3, [r2, #0]
  48865. }
  48866. 801436e: bf00 nop
  48867. 8014370: 3718 adds r7, #24
  48868. 8014372: 46bd mov sp, r7
  48869. 8014374: bd80 pop {r7, pc}
  48870. 8014376: bf00 nop
  48871. 8014378: 2400331c .word 0x2400331c
  48872. 801437c: 24003320 .word 0x24003320
  48873. 08014380 <prvCheckForValidListAndQueue>:
  48874. /*-----------------------------------------------------------*/
  48875. static void prvCheckForValidListAndQueue( void )
  48876. {
  48877. 8014380: b580 push {r7, lr}
  48878. 8014382: b082 sub sp, #8
  48879. 8014384: af02 add r7, sp, #8
  48880. /* Check that the list from which active timers are referenced, and the
  48881. queue used to communicate with the timer service, have been
  48882. initialised. */
  48883. taskENTER_CRITICAL();
  48884. 8014386: f000 f96f bl 8014668 <vPortEnterCritical>
  48885. {
  48886. if( xTimerQueue == NULL )
  48887. 801438a: 4b15 ldr r3, [pc, #84] @ (80143e0 <prvCheckForValidListAndQueue+0x60>)
  48888. 801438c: 681b ldr r3, [r3, #0]
  48889. 801438e: 2b00 cmp r3, #0
  48890. 8014390: d120 bne.n 80143d4 <prvCheckForValidListAndQueue+0x54>
  48891. {
  48892. vListInitialise( &xActiveTimerList1 );
  48893. 8014392: 4814 ldr r0, [pc, #80] @ (80143e4 <prvCheckForValidListAndQueue+0x64>)
  48894. 8014394: f7fc fcac bl 8010cf0 <vListInitialise>
  48895. vListInitialise( &xActiveTimerList2 );
  48896. 8014398: 4813 ldr r0, [pc, #76] @ (80143e8 <prvCheckForValidListAndQueue+0x68>)
  48897. 801439a: f7fc fca9 bl 8010cf0 <vListInitialise>
  48898. pxCurrentTimerList = &xActiveTimerList1;
  48899. 801439e: 4b13 ldr r3, [pc, #76] @ (80143ec <prvCheckForValidListAndQueue+0x6c>)
  48900. 80143a0: 4a10 ldr r2, [pc, #64] @ (80143e4 <prvCheckForValidListAndQueue+0x64>)
  48901. 80143a2: 601a str r2, [r3, #0]
  48902. pxOverflowTimerList = &xActiveTimerList2;
  48903. 80143a4: 4b12 ldr r3, [pc, #72] @ (80143f0 <prvCheckForValidListAndQueue+0x70>)
  48904. 80143a6: 4a10 ldr r2, [pc, #64] @ (80143e8 <prvCheckForValidListAndQueue+0x68>)
  48905. 80143a8: 601a str r2, [r3, #0]
  48906. /* The timer queue is allocated statically in case
  48907. configSUPPORT_DYNAMIC_ALLOCATION is 0. */
  48908. static StaticQueue_t xStaticTimerQueue; /*lint !e956 Ok to declare in this manner to prevent additional conditional compilation guards in other locations. */
  48909. static uint8_t ucStaticTimerQueueStorage[ ( size_t ) configTIMER_QUEUE_LENGTH * sizeof( DaemonTaskMessage_t ) ]; /*lint !e956 Ok to declare in this manner to prevent additional conditional compilation guards in other locations. */
  48910. xTimerQueue = xQueueCreateStatic( ( UBaseType_t ) configTIMER_QUEUE_LENGTH, ( UBaseType_t ) sizeof( DaemonTaskMessage_t ), &( ucStaticTimerQueueStorage[ 0 ] ), &xStaticTimerQueue );
  48911. 80143aa: 2300 movs r3, #0
  48912. 80143ac: 9300 str r3, [sp, #0]
  48913. 80143ae: 4b11 ldr r3, [pc, #68] @ (80143f4 <prvCheckForValidListAndQueue+0x74>)
  48914. 80143b0: 4a11 ldr r2, [pc, #68] @ (80143f8 <prvCheckForValidListAndQueue+0x78>)
  48915. 80143b2: 2110 movs r1, #16
  48916. 80143b4: 200a movs r0, #10
  48917. 80143b6: f7fc fdb9 bl 8010f2c <xQueueGenericCreateStatic>
  48918. 80143ba: 4603 mov r3, r0
  48919. 80143bc: 4a08 ldr r2, [pc, #32] @ (80143e0 <prvCheckForValidListAndQueue+0x60>)
  48920. 80143be: 6013 str r3, [r2, #0]
  48921. }
  48922. #endif
  48923. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  48924. {
  48925. if( xTimerQueue != NULL )
  48926. 80143c0: 4b07 ldr r3, [pc, #28] @ (80143e0 <prvCheckForValidListAndQueue+0x60>)
  48927. 80143c2: 681b ldr r3, [r3, #0]
  48928. 80143c4: 2b00 cmp r3, #0
  48929. 80143c6: d005 beq.n 80143d4 <prvCheckForValidListAndQueue+0x54>
  48930. {
  48931. vQueueAddToRegistry( xTimerQueue, "TmrQ" );
  48932. 80143c8: 4b05 ldr r3, [pc, #20] @ (80143e0 <prvCheckForValidListAndQueue+0x60>)
  48933. 80143ca: 681b ldr r3, [r3, #0]
  48934. 80143cc: 490b ldr r1, [pc, #44] @ (80143fc <prvCheckForValidListAndQueue+0x7c>)
  48935. 80143ce: 4618 mov r0, r3
  48936. 80143d0: f7fd fddc bl 8011f8c <vQueueAddToRegistry>
  48937. else
  48938. {
  48939. mtCOVERAGE_TEST_MARKER();
  48940. }
  48941. }
  48942. taskEXIT_CRITICAL();
  48943. 80143d4: f000 f97a bl 80146cc <vPortExitCritical>
  48944. }
  48945. 80143d8: bf00 nop
  48946. 80143da: 46bd mov sp, r7
  48947. 80143dc: bd80 pop {r7, pc}
  48948. 80143de: bf00 nop
  48949. 80143e0: 24003324 .word 0x24003324
  48950. 80143e4: 240032f4 .word 0x240032f4
  48951. 80143e8: 24003308 .word 0x24003308
  48952. 80143ec: 2400331c .word 0x2400331c
  48953. 80143f0: 24003320 .word 0x24003320
  48954. 80143f4: 240033d0 .word 0x240033d0
  48955. 80143f8: 24003330 .word 0x24003330
  48956. 80143fc: 0802c710 .word 0x0802c710
  48957. 08014400 <pxPortInitialiseStack>:
  48958. /*
  48959. * See header file for description.
  48960. */
  48961. StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters )
  48962. {
  48963. 8014400: b480 push {r7}
  48964. 8014402: b085 sub sp, #20
  48965. 8014404: af00 add r7, sp, #0
  48966. 8014406: 60f8 str r0, [r7, #12]
  48967. 8014408: 60b9 str r1, [r7, #8]
  48968. 801440a: 607a str r2, [r7, #4]
  48969. /* Simulate the stack frame as it would be created by a context switch
  48970. interrupt. */
  48971. /* Offset added to account for the way the MCU uses the stack on entry/exit
  48972. of interrupts, and to ensure alignment. */
  48973. pxTopOfStack--;
  48974. 801440c: 68fb ldr r3, [r7, #12]
  48975. 801440e: 3b04 subs r3, #4
  48976. 8014410: 60fb str r3, [r7, #12]
  48977. *pxTopOfStack = portINITIAL_XPSR; /* xPSR */
  48978. 8014412: 68fb ldr r3, [r7, #12]
  48979. 8014414: f04f 7280 mov.w r2, #16777216 @ 0x1000000
  48980. 8014418: 601a str r2, [r3, #0]
  48981. pxTopOfStack--;
  48982. 801441a: 68fb ldr r3, [r7, #12]
  48983. 801441c: 3b04 subs r3, #4
  48984. 801441e: 60fb str r3, [r7, #12]
  48985. *pxTopOfStack = ( ( StackType_t ) pxCode ) & portSTART_ADDRESS_MASK; /* PC */
  48986. 8014420: 68bb ldr r3, [r7, #8]
  48987. 8014422: f023 0201 bic.w r2, r3, #1
  48988. 8014426: 68fb ldr r3, [r7, #12]
  48989. 8014428: 601a str r2, [r3, #0]
  48990. pxTopOfStack--;
  48991. 801442a: 68fb ldr r3, [r7, #12]
  48992. 801442c: 3b04 subs r3, #4
  48993. 801442e: 60fb str r3, [r7, #12]
  48994. *pxTopOfStack = ( StackType_t ) portTASK_RETURN_ADDRESS; /* LR */
  48995. 8014430: 4a0c ldr r2, [pc, #48] @ (8014464 <pxPortInitialiseStack+0x64>)
  48996. 8014432: 68fb ldr r3, [r7, #12]
  48997. 8014434: 601a str r2, [r3, #0]
  48998. /* Save code space by skipping register initialisation. */
  48999. pxTopOfStack -= 5; /* R12, R3, R2 and R1. */
  49000. 8014436: 68fb ldr r3, [r7, #12]
  49001. 8014438: 3b14 subs r3, #20
  49002. 801443a: 60fb str r3, [r7, #12]
  49003. *pxTopOfStack = ( StackType_t ) pvParameters; /* R0 */
  49004. 801443c: 687a ldr r2, [r7, #4]
  49005. 801443e: 68fb ldr r3, [r7, #12]
  49006. 8014440: 601a str r2, [r3, #0]
  49007. /* A save method is being used that requires each task to maintain its
  49008. own exec return value. */
  49009. pxTopOfStack--;
  49010. 8014442: 68fb ldr r3, [r7, #12]
  49011. 8014444: 3b04 subs r3, #4
  49012. 8014446: 60fb str r3, [r7, #12]
  49013. *pxTopOfStack = portINITIAL_EXC_RETURN;
  49014. 8014448: 68fb ldr r3, [r7, #12]
  49015. 801444a: f06f 0202 mvn.w r2, #2
  49016. 801444e: 601a str r2, [r3, #0]
  49017. pxTopOfStack -= 8; /* R11, R10, R9, R8, R7, R6, R5 and R4. */
  49018. 8014450: 68fb ldr r3, [r7, #12]
  49019. 8014452: 3b20 subs r3, #32
  49020. 8014454: 60fb str r3, [r7, #12]
  49021. return pxTopOfStack;
  49022. 8014456: 68fb ldr r3, [r7, #12]
  49023. }
  49024. 8014458: 4618 mov r0, r3
  49025. 801445a: 3714 adds r7, #20
  49026. 801445c: 46bd mov sp, r7
  49027. 801445e: f85d 7b04 ldr.w r7, [sp], #4
  49028. 8014462: 4770 bx lr
  49029. 8014464: 08014469 .word 0x08014469
  49030. 08014468 <prvTaskExitError>:
  49031. /*-----------------------------------------------------------*/
  49032. static void prvTaskExitError( void )
  49033. {
  49034. 8014468: b480 push {r7}
  49035. 801446a: b085 sub sp, #20
  49036. 801446c: af00 add r7, sp, #0
  49037. volatile uint32_t ulDummy = 0;
  49038. 801446e: 2300 movs r3, #0
  49039. 8014470: 607b str r3, [r7, #4]
  49040. its caller as there is nothing to return to. If a task wants to exit it
  49041. should instead call vTaskDelete( NULL ).
  49042. Artificially force an assert() to be triggered if configASSERT() is
  49043. defined, then stop here so application writers can catch the error. */
  49044. configASSERT( uxCriticalNesting == ~0UL );
  49045. 8014472: 4b13 ldr r3, [pc, #76] @ (80144c0 <prvTaskExitError+0x58>)
  49046. 8014474: 681b ldr r3, [r3, #0]
  49047. 8014476: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49048. 801447a: d00b beq.n 8014494 <prvTaskExitError+0x2c>
  49049. __asm volatile
  49050. 801447c: f04f 0350 mov.w r3, #80 @ 0x50
  49051. 8014480: f383 8811 msr BASEPRI, r3
  49052. 8014484: f3bf 8f6f isb sy
  49053. 8014488: f3bf 8f4f dsb sy
  49054. 801448c: 60fb str r3, [r7, #12]
  49055. }
  49056. 801448e: bf00 nop
  49057. 8014490: bf00 nop
  49058. 8014492: e7fd b.n 8014490 <prvTaskExitError+0x28>
  49059. __asm volatile
  49060. 8014494: f04f 0350 mov.w r3, #80 @ 0x50
  49061. 8014498: f383 8811 msr BASEPRI, r3
  49062. 801449c: f3bf 8f6f isb sy
  49063. 80144a0: f3bf 8f4f dsb sy
  49064. 80144a4: 60bb str r3, [r7, #8]
  49065. }
  49066. 80144a6: bf00 nop
  49067. portDISABLE_INTERRUPTS();
  49068. while( ulDummy == 0 )
  49069. 80144a8: bf00 nop
  49070. 80144aa: 687b ldr r3, [r7, #4]
  49071. 80144ac: 2b00 cmp r3, #0
  49072. 80144ae: d0fc beq.n 80144aa <prvTaskExitError+0x42>
  49073. about code appearing after this function is called - making ulDummy
  49074. volatile makes the compiler think the function could return and
  49075. therefore not output an 'unreachable code' warning for code that appears
  49076. after it. */
  49077. }
  49078. }
  49079. 80144b0: bf00 nop
  49080. 80144b2: bf00 nop
  49081. 80144b4: 3714 adds r7, #20
  49082. 80144b6: 46bd mov sp, r7
  49083. 80144b8: f85d 7b04 ldr.w r7, [sp], #4
  49084. 80144bc: 4770 bx lr
  49085. 80144be: bf00 nop
  49086. 80144c0: 24000034 .word 0x24000034
  49087. ...
  49088. 080144d0 <SVC_Handler>:
  49089. /*-----------------------------------------------------------*/
  49090. void vPortSVCHandler( void )
  49091. {
  49092. __asm volatile (
  49093. 80144d0: 4b07 ldr r3, [pc, #28] @ (80144f0 <pxCurrentTCBConst2>)
  49094. 80144d2: 6819 ldr r1, [r3, #0]
  49095. 80144d4: 6808 ldr r0, [r1, #0]
  49096. 80144d6: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  49097. 80144da: f380 8809 msr PSP, r0
  49098. 80144de: f3bf 8f6f isb sy
  49099. 80144e2: f04f 0000 mov.w r0, #0
  49100. 80144e6: f380 8811 msr BASEPRI, r0
  49101. 80144ea: 4770 bx lr
  49102. 80144ec: f3af 8000 nop.w
  49103. 080144f0 <pxCurrentTCBConst2>:
  49104. 80144f0: 24002df4 .word 0x24002df4
  49105. " bx r14 \n"
  49106. " \n"
  49107. " .align 4 \n"
  49108. "pxCurrentTCBConst2: .word pxCurrentTCB \n"
  49109. );
  49110. }
  49111. 80144f4: bf00 nop
  49112. 80144f6: bf00 nop
  49113. 080144f8 <prvPortStartFirstTask>:
  49114. {
  49115. /* Start the first task. This also clears the bit that indicates the FPU is
  49116. in use in case the FPU was used before the scheduler was started - which
  49117. would otherwise result in the unnecessary leaving of space in the SVC stack
  49118. for lazy saving of FPU registers. */
  49119. __asm volatile(
  49120. 80144f8: 4808 ldr r0, [pc, #32] @ (801451c <prvPortStartFirstTask+0x24>)
  49121. 80144fa: 6800 ldr r0, [r0, #0]
  49122. 80144fc: 6800 ldr r0, [r0, #0]
  49123. 80144fe: f380 8808 msr MSP, r0
  49124. 8014502: f04f 0000 mov.w r0, #0
  49125. 8014506: f380 8814 msr CONTROL, r0
  49126. 801450a: b662 cpsie i
  49127. 801450c: b661 cpsie f
  49128. 801450e: f3bf 8f4f dsb sy
  49129. 8014512: f3bf 8f6f isb sy
  49130. 8014516: df00 svc 0
  49131. 8014518: bf00 nop
  49132. " dsb \n"
  49133. " isb \n"
  49134. " svc 0 \n" /* System call to start first task. */
  49135. " nop \n"
  49136. );
  49137. }
  49138. 801451a: bf00 nop
  49139. 801451c: e000ed08 .word 0xe000ed08
  49140. 08014520 <xPortStartScheduler>:
  49141. /*
  49142. * See header file for description.
  49143. */
  49144. BaseType_t xPortStartScheduler( void )
  49145. {
  49146. 8014520: b580 push {r7, lr}
  49147. 8014522: b086 sub sp, #24
  49148. 8014524: af00 add r7, sp, #0
  49149. configASSERT( configMAX_SYSCALL_INTERRUPT_PRIORITY );
  49150. /* This port can be used on all revisions of the Cortex-M7 core other than
  49151. the r0p1 parts. r0p1 parts should use the port from the
  49152. /source/portable/GCC/ARM_CM7/r0p1 directory. */
  49153. configASSERT( portCPUID != portCORTEX_M7_r0p1_ID );
  49154. 8014526: 4b47 ldr r3, [pc, #284] @ (8014644 <xPortStartScheduler+0x124>)
  49155. 8014528: 681b ldr r3, [r3, #0]
  49156. 801452a: 4a47 ldr r2, [pc, #284] @ (8014648 <xPortStartScheduler+0x128>)
  49157. 801452c: 4293 cmp r3, r2
  49158. 801452e: d10b bne.n 8014548 <xPortStartScheduler+0x28>
  49159. __asm volatile
  49160. 8014530: f04f 0350 mov.w r3, #80 @ 0x50
  49161. 8014534: f383 8811 msr BASEPRI, r3
  49162. 8014538: f3bf 8f6f isb sy
  49163. 801453c: f3bf 8f4f dsb sy
  49164. 8014540: 613b str r3, [r7, #16]
  49165. }
  49166. 8014542: bf00 nop
  49167. 8014544: bf00 nop
  49168. 8014546: e7fd b.n 8014544 <xPortStartScheduler+0x24>
  49169. configASSERT( portCPUID != portCORTEX_M7_r0p0_ID );
  49170. 8014548: 4b3e ldr r3, [pc, #248] @ (8014644 <xPortStartScheduler+0x124>)
  49171. 801454a: 681b ldr r3, [r3, #0]
  49172. 801454c: 4a3f ldr r2, [pc, #252] @ (801464c <xPortStartScheduler+0x12c>)
  49173. 801454e: 4293 cmp r3, r2
  49174. 8014550: d10b bne.n 801456a <xPortStartScheduler+0x4a>
  49175. __asm volatile
  49176. 8014552: f04f 0350 mov.w r3, #80 @ 0x50
  49177. 8014556: f383 8811 msr BASEPRI, r3
  49178. 801455a: f3bf 8f6f isb sy
  49179. 801455e: f3bf 8f4f dsb sy
  49180. 8014562: 60fb str r3, [r7, #12]
  49181. }
  49182. 8014564: bf00 nop
  49183. 8014566: bf00 nop
  49184. 8014568: e7fd b.n 8014566 <xPortStartScheduler+0x46>
  49185. #if( configASSERT_DEFINED == 1 )
  49186. {
  49187. volatile uint32_t ulOriginalPriority;
  49188. volatile uint8_t * const pucFirstUserPriorityRegister = ( volatile uint8_t * const ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );
  49189. 801456a: 4b39 ldr r3, [pc, #228] @ (8014650 <xPortStartScheduler+0x130>)
  49190. 801456c: 617b str r3, [r7, #20]
  49191. functions can be called. ISR safe functions are those that end in
  49192. "FromISR". FreeRTOS maintains separate thread and ISR API functions to
  49193. ensure interrupt entry is as fast and simple as possible.
  49194. Save the interrupt priority value that is about to be clobbered. */
  49195. ulOriginalPriority = *pucFirstUserPriorityRegister;
  49196. 801456e: 697b ldr r3, [r7, #20]
  49197. 8014570: 781b ldrb r3, [r3, #0]
  49198. 8014572: b2db uxtb r3, r3
  49199. 8014574: 607b str r3, [r7, #4]
  49200. /* Determine the number of priority bits available. First write to all
  49201. possible bits. */
  49202. *pucFirstUserPriorityRegister = portMAX_8_BIT_VALUE;
  49203. 8014576: 697b ldr r3, [r7, #20]
  49204. 8014578: 22ff movs r2, #255 @ 0xff
  49205. 801457a: 701a strb r2, [r3, #0]
  49206. /* Read the value back to see how many bits stuck. */
  49207. ucMaxPriorityValue = *pucFirstUserPriorityRegister;
  49208. 801457c: 697b ldr r3, [r7, #20]
  49209. 801457e: 781b ldrb r3, [r3, #0]
  49210. 8014580: b2db uxtb r3, r3
  49211. 8014582: 70fb strb r3, [r7, #3]
  49212. /* Use the same mask on the maximum system call priority. */
  49213. ucMaxSysCallPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY & ucMaxPriorityValue;
  49214. 8014584: 78fb ldrb r3, [r7, #3]
  49215. 8014586: b2db uxtb r3, r3
  49216. 8014588: f003 0350 and.w r3, r3, #80 @ 0x50
  49217. 801458c: b2da uxtb r2, r3
  49218. 801458e: 4b31 ldr r3, [pc, #196] @ (8014654 <xPortStartScheduler+0x134>)
  49219. 8014590: 701a strb r2, [r3, #0]
  49220. /* Calculate the maximum acceptable priority group value for the number
  49221. of bits read back. */
  49222. ulMaxPRIGROUPValue = portMAX_PRIGROUP_BITS;
  49223. 8014592: 4b31 ldr r3, [pc, #196] @ (8014658 <xPortStartScheduler+0x138>)
  49224. 8014594: 2207 movs r2, #7
  49225. 8014596: 601a str r2, [r3, #0]
  49226. while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
  49227. 8014598: e009 b.n 80145ae <xPortStartScheduler+0x8e>
  49228. {
  49229. ulMaxPRIGROUPValue--;
  49230. 801459a: 4b2f ldr r3, [pc, #188] @ (8014658 <xPortStartScheduler+0x138>)
  49231. 801459c: 681b ldr r3, [r3, #0]
  49232. 801459e: 3b01 subs r3, #1
  49233. 80145a0: 4a2d ldr r2, [pc, #180] @ (8014658 <xPortStartScheduler+0x138>)
  49234. 80145a2: 6013 str r3, [r2, #0]
  49235. ucMaxPriorityValue <<= ( uint8_t ) 0x01;
  49236. 80145a4: 78fb ldrb r3, [r7, #3]
  49237. 80145a6: b2db uxtb r3, r3
  49238. 80145a8: 005b lsls r3, r3, #1
  49239. 80145aa: b2db uxtb r3, r3
  49240. 80145ac: 70fb strb r3, [r7, #3]
  49241. while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
  49242. 80145ae: 78fb ldrb r3, [r7, #3]
  49243. 80145b0: b2db uxtb r3, r3
  49244. 80145b2: f003 0380 and.w r3, r3, #128 @ 0x80
  49245. 80145b6: 2b80 cmp r3, #128 @ 0x80
  49246. 80145b8: d0ef beq.n 801459a <xPortStartScheduler+0x7a>
  49247. #ifdef configPRIO_BITS
  49248. {
  49249. /* Check the FreeRTOS configuration that defines the number of
  49250. priority bits matches the number of priority bits actually queried
  49251. from the hardware. */
  49252. configASSERT( ( portMAX_PRIGROUP_BITS - ulMaxPRIGROUPValue ) == configPRIO_BITS );
  49253. 80145ba: 4b27 ldr r3, [pc, #156] @ (8014658 <xPortStartScheduler+0x138>)
  49254. 80145bc: 681b ldr r3, [r3, #0]
  49255. 80145be: f1c3 0307 rsb r3, r3, #7
  49256. 80145c2: 2b04 cmp r3, #4
  49257. 80145c4: d00b beq.n 80145de <xPortStartScheduler+0xbe>
  49258. __asm volatile
  49259. 80145c6: f04f 0350 mov.w r3, #80 @ 0x50
  49260. 80145ca: f383 8811 msr BASEPRI, r3
  49261. 80145ce: f3bf 8f6f isb sy
  49262. 80145d2: f3bf 8f4f dsb sy
  49263. 80145d6: 60bb str r3, [r7, #8]
  49264. }
  49265. 80145d8: bf00 nop
  49266. 80145da: bf00 nop
  49267. 80145dc: e7fd b.n 80145da <xPortStartScheduler+0xba>
  49268. }
  49269. #endif
  49270. /* Shift the priority group value back to its position within the AIRCR
  49271. register. */
  49272. ulMaxPRIGROUPValue <<= portPRIGROUP_SHIFT;
  49273. 80145de: 4b1e ldr r3, [pc, #120] @ (8014658 <xPortStartScheduler+0x138>)
  49274. 80145e0: 681b ldr r3, [r3, #0]
  49275. 80145e2: 021b lsls r3, r3, #8
  49276. 80145e4: 4a1c ldr r2, [pc, #112] @ (8014658 <xPortStartScheduler+0x138>)
  49277. 80145e6: 6013 str r3, [r2, #0]
  49278. ulMaxPRIGROUPValue &= portPRIORITY_GROUP_MASK;
  49279. 80145e8: 4b1b ldr r3, [pc, #108] @ (8014658 <xPortStartScheduler+0x138>)
  49280. 80145ea: 681b ldr r3, [r3, #0]
  49281. 80145ec: f403 63e0 and.w r3, r3, #1792 @ 0x700
  49282. 80145f0: 4a19 ldr r2, [pc, #100] @ (8014658 <xPortStartScheduler+0x138>)
  49283. 80145f2: 6013 str r3, [r2, #0]
  49284. /* Restore the clobbered interrupt priority register to its original
  49285. value. */
  49286. *pucFirstUserPriorityRegister = ulOriginalPriority;
  49287. 80145f4: 687b ldr r3, [r7, #4]
  49288. 80145f6: b2da uxtb r2, r3
  49289. 80145f8: 697b ldr r3, [r7, #20]
  49290. 80145fa: 701a strb r2, [r3, #0]
  49291. }
  49292. #endif /* conifgASSERT_DEFINED */
  49293. /* Make PendSV and SysTick the lowest priority interrupts. */
  49294. portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;
  49295. 80145fc: 4b17 ldr r3, [pc, #92] @ (801465c <xPortStartScheduler+0x13c>)
  49296. 80145fe: 681b ldr r3, [r3, #0]
  49297. 8014600: 4a16 ldr r2, [pc, #88] @ (801465c <xPortStartScheduler+0x13c>)
  49298. 8014602: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
  49299. 8014606: 6013 str r3, [r2, #0]
  49300. portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;
  49301. 8014608: 4b14 ldr r3, [pc, #80] @ (801465c <xPortStartScheduler+0x13c>)
  49302. 801460a: 681b ldr r3, [r3, #0]
  49303. 801460c: 4a13 ldr r2, [pc, #76] @ (801465c <xPortStartScheduler+0x13c>)
  49304. 801460e: f043 4370 orr.w r3, r3, #4026531840 @ 0xf0000000
  49305. 8014612: 6013 str r3, [r2, #0]
  49306. /* Start the timer that generates the tick ISR. Interrupts are disabled
  49307. here already. */
  49308. vPortSetupTimerInterrupt();
  49309. 8014614: f000 f8da bl 80147cc <vPortSetupTimerInterrupt>
  49310. /* Initialise the critical nesting count ready for the first task. */
  49311. uxCriticalNesting = 0;
  49312. 8014618: 4b11 ldr r3, [pc, #68] @ (8014660 <xPortStartScheduler+0x140>)
  49313. 801461a: 2200 movs r2, #0
  49314. 801461c: 601a str r2, [r3, #0]
  49315. /* Ensure the VFP is enabled - it should be anyway. */
  49316. vPortEnableVFP();
  49317. 801461e: f000 f8f9 bl 8014814 <vPortEnableVFP>
  49318. /* Lazy save always. */
  49319. *( portFPCCR ) |= portASPEN_AND_LSPEN_BITS;
  49320. 8014622: 4b10 ldr r3, [pc, #64] @ (8014664 <xPortStartScheduler+0x144>)
  49321. 8014624: 681b ldr r3, [r3, #0]
  49322. 8014626: 4a0f ldr r2, [pc, #60] @ (8014664 <xPortStartScheduler+0x144>)
  49323. 8014628: f043 4340 orr.w r3, r3, #3221225472 @ 0xc0000000
  49324. 801462c: 6013 str r3, [r2, #0]
  49325. /* Start the first task. */
  49326. prvPortStartFirstTask();
  49327. 801462e: f7ff ff63 bl 80144f8 <prvPortStartFirstTask>
  49328. exit error function to prevent compiler warnings about a static function
  49329. not being called in the case that the application writer overrides this
  49330. functionality by defining configTASK_RETURN_ADDRESS. Call
  49331. vTaskSwitchContext() so link time optimisation does not remove the
  49332. symbol. */
  49333. vTaskSwitchContext();
  49334. 8014632: f7fe fcb7 bl 8012fa4 <vTaskSwitchContext>
  49335. prvTaskExitError();
  49336. 8014636: f7ff ff17 bl 8014468 <prvTaskExitError>
  49337. /* Should not get here! */
  49338. return 0;
  49339. 801463a: 2300 movs r3, #0
  49340. }
  49341. 801463c: 4618 mov r0, r3
  49342. 801463e: 3718 adds r7, #24
  49343. 8014640: 46bd mov sp, r7
  49344. 8014642: bd80 pop {r7, pc}
  49345. 8014644: e000ed00 .word 0xe000ed00
  49346. 8014648: 410fc271 .word 0x410fc271
  49347. 801464c: 410fc270 .word 0x410fc270
  49348. 8014650: e000e400 .word 0xe000e400
  49349. 8014654: 24003420 .word 0x24003420
  49350. 8014658: 24003424 .word 0x24003424
  49351. 801465c: e000ed20 .word 0xe000ed20
  49352. 8014660: 24000034 .word 0x24000034
  49353. 8014664: e000ef34 .word 0xe000ef34
  49354. 08014668 <vPortEnterCritical>:
  49355. configASSERT( uxCriticalNesting == 1000UL );
  49356. }
  49357. /*-----------------------------------------------------------*/
  49358. void vPortEnterCritical( void )
  49359. {
  49360. 8014668: b480 push {r7}
  49361. 801466a: b083 sub sp, #12
  49362. 801466c: af00 add r7, sp, #0
  49363. __asm volatile
  49364. 801466e: f04f 0350 mov.w r3, #80 @ 0x50
  49365. 8014672: f383 8811 msr BASEPRI, r3
  49366. 8014676: f3bf 8f6f isb sy
  49367. 801467a: f3bf 8f4f dsb sy
  49368. 801467e: 607b str r3, [r7, #4]
  49369. }
  49370. 8014680: bf00 nop
  49371. portDISABLE_INTERRUPTS();
  49372. uxCriticalNesting++;
  49373. 8014682: 4b10 ldr r3, [pc, #64] @ (80146c4 <vPortEnterCritical+0x5c>)
  49374. 8014684: 681b ldr r3, [r3, #0]
  49375. 8014686: 3301 adds r3, #1
  49376. 8014688: 4a0e ldr r2, [pc, #56] @ (80146c4 <vPortEnterCritical+0x5c>)
  49377. 801468a: 6013 str r3, [r2, #0]
  49378. /* This is not the interrupt safe version of the enter critical function so
  49379. assert() if it is being called from an interrupt context. Only API
  49380. functions that end in "FromISR" can be used in an interrupt. Only assert if
  49381. the critical nesting count is 1 to protect against recursive calls if the
  49382. assert function also uses a critical section. */
  49383. if( uxCriticalNesting == 1 )
  49384. 801468c: 4b0d ldr r3, [pc, #52] @ (80146c4 <vPortEnterCritical+0x5c>)
  49385. 801468e: 681b ldr r3, [r3, #0]
  49386. 8014690: 2b01 cmp r3, #1
  49387. 8014692: d110 bne.n 80146b6 <vPortEnterCritical+0x4e>
  49388. {
  49389. configASSERT( ( portNVIC_INT_CTRL_REG & portVECTACTIVE_MASK ) == 0 );
  49390. 8014694: 4b0c ldr r3, [pc, #48] @ (80146c8 <vPortEnterCritical+0x60>)
  49391. 8014696: 681b ldr r3, [r3, #0]
  49392. 8014698: b2db uxtb r3, r3
  49393. 801469a: 2b00 cmp r3, #0
  49394. 801469c: d00b beq.n 80146b6 <vPortEnterCritical+0x4e>
  49395. __asm volatile
  49396. 801469e: f04f 0350 mov.w r3, #80 @ 0x50
  49397. 80146a2: f383 8811 msr BASEPRI, r3
  49398. 80146a6: f3bf 8f6f isb sy
  49399. 80146aa: f3bf 8f4f dsb sy
  49400. 80146ae: 603b str r3, [r7, #0]
  49401. }
  49402. 80146b0: bf00 nop
  49403. 80146b2: bf00 nop
  49404. 80146b4: e7fd b.n 80146b2 <vPortEnterCritical+0x4a>
  49405. }
  49406. }
  49407. 80146b6: bf00 nop
  49408. 80146b8: 370c adds r7, #12
  49409. 80146ba: 46bd mov sp, r7
  49410. 80146bc: f85d 7b04 ldr.w r7, [sp], #4
  49411. 80146c0: 4770 bx lr
  49412. 80146c2: bf00 nop
  49413. 80146c4: 24000034 .word 0x24000034
  49414. 80146c8: e000ed04 .word 0xe000ed04
  49415. 080146cc <vPortExitCritical>:
  49416. /*-----------------------------------------------------------*/
  49417. void vPortExitCritical( void )
  49418. {
  49419. 80146cc: b480 push {r7}
  49420. 80146ce: b083 sub sp, #12
  49421. 80146d0: af00 add r7, sp, #0
  49422. configASSERT( uxCriticalNesting );
  49423. 80146d2: 4b12 ldr r3, [pc, #72] @ (801471c <vPortExitCritical+0x50>)
  49424. 80146d4: 681b ldr r3, [r3, #0]
  49425. 80146d6: 2b00 cmp r3, #0
  49426. 80146d8: d10b bne.n 80146f2 <vPortExitCritical+0x26>
  49427. __asm volatile
  49428. 80146da: f04f 0350 mov.w r3, #80 @ 0x50
  49429. 80146de: f383 8811 msr BASEPRI, r3
  49430. 80146e2: f3bf 8f6f isb sy
  49431. 80146e6: f3bf 8f4f dsb sy
  49432. 80146ea: 607b str r3, [r7, #4]
  49433. }
  49434. 80146ec: bf00 nop
  49435. 80146ee: bf00 nop
  49436. 80146f0: e7fd b.n 80146ee <vPortExitCritical+0x22>
  49437. uxCriticalNesting--;
  49438. 80146f2: 4b0a ldr r3, [pc, #40] @ (801471c <vPortExitCritical+0x50>)
  49439. 80146f4: 681b ldr r3, [r3, #0]
  49440. 80146f6: 3b01 subs r3, #1
  49441. 80146f8: 4a08 ldr r2, [pc, #32] @ (801471c <vPortExitCritical+0x50>)
  49442. 80146fa: 6013 str r3, [r2, #0]
  49443. if( uxCriticalNesting == 0 )
  49444. 80146fc: 4b07 ldr r3, [pc, #28] @ (801471c <vPortExitCritical+0x50>)
  49445. 80146fe: 681b ldr r3, [r3, #0]
  49446. 8014700: 2b00 cmp r3, #0
  49447. 8014702: d105 bne.n 8014710 <vPortExitCritical+0x44>
  49448. 8014704: 2300 movs r3, #0
  49449. 8014706: 603b str r3, [r7, #0]
  49450. __asm volatile
  49451. 8014708: 683b ldr r3, [r7, #0]
  49452. 801470a: f383 8811 msr BASEPRI, r3
  49453. }
  49454. 801470e: bf00 nop
  49455. {
  49456. portENABLE_INTERRUPTS();
  49457. }
  49458. }
  49459. 8014710: bf00 nop
  49460. 8014712: 370c adds r7, #12
  49461. 8014714: 46bd mov sp, r7
  49462. 8014716: f85d 7b04 ldr.w r7, [sp], #4
  49463. 801471a: 4770 bx lr
  49464. 801471c: 24000034 .word 0x24000034
  49465. 08014720 <PendSV_Handler>:
  49466. void xPortPendSVHandler( void )
  49467. {
  49468. /* This is a naked function. */
  49469. __asm volatile
  49470. 8014720: f3ef 8009 mrs r0, PSP
  49471. 8014724: f3bf 8f6f isb sy
  49472. 8014728: 4b15 ldr r3, [pc, #84] @ (8014780 <pxCurrentTCBConst>)
  49473. 801472a: 681a ldr r2, [r3, #0]
  49474. 801472c: f01e 0f10 tst.w lr, #16
  49475. 8014730: bf08 it eq
  49476. 8014732: ed20 8a10 vstmdbeq r0!, {s16-s31}
  49477. 8014736: e920 4ff0 stmdb r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  49478. 801473a: 6010 str r0, [r2, #0]
  49479. 801473c: e92d 0009 stmdb sp!, {r0, r3}
  49480. 8014740: f04f 0050 mov.w r0, #80 @ 0x50
  49481. 8014744: f380 8811 msr BASEPRI, r0
  49482. 8014748: f3bf 8f4f dsb sy
  49483. 801474c: f3bf 8f6f isb sy
  49484. 8014750: f7fe fc28 bl 8012fa4 <vTaskSwitchContext>
  49485. 8014754: f04f 0000 mov.w r0, #0
  49486. 8014758: f380 8811 msr BASEPRI, r0
  49487. 801475c: bc09 pop {r0, r3}
  49488. 801475e: 6819 ldr r1, [r3, #0]
  49489. 8014760: 6808 ldr r0, [r1, #0]
  49490. 8014762: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  49491. 8014766: f01e 0f10 tst.w lr, #16
  49492. 801476a: bf08 it eq
  49493. 801476c: ecb0 8a10 vldmiaeq r0!, {s16-s31}
  49494. 8014770: f380 8809 msr PSP, r0
  49495. 8014774: f3bf 8f6f isb sy
  49496. 8014778: 4770 bx lr
  49497. 801477a: bf00 nop
  49498. 801477c: f3af 8000 nop.w
  49499. 08014780 <pxCurrentTCBConst>:
  49500. 8014780: 24002df4 .word 0x24002df4
  49501. " \n"
  49502. " .align 4 \n"
  49503. "pxCurrentTCBConst: .word pxCurrentTCB \n"
  49504. ::"i"(configMAX_SYSCALL_INTERRUPT_PRIORITY)
  49505. );
  49506. }
  49507. 8014784: bf00 nop
  49508. 8014786: bf00 nop
  49509. 08014788 <xPortSysTickHandler>:
  49510. /*-----------------------------------------------------------*/
  49511. void xPortSysTickHandler( void )
  49512. {
  49513. 8014788: b580 push {r7, lr}
  49514. 801478a: b082 sub sp, #8
  49515. 801478c: af00 add r7, sp, #0
  49516. __asm volatile
  49517. 801478e: f04f 0350 mov.w r3, #80 @ 0x50
  49518. 8014792: f383 8811 msr BASEPRI, r3
  49519. 8014796: f3bf 8f6f isb sy
  49520. 801479a: f3bf 8f4f dsb sy
  49521. 801479e: 607b str r3, [r7, #4]
  49522. }
  49523. 80147a0: bf00 nop
  49524. save and then restore the interrupt mask value as its value is already
  49525. known. */
  49526. portDISABLE_INTERRUPTS();
  49527. {
  49528. /* Increment the RTOS tick. */
  49529. if( xTaskIncrementTick() != pdFALSE )
  49530. 80147a2: f7fe fb45 bl 8012e30 <xTaskIncrementTick>
  49531. 80147a6: 4603 mov r3, r0
  49532. 80147a8: 2b00 cmp r3, #0
  49533. 80147aa: d003 beq.n 80147b4 <xPortSysTickHandler+0x2c>
  49534. {
  49535. /* A context switch is required. Context switching is performed in
  49536. the PendSV interrupt. Pend the PendSV interrupt. */
  49537. portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT;
  49538. 80147ac: 4b06 ldr r3, [pc, #24] @ (80147c8 <xPortSysTickHandler+0x40>)
  49539. 80147ae: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49540. 80147b2: 601a str r2, [r3, #0]
  49541. 80147b4: 2300 movs r3, #0
  49542. 80147b6: 603b str r3, [r7, #0]
  49543. __asm volatile
  49544. 80147b8: 683b ldr r3, [r7, #0]
  49545. 80147ba: f383 8811 msr BASEPRI, r3
  49546. }
  49547. 80147be: bf00 nop
  49548. }
  49549. }
  49550. portENABLE_INTERRUPTS();
  49551. }
  49552. 80147c0: bf00 nop
  49553. 80147c2: 3708 adds r7, #8
  49554. 80147c4: 46bd mov sp, r7
  49555. 80147c6: bd80 pop {r7, pc}
  49556. 80147c8: e000ed04 .word 0xe000ed04
  49557. 080147cc <vPortSetupTimerInterrupt>:
  49558. /*
  49559. * Setup the systick timer to generate the tick interrupts at the required
  49560. * frequency.
  49561. */
  49562. __attribute__(( weak )) void vPortSetupTimerInterrupt( void )
  49563. {
  49564. 80147cc: b480 push {r7}
  49565. 80147ce: af00 add r7, sp, #0
  49566. ulStoppedTimerCompensation = portMISSED_COUNTS_FACTOR / ( configCPU_CLOCK_HZ / configSYSTICK_CLOCK_HZ );
  49567. }
  49568. #endif /* configUSE_TICKLESS_IDLE */
  49569. /* Stop and clear the SysTick. */
  49570. portNVIC_SYSTICK_CTRL_REG = 0UL;
  49571. 80147d0: 4b0b ldr r3, [pc, #44] @ (8014800 <vPortSetupTimerInterrupt+0x34>)
  49572. 80147d2: 2200 movs r2, #0
  49573. 80147d4: 601a str r2, [r3, #0]
  49574. portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL;
  49575. 80147d6: 4b0b ldr r3, [pc, #44] @ (8014804 <vPortSetupTimerInterrupt+0x38>)
  49576. 80147d8: 2200 movs r2, #0
  49577. 80147da: 601a str r2, [r3, #0]
  49578. /* Configure SysTick to interrupt at the requested rate. */
  49579. portNVIC_SYSTICK_LOAD_REG = ( configSYSTICK_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL;
  49580. 80147dc: 4b0a ldr r3, [pc, #40] @ (8014808 <vPortSetupTimerInterrupt+0x3c>)
  49581. 80147de: 681b ldr r3, [r3, #0]
  49582. 80147e0: 4a0a ldr r2, [pc, #40] @ (801480c <vPortSetupTimerInterrupt+0x40>)
  49583. 80147e2: fba2 2303 umull r2, r3, r2, r3
  49584. 80147e6: 099b lsrs r3, r3, #6
  49585. 80147e8: 4a09 ldr r2, [pc, #36] @ (8014810 <vPortSetupTimerInterrupt+0x44>)
  49586. 80147ea: 3b01 subs r3, #1
  49587. 80147ec: 6013 str r3, [r2, #0]
  49588. portNVIC_SYSTICK_CTRL_REG = ( portNVIC_SYSTICK_CLK_BIT | portNVIC_SYSTICK_INT_BIT | portNVIC_SYSTICK_ENABLE_BIT );
  49589. 80147ee: 4b04 ldr r3, [pc, #16] @ (8014800 <vPortSetupTimerInterrupt+0x34>)
  49590. 80147f0: 2207 movs r2, #7
  49591. 80147f2: 601a str r2, [r3, #0]
  49592. }
  49593. 80147f4: bf00 nop
  49594. 80147f6: 46bd mov sp, r7
  49595. 80147f8: f85d 7b04 ldr.w r7, [sp], #4
  49596. 80147fc: 4770 bx lr
  49597. 80147fe: bf00 nop
  49598. 8014800: e000e010 .word 0xe000e010
  49599. 8014804: e000e018 .word 0xe000e018
  49600. 8014808: 2400000c .word 0x2400000c
  49601. 801480c: 10624dd3 .word 0x10624dd3
  49602. 8014810: e000e014 .word 0xe000e014
  49603. 08014814 <vPortEnableVFP>:
  49604. /*-----------------------------------------------------------*/
  49605. /* This is a naked function. */
  49606. static void vPortEnableVFP( void )
  49607. {
  49608. __asm volatile
  49609. 8014814: f8df 000c ldr.w r0, [pc, #12] @ 8014824 <vPortEnableVFP+0x10>
  49610. 8014818: 6801 ldr r1, [r0, #0]
  49611. 801481a: f441 0170 orr.w r1, r1, #15728640 @ 0xf00000
  49612. 801481e: 6001 str r1, [r0, #0]
  49613. 8014820: 4770 bx lr
  49614. " \n"
  49615. " orr r1, r1, #( 0xf << 20 ) \n" /* Enable CP10 and CP11 coprocessors, then save back. */
  49616. " str r1, [r0] \n"
  49617. " bx r14 "
  49618. );
  49619. }
  49620. 8014822: bf00 nop
  49621. 8014824: e000ed88 .word 0xe000ed88
  49622. 08014828 <vPortValidateInterruptPriority>:
  49623. /*-----------------------------------------------------------*/
  49624. #if( configASSERT_DEFINED == 1 )
  49625. void vPortValidateInterruptPriority( void )
  49626. {
  49627. 8014828: b480 push {r7}
  49628. 801482a: b085 sub sp, #20
  49629. 801482c: af00 add r7, sp, #0
  49630. uint32_t ulCurrentInterrupt;
  49631. uint8_t ucCurrentPriority;
  49632. /* Obtain the number of the currently executing interrupt. */
  49633. __asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) :: "memory" );
  49634. 801482e: f3ef 8305 mrs r3, IPSR
  49635. 8014832: 60fb str r3, [r7, #12]
  49636. /* Is the interrupt number a user defined interrupt? */
  49637. if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER )
  49638. 8014834: 68fb ldr r3, [r7, #12]
  49639. 8014836: 2b0f cmp r3, #15
  49640. 8014838: d915 bls.n 8014866 <vPortValidateInterruptPriority+0x3e>
  49641. {
  49642. /* Look up the interrupt's priority. */
  49643. ucCurrentPriority = pcInterruptPriorityRegisters[ ulCurrentInterrupt ];
  49644. 801483a: 4a18 ldr r2, [pc, #96] @ (801489c <vPortValidateInterruptPriority+0x74>)
  49645. 801483c: 68fb ldr r3, [r7, #12]
  49646. 801483e: 4413 add r3, r2
  49647. 8014840: 781b ldrb r3, [r3, #0]
  49648. 8014842: 72fb strb r3, [r7, #11]
  49649. interrupt entry is as fast and simple as possible.
  49650. The following links provide detailed information:
  49651. http://www.freertos.org/RTOS-Cortex-M3-M4.html
  49652. http://www.freertos.org/FAQHelp.html */
  49653. configASSERT( ucCurrentPriority >= ucMaxSysCallPriority );
  49654. 8014844: 4b16 ldr r3, [pc, #88] @ (80148a0 <vPortValidateInterruptPriority+0x78>)
  49655. 8014846: 781b ldrb r3, [r3, #0]
  49656. 8014848: 7afa ldrb r2, [r7, #11]
  49657. 801484a: 429a cmp r2, r3
  49658. 801484c: d20b bcs.n 8014866 <vPortValidateInterruptPriority+0x3e>
  49659. __asm volatile
  49660. 801484e: f04f 0350 mov.w r3, #80 @ 0x50
  49661. 8014852: f383 8811 msr BASEPRI, r3
  49662. 8014856: f3bf 8f6f isb sy
  49663. 801485a: f3bf 8f4f dsb sy
  49664. 801485e: 607b str r3, [r7, #4]
  49665. }
  49666. 8014860: bf00 nop
  49667. 8014862: bf00 nop
  49668. 8014864: e7fd b.n 8014862 <vPortValidateInterruptPriority+0x3a>
  49669. configuration then the correct setting can be achieved on all Cortex-M
  49670. devices by calling NVIC_SetPriorityGrouping( 0 ); before starting the
  49671. scheduler. Note however that some vendor specific peripheral libraries
  49672. assume a non-zero priority group setting, in which cases using a value
  49673. of zero will result in unpredictable behaviour. */
  49674. configASSERT( ( portAIRCR_REG & portPRIORITY_GROUP_MASK ) <= ulMaxPRIGROUPValue );
  49675. 8014866: 4b0f ldr r3, [pc, #60] @ (80148a4 <vPortValidateInterruptPriority+0x7c>)
  49676. 8014868: 681b ldr r3, [r3, #0]
  49677. 801486a: f403 62e0 and.w r2, r3, #1792 @ 0x700
  49678. 801486e: 4b0e ldr r3, [pc, #56] @ (80148a8 <vPortValidateInterruptPriority+0x80>)
  49679. 8014870: 681b ldr r3, [r3, #0]
  49680. 8014872: 429a cmp r2, r3
  49681. 8014874: d90b bls.n 801488e <vPortValidateInterruptPriority+0x66>
  49682. __asm volatile
  49683. 8014876: f04f 0350 mov.w r3, #80 @ 0x50
  49684. 801487a: f383 8811 msr BASEPRI, r3
  49685. 801487e: f3bf 8f6f isb sy
  49686. 8014882: f3bf 8f4f dsb sy
  49687. 8014886: 603b str r3, [r7, #0]
  49688. }
  49689. 8014888: bf00 nop
  49690. 801488a: bf00 nop
  49691. 801488c: e7fd b.n 801488a <vPortValidateInterruptPriority+0x62>
  49692. }
  49693. 801488e: bf00 nop
  49694. 8014890: 3714 adds r7, #20
  49695. 8014892: 46bd mov sp, r7
  49696. 8014894: f85d 7b04 ldr.w r7, [sp], #4
  49697. 8014898: 4770 bx lr
  49698. 801489a: bf00 nop
  49699. 801489c: e000e3f0 .word 0xe000e3f0
  49700. 80148a0: 24003420 .word 0x24003420
  49701. 80148a4: e000ed0c .word 0xe000ed0c
  49702. 80148a8: 24003424 .word 0x24003424
  49703. 080148ac <pvPortMalloc>:
  49704. static size_t xBlockAllocatedBit = 0;
  49705. /*-----------------------------------------------------------*/
  49706. void *pvPortMalloc( size_t xWantedSize )
  49707. {
  49708. 80148ac: b580 push {r7, lr}
  49709. 80148ae: b08a sub sp, #40 @ 0x28
  49710. 80148b0: af00 add r7, sp, #0
  49711. 80148b2: 6078 str r0, [r7, #4]
  49712. BlockLink_t *pxBlock, *pxPreviousBlock, *pxNewBlockLink;
  49713. void *pvReturn = NULL;
  49714. 80148b4: 2300 movs r3, #0
  49715. 80148b6: 61fb str r3, [r7, #28]
  49716. vTaskSuspendAll();
  49717. 80148b8: f7fe f9ec bl 8012c94 <vTaskSuspendAll>
  49718. {
  49719. /* If this is the first call to malloc then the heap will require
  49720. initialisation to setup the list of free blocks. */
  49721. if( pxEnd == NULL )
  49722. 80148bc: 4b5c ldr r3, [pc, #368] @ (8014a30 <pvPortMalloc+0x184>)
  49723. 80148be: 681b ldr r3, [r3, #0]
  49724. 80148c0: 2b00 cmp r3, #0
  49725. 80148c2: d101 bne.n 80148c8 <pvPortMalloc+0x1c>
  49726. {
  49727. prvHeapInit();
  49728. 80148c4: f000 f924 bl 8014b10 <prvHeapInit>
  49729. /* Check the requested block size is not so large that the top bit is
  49730. set. The top bit of the block size member of the BlockLink_t structure
  49731. is used to determine who owns the block - the application or the
  49732. kernel, so it must be free. */
  49733. if( ( xWantedSize & xBlockAllocatedBit ) == 0 )
  49734. 80148c8: 4b5a ldr r3, [pc, #360] @ (8014a34 <pvPortMalloc+0x188>)
  49735. 80148ca: 681a ldr r2, [r3, #0]
  49736. 80148cc: 687b ldr r3, [r7, #4]
  49737. 80148ce: 4013 ands r3, r2
  49738. 80148d0: 2b00 cmp r3, #0
  49739. 80148d2: f040 8095 bne.w 8014a00 <pvPortMalloc+0x154>
  49740. {
  49741. /* The wanted size is increased so it can contain a BlockLink_t
  49742. structure in addition to the requested amount of bytes. */
  49743. if( xWantedSize > 0 )
  49744. 80148d6: 687b ldr r3, [r7, #4]
  49745. 80148d8: 2b00 cmp r3, #0
  49746. 80148da: d01e beq.n 801491a <pvPortMalloc+0x6e>
  49747. {
  49748. xWantedSize += xHeapStructSize;
  49749. 80148dc: 2208 movs r2, #8
  49750. 80148de: 687b ldr r3, [r7, #4]
  49751. 80148e0: 4413 add r3, r2
  49752. 80148e2: 607b str r3, [r7, #4]
  49753. /* Ensure that blocks are always aligned to the required number
  49754. of bytes. */
  49755. if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 )
  49756. 80148e4: 687b ldr r3, [r7, #4]
  49757. 80148e6: f003 0307 and.w r3, r3, #7
  49758. 80148ea: 2b00 cmp r3, #0
  49759. 80148ec: d015 beq.n 801491a <pvPortMalloc+0x6e>
  49760. {
  49761. /* Byte alignment required. */
  49762. xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
  49763. 80148ee: 687b ldr r3, [r7, #4]
  49764. 80148f0: f023 0307 bic.w r3, r3, #7
  49765. 80148f4: 3308 adds r3, #8
  49766. 80148f6: 607b str r3, [r7, #4]
  49767. configASSERT( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) == 0 );
  49768. 80148f8: 687b ldr r3, [r7, #4]
  49769. 80148fa: f003 0307 and.w r3, r3, #7
  49770. 80148fe: 2b00 cmp r3, #0
  49771. 8014900: d00b beq.n 801491a <pvPortMalloc+0x6e>
  49772. __asm volatile
  49773. 8014902: f04f 0350 mov.w r3, #80 @ 0x50
  49774. 8014906: f383 8811 msr BASEPRI, r3
  49775. 801490a: f3bf 8f6f isb sy
  49776. 801490e: f3bf 8f4f dsb sy
  49777. 8014912: 617b str r3, [r7, #20]
  49778. }
  49779. 8014914: bf00 nop
  49780. 8014916: bf00 nop
  49781. 8014918: e7fd b.n 8014916 <pvPortMalloc+0x6a>
  49782. else
  49783. {
  49784. mtCOVERAGE_TEST_MARKER();
  49785. }
  49786. if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) )
  49787. 801491a: 687b ldr r3, [r7, #4]
  49788. 801491c: 2b00 cmp r3, #0
  49789. 801491e: d06f beq.n 8014a00 <pvPortMalloc+0x154>
  49790. 8014920: 4b45 ldr r3, [pc, #276] @ (8014a38 <pvPortMalloc+0x18c>)
  49791. 8014922: 681b ldr r3, [r3, #0]
  49792. 8014924: 687a ldr r2, [r7, #4]
  49793. 8014926: 429a cmp r2, r3
  49794. 8014928: d86a bhi.n 8014a00 <pvPortMalloc+0x154>
  49795. {
  49796. /* Traverse the list from the start (lowest address) block until
  49797. one of adequate size is found. */
  49798. pxPreviousBlock = &xStart;
  49799. 801492a: 4b44 ldr r3, [pc, #272] @ (8014a3c <pvPortMalloc+0x190>)
  49800. 801492c: 623b str r3, [r7, #32]
  49801. pxBlock = xStart.pxNextFreeBlock;
  49802. 801492e: 4b43 ldr r3, [pc, #268] @ (8014a3c <pvPortMalloc+0x190>)
  49803. 8014930: 681b ldr r3, [r3, #0]
  49804. 8014932: 627b str r3, [r7, #36] @ 0x24
  49805. while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
  49806. 8014934: e004 b.n 8014940 <pvPortMalloc+0x94>
  49807. {
  49808. pxPreviousBlock = pxBlock;
  49809. 8014936: 6a7b ldr r3, [r7, #36] @ 0x24
  49810. 8014938: 623b str r3, [r7, #32]
  49811. pxBlock = pxBlock->pxNextFreeBlock;
  49812. 801493a: 6a7b ldr r3, [r7, #36] @ 0x24
  49813. 801493c: 681b ldr r3, [r3, #0]
  49814. 801493e: 627b str r3, [r7, #36] @ 0x24
  49815. while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
  49816. 8014940: 6a7b ldr r3, [r7, #36] @ 0x24
  49817. 8014942: 685b ldr r3, [r3, #4]
  49818. 8014944: 687a ldr r2, [r7, #4]
  49819. 8014946: 429a cmp r2, r3
  49820. 8014948: d903 bls.n 8014952 <pvPortMalloc+0xa6>
  49821. 801494a: 6a7b ldr r3, [r7, #36] @ 0x24
  49822. 801494c: 681b ldr r3, [r3, #0]
  49823. 801494e: 2b00 cmp r3, #0
  49824. 8014950: d1f1 bne.n 8014936 <pvPortMalloc+0x8a>
  49825. }
  49826. /* If the end marker was reached then a block of adequate size
  49827. was not found. */
  49828. if( pxBlock != pxEnd )
  49829. 8014952: 4b37 ldr r3, [pc, #220] @ (8014a30 <pvPortMalloc+0x184>)
  49830. 8014954: 681b ldr r3, [r3, #0]
  49831. 8014956: 6a7a ldr r2, [r7, #36] @ 0x24
  49832. 8014958: 429a cmp r2, r3
  49833. 801495a: d051 beq.n 8014a00 <pvPortMalloc+0x154>
  49834. {
  49835. /* Return the memory space pointed to - jumping over the
  49836. BlockLink_t structure at its start. */
  49837. pvReturn = ( void * ) ( ( ( uint8_t * ) pxPreviousBlock->pxNextFreeBlock ) + xHeapStructSize );
  49838. 801495c: 6a3b ldr r3, [r7, #32]
  49839. 801495e: 681b ldr r3, [r3, #0]
  49840. 8014960: 2208 movs r2, #8
  49841. 8014962: 4413 add r3, r2
  49842. 8014964: 61fb str r3, [r7, #28]
  49843. /* This block is being returned for use so must be taken out
  49844. of the list of free blocks. */
  49845. pxPreviousBlock->pxNextFreeBlock = pxBlock->pxNextFreeBlock;
  49846. 8014966: 6a7b ldr r3, [r7, #36] @ 0x24
  49847. 8014968: 681a ldr r2, [r3, #0]
  49848. 801496a: 6a3b ldr r3, [r7, #32]
  49849. 801496c: 601a str r2, [r3, #0]
  49850. /* If the block is larger than required it can be split into
  49851. two. */
  49852. if( ( pxBlock->xBlockSize - xWantedSize ) > heapMINIMUM_BLOCK_SIZE )
  49853. 801496e: 6a7b ldr r3, [r7, #36] @ 0x24
  49854. 8014970: 685a ldr r2, [r3, #4]
  49855. 8014972: 687b ldr r3, [r7, #4]
  49856. 8014974: 1ad2 subs r2, r2, r3
  49857. 8014976: 2308 movs r3, #8
  49858. 8014978: 005b lsls r3, r3, #1
  49859. 801497a: 429a cmp r2, r3
  49860. 801497c: d920 bls.n 80149c0 <pvPortMalloc+0x114>
  49861. {
  49862. /* This block is to be split into two. Create a new
  49863. block following the number of bytes requested. The void
  49864. cast is used to prevent byte alignment warnings from the
  49865. compiler. */
  49866. pxNewBlockLink = ( void * ) ( ( ( uint8_t * ) pxBlock ) + xWantedSize );
  49867. 801497e: 6a7a ldr r2, [r7, #36] @ 0x24
  49868. 8014980: 687b ldr r3, [r7, #4]
  49869. 8014982: 4413 add r3, r2
  49870. 8014984: 61bb str r3, [r7, #24]
  49871. configASSERT( ( ( ( size_t ) pxNewBlockLink ) & portBYTE_ALIGNMENT_MASK ) == 0 );
  49872. 8014986: 69bb ldr r3, [r7, #24]
  49873. 8014988: f003 0307 and.w r3, r3, #7
  49874. 801498c: 2b00 cmp r3, #0
  49875. 801498e: d00b beq.n 80149a8 <pvPortMalloc+0xfc>
  49876. __asm volatile
  49877. 8014990: f04f 0350 mov.w r3, #80 @ 0x50
  49878. 8014994: f383 8811 msr BASEPRI, r3
  49879. 8014998: f3bf 8f6f isb sy
  49880. 801499c: f3bf 8f4f dsb sy
  49881. 80149a0: 613b str r3, [r7, #16]
  49882. }
  49883. 80149a2: bf00 nop
  49884. 80149a4: bf00 nop
  49885. 80149a6: e7fd b.n 80149a4 <pvPortMalloc+0xf8>
  49886. /* Calculate the sizes of two blocks split from the
  49887. single block. */
  49888. pxNewBlockLink->xBlockSize = pxBlock->xBlockSize - xWantedSize;
  49889. 80149a8: 6a7b ldr r3, [r7, #36] @ 0x24
  49890. 80149aa: 685a ldr r2, [r3, #4]
  49891. 80149ac: 687b ldr r3, [r7, #4]
  49892. 80149ae: 1ad2 subs r2, r2, r3
  49893. 80149b0: 69bb ldr r3, [r7, #24]
  49894. 80149b2: 605a str r2, [r3, #4]
  49895. pxBlock->xBlockSize = xWantedSize;
  49896. 80149b4: 6a7b ldr r3, [r7, #36] @ 0x24
  49897. 80149b6: 687a ldr r2, [r7, #4]
  49898. 80149b8: 605a str r2, [r3, #4]
  49899. /* Insert the new block into the list of free blocks. */
  49900. prvInsertBlockIntoFreeList( pxNewBlockLink );
  49901. 80149ba: 69b8 ldr r0, [r7, #24]
  49902. 80149bc: f000 f90a bl 8014bd4 <prvInsertBlockIntoFreeList>
  49903. else
  49904. {
  49905. mtCOVERAGE_TEST_MARKER();
  49906. }
  49907. xFreeBytesRemaining -= pxBlock->xBlockSize;
  49908. 80149c0: 4b1d ldr r3, [pc, #116] @ (8014a38 <pvPortMalloc+0x18c>)
  49909. 80149c2: 681a ldr r2, [r3, #0]
  49910. 80149c4: 6a7b ldr r3, [r7, #36] @ 0x24
  49911. 80149c6: 685b ldr r3, [r3, #4]
  49912. 80149c8: 1ad3 subs r3, r2, r3
  49913. 80149ca: 4a1b ldr r2, [pc, #108] @ (8014a38 <pvPortMalloc+0x18c>)
  49914. 80149cc: 6013 str r3, [r2, #0]
  49915. if( xFreeBytesRemaining < xMinimumEverFreeBytesRemaining )
  49916. 80149ce: 4b1a ldr r3, [pc, #104] @ (8014a38 <pvPortMalloc+0x18c>)
  49917. 80149d0: 681a ldr r2, [r3, #0]
  49918. 80149d2: 4b1b ldr r3, [pc, #108] @ (8014a40 <pvPortMalloc+0x194>)
  49919. 80149d4: 681b ldr r3, [r3, #0]
  49920. 80149d6: 429a cmp r2, r3
  49921. 80149d8: d203 bcs.n 80149e2 <pvPortMalloc+0x136>
  49922. {
  49923. xMinimumEverFreeBytesRemaining = xFreeBytesRemaining;
  49924. 80149da: 4b17 ldr r3, [pc, #92] @ (8014a38 <pvPortMalloc+0x18c>)
  49925. 80149dc: 681b ldr r3, [r3, #0]
  49926. 80149de: 4a18 ldr r2, [pc, #96] @ (8014a40 <pvPortMalloc+0x194>)
  49927. 80149e0: 6013 str r3, [r2, #0]
  49928. mtCOVERAGE_TEST_MARKER();
  49929. }
  49930. /* The block is being returned - it is allocated and owned
  49931. by the application and has no "next" block. */
  49932. pxBlock->xBlockSize |= xBlockAllocatedBit;
  49933. 80149e2: 6a7b ldr r3, [r7, #36] @ 0x24
  49934. 80149e4: 685a ldr r2, [r3, #4]
  49935. 80149e6: 4b13 ldr r3, [pc, #76] @ (8014a34 <pvPortMalloc+0x188>)
  49936. 80149e8: 681b ldr r3, [r3, #0]
  49937. 80149ea: 431a orrs r2, r3
  49938. 80149ec: 6a7b ldr r3, [r7, #36] @ 0x24
  49939. 80149ee: 605a str r2, [r3, #4]
  49940. pxBlock->pxNextFreeBlock = NULL;
  49941. 80149f0: 6a7b ldr r3, [r7, #36] @ 0x24
  49942. 80149f2: 2200 movs r2, #0
  49943. 80149f4: 601a str r2, [r3, #0]
  49944. xNumberOfSuccessfulAllocations++;
  49945. 80149f6: 4b13 ldr r3, [pc, #76] @ (8014a44 <pvPortMalloc+0x198>)
  49946. 80149f8: 681b ldr r3, [r3, #0]
  49947. 80149fa: 3301 adds r3, #1
  49948. 80149fc: 4a11 ldr r2, [pc, #68] @ (8014a44 <pvPortMalloc+0x198>)
  49949. 80149fe: 6013 str r3, [r2, #0]
  49950. mtCOVERAGE_TEST_MARKER();
  49951. }
  49952. traceMALLOC( pvReturn, xWantedSize );
  49953. }
  49954. ( void ) xTaskResumeAll();
  49955. 8014a00: f7fe f956 bl 8012cb0 <xTaskResumeAll>
  49956. mtCOVERAGE_TEST_MARKER();
  49957. }
  49958. }
  49959. #endif
  49960. configASSERT( ( ( ( size_t ) pvReturn ) & ( size_t ) portBYTE_ALIGNMENT_MASK ) == 0 );
  49961. 8014a04: 69fb ldr r3, [r7, #28]
  49962. 8014a06: f003 0307 and.w r3, r3, #7
  49963. 8014a0a: 2b00 cmp r3, #0
  49964. 8014a0c: d00b beq.n 8014a26 <pvPortMalloc+0x17a>
  49965. __asm volatile
  49966. 8014a0e: f04f 0350 mov.w r3, #80 @ 0x50
  49967. 8014a12: f383 8811 msr BASEPRI, r3
  49968. 8014a16: f3bf 8f6f isb sy
  49969. 8014a1a: f3bf 8f4f dsb sy
  49970. 8014a1e: 60fb str r3, [r7, #12]
  49971. }
  49972. 8014a20: bf00 nop
  49973. 8014a22: bf00 nop
  49974. 8014a24: e7fd b.n 8014a22 <pvPortMalloc+0x176>
  49975. return pvReturn;
  49976. 8014a26: 69fb ldr r3, [r7, #28]
  49977. }
  49978. 8014a28: 4618 mov r0, r3
  49979. 8014a2a: 3728 adds r7, #40 @ 0x28
  49980. 8014a2c: 46bd mov sp, r7
  49981. 8014a2e: bd80 pop {r7, pc}
  49982. 8014a30: 24023430 .word 0x24023430
  49983. 8014a34: 24023444 .word 0x24023444
  49984. 8014a38: 24023434 .word 0x24023434
  49985. 8014a3c: 24023428 .word 0x24023428
  49986. 8014a40: 24023438 .word 0x24023438
  49987. 8014a44: 2402343c .word 0x2402343c
  49988. 08014a48 <vPortFree>:
  49989. /*-----------------------------------------------------------*/
  49990. void vPortFree( void *pv )
  49991. {
  49992. 8014a48: b580 push {r7, lr}
  49993. 8014a4a: b086 sub sp, #24
  49994. 8014a4c: af00 add r7, sp, #0
  49995. 8014a4e: 6078 str r0, [r7, #4]
  49996. uint8_t *puc = ( uint8_t * ) pv;
  49997. 8014a50: 687b ldr r3, [r7, #4]
  49998. 8014a52: 617b str r3, [r7, #20]
  49999. BlockLink_t *pxLink;
  50000. if( pv != NULL )
  50001. 8014a54: 687b ldr r3, [r7, #4]
  50002. 8014a56: 2b00 cmp r3, #0
  50003. 8014a58: d04f beq.n 8014afa <vPortFree+0xb2>
  50004. {
  50005. /* The memory being freed will have an BlockLink_t structure immediately
  50006. before it. */
  50007. puc -= xHeapStructSize;
  50008. 8014a5a: 2308 movs r3, #8
  50009. 8014a5c: 425b negs r3, r3
  50010. 8014a5e: 697a ldr r2, [r7, #20]
  50011. 8014a60: 4413 add r3, r2
  50012. 8014a62: 617b str r3, [r7, #20]
  50013. /* This casting is to keep the compiler from issuing warnings. */
  50014. pxLink = ( void * ) puc;
  50015. 8014a64: 697b ldr r3, [r7, #20]
  50016. 8014a66: 613b str r3, [r7, #16]
  50017. /* Check the block is actually allocated. */
  50018. configASSERT( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 );
  50019. 8014a68: 693b ldr r3, [r7, #16]
  50020. 8014a6a: 685a ldr r2, [r3, #4]
  50021. 8014a6c: 4b25 ldr r3, [pc, #148] @ (8014b04 <vPortFree+0xbc>)
  50022. 8014a6e: 681b ldr r3, [r3, #0]
  50023. 8014a70: 4013 ands r3, r2
  50024. 8014a72: 2b00 cmp r3, #0
  50025. 8014a74: d10b bne.n 8014a8e <vPortFree+0x46>
  50026. __asm volatile
  50027. 8014a76: f04f 0350 mov.w r3, #80 @ 0x50
  50028. 8014a7a: f383 8811 msr BASEPRI, r3
  50029. 8014a7e: f3bf 8f6f isb sy
  50030. 8014a82: f3bf 8f4f dsb sy
  50031. 8014a86: 60fb str r3, [r7, #12]
  50032. }
  50033. 8014a88: bf00 nop
  50034. 8014a8a: bf00 nop
  50035. 8014a8c: e7fd b.n 8014a8a <vPortFree+0x42>
  50036. configASSERT( pxLink->pxNextFreeBlock == NULL );
  50037. 8014a8e: 693b ldr r3, [r7, #16]
  50038. 8014a90: 681b ldr r3, [r3, #0]
  50039. 8014a92: 2b00 cmp r3, #0
  50040. 8014a94: d00b beq.n 8014aae <vPortFree+0x66>
  50041. __asm volatile
  50042. 8014a96: f04f 0350 mov.w r3, #80 @ 0x50
  50043. 8014a9a: f383 8811 msr BASEPRI, r3
  50044. 8014a9e: f3bf 8f6f isb sy
  50045. 8014aa2: f3bf 8f4f dsb sy
  50046. 8014aa6: 60bb str r3, [r7, #8]
  50047. }
  50048. 8014aa8: bf00 nop
  50049. 8014aaa: bf00 nop
  50050. 8014aac: e7fd b.n 8014aaa <vPortFree+0x62>
  50051. if( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 )
  50052. 8014aae: 693b ldr r3, [r7, #16]
  50053. 8014ab0: 685a ldr r2, [r3, #4]
  50054. 8014ab2: 4b14 ldr r3, [pc, #80] @ (8014b04 <vPortFree+0xbc>)
  50055. 8014ab4: 681b ldr r3, [r3, #0]
  50056. 8014ab6: 4013 ands r3, r2
  50057. 8014ab8: 2b00 cmp r3, #0
  50058. 8014aba: d01e beq.n 8014afa <vPortFree+0xb2>
  50059. {
  50060. if( pxLink->pxNextFreeBlock == NULL )
  50061. 8014abc: 693b ldr r3, [r7, #16]
  50062. 8014abe: 681b ldr r3, [r3, #0]
  50063. 8014ac0: 2b00 cmp r3, #0
  50064. 8014ac2: d11a bne.n 8014afa <vPortFree+0xb2>
  50065. {
  50066. /* The block is being returned to the heap - it is no longer
  50067. allocated. */
  50068. pxLink->xBlockSize &= ~xBlockAllocatedBit;
  50069. 8014ac4: 693b ldr r3, [r7, #16]
  50070. 8014ac6: 685a ldr r2, [r3, #4]
  50071. 8014ac8: 4b0e ldr r3, [pc, #56] @ (8014b04 <vPortFree+0xbc>)
  50072. 8014aca: 681b ldr r3, [r3, #0]
  50073. 8014acc: 43db mvns r3, r3
  50074. 8014ace: 401a ands r2, r3
  50075. 8014ad0: 693b ldr r3, [r7, #16]
  50076. 8014ad2: 605a str r2, [r3, #4]
  50077. vTaskSuspendAll();
  50078. 8014ad4: f7fe f8de bl 8012c94 <vTaskSuspendAll>
  50079. {
  50080. /* Add this block to the list of free blocks. */
  50081. xFreeBytesRemaining += pxLink->xBlockSize;
  50082. 8014ad8: 693b ldr r3, [r7, #16]
  50083. 8014ada: 685a ldr r2, [r3, #4]
  50084. 8014adc: 4b0a ldr r3, [pc, #40] @ (8014b08 <vPortFree+0xc0>)
  50085. 8014ade: 681b ldr r3, [r3, #0]
  50086. 8014ae0: 4413 add r3, r2
  50087. 8014ae2: 4a09 ldr r2, [pc, #36] @ (8014b08 <vPortFree+0xc0>)
  50088. 8014ae4: 6013 str r3, [r2, #0]
  50089. traceFREE( pv, pxLink->xBlockSize );
  50090. prvInsertBlockIntoFreeList( ( ( BlockLink_t * ) pxLink ) );
  50091. 8014ae6: 6938 ldr r0, [r7, #16]
  50092. 8014ae8: f000 f874 bl 8014bd4 <prvInsertBlockIntoFreeList>
  50093. xNumberOfSuccessfulFrees++;
  50094. 8014aec: 4b07 ldr r3, [pc, #28] @ (8014b0c <vPortFree+0xc4>)
  50095. 8014aee: 681b ldr r3, [r3, #0]
  50096. 8014af0: 3301 adds r3, #1
  50097. 8014af2: 4a06 ldr r2, [pc, #24] @ (8014b0c <vPortFree+0xc4>)
  50098. 8014af4: 6013 str r3, [r2, #0]
  50099. }
  50100. ( void ) xTaskResumeAll();
  50101. 8014af6: f7fe f8db bl 8012cb0 <xTaskResumeAll>
  50102. else
  50103. {
  50104. mtCOVERAGE_TEST_MARKER();
  50105. }
  50106. }
  50107. }
  50108. 8014afa: bf00 nop
  50109. 8014afc: 3718 adds r7, #24
  50110. 8014afe: 46bd mov sp, r7
  50111. 8014b00: bd80 pop {r7, pc}
  50112. 8014b02: bf00 nop
  50113. 8014b04: 24023444 .word 0x24023444
  50114. 8014b08: 24023434 .word 0x24023434
  50115. 8014b0c: 24023440 .word 0x24023440
  50116. 08014b10 <prvHeapInit>:
  50117. /* This just exists to keep the linker quiet. */
  50118. }
  50119. /*-----------------------------------------------------------*/
  50120. static void prvHeapInit( void )
  50121. {
  50122. 8014b10: b480 push {r7}
  50123. 8014b12: b085 sub sp, #20
  50124. 8014b14: af00 add r7, sp, #0
  50125. BlockLink_t *pxFirstFreeBlock;
  50126. uint8_t *pucAlignedHeap;
  50127. size_t uxAddress;
  50128. size_t xTotalHeapSize = configTOTAL_HEAP_SIZE;
  50129. 8014b16: f44f 3300 mov.w r3, #131072 @ 0x20000
  50130. 8014b1a: 60bb str r3, [r7, #8]
  50131. /* Ensure the heap starts on a correctly aligned boundary. */
  50132. uxAddress = ( size_t ) ucHeap;
  50133. 8014b1c: 4b27 ldr r3, [pc, #156] @ (8014bbc <prvHeapInit+0xac>)
  50134. 8014b1e: 60fb str r3, [r7, #12]
  50135. if( ( uxAddress & portBYTE_ALIGNMENT_MASK ) != 0 )
  50136. 8014b20: 68fb ldr r3, [r7, #12]
  50137. 8014b22: f003 0307 and.w r3, r3, #7
  50138. 8014b26: 2b00 cmp r3, #0
  50139. 8014b28: d00c beq.n 8014b44 <prvHeapInit+0x34>
  50140. {
  50141. uxAddress += ( portBYTE_ALIGNMENT - 1 );
  50142. 8014b2a: 68fb ldr r3, [r7, #12]
  50143. 8014b2c: 3307 adds r3, #7
  50144. 8014b2e: 60fb str r3, [r7, #12]
  50145. uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
  50146. 8014b30: 68fb ldr r3, [r7, #12]
  50147. 8014b32: f023 0307 bic.w r3, r3, #7
  50148. 8014b36: 60fb str r3, [r7, #12]
  50149. xTotalHeapSize -= uxAddress - ( size_t ) ucHeap;
  50150. 8014b38: 68ba ldr r2, [r7, #8]
  50151. 8014b3a: 68fb ldr r3, [r7, #12]
  50152. 8014b3c: 1ad3 subs r3, r2, r3
  50153. 8014b3e: 4a1f ldr r2, [pc, #124] @ (8014bbc <prvHeapInit+0xac>)
  50154. 8014b40: 4413 add r3, r2
  50155. 8014b42: 60bb str r3, [r7, #8]
  50156. }
  50157. pucAlignedHeap = ( uint8_t * ) uxAddress;
  50158. 8014b44: 68fb ldr r3, [r7, #12]
  50159. 8014b46: 607b str r3, [r7, #4]
  50160. /* xStart is used to hold a pointer to the first item in the list of free
  50161. blocks. The void cast is used to prevent compiler warnings. */
  50162. xStart.pxNextFreeBlock = ( void * ) pucAlignedHeap;
  50163. 8014b48: 4a1d ldr r2, [pc, #116] @ (8014bc0 <prvHeapInit+0xb0>)
  50164. 8014b4a: 687b ldr r3, [r7, #4]
  50165. 8014b4c: 6013 str r3, [r2, #0]
  50166. xStart.xBlockSize = ( size_t ) 0;
  50167. 8014b4e: 4b1c ldr r3, [pc, #112] @ (8014bc0 <prvHeapInit+0xb0>)
  50168. 8014b50: 2200 movs r2, #0
  50169. 8014b52: 605a str r2, [r3, #4]
  50170. /* pxEnd is used to mark the end of the list of free blocks and is inserted
  50171. at the end of the heap space. */
  50172. uxAddress = ( ( size_t ) pucAlignedHeap ) + xTotalHeapSize;
  50173. 8014b54: 687b ldr r3, [r7, #4]
  50174. 8014b56: 68ba ldr r2, [r7, #8]
  50175. 8014b58: 4413 add r3, r2
  50176. 8014b5a: 60fb str r3, [r7, #12]
  50177. uxAddress -= xHeapStructSize;
  50178. 8014b5c: 2208 movs r2, #8
  50179. 8014b5e: 68fb ldr r3, [r7, #12]
  50180. 8014b60: 1a9b subs r3, r3, r2
  50181. 8014b62: 60fb str r3, [r7, #12]
  50182. uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
  50183. 8014b64: 68fb ldr r3, [r7, #12]
  50184. 8014b66: f023 0307 bic.w r3, r3, #7
  50185. 8014b6a: 60fb str r3, [r7, #12]
  50186. pxEnd = ( void * ) uxAddress;
  50187. 8014b6c: 68fb ldr r3, [r7, #12]
  50188. 8014b6e: 4a15 ldr r2, [pc, #84] @ (8014bc4 <prvHeapInit+0xb4>)
  50189. 8014b70: 6013 str r3, [r2, #0]
  50190. pxEnd->xBlockSize = 0;
  50191. 8014b72: 4b14 ldr r3, [pc, #80] @ (8014bc4 <prvHeapInit+0xb4>)
  50192. 8014b74: 681b ldr r3, [r3, #0]
  50193. 8014b76: 2200 movs r2, #0
  50194. 8014b78: 605a str r2, [r3, #4]
  50195. pxEnd->pxNextFreeBlock = NULL;
  50196. 8014b7a: 4b12 ldr r3, [pc, #72] @ (8014bc4 <prvHeapInit+0xb4>)
  50197. 8014b7c: 681b ldr r3, [r3, #0]
  50198. 8014b7e: 2200 movs r2, #0
  50199. 8014b80: 601a str r2, [r3, #0]
  50200. /* To start with there is a single free block that is sized to take up the
  50201. entire heap space, minus the space taken by pxEnd. */
  50202. pxFirstFreeBlock = ( void * ) pucAlignedHeap;
  50203. 8014b82: 687b ldr r3, [r7, #4]
  50204. 8014b84: 603b str r3, [r7, #0]
  50205. pxFirstFreeBlock->xBlockSize = uxAddress - ( size_t ) pxFirstFreeBlock;
  50206. 8014b86: 683b ldr r3, [r7, #0]
  50207. 8014b88: 68fa ldr r2, [r7, #12]
  50208. 8014b8a: 1ad2 subs r2, r2, r3
  50209. 8014b8c: 683b ldr r3, [r7, #0]
  50210. 8014b8e: 605a str r2, [r3, #4]
  50211. pxFirstFreeBlock->pxNextFreeBlock = pxEnd;
  50212. 8014b90: 4b0c ldr r3, [pc, #48] @ (8014bc4 <prvHeapInit+0xb4>)
  50213. 8014b92: 681a ldr r2, [r3, #0]
  50214. 8014b94: 683b ldr r3, [r7, #0]
  50215. 8014b96: 601a str r2, [r3, #0]
  50216. /* Only one block exists - and it covers the entire usable heap space. */
  50217. xMinimumEverFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
  50218. 8014b98: 683b ldr r3, [r7, #0]
  50219. 8014b9a: 685b ldr r3, [r3, #4]
  50220. 8014b9c: 4a0a ldr r2, [pc, #40] @ (8014bc8 <prvHeapInit+0xb8>)
  50221. 8014b9e: 6013 str r3, [r2, #0]
  50222. xFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
  50223. 8014ba0: 683b ldr r3, [r7, #0]
  50224. 8014ba2: 685b ldr r3, [r3, #4]
  50225. 8014ba4: 4a09 ldr r2, [pc, #36] @ (8014bcc <prvHeapInit+0xbc>)
  50226. 8014ba6: 6013 str r3, [r2, #0]
  50227. /* Work out the position of the top bit in a size_t variable. */
  50228. xBlockAllocatedBit = ( ( size_t ) 1 ) << ( ( sizeof( size_t ) * heapBITS_PER_BYTE ) - 1 );
  50229. 8014ba8: 4b09 ldr r3, [pc, #36] @ (8014bd0 <prvHeapInit+0xc0>)
  50230. 8014baa: f04f 4200 mov.w r2, #2147483648 @ 0x80000000
  50231. 8014bae: 601a str r2, [r3, #0]
  50232. }
  50233. 8014bb0: bf00 nop
  50234. 8014bb2: 3714 adds r7, #20
  50235. 8014bb4: 46bd mov sp, r7
  50236. 8014bb6: f85d 7b04 ldr.w r7, [sp], #4
  50237. 8014bba: 4770 bx lr
  50238. 8014bbc: 24003428 .word 0x24003428
  50239. 8014bc0: 24023428 .word 0x24023428
  50240. 8014bc4: 24023430 .word 0x24023430
  50241. 8014bc8: 24023438 .word 0x24023438
  50242. 8014bcc: 24023434 .word 0x24023434
  50243. 8014bd0: 24023444 .word 0x24023444
  50244. 08014bd4 <prvInsertBlockIntoFreeList>:
  50245. /*-----------------------------------------------------------*/
  50246. static void prvInsertBlockIntoFreeList( BlockLink_t *pxBlockToInsert )
  50247. {
  50248. 8014bd4: b480 push {r7}
  50249. 8014bd6: b085 sub sp, #20
  50250. 8014bd8: af00 add r7, sp, #0
  50251. 8014bda: 6078 str r0, [r7, #4]
  50252. BlockLink_t *pxIterator;
  50253. uint8_t *puc;
  50254. /* Iterate through the list until a block is found that has a higher address
  50255. than the block being inserted. */
  50256. for( pxIterator = &xStart; pxIterator->pxNextFreeBlock < pxBlockToInsert; pxIterator = pxIterator->pxNextFreeBlock )
  50257. 8014bdc: 4b28 ldr r3, [pc, #160] @ (8014c80 <prvInsertBlockIntoFreeList+0xac>)
  50258. 8014bde: 60fb str r3, [r7, #12]
  50259. 8014be0: e002 b.n 8014be8 <prvInsertBlockIntoFreeList+0x14>
  50260. 8014be2: 68fb ldr r3, [r7, #12]
  50261. 8014be4: 681b ldr r3, [r3, #0]
  50262. 8014be6: 60fb str r3, [r7, #12]
  50263. 8014be8: 68fb ldr r3, [r7, #12]
  50264. 8014bea: 681b ldr r3, [r3, #0]
  50265. 8014bec: 687a ldr r2, [r7, #4]
  50266. 8014bee: 429a cmp r2, r3
  50267. 8014bf0: d8f7 bhi.n 8014be2 <prvInsertBlockIntoFreeList+0xe>
  50268. /* Nothing to do here, just iterate to the right position. */
  50269. }
  50270. /* Do the block being inserted, and the block it is being inserted after
  50271. make a contiguous block of memory? */
  50272. puc = ( uint8_t * ) pxIterator;
  50273. 8014bf2: 68fb ldr r3, [r7, #12]
  50274. 8014bf4: 60bb str r3, [r7, #8]
  50275. if( ( puc + pxIterator->xBlockSize ) == ( uint8_t * ) pxBlockToInsert )
  50276. 8014bf6: 68fb ldr r3, [r7, #12]
  50277. 8014bf8: 685b ldr r3, [r3, #4]
  50278. 8014bfa: 68ba ldr r2, [r7, #8]
  50279. 8014bfc: 4413 add r3, r2
  50280. 8014bfe: 687a ldr r2, [r7, #4]
  50281. 8014c00: 429a cmp r2, r3
  50282. 8014c02: d108 bne.n 8014c16 <prvInsertBlockIntoFreeList+0x42>
  50283. {
  50284. pxIterator->xBlockSize += pxBlockToInsert->xBlockSize;
  50285. 8014c04: 68fb ldr r3, [r7, #12]
  50286. 8014c06: 685a ldr r2, [r3, #4]
  50287. 8014c08: 687b ldr r3, [r7, #4]
  50288. 8014c0a: 685b ldr r3, [r3, #4]
  50289. 8014c0c: 441a add r2, r3
  50290. 8014c0e: 68fb ldr r3, [r7, #12]
  50291. 8014c10: 605a str r2, [r3, #4]
  50292. pxBlockToInsert = pxIterator;
  50293. 8014c12: 68fb ldr r3, [r7, #12]
  50294. 8014c14: 607b str r3, [r7, #4]
  50295. mtCOVERAGE_TEST_MARKER();
  50296. }
  50297. /* Do the block being inserted, and the block it is being inserted before
  50298. make a contiguous block of memory? */
  50299. puc = ( uint8_t * ) pxBlockToInsert;
  50300. 8014c16: 687b ldr r3, [r7, #4]
  50301. 8014c18: 60bb str r3, [r7, #8]
  50302. if( ( puc + pxBlockToInsert->xBlockSize ) == ( uint8_t * ) pxIterator->pxNextFreeBlock )
  50303. 8014c1a: 687b ldr r3, [r7, #4]
  50304. 8014c1c: 685b ldr r3, [r3, #4]
  50305. 8014c1e: 68ba ldr r2, [r7, #8]
  50306. 8014c20: 441a add r2, r3
  50307. 8014c22: 68fb ldr r3, [r7, #12]
  50308. 8014c24: 681b ldr r3, [r3, #0]
  50309. 8014c26: 429a cmp r2, r3
  50310. 8014c28: d118 bne.n 8014c5c <prvInsertBlockIntoFreeList+0x88>
  50311. {
  50312. if( pxIterator->pxNextFreeBlock != pxEnd )
  50313. 8014c2a: 68fb ldr r3, [r7, #12]
  50314. 8014c2c: 681a ldr r2, [r3, #0]
  50315. 8014c2e: 4b15 ldr r3, [pc, #84] @ (8014c84 <prvInsertBlockIntoFreeList+0xb0>)
  50316. 8014c30: 681b ldr r3, [r3, #0]
  50317. 8014c32: 429a cmp r2, r3
  50318. 8014c34: d00d beq.n 8014c52 <prvInsertBlockIntoFreeList+0x7e>
  50319. {
  50320. /* Form one big block from the two blocks. */
  50321. pxBlockToInsert->xBlockSize += pxIterator->pxNextFreeBlock->xBlockSize;
  50322. 8014c36: 687b ldr r3, [r7, #4]
  50323. 8014c38: 685a ldr r2, [r3, #4]
  50324. 8014c3a: 68fb ldr r3, [r7, #12]
  50325. 8014c3c: 681b ldr r3, [r3, #0]
  50326. 8014c3e: 685b ldr r3, [r3, #4]
  50327. 8014c40: 441a add r2, r3
  50328. 8014c42: 687b ldr r3, [r7, #4]
  50329. 8014c44: 605a str r2, [r3, #4]
  50330. pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock->pxNextFreeBlock;
  50331. 8014c46: 68fb ldr r3, [r7, #12]
  50332. 8014c48: 681b ldr r3, [r3, #0]
  50333. 8014c4a: 681a ldr r2, [r3, #0]
  50334. 8014c4c: 687b ldr r3, [r7, #4]
  50335. 8014c4e: 601a str r2, [r3, #0]
  50336. 8014c50: e008 b.n 8014c64 <prvInsertBlockIntoFreeList+0x90>
  50337. }
  50338. else
  50339. {
  50340. pxBlockToInsert->pxNextFreeBlock = pxEnd;
  50341. 8014c52: 4b0c ldr r3, [pc, #48] @ (8014c84 <prvInsertBlockIntoFreeList+0xb0>)
  50342. 8014c54: 681a ldr r2, [r3, #0]
  50343. 8014c56: 687b ldr r3, [r7, #4]
  50344. 8014c58: 601a str r2, [r3, #0]
  50345. 8014c5a: e003 b.n 8014c64 <prvInsertBlockIntoFreeList+0x90>
  50346. }
  50347. }
  50348. else
  50349. {
  50350. pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock;
  50351. 8014c5c: 68fb ldr r3, [r7, #12]
  50352. 8014c5e: 681a ldr r2, [r3, #0]
  50353. 8014c60: 687b ldr r3, [r7, #4]
  50354. 8014c62: 601a str r2, [r3, #0]
  50355. /* If the block being inserted plugged a gab, so was merged with the block
  50356. before and the block after, then it's pxNextFreeBlock pointer will have
  50357. already been set, and should not be set here as that would make it point
  50358. to itself. */
  50359. if( pxIterator != pxBlockToInsert )
  50360. 8014c64: 68fa ldr r2, [r7, #12]
  50361. 8014c66: 687b ldr r3, [r7, #4]
  50362. 8014c68: 429a cmp r2, r3
  50363. 8014c6a: d002 beq.n 8014c72 <prvInsertBlockIntoFreeList+0x9e>
  50364. {
  50365. pxIterator->pxNextFreeBlock = pxBlockToInsert;
  50366. 8014c6c: 68fb ldr r3, [r7, #12]
  50367. 8014c6e: 687a ldr r2, [r7, #4]
  50368. 8014c70: 601a str r2, [r3, #0]
  50369. }
  50370. else
  50371. {
  50372. mtCOVERAGE_TEST_MARKER();
  50373. }
  50374. }
  50375. 8014c72: bf00 nop
  50376. 8014c74: 3714 adds r7, #20
  50377. 8014c76: 46bd mov sp, r7
  50378. 8014c78: f85d 7b04 ldr.w r7, [sp], #4
  50379. 8014c7c: 4770 bx lr
  50380. 8014c7e: bf00 nop
  50381. 8014c80: 24023428 .word 0x24023428
  50382. 8014c84: 24023430 .word 0x24023430
  50383. 08014c88 <netconn_apimsg>:
  50384. * @param apimsg a struct containing the function to call and its parameters
  50385. * @return ERR_OK if the function was called, another err_t if not
  50386. */
  50387. static err_t
  50388. netconn_apimsg(tcpip_callback_fn fn, struct api_msg *apimsg)
  50389. {
  50390. 8014c88: b580 push {r7, lr}
  50391. 8014c8a: b084 sub sp, #16
  50392. 8014c8c: af00 add r7, sp, #0
  50393. 8014c8e: 6078 str r0, [r7, #4]
  50394. 8014c90: 6039 str r1, [r7, #0]
  50395. err_t err;
  50396. #ifdef LWIP_DEBUG
  50397. /* catch functions that don't set err */
  50398. apimsg->err = ERR_VAL;
  50399. 8014c92: 683b ldr r3, [r7, #0]
  50400. 8014c94: 22fa movs r2, #250 @ 0xfa
  50401. 8014c96: 711a strb r2, [r3, #4]
  50402. #if LWIP_NETCONN_SEM_PER_THREAD
  50403. apimsg->op_completed_sem = LWIP_NETCONN_THREAD_SEM_GET();
  50404. #endif /* LWIP_NETCONN_SEM_PER_THREAD */
  50405. err = tcpip_send_msg_wait_sem(fn, apimsg, LWIP_API_MSG_SEM(apimsg));
  50406. 8014c98: 683b ldr r3, [r7, #0]
  50407. 8014c9a: 681b ldr r3, [r3, #0]
  50408. 8014c9c: 330c adds r3, #12
  50409. 8014c9e: 461a mov r2, r3
  50410. 8014ca0: 6839 ldr r1, [r7, #0]
  50411. 8014ca2: 6878 ldr r0, [r7, #4]
  50412. 8014ca4: f003 fc7c bl 80185a0 <tcpip_send_msg_wait_sem>
  50413. 8014ca8: 4603 mov r3, r0
  50414. 8014caa: 73fb strb r3, [r7, #15]
  50415. if (err == ERR_OK) {
  50416. 8014cac: f997 300f ldrsb.w r3, [r7, #15]
  50417. 8014cb0: 2b00 cmp r3, #0
  50418. 8014cb2: d103 bne.n 8014cbc <netconn_apimsg+0x34>
  50419. return apimsg->err;
  50420. 8014cb4: 683b ldr r3, [r7, #0]
  50421. 8014cb6: f993 3004 ldrsb.w r3, [r3, #4]
  50422. 8014cba: e001 b.n 8014cc0 <netconn_apimsg+0x38>
  50423. }
  50424. return err;
  50425. 8014cbc: f997 300f ldrsb.w r3, [r7, #15]
  50426. }
  50427. 8014cc0: 4618 mov r0, r3
  50428. 8014cc2: 3710 adds r7, #16
  50429. 8014cc4: 46bd mov sp, r7
  50430. 8014cc6: bd80 pop {r7, pc}
  50431. 08014cc8 <netconn_new_with_proto_and_callback>:
  50432. * @return a newly allocated struct netconn or
  50433. * NULL on memory error
  50434. */
  50435. struct netconn *
  50436. netconn_new_with_proto_and_callback(enum netconn_type t, u8_t proto, netconn_callback callback)
  50437. {
  50438. 8014cc8: b580 push {r7, lr}
  50439. 8014cca: b08c sub sp, #48 @ 0x30
  50440. 8014ccc: af00 add r7, sp, #0
  50441. 8014cce: 4603 mov r3, r0
  50442. 8014cd0: 603a str r2, [r7, #0]
  50443. 8014cd2: 71fb strb r3, [r7, #7]
  50444. 8014cd4: 460b mov r3, r1
  50445. 8014cd6: 71bb strb r3, [r7, #6]
  50446. struct netconn *conn;
  50447. API_MSG_VAR_DECLARE(msg);
  50448. API_MSG_VAR_ALLOC_RETURN_NULL(msg);
  50449. conn = netconn_alloc(t, callback);
  50450. 8014cd8: 79fb ldrb r3, [r7, #7]
  50451. 8014cda: 6839 ldr r1, [r7, #0]
  50452. 8014cdc: 4618 mov r0, r3
  50453. 8014cde: f001 f8ad bl 8015e3c <netconn_alloc>
  50454. 8014ce2: 62f8 str r0, [r7, #44] @ 0x2c
  50455. if (conn != NULL) {
  50456. 8014ce4: 6afb ldr r3, [r7, #44] @ 0x2c
  50457. 8014ce6: 2b00 cmp r3, #0
  50458. 8014ce8: d054 beq.n 8014d94 <netconn_new_with_proto_and_callback+0xcc>
  50459. err_t err;
  50460. API_MSG_VAR_REF(msg).msg.n.proto = proto;
  50461. 8014cea: 79bb ldrb r3, [r7, #6]
  50462. 8014cec: 743b strb r3, [r7, #16]
  50463. API_MSG_VAR_REF(msg).conn = conn;
  50464. 8014cee: 6afb ldr r3, [r7, #44] @ 0x2c
  50465. 8014cf0: 60bb str r3, [r7, #8]
  50466. err = netconn_apimsg(lwip_netconn_do_newconn, &API_MSG_VAR_REF(msg));
  50467. 8014cf2: f107 0308 add.w r3, r7, #8
  50468. 8014cf6: 4619 mov r1, r3
  50469. 8014cf8: 4829 ldr r0, [pc, #164] @ (8014da0 <netconn_new_with_proto_and_callback+0xd8>)
  50470. 8014cfa: f7ff ffc5 bl 8014c88 <netconn_apimsg>
  50471. 8014cfe: 4603 mov r3, r0
  50472. 8014d00: f887 302b strb.w r3, [r7, #43] @ 0x2b
  50473. if (err != ERR_OK) {
  50474. 8014d04: f997 302b ldrsb.w r3, [r7, #43] @ 0x2b
  50475. 8014d08: 2b00 cmp r3, #0
  50476. 8014d0a: d043 beq.n 8014d94 <netconn_new_with_proto_and_callback+0xcc>
  50477. LWIP_ASSERT("freeing conn without freeing pcb", conn->pcb.tcp == NULL);
  50478. 8014d0c: 6afb ldr r3, [r7, #44] @ 0x2c
  50479. 8014d0e: 685b ldr r3, [r3, #4]
  50480. 8014d10: 2b00 cmp r3, #0
  50481. 8014d12: d005 beq.n 8014d20 <netconn_new_with_proto_and_callback+0x58>
  50482. 8014d14: 4b23 ldr r3, [pc, #140] @ (8014da4 <netconn_new_with_proto_and_callback+0xdc>)
  50483. 8014d16: 22a3 movs r2, #163 @ 0xa3
  50484. 8014d18: 4923 ldr r1, [pc, #140] @ (8014da8 <netconn_new_with_proto_and_callback+0xe0>)
  50485. 8014d1a: 4824 ldr r0, [pc, #144] @ (8014dac <netconn_new_with_proto_and_callback+0xe4>)
  50486. 8014d1c: f014 fbf6 bl 802950c <iprintf>
  50487. LWIP_ASSERT("conn has no recvmbox", sys_mbox_valid(&conn->recvmbox));
  50488. 8014d20: 6afb ldr r3, [r7, #44] @ 0x2c
  50489. 8014d22: 3310 adds r3, #16
  50490. 8014d24: 4618 mov r0, r3
  50491. 8014d26: f011 f851 bl 8025dcc <sys_mbox_valid>
  50492. 8014d2a: 4603 mov r3, r0
  50493. 8014d2c: 2b00 cmp r3, #0
  50494. 8014d2e: d105 bne.n 8014d3c <netconn_new_with_proto_and_callback+0x74>
  50495. 8014d30: 4b1c ldr r3, [pc, #112] @ (8014da4 <netconn_new_with_proto_and_callback+0xdc>)
  50496. 8014d32: 22a4 movs r2, #164 @ 0xa4
  50497. 8014d34: 491e ldr r1, [pc, #120] @ (8014db0 <netconn_new_with_proto_and_callback+0xe8>)
  50498. 8014d36: 481d ldr r0, [pc, #116] @ (8014dac <netconn_new_with_proto_and_callback+0xe4>)
  50499. 8014d38: f014 fbe8 bl 802950c <iprintf>
  50500. #if LWIP_TCP
  50501. LWIP_ASSERT("conn->acceptmbox shouldn't exist", !sys_mbox_valid(&conn->acceptmbox));
  50502. 8014d3c: 6afb ldr r3, [r7, #44] @ 0x2c
  50503. 8014d3e: 3314 adds r3, #20
  50504. 8014d40: 4618 mov r0, r3
  50505. 8014d42: f011 f843 bl 8025dcc <sys_mbox_valid>
  50506. 8014d46: 4603 mov r3, r0
  50507. 8014d48: 2b00 cmp r3, #0
  50508. 8014d4a: d005 beq.n 8014d58 <netconn_new_with_proto_and_callback+0x90>
  50509. 8014d4c: 4b15 ldr r3, [pc, #84] @ (8014da4 <netconn_new_with_proto_and_callback+0xdc>)
  50510. 8014d4e: 22a6 movs r2, #166 @ 0xa6
  50511. 8014d50: 4918 ldr r1, [pc, #96] @ (8014db4 <netconn_new_with_proto_and_callback+0xec>)
  50512. 8014d52: 4816 ldr r0, [pc, #88] @ (8014dac <netconn_new_with_proto_and_callback+0xe4>)
  50513. 8014d54: f014 fbda bl 802950c <iprintf>
  50514. #endif /* LWIP_TCP */
  50515. #if !LWIP_NETCONN_SEM_PER_THREAD
  50516. LWIP_ASSERT("conn has no op_completed", sys_sem_valid(&conn->op_completed));
  50517. 8014d58: 6afb ldr r3, [r7, #44] @ 0x2c
  50518. 8014d5a: 330c adds r3, #12
  50519. 8014d5c: 4618 mov r0, r3
  50520. 8014d5e: f011 f8c3 bl 8025ee8 <sys_sem_valid>
  50521. 8014d62: 4603 mov r3, r0
  50522. 8014d64: 2b00 cmp r3, #0
  50523. 8014d66: d105 bne.n 8014d74 <netconn_new_with_proto_and_callback+0xac>
  50524. 8014d68: 4b0e ldr r3, [pc, #56] @ (8014da4 <netconn_new_with_proto_and_callback+0xdc>)
  50525. 8014d6a: 22a9 movs r2, #169 @ 0xa9
  50526. 8014d6c: 4912 ldr r1, [pc, #72] @ (8014db8 <netconn_new_with_proto_and_callback+0xf0>)
  50527. 8014d6e: 480f ldr r0, [pc, #60] @ (8014dac <netconn_new_with_proto_and_callback+0xe4>)
  50528. 8014d70: f014 fbcc bl 802950c <iprintf>
  50529. sys_sem_free(&conn->op_completed);
  50530. 8014d74: 6afb ldr r3, [r7, #44] @ 0x2c
  50531. 8014d76: 330c adds r3, #12
  50532. 8014d78: 4618 mov r0, r3
  50533. 8014d7a: f011 f8a8 bl 8025ece <sys_sem_free>
  50534. #endif /* !LWIP_NETCONN_SEM_PER_THREAD */
  50535. sys_mbox_free(&conn->recvmbox);
  50536. 8014d7e: 6afb ldr r3, [r7, #44] @ 0x2c
  50537. 8014d80: 3310 adds r3, #16
  50538. 8014d82: 4618 mov r0, r3
  50539. 8014d84: f010 ffae bl 8025ce4 <sys_mbox_free>
  50540. memp_free(MEMP_NETCONN, conn);
  50541. 8014d88: 6af9 ldr r1, [r7, #44] @ 0x2c
  50542. 8014d8a: 2007 movs r0, #7
  50543. 8014d8c: f004 fa58 bl 8019240 <memp_free>
  50544. API_MSG_VAR_FREE(msg);
  50545. return NULL;
  50546. 8014d90: 2300 movs r3, #0
  50547. 8014d92: e000 b.n 8014d96 <netconn_new_with_proto_and_callback+0xce>
  50548. }
  50549. }
  50550. API_MSG_VAR_FREE(msg);
  50551. return conn;
  50552. 8014d94: 6afb ldr r3, [r7, #44] @ 0x2c
  50553. }
  50554. 8014d96: 4618 mov r0, r3
  50555. 8014d98: 3730 adds r7, #48 @ 0x30
  50556. 8014d9a: 46bd mov sp, r7
  50557. 8014d9c: bd80 pop {r7, pc}
  50558. 8014d9e: bf00 nop
  50559. 8014da0: 08015e11 .word 0x08015e11
  50560. 8014da4: 0802c718 .word 0x0802c718
  50561. 8014da8: 0802c74c .word 0x0802c74c
  50562. 8014dac: 0802c770 .word 0x0802c770
  50563. 8014db0: 0802c798 .word 0x0802c798
  50564. 8014db4: 0802c7b0 .word 0x0802c7b0
  50565. 8014db8: 0802c7d4 .word 0x0802c7d4
  50566. 08014dbc <netconn_prepare_delete>:
  50567. * @param conn the netconn to delete
  50568. * @return ERR_OK if the connection was deleted
  50569. */
  50570. err_t
  50571. netconn_prepare_delete(struct netconn *conn)
  50572. {
  50573. 8014dbc: b580 push {r7, lr}
  50574. 8014dbe: b08c sub sp, #48 @ 0x30
  50575. 8014dc0: af00 add r7, sp, #0
  50576. 8014dc2: 6078 str r0, [r7, #4]
  50577. err_t err;
  50578. API_MSG_VAR_DECLARE(msg);
  50579. /* No ASSERT here because possible to get a (conn == NULL) if we got an accept error */
  50580. if (conn == NULL) {
  50581. 8014dc4: 687b ldr r3, [r7, #4]
  50582. 8014dc6: 2b00 cmp r3, #0
  50583. 8014dc8: d101 bne.n 8014dce <netconn_prepare_delete+0x12>
  50584. return ERR_OK;
  50585. 8014dca: 2300 movs r3, #0
  50586. 8014dcc: e014 b.n 8014df8 <netconn_prepare_delete+0x3c>
  50587. }
  50588. API_MSG_VAR_ALLOC(msg);
  50589. API_MSG_VAR_REF(msg).conn = conn;
  50590. 8014dce: 687b ldr r3, [r7, #4]
  50591. 8014dd0: 60fb str r3, [r7, #12]
  50592. /* get the time we started, which is later compared to
  50593. sys_now() + conn->send_timeout */
  50594. API_MSG_VAR_REF(msg).msg.sd.time_started = sys_now();
  50595. #else /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */
  50596. #if LWIP_TCP
  50597. API_MSG_VAR_REF(msg).msg.sd.polls_left =
  50598. 8014dd2: 2329 movs r3, #41 @ 0x29
  50599. 8014dd4: 757b strb r3, [r7, #21]
  50600. ((LWIP_TCP_CLOSE_TIMEOUT_MS_DEFAULT + TCP_SLOW_INTERVAL - 1) / TCP_SLOW_INTERVAL) + 1;
  50601. #endif /* LWIP_TCP */
  50602. #endif /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */
  50603. err = netconn_apimsg(lwip_netconn_do_delconn, &API_MSG_VAR_REF(msg));
  50604. 8014dd6: f107 030c add.w r3, r7, #12
  50605. 8014dda: 4619 mov r1, r3
  50606. 8014ddc: 4808 ldr r0, [pc, #32] @ (8014e00 <netconn_prepare_delete+0x44>)
  50607. 8014dde: f7ff ff53 bl 8014c88 <netconn_apimsg>
  50608. 8014de2: 4603 mov r3, r0
  50609. 8014de4: f887 302f strb.w r3, [r7, #47] @ 0x2f
  50610. API_MSG_VAR_FREE(msg);
  50611. if (err != ERR_OK) {
  50612. 8014de8: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f
  50613. 8014dec: 2b00 cmp r3, #0
  50614. 8014dee: d002 beq.n 8014df6 <netconn_prepare_delete+0x3a>
  50615. return err;
  50616. 8014df0: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f
  50617. 8014df4: e000 b.n 8014df8 <netconn_prepare_delete+0x3c>
  50618. }
  50619. return ERR_OK;
  50620. 8014df6: 2300 movs r3, #0
  50621. }
  50622. 8014df8: 4618 mov r0, r3
  50623. 8014dfa: 3730 adds r7, #48 @ 0x30
  50624. 8014dfc: 46bd mov sp, r7
  50625. 8014dfe: bd80 pop {r7, pc}
  50626. 8014e00: 08016395 .word 0x08016395
  50627. 08014e04 <netconn_delete>:
  50628. * @param conn the netconn to delete
  50629. * @return ERR_OK if the connection was deleted
  50630. */
  50631. err_t
  50632. netconn_delete(struct netconn *conn)
  50633. {
  50634. 8014e04: b580 push {r7, lr}
  50635. 8014e06: b084 sub sp, #16
  50636. 8014e08: af00 add r7, sp, #0
  50637. 8014e0a: 6078 str r0, [r7, #4]
  50638. err_t err;
  50639. /* No ASSERT here because possible to get a (conn == NULL) if we got an accept error */
  50640. if (conn == NULL) {
  50641. 8014e0c: 687b ldr r3, [r7, #4]
  50642. 8014e0e: 2b00 cmp r3, #0
  50643. 8014e10: d101 bne.n 8014e16 <netconn_delete+0x12>
  50644. return ERR_OK;
  50645. 8014e12: 2300 movs r3, #0
  50646. 8014e14: e00d b.n 8014e32 <netconn_delete+0x2e>
  50647. /* Already called netconn_prepare_delete() before */
  50648. err = ERR_OK;
  50649. } else
  50650. #endif /* LWIP_NETCONN_FULLDUPLEX */
  50651. {
  50652. err = netconn_prepare_delete(conn);
  50653. 8014e16: 6878 ldr r0, [r7, #4]
  50654. 8014e18: f7ff ffd0 bl 8014dbc <netconn_prepare_delete>
  50655. 8014e1c: 4603 mov r3, r0
  50656. 8014e1e: 73fb strb r3, [r7, #15]
  50657. }
  50658. if (err == ERR_OK) {
  50659. 8014e20: f997 300f ldrsb.w r3, [r7, #15]
  50660. 8014e24: 2b00 cmp r3, #0
  50661. 8014e26: d102 bne.n 8014e2e <netconn_delete+0x2a>
  50662. netconn_free(conn);
  50663. 8014e28: 6878 ldr r0, [r7, #4]
  50664. 8014e2a: f001 f881 bl 8015f30 <netconn_free>
  50665. }
  50666. return err;
  50667. 8014e2e: f997 300f ldrsb.w r3, [r7, #15]
  50668. }
  50669. 8014e32: 4618 mov r0, r3
  50670. 8014e34: 3710 adds r7, #16
  50671. 8014e36: 46bd mov sp, r7
  50672. 8014e38: bd80 pop {r7, pc}
  50673. ...
  50674. 08014e3c <netconn_getaddr>:
  50675. * @return ERR_CONN for invalid connections
  50676. * ERR_OK if the information was retrieved
  50677. */
  50678. err_t
  50679. netconn_getaddr(struct netconn *conn, ip_addr_t *addr, u16_t *port, u8_t local)
  50680. {
  50681. 8014e3c: b580 push {r7, lr}
  50682. 8014e3e: b08e sub sp, #56 @ 0x38
  50683. 8014e40: af00 add r7, sp, #0
  50684. 8014e42: 60f8 str r0, [r7, #12]
  50685. 8014e44: 60b9 str r1, [r7, #8]
  50686. 8014e46: 607a str r2, [r7, #4]
  50687. 8014e48: 70fb strb r3, [r7, #3]
  50688. API_MSG_VAR_DECLARE(msg);
  50689. err_t err;
  50690. LWIP_ERROR("netconn_getaddr: invalid conn", (conn != NULL), return ERR_ARG;);
  50691. 8014e4a: 68fb ldr r3, [r7, #12]
  50692. 8014e4c: 2b00 cmp r3, #0
  50693. 8014e4e: d109 bne.n 8014e64 <netconn_getaddr+0x28>
  50694. 8014e50: 4b1d ldr r3, [pc, #116] @ (8014ec8 <netconn_getaddr+0x8c>)
  50695. 8014e52: f44f 7289 mov.w r2, #274 @ 0x112
  50696. 8014e56: 491d ldr r1, [pc, #116] @ (8014ecc <netconn_getaddr+0x90>)
  50697. 8014e58: 481d ldr r0, [pc, #116] @ (8014ed0 <netconn_getaddr+0x94>)
  50698. 8014e5a: f014 fb57 bl 802950c <iprintf>
  50699. 8014e5e: f06f 030f mvn.w r3, #15
  50700. 8014e62: e02d b.n 8014ec0 <netconn_getaddr+0x84>
  50701. LWIP_ERROR("netconn_getaddr: invalid addr", (addr != NULL), return ERR_ARG;);
  50702. 8014e64: 68bb ldr r3, [r7, #8]
  50703. 8014e66: 2b00 cmp r3, #0
  50704. 8014e68: d109 bne.n 8014e7e <netconn_getaddr+0x42>
  50705. 8014e6a: 4b17 ldr r3, [pc, #92] @ (8014ec8 <netconn_getaddr+0x8c>)
  50706. 8014e6c: f240 1213 movw r2, #275 @ 0x113
  50707. 8014e70: 4918 ldr r1, [pc, #96] @ (8014ed4 <netconn_getaddr+0x98>)
  50708. 8014e72: 4817 ldr r0, [pc, #92] @ (8014ed0 <netconn_getaddr+0x94>)
  50709. 8014e74: f014 fb4a bl 802950c <iprintf>
  50710. 8014e78: f06f 030f mvn.w r3, #15
  50711. 8014e7c: e020 b.n 8014ec0 <netconn_getaddr+0x84>
  50712. LWIP_ERROR("netconn_getaddr: invalid port", (port != NULL), return ERR_ARG;);
  50713. 8014e7e: 687b ldr r3, [r7, #4]
  50714. 8014e80: 2b00 cmp r3, #0
  50715. 8014e82: d109 bne.n 8014e98 <netconn_getaddr+0x5c>
  50716. 8014e84: 4b10 ldr r3, [pc, #64] @ (8014ec8 <netconn_getaddr+0x8c>)
  50717. 8014e86: f44f 728a mov.w r2, #276 @ 0x114
  50718. 8014e8a: 4913 ldr r1, [pc, #76] @ (8014ed8 <netconn_getaddr+0x9c>)
  50719. 8014e8c: 4810 ldr r0, [pc, #64] @ (8014ed0 <netconn_getaddr+0x94>)
  50720. 8014e8e: f014 fb3d bl 802950c <iprintf>
  50721. 8014e92: f06f 030f mvn.w r3, #15
  50722. 8014e96: e013 b.n 8014ec0 <netconn_getaddr+0x84>
  50723. API_MSG_VAR_ALLOC(msg);
  50724. API_MSG_VAR_REF(msg).conn = conn;
  50725. 8014e98: 68fb ldr r3, [r7, #12]
  50726. 8014e9a: 617b str r3, [r7, #20]
  50727. API_MSG_VAR_REF(msg).msg.ad.local = local;
  50728. 8014e9c: 78fb ldrb r3, [r7, #3]
  50729. 8014e9e: f887 3024 strb.w r3, [r7, #36] @ 0x24
  50730. #if LWIP_MPU_COMPATIBLE
  50731. err = netconn_apimsg(lwip_netconn_do_getaddr, &API_MSG_VAR_REF(msg));
  50732. *addr = msg->msg.ad.ipaddr;
  50733. *port = msg->msg.ad.port;
  50734. #else /* LWIP_MPU_COMPATIBLE */
  50735. msg.msg.ad.ipaddr = addr;
  50736. 8014ea2: 68bb ldr r3, [r7, #8]
  50737. 8014ea4: 61fb str r3, [r7, #28]
  50738. msg.msg.ad.port = port;
  50739. 8014ea6: 687b ldr r3, [r7, #4]
  50740. 8014ea8: 623b str r3, [r7, #32]
  50741. err = netconn_apimsg(lwip_netconn_do_getaddr, &msg);
  50742. 8014eaa: f107 0314 add.w r3, r7, #20
  50743. 8014eae: 4619 mov r1, r3
  50744. 8014eb0: 480a ldr r0, [pc, #40] @ (8014edc <netconn_getaddr+0xa0>)
  50745. 8014eb2: f7ff fee9 bl 8014c88 <netconn_apimsg>
  50746. 8014eb6: 4603 mov r3, r0
  50747. 8014eb8: f887 3037 strb.w r3, [r7, #55] @ 0x37
  50748. #endif /* LWIP_MPU_COMPATIBLE */
  50749. API_MSG_VAR_FREE(msg);
  50750. return err;
  50751. 8014ebc: f997 3037 ldrsb.w r3, [r7, #55] @ 0x37
  50752. }
  50753. 8014ec0: 4618 mov r0, r3
  50754. 8014ec2: 3738 adds r7, #56 @ 0x38
  50755. 8014ec4: 46bd mov sp, r7
  50756. 8014ec6: bd80 pop {r7, pc}
  50757. 8014ec8: 0802c718 .word 0x0802c718
  50758. 8014ecc: 0802c7f0 .word 0x0802c7f0
  50759. 8014ed0: 0802c770 .word 0x0802c770
  50760. 8014ed4: 0802c810 .word 0x0802c810
  50761. 8014ed8: 0802c830 .word 0x0802c830
  50762. 8014edc: 08016df1 .word 0x08016df1
  50763. 08014ee0 <netconn_connect>:
  50764. * @param port the remote port to connect to (no used for RAW)
  50765. * @return ERR_OK if connected, return value of tcp_/udp_/raw_connect otherwise
  50766. */
  50767. err_t
  50768. netconn_connect(struct netconn *conn, const ip_addr_t *addr, u16_t port)
  50769. {
  50770. 8014ee0: b580 push {r7, lr}
  50771. 8014ee2: b08e sub sp, #56 @ 0x38
  50772. 8014ee4: af00 add r7, sp, #0
  50773. 8014ee6: 60f8 str r0, [r7, #12]
  50774. 8014ee8: 60b9 str r1, [r7, #8]
  50775. 8014eea: 4613 mov r3, r2
  50776. 8014eec: 80fb strh r3, [r7, #6]
  50777. API_MSG_VAR_DECLARE(msg);
  50778. err_t err;
  50779. LWIP_ERROR("netconn_connect: invalid conn", (conn != NULL), return ERR_ARG;);
  50780. 8014eee: 68fb ldr r3, [r7, #12]
  50781. 8014ef0: 2b00 cmp r3, #0
  50782. 8014ef2: d109 bne.n 8014f08 <netconn_connect+0x28>
  50783. 8014ef4: 4b11 ldr r3, [pc, #68] @ (8014f3c <netconn_connect+0x5c>)
  50784. 8014ef6: f44f 72bf mov.w r2, #382 @ 0x17e
  50785. 8014efa: 4911 ldr r1, [pc, #68] @ (8014f40 <netconn_connect+0x60>)
  50786. 8014efc: 4811 ldr r0, [pc, #68] @ (8014f44 <netconn_connect+0x64>)
  50787. 8014efe: f014 fb05 bl 802950c <iprintf>
  50788. 8014f02: f06f 030f mvn.w r3, #15
  50789. 8014f06: e015 b.n 8014f34 <netconn_connect+0x54>
  50790. #if LWIP_IPV4
  50791. /* Don't propagate NULL pointer (IP_ADDR_ANY alias) to subsequent functions */
  50792. if (addr == NULL) {
  50793. 8014f08: 68bb ldr r3, [r7, #8]
  50794. 8014f0a: 2b00 cmp r3, #0
  50795. 8014f0c: d101 bne.n 8014f12 <netconn_connect+0x32>
  50796. addr = IP4_ADDR_ANY;
  50797. 8014f0e: 4b0e ldr r3, [pc, #56] @ (8014f48 <netconn_connect+0x68>)
  50798. 8014f10: 60bb str r3, [r7, #8]
  50799. }
  50800. #endif /* LWIP_IPV4 */
  50801. API_MSG_VAR_ALLOC(msg);
  50802. API_MSG_VAR_REF(msg).conn = conn;
  50803. 8014f12: 68fb ldr r3, [r7, #12]
  50804. 8014f14: 617b str r3, [r7, #20]
  50805. API_MSG_VAR_REF(msg).msg.bc.ipaddr = API_MSG_VAR_REF(addr);
  50806. 8014f16: 68bb ldr r3, [r7, #8]
  50807. 8014f18: 61fb str r3, [r7, #28]
  50808. API_MSG_VAR_REF(msg).msg.bc.port = port;
  50809. 8014f1a: 88fb ldrh r3, [r7, #6]
  50810. 8014f1c: 843b strh r3, [r7, #32]
  50811. err = netconn_apimsg(lwip_netconn_do_connect, &API_MSG_VAR_REF(msg));
  50812. 8014f1e: f107 0314 add.w r3, r7, #20
  50813. 8014f22: 4619 mov r1, r3
  50814. 8014f24: 4809 ldr r0, [pc, #36] @ (8014f4c <netconn_connect+0x6c>)
  50815. 8014f26: f7ff feaf bl 8014c88 <netconn_apimsg>
  50816. 8014f2a: 4603 mov r3, r0
  50817. 8014f2c: f887 3037 strb.w r3, [r7, #55] @ 0x37
  50818. API_MSG_VAR_FREE(msg);
  50819. return err;
  50820. 8014f30: f997 3037 ldrsb.w r3, [r7, #55] @ 0x37
  50821. }
  50822. 8014f34: 4618 mov r0, r3
  50823. 8014f36: 3738 adds r7, #56 @ 0x38
  50824. 8014f38: 46bd mov sp, r7
  50825. 8014f3a: bd80 pop {r7, pc}
  50826. 8014f3c: 0802c718 .word 0x0802c718
  50827. 8014f40: 0802c88c .word 0x0802c88c
  50828. 8014f44: 0802c770 .word 0x0802c770
  50829. 8014f48: 080307a4 .word 0x080307a4
  50830. 8014f4c: 08016681 .word 0x08016681
  50831. 08014f50 <netconn_disconnect>:
  50832. * @param conn the netconn to disconnect
  50833. * @return See @ref err_t
  50834. */
  50835. err_t
  50836. netconn_disconnect(struct netconn *conn)
  50837. {
  50838. 8014f50: b580 push {r7, lr}
  50839. 8014f52: b08c sub sp, #48 @ 0x30
  50840. 8014f54: af00 add r7, sp, #0
  50841. 8014f56: 6078 str r0, [r7, #4]
  50842. API_MSG_VAR_DECLARE(msg);
  50843. err_t err;
  50844. LWIP_ERROR("netconn_disconnect: invalid conn", (conn != NULL), return ERR_ARG;);
  50845. 8014f58: 687b ldr r3, [r7, #4]
  50846. 8014f5a: 2b00 cmp r3, #0
  50847. 8014f5c: d109 bne.n 8014f72 <netconn_disconnect+0x22>
  50848. 8014f5e: 4b0d ldr r3, [pc, #52] @ (8014f94 <netconn_disconnect+0x44>)
  50849. 8014f60: f44f 72cf mov.w r2, #414 @ 0x19e
  50850. 8014f64: 490c ldr r1, [pc, #48] @ (8014f98 <netconn_disconnect+0x48>)
  50851. 8014f66: 480d ldr r0, [pc, #52] @ (8014f9c <netconn_disconnect+0x4c>)
  50852. 8014f68: f014 fad0 bl 802950c <iprintf>
  50853. 8014f6c: f06f 030f mvn.w r3, #15
  50854. 8014f70: e00c b.n 8014f8c <netconn_disconnect+0x3c>
  50855. API_MSG_VAR_ALLOC(msg);
  50856. API_MSG_VAR_REF(msg).conn = conn;
  50857. 8014f72: 687b ldr r3, [r7, #4]
  50858. 8014f74: 60fb str r3, [r7, #12]
  50859. err = netconn_apimsg(lwip_netconn_do_disconnect, &API_MSG_VAR_REF(msg));
  50860. 8014f76: f107 030c add.w r3, r7, #12
  50861. 8014f7a: 4619 mov r1, r3
  50862. 8014f7c: 4808 ldr r0, [pc, #32] @ (8014fa0 <netconn_disconnect+0x50>)
  50863. 8014f7e: f7ff fe83 bl 8014c88 <netconn_apimsg>
  50864. 8014f82: 4603 mov r3, r0
  50865. 8014f84: f887 302f strb.w r3, [r7, #47] @ 0x2f
  50866. API_MSG_VAR_FREE(msg);
  50867. return err;
  50868. 8014f88: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f
  50869. }
  50870. 8014f8c: 4618 mov r0, r3
  50871. 8014f8e: 3730 adds r7, #48 @ 0x30
  50872. 8014f90: 46bd mov sp, r7
  50873. 8014f92: bd80 pop {r7, pc}
  50874. 8014f94: 0802c718 .word 0x0802c718
  50875. 8014f98: 0802c8ac .word 0x0802c8ac
  50876. 8014f9c: 0802c770 .word 0x0802c770
  50877. 8014fa0: 08016801 .word 0x08016801
  50878. 08014fa4 <netconn_recv_data>:
  50879. * ERR_WOULDBLOCK if the netconn is nonblocking but would block to wait for data
  50880. * ERR_TIMEOUT if the netconn has a receive timeout and no data was received
  50881. */
  50882. static err_t
  50883. netconn_recv_data(struct netconn *conn, void **new_buf, u8_t apiflags)
  50884. {
  50885. 8014fa4: b580 push {r7, lr}
  50886. 8014fa6: b08a sub sp, #40 @ 0x28
  50887. 8014fa8: af00 add r7, sp, #0
  50888. 8014faa: 60f8 str r0, [r7, #12]
  50889. 8014fac: 60b9 str r1, [r7, #8]
  50890. 8014fae: 4613 mov r3, r2
  50891. 8014fb0: 71fb strb r3, [r7, #7]
  50892. void *buf = NULL;
  50893. 8014fb2: 2300 movs r3, #0
  50894. 8014fb4: 61bb str r3, [r7, #24]
  50895. u16_t len;
  50896. LWIP_ERROR("netconn_recv: invalid pointer", (new_buf != NULL), return ERR_ARG;);
  50897. 8014fb6: 68bb ldr r3, [r7, #8]
  50898. 8014fb8: 2b00 cmp r3, #0
  50899. 8014fba: d109 bne.n 8014fd0 <netconn_recv_data+0x2c>
  50900. 8014fbc: 4b64 ldr r3, [pc, #400] @ (8015150 <netconn_recv_data+0x1ac>)
  50901. 8014fbe: f44f 7212 mov.w r2, #584 @ 0x248
  50902. 8014fc2: 4964 ldr r1, [pc, #400] @ (8015154 <netconn_recv_data+0x1b0>)
  50903. 8014fc4: 4864 ldr r0, [pc, #400] @ (8015158 <netconn_recv_data+0x1b4>)
  50904. 8014fc6: f014 faa1 bl 802950c <iprintf>
  50905. 8014fca: f06f 030f mvn.w r3, #15
  50906. 8014fce: e0bb b.n 8015148 <netconn_recv_data+0x1a4>
  50907. *new_buf = NULL;
  50908. 8014fd0: 68bb ldr r3, [r7, #8]
  50909. 8014fd2: 2200 movs r2, #0
  50910. 8014fd4: 601a str r2, [r3, #0]
  50911. LWIP_ERROR("netconn_recv: invalid conn", (conn != NULL), return ERR_ARG;);
  50912. 8014fd6: 68fb ldr r3, [r7, #12]
  50913. 8014fd8: 2b00 cmp r3, #0
  50914. 8014fda: d109 bne.n 8014ff0 <netconn_recv_data+0x4c>
  50915. 8014fdc: 4b5c ldr r3, [pc, #368] @ (8015150 <netconn_recv_data+0x1ac>)
  50916. 8014fde: f240 224a movw r2, #586 @ 0x24a
  50917. 8014fe2: 495e ldr r1, [pc, #376] @ (801515c <netconn_recv_data+0x1b8>)
  50918. 8014fe4: 485c ldr r0, [pc, #368] @ (8015158 <netconn_recv_data+0x1b4>)
  50919. 8014fe6: f014 fa91 bl 802950c <iprintf>
  50920. 8014fea: f06f 030f mvn.w r3, #15
  50921. 8014fee: e0ab b.n 8015148 <netconn_recv_data+0x1a4>
  50922. if (!NETCONN_RECVMBOX_WAITABLE(conn)) {
  50923. 8014ff0: 68fb ldr r3, [r7, #12]
  50924. 8014ff2: 3310 adds r3, #16
  50925. 8014ff4: 4618 mov r0, r3
  50926. 8014ff6: f010 fee9 bl 8025dcc <sys_mbox_valid>
  50927. 8014ffa: 4603 mov r3, r0
  50928. 8014ffc: 2b00 cmp r3, #0
  50929. 8014ffe: d10e bne.n 801501e <netconn_recv_data+0x7a>
  50930. err_t err = netconn_err(conn);
  50931. 8015000: 68f8 ldr r0, [r7, #12]
  50932. 8015002: f000 fb1f bl 8015644 <netconn_err>
  50933. 8015006: 4603 mov r3, r0
  50934. 8015008: 77fb strb r3, [r7, #31]
  50935. if (err != ERR_OK) {
  50936. 801500a: f997 301f ldrsb.w r3, [r7, #31]
  50937. 801500e: 2b00 cmp r3, #0
  50938. 8015010: d002 beq.n 8015018 <netconn_recv_data+0x74>
  50939. /* return pending error */
  50940. return err;
  50941. 8015012: f997 301f ldrsb.w r3, [r7, #31]
  50942. 8015016: e097 b.n 8015148 <netconn_recv_data+0x1a4>
  50943. }
  50944. return ERR_CONN;
  50945. 8015018: f06f 030a mvn.w r3, #10
  50946. 801501c: e094 b.n 8015148 <netconn_recv_data+0x1a4>
  50947. }
  50948. NETCONN_MBOX_WAITING_INC(conn);
  50949. if (netconn_is_nonblocking(conn) || (apiflags & NETCONN_DONTBLOCK) ||
  50950. 801501e: 68fb ldr r3, [r7, #12]
  50951. 8015020: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  50952. 8015024: f003 0302 and.w r3, r3, #2
  50953. 8015028: 2b00 cmp r3, #0
  50954. 801502a: d110 bne.n 801504e <netconn_recv_data+0xaa>
  50955. 801502c: 79fb ldrb r3, [r7, #7]
  50956. 801502e: f003 0304 and.w r3, r3, #4
  50957. 8015032: 2b00 cmp r3, #0
  50958. 8015034: d10b bne.n 801504e <netconn_recv_data+0xaa>
  50959. (conn->flags & NETCONN_FLAG_MBOXCLOSED) || (conn->pending_err != ERR_OK)) {
  50960. 8015036: 68fb ldr r3, [r7, #12]
  50961. 8015038: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  50962. 801503c: f003 0301 and.w r3, r3, #1
  50963. if (netconn_is_nonblocking(conn) || (apiflags & NETCONN_DONTBLOCK) ||
  50964. 8015040: 2b00 cmp r3, #0
  50965. 8015042: d104 bne.n 801504e <netconn_recv_data+0xaa>
  50966. (conn->flags & NETCONN_FLAG_MBOXCLOSED) || (conn->pending_err != ERR_OK)) {
  50967. 8015044: 68fb ldr r3, [r7, #12]
  50968. 8015046: f993 3008 ldrsb.w r3, [r3, #8]
  50969. 801504a: 2b00 cmp r3, #0
  50970. 801504c: d025 beq.n 801509a <netconn_recv_data+0xf6>
  50971. if (sys_arch_mbox_tryfetch(&conn->recvmbox, &buf) == SYS_ARCH_TIMEOUT) {
  50972. 801504e: 68fb ldr r3, [r7, #12]
  50973. 8015050: 3310 adds r3, #16
  50974. 8015052: f107 0218 add.w r2, r7, #24
  50975. 8015056: 4611 mov r1, r2
  50976. 8015058: 4618 mov r0, r3
  50977. 801505a: f010 fea0 bl 8025d9e <sys_arch_mbox_tryfetch>
  50978. 801505e: 4603 mov r3, r0
  50979. 8015060: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50980. 8015064: d12a bne.n 80150bc <netconn_recv_data+0x118>
  50981. err_t err;
  50982. NETCONN_MBOX_WAITING_DEC(conn);
  50983. err = netconn_err(conn);
  50984. 8015066: 68f8 ldr r0, [r7, #12]
  50985. 8015068: f000 faec bl 8015644 <netconn_err>
  50986. 801506c: 4603 mov r3, r0
  50987. 801506e: f887 3025 strb.w r3, [r7, #37] @ 0x25
  50988. if (err != ERR_OK) {
  50989. 8015072: f997 3025 ldrsb.w r3, [r7, #37] @ 0x25
  50990. 8015076: 2b00 cmp r3, #0
  50991. 8015078: d002 beq.n 8015080 <netconn_recv_data+0xdc>
  50992. /* return pending error */
  50993. return err;
  50994. 801507a: f997 3025 ldrsb.w r3, [r7, #37] @ 0x25
  50995. 801507e: e063 b.n 8015148 <netconn_recv_data+0x1a4>
  50996. }
  50997. if (conn->flags & NETCONN_FLAG_MBOXCLOSED) {
  50998. 8015080: 68fb ldr r3, [r7, #12]
  50999. 8015082: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  51000. 8015086: f003 0301 and.w r3, r3, #1
  51001. 801508a: 2b00 cmp r3, #0
  51002. 801508c: d002 beq.n 8015094 <netconn_recv_data+0xf0>
  51003. return ERR_CONN;
  51004. 801508e: f06f 030a mvn.w r3, #10
  51005. 8015092: e059 b.n 8015148 <netconn_recv_data+0x1a4>
  51006. }
  51007. return ERR_WOULDBLOCK;
  51008. 8015094: f06f 0306 mvn.w r3, #6
  51009. 8015098: e056 b.n 8015148 <netconn_recv_data+0x1a4>
  51010. }
  51011. } else {
  51012. #if LWIP_SO_RCVTIMEO
  51013. if (sys_arch_mbox_fetch(&conn->recvmbox, &buf, conn->recv_timeout) == SYS_ARCH_TIMEOUT) {
  51014. 801509a: 68fb ldr r3, [r7, #12]
  51015. 801509c: f103 0010 add.w r0, r3, #16
  51016. 80150a0: 68fb ldr r3, [r7, #12]
  51017. 80150a2: 69da ldr r2, [r3, #28]
  51018. 80150a4: f107 0318 add.w r3, r7, #24
  51019. 80150a8: 4619 mov r1, r3
  51020. 80150aa: f010 fe47 bl 8025d3c <sys_arch_mbox_fetch>
  51021. 80150ae: 4603 mov r3, r0
  51022. 80150b0: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  51023. 80150b4: d102 bne.n 80150bc <netconn_recv_data+0x118>
  51024. NETCONN_MBOX_WAITING_DEC(conn);
  51025. return ERR_TIMEOUT;
  51026. 80150b6: f06f 0302 mvn.w r3, #2
  51027. 80150ba: e045 b.n 8015148 <netconn_recv_data+0x1a4>
  51028. }
  51029. #endif
  51030. #if LWIP_TCP
  51031. #if (LWIP_UDP || LWIP_RAW)
  51032. if (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP)
  51033. 80150bc: 68fb ldr r3, [r7, #12]
  51034. 80150be: 781b ldrb r3, [r3, #0]
  51035. 80150c0: f003 03f0 and.w r3, r3, #240 @ 0xf0
  51036. 80150c4: 2b10 cmp r3, #16
  51037. 80150c6: d117 bne.n 80150f8 <netconn_recv_data+0x154>
  51038. #endif /* (LWIP_UDP || LWIP_RAW) */
  51039. {
  51040. err_t err;
  51041. /* Check if this is an error message or a pbuf */
  51042. if (lwip_netconn_is_err_msg(buf, &err)) {
  51043. 80150c8: 69bb ldr r3, [r7, #24]
  51044. 80150ca: f107 0217 add.w r2, r7, #23
  51045. 80150ce: 4611 mov r1, r2
  51046. 80150d0: 4618 mov r0, r3
  51047. 80150d2: f000 fb09 bl 80156e8 <lwip_netconn_is_err_msg>
  51048. 80150d6: 4603 mov r3, r0
  51049. 80150d8: 2b00 cmp r3, #0
  51050. 80150da: d009 beq.n 80150f0 <netconn_recv_data+0x14c>
  51051. /* new_buf has been zeroed above already */
  51052. if (err == ERR_CLSD) {
  51053. 80150dc: f997 3017 ldrsb.w r3, [r7, #23]
  51054. 80150e0: f113 0f0f cmn.w r3, #15
  51055. 80150e4: d101 bne.n 80150ea <netconn_recv_data+0x146>
  51056. /* connection closed translates to ERR_OK with *new_buf == NULL */
  51057. return ERR_OK;
  51058. 80150e6: 2300 movs r3, #0
  51059. 80150e8: e02e b.n 8015148 <netconn_recv_data+0x1a4>
  51060. }
  51061. return err;
  51062. 80150ea: f997 3017 ldrsb.w r3, [r7, #23]
  51063. 80150ee: e02b b.n 8015148 <netconn_recv_data+0x1a4>
  51064. }
  51065. len = ((struct pbuf *)buf)->tot_len;
  51066. 80150f0: 69bb ldr r3, [r7, #24]
  51067. 80150f2: 891b ldrh r3, [r3, #8]
  51068. 80150f4: 84fb strh r3, [r7, #38] @ 0x26
  51069. 80150f6: e00d b.n 8015114 <netconn_recv_data+0x170>
  51070. #if LWIP_TCP && (LWIP_UDP || LWIP_RAW)
  51071. else
  51072. #endif /* LWIP_TCP && (LWIP_UDP || LWIP_RAW) */
  51073. #if (LWIP_UDP || LWIP_RAW)
  51074. {
  51075. LWIP_ASSERT("buf != NULL", buf != NULL);
  51076. 80150f8: 69bb ldr r3, [r7, #24]
  51077. 80150fa: 2b00 cmp r3, #0
  51078. 80150fc: d106 bne.n 801510c <netconn_recv_data+0x168>
  51079. 80150fe: 4b14 ldr r3, [pc, #80] @ (8015150 <netconn_recv_data+0x1ac>)
  51080. 8015100: f240 2291 movw r2, #657 @ 0x291
  51081. 8015104: 4916 ldr r1, [pc, #88] @ (8015160 <netconn_recv_data+0x1bc>)
  51082. 8015106: 4814 ldr r0, [pc, #80] @ (8015158 <netconn_recv_data+0x1b4>)
  51083. 8015108: f014 fa00 bl 802950c <iprintf>
  51084. len = netbuf_len((struct netbuf *)buf);
  51085. 801510c: 69bb ldr r3, [r7, #24]
  51086. 801510e: 681b ldr r3, [r3, #0]
  51087. 8015110: 891b ldrh r3, [r3, #8]
  51088. 8015112: 84fb strh r3, [r7, #38] @ 0x26
  51089. }
  51090. #endif /* (LWIP_UDP || LWIP_RAW) */
  51091. #if LWIP_SO_RCVBUF
  51092. SYS_ARCH_DEC(conn->recv_avail, len);
  51093. 8015114: f010 ff64 bl 8025fe0 <sys_arch_protect>
  51094. 8015118: 6238 str r0, [r7, #32]
  51095. 801511a: 68fb ldr r3, [r7, #12]
  51096. 801511c: 6a5a ldr r2, [r3, #36] @ 0x24
  51097. 801511e: 8cfb ldrh r3, [r7, #38] @ 0x26
  51098. 8015120: 1ad2 subs r2, r2, r3
  51099. 8015122: 68fb ldr r3, [r7, #12]
  51100. 8015124: 625a str r2, [r3, #36] @ 0x24
  51101. 8015126: 6a38 ldr r0, [r7, #32]
  51102. 8015128: f010 ff68 bl 8025ffc <sys_arch_unprotect>
  51103. #endif /* LWIP_SO_RCVBUF */
  51104. /* Register event with callback */
  51105. API_EVENT(conn, NETCONN_EVT_RCVMINUS, len);
  51106. 801512c: 68fb ldr r3, [r7, #12]
  51107. 801512e: 6b1b ldr r3, [r3, #48] @ 0x30
  51108. 8015130: 2b00 cmp r3, #0
  51109. 8015132: d005 beq.n 8015140 <netconn_recv_data+0x19c>
  51110. 8015134: 68fb ldr r3, [r7, #12]
  51111. 8015136: 6b1b ldr r3, [r3, #48] @ 0x30
  51112. 8015138: 8cfa ldrh r2, [r7, #38] @ 0x26
  51113. 801513a: 2101 movs r1, #1
  51114. 801513c: 68f8 ldr r0, [r7, #12]
  51115. 801513e: 4798 blx r3
  51116. LWIP_DEBUGF(API_LIB_DEBUG, ("netconn_recv_data: received %p, len=%"U16_F"\n", buf, len));
  51117. *new_buf = buf;
  51118. 8015140: 69ba ldr r2, [r7, #24]
  51119. 8015142: 68bb ldr r3, [r7, #8]
  51120. 8015144: 601a str r2, [r3, #0]
  51121. /* don't set conn->last_err: it's only ERR_OK, anyway */
  51122. return ERR_OK;
  51123. 8015146: 2300 movs r3, #0
  51124. }
  51125. 8015148: 4618 mov r0, r3
  51126. 801514a: 3728 adds r7, #40 @ 0x28
  51127. 801514c: 46bd mov sp, r7
  51128. 801514e: bd80 pop {r7, pc}
  51129. 8015150: 0802c718 .word 0x0802c718
  51130. 8015154: 0802c930 .word 0x0802c930
  51131. 8015158: 0802c770 .word 0x0802c770
  51132. 801515c: 0802c950 .word 0x0802c950
  51133. 8015160: 0802c96c .word 0x0802c96c
  51134. 08015164 <netconn_tcp_recvd_msg>:
  51135. #if LWIP_TCP
  51136. static err_t
  51137. netconn_tcp_recvd_msg(struct netconn *conn, size_t len, struct api_msg *msg)
  51138. {
  51139. 8015164: b580 push {r7, lr}
  51140. 8015166: b084 sub sp, #16
  51141. 8015168: af00 add r7, sp, #0
  51142. 801516a: 60f8 str r0, [r7, #12]
  51143. 801516c: 60b9 str r1, [r7, #8]
  51144. 801516e: 607a str r2, [r7, #4]
  51145. LWIP_ERROR("netconn_recv_tcp_pbuf: invalid conn", (conn != NULL) &&
  51146. 8015170: 68fb ldr r3, [r7, #12]
  51147. 8015172: 2b00 cmp r3, #0
  51148. 8015174: d005 beq.n 8015182 <netconn_tcp_recvd_msg+0x1e>
  51149. 8015176: 68fb ldr r3, [r7, #12]
  51150. 8015178: 781b ldrb r3, [r3, #0]
  51151. 801517a: f003 03f0 and.w r3, r3, #240 @ 0xf0
  51152. 801517e: 2b10 cmp r3, #16
  51153. 8015180: d009 beq.n 8015196 <netconn_tcp_recvd_msg+0x32>
  51154. 8015182: 4b0c ldr r3, [pc, #48] @ (80151b4 <netconn_tcp_recvd_msg+0x50>)
  51155. 8015184: f240 22a7 movw r2, #679 @ 0x2a7
  51156. 8015188: 490b ldr r1, [pc, #44] @ (80151b8 <netconn_tcp_recvd_msg+0x54>)
  51157. 801518a: 480c ldr r0, [pc, #48] @ (80151bc <netconn_tcp_recvd_msg+0x58>)
  51158. 801518c: f014 f9be bl 802950c <iprintf>
  51159. 8015190: f06f 030f mvn.w r3, #15
  51160. 8015194: e00a b.n 80151ac <netconn_tcp_recvd_msg+0x48>
  51161. NETCONNTYPE_GROUP(netconn_type(conn)) == NETCONN_TCP, return ERR_ARG;);
  51162. msg->conn = conn;
  51163. 8015196: 687b ldr r3, [r7, #4]
  51164. 8015198: 68fa ldr r2, [r7, #12]
  51165. 801519a: 601a str r2, [r3, #0]
  51166. msg->msg.r.len = len;
  51167. 801519c: 687b ldr r3, [r7, #4]
  51168. 801519e: 68ba ldr r2, [r7, #8]
  51169. 80151a0: 609a str r2, [r3, #8]
  51170. return netconn_apimsg(lwip_netconn_do_recv, msg);
  51171. 80151a2: 6879 ldr r1, [r7, #4]
  51172. 80151a4: 4806 ldr r0, [pc, #24] @ (80151c0 <netconn_tcp_recvd_msg+0x5c>)
  51173. 80151a6: f7ff fd6f bl 8014c88 <netconn_apimsg>
  51174. 80151aa: 4603 mov r3, r0
  51175. }
  51176. 80151ac: 4618 mov r0, r3
  51177. 80151ae: 3710 adds r7, #16
  51178. 80151b0: 46bd mov sp, r7
  51179. 80151b2: bd80 pop {r7, pc}
  51180. 80151b4: 0802c718 .word 0x0802c718
  51181. 80151b8: 0802c978 .word 0x0802c978
  51182. 80151bc: 0802c770 .word 0x0802c770
  51183. 80151c0: 080168d7 .word 0x080168d7
  51184. 080151c4 <netconn_tcp_recvd>:
  51185. err_t
  51186. netconn_tcp_recvd(struct netconn *conn, size_t len)
  51187. {
  51188. 80151c4: b580 push {r7, lr}
  51189. 80151c6: b08c sub sp, #48 @ 0x30
  51190. 80151c8: af00 add r7, sp, #0
  51191. 80151ca: 6078 str r0, [r7, #4]
  51192. 80151cc: 6039 str r1, [r7, #0]
  51193. err_t err;
  51194. API_MSG_VAR_DECLARE(msg);
  51195. LWIP_ERROR("netconn_recv_tcp_pbuf: invalid conn", (conn != NULL) &&
  51196. 80151ce: 687b ldr r3, [r7, #4]
  51197. 80151d0: 2b00 cmp r3, #0
  51198. 80151d2: d005 beq.n 80151e0 <netconn_tcp_recvd+0x1c>
  51199. 80151d4: 687b ldr r3, [r7, #4]
  51200. 80151d6: 781b ldrb r3, [r3, #0]
  51201. 80151d8: f003 03f0 and.w r3, r3, #240 @ 0xf0
  51202. 80151dc: 2b10 cmp r3, #16
  51203. 80151de: d009 beq.n 80151f4 <netconn_tcp_recvd+0x30>
  51204. 80151e0: 4b0c ldr r3, [pc, #48] @ (8015214 <netconn_tcp_recvd+0x50>)
  51205. 80151e2: f240 22b5 movw r2, #693 @ 0x2b5
  51206. 80151e6: 490c ldr r1, [pc, #48] @ (8015218 <netconn_tcp_recvd+0x54>)
  51207. 80151e8: 480c ldr r0, [pc, #48] @ (801521c <netconn_tcp_recvd+0x58>)
  51208. 80151ea: f014 f98f bl 802950c <iprintf>
  51209. 80151ee: f06f 030f mvn.w r3, #15
  51210. 80151f2: e00b b.n 801520c <netconn_tcp_recvd+0x48>
  51211. NETCONNTYPE_GROUP(netconn_type(conn)) == NETCONN_TCP, return ERR_ARG;);
  51212. API_MSG_VAR_ALLOC(msg);
  51213. err = netconn_tcp_recvd_msg(conn, len, &API_VAR_REF(msg));
  51214. 80151f4: f107 030c add.w r3, r7, #12
  51215. 80151f8: 461a mov r2, r3
  51216. 80151fa: 6839 ldr r1, [r7, #0]
  51217. 80151fc: 6878 ldr r0, [r7, #4]
  51218. 80151fe: f7ff ffb1 bl 8015164 <netconn_tcp_recvd_msg>
  51219. 8015202: 4603 mov r3, r0
  51220. 8015204: f887 302f strb.w r3, [r7, #47] @ 0x2f
  51221. API_MSG_VAR_FREE(msg);
  51222. return err;
  51223. 8015208: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f
  51224. }
  51225. 801520c: 4618 mov r0, r3
  51226. 801520e: 3730 adds r7, #48 @ 0x30
  51227. 8015210: 46bd mov sp, r7
  51228. 8015212: bd80 pop {r7, pc}
  51229. 8015214: 0802c718 .word 0x0802c718
  51230. 8015218: 0802c978 .word 0x0802c978
  51231. 801521c: 0802c770 .word 0x0802c770
  51232. 08015220 <netconn_recv_data_tcp>:
  51233. static err_t
  51234. netconn_recv_data_tcp(struct netconn *conn, struct pbuf **new_buf, u8_t apiflags)
  51235. {
  51236. 8015220: b580 push {r7, lr}
  51237. 8015222: b090 sub sp, #64 @ 0x40
  51238. 8015224: af00 add r7, sp, #0
  51239. 8015226: 60f8 str r0, [r7, #12]
  51240. 8015228: 60b9 str r1, [r7, #8]
  51241. 801522a: 4613 mov r3, r2
  51242. 801522c: 71fb strb r3, [r7, #7]
  51243. API_MSG_VAR_DECLARE(msg);
  51244. #if LWIP_MPU_COMPATIBLE
  51245. msg = NULL;
  51246. #endif
  51247. if (!NETCONN_RECVMBOX_WAITABLE(conn)) {
  51248. 801522e: 68fb ldr r3, [r7, #12]
  51249. 8015230: 3310 adds r3, #16
  51250. 8015232: 4618 mov r0, r3
  51251. 8015234: f010 fdca bl 8025dcc <sys_mbox_valid>
  51252. 8015238: 4603 mov r3, r0
  51253. 801523a: 2b00 cmp r3, #0
  51254. 801523c: d102 bne.n 8015244 <netconn_recv_data_tcp+0x24>
  51255. /* This only happens when calling this function more than once *after* receiving FIN */
  51256. return ERR_CONN;
  51257. 801523e: f06f 030a mvn.w r3, #10
  51258. 8015242: e072 b.n 801532a <netconn_recv_data_tcp+0x10a>
  51259. }
  51260. if (netconn_is_flag_set(conn, NETCONN_FIN_RX_PENDING)) {
  51261. 8015244: 68fb ldr r3, [r7, #12]
  51262. 8015246: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  51263. 801524a: b25b sxtb r3, r3
  51264. 801524c: 2b00 cmp r3, #0
  51265. 801524e: da09 bge.n 8015264 <netconn_recv_data_tcp+0x44>
  51266. netconn_clear_flags(conn, NETCONN_FIN_RX_PENDING);
  51267. 8015250: 68fb ldr r3, [r7, #12]
  51268. 8015252: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  51269. 8015256: f003 037f and.w r3, r3, #127 @ 0x7f
  51270. 801525a: b2da uxtb r2, r3
  51271. 801525c: 68fb ldr r3, [r7, #12]
  51272. 801525e: f883 2028 strb.w r2, [r3, #40] @ 0x28
  51273. goto handle_fin;
  51274. 8015262: e03b b.n 80152dc <netconn_recv_data_tcp+0xbc>
  51275. /* need to allocate API message here so empty message pool does not result in event loss
  51276. * see bug #47512: MPU_COMPATIBLE may fail on empty pool */
  51277. API_MSG_VAR_ALLOC(msg);
  51278. }
  51279. err = netconn_recv_data(conn, (void **)new_buf, apiflags);
  51280. 8015264: 79fb ldrb r3, [r7, #7]
  51281. 8015266: 461a mov r2, r3
  51282. 8015268: 68b9 ldr r1, [r7, #8]
  51283. 801526a: 68f8 ldr r0, [r7, #12]
  51284. 801526c: f7ff fe9a bl 8014fa4 <netconn_recv_data>
  51285. 8015270: 4603 mov r3, r0
  51286. 8015272: f887 303f strb.w r3, [r7, #63] @ 0x3f
  51287. if (err != ERR_OK) {
  51288. 8015276: f997 303f ldrsb.w r3, [r7, #63] @ 0x3f
  51289. 801527a: 2b00 cmp r3, #0
  51290. 801527c: d002 beq.n 8015284 <netconn_recv_data_tcp+0x64>
  51291. if (!(apiflags & NETCONN_NOAUTORCVD)) {
  51292. API_MSG_VAR_FREE(msg);
  51293. }
  51294. return err;
  51295. 801527e: f997 303f ldrsb.w r3, [r7, #63] @ 0x3f
  51296. 8015282: e052 b.n 801532a <netconn_recv_data_tcp+0x10a>
  51297. }
  51298. buf = *new_buf;
  51299. 8015284: 68bb ldr r3, [r7, #8]
  51300. 8015286: 681b ldr r3, [r3, #0]
  51301. 8015288: 63bb str r3, [r7, #56] @ 0x38
  51302. if (!(apiflags & NETCONN_NOAUTORCVD)) {
  51303. 801528a: 79fb ldrb r3, [r7, #7]
  51304. 801528c: f003 0308 and.w r3, r3, #8
  51305. 8015290: 2b00 cmp r3, #0
  51306. 8015292: d10e bne.n 80152b2 <netconn_recv_data_tcp+0x92>
  51307. /* Let the stack know that we have taken the data. */
  51308. u16_t len = buf ? buf->tot_len : 1;
  51309. 8015294: 6bbb ldr r3, [r7, #56] @ 0x38
  51310. 8015296: 2b00 cmp r3, #0
  51311. 8015298: d002 beq.n 80152a0 <netconn_recv_data_tcp+0x80>
  51312. 801529a: 6bbb ldr r3, [r7, #56] @ 0x38
  51313. 801529c: 891b ldrh r3, [r3, #8]
  51314. 801529e: e000 b.n 80152a2 <netconn_recv_data_tcp+0x82>
  51315. 80152a0: 2301 movs r3, #1
  51316. 80152a2: 86fb strh r3, [r7, #54] @ 0x36
  51317. /* don't care for the return value of lwip_netconn_do_recv */
  51318. /* @todo: this should really be fixed, e.g. by retrying in poll on error */
  51319. netconn_tcp_recvd_msg(conn, len, &API_VAR_REF(msg));
  51320. 80152a4: 8efb ldrh r3, [r7, #54] @ 0x36
  51321. 80152a6: f107 0214 add.w r2, r7, #20
  51322. 80152aa: 4619 mov r1, r3
  51323. 80152ac: 68f8 ldr r0, [r7, #12]
  51324. 80152ae: f7ff ff59 bl 8015164 <netconn_tcp_recvd_msg>
  51325. API_MSG_VAR_FREE(msg);
  51326. }
  51327. /* If we are closed, we indicate that we no longer wish to use the socket */
  51328. if (buf == NULL) {
  51329. 80152b2: 6bbb ldr r3, [r7, #56] @ 0x38
  51330. 80152b4: 2b00 cmp r3, #0
  51331. 80152b6: d136 bne.n 8015326 <netconn_recv_data_tcp+0x106>
  51332. if (apiflags & NETCONN_NOFIN) {
  51333. 80152b8: 79fb ldrb r3, [r7, #7]
  51334. 80152ba: f003 0310 and.w r3, r3, #16
  51335. 80152be: 2b00 cmp r3, #0
  51336. 80152c0: d00b beq.n 80152da <netconn_recv_data_tcp+0xba>
  51337. /* received a FIN but the caller cannot handle it right now:
  51338. re-enqueue it and return "no data" */
  51339. netconn_set_flags(conn, NETCONN_FIN_RX_PENDING);
  51340. 80152c2: 68fb ldr r3, [r7, #12]
  51341. 80152c4: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  51342. 80152c8: f063 037f orn r3, r3, #127 @ 0x7f
  51343. 80152cc: b2da uxtb r2, r3
  51344. 80152ce: 68fb ldr r3, [r7, #12]
  51345. 80152d0: f883 2028 strb.w r2, [r3, #40] @ 0x28
  51346. return ERR_WOULDBLOCK;
  51347. 80152d4: f06f 0306 mvn.w r3, #6
  51348. 80152d8: e027 b.n 801532a <netconn_recv_data_tcp+0x10a>
  51349. } else {
  51350. handle_fin:
  51351. 80152da: bf00 nop
  51352. API_EVENT(conn, NETCONN_EVT_RCVMINUS, 0);
  51353. 80152dc: 68fb ldr r3, [r7, #12]
  51354. 80152de: 6b1b ldr r3, [r3, #48] @ 0x30
  51355. 80152e0: 2b00 cmp r3, #0
  51356. 80152e2: d005 beq.n 80152f0 <netconn_recv_data_tcp+0xd0>
  51357. 80152e4: 68fb ldr r3, [r7, #12]
  51358. 80152e6: 6b1b ldr r3, [r3, #48] @ 0x30
  51359. 80152e8: 2200 movs r2, #0
  51360. 80152ea: 2101 movs r1, #1
  51361. 80152ec: 68f8 ldr r0, [r7, #12]
  51362. 80152ee: 4798 blx r3
  51363. if (conn->pcb.ip == NULL) {
  51364. 80152f0: 68fb ldr r3, [r7, #12]
  51365. 80152f2: 685b ldr r3, [r3, #4]
  51366. 80152f4: 2b00 cmp r3, #0
  51367. 80152f6: d10f bne.n 8015318 <netconn_recv_data_tcp+0xf8>
  51368. /* race condition: RST during recv */
  51369. err = netconn_err(conn);
  51370. 80152f8: 68f8 ldr r0, [r7, #12]
  51371. 80152fa: f000 f9a3 bl 8015644 <netconn_err>
  51372. 80152fe: 4603 mov r3, r0
  51373. 8015300: f887 303f strb.w r3, [r7, #63] @ 0x3f
  51374. if (err != ERR_OK) {
  51375. 8015304: f997 303f ldrsb.w r3, [r7, #63] @ 0x3f
  51376. 8015308: 2b00 cmp r3, #0
  51377. 801530a: d002 beq.n 8015312 <netconn_recv_data_tcp+0xf2>
  51378. return err;
  51379. 801530c: f997 303f ldrsb.w r3, [r7, #63] @ 0x3f
  51380. 8015310: e00b b.n 801532a <netconn_recv_data_tcp+0x10a>
  51381. }
  51382. return ERR_RST;
  51383. 8015312: f06f 030d mvn.w r3, #13
  51384. 8015316: e008 b.n 801532a <netconn_recv_data_tcp+0x10a>
  51385. }
  51386. /* RX side is closed, so deallocate the recvmbox */
  51387. netconn_close_shutdown(conn, NETCONN_SHUT_RD);
  51388. 8015318: 2101 movs r1, #1
  51389. 801531a: 68f8 ldr r0, [r7, #12]
  51390. 801531c: f000 f962 bl 80155e4 <netconn_close_shutdown>
  51391. /* Don' store ERR_CLSD as conn->err since we are only half-closed */
  51392. return ERR_CLSD;
  51393. 8015320: f06f 030e mvn.w r3, #14
  51394. 8015324: e001 b.n 801532a <netconn_recv_data_tcp+0x10a>
  51395. }
  51396. }
  51397. return err;
  51398. 8015326: f997 303f ldrsb.w r3, [r7, #63] @ 0x3f
  51399. }
  51400. 801532a: 4618 mov r0, r3
  51401. 801532c: 3740 adds r7, #64 @ 0x40
  51402. 801532e: 46bd mov sp, r7
  51403. 8015330: bd80 pop {r7, pc}
  51404. ...
  51405. 08015334 <netconn_recv_tcp_pbuf_flags>:
  51406. * memory error or another error, @see netconn_recv_data)
  51407. * ERR_ARG if conn is not a TCP netconn
  51408. */
  51409. err_t
  51410. netconn_recv_tcp_pbuf_flags(struct netconn *conn, struct pbuf **new_buf, u8_t apiflags)
  51411. {
  51412. 8015334: b580 push {r7, lr}
  51413. 8015336: b084 sub sp, #16
  51414. 8015338: af00 add r7, sp, #0
  51415. 801533a: 60f8 str r0, [r7, #12]
  51416. 801533c: 60b9 str r1, [r7, #8]
  51417. 801533e: 4613 mov r3, r2
  51418. 8015340: 71fb strb r3, [r7, #7]
  51419. LWIP_ERROR("netconn_recv_tcp_pbuf: invalid conn", (conn != NULL) &&
  51420. 8015342: 68fb ldr r3, [r7, #12]
  51421. 8015344: 2b00 cmp r3, #0
  51422. 8015346: d005 beq.n 8015354 <netconn_recv_tcp_pbuf_flags+0x20>
  51423. 8015348: 68fb ldr r3, [r7, #12]
  51424. 801534a: 781b ldrb r3, [r3, #0]
  51425. 801534c: f003 03f0 and.w r3, r3, #240 @ 0xf0
  51426. 8015350: 2b10 cmp r3, #16
  51427. 8015352: d009 beq.n 8015368 <netconn_recv_tcp_pbuf_flags+0x34>
  51428. 8015354: 4b0a ldr r3, [pc, #40] @ (8015380 <netconn_recv_tcp_pbuf_flags+0x4c>)
  51429. 8015356: f240 3225 movw r2, #805 @ 0x325
  51430. 801535a: 490a ldr r1, [pc, #40] @ (8015384 <netconn_recv_tcp_pbuf_flags+0x50>)
  51431. 801535c: 480a ldr r0, [pc, #40] @ (8015388 <netconn_recv_tcp_pbuf_flags+0x54>)
  51432. 801535e: f014 f8d5 bl 802950c <iprintf>
  51433. 8015362: f06f 030f mvn.w r3, #15
  51434. 8015366: e006 b.n 8015376 <netconn_recv_tcp_pbuf_flags+0x42>
  51435. NETCONNTYPE_GROUP(netconn_type(conn)) == NETCONN_TCP, return ERR_ARG;);
  51436. return netconn_recv_data_tcp(conn, new_buf, apiflags);
  51437. 8015368: 79fb ldrb r3, [r7, #7]
  51438. 801536a: 461a mov r2, r3
  51439. 801536c: 68b9 ldr r1, [r7, #8]
  51440. 801536e: 68f8 ldr r0, [r7, #12]
  51441. 8015370: f7ff ff56 bl 8015220 <netconn_recv_data_tcp>
  51442. 8015374: 4603 mov r3, r0
  51443. }
  51444. 8015376: 4618 mov r0, r3
  51445. 8015378: 3710 adds r7, #16
  51446. 801537a: 46bd mov sp, r7
  51447. 801537c: bd80 pop {r7, pc}
  51448. 801537e: bf00 nop
  51449. 8015380: 0802c718 .word 0x0802c718
  51450. 8015384: 0802c978 .word 0x0802c978
  51451. 8015388: 0802c770 .word 0x0802c770
  51452. 0801538c <netconn_recv_udp_raw_netbuf_flags>:
  51453. * memory error or another error)
  51454. * ERR_ARG if conn is not a UDP/RAW netconn
  51455. */
  51456. err_t
  51457. netconn_recv_udp_raw_netbuf_flags(struct netconn *conn, struct netbuf **new_buf, u8_t apiflags)
  51458. {
  51459. 801538c: b580 push {r7, lr}
  51460. 801538e: b084 sub sp, #16
  51461. 8015390: af00 add r7, sp, #0
  51462. 8015392: 60f8 str r0, [r7, #12]
  51463. 8015394: 60b9 str r1, [r7, #8]
  51464. 8015396: 4613 mov r3, r2
  51465. 8015398: 71fb strb r3, [r7, #7]
  51466. LWIP_ERROR("netconn_recv_udp_raw_netbuf: invalid conn", (conn != NULL) &&
  51467. 801539a: 68fb ldr r3, [r7, #12]
  51468. 801539c: 2b00 cmp r3, #0
  51469. 801539e: d005 beq.n 80153ac <netconn_recv_udp_raw_netbuf_flags+0x20>
  51470. 80153a0: 68fb ldr r3, [r7, #12]
  51471. 80153a2: 781b ldrb r3, [r3, #0]
  51472. 80153a4: f003 03f0 and.w r3, r3, #240 @ 0xf0
  51473. 80153a8: 2b10 cmp r3, #16
  51474. 80153aa: d109 bne.n 80153c0 <netconn_recv_udp_raw_netbuf_flags+0x34>
  51475. 80153ac: 4b0a ldr r3, [pc, #40] @ (80153d8 <netconn_recv_udp_raw_netbuf_flags+0x4c>)
  51476. 80153ae: f44f 7253 mov.w r2, #844 @ 0x34c
  51477. 80153b2: 490a ldr r1, [pc, #40] @ (80153dc <netconn_recv_udp_raw_netbuf_flags+0x50>)
  51478. 80153b4: 480a ldr r0, [pc, #40] @ (80153e0 <netconn_recv_udp_raw_netbuf_flags+0x54>)
  51479. 80153b6: f014 f8a9 bl 802950c <iprintf>
  51480. 80153ba: f06f 030f mvn.w r3, #15
  51481. 80153be: e006 b.n 80153ce <netconn_recv_udp_raw_netbuf_flags+0x42>
  51482. NETCONNTYPE_GROUP(netconn_type(conn)) != NETCONN_TCP, return ERR_ARG;);
  51483. return netconn_recv_data(conn, (void **)new_buf, apiflags);
  51484. 80153c0: 79fb ldrb r3, [r7, #7]
  51485. 80153c2: 461a mov r2, r3
  51486. 80153c4: 68b9 ldr r1, [r7, #8]
  51487. 80153c6: 68f8 ldr r0, [r7, #12]
  51488. 80153c8: f7ff fdec bl 8014fa4 <netconn_recv_data>
  51489. 80153cc: 4603 mov r3, r0
  51490. }
  51491. 80153ce: 4618 mov r0, r3
  51492. 80153d0: 3710 adds r7, #16
  51493. 80153d2: 46bd mov sp, r7
  51494. 80153d4: bd80 pop {r7, pc}
  51495. 80153d6: bf00 nop
  51496. 80153d8: 0802c718 .word 0x0802c718
  51497. 80153dc: 0802c99c .word 0x0802c99c
  51498. 80153e0: 0802c770 .word 0x0802c770
  51499. 080153e4 <netconn_send>:
  51500. * @param buf a netbuf containing the data to send
  51501. * @return ERR_OK if data was sent, any other err_t on error
  51502. */
  51503. err_t
  51504. netconn_send(struct netconn *conn, struct netbuf *buf)
  51505. {
  51506. 80153e4: b580 push {r7, lr}
  51507. 80153e6: b08c sub sp, #48 @ 0x30
  51508. 80153e8: af00 add r7, sp, #0
  51509. 80153ea: 6078 str r0, [r7, #4]
  51510. 80153ec: 6039 str r1, [r7, #0]
  51511. API_MSG_VAR_DECLARE(msg);
  51512. err_t err;
  51513. LWIP_ERROR("netconn_send: invalid conn", (conn != NULL), return ERR_ARG;);
  51514. 80153ee: 687b ldr r3, [r7, #4]
  51515. 80153f0: 2b00 cmp r3, #0
  51516. 80153f2: d109 bne.n 8015408 <netconn_send+0x24>
  51517. 80153f4: 4b0e ldr r3, [pc, #56] @ (8015430 <netconn_send+0x4c>)
  51518. 80153f6: f240 32b2 movw r2, #946 @ 0x3b2
  51519. 80153fa: 490e ldr r1, [pc, #56] @ (8015434 <netconn_send+0x50>)
  51520. 80153fc: 480e ldr r0, [pc, #56] @ (8015438 <netconn_send+0x54>)
  51521. 80153fe: f014 f885 bl 802950c <iprintf>
  51522. 8015402: f06f 030f mvn.w r3, #15
  51523. 8015406: e00e b.n 8015426 <netconn_send+0x42>
  51524. LWIP_DEBUGF(API_LIB_DEBUG, ("netconn_send: sending %"U16_F" bytes\n", buf->p->tot_len));
  51525. API_MSG_VAR_ALLOC(msg);
  51526. API_MSG_VAR_REF(msg).conn = conn;
  51527. 8015408: 687b ldr r3, [r7, #4]
  51528. 801540a: 60fb str r3, [r7, #12]
  51529. API_MSG_VAR_REF(msg).msg.b = buf;
  51530. 801540c: 683b ldr r3, [r7, #0]
  51531. 801540e: 617b str r3, [r7, #20]
  51532. err = netconn_apimsg(lwip_netconn_do_send, &API_MSG_VAR_REF(msg));
  51533. 8015410: f107 030c add.w r3, r7, #12
  51534. 8015414: 4619 mov r1, r3
  51535. 8015416: 4809 ldr r0, [pc, #36] @ (801543c <netconn_send+0x58>)
  51536. 8015418: f7ff fc36 bl 8014c88 <netconn_apimsg>
  51537. 801541c: 4603 mov r3, r0
  51538. 801541e: f887 302f strb.w r3, [r7, #47] @ 0x2f
  51539. API_MSG_VAR_FREE(msg);
  51540. return err;
  51541. 8015422: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f
  51542. }
  51543. 8015426: 4618 mov r0, r3
  51544. 8015428: 3730 adds r7, #48 @ 0x30
  51545. 801542a: 46bd mov sp, r7
  51546. 801542c: bd80 pop {r7, pc}
  51547. 801542e: bf00 nop
  51548. 8015430: 0802c718 .word 0x0802c718
  51549. 8015434: 0802c9d4 .word 0x0802c9d4
  51550. 8015438: 0802c770 .word 0x0802c770
  51551. 801543c: 0801683d .word 0x0801683d
  51552. 08015440 <netconn_write_partly>:
  51553. * @return ERR_OK if data was sent, any other err_t on error
  51554. */
  51555. err_t
  51556. netconn_write_partly(struct netconn *conn, const void *dataptr, size_t size,
  51557. u8_t apiflags, size_t *bytes_written)
  51558. {
  51559. 8015440: b580 push {r7, lr}
  51560. 8015442: b088 sub sp, #32
  51561. 8015444: af02 add r7, sp, #8
  51562. 8015446: 60f8 str r0, [r7, #12]
  51563. 8015448: 60b9 str r1, [r7, #8]
  51564. 801544a: 607a str r2, [r7, #4]
  51565. 801544c: 70fb strb r3, [r7, #3]
  51566. struct netvector vector;
  51567. vector.ptr = dataptr;
  51568. 801544e: 68bb ldr r3, [r7, #8]
  51569. 8015450: 613b str r3, [r7, #16]
  51570. vector.len = size;
  51571. 8015452: 687b ldr r3, [r7, #4]
  51572. 8015454: 617b str r3, [r7, #20]
  51573. return netconn_write_vectors_partly(conn, &vector, 1, apiflags, bytes_written);
  51574. 8015456: 78fa ldrb r2, [r7, #3]
  51575. 8015458: f107 0110 add.w r1, r7, #16
  51576. 801545c: 6a3b ldr r3, [r7, #32]
  51577. 801545e: 9300 str r3, [sp, #0]
  51578. 8015460: 4613 mov r3, r2
  51579. 8015462: 2201 movs r2, #1
  51580. 8015464: 68f8 ldr r0, [r7, #12]
  51581. 8015466: f000 f805 bl 8015474 <netconn_write_vectors_partly>
  51582. 801546a: 4603 mov r3, r0
  51583. }
  51584. 801546c: 4618 mov r0, r3
  51585. 801546e: 3718 adds r7, #24
  51586. 8015470: 46bd mov sp, r7
  51587. 8015472: bd80 pop {r7, pc}
  51588. 08015474 <netconn_write_vectors_partly>:
  51589. * @return ERR_OK if data was sent, any other err_t on error
  51590. */
  51591. err_t
  51592. netconn_write_vectors_partly(struct netconn *conn, struct netvector *vectors, u16_t vectorcnt,
  51593. u8_t apiflags, size_t *bytes_written)
  51594. {
  51595. 8015474: b580 push {r7, lr}
  51596. 8015476: b092 sub sp, #72 @ 0x48
  51597. 8015478: af00 add r7, sp, #0
  51598. 801547a: 60f8 str r0, [r7, #12]
  51599. 801547c: 60b9 str r1, [r7, #8]
  51600. 801547e: 4611 mov r1, r2
  51601. 8015480: 461a mov r2, r3
  51602. 8015482: 460b mov r3, r1
  51603. 8015484: 80fb strh r3, [r7, #6]
  51604. 8015486: 4613 mov r3, r2
  51605. 8015488: 717b strb r3, [r7, #5]
  51606. err_t err;
  51607. u8_t dontblock;
  51608. size_t size;
  51609. int i;
  51610. LWIP_ERROR("netconn_write: invalid conn", (conn != NULL), return ERR_ARG;);
  51611. 801548a: 68fb ldr r3, [r7, #12]
  51612. 801548c: 2b00 cmp r3, #0
  51613. 801548e: d109 bne.n 80154a4 <netconn_write_vectors_partly+0x30>
  51614. 8015490: 4b4e ldr r3, [pc, #312] @ (80155cc <netconn_write_vectors_partly+0x158>)
  51615. 8015492: f240 32ee movw r2, #1006 @ 0x3ee
  51616. 8015496: 494e ldr r1, [pc, #312] @ (80155d0 <netconn_write_vectors_partly+0x15c>)
  51617. 8015498: 484e ldr r0, [pc, #312] @ (80155d4 <netconn_write_vectors_partly+0x160>)
  51618. 801549a: f014 f837 bl 802950c <iprintf>
  51619. 801549e: f06f 030f mvn.w r3, #15
  51620. 80154a2: e08f b.n 80155c4 <netconn_write_vectors_partly+0x150>
  51621. LWIP_ERROR("netconn_write: invalid conn->type", (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP), return ERR_VAL;);
  51622. 80154a4: 68fb ldr r3, [r7, #12]
  51623. 80154a6: 781b ldrb r3, [r3, #0]
  51624. 80154a8: f003 03f0 and.w r3, r3, #240 @ 0xf0
  51625. 80154ac: 2b10 cmp r3, #16
  51626. 80154ae: d009 beq.n 80154c4 <netconn_write_vectors_partly+0x50>
  51627. 80154b0: 4b46 ldr r3, [pc, #280] @ (80155cc <netconn_write_vectors_partly+0x158>)
  51628. 80154b2: f240 32ef movw r2, #1007 @ 0x3ef
  51629. 80154b6: 4948 ldr r1, [pc, #288] @ (80155d8 <netconn_write_vectors_partly+0x164>)
  51630. 80154b8: 4846 ldr r0, [pc, #280] @ (80155d4 <netconn_write_vectors_partly+0x160>)
  51631. 80154ba: f014 f827 bl 802950c <iprintf>
  51632. 80154be: f06f 0305 mvn.w r3, #5
  51633. 80154c2: e07f b.n 80155c4 <netconn_write_vectors_partly+0x150>
  51634. dontblock = netconn_is_nonblocking(conn) || (apiflags & NETCONN_DONTBLOCK);
  51635. 80154c4: 68fb ldr r3, [r7, #12]
  51636. 80154c6: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  51637. 80154ca: f003 0302 and.w r3, r3, #2
  51638. 80154ce: 2b00 cmp r3, #0
  51639. 80154d0: d104 bne.n 80154dc <netconn_write_vectors_partly+0x68>
  51640. 80154d2: 797b ldrb r3, [r7, #5]
  51641. 80154d4: f003 0304 and.w r3, r3, #4
  51642. 80154d8: 2b00 cmp r3, #0
  51643. 80154da: d001 beq.n 80154e0 <netconn_write_vectors_partly+0x6c>
  51644. 80154dc: 2301 movs r3, #1
  51645. 80154de: e000 b.n 80154e2 <netconn_write_vectors_partly+0x6e>
  51646. 80154e0: 2300 movs r3, #0
  51647. 80154e2: f887 303f strb.w r3, [r7, #63] @ 0x3f
  51648. #if LWIP_SO_SNDTIMEO
  51649. if (conn->send_timeout != 0) {
  51650. dontblock = 1;
  51651. }
  51652. #endif /* LWIP_SO_SNDTIMEO */
  51653. if (dontblock && !bytes_written) {
  51654. 80154e6: f897 303f ldrb.w r3, [r7, #63] @ 0x3f
  51655. 80154ea: 2b00 cmp r3, #0
  51656. 80154ec: d005 beq.n 80154fa <netconn_write_vectors_partly+0x86>
  51657. 80154ee: 6d3b ldr r3, [r7, #80] @ 0x50
  51658. 80154f0: 2b00 cmp r3, #0
  51659. 80154f2: d102 bne.n 80154fa <netconn_write_vectors_partly+0x86>
  51660. /* This implies netconn_write() cannot be used for non-blocking send, since
  51661. it has no way to return the number of bytes written. */
  51662. return ERR_VAL;
  51663. 80154f4: f06f 0305 mvn.w r3, #5
  51664. 80154f8: e064 b.n 80155c4 <netconn_write_vectors_partly+0x150>
  51665. }
  51666. /* sum up the total size */
  51667. size = 0;
  51668. 80154fa: 2300 movs r3, #0
  51669. 80154fc: 647b str r3, [r7, #68] @ 0x44
  51670. for (i = 0; i < vectorcnt; i++) {
  51671. 80154fe: 2300 movs r3, #0
  51672. 8015500: 643b str r3, [r7, #64] @ 0x40
  51673. 8015502: e015 b.n 8015530 <netconn_write_vectors_partly+0xbc>
  51674. size += vectors[i].len;
  51675. 8015504: 6c3b ldr r3, [r7, #64] @ 0x40
  51676. 8015506: 00db lsls r3, r3, #3
  51677. 8015508: 68ba ldr r2, [r7, #8]
  51678. 801550a: 4413 add r3, r2
  51679. 801550c: 685b ldr r3, [r3, #4]
  51680. 801550e: 6c7a ldr r2, [r7, #68] @ 0x44
  51681. 8015510: 4413 add r3, r2
  51682. 8015512: 647b str r3, [r7, #68] @ 0x44
  51683. if (size < vectors[i].len) {
  51684. 8015514: 6c3b ldr r3, [r7, #64] @ 0x40
  51685. 8015516: 00db lsls r3, r3, #3
  51686. 8015518: 68ba ldr r2, [r7, #8]
  51687. 801551a: 4413 add r3, r2
  51688. 801551c: 685b ldr r3, [r3, #4]
  51689. 801551e: 6c7a ldr r2, [r7, #68] @ 0x44
  51690. 8015520: 429a cmp r2, r3
  51691. 8015522: d202 bcs.n 801552a <netconn_write_vectors_partly+0xb6>
  51692. /* overflow */
  51693. return ERR_VAL;
  51694. 8015524: f06f 0305 mvn.w r3, #5
  51695. 8015528: e04c b.n 80155c4 <netconn_write_vectors_partly+0x150>
  51696. for (i = 0; i < vectorcnt; i++) {
  51697. 801552a: 6c3b ldr r3, [r7, #64] @ 0x40
  51698. 801552c: 3301 adds r3, #1
  51699. 801552e: 643b str r3, [r7, #64] @ 0x40
  51700. 8015530: 88fb ldrh r3, [r7, #6]
  51701. 8015532: 6c3a ldr r2, [r7, #64] @ 0x40
  51702. 8015534: 429a cmp r2, r3
  51703. 8015536: dbe5 blt.n 8015504 <netconn_write_vectors_partly+0x90>
  51704. }
  51705. }
  51706. if (size == 0) {
  51707. 8015538: 6c7b ldr r3, [r7, #68] @ 0x44
  51708. 801553a: 2b00 cmp r3, #0
  51709. 801553c: d101 bne.n 8015542 <netconn_write_vectors_partly+0xce>
  51710. return ERR_OK;
  51711. 801553e: 2300 movs r3, #0
  51712. 8015540: e040 b.n 80155c4 <netconn_write_vectors_partly+0x150>
  51713. } else if (size > SSIZE_MAX) {
  51714. 8015542: 6c7b ldr r3, [r7, #68] @ 0x44
  51715. 8015544: 2b00 cmp r3, #0
  51716. 8015546: da0a bge.n 801555e <netconn_write_vectors_partly+0xea>
  51717. ssize_t limited;
  51718. /* this is required by the socket layer (cannot send full size_t range) */
  51719. if (!bytes_written) {
  51720. 8015548: 6d3b ldr r3, [r7, #80] @ 0x50
  51721. 801554a: 2b00 cmp r3, #0
  51722. 801554c: d102 bne.n 8015554 <netconn_write_vectors_partly+0xe0>
  51723. return ERR_VAL;
  51724. 801554e: f06f 0305 mvn.w r3, #5
  51725. 8015552: e037 b.n 80155c4 <netconn_write_vectors_partly+0x150>
  51726. }
  51727. /* limit the amount of data to send */
  51728. limited = SSIZE_MAX;
  51729. 8015554: f06f 4300 mvn.w r3, #2147483648 @ 0x80000000
  51730. 8015558: 63bb str r3, [r7, #56] @ 0x38
  51731. size = (size_t)limited;
  51732. 801555a: 6bbb ldr r3, [r7, #56] @ 0x38
  51733. 801555c: 647b str r3, [r7, #68] @ 0x44
  51734. }
  51735. API_MSG_VAR_ALLOC(msg);
  51736. /* non-blocking write sends as much */
  51737. API_MSG_VAR_REF(msg).conn = conn;
  51738. 801555e: 68fb ldr r3, [r7, #12]
  51739. 8015560: 617b str r3, [r7, #20]
  51740. API_MSG_VAR_REF(msg).msg.w.vector = vectors;
  51741. 8015562: 68bb ldr r3, [r7, #8]
  51742. 8015564: 61fb str r3, [r7, #28]
  51743. API_MSG_VAR_REF(msg).msg.w.vector_cnt = vectorcnt;
  51744. 8015566: 88fb ldrh r3, [r7, #6]
  51745. 8015568: 843b strh r3, [r7, #32]
  51746. API_MSG_VAR_REF(msg).msg.w.vector_off = 0;
  51747. 801556a: 2300 movs r3, #0
  51748. 801556c: 627b str r3, [r7, #36] @ 0x24
  51749. API_MSG_VAR_REF(msg).msg.w.apiflags = apiflags;
  51750. 801556e: 797b ldrb r3, [r7, #5]
  51751. 8015570: f887 3030 strb.w r3, [r7, #48] @ 0x30
  51752. API_MSG_VAR_REF(msg).msg.w.len = size;
  51753. 8015574: 6c7b ldr r3, [r7, #68] @ 0x44
  51754. 8015576: 62bb str r3, [r7, #40] @ 0x28
  51755. API_MSG_VAR_REF(msg).msg.w.offset = 0;
  51756. 8015578: 2300 movs r3, #0
  51757. 801557a: 62fb str r3, [r7, #44] @ 0x2c
  51758. #endif /* LWIP_SO_SNDTIMEO */
  51759. /* For locking the core: this _can_ be delayed on low memory/low send buffer,
  51760. but if it is, this is done inside api_msg.c:do_write(), so we can use the
  51761. non-blocking version here. */
  51762. err = netconn_apimsg(lwip_netconn_do_write, &API_MSG_VAR_REF(msg));
  51763. 801557c: f107 0314 add.w r3, r7, #20
  51764. 8015580: 4619 mov r1, r3
  51765. 8015582: 4816 ldr r0, [pc, #88] @ (80155dc <netconn_write_vectors_partly+0x168>)
  51766. 8015584: f7ff fb80 bl 8014c88 <netconn_apimsg>
  51767. 8015588: 4603 mov r3, r0
  51768. 801558a: f887 3037 strb.w r3, [r7, #55] @ 0x37
  51769. if (err == ERR_OK) {
  51770. 801558e: f997 3037 ldrsb.w r3, [r7, #55] @ 0x37
  51771. 8015592: 2b00 cmp r3, #0
  51772. 8015594: d114 bne.n 80155c0 <netconn_write_vectors_partly+0x14c>
  51773. if (bytes_written != NULL) {
  51774. 8015596: 6d3b ldr r3, [r7, #80] @ 0x50
  51775. 8015598: 2b00 cmp r3, #0
  51776. 801559a: d002 beq.n 80155a2 <netconn_write_vectors_partly+0x12e>
  51777. *bytes_written = API_MSG_VAR_REF(msg).msg.w.offset;
  51778. 801559c: 6afa ldr r2, [r7, #44] @ 0x2c
  51779. 801559e: 6d3b ldr r3, [r7, #80] @ 0x50
  51780. 80155a0: 601a str r2, [r3, #0]
  51781. }
  51782. /* for blocking, check all requested bytes were written, NOTE: send_timeout is
  51783. treated as dontblock (see dontblock assignment above) */
  51784. if (!dontblock) {
  51785. 80155a2: f897 303f ldrb.w r3, [r7, #63] @ 0x3f
  51786. 80155a6: 2b00 cmp r3, #0
  51787. 80155a8: d10a bne.n 80155c0 <netconn_write_vectors_partly+0x14c>
  51788. LWIP_ASSERT("do_write failed to write all bytes", API_MSG_VAR_REF(msg).msg.w.offset == size);
  51789. 80155aa: 6afb ldr r3, [r7, #44] @ 0x2c
  51790. 80155ac: 6c7a ldr r2, [r7, #68] @ 0x44
  51791. 80155ae: 429a cmp r2, r3
  51792. 80155b0: d006 beq.n 80155c0 <netconn_write_vectors_partly+0x14c>
  51793. 80155b2: 4b06 ldr r3, [pc, #24] @ (80155cc <netconn_write_vectors_partly+0x158>)
  51794. 80155b4: f44f 6286 mov.w r2, #1072 @ 0x430
  51795. 80155b8: 4909 ldr r1, [pc, #36] @ (80155e0 <netconn_write_vectors_partly+0x16c>)
  51796. 80155ba: 4806 ldr r0, [pc, #24] @ (80155d4 <netconn_write_vectors_partly+0x160>)
  51797. 80155bc: f013 ffa6 bl 802950c <iprintf>
  51798. }
  51799. }
  51800. API_MSG_VAR_FREE(msg);
  51801. return err;
  51802. 80155c0: f997 3037 ldrsb.w r3, [r7, #55] @ 0x37
  51803. }
  51804. 80155c4: 4618 mov r0, r3
  51805. 80155c6: 3748 adds r7, #72 @ 0x48
  51806. 80155c8: 46bd mov sp, r7
  51807. 80155ca: bd80 pop {r7, pc}
  51808. 80155cc: 0802c718 .word 0x0802c718
  51809. 80155d0: 0802c9f0 .word 0x0802c9f0
  51810. 80155d4: 0802c770 .word 0x0802c770
  51811. 80155d8: 0802ca0c .word 0x0802ca0c
  51812. 80155dc: 08016ce1 .word 0x08016ce1
  51813. 80155e0: 0802ca30 .word 0x0802ca30
  51814. 080155e4 <netconn_close_shutdown>:
  51815. * @param how fully close or only shutdown one side?
  51816. * @return ERR_OK if the netconn was closed, any other err_t on error
  51817. */
  51818. static err_t
  51819. netconn_close_shutdown(struct netconn *conn, u8_t how)
  51820. {
  51821. 80155e4: b580 push {r7, lr}
  51822. 80155e6: b08c sub sp, #48 @ 0x30
  51823. 80155e8: af00 add r7, sp, #0
  51824. 80155ea: 6078 str r0, [r7, #4]
  51825. 80155ec: 460b mov r3, r1
  51826. 80155ee: 70fb strb r3, [r7, #3]
  51827. API_MSG_VAR_DECLARE(msg);
  51828. err_t err;
  51829. LWIP_UNUSED_ARG(how);
  51830. LWIP_ERROR("netconn_close: invalid conn", (conn != NULL), return ERR_ARG;);
  51831. 80155f0: 687b ldr r3, [r7, #4]
  51832. 80155f2: 2b00 cmp r3, #0
  51833. 80155f4: d109 bne.n 801560a <netconn_close_shutdown+0x26>
  51834. 80155f6: 4b0f ldr r3, [pc, #60] @ (8015634 <netconn_close_shutdown+0x50>)
  51835. 80155f8: f240 4247 movw r2, #1095 @ 0x447
  51836. 80155fc: 490e ldr r1, [pc, #56] @ (8015638 <netconn_close_shutdown+0x54>)
  51837. 80155fe: 480f ldr r0, [pc, #60] @ (801563c <netconn_close_shutdown+0x58>)
  51838. 8015600: f013 ff84 bl 802950c <iprintf>
  51839. 8015604: f06f 030f mvn.w r3, #15
  51840. 8015608: e010 b.n 801562c <netconn_close_shutdown+0x48>
  51841. API_MSG_VAR_ALLOC(msg);
  51842. API_MSG_VAR_REF(msg).conn = conn;
  51843. 801560a: 687b ldr r3, [r7, #4]
  51844. 801560c: 60fb str r3, [r7, #12]
  51845. #if LWIP_TCP
  51846. /* shutting down both ends is the same as closing */
  51847. API_MSG_VAR_REF(msg).msg.sd.shut = how;
  51848. 801560e: 78fb ldrb r3, [r7, #3]
  51849. 8015610: 753b strb r3, [r7, #20]
  51850. #if LWIP_SO_SNDTIMEO || LWIP_SO_LINGER
  51851. /* get the time we started, which is later compared to
  51852. sys_now() + conn->send_timeout */
  51853. API_MSG_VAR_REF(msg).msg.sd.time_started = sys_now();
  51854. #else /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */
  51855. API_MSG_VAR_REF(msg).msg.sd.polls_left =
  51856. 8015612: 2329 movs r3, #41 @ 0x29
  51857. 8015614: 757b strb r3, [r7, #21]
  51858. ((LWIP_TCP_CLOSE_TIMEOUT_MS_DEFAULT + TCP_SLOW_INTERVAL - 1) / TCP_SLOW_INTERVAL) + 1;
  51859. #endif /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */
  51860. #endif /* LWIP_TCP */
  51861. err = netconn_apimsg(lwip_netconn_do_close, &API_MSG_VAR_REF(msg));
  51862. 8015616: f107 030c add.w r3, r7, #12
  51863. 801561a: 4619 mov r1, r3
  51864. 801561c: 4808 ldr r0, [pc, #32] @ (8015640 <netconn_close_shutdown+0x5c>)
  51865. 801561e: f7ff fb33 bl 8014c88 <netconn_apimsg>
  51866. 8015622: 4603 mov r3, r0
  51867. 8015624: f887 302f strb.w r3, [r7, #47] @ 0x2f
  51868. API_MSG_VAR_FREE(msg);
  51869. return err;
  51870. 8015628: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f
  51871. }
  51872. 801562c: 4618 mov r0, r3
  51873. 801562e: 3730 adds r7, #48 @ 0x30
  51874. 8015630: 46bd mov sp, r7
  51875. 8015632: bd80 pop {r7, pc}
  51876. 8015634: 0802c718 .word 0x0802c718
  51877. 8015638: 0802ca54 .word 0x0802ca54
  51878. 801563c: 0802c770 .word 0x0802c770
  51879. 8015640: 08016efd .word 0x08016efd
  51880. 08015644 <netconn_err>:
  51881. * @param conn the netconn to get the error from
  51882. * @return and pending error or ERR_OK if no error was pending
  51883. */
  51884. err_t
  51885. netconn_err(struct netconn *conn)
  51886. {
  51887. 8015644: b580 push {r7, lr}
  51888. 8015646: b084 sub sp, #16
  51889. 8015648: af00 add r7, sp, #0
  51890. 801564a: 6078 str r0, [r7, #4]
  51891. err_t err;
  51892. SYS_ARCH_DECL_PROTECT(lev);
  51893. if (conn == NULL) {
  51894. 801564c: 687b ldr r3, [r7, #4]
  51895. 801564e: 2b00 cmp r3, #0
  51896. 8015650: d101 bne.n 8015656 <netconn_err+0x12>
  51897. return ERR_OK;
  51898. 8015652: 2300 movs r3, #0
  51899. 8015654: e00d b.n 8015672 <netconn_err+0x2e>
  51900. }
  51901. SYS_ARCH_PROTECT(lev);
  51902. 8015656: f010 fcc3 bl 8025fe0 <sys_arch_protect>
  51903. 801565a: 60f8 str r0, [r7, #12]
  51904. err = conn->pending_err;
  51905. 801565c: 687b ldr r3, [r7, #4]
  51906. 801565e: 7a1b ldrb r3, [r3, #8]
  51907. 8015660: 72fb strb r3, [r7, #11]
  51908. conn->pending_err = ERR_OK;
  51909. 8015662: 687b ldr r3, [r7, #4]
  51910. 8015664: 2200 movs r2, #0
  51911. 8015666: 721a strb r2, [r3, #8]
  51912. SYS_ARCH_UNPROTECT(lev);
  51913. 8015668: 68f8 ldr r0, [r7, #12]
  51914. 801566a: f010 fcc7 bl 8025ffc <sys_arch_unprotect>
  51915. return err;
  51916. 801566e: f997 300b ldrsb.w r3, [r7, #11]
  51917. }
  51918. 8015672: 4618 mov r0, r3
  51919. 8015674: 3710 adds r7, #16
  51920. 8015676: 46bd mov sp, r7
  51921. 8015678: bd80 pop {r7, pc}
  51922. ...
  51923. 0801567c <lwip_netconn_err_to_msg>:
  51924. const u8_t netconn_closed = 0;
  51925. /** Translate an error to a unique void* passed via an mbox */
  51926. static void *
  51927. lwip_netconn_err_to_msg(err_t err)
  51928. {
  51929. 801567c: b580 push {r7, lr}
  51930. 801567e: b082 sub sp, #8
  51931. 8015680: af00 add r7, sp, #0
  51932. 8015682: 4603 mov r3, r0
  51933. 8015684: 71fb strb r3, [r7, #7]
  51934. switch (err) {
  51935. 8015686: f997 3007 ldrsb.w r3, [r7, #7]
  51936. 801568a: f113 0f0d cmn.w r3, #13
  51937. 801568e: d009 beq.n 80156a4 <lwip_netconn_err_to_msg+0x28>
  51938. 8015690: f113 0f0d cmn.w r3, #13
  51939. 8015694: dc0c bgt.n 80156b0 <lwip_netconn_err_to_msg+0x34>
  51940. 8015696: f113 0f0f cmn.w r3, #15
  51941. 801569a: d007 beq.n 80156ac <lwip_netconn_err_to_msg+0x30>
  51942. 801569c: f113 0f0e cmn.w r3, #14
  51943. 80156a0: d002 beq.n 80156a8 <lwip_netconn_err_to_msg+0x2c>
  51944. 80156a2: e005 b.n 80156b0 <lwip_netconn_err_to_msg+0x34>
  51945. case ERR_ABRT:
  51946. return LWIP_CONST_CAST(void *, &netconn_aborted);
  51947. 80156a4: 4b0a ldr r3, [pc, #40] @ (80156d0 <lwip_netconn_err_to_msg+0x54>)
  51948. 80156a6: e00e b.n 80156c6 <lwip_netconn_err_to_msg+0x4a>
  51949. case ERR_RST:
  51950. return LWIP_CONST_CAST(void *, &netconn_reset);
  51951. 80156a8: 4b0a ldr r3, [pc, #40] @ (80156d4 <lwip_netconn_err_to_msg+0x58>)
  51952. 80156aa: e00c b.n 80156c6 <lwip_netconn_err_to_msg+0x4a>
  51953. case ERR_CLSD:
  51954. return LWIP_CONST_CAST(void *, &netconn_closed);
  51955. 80156ac: 4b0a ldr r3, [pc, #40] @ (80156d8 <lwip_netconn_err_to_msg+0x5c>)
  51956. 80156ae: e00a b.n 80156c6 <lwip_netconn_err_to_msg+0x4a>
  51957. default:
  51958. LWIP_ASSERT("unhandled error", err == ERR_OK);
  51959. 80156b0: f997 3007 ldrsb.w r3, [r7, #7]
  51960. 80156b4: 2b00 cmp r3, #0
  51961. 80156b6: d005 beq.n 80156c4 <lwip_netconn_err_to_msg+0x48>
  51962. 80156b8: 4b08 ldr r3, [pc, #32] @ (80156dc <lwip_netconn_err_to_msg+0x60>)
  51963. 80156ba: 227d movs r2, #125 @ 0x7d
  51964. 80156bc: 4908 ldr r1, [pc, #32] @ (80156e0 <lwip_netconn_err_to_msg+0x64>)
  51965. 80156be: 4809 ldr r0, [pc, #36] @ (80156e4 <lwip_netconn_err_to_msg+0x68>)
  51966. 80156c0: f013 ff24 bl 802950c <iprintf>
  51967. return NULL;
  51968. 80156c4: 2300 movs r3, #0
  51969. }
  51970. }
  51971. 80156c6: 4618 mov r0, r3
  51972. 80156c8: 3708 adds r7, #8
  51973. 80156ca: 46bd mov sp, r7
  51974. 80156cc: bd80 pop {r7, pc}
  51975. 80156ce: bf00 nop
  51976. 80156d0: 08030608 .word 0x08030608
  51977. 80156d4: 08030609 .word 0x08030609
  51978. 80156d8: 0803060a .word 0x0803060a
  51979. 80156dc: 0802ca70 .word 0x0802ca70
  51980. 80156e0: 0802caa4 .word 0x0802caa4
  51981. 80156e4: 0802cab4 .word 0x0802cab4
  51982. 080156e8 <lwip_netconn_is_err_msg>:
  51983. int
  51984. lwip_netconn_is_err_msg(void *msg, err_t *err)
  51985. {
  51986. 80156e8: b580 push {r7, lr}
  51987. 80156ea: b082 sub sp, #8
  51988. 80156ec: af00 add r7, sp, #0
  51989. 80156ee: 6078 str r0, [r7, #4]
  51990. 80156f0: 6039 str r1, [r7, #0]
  51991. LWIP_ASSERT("err != NULL", err != NULL);
  51992. 80156f2: 683b ldr r3, [r7, #0]
  51993. 80156f4: 2b00 cmp r3, #0
  51994. 80156f6: d105 bne.n 8015704 <lwip_netconn_is_err_msg+0x1c>
  51995. 80156f8: 4b12 ldr r3, [pc, #72] @ (8015744 <lwip_netconn_is_err_msg+0x5c>)
  51996. 80156fa: 2285 movs r2, #133 @ 0x85
  51997. 80156fc: 4912 ldr r1, [pc, #72] @ (8015748 <lwip_netconn_is_err_msg+0x60>)
  51998. 80156fe: 4813 ldr r0, [pc, #76] @ (801574c <lwip_netconn_is_err_msg+0x64>)
  51999. 8015700: f013 ff04 bl 802950c <iprintf>
  52000. if (msg == &netconn_aborted) {
  52001. 8015704: 687b ldr r3, [r7, #4]
  52002. 8015706: 4a12 ldr r2, [pc, #72] @ (8015750 <lwip_netconn_is_err_msg+0x68>)
  52003. 8015708: 4293 cmp r3, r2
  52004. 801570a: d104 bne.n 8015716 <lwip_netconn_is_err_msg+0x2e>
  52005. *err = ERR_ABRT;
  52006. 801570c: 683b ldr r3, [r7, #0]
  52007. 801570e: 22f3 movs r2, #243 @ 0xf3
  52008. 8015710: 701a strb r2, [r3, #0]
  52009. return 1;
  52010. 8015712: 2301 movs r3, #1
  52011. 8015714: e012 b.n 801573c <lwip_netconn_is_err_msg+0x54>
  52012. } else if (msg == &netconn_reset) {
  52013. 8015716: 687b ldr r3, [r7, #4]
  52014. 8015718: 4a0e ldr r2, [pc, #56] @ (8015754 <lwip_netconn_is_err_msg+0x6c>)
  52015. 801571a: 4293 cmp r3, r2
  52016. 801571c: d104 bne.n 8015728 <lwip_netconn_is_err_msg+0x40>
  52017. *err = ERR_RST;
  52018. 801571e: 683b ldr r3, [r7, #0]
  52019. 8015720: 22f2 movs r2, #242 @ 0xf2
  52020. 8015722: 701a strb r2, [r3, #0]
  52021. return 1;
  52022. 8015724: 2301 movs r3, #1
  52023. 8015726: e009 b.n 801573c <lwip_netconn_is_err_msg+0x54>
  52024. } else if (msg == &netconn_closed) {
  52025. 8015728: 687b ldr r3, [r7, #4]
  52026. 801572a: 4a0b ldr r2, [pc, #44] @ (8015758 <lwip_netconn_is_err_msg+0x70>)
  52027. 801572c: 4293 cmp r3, r2
  52028. 801572e: d104 bne.n 801573a <lwip_netconn_is_err_msg+0x52>
  52029. *err = ERR_CLSD;
  52030. 8015730: 683b ldr r3, [r7, #0]
  52031. 8015732: 22f1 movs r2, #241 @ 0xf1
  52032. 8015734: 701a strb r2, [r3, #0]
  52033. return 1;
  52034. 8015736: 2301 movs r3, #1
  52035. 8015738: e000 b.n 801573c <lwip_netconn_is_err_msg+0x54>
  52036. }
  52037. return 0;
  52038. 801573a: 2300 movs r3, #0
  52039. }
  52040. 801573c: 4618 mov r0, r3
  52041. 801573e: 3708 adds r7, #8
  52042. 8015740: 46bd mov sp, r7
  52043. 8015742: bd80 pop {r7, pc}
  52044. 8015744: 0802ca70 .word 0x0802ca70
  52045. 8015748: 0802cadc .word 0x0802cadc
  52046. 801574c: 0802cab4 .word 0x0802cab4
  52047. 8015750: 08030608 .word 0x08030608
  52048. 8015754: 08030609 .word 0x08030609
  52049. 8015758: 0803060a .word 0x0803060a
  52050. 0801575c <recv_udp>:
  52051. * @see udp.h (struct udp_pcb.recv) for parameters
  52052. */
  52053. static void
  52054. recv_udp(void *arg, struct udp_pcb *pcb, struct pbuf *p,
  52055. const ip_addr_t *addr, u16_t port)
  52056. {
  52057. 801575c: b580 push {r7, lr}
  52058. 801575e: b08a sub sp, #40 @ 0x28
  52059. 8015760: af00 add r7, sp, #0
  52060. 8015762: 60f8 str r0, [r7, #12]
  52061. 8015764: 60b9 str r1, [r7, #8]
  52062. 8015766: 607a str r2, [r7, #4]
  52063. 8015768: 603b str r3, [r7, #0]
  52064. #if LWIP_SO_RCVBUF
  52065. int recv_avail;
  52066. #endif /* LWIP_SO_RCVBUF */
  52067. LWIP_UNUSED_ARG(pcb); /* only used for asserts... */
  52068. LWIP_ASSERT("recv_udp must have a pcb argument", pcb != NULL);
  52069. 801576a: 68bb ldr r3, [r7, #8]
  52070. 801576c: 2b00 cmp r3, #0
  52071. 801576e: d105 bne.n 801577c <recv_udp+0x20>
  52072. 8015770: 4b43 ldr r3, [pc, #268] @ (8015880 <recv_udp+0x124>)
  52073. 8015772: 22e5 movs r2, #229 @ 0xe5
  52074. 8015774: 4943 ldr r1, [pc, #268] @ (8015884 <recv_udp+0x128>)
  52075. 8015776: 4844 ldr r0, [pc, #272] @ (8015888 <recv_udp+0x12c>)
  52076. 8015778: f013 fec8 bl 802950c <iprintf>
  52077. LWIP_ASSERT("recv_udp must have an argument", arg != NULL);
  52078. 801577c: 68fb ldr r3, [r7, #12]
  52079. 801577e: 2b00 cmp r3, #0
  52080. 8015780: d105 bne.n 801578e <recv_udp+0x32>
  52081. 8015782: 4b3f ldr r3, [pc, #252] @ (8015880 <recv_udp+0x124>)
  52082. 8015784: 22e6 movs r2, #230 @ 0xe6
  52083. 8015786: 4941 ldr r1, [pc, #260] @ (801588c <recv_udp+0x130>)
  52084. 8015788: 483f ldr r0, [pc, #252] @ (8015888 <recv_udp+0x12c>)
  52085. 801578a: f013 febf bl 802950c <iprintf>
  52086. conn = (struct netconn *)arg;
  52087. 801578e: 68fb ldr r3, [r7, #12]
  52088. 8015790: 627b str r3, [r7, #36] @ 0x24
  52089. if (conn == NULL) {
  52090. 8015792: 6a7b ldr r3, [r7, #36] @ 0x24
  52091. 8015794: 2b00 cmp r3, #0
  52092. 8015796: d103 bne.n 80157a0 <recv_udp+0x44>
  52093. pbuf_free(p);
  52094. 8015798: 6878 ldr r0, [r7, #4]
  52095. 801579a: f004 fc3f bl 801a01c <pbuf_free>
  52096. return;
  52097. 801579e: e06b b.n 8015878 <recv_udp+0x11c>
  52098. }
  52099. LWIP_ASSERT("recv_udp: recv for wrong pcb!", conn->pcb.udp == pcb);
  52100. 80157a0: 6a7b ldr r3, [r7, #36] @ 0x24
  52101. 80157a2: 685b ldr r3, [r3, #4]
  52102. 80157a4: 68ba ldr r2, [r7, #8]
  52103. 80157a6: 429a cmp r2, r3
  52104. 80157a8: d005 beq.n 80157b6 <recv_udp+0x5a>
  52105. 80157aa: 4b35 ldr r3, [pc, #212] @ (8015880 <recv_udp+0x124>)
  52106. 80157ac: 22ee movs r2, #238 @ 0xee
  52107. 80157ae: 4938 ldr r1, [pc, #224] @ (8015890 <recv_udp+0x134>)
  52108. 80157b0: 4835 ldr r0, [pc, #212] @ (8015888 <recv_udp+0x12c>)
  52109. 80157b2: f013 feab bl 802950c <iprintf>
  52110. #if LWIP_SO_RCVBUF
  52111. SYS_ARCH_GET(conn->recv_avail, recv_avail);
  52112. 80157b6: f010 fc13 bl 8025fe0 <sys_arch_protect>
  52113. 80157ba: 6238 str r0, [r7, #32]
  52114. 80157bc: 6a7b ldr r3, [r7, #36] @ 0x24
  52115. 80157be: 6a5b ldr r3, [r3, #36] @ 0x24
  52116. 80157c0: 61fb str r3, [r7, #28]
  52117. 80157c2: 6a38 ldr r0, [r7, #32]
  52118. 80157c4: f010 fc1a bl 8025ffc <sys_arch_unprotect>
  52119. if (!NETCONN_MBOX_VALID(conn, &conn->recvmbox) ||
  52120. 80157c8: 6a7b ldr r3, [r7, #36] @ 0x24
  52121. 80157ca: 3310 adds r3, #16
  52122. 80157cc: 4618 mov r0, r3
  52123. 80157ce: f010 fafd bl 8025dcc <sys_mbox_valid>
  52124. 80157d2: 4603 mov r3, r0
  52125. 80157d4: 2b00 cmp r3, #0
  52126. 80157d6: d008 beq.n 80157ea <recv_udp+0x8e>
  52127. ((recv_avail + (int)(p->tot_len)) > conn->recv_bufsize)) {
  52128. 80157d8: 687b ldr r3, [r7, #4]
  52129. 80157da: 891b ldrh r3, [r3, #8]
  52130. 80157dc: 461a mov r2, r3
  52131. 80157de: 69fb ldr r3, [r7, #28]
  52132. 80157e0: 441a add r2, r3
  52133. 80157e2: 6a7b ldr r3, [r7, #36] @ 0x24
  52134. 80157e4: 6a1b ldr r3, [r3, #32]
  52135. if (!NETCONN_MBOX_VALID(conn, &conn->recvmbox) ||
  52136. 80157e6: 429a cmp r2, r3
  52137. 80157e8: dd03 ble.n 80157f2 <recv_udp+0x96>
  52138. #else /* LWIP_SO_RCVBUF */
  52139. if (!NETCONN_MBOX_VALID(conn, &conn->recvmbox)) {
  52140. #endif /* LWIP_SO_RCVBUF */
  52141. pbuf_free(p);
  52142. 80157ea: 6878 ldr r0, [r7, #4]
  52143. 80157ec: f004 fc16 bl 801a01c <pbuf_free>
  52144. return;
  52145. 80157f0: e042 b.n 8015878 <recv_udp+0x11c>
  52146. }
  52147. buf = (struct netbuf *)memp_malloc(MEMP_NETBUF);
  52148. 80157f2: 2006 movs r0, #6
  52149. 80157f4: f003 fcae bl 8019154 <memp_malloc>
  52150. 80157f8: 61b8 str r0, [r7, #24]
  52151. if (buf == NULL) {
  52152. 80157fa: 69bb ldr r3, [r7, #24]
  52153. 80157fc: 2b00 cmp r3, #0
  52154. 80157fe: d103 bne.n 8015808 <recv_udp+0xac>
  52155. pbuf_free(p);
  52156. 8015800: 6878 ldr r0, [r7, #4]
  52157. 8015802: f004 fc0b bl 801a01c <pbuf_free>
  52158. return;
  52159. 8015806: e037 b.n 8015878 <recv_udp+0x11c>
  52160. } else {
  52161. buf->p = p;
  52162. 8015808: 69bb ldr r3, [r7, #24]
  52163. 801580a: 687a ldr r2, [r7, #4]
  52164. 801580c: 601a str r2, [r3, #0]
  52165. buf->ptr = p;
  52166. 801580e: 69bb ldr r3, [r7, #24]
  52167. 8015810: 687a ldr r2, [r7, #4]
  52168. 8015812: 605a str r2, [r3, #4]
  52169. ip_addr_set(&buf->addr, addr);
  52170. 8015814: 683b ldr r3, [r7, #0]
  52171. 8015816: 2b00 cmp r3, #0
  52172. 8015818: d002 beq.n 8015820 <recv_udp+0xc4>
  52173. 801581a: 683b ldr r3, [r7, #0]
  52174. 801581c: 681b ldr r3, [r3, #0]
  52175. 801581e: e000 b.n 8015822 <recv_udp+0xc6>
  52176. 8015820: 2300 movs r3, #0
  52177. 8015822: 69ba ldr r2, [r7, #24]
  52178. 8015824: 6093 str r3, [r2, #8]
  52179. buf->port = port;
  52180. 8015826: 69bb ldr r3, [r7, #24]
  52181. 8015828: 8e3a ldrh r2, [r7, #48] @ 0x30
  52182. 801582a: 819a strh r2, [r3, #12]
  52183. buf->toport_chksum = udphdr->dest;
  52184. }
  52185. #endif /* LWIP_NETBUF_RECVINFO */
  52186. }
  52187. len = p->tot_len;
  52188. 801582c: 687b ldr r3, [r7, #4]
  52189. 801582e: 891b ldrh r3, [r3, #8]
  52190. 8015830: 82fb strh r3, [r7, #22]
  52191. if (sys_mbox_trypost(&conn->recvmbox, buf) != ERR_OK) {
  52192. 8015832: 6a7b ldr r3, [r7, #36] @ 0x24
  52193. 8015834: 3310 adds r3, #16
  52194. 8015836: 69b9 ldr r1, [r7, #24]
  52195. 8015838: 4618 mov r0, r3
  52196. 801583a: f010 fa65 bl 8025d08 <sys_mbox_trypost>
  52197. 801583e: 4603 mov r3, r0
  52198. 8015840: 2b00 cmp r3, #0
  52199. 8015842: d003 beq.n 801584c <recv_udp+0xf0>
  52200. netbuf_delete(buf);
  52201. 8015844: 69b8 ldr r0, [r7, #24]
  52202. 8015846: f001 fbff bl 8017048 <netbuf_delete>
  52203. return;
  52204. 801584a: e015 b.n 8015878 <recv_udp+0x11c>
  52205. } else {
  52206. #if LWIP_SO_RCVBUF
  52207. SYS_ARCH_INC(conn->recv_avail, len);
  52208. 801584c: f010 fbc8 bl 8025fe0 <sys_arch_protect>
  52209. 8015850: 6138 str r0, [r7, #16]
  52210. 8015852: 6a7b ldr r3, [r7, #36] @ 0x24
  52211. 8015854: 6a5a ldr r2, [r3, #36] @ 0x24
  52212. 8015856: 8afb ldrh r3, [r7, #22]
  52213. 8015858: 441a add r2, r3
  52214. 801585a: 6a7b ldr r3, [r7, #36] @ 0x24
  52215. 801585c: 625a str r2, [r3, #36] @ 0x24
  52216. 801585e: 6938 ldr r0, [r7, #16]
  52217. 8015860: f010 fbcc bl 8025ffc <sys_arch_unprotect>
  52218. #endif /* LWIP_SO_RCVBUF */
  52219. /* Register event with callback */
  52220. API_EVENT(conn, NETCONN_EVT_RCVPLUS, len);
  52221. 8015864: 6a7b ldr r3, [r7, #36] @ 0x24
  52222. 8015866: 6b1b ldr r3, [r3, #48] @ 0x30
  52223. 8015868: 2b00 cmp r3, #0
  52224. 801586a: d005 beq.n 8015878 <recv_udp+0x11c>
  52225. 801586c: 6a7b ldr r3, [r7, #36] @ 0x24
  52226. 801586e: 6b1b ldr r3, [r3, #48] @ 0x30
  52227. 8015870: 8afa ldrh r2, [r7, #22]
  52228. 8015872: 2100 movs r1, #0
  52229. 8015874: 6a78 ldr r0, [r7, #36] @ 0x24
  52230. 8015876: 4798 blx r3
  52231. }
  52232. }
  52233. 8015878: 3728 adds r7, #40 @ 0x28
  52234. 801587a: 46bd mov sp, r7
  52235. 801587c: bd80 pop {r7, pc}
  52236. 801587e: bf00 nop
  52237. 8015880: 0802ca70 .word 0x0802ca70
  52238. 8015884: 0802cae8 .word 0x0802cae8
  52239. 8015888: 0802cab4 .word 0x0802cab4
  52240. 801588c: 0802cb0c .word 0x0802cb0c
  52241. 8015890: 0802cb2c .word 0x0802cb2c
  52242. 08015894 <recv_tcp>:
  52243. *
  52244. * @see tcp.h (struct tcp_pcb.recv) for parameters and return value
  52245. */
  52246. static err_t
  52247. recv_tcp(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err)
  52248. {
  52249. 8015894: b580 push {r7, lr}
  52250. 8015896: b088 sub sp, #32
  52251. 8015898: af00 add r7, sp, #0
  52252. 801589a: 60f8 str r0, [r7, #12]
  52253. 801589c: 60b9 str r1, [r7, #8]
  52254. 801589e: 607a str r2, [r7, #4]
  52255. 80158a0: 70fb strb r3, [r7, #3]
  52256. struct netconn *conn;
  52257. u16_t len;
  52258. void *msg;
  52259. LWIP_UNUSED_ARG(pcb);
  52260. LWIP_ASSERT("recv_tcp must have a pcb argument", pcb != NULL);
  52261. 80158a2: 68bb ldr r3, [r7, #8]
  52262. 80158a4: 2b00 cmp r3, #0
  52263. 80158a6: d106 bne.n 80158b6 <recv_tcp+0x22>
  52264. 80158a8: 4b3c ldr r3, [pc, #240] @ (801599c <recv_tcp+0x108>)
  52265. 80158aa: f44f 7296 mov.w r2, #300 @ 0x12c
  52266. 80158ae: 493c ldr r1, [pc, #240] @ (80159a0 <recv_tcp+0x10c>)
  52267. 80158b0: 483c ldr r0, [pc, #240] @ (80159a4 <recv_tcp+0x110>)
  52268. 80158b2: f013 fe2b bl 802950c <iprintf>
  52269. LWIP_ASSERT("recv_tcp must have an argument", arg != NULL);
  52270. 80158b6: 68fb ldr r3, [r7, #12]
  52271. 80158b8: 2b00 cmp r3, #0
  52272. 80158ba: d106 bne.n 80158ca <recv_tcp+0x36>
  52273. 80158bc: 4b37 ldr r3, [pc, #220] @ (801599c <recv_tcp+0x108>)
  52274. 80158be: f240 122d movw r2, #301 @ 0x12d
  52275. 80158c2: 4939 ldr r1, [pc, #228] @ (80159a8 <recv_tcp+0x114>)
  52276. 80158c4: 4837 ldr r0, [pc, #220] @ (80159a4 <recv_tcp+0x110>)
  52277. 80158c6: f013 fe21 bl 802950c <iprintf>
  52278. LWIP_ASSERT("err != ERR_OK unhandled", err == ERR_OK);
  52279. 80158ca: f997 3003 ldrsb.w r3, [r7, #3]
  52280. 80158ce: 2b00 cmp r3, #0
  52281. 80158d0: d006 beq.n 80158e0 <recv_tcp+0x4c>
  52282. 80158d2: 4b32 ldr r3, [pc, #200] @ (801599c <recv_tcp+0x108>)
  52283. 80158d4: f44f 7297 mov.w r2, #302 @ 0x12e
  52284. 80158d8: 4934 ldr r1, [pc, #208] @ (80159ac <recv_tcp+0x118>)
  52285. 80158da: 4832 ldr r0, [pc, #200] @ (80159a4 <recv_tcp+0x110>)
  52286. 80158dc: f013 fe16 bl 802950c <iprintf>
  52287. LWIP_UNUSED_ARG(err); /* for LWIP_NOASSERT */
  52288. conn = (struct netconn *)arg;
  52289. 80158e0: 68fb ldr r3, [r7, #12]
  52290. 80158e2: 617b str r3, [r7, #20]
  52291. if (conn == NULL) {
  52292. 80158e4: 697b ldr r3, [r7, #20]
  52293. 80158e6: 2b00 cmp r3, #0
  52294. 80158e8: d102 bne.n 80158f0 <recv_tcp+0x5c>
  52295. return ERR_VAL;
  52296. 80158ea: f06f 0305 mvn.w r3, #5
  52297. 80158ee: e051 b.n 8015994 <recv_tcp+0x100>
  52298. }
  52299. LWIP_ASSERT("recv_tcp: recv for wrong pcb!", conn->pcb.tcp == pcb);
  52300. 80158f0: 697b ldr r3, [r7, #20]
  52301. 80158f2: 685b ldr r3, [r3, #4]
  52302. 80158f4: 68ba ldr r2, [r7, #8]
  52303. 80158f6: 429a cmp r2, r3
  52304. 80158f8: d006 beq.n 8015908 <recv_tcp+0x74>
  52305. 80158fa: 4b28 ldr r3, [pc, #160] @ (801599c <recv_tcp+0x108>)
  52306. 80158fc: f240 1235 movw r2, #309 @ 0x135
  52307. 8015900: 492b ldr r1, [pc, #172] @ (80159b0 <recv_tcp+0x11c>)
  52308. 8015902: 4828 ldr r0, [pc, #160] @ (80159a4 <recv_tcp+0x110>)
  52309. 8015904: f013 fe02 bl 802950c <iprintf>
  52310. if (!NETCONN_MBOX_VALID(conn, &conn->recvmbox)) {
  52311. 8015908: 697b ldr r3, [r7, #20]
  52312. 801590a: 3310 adds r3, #16
  52313. 801590c: 4618 mov r0, r3
  52314. 801590e: f010 fa5d bl 8025dcc <sys_mbox_valid>
  52315. 8015912: 4603 mov r3, r0
  52316. 8015914: 2b00 cmp r3, #0
  52317. 8015916: d10d bne.n 8015934 <recv_tcp+0xa0>
  52318. /* recvmbox already deleted */
  52319. if (p != NULL) {
  52320. 8015918: 687b ldr r3, [r7, #4]
  52321. 801591a: 2b00 cmp r3, #0
  52322. 801591c: d008 beq.n 8015930 <recv_tcp+0x9c>
  52323. tcp_recved(pcb, p->tot_len);
  52324. 801591e: 687b ldr r3, [r7, #4]
  52325. 8015920: 891b ldrh r3, [r3, #8]
  52326. 8015922: 4619 mov r1, r3
  52327. 8015924: 68b8 ldr r0, [r7, #8]
  52328. 8015926: f005 f9e5 bl 801acf4 <tcp_recved>
  52329. pbuf_free(p);
  52330. 801592a: 6878 ldr r0, [r7, #4]
  52331. 801592c: f004 fb76 bl 801a01c <pbuf_free>
  52332. }
  52333. return ERR_OK;
  52334. 8015930: 2300 movs r3, #0
  52335. 8015932: e02f b.n 8015994 <recv_tcp+0x100>
  52336. }
  52337. /* Unlike for UDP or RAW pcbs, don't check for available space
  52338. using recv_avail since that could break the connection
  52339. (data is already ACKed) */
  52340. if (p != NULL) {
  52341. 8015934: 687b ldr r3, [r7, #4]
  52342. 8015936: 2b00 cmp r3, #0
  52343. 8015938: d005 beq.n 8015946 <recv_tcp+0xb2>
  52344. msg = p;
  52345. 801593a: 687b ldr r3, [r7, #4]
  52346. 801593c: 61bb str r3, [r7, #24]
  52347. len = p->tot_len;
  52348. 801593e: 687b ldr r3, [r7, #4]
  52349. 8015940: 891b ldrh r3, [r3, #8]
  52350. 8015942: 83fb strh r3, [r7, #30]
  52351. 8015944: e003 b.n 801594e <recv_tcp+0xba>
  52352. } else {
  52353. msg = LWIP_CONST_CAST(void *, &netconn_closed);
  52354. 8015946: 4b1b ldr r3, [pc, #108] @ (80159b4 <recv_tcp+0x120>)
  52355. 8015948: 61bb str r3, [r7, #24]
  52356. len = 0;
  52357. 801594a: 2300 movs r3, #0
  52358. 801594c: 83fb strh r3, [r7, #30]
  52359. }
  52360. if (sys_mbox_trypost(&conn->recvmbox, msg) != ERR_OK) {
  52361. 801594e: 697b ldr r3, [r7, #20]
  52362. 8015950: 3310 adds r3, #16
  52363. 8015952: 69b9 ldr r1, [r7, #24]
  52364. 8015954: 4618 mov r0, r3
  52365. 8015956: f010 f9d7 bl 8025d08 <sys_mbox_trypost>
  52366. 801595a: 4603 mov r3, r0
  52367. 801595c: 2b00 cmp r3, #0
  52368. 801595e: d002 beq.n 8015966 <recv_tcp+0xd2>
  52369. /* don't deallocate p: it is presented to us later again from tcp_fasttmr! */
  52370. return ERR_MEM;
  52371. 8015960: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  52372. 8015964: e016 b.n 8015994 <recv_tcp+0x100>
  52373. } else {
  52374. #if LWIP_SO_RCVBUF
  52375. SYS_ARCH_INC(conn->recv_avail, len);
  52376. 8015966: f010 fb3b bl 8025fe0 <sys_arch_protect>
  52377. 801596a: 6138 str r0, [r7, #16]
  52378. 801596c: 697b ldr r3, [r7, #20]
  52379. 801596e: 6a5a ldr r2, [r3, #36] @ 0x24
  52380. 8015970: 8bfb ldrh r3, [r7, #30]
  52381. 8015972: 441a add r2, r3
  52382. 8015974: 697b ldr r3, [r7, #20]
  52383. 8015976: 625a str r2, [r3, #36] @ 0x24
  52384. 8015978: 6938 ldr r0, [r7, #16]
  52385. 801597a: f010 fb3f bl 8025ffc <sys_arch_unprotect>
  52386. #endif /* LWIP_SO_RCVBUF */
  52387. /* Register event with callback */
  52388. API_EVENT(conn, NETCONN_EVT_RCVPLUS, len);
  52389. 801597e: 697b ldr r3, [r7, #20]
  52390. 8015980: 6b1b ldr r3, [r3, #48] @ 0x30
  52391. 8015982: 2b00 cmp r3, #0
  52392. 8015984: d005 beq.n 8015992 <recv_tcp+0xfe>
  52393. 8015986: 697b ldr r3, [r7, #20]
  52394. 8015988: 6b1b ldr r3, [r3, #48] @ 0x30
  52395. 801598a: 8bfa ldrh r2, [r7, #30]
  52396. 801598c: 2100 movs r1, #0
  52397. 801598e: 6978 ldr r0, [r7, #20]
  52398. 8015990: 4798 blx r3
  52399. }
  52400. return ERR_OK;
  52401. 8015992: 2300 movs r3, #0
  52402. }
  52403. 8015994: 4618 mov r0, r3
  52404. 8015996: 3720 adds r7, #32
  52405. 8015998: 46bd mov sp, r7
  52406. 801599a: bd80 pop {r7, pc}
  52407. 801599c: 0802ca70 .word 0x0802ca70
  52408. 80159a0: 0802cb4c .word 0x0802cb4c
  52409. 80159a4: 0802cab4 .word 0x0802cab4
  52410. 80159a8: 0802cb70 .word 0x0802cb70
  52411. 80159ac: 0802cb90 .word 0x0802cb90
  52412. 80159b0: 0802cba8 .word 0x0802cba8
  52413. 80159b4: 0803060a .word 0x0803060a
  52414. 080159b8 <poll_tcp>:
  52415. *
  52416. * @see tcp.h (struct tcp_pcb.poll) for parameters and return value
  52417. */
  52418. static err_t
  52419. poll_tcp(void *arg, struct tcp_pcb *pcb)
  52420. {
  52421. 80159b8: b580 push {r7, lr}
  52422. 80159ba: b084 sub sp, #16
  52423. 80159bc: af00 add r7, sp, #0
  52424. 80159be: 6078 str r0, [r7, #4]
  52425. 80159c0: 6039 str r1, [r7, #0]
  52426. struct netconn *conn = (struct netconn *)arg;
  52427. 80159c2: 687b ldr r3, [r7, #4]
  52428. 80159c4: 60fb str r3, [r7, #12]
  52429. LWIP_UNUSED_ARG(pcb);
  52430. LWIP_ASSERT("conn != NULL", (conn != NULL));
  52431. 80159c6: 68fb ldr r3, [r7, #12]
  52432. 80159c8: 2b00 cmp r3, #0
  52433. 80159ca: d106 bne.n 80159da <poll_tcp+0x22>
  52434. 80159cc: 4b2b ldr r3, [pc, #172] @ (8015a7c <poll_tcp+0xc4>)
  52435. 80159ce: f44f 72b5 mov.w r2, #362 @ 0x16a
  52436. 80159d2: 492b ldr r1, [pc, #172] @ (8015a80 <poll_tcp+0xc8>)
  52437. 80159d4: 482b ldr r0, [pc, #172] @ (8015a84 <poll_tcp+0xcc>)
  52438. 80159d6: f013 fd99 bl 802950c <iprintf>
  52439. if (conn->state == NETCONN_WRITE) {
  52440. 80159da: 68fb ldr r3, [r7, #12]
  52441. 80159dc: 785b ldrb r3, [r3, #1]
  52442. 80159de: 2b01 cmp r3, #1
  52443. 80159e0: d104 bne.n 80159ec <poll_tcp+0x34>
  52444. lwip_netconn_do_writemore(conn WRITE_DELAYED);
  52445. 80159e2: 2101 movs r1, #1
  52446. 80159e4: 68f8 ldr r0, [r7, #12]
  52447. 80159e6: f000 ffab bl 8016940 <lwip_netconn_do_writemore>
  52448. 80159ea: e016 b.n 8015a1a <poll_tcp+0x62>
  52449. } else if (conn->state == NETCONN_CLOSE) {
  52450. 80159ec: 68fb ldr r3, [r7, #12]
  52451. 80159ee: 785b ldrb r3, [r3, #1]
  52452. 80159f0: 2b04 cmp r3, #4
  52453. 80159f2: d112 bne.n 8015a1a <poll_tcp+0x62>
  52454. #if !LWIP_SO_SNDTIMEO && !LWIP_SO_LINGER
  52455. if (conn->current_msg && conn->current_msg->msg.sd.polls_left) {
  52456. 80159f4: 68fb ldr r3, [r7, #12]
  52457. 80159f6: 6adb ldr r3, [r3, #44] @ 0x2c
  52458. 80159f8: 2b00 cmp r3, #0
  52459. 80159fa: d00a beq.n 8015a12 <poll_tcp+0x5a>
  52460. 80159fc: 68fb ldr r3, [r7, #12]
  52461. 80159fe: 6adb ldr r3, [r3, #44] @ 0x2c
  52462. 8015a00: 7a5b ldrb r3, [r3, #9]
  52463. 8015a02: 2b00 cmp r3, #0
  52464. 8015a04: d005 beq.n 8015a12 <poll_tcp+0x5a>
  52465. conn->current_msg->msg.sd.polls_left--;
  52466. 8015a06: 68fb ldr r3, [r7, #12]
  52467. 8015a08: 6adb ldr r3, [r3, #44] @ 0x2c
  52468. 8015a0a: 7a5a ldrb r2, [r3, #9]
  52469. 8015a0c: 3a01 subs r2, #1
  52470. 8015a0e: b2d2 uxtb r2, r2
  52471. 8015a10: 725a strb r2, [r3, #9]
  52472. }
  52473. #endif /* !LWIP_SO_SNDTIMEO && !LWIP_SO_LINGER */
  52474. lwip_netconn_do_close_internal(conn WRITE_DELAYED);
  52475. 8015a12: 2101 movs r1, #1
  52476. 8015a14: 68f8 ldr r0, [r7, #12]
  52477. 8015a16: f000 fb53 bl 80160c0 <lwip_netconn_do_close_internal>
  52478. }
  52479. /* @todo: implement connect timeout here? */
  52480. /* Did a nonblocking write fail before? Then check available write-space. */
  52481. if (conn->flags & NETCONN_FLAG_CHECK_WRITESPACE) {
  52482. 8015a1a: 68fb ldr r3, [r7, #12]
  52483. 8015a1c: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  52484. 8015a20: f003 0310 and.w r3, r3, #16
  52485. 8015a24: 2b00 cmp r3, #0
  52486. 8015a26: d024 beq.n 8015a72 <poll_tcp+0xba>
  52487. /* If the queued byte- or pbuf-count drops below the configured low-water limit,
  52488. let select mark this pcb as writable again. */
  52489. if ((conn->pcb.tcp != NULL) && (tcp_sndbuf(conn->pcb.tcp) > TCP_SNDLOWAT) &&
  52490. 8015a28: 68fb ldr r3, [r7, #12]
  52491. 8015a2a: 685b ldr r3, [r3, #4]
  52492. 8015a2c: 2b00 cmp r3, #0
  52493. 8015a2e: d020 beq.n 8015a72 <poll_tcp+0xba>
  52494. 8015a30: 68fb ldr r3, [r7, #12]
  52495. 8015a32: 685b ldr r3, [r3, #4]
  52496. 8015a34: f8b3 3064 ldrh.w r3, [r3, #100] @ 0x64
  52497. 8015a38: f640 3269 movw r2, #2921 @ 0xb69
  52498. 8015a3c: 4293 cmp r3, r2
  52499. 8015a3e: d918 bls.n 8015a72 <poll_tcp+0xba>
  52500. (tcp_sndqueuelen(conn->pcb.tcp) < TCP_SNDQUEUELOWAT)) {
  52501. 8015a40: 68fb ldr r3, [r7, #12]
  52502. 8015a42: 685b ldr r3, [r3, #4]
  52503. 8015a44: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  52504. if ((conn->pcb.tcp != NULL) && (tcp_sndbuf(conn->pcb.tcp) > TCP_SNDLOWAT) &&
  52505. 8015a48: 2b07 cmp r3, #7
  52506. 8015a4a: d812 bhi.n 8015a72 <poll_tcp+0xba>
  52507. netconn_clear_flags(conn, NETCONN_FLAG_CHECK_WRITESPACE);
  52508. 8015a4c: 68fb ldr r3, [r7, #12]
  52509. 8015a4e: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  52510. 8015a52: f023 0310 bic.w r3, r3, #16
  52511. 8015a56: b2da uxtb r2, r3
  52512. 8015a58: 68fb ldr r3, [r7, #12]
  52513. 8015a5a: f883 2028 strb.w r2, [r3, #40] @ 0x28
  52514. API_EVENT(conn, NETCONN_EVT_SENDPLUS, 0);
  52515. 8015a5e: 68fb ldr r3, [r7, #12]
  52516. 8015a60: 6b1b ldr r3, [r3, #48] @ 0x30
  52517. 8015a62: 2b00 cmp r3, #0
  52518. 8015a64: d005 beq.n 8015a72 <poll_tcp+0xba>
  52519. 8015a66: 68fb ldr r3, [r7, #12]
  52520. 8015a68: 6b1b ldr r3, [r3, #48] @ 0x30
  52521. 8015a6a: 2200 movs r2, #0
  52522. 8015a6c: 2102 movs r1, #2
  52523. 8015a6e: 68f8 ldr r0, [r7, #12]
  52524. 8015a70: 4798 blx r3
  52525. }
  52526. }
  52527. return ERR_OK;
  52528. 8015a72: 2300 movs r3, #0
  52529. }
  52530. 8015a74: 4618 mov r0, r3
  52531. 8015a76: 3710 adds r7, #16
  52532. 8015a78: 46bd mov sp, r7
  52533. 8015a7a: bd80 pop {r7, pc}
  52534. 8015a7c: 0802ca70 .word 0x0802ca70
  52535. 8015a80: 0802cbc8 .word 0x0802cbc8
  52536. 8015a84: 0802cab4 .word 0x0802cab4
  52537. 08015a88 <sent_tcp>:
  52538. *
  52539. * @see tcp.h (struct tcp_pcb.sent) for parameters and return value
  52540. */
  52541. static err_t
  52542. sent_tcp(void *arg, struct tcp_pcb *pcb, u16_t len)
  52543. {
  52544. 8015a88: b580 push {r7, lr}
  52545. 8015a8a: b086 sub sp, #24
  52546. 8015a8c: af00 add r7, sp, #0
  52547. 8015a8e: 60f8 str r0, [r7, #12]
  52548. 8015a90: 60b9 str r1, [r7, #8]
  52549. 8015a92: 4613 mov r3, r2
  52550. 8015a94: 80fb strh r3, [r7, #6]
  52551. struct netconn *conn = (struct netconn *)arg;
  52552. 8015a96: 68fb ldr r3, [r7, #12]
  52553. 8015a98: 617b str r3, [r7, #20]
  52554. LWIP_UNUSED_ARG(pcb);
  52555. LWIP_ASSERT("conn != NULL", (conn != NULL));
  52556. 8015a9a: 697b ldr r3, [r7, #20]
  52557. 8015a9c: 2b00 cmp r3, #0
  52558. 8015a9e: d106 bne.n 8015aae <sent_tcp+0x26>
  52559. 8015aa0: 4b22 ldr r3, [pc, #136] @ (8015b2c <sent_tcp+0xa4>)
  52560. 8015aa2: f240 1293 movw r2, #403 @ 0x193
  52561. 8015aa6: 4922 ldr r1, [pc, #136] @ (8015b30 <sent_tcp+0xa8>)
  52562. 8015aa8: 4822 ldr r0, [pc, #136] @ (8015b34 <sent_tcp+0xac>)
  52563. 8015aaa: f013 fd2f bl 802950c <iprintf>
  52564. if (conn) {
  52565. 8015aae: 697b ldr r3, [r7, #20]
  52566. 8015ab0: 2b00 cmp r3, #0
  52567. 8015ab2: d035 beq.n 8015b20 <sent_tcp+0x98>
  52568. if (conn->state == NETCONN_WRITE) {
  52569. 8015ab4: 697b ldr r3, [r7, #20]
  52570. 8015ab6: 785b ldrb r3, [r3, #1]
  52571. 8015ab8: 2b01 cmp r3, #1
  52572. 8015aba: d104 bne.n 8015ac6 <sent_tcp+0x3e>
  52573. lwip_netconn_do_writemore(conn WRITE_DELAYED);
  52574. 8015abc: 2101 movs r1, #1
  52575. 8015abe: 6978 ldr r0, [r7, #20]
  52576. 8015ac0: f000 ff3e bl 8016940 <lwip_netconn_do_writemore>
  52577. 8015ac4: e007 b.n 8015ad6 <sent_tcp+0x4e>
  52578. } else if (conn->state == NETCONN_CLOSE) {
  52579. 8015ac6: 697b ldr r3, [r7, #20]
  52580. 8015ac8: 785b ldrb r3, [r3, #1]
  52581. 8015aca: 2b04 cmp r3, #4
  52582. 8015acc: d103 bne.n 8015ad6 <sent_tcp+0x4e>
  52583. lwip_netconn_do_close_internal(conn WRITE_DELAYED);
  52584. 8015ace: 2101 movs r1, #1
  52585. 8015ad0: 6978 ldr r0, [r7, #20]
  52586. 8015ad2: f000 faf5 bl 80160c0 <lwip_netconn_do_close_internal>
  52587. }
  52588. /* If the queued byte- or pbuf-count drops below the configured low-water limit,
  52589. let select mark this pcb as writable again. */
  52590. if ((conn->pcb.tcp != NULL) && (tcp_sndbuf(conn->pcb.tcp) > TCP_SNDLOWAT) &&
  52591. 8015ad6: 697b ldr r3, [r7, #20]
  52592. 8015ad8: 685b ldr r3, [r3, #4]
  52593. 8015ada: 2b00 cmp r3, #0
  52594. 8015adc: d020 beq.n 8015b20 <sent_tcp+0x98>
  52595. 8015ade: 697b ldr r3, [r7, #20]
  52596. 8015ae0: 685b ldr r3, [r3, #4]
  52597. 8015ae2: f8b3 3064 ldrh.w r3, [r3, #100] @ 0x64
  52598. 8015ae6: f640 3269 movw r2, #2921 @ 0xb69
  52599. 8015aea: 4293 cmp r3, r2
  52600. 8015aec: d918 bls.n 8015b20 <sent_tcp+0x98>
  52601. (tcp_sndqueuelen(conn->pcb.tcp) < TCP_SNDQUEUELOWAT)) {
  52602. 8015aee: 697b ldr r3, [r7, #20]
  52603. 8015af0: 685b ldr r3, [r3, #4]
  52604. 8015af2: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  52605. if ((conn->pcb.tcp != NULL) && (tcp_sndbuf(conn->pcb.tcp) > TCP_SNDLOWAT) &&
  52606. 8015af6: 2b07 cmp r3, #7
  52607. 8015af8: d812 bhi.n 8015b20 <sent_tcp+0x98>
  52608. netconn_clear_flags(conn, NETCONN_FLAG_CHECK_WRITESPACE);
  52609. 8015afa: 697b ldr r3, [r7, #20]
  52610. 8015afc: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  52611. 8015b00: f023 0310 bic.w r3, r3, #16
  52612. 8015b04: b2da uxtb r2, r3
  52613. 8015b06: 697b ldr r3, [r7, #20]
  52614. 8015b08: f883 2028 strb.w r2, [r3, #40] @ 0x28
  52615. API_EVENT(conn, NETCONN_EVT_SENDPLUS, len);
  52616. 8015b0c: 697b ldr r3, [r7, #20]
  52617. 8015b0e: 6b1b ldr r3, [r3, #48] @ 0x30
  52618. 8015b10: 2b00 cmp r3, #0
  52619. 8015b12: d005 beq.n 8015b20 <sent_tcp+0x98>
  52620. 8015b14: 697b ldr r3, [r7, #20]
  52621. 8015b16: 6b1b ldr r3, [r3, #48] @ 0x30
  52622. 8015b18: 88fa ldrh r2, [r7, #6]
  52623. 8015b1a: 2102 movs r1, #2
  52624. 8015b1c: 6978 ldr r0, [r7, #20]
  52625. 8015b1e: 4798 blx r3
  52626. }
  52627. }
  52628. return ERR_OK;
  52629. 8015b20: 2300 movs r3, #0
  52630. }
  52631. 8015b22: 4618 mov r0, r3
  52632. 8015b24: 3718 adds r7, #24
  52633. 8015b26: 46bd mov sp, r7
  52634. 8015b28: bd80 pop {r7, pc}
  52635. 8015b2a: bf00 nop
  52636. 8015b2c: 0802ca70 .word 0x0802ca70
  52637. 8015b30: 0802cbc8 .word 0x0802cbc8
  52638. 8015b34: 0802cab4 .word 0x0802cab4
  52639. 08015b38 <err_tcp>:
  52640. *
  52641. * @see tcp.h (struct tcp_pcb.err) for parameters
  52642. */
  52643. static void
  52644. err_tcp(void *arg, err_t err)
  52645. {
  52646. 8015b38: b580 push {r7, lr}
  52647. 8015b3a: b088 sub sp, #32
  52648. 8015b3c: af00 add r7, sp, #0
  52649. 8015b3e: 6078 str r0, [r7, #4]
  52650. 8015b40: 460b mov r3, r1
  52651. 8015b42: 70fb strb r3, [r7, #3]
  52652. struct netconn *conn;
  52653. enum netconn_state old_state;
  52654. void *mbox_msg;
  52655. SYS_ARCH_DECL_PROTECT(lev);
  52656. conn = (struct netconn *)arg;
  52657. 8015b44: 687b ldr r3, [r7, #4]
  52658. 8015b46: 61fb str r3, [r7, #28]
  52659. LWIP_ASSERT("conn != NULL", (conn != NULL));
  52660. 8015b48: 69fb ldr r3, [r7, #28]
  52661. 8015b4a: 2b00 cmp r3, #0
  52662. 8015b4c: d106 bne.n 8015b5c <err_tcp+0x24>
  52663. 8015b4e: 4b61 ldr r3, [pc, #388] @ (8015cd4 <err_tcp+0x19c>)
  52664. 8015b50: f44f 72dc mov.w r2, #440 @ 0x1b8
  52665. 8015b54: 4960 ldr r1, [pc, #384] @ (8015cd8 <err_tcp+0x1a0>)
  52666. 8015b56: 4861 ldr r0, [pc, #388] @ (8015cdc <err_tcp+0x1a4>)
  52667. 8015b58: f013 fcd8 bl 802950c <iprintf>
  52668. SYS_ARCH_PROTECT(lev);
  52669. 8015b5c: f010 fa40 bl 8025fe0 <sys_arch_protect>
  52670. 8015b60: 61b8 str r0, [r7, #24]
  52671. /* when err is called, the pcb is deallocated, so delete the reference */
  52672. conn->pcb.tcp = NULL;
  52673. 8015b62: 69fb ldr r3, [r7, #28]
  52674. 8015b64: 2200 movs r2, #0
  52675. 8015b66: 605a str r2, [r3, #4]
  52676. /* store pending error */
  52677. conn->pending_err = err;
  52678. 8015b68: 69fb ldr r3, [r7, #28]
  52679. 8015b6a: 78fa ldrb r2, [r7, #3]
  52680. 8015b6c: 721a strb r2, [r3, #8]
  52681. /* prevent application threads from blocking on 'recvmbox'/'acceptmbox' */
  52682. conn->flags |= NETCONN_FLAG_MBOXCLOSED;
  52683. 8015b6e: 69fb ldr r3, [r7, #28]
  52684. 8015b70: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  52685. 8015b74: f043 0301 orr.w r3, r3, #1
  52686. 8015b78: b2da uxtb r2, r3
  52687. 8015b7a: 69fb ldr r3, [r7, #28]
  52688. 8015b7c: f883 2028 strb.w r2, [r3, #40] @ 0x28
  52689. /* reset conn->state now before waking up other threads */
  52690. old_state = conn->state;
  52691. 8015b80: 69fb ldr r3, [r7, #28]
  52692. 8015b82: 785b ldrb r3, [r3, #1]
  52693. 8015b84: 75fb strb r3, [r7, #23]
  52694. conn->state = NETCONN_NONE;
  52695. 8015b86: 69fb ldr r3, [r7, #28]
  52696. 8015b88: 2200 movs r2, #0
  52697. 8015b8a: 705a strb r2, [r3, #1]
  52698. SYS_ARCH_UNPROTECT(lev);
  52699. 8015b8c: 69b8 ldr r0, [r7, #24]
  52700. 8015b8e: f010 fa35 bl 8025ffc <sys_arch_unprotect>
  52701. /* Notify the user layer about a connection error. Used to signal select. */
  52702. API_EVENT(conn, NETCONN_EVT_ERROR, 0);
  52703. 8015b92: 69fb ldr r3, [r7, #28]
  52704. 8015b94: 6b1b ldr r3, [r3, #48] @ 0x30
  52705. 8015b96: 2b00 cmp r3, #0
  52706. 8015b98: d005 beq.n 8015ba6 <err_tcp+0x6e>
  52707. 8015b9a: 69fb ldr r3, [r7, #28]
  52708. 8015b9c: 6b1b ldr r3, [r3, #48] @ 0x30
  52709. 8015b9e: 2200 movs r2, #0
  52710. 8015ba0: 2104 movs r1, #4
  52711. 8015ba2: 69f8 ldr r0, [r7, #28]
  52712. 8015ba4: 4798 blx r3
  52713. /* Try to release selects pending on 'read' or 'write', too.
  52714. They will get an error if they actually try to read or write. */
  52715. API_EVENT(conn, NETCONN_EVT_RCVPLUS, 0);
  52716. 8015ba6: 69fb ldr r3, [r7, #28]
  52717. 8015ba8: 6b1b ldr r3, [r3, #48] @ 0x30
  52718. 8015baa: 2b00 cmp r3, #0
  52719. 8015bac: d005 beq.n 8015bba <err_tcp+0x82>
  52720. 8015bae: 69fb ldr r3, [r7, #28]
  52721. 8015bb0: 6b1b ldr r3, [r3, #48] @ 0x30
  52722. 8015bb2: 2200 movs r2, #0
  52723. 8015bb4: 2100 movs r1, #0
  52724. 8015bb6: 69f8 ldr r0, [r7, #28]
  52725. 8015bb8: 4798 blx r3
  52726. API_EVENT(conn, NETCONN_EVT_SENDPLUS, 0);
  52727. 8015bba: 69fb ldr r3, [r7, #28]
  52728. 8015bbc: 6b1b ldr r3, [r3, #48] @ 0x30
  52729. 8015bbe: 2b00 cmp r3, #0
  52730. 8015bc0: d005 beq.n 8015bce <err_tcp+0x96>
  52731. 8015bc2: 69fb ldr r3, [r7, #28]
  52732. 8015bc4: 6b1b ldr r3, [r3, #48] @ 0x30
  52733. 8015bc6: 2200 movs r2, #0
  52734. 8015bc8: 2102 movs r1, #2
  52735. 8015bca: 69f8 ldr r0, [r7, #28]
  52736. 8015bcc: 4798 blx r3
  52737. mbox_msg = lwip_netconn_err_to_msg(err);
  52738. 8015bce: f997 3003 ldrsb.w r3, [r7, #3]
  52739. 8015bd2: 4618 mov r0, r3
  52740. 8015bd4: f7ff fd52 bl 801567c <lwip_netconn_err_to_msg>
  52741. 8015bd8: 6138 str r0, [r7, #16]
  52742. /* pass error message to recvmbox to wake up pending recv */
  52743. if (NETCONN_MBOX_VALID(conn, &conn->recvmbox)) {
  52744. 8015bda: 69fb ldr r3, [r7, #28]
  52745. 8015bdc: 3310 adds r3, #16
  52746. 8015bde: 4618 mov r0, r3
  52747. 8015be0: f010 f8f4 bl 8025dcc <sys_mbox_valid>
  52748. 8015be4: 4603 mov r3, r0
  52749. 8015be6: 2b00 cmp r3, #0
  52750. 8015be8: d005 beq.n 8015bf6 <err_tcp+0xbe>
  52751. /* use trypost to prevent deadlock */
  52752. sys_mbox_trypost(&conn->recvmbox, mbox_msg);
  52753. 8015bea: 69fb ldr r3, [r7, #28]
  52754. 8015bec: 3310 adds r3, #16
  52755. 8015bee: 6939 ldr r1, [r7, #16]
  52756. 8015bf0: 4618 mov r0, r3
  52757. 8015bf2: f010 f889 bl 8025d08 <sys_mbox_trypost>
  52758. }
  52759. /* pass error message to acceptmbox to wake up pending accept */
  52760. if (NETCONN_MBOX_VALID(conn, &conn->acceptmbox)) {
  52761. 8015bf6: 69fb ldr r3, [r7, #28]
  52762. 8015bf8: 3314 adds r3, #20
  52763. 8015bfa: 4618 mov r0, r3
  52764. 8015bfc: f010 f8e6 bl 8025dcc <sys_mbox_valid>
  52765. 8015c00: 4603 mov r3, r0
  52766. 8015c02: 2b00 cmp r3, #0
  52767. 8015c04: d005 beq.n 8015c12 <err_tcp+0xda>
  52768. /* use trypost to preven deadlock */
  52769. sys_mbox_trypost(&conn->acceptmbox, mbox_msg);
  52770. 8015c06: 69fb ldr r3, [r7, #28]
  52771. 8015c08: 3314 adds r3, #20
  52772. 8015c0a: 6939 ldr r1, [r7, #16]
  52773. 8015c0c: 4618 mov r0, r3
  52774. 8015c0e: f010 f87b bl 8025d08 <sys_mbox_trypost>
  52775. }
  52776. if ((old_state == NETCONN_WRITE) || (old_state == NETCONN_CLOSE) ||
  52777. 8015c12: 7dfb ldrb r3, [r7, #23]
  52778. 8015c14: 2b01 cmp r3, #1
  52779. 8015c16: d005 beq.n 8015c24 <err_tcp+0xec>
  52780. 8015c18: 7dfb ldrb r3, [r7, #23]
  52781. 8015c1a: 2b04 cmp r3, #4
  52782. 8015c1c: d002 beq.n 8015c24 <err_tcp+0xec>
  52783. 8015c1e: 7dfb ldrb r3, [r7, #23]
  52784. 8015c20: 2b03 cmp r3, #3
  52785. 8015c22: d146 bne.n 8015cb2 <err_tcp+0x17a>
  52786. (old_state == NETCONN_CONNECT)) {
  52787. /* calling lwip_netconn_do_writemore/lwip_netconn_do_close_internal is not necessary
  52788. since the pcb has already been deleted! */
  52789. int was_nonblocking_connect = IN_NONBLOCKING_CONNECT(conn);
  52790. 8015c24: 69fb ldr r3, [r7, #28]
  52791. 8015c26: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  52792. 8015c2a: f003 0304 and.w r3, r3, #4
  52793. 8015c2e: 2b00 cmp r3, #0
  52794. 8015c30: bf14 ite ne
  52795. 8015c32: 2301 movne r3, #1
  52796. 8015c34: 2300 moveq r3, #0
  52797. 8015c36: b2db uxtb r3, r3
  52798. 8015c38: 60fb str r3, [r7, #12]
  52799. SET_NONBLOCKING_CONNECT(conn, 0);
  52800. 8015c3a: 69fb ldr r3, [r7, #28]
  52801. 8015c3c: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  52802. 8015c40: f023 0304 bic.w r3, r3, #4
  52803. 8015c44: b2da uxtb r2, r3
  52804. 8015c46: 69fb ldr r3, [r7, #28]
  52805. 8015c48: f883 2028 strb.w r2, [r3, #40] @ 0x28
  52806. if (!was_nonblocking_connect) {
  52807. 8015c4c: 68fb ldr r3, [r7, #12]
  52808. 8015c4e: 2b00 cmp r3, #0
  52809. 8015c50: d13b bne.n 8015cca <err_tcp+0x192>
  52810. sys_sem_t *op_completed_sem;
  52811. /* set error return code */
  52812. LWIP_ASSERT("conn->current_msg != NULL", conn->current_msg != NULL);
  52813. 8015c52: 69fb ldr r3, [r7, #28]
  52814. 8015c54: 6adb ldr r3, [r3, #44] @ 0x2c
  52815. 8015c56: 2b00 cmp r3, #0
  52816. 8015c58: d106 bne.n 8015c68 <err_tcp+0x130>
  52817. 8015c5a: 4b1e ldr r3, [pc, #120] @ (8015cd4 <err_tcp+0x19c>)
  52818. 8015c5c: f44f 72f3 mov.w r2, #486 @ 0x1e6
  52819. 8015c60: 491f ldr r1, [pc, #124] @ (8015ce0 <err_tcp+0x1a8>)
  52820. 8015c62: 481e ldr r0, [pc, #120] @ (8015cdc <err_tcp+0x1a4>)
  52821. 8015c64: f013 fc52 bl 802950c <iprintf>
  52822. if (old_state == NETCONN_CLOSE) {
  52823. 8015c68: 7dfb ldrb r3, [r7, #23]
  52824. 8015c6a: 2b04 cmp r3, #4
  52825. 8015c6c: d104 bne.n 8015c78 <err_tcp+0x140>
  52826. /* let close succeed: the connection is closed after all... */
  52827. conn->current_msg->err = ERR_OK;
  52828. 8015c6e: 69fb ldr r3, [r7, #28]
  52829. 8015c70: 6adb ldr r3, [r3, #44] @ 0x2c
  52830. 8015c72: 2200 movs r2, #0
  52831. 8015c74: 711a strb r2, [r3, #4]
  52832. 8015c76: e003 b.n 8015c80 <err_tcp+0x148>
  52833. } else {
  52834. /* Write and connect fail */
  52835. conn->current_msg->err = err;
  52836. 8015c78: 69fb ldr r3, [r7, #28]
  52837. 8015c7a: 6adb ldr r3, [r3, #44] @ 0x2c
  52838. 8015c7c: 78fa ldrb r2, [r7, #3]
  52839. 8015c7e: 711a strb r2, [r3, #4]
  52840. }
  52841. op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg);
  52842. 8015c80: 69fb ldr r3, [r7, #28]
  52843. 8015c82: 6adb ldr r3, [r3, #44] @ 0x2c
  52844. 8015c84: 681b ldr r3, [r3, #0]
  52845. 8015c86: 330c adds r3, #12
  52846. 8015c88: 60bb str r3, [r7, #8]
  52847. LWIP_ASSERT("inavlid op_completed_sem", sys_sem_valid(op_completed_sem));
  52848. 8015c8a: 68b8 ldr r0, [r7, #8]
  52849. 8015c8c: f010 f92c bl 8025ee8 <sys_sem_valid>
  52850. 8015c90: 4603 mov r3, r0
  52851. 8015c92: 2b00 cmp r3, #0
  52852. 8015c94: d106 bne.n 8015ca4 <err_tcp+0x16c>
  52853. 8015c96: 4b0f ldr r3, [pc, #60] @ (8015cd4 <err_tcp+0x19c>)
  52854. 8015c98: f240 12ef movw r2, #495 @ 0x1ef
  52855. 8015c9c: 4911 ldr r1, [pc, #68] @ (8015ce4 <err_tcp+0x1ac>)
  52856. 8015c9e: 480f ldr r0, [pc, #60] @ (8015cdc <err_tcp+0x1a4>)
  52857. 8015ca0: f013 fc34 bl 802950c <iprintf>
  52858. conn->current_msg = NULL;
  52859. 8015ca4: 69fb ldr r3, [r7, #28]
  52860. 8015ca6: 2200 movs r2, #0
  52861. 8015ca8: 62da str r2, [r3, #44] @ 0x2c
  52862. /* wake up the waiting task */
  52863. sys_sem_signal(op_completed_sem);
  52864. 8015caa: 68b8 ldr r0, [r7, #8]
  52865. 8015cac: f010 f902 bl 8025eb4 <sys_sem_signal>
  52866. (old_state == NETCONN_CONNECT)) {
  52867. 8015cb0: e00b b.n 8015cca <err_tcp+0x192>
  52868. } else {
  52869. /* @todo: test what happens for error on nonblocking connect */
  52870. }
  52871. } else {
  52872. LWIP_ASSERT("conn->current_msg == NULL", conn->current_msg == NULL);
  52873. 8015cb2: 69fb ldr r3, [r7, #28]
  52874. 8015cb4: 6adb ldr r3, [r3, #44] @ 0x2c
  52875. 8015cb6: 2b00 cmp r3, #0
  52876. 8015cb8: d008 beq.n 8015ccc <err_tcp+0x194>
  52877. 8015cba: 4b06 ldr r3, [pc, #24] @ (8015cd4 <err_tcp+0x19c>)
  52878. 8015cbc: f240 12f7 movw r2, #503 @ 0x1f7
  52879. 8015cc0: 4909 ldr r1, [pc, #36] @ (8015ce8 <err_tcp+0x1b0>)
  52880. 8015cc2: 4806 ldr r0, [pc, #24] @ (8015cdc <err_tcp+0x1a4>)
  52881. 8015cc4: f013 fc22 bl 802950c <iprintf>
  52882. }
  52883. }
  52884. 8015cc8: e000 b.n 8015ccc <err_tcp+0x194>
  52885. (old_state == NETCONN_CONNECT)) {
  52886. 8015cca: bf00 nop
  52887. }
  52888. 8015ccc: bf00 nop
  52889. 8015cce: 3720 adds r7, #32
  52890. 8015cd0: 46bd mov sp, r7
  52891. 8015cd2: bd80 pop {r7, pc}
  52892. 8015cd4: 0802ca70 .word 0x0802ca70
  52893. 8015cd8: 0802cbc8 .word 0x0802cbc8
  52894. 8015cdc: 0802cab4 .word 0x0802cab4
  52895. 8015ce0: 0802cbd8 .word 0x0802cbd8
  52896. 8015ce4: 0802cbf4 .word 0x0802cbf4
  52897. 8015ce8: 0802cc10 .word 0x0802cc10
  52898. 08015cec <setup_tcp>:
  52899. *
  52900. * @param conn the TCP netconn to setup
  52901. */
  52902. static void
  52903. setup_tcp(struct netconn *conn)
  52904. {
  52905. 8015cec: b580 push {r7, lr}
  52906. 8015cee: b084 sub sp, #16
  52907. 8015cf0: af00 add r7, sp, #0
  52908. 8015cf2: 6078 str r0, [r7, #4]
  52909. struct tcp_pcb *pcb;
  52910. pcb = conn->pcb.tcp;
  52911. 8015cf4: 687b ldr r3, [r7, #4]
  52912. 8015cf6: 685b ldr r3, [r3, #4]
  52913. 8015cf8: 60fb str r3, [r7, #12]
  52914. tcp_arg(pcb, conn);
  52915. 8015cfa: 6879 ldr r1, [r7, #4]
  52916. 8015cfc: 68f8 ldr r0, [r7, #12]
  52917. 8015cfe: f005 ffe3 bl 801bcc8 <tcp_arg>
  52918. tcp_recv(pcb, recv_tcp);
  52919. 8015d02: 490a ldr r1, [pc, #40] @ (8015d2c <setup_tcp+0x40>)
  52920. 8015d04: 68f8 ldr r0, [r7, #12]
  52921. 8015d06: f005 fff1 bl 801bcec <tcp_recv>
  52922. tcp_sent(pcb, sent_tcp);
  52923. 8015d0a: 4909 ldr r1, [pc, #36] @ (8015d30 <setup_tcp+0x44>)
  52924. 8015d0c: 68f8 ldr r0, [r7, #12]
  52925. 8015d0e: f006 f811 bl 801bd34 <tcp_sent>
  52926. tcp_poll(pcb, poll_tcp, NETCONN_TCP_POLL_INTERVAL);
  52927. 8015d12: 2202 movs r2, #2
  52928. 8015d14: 4907 ldr r1, [pc, #28] @ (8015d34 <setup_tcp+0x48>)
  52929. 8015d16: 68f8 ldr r0, [r7, #12]
  52930. 8015d18: f006 f86c bl 801bdf4 <tcp_poll>
  52931. tcp_err(pcb, err_tcp);
  52932. 8015d1c: 4906 ldr r1, [pc, #24] @ (8015d38 <setup_tcp+0x4c>)
  52933. 8015d1e: 68f8 ldr r0, [r7, #12]
  52934. 8015d20: f006 f82c bl 801bd7c <tcp_err>
  52935. }
  52936. 8015d24: bf00 nop
  52937. 8015d26: 3710 adds r7, #16
  52938. 8015d28: 46bd mov sp, r7
  52939. 8015d2a: bd80 pop {r7, pc}
  52940. 8015d2c: 08015895 .word 0x08015895
  52941. 8015d30: 08015a89 .word 0x08015a89
  52942. 8015d34: 080159b9 .word 0x080159b9
  52943. 8015d38: 08015b39 .word 0x08015b39
  52944. 08015d3c <pcb_new>:
  52945. *
  52946. * @param msg the api_msg describing the connection type
  52947. */
  52948. static void
  52949. pcb_new(struct api_msg *msg)
  52950. {
  52951. 8015d3c: b590 push {r4, r7, lr}
  52952. 8015d3e: b085 sub sp, #20
  52953. 8015d40: af00 add r7, sp, #0
  52954. 8015d42: 6078 str r0, [r7, #4]
  52955. enum lwip_ip_addr_type iptype = IPADDR_TYPE_V4;
  52956. 8015d44: 2300 movs r3, #0
  52957. 8015d46: 73fb strb r3, [r7, #15]
  52958. LWIP_ASSERT("pcb_new: pcb already allocated", msg->conn->pcb.tcp == NULL);
  52959. 8015d48: 687b ldr r3, [r7, #4]
  52960. 8015d4a: 681b ldr r3, [r3, #0]
  52961. 8015d4c: 685b ldr r3, [r3, #4]
  52962. 8015d4e: 2b00 cmp r3, #0
  52963. 8015d50: d006 beq.n 8015d60 <pcb_new+0x24>
  52964. 8015d52: 4b2b ldr r3, [pc, #172] @ (8015e00 <pcb_new+0xc4>)
  52965. 8015d54: f240 2265 movw r2, #613 @ 0x265
  52966. 8015d58: 492a ldr r1, [pc, #168] @ (8015e04 <pcb_new+0xc8>)
  52967. 8015d5a: 482b ldr r0, [pc, #172] @ (8015e08 <pcb_new+0xcc>)
  52968. 8015d5c: f013 fbd6 bl 802950c <iprintf>
  52969. iptype = IPADDR_TYPE_ANY;
  52970. }
  52971. #endif
  52972. /* Allocate a PCB for this connection */
  52973. switch (NETCONNTYPE_GROUP(msg->conn->type)) {
  52974. 8015d60: 687b ldr r3, [r7, #4]
  52975. 8015d62: 681b ldr r3, [r3, #0]
  52976. 8015d64: 781b ldrb r3, [r3, #0]
  52977. 8015d66: f003 03f0 and.w r3, r3, #240 @ 0xf0
  52978. 8015d6a: 2b10 cmp r3, #16
  52979. 8015d6c: d022 beq.n 8015db4 <pcb_new+0x78>
  52980. 8015d6e: 2b20 cmp r3, #32
  52981. 8015d70: d133 bne.n 8015dda <pcb_new+0x9e>
  52982. }
  52983. break;
  52984. #endif /* LWIP_RAW */
  52985. #if LWIP_UDP
  52986. case NETCONN_UDP:
  52987. msg->conn->pcb.udp = udp_new_ip_type(iptype);
  52988. 8015d72: 687b ldr r3, [r7, #4]
  52989. 8015d74: 681c ldr r4, [r3, #0]
  52990. 8015d76: 7bfb ldrb r3, [r7, #15]
  52991. 8015d78: 4618 mov r0, r3
  52992. 8015d7a: f00b fb94 bl 80214a6 <udp_new_ip_type>
  52993. 8015d7e: 4603 mov r3, r0
  52994. 8015d80: 6063 str r3, [r4, #4]
  52995. if (msg->conn->pcb.udp != NULL) {
  52996. 8015d82: 687b ldr r3, [r7, #4]
  52997. 8015d84: 681b ldr r3, [r3, #0]
  52998. 8015d86: 685b ldr r3, [r3, #4]
  52999. 8015d88: 2b00 cmp r3, #0
  53000. 8015d8a: d02a beq.n 8015de2 <pcb_new+0xa6>
  53001. #if LWIP_UDPLITE
  53002. if (NETCONNTYPE_ISUDPLITE(msg->conn->type)) {
  53003. udp_setflags(msg->conn->pcb.udp, UDP_FLAGS_UDPLITE);
  53004. }
  53005. #endif /* LWIP_UDPLITE */
  53006. if (NETCONNTYPE_ISUDPNOCHKSUM(msg->conn->type)) {
  53007. 8015d8c: 687b ldr r3, [r7, #4]
  53008. 8015d8e: 681b ldr r3, [r3, #0]
  53009. 8015d90: 781b ldrb r3, [r3, #0]
  53010. 8015d92: 2b22 cmp r3, #34 @ 0x22
  53011. 8015d94: d104 bne.n 8015da0 <pcb_new+0x64>
  53012. udp_setflags(msg->conn->pcb.udp, UDP_FLAGS_NOCHKSUM);
  53013. 8015d96: 687b ldr r3, [r7, #4]
  53014. 8015d98: 681b ldr r3, [r3, #0]
  53015. 8015d9a: 685b ldr r3, [r3, #4]
  53016. 8015d9c: 2201 movs r2, #1
  53017. 8015d9e: 741a strb r2, [r3, #16]
  53018. }
  53019. udp_recv(msg->conn->pcb.udp, recv_udp, msg->conn);
  53020. 8015da0: 687b ldr r3, [r7, #4]
  53021. 8015da2: 681b ldr r3, [r3, #0]
  53022. 8015da4: 6858 ldr r0, [r3, #4]
  53023. 8015da6: 687b ldr r3, [r7, #4]
  53024. 8015da8: 681b ldr r3, [r3, #0]
  53025. 8015daa: 461a mov r2, r3
  53026. 8015dac: 4917 ldr r1, [pc, #92] @ (8015e0c <pcb_new+0xd0>)
  53027. 8015dae: f00b fafb bl 80213a8 <udp_recv>
  53028. }
  53029. break;
  53030. 8015db2: e016 b.n 8015de2 <pcb_new+0xa6>
  53031. #endif /* LWIP_UDP */
  53032. #if LWIP_TCP
  53033. case NETCONN_TCP:
  53034. msg->conn->pcb.tcp = tcp_new_ip_type(iptype);
  53035. 8015db4: 687b ldr r3, [r7, #4]
  53036. 8015db6: 681c ldr r4, [r3, #0]
  53037. 8015db8: 7bfb ldrb r3, [r7, #15]
  53038. 8015dba: 4618 mov r0, r3
  53039. 8015dbc: f005 ff76 bl 801bcac <tcp_new_ip_type>
  53040. 8015dc0: 4603 mov r3, r0
  53041. 8015dc2: 6063 str r3, [r4, #4]
  53042. if (msg->conn->pcb.tcp != NULL) {
  53043. 8015dc4: 687b ldr r3, [r7, #4]
  53044. 8015dc6: 681b ldr r3, [r3, #0]
  53045. 8015dc8: 685b ldr r3, [r3, #4]
  53046. 8015dca: 2b00 cmp r3, #0
  53047. 8015dcc: d00b beq.n 8015de6 <pcb_new+0xaa>
  53048. setup_tcp(msg->conn);
  53049. 8015dce: 687b ldr r3, [r7, #4]
  53050. 8015dd0: 681b ldr r3, [r3, #0]
  53051. 8015dd2: 4618 mov r0, r3
  53052. 8015dd4: f7ff ff8a bl 8015cec <setup_tcp>
  53053. }
  53054. break;
  53055. 8015dd8: e005 b.n 8015de6 <pcb_new+0xaa>
  53056. #endif /* LWIP_TCP */
  53057. default:
  53058. /* Unsupported netconn type, e.g. protocol disabled */
  53059. msg->err = ERR_VAL;
  53060. 8015dda: 687b ldr r3, [r7, #4]
  53061. 8015ddc: 22fa movs r2, #250 @ 0xfa
  53062. 8015dde: 711a strb r2, [r3, #4]
  53063. return;
  53064. 8015de0: e00a b.n 8015df8 <pcb_new+0xbc>
  53065. break;
  53066. 8015de2: bf00 nop
  53067. 8015de4: e000 b.n 8015de8 <pcb_new+0xac>
  53068. break;
  53069. 8015de6: bf00 nop
  53070. }
  53071. if (msg->conn->pcb.ip == NULL) {
  53072. 8015de8: 687b ldr r3, [r7, #4]
  53073. 8015dea: 681b ldr r3, [r3, #0]
  53074. 8015dec: 685b ldr r3, [r3, #4]
  53075. 8015dee: 2b00 cmp r3, #0
  53076. 8015df0: d102 bne.n 8015df8 <pcb_new+0xbc>
  53077. msg->err = ERR_MEM;
  53078. 8015df2: 687b ldr r3, [r7, #4]
  53079. 8015df4: 22ff movs r2, #255 @ 0xff
  53080. 8015df6: 711a strb r2, [r3, #4]
  53081. }
  53082. }
  53083. 8015df8: 3714 adds r7, #20
  53084. 8015dfa: 46bd mov sp, r7
  53085. 8015dfc: bd90 pop {r4, r7, pc}
  53086. 8015dfe: bf00 nop
  53087. 8015e00: 0802ca70 .word 0x0802ca70
  53088. 8015e04: 0802cc54 .word 0x0802cc54
  53089. 8015e08: 0802cab4 .word 0x0802cab4
  53090. 8015e0c: 0801575d .word 0x0801575d
  53091. 08015e10 <lwip_netconn_do_newconn>:
  53092. *
  53093. * @param m the api_msg describing the connection type
  53094. */
  53095. void
  53096. lwip_netconn_do_newconn(void *m)
  53097. {
  53098. 8015e10: b580 push {r7, lr}
  53099. 8015e12: b084 sub sp, #16
  53100. 8015e14: af00 add r7, sp, #0
  53101. 8015e16: 6078 str r0, [r7, #4]
  53102. struct api_msg *msg = (struct api_msg *)m;
  53103. 8015e18: 687b ldr r3, [r7, #4]
  53104. 8015e1a: 60fb str r3, [r7, #12]
  53105. msg->err = ERR_OK;
  53106. 8015e1c: 68fb ldr r3, [r7, #12]
  53107. 8015e1e: 2200 movs r2, #0
  53108. 8015e20: 711a strb r2, [r3, #4]
  53109. if (msg->conn->pcb.tcp == NULL) {
  53110. 8015e22: 68fb ldr r3, [r7, #12]
  53111. 8015e24: 681b ldr r3, [r3, #0]
  53112. 8015e26: 685b ldr r3, [r3, #4]
  53113. 8015e28: 2b00 cmp r3, #0
  53114. 8015e2a: d102 bne.n 8015e32 <lwip_netconn_do_newconn+0x22>
  53115. pcb_new(msg);
  53116. 8015e2c: 68f8 ldr r0, [r7, #12]
  53117. 8015e2e: f7ff ff85 bl 8015d3c <pcb_new>
  53118. /* Else? This "new" connection already has a PCB allocated. */
  53119. /* Is this an error condition? Should it be deleted? */
  53120. /* We currently just are happy and return. */
  53121. TCPIP_APIMSG_ACK(msg);
  53122. }
  53123. 8015e32: bf00 nop
  53124. 8015e34: 3710 adds r7, #16
  53125. 8015e36: 46bd mov sp, r7
  53126. 8015e38: bd80 pop {r7, pc}
  53127. ...
  53128. 08015e3c <netconn_alloc>:
  53129. * @return a newly allocated struct netconn or
  53130. * NULL on memory error
  53131. */
  53132. struct netconn *
  53133. netconn_alloc(enum netconn_type t, netconn_callback callback)
  53134. {
  53135. 8015e3c: b580 push {r7, lr}
  53136. 8015e3e: b086 sub sp, #24
  53137. 8015e40: af00 add r7, sp, #0
  53138. 8015e42: 4603 mov r3, r0
  53139. 8015e44: 6039 str r1, [r7, #0]
  53140. 8015e46: 71fb strb r3, [r7, #7]
  53141. struct netconn *conn;
  53142. int size;
  53143. u8_t init_flags = 0;
  53144. 8015e48: 2300 movs r3, #0
  53145. 8015e4a: 74fb strb r3, [r7, #19]
  53146. conn = (struct netconn *)memp_malloc(MEMP_NETCONN);
  53147. 8015e4c: 2007 movs r0, #7
  53148. 8015e4e: f003 f981 bl 8019154 <memp_malloc>
  53149. 8015e52: 60f8 str r0, [r7, #12]
  53150. if (conn == NULL) {
  53151. 8015e54: 68fb ldr r3, [r7, #12]
  53152. 8015e56: 2b00 cmp r3, #0
  53153. 8015e58: d101 bne.n 8015e5e <netconn_alloc+0x22>
  53154. return NULL;
  53155. 8015e5a: 2300 movs r3, #0
  53156. 8015e5c: e05c b.n 8015f18 <netconn_alloc+0xdc>
  53157. }
  53158. conn->pending_err = ERR_OK;
  53159. 8015e5e: 68fb ldr r3, [r7, #12]
  53160. 8015e60: 2200 movs r2, #0
  53161. 8015e62: 721a strb r2, [r3, #8]
  53162. conn->type = t;
  53163. 8015e64: 68fb ldr r3, [r7, #12]
  53164. 8015e66: 79fa ldrb r2, [r7, #7]
  53165. 8015e68: 701a strb r2, [r3, #0]
  53166. conn->pcb.tcp = NULL;
  53167. 8015e6a: 68fb ldr r3, [r7, #12]
  53168. 8015e6c: 2200 movs r2, #0
  53169. 8015e6e: 605a str r2, [r3, #4]
  53170. /* If all sizes are the same, every compiler should optimize this switch to nothing */
  53171. switch (NETCONNTYPE_GROUP(t)) {
  53172. 8015e70: 79fb ldrb r3, [r7, #7]
  53173. 8015e72: f003 03f0 and.w r3, r3, #240 @ 0xf0
  53174. 8015e76: 2b10 cmp r3, #16
  53175. 8015e78: d004 beq.n 8015e84 <netconn_alloc+0x48>
  53176. 8015e7a: 2b20 cmp r3, #32
  53177. 8015e7c: d105 bne.n 8015e8a <netconn_alloc+0x4e>
  53178. size = DEFAULT_RAW_RECVMBOX_SIZE;
  53179. break;
  53180. #endif /* LWIP_RAW */
  53181. #if LWIP_UDP
  53182. case NETCONN_UDP:
  53183. size = DEFAULT_UDP_RECVMBOX_SIZE;
  53184. 8015e7e: 2306 movs r3, #6
  53185. 8015e80: 617b str r3, [r7, #20]
  53186. #if LWIP_NETBUF_RECVINFO
  53187. init_flags |= NETCONN_FLAG_PKTINFO;
  53188. #endif /* LWIP_NETBUF_RECVINFO */
  53189. break;
  53190. 8015e82: e00a b.n 8015e9a <netconn_alloc+0x5e>
  53191. #endif /* LWIP_UDP */
  53192. #if LWIP_TCP
  53193. case NETCONN_TCP:
  53194. size = DEFAULT_TCP_RECVMBOX_SIZE;
  53195. 8015e84: 2306 movs r3, #6
  53196. 8015e86: 617b str r3, [r7, #20]
  53197. break;
  53198. 8015e88: e007 b.n 8015e9a <netconn_alloc+0x5e>
  53199. #endif /* LWIP_TCP */
  53200. default:
  53201. LWIP_ASSERT("netconn_alloc: undefined netconn_type", 0);
  53202. 8015e8a: 4b25 ldr r3, [pc, #148] @ (8015f20 <netconn_alloc+0xe4>)
  53203. 8015e8c: f240 22e5 movw r2, #741 @ 0x2e5
  53204. 8015e90: 4924 ldr r1, [pc, #144] @ (8015f24 <netconn_alloc+0xe8>)
  53205. 8015e92: 4825 ldr r0, [pc, #148] @ (8015f28 <netconn_alloc+0xec>)
  53206. 8015e94: f013 fb3a bl 802950c <iprintf>
  53207. goto free_and_return;
  53208. 8015e98: e039 b.n 8015f0e <netconn_alloc+0xd2>
  53209. }
  53210. if (sys_mbox_new(&conn->recvmbox, size) != ERR_OK) {
  53211. 8015e9a: 68fb ldr r3, [r7, #12]
  53212. 8015e9c: 3310 adds r3, #16
  53213. 8015e9e: 6979 ldr r1, [r7, #20]
  53214. 8015ea0: 4618 mov r0, r3
  53215. 8015ea2: f00f ff05 bl 8025cb0 <sys_mbox_new>
  53216. 8015ea6: 4603 mov r3, r0
  53217. 8015ea8: 2b00 cmp r3, #0
  53218. 8015eaa: d12f bne.n 8015f0c <netconn_alloc+0xd0>
  53219. goto free_and_return;
  53220. }
  53221. #if !LWIP_NETCONN_SEM_PER_THREAD
  53222. if (sys_sem_new(&conn->op_completed, 0) != ERR_OK) {
  53223. 8015eac: 68fb ldr r3, [r7, #12]
  53224. 8015eae: 330c adds r3, #12
  53225. 8015eb0: 2100 movs r1, #0
  53226. 8015eb2: 4618 mov r0, r3
  53227. 8015eb4: f00f ffa8 bl 8025e08 <sys_sem_new>
  53228. 8015eb8: 4603 mov r3, r0
  53229. 8015eba: 2b00 cmp r3, #0
  53230. 8015ebc: d005 beq.n 8015eca <netconn_alloc+0x8e>
  53231. sys_mbox_free(&conn->recvmbox);
  53232. 8015ebe: 68fb ldr r3, [r7, #12]
  53233. 8015ec0: 3310 adds r3, #16
  53234. 8015ec2: 4618 mov r0, r3
  53235. 8015ec4: f00f ff0e bl 8025ce4 <sys_mbox_free>
  53236. goto free_and_return;
  53237. 8015ec8: e021 b.n 8015f0e <netconn_alloc+0xd2>
  53238. }
  53239. #endif
  53240. #if LWIP_TCP
  53241. sys_mbox_set_invalid(&conn->acceptmbox);
  53242. 8015eca: 68fb ldr r3, [r7, #12]
  53243. 8015ecc: 3314 adds r3, #20
  53244. 8015ece: 4618 mov r0, r3
  53245. 8015ed0: f00f ff8d bl 8025dee <sys_mbox_set_invalid>
  53246. #endif
  53247. conn->state = NETCONN_NONE;
  53248. 8015ed4: 68fb ldr r3, [r7, #12]
  53249. 8015ed6: 2200 movs r2, #0
  53250. 8015ed8: 705a strb r2, [r3, #1]
  53251. #if LWIP_SOCKET
  53252. /* initialize socket to -1 since 0 is a valid socket */
  53253. conn->socket = -1;
  53254. 8015eda: 68fb ldr r3, [r7, #12]
  53255. 8015edc: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  53256. 8015ee0: 619a str r2, [r3, #24]
  53257. #endif /* LWIP_SOCKET */
  53258. conn->callback = callback;
  53259. 8015ee2: 68fb ldr r3, [r7, #12]
  53260. 8015ee4: 683a ldr r2, [r7, #0]
  53261. 8015ee6: 631a str r2, [r3, #48] @ 0x30
  53262. #if LWIP_TCP
  53263. conn->current_msg = NULL;
  53264. 8015ee8: 68fb ldr r3, [r7, #12]
  53265. 8015eea: 2200 movs r2, #0
  53266. 8015eec: 62da str r2, [r3, #44] @ 0x2c
  53267. #endif /* LWIP_TCP */
  53268. #if LWIP_SO_SNDTIMEO
  53269. conn->send_timeout = 0;
  53270. #endif /* LWIP_SO_SNDTIMEO */
  53271. #if LWIP_SO_RCVTIMEO
  53272. conn->recv_timeout = 0;
  53273. 8015eee: 68fb ldr r3, [r7, #12]
  53274. 8015ef0: 2200 movs r2, #0
  53275. 8015ef2: 61da str r2, [r3, #28]
  53276. #endif /* LWIP_SO_RCVTIMEO */
  53277. #if LWIP_SO_RCVBUF
  53278. conn->recv_bufsize = RECV_BUFSIZE_DEFAULT;
  53279. 8015ef4: 68fb ldr r3, [r7, #12]
  53280. 8015ef6: 4a0d ldr r2, [pc, #52] @ (8015f2c <netconn_alloc+0xf0>)
  53281. 8015ef8: 621a str r2, [r3, #32]
  53282. conn->recv_avail = 0;
  53283. 8015efa: 68fb ldr r3, [r7, #12]
  53284. 8015efc: 2200 movs r2, #0
  53285. 8015efe: 625a str r2, [r3, #36] @ 0x24
  53286. #endif /* LWIP_SO_RCVBUF */
  53287. #if LWIP_SO_LINGER
  53288. conn->linger = -1;
  53289. #endif /* LWIP_SO_LINGER */
  53290. conn->flags = init_flags;
  53291. 8015f00: 68fb ldr r3, [r7, #12]
  53292. 8015f02: 7cfa ldrb r2, [r7, #19]
  53293. 8015f04: f883 2028 strb.w r2, [r3, #40] @ 0x28
  53294. return conn;
  53295. 8015f08: 68fb ldr r3, [r7, #12]
  53296. 8015f0a: e005 b.n 8015f18 <netconn_alloc+0xdc>
  53297. goto free_and_return;
  53298. 8015f0c: bf00 nop
  53299. free_and_return:
  53300. memp_free(MEMP_NETCONN, conn);
  53301. 8015f0e: 68f9 ldr r1, [r7, #12]
  53302. 8015f10: 2007 movs r0, #7
  53303. 8015f12: f003 f995 bl 8019240 <memp_free>
  53304. return NULL;
  53305. 8015f16: 2300 movs r3, #0
  53306. }
  53307. 8015f18: 4618 mov r0, r3
  53308. 8015f1a: 3718 adds r7, #24
  53309. 8015f1c: 46bd mov sp, r7
  53310. 8015f1e: bd80 pop {r7, pc}
  53311. 8015f20: 0802ca70 .word 0x0802ca70
  53312. 8015f24: 0802cc74 .word 0x0802cc74
  53313. 8015f28: 0802cab4 .word 0x0802cab4
  53314. 8015f2c: 77359400 .word 0x77359400
  53315. 08015f30 <netconn_free>:
  53316. *
  53317. * @param conn the netconn to free
  53318. */
  53319. void
  53320. netconn_free(struct netconn *conn)
  53321. {
  53322. 8015f30: b580 push {r7, lr}
  53323. 8015f32: b082 sub sp, #8
  53324. 8015f34: af00 add r7, sp, #0
  53325. 8015f36: 6078 str r0, [r7, #4]
  53326. LWIP_ASSERT("PCB must be deallocated outside this function", conn->pcb.tcp == NULL);
  53327. 8015f38: 687b ldr r3, [r7, #4]
  53328. 8015f3a: 685b ldr r3, [r3, #4]
  53329. 8015f3c: 2b00 cmp r3, #0
  53330. 8015f3e: d006 beq.n 8015f4e <netconn_free+0x1e>
  53331. 8015f40: 4b1b ldr r3, [pc, #108] @ (8015fb0 <netconn_free+0x80>)
  53332. 8015f42: f44f 7247 mov.w r2, #796 @ 0x31c
  53333. 8015f46: 491b ldr r1, [pc, #108] @ (8015fb4 <netconn_free+0x84>)
  53334. 8015f48: 481b ldr r0, [pc, #108] @ (8015fb8 <netconn_free+0x88>)
  53335. 8015f4a: f013 fadf bl 802950c <iprintf>
  53336. #if LWIP_NETCONN_FULLDUPLEX
  53337. /* in fullduplex, netconn is drained here */
  53338. netconn_drain(conn);
  53339. #endif /* LWIP_NETCONN_FULLDUPLEX */
  53340. LWIP_ASSERT("recvmbox must be deallocated before calling this function",
  53341. 8015f4e: 687b ldr r3, [r7, #4]
  53342. 8015f50: 3310 adds r3, #16
  53343. 8015f52: 4618 mov r0, r3
  53344. 8015f54: f00f ff3a bl 8025dcc <sys_mbox_valid>
  53345. 8015f58: 4603 mov r3, r0
  53346. 8015f5a: 2b00 cmp r3, #0
  53347. 8015f5c: d006 beq.n 8015f6c <netconn_free+0x3c>
  53348. 8015f5e: 4b14 ldr r3, [pc, #80] @ (8015fb0 <netconn_free+0x80>)
  53349. 8015f60: f240 3223 movw r2, #803 @ 0x323
  53350. 8015f64: 4915 ldr r1, [pc, #84] @ (8015fbc <netconn_free+0x8c>)
  53351. 8015f66: 4814 ldr r0, [pc, #80] @ (8015fb8 <netconn_free+0x88>)
  53352. 8015f68: f013 fad0 bl 802950c <iprintf>
  53353. !sys_mbox_valid(&conn->recvmbox));
  53354. #if LWIP_TCP
  53355. LWIP_ASSERT("acceptmbox must be deallocated before calling this function",
  53356. 8015f6c: 687b ldr r3, [r7, #4]
  53357. 8015f6e: 3314 adds r3, #20
  53358. 8015f70: 4618 mov r0, r3
  53359. 8015f72: f00f ff2b bl 8025dcc <sys_mbox_valid>
  53360. 8015f76: 4603 mov r3, r0
  53361. 8015f78: 2b00 cmp r3, #0
  53362. 8015f7a: d006 beq.n 8015f8a <netconn_free+0x5a>
  53363. 8015f7c: 4b0c ldr r3, [pc, #48] @ (8015fb0 <netconn_free+0x80>)
  53364. 8015f7e: f240 3226 movw r2, #806 @ 0x326
  53365. 8015f82: 490f ldr r1, [pc, #60] @ (8015fc0 <netconn_free+0x90>)
  53366. 8015f84: 480c ldr r0, [pc, #48] @ (8015fb8 <netconn_free+0x88>)
  53367. 8015f86: f013 fac1 bl 802950c <iprintf>
  53368. !sys_mbox_valid(&conn->acceptmbox));
  53369. #endif /* LWIP_TCP */
  53370. #if !LWIP_NETCONN_SEM_PER_THREAD
  53371. sys_sem_free(&conn->op_completed);
  53372. 8015f8a: 687b ldr r3, [r7, #4]
  53373. 8015f8c: 330c adds r3, #12
  53374. 8015f8e: 4618 mov r0, r3
  53375. 8015f90: f00f ff9d bl 8025ece <sys_sem_free>
  53376. sys_sem_set_invalid(&conn->op_completed);
  53377. 8015f94: 687b ldr r3, [r7, #4]
  53378. 8015f96: 330c adds r3, #12
  53379. 8015f98: 4618 mov r0, r3
  53380. 8015f9a: f00f ffb6 bl 8025f0a <sys_sem_set_invalid>
  53381. #endif
  53382. memp_free(MEMP_NETCONN, conn);
  53383. 8015f9e: 6879 ldr r1, [r7, #4]
  53384. 8015fa0: 2007 movs r0, #7
  53385. 8015fa2: f003 f94d bl 8019240 <memp_free>
  53386. }
  53387. 8015fa6: bf00 nop
  53388. 8015fa8: 3708 adds r7, #8
  53389. 8015faa: 46bd mov sp, r7
  53390. 8015fac: bd80 pop {r7, pc}
  53391. 8015fae: bf00 nop
  53392. 8015fb0: 0802ca70 .word 0x0802ca70
  53393. 8015fb4: 0802cc9c .word 0x0802cc9c
  53394. 8015fb8: 0802cab4 .word 0x0802cab4
  53395. 8015fbc: 0802cccc .word 0x0802cccc
  53396. 8015fc0: 0802cd08 .word 0x0802cd08
  53397. 08015fc4 <netconn_drain>:
  53398. * @bytes_drained bytes drained from recvmbox
  53399. * @accepts_drained pending connections drained from acceptmbox
  53400. */
  53401. static void
  53402. netconn_drain(struct netconn *conn)
  53403. {
  53404. 8015fc4: b580 push {r7, lr}
  53405. 8015fc6: b086 sub sp, #24
  53406. 8015fc8: af00 add r7, sp, #0
  53407. 8015fca: 6078 str r0, [r7, #4]
  53408. #if LWIP_NETCONN_FULLDUPLEX
  53409. LWIP_ASSERT("netconn marked closed", conn->flags & NETCONN_FLAG_MBOXINVALID);
  53410. #endif /* LWIP_NETCONN_FULLDUPLEX */
  53411. /* Delete and drain the recvmbox. */
  53412. if (sys_mbox_valid(&conn->recvmbox)) {
  53413. 8015fcc: 687b ldr r3, [r7, #4]
  53414. 8015fce: 3310 adds r3, #16
  53415. 8015fd0: 4618 mov r0, r3
  53416. 8015fd2: f00f fefb bl 8025dcc <sys_mbox_valid>
  53417. 8015fd6: 4603 mov r3, r0
  53418. 8015fd8: 2b00 cmp r3, #0
  53419. 8015fda: d02f beq.n 801603c <netconn_drain+0x78>
  53420. while (sys_mbox_tryfetch(&conn->recvmbox, &mem) != SYS_MBOX_EMPTY) {
  53421. 8015fdc: e018 b.n 8016010 <netconn_drain+0x4c>
  53422. #if LWIP_NETCONN_FULLDUPLEX
  53423. if (!lwip_netconn_is_deallocated_msg(mem))
  53424. #endif /* LWIP_NETCONN_FULLDUPLEX */
  53425. {
  53426. #if LWIP_TCP
  53427. if (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP) {
  53428. 8015fde: 687b ldr r3, [r7, #4]
  53429. 8015fe0: 781b ldrb r3, [r3, #0]
  53430. 8015fe2: f003 03f0 and.w r3, r3, #240 @ 0xf0
  53431. 8015fe6: 2b10 cmp r3, #16
  53432. 8015fe8: d10e bne.n 8016008 <netconn_drain+0x44>
  53433. err_t err;
  53434. if (!lwip_netconn_is_err_msg(mem, &err)) {
  53435. 8015fea: 693b ldr r3, [r7, #16]
  53436. 8015fec: f107 020f add.w r2, r7, #15
  53437. 8015ff0: 4611 mov r1, r2
  53438. 8015ff2: 4618 mov r0, r3
  53439. 8015ff4: f7ff fb78 bl 80156e8 <lwip_netconn_is_err_msg>
  53440. 8015ff8: 4603 mov r3, r0
  53441. 8015ffa: 2b00 cmp r3, #0
  53442. 8015ffc: d108 bne.n 8016010 <netconn_drain+0x4c>
  53443. pbuf_free((struct pbuf *)mem);
  53444. 8015ffe: 693b ldr r3, [r7, #16]
  53445. 8016000: 4618 mov r0, r3
  53446. 8016002: f004 f80b bl 801a01c <pbuf_free>
  53447. 8016006: e003 b.n 8016010 <netconn_drain+0x4c>
  53448. }
  53449. } else
  53450. #endif /* LWIP_TCP */
  53451. {
  53452. netbuf_delete((struct netbuf *)mem);
  53453. 8016008: 693b ldr r3, [r7, #16]
  53454. 801600a: 4618 mov r0, r3
  53455. 801600c: f001 f81c bl 8017048 <netbuf_delete>
  53456. while (sys_mbox_tryfetch(&conn->recvmbox, &mem) != SYS_MBOX_EMPTY) {
  53457. 8016010: 687b ldr r3, [r7, #4]
  53458. 8016012: 3310 adds r3, #16
  53459. 8016014: f107 0210 add.w r2, r7, #16
  53460. 8016018: 4611 mov r1, r2
  53461. 801601a: 4618 mov r0, r3
  53462. 801601c: f00f febf bl 8025d9e <sys_arch_mbox_tryfetch>
  53463. 8016020: 4603 mov r3, r0
  53464. 8016022: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  53465. 8016026: d1da bne.n 8015fde <netconn_drain+0x1a>
  53466. }
  53467. }
  53468. }
  53469. sys_mbox_free(&conn->recvmbox);
  53470. 8016028: 687b ldr r3, [r7, #4]
  53471. 801602a: 3310 adds r3, #16
  53472. 801602c: 4618 mov r0, r3
  53473. 801602e: f00f fe59 bl 8025ce4 <sys_mbox_free>
  53474. sys_mbox_set_invalid(&conn->recvmbox);
  53475. 8016032: 687b ldr r3, [r7, #4]
  53476. 8016034: 3310 adds r3, #16
  53477. 8016036: 4618 mov r0, r3
  53478. 8016038: f00f fed9 bl 8025dee <sys_mbox_set_invalid>
  53479. }
  53480. /* Delete and drain the acceptmbox. */
  53481. #if LWIP_TCP
  53482. if (sys_mbox_valid(&conn->acceptmbox)) {
  53483. 801603c: 687b ldr r3, [r7, #4]
  53484. 801603e: 3314 adds r3, #20
  53485. 8016040: 4618 mov r0, r3
  53486. 8016042: f00f fec3 bl 8025dcc <sys_mbox_valid>
  53487. 8016046: 4603 mov r3, r0
  53488. 8016048: 2b00 cmp r3, #0
  53489. 801604a: d034 beq.n 80160b6 <netconn_drain+0xf2>
  53490. while (sys_mbox_tryfetch(&conn->acceptmbox, &mem) != SYS_MBOX_EMPTY) {
  53491. 801604c: e01d b.n 801608a <netconn_drain+0xc6>
  53492. #if LWIP_NETCONN_FULLDUPLEX
  53493. if (!lwip_netconn_is_deallocated_msg(mem))
  53494. #endif /* LWIP_NETCONN_FULLDUPLEX */
  53495. {
  53496. err_t err;
  53497. if (!lwip_netconn_is_err_msg(mem, &err)) {
  53498. 801604e: 693b ldr r3, [r7, #16]
  53499. 8016050: f107 020e add.w r2, r7, #14
  53500. 8016054: 4611 mov r1, r2
  53501. 8016056: 4618 mov r0, r3
  53502. 8016058: f7ff fb46 bl 80156e8 <lwip_netconn_is_err_msg>
  53503. 801605c: 4603 mov r3, r0
  53504. 801605e: 2b00 cmp r3, #0
  53505. 8016060: d113 bne.n 801608a <netconn_drain+0xc6>
  53506. struct netconn *newconn = (struct netconn *)mem;
  53507. 8016062: 693b ldr r3, [r7, #16]
  53508. 8016064: 617b str r3, [r7, #20]
  53509. /* Only tcp pcbs have an acceptmbox, so no need to check conn->type */
  53510. /* pcb might be set to NULL already by err_tcp() */
  53511. /* drain recvmbox */
  53512. netconn_drain(newconn);
  53513. 8016066: 6978 ldr r0, [r7, #20]
  53514. 8016068: f7ff ffac bl 8015fc4 <netconn_drain>
  53515. if (newconn->pcb.tcp != NULL) {
  53516. 801606c: 697b ldr r3, [r7, #20]
  53517. 801606e: 685b ldr r3, [r3, #4]
  53518. 8016070: 2b00 cmp r3, #0
  53519. 8016072: d007 beq.n 8016084 <netconn_drain+0xc0>
  53520. tcp_abort(newconn->pcb.tcp);
  53521. 8016074: 697b ldr r3, [r7, #20]
  53522. 8016076: 685b ldr r3, [r3, #4]
  53523. 8016078: 4618 mov r0, r3
  53524. 801607a: f004 fdd5 bl 801ac28 <tcp_abort>
  53525. newconn->pcb.tcp = NULL;
  53526. 801607e: 697b ldr r3, [r7, #20]
  53527. 8016080: 2200 movs r2, #0
  53528. 8016082: 605a str r2, [r3, #4]
  53529. }
  53530. netconn_free(newconn);
  53531. 8016084: 6978 ldr r0, [r7, #20]
  53532. 8016086: f7ff ff53 bl 8015f30 <netconn_free>
  53533. while (sys_mbox_tryfetch(&conn->acceptmbox, &mem) != SYS_MBOX_EMPTY) {
  53534. 801608a: 687b ldr r3, [r7, #4]
  53535. 801608c: 3314 adds r3, #20
  53536. 801608e: f107 0210 add.w r2, r7, #16
  53537. 8016092: 4611 mov r1, r2
  53538. 8016094: 4618 mov r0, r3
  53539. 8016096: f00f fe82 bl 8025d9e <sys_arch_mbox_tryfetch>
  53540. 801609a: 4603 mov r3, r0
  53541. 801609c: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  53542. 80160a0: d1d5 bne.n 801604e <netconn_drain+0x8a>
  53543. }
  53544. }
  53545. }
  53546. sys_mbox_free(&conn->acceptmbox);
  53547. 80160a2: 687b ldr r3, [r7, #4]
  53548. 80160a4: 3314 adds r3, #20
  53549. 80160a6: 4618 mov r0, r3
  53550. 80160a8: f00f fe1c bl 8025ce4 <sys_mbox_free>
  53551. sys_mbox_set_invalid(&conn->acceptmbox);
  53552. 80160ac: 687b ldr r3, [r7, #4]
  53553. 80160ae: 3314 adds r3, #20
  53554. 80160b0: 4618 mov r0, r3
  53555. 80160b2: f00f fe9c bl 8025dee <sys_mbox_set_invalid>
  53556. }
  53557. #endif /* LWIP_TCP */
  53558. }
  53559. 80160b6: bf00 nop
  53560. 80160b8: 3718 adds r7, #24
  53561. 80160ba: 46bd mov sp, r7
  53562. 80160bc: bd80 pop {r7, pc}
  53563. ...
  53564. 080160c0 <lwip_netconn_do_close_internal>:
  53565. *
  53566. * @param conn the TCP netconn to close
  53567. */
  53568. static err_t
  53569. lwip_netconn_do_close_internal(struct netconn *conn WRITE_DELAYED_PARAM)
  53570. {
  53571. 80160c0: b580 push {r7, lr}
  53572. 80160c2: b086 sub sp, #24
  53573. 80160c4: af00 add r7, sp, #0
  53574. 80160c6: 6078 str r0, [r7, #4]
  53575. 80160c8: 460b mov r3, r1
  53576. 80160ca: 70fb strb r3, [r7, #3]
  53577. err_t err;
  53578. u8_t shut, shut_rx, shut_tx, shut_close;
  53579. u8_t close_finished = 0;
  53580. 80160cc: 2300 movs r3, #0
  53581. 80160ce: 757b strb r3, [r7, #21]
  53582. struct tcp_pcb *tpcb;
  53583. #if LWIP_SO_LINGER
  53584. u8_t linger_wait_required = 0;
  53585. #endif /* LWIP_SO_LINGER */
  53586. LWIP_ASSERT("invalid conn", (conn != NULL));
  53587. 80160d0: 687b ldr r3, [r7, #4]
  53588. 80160d2: 2b00 cmp r3, #0
  53589. 80160d4: d106 bne.n 80160e4 <lwip_netconn_do_close_internal+0x24>
  53590. 80160d6: 4b87 ldr r3, [pc, #540] @ (80162f4 <lwip_netconn_do_close_internal+0x234>)
  53591. 80160d8: f240 32a2 movw r2, #930 @ 0x3a2
  53592. 80160dc: 4986 ldr r1, [pc, #536] @ (80162f8 <lwip_netconn_do_close_internal+0x238>)
  53593. 80160de: 4887 ldr r0, [pc, #540] @ (80162fc <lwip_netconn_do_close_internal+0x23c>)
  53594. 80160e0: f013 fa14 bl 802950c <iprintf>
  53595. LWIP_ASSERT("this is for tcp netconns only", (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP));
  53596. 80160e4: 687b ldr r3, [r7, #4]
  53597. 80160e6: 781b ldrb r3, [r3, #0]
  53598. 80160e8: f003 03f0 and.w r3, r3, #240 @ 0xf0
  53599. 80160ec: 2b10 cmp r3, #16
  53600. 80160ee: d006 beq.n 80160fe <lwip_netconn_do_close_internal+0x3e>
  53601. 80160f0: 4b80 ldr r3, [pc, #512] @ (80162f4 <lwip_netconn_do_close_internal+0x234>)
  53602. 80160f2: f240 32a3 movw r2, #931 @ 0x3a3
  53603. 80160f6: 4982 ldr r1, [pc, #520] @ (8016300 <lwip_netconn_do_close_internal+0x240>)
  53604. 80160f8: 4880 ldr r0, [pc, #512] @ (80162fc <lwip_netconn_do_close_internal+0x23c>)
  53605. 80160fa: f013 fa07 bl 802950c <iprintf>
  53606. LWIP_ASSERT("conn must be in state NETCONN_CLOSE", (conn->state == NETCONN_CLOSE));
  53607. 80160fe: 687b ldr r3, [r7, #4]
  53608. 8016100: 785b ldrb r3, [r3, #1]
  53609. 8016102: 2b04 cmp r3, #4
  53610. 8016104: d006 beq.n 8016114 <lwip_netconn_do_close_internal+0x54>
  53611. 8016106: 4b7b ldr r3, [pc, #492] @ (80162f4 <lwip_netconn_do_close_internal+0x234>)
  53612. 8016108: f44f 7269 mov.w r2, #932 @ 0x3a4
  53613. 801610c: 497d ldr r1, [pc, #500] @ (8016304 <lwip_netconn_do_close_internal+0x244>)
  53614. 801610e: 487b ldr r0, [pc, #492] @ (80162fc <lwip_netconn_do_close_internal+0x23c>)
  53615. 8016110: f013 f9fc bl 802950c <iprintf>
  53616. LWIP_ASSERT("pcb already closed", (conn->pcb.tcp != NULL));
  53617. 8016114: 687b ldr r3, [r7, #4]
  53618. 8016116: 685b ldr r3, [r3, #4]
  53619. 8016118: 2b00 cmp r3, #0
  53620. 801611a: d106 bne.n 801612a <lwip_netconn_do_close_internal+0x6a>
  53621. 801611c: 4b75 ldr r3, [pc, #468] @ (80162f4 <lwip_netconn_do_close_internal+0x234>)
  53622. 801611e: f240 32a5 movw r2, #933 @ 0x3a5
  53623. 8016122: 4979 ldr r1, [pc, #484] @ (8016308 <lwip_netconn_do_close_internal+0x248>)
  53624. 8016124: 4875 ldr r0, [pc, #468] @ (80162fc <lwip_netconn_do_close_internal+0x23c>)
  53625. 8016126: f013 f9f1 bl 802950c <iprintf>
  53626. LWIP_ASSERT("conn->current_msg != NULL", conn->current_msg != NULL);
  53627. 801612a: 687b ldr r3, [r7, #4]
  53628. 801612c: 6adb ldr r3, [r3, #44] @ 0x2c
  53629. 801612e: 2b00 cmp r3, #0
  53630. 8016130: d106 bne.n 8016140 <lwip_netconn_do_close_internal+0x80>
  53631. 8016132: 4b70 ldr r3, [pc, #448] @ (80162f4 <lwip_netconn_do_close_internal+0x234>)
  53632. 8016134: f240 32a6 movw r2, #934 @ 0x3a6
  53633. 8016138: 4974 ldr r1, [pc, #464] @ (801630c <lwip_netconn_do_close_internal+0x24c>)
  53634. 801613a: 4870 ldr r0, [pc, #448] @ (80162fc <lwip_netconn_do_close_internal+0x23c>)
  53635. 801613c: f013 f9e6 bl 802950c <iprintf>
  53636. tpcb = conn->pcb.tcp;
  53637. 8016140: 687b ldr r3, [r7, #4]
  53638. 8016142: 685b ldr r3, [r3, #4]
  53639. 8016144: 613b str r3, [r7, #16]
  53640. shut = conn->current_msg->msg.sd.shut;
  53641. 8016146: 687b ldr r3, [r7, #4]
  53642. 8016148: 6adb ldr r3, [r3, #44] @ 0x2c
  53643. 801614a: 7a1b ldrb r3, [r3, #8]
  53644. 801614c: 73fb strb r3, [r7, #15]
  53645. shut_rx = shut & NETCONN_SHUT_RD;
  53646. 801614e: 7bfb ldrb r3, [r7, #15]
  53647. 8016150: f003 0301 and.w r3, r3, #1
  53648. 8016154: 73bb strb r3, [r7, #14]
  53649. shut_tx = shut & NETCONN_SHUT_WR;
  53650. 8016156: 7bfb ldrb r3, [r7, #15]
  53651. 8016158: f003 0302 and.w r3, r3, #2
  53652. 801615c: 737b strb r3, [r7, #13]
  53653. /* shutting down both ends is the same as closing
  53654. (also if RD or WR side was shut down before already) */
  53655. if (shut == NETCONN_SHUT_RDWR) {
  53656. 801615e: 7bfb ldrb r3, [r7, #15]
  53657. 8016160: 2b03 cmp r3, #3
  53658. 8016162: d102 bne.n 801616a <lwip_netconn_do_close_internal+0xaa>
  53659. shut_close = 1;
  53660. 8016164: 2301 movs r3, #1
  53661. 8016166: 75bb strb r3, [r7, #22]
  53662. 8016168: e01f b.n 80161aa <lwip_netconn_do_close_internal+0xea>
  53663. } else if (shut_rx &&
  53664. 801616a: 7bbb ldrb r3, [r7, #14]
  53665. 801616c: 2b00 cmp r3, #0
  53666. 801616e: d00e beq.n 801618e <lwip_netconn_do_close_internal+0xce>
  53667. ((tpcb->state == FIN_WAIT_1) ||
  53668. 8016170: 693b ldr r3, [r7, #16]
  53669. 8016172: 7d1b ldrb r3, [r3, #20]
  53670. } else if (shut_rx &&
  53671. 8016174: 2b05 cmp r3, #5
  53672. 8016176: d007 beq.n 8016188 <lwip_netconn_do_close_internal+0xc8>
  53673. (tpcb->state == FIN_WAIT_2) ||
  53674. 8016178: 693b ldr r3, [r7, #16]
  53675. 801617a: 7d1b ldrb r3, [r3, #20]
  53676. ((tpcb->state == FIN_WAIT_1) ||
  53677. 801617c: 2b06 cmp r3, #6
  53678. 801617e: d003 beq.n 8016188 <lwip_netconn_do_close_internal+0xc8>
  53679. (tpcb->state == CLOSING))) {
  53680. 8016180: 693b ldr r3, [r7, #16]
  53681. 8016182: 7d1b ldrb r3, [r3, #20]
  53682. (tpcb->state == FIN_WAIT_2) ||
  53683. 8016184: 2b08 cmp r3, #8
  53684. 8016186: d102 bne.n 801618e <lwip_netconn_do_close_internal+0xce>
  53685. shut_close = 1;
  53686. 8016188: 2301 movs r3, #1
  53687. 801618a: 75bb strb r3, [r7, #22]
  53688. 801618c: e00d b.n 80161aa <lwip_netconn_do_close_internal+0xea>
  53689. } else if (shut_tx && ((tpcb->flags & TF_RXCLOSED) != 0)) {
  53690. 801618e: 7b7b ldrb r3, [r7, #13]
  53691. 8016190: 2b00 cmp r3, #0
  53692. 8016192: d008 beq.n 80161a6 <lwip_netconn_do_close_internal+0xe6>
  53693. 8016194: 693b ldr r3, [r7, #16]
  53694. 8016196: 8b5b ldrh r3, [r3, #26]
  53695. 8016198: f003 0310 and.w r3, r3, #16
  53696. 801619c: 2b00 cmp r3, #0
  53697. 801619e: d002 beq.n 80161a6 <lwip_netconn_do_close_internal+0xe6>
  53698. shut_close = 1;
  53699. 80161a0: 2301 movs r3, #1
  53700. 80161a2: 75bb strb r3, [r7, #22]
  53701. 80161a4: e001 b.n 80161aa <lwip_netconn_do_close_internal+0xea>
  53702. } else {
  53703. shut_close = 0;
  53704. 80161a6: 2300 movs r3, #0
  53705. 80161a8: 75bb strb r3, [r7, #22]
  53706. }
  53707. /* Set back some callback pointers */
  53708. if (shut_close) {
  53709. 80161aa: 7dbb ldrb r3, [r7, #22]
  53710. 80161ac: 2b00 cmp r3, #0
  53711. 80161ae: d003 beq.n 80161b8 <lwip_netconn_do_close_internal+0xf8>
  53712. tcp_arg(tpcb, NULL);
  53713. 80161b0: 2100 movs r1, #0
  53714. 80161b2: 6938 ldr r0, [r7, #16]
  53715. 80161b4: f005 fd88 bl 801bcc8 <tcp_arg>
  53716. }
  53717. if (tpcb->state == LISTEN) {
  53718. 80161b8: 693b ldr r3, [r7, #16]
  53719. 80161ba: 7d1b ldrb r3, [r3, #20]
  53720. 80161bc: 2b01 cmp r3, #1
  53721. 80161be: d104 bne.n 80161ca <lwip_netconn_do_close_internal+0x10a>
  53722. tcp_accept(tpcb, NULL);
  53723. 80161c0: 2100 movs r1, #0
  53724. 80161c2: 6938 ldr r0, [r7, #16]
  53725. 80161c4: f005 fdfe bl 801bdc4 <tcp_accept>
  53726. 80161c8: e01d b.n 8016206 <lwip_netconn_do_close_internal+0x146>
  53727. } else {
  53728. /* some callbacks have to be reset if tcp_close is not successful */
  53729. if (shut_rx) {
  53730. 80161ca: 7bbb ldrb r3, [r7, #14]
  53731. 80161cc: 2b00 cmp r3, #0
  53732. 80161ce: d007 beq.n 80161e0 <lwip_netconn_do_close_internal+0x120>
  53733. tcp_recv(tpcb, NULL);
  53734. 80161d0: 2100 movs r1, #0
  53735. 80161d2: 6938 ldr r0, [r7, #16]
  53736. 80161d4: f005 fd8a bl 801bcec <tcp_recv>
  53737. tcp_accept(tpcb, NULL);
  53738. 80161d8: 2100 movs r1, #0
  53739. 80161da: 6938 ldr r0, [r7, #16]
  53740. 80161dc: f005 fdf2 bl 801bdc4 <tcp_accept>
  53741. }
  53742. if (shut_tx) {
  53743. 80161e0: 7b7b ldrb r3, [r7, #13]
  53744. 80161e2: 2b00 cmp r3, #0
  53745. 80161e4: d003 beq.n 80161ee <lwip_netconn_do_close_internal+0x12e>
  53746. tcp_sent(tpcb, NULL);
  53747. 80161e6: 2100 movs r1, #0
  53748. 80161e8: 6938 ldr r0, [r7, #16]
  53749. 80161ea: f005 fda3 bl 801bd34 <tcp_sent>
  53750. }
  53751. if (shut_close) {
  53752. 80161ee: 7dbb ldrb r3, [r7, #22]
  53753. 80161f0: 2b00 cmp r3, #0
  53754. 80161f2: d008 beq.n 8016206 <lwip_netconn_do_close_internal+0x146>
  53755. tcp_poll(tpcb, NULL, 0);
  53756. 80161f4: 2200 movs r2, #0
  53757. 80161f6: 2100 movs r1, #0
  53758. 80161f8: 6938 ldr r0, [r7, #16]
  53759. 80161fa: f005 fdfb bl 801bdf4 <tcp_poll>
  53760. tcp_err(tpcb, NULL);
  53761. 80161fe: 2100 movs r1, #0
  53762. 8016200: 6938 ldr r0, [r7, #16]
  53763. 8016202: f005 fdbb bl 801bd7c <tcp_err>
  53764. }
  53765. }
  53766. /* Try to close the connection */
  53767. if (shut_close) {
  53768. 8016206: 7dbb ldrb r3, [r7, #22]
  53769. 8016208: 2b00 cmp r3, #0
  53770. 801620a: d005 beq.n 8016218 <lwip_netconn_do_close_internal+0x158>
  53771. }
  53772. }
  53773. if ((err == ERR_OK) && (tpcb != NULL))
  53774. #endif /* LWIP_SO_LINGER */
  53775. {
  53776. err = tcp_close(tpcb);
  53777. 801620c: 6938 ldr r0, [r7, #16]
  53778. 801620e: f004 fbbf bl 801a990 <tcp_close>
  53779. 8016212: 4603 mov r3, r0
  53780. 8016214: 75fb strb r3, [r7, #23]
  53781. 8016216: e007 b.n 8016228 <lwip_netconn_do_close_internal+0x168>
  53782. }
  53783. } else {
  53784. err = tcp_shutdown(tpcb, shut_rx, shut_tx);
  53785. 8016218: 7bbb ldrb r3, [r7, #14]
  53786. 801621a: 7b7a ldrb r2, [r7, #13]
  53787. 801621c: 4619 mov r1, r3
  53788. 801621e: 6938 ldr r0, [r7, #16]
  53789. 8016220: f004 fbe4 bl 801a9ec <tcp_shutdown>
  53790. 8016224: 4603 mov r3, r0
  53791. 8016226: 75fb strb r3, [r7, #23]
  53792. }
  53793. if (err == ERR_OK) {
  53794. 8016228: f997 3017 ldrsb.w r3, [r7, #23]
  53795. 801622c: 2b00 cmp r3, #0
  53796. 801622e: d102 bne.n 8016236 <lwip_netconn_do_close_internal+0x176>
  53797. close_finished = 1;
  53798. 8016230: 2301 movs r3, #1
  53799. 8016232: 757b strb r3, [r7, #21]
  53800. 8016234: e016 b.n 8016264 <lwip_netconn_do_close_internal+0x1a4>
  53801. close_finished = 0;
  53802. err = ERR_INPROGRESS;
  53803. }
  53804. #endif /* LWIP_SO_LINGER */
  53805. } else {
  53806. if (err == ERR_MEM) {
  53807. 8016236: f997 3017 ldrsb.w r3, [r7, #23]
  53808. 801623a: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  53809. 801623e: d10f bne.n 8016260 <lwip_netconn_do_close_internal+0x1a0>
  53810. close_timeout = conn->linger * 1000U;
  53811. }
  53812. #endif
  53813. if ((s32_t)(sys_now() - conn->current_msg->msg.sd.time_started) >= close_timeout) {
  53814. #else /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */
  53815. if (conn->current_msg->msg.sd.polls_left == 0) {
  53816. 8016240: 687b ldr r3, [r7, #4]
  53817. 8016242: 6adb ldr r3, [r3, #44] @ 0x2c
  53818. 8016244: 7a5b ldrb r3, [r3, #9]
  53819. 8016246: 2b00 cmp r3, #0
  53820. 8016248: d10c bne.n 8016264 <lwip_netconn_do_close_internal+0x1a4>
  53821. #endif /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */
  53822. close_finished = 1;
  53823. 801624a: 2301 movs r3, #1
  53824. 801624c: 757b strb r3, [r7, #21]
  53825. if (shut_close) {
  53826. 801624e: 7dbb ldrb r3, [r7, #22]
  53827. 8016250: 2b00 cmp r3, #0
  53828. 8016252: d007 beq.n 8016264 <lwip_netconn_do_close_internal+0x1a4>
  53829. /* in this case, we want to RST the connection */
  53830. tcp_abort(tpcb);
  53831. 8016254: 6938 ldr r0, [r7, #16]
  53832. 8016256: f004 fce7 bl 801ac28 <tcp_abort>
  53833. err = ERR_OK;
  53834. 801625a: 2300 movs r3, #0
  53835. 801625c: 75fb strb r3, [r7, #23]
  53836. 801625e: e001 b.n 8016264 <lwip_netconn_do_close_internal+0x1a4>
  53837. }
  53838. }
  53839. } else {
  53840. /* Closing failed for a non-memory error: give up */
  53841. close_finished = 1;
  53842. 8016260: 2301 movs r3, #1
  53843. 8016262: 757b strb r3, [r7, #21]
  53844. }
  53845. }
  53846. if (close_finished) {
  53847. 8016264: 7d7b ldrb r3, [r7, #21]
  53848. 8016266: 2b00 cmp r3, #0
  53849. 8016268: d052 beq.n 8016310 <lwip_netconn_do_close_internal+0x250>
  53850. /* Closing done (succeeded, non-memory error, nonblocking error or timeout) */
  53851. sys_sem_t *op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg);
  53852. 801626a: 687b ldr r3, [r7, #4]
  53853. 801626c: 6adb ldr r3, [r3, #44] @ 0x2c
  53854. 801626e: 681b ldr r3, [r3, #0]
  53855. 8016270: 330c adds r3, #12
  53856. 8016272: 60bb str r3, [r7, #8]
  53857. conn->current_msg->err = err;
  53858. 8016274: 687b ldr r3, [r7, #4]
  53859. 8016276: 6adb ldr r3, [r3, #44] @ 0x2c
  53860. 8016278: 7dfa ldrb r2, [r7, #23]
  53861. 801627a: 711a strb r2, [r3, #4]
  53862. conn->current_msg = NULL;
  53863. 801627c: 687b ldr r3, [r7, #4]
  53864. 801627e: 2200 movs r2, #0
  53865. 8016280: 62da str r2, [r3, #44] @ 0x2c
  53866. conn->state = NETCONN_NONE;
  53867. 8016282: 687b ldr r3, [r7, #4]
  53868. 8016284: 2200 movs r2, #0
  53869. 8016286: 705a strb r2, [r3, #1]
  53870. if (err == ERR_OK) {
  53871. 8016288: f997 3017 ldrsb.w r3, [r7, #23]
  53872. 801628c: 2b00 cmp r3, #0
  53873. 801628e: d129 bne.n 80162e4 <lwip_netconn_do_close_internal+0x224>
  53874. if (shut_close) {
  53875. 8016290: 7dbb ldrb r3, [r7, #22]
  53876. 8016292: 2b00 cmp r3, #0
  53877. 8016294: d00c beq.n 80162b0 <lwip_netconn_do_close_internal+0x1f0>
  53878. /* Set back some callback pointers as conn is going away */
  53879. conn->pcb.tcp = NULL;
  53880. 8016296: 687b ldr r3, [r7, #4]
  53881. 8016298: 2200 movs r2, #0
  53882. 801629a: 605a str r2, [r3, #4]
  53883. /* Trigger select() in socket layer. Make sure everybody notices activity
  53884. on the connection, error first! */
  53885. API_EVENT(conn, NETCONN_EVT_ERROR, 0);
  53886. 801629c: 687b ldr r3, [r7, #4]
  53887. 801629e: 6b1b ldr r3, [r3, #48] @ 0x30
  53888. 80162a0: 2b00 cmp r3, #0
  53889. 80162a2: d005 beq.n 80162b0 <lwip_netconn_do_close_internal+0x1f0>
  53890. 80162a4: 687b ldr r3, [r7, #4]
  53891. 80162a6: 6b1b ldr r3, [r3, #48] @ 0x30
  53892. 80162a8: 2200 movs r2, #0
  53893. 80162aa: 2104 movs r1, #4
  53894. 80162ac: 6878 ldr r0, [r7, #4]
  53895. 80162ae: 4798 blx r3
  53896. }
  53897. if (shut_rx) {
  53898. 80162b0: 7bbb ldrb r3, [r7, #14]
  53899. 80162b2: 2b00 cmp r3, #0
  53900. 80162b4: d009 beq.n 80162ca <lwip_netconn_do_close_internal+0x20a>
  53901. API_EVENT(conn, NETCONN_EVT_RCVPLUS, 0);
  53902. 80162b6: 687b ldr r3, [r7, #4]
  53903. 80162b8: 6b1b ldr r3, [r3, #48] @ 0x30
  53904. 80162ba: 2b00 cmp r3, #0
  53905. 80162bc: d005 beq.n 80162ca <lwip_netconn_do_close_internal+0x20a>
  53906. 80162be: 687b ldr r3, [r7, #4]
  53907. 80162c0: 6b1b ldr r3, [r3, #48] @ 0x30
  53908. 80162c2: 2200 movs r2, #0
  53909. 80162c4: 2100 movs r1, #0
  53910. 80162c6: 6878 ldr r0, [r7, #4]
  53911. 80162c8: 4798 blx r3
  53912. }
  53913. if (shut_tx) {
  53914. 80162ca: 7b7b ldrb r3, [r7, #13]
  53915. 80162cc: 2b00 cmp r3, #0
  53916. 80162ce: d009 beq.n 80162e4 <lwip_netconn_do_close_internal+0x224>
  53917. API_EVENT(conn, NETCONN_EVT_SENDPLUS, 0);
  53918. 80162d0: 687b ldr r3, [r7, #4]
  53919. 80162d2: 6b1b ldr r3, [r3, #48] @ 0x30
  53920. 80162d4: 2b00 cmp r3, #0
  53921. 80162d6: d005 beq.n 80162e4 <lwip_netconn_do_close_internal+0x224>
  53922. 80162d8: 687b ldr r3, [r7, #4]
  53923. 80162da: 6b1b ldr r3, [r3, #48] @ 0x30
  53924. 80162dc: 2200 movs r2, #0
  53925. 80162de: 2102 movs r1, #2
  53926. 80162e0: 6878 ldr r0, [r7, #4]
  53927. 80162e2: 4798 blx r3
  53928. }
  53929. }
  53930. #if LWIP_TCPIP_CORE_LOCKING
  53931. if (delayed)
  53932. 80162e4: 78fb ldrb r3, [r7, #3]
  53933. 80162e6: 2b00 cmp r3, #0
  53934. 80162e8: d002 beq.n 80162f0 <lwip_netconn_do_close_internal+0x230>
  53935. #endif
  53936. {
  53937. /* wake up the application task */
  53938. sys_sem_signal(op_completed_sem);
  53939. 80162ea: 68b8 ldr r0, [r7, #8]
  53940. 80162ec: f00f fde2 bl 8025eb4 <sys_sem_signal>
  53941. }
  53942. return ERR_OK;
  53943. 80162f0: 2300 movs r3, #0
  53944. 80162f2: e03c b.n 801636e <lwip_netconn_do_close_internal+0x2ae>
  53945. 80162f4: 0802ca70 .word 0x0802ca70
  53946. 80162f8: 0802cd44 .word 0x0802cd44
  53947. 80162fc: 0802cab4 .word 0x0802cab4
  53948. 8016300: 0802cd54 .word 0x0802cd54
  53949. 8016304: 0802cd74 .word 0x0802cd74
  53950. 8016308: 0802cd98 .word 0x0802cd98
  53951. 801630c: 0802cbd8 .word 0x0802cbd8
  53952. }
  53953. if (!close_finished) {
  53954. 8016310: 7d7b ldrb r3, [r7, #21]
  53955. 8016312: 2b00 cmp r3, #0
  53956. 8016314: d11e bne.n 8016354 <lwip_netconn_do_close_internal+0x294>
  53957. /* Closing failed and we want to wait: restore some of the callbacks */
  53958. /* Closing of listen pcb will never fail! */
  53959. LWIP_ASSERT("Closing a listen pcb may not fail!", (tpcb->state != LISTEN));
  53960. 8016316: 693b ldr r3, [r7, #16]
  53961. 8016318: 7d1b ldrb r3, [r3, #20]
  53962. 801631a: 2b01 cmp r3, #1
  53963. 801631c: d106 bne.n 801632c <lwip_netconn_do_close_internal+0x26c>
  53964. 801631e: 4b16 ldr r3, [pc, #88] @ (8016378 <lwip_netconn_do_close_internal+0x2b8>)
  53965. 8016320: f240 4241 movw r2, #1089 @ 0x441
  53966. 8016324: 4915 ldr r1, [pc, #84] @ (801637c <lwip_netconn_do_close_internal+0x2bc>)
  53967. 8016326: 4816 ldr r0, [pc, #88] @ (8016380 <lwip_netconn_do_close_internal+0x2c0>)
  53968. 8016328: f013 f8f0 bl 802950c <iprintf>
  53969. if (shut_tx) {
  53970. 801632c: 7b7b ldrb r3, [r7, #13]
  53971. 801632e: 2b00 cmp r3, #0
  53972. 8016330: d003 beq.n 801633a <lwip_netconn_do_close_internal+0x27a>
  53973. tcp_sent(tpcb, sent_tcp);
  53974. 8016332: 4914 ldr r1, [pc, #80] @ (8016384 <lwip_netconn_do_close_internal+0x2c4>)
  53975. 8016334: 6938 ldr r0, [r7, #16]
  53976. 8016336: f005 fcfd bl 801bd34 <tcp_sent>
  53977. }
  53978. /* when waiting for close, set up poll interval to 500ms */
  53979. tcp_poll(tpcb, poll_tcp, 1);
  53980. 801633a: 2201 movs r2, #1
  53981. 801633c: 4912 ldr r1, [pc, #72] @ (8016388 <lwip_netconn_do_close_internal+0x2c8>)
  53982. 801633e: 6938 ldr r0, [r7, #16]
  53983. 8016340: f005 fd58 bl 801bdf4 <tcp_poll>
  53984. tcp_err(tpcb, err_tcp);
  53985. 8016344: 4911 ldr r1, [pc, #68] @ (801638c <lwip_netconn_do_close_internal+0x2cc>)
  53986. 8016346: 6938 ldr r0, [r7, #16]
  53987. 8016348: f005 fd18 bl 801bd7c <tcp_err>
  53988. tcp_arg(tpcb, conn);
  53989. 801634c: 6879 ldr r1, [r7, #4]
  53990. 801634e: 6938 ldr r0, [r7, #16]
  53991. 8016350: f005 fcba bl 801bcc8 <tcp_arg>
  53992. /* don't restore recv callback: we don't want to receive any more data */
  53993. }
  53994. /* If closing didn't succeed, we get called again either
  53995. from poll_tcp or from sent_tcp */
  53996. LWIP_ASSERT("err != ERR_OK", err != ERR_OK);
  53997. 8016354: f997 3017 ldrsb.w r3, [r7, #23]
  53998. 8016358: 2b00 cmp r3, #0
  53999. 801635a: d106 bne.n 801636a <lwip_netconn_do_close_internal+0x2aa>
  54000. 801635c: 4b06 ldr r3, [pc, #24] @ (8016378 <lwip_netconn_do_close_internal+0x2b8>)
  54001. 801635e: f240 424d movw r2, #1101 @ 0x44d
  54002. 8016362: 490b ldr r1, [pc, #44] @ (8016390 <lwip_netconn_do_close_internal+0x2d0>)
  54003. 8016364: 4806 ldr r0, [pc, #24] @ (8016380 <lwip_netconn_do_close_internal+0x2c0>)
  54004. 8016366: f013 f8d1 bl 802950c <iprintf>
  54005. return err;
  54006. 801636a: f997 3017 ldrsb.w r3, [r7, #23]
  54007. }
  54008. 801636e: 4618 mov r0, r3
  54009. 8016370: 3718 adds r7, #24
  54010. 8016372: 46bd mov sp, r7
  54011. 8016374: bd80 pop {r7, pc}
  54012. 8016376: bf00 nop
  54013. 8016378: 0802ca70 .word 0x0802ca70
  54014. 801637c: 0802cdac .word 0x0802cdac
  54015. 8016380: 0802cab4 .word 0x0802cab4
  54016. 8016384: 08015a89 .word 0x08015a89
  54017. 8016388: 080159b9 .word 0x080159b9
  54018. 801638c: 08015b39 .word 0x08015b39
  54019. 8016390: 0802cdd0 .word 0x0802cdd0
  54020. 08016394 <lwip_netconn_do_delconn>:
  54021. *
  54022. * @param m the api_msg pointing to the connection
  54023. */
  54024. void
  54025. lwip_netconn_do_delconn(void *m)
  54026. {
  54027. 8016394: b580 push {r7, lr}
  54028. 8016396: b084 sub sp, #16
  54029. 8016398: af00 add r7, sp, #0
  54030. 801639a: 6078 str r0, [r7, #4]
  54031. struct api_msg *msg = (struct api_msg *)m;
  54032. 801639c: 687b ldr r3, [r7, #4]
  54033. 801639e: 60fb str r3, [r7, #12]
  54034. enum netconn_state state = msg->conn->state;
  54035. 80163a0: 68fb ldr r3, [r7, #12]
  54036. 80163a2: 681b ldr r3, [r3, #0]
  54037. 80163a4: 785b ldrb r3, [r3, #1]
  54038. 80163a6: 72fb strb r3, [r7, #11]
  54039. LWIP_ASSERT("netconn state error", /* this only happens for TCP netconns */
  54040. 80163a8: 7afb ldrb r3, [r7, #11]
  54041. 80163aa: 2b00 cmp r3, #0
  54042. 80163ac: d00d beq.n 80163ca <lwip_netconn_do_delconn+0x36>
  54043. 80163ae: 68fb ldr r3, [r7, #12]
  54044. 80163b0: 681b ldr r3, [r3, #0]
  54045. 80163b2: 781b ldrb r3, [r3, #0]
  54046. 80163b4: f003 03f0 and.w r3, r3, #240 @ 0xf0
  54047. 80163b8: 2b10 cmp r3, #16
  54048. 80163ba: d006 beq.n 80163ca <lwip_netconn_do_delconn+0x36>
  54049. 80163bc: 4b60 ldr r3, [pc, #384] @ (8016540 <lwip_netconn_do_delconn+0x1ac>)
  54050. 80163be: f240 425e movw r2, #1118 @ 0x45e
  54051. 80163c2: 4960 ldr r1, [pc, #384] @ (8016544 <lwip_netconn_do_delconn+0x1b0>)
  54052. 80163c4: 4860 ldr r0, [pc, #384] @ (8016548 <lwip_netconn_do_delconn+0x1b4>)
  54053. 80163c6: f013 f8a1 bl 802950c <iprintf>
  54054. msg->conn->state = NETCONN_NONE;
  54055. sys_sem_signal(op_completed_sem);
  54056. }
  54057. }
  54058. #else /* LWIP_NETCONN_FULLDUPLEX */
  54059. if (((state != NETCONN_NONE) &&
  54060. 80163ca: 7afb ldrb r3, [r7, #11]
  54061. 80163cc: 2b00 cmp r3, #0
  54062. 80163ce: d005 beq.n 80163dc <lwip_netconn_do_delconn+0x48>
  54063. 80163d0: 7afb ldrb r3, [r7, #11]
  54064. 80163d2: 2b02 cmp r3, #2
  54065. 80163d4: d002 beq.n 80163dc <lwip_netconn_do_delconn+0x48>
  54066. (state != NETCONN_LISTEN) &&
  54067. 80163d6: 7afb ldrb r3, [r7, #11]
  54068. 80163d8: 2b03 cmp r3, #3
  54069. 80163da: d10a bne.n 80163f2 <lwip_netconn_do_delconn+0x5e>
  54070. (state != NETCONN_CONNECT)) ||
  54071. 80163dc: 7afb ldrb r3, [r7, #11]
  54072. 80163de: 2b03 cmp r3, #3
  54073. 80163e0: d10b bne.n 80163fa <lwip_netconn_do_delconn+0x66>
  54074. ((state == NETCONN_CONNECT) && !IN_NONBLOCKING_CONNECT(msg->conn))) {
  54075. 80163e2: 68fb ldr r3, [r7, #12]
  54076. 80163e4: 681b ldr r3, [r3, #0]
  54077. 80163e6: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  54078. 80163ea: f003 0304 and.w r3, r3, #4
  54079. 80163ee: 2b00 cmp r3, #0
  54080. 80163f0: d103 bne.n 80163fa <lwip_netconn_do_delconn+0x66>
  54081. /* This means either a blocking write or blocking connect is running
  54082. (nonblocking write returns and sets state to NONE) */
  54083. msg->err = ERR_INPROGRESS;
  54084. 80163f2: 68fb ldr r3, [r7, #12]
  54085. 80163f4: 22fb movs r2, #251 @ 0xfb
  54086. 80163f6: 711a strb r2, [r3, #4]
  54087. 80163f8: e096 b.n 8016528 <lwip_netconn_do_delconn+0x194>
  54088. } else
  54089. #endif /* LWIP_NETCONN_FULLDUPLEX */
  54090. {
  54091. LWIP_ASSERT("blocking connect in progress",
  54092. 80163fa: 7afb ldrb r3, [r7, #11]
  54093. 80163fc: 2b03 cmp r3, #3
  54094. 80163fe: d10e bne.n 801641e <lwip_netconn_do_delconn+0x8a>
  54095. 8016400: 68fb ldr r3, [r7, #12]
  54096. 8016402: 681b ldr r3, [r3, #0]
  54097. 8016404: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  54098. 8016408: f003 0304 and.w r3, r3, #4
  54099. 801640c: 2b00 cmp r3, #0
  54100. 801640e: d106 bne.n 801641e <lwip_netconn_do_delconn+0x8a>
  54101. 8016410: 4b4b ldr r3, [pc, #300] @ (8016540 <lwip_netconn_do_delconn+0x1ac>)
  54102. 8016412: f240 427a movw r2, #1146 @ 0x47a
  54103. 8016416: 494d ldr r1, [pc, #308] @ (801654c <lwip_netconn_do_delconn+0x1b8>)
  54104. 8016418: 484b ldr r0, [pc, #300] @ (8016548 <lwip_netconn_do_delconn+0x1b4>)
  54105. 801641a: f013 f877 bl 802950c <iprintf>
  54106. (state != NETCONN_CONNECT) || IN_NONBLOCKING_CONNECT(msg->conn));
  54107. msg->err = ERR_OK;
  54108. 801641e: 68fb ldr r3, [r7, #12]
  54109. 8016420: 2200 movs r2, #0
  54110. 8016422: 711a strb r2, [r3, #4]
  54111. #if LWIP_NETCONN_FULLDUPLEX
  54112. /* Mark mboxes invalid */
  54113. netconn_mark_mbox_invalid(msg->conn);
  54114. #else /* LWIP_NETCONN_FULLDUPLEX */
  54115. netconn_drain(msg->conn);
  54116. 8016424: 68fb ldr r3, [r7, #12]
  54117. 8016426: 681b ldr r3, [r3, #0]
  54118. 8016428: 4618 mov r0, r3
  54119. 801642a: f7ff fdcb bl 8015fc4 <netconn_drain>
  54120. #endif /* LWIP_NETCONN_FULLDUPLEX */
  54121. if (msg->conn->pcb.tcp != NULL) {
  54122. 801642e: 68fb ldr r3, [r7, #12]
  54123. 8016430: 681b ldr r3, [r3, #0]
  54124. 8016432: 685b ldr r3, [r3, #4]
  54125. 8016434: 2b00 cmp r3, #0
  54126. 8016436: d05d beq.n 80164f4 <lwip_netconn_do_delconn+0x160>
  54127. switch (NETCONNTYPE_GROUP(msg->conn->type)) {
  54128. 8016438: 68fb ldr r3, [r7, #12]
  54129. 801643a: 681b ldr r3, [r3, #0]
  54130. 801643c: 781b ldrb r3, [r3, #0]
  54131. 801643e: f003 03f0 and.w r3, r3, #240 @ 0xf0
  54132. 8016442: 2b10 cmp r3, #16
  54133. 8016444: d00d beq.n 8016462 <lwip_netconn_do_delconn+0xce>
  54134. 8016446: 2b20 cmp r3, #32
  54135. 8016448: d14f bne.n 80164ea <lwip_netconn_do_delconn+0x156>
  54136. raw_remove(msg->conn->pcb.raw);
  54137. break;
  54138. #endif /* LWIP_RAW */
  54139. #if LWIP_UDP
  54140. case NETCONN_UDP:
  54141. msg->conn->pcb.udp->recv_arg = NULL;
  54142. 801644a: 68fb ldr r3, [r7, #12]
  54143. 801644c: 681b ldr r3, [r3, #0]
  54144. 801644e: 685b ldr r3, [r3, #4]
  54145. 8016450: 2200 movs r2, #0
  54146. 8016452: 61da str r2, [r3, #28]
  54147. udp_remove(msg->conn->pcb.udp);
  54148. 8016454: 68fb ldr r3, [r7, #12]
  54149. 8016456: 681b ldr r3, [r3, #0]
  54150. 8016458: 685b ldr r3, [r3, #4]
  54151. 801645a: 4618 mov r0, r3
  54152. 801645c: f00a ffc6 bl 80213ec <udp_remove>
  54153. break;
  54154. 8016460: e044 b.n 80164ec <lwip_netconn_do_delconn+0x158>
  54155. #endif /* LWIP_UDP */
  54156. #if LWIP_TCP
  54157. case NETCONN_TCP:
  54158. LWIP_ASSERT("already writing or closing", msg->conn->current_msg == NULL);
  54159. 8016462: 68fb ldr r3, [r7, #12]
  54160. 8016464: 681b ldr r3, [r3, #0]
  54161. 8016466: 6adb ldr r3, [r3, #44] @ 0x2c
  54162. 8016468: 2b00 cmp r3, #0
  54163. 801646a: d006 beq.n 801647a <lwip_netconn_do_delconn+0xe6>
  54164. 801646c: 4b34 ldr r3, [pc, #208] @ (8016540 <lwip_netconn_do_delconn+0x1ac>)
  54165. 801646e: f240 4294 movw r2, #1172 @ 0x494
  54166. 8016472: 4937 ldr r1, [pc, #220] @ (8016550 <lwip_netconn_do_delconn+0x1bc>)
  54167. 8016474: 4834 ldr r0, [pc, #208] @ (8016548 <lwip_netconn_do_delconn+0x1b4>)
  54168. 8016476: f013 f849 bl 802950c <iprintf>
  54169. msg->conn->state = NETCONN_CLOSE;
  54170. 801647a: 68fb ldr r3, [r7, #12]
  54171. 801647c: 681b ldr r3, [r3, #0]
  54172. 801647e: 2204 movs r2, #4
  54173. 8016480: 705a strb r2, [r3, #1]
  54174. msg->msg.sd.shut = NETCONN_SHUT_RDWR;
  54175. 8016482: 68fb ldr r3, [r7, #12]
  54176. 8016484: 2203 movs r2, #3
  54177. 8016486: 721a strb r2, [r3, #8]
  54178. msg->conn->current_msg = msg;
  54179. 8016488: 68fb ldr r3, [r7, #12]
  54180. 801648a: 681b ldr r3, [r3, #0]
  54181. 801648c: 68fa ldr r2, [r7, #12]
  54182. 801648e: 62da str r2, [r3, #44] @ 0x2c
  54183. #if LWIP_TCPIP_CORE_LOCKING
  54184. if (lwip_netconn_do_close_internal(msg->conn, 0) != ERR_OK) {
  54185. 8016490: 68fb ldr r3, [r7, #12]
  54186. 8016492: 681b ldr r3, [r3, #0]
  54187. 8016494: 2100 movs r1, #0
  54188. 8016496: 4618 mov r0, r3
  54189. 8016498: f7ff fe12 bl 80160c0 <lwip_netconn_do_close_internal>
  54190. 801649c: 4603 mov r3, r0
  54191. 801649e: 2b00 cmp r3, #0
  54192. 80164a0: d049 beq.n 8016536 <lwip_netconn_do_delconn+0x1a2>
  54193. LWIP_ASSERT("state!", msg->conn->state == NETCONN_CLOSE);
  54194. 80164a2: 68fb ldr r3, [r7, #12]
  54195. 80164a4: 681b ldr r3, [r3, #0]
  54196. 80164a6: 785b ldrb r3, [r3, #1]
  54197. 80164a8: 2b04 cmp r3, #4
  54198. 80164aa: d006 beq.n 80164ba <lwip_netconn_do_delconn+0x126>
  54199. 80164ac: 4b24 ldr r3, [pc, #144] @ (8016540 <lwip_netconn_do_delconn+0x1ac>)
  54200. 80164ae: f240 429a movw r2, #1178 @ 0x49a
  54201. 80164b2: 4928 ldr r1, [pc, #160] @ (8016554 <lwip_netconn_do_delconn+0x1c0>)
  54202. 80164b4: 4824 ldr r0, [pc, #144] @ (8016548 <lwip_netconn_do_delconn+0x1b4>)
  54203. 80164b6: f013 f829 bl 802950c <iprintf>
  54204. UNLOCK_TCPIP_CORE();
  54205. 80164ba: f7f9 fdcb bl 8010054 <sys_unlock_tcpip_core>
  54206. sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0);
  54207. 80164be: 68fb ldr r3, [r7, #12]
  54208. 80164c0: 681b ldr r3, [r3, #0]
  54209. 80164c2: 330c adds r3, #12
  54210. 80164c4: 2100 movs r1, #0
  54211. 80164c6: 4618 mov r0, r3
  54212. 80164c8: f00f fcc3 bl 8025e52 <sys_arch_sem_wait>
  54213. LOCK_TCPIP_CORE();
  54214. 80164cc: f7f9 fdb2 bl 8010034 <sys_lock_tcpip_core>
  54215. LWIP_ASSERT("state!", msg->conn->state == NETCONN_NONE);
  54216. 80164d0: 68fb ldr r3, [r7, #12]
  54217. 80164d2: 681b ldr r3, [r3, #0]
  54218. 80164d4: 785b ldrb r3, [r3, #1]
  54219. 80164d6: 2b00 cmp r3, #0
  54220. 80164d8: d02d beq.n 8016536 <lwip_netconn_do_delconn+0x1a2>
  54221. 80164da: 4b19 ldr r3, [pc, #100] @ (8016540 <lwip_netconn_do_delconn+0x1ac>)
  54222. 80164dc: f240 429e movw r2, #1182 @ 0x49e
  54223. 80164e0: 491c ldr r1, [pc, #112] @ (8016554 <lwip_netconn_do_delconn+0x1c0>)
  54224. 80164e2: 4819 ldr r0, [pc, #100] @ (8016548 <lwip_netconn_do_delconn+0x1b4>)
  54225. 80164e4: f013 f812 bl 802950c <iprintf>
  54226. #else /* LWIP_TCPIP_CORE_LOCKING */
  54227. lwip_netconn_do_close_internal(msg->conn);
  54228. #endif /* LWIP_TCPIP_CORE_LOCKING */
  54229. /* API_EVENT is called inside lwip_netconn_do_close_internal, before releasing
  54230. the application thread, so we can return at this point! */
  54231. return;
  54232. 80164e8: e025 b.n 8016536 <lwip_netconn_do_delconn+0x1a2>
  54233. #endif /* LWIP_TCP */
  54234. default:
  54235. break;
  54236. 80164ea: bf00 nop
  54237. }
  54238. msg->conn->pcb.tcp = NULL;
  54239. 80164ec: 68fb ldr r3, [r7, #12]
  54240. 80164ee: 681b ldr r3, [r3, #0]
  54241. 80164f0: 2200 movs r2, #0
  54242. 80164f2: 605a str r2, [r3, #4]
  54243. }
  54244. /* tcp netconns don't come here! */
  54245. /* @todo: this lets select make the socket readable and writable,
  54246. which is wrong! errfd instead? */
  54247. API_EVENT(msg->conn, NETCONN_EVT_RCVPLUS, 0);
  54248. 80164f4: 68fb ldr r3, [r7, #12]
  54249. 80164f6: 681b ldr r3, [r3, #0]
  54250. 80164f8: 6b1b ldr r3, [r3, #48] @ 0x30
  54251. 80164fa: 2b00 cmp r3, #0
  54252. 80164fc: d007 beq.n 801650e <lwip_netconn_do_delconn+0x17a>
  54253. 80164fe: 68fb ldr r3, [r7, #12]
  54254. 8016500: 681b ldr r3, [r3, #0]
  54255. 8016502: 6b1b ldr r3, [r3, #48] @ 0x30
  54256. 8016504: 68fa ldr r2, [r7, #12]
  54257. 8016506: 6810 ldr r0, [r2, #0]
  54258. 8016508: 2200 movs r2, #0
  54259. 801650a: 2100 movs r1, #0
  54260. 801650c: 4798 blx r3
  54261. API_EVENT(msg->conn, NETCONN_EVT_SENDPLUS, 0);
  54262. 801650e: 68fb ldr r3, [r7, #12]
  54263. 8016510: 681b ldr r3, [r3, #0]
  54264. 8016512: 6b1b ldr r3, [r3, #48] @ 0x30
  54265. 8016514: 2b00 cmp r3, #0
  54266. 8016516: d007 beq.n 8016528 <lwip_netconn_do_delconn+0x194>
  54267. 8016518: 68fb ldr r3, [r7, #12]
  54268. 801651a: 681b ldr r3, [r3, #0]
  54269. 801651c: 6b1b ldr r3, [r3, #48] @ 0x30
  54270. 801651e: 68fa ldr r2, [r7, #12]
  54271. 8016520: 6810 ldr r0, [r2, #0]
  54272. 8016522: 2200 movs r2, #0
  54273. 8016524: 2102 movs r1, #2
  54274. 8016526: 4798 blx r3
  54275. }
  54276. if (sys_sem_valid(LWIP_API_MSG_SEM(msg))) {
  54277. 8016528: 68fb ldr r3, [r7, #12]
  54278. 801652a: 681b ldr r3, [r3, #0]
  54279. 801652c: 330c adds r3, #12
  54280. 801652e: 4618 mov r0, r3
  54281. 8016530: f00f fcda bl 8025ee8 <sys_sem_valid>
  54282. 8016534: e000 b.n 8016538 <lwip_netconn_do_delconn+0x1a4>
  54283. return;
  54284. 8016536: bf00 nop
  54285. TCPIP_APIMSG_ACK(msg);
  54286. }
  54287. }
  54288. 8016538: 3710 adds r7, #16
  54289. 801653a: 46bd mov sp, r7
  54290. 801653c: bd80 pop {r7, pc}
  54291. 801653e: bf00 nop
  54292. 8016540: 0802ca70 .word 0x0802ca70
  54293. 8016544: 0802cde0 .word 0x0802cde0
  54294. 8016548: 0802cab4 .word 0x0802cab4
  54295. 801654c: 0802cdf4 .word 0x0802cdf4
  54296. 8016550: 0802ce14 .word 0x0802ce14
  54297. 8016554: 0802ce30 .word 0x0802ce30
  54298. 08016558 <lwip_netconn_do_connected>:
  54299. *
  54300. * @see tcp.h (struct tcp_pcb.connected) for parameters and return values
  54301. */
  54302. static err_t
  54303. lwip_netconn_do_connected(void *arg, struct tcp_pcb *pcb, err_t err)
  54304. {
  54305. 8016558: b580 push {r7, lr}
  54306. 801655a: b088 sub sp, #32
  54307. 801655c: af00 add r7, sp, #0
  54308. 801655e: 60f8 str r0, [r7, #12]
  54309. 8016560: 60b9 str r1, [r7, #8]
  54310. 8016562: 4613 mov r3, r2
  54311. 8016564: 71fb strb r3, [r7, #7]
  54312. struct netconn *conn;
  54313. int was_blocking;
  54314. sys_sem_t *op_completed_sem = NULL;
  54315. 8016566: 2300 movs r3, #0
  54316. 8016568: 61fb str r3, [r7, #28]
  54317. LWIP_UNUSED_ARG(pcb);
  54318. conn = (struct netconn *)arg;
  54319. 801656a: 68fb ldr r3, [r7, #12]
  54320. 801656c: 61bb str r3, [r7, #24]
  54321. if (conn == NULL) {
  54322. 801656e: 69bb ldr r3, [r7, #24]
  54323. 8016570: 2b00 cmp r3, #0
  54324. 8016572: d102 bne.n 801657a <lwip_netconn_do_connected+0x22>
  54325. return ERR_VAL;
  54326. 8016574: f06f 0305 mvn.w r3, #5
  54327. 8016578: e074 b.n 8016664 <lwip_netconn_do_connected+0x10c>
  54328. }
  54329. LWIP_ASSERT("conn->state == NETCONN_CONNECT", conn->state == NETCONN_CONNECT);
  54330. 801657a: 69bb ldr r3, [r7, #24]
  54331. 801657c: 785b ldrb r3, [r3, #1]
  54332. 801657e: 2b03 cmp r3, #3
  54333. 8016580: d006 beq.n 8016590 <lwip_netconn_do_connected+0x38>
  54334. 8016582: 4b3a ldr r3, [pc, #232] @ (801666c <lwip_netconn_do_connected+0x114>)
  54335. 8016584: f240 5223 movw r2, #1315 @ 0x523
  54336. 8016588: 4939 ldr r1, [pc, #228] @ (8016670 <lwip_netconn_do_connected+0x118>)
  54337. 801658a: 483a ldr r0, [pc, #232] @ (8016674 <lwip_netconn_do_connected+0x11c>)
  54338. 801658c: f012 ffbe bl 802950c <iprintf>
  54339. LWIP_ASSERT("(conn->current_msg != NULL) || conn->in_non_blocking_connect",
  54340. 8016590: 69bb ldr r3, [r7, #24]
  54341. 8016592: 6adb ldr r3, [r3, #44] @ 0x2c
  54342. 8016594: 2b00 cmp r3, #0
  54343. 8016596: d10d bne.n 80165b4 <lwip_netconn_do_connected+0x5c>
  54344. 8016598: 69bb ldr r3, [r7, #24]
  54345. 801659a: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  54346. 801659e: f003 0304 and.w r3, r3, #4
  54347. 80165a2: 2b00 cmp r3, #0
  54348. 80165a4: d106 bne.n 80165b4 <lwip_netconn_do_connected+0x5c>
  54349. 80165a6: 4b31 ldr r3, [pc, #196] @ (801666c <lwip_netconn_do_connected+0x114>)
  54350. 80165a8: f240 5224 movw r2, #1316 @ 0x524
  54351. 80165ac: 4932 ldr r1, [pc, #200] @ (8016678 <lwip_netconn_do_connected+0x120>)
  54352. 80165ae: 4831 ldr r0, [pc, #196] @ (8016674 <lwip_netconn_do_connected+0x11c>)
  54353. 80165b0: f012 ffac bl 802950c <iprintf>
  54354. (conn->current_msg != NULL) || IN_NONBLOCKING_CONNECT(conn));
  54355. if (conn->current_msg != NULL) {
  54356. 80165b4: 69bb ldr r3, [r7, #24]
  54357. 80165b6: 6adb ldr r3, [r3, #44] @ 0x2c
  54358. 80165b8: 2b00 cmp r3, #0
  54359. 80165ba: d008 beq.n 80165ce <lwip_netconn_do_connected+0x76>
  54360. conn->current_msg->err = err;
  54361. 80165bc: 69bb ldr r3, [r7, #24]
  54362. 80165be: 6adb ldr r3, [r3, #44] @ 0x2c
  54363. 80165c0: 79fa ldrb r2, [r7, #7]
  54364. 80165c2: 711a strb r2, [r3, #4]
  54365. op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg);
  54366. 80165c4: 69bb ldr r3, [r7, #24]
  54367. 80165c6: 6adb ldr r3, [r3, #44] @ 0x2c
  54368. 80165c8: 681b ldr r3, [r3, #0]
  54369. 80165ca: 330c adds r3, #12
  54370. 80165cc: 61fb str r3, [r7, #28]
  54371. }
  54372. if ((NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP) && (err == ERR_OK)) {
  54373. 80165ce: 69bb ldr r3, [r7, #24]
  54374. 80165d0: 781b ldrb r3, [r3, #0]
  54375. 80165d2: f003 03f0 and.w r3, r3, #240 @ 0xf0
  54376. 80165d6: 2b10 cmp r3, #16
  54377. 80165d8: d106 bne.n 80165e8 <lwip_netconn_do_connected+0x90>
  54378. 80165da: f997 3007 ldrsb.w r3, [r7, #7]
  54379. 80165de: 2b00 cmp r3, #0
  54380. 80165e0: d102 bne.n 80165e8 <lwip_netconn_do_connected+0x90>
  54381. setup_tcp(conn);
  54382. 80165e2: 69b8 ldr r0, [r7, #24]
  54383. 80165e4: f7ff fb82 bl 8015cec <setup_tcp>
  54384. }
  54385. was_blocking = !IN_NONBLOCKING_CONNECT(conn);
  54386. 80165e8: 69bb ldr r3, [r7, #24]
  54387. 80165ea: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  54388. 80165ee: f003 0304 and.w r3, r3, #4
  54389. 80165f2: 2b00 cmp r3, #0
  54390. 80165f4: bf0c ite eq
  54391. 80165f6: 2301 moveq r3, #1
  54392. 80165f8: 2300 movne r3, #0
  54393. 80165fa: b2db uxtb r3, r3
  54394. 80165fc: 617b str r3, [r7, #20]
  54395. SET_NONBLOCKING_CONNECT(conn, 0);
  54396. 80165fe: 69bb ldr r3, [r7, #24]
  54397. 8016600: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  54398. 8016604: f023 0304 bic.w r3, r3, #4
  54399. 8016608: b2da uxtb r2, r3
  54400. 801660a: 69bb ldr r3, [r7, #24]
  54401. 801660c: f883 2028 strb.w r2, [r3, #40] @ 0x28
  54402. LWIP_ASSERT("blocking connect state error",
  54403. 8016610: 697b ldr r3, [r7, #20]
  54404. 8016612: 2b00 cmp r3, #0
  54405. 8016614: d002 beq.n 801661c <lwip_netconn_do_connected+0xc4>
  54406. 8016616: 69fb ldr r3, [r7, #28]
  54407. 8016618: 2b00 cmp r3, #0
  54408. 801661a: d10c bne.n 8016636 <lwip_netconn_do_connected+0xde>
  54409. 801661c: 697b ldr r3, [r7, #20]
  54410. 801661e: 2b00 cmp r3, #0
  54411. 8016620: d102 bne.n 8016628 <lwip_netconn_do_connected+0xd0>
  54412. 8016622: 69fb ldr r3, [r7, #28]
  54413. 8016624: 2b00 cmp r3, #0
  54414. 8016626: d006 beq.n 8016636 <lwip_netconn_do_connected+0xde>
  54415. 8016628: 4b10 ldr r3, [pc, #64] @ (801666c <lwip_netconn_do_connected+0x114>)
  54416. 801662a: f44f 62a6 mov.w r2, #1328 @ 0x530
  54417. 801662e: 4913 ldr r1, [pc, #76] @ (801667c <lwip_netconn_do_connected+0x124>)
  54418. 8016630: 4810 ldr r0, [pc, #64] @ (8016674 <lwip_netconn_do_connected+0x11c>)
  54419. 8016632: f012 ff6b bl 802950c <iprintf>
  54420. (was_blocking && op_completed_sem != NULL) ||
  54421. (!was_blocking && op_completed_sem == NULL));
  54422. conn->current_msg = NULL;
  54423. 8016636: 69bb ldr r3, [r7, #24]
  54424. 8016638: 2200 movs r2, #0
  54425. 801663a: 62da str r2, [r3, #44] @ 0x2c
  54426. conn->state = NETCONN_NONE;
  54427. 801663c: 69bb ldr r3, [r7, #24]
  54428. 801663e: 2200 movs r2, #0
  54429. 8016640: 705a strb r2, [r3, #1]
  54430. API_EVENT(conn, NETCONN_EVT_SENDPLUS, 0);
  54431. 8016642: 69bb ldr r3, [r7, #24]
  54432. 8016644: 6b1b ldr r3, [r3, #48] @ 0x30
  54433. 8016646: 2b00 cmp r3, #0
  54434. 8016648: d005 beq.n 8016656 <lwip_netconn_do_connected+0xfe>
  54435. 801664a: 69bb ldr r3, [r7, #24]
  54436. 801664c: 6b1b ldr r3, [r3, #48] @ 0x30
  54437. 801664e: 2200 movs r2, #0
  54438. 8016650: 2102 movs r1, #2
  54439. 8016652: 69b8 ldr r0, [r7, #24]
  54440. 8016654: 4798 blx r3
  54441. if (was_blocking) {
  54442. 8016656: 697b ldr r3, [r7, #20]
  54443. 8016658: 2b00 cmp r3, #0
  54444. 801665a: d002 beq.n 8016662 <lwip_netconn_do_connected+0x10a>
  54445. sys_sem_signal(op_completed_sem);
  54446. 801665c: 69f8 ldr r0, [r7, #28]
  54447. 801665e: f00f fc29 bl 8025eb4 <sys_sem_signal>
  54448. }
  54449. return ERR_OK;
  54450. 8016662: 2300 movs r3, #0
  54451. }
  54452. 8016664: 4618 mov r0, r3
  54453. 8016666: 3720 adds r7, #32
  54454. 8016668: 46bd mov sp, r7
  54455. 801666a: bd80 pop {r7, pc}
  54456. 801666c: 0802ca70 .word 0x0802ca70
  54457. 8016670: 0802ce38 .word 0x0802ce38
  54458. 8016674: 0802cab4 .word 0x0802cab4
  54459. 8016678: 0802ce58 .word 0x0802ce58
  54460. 801667c: 0802ce98 .word 0x0802ce98
  54461. 08016680 <lwip_netconn_do_connect>:
  54462. * @param m the api_msg pointing to the connection and containing
  54463. * the IP address and port to connect to
  54464. */
  54465. void
  54466. lwip_netconn_do_connect(void *m)
  54467. {
  54468. 8016680: b580 push {r7, lr}
  54469. 8016682: b086 sub sp, #24
  54470. 8016684: af00 add r7, sp, #0
  54471. 8016686: 6078 str r0, [r7, #4]
  54472. struct api_msg *msg = (struct api_msg *)m;
  54473. 8016688: 687b ldr r3, [r7, #4]
  54474. 801668a: 613b str r3, [r7, #16]
  54475. err_t err;
  54476. if (msg->conn->pcb.tcp == NULL) {
  54477. 801668c: 693b ldr r3, [r7, #16]
  54478. 801668e: 681b ldr r3, [r3, #0]
  54479. 8016690: 685b ldr r3, [r3, #4]
  54480. 8016692: 2b00 cmp r3, #0
  54481. 8016694: d102 bne.n 801669c <lwip_netconn_do_connect+0x1c>
  54482. /* This may happen when calling netconn_connect() a second time */
  54483. err = ERR_CLSD;
  54484. 8016696: 23f1 movs r3, #241 @ 0xf1
  54485. 8016698: 75fb strb r3, [r7, #23]
  54486. 801669a: e09e b.n 80167da <lwip_netconn_do_connect+0x15a>
  54487. } else {
  54488. switch (NETCONNTYPE_GROUP(msg->conn->type)) {
  54489. 801669c: 693b ldr r3, [r7, #16]
  54490. 801669e: 681b ldr r3, [r3, #0]
  54491. 80166a0: 781b ldrb r3, [r3, #0]
  54492. 80166a2: f003 03f0 and.w r3, r3, #240 @ 0xf0
  54493. 80166a6: 2b10 cmp r3, #16
  54494. 80166a8: d00f beq.n 80166ca <lwip_netconn_do_connect+0x4a>
  54495. 80166aa: 2b20 cmp r3, #32
  54496. 80166ac: f040 808a bne.w 80167c4 <lwip_netconn_do_connect+0x144>
  54497. err = raw_connect(msg->conn->pcb.raw, API_EXPR_REF(msg->msg.bc.ipaddr));
  54498. break;
  54499. #endif /* LWIP_RAW */
  54500. #if LWIP_UDP
  54501. case NETCONN_UDP:
  54502. err = udp_connect(msg->conn->pcb.udp, API_EXPR_REF(msg->msg.bc.ipaddr), msg->msg.bc.port);
  54503. 80166b0: 693b ldr r3, [r7, #16]
  54504. 80166b2: 681b ldr r3, [r3, #0]
  54505. 80166b4: 6858 ldr r0, [r3, #4]
  54506. 80166b6: 693b ldr r3, [r7, #16]
  54507. 80166b8: 6899 ldr r1, [r3, #8]
  54508. 80166ba: 693b ldr r3, [r7, #16]
  54509. 80166bc: 899b ldrh r3, [r3, #12]
  54510. 80166be: 461a mov r2, r3
  54511. 80166c0: f00a fdd8 bl 8021274 <udp_connect>
  54512. 80166c4: 4603 mov r3, r0
  54513. 80166c6: 75fb strb r3, [r7, #23]
  54514. break;
  54515. 80166c8: e087 b.n 80167da <lwip_netconn_do_connect+0x15a>
  54516. #endif /* LWIP_UDP */
  54517. #if LWIP_TCP
  54518. case NETCONN_TCP:
  54519. /* Prevent connect while doing any other action. */
  54520. if (msg->conn->state == NETCONN_CONNECT) {
  54521. 80166ca: 693b ldr r3, [r7, #16]
  54522. 80166cc: 681b ldr r3, [r3, #0]
  54523. 80166ce: 785b ldrb r3, [r3, #1]
  54524. 80166d0: 2b03 cmp r3, #3
  54525. 80166d2: d102 bne.n 80166da <lwip_netconn_do_connect+0x5a>
  54526. err = ERR_ALREADY;
  54527. 80166d4: 23f7 movs r3, #247 @ 0xf7
  54528. 80166d6: 75fb strb r3, [r7, #23]
  54529. #endif /* LWIP_TCPIP_CORE_LOCKING */
  54530. return;
  54531. }
  54532. }
  54533. }
  54534. break;
  54535. 80166d8: e07e b.n 80167d8 <lwip_netconn_do_connect+0x158>
  54536. } else if (msg->conn->state != NETCONN_NONE) {
  54537. 80166da: 693b ldr r3, [r7, #16]
  54538. 80166dc: 681b ldr r3, [r3, #0]
  54539. 80166de: 785b ldrb r3, [r3, #1]
  54540. 80166e0: 2b00 cmp r3, #0
  54541. 80166e2: d002 beq.n 80166ea <lwip_netconn_do_connect+0x6a>
  54542. err = ERR_ISCONN;
  54543. 80166e4: 23f6 movs r3, #246 @ 0xf6
  54544. 80166e6: 75fb strb r3, [r7, #23]
  54545. break;
  54546. 80166e8: e076 b.n 80167d8 <lwip_netconn_do_connect+0x158>
  54547. setup_tcp(msg->conn);
  54548. 80166ea: 693b ldr r3, [r7, #16]
  54549. 80166ec: 681b ldr r3, [r3, #0]
  54550. 80166ee: 4618 mov r0, r3
  54551. 80166f0: f7ff fafc bl 8015cec <setup_tcp>
  54552. err = tcp_connect(msg->conn->pcb.tcp, API_EXPR_REF(msg->msg.bc.ipaddr),
  54553. 80166f4: 693b ldr r3, [r7, #16]
  54554. 80166f6: 681b ldr r3, [r3, #0]
  54555. 80166f8: 6858 ldr r0, [r3, #4]
  54556. 80166fa: 693b ldr r3, [r7, #16]
  54557. 80166fc: 6899 ldr r1, [r3, #8]
  54558. 80166fe: 693b ldr r3, [r7, #16]
  54559. 8016700: 899a ldrh r2, [r3, #12]
  54560. 8016702: 4b3a ldr r3, [pc, #232] @ (80167ec <lwip_netconn_do_connect+0x16c>)
  54561. 8016704: f004 fb90 bl 801ae28 <tcp_connect>
  54562. 8016708: 4603 mov r3, r0
  54563. 801670a: 75fb strb r3, [r7, #23]
  54564. if (err == ERR_OK) {
  54565. 801670c: f997 3017 ldrsb.w r3, [r7, #23]
  54566. 8016710: 2b00 cmp r3, #0
  54567. 8016712: d161 bne.n 80167d8 <lwip_netconn_do_connect+0x158>
  54568. u8_t non_blocking = netconn_is_nonblocking(msg->conn);
  54569. 8016714: 693b ldr r3, [r7, #16]
  54570. 8016716: 681b ldr r3, [r3, #0]
  54571. 8016718: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  54572. 801671c: f003 0302 and.w r3, r3, #2
  54573. 8016720: 2b00 cmp r3, #0
  54574. 8016722: bf14 ite ne
  54575. 8016724: 2301 movne r3, #1
  54576. 8016726: 2300 moveq r3, #0
  54577. 8016728: b2db uxtb r3, r3
  54578. 801672a: 73fb strb r3, [r7, #15]
  54579. msg->conn->state = NETCONN_CONNECT;
  54580. 801672c: 693b ldr r3, [r7, #16]
  54581. 801672e: 681b ldr r3, [r3, #0]
  54582. 8016730: 2203 movs r2, #3
  54583. 8016732: 705a strb r2, [r3, #1]
  54584. SET_NONBLOCKING_CONNECT(msg->conn, non_blocking);
  54585. 8016734: 7bfb ldrb r3, [r7, #15]
  54586. 8016736: 2b00 cmp r3, #0
  54587. 8016738: d00b beq.n 8016752 <lwip_netconn_do_connect+0xd2>
  54588. 801673a: 693b ldr r3, [r7, #16]
  54589. 801673c: 681b ldr r3, [r3, #0]
  54590. 801673e: f893 2028 ldrb.w r2, [r3, #40] @ 0x28
  54591. 8016742: 693b ldr r3, [r7, #16]
  54592. 8016744: 681b ldr r3, [r3, #0]
  54593. 8016746: f042 0204 orr.w r2, r2, #4
  54594. 801674a: b2d2 uxtb r2, r2
  54595. 801674c: f883 2028 strb.w r2, [r3, #40] @ 0x28
  54596. 8016750: e00a b.n 8016768 <lwip_netconn_do_connect+0xe8>
  54597. 8016752: 693b ldr r3, [r7, #16]
  54598. 8016754: 681b ldr r3, [r3, #0]
  54599. 8016756: f893 2028 ldrb.w r2, [r3, #40] @ 0x28
  54600. 801675a: 693b ldr r3, [r7, #16]
  54601. 801675c: 681b ldr r3, [r3, #0]
  54602. 801675e: f022 0204 bic.w r2, r2, #4
  54603. 8016762: b2d2 uxtb r2, r2
  54604. 8016764: f883 2028 strb.w r2, [r3, #40] @ 0x28
  54605. if (non_blocking) {
  54606. 8016768: 7bfb ldrb r3, [r7, #15]
  54607. 801676a: 2b00 cmp r3, #0
  54608. 801676c: d002 beq.n 8016774 <lwip_netconn_do_connect+0xf4>
  54609. err = ERR_INPROGRESS;
  54610. 801676e: 23fb movs r3, #251 @ 0xfb
  54611. 8016770: 75fb strb r3, [r7, #23]
  54612. break;
  54613. 8016772: e031 b.n 80167d8 <lwip_netconn_do_connect+0x158>
  54614. msg->conn->current_msg = msg;
  54615. 8016774: 693b ldr r3, [r7, #16]
  54616. 8016776: 681b ldr r3, [r3, #0]
  54617. 8016778: 693a ldr r2, [r7, #16]
  54618. 801677a: 62da str r2, [r3, #44] @ 0x2c
  54619. LWIP_ASSERT("state!", msg->conn->state == NETCONN_CONNECT);
  54620. 801677c: 693b ldr r3, [r7, #16]
  54621. 801677e: 681b ldr r3, [r3, #0]
  54622. 8016780: 785b ldrb r3, [r3, #1]
  54623. 8016782: 2b03 cmp r3, #3
  54624. 8016784: d006 beq.n 8016794 <lwip_netconn_do_connect+0x114>
  54625. 8016786: 4b1a ldr r3, [pc, #104] @ (80167f0 <lwip_netconn_do_connect+0x170>)
  54626. 8016788: f44f 62ae mov.w r2, #1392 @ 0x570
  54627. 801678c: 4919 ldr r1, [pc, #100] @ (80167f4 <lwip_netconn_do_connect+0x174>)
  54628. 801678e: 481a ldr r0, [pc, #104] @ (80167f8 <lwip_netconn_do_connect+0x178>)
  54629. 8016790: f012 febc bl 802950c <iprintf>
  54630. UNLOCK_TCPIP_CORE();
  54631. 8016794: f7f9 fc5e bl 8010054 <sys_unlock_tcpip_core>
  54632. sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0);
  54633. 8016798: 693b ldr r3, [r7, #16]
  54634. 801679a: 681b ldr r3, [r3, #0]
  54635. 801679c: 330c adds r3, #12
  54636. 801679e: 2100 movs r1, #0
  54637. 80167a0: 4618 mov r0, r3
  54638. 80167a2: f00f fb56 bl 8025e52 <sys_arch_sem_wait>
  54639. LOCK_TCPIP_CORE();
  54640. 80167a6: f7f9 fc45 bl 8010034 <sys_lock_tcpip_core>
  54641. LWIP_ASSERT("state!", msg->conn->state != NETCONN_CONNECT);
  54642. 80167aa: 693b ldr r3, [r7, #16]
  54643. 80167ac: 681b ldr r3, [r3, #0]
  54644. 80167ae: 785b ldrb r3, [r3, #1]
  54645. 80167b0: 2b03 cmp r3, #3
  54646. 80167b2: d116 bne.n 80167e2 <lwip_netconn_do_connect+0x162>
  54647. 80167b4: 4b0e ldr r3, [pc, #56] @ (80167f0 <lwip_netconn_do_connect+0x170>)
  54648. 80167b6: f240 5274 movw r2, #1396 @ 0x574
  54649. 80167ba: 490e ldr r1, [pc, #56] @ (80167f4 <lwip_netconn_do_connect+0x174>)
  54650. 80167bc: 480e ldr r0, [pc, #56] @ (80167f8 <lwip_netconn_do_connect+0x178>)
  54651. 80167be: f012 fea5 bl 802950c <iprintf>
  54652. return;
  54653. 80167c2: e00e b.n 80167e2 <lwip_netconn_do_connect+0x162>
  54654. #endif /* LWIP_TCP */
  54655. default:
  54656. LWIP_ERROR("Invalid netconn type", 0, do {
  54657. 80167c4: 4b0a ldr r3, [pc, #40] @ (80167f0 <lwip_netconn_do_connect+0x170>)
  54658. 80167c6: f240 527d movw r2, #1405 @ 0x57d
  54659. 80167ca: 490c ldr r1, [pc, #48] @ (80167fc <lwip_netconn_do_connect+0x17c>)
  54660. 80167cc: 480a ldr r0, [pc, #40] @ (80167f8 <lwip_netconn_do_connect+0x178>)
  54661. 80167ce: f012 fe9d bl 802950c <iprintf>
  54662. 80167d2: 23fa movs r3, #250 @ 0xfa
  54663. 80167d4: 75fb strb r3, [r7, #23]
  54664. err = ERR_VAL;
  54665. } while (0));
  54666. break;
  54667. 80167d6: e000 b.n 80167da <lwip_netconn_do_connect+0x15a>
  54668. break;
  54669. 80167d8: bf00 nop
  54670. }
  54671. }
  54672. msg->err = err;
  54673. 80167da: 693b ldr r3, [r7, #16]
  54674. 80167dc: 7dfa ldrb r2, [r7, #23]
  54675. 80167de: 711a strb r2, [r3, #4]
  54676. 80167e0: e000 b.n 80167e4 <lwip_netconn_do_connect+0x164>
  54677. return;
  54678. 80167e2: bf00 nop
  54679. /* For all other protocols, netconn_connect() calls netconn_apimsg(),
  54680. so use TCPIP_APIMSG_ACK() here. */
  54681. TCPIP_APIMSG_ACK(msg);
  54682. }
  54683. 80167e4: 3718 adds r7, #24
  54684. 80167e6: 46bd mov sp, r7
  54685. 80167e8: bd80 pop {r7, pc}
  54686. 80167ea: bf00 nop
  54687. 80167ec: 08016559 .word 0x08016559
  54688. 80167f0: 0802ca70 .word 0x0802ca70
  54689. 80167f4: 0802ce30 .word 0x0802ce30
  54690. 80167f8: 0802cab4 .word 0x0802cab4
  54691. 80167fc: 0802ceb8 .word 0x0802ceb8
  54692. 08016800 <lwip_netconn_do_disconnect>:
  54693. *
  54694. * @param m the api_msg pointing to the connection to disconnect
  54695. */
  54696. void
  54697. lwip_netconn_do_disconnect(void *m)
  54698. {
  54699. 8016800: b580 push {r7, lr}
  54700. 8016802: b084 sub sp, #16
  54701. 8016804: af00 add r7, sp, #0
  54702. 8016806: 6078 str r0, [r7, #4]
  54703. struct api_msg *msg = (struct api_msg *)m;
  54704. 8016808: 687b ldr r3, [r7, #4]
  54705. 801680a: 60fb str r3, [r7, #12]
  54706. #if LWIP_UDP
  54707. if (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_UDP) {
  54708. 801680c: 68fb ldr r3, [r7, #12]
  54709. 801680e: 681b ldr r3, [r3, #0]
  54710. 8016810: 781b ldrb r3, [r3, #0]
  54711. 8016812: f003 03f0 and.w r3, r3, #240 @ 0xf0
  54712. 8016816: 2b20 cmp r3, #32
  54713. 8016818: d109 bne.n 801682e <lwip_netconn_do_disconnect+0x2e>
  54714. udp_disconnect(msg->conn->pcb.udp);
  54715. 801681a: 68fb ldr r3, [r7, #12]
  54716. 801681c: 681b ldr r3, [r3, #0]
  54717. 801681e: 685b ldr r3, [r3, #4]
  54718. 8016820: 4618 mov r0, r3
  54719. 8016822: f00a fd97 bl 8021354 <udp_disconnect>
  54720. msg->err = ERR_OK;
  54721. 8016826: 68fb ldr r3, [r7, #12]
  54722. 8016828: 2200 movs r2, #0
  54723. 801682a: 711a strb r2, [r3, #4]
  54724. #endif /* LWIP_UDP */
  54725. {
  54726. msg->err = ERR_VAL;
  54727. }
  54728. TCPIP_APIMSG_ACK(msg);
  54729. }
  54730. 801682c: e002 b.n 8016834 <lwip_netconn_do_disconnect+0x34>
  54731. msg->err = ERR_VAL;
  54732. 801682e: 68fb ldr r3, [r7, #12]
  54733. 8016830: 22fa movs r2, #250 @ 0xfa
  54734. 8016832: 711a strb r2, [r3, #4]
  54735. }
  54736. 8016834: bf00 nop
  54737. 8016836: 3710 adds r7, #16
  54738. 8016838: 46bd mov sp, r7
  54739. 801683a: bd80 pop {r7, pc}
  54740. 0801683c <lwip_netconn_do_send>:
  54741. *
  54742. * @param m the api_msg pointing to the connection
  54743. */
  54744. void
  54745. lwip_netconn_do_send(void *m)
  54746. {
  54747. 801683c: b580 push {r7, lr}
  54748. 801683e: b084 sub sp, #16
  54749. 8016840: af00 add r7, sp, #0
  54750. 8016842: 6078 str r0, [r7, #4]
  54751. struct api_msg *msg = (struct api_msg *)m;
  54752. 8016844: 687b ldr r3, [r7, #4]
  54753. 8016846: 60bb str r3, [r7, #8]
  54754. err_t err = netconn_err(msg->conn);
  54755. 8016848: 68bb ldr r3, [r7, #8]
  54756. 801684a: 681b ldr r3, [r3, #0]
  54757. 801684c: 4618 mov r0, r3
  54758. 801684e: f7fe fef9 bl 8015644 <netconn_err>
  54759. 8016852: 4603 mov r3, r0
  54760. 8016854: 73fb strb r3, [r7, #15]
  54761. if (err == ERR_OK) {
  54762. 8016856: f997 300f ldrsb.w r3, [r7, #15]
  54763. 801685a: 2b00 cmp r3, #0
  54764. 801685c: d134 bne.n 80168c8 <lwip_netconn_do_send+0x8c>
  54765. if (msg->conn->pcb.tcp != NULL) {
  54766. 801685e: 68bb ldr r3, [r7, #8]
  54767. 8016860: 681b ldr r3, [r3, #0]
  54768. 8016862: 685b ldr r3, [r3, #4]
  54769. 8016864: 2b00 cmp r3, #0
  54770. 8016866: d02d beq.n 80168c4 <lwip_netconn_do_send+0x88>
  54771. switch (NETCONNTYPE_GROUP(msg->conn->type)) {
  54772. 8016868: 68bb ldr r3, [r7, #8]
  54773. 801686a: 681b ldr r3, [r3, #0]
  54774. 801686c: 781b ldrb r3, [r3, #0]
  54775. 801686e: f003 03f0 and.w r3, r3, #240 @ 0xf0
  54776. 8016872: 2b20 cmp r3, #32
  54777. 8016874: d123 bne.n 80168be <lwip_netconn_do_send+0x82>
  54778. err = udp_sendto_chksum(msg->conn->pcb.udp, msg->msg.b->p,
  54779. &msg->msg.b->addr, msg->msg.b->port,
  54780. msg->msg.b->flags & NETBUF_FLAG_CHKSUM, msg->msg.b->toport_chksum);
  54781. }
  54782. #else /* LWIP_CHECKSUM_ON_COPY */
  54783. if (ip_addr_isany_val(msg->msg.b->addr) || IP_IS_ANY_TYPE_VAL(msg->msg.b->addr)) {
  54784. 8016876: 68bb ldr r3, [r7, #8]
  54785. 8016878: 689b ldr r3, [r3, #8]
  54786. 801687a: 689b ldr r3, [r3, #8]
  54787. 801687c: 2b00 cmp r3, #0
  54788. 801687e: d10c bne.n 801689a <lwip_netconn_do_send+0x5e>
  54789. err = udp_send(msg->conn->pcb.udp, msg->msg.b->p);
  54790. 8016880: 68bb ldr r3, [r7, #8]
  54791. 8016882: 681b ldr r3, [r3, #0]
  54792. 8016884: 685a ldr r2, [r3, #4]
  54793. 8016886: 68bb ldr r3, [r7, #8]
  54794. 8016888: 689b ldr r3, [r3, #8]
  54795. 801688a: 681b ldr r3, [r3, #0]
  54796. 801688c: 4619 mov r1, r3
  54797. 801688e: 4610 mov r0, r2
  54798. 8016890: f00a fa7a bl 8020d88 <udp_send>
  54799. 8016894: 4603 mov r3, r0
  54800. 8016896: 73fb strb r3, [r7, #15]
  54801. } else {
  54802. err = udp_sendto(msg->conn->pcb.udp, msg->msg.b->p, &msg->msg.b->addr, msg->msg.b->port);
  54803. }
  54804. #endif /* LWIP_CHECKSUM_ON_COPY */
  54805. break;
  54806. 8016898: e016 b.n 80168c8 <lwip_netconn_do_send+0x8c>
  54807. err = udp_sendto(msg->conn->pcb.udp, msg->msg.b->p, &msg->msg.b->addr, msg->msg.b->port);
  54808. 801689a: 68bb ldr r3, [r7, #8]
  54809. 801689c: 681b ldr r3, [r3, #0]
  54810. 801689e: 6858 ldr r0, [r3, #4]
  54811. 80168a0: 68bb ldr r3, [r7, #8]
  54812. 80168a2: 689b ldr r3, [r3, #8]
  54813. 80168a4: 6819 ldr r1, [r3, #0]
  54814. 80168a6: 68bb ldr r3, [r7, #8]
  54815. 80168a8: 689b ldr r3, [r3, #8]
  54816. 80168aa: f103 0208 add.w r2, r3, #8
  54817. 80168ae: 68bb ldr r3, [r7, #8]
  54818. 80168b0: 689b ldr r3, [r3, #8]
  54819. 80168b2: 899b ldrh r3, [r3, #12]
  54820. 80168b4: f00a fa9c bl 8020df0 <udp_sendto>
  54821. 80168b8: 4603 mov r3, r0
  54822. 80168ba: 73fb strb r3, [r7, #15]
  54823. break;
  54824. 80168bc: e004 b.n 80168c8 <lwip_netconn_do_send+0x8c>
  54825. #endif /* LWIP_UDP */
  54826. default:
  54827. err = ERR_CONN;
  54828. 80168be: 23f5 movs r3, #245 @ 0xf5
  54829. 80168c0: 73fb strb r3, [r7, #15]
  54830. break;
  54831. 80168c2: e001 b.n 80168c8 <lwip_netconn_do_send+0x8c>
  54832. }
  54833. } else {
  54834. err = ERR_CONN;
  54835. 80168c4: 23f5 movs r3, #245 @ 0xf5
  54836. 80168c6: 73fb strb r3, [r7, #15]
  54837. }
  54838. }
  54839. msg->err = err;
  54840. 80168c8: 68bb ldr r3, [r7, #8]
  54841. 80168ca: 7bfa ldrb r2, [r7, #15]
  54842. 80168cc: 711a strb r2, [r3, #4]
  54843. TCPIP_APIMSG_ACK(msg);
  54844. }
  54845. 80168ce: bf00 nop
  54846. 80168d0: 3710 adds r7, #16
  54847. 80168d2: 46bd mov sp, r7
  54848. 80168d4: bd80 pop {r7, pc}
  54849. 080168d6 <lwip_netconn_do_recv>:
  54850. *
  54851. * @param m the api_msg pointing to the connection
  54852. */
  54853. void
  54854. lwip_netconn_do_recv(void *m)
  54855. {
  54856. 80168d6: b580 push {r7, lr}
  54857. 80168d8: b086 sub sp, #24
  54858. 80168da: af00 add r7, sp, #0
  54859. 80168dc: 6078 str r0, [r7, #4]
  54860. struct api_msg *msg = (struct api_msg *)m;
  54861. 80168de: 687b ldr r3, [r7, #4]
  54862. 80168e0: 613b str r3, [r7, #16]
  54863. msg->err = ERR_OK;
  54864. 80168e2: 693b ldr r3, [r7, #16]
  54865. 80168e4: 2200 movs r2, #0
  54866. 80168e6: 711a strb r2, [r3, #4]
  54867. if (msg->conn->pcb.tcp != NULL) {
  54868. 80168e8: 693b ldr r3, [r7, #16]
  54869. 80168ea: 681b ldr r3, [r3, #0]
  54870. 80168ec: 685b ldr r3, [r3, #4]
  54871. 80168ee: 2b00 cmp r3, #0
  54872. 80168f0: d022 beq.n 8016938 <lwip_netconn_do_recv+0x62>
  54873. if (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP) {
  54874. 80168f2: 693b ldr r3, [r7, #16]
  54875. 80168f4: 681b ldr r3, [r3, #0]
  54876. 80168f6: 781b ldrb r3, [r3, #0]
  54877. 80168f8: f003 03f0 and.w r3, r3, #240 @ 0xf0
  54878. 80168fc: 2b10 cmp r3, #16
  54879. 80168fe: d11b bne.n 8016938 <lwip_netconn_do_recv+0x62>
  54880. size_t remaining = msg->msg.r.len;
  54881. 8016900: 693b ldr r3, [r7, #16]
  54882. 8016902: 689b ldr r3, [r3, #8]
  54883. 8016904: 617b str r3, [r7, #20]
  54884. do {
  54885. u16_t recved = (u16_t)((remaining > 0xffff) ? 0xffff : remaining);
  54886. 8016906: 697b ldr r3, [r7, #20]
  54887. 8016908: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  54888. 801690c: d202 bcs.n 8016914 <lwip_netconn_do_recv+0x3e>
  54889. 801690e: 697b ldr r3, [r7, #20]
  54890. 8016910: b29b uxth r3, r3
  54891. 8016912: e001 b.n 8016918 <lwip_netconn_do_recv+0x42>
  54892. 8016914: f64f 73ff movw r3, #65535 @ 0xffff
  54893. 8016918: 81fb strh r3, [r7, #14]
  54894. tcp_recved(msg->conn->pcb.tcp, recved);
  54895. 801691a: 693b ldr r3, [r7, #16]
  54896. 801691c: 681b ldr r3, [r3, #0]
  54897. 801691e: 685b ldr r3, [r3, #4]
  54898. 8016920: 89fa ldrh r2, [r7, #14]
  54899. 8016922: 4611 mov r1, r2
  54900. 8016924: 4618 mov r0, r3
  54901. 8016926: f004 f9e5 bl 801acf4 <tcp_recved>
  54902. remaining -= recved;
  54903. 801692a: 89fb ldrh r3, [r7, #14]
  54904. 801692c: 697a ldr r2, [r7, #20]
  54905. 801692e: 1ad3 subs r3, r2, r3
  54906. 8016930: 617b str r3, [r7, #20]
  54907. } while (remaining != 0);
  54908. 8016932: 697b ldr r3, [r7, #20]
  54909. 8016934: 2b00 cmp r3, #0
  54910. 8016936: d1e6 bne.n 8016906 <lwip_netconn_do_recv+0x30>
  54911. }
  54912. }
  54913. TCPIP_APIMSG_ACK(msg);
  54914. }
  54915. 8016938: bf00 nop
  54916. 801693a: 3718 adds r7, #24
  54917. 801693c: 46bd mov sp, r7
  54918. 801693e: bd80 pop {r7, pc}
  54919. 08016940 <lwip_netconn_do_writemore>:
  54920. * @return ERR_OK
  54921. * ERR_MEM if LWIP_TCPIP_CORE_LOCKING=1 and sending hasn't yet finished
  54922. */
  54923. static err_t
  54924. lwip_netconn_do_writemore(struct netconn *conn WRITE_DELAYED_PARAM)
  54925. {
  54926. 8016940: b580 push {r7, lr}
  54927. 8016942: b088 sub sp, #32
  54928. 8016944: af00 add r7, sp, #0
  54929. 8016946: 6078 str r0, [r7, #4]
  54930. 8016948: 460b mov r3, r1
  54931. 801694a: 70fb strb r3, [r7, #3]
  54932. err_t err;
  54933. const void *dataptr;
  54934. u16_t len, available;
  54935. u8_t write_finished = 0;
  54936. 801694c: 2300 movs r3, #0
  54937. 801694e: 76fb strb r3, [r7, #27]
  54938. size_t diff;
  54939. u8_t dontblock;
  54940. u8_t apiflags;
  54941. u8_t write_more;
  54942. LWIP_ASSERT("conn != NULL", conn != NULL);
  54943. 8016950: 687b ldr r3, [r7, #4]
  54944. 8016952: 2b00 cmp r3, #0
  54945. 8016954: d106 bne.n 8016964 <lwip_netconn_do_writemore+0x24>
  54946. 8016956: 4b61 ldr r3, [pc, #388] @ (8016adc <lwip_netconn_do_writemore+0x19c>)
  54947. 8016958: f240 6273 movw r2, #1651 @ 0x673
  54948. 801695c: 4960 ldr r1, [pc, #384] @ (8016ae0 <lwip_netconn_do_writemore+0x1a0>)
  54949. 801695e: 4861 ldr r0, [pc, #388] @ (8016ae4 <lwip_netconn_do_writemore+0x1a4>)
  54950. 8016960: f012 fdd4 bl 802950c <iprintf>
  54951. LWIP_ASSERT("conn->state == NETCONN_WRITE", (conn->state == NETCONN_WRITE));
  54952. 8016964: 687b ldr r3, [r7, #4]
  54953. 8016966: 785b ldrb r3, [r3, #1]
  54954. 8016968: 2b01 cmp r3, #1
  54955. 801696a: d006 beq.n 801697a <lwip_netconn_do_writemore+0x3a>
  54956. 801696c: 4b5b ldr r3, [pc, #364] @ (8016adc <lwip_netconn_do_writemore+0x19c>)
  54957. 801696e: f240 6274 movw r2, #1652 @ 0x674
  54958. 8016972: 495d ldr r1, [pc, #372] @ (8016ae8 <lwip_netconn_do_writemore+0x1a8>)
  54959. 8016974: 485b ldr r0, [pc, #364] @ (8016ae4 <lwip_netconn_do_writemore+0x1a4>)
  54960. 8016976: f012 fdc9 bl 802950c <iprintf>
  54961. LWIP_ASSERT("conn->current_msg != NULL", conn->current_msg != NULL);
  54962. 801697a: 687b ldr r3, [r7, #4]
  54963. 801697c: 6adb ldr r3, [r3, #44] @ 0x2c
  54964. 801697e: 2b00 cmp r3, #0
  54965. 8016980: d106 bne.n 8016990 <lwip_netconn_do_writemore+0x50>
  54966. 8016982: 4b56 ldr r3, [pc, #344] @ (8016adc <lwip_netconn_do_writemore+0x19c>)
  54967. 8016984: f240 6275 movw r2, #1653 @ 0x675
  54968. 8016988: 4958 ldr r1, [pc, #352] @ (8016aec <lwip_netconn_do_writemore+0x1ac>)
  54969. 801698a: 4856 ldr r0, [pc, #344] @ (8016ae4 <lwip_netconn_do_writemore+0x1a4>)
  54970. 801698c: f012 fdbe bl 802950c <iprintf>
  54971. LWIP_ASSERT("conn->pcb.tcp != NULL", conn->pcb.tcp != NULL);
  54972. 8016990: 687b ldr r3, [r7, #4]
  54973. 8016992: 685b ldr r3, [r3, #4]
  54974. 8016994: 2b00 cmp r3, #0
  54975. 8016996: d106 bne.n 80169a6 <lwip_netconn_do_writemore+0x66>
  54976. 8016998: 4b50 ldr r3, [pc, #320] @ (8016adc <lwip_netconn_do_writemore+0x19c>)
  54977. 801699a: f240 6276 movw r2, #1654 @ 0x676
  54978. 801699e: 4954 ldr r1, [pc, #336] @ (8016af0 <lwip_netconn_do_writemore+0x1b0>)
  54979. 80169a0: 4850 ldr r0, [pc, #320] @ (8016ae4 <lwip_netconn_do_writemore+0x1a4>)
  54980. 80169a2: f012 fdb3 bl 802950c <iprintf>
  54981. LWIP_ASSERT("conn->current_msg->msg.w.offset < conn->current_msg->msg.w.len",
  54982. 80169a6: 687b ldr r3, [r7, #4]
  54983. 80169a8: 6adb ldr r3, [r3, #44] @ 0x2c
  54984. 80169aa: 699a ldr r2, [r3, #24]
  54985. 80169ac: 687b ldr r3, [r7, #4]
  54986. 80169ae: 6adb ldr r3, [r3, #44] @ 0x2c
  54987. 80169b0: 695b ldr r3, [r3, #20]
  54988. 80169b2: 429a cmp r2, r3
  54989. 80169b4: d306 bcc.n 80169c4 <lwip_netconn_do_writemore+0x84>
  54990. 80169b6: 4b49 ldr r3, [pc, #292] @ (8016adc <lwip_netconn_do_writemore+0x19c>)
  54991. 80169b8: f240 6277 movw r2, #1655 @ 0x677
  54992. 80169bc: 494d ldr r1, [pc, #308] @ (8016af4 <lwip_netconn_do_writemore+0x1b4>)
  54993. 80169be: 4849 ldr r0, [pc, #292] @ (8016ae4 <lwip_netconn_do_writemore+0x1a4>)
  54994. 80169c0: f012 fda4 bl 802950c <iprintf>
  54995. conn->current_msg->msg.w.offset < conn->current_msg->msg.w.len);
  54996. LWIP_ASSERT("conn->current_msg->msg.w.vector_cnt > 0", conn->current_msg->msg.w.vector_cnt > 0);
  54997. 80169c4: 687b ldr r3, [r7, #4]
  54998. 80169c6: 6adb ldr r3, [r3, #44] @ 0x2c
  54999. 80169c8: 899b ldrh r3, [r3, #12]
  55000. 80169ca: 2b00 cmp r3, #0
  55001. 80169cc: d106 bne.n 80169dc <lwip_netconn_do_writemore+0x9c>
  55002. 80169ce: 4b43 ldr r3, [pc, #268] @ (8016adc <lwip_netconn_do_writemore+0x19c>)
  55003. 80169d0: f240 6279 movw r2, #1657 @ 0x679
  55004. 80169d4: 4948 ldr r1, [pc, #288] @ (8016af8 <lwip_netconn_do_writemore+0x1b8>)
  55005. 80169d6: 4843 ldr r0, [pc, #268] @ (8016ae4 <lwip_netconn_do_writemore+0x1a4>)
  55006. 80169d8: f012 fd98 bl 802950c <iprintf>
  55007. apiflags = conn->current_msg->msg.w.apiflags;
  55008. 80169dc: 687b ldr r3, [r7, #4]
  55009. 80169de: 6adb ldr r3, [r3, #44] @ 0x2c
  55010. 80169e0: 7f1b ldrb r3, [r3, #28]
  55011. 80169e2: 76bb strb r3, [r7, #26]
  55012. dontblock = netconn_is_nonblocking(conn) || (apiflags & NETCONN_DONTBLOCK);
  55013. 80169e4: 687b ldr r3, [r7, #4]
  55014. 80169e6: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55015. 80169ea: f003 0302 and.w r3, r3, #2
  55016. 80169ee: 2b00 cmp r3, #0
  55017. 80169f0: d104 bne.n 80169fc <lwip_netconn_do_writemore+0xbc>
  55018. 80169f2: 7ebb ldrb r3, [r7, #26]
  55019. 80169f4: f003 0304 and.w r3, r3, #4
  55020. 80169f8: 2b00 cmp r3, #0
  55021. 80169fa: d001 beq.n 8016a00 <lwip_netconn_do_writemore+0xc0>
  55022. 80169fc: 2301 movs r3, #1
  55023. 80169fe: e000 b.n 8016a02 <lwip_netconn_do_writemore+0xc2>
  55024. 8016a00: 2300 movs r3, #0
  55025. 8016a02: 763b strb r3, [r7, #24]
  55026. }
  55027. } else
  55028. #endif /* LWIP_SO_SNDTIMEO */
  55029. {
  55030. do {
  55031. dataptr = (const u8_t *)conn->current_msg->msg.w.vector->ptr + conn->current_msg->msg.w.vector_off;
  55032. 8016a04: 687b ldr r3, [r7, #4]
  55033. 8016a06: 6adb ldr r3, [r3, #44] @ 0x2c
  55034. 8016a08: 689b ldr r3, [r3, #8]
  55035. 8016a0a: 681a ldr r2, [r3, #0]
  55036. 8016a0c: 687b ldr r3, [r7, #4]
  55037. 8016a0e: 6adb ldr r3, [r3, #44] @ 0x2c
  55038. 8016a10: 691b ldr r3, [r3, #16]
  55039. 8016a12: 4413 add r3, r2
  55040. 8016a14: 617b str r3, [r7, #20]
  55041. diff = conn->current_msg->msg.w.vector->len - conn->current_msg->msg.w.vector_off;
  55042. 8016a16: 687b ldr r3, [r7, #4]
  55043. 8016a18: 6adb ldr r3, [r3, #44] @ 0x2c
  55044. 8016a1a: 689b ldr r3, [r3, #8]
  55045. 8016a1c: 685a ldr r2, [r3, #4]
  55046. 8016a1e: 687b ldr r3, [r7, #4]
  55047. 8016a20: 6adb ldr r3, [r3, #44] @ 0x2c
  55048. 8016a22: 691b ldr r3, [r3, #16]
  55049. 8016a24: 1ad3 subs r3, r2, r3
  55050. 8016a26: 613b str r3, [r7, #16]
  55051. if (diff > 0xffffUL) { /* max_u16_t */
  55052. 8016a28: 693b ldr r3, [r7, #16]
  55053. 8016a2a: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  55054. 8016a2e: d307 bcc.n 8016a40 <lwip_netconn_do_writemore+0x100>
  55055. len = 0xffff;
  55056. 8016a30: f64f 73ff movw r3, #65535 @ 0xffff
  55057. 8016a34: 83bb strh r3, [r7, #28]
  55058. apiflags |= TCP_WRITE_FLAG_MORE;
  55059. 8016a36: 7ebb ldrb r3, [r7, #26]
  55060. 8016a38: f043 0302 orr.w r3, r3, #2
  55061. 8016a3c: 76bb strb r3, [r7, #26]
  55062. 8016a3e: e001 b.n 8016a44 <lwip_netconn_do_writemore+0x104>
  55063. } else {
  55064. len = (u16_t)diff;
  55065. 8016a40: 693b ldr r3, [r7, #16]
  55066. 8016a42: 83bb strh r3, [r7, #28]
  55067. }
  55068. available = tcp_sndbuf(conn->pcb.tcp);
  55069. 8016a44: 687b ldr r3, [r7, #4]
  55070. 8016a46: 685b ldr r3, [r3, #4]
  55071. 8016a48: f8b3 3064 ldrh.w r3, [r3, #100] @ 0x64
  55072. 8016a4c: 81fb strh r3, [r7, #14]
  55073. if (available < len) {
  55074. 8016a4e: 89fa ldrh r2, [r7, #14]
  55075. 8016a50: 8bbb ldrh r3, [r7, #28]
  55076. 8016a52: 429a cmp r2, r3
  55077. 8016a54: d216 bcs.n 8016a84 <lwip_netconn_do_writemore+0x144>
  55078. /* don't try to write more than sendbuf */
  55079. len = available;
  55080. 8016a56: 89fb ldrh r3, [r7, #14]
  55081. 8016a58: 83bb strh r3, [r7, #28]
  55082. if (dontblock) {
  55083. 8016a5a: 7e3b ldrb r3, [r7, #24]
  55084. 8016a5c: 2b00 cmp r3, #0
  55085. 8016a5e: d00d beq.n 8016a7c <lwip_netconn_do_writemore+0x13c>
  55086. if (!len) {
  55087. 8016a60: 8bbb ldrh r3, [r7, #28]
  55088. 8016a62: 2b00 cmp r3, #0
  55089. 8016a64: d10e bne.n 8016a84 <lwip_netconn_do_writemore+0x144>
  55090. /* set error according to partial write or not */
  55091. err = (conn->current_msg->msg.w.offset == 0) ? ERR_WOULDBLOCK : ERR_OK;
  55092. 8016a66: 687b ldr r3, [r7, #4]
  55093. 8016a68: 6adb ldr r3, [r3, #44] @ 0x2c
  55094. 8016a6a: 699b ldr r3, [r3, #24]
  55095. 8016a6c: 2b00 cmp r3, #0
  55096. 8016a6e: d102 bne.n 8016a76 <lwip_netconn_do_writemore+0x136>
  55097. 8016a70: f06f 0306 mvn.w r3, #6
  55098. 8016a74: e000 b.n 8016a78 <lwip_netconn_do_writemore+0x138>
  55099. 8016a76: 2300 movs r3, #0
  55100. 8016a78: 77fb strb r3, [r7, #31]
  55101. goto err_mem;
  55102. 8016a7a: e08f b.n 8016b9c <lwip_netconn_do_writemore+0x25c>
  55103. }
  55104. } else {
  55105. apiflags |= TCP_WRITE_FLAG_MORE;
  55106. 8016a7c: 7ebb ldrb r3, [r7, #26]
  55107. 8016a7e: f043 0302 orr.w r3, r3, #2
  55108. 8016a82: 76bb strb r3, [r7, #26]
  55109. }
  55110. }
  55111. LWIP_ASSERT("lwip_netconn_do_writemore: invalid length!",
  55112. 8016a84: 687b ldr r3, [r7, #4]
  55113. 8016a86: 6adb ldr r3, [r3, #44] @ 0x2c
  55114. 8016a88: 691a ldr r2, [r3, #16]
  55115. 8016a8a: 8bbb ldrh r3, [r7, #28]
  55116. 8016a8c: 441a add r2, r3
  55117. 8016a8e: 687b ldr r3, [r7, #4]
  55118. 8016a90: 6adb ldr r3, [r3, #44] @ 0x2c
  55119. 8016a92: 689b ldr r3, [r3, #8]
  55120. 8016a94: 685b ldr r3, [r3, #4]
  55121. 8016a96: 429a cmp r2, r3
  55122. 8016a98: d906 bls.n 8016aa8 <lwip_netconn_do_writemore+0x168>
  55123. 8016a9a: 4b10 ldr r3, [pc, #64] @ (8016adc <lwip_netconn_do_writemore+0x19c>)
  55124. 8016a9c: f240 62a3 movw r2, #1699 @ 0x6a3
  55125. 8016aa0: 4916 ldr r1, [pc, #88] @ (8016afc <lwip_netconn_do_writemore+0x1bc>)
  55126. 8016aa2: 4810 ldr r0, [pc, #64] @ (8016ae4 <lwip_netconn_do_writemore+0x1a4>)
  55127. 8016aa4: f012 fd32 bl 802950c <iprintf>
  55128. ((conn->current_msg->msg.w.vector_off + len) <= conn->current_msg->msg.w.vector->len));
  55129. /* we should loop around for more sending in the following cases:
  55130. 1) We couldn't finish the current vector because of 16-bit size limitations.
  55131. tcp_write() and tcp_sndbuf() both are limited to 16-bit sizes
  55132. 2) We are sending the remainder of the current vector and have more */
  55133. if ((len == 0xffff && diff > 0xffffUL) ||
  55134. 8016aa8: 8bbb ldrh r3, [r7, #28]
  55135. 8016aaa: f64f 72ff movw r2, #65535 @ 0xffff
  55136. 8016aae: 4293 cmp r3, r2
  55137. 8016ab0: d103 bne.n 8016aba <lwip_netconn_do_writemore+0x17a>
  55138. 8016ab2: 693b ldr r3, [r7, #16]
  55139. 8016ab4: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  55140. 8016ab8: d209 bcs.n 8016ace <lwip_netconn_do_writemore+0x18e>
  55141. (len == (u16_t)diff && conn->current_msg->msg.w.vector_cnt > 1)) {
  55142. 8016aba: 693b ldr r3, [r7, #16]
  55143. 8016abc: b29b uxth r3, r3
  55144. if ((len == 0xffff && diff > 0xffffUL) ||
  55145. 8016abe: 8bba ldrh r2, [r7, #28]
  55146. 8016ac0: 429a cmp r2, r3
  55147. 8016ac2: d11d bne.n 8016b00 <lwip_netconn_do_writemore+0x1c0>
  55148. (len == (u16_t)diff && conn->current_msg->msg.w.vector_cnt > 1)) {
  55149. 8016ac4: 687b ldr r3, [r7, #4]
  55150. 8016ac6: 6adb ldr r3, [r3, #44] @ 0x2c
  55151. 8016ac8: 899b ldrh r3, [r3, #12]
  55152. 8016aca: 2b01 cmp r3, #1
  55153. 8016acc: d918 bls.n 8016b00 <lwip_netconn_do_writemore+0x1c0>
  55154. write_more = 1;
  55155. 8016ace: 2301 movs r3, #1
  55156. 8016ad0: 767b strb r3, [r7, #25]
  55157. apiflags |= TCP_WRITE_FLAG_MORE;
  55158. 8016ad2: 7ebb ldrb r3, [r7, #26]
  55159. 8016ad4: f043 0302 orr.w r3, r3, #2
  55160. 8016ad8: 76bb strb r3, [r7, #26]
  55161. 8016ada: e013 b.n 8016b04 <lwip_netconn_do_writemore+0x1c4>
  55162. 8016adc: 0802ca70 .word 0x0802ca70
  55163. 8016ae0: 0802cbc8 .word 0x0802cbc8
  55164. 8016ae4: 0802cab4 .word 0x0802cab4
  55165. 8016ae8: 0802ced0 .word 0x0802ced0
  55166. 8016aec: 0802cbd8 .word 0x0802cbd8
  55167. 8016af0: 0802cef0 .word 0x0802cef0
  55168. 8016af4: 0802cf08 .word 0x0802cf08
  55169. 8016af8: 0802cf48 .word 0x0802cf48
  55170. 8016afc: 0802cf70 .word 0x0802cf70
  55171. } else {
  55172. write_more = 0;
  55173. 8016b00: 2300 movs r3, #0
  55174. 8016b02: 767b strb r3, [r7, #25]
  55175. }
  55176. err = tcp_write(conn->pcb.tcp, dataptr, len, apiflags);
  55177. 8016b04: 687b ldr r3, [r7, #4]
  55178. 8016b06: 6858 ldr r0, [r3, #4]
  55179. 8016b08: 7ebb ldrb r3, [r7, #26]
  55180. 8016b0a: 8bba ldrh r2, [r7, #28]
  55181. 8016b0c: 6979 ldr r1, [r7, #20]
  55182. 8016b0e: f008 f827 bl 801eb60 <tcp_write>
  55183. 8016b12: 4603 mov r3, r0
  55184. 8016b14: 77fb strb r3, [r7, #31]
  55185. if (err == ERR_OK) {
  55186. 8016b16: f997 301f ldrsb.w r3, [r7, #31]
  55187. 8016b1a: 2b00 cmp r3, #0
  55188. 8016b1c: d12c bne.n 8016b78 <lwip_netconn_do_writemore+0x238>
  55189. conn->current_msg->msg.w.offset += len;
  55190. 8016b1e: 687b ldr r3, [r7, #4]
  55191. 8016b20: 6adb ldr r3, [r3, #44] @ 0x2c
  55192. 8016b22: 6999 ldr r1, [r3, #24]
  55193. 8016b24: 8bba ldrh r2, [r7, #28]
  55194. 8016b26: 687b ldr r3, [r7, #4]
  55195. 8016b28: 6adb ldr r3, [r3, #44] @ 0x2c
  55196. 8016b2a: 440a add r2, r1
  55197. 8016b2c: 619a str r2, [r3, #24]
  55198. conn->current_msg->msg.w.vector_off += len;
  55199. 8016b2e: 687b ldr r3, [r7, #4]
  55200. 8016b30: 6adb ldr r3, [r3, #44] @ 0x2c
  55201. 8016b32: 6919 ldr r1, [r3, #16]
  55202. 8016b34: 8bba ldrh r2, [r7, #28]
  55203. 8016b36: 687b ldr r3, [r7, #4]
  55204. 8016b38: 6adb ldr r3, [r3, #44] @ 0x2c
  55205. 8016b3a: 440a add r2, r1
  55206. 8016b3c: 611a str r2, [r3, #16]
  55207. /* check if current vector is finished */
  55208. if (conn->current_msg->msg.w.vector_off == conn->current_msg->msg.w.vector->len) {
  55209. 8016b3e: 687b ldr r3, [r7, #4]
  55210. 8016b40: 6adb ldr r3, [r3, #44] @ 0x2c
  55211. 8016b42: 691a ldr r2, [r3, #16]
  55212. 8016b44: 687b ldr r3, [r7, #4]
  55213. 8016b46: 6adb ldr r3, [r3, #44] @ 0x2c
  55214. 8016b48: 689b ldr r3, [r3, #8]
  55215. 8016b4a: 685b ldr r3, [r3, #4]
  55216. 8016b4c: 429a cmp r2, r3
  55217. 8016b4e: d113 bne.n 8016b78 <lwip_netconn_do_writemore+0x238>
  55218. conn->current_msg->msg.w.vector_cnt--;
  55219. 8016b50: 687b ldr r3, [r7, #4]
  55220. 8016b52: 6adb ldr r3, [r3, #44] @ 0x2c
  55221. 8016b54: 899a ldrh r2, [r3, #12]
  55222. 8016b56: 3a01 subs r2, #1
  55223. 8016b58: b292 uxth r2, r2
  55224. 8016b5a: 819a strh r2, [r3, #12]
  55225. /* if we have additional vectors, move on to them */
  55226. if (conn->current_msg->msg.w.vector_cnt > 0) {
  55227. 8016b5c: 687b ldr r3, [r7, #4]
  55228. 8016b5e: 6adb ldr r3, [r3, #44] @ 0x2c
  55229. 8016b60: 899b ldrh r3, [r3, #12]
  55230. 8016b62: 2b00 cmp r3, #0
  55231. 8016b64: d008 beq.n 8016b78 <lwip_netconn_do_writemore+0x238>
  55232. conn->current_msg->msg.w.vector++;
  55233. 8016b66: 687b ldr r3, [r7, #4]
  55234. 8016b68: 6adb ldr r3, [r3, #44] @ 0x2c
  55235. 8016b6a: 689a ldr r2, [r3, #8]
  55236. 8016b6c: 3208 adds r2, #8
  55237. 8016b6e: 609a str r2, [r3, #8]
  55238. conn->current_msg->msg.w.vector_off = 0;
  55239. 8016b70: 687b ldr r3, [r7, #4]
  55240. 8016b72: 6adb ldr r3, [r3, #44] @ 0x2c
  55241. 8016b74: 2200 movs r2, #0
  55242. 8016b76: 611a str r2, [r3, #16]
  55243. }
  55244. }
  55245. }
  55246. } while (write_more && err == ERR_OK);
  55247. 8016b78: 7e7b ldrb r3, [r7, #25]
  55248. 8016b7a: 2b00 cmp r3, #0
  55249. 8016b7c: d004 beq.n 8016b88 <lwip_netconn_do_writemore+0x248>
  55250. 8016b7e: f997 301f ldrsb.w r3, [r7, #31]
  55251. 8016b82: 2b00 cmp r3, #0
  55252. 8016b84: f43f af3e beq.w 8016a04 <lwip_netconn_do_writemore+0xc4>
  55253. /* if OK or memory error, check available space */
  55254. if ((err == ERR_OK) || (err == ERR_MEM)) {
  55255. 8016b88: f997 301f ldrsb.w r3, [r7, #31]
  55256. 8016b8c: 2b00 cmp r3, #0
  55257. 8016b8e: d004 beq.n 8016b9a <lwip_netconn_do_writemore+0x25a>
  55258. 8016b90: f997 301f ldrsb.w r3, [r7, #31]
  55259. 8016b94: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  55260. 8016b98: d137 bne.n 8016c0a <lwip_netconn_do_writemore+0x2ca>
  55261. err_mem:
  55262. 8016b9a: bf00 nop
  55263. if (dontblock && (conn->current_msg->msg.w.offset < conn->current_msg->msg.w.len)) {
  55264. 8016b9c: 7e3b ldrb r3, [r7, #24]
  55265. 8016b9e: 2b00 cmp r3, #0
  55266. 8016ba0: d01b beq.n 8016bda <lwip_netconn_do_writemore+0x29a>
  55267. 8016ba2: 687b ldr r3, [r7, #4]
  55268. 8016ba4: 6adb ldr r3, [r3, #44] @ 0x2c
  55269. 8016ba6: 699a ldr r2, [r3, #24]
  55270. 8016ba8: 687b ldr r3, [r7, #4]
  55271. 8016baa: 6adb ldr r3, [r3, #44] @ 0x2c
  55272. 8016bac: 695b ldr r3, [r3, #20]
  55273. 8016bae: 429a cmp r2, r3
  55274. 8016bb0: d213 bcs.n 8016bda <lwip_netconn_do_writemore+0x29a>
  55275. /* non-blocking write did not write everything: mark the pcb non-writable
  55276. and let poll_tcp check writable space to mark the pcb writable again */
  55277. API_EVENT(conn, NETCONN_EVT_SENDMINUS, 0);
  55278. 8016bb2: 687b ldr r3, [r7, #4]
  55279. 8016bb4: 6b1b ldr r3, [r3, #48] @ 0x30
  55280. 8016bb6: 2b00 cmp r3, #0
  55281. 8016bb8: d005 beq.n 8016bc6 <lwip_netconn_do_writemore+0x286>
  55282. 8016bba: 687b ldr r3, [r7, #4]
  55283. 8016bbc: 6b1b ldr r3, [r3, #48] @ 0x30
  55284. 8016bbe: 2200 movs r2, #0
  55285. 8016bc0: 2103 movs r1, #3
  55286. 8016bc2: 6878 ldr r0, [r7, #4]
  55287. 8016bc4: 4798 blx r3
  55288. conn->flags |= NETCONN_FLAG_CHECK_WRITESPACE;
  55289. 8016bc6: 687b ldr r3, [r7, #4]
  55290. 8016bc8: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55291. 8016bcc: f043 0310 orr.w r3, r3, #16
  55292. 8016bd0: b2da uxtb r2, r3
  55293. 8016bd2: 687b ldr r3, [r7, #4]
  55294. 8016bd4: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55295. 8016bd8: e017 b.n 8016c0a <lwip_netconn_do_writemore+0x2ca>
  55296. } else if ((tcp_sndbuf(conn->pcb.tcp) <= TCP_SNDLOWAT) ||
  55297. 8016bda: 687b ldr r3, [r7, #4]
  55298. 8016bdc: 685b ldr r3, [r3, #4]
  55299. 8016bde: f8b3 3064 ldrh.w r3, [r3, #100] @ 0x64
  55300. 8016be2: f640 3269 movw r2, #2921 @ 0xb69
  55301. 8016be6: 4293 cmp r3, r2
  55302. 8016be8: d905 bls.n 8016bf6 <lwip_netconn_do_writemore+0x2b6>
  55303. (tcp_sndqueuelen(conn->pcb.tcp) >= TCP_SNDQUEUELOWAT)) {
  55304. 8016bea: 687b ldr r3, [r7, #4]
  55305. 8016bec: 685b ldr r3, [r3, #4]
  55306. 8016bee: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  55307. } else if ((tcp_sndbuf(conn->pcb.tcp) <= TCP_SNDLOWAT) ||
  55308. 8016bf2: 2b07 cmp r3, #7
  55309. 8016bf4: d909 bls.n 8016c0a <lwip_netconn_do_writemore+0x2ca>
  55310. /* The queued byte- or pbuf-count exceeds the configured low-water limit,
  55311. let select mark this pcb as non-writable. */
  55312. API_EVENT(conn, NETCONN_EVT_SENDMINUS, 0);
  55313. 8016bf6: 687b ldr r3, [r7, #4]
  55314. 8016bf8: 6b1b ldr r3, [r3, #48] @ 0x30
  55315. 8016bfa: 2b00 cmp r3, #0
  55316. 8016bfc: d005 beq.n 8016c0a <lwip_netconn_do_writemore+0x2ca>
  55317. 8016bfe: 687b ldr r3, [r7, #4]
  55318. 8016c00: 6b1b ldr r3, [r3, #48] @ 0x30
  55319. 8016c02: 2200 movs r2, #0
  55320. 8016c04: 2103 movs r1, #3
  55321. 8016c06: 6878 ldr r0, [r7, #4]
  55322. 8016c08: 4798 blx r3
  55323. }
  55324. }
  55325. if (err == ERR_OK) {
  55326. 8016c0a: f997 301f ldrsb.w r3, [r7, #31]
  55327. 8016c0e: 2b00 cmp r3, #0
  55328. 8016c10: d11d bne.n 8016c4e <lwip_netconn_do_writemore+0x30e>
  55329. err_t out_err;
  55330. if ((conn->current_msg->msg.w.offset == conn->current_msg->msg.w.len) || dontblock) {
  55331. 8016c12: 687b ldr r3, [r7, #4]
  55332. 8016c14: 6adb ldr r3, [r3, #44] @ 0x2c
  55333. 8016c16: 699a ldr r2, [r3, #24]
  55334. 8016c18: 687b ldr r3, [r7, #4]
  55335. 8016c1a: 6adb ldr r3, [r3, #44] @ 0x2c
  55336. 8016c1c: 695b ldr r3, [r3, #20]
  55337. 8016c1e: 429a cmp r2, r3
  55338. 8016c20: d002 beq.n 8016c28 <lwip_netconn_do_writemore+0x2e8>
  55339. 8016c22: 7e3b ldrb r3, [r7, #24]
  55340. 8016c24: 2b00 cmp r3, #0
  55341. 8016c26: d001 beq.n 8016c2c <lwip_netconn_do_writemore+0x2ec>
  55342. /* return sent length (caller reads length from msg.w.offset) */
  55343. write_finished = 1;
  55344. 8016c28: 2301 movs r3, #1
  55345. 8016c2a: 76fb strb r3, [r7, #27]
  55346. }
  55347. out_err = tcp_output(conn->pcb.tcp);
  55348. 8016c2c: 687b ldr r3, [r7, #4]
  55349. 8016c2e: 685b ldr r3, [r3, #4]
  55350. 8016c30: 4618 mov r0, r3
  55351. 8016c32: f008 fddf bl 801f7f4 <tcp_output>
  55352. 8016c36: 4603 mov r3, r0
  55353. 8016c38: 733b strb r3, [r7, #12]
  55354. if (out_err == ERR_RTE) {
  55355. 8016c3a: f997 300c ldrsb.w r3, [r7, #12]
  55356. 8016c3e: f113 0f04 cmn.w r3, #4
  55357. 8016c42: d12c bne.n 8016c9e <lwip_netconn_do_writemore+0x35e>
  55358. /* If tcp_output fails because no route is found,
  55359. don't try writing any more but return the error
  55360. to the application thread. */
  55361. err = out_err;
  55362. 8016c44: 7b3b ldrb r3, [r7, #12]
  55363. 8016c46: 77fb strb r3, [r7, #31]
  55364. write_finished = 1;
  55365. 8016c48: 2301 movs r3, #1
  55366. 8016c4a: 76fb strb r3, [r7, #27]
  55367. 8016c4c: e027 b.n 8016c9e <lwip_netconn_do_writemore+0x35e>
  55368. }
  55369. } else if (err == ERR_MEM) {
  55370. 8016c4e: f997 301f ldrsb.w r3, [r7, #31]
  55371. 8016c52: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  55372. 8016c56: d120 bne.n 8016c9a <lwip_netconn_do_writemore+0x35a>
  55373. For blocking sockets, we do NOT return to the application
  55374. thread, since ERR_MEM is only a temporary error! Non-blocking
  55375. will remain non-writable until sent_tcp/poll_tcp is called */
  55376. /* tcp_write returned ERR_MEM, try tcp_output anyway */
  55377. err_t out_err = tcp_output(conn->pcb.tcp);
  55378. 8016c58: 687b ldr r3, [r7, #4]
  55379. 8016c5a: 685b ldr r3, [r3, #4]
  55380. 8016c5c: 4618 mov r0, r3
  55381. 8016c5e: f008 fdc9 bl 801f7f4 <tcp_output>
  55382. 8016c62: 4603 mov r3, r0
  55383. 8016c64: 737b strb r3, [r7, #13]
  55384. if (out_err == ERR_RTE) {
  55385. 8016c66: f997 300d ldrsb.w r3, [r7, #13]
  55386. 8016c6a: f113 0f04 cmn.w r3, #4
  55387. 8016c6e: d104 bne.n 8016c7a <lwip_netconn_do_writemore+0x33a>
  55388. /* If tcp_output fails because no route is found,
  55389. don't try writing any more but return the error
  55390. to the application thread. */
  55391. err = out_err;
  55392. 8016c70: 7b7b ldrb r3, [r7, #13]
  55393. 8016c72: 77fb strb r3, [r7, #31]
  55394. write_finished = 1;
  55395. 8016c74: 2301 movs r3, #1
  55396. 8016c76: 76fb strb r3, [r7, #27]
  55397. 8016c78: e011 b.n 8016c9e <lwip_netconn_do_writemore+0x35e>
  55398. } else if (dontblock) {
  55399. 8016c7a: 7e3b ldrb r3, [r7, #24]
  55400. 8016c7c: 2b00 cmp r3, #0
  55401. 8016c7e: d00e beq.n 8016c9e <lwip_netconn_do_writemore+0x35e>
  55402. /* non-blocking write is done on ERR_MEM, set error according
  55403. to partial write or not */
  55404. err = (conn->current_msg->msg.w.offset == 0) ? ERR_WOULDBLOCK : ERR_OK;
  55405. 8016c80: 687b ldr r3, [r7, #4]
  55406. 8016c82: 6adb ldr r3, [r3, #44] @ 0x2c
  55407. 8016c84: 699b ldr r3, [r3, #24]
  55408. 8016c86: 2b00 cmp r3, #0
  55409. 8016c88: d102 bne.n 8016c90 <lwip_netconn_do_writemore+0x350>
  55410. 8016c8a: f06f 0306 mvn.w r3, #6
  55411. 8016c8e: e000 b.n 8016c92 <lwip_netconn_do_writemore+0x352>
  55412. 8016c90: 2300 movs r3, #0
  55413. 8016c92: 77fb strb r3, [r7, #31]
  55414. write_finished = 1;
  55415. 8016c94: 2301 movs r3, #1
  55416. 8016c96: 76fb strb r3, [r7, #27]
  55417. 8016c98: e001 b.n 8016c9e <lwip_netconn_do_writemore+0x35e>
  55418. }
  55419. } else {
  55420. /* On errors != ERR_MEM, we don't try writing any more but return
  55421. the error to the application thread. */
  55422. write_finished = 1;
  55423. 8016c9a: 2301 movs r3, #1
  55424. 8016c9c: 76fb strb r3, [r7, #27]
  55425. }
  55426. }
  55427. if (write_finished) {
  55428. 8016c9e: 7efb ldrb r3, [r7, #27]
  55429. 8016ca0: 2b00 cmp r3, #0
  55430. 8016ca2: d015 beq.n 8016cd0 <lwip_netconn_do_writemore+0x390>
  55431. /* everything was written: set back connection state
  55432. and back to application task */
  55433. sys_sem_t *op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg);
  55434. 8016ca4: 687b ldr r3, [r7, #4]
  55435. 8016ca6: 6adb ldr r3, [r3, #44] @ 0x2c
  55436. 8016ca8: 681b ldr r3, [r3, #0]
  55437. 8016caa: 330c adds r3, #12
  55438. 8016cac: 60bb str r3, [r7, #8]
  55439. conn->current_msg->err = err;
  55440. 8016cae: 687b ldr r3, [r7, #4]
  55441. 8016cb0: 6adb ldr r3, [r3, #44] @ 0x2c
  55442. 8016cb2: 7ffa ldrb r2, [r7, #31]
  55443. 8016cb4: 711a strb r2, [r3, #4]
  55444. conn->current_msg = NULL;
  55445. 8016cb6: 687b ldr r3, [r7, #4]
  55446. 8016cb8: 2200 movs r2, #0
  55447. 8016cba: 62da str r2, [r3, #44] @ 0x2c
  55448. conn->state = NETCONN_NONE;
  55449. 8016cbc: 687b ldr r3, [r7, #4]
  55450. 8016cbe: 2200 movs r2, #0
  55451. 8016cc0: 705a strb r2, [r3, #1]
  55452. #if LWIP_TCPIP_CORE_LOCKING
  55453. if (delayed)
  55454. 8016cc2: 78fb ldrb r3, [r7, #3]
  55455. 8016cc4: 2b00 cmp r3, #0
  55456. 8016cc6: d006 beq.n 8016cd6 <lwip_netconn_do_writemore+0x396>
  55457. #endif
  55458. {
  55459. sys_sem_signal(op_completed_sem);
  55460. 8016cc8: 68b8 ldr r0, [r7, #8]
  55461. 8016cca: f00f f8f3 bl 8025eb4 <sys_sem_signal>
  55462. 8016cce: e002 b.n 8016cd6 <lwip_netconn_do_writemore+0x396>
  55463. }
  55464. }
  55465. #if LWIP_TCPIP_CORE_LOCKING
  55466. else {
  55467. return ERR_MEM;
  55468. 8016cd0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  55469. 8016cd4: e000 b.n 8016cd8 <lwip_netconn_do_writemore+0x398>
  55470. }
  55471. #endif
  55472. return ERR_OK;
  55473. 8016cd6: 2300 movs r3, #0
  55474. }
  55475. 8016cd8: 4618 mov r0, r3
  55476. 8016cda: 3720 adds r7, #32
  55477. 8016cdc: 46bd mov sp, r7
  55478. 8016cde: bd80 pop {r7, pc}
  55479. 08016ce0 <lwip_netconn_do_write>:
  55480. *
  55481. * @param m the api_msg pointing to the connection
  55482. */
  55483. void
  55484. lwip_netconn_do_write(void *m)
  55485. {
  55486. 8016ce0: b580 push {r7, lr}
  55487. 8016ce2: b084 sub sp, #16
  55488. 8016ce4: af00 add r7, sp, #0
  55489. 8016ce6: 6078 str r0, [r7, #4]
  55490. struct api_msg *msg = (struct api_msg *)m;
  55491. 8016ce8: 687b ldr r3, [r7, #4]
  55492. 8016cea: 60bb str r3, [r7, #8]
  55493. err_t err = netconn_err(msg->conn);
  55494. 8016cec: 68bb ldr r3, [r7, #8]
  55495. 8016cee: 681b ldr r3, [r3, #0]
  55496. 8016cf0: 4618 mov r0, r3
  55497. 8016cf2: f7fe fca7 bl 8015644 <netconn_err>
  55498. 8016cf6: 4603 mov r3, r0
  55499. 8016cf8: 73fb strb r3, [r7, #15]
  55500. if (err == ERR_OK) {
  55501. 8016cfa: f997 300f ldrsb.w r3, [r7, #15]
  55502. 8016cfe: 2b00 cmp r3, #0
  55503. 8016d00: d164 bne.n 8016dcc <lwip_netconn_do_write+0xec>
  55504. if (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP) {
  55505. 8016d02: 68bb ldr r3, [r7, #8]
  55506. 8016d04: 681b ldr r3, [r3, #0]
  55507. 8016d06: 781b ldrb r3, [r3, #0]
  55508. 8016d08: f003 03f0 and.w r3, r3, #240 @ 0xf0
  55509. 8016d0c: 2b10 cmp r3, #16
  55510. 8016d0e: d15b bne.n 8016dc8 <lwip_netconn_do_write+0xe8>
  55511. #if LWIP_TCP
  55512. if (msg->conn->state != NETCONN_NONE) {
  55513. 8016d10: 68bb ldr r3, [r7, #8]
  55514. 8016d12: 681b ldr r3, [r3, #0]
  55515. 8016d14: 785b ldrb r3, [r3, #1]
  55516. 8016d16: 2b00 cmp r3, #0
  55517. 8016d18: d002 beq.n 8016d20 <lwip_netconn_do_write+0x40>
  55518. /* netconn is connecting, closing or in blocking write */
  55519. err = ERR_INPROGRESS;
  55520. 8016d1a: 23fb movs r3, #251 @ 0xfb
  55521. 8016d1c: 73fb strb r3, [r7, #15]
  55522. 8016d1e: e055 b.n 8016dcc <lwip_netconn_do_write+0xec>
  55523. } else if (msg->conn->pcb.tcp != NULL) {
  55524. 8016d20: 68bb ldr r3, [r7, #8]
  55525. 8016d22: 681b ldr r3, [r3, #0]
  55526. 8016d24: 685b ldr r3, [r3, #4]
  55527. 8016d26: 2b00 cmp r3, #0
  55528. 8016d28: d04b beq.n 8016dc2 <lwip_netconn_do_write+0xe2>
  55529. msg->conn->state = NETCONN_WRITE;
  55530. 8016d2a: 68bb ldr r3, [r7, #8]
  55531. 8016d2c: 681b ldr r3, [r3, #0]
  55532. 8016d2e: 2201 movs r2, #1
  55533. 8016d30: 705a strb r2, [r3, #1]
  55534. /* set all the variables used by lwip_netconn_do_writemore */
  55535. LWIP_ASSERT("already writing or closing", msg->conn->current_msg == NULL);
  55536. 8016d32: 68bb ldr r3, [r7, #8]
  55537. 8016d34: 681b ldr r3, [r3, #0]
  55538. 8016d36: 6adb ldr r3, [r3, #44] @ 0x2c
  55539. 8016d38: 2b00 cmp r3, #0
  55540. 8016d3a: d006 beq.n 8016d4a <lwip_netconn_do_write+0x6a>
  55541. 8016d3c: 4b27 ldr r3, [pc, #156] @ (8016ddc <lwip_netconn_do_write+0xfc>)
  55542. 8016d3e: f240 7223 movw r2, #1827 @ 0x723
  55543. 8016d42: 4927 ldr r1, [pc, #156] @ (8016de0 <lwip_netconn_do_write+0x100>)
  55544. 8016d44: 4827 ldr r0, [pc, #156] @ (8016de4 <lwip_netconn_do_write+0x104>)
  55545. 8016d46: f012 fbe1 bl 802950c <iprintf>
  55546. LWIP_ASSERT("msg->msg.w.len != 0", msg->msg.w.len != 0);
  55547. 8016d4a: 68bb ldr r3, [r7, #8]
  55548. 8016d4c: 695b ldr r3, [r3, #20]
  55549. 8016d4e: 2b00 cmp r3, #0
  55550. 8016d50: d106 bne.n 8016d60 <lwip_netconn_do_write+0x80>
  55551. 8016d52: 4b22 ldr r3, [pc, #136] @ (8016ddc <lwip_netconn_do_write+0xfc>)
  55552. 8016d54: f240 7224 movw r2, #1828 @ 0x724
  55553. 8016d58: 4923 ldr r1, [pc, #140] @ (8016de8 <lwip_netconn_do_write+0x108>)
  55554. 8016d5a: 4822 ldr r0, [pc, #136] @ (8016de4 <lwip_netconn_do_write+0x104>)
  55555. 8016d5c: f012 fbd6 bl 802950c <iprintf>
  55556. msg->conn->current_msg = msg;
  55557. 8016d60: 68bb ldr r3, [r7, #8]
  55558. 8016d62: 681b ldr r3, [r3, #0]
  55559. 8016d64: 68ba ldr r2, [r7, #8]
  55560. 8016d66: 62da str r2, [r3, #44] @ 0x2c
  55561. #if LWIP_TCPIP_CORE_LOCKING
  55562. if (lwip_netconn_do_writemore(msg->conn, 0) != ERR_OK) {
  55563. 8016d68: 68bb ldr r3, [r7, #8]
  55564. 8016d6a: 681b ldr r3, [r3, #0]
  55565. 8016d6c: 2100 movs r1, #0
  55566. 8016d6e: 4618 mov r0, r3
  55567. 8016d70: f7ff fde6 bl 8016940 <lwip_netconn_do_writemore>
  55568. 8016d74: 4603 mov r3, r0
  55569. 8016d76: 2b00 cmp r3, #0
  55570. 8016d78: d02c beq.n 8016dd4 <lwip_netconn_do_write+0xf4>
  55571. LWIP_ASSERT("state!", msg->conn->state == NETCONN_WRITE);
  55572. 8016d7a: 68bb ldr r3, [r7, #8]
  55573. 8016d7c: 681b ldr r3, [r3, #0]
  55574. 8016d7e: 785b ldrb r3, [r3, #1]
  55575. 8016d80: 2b01 cmp r3, #1
  55576. 8016d82: d006 beq.n 8016d92 <lwip_netconn_do_write+0xb2>
  55577. 8016d84: 4b15 ldr r3, [pc, #84] @ (8016ddc <lwip_netconn_do_write+0xfc>)
  55578. 8016d86: f44f 62e5 mov.w r2, #1832 @ 0x728
  55579. 8016d8a: 4918 ldr r1, [pc, #96] @ (8016dec <lwip_netconn_do_write+0x10c>)
  55580. 8016d8c: 4815 ldr r0, [pc, #84] @ (8016de4 <lwip_netconn_do_write+0x104>)
  55581. 8016d8e: f012 fbbd bl 802950c <iprintf>
  55582. UNLOCK_TCPIP_CORE();
  55583. 8016d92: f7f9 f95f bl 8010054 <sys_unlock_tcpip_core>
  55584. sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0);
  55585. 8016d96: 68bb ldr r3, [r7, #8]
  55586. 8016d98: 681b ldr r3, [r3, #0]
  55587. 8016d9a: 330c adds r3, #12
  55588. 8016d9c: 2100 movs r1, #0
  55589. 8016d9e: 4618 mov r0, r3
  55590. 8016da0: f00f f857 bl 8025e52 <sys_arch_sem_wait>
  55591. LOCK_TCPIP_CORE();
  55592. 8016da4: f7f9 f946 bl 8010034 <sys_lock_tcpip_core>
  55593. LWIP_ASSERT("state!", msg->conn->state != NETCONN_WRITE);
  55594. 8016da8: 68bb ldr r3, [r7, #8]
  55595. 8016daa: 681b ldr r3, [r3, #0]
  55596. 8016dac: 785b ldrb r3, [r3, #1]
  55597. 8016dae: 2b01 cmp r3, #1
  55598. 8016db0: d110 bne.n 8016dd4 <lwip_netconn_do_write+0xf4>
  55599. 8016db2: 4b0a ldr r3, [pc, #40] @ (8016ddc <lwip_netconn_do_write+0xfc>)
  55600. 8016db4: f240 722c movw r2, #1836 @ 0x72c
  55601. 8016db8: 490c ldr r1, [pc, #48] @ (8016dec <lwip_netconn_do_write+0x10c>)
  55602. 8016dba: 480a ldr r0, [pc, #40] @ (8016de4 <lwip_netconn_do_write+0x104>)
  55603. 8016dbc: f012 fba6 bl 802950c <iprintf>
  55604. #else /* LWIP_TCPIP_CORE_LOCKING */
  55605. lwip_netconn_do_writemore(msg->conn);
  55606. #endif /* LWIP_TCPIP_CORE_LOCKING */
  55607. /* for both cases: if lwip_netconn_do_writemore was called, don't ACK the APIMSG
  55608. since lwip_netconn_do_writemore ACKs it! */
  55609. return;
  55610. 8016dc0: e008 b.n 8016dd4 <lwip_netconn_do_write+0xf4>
  55611. } else {
  55612. err = ERR_CONN;
  55613. 8016dc2: 23f5 movs r3, #245 @ 0xf5
  55614. 8016dc4: 73fb strb r3, [r7, #15]
  55615. 8016dc6: e001 b.n 8016dcc <lwip_netconn_do_write+0xec>
  55616. #else /* LWIP_TCP */
  55617. err = ERR_VAL;
  55618. #endif /* LWIP_TCP */
  55619. #if (LWIP_UDP || LWIP_RAW)
  55620. } else {
  55621. err = ERR_VAL;
  55622. 8016dc8: 23fa movs r3, #250 @ 0xfa
  55623. 8016dca: 73fb strb r3, [r7, #15]
  55624. #endif /* (LWIP_UDP || LWIP_RAW) */
  55625. }
  55626. }
  55627. msg->err = err;
  55628. 8016dcc: 68bb ldr r3, [r7, #8]
  55629. 8016dce: 7bfa ldrb r2, [r7, #15]
  55630. 8016dd0: 711a strb r2, [r3, #4]
  55631. 8016dd2: e000 b.n 8016dd6 <lwip_netconn_do_write+0xf6>
  55632. return;
  55633. 8016dd4: bf00 nop
  55634. TCPIP_APIMSG_ACK(msg);
  55635. }
  55636. 8016dd6: 3710 adds r7, #16
  55637. 8016dd8: 46bd mov sp, r7
  55638. 8016dda: bd80 pop {r7, pc}
  55639. 8016ddc: 0802ca70 .word 0x0802ca70
  55640. 8016de0: 0802ce14 .word 0x0802ce14
  55641. 8016de4: 0802cab4 .word 0x0802cab4
  55642. 8016de8: 0802cf9c .word 0x0802cf9c
  55643. 8016dec: 0802ce30 .word 0x0802ce30
  55644. 08016df0 <lwip_netconn_do_getaddr>:
  55645. *
  55646. * @param m the api_msg pointing to the connection
  55647. */
  55648. void
  55649. lwip_netconn_do_getaddr(void *m)
  55650. {
  55651. 8016df0: b580 push {r7, lr}
  55652. 8016df2: b084 sub sp, #16
  55653. 8016df4: af00 add r7, sp, #0
  55654. 8016df6: 6078 str r0, [r7, #4]
  55655. struct api_msg *msg = (struct api_msg *)m;
  55656. 8016df8: 687b ldr r3, [r7, #4]
  55657. 8016dfa: 60fb str r3, [r7, #12]
  55658. if (msg->conn->pcb.ip != NULL) {
  55659. 8016dfc: 68fb ldr r3, [r7, #12]
  55660. 8016dfe: 681b ldr r3, [r3, #0]
  55661. 8016e00: 685b ldr r3, [r3, #4]
  55662. 8016e02: 2b00 cmp r3, #0
  55663. 8016e04: d06b beq.n 8016ede <lwip_netconn_do_getaddr+0xee>
  55664. if (msg->msg.ad.local) {
  55665. 8016e06: 68fb ldr r3, [r7, #12]
  55666. 8016e08: 7c1b ldrb r3, [r3, #16]
  55667. 8016e0a: 2b00 cmp r3, #0
  55668. 8016e0c: d007 beq.n 8016e1e <lwip_netconn_do_getaddr+0x2e>
  55669. ip_addr_copy(API_EXPR_DEREF(msg->msg.ad.ipaddr),
  55670. 8016e0e: 68fb ldr r3, [r7, #12]
  55671. 8016e10: 681b ldr r3, [r3, #0]
  55672. 8016e12: 685a ldr r2, [r3, #4]
  55673. 8016e14: 68fb ldr r3, [r7, #12]
  55674. 8016e16: 689b ldr r3, [r3, #8]
  55675. 8016e18: 6812 ldr r2, [r2, #0]
  55676. 8016e1a: 601a str r2, [r3, #0]
  55677. 8016e1c: e006 b.n 8016e2c <lwip_netconn_do_getaddr+0x3c>
  55678. msg->conn->pcb.ip->local_ip);
  55679. } else {
  55680. ip_addr_copy(API_EXPR_DEREF(msg->msg.ad.ipaddr),
  55681. 8016e1e: 68fb ldr r3, [r7, #12]
  55682. 8016e20: 681b ldr r3, [r3, #0]
  55683. 8016e22: 685a ldr r2, [r3, #4]
  55684. 8016e24: 68fb ldr r3, [r7, #12]
  55685. 8016e26: 689b ldr r3, [r3, #8]
  55686. 8016e28: 6852 ldr r2, [r2, #4]
  55687. 8016e2a: 601a str r2, [r3, #0]
  55688. msg->conn->pcb.ip->remote_ip);
  55689. }
  55690. msg->err = ERR_OK;
  55691. 8016e2c: 68fb ldr r3, [r7, #12]
  55692. 8016e2e: 2200 movs r2, #0
  55693. 8016e30: 711a strb r2, [r3, #4]
  55694. switch (NETCONNTYPE_GROUP(msg->conn->type)) {
  55695. 8016e32: 68fb ldr r3, [r7, #12]
  55696. 8016e34: 681b ldr r3, [r3, #0]
  55697. 8016e36: 781b ldrb r3, [r3, #0]
  55698. 8016e38: f003 03f0 and.w r3, r3, #240 @ 0xf0
  55699. 8016e3c: 2b10 cmp r3, #16
  55700. 8016e3e: d021 beq.n 8016e84 <lwip_netconn_do_getaddr+0x94>
  55701. 8016e40: 2b20 cmp r3, #32
  55702. 8016e42: d144 bne.n 8016ece <lwip_netconn_do_getaddr+0xde>
  55703. }
  55704. break;
  55705. #endif /* LWIP_RAW */
  55706. #if LWIP_UDP
  55707. case NETCONN_UDP:
  55708. if (msg->msg.ad.local) {
  55709. 8016e44: 68fb ldr r3, [r7, #12]
  55710. 8016e46: 7c1b ldrb r3, [r3, #16]
  55711. 8016e48: 2b00 cmp r3, #0
  55712. 8016e4a: d007 beq.n 8016e5c <lwip_netconn_do_getaddr+0x6c>
  55713. API_EXPR_DEREF(msg->msg.ad.port) = msg->conn->pcb.udp->local_port;
  55714. 8016e4c: 68fb ldr r3, [r7, #12]
  55715. 8016e4e: 681b ldr r3, [r3, #0]
  55716. 8016e50: 685a ldr r2, [r3, #4]
  55717. 8016e52: 68fb ldr r3, [r7, #12]
  55718. 8016e54: 68db ldr r3, [r3, #12]
  55719. 8016e56: 8a52 ldrh r2, [r2, #18]
  55720. 8016e58: 801a strh r2, [r3, #0]
  55721. msg->err = ERR_CONN;
  55722. } else {
  55723. API_EXPR_DEREF(msg->msg.ad.port) = msg->conn->pcb.udp->remote_port;
  55724. }
  55725. }
  55726. break;
  55727. 8016e5a: e044 b.n 8016ee6 <lwip_netconn_do_getaddr+0xf6>
  55728. if ((msg->conn->pcb.udp->flags & UDP_FLAGS_CONNECTED) == 0) {
  55729. 8016e5c: 68fb ldr r3, [r7, #12]
  55730. 8016e5e: 681b ldr r3, [r3, #0]
  55731. 8016e60: 685b ldr r3, [r3, #4]
  55732. 8016e62: 7c1b ldrb r3, [r3, #16]
  55733. 8016e64: f003 0304 and.w r3, r3, #4
  55734. 8016e68: 2b00 cmp r3, #0
  55735. 8016e6a: d103 bne.n 8016e74 <lwip_netconn_do_getaddr+0x84>
  55736. msg->err = ERR_CONN;
  55737. 8016e6c: 68fb ldr r3, [r7, #12]
  55738. 8016e6e: 22f5 movs r2, #245 @ 0xf5
  55739. 8016e70: 711a strb r2, [r3, #4]
  55740. break;
  55741. 8016e72: e038 b.n 8016ee6 <lwip_netconn_do_getaddr+0xf6>
  55742. API_EXPR_DEREF(msg->msg.ad.port) = msg->conn->pcb.udp->remote_port;
  55743. 8016e74: 68fb ldr r3, [r7, #12]
  55744. 8016e76: 681b ldr r3, [r3, #0]
  55745. 8016e78: 685a ldr r2, [r3, #4]
  55746. 8016e7a: 68fb ldr r3, [r7, #12]
  55747. 8016e7c: 68db ldr r3, [r3, #12]
  55748. 8016e7e: 8a92 ldrh r2, [r2, #20]
  55749. 8016e80: 801a strh r2, [r3, #0]
  55750. break;
  55751. 8016e82: e030 b.n 8016ee6 <lwip_netconn_do_getaddr+0xf6>
  55752. #endif /* LWIP_UDP */
  55753. #if LWIP_TCP
  55754. case NETCONN_TCP:
  55755. if ((msg->msg.ad.local == 0) &&
  55756. 8016e84: 68fb ldr r3, [r7, #12]
  55757. 8016e86: 7c1b ldrb r3, [r3, #16]
  55758. 8016e88: 2b00 cmp r3, #0
  55759. 8016e8a: d10f bne.n 8016eac <lwip_netconn_do_getaddr+0xbc>
  55760. ((msg->conn->pcb.tcp->state == CLOSED) || (msg->conn->pcb.tcp->state == LISTEN))) {
  55761. 8016e8c: 68fb ldr r3, [r7, #12]
  55762. 8016e8e: 681b ldr r3, [r3, #0]
  55763. 8016e90: 685b ldr r3, [r3, #4]
  55764. 8016e92: 7d1b ldrb r3, [r3, #20]
  55765. if ((msg->msg.ad.local == 0) &&
  55766. 8016e94: 2b00 cmp r3, #0
  55767. 8016e96: d005 beq.n 8016ea4 <lwip_netconn_do_getaddr+0xb4>
  55768. ((msg->conn->pcb.tcp->state == CLOSED) || (msg->conn->pcb.tcp->state == LISTEN))) {
  55769. 8016e98: 68fb ldr r3, [r7, #12]
  55770. 8016e9a: 681b ldr r3, [r3, #0]
  55771. 8016e9c: 685b ldr r3, [r3, #4]
  55772. 8016e9e: 7d1b ldrb r3, [r3, #20]
  55773. 8016ea0: 2b01 cmp r3, #1
  55774. 8016ea2: d103 bne.n 8016eac <lwip_netconn_do_getaddr+0xbc>
  55775. /* pcb is not connected and remote name is requested */
  55776. msg->err = ERR_CONN;
  55777. 8016ea4: 68fb ldr r3, [r7, #12]
  55778. 8016ea6: 22f5 movs r2, #245 @ 0xf5
  55779. 8016ea8: 711a strb r2, [r3, #4]
  55780. } else {
  55781. API_EXPR_DEREF(msg->msg.ad.port) = (msg->msg.ad.local ? msg->conn->pcb.tcp->local_port : msg->conn->pcb.tcp->remote_port);
  55782. }
  55783. break;
  55784. 8016eaa: e01c b.n 8016ee6 <lwip_netconn_do_getaddr+0xf6>
  55785. API_EXPR_DEREF(msg->msg.ad.port) = (msg->msg.ad.local ? msg->conn->pcb.tcp->local_port : msg->conn->pcb.tcp->remote_port);
  55786. 8016eac: 68fb ldr r3, [r7, #12]
  55787. 8016eae: 7c1b ldrb r3, [r3, #16]
  55788. 8016eb0: 2b00 cmp r3, #0
  55789. 8016eb2: d004 beq.n 8016ebe <lwip_netconn_do_getaddr+0xce>
  55790. 8016eb4: 68fb ldr r3, [r7, #12]
  55791. 8016eb6: 681b ldr r3, [r3, #0]
  55792. 8016eb8: 685b ldr r3, [r3, #4]
  55793. 8016eba: 8adb ldrh r3, [r3, #22]
  55794. 8016ebc: e003 b.n 8016ec6 <lwip_netconn_do_getaddr+0xd6>
  55795. 8016ebe: 68fb ldr r3, [r7, #12]
  55796. 8016ec0: 681b ldr r3, [r3, #0]
  55797. 8016ec2: 685b ldr r3, [r3, #4]
  55798. 8016ec4: 8b1b ldrh r3, [r3, #24]
  55799. 8016ec6: 68fa ldr r2, [r7, #12]
  55800. 8016ec8: 68d2 ldr r2, [r2, #12]
  55801. 8016eca: 8013 strh r3, [r2, #0]
  55802. break;
  55803. 8016ecc: e00b b.n 8016ee6 <lwip_netconn_do_getaddr+0xf6>
  55804. #endif /* LWIP_TCP */
  55805. default:
  55806. LWIP_ASSERT("invalid netconn_type", 0);
  55807. 8016ece: 4b08 ldr r3, [pc, #32] @ (8016ef0 <lwip_netconn_do_getaddr+0x100>)
  55808. 8016ed0: f240 727d movw r2, #1917 @ 0x77d
  55809. 8016ed4: 4907 ldr r1, [pc, #28] @ (8016ef4 <lwip_netconn_do_getaddr+0x104>)
  55810. 8016ed6: 4808 ldr r0, [pc, #32] @ (8016ef8 <lwip_netconn_do_getaddr+0x108>)
  55811. 8016ed8: f012 fb18 bl 802950c <iprintf>
  55812. break;
  55813. 8016edc: e003 b.n 8016ee6 <lwip_netconn_do_getaddr+0xf6>
  55814. }
  55815. } else {
  55816. msg->err = ERR_CONN;
  55817. 8016ede: 68fb ldr r3, [r7, #12]
  55818. 8016ee0: 22f5 movs r2, #245 @ 0xf5
  55819. 8016ee2: 711a strb r2, [r3, #4]
  55820. }
  55821. TCPIP_APIMSG_ACK(msg);
  55822. }
  55823. 8016ee4: bf00 nop
  55824. 8016ee6: bf00 nop
  55825. 8016ee8: 3710 adds r7, #16
  55826. 8016eea: 46bd mov sp, r7
  55827. 8016eec: bd80 pop {r7, pc}
  55828. 8016eee: bf00 nop
  55829. 8016ef0: 0802ca70 .word 0x0802ca70
  55830. 8016ef4: 0802cfb0 .word 0x0802cfb0
  55831. 8016ef8: 0802cab4 .word 0x0802cab4
  55832. 08016efc <lwip_netconn_do_close>:
  55833. *
  55834. * @param m the api_msg pointing to the connection
  55835. */
  55836. void
  55837. lwip_netconn_do_close(void *m)
  55838. {
  55839. 8016efc: b580 push {r7, lr}
  55840. 8016efe: b084 sub sp, #16
  55841. 8016f00: af00 add r7, sp, #0
  55842. 8016f02: 6078 str r0, [r7, #4]
  55843. struct api_msg *msg = (struct api_msg *)m;
  55844. 8016f04: 687b ldr r3, [r7, #4]
  55845. 8016f06: 60fb str r3, [r7, #12]
  55846. #if LWIP_TCP
  55847. enum netconn_state state = msg->conn->state;
  55848. 8016f08: 68fb ldr r3, [r7, #12]
  55849. 8016f0a: 681b ldr r3, [r3, #0]
  55850. 8016f0c: 785b ldrb r3, [r3, #1]
  55851. 8016f0e: 72fb strb r3, [r7, #11]
  55852. /* First check if this is a TCP netconn and if it is in a correct state
  55853. (LISTEN doesn't support half shutdown) */
  55854. if ((msg->conn->pcb.tcp != NULL) &&
  55855. 8016f10: 68fb ldr r3, [r7, #12]
  55856. 8016f12: 681b ldr r3, [r3, #0]
  55857. 8016f14: 685b ldr r3, [r3, #4]
  55858. 8016f16: 2b00 cmp r3, #0
  55859. 8016f18: d067 beq.n 8016fea <lwip_netconn_do_close+0xee>
  55860. (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP) &&
  55861. 8016f1a: 68fb ldr r3, [r7, #12]
  55862. 8016f1c: 681b ldr r3, [r3, #0]
  55863. 8016f1e: 781b ldrb r3, [r3, #0]
  55864. 8016f20: f003 03f0 and.w r3, r3, #240 @ 0xf0
  55865. if ((msg->conn->pcb.tcp != NULL) &&
  55866. 8016f24: 2b10 cmp r3, #16
  55867. 8016f26: d160 bne.n 8016fea <lwip_netconn_do_close+0xee>
  55868. ((msg->msg.sd.shut == NETCONN_SHUT_RDWR) || (state != NETCONN_LISTEN))) {
  55869. 8016f28: 68fb ldr r3, [r7, #12]
  55870. 8016f2a: 7a1b ldrb r3, [r3, #8]
  55871. (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP) &&
  55872. 8016f2c: 2b03 cmp r3, #3
  55873. 8016f2e: d002 beq.n 8016f36 <lwip_netconn_do_close+0x3a>
  55874. ((msg->msg.sd.shut == NETCONN_SHUT_RDWR) || (state != NETCONN_LISTEN))) {
  55875. 8016f30: 7afb ldrb r3, [r7, #11]
  55876. 8016f32: 2b02 cmp r3, #2
  55877. 8016f34: d059 beq.n 8016fea <lwip_netconn_do_close+0xee>
  55878. /* Check if we are in a connected state */
  55879. if (state == NETCONN_CONNECT) {
  55880. 8016f36: 7afb ldrb r3, [r7, #11]
  55881. 8016f38: 2b03 cmp r3, #3
  55882. 8016f3a: d103 bne.n 8016f44 <lwip_netconn_do_close+0x48>
  55883. /* TCP connect in progress: cannot shutdown */
  55884. msg->err = ERR_CONN;
  55885. 8016f3c: 68fb ldr r3, [r7, #12]
  55886. 8016f3e: 22f5 movs r2, #245 @ 0xf5
  55887. 8016f40: 711a strb r2, [r3, #4]
  55888. if (state == NETCONN_CONNECT) {
  55889. 8016f42: e057 b.n 8016ff4 <lwip_netconn_do_close+0xf8>
  55890. } else if (state == NETCONN_WRITE) {
  55891. 8016f44: 7afb ldrb r3, [r7, #11]
  55892. 8016f46: 2b01 cmp r3, #1
  55893. 8016f48: d103 bne.n 8016f52 <lwip_netconn_do_close+0x56>
  55894. msg->err = tcp_shutdown(msg->conn->pcb.tcp, 1, 0);
  55895. }
  55896. }
  55897. if (state == NETCONN_NONE) {
  55898. #else /* LWIP_NETCONN_FULLDUPLEX */
  55899. msg->err = ERR_INPROGRESS;
  55900. 8016f4a: 68fb ldr r3, [r7, #12]
  55901. 8016f4c: 22fb movs r2, #251 @ 0xfb
  55902. 8016f4e: 711a strb r2, [r3, #4]
  55903. if (state == NETCONN_CONNECT) {
  55904. 8016f50: e050 b.n 8016ff4 <lwip_netconn_do_close+0xf8>
  55905. } else {
  55906. #endif /* LWIP_NETCONN_FULLDUPLEX */
  55907. if (msg->msg.sd.shut & NETCONN_SHUT_RD) {
  55908. 8016f52: 68fb ldr r3, [r7, #12]
  55909. 8016f54: 7a1b ldrb r3, [r3, #8]
  55910. 8016f56: f003 0301 and.w r3, r3, #1
  55911. 8016f5a: 2b00 cmp r3, #0
  55912. 8016f5c: d004 beq.n 8016f68 <lwip_netconn_do_close+0x6c>
  55913. #if LWIP_NETCONN_FULLDUPLEX
  55914. /* Mark mboxes invalid */
  55915. netconn_mark_mbox_invalid(msg->conn);
  55916. #else /* LWIP_NETCONN_FULLDUPLEX */
  55917. netconn_drain(msg->conn);
  55918. 8016f5e: 68fb ldr r3, [r7, #12]
  55919. 8016f60: 681b ldr r3, [r3, #0]
  55920. 8016f62: 4618 mov r0, r3
  55921. 8016f64: f7ff f82e bl 8015fc4 <netconn_drain>
  55922. #endif /* LWIP_NETCONN_FULLDUPLEX */
  55923. }
  55924. LWIP_ASSERT("already writing or closing", msg->conn->current_msg == NULL);
  55925. 8016f68: 68fb ldr r3, [r7, #12]
  55926. 8016f6a: 681b ldr r3, [r3, #0]
  55927. 8016f6c: 6adb ldr r3, [r3, #44] @ 0x2c
  55928. 8016f6e: 2b00 cmp r3, #0
  55929. 8016f70: d006 beq.n 8016f80 <lwip_netconn_do_close+0x84>
  55930. 8016f72: 4b22 ldr r3, [pc, #136] @ (8016ffc <lwip_netconn_do_close+0x100>)
  55931. 8016f74: f240 72bd movw r2, #1981 @ 0x7bd
  55932. 8016f78: 4921 ldr r1, [pc, #132] @ (8017000 <lwip_netconn_do_close+0x104>)
  55933. 8016f7a: 4822 ldr r0, [pc, #136] @ (8017004 <lwip_netconn_do_close+0x108>)
  55934. 8016f7c: f012 fac6 bl 802950c <iprintf>
  55935. msg->conn->state = NETCONN_CLOSE;
  55936. 8016f80: 68fb ldr r3, [r7, #12]
  55937. 8016f82: 681b ldr r3, [r3, #0]
  55938. 8016f84: 2204 movs r2, #4
  55939. 8016f86: 705a strb r2, [r3, #1]
  55940. msg->conn->current_msg = msg;
  55941. 8016f88: 68fb ldr r3, [r7, #12]
  55942. 8016f8a: 681b ldr r3, [r3, #0]
  55943. 8016f8c: 68fa ldr r2, [r7, #12]
  55944. 8016f8e: 62da str r2, [r3, #44] @ 0x2c
  55945. #if LWIP_TCPIP_CORE_LOCKING
  55946. if (lwip_netconn_do_close_internal(msg->conn, 0) != ERR_OK) {
  55947. 8016f90: 68fb ldr r3, [r7, #12]
  55948. 8016f92: 681b ldr r3, [r3, #0]
  55949. 8016f94: 2100 movs r1, #0
  55950. 8016f96: 4618 mov r0, r3
  55951. 8016f98: f7ff f892 bl 80160c0 <lwip_netconn_do_close_internal>
  55952. 8016f9c: 4603 mov r3, r0
  55953. 8016f9e: 2b00 cmp r3, #0
  55954. 8016fa0: d027 beq.n 8016ff2 <lwip_netconn_do_close+0xf6>
  55955. LWIP_ASSERT("state!", msg->conn->state == NETCONN_CLOSE);
  55956. 8016fa2: 68fb ldr r3, [r7, #12]
  55957. 8016fa4: 681b ldr r3, [r3, #0]
  55958. 8016fa6: 785b ldrb r3, [r3, #1]
  55959. 8016fa8: 2b04 cmp r3, #4
  55960. 8016faa: d006 beq.n 8016fba <lwip_netconn_do_close+0xbe>
  55961. 8016fac: 4b13 ldr r3, [pc, #76] @ (8016ffc <lwip_netconn_do_close+0x100>)
  55962. 8016fae: f240 72c2 movw r2, #1986 @ 0x7c2
  55963. 8016fb2: 4915 ldr r1, [pc, #84] @ (8017008 <lwip_netconn_do_close+0x10c>)
  55964. 8016fb4: 4813 ldr r0, [pc, #76] @ (8017004 <lwip_netconn_do_close+0x108>)
  55965. 8016fb6: f012 faa9 bl 802950c <iprintf>
  55966. UNLOCK_TCPIP_CORE();
  55967. 8016fba: f7f9 f84b bl 8010054 <sys_unlock_tcpip_core>
  55968. sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0);
  55969. 8016fbe: 68fb ldr r3, [r7, #12]
  55970. 8016fc0: 681b ldr r3, [r3, #0]
  55971. 8016fc2: 330c adds r3, #12
  55972. 8016fc4: 2100 movs r1, #0
  55973. 8016fc6: 4618 mov r0, r3
  55974. 8016fc8: f00e ff43 bl 8025e52 <sys_arch_sem_wait>
  55975. LOCK_TCPIP_CORE();
  55976. 8016fcc: f7f9 f832 bl 8010034 <sys_lock_tcpip_core>
  55977. LWIP_ASSERT("state!", msg->conn->state == NETCONN_NONE);
  55978. 8016fd0: 68fb ldr r3, [r7, #12]
  55979. 8016fd2: 681b ldr r3, [r3, #0]
  55980. 8016fd4: 785b ldrb r3, [r3, #1]
  55981. 8016fd6: 2b00 cmp r3, #0
  55982. 8016fd8: d00b beq.n 8016ff2 <lwip_netconn_do_close+0xf6>
  55983. 8016fda: 4b08 ldr r3, [pc, #32] @ (8016ffc <lwip_netconn_do_close+0x100>)
  55984. 8016fdc: f240 72c6 movw r2, #1990 @ 0x7c6
  55985. 8016fe0: 4909 ldr r1, [pc, #36] @ (8017008 <lwip_netconn_do_close+0x10c>)
  55986. 8016fe2: 4808 ldr r0, [pc, #32] @ (8017004 <lwip_netconn_do_close+0x108>)
  55987. 8016fe4: f012 fa92 bl 802950c <iprintf>
  55988. }
  55989. #else /* LWIP_TCPIP_CORE_LOCKING */
  55990. lwip_netconn_do_close_internal(msg->conn);
  55991. #endif /* LWIP_TCPIP_CORE_LOCKING */
  55992. /* for tcp netconns, lwip_netconn_do_close_internal ACKs the message */
  55993. return;
  55994. 8016fe8: e003 b.n 8016ff2 <lwip_netconn_do_close+0xf6>
  55995. }
  55996. } else
  55997. #endif /* LWIP_TCP */
  55998. {
  55999. msg->err = ERR_CONN;
  56000. 8016fea: 68fb ldr r3, [r7, #12]
  56001. 8016fec: 22f5 movs r2, #245 @ 0xf5
  56002. 8016fee: 711a strb r2, [r3, #4]
  56003. 8016ff0: e000 b.n 8016ff4 <lwip_netconn_do_close+0xf8>
  56004. return;
  56005. 8016ff2: bf00 nop
  56006. }
  56007. TCPIP_APIMSG_ACK(msg);
  56008. }
  56009. 8016ff4: 3710 adds r7, #16
  56010. 8016ff6: 46bd mov sp, r7
  56011. 8016ff8: bd80 pop {r7, pc}
  56012. 8016ffa: bf00 nop
  56013. 8016ffc: 0802ca70 .word 0x0802ca70
  56014. 8017000: 0802ce14 .word 0x0802ce14
  56015. 8017004: 0802cab4 .word 0x0802cab4
  56016. 8017008: 0802ce30 .word 0x0802ce30
  56017. 0801700c <err_to_errno>:
  56018. EIO /* ERR_ARG -16 Illegal argument. */
  56019. };
  56020. int
  56021. err_to_errno(err_t err)
  56022. {
  56023. 801700c: b480 push {r7}
  56024. 801700e: b083 sub sp, #12
  56025. 8017010: af00 add r7, sp, #0
  56026. 8017012: 4603 mov r3, r0
  56027. 8017014: 71fb strb r3, [r7, #7]
  56028. if ((err > 0) || (-err >= (err_t)LWIP_ARRAYSIZE(err_to_errno_table))) {
  56029. 8017016: f997 3007 ldrsb.w r3, [r7, #7]
  56030. 801701a: 2b00 cmp r3, #0
  56031. 801701c: dc04 bgt.n 8017028 <err_to_errno+0x1c>
  56032. 801701e: f997 3007 ldrsb.w r3, [r7, #7]
  56033. 8017022: f113 0f10 cmn.w r3, #16
  56034. 8017026: da01 bge.n 801702c <err_to_errno+0x20>
  56035. return EIO;
  56036. 8017028: 2305 movs r3, #5
  56037. 801702a: e005 b.n 8017038 <err_to_errno+0x2c>
  56038. }
  56039. return err_to_errno_table[-err];
  56040. 801702c: f997 3007 ldrsb.w r3, [r7, #7]
  56041. 8017030: 425b negs r3, r3
  56042. 8017032: 4a04 ldr r2, [pc, #16] @ (8017044 <err_to_errno+0x38>)
  56043. 8017034: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  56044. }
  56045. 8017038: 4618 mov r0, r3
  56046. 801703a: 370c adds r7, #12
  56047. 801703c: 46bd mov sp, r7
  56048. 801703e: f85d 7b04 ldr.w r7, [sp], #4
  56049. 8017042: 4770 bx lr
  56050. 8017044: 0803060c .word 0x0803060c
  56051. 08017048 <netbuf_delete>:
  56052. *
  56053. * @param buf pointer to a netbuf allocated by netbuf_new()
  56054. */
  56055. void
  56056. netbuf_delete(struct netbuf *buf)
  56057. {
  56058. 8017048: b580 push {r7, lr}
  56059. 801704a: b082 sub sp, #8
  56060. 801704c: af00 add r7, sp, #0
  56061. 801704e: 6078 str r0, [r7, #4]
  56062. if (buf != NULL) {
  56063. 8017050: 687b ldr r3, [r7, #4]
  56064. 8017052: 2b00 cmp r3, #0
  56065. 8017054: d013 beq.n 801707e <netbuf_delete+0x36>
  56066. if (buf->p != NULL) {
  56067. 8017056: 687b ldr r3, [r7, #4]
  56068. 8017058: 681b ldr r3, [r3, #0]
  56069. 801705a: 2b00 cmp r3, #0
  56070. 801705c: d00b beq.n 8017076 <netbuf_delete+0x2e>
  56071. pbuf_free(buf->p);
  56072. 801705e: 687b ldr r3, [r7, #4]
  56073. 8017060: 681b ldr r3, [r3, #0]
  56074. 8017062: 4618 mov r0, r3
  56075. 8017064: f002 ffda bl 801a01c <pbuf_free>
  56076. buf->p = buf->ptr = NULL;
  56077. 8017068: 687b ldr r3, [r7, #4]
  56078. 801706a: 2200 movs r2, #0
  56079. 801706c: 605a str r2, [r3, #4]
  56080. 801706e: 687b ldr r3, [r7, #4]
  56081. 8017070: 685a ldr r2, [r3, #4]
  56082. 8017072: 687b ldr r3, [r7, #4]
  56083. 8017074: 601a str r2, [r3, #0]
  56084. }
  56085. memp_free(MEMP_NETBUF, buf);
  56086. 8017076: 6879 ldr r1, [r7, #4]
  56087. 8017078: 2006 movs r0, #6
  56088. 801707a: f002 f8e1 bl 8019240 <memp_free>
  56089. }
  56090. }
  56091. 801707e: bf00 nop
  56092. 8017080: 3708 adds r7, #8
  56093. 8017082: 46bd mov sp, r7
  56094. 8017084: bd80 pop {r7, pc}
  56095. ...
  56096. 08017088 <netbuf_free>:
  56097. *
  56098. * @param buf pointer to the netbuf which contains the packet buffer to free
  56099. */
  56100. void
  56101. netbuf_free(struct netbuf *buf)
  56102. {
  56103. 8017088: b580 push {r7, lr}
  56104. 801708a: b082 sub sp, #8
  56105. 801708c: af00 add r7, sp, #0
  56106. 801708e: 6078 str r0, [r7, #4]
  56107. LWIP_ERROR("netbuf_free: invalid buf", (buf != NULL), return;);
  56108. 8017090: 687b ldr r3, [r7, #4]
  56109. 8017092: 2b00 cmp r3, #0
  56110. 8017094: d106 bne.n 80170a4 <netbuf_free+0x1c>
  56111. 8017096: 4b0d ldr r3, [pc, #52] @ (80170cc <netbuf_free+0x44>)
  56112. 8017098: 2281 movs r2, #129 @ 0x81
  56113. 801709a: 490d ldr r1, [pc, #52] @ (80170d0 <netbuf_free+0x48>)
  56114. 801709c: 480d ldr r0, [pc, #52] @ (80170d4 <netbuf_free+0x4c>)
  56115. 801709e: f012 fa35 bl 802950c <iprintf>
  56116. 80170a2: e00f b.n 80170c4 <netbuf_free+0x3c>
  56117. if (buf->p != NULL) {
  56118. 80170a4: 687b ldr r3, [r7, #4]
  56119. 80170a6: 681b ldr r3, [r3, #0]
  56120. 80170a8: 2b00 cmp r3, #0
  56121. 80170aa: d004 beq.n 80170b6 <netbuf_free+0x2e>
  56122. pbuf_free(buf->p);
  56123. 80170ac: 687b ldr r3, [r7, #4]
  56124. 80170ae: 681b ldr r3, [r3, #0]
  56125. 80170b0: 4618 mov r0, r3
  56126. 80170b2: f002 ffb3 bl 801a01c <pbuf_free>
  56127. }
  56128. buf->p = buf->ptr = NULL;
  56129. 80170b6: 687b ldr r3, [r7, #4]
  56130. 80170b8: 2200 movs r2, #0
  56131. 80170ba: 605a str r2, [r3, #4]
  56132. 80170bc: 687b ldr r3, [r7, #4]
  56133. 80170be: 685a ldr r2, [r3, #4]
  56134. 80170c0: 687b ldr r3, [r7, #4]
  56135. 80170c2: 601a str r2, [r3, #0]
  56136. #if LWIP_CHECKSUM_ON_COPY
  56137. buf->flags = 0;
  56138. buf->toport_chksum = 0;
  56139. #endif /* LWIP_CHECKSUM_ON_COPY */
  56140. }
  56141. 80170c4: 3708 adds r7, #8
  56142. 80170c6: 46bd mov sp, r7
  56143. 80170c8: bd80 pop {r7, pc}
  56144. 80170ca: bf00 nop
  56145. 80170cc: 0802cfc8 .word 0x0802cfc8
  56146. 80170d0: 0802d064 .word 0x0802d064
  56147. 80170d4: 0802d018 .word 0x0802d018
  56148. 080170d8 <netbuf_ref>:
  56149. * @return ERR_OK if data is referenced
  56150. * ERR_MEM if data couldn't be referenced due to lack of memory
  56151. */
  56152. err_t
  56153. netbuf_ref(struct netbuf *buf, const void *dataptr, u16_t size)
  56154. {
  56155. 80170d8: b580 push {r7, lr}
  56156. 80170da: b084 sub sp, #16
  56157. 80170dc: af00 add r7, sp, #0
  56158. 80170de: 60f8 str r0, [r7, #12]
  56159. 80170e0: 60b9 str r1, [r7, #8]
  56160. 80170e2: 4613 mov r3, r2
  56161. 80170e4: 80fb strh r3, [r7, #6]
  56162. LWIP_ERROR("netbuf_ref: invalid buf", (buf != NULL), return ERR_ARG;);
  56163. 80170e6: 68fb ldr r3, [r7, #12]
  56164. 80170e8: 2b00 cmp r3, #0
  56165. 80170ea: d108 bne.n 80170fe <netbuf_ref+0x26>
  56166. 80170ec: 4b1c ldr r3, [pc, #112] @ (8017160 <netbuf_ref+0x88>)
  56167. 80170ee: 2299 movs r2, #153 @ 0x99
  56168. 80170f0: 491c ldr r1, [pc, #112] @ (8017164 <netbuf_ref+0x8c>)
  56169. 80170f2: 481d ldr r0, [pc, #116] @ (8017168 <netbuf_ref+0x90>)
  56170. 80170f4: f012 fa0a bl 802950c <iprintf>
  56171. 80170f8: f06f 030f mvn.w r3, #15
  56172. 80170fc: e02b b.n 8017156 <netbuf_ref+0x7e>
  56173. if (buf->p != NULL) {
  56174. 80170fe: 68fb ldr r3, [r7, #12]
  56175. 8017100: 681b ldr r3, [r3, #0]
  56176. 8017102: 2b00 cmp r3, #0
  56177. 8017104: d004 beq.n 8017110 <netbuf_ref+0x38>
  56178. pbuf_free(buf->p);
  56179. 8017106: 68fb ldr r3, [r7, #12]
  56180. 8017108: 681b ldr r3, [r3, #0]
  56181. 801710a: 4618 mov r0, r3
  56182. 801710c: f002 ff86 bl 801a01c <pbuf_free>
  56183. }
  56184. buf->p = pbuf_alloc(PBUF_TRANSPORT, 0, PBUF_REF);
  56185. 8017110: 2241 movs r2, #65 @ 0x41
  56186. 8017112: 2100 movs r1, #0
  56187. 8017114: 2036 movs r0, #54 @ 0x36
  56188. 8017116: f002 fc6b bl 80199f0 <pbuf_alloc>
  56189. 801711a: 4602 mov r2, r0
  56190. 801711c: 68fb ldr r3, [r7, #12]
  56191. 801711e: 601a str r2, [r3, #0]
  56192. if (buf->p == NULL) {
  56193. 8017120: 68fb ldr r3, [r7, #12]
  56194. 8017122: 681b ldr r3, [r3, #0]
  56195. 8017124: 2b00 cmp r3, #0
  56196. 8017126: d105 bne.n 8017134 <netbuf_ref+0x5c>
  56197. buf->ptr = NULL;
  56198. 8017128: 68fb ldr r3, [r7, #12]
  56199. 801712a: 2200 movs r2, #0
  56200. 801712c: 605a str r2, [r3, #4]
  56201. return ERR_MEM;
  56202. 801712e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  56203. 8017132: e010 b.n 8017156 <netbuf_ref+0x7e>
  56204. }
  56205. ((struct pbuf_rom *)buf->p)->payload = dataptr;
  56206. 8017134: 68fb ldr r3, [r7, #12]
  56207. 8017136: 681b ldr r3, [r3, #0]
  56208. 8017138: 68ba ldr r2, [r7, #8]
  56209. 801713a: 605a str r2, [r3, #4]
  56210. buf->p->len = buf->p->tot_len = size;
  56211. 801713c: 68fb ldr r3, [r7, #12]
  56212. 801713e: 681b ldr r3, [r3, #0]
  56213. 8017140: 88fa ldrh r2, [r7, #6]
  56214. 8017142: 811a strh r2, [r3, #8]
  56215. 8017144: 68fa ldr r2, [r7, #12]
  56216. 8017146: 6812 ldr r2, [r2, #0]
  56217. 8017148: 891b ldrh r3, [r3, #8]
  56218. 801714a: 8153 strh r3, [r2, #10]
  56219. buf->ptr = buf->p;
  56220. 801714c: 68fb ldr r3, [r7, #12]
  56221. 801714e: 681a ldr r2, [r3, #0]
  56222. 8017150: 68fb ldr r3, [r7, #12]
  56223. 8017152: 605a str r2, [r3, #4]
  56224. return ERR_OK;
  56225. 8017154: 2300 movs r3, #0
  56226. }
  56227. 8017156: 4618 mov r0, r3
  56228. 8017158: 3710 adds r7, #16
  56229. 801715a: 46bd mov sp, r7
  56230. 801715c: bd80 pop {r7, pc}
  56231. 801715e: bf00 nop
  56232. 8017160: 0802cfc8 .word 0x0802cfc8
  56233. 8017164: 0802d080 .word 0x0802d080
  56234. 8017168: 0802d018 .word 0x0802d018
  56235. 0801716c <tryget_socket_unconn_nouse>:
  56236. #endif /* LWIP_NETCONN_FULLDUPLEX */
  56237. /* Translate a socket 'int' into a pointer (only fails if the index is invalid) */
  56238. static struct lwip_sock *
  56239. tryget_socket_unconn_nouse(int fd)
  56240. {
  56241. 801716c: b480 push {r7}
  56242. 801716e: b085 sub sp, #20
  56243. 8017170: af00 add r7, sp, #0
  56244. 8017172: 6078 str r0, [r7, #4]
  56245. int s = fd - LWIP_SOCKET_OFFSET;
  56246. 8017174: 687b ldr r3, [r7, #4]
  56247. 8017176: 60fb str r3, [r7, #12]
  56248. if ((s < 0) || (s >= NUM_SOCKETS)) {
  56249. 8017178: 68fb ldr r3, [r7, #12]
  56250. 801717a: 2b00 cmp r3, #0
  56251. 801717c: db02 blt.n 8017184 <tryget_socket_unconn_nouse+0x18>
  56252. 801717e: 68fb ldr r3, [r7, #12]
  56253. 8017180: 2b03 cmp r3, #3
  56254. 8017182: dd01 ble.n 8017188 <tryget_socket_unconn_nouse+0x1c>
  56255. LWIP_DEBUGF(SOCKETS_DEBUG, ("tryget_socket_unconn(%d): invalid\n", fd));
  56256. return NULL;
  56257. 8017184: 2300 movs r3, #0
  56258. 8017186: e003 b.n 8017190 <tryget_socket_unconn_nouse+0x24>
  56259. }
  56260. return &sockets[s];
  56261. 8017188: 68fb ldr r3, [r7, #12]
  56262. 801718a: 011b lsls r3, r3, #4
  56263. 801718c: 4a03 ldr r2, [pc, #12] @ (801719c <tryget_socket_unconn_nouse+0x30>)
  56264. 801718e: 4413 add r3, r2
  56265. }
  56266. 8017190: 4618 mov r0, r3
  56267. 8017192: 3714 adds r7, #20
  56268. 8017194: 46bd mov sp, r7
  56269. 8017196: f85d 7b04 ldr.w r7, [sp], #4
  56270. 801719a: 4770 bx lr
  56271. 801719c: 24023448 .word 0x24023448
  56272. 080171a0 <tryget_socket_unconn>:
  56273. }
  56274. /* Translate a socket 'int' into a pointer (only fails if the index is invalid) */
  56275. static struct lwip_sock *
  56276. tryget_socket_unconn(int fd)
  56277. {
  56278. 80171a0: b580 push {r7, lr}
  56279. 80171a2: b084 sub sp, #16
  56280. 80171a4: af00 add r7, sp, #0
  56281. 80171a6: 6078 str r0, [r7, #4]
  56282. struct lwip_sock *ret = tryget_socket_unconn_nouse(fd);
  56283. 80171a8: 6878 ldr r0, [r7, #4]
  56284. 80171aa: f7ff ffdf bl 801716c <tryget_socket_unconn_nouse>
  56285. 80171ae: 60f8 str r0, [r7, #12]
  56286. if (ret != NULL) {
  56287. if (!sock_inc_used(ret)) {
  56288. return NULL;
  56289. }
  56290. }
  56291. return ret;
  56292. 80171b0: 68fb ldr r3, [r7, #12]
  56293. }
  56294. 80171b2: 4618 mov r0, r3
  56295. 80171b4: 3710 adds r7, #16
  56296. 80171b6: 46bd mov sp, r7
  56297. 80171b8: bd80 pop {r7, pc}
  56298. 080171ba <tryget_socket>:
  56299. * @param fd externally used socket index
  56300. * @return struct lwip_sock for the socket or NULL if not found
  56301. */
  56302. static struct lwip_sock *
  56303. tryget_socket(int fd)
  56304. {
  56305. 80171ba: b580 push {r7, lr}
  56306. 80171bc: b084 sub sp, #16
  56307. 80171be: af00 add r7, sp, #0
  56308. 80171c0: 6078 str r0, [r7, #4]
  56309. struct lwip_sock *sock = tryget_socket_unconn(fd);
  56310. 80171c2: 6878 ldr r0, [r7, #4]
  56311. 80171c4: f7ff ffec bl 80171a0 <tryget_socket_unconn>
  56312. 80171c8: 60f8 str r0, [r7, #12]
  56313. if (sock != NULL) {
  56314. 80171ca: 68fb ldr r3, [r7, #12]
  56315. 80171cc: 2b00 cmp r3, #0
  56316. 80171ce: d005 beq.n 80171dc <tryget_socket+0x22>
  56317. if (sock->conn) {
  56318. 80171d0: 68fb ldr r3, [r7, #12]
  56319. 80171d2: 681b ldr r3, [r3, #0]
  56320. 80171d4: 2b00 cmp r3, #0
  56321. 80171d6: d001 beq.n 80171dc <tryget_socket+0x22>
  56322. return sock;
  56323. 80171d8: 68fb ldr r3, [r7, #12]
  56324. 80171da: e000 b.n 80171de <tryget_socket+0x24>
  56325. }
  56326. done_socket(sock);
  56327. }
  56328. return NULL;
  56329. 80171dc: 2300 movs r3, #0
  56330. }
  56331. 80171de: 4618 mov r0, r3
  56332. 80171e0: 3710 adds r7, #16
  56333. 80171e2: 46bd mov sp, r7
  56334. 80171e4: bd80 pop {r7, pc}
  56335. ...
  56336. 080171e8 <get_socket>:
  56337. * @param fd externally used socket index
  56338. * @return struct lwip_sock for the socket or NULL if not found
  56339. */
  56340. static struct lwip_sock *
  56341. get_socket(int fd)
  56342. {
  56343. 80171e8: b580 push {r7, lr}
  56344. 80171ea: b084 sub sp, #16
  56345. 80171ec: af00 add r7, sp, #0
  56346. 80171ee: 6078 str r0, [r7, #4]
  56347. struct lwip_sock *sock = tryget_socket(fd);
  56348. 80171f0: 6878 ldr r0, [r7, #4]
  56349. 80171f2: f7ff ffe2 bl 80171ba <tryget_socket>
  56350. 80171f6: 60f8 str r0, [r7, #12]
  56351. if (!sock) {
  56352. 80171f8: 68fb ldr r3, [r7, #12]
  56353. 80171fa: 2b00 cmp r3, #0
  56354. 80171fc: d104 bne.n 8017208 <get_socket+0x20>
  56355. if ((fd < LWIP_SOCKET_OFFSET) || (fd >= (LWIP_SOCKET_OFFSET + NUM_SOCKETS))) {
  56356. LWIP_DEBUGF(SOCKETS_DEBUG, ("get_socket(%d): invalid\n", fd));
  56357. }
  56358. set_errno(EBADF);
  56359. 80171fe: 4b05 ldr r3, [pc, #20] @ (8017214 <get_socket+0x2c>)
  56360. 8017200: 2209 movs r2, #9
  56361. 8017202: 601a str r2, [r3, #0]
  56362. return NULL;
  56363. 8017204: 2300 movs r3, #0
  56364. 8017206: e000 b.n 801720a <get_socket+0x22>
  56365. }
  56366. return sock;
  56367. 8017208: 68fb ldr r3, [r7, #12]
  56368. }
  56369. 801720a: 4618 mov r0, r3
  56370. 801720c: 3710 adds r7, #16
  56371. 801720e: 46bd mov sp, r7
  56372. 8017210: bd80 pop {r7, pc}
  56373. 8017212: bf00 nop
  56374. 8017214: 2402a2e4 .word 0x2402a2e4
  56375. 08017218 <alloc_socket>:
  56376. * 0 if socket has been created by socket()
  56377. * @return the index of the new socket; -1 on error
  56378. */
  56379. static int
  56380. alloc_socket(struct netconn *newconn, int accepted)
  56381. {
  56382. 8017218: b580 push {r7, lr}
  56383. 801721a: b084 sub sp, #16
  56384. 801721c: af00 add r7, sp, #0
  56385. 801721e: 6078 str r0, [r7, #4]
  56386. 8017220: 6039 str r1, [r7, #0]
  56387. int i;
  56388. SYS_ARCH_DECL_PROTECT(lev);
  56389. LWIP_UNUSED_ARG(accepted);
  56390. /* allocate a new socket identifier */
  56391. for (i = 0; i < NUM_SOCKETS; ++i) {
  56392. 8017222: 2300 movs r3, #0
  56393. 8017224: 60fb str r3, [r7, #12]
  56394. 8017226: e052 b.n 80172ce <alloc_socket+0xb6>
  56395. /* Protect socket array */
  56396. SYS_ARCH_PROTECT(lev);
  56397. 8017228: f00e feda bl 8025fe0 <sys_arch_protect>
  56398. 801722c: 60b8 str r0, [r7, #8]
  56399. if (!sockets[i].conn) {
  56400. 801722e: 4a2c ldr r2, [pc, #176] @ (80172e0 <alloc_socket+0xc8>)
  56401. 8017230: 68fb ldr r3, [r7, #12]
  56402. 8017232: 011b lsls r3, r3, #4
  56403. 8017234: 4413 add r3, r2
  56404. 8017236: 681b ldr r3, [r3, #0]
  56405. 8017238: 2b00 cmp r3, #0
  56406. 801723a: d142 bne.n 80172c2 <alloc_socket+0xaa>
  56407. continue;
  56408. }
  56409. sockets[i].fd_used = 1;
  56410. sockets[i].fd_free_pending = 0;
  56411. #endif
  56412. sockets[i].conn = newconn;
  56413. 801723c: 4a28 ldr r2, [pc, #160] @ (80172e0 <alloc_socket+0xc8>)
  56414. 801723e: 68fb ldr r3, [r7, #12]
  56415. 8017240: 011b lsls r3, r3, #4
  56416. 8017242: 4413 add r3, r2
  56417. 8017244: 687a ldr r2, [r7, #4]
  56418. 8017246: 601a str r2, [r3, #0]
  56419. /* The socket is not yet known to anyone, so no need to protect
  56420. after having marked it as used. */
  56421. SYS_ARCH_UNPROTECT(lev);
  56422. 8017248: 68b8 ldr r0, [r7, #8]
  56423. 801724a: f00e fed7 bl 8025ffc <sys_arch_unprotect>
  56424. sockets[i].lastdata.pbuf = NULL;
  56425. 801724e: 4a24 ldr r2, [pc, #144] @ (80172e0 <alloc_socket+0xc8>)
  56426. 8017250: 68fb ldr r3, [r7, #12]
  56427. 8017252: 011b lsls r3, r3, #4
  56428. 8017254: 4413 add r3, r2
  56429. 8017256: 3304 adds r3, #4
  56430. 8017258: 2200 movs r2, #0
  56431. 801725a: 601a str r2, [r3, #0]
  56432. #if LWIP_SOCKET_SELECT || LWIP_SOCKET_POLL
  56433. LWIP_ASSERT("sockets[i].select_waiting == 0", sockets[i].select_waiting == 0);
  56434. 801725c: 4a20 ldr r2, [pc, #128] @ (80172e0 <alloc_socket+0xc8>)
  56435. 801725e: 68fb ldr r3, [r7, #12]
  56436. 8017260: 011b lsls r3, r3, #4
  56437. 8017262: 4413 add r3, r2
  56438. 8017264: 330e adds r3, #14
  56439. 8017266: 781b ldrb r3, [r3, #0]
  56440. 8017268: 2b00 cmp r3, #0
  56441. 801726a: d006 beq.n 801727a <alloc_socket+0x62>
  56442. 801726c: 4b1d ldr r3, [pc, #116] @ (80172e4 <alloc_socket+0xcc>)
  56443. 801726e: f240 220e movw r2, #526 @ 0x20e
  56444. 8017272: 491d ldr r1, [pc, #116] @ (80172e8 <alloc_socket+0xd0>)
  56445. 8017274: 481d ldr r0, [pc, #116] @ (80172ec <alloc_socket+0xd4>)
  56446. 8017276: f012 f949 bl 802950c <iprintf>
  56447. sockets[i].rcvevent = 0;
  56448. 801727a: 4a19 ldr r2, [pc, #100] @ (80172e0 <alloc_socket+0xc8>)
  56449. 801727c: 68fb ldr r3, [r7, #12]
  56450. 801727e: 011b lsls r3, r3, #4
  56451. 8017280: 4413 add r3, r2
  56452. 8017282: 3308 adds r3, #8
  56453. 8017284: 2200 movs r2, #0
  56454. 8017286: 801a strh r2, [r3, #0]
  56455. /* TCP sendbuf is empty, but the socket is not yet writable until connected
  56456. * (unless it has been created by accept()). */
  56457. sockets[i].sendevent = (NETCONNTYPE_GROUP(newconn->type) == NETCONN_TCP ? (accepted != 0) : 1);
  56458. 8017288: 687b ldr r3, [r7, #4]
  56459. 801728a: 781b ldrb r3, [r3, #0]
  56460. 801728c: f003 03f0 and.w r3, r3, #240 @ 0xf0
  56461. 8017290: 2b10 cmp r3, #16
  56462. 8017292: d102 bne.n 801729a <alloc_socket+0x82>
  56463. 8017294: 683b ldr r3, [r7, #0]
  56464. 8017296: 2b00 cmp r3, #0
  56465. 8017298: d001 beq.n 801729e <alloc_socket+0x86>
  56466. 801729a: 2301 movs r3, #1
  56467. 801729c: e000 b.n 80172a0 <alloc_socket+0x88>
  56468. 801729e: 2300 movs r3, #0
  56469. 80172a0: b299 uxth r1, r3
  56470. 80172a2: 4a0f ldr r2, [pc, #60] @ (80172e0 <alloc_socket+0xc8>)
  56471. 80172a4: 68fb ldr r3, [r7, #12]
  56472. 80172a6: 011b lsls r3, r3, #4
  56473. 80172a8: 4413 add r3, r2
  56474. 80172aa: 330a adds r3, #10
  56475. 80172ac: 460a mov r2, r1
  56476. 80172ae: 801a strh r2, [r3, #0]
  56477. sockets[i].errevent = 0;
  56478. 80172b0: 4a0b ldr r2, [pc, #44] @ (80172e0 <alloc_socket+0xc8>)
  56479. 80172b2: 68fb ldr r3, [r7, #12]
  56480. 80172b4: 011b lsls r3, r3, #4
  56481. 80172b6: 4413 add r3, r2
  56482. 80172b8: 330c adds r3, #12
  56483. 80172ba: 2200 movs r2, #0
  56484. 80172bc: 801a strh r2, [r3, #0]
  56485. #endif /* LWIP_SOCKET_SELECT || LWIP_SOCKET_POLL */
  56486. return i + LWIP_SOCKET_OFFSET;
  56487. 80172be: 68fb ldr r3, [r7, #12]
  56488. 80172c0: e00a b.n 80172d8 <alloc_socket+0xc0>
  56489. }
  56490. SYS_ARCH_UNPROTECT(lev);
  56491. 80172c2: 68b8 ldr r0, [r7, #8]
  56492. 80172c4: f00e fe9a bl 8025ffc <sys_arch_unprotect>
  56493. for (i = 0; i < NUM_SOCKETS; ++i) {
  56494. 80172c8: 68fb ldr r3, [r7, #12]
  56495. 80172ca: 3301 adds r3, #1
  56496. 80172cc: 60fb str r3, [r7, #12]
  56497. 80172ce: 68fb ldr r3, [r7, #12]
  56498. 80172d0: 2b03 cmp r3, #3
  56499. 80172d2: dda9 ble.n 8017228 <alloc_socket+0x10>
  56500. }
  56501. return -1;
  56502. 80172d4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  56503. }
  56504. 80172d8: 4618 mov r0, r3
  56505. 80172da: 3710 adds r7, #16
  56506. 80172dc: 46bd mov sp, r7
  56507. 80172de: bd80 pop {r7, pc}
  56508. 80172e0: 24023448 .word 0x24023448
  56509. 80172e4: 0802d160 .word 0x0802d160
  56510. 80172e8: 0802d194 .word 0x0802d194
  56511. 80172ec: 0802d1b4 .word 0x0802d1b4
  56512. 080172f0 <free_socket_locked>:
  56513. * @param lastdata lastdata is stored here, must be freed externally
  56514. */
  56515. static int
  56516. free_socket_locked(struct lwip_sock *sock, int is_tcp, struct netconn **conn,
  56517. union lwip_sock_lastdata *lastdata)
  56518. {
  56519. 80172f0: b480 push {r7}
  56520. 80172f2: b085 sub sp, #20
  56521. 80172f4: af00 add r7, sp, #0
  56522. 80172f6: 60f8 str r0, [r7, #12]
  56523. 80172f8: 60b9 str r1, [r7, #8]
  56524. 80172fa: 607a str r2, [r7, #4]
  56525. 80172fc: 603b str r3, [r7, #0]
  56526. }
  56527. #else /* LWIP_NETCONN_FULLDUPLEX */
  56528. LWIP_UNUSED_ARG(is_tcp);
  56529. #endif /* LWIP_NETCONN_FULLDUPLEX */
  56530. *lastdata = sock->lastdata;
  56531. 80172fe: 683b ldr r3, [r7, #0]
  56532. 8017300: 68fa ldr r2, [r7, #12]
  56533. 8017302: 6852 ldr r2, [r2, #4]
  56534. 8017304: 601a str r2, [r3, #0]
  56535. sock->lastdata.pbuf = NULL;
  56536. 8017306: 68fb ldr r3, [r7, #12]
  56537. 8017308: 2200 movs r2, #0
  56538. 801730a: 605a str r2, [r3, #4]
  56539. *conn = sock->conn;
  56540. 801730c: 68fb ldr r3, [r7, #12]
  56541. 801730e: 681a ldr r2, [r3, #0]
  56542. 8017310: 687b ldr r3, [r7, #4]
  56543. 8017312: 601a str r2, [r3, #0]
  56544. sock->conn = NULL;
  56545. 8017314: 68fb ldr r3, [r7, #12]
  56546. 8017316: 2200 movs r2, #0
  56547. 8017318: 601a str r2, [r3, #0]
  56548. return 1;
  56549. 801731a: 2301 movs r3, #1
  56550. }
  56551. 801731c: 4618 mov r0, r3
  56552. 801731e: 3714 adds r7, #20
  56553. 8017320: 46bd mov sp, r7
  56554. 8017322: f85d 7b04 ldr.w r7, [sp], #4
  56555. 8017326: 4770 bx lr
  56556. 08017328 <free_socket_free_elements>:
  56557. /** Free a socket's leftover members.
  56558. */
  56559. static void
  56560. free_socket_free_elements(int is_tcp, struct netconn *conn, union lwip_sock_lastdata *lastdata)
  56561. {
  56562. 8017328: b580 push {r7, lr}
  56563. 801732a: b084 sub sp, #16
  56564. 801732c: af00 add r7, sp, #0
  56565. 801732e: 60f8 str r0, [r7, #12]
  56566. 8017330: 60b9 str r1, [r7, #8]
  56567. 8017332: 607a str r2, [r7, #4]
  56568. if (lastdata->pbuf != NULL) {
  56569. 8017334: 687b ldr r3, [r7, #4]
  56570. 8017336: 681b ldr r3, [r3, #0]
  56571. 8017338: 2b00 cmp r3, #0
  56572. 801733a: d00d beq.n 8017358 <free_socket_free_elements+0x30>
  56573. if (is_tcp) {
  56574. 801733c: 68fb ldr r3, [r7, #12]
  56575. 801733e: 2b00 cmp r3, #0
  56576. 8017340: d005 beq.n 801734e <free_socket_free_elements+0x26>
  56577. pbuf_free(lastdata->pbuf);
  56578. 8017342: 687b ldr r3, [r7, #4]
  56579. 8017344: 681b ldr r3, [r3, #0]
  56580. 8017346: 4618 mov r0, r3
  56581. 8017348: f002 fe68 bl 801a01c <pbuf_free>
  56582. 801734c: e004 b.n 8017358 <free_socket_free_elements+0x30>
  56583. } else {
  56584. netbuf_delete(lastdata->netbuf);
  56585. 801734e: 687b ldr r3, [r7, #4]
  56586. 8017350: 681b ldr r3, [r3, #0]
  56587. 8017352: 4618 mov r0, r3
  56588. 8017354: f7ff fe78 bl 8017048 <netbuf_delete>
  56589. }
  56590. }
  56591. if (conn != NULL) {
  56592. 8017358: 68bb ldr r3, [r7, #8]
  56593. 801735a: 2b00 cmp r3, #0
  56594. 801735c: d002 beq.n 8017364 <free_socket_free_elements+0x3c>
  56595. /* netconn_prepare_delete() has already been called, here we only free the conn */
  56596. netconn_delete(conn);
  56597. 801735e: 68b8 ldr r0, [r7, #8]
  56598. 8017360: f7fd fd50 bl 8014e04 <netconn_delete>
  56599. }
  56600. }
  56601. 8017364: bf00 nop
  56602. 8017366: 3710 adds r7, #16
  56603. 8017368: 46bd mov sp, r7
  56604. 801736a: bd80 pop {r7, pc}
  56605. 0801736c <free_socket>:
  56606. * @param sock the socket to free
  56607. * @param is_tcp != 0 for TCP sockets, used to free lastdata
  56608. */
  56609. static void
  56610. free_socket(struct lwip_sock *sock, int is_tcp)
  56611. {
  56612. 801736c: b580 push {r7, lr}
  56613. 801736e: b086 sub sp, #24
  56614. 8017370: af00 add r7, sp, #0
  56615. 8017372: 6078 str r0, [r7, #4]
  56616. 8017374: 6039 str r1, [r7, #0]
  56617. struct netconn *conn;
  56618. union lwip_sock_lastdata lastdata;
  56619. SYS_ARCH_DECL_PROTECT(lev);
  56620. /* Protect socket array */
  56621. SYS_ARCH_PROTECT(lev);
  56622. 8017376: f00e fe33 bl 8025fe0 <sys_arch_protect>
  56623. 801737a: 6178 str r0, [r7, #20]
  56624. freed = free_socket_locked(sock, is_tcp, &conn, &lastdata);
  56625. 801737c: f107 0308 add.w r3, r7, #8
  56626. 8017380: f107 020c add.w r2, r7, #12
  56627. 8017384: 6839 ldr r1, [r7, #0]
  56628. 8017386: 6878 ldr r0, [r7, #4]
  56629. 8017388: f7ff ffb2 bl 80172f0 <free_socket_locked>
  56630. 801738c: 6138 str r0, [r7, #16]
  56631. SYS_ARCH_UNPROTECT(lev);
  56632. 801738e: 6978 ldr r0, [r7, #20]
  56633. 8017390: f00e fe34 bl 8025ffc <sys_arch_unprotect>
  56634. /* don't use 'sock' after this line, as another task might have allocated it */
  56635. if (freed) {
  56636. 8017394: 693b ldr r3, [r7, #16]
  56637. 8017396: 2b00 cmp r3, #0
  56638. 8017398: d006 beq.n 80173a8 <free_socket+0x3c>
  56639. free_socket_free_elements(is_tcp, conn, &lastdata);
  56640. 801739a: 68fb ldr r3, [r7, #12]
  56641. 801739c: f107 0208 add.w r2, r7, #8
  56642. 80173a0: 4619 mov r1, r3
  56643. 80173a2: 6838 ldr r0, [r7, #0]
  56644. 80173a4: f7ff ffc0 bl 8017328 <free_socket_free_elements>
  56645. }
  56646. }
  56647. 80173a8: bf00 nop
  56648. 80173aa: 3718 adds r7, #24
  56649. 80173ac: 46bd mov sp, r7
  56650. 80173ae: bd80 pop {r7, pc}
  56651. 080173b0 <lwip_close>:
  56652. return 0;
  56653. }
  56654. int
  56655. lwip_close(int s)
  56656. {
  56657. 80173b0: b580 push {r7, lr}
  56658. 80173b2: b086 sub sp, #24
  56659. 80173b4: af00 add r7, sp, #0
  56660. 80173b6: 6078 str r0, [r7, #4]
  56661. struct lwip_sock *sock;
  56662. int is_tcp = 0;
  56663. 80173b8: 2300 movs r3, #0
  56664. 80173ba: 617b str r3, [r7, #20]
  56665. err_t err;
  56666. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_close(%d)\n", s));
  56667. sock = get_socket(s);
  56668. 80173bc: 6878 ldr r0, [r7, #4]
  56669. 80173be: f7ff ff13 bl 80171e8 <get_socket>
  56670. 80173c2: 6138 str r0, [r7, #16]
  56671. if (!sock) {
  56672. 80173c4: 693b ldr r3, [r7, #16]
  56673. 80173c6: 2b00 cmp r3, #0
  56674. 80173c8: d102 bne.n 80173d0 <lwip_close+0x20>
  56675. return -1;
  56676. 80173ca: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  56677. 80173ce: e039 b.n 8017444 <lwip_close+0x94>
  56678. }
  56679. if (sock->conn != NULL) {
  56680. 80173d0: 693b ldr r3, [r7, #16]
  56681. 80173d2: 681b ldr r3, [r3, #0]
  56682. 80173d4: 2b00 cmp r3, #0
  56683. 80173d6: d00b beq.n 80173f0 <lwip_close+0x40>
  56684. is_tcp = NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP;
  56685. 80173d8: 693b ldr r3, [r7, #16]
  56686. 80173da: 681b ldr r3, [r3, #0]
  56687. 80173dc: 781b ldrb r3, [r3, #0]
  56688. 80173de: f003 03f0 and.w r3, r3, #240 @ 0xf0
  56689. 80173e2: 2b10 cmp r3, #16
  56690. 80173e4: bf0c ite eq
  56691. 80173e6: 2301 moveq r3, #1
  56692. 80173e8: 2300 movne r3, #0
  56693. 80173ea: b2db uxtb r3, r3
  56694. 80173ec: 617b str r3, [r7, #20]
  56695. 80173ee: e00a b.n 8017406 <lwip_close+0x56>
  56696. } else {
  56697. LWIP_ASSERT("sock->lastdata == NULL", sock->lastdata.pbuf == NULL);
  56698. 80173f0: 693b ldr r3, [r7, #16]
  56699. 80173f2: 685b ldr r3, [r3, #4]
  56700. 80173f4: 2b00 cmp r3, #0
  56701. 80173f6: d006 beq.n 8017406 <lwip_close+0x56>
  56702. 80173f8: 4b14 ldr r3, [pc, #80] @ (801744c <lwip_close+0x9c>)
  56703. 80173fa: f44f 7245 mov.w r2, #788 @ 0x314
  56704. 80173fe: 4914 ldr r1, [pc, #80] @ (8017450 <lwip_close+0xa0>)
  56705. 8017400: 4814 ldr r0, [pc, #80] @ (8017454 <lwip_close+0xa4>)
  56706. 8017402: f012 f883 bl 802950c <iprintf>
  56707. #if LWIP_IPV6_MLD
  56708. /* drop all possibly joined MLD6 memberships */
  56709. lwip_socket_drop_registered_mld6_memberships(s);
  56710. #endif /* LWIP_IPV6_MLD */
  56711. err = netconn_prepare_delete(sock->conn);
  56712. 8017406: 693b ldr r3, [r7, #16]
  56713. 8017408: 681b ldr r3, [r3, #0]
  56714. 801740a: 4618 mov r0, r3
  56715. 801740c: f7fd fcd6 bl 8014dbc <netconn_prepare_delete>
  56716. 8017410: 4603 mov r3, r0
  56717. 8017412: 73fb strb r3, [r7, #15]
  56718. if (err != ERR_OK) {
  56719. 8017414: f997 300f ldrsb.w r3, [r7, #15]
  56720. 8017418: 2b00 cmp r3, #0
  56721. 801741a: d00e beq.n 801743a <lwip_close+0x8a>
  56722. sock_set_errno(sock, err_to_errno(err));
  56723. 801741c: f997 300f ldrsb.w r3, [r7, #15]
  56724. 8017420: 4618 mov r0, r3
  56725. 8017422: f7ff fdf3 bl 801700c <err_to_errno>
  56726. 8017426: 60b8 str r0, [r7, #8]
  56727. 8017428: 68bb ldr r3, [r7, #8]
  56728. 801742a: 2b00 cmp r3, #0
  56729. 801742c: d002 beq.n 8017434 <lwip_close+0x84>
  56730. 801742e: 4a0a ldr r2, [pc, #40] @ (8017458 <lwip_close+0xa8>)
  56731. 8017430: 68bb ldr r3, [r7, #8]
  56732. 8017432: 6013 str r3, [r2, #0]
  56733. done_socket(sock);
  56734. return -1;
  56735. 8017434: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  56736. 8017438: e004 b.n 8017444 <lwip_close+0x94>
  56737. }
  56738. free_socket(sock, is_tcp);
  56739. 801743a: 6979 ldr r1, [r7, #20]
  56740. 801743c: 6938 ldr r0, [r7, #16]
  56741. 801743e: f7ff ff95 bl 801736c <free_socket>
  56742. set_errno(0);
  56743. return 0;
  56744. 8017442: 2300 movs r3, #0
  56745. }
  56746. 8017444: 4618 mov r0, r3
  56747. 8017446: 3718 adds r7, #24
  56748. 8017448: 46bd mov sp, r7
  56749. 801744a: bd80 pop {r7, pc}
  56750. 801744c: 0802d160 .word 0x0802d160
  56751. 8017450: 0802d220 .word 0x0802d220
  56752. 8017454: 0802d1b4 .word 0x0802d1b4
  56753. 8017458: 2402a2e4 .word 0x2402a2e4
  56754. 0801745c <lwip_connect>:
  56755. int
  56756. lwip_connect(int s, const struct sockaddr *name, socklen_t namelen)
  56757. {
  56758. 801745c: b580 push {r7, lr}
  56759. 801745e: b08a sub sp, #40 @ 0x28
  56760. 8017460: af00 add r7, sp, #0
  56761. 8017462: 60f8 str r0, [r7, #12]
  56762. 8017464: 60b9 str r1, [r7, #8]
  56763. 8017466: 607a str r2, [r7, #4]
  56764. struct lwip_sock *sock;
  56765. err_t err;
  56766. sock = get_socket(s);
  56767. 8017468: 68f8 ldr r0, [r7, #12]
  56768. 801746a: f7ff febd bl 80171e8 <get_socket>
  56769. 801746e: 6278 str r0, [r7, #36] @ 0x24
  56770. if (!sock) {
  56771. 8017470: 6a7b ldr r3, [r7, #36] @ 0x24
  56772. 8017472: 2b00 cmp r3, #0
  56773. 8017474: d102 bne.n 801747c <lwip_connect+0x20>
  56774. return -1;
  56775. 8017476: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  56776. 801747a: e062 b.n 8017542 <lwip_connect+0xe6>
  56777. done_socket(sock);
  56778. return -1;
  56779. }
  56780. LWIP_UNUSED_ARG(namelen);
  56781. if (name->sa_family == AF_UNSPEC) {
  56782. 801747c: 68bb ldr r3, [r7, #8]
  56783. 801747e: 785b ldrb r3, [r3, #1]
  56784. 8017480: 2b00 cmp r3, #0
  56785. 8017482: d108 bne.n 8017496 <lwip_connect+0x3a>
  56786. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_connect(%d, AF_UNSPEC)\n", s));
  56787. err = netconn_disconnect(sock->conn);
  56788. 8017484: 6a7b ldr r3, [r7, #36] @ 0x24
  56789. 8017486: 681b ldr r3, [r3, #0]
  56790. 8017488: 4618 mov r0, r3
  56791. 801748a: f7fd fd61 bl 8014f50 <netconn_disconnect>
  56792. 801748e: 4603 mov r3, r0
  56793. 8017490: f887 3021 strb.w r3, [r7, #33] @ 0x21
  56794. 8017494: e039 b.n 801750a <lwip_connect+0xae>
  56795. } else {
  56796. ip_addr_t remote_addr;
  56797. u16_t remote_port;
  56798. /* check size, family and alignment of 'name' */
  56799. LWIP_ERROR("lwip_connect: invalid address", IS_SOCK_ADDR_LEN_VALID(namelen) &&
  56800. 8017496: 687b ldr r3, [r7, #4]
  56801. 8017498: 2b10 cmp r3, #16
  56802. 801749a: d10c bne.n 80174b6 <lwip_connect+0x5a>
  56803. 801749c: 68bb ldr r3, [r7, #8]
  56804. 801749e: 785b ldrb r3, [r3, #1]
  56805. 80174a0: 2b00 cmp r3, #0
  56806. 80174a2: d003 beq.n 80174ac <lwip_connect+0x50>
  56807. 80174a4: 68bb ldr r3, [r7, #8]
  56808. 80174a6: 785b ldrb r3, [r3, #1]
  56809. 80174a8: 2b02 cmp r3, #2
  56810. 80174aa: d104 bne.n 80174b6 <lwip_connect+0x5a>
  56811. 80174ac: 68bb ldr r3, [r7, #8]
  56812. 80174ae: f003 0303 and.w r3, r3, #3
  56813. 80174b2: 2b00 cmp r3, #0
  56814. 80174b4: d014 beq.n 80174e0 <lwip_connect+0x84>
  56815. 80174b6: 4b25 ldr r3, [pc, #148] @ (801754c <lwip_connect+0xf0>)
  56816. 80174b8: f240 3247 movw r2, #839 @ 0x347
  56817. 80174bc: 4924 ldr r1, [pc, #144] @ (8017550 <lwip_connect+0xf4>)
  56818. 80174be: 4825 ldr r0, [pc, #148] @ (8017554 <lwip_connect+0xf8>)
  56819. 80174c0: f012 f824 bl 802950c <iprintf>
  56820. 80174c4: f06f 000f mvn.w r0, #15
  56821. 80174c8: f7ff fda0 bl 801700c <err_to_errno>
  56822. 80174cc: 61f8 str r0, [r7, #28]
  56823. 80174ce: 69fb ldr r3, [r7, #28]
  56824. 80174d0: 2b00 cmp r3, #0
  56825. 80174d2: d002 beq.n 80174da <lwip_connect+0x7e>
  56826. 80174d4: 4a20 ldr r2, [pc, #128] @ (8017558 <lwip_connect+0xfc>)
  56827. 80174d6: 69fb ldr r3, [r7, #28]
  56828. 80174d8: 6013 str r3, [r2, #0]
  56829. 80174da: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  56830. 80174de: e030 b.n 8017542 <lwip_connect+0xe6>
  56831. IS_SOCK_ADDR_TYPE_VALID_OR_UNSPEC(name) && IS_SOCK_ADDR_ALIGNED(name),
  56832. sock_set_errno(sock, err_to_errno(ERR_ARG)); done_socket(sock); return -1;);
  56833. SOCKADDR_TO_IPADDR_PORT(name, &remote_addr, remote_port);
  56834. 80174e0: 68bb ldr r3, [r7, #8]
  56835. 80174e2: 685b ldr r3, [r3, #4]
  56836. 80174e4: 613b str r3, [r7, #16]
  56837. 80174e6: 68bb ldr r3, [r7, #8]
  56838. 80174e8: 885b ldrh r3, [r3, #2]
  56839. 80174ea: 4618 mov r0, r3
  56840. 80174ec: f001 f8b4 bl 8018658 <lwip_htons>
  56841. 80174f0: 4603 mov r3, r0
  56842. 80174f2: 847b strh r3, [r7, #34] @ 0x22
  56843. unmap_ipv4_mapped_ipv6(ip_2_ip4(&remote_addr), ip_2_ip6(&remote_addr));
  56844. IP_SET_TYPE_VAL(remote_addr, IPADDR_TYPE_V4);
  56845. }
  56846. #endif /* LWIP_IPV4 && LWIP_IPV6 */
  56847. err = netconn_connect(sock->conn, &remote_addr, remote_port);
  56848. 80174f4: 6a7b ldr r3, [r7, #36] @ 0x24
  56849. 80174f6: 681b ldr r3, [r3, #0]
  56850. 80174f8: 8c7a ldrh r2, [r7, #34] @ 0x22
  56851. 80174fa: f107 0110 add.w r1, r7, #16
  56852. 80174fe: 4618 mov r0, r3
  56853. 8017500: f7fd fcee bl 8014ee0 <netconn_connect>
  56854. 8017504: 4603 mov r3, r0
  56855. 8017506: f887 3021 strb.w r3, [r7, #33] @ 0x21
  56856. }
  56857. if (err != ERR_OK) {
  56858. 801750a: f997 3021 ldrsb.w r3, [r7, #33] @ 0x21
  56859. 801750e: 2b00 cmp r3, #0
  56860. 8017510: d00e beq.n 8017530 <lwip_connect+0xd4>
  56861. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_connect(%d) failed, err=%d\n", s, err));
  56862. sock_set_errno(sock, err_to_errno(err));
  56863. 8017512: f997 3021 ldrsb.w r3, [r7, #33] @ 0x21
  56864. 8017516: 4618 mov r0, r3
  56865. 8017518: f7ff fd78 bl 801700c <err_to_errno>
  56866. 801751c: 6178 str r0, [r7, #20]
  56867. 801751e: 697b ldr r3, [r7, #20]
  56868. 8017520: 2b00 cmp r3, #0
  56869. 8017522: d002 beq.n 801752a <lwip_connect+0xce>
  56870. 8017524: 4a0c ldr r2, [pc, #48] @ (8017558 <lwip_connect+0xfc>)
  56871. 8017526: 697b ldr r3, [r7, #20]
  56872. 8017528: 6013 str r3, [r2, #0]
  56873. done_socket(sock);
  56874. return -1;
  56875. 801752a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  56876. 801752e: e008 b.n 8017542 <lwip_connect+0xe6>
  56877. }
  56878. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_connect(%d) succeeded\n", s));
  56879. sock_set_errno(sock, 0);
  56880. 8017530: 2300 movs r3, #0
  56881. 8017532: 61bb str r3, [r7, #24]
  56882. 8017534: 69bb ldr r3, [r7, #24]
  56883. 8017536: 2b00 cmp r3, #0
  56884. 8017538: d002 beq.n 8017540 <lwip_connect+0xe4>
  56885. 801753a: 4a07 ldr r2, [pc, #28] @ (8017558 <lwip_connect+0xfc>)
  56886. 801753c: 69bb ldr r3, [r7, #24]
  56887. 801753e: 6013 str r3, [r2, #0]
  56888. done_socket(sock);
  56889. return 0;
  56890. 8017540: 2300 movs r3, #0
  56891. }
  56892. 8017542: 4618 mov r0, r3
  56893. 8017544: 3728 adds r7, #40 @ 0x28
  56894. 8017546: 46bd mov sp, r7
  56895. 8017548: bd80 pop {r7, pc}
  56896. 801754a: bf00 nop
  56897. 801754c: 0802d160 .word 0x0802d160
  56898. 8017550: 0802d238 .word 0x0802d238
  56899. 8017554: 0802d1b4 .word 0x0802d1b4
  56900. 8017558: 2402a2e4 .word 0x2402a2e4
  56901. 0801755c <lwip_recv_tcp>:
  56902. * until "len" bytes are received or we're otherwise done.
  56903. * Keeps sock->lastdata for peeking or partly copying.
  56904. */
  56905. static ssize_t
  56906. lwip_recv_tcp(struct lwip_sock *sock, void *mem, size_t len, int flags)
  56907. {
  56908. 801755c: b580 push {r7, lr}
  56909. 801755e: b08c sub sp, #48 @ 0x30
  56910. 8017560: af00 add r7, sp, #0
  56911. 8017562: 60f8 str r0, [r7, #12]
  56912. 8017564: 60b9 str r1, [r7, #8]
  56913. 8017566: 607a str r2, [r7, #4]
  56914. 8017568: 603b str r3, [r7, #0]
  56915. u8_t apiflags = NETCONN_NOAUTORCVD;
  56916. 801756a: 2308 movs r3, #8
  56917. 801756c: f887 3023 strb.w r3, [r7, #35] @ 0x23
  56918. ssize_t recvd = 0;
  56919. 8017570: 2300 movs r3, #0
  56920. 8017572: 62bb str r3, [r7, #40] @ 0x28
  56921. ssize_t recv_left = (len <= SSIZE_MAX) ? (ssize_t)len : SSIZE_MAX;
  56922. 8017574: 687b ldr r3, [r7, #4]
  56923. 8017576: 2b00 cmp r3, #0
  56924. 8017578: db01 blt.n 801757e <lwip_recv_tcp+0x22>
  56925. 801757a: 687b ldr r3, [r7, #4]
  56926. 801757c: e001 b.n 8017582 <lwip_recv_tcp+0x26>
  56927. 801757e: f06f 4300 mvn.w r3, #2147483648 @ 0x80000000
  56928. 8017582: 627b str r3, [r7, #36] @ 0x24
  56929. LWIP_ASSERT("no socket given", sock != NULL);
  56930. 8017584: 68fb ldr r3, [r7, #12]
  56931. 8017586: 2b00 cmp r3, #0
  56932. 8017588: d106 bne.n 8017598 <lwip_recv_tcp+0x3c>
  56933. 801758a: 4b74 ldr r3, [pc, #464] @ (801775c <lwip_recv_tcp+0x200>)
  56934. 801758c: f240 329e movw r2, #926 @ 0x39e
  56935. 8017590: 4973 ldr r1, [pc, #460] @ (8017760 <lwip_recv_tcp+0x204>)
  56936. 8017592: 4874 ldr r0, [pc, #464] @ (8017764 <lwip_recv_tcp+0x208>)
  56937. 8017594: f011 ffba bl 802950c <iprintf>
  56938. LWIP_ASSERT("this should be checked internally", NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP);
  56939. 8017598: 68fb ldr r3, [r7, #12]
  56940. 801759a: 681b ldr r3, [r3, #0]
  56941. 801759c: 781b ldrb r3, [r3, #0]
  56942. 801759e: f003 03f0 and.w r3, r3, #240 @ 0xf0
  56943. 80175a2: 2b10 cmp r3, #16
  56944. 80175a4: d006 beq.n 80175b4 <lwip_recv_tcp+0x58>
  56945. 80175a6: 4b6d ldr r3, [pc, #436] @ (801775c <lwip_recv_tcp+0x200>)
  56946. 80175a8: f240 329f movw r2, #927 @ 0x39f
  56947. 80175ac: 496e ldr r1, [pc, #440] @ (8017768 <lwip_recv_tcp+0x20c>)
  56948. 80175ae: 486d ldr r0, [pc, #436] @ (8017764 <lwip_recv_tcp+0x208>)
  56949. 80175b0: f011 ffac bl 802950c <iprintf>
  56950. if (flags & MSG_DONTWAIT) {
  56951. 80175b4: 683b ldr r3, [r7, #0]
  56952. 80175b6: f003 0308 and.w r3, r3, #8
  56953. 80175ba: 2b00 cmp r3, #0
  56954. 80175bc: d005 beq.n 80175ca <lwip_recv_tcp+0x6e>
  56955. apiflags |= NETCONN_DONTBLOCK;
  56956. 80175be: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  56957. 80175c2: f043 0304 orr.w r3, r3, #4
  56958. 80175c6: f887 3023 strb.w r3, [r7, #35] @ 0x23
  56959. err_t err;
  56960. u16_t copylen;
  56961. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: top while sock->lastdata=%p\n", (void *)sock->lastdata.pbuf));
  56962. /* Check if there is data left from the last recv operation. */
  56963. if (sock->lastdata.pbuf) {
  56964. 80175ca: 68fb ldr r3, [r7, #12]
  56965. 80175cc: 685b ldr r3, [r3, #4]
  56966. 80175ce: 2b00 cmp r3, #0
  56967. 80175d0: d003 beq.n 80175da <lwip_recv_tcp+0x7e>
  56968. p = sock->lastdata.pbuf;
  56969. 80175d2: 68fb ldr r3, [r7, #12]
  56970. 80175d4: 685b ldr r3, [r3, #4]
  56971. 80175d6: 617b str r3, [r7, #20]
  56972. 80175d8: e036 b.n 8017648 <lwip_recv_tcp+0xec>
  56973. } else {
  56974. /* No data was left from the previous operation, so we try to get
  56975. some from the network. */
  56976. err = netconn_recv_tcp_pbuf_flags(sock->conn, &p, apiflags);
  56977. 80175da: 68fb ldr r3, [r7, #12]
  56978. 80175dc: 681b ldr r3, [r3, #0]
  56979. 80175de: f897 2023 ldrb.w r2, [r7, #35] @ 0x23
  56980. 80175e2: f107 0114 add.w r1, r7, #20
  56981. 80175e6: 4618 mov r0, r3
  56982. 80175e8: f7fd fea4 bl 8015334 <netconn_recv_tcp_pbuf_flags>
  56983. 80175ec: 4603 mov r3, r0
  56984. 80175ee: f887 3022 strb.w r3, [r7, #34] @ 0x22
  56985. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: netconn_recv err=%d, pbuf=%p\n",
  56986. err, (void *)p));
  56987. if (err != ERR_OK) {
  56988. 80175f2: f997 3022 ldrsb.w r3, [r7, #34] @ 0x22
  56989. 80175f6: 2b00 cmp r3, #0
  56990. 80175f8: d019 beq.n 801762e <lwip_recv_tcp+0xd2>
  56991. if (recvd > 0) {
  56992. 80175fa: 6abb ldr r3, [r7, #40] @ 0x28
  56993. 80175fc: 2b00 cmp r3, #0
  56994. 80175fe: f300 808d bgt.w 801771c <lwip_recv_tcp+0x1c0>
  56995. goto lwip_recv_tcp_done;
  56996. }
  56997. /* We should really do some error checking here. */
  56998. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: p == NULL, error is \"%s\"!\n",
  56999. lwip_strerr(err)));
  57000. sock_set_errno(sock, err_to_errno(err));
  57001. 8017602: f997 3022 ldrsb.w r3, [r7, #34] @ 0x22
  57002. 8017606: 4618 mov r0, r3
  57003. 8017608: f7ff fd00 bl 801700c <err_to_errno>
  57004. 801760c: 61f8 str r0, [r7, #28]
  57005. 801760e: 69fb ldr r3, [r7, #28]
  57006. 8017610: 2b00 cmp r3, #0
  57007. 8017612: d002 beq.n 801761a <lwip_recv_tcp+0xbe>
  57008. 8017614: 4a55 ldr r2, [pc, #340] @ (801776c <lwip_recv_tcp+0x210>)
  57009. 8017616: 69fb ldr r3, [r7, #28]
  57010. 8017618: 6013 str r3, [r2, #0]
  57011. if (err == ERR_CLSD) {
  57012. 801761a: f997 3022 ldrsb.w r3, [r7, #34] @ 0x22
  57013. 801761e: f113 0f0f cmn.w r3, #15
  57014. 8017622: d101 bne.n 8017628 <lwip_recv_tcp+0xcc>
  57015. return 0;
  57016. 8017624: 2300 movs r3, #0
  57017. 8017626: e094 b.n 8017752 <lwip_recv_tcp+0x1f6>
  57018. } else {
  57019. return -1;
  57020. 8017628: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  57021. 801762c: e091 b.n 8017752 <lwip_recv_tcp+0x1f6>
  57022. }
  57023. }
  57024. LWIP_ASSERT("p != NULL", p != NULL);
  57025. 801762e: 697b ldr r3, [r7, #20]
  57026. 8017630: 2b00 cmp r3, #0
  57027. 8017632: d106 bne.n 8017642 <lwip_recv_tcp+0xe6>
  57028. 8017634: 4b49 ldr r3, [pc, #292] @ (801775c <lwip_recv_tcp+0x200>)
  57029. 8017636: f240 32c5 movw r2, #965 @ 0x3c5
  57030. 801763a: 494d ldr r1, [pc, #308] @ (8017770 <lwip_recv_tcp+0x214>)
  57031. 801763c: 4849 ldr r0, [pc, #292] @ (8017764 <lwip_recv_tcp+0x208>)
  57032. 801763e: f011 ff65 bl 802950c <iprintf>
  57033. sock->lastdata.pbuf = p;
  57034. 8017642: 697a ldr r2, [r7, #20]
  57035. 8017644: 68fb ldr r3, [r7, #12]
  57036. 8017646: 605a str r2, [r3, #4]
  57037. }
  57038. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: buflen=%"U16_F" recv_left=%d off=%d\n",
  57039. p->tot_len, (int)recv_left, (int)recvd));
  57040. if (recv_left > p->tot_len) {
  57041. 8017648: 697b ldr r3, [r7, #20]
  57042. 801764a: 891b ldrh r3, [r3, #8]
  57043. 801764c: 461a mov r2, r3
  57044. 801764e: 6a7b ldr r3, [r7, #36] @ 0x24
  57045. 8017650: 4293 cmp r3, r2
  57046. 8017652: dd03 ble.n 801765c <lwip_recv_tcp+0x100>
  57047. copylen = p->tot_len;
  57048. 8017654: 697b ldr r3, [r7, #20]
  57049. 8017656: 891b ldrh r3, [r3, #8]
  57050. 8017658: 85fb strh r3, [r7, #46] @ 0x2e
  57051. 801765a: e001 b.n 8017660 <lwip_recv_tcp+0x104>
  57052. } else {
  57053. copylen = (u16_t)recv_left;
  57054. 801765c: 6a7b ldr r3, [r7, #36] @ 0x24
  57055. 801765e: 85fb strh r3, [r7, #46] @ 0x2e
  57056. }
  57057. if (recvd + copylen < recvd) {
  57058. 8017660: 8dfa ldrh r2, [r7, #46] @ 0x2e
  57059. 8017662: 6abb ldr r3, [r7, #40] @ 0x28
  57060. 8017664: 4413 add r3, r2
  57061. 8017666: 6aba ldr r2, [r7, #40] @ 0x28
  57062. 8017668: 429a cmp r2, r3
  57063. 801766a: dd03 ble.n 8017674 <lwip_recv_tcp+0x118>
  57064. /* overflow */
  57065. copylen = (u16_t)(SSIZE_MAX - recvd);
  57066. 801766c: 6abb ldr r3, [r7, #40] @ 0x28
  57067. 801766e: b29b uxth r3, r3
  57068. 8017670: 43db mvns r3, r3
  57069. 8017672: 85fb strh r3, [r7, #46] @ 0x2e
  57070. }
  57071. /* copy the contents of the received buffer into
  57072. the supplied memory pointer mem */
  57073. pbuf_copy_partial(p, (u8_t *)mem + recvd, copylen, 0);
  57074. 8017674: 6978 ldr r0, [r7, #20]
  57075. 8017676: 6abb ldr r3, [r7, #40] @ 0x28
  57076. 8017678: 68ba ldr r2, [r7, #8]
  57077. 801767a: 18d1 adds r1, r2, r3
  57078. 801767c: 8dfa ldrh r2, [r7, #46] @ 0x2e
  57079. 801767e: 2300 movs r3, #0
  57080. 8017680: f002 fed2 bl 801a428 <pbuf_copy_partial>
  57081. recvd += copylen;
  57082. 8017684: 8dfb ldrh r3, [r7, #46] @ 0x2e
  57083. 8017686: 6aba ldr r2, [r7, #40] @ 0x28
  57084. 8017688: 4413 add r3, r2
  57085. 801768a: 62bb str r3, [r7, #40] @ 0x28
  57086. /* TCP combines multiple pbufs for one recv */
  57087. LWIP_ASSERT("invalid copylen, len would underflow", recv_left >= copylen);
  57088. 801768c: 8dfb ldrh r3, [r7, #46] @ 0x2e
  57089. 801768e: 6a7a ldr r2, [r7, #36] @ 0x24
  57090. 8017690: 429a cmp r2, r3
  57091. 8017692: da06 bge.n 80176a2 <lwip_recv_tcp+0x146>
  57092. 8017694: 4b31 ldr r3, [pc, #196] @ (801775c <lwip_recv_tcp+0x200>)
  57093. 8017696: f240 32dd movw r2, #989 @ 0x3dd
  57094. 801769a: 4936 ldr r1, [pc, #216] @ (8017774 <lwip_recv_tcp+0x218>)
  57095. 801769c: 4831 ldr r0, [pc, #196] @ (8017764 <lwip_recv_tcp+0x208>)
  57096. 801769e: f011 ff35 bl 802950c <iprintf>
  57097. recv_left -= copylen;
  57098. 80176a2: 8dfb ldrh r3, [r7, #46] @ 0x2e
  57099. 80176a4: 6a7a ldr r2, [r7, #36] @ 0x24
  57100. 80176a6: 1ad3 subs r3, r2, r3
  57101. 80176a8: 627b str r3, [r7, #36] @ 0x24
  57102. /* Unless we peek the incoming message... */
  57103. if ((flags & MSG_PEEK) == 0) {
  57104. 80176aa: 683b ldr r3, [r7, #0]
  57105. 80176ac: f003 0301 and.w r3, r3, #1
  57106. 80176b0: 2b00 cmp r3, #0
  57107. 80176b2: d123 bne.n 80176fc <lwip_recv_tcp+0x1a0>
  57108. /* ... check if there is data left in the pbuf */
  57109. LWIP_ASSERT("invalid copylen", p->tot_len >= copylen);
  57110. 80176b4: 697b ldr r3, [r7, #20]
  57111. 80176b6: 891b ldrh r3, [r3, #8]
  57112. 80176b8: 8dfa ldrh r2, [r7, #46] @ 0x2e
  57113. 80176ba: 429a cmp r2, r3
  57114. 80176bc: d906 bls.n 80176cc <lwip_recv_tcp+0x170>
  57115. 80176be: 4b27 ldr r3, [pc, #156] @ (801775c <lwip_recv_tcp+0x200>)
  57116. 80176c0: f240 32e3 movw r2, #995 @ 0x3e3
  57117. 80176c4: 492c ldr r1, [pc, #176] @ (8017778 <lwip_recv_tcp+0x21c>)
  57118. 80176c6: 4827 ldr r0, [pc, #156] @ (8017764 <lwip_recv_tcp+0x208>)
  57119. 80176c8: f011 ff20 bl 802950c <iprintf>
  57120. if (p->tot_len - copylen > 0) {
  57121. 80176cc: 697b ldr r3, [r7, #20]
  57122. 80176ce: 891b ldrh r3, [r3, #8]
  57123. 80176d0: 461a mov r2, r3
  57124. 80176d2: 8dfb ldrh r3, [r7, #46] @ 0x2e
  57125. 80176d4: 1ad3 subs r3, r2, r3
  57126. 80176d6: 2b00 cmp r3, #0
  57127. 80176d8: dd09 ble.n 80176ee <lwip_recv_tcp+0x192>
  57128. /* If so, it should be saved in the sock structure for the next recv call.
  57129. We store the pbuf but hide/free the consumed data: */
  57130. sock->lastdata.pbuf = pbuf_free_header(p, copylen);
  57131. 80176da: 697b ldr r3, [r7, #20]
  57132. 80176dc: 8dfa ldrh r2, [r7, #46] @ 0x2e
  57133. 80176de: 4611 mov r1, r2
  57134. 80176e0: 4618 mov r0, r3
  57135. 80176e2: f002 fc68 bl 8019fb6 <pbuf_free_header>
  57136. 80176e6: 4602 mov r2, r0
  57137. 80176e8: 68fb ldr r3, [r7, #12]
  57138. 80176ea: 605a str r2, [r3, #4]
  57139. 80176ec: e006 b.n 80176fc <lwip_recv_tcp+0x1a0>
  57140. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: lastdata now pbuf=%p\n", (void *)sock->lastdata.pbuf));
  57141. } else {
  57142. sock->lastdata.pbuf = NULL;
  57143. 80176ee: 68fb ldr r3, [r7, #12]
  57144. 80176f0: 2200 movs r2, #0
  57145. 80176f2: 605a str r2, [r3, #4]
  57146. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: deleting pbuf=%p\n", (void *)p));
  57147. pbuf_free(p);
  57148. 80176f4: 697b ldr r3, [r7, #20]
  57149. 80176f6: 4618 mov r0, r3
  57150. 80176f8: f002 fc90 bl 801a01c <pbuf_free>
  57151. }
  57152. }
  57153. /* once we have some data to return, only add more if we don't need to wait */
  57154. apiflags |= NETCONN_DONTBLOCK | NETCONN_NOFIN;
  57155. 80176fc: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  57156. 8017700: f043 0314 orr.w r3, r3, #20
  57157. 8017704: f887 3023 strb.w r3, [r7, #35] @ 0x23
  57158. /* @todo: do we need to support peeking more than one pbuf? */
  57159. } while ((recv_left > 0) && !(flags & MSG_PEEK));
  57160. 8017708: 6a7b ldr r3, [r7, #36] @ 0x24
  57161. 801770a: 2b00 cmp r3, #0
  57162. 801770c: dd08 ble.n 8017720 <lwip_recv_tcp+0x1c4>
  57163. 801770e: 683b ldr r3, [r7, #0]
  57164. 8017710: f003 0301 and.w r3, r3, #1
  57165. 8017714: 2b00 cmp r3, #0
  57166. 8017716: f43f af58 beq.w 80175ca <lwip_recv_tcp+0x6e>
  57167. lwip_recv_tcp_done:
  57168. 801771a: e001 b.n 8017720 <lwip_recv_tcp+0x1c4>
  57169. goto lwip_recv_tcp_done;
  57170. 801771c: bf00 nop
  57171. 801771e: e000 b.n 8017722 <lwip_recv_tcp+0x1c6>
  57172. lwip_recv_tcp_done:
  57173. 8017720: bf00 nop
  57174. if ((recvd > 0) && !(flags & MSG_PEEK)) {
  57175. 8017722: 6abb ldr r3, [r7, #40] @ 0x28
  57176. 8017724: 2b00 cmp r3, #0
  57177. 8017726: dd0b ble.n 8017740 <lwip_recv_tcp+0x1e4>
  57178. 8017728: 683b ldr r3, [r7, #0]
  57179. 801772a: f003 0301 and.w r3, r3, #1
  57180. 801772e: 2b00 cmp r3, #0
  57181. 8017730: d106 bne.n 8017740 <lwip_recv_tcp+0x1e4>
  57182. /* ensure window update after copying all data */
  57183. netconn_tcp_recvd(sock->conn, (size_t)recvd);
  57184. 8017732: 68fb ldr r3, [r7, #12]
  57185. 8017734: 681b ldr r3, [r3, #0]
  57186. 8017736: 6aba ldr r2, [r7, #40] @ 0x28
  57187. 8017738: 4611 mov r1, r2
  57188. 801773a: 4618 mov r0, r3
  57189. 801773c: f7fd fd42 bl 80151c4 <netconn_tcp_recvd>
  57190. }
  57191. sock_set_errno(sock, 0);
  57192. 8017740: 2300 movs r3, #0
  57193. 8017742: 61bb str r3, [r7, #24]
  57194. 8017744: 69bb ldr r3, [r7, #24]
  57195. 8017746: 2b00 cmp r3, #0
  57196. 8017748: d002 beq.n 8017750 <lwip_recv_tcp+0x1f4>
  57197. 801774a: 4a08 ldr r2, [pc, #32] @ (801776c <lwip_recv_tcp+0x210>)
  57198. 801774c: 69bb ldr r3, [r7, #24]
  57199. 801774e: 6013 str r3, [r2, #0]
  57200. return recvd;
  57201. 8017750: 6abb ldr r3, [r7, #40] @ 0x28
  57202. }
  57203. 8017752: 4618 mov r0, r3
  57204. 8017754: 3730 adds r7, #48 @ 0x30
  57205. 8017756: 46bd mov sp, r7
  57206. 8017758: bd80 pop {r7, pc}
  57207. 801775a: bf00 nop
  57208. 801775c: 0802d160 .word 0x0802d160
  57209. 8017760: 0802d258 .word 0x0802d258
  57210. 8017764: 0802d1b4 .word 0x0802d1b4
  57211. 8017768: 0802d268 .word 0x0802d268
  57212. 801776c: 2402a2e4 .word 0x2402a2e4
  57213. 8017770: 0802d28c .word 0x0802d28c
  57214. 8017774: 0802d298 .word 0x0802d298
  57215. 8017778: 0802d2c0 .word 0x0802d2c0
  57216. 0801777c <lwip_sock_make_addr>:
  57217. /* Convert a netbuf's address data to struct sockaddr */
  57218. static int
  57219. lwip_sock_make_addr(struct netconn *conn, ip_addr_t *fromaddr, u16_t port,
  57220. struct sockaddr *from, socklen_t *fromlen)
  57221. {
  57222. 801777c: b590 push {r4, r7, lr}
  57223. 801777e: b08b sub sp, #44 @ 0x2c
  57224. 8017780: af00 add r7, sp, #0
  57225. 8017782: 60f8 str r0, [r7, #12]
  57226. 8017784: 60b9 str r1, [r7, #8]
  57227. 8017786: 603b str r3, [r7, #0]
  57228. 8017788: 4613 mov r3, r2
  57229. 801778a: 80fb strh r3, [r7, #6]
  57230. int truncated = 0;
  57231. 801778c: 2300 movs r3, #0
  57232. 801778e: 627b str r3, [r7, #36] @ 0x24
  57233. union sockaddr_aligned saddr;
  57234. LWIP_UNUSED_ARG(conn);
  57235. LWIP_ASSERT("fromaddr != NULL", fromaddr != NULL);
  57236. 8017790: 68bb ldr r3, [r7, #8]
  57237. 8017792: 2b00 cmp r3, #0
  57238. 8017794: d106 bne.n 80177a4 <lwip_sock_make_addr+0x28>
  57239. 8017796: 4b2b ldr r3, [pc, #172] @ (8017844 <lwip_sock_make_addr+0xc8>)
  57240. 8017798: f240 4207 movw r2, #1031 @ 0x407
  57241. 801779c: 492a ldr r1, [pc, #168] @ (8017848 <lwip_sock_make_addr+0xcc>)
  57242. 801779e: 482b ldr r0, [pc, #172] @ (801784c <lwip_sock_make_addr+0xd0>)
  57243. 80177a0: f011 feb4 bl 802950c <iprintf>
  57244. LWIP_ASSERT("from != NULL", from != NULL);
  57245. 80177a4: 683b ldr r3, [r7, #0]
  57246. 80177a6: 2b00 cmp r3, #0
  57247. 80177a8: d106 bne.n 80177b8 <lwip_sock_make_addr+0x3c>
  57248. 80177aa: 4b26 ldr r3, [pc, #152] @ (8017844 <lwip_sock_make_addr+0xc8>)
  57249. 80177ac: f44f 6281 mov.w r2, #1032 @ 0x408
  57250. 80177b0: 4927 ldr r1, [pc, #156] @ (8017850 <lwip_sock_make_addr+0xd4>)
  57251. 80177b2: 4826 ldr r0, [pc, #152] @ (801784c <lwip_sock_make_addr+0xd0>)
  57252. 80177b4: f011 feaa bl 802950c <iprintf>
  57253. LWIP_ASSERT("fromlen != NULL", fromlen != NULL);
  57254. 80177b8: 6bbb ldr r3, [r7, #56] @ 0x38
  57255. 80177ba: 2b00 cmp r3, #0
  57256. 80177bc: d106 bne.n 80177cc <lwip_sock_make_addr+0x50>
  57257. 80177be: 4b21 ldr r3, [pc, #132] @ (8017844 <lwip_sock_make_addr+0xc8>)
  57258. 80177c0: f240 4209 movw r2, #1033 @ 0x409
  57259. 80177c4: 4923 ldr r1, [pc, #140] @ (8017854 <lwip_sock_make_addr+0xd8>)
  57260. 80177c6: 4821 ldr r0, [pc, #132] @ (801784c <lwip_sock_make_addr+0xd0>)
  57261. 80177c8: f011 fea0 bl 802950c <iprintf>
  57262. ip4_2_ipv4_mapped_ipv6(ip_2_ip6(fromaddr), ip_2_ip4(fromaddr));
  57263. IP_SET_TYPE(fromaddr, IPADDR_TYPE_V6);
  57264. }
  57265. #endif /* LWIP_IPV4 && LWIP_IPV6 */
  57266. IPADDR_PORT_TO_SOCKADDR(&saddr, fromaddr, port);
  57267. 80177cc: f107 0314 add.w r3, r7, #20
  57268. 80177d0: 2210 movs r2, #16
  57269. 80177d2: 701a strb r2, [r3, #0]
  57270. 80177d4: f107 0314 add.w r3, r7, #20
  57271. 80177d8: 2202 movs r2, #2
  57272. 80177da: 705a strb r2, [r3, #1]
  57273. 80177dc: f107 0414 add.w r4, r7, #20
  57274. 80177e0: 88fb ldrh r3, [r7, #6]
  57275. 80177e2: 4618 mov r0, r3
  57276. 80177e4: f000 ff38 bl 8018658 <lwip_htons>
  57277. 80177e8: 4603 mov r3, r0
  57278. 80177ea: 8063 strh r3, [r4, #2]
  57279. 80177ec: f107 0314 add.w r3, r7, #20
  57280. 80177f0: 68ba ldr r2, [r7, #8]
  57281. 80177f2: 6812 ldr r2, [r2, #0]
  57282. 80177f4: 605a str r2, [r3, #4]
  57283. 80177f6: f107 0314 add.w r3, r7, #20
  57284. 80177fa: 3308 adds r3, #8
  57285. 80177fc: 2208 movs r2, #8
  57286. 80177fe: 2100 movs r1, #0
  57287. 8017800: 4618 mov r0, r3
  57288. 8017802: f012 f815 bl 8029830 <memset>
  57289. if (*fromlen < saddr.sa.sa_len) {
  57290. 8017806: 6bbb ldr r3, [r7, #56] @ 0x38
  57291. 8017808: 681b ldr r3, [r3, #0]
  57292. 801780a: 7d3a ldrb r2, [r7, #20]
  57293. 801780c: 4293 cmp r3, r2
  57294. 801780e: d202 bcs.n 8017816 <lwip_sock_make_addr+0x9a>
  57295. truncated = 1;
  57296. 8017810: 2301 movs r3, #1
  57297. 8017812: 627b str r3, [r7, #36] @ 0x24
  57298. 8017814: e008 b.n 8017828 <lwip_sock_make_addr+0xac>
  57299. } else if (*fromlen > saddr.sa.sa_len) {
  57300. 8017816: 6bbb ldr r3, [r7, #56] @ 0x38
  57301. 8017818: 681b ldr r3, [r3, #0]
  57302. 801781a: 7d3a ldrb r2, [r7, #20]
  57303. 801781c: 4293 cmp r3, r2
  57304. 801781e: d903 bls.n 8017828 <lwip_sock_make_addr+0xac>
  57305. *fromlen = saddr.sa.sa_len;
  57306. 8017820: 7d3b ldrb r3, [r7, #20]
  57307. 8017822: 461a mov r2, r3
  57308. 8017824: 6bbb ldr r3, [r7, #56] @ 0x38
  57309. 8017826: 601a str r2, [r3, #0]
  57310. }
  57311. MEMCPY(from, &saddr, *fromlen);
  57312. 8017828: 6bbb ldr r3, [r7, #56] @ 0x38
  57313. 801782a: 681a ldr r2, [r3, #0]
  57314. 801782c: f107 0314 add.w r3, r7, #20
  57315. 8017830: 4619 mov r1, r3
  57316. 8017832: 6838 ldr r0, [r7, #0]
  57317. 8017834: f012 f8f3 bl 8029a1e <memcpy>
  57318. return truncated;
  57319. 8017838: 6a7b ldr r3, [r7, #36] @ 0x24
  57320. }
  57321. 801783a: 4618 mov r0, r3
  57322. 801783c: 372c adds r7, #44 @ 0x2c
  57323. 801783e: 46bd mov sp, r7
  57324. 8017840: bd90 pop {r4, r7, pc}
  57325. 8017842: bf00 nop
  57326. 8017844: 0802d160 .word 0x0802d160
  57327. 8017848: 0802d2d0 .word 0x0802d2d0
  57328. 801784c: 0802d1b4 .word 0x0802d1b4
  57329. 8017850: 0802d2e4 .word 0x0802d2e4
  57330. 8017854: 0802d2f4 .word 0x0802d2f4
  57331. 08017858 <lwip_recv_tcp_from>:
  57332. #if LWIP_TCP
  57333. /* Helper function to get a tcp socket's remote address info */
  57334. static int
  57335. lwip_recv_tcp_from(struct lwip_sock *sock, struct sockaddr *from, socklen_t *fromlen, const char *dbg_fn, int dbg_s, ssize_t dbg_ret)
  57336. {
  57337. 8017858: b580 push {r7, lr}
  57338. 801785a: b088 sub sp, #32
  57339. 801785c: af02 add r7, sp, #8
  57340. 801785e: 60f8 str r0, [r7, #12]
  57341. 8017860: 60b9 str r1, [r7, #8]
  57342. 8017862: 607a str r2, [r7, #4]
  57343. 8017864: 603b str r3, [r7, #0]
  57344. if (sock == NULL) {
  57345. 8017866: 68fb ldr r3, [r7, #12]
  57346. 8017868: 2b00 cmp r3, #0
  57347. 801786a: d101 bne.n 8017870 <lwip_recv_tcp_from+0x18>
  57348. return 0;
  57349. 801786c: 2300 movs r3, #0
  57350. 801786e: e021 b.n 80178b4 <lwip_recv_tcp_from+0x5c>
  57351. LWIP_UNUSED_ARG(dbg_fn);
  57352. LWIP_UNUSED_ARG(dbg_s);
  57353. LWIP_UNUSED_ARG(dbg_ret);
  57354. #if !SOCKETS_DEBUG
  57355. if (from && fromlen)
  57356. 8017870: 68bb ldr r3, [r7, #8]
  57357. 8017872: 2b00 cmp r3, #0
  57358. 8017874: d01d beq.n 80178b2 <lwip_recv_tcp_from+0x5a>
  57359. 8017876: 687b ldr r3, [r7, #4]
  57360. 8017878: 2b00 cmp r3, #0
  57361. 801787a: d01a beq.n 80178b2 <lwip_recv_tcp_from+0x5a>
  57362. #endif /* !SOCKETS_DEBUG */
  57363. {
  57364. /* get remote addr/port from tcp_pcb */
  57365. u16_t port;
  57366. ip_addr_t tmpaddr;
  57367. netconn_getaddr(sock->conn, &tmpaddr, &port, 0);
  57368. 801787c: 68fb ldr r3, [r7, #12]
  57369. 801787e: 6818 ldr r0, [r3, #0]
  57370. 8017880: f107 0216 add.w r2, r7, #22
  57371. 8017884: f107 0110 add.w r1, r7, #16
  57372. 8017888: 2300 movs r3, #0
  57373. 801788a: f7fd fad7 bl 8014e3c <netconn_getaddr>
  57374. LWIP_DEBUGF(SOCKETS_DEBUG, ("%s(%d): addr=", dbg_fn, dbg_s));
  57375. ip_addr_debug_print_val(SOCKETS_DEBUG, tmpaddr);
  57376. LWIP_DEBUGF(SOCKETS_DEBUG, (" port=%"U16_F" len=%d\n", port, (int)dbg_ret));
  57377. if (from && fromlen) {
  57378. 801788e: 68bb ldr r3, [r7, #8]
  57379. 8017890: 2b00 cmp r3, #0
  57380. 8017892: d00e beq.n 80178b2 <lwip_recv_tcp_from+0x5a>
  57381. 8017894: 687b ldr r3, [r7, #4]
  57382. 8017896: 2b00 cmp r3, #0
  57383. 8017898: d00b beq.n 80178b2 <lwip_recv_tcp_from+0x5a>
  57384. return lwip_sock_make_addr(sock->conn, &tmpaddr, port, from, fromlen);
  57385. 801789a: 68fb ldr r3, [r7, #12]
  57386. 801789c: 6818 ldr r0, [r3, #0]
  57387. 801789e: 8afa ldrh r2, [r7, #22]
  57388. 80178a0: f107 0110 add.w r1, r7, #16
  57389. 80178a4: 687b ldr r3, [r7, #4]
  57390. 80178a6: 9300 str r3, [sp, #0]
  57391. 80178a8: 68bb ldr r3, [r7, #8]
  57392. 80178aa: f7ff ff67 bl 801777c <lwip_sock_make_addr>
  57393. 80178ae: 4603 mov r3, r0
  57394. 80178b0: e000 b.n 80178b4 <lwip_recv_tcp_from+0x5c>
  57395. }
  57396. }
  57397. return 0;
  57398. 80178b2: 2300 movs r3, #0
  57399. }
  57400. 80178b4: 4618 mov r0, r3
  57401. 80178b6: 3718 adds r7, #24
  57402. 80178b8: 46bd mov sp, r7
  57403. 80178ba: bd80 pop {r7, pc}
  57404. 080178bc <lwip_recvfrom_udp_raw>:
  57405. /* Helper function to receive a netbuf from a udp or raw netconn.
  57406. * Keeps sock->lastdata for peeking.
  57407. */
  57408. static err_t
  57409. lwip_recvfrom_udp_raw(struct lwip_sock *sock, int flags, struct msghdr *msg, u16_t *datagram_len, int dbg_s)
  57410. {
  57411. 80178bc: b590 push {r4, r7, lr}
  57412. 80178be: b08d sub sp, #52 @ 0x34
  57413. 80178c0: af02 add r7, sp, #8
  57414. 80178c2: 60f8 str r0, [r7, #12]
  57415. 80178c4: 60b9 str r1, [r7, #8]
  57416. 80178c6: 607a str r2, [r7, #4]
  57417. 80178c8: 603b str r3, [r7, #0]
  57418. err_t err;
  57419. u16_t buflen, copylen, copied;
  57420. int i;
  57421. LWIP_UNUSED_ARG(dbg_s);
  57422. LWIP_ERROR("lwip_recvfrom_udp_raw: invalid arguments", (msg->msg_iov != NULL) || (msg->msg_iovlen <= 0), return ERR_ARG;);
  57423. 80178ca: 687b ldr r3, [r7, #4]
  57424. 80178cc: 689b ldr r3, [r3, #8]
  57425. 80178ce: 2b00 cmp r3, #0
  57426. 80178d0: d10d bne.n 80178ee <lwip_recvfrom_udp_raw+0x32>
  57427. 80178d2: 687b ldr r3, [r7, #4]
  57428. 80178d4: 68db ldr r3, [r3, #12]
  57429. 80178d6: 2b00 cmp r3, #0
  57430. 80178d8: dd09 ble.n 80178ee <lwip_recvfrom_udp_raw+0x32>
  57431. 80178da: 4b5e ldr r3, [pc, #376] @ (8017a54 <lwip_recvfrom_udp_raw+0x198>)
  57432. 80178dc: f240 4249 movw r2, #1097 @ 0x449
  57433. 80178e0: 495d ldr r1, [pc, #372] @ (8017a58 <lwip_recvfrom_udp_raw+0x19c>)
  57434. 80178e2: 485e ldr r0, [pc, #376] @ (8017a5c <lwip_recvfrom_udp_raw+0x1a0>)
  57435. 80178e4: f011 fe12 bl 802950c <iprintf>
  57436. 80178e8: f06f 030f mvn.w r3, #15
  57437. 80178ec: e0ae b.n 8017a4c <lwip_recvfrom_udp_raw+0x190>
  57438. if (flags & MSG_DONTWAIT) {
  57439. 80178ee: 68bb ldr r3, [r7, #8]
  57440. 80178f0: f003 0308 and.w r3, r3, #8
  57441. 80178f4: 2b00 cmp r3, #0
  57442. 80178f6: d003 beq.n 8017900 <lwip_recvfrom_udp_raw+0x44>
  57443. apiflags = NETCONN_DONTBLOCK;
  57444. 80178f8: 2304 movs r3, #4
  57445. 80178fa: f887 3026 strb.w r3, [r7, #38] @ 0x26
  57446. 80178fe: e002 b.n 8017906 <lwip_recvfrom_udp_raw+0x4a>
  57447. } else {
  57448. apiflags = 0;
  57449. 8017900: 2300 movs r3, #0
  57450. 8017902: f887 3026 strb.w r3, [r7, #38] @ 0x26
  57451. }
  57452. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom_udp_raw[UDP/RAW]: top sock->lastdata=%p\n", (void *)sock->lastdata.netbuf));
  57453. /* Check if there is data left from the last recv operation. */
  57454. buf = sock->lastdata.netbuf;
  57455. 8017906: 68fb ldr r3, [r7, #12]
  57456. 8017908: 685b ldr r3, [r3, #4]
  57457. 801790a: 613b str r3, [r7, #16]
  57458. if (buf == NULL) {
  57459. 801790c: 693b ldr r3, [r7, #16]
  57460. 801790e: 2b00 cmp r3, #0
  57461. 8017910: d11f bne.n 8017952 <lwip_recvfrom_udp_raw+0x96>
  57462. /* No data was left from the previous operation, so we try to get
  57463. some from the network. */
  57464. err = netconn_recv_udp_raw_netbuf_flags(sock->conn, &buf, apiflags);
  57465. 8017912: 68fb ldr r3, [r7, #12]
  57466. 8017914: 681b ldr r3, [r3, #0]
  57467. 8017916: f897 2026 ldrb.w r2, [r7, #38] @ 0x26
  57468. 801791a: f107 0110 add.w r1, r7, #16
  57469. 801791e: 4618 mov r0, r3
  57470. 8017920: f7fd fd34 bl 801538c <netconn_recv_udp_raw_netbuf_flags>
  57471. 8017924: 4603 mov r3, r0
  57472. 8017926: f887 3027 strb.w r3, [r7, #39] @ 0x27
  57473. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom_udp_raw[UDP/RAW]: netconn_recv err=%d, netbuf=%p\n",
  57474. err, (void *)buf));
  57475. if (err != ERR_OK) {
  57476. 801792a: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  57477. 801792e: 2b00 cmp r3, #0
  57478. 8017930: d002 beq.n 8017938 <lwip_recvfrom_udp_raw+0x7c>
  57479. return err;
  57480. 8017932: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  57481. 8017936: e089 b.n 8017a4c <lwip_recvfrom_udp_raw+0x190>
  57482. }
  57483. LWIP_ASSERT("buf != NULL", buf != NULL);
  57484. 8017938: 693b ldr r3, [r7, #16]
  57485. 801793a: 2b00 cmp r3, #0
  57486. 801793c: d106 bne.n 801794c <lwip_recvfrom_udp_raw+0x90>
  57487. 801793e: 4b45 ldr r3, [pc, #276] @ (8017a54 <lwip_recvfrom_udp_raw+0x198>)
  57488. 8017940: f240 425e movw r2, #1118 @ 0x45e
  57489. 8017944: 4946 ldr r1, [pc, #280] @ (8017a60 <lwip_recvfrom_udp_raw+0x1a4>)
  57490. 8017946: 4845 ldr r0, [pc, #276] @ (8017a5c <lwip_recvfrom_udp_raw+0x1a0>)
  57491. 8017948: f011 fde0 bl 802950c <iprintf>
  57492. sock->lastdata.netbuf = buf;
  57493. 801794c: 693a ldr r2, [r7, #16]
  57494. 801794e: 68fb ldr r3, [r7, #12]
  57495. 8017950: 605a str r2, [r3, #4]
  57496. }
  57497. buflen = buf->p->tot_len;
  57498. 8017952: 693b ldr r3, [r7, #16]
  57499. 8017954: 681b ldr r3, [r3, #0]
  57500. 8017956: 891b ldrh r3, [r3, #8]
  57501. 8017958: 837b strh r3, [r7, #26]
  57502. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom_udp_raw: buflen=%"U16_F"\n", buflen));
  57503. copied = 0;
  57504. 801795a: 2300 movs r3, #0
  57505. 801795c: 847b strh r3, [r7, #34] @ 0x22
  57506. /* copy the pbuf payload into the iovs */
  57507. for (i = 0; (i < msg->msg_iovlen) && (copied < buflen); i++) {
  57508. 801795e: 2300 movs r3, #0
  57509. 8017960: 61fb str r3, [r7, #28]
  57510. 8017962: e029 b.n 80179b8 <lwip_recvfrom_udp_raw+0xfc>
  57511. u16_t len_left = (u16_t)(buflen - copied);
  57512. 8017964: 8b7a ldrh r2, [r7, #26]
  57513. 8017966: 8c7b ldrh r3, [r7, #34] @ 0x22
  57514. 8017968: 1ad3 subs r3, r2, r3
  57515. 801796a: 833b strh r3, [r7, #24]
  57516. if (msg->msg_iov[i].iov_len > len_left) {
  57517. 801796c: 687b ldr r3, [r7, #4]
  57518. 801796e: 689a ldr r2, [r3, #8]
  57519. 8017970: 69fb ldr r3, [r7, #28]
  57520. 8017972: 00db lsls r3, r3, #3
  57521. 8017974: 4413 add r3, r2
  57522. 8017976: 685a ldr r2, [r3, #4]
  57523. 8017978: 8b3b ldrh r3, [r7, #24]
  57524. 801797a: 429a cmp r2, r3
  57525. 801797c: d902 bls.n 8017984 <lwip_recvfrom_udp_raw+0xc8>
  57526. copylen = len_left;
  57527. 801797e: 8b3b ldrh r3, [r7, #24]
  57528. 8017980: 84bb strh r3, [r7, #36] @ 0x24
  57529. 8017982: e006 b.n 8017992 <lwip_recvfrom_udp_raw+0xd6>
  57530. } else {
  57531. copylen = (u16_t)msg->msg_iov[i].iov_len;
  57532. 8017984: 687b ldr r3, [r7, #4]
  57533. 8017986: 689a ldr r2, [r3, #8]
  57534. 8017988: 69fb ldr r3, [r7, #28]
  57535. 801798a: 00db lsls r3, r3, #3
  57536. 801798c: 4413 add r3, r2
  57537. 801798e: 685b ldr r3, [r3, #4]
  57538. 8017990: 84bb strh r3, [r7, #36] @ 0x24
  57539. }
  57540. /* copy the contents of the received buffer into
  57541. the supplied memory buffer */
  57542. pbuf_copy_partial(buf->p, (u8_t *)msg->msg_iov[i].iov_base, copylen, copied);
  57543. 8017992: 693b ldr r3, [r7, #16]
  57544. 8017994: 6818 ldr r0, [r3, #0]
  57545. 8017996: 687b ldr r3, [r7, #4]
  57546. 8017998: 689a ldr r2, [r3, #8]
  57547. 801799a: 69fb ldr r3, [r7, #28]
  57548. 801799c: 00db lsls r3, r3, #3
  57549. 801799e: 4413 add r3, r2
  57550. 80179a0: 6819 ldr r1, [r3, #0]
  57551. 80179a2: 8c7b ldrh r3, [r7, #34] @ 0x22
  57552. 80179a4: 8cba ldrh r2, [r7, #36] @ 0x24
  57553. 80179a6: f002 fd3f bl 801a428 <pbuf_copy_partial>
  57554. copied = (u16_t)(copied + copylen);
  57555. 80179aa: 8c7a ldrh r2, [r7, #34] @ 0x22
  57556. 80179ac: 8cbb ldrh r3, [r7, #36] @ 0x24
  57557. 80179ae: 4413 add r3, r2
  57558. 80179b0: 847b strh r3, [r7, #34] @ 0x22
  57559. for (i = 0; (i < msg->msg_iovlen) && (copied < buflen); i++) {
  57560. 80179b2: 69fb ldr r3, [r7, #28]
  57561. 80179b4: 3301 adds r3, #1
  57562. 80179b6: 61fb str r3, [r7, #28]
  57563. 80179b8: 687b ldr r3, [r7, #4]
  57564. 80179ba: 68db ldr r3, [r3, #12]
  57565. 80179bc: 69fa ldr r2, [r7, #28]
  57566. 80179be: 429a cmp r2, r3
  57567. 80179c0: da03 bge.n 80179ca <lwip_recvfrom_udp_raw+0x10e>
  57568. 80179c2: 8c7a ldrh r2, [r7, #34] @ 0x22
  57569. 80179c4: 8b7b ldrh r3, [r7, #26]
  57570. 80179c6: 429a cmp r2, r3
  57571. 80179c8: d3cc bcc.n 8017964 <lwip_recvfrom_udp_raw+0xa8>
  57572. }
  57573. /* Check to see from where the data was.*/
  57574. #if !SOCKETS_DEBUG
  57575. if (msg->msg_name && msg->msg_namelen)
  57576. 80179ca: 687b ldr r3, [r7, #4]
  57577. 80179cc: 681b ldr r3, [r3, #0]
  57578. 80179ce: 2b00 cmp r3, #0
  57579. 80179d0: d01a beq.n 8017a08 <lwip_recvfrom_udp_raw+0x14c>
  57580. 80179d2: 687b ldr r3, [r7, #4]
  57581. 80179d4: 685b ldr r3, [r3, #4]
  57582. 80179d6: 2b00 cmp r3, #0
  57583. 80179d8: d016 beq.n 8017a08 <lwip_recvfrom_udp_raw+0x14c>
  57584. #endif /* !SOCKETS_DEBUG */
  57585. {
  57586. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom_udp_raw(%d): addr=", dbg_s));
  57587. ip_addr_debug_print_val(SOCKETS_DEBUG, *netbuf_fromaddr(buf));
  57588. LWIP_DEBUGF(SOCKETS_DEBUG, (" port=%"U16_F" len=%d\n", netbuf_fromport(buf), copied));
  57589. if (msg->msg_name && msg->msg_namelen) {
  57590. 80179da: 687b ldr r3, [r7, #4]
  57591. 80179dc: 681b ldr r3, [r3, #0]
  57592. 80179de: 2b00 cmp r3, #0
  57593. 80179e0: d012 beq.n 8017a08 <lwip_recvfrom_udp_raw+0x14c>
  57594. 80179e2: 687b ldr r3, [r7, #4]
  57595. 80179e4: 685b ldr r3, [r3, #4]
  57596. 80179e6: 2b00 cmp r3, #0
  57597. 80179e8: d00e beq.n 8017a08 <lwip_recvfrom_udp_raw+0x14c>
  57598. lwip_sock_make_addr(sock->conn, netbuf_fromaddr(buf), netbuf_fromport(buf),
  57599. 80179ea: 68fb ldr r3, [r7, #12]
  57600. 80179ec: 6818 ldr r0, [r3, #0]
  57601. 80179ee: 693b ldr r3, [r7, #16]
  57602. 80179f0: f103 0108 add.w r1, r3, #8
  57603. 80179f4: 693b ldr r3, [r7, #16]
  57604. 80179f6: 899a ldrh r2, [r3, #12]
  57605. (struct sockaddr *)msg->msg_name, &msg->msg_namelen);
  57606. 80179f8: 687b ldr r3, [r7, #4]
  57607. 80179fa: 681c ldr r4, [r3, #0]
  57608. lwip_sock_make_addr(sock->conn, netbuf_fromaddr(buf), netbuf_fromport(buf),
  57609. 80179fc: 687b ldr r3, [r7, #4]
  57610. 80179fe: 3304 adds r3, #4
  57611. 8017a00: 9300 str r3, [sp, #0]
  57612. 8017a02: 4623 mov r3, r4
  57613. 8017a04: f7ff feba bl 801777c <lwip_sock_make_addr>
  57614. }
  57615. }
  57616. /* Initialize flag output */
  57617. msg->msg_flags = 0;
  57618. 8017a08: 687b ldr r3, [r7, #4]
  57619. 8017a0a: 2200 movs r2, #0
  57620. 8017a0c: 619a str r2, [r3, #24]
  57621. if (msg->msg_control) {
  57622. 8017a0e: 687b ldr r3, [r7, #4]
  57623. 8017a10: 691b ldr r3, [r3, #16]
  57624. 8017a12: 2b00 cmp r3, #0
  57625. 8017a14: d007 beq.n 8017a26 <lwip_recvfrom_udp_raw+0x16a>
  57626. u8_t wrote_msg = 0;
  57627. 8017a16: 2300 movs r3, #0
  57628. 8017a18: 75fb strb r3, [r7, #23]
  57629. #endif /* LWIP_IPV4 */
  57630. }
  57631. }
  57632. #endif /* LWIP_NETBUF_RECVINFO */
  57633. if (!wrote_msg) {
  57634. 8017a1a: 7dfb ldrb r3, [r7, #23]
  57635. 8017a1c: 2b00 cmp r3, #0
  57636. 8017a1e: d102 bne.n 8017a26 <lwip_recvfrom_udp_raw+0x16a>
  57637. msg->msg_controllen = 0;
  57638. 8017a20: 687b ldr r3, [r7, #4]
  57639. 8017a22: 2200 movs r2, #0
  57640. 8017a24: 615a str r2, [r3, #20]
  57641. }
  57642. }
  57643. /* If we don't peek the incoming message: zero lastdata pointer and free the netbuf */
  57644. if ((flags & MSG_PEEK) == 0) {
  57645. 8017a26: 68bb ldr r3, [r7, #8]
  57646. 8017a28: f003 0301 and.w r3, r3, #1
  57647. 8017a2c: 2b00 cmp r3, #0
  57648. 8017a2e: d106 bne.n 8017a3e <lwip_recvfrom_udp_raw+0x182>
  57649. sock->lastdata.netbuf = NULL;
  57650. 8017a30: 68fb ldr r3, [r7, #12]
  57651. 8017a32: 2200 movs r2, #0
  57652. 8017a34: 605a str r2, [r3, #4]
  57653. netbuf_delete(buf);
  57654. 8017a36: 693b ldr r3, [r7, #16]
  57655. 8017a38: 4618 mov r0, r3
  57656. 8017a3a: f7ff fb05 bl 8017048 <netbuf_delete>
  57657. }
  57658. if (datagram_len) {
  57659. 8017a3e: 683b ldr r3, [r7, #0]
  57660. 8017a40: 2b00 cmp r3, #0
  57661. 8017a42: d002 beq.n 8017a4a <lwip_recvfrom_udp_raw+0x18e>
  57662. *datagram_len = buflen;
  57663. 8017a44: 683b ldr r3, [r7, #0]
  57664. 8017a46: 8b7a ldrh r2, [r7, #26]
  57665. 8017a48: 801a strh r2, [r3, #0]
  57666. }
  57667. return ERR_OK;
  57668. 8017a4a: 2300 movs r3, #0
  57669. }
  57670. 8017a4c: 4618 mov r0, r3
  57671. 8017a4e: 372c adds r7, #44 @ 0x2c
  57672. 8017a50: 46bd mov sp, r7
  57673. 8017a52: bd90 pop {r4, r7, pc}
  57674. 8017a54: 0802d160 .word 0x0802d160
  57675. 8017a58: 0802d304 .word 0x0802d304
  57676. 8017a5c: 0802d1b4 .word 0x0802d1b4
  57677. 8017a60: 0802d330 .word 0x0802d330
  57678. 08017a64 <lwip_recvfrom>:
  57679. ssize_t
  57680. lwip_recvfrom(int s, void *mem, size_t len, int flags,
  57681. struct sockaddr *from, socklen_t *fromlen)
  57682. {
  57683. 8017a64: b580 push {r7, lr}
  57684. 8017a66: b096 sub sp, #88 @ 0x58
  57685. 8017a68: af02 add r7, sp, #8
  57686. 8017a6a: 60f8 str r0, [r7, #12]
  57687. 8017a6c: 60b9 str r1, [r7, #8]
  57688. 8017a6e: 607a str r2, [r7, #4]
  57689. 8017a70: 603b str r3, [r7, #0]
  57690. struct lwip_sock *sock;
  57691. ssize_t ret;
  57692. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom(%d, %p, %"SZT_F", 0x%x, ..)\n", s, mem, len, flags));
  57693. sock = get_socket(s);
  57694. 8017a72: 68f8 ldr r0, [r7, #12]
  57695. 8017a74: f7ff fbb8 bl 80171e8 <get_socket>
  57696. 8017a78: 64f8 str r0, [r7, #76] @ 0x4c
  57697. if (!sock) {
  57698. 8017a7a: 6cfb ldr r3, [r7, #76] @ 0x4c
  57699. 8017a7c: 2b00 cmp r3, #0
  57700. 8017a7e: d102 bne.n 8017a86 <lwip_recvfrom+0x22>
  57701. return -1;
  57702. 8017a80: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  57703. 8017a84: e078 b.n 8017b78 <lwip_recvfrom+0x114>
  57704. }
  57705. #if LWIP_TCP
  57706. if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP) {
  57707. 8017a86: 6cfb ldr r3, [r7, #76] @ 0x4c
  57708. 8017a88: 681b ldr r3, [r3, #0]
  57709. 8017a8a: 781b ldrb r3, [r3, #0]
  57710. 8017a8c: f003 03f0 and.w r3, r3, #240 @ 0xf0
  57711. 8017a90: 2b10 cmp r3, #16
  57712. 8017a92: d112 bne.n 8017aba <lwip_recvfrom+0x56>
  57713. ret = lwip_recv_tcp(sock, mem, len, flags);
  57714. 8017a94: 683b ldr r3, [r7, #0]
  57715. 8017a96: 687a ldr r2, [r7, #4]
  57716. 8017a98: 68b9 ldr r1, [r7, #8]
  57717. 8017a9a: 6cf8 ldr r0, [r7, #76] @ 0x4c
  57718. 8017a9c: f7ff fd5e bl 801755c <lwip_recv_tcp>
  57719. 8017aa0: 6478 str r0, [r7, #68] @ 0x44
  57720. lwip_recv_tcp_from(sock, from, fromlen, "lwip_recvfrom", s, ret);
  57721. 8017aa2: 6c7b ldr r3, [r7, #68] @ 0x44
  57722. 8017aa4: 9301 str r3, [sp, #4]
  57723. 8017aa6: 68fb ldr r3, [r7, #12]
  57724. 8017aa8: 9300 str r3, [sp, #0]
  57725. 8017aaa: 4b35 ldr r3, [pc, #212] @ (8017b80 <lwip_recvfrom+0x11c>)
  57726. 8017aac: 6dfa ldr r2, [r7, #92] @ 0x5c
  57727. 8017aae: 6db9 ldr r1, [r7, #88] @ 0x58
  57728. 8017ab0: 6cf8 ldr r0, [r7, #76] @ 0x4c
  57729. 8017ab2: f7ff fed1 bl 8017858 <lwip_recv_tcp_from>
  57730. done_socket(sock);
  57731. return ret;
  57732. 8017ab6: 6c7b ldr r3, [r7, #68] @ 0x44
  57733. 8017ab8: e05e b.n 8017b78 <lwip_recvfrom+0x114>
  57734. } else
  57735. #endif
  57736. {
  57737. u16_t datagram_len = 0;
  57738. 8017aba: 2300 movs r3, #0
  57739. 8017abc: 877b strh r3, [r7, #58] @ 0x3a
  57740. struct iovec vec;
  57741. struct msghdr msg;
  57742. err_t err;
  57743. vec.iov_base = mem;
  57744. 8017abe: 68bb ldr r3, [r7, #8]
  57745. 8017ac0: 633b str r3, [r7, #48] @ 0x30
  57746. vec.iov_len = len;
  57747. 8017ac2: 687b ldr r3, [r7, #4]
  57748. 8017ac4: 637b str r3, [r7, #52] @ 0x34
  57749. msg.msg_control = NULL;
  57750. 8017ac6: 2300 movs r3, #0
  57751. 8017ac8: 627b str r3, [r7, #36] @ 0x24
  57752. msg.msg_controllen = 0;
  57753. 8017aca: 2300 movs r3, #0
  57754. 8017acc: 62bb str r3, [r7, #40] @ 0x28
  57755. msg.msg_flags = 0;
  57756. 8017ace: 2300 movs r3, #0
  57757. 8017ad0: 62fb str r3, [r7, #44] @ 0x2c
  57758. msg.msg_iov = &vec;
  57759. 8017ad2: f107 0330 add.w r3, r7, #48 @ 0x30
  57760. 8017ad6: 61fb str r3, [r7, #28]
  57761. msg.msg_iovlen = 1;
  57762. 8017ad8: 2301 movs r3, #1
  57763. 8017ada: 623b str r3, [r7, #32]
  57764. msg.msg_name = from;
  57765. 8017adc: 6dbb ldr r3, [r7, #88] @ 0x58
  57766. 8017ade: 617b str r3, [r7, #20]
  57767. msg.msg_namelen = (fromlen ? *fromlen : 0);
  57768. 8017ae0: 6dfb ldr r3, [r7, #92] @ 0x5c
  57769. 8017ae2: 2b00 cmp r3, #0
  57770. 8017ae4: d002 beq.n 8017aec <lwip_recvfrom+0x88>
  57771. 8017ae6: 6dfb ldr r3, [r7, #92] @ 0x5c
  57772. 8017ae8: 681b ldr r3, [r3, #0]
  57773. 8017aea: e000 b.n 8017aee <lwip_recvfrom+0x8a>
  57774. 8017aec: 2300 movs r3, #0
  57775. 8017aee: 61bb str r3, [r7, #24]
  57776. err = lwip_recvfrom_udp_raw(sock, flags, &msg, &datagram_len, s);
  57777. 8017af0: f107 013a add.w r1, r7, #58 @ 0x3a
  57778. 8017af4: f107 0214 add.w r2, r7, #20
  57779. 8017af8: 68fb ldr r3, [r7, #12]
  57780. 8017afa: 9300 str r3, [sp, #0]
  57781. 8017afc: 460b mov r3, r1
  57782. 8017afe: 6839 ldr r1, [r7, #0]
  57783. 8017b00: 6cf8 ldr r0, [r7, #76] @ 0x4c
  57784. 8017b02: f7ff fedb bl 80178bc <lwip_recvfrom_udp_raw>
  57785. 8017b06: 4603 mov r3, r0
  57786. 8017b08: f887 304b strb.w r3, [r7, #75] @ 0x4b
  57787. if (err != ERR_OK) {
  57788. 8017b0c: f997 304b ldrsb.w r3, [r7, #75] @ 0x4b
  57789. 8017b10: 2b00 cmp r3, #0
  57790. 8017b12: d00e beq.n 8017b32 <lwip_recvfrom+0xce>
  57791. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom[UDP/RAW](%d): buf == NULL, error is \"%s\"!\n",
  57792. s, lwip_strerr(err)));
  57793. sock_set_errno(sock, err_to_errno(err));
  57794. 8017b14: f997 304b ldrsb.w r3, [r7, #75] @ 0x4b
  57795. 8017b18: 4618 mov r0, r3
  57796. 8017b1a: f7ff fa77 bl 801700c <err_to_errno>
  57797. 8017b1e: 63f8 str r0, [r7, #60] @ 0x3c
  57798. 8017b20: 6bfb ldr r3, [r7, #60] @ 0x3c
  57799. 8017b22: 2b00 cmp r3, #0
  57800. 8017b24: d002 beq.n 8017b2c <lwip_recvfrom+0xc8>
  57801. 8017b26: 4a17 ldr r2, [pc, #92] @ (8017b84 <lwip_recvfrom+0x120>)
  57802. 8017b28: 6bfb ldr r3, [r7, #60] @ 0x3c
  57803. 8017b2a: 6013 str r3, [r2, #0]
  57804. done_socket(sock);
  57805. return -1;
  57806. 8017b2c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  57807. 8017b30: e022 b.n 8017b78 <lwip_recvfrom+0x114>
  57808. }
  57809. ret = (ssize_t)LWIP_MIN(LWIP_MIN(len, datagram_len), SSIZE_MAX);
  57810. 8017b32: 8f7b ldrh r3, [r7, #58] @ 0x3a
  57811. 8017b34: 461a mov r2, r3
  57812. 8017b36: 687b ldr r3, [r7, #4]
  57813. 8017b38: 4293 cmp r3, r2
  57814. 8017b3a: bf28 it cs
  57815. 8017b3c: 4613 movcs r3, r2
  57816. 8017b3e: f06f 4200 mvn.w r2, #2147483648 @ 0x80000000
  57817. 8017b42: 4293 cmp r3, r2
  57818. 8017b44: d206 bcs.n 8017b54 <lwip_recvfrom+0xf0>
  57819. 8017b46: 8f7b ldrh r3, [r7, #58] @ 0x3a
  57820. 8017b48: 461a mov r2, r3
  57821. 8017b4a: 687b ldr r3, [r7, #4]
  57822. 8017b4c: 4293 cmp r3, r2
  57823. 8017b4e: bf28 it cs
  57824. 8017b50: 4613 movcs r3, r2
  57825. 8017b52: e001 b.n 8017b58 <lwip_recvfrom+0xf4>
  57826. 8017b54: f06f 4300 mvn.w r3, #2147483648 @ 0x80000000
  57827. 8017b58: 647b str r3, [r7, #68] @ 0x44
  57828. if (fromlen) {
  57829. 8017b5a: 6dfb ldr r3, [r7, #92] @ 0x5c
  57830. 8017b5c: 2b00 cmp r3, #0
  57831. 8017b5e: d002 beq.n 8017b66 <lwip_recvfrom+0x102>
  57832. *fromlen = msg.msg_namelen;
  57833. 8017b60: 69ba ldr r2, [r7, #24]
  57834. 8017b62: 6dfb ldr r3, [r7, #92] @ 0x5c
  57835. 8017b64: 601a str r2, [r3, #0]
  57836. }
  57837. }
  57838. sock_set_errno(sock, 0);
  57839. 8017b66: 2300 movs r3, #0
  57840. 8017b68: 643b str r3, [r7, #64] @ 0x40
  57841. 8017b6a: 6c3b ldr r3, [r7, #64] @ 0x40
  57842. 8017b6c: 2b00 cmp r3, #0
  57843. 8017b6e: d002 beq.n 8017b76 <lwip_recvfrom+0x112>
  57844. 8017b70: 4a04 ldr r2, [pc, #16] @ (8017b84 <lwip_recvfrom+0x120>)
  57845. 8017b72: 6c3b ldr r3, [r7, #64] @ 0x40
  57846. 8017b74: 6013 str r3, [r2, #0]
  57847. done_socket(sock);
  57848. return ret;
  57849. 8017b76: 6c7b ldr r3, [r7, #68] @ 0x44
  57850. }
  57851. 8017b78: 4618 mov r0, r3
  57852. 8017b7a: 3750 adds r7, #80 @ 0x50
  57853. 8017b7c: 46bd mov sp, r7
  57854. 8017b7e: bd80 pop {r7, pc}
  57855. 8017b80: 0802d33c .word 0x0802d33c
  57856. 8017b84: 2402a2e4 .word 0x2402a2e4
  57857. 08017b88 <lwip_recv>:
  57858. return lwip_recvmsg(s, &msg, 0);
  57859. }
  57860. ssize_t
  57861. lwip_recv(int s, void *mem, size_t len, int flags)
  57862. {
  57863. 8017b88: b580 push {r7, lr}
  57864. 8017b8a: b086 sub sp, #24
  57865. 8017b8c: af02 add r7, sp, #8
  57866. 8017b8e: 60f8 str r0, [r7, #12]
  57867. 8017b90: 60b9 str r1, [r7, #8]
  57868. 8017b92: 607a str r2, [r7, #4]
  57869. 8017b94: 603b str r3, [r7, #0]
  57870. return lwip_recvfrom(s, mem, len, flags, NULL, NULL);
  57871. 8017b96: 2300 movs r3, #0
  57872. 8017b98: 9301 str r3, [sp, #4]
  57873. 8017b9a: 2300 movs r3, #0
  57874. 8017b9c: 9300 str r3, [sp, #0]
  57875. 8017b9e: 683b ldr r3, [r7, #0]
  57876. 8017ba0: 687a ldr r2, [r7, #4]
  57877. 8017ba2: 68b9 ldr r1, [r7, #8]
  57878. 8017ba4: 68f8 ldr r0, [r7, #12]
  57879. 8017ba6: f7ff ff5d bl 8017a64 <lwip_recvfrom>
  57880. 8017baa: 4603 mov r3, r0
  57881. }
  57882. 8017bac: 4618 mov r0, r3
  57883. 8017bae: 3710 adds r7, #16
  57884. 8017bb0: 46bd mov sp, r7
  57885. 8017bb2: bd80 pop {r7, pc}
  57886. 08017bb4 <lwip_send>:
  57887. #endif /* LWIP_UDP || LWIP_RAW */
  57888. }
  57889. ssize_t
  57890. lwip_send(int s, const void *data, size_t size, int flags)
  57891. {
  57892. 8017bb4: b580 push {r7, lr}
  57893. 8017bb6: b08a sub sp, #40 @ 0x28
  57894. 8017bb8: af02 add r7, sp, #8
  57895. 8017bba: 60f8 str r0, [r7, #12]
  57896. 8017bbc: 60b9 str r1, [r7, #8]
  57897. 8017bbe: 607a str r2, [r7, #4]
  57898. 8017bc0: 603b str r3, [r7, #0]
  57899. size_t written;
  57900. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_send(%d, data=%p, size=%"SZT_F", flags=0x%x)\n",
  57901. s, data, size, flags));
  57902. sock = get_socket(s);
  57903. 8017bc2: 68f8 ldr r0, [r7, #12]
  57904. 8017bc4: f7ff fb10 bl 80171e8 <get_socket>
  57905. 8017bc8: 61f8 str r0, [r7, #28]
  57906. if (!sock) {
  57907. 8017bca: 69fb ldr r3, [r7, #28]
  57908. 8017bcc: 2b00 cmp r3, #0
  57909. 8017bce: d102 bne.n 8017bd6 <lwip_send+0x22>
  57910. return -1;
  57911. 8017bd0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  57912. 8017bd4: e046 b.n 8017c64 <lwip_send+0xb0>
  57913. }
  57914. if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) != NETCONN_TCP) {
  57915. 8017bd6: 69fb ldr r3, [r7, #28]
  57916. 8017bd8: 681b ldr r3, [r3, #0]
  57917. 8017bda: 781b ldrb r3, [r3, #0]
  57918. 8017bdc: f003 03f0 and.w r3, r3, #240 @ 0xf0
  57919. 8017be0: 2b10 cmp r3, #16
  57920. 8017be2: d00b beq.n 8017bfc <lwip_send+0x48>
  57921. #if (LWIP_UDP || LWIP_RAW)
  57922. done_socket(sock);
  57923. return lwip_sendto(s, data, size, flags, NULL, 0);
  57924. 8017be4: 2300 movs r3, #0
  57925. 8017be6: 9301 str r3, [sp, #4]
  57926. 8017be8: 2300 movs r3, #0
  57927. 8017bea: 9300 str r3, [sp, #0]
  57928. 8017bec: 683b ldr r3, [r7, #0]
  57929. 8017bee: 687a ldr r2, [r7, #4]
  57930. 8017bf0: 68b9 ldr r1, [r7, #8]
  57931. 8017bf2: 68f8 ldr r0, [r7, #12]
  57932. 8017bf4: f000 f83c bl 8017c70 <lwip_sendto>
  57933. 8017bf8: 4603 mov r3, r0
  57934. 8017bfa: e033 b.n 8017c64 <lwip_send+0xb0>
  57935. return -1;
  57936. #endif /* (LWIP_UDP || LWIP_RAW) */
  57937. }
  57938. write_flags = (u8_t)(NETCONN_COPY |
  57939. ((flags & MSG_MORE) ? NETCONN_MORE : 0) |
  57940. 8017bfc: 683b ldr r3, [r7, #0]
  57941. 8017bfe: f003 0310 and.w r3, r3, #16
  57942. write_flags = (u8_t)(NETCONN_COPY |
  57943. 8017c02: 2b00 cmp r3, #0
  57944. 8017c04: d001 beq.n 8017c0a <lwip_send+0x56>
  57945. 8017c06: 2203 movs r2, #3
  57946. 8017c08: e000 b.n 8017c0c <lwip_send+0x58>
  57947. 8017c0a: 2201 movs r2, #1
  57948. ((flags & MSG_MORE) ? NETCONN_MORE : 0) |
  57949. 8017c0c: 683b ldr r3, [r7, #0]
  57950. 8017c0e: 105b asrs r3, r3, #1
  57951. 8017c10: b25b sxtb r3, r3
  57952. 8017c12: f003 0304 and.w r3, r3, #4
  57953. 8017c16: b25b sxtb r3, r3
  57954. 8017c18: 4313 orrs r3, r2
  57955. 8017c1a: b25b sxtb r3, r3
  57956. write_flags = (u8_t)(NETCONN_COPY |
  57957. 8017c1c: 76fb strb r3, [r7, #27]
  57958. ((flags & MSG_DONTWAIT) ? NETCONN_DONTBLOCK : 0));
  57959. written = 0;
  57960. 8017c1e: 2300 movs r3, #0
  57961. 8017c20: 613b str r3, [r7, #16]
  57962. err = netconn_write_partly(sock->conn, data, size, write_flags, &written);
  57963. 8017c22: 69fb ldr r3, [r7, #28]
  57964. 8017c24: 6818 ldr r0, [r3, #0]
  57965. 8017c26: 7efa ldrb r2, [r7, #27]
  57966. 8017c28: f107 0310 add.w r3, r7, #16
  57967. 8017c2c: 9300 str r3, [sp, #0]
  57968. 8017c2e: 4613 mov r3, r2
  57969. 8017c30: 687a ldr r2, [r7, #4]
  57970. 8017c32: 68b9 ldr r1, [r7, #8]
  57971. 8017c34: f7fd fc04 bl 8015440 <netconn_write_partly>
  57972. 8017c38: 4603 mov r3, r0
  57973. 8017c3a: 76bb strb r3, [r7, #26]
  57974. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_send(%d) err=%d written=%"SZT_F"\n", s, err, written));
  57975. sock_set_errno(sock, err_to_errno(err));
  57976. 8017c3c: f997 301a ldrsb.w r3, [r7, #26]
  57977. 8017c40: 4618 mov r0, r3
  57978. 8017c42: f7ff f9e3 bl 801700c <err_to_errno>
  57979. 8017c46: 6178 str r0, [r7, #20]
  57980. 8017c48: 697b ldr r3, [r7, #20]
  57981. 8017c4a: 2b00 cmp r3, #0
  57982. 8017c4c: d002 beq.n 8017c54 <lwip_send+0xa0>
  57983. 8017c4e: 4a07 ldr r2, [pc, #28] @ (8017c6c <lwip_send+0xb8>)
  57984. 8017c50: 697b ldr r3, [r7, #20]
  57985. 8017c52: 6013 str r3, [r2, #0]
  57986. done_socket(sock);
  57987. /* casting 'written' to ssize_t is OK here since the netconn API limits it to SSIZE_MAX */
  57988. return (err == ERR_OK ? (ssize_t)written : -1);
  57989. 8017c54: f997 301a ldrsb.w r3, [r7, #26]
  57990. 8017c58: 2b00 cmp r3, #0
  57991. 8017c5a: d101 bne.n 8017c60 <lwip_send+0xac>
  57992. 8017c5c: 693b ldr r3, [r7, #16]
  57993. 8017c5e: e001 b.n 8017c64 <lwip_send+0xb0>
  57994. 8017c60: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  57995. }
  57996. 8017c64: 4618 mov r0, r3
  57997. 8017c66: 3720 adds r7, #32
  57998. 8017c68: 46bd mov sp, r7
  57999. 8017c6a: bd80 pop {r7, pc}
  58000. 8017c6c: 2402a2e4 .word 0x2402a2e4
  58001. 08017c70 <lwip_sendto>:
  58002. }
  58003. ssize_t
  58004. lwip_sendto(int s, const void *data, size_t size, int flags,
  58005. const struct sockaddr *to, socklen_t tolen)
  58006. {
  58007. 8017c70: b580 push {r7, lr}
  58008. 8017c72: b08e sub sp, #56 @ 0x38
  58009. 8017c74: af00 add r7, sp, #0
  58010. 8017c76: 60f8 str r0, [r7, #12]
  58011. 8017c78: 60b9 str r1, [r7, #8]
  58012. 8017c7a: 607a str r2, [r7, #4]
  58013. 8017c7c: 603b str r3, [r7, #0]
  58014. err_t err;
  58015. u16_t short_size;
  58016. u16_t remote_port;
  58017. struct netbuf buf;
  58018. sock = get_socket(s);
  58019. 8017c7e: 68f8 ldr r0, [r7, #12]
  58020. 8017c80: f7ff fab2 bl 80171e8 <get_socket>
  58021. 8017c84: 6338 str r0, [r7, #48] @ 0x30
  58022. if (!sock) {
  58023. 8017c86: 6b3b ldr r3, [r7, #48] @ 0x30
  58024. 8017c88: 2b00 cmp r3, #0
  58025. 8017c8a: d102 bne.n 8017c92 <lwip_sendto+0x22>
  58026. return -1;
  58027. 8017c8c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  58028. 8017c90: e093 b.n 8017dba <lwip_sendto+0x14a>
  58029. }
  58030. if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP) {
  58031. 8017c92: 6b3b ldr r3, [r7, #48] @ 0x30
  58032. 8017c94: 681b ldr r3, [r3, #0]
  58033. 8017c96: 781b ldrb r3, [r3, #0]
  58034. 8017c98: f003 03f0 and.w r3, r3, #240 @ 0xf0
  58035. 8017c9c: 2b10 cmp r3, #16
  58036. 8017c9e: d107 bne.n 8017cb0 <lwip_sendto+0x40>
  58037. #if LWIP_TCP
  58038. done_socket(sock);
  58039. return lwip_send(s, data, size, flags);
  58040. 8017ca0: 683b ldr r3, [r7, #0]
  58041. 8017ca2: 687a ldr r2, [r7, #4]
  58042. 8017ca4: 68b9 ldr r1, [r7, #8]
  58043. 8017ca6: 68f8 ldr r0, [r7, #12]
  58044. 8017ca8: f7ff ff84 bl 8017bb4 <lwip_send>
  58045. 8017cac: 4603 mov r3, r0
  58046. 8017cae: e084 b.n 8017dba <lwip_sendto+0x14a>
  58047. done_socket(sock);
  58048. return -1;
  58049. #endif /* LWIP_TCP */
  58050. }
  58051. if (size > LWIP_MIN(0xFFFF, SSIZE_MAX)) {
  58052. 8017cb0: 687b ldr r3, [r7, #4]
  58053. 8017cb2: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  58054. 8017cb6: d30a bcc.n 8017cce <lwip_sendto+0x5e>
  58055. /* cannot fit into one datagram (at least for us) */
  58056. sock_set_errno(sock, EMSGSIZE);
  58057. 8017cb8: 235a movs r3, #90 @ 0x5a
  58058. 8017cba: 623b str r3, [r7, #32]
  58059. 8017cbc: 6a3b ldr r3, [r7, #32]
  58060. 8017cbe: 2b00 cmp r3, #0
  58061. 8017cc0: d002 beq.n 8017cc8 <lwip_sendto+0x58>
  58062. 8017cc2: 4a40 ldr r2, [pc, #256] @ (8017dc4 <lwip_sendto+0x154>)
  58063. 8017cc4: 6a3b ldr r3, [r7, #32]
  58064. 8017cc6: 6013 str r3, [r2, #0]
  58065. done_socket(sock);
  58066. return -1;
  58067. 8017cc8: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  58068. 8017ccc: e075 b.n 8017dba <lwip_sendto+0x14a>
  58069. }
  58070. short_size = (u16_t)size;
  58071. 8017cce: 687b ldr r3, [r7, #4]
  58072. 8017cd0: 85fb strh r3, [r7, #46] @ 0x2e
  58073. LWIP_ERROR("lwip_sendto: invalid address", (((to == NULL) && (tolen == 0)) ||
  58074. 8017cd2: 6c3b ldr r3, [r7, #64] @ 0x40
  58075. 8017cd4: 2b00 cmp r3, #0
  58076. 8017cd6: d102 bne.n 8017cde <lwip_sendto+0x6e>
  58077. 8017cd8: 6c7b ldr r3, [r7, #68] @ 0x44
  58078. 8017cda: 2b00 cmp r3, #0
  58079. 8017cdc: d023 beq.n 8017d26 <lwip_sendto+0xb6>
  58080. 8017cde: 6c7b ldr r3, [r7, #68] @ 0x44
  58081. 8017ce0: 2b10 cmp r3, #16
  58082. 8017ce2: d10b bne.n 8017cfc <lwip_sendto+0x8c>
  58083. 8017ce4: 6c3b ldr r3, [r7, #64] @ 0x40
  58084. 8017ce6: 2b00 cmp r3, #0
  58085. 8017ce8: d008 beq.n 8017cfc <lwip_sendto+0x8c>
  58086. 8017cea: 6c3b ldr r3, [r7, #64] @ 0x40
  58087. 8017cec: 785b ldrb r3, [r3, #1]
  58088. 8017cee: 2b02 cmp r3, #2
  58089. 8017cf0: d104 bne.n 8017cfc <lwip_sendto+0x8c>
  58090. 8017cf2: 6c3b ldr r3, [r7, #64] @ 0x40
  58091. 8017cf4: f003 0303 and.w r3, r3, #3
  58092. 8017cf8: 2b00 cmp r3, #0
  58093. 8017cfa: d014 beq.n 8017d26 <lwip_sendto+0xb6>
  58094. 8017cfc: 4b32 ldr r3, [pc, #200] @ (8017dc8 <lwip_sendto+0x158>)
  58095. 8017cfe: f240 6252 movw r2, #1618 @ 0x652
  58096. 8017d02: 4932 ldr r1, [pc, #200] @ (8017dcc <lwip_sendto+0x15c>)
  58097. 8017d04: 4832 ldr r0, [pc, #200] @ (8017dd0 <lwip_sendto+0x160>)
  58098. 8017d06: f011 fc01 bl 802950c <iprintf>
  58099. 8017d0a: f06f 000f mvn.w r0, #15
  58100. 8017d0e: f7ff f97d bl 801700c <err_to_errno>
  58101. 8017d12: 62b8 str r0, [r7, #40] @ 0x28
  58102. 8017d14: 6abb ldr r3, [r7, #40] @ 0x28
  58103. 8017d16: 2b00 cmp r3, #0
  58104. 8017d18: d002 beq.n 8017d20 <lwip_sendto+0xb0>
  58105. 8017d1a: 4a2a ldr r2, [pc, #168] @ (8017dc4 <lwip_sendto+0x154>)
  58106. 8017d1c: 6abb ldr r3, [r7, #40] @ 0x28
  58107. 8017d1e: 6013 str r3, [r2, #0]
  58108. 8017d20: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  58109. 8017d24: e049 b.n 8017dba <lwip_sendto+0x14a>
  58110. ((to != NULL) && (IS_SOCK_ADDR_TYPE_VALID(to) && IS_SOCK_ADDR_ALIGNED(to))))),
  58111. sock_set_errno(sock, err_to_errno(ERR_ARG)); done_socket(sock); return -1;);
  58112. LWIP_UNUSED_ARG(tolen);
  58113. /* initialize a buffer */
  58114. buf.p = buf.ptr = NULL;
  58115. 8017d26: 2300 movs r3, #0
  58116. 8017d28: 617b str r3, [r7, #20]
  58117. 8017d2a: 697b ldr r3, [r7, #20]
  58118. 8017d2c: 613b str r3, [r7, #16]
  58119. #if LWIP_CHECKSUM_ON_COPY
  58120. buf.flags = 0;
  58121. #endif /* LWIP_CHECKSUM_ON_COPY */
  58122. if (to) {
  58123. 8017d2e: 6c3b ldr r3, [r7, #64] @ 0x40
  58124. 8017d30: 2b00 cmp r3, #0
  58125. 8017d32: d00a beq.n 8017d4a <lwip_sendto+0xda>
  58126. SOCKADDR_TO_IPADDR_PORT(to, &buf.addr, remote_port);
  58127. 8017d34: 6c3b ldr r3, [r7, #64] @ 0x40
  58128. 8017d36: 685b ldr r3, [r3, #4]
  58129. 8017d38: 61bb str r3, [r7, #24]
  58130. 8017d3a: 6c3b ldr r3, [r7, #64] @ 0x40
  58131. 8017d3c: 885b ldrh r3, [r3, #2]
  58132. 8017d3e: 4618 mov r0, r3
  58133. 8017d40: f000 fc8a bl 8018658 <lwip_htons>
  58134. 8017d44: 4603 mov r3, r0
  58135. 8017d46: 86fb strh r3, [r7, #54] @ 0x36
  58136. 8017d48: e003 b.n 8017d52 <lwip_sendto+0xe2>
  58137. } else {
  58138. remote_port = 0;
  58139. 8017d4a: 2300 movs r3, #0
  58140. 8017d4c: 86fb strh r3, [r7, #54] @ 0x36
  58141. ip_addr_set_any(NETCONNTYPE_ISIPV6(netconn_type(sock->conn)), &buf.addr);
  58142. 8017d4e: 2300 movs r3, #0
  58143. 8017d50: 61bb str r3, [r7, #24]
  58144. }
  58145. netbuf_fromport(&buf) = remote_port;
  58146. 8017d52: 8efb ldrh r3, [r7, #54] @ 0x36
  58147. 8017d54: 83bb strh r3, [r7, #28]
  58148. MEMCPY(buf.p->payload, data, short_size);
  58149. }
  58150. err = ERR_OK;
  58151. }
  58152. #else /* LWIP_NETIF_TX_SINGLE_PBUF */
  58153. err = netbuf_ref(&buf, data, short_size);
  58154. 8017d56: 8dfa ldrh r2, [r7, #46] @ 0x2e
  58155. 8017d58: f107 0310 add.w r3, r7, #16
  58156. 8017d5c: 68b9 ldr r1, [r7, #8]
  58157. 8017d5e: 4618 mov r0, r3
  58158. 8017d60: f7ff f9ba bl 80170d8 <netbuf_ref>
  58159. 8017d64: 4603 mov r3, r0
  58160. 8017d66: f887 302d strb.w r3, [r7, #45] @ 0x2d
  58161. #endif /* LWIP_NETIF_TX_SINGLE_PBUF */
  58162. if (err == ERR_OK) {
  58163. 8017d6a: f997 302d ldrsb.w r3, [r7, #45] @ 0x2d
  58164. 8017d6e: 2b00 cmp r3, #0
  58165. 8017d70: d10a bne.n 8017d88 <lwip_sendto+0x118>
  58166. IP_SET_TYPE_VAL(buf.addr, IPADDR_TYPE_V4);
  58167. }
  58168. #endif /* LWIP_IPV4 && LWIP_IPV6 */
  58169. /* send the data */
  58170. err = netconn_send(sock->conn, &buf);
  58171. 8017d72: 6b3b ldr r3, [r7, #48] @ 0x30
  58172. 8017d74: 681b ldr r3, [r3, #0]
  58173. 8017d76: f107 0210 add.w r2, r7, #16
  58174. 8017d7a: 4611 mov r1, r2
  58175. 8017d7c: 4618 mov r0, r3
  58176. 8017d7e: f7fd fb31 bl 80153e4 <netconn_send>
  58177. 8017d82: 4603 mov r3, r0
  58178. 8017d84: f887 302d strb.w r3, [r7, #45] @ 0x2d
  58179. }
  58180. /* deallocated the buffer */
  58181. netbuf_free(&buf);
  58182. 8017d88: f107 0310 add.w r3, r7, #16
  58183. 8017d8c: 4618 mov r0, r3
  58184. 8017d8e: f7ff f97b bl 8017088 <netbuf_free>
  58185. sock_set_errno(sock, err_to_errno(err));
  58186. 8017d92: f997 302d ldrsb.w r3, [r7, #45] @ 0x2d
  58187. 8017d96: 4618 mov r0, r3
  58188. 8017d98: f7ff f938 bl 801700c <err_to_errno>
  58189. 8017d9c: 6278 str r0, [r7, #36] @ 0x24
  58190. 8017d9e: 6a7b ldr r3, [r7, #36] @ 0x24
  58191. 8017da0: 2b00 cmp r3, #0
  58192. 8017da2: d002 beq.n 8017daa <lwip_sendto+0x13a>
  58193. 8017da4: 4a07 ldr r2, [pc, #28] @ (8017dc4 <lwip_sendto+0x154>)
  58194. 8017da6: 6a7b ldr r3, [r7, #36] @ 0x24
  58195. 8017da8: 6013 str r3, [r2, #0]
  58196. done_socket(sock);
  58197. return (err == ERR_OK ? short_size : -1);
  58198. 8017daa: f997 302d ldrsb.w r3, [r7, #45] @ 0x2d
  58199. 8017dae: 2b00 cmp r3, #0
  58200. 8017db0: d101 bne.n 8017db6 <lwip_sendto+0x146>
  58201. 8017db2: 8dfb ldrh r3, [r7, #46] @ 0x2e
  58202. 8017db4: e001 b.n 8017dba <lwip_sendto+0x14a>
  58203. 8017db6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  58204. }
  58205. 8017dba: 4618 mov r0, r3
  58206. 8017dbc: 3738 adds r7, #56 @ 0x38
  58207. 8017dbe: 46bd mov sp, r7
  58208. 8017dc0: bd80 pop {r7, pc}
  58209. 8017dc2: bf00 nop
  58210. 8017dc4: 2402a2e4 .word 0x2402a2e4
  58211. 8017dc8: 0802d160 .word 0x0802d160
  58212. 8017dcc: 0802d440 .word 0x0802d440
  58213. 8017dd0: 0802d1b4 .word 0x0802d1b4
  58214. 08017dd4 <lwip_socket>:
  58215. int
  58216. lwip_socket(int domain, int type, int protocol)
  58217. {
  58218. 8017dd4: b580 push {r7, lr}
  58219. 8017dd6: b086 sub sp, #24
  58220. 8017dd8: af00 add r7, sp, #0
  58221. 8017dda: 60f8 str r0, [r7, #12]
  58222. 8017ddc: 60b9 str r1, [r7, #8]
  58223. 8017dde: 607a str r2, [r7, #4]
  58224. int i;
  58225. LWIP_UNUSED_ARG(domain); /* @todo: check this */
  58226. /* create a netconn */
  58227. switch (type) {
  58228. 8017de0: 68bb ldr r3, [r7, #8]
  58229. 8017de2: 2b03 cmp r3, #3
  58230. 8017de4: d009 beq.n 8017dfa <lwip_socket+0x26>
  58231. 8017de6: 68bb ldr r3, [r7, #8]
  58232. 8017de8: 2b03 cmp r3, #3
  58233. 8017dea: dc23 bgt.n 8017e34 <lwip_socket+0x60>
  58234. 8017dec: 68bb ldr r3, [r7, #8]
  58235. 8017dee: 2b01 cmp r3, #1
  58236. 8017df0: d019 beq.n 8017e26 <lwip_socket+0x52>
  58237. 8017df2: 68bb ldr r3, [r7, #8]
  58238. 8017df4: 2b02 cmp r3, #2
  58239. 8017df6: d009 beq.n 8017e0c <lwip_socket+0x38>
  58240. 8017df8: e01c b.n 8017e34 <lwip_socket+0x60>
  58241. case SOCK_RAW:
  58242. conn = netconn_new_with_proto_and_callback(DOMAIN_TO_NETCONN_TYPE(domain, NETCONN_RAW),
  58243. 8017dfa: 687b ldr r3, [r7, #4]
  58244. 8017dfc: b2db uxtb r3, r3
  58245. 8017dfe: 4a22 ldr r2, [pc, #136] @ (8017e88 <lwip_socket+0xb4>)
  58246. 8017e00: 4619 mov r1, r3
  58247. 8017e02: 2040 movs r0, #64 @ 0x40
  58248. 8017e04: f7fc ff60 bl 8014cc8 <netconn_new_with_proto_and_callback>
  58249. 8017e08: 6178 str r0, [r7, #20]
  58250. (u8_t)protocol, DEFAULT_SOCKET_EVENTCB);
  58251. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_socket(%s, SOCK_RAW, %d) = ",
  58252. domain == PF_INET ? "PF_INET" : "UNKNOWN", protocol));
  58253. break;
  58254. 8017e0a: e019 b.n 8017e40 <lwip_socket+0x6c>
  58255. case SOCK_DGRAM:
  58256. conn = netconn_new_with_callback(DOMAIN_TO_NETCONN_TYPE(domain,
  58257. 8017e0c: 687b ldr r3, [r7, #4]
  58258. 8017e0e: 2b88 cmp r3, #136 @ 0x88
  58259. 8017e10: d101 bne.n 8017e16 <lwip_socket+0x42>
  58260. 8017e12: 2321 movs r3, #33 @ 0x21
  58261. 8017e14: e000 b.n 8017e18 <lwip_socket+0x44>
  58262. 8017e16: 2320 movs r3, #32
  58263. 8017e18: 4a1b ldr r2, [pc, #108] @ (8017e88 <lwip_socket+0xb4>)
  58264. 8017e1a: 2100 movs r1, #0
  58265. 8017e1c: 4618 mov r0, r3
  58266. 8017e1e: f7fc ff53 bl 8014cc8 <netconn_new_with_proto_and_callback>
  58267. 8017e22: 6178 str r0, [r7, #20]
  58268. if (conn) {
  58269. /* netconn layer enables pktinfo by default, sockets default to off */
  58270. conn->flags &= ~NETCONN_FLAG_PKTINFO;
  58271. }
  58272. #endif /* LWIP_NETBUF_RECVINFO */
  58273. break;
  58274. 8017e24: e00c b.n 8017e40 <lwip_socket+0x6c>
  58275. case SOCK_STREAM:
  58276. conn = netconn_new_with_callback(DOMAIN_TO_NETCONN_TYPE(domain, NETCONN_TCP), DEFAULT_SOCKET_EVENTCB);
  58277. 8017e26: 4a18 ldr r2, [pc, #96] @ (8017e88 <lwip_socket+0xb4>)
  58278. 8017e28: 2100 movs r1, #0
  58279. 8017e2a: 2010 movs r0, #16
  58280. 8017e2c: f7fc ff4c bl 8014cc8 <netconn_new_with_proto_and_callback>
  58281. 8017e30: 6178 str r0, [r7, #20]
  58282. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_socket(%s, SOCK_STREAM, %d) = ",
  58283. domain == PF_INET ? "PF_INET" : "UNKNOWN", protocol));
  58284. break;
  58285. 8017e32: e005 b.n 8017e40 <lwip_socket+0x6c>
  58286. default:
  58287. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_socket(%d, %d/UNKNOWN, %d) = -1\n",
  58288. domain, type, protocol));
  58289. set_errno(EINVAL);
  58290. 8017e34: 4b15 ldr r3, [pc, #84] @ (8017e8c <lwip_socket+0xb8>)
  58291. 8017e36: 2216 movs r2, #22
  58292. 8017e38: 601a str r2, [r3, #0]
  58293. return -1;
  58294. 8017e3a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  58295. 8017e3e: e01e b.n 8017e7e <lwip_socket+0xaa>
  58296. }
  58297. if (!conn) {
  58298. 8017e40: 697b ldr r3, [r7, #20]
  58299. 8017e42: 2b00 cmp r3, #0
  58300. 8017e44: d105 bne.n 8017e52 <lwip_socket+0x7e>
  58301. LWIP_DEBUGF(SOCKETS_DEBUG, ("-1 / ENOBUFS (could not create netconn)\n"));
  58302. set_errno(ENOBUFS);
  58303. 8017e46: 4b11 ldr r3, [pc, #68] @ (8017e8c <lwip_socket+0xb8>)
  58304. 8017e48: 2269 movs r2, #105 @ 0x69
  58305. 8017e4a: 601a str r2, [r3, #0]
  58306. return -1;
  58307. 8017e4c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  58308. 8017e50: e015 b.n 8017e7e <lwip_socket+0xaa>
  58309. }
  58310. i = alloc_socket(conn, 0);
  58311. 8017e52: 2100 movs r1, #0
  58312. 8017e54: 6978 ldr r0, [r7, #20]
  58313. 8017e56: f7ff f9df bl 8017218 <alloc_socket>
  58314. 8017e5a: 6138 str r0, [r7, #16]
  58315. if (i == -1) {
  58316. 8017e5c: 693b ldr r3, [r7, #16]
  58317. 8017e5e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  58318. 8017e62: d108 bne.n 8017e76 <lwip_socket+0xa2>
  58319. netconn_delete(conn);
  58320. 8017e64: 6978 ldr r0, [r7, #20]
  58321. 8017e66: f7fc ffcd bl 8014e04 <netconn_delete>
  58322. set_errno(ENFILE);
  58323. 8017e6a: 4b08 ldr r3, [pc, #32] @ (8017e8c <lwip_socket+0xb8>)
  58324. 8017e6c: 2217 movs r2, #23
  58325. 8017e6e: 601a str r2, [r3, #0]
  58326. return -1;
  58327. 8017e70: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  58328. 8017e74: e003 b.n 8017e7e <lwip_socket+0xaa>
  58329. }
  58330. conn->socket = i;
  58331. 8017e76: 697b ldr r3, [r7, #20]
  58332. 8017e78: 693a ldr r2, [r7, #16]
  58333. 8017e7a: 619a str r2, [r3, #24]
  58334. done_socket(&sockets[i - LWIP_SOCKET_OFFSET]);
  58335. LWIP_DEBUGF(SOCKETS_DEBUG, ("%d\n", i));
  58336. set_errno(0);
  58337. return i;
  58338. 8017e7c: 693b ldr r3, [r7, #16]
  58339. }
  58340. 8017e7e: 4618 mov r0, r3
  58341. 8017e80: 3718 adds r7, #24
  58342. 8017e82: 46bd mov sp, r7
  58343. 8017e84: bd80 pop {r7, pc}
  58344. 8017e86: bf00 nop
  58345. 8017e88: 08017f19 .word 0x08017f19
  58346. 8017e8c: 2402a2e4 .word 0x2402a2e4
  58347. 08017e90 <lwip_poll_should_wake>:
  58348. * Check whether event_callback should wake up a thread waiting in
  58349. * lwip_poll.
  58350. */
  58351. static int
  58352. lwip_poll_should_wake(const struct lwip_select_cb *scb, int fd, int has_recvevent, int has_sendevent, int has_errevent)
  58353. {
  58354. 8017e90: b480 push {r7}
  58355. 8017e92: b087 sub sp, #28
  58356. 8017e94: af00 add r7, sp, #0
  58357. 8017e96: 60f8 str r0, [r7, #12]
  58358. 8017e98: 60b9 str r1, [r7, #8]
  58359. 8017e9a: 607a str r2, [r7, #4]
  58360. 8017e9c: 603b str r3, [r7, #0]
  58361. nfds_t fdi;
  58362. for (fdi = 0; fdi < scb->poll_nfds; fdi++) {
  58363. 8017e9e: 2300 movs r3, #0
  58364. 8017ea0: 617b str r3, [r7, #20]
  58365. 8017ea2: e02c b.n 8017efe <lwip_poll_should_wake+0x6e>
  58366. const struct pollfd *pollfd = &scb->poll_fds[fdi];
  58367. 8017ea4: 68fb ldr r3, [r7, #12]
  58368. 8017ea6: 695a ldr r2, [r3, #20]
  58369. 8017ea8: 697b ldr r3, [r7, #20]
  58370. 8017eaa: 00db lsls r3, r3, #3
  58371. 8017eac: 4413 add r3, r2
  58372. 8017eae: 613b str r3, [r7, #16]
  58373. if (pollfd->fd == fd) {
  58374. 8017eb0: 693b ldr r3, [r7, #16]
  58375. 8017eb2: 681b ldr r3, [r3, #0]
  58376. 8017eb4: 68ba ldr r2, [r7, #8]
  58377. 8017eb6: 429a cmp r2, r3
  58378. 8017eb8: d11e bne.n 8017ef8 <lwip_poll_should_wake+0x68>
  58379. /* Do not update pollfd->revents right here;
  58380. that would be a data race because lwip_pollscan
  58381. accesses revents without protecting. */
  58382. if (has_recvevent && (pollfd->events & POLLIN) != 0) {
  58383. 8017eba: 687b ldr r3, [r7, #4]
  58384. 8017ebc: 2b00 cmp r3, #0
  58385. 8017ebe: d009 beq.n 8017ed4 <lwip_poll_should_wake+0x44>
  58386. 8017ec0: 693b ldr r3, [r7, #16]
  58387. 8017ec2: f9b3 3004 ldrsh.w r3, [r3, #4]
  58388. 8017ec6: b29b uxth r3, r3
  58389. 8017ec8: f003 0301 and.w r3, r3, #1
  58390. 8017ecc: 2b00 cmp r3, #0
  58391. 8017ece: d001 beq.n 8017ed4 <lwip_poll_should_wake+0x44>
  58392. return 1;
  58393. 8017ed0: 2301 movs r3, #1
  58394. 8017ed2: e01a b.n 8017f0a <lwip_poll_should_wake+0x7a>
  58395. }
  58396. if (has_sendevent && (pollfd->events & POLLOUT) != 0) {
  58397. 8017ed4: 683b ldr r3, [r7, #0]
  58398. 8017ed6: 2b00 cmp r3, #0
  58399. 8017ed8: d009 beq.n 8017eee <lwip_poll_should_wake+0x5e>
  58400. 8017eda: 693b ldr r3, [r7, #16]
  58401. 8017edc: f9b3 3004 ldrsh.w r3, [r3, #4]
  58402. 8017ee0: b29b uxth r3, r3
  58403. 8017ee2: f003 0302 and.w r3, r3, #2
  58404. 8017ee6: 2b00 cmp r3, #0
  58405. 8017ee8: d001 beq.n 8017eee <lwip_poll_should_wake+0x5e>
  58406. return 1;
  58407. 8017eea: 2301 movs r3, #1
  58408. 8017eec: e00d b.n 8017f0a <lwip_poll_should_wake+0x7a>
  58409. }
  58410. if (has_errevent) {
  58411. 8017eee: 6a3b ldr r3, [r7, #32]
  58412. 8017ef0: 2b00 cmp r3, #0
  58413. 8017ef2: d001 beq.n 8017ef8 <lwip_poll_should_wake+0x68>
  58414. /* POLLERR is output only. */
  58415. return 1;
  58416. 8017ef4: 2301 movs r3, #1
  58417. 8017ef6: e008 b.n 8017f0a <lwip_poll_should_wake+0x7a>
  58418. for (fdi = 0; fdi < scb->poll_nfds; fdi++) {
  58419. 8017ef8: 697b ldr r3, [r7, #20]
  58420. 8017efa: 3301 adds r3, #1
  58421. 8017efc: 617b str r3, [r7, #20]
  58422. 8017efe: 68fb ldr r3, [r7, #12]
  58423. 8017f00: 699b ldr r3, [r3, #24]
  58424. 8017f02: 697a ldr r2, [r7, #20]
  58425. 8017f04: 429a cmp r2, r3
  58426. 8017f06: d3cd bcc.n 8017ea4 <lwip_poll_should_wake+0x14>
  58427. }
  58428. }
  58429. }
  58430. return 0;
  58431. 8017f08: 2300 movs r3, #0
  58432. }
  58433. 8017f0a: 4618 mov r0, r3
  58434. 8017f0c: 371c adds r7, #28
  58435. 8017f0e: 46bd mov sp, r7
  58436. 8017f10: f85d 7b04 ldr.w r7, [sp], #4
  58437. 8017f14: 4770 bx lr
  58438. ...
  58439. 08017f18 <event_callback>:
  58440. * NETCONN_EVT_ERROR
  58441. * This requirement will be asserted in select_check_waiters()
  58442. */
  58443. static void
  58444. event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len)
  58445. {
  58446. 8017f18: b580 push {r7, lr}
  58447. 8017f1a: b08a sub sp, #40 @ 0x28
  58448. 8017f1c: af00 add r7, sp, #0
  58449. 8017f1e: 6078 str r0, [r7, #4]
  58450. 8017f20: 460b mov r3, r1
  58451. 8017f22: 70fb strb r3, [r7, #3]
  58452. 8017f24: 4613 mov r3, r2
  58453. 8017f26: 803b strh r3, [r7, #0]
  58454. SYS_ARCH_DECL_PROTECT(lev);
  58455. LWIP_UNUSED_ARG(len);
  58456. /* Get socket */
  58457. if (conn) {
  58458. 8017f28: 687b ldr r3, [r7, #4]
  58459. 8017f2a: 2b00 cmp r3, #0
  58460. 8017f2c: f000 80a4 beq.w 8018078 <event_callback+0x160>
  58461. s = conn->socket;
  58462. 8017f30: 687b ldr r3, [r7, #4]
  58463. 8017f32: 699b ldr r3, [r3, #24]
  58464. 8017f34: 627b str r3, [r7, #36] @ 0x24
  58465. if (s < 0) {
  58466. 8017f36: 6a7b ldr r3, [r7, #36] @ 0x24
  58467. 8017f38: 2b00 cmp r3, #0
  58468. 8017f3a: da18 bge.n 8017f6e <event_callback+0x56>
  58469. /* Data comes in right away after an accept, even though
  58470. * the server task might not have created a new socket yet.
  58471. * Just count down (or up) if that's the case and we
  58472. * will use the data later. Note that only receive events
  58473. * can happen before the new socket is set up. */
  58474. SYS_ARCH_PROTECT(lev);
  58475. 8017f3c: f00e f850 bl 8025fe0 <sys_arch_protect>
  58476. 8017f40: 61f8 str r0, [r7, #28]
  58477. if (conn->socket < 0) {
  58478. 8017f42: 687b ldr r3, [r7, #4]
  58479. 8017f44: 699b ldr r3, [r3, #24]
  58480. 8017f46: 2b00 cmp r3, #0
  58481. 8017f48: da0b bge.n 8017f62 <event_callback+0x4a>
  58482. if (evt == NETCONN_EVT_RCVPLUS) {
  58483. 8017f4a: 78fb ldrb r3, [r7, #3]
  58484. 8017f4c: 2b00 cmp r3, #0
  58485. 8017f4e: d104 bne.n 8017f5a <event_callback+0x42>
  58486. /* conn->socket is -1 on initialization
  58487. lwip_accept adjusts sock->recvevent if conn->socket < -1 */
  58488. conn->socket--;
  58489. 8017f50: 687b ldr r3, [r7, #4]
  58490. 8017f52: 699b ldr r3, [r3, #24]
  58491. 8017f54: 1e5a subs r2, r3, #1
  58492. 8017f56: 687b ldr r3, [r7, #4]
  58493. 8017f58: 619a str r2, [r3, #24]
  58494. }
  58495. SYS_ARCH_UNPROTECT(lev);
  58496. 8017f5a: 69f8 ldr r0, [r7, #28]
  58497. 8017f5c: f00e f84e bl 8025ffc <sys_arch_unprotect>
  58498. return;
  58499. 8017f60: e08d b.n 801807e <event_callback+0x166>
  58500. }
  58501. s = conn->socket;
  58502. 8017f62: 687b ldr r3, [r7, #4]
  58503. 8017f64: 699b ldr r3, [r3, #24]
  58504. 8017f66: 627b str r3, [r7, #36] @ 0x24
  58505. SYS_ARCH_UNPROTECT(lev);
  58506. 8017f68: 69f8 ldr r0, [r7, #28]
  58507. 8017f6a: f00e f847 bl 8025ffc <sys_arch_unprotect>
  58508. }
  58509. sock = get_socket(s);
  58510. 8017f6e: 6a78 ldr r0, [r7, #36] @ 0x24
  58511. 8017f70: f7ff f93a bl 80171e8 <get_socket>
  58512. 8017f74: 61b8 str r0, [r7, #24]
  58513. if (!sock) {
  58514. 8017f76: 69bb ldr r3, [r7, #24]
  58515. 8017f78: 2b00 cmp r3, #0
  58516. 8017f7a: d07f beq.n 801807c <event_callback+0x164>
  58517. }
  58518. } else {
  58519. return;
  58520. }
  58521. check_waiters = 1;
  58522. 8017f7c: 2301 movs r3, #1
  58523. 8017f7e: 623b str r3, [r7, #32]
  58524. SYS_ARCH_PROTECT(lev);
  58525. 8017f80: f00e f82e bl 8025fe0 <sys_arch_protect>
  58526. 8017f84: 61f8 str r0, [r7, #28]
  58527. /* Set event as required */
  58528. switch (evt) {
  58529. 8017f86: 78fb ldrb r3, [r7, #3]
  58530. 8017f88: 2b04 cmp r3, #4
  58531. 8017f8a: d83e bhi.n 801800a <event_callback+0xf2>
  58532. 8017f8c: a201 add r2, pc, #4 @ (adr r2, 8017f94 <event_callback+0x7c>)
  58533. 8017f8e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  58534. 8017f92: bf00 nop
  58535. 8017f94: 08017fa9 .word 0x08017fa9
  58536. 8017f98: 08017fcb .word 0x08017fcb
  58537. 8017f9c: 08017fe3 .word 0x08017fe3
  58538. 8017fa0: 08017ff7 .word 0x08017ff7
  58539. 8017fa4: 08018003 .word 0x08018003
  58540. case NETCONN_EVT_RCVPLUS:
  58541. sock->rcvevent++;
  58542. 8017fa8: 69bb ldr r3, [r7, #24]
  58543. 8017faa: f9b3 3008 ldrsh.w r3, [r3, #8]
  58544. 8017fae: b29b uxth r3, r3
  58545. 8017fb0: 3301 adds r3, #1
  58546. 8017fb2: b29b uxth r3, r3
  58547. 8017fb4: b21a sxth r2, r3
  58548. 8017fb6: 69bb ldr r3, [r7, #24]
  58549. 8017fb8: 811a strh r2, [r3, #8]
  58550. if (sock->rcvevent > 1) {
  58551. 8017fba: 69bb ldr r3, [r7, #24]
  58552. 8017fbc: f9b3 3008 ldrsh.w r3, [r3, #8]
  58553. 8017fc0: 2b01 cmp r3, #1
  58554. 8017fc2: dd2a ble.n 801801a <event_callback+0x102>
  58555. check_waiters = 0;
  58556. 8017fc4: 2300 movs r3, #0
  58557. 8017fc6: 623b str r3, [r7, #32]
  58558. }
  58559. break;
  58560. 8017fc8: e027 b.n 801801a <event_callback+0x102>
  58561. case NETCONN_EVT_RCVMINUS:
  58562. sock->rcvevent--;
  58563. 8017fca: 69bb ldr r3, [r7, #24]
  58564. 8017fcc: f9b3 3008 ldrsh.w r3, [r3, #8]
  58565. 8017fd0: b29b uxth r3, r3
  58566. 8017fd2: 3b01 subs r3, #1
  58567. 8017fd4: b29b uxth r3, r3
  58568. 8017fd6: b21a sxth r2, r3
  58569. 8017fd8: 69bb ldr r3, [r7, #24]
  58570. 8017fda: 811a strh r2, [r3, #8]
  58571. check_waiters = 0;
  58572. 8017fdc: 2300 movs r3, #0
  58573. 8017fde: 623b str r3, [r7, #32]
  58574. break;
  58575. 8017fe0: e01c b.n 801801c <event_callback+0x104>
  58576. case NETCONN_EVT_SENDPLUS:
  58577. if (sock->sendevent) {
  58578. 8017fe2: 69bb ldr r3, [r7, #24]
  58579. 8017fe4: 895b ldrh r3, [r3, #10]
  58580. 8017fe6: 2b00 cmp r3, #0
  58581. 8017fe8: d001 beq.n 8017fee <event_callback+0xd6>
  58582. check_waiters = 0;
  58583. 8017fea: 2300 movs r3, #0
  58584. 8017fec: 623b str r3, [r7, #32]
  58585. }
  58586. sock->sendevent = 1;
  58587. 8017fee: 69bb ldr r3, [r7, #24]
  58588. 8017ff0: 2201 movs r2, #1
  58589. 8017ff2: 815a strh r2, [r3, #10]
  58590. break;
  58591. 8017ff4: e012 b.n 801801c <event_callback+0x104>
  58592. case NETCONN_EVT_SENDMINUS:
  58593. sock->sendevent = 0;
  58594. 8017ff6: 69bb ldr r3, [r7, #24]
  58595. 8017ff8: 2200 movs r2, #0
  58596. 8017ffa: 815a strh r2, [r3, #10]
  58597. check_waiters = 0;
  58598. 8017ffc: 2300 movs r3, #0
  58599. 8017ffe: 623b str r3, [r7, #32]
  58600. break;
  58601. 8018000: e00c b.n 801801c <event_callback+0x104>
  58602. case NETCONN_EVT_ERROR:
  58603. sock->errevent = 1;
  58604. 8018002: 69bb ldr r3, [r7, #24]
  58605. 8018004: 2201 movs r2, #1
  58606. 8018006: 819a strh r2, [r3, #12]
  58607. break;
  58608. 8018008: e008 b.n 801801c <event_callback+0x104>
  58609. default:
  58610. LWIP_ASSERT("unknown event", 0);
  58611. 801800a: 4b1e ldr r3, [pc, #120] @ (8018084 <event_callback+0x16c>)
  58612. 801800c: f44f 621f mov.w r2, #2544 @ 0x9f0
  58613. 8018010: 491d ldr r1, [pc, #116] @ (8018088 <event_callback+0x170>)
  58614. 8018012: 481e ldr r0, [pc, #120] @ (801808c <event_callback+0x174>)
  58615. 8018014: f011 fa7a bl 802950c <iprintf>
  58616. break;
  58617. 8018018: e000 b.n 801801c <event_callback+0x104>
  58618. break;
  58619. 801801a: bf00 nop
  58620. }
  58621. if (sock->select_waiting && check_waiters) {
  58622. 801801c: 69bb ldr r3, [r7, #24]
  58623. 801801e: 7b9b ldrb r3, [r3, #14]
  58624. 8018020: 2b00 cmp r3, #0
  58625. 8018022: d025 beq.n 8018070 <event_callback+0x158>
  58626. 8018024: 6a3b ldr r3, [r7, #32]
  58627. 8018026: 2b00 cmp r3, #0
  58628. 8018028: d022 beq.n 8018070 <event_callback+0x158>
  58629. /* Save which events are active */
  58630. int has_recvevent, has_sendevent, has_errevent;
  58631. has_recvevent = sock->rcvevent > 0;
  58632. 801802a: 69bb ldr r3, [r7, #24]
  58633. 801802c: f9b3 3008 ldrsh.w r3, [r3, #8]
  58634. 8018030: 2b00 cmp r3, #0
  58635. 8018032: bfcc ite gt
  58636. 8018034: 2301 movgt r3, #1
  58637. 8018036: 2300 movle r3, #0
  58638. 8018038: b2db uxtb r3, r3
  58639. 801803a: 617b str r3, [r7, #20]
  58640. has_sendevent = sock->sendevent != 0;
  58641. 801803c: 69bb ldr r3, [r7, #24]
  58642. 801803e: 895b ldrh r3, [r3, #10]
  58643. 8018040: 2b00 cmp r3, #0
  58644. 8018042: bf14 ite ne
  58645. 8018044: 2301 movne r3, #1
  58646. 8018046: 2300 moveq r3, #0
  58647. 8018048: b2db uxtb r3, r3
  58648. 801804a: 613b str r3, [r7, #16]
  58649. has_errevent = sock->errevent != 0;
  58650. 801804c: 69bb ldr r3, [r7, #24]
  58651. 801804e: 899b ldrh r3, [r3, #12]
  58652. 8018050: 2b00 cmp r3, #0
  58653. 8018052: bf14 ite ne
  58654. 8018054: 2301 movne r3, #1
  58655. 8018056: 2300 moveq r3, #0
  58656. 8018058: b2db uxtb r3, r3
  58657. 801805a: 60fb str r3, [r7, #12]
  58658. SYS_ARCH_UNPROTECT(lev);
  58659. 801805c: 69f8 ldr r0, [r7, #28]
  58660. 801805e: f00d ffcd bl 8025ffc <sys_arch_unprotect>
  58661. /* Check any select calls waiting on this socket */
  58662. select_check_waiters(s, has_recvevent, has_sendevent, has_errevent);
  58663. 8018062: 68fb ldr r3, [r7, #12]
  58664. 8018064: 693a ldr r2, [r7, #16]
  58665. 8018066: 6979 ldr r1, [r7, #20]
  58666. 8018068: 6a78 ldr r0, [r7, #36] @ 0x24
  58667. 801806a: f000 f811 bl 8018090 <select_check_waiters>
  58668. if (sock->select_waiting && check_waiters) {
  58669. 801806e: e006 b.n 801807e <event_callback+0x166>
  58670. } else {
  58671. SYS_ARCH_UNPROTECT(lev);
  58672. 8018070: 69f8 ldr r0, [r7, #28]
  58673. 8018072: f00d ffc3 bl 8025ffc <sys_arch_unprotect>
  58674. 8018076: e002 b.n 801807e <event_callback+0x166>
  58675. return;
  58676. 8018078: bf00 nop
  58677. 801807a: e000 b.n 801807e <event_callback+0x166>
  58678. return;
  58679. 801807c: bf00 nop
  58680. }
  58681. done_socket(sock);
  58682. }
  58683. 801807e: 3728 adds r7, #40 @ 0x28
  58684. 8018080: 46bd mov sp, r7
  58685. 8018082: bd80 pop {r7, pc}
  58686. 8018084: 0802d160 .word 0x0802d160
  58687. 8018088: 0802d4dc .word 0x0802d4dc
  58688. 801808c: 0802d1b4 .word 0x0802d1b4
  58689. 08018090 <select_check_waiters>:
  58690. * of the loop, thus creating a possibility where a thread could modify the
  58691. * select_cb_list during our UNPROTECT/PROTECT. We use a generational counter to
  58692. * detect this change and restart the list walk. The list is expected to be small
  58693. */
  58694. static void select_check_waiters(int s, int has_recvevent, int has_sendevent, int has_errevent)
  58695. {
  58696. 8018090: b580 push {r7, lr}
  58697. 8018092: b088 sub sp, #32
  58698. 8018094: af02 add r7, sp, #8
  58699. 8018096: 60f8 str r0, [r7, #12]
  58700. 8018098: 60b9 str r1, [r7, #8]
  58701. 801809a: 607a str r2, [r7, #4]
  58702. 801809c: 603b str r3, [r7, #0]
  58703. #if !LWIP_TCPIP_CORE_LOCKING
  58704. int last_select_cb_ctr;
  58705. SYS_ARCH_DECL_PROTECT(lev);
  58706. #endif /* !LWIP_TCPIP_CORE_LOCKING */
  58707. LWIP_ASSERT_CORE_LOCKED();
  58708. 801809e: f7f7 ffe7 bl 8010070 <sys_check_core_locking>
  58709. SYS_ARCH_PROTECT(lev);
  58710. again:
  58711. /* remember the state of select_cb_list to detect changes */
  58712. last_select_cb_ctr = select_cb_ctr;
  58713. #endif /* !LWIP_TCPIP_CORE_LOCKING */
  58714. for (scb = select_cb_list; scb != NULL; scb = scb->next) {
  58715. 80180a2: 4b42 ldr r3, [pc, #264] @ (80181ac <select_check_waiters+0x11c>)
  58716. 80180a4: 681b ldr r3, [r3, #0]
  58717. 80180a6: 617b str r3, [r7, #20]
  58718. 80180a8: e078 b.n 801819c <select_check_waiters+0x10c>
  58719. if (scb->sem_signalled == 0) {
  58720. 80180aa: 697b ldr r3, [r7, #20]
  58721. 80180ac: 69db ldr r3, [r3, #28]
  58722. 80180ae: 2b00 cmp r3, #0
  58723. 80180b0: d171 bne.n 8018196 <select_check_waiters+0x106>
  58724. /* semaphore not signalled yet */
  58725. int do_signal = 0;
  58726. 80180b2: 2300 movs r3, #0
  58727. 80180b4: 613b str r3, [r7, #16]
  58728. #if LWIP_SOCKET_POLL
  58729. if (scb->poll_fds != NULL) {
  58730. 80180b6: 697b ldr r3, [r7, #20]
  58731. 80180b8: 695b ldr r3, [r3, #20]
  58732. 80180ba: 2b00 cmp r3, #0
  58733. 80180bc: d009 beq.n 80180d2 <select_check_waiters+0x42>
  58734. do_signal = lwip_poll_should_wake(scb, s, has_recvevent, has_sendevent, has_errevent);
  58735. 80180be: 683b ldr r3, [r7, #0]
  58736. 80180c0: 9300 str r3, [sp, #0]
  58737. 80180c2: 687b ldr r3, [r7, #4]
  58738. 80180c4: 68ba ldr r2, [r7, #8]
  58739. 80180c6: 68f9 ldr r1, [r7, #12]
  58740. 80180c8: 6978 ldr r0, [r7, #20]
  58741. 80180ca: f7ff fee1 bl 8017e90 <lwip_poll_should_wake>
  58742. 80180ce: 6138 str r0, [r7, #16]
  58743. 80180d0: e056 b.n 8018180 <select_check_waiters+0xf0>
  58744. else
  58745. #endif /* LWIP_SOCKET_SELECT && LWIP_SOCKET_POLL */
  58746. #if LWIP_SOCKET_SELECT
  58747. {
  58748. /* Test this select call for our socket */
  58749. if (has_recvevent) {
  58750. 80180d2: 68bb ldr r3, [r7, #8]
  58751. 80180d4: 2b00 cmp r3, #0
  58752. 80180d6: d017 beq.n 8018108 <select_check_waiters+0x78>
  58753. if (scb->readset && FD_ISSET(s, scb->readset)) {
  58754. 80180d8: 697b ldr r3, [r7, #20]
  58755. 80180da: 689b ldr r3, [r3, #8]
  58756. 80180dc: 2b00 cmp r3, #0
  58757. 80180de: d013 beq.n 8018108 <select_check_waiters+0x78>
  58758. 80180e0: 697b ldr r3, [r7, #20]
  58759. 80180e2: 689a ldr r2, [r3, #8]
  58760. 80180e4: 68fb ldr r3, [r7, #12]
  58761. 80180e6: 2b00 cmp r3, #0
  58762. 80180e8: da00 bge.n 80180ec <select_check_waiters+0x5c>
  58763. 80180ea: 331f adds r3, #31
  58764. 80180ec: 115b asrs r3, r3, #5
  58765. 80180ee: f852 2023 ldr.w r2, [r2, r3, lsl #2]
  58766. 80180f2: 68fb ldr r3, [r7, #12]
  58767. 80180f4: f003 031f and.w r3, r3, #31
  58768. 80180f8: fa22 f303 lsr.w r3, r2, r3
  58769. 80180fc: f003 0301 and.w r3, r3, #1
  58770. 8018100: 2b00 cmp r3, #0
  58771. 8018102: d001 beq.n 8018108 <select_check_waiters+0x78>
  58772. do_signal = 1;
  58773. 8018104: 2301 movs r3, #1
  58774. 8018106: 613b str r3, [r7, #16]
  58775. }
  58776. }
  58777. if (has_sendevent) {
  58778. 8018108: 687b ldr r3, [r7, #4]
  58779. 801810a: 2b00 cmp r3, #0
  58780. 801810c: d01a beq.n 8018144 <select_check_waiters+0xb4>
  58781. if (!do_signal && scb->writeset && FD_ISSET(s, scb->writeset)) {
  58782. 801810e: 693b ldr r3, [r7, #16]
  58783. 8018110: 2b00 cmp r3, #0
  58784. 8018112: d117 bne.n 8018144 <select_check_waiters+0xb4>
  58785. 8018114: 697b ldr r3, [r7, #20]
  58786. 8018116: 68db ldr r3, [r3, #12]
  58787. 8018118: 2b00 cmp r3, #0
  58788. 801811a: d013 beq.n 8018144 <select_check_waiters+0xb4>
  58789. 801811c: 697b ldr r3, [r7, #20]
  58790. 801811e: 68da ldr r2, [r3, #12]
  58791. 8018120: 68fb ldr r3, [r7, #12]
  58792. 8018122: 2b00 cmp r3, #0
  58793. 8018124: da00 bge.n 8018128 <select_check_waiters+0x98>
  58794. 8018126: 331f adds r3, #31
  58795. 8018128: 115b asrs r3, r3, #5
  58796. 801812a: f852 2023 ldr.w r2, [r2, r3, lsl #2]
  58797. 801812e: 68fb ldr r3, [r7, #12]
  58798. 8018130: f003 031f and.w r3, r3, #31
  58799. 8018134: fa22 f303 lsr.w r3, r2, r3
  58800. 8018138: f003 0301 and.w r3, r3, #1
  58801. 801813c: 2b00 cmp r3, #0
  58802. 801813e: d001 beq.n 8018144 <select_check_waiters+0xb4>
  58803. do_signal = 1;
  58804. 8018140: 2301 movs r3, #1
  58805. 8018142: 613b str r3, [r7, #16]
  58806. }
  58807. }
  58808. if (has_errevent) {
  58809. 8018144: 683b ldr r3, [r7, #0]
  58810. 8018146: 2b00 cmp r3, #0
  58811. 8018148: d01a beq.n 8018180 <select_check_waiters+0xf0>
  58812. if (!do_signal && scb->exceptset && FD_ISSET(s, scb->exceptset)) {
  58813. 801814a: 693b ldr r3, [r7, #16]
  58814. 801814c: 2b00 cmp r3, #0
  58815. 801814e: d117 bne.n 8018180 <select_check_waiters+0xf0>
  58816. 8018150: 697b ldr r3, [r7, #20]
  58817. 8018152: 691b ldr r3, [r3, #16]
  58818. 8018154: 2b00 cmp r3, #0
  58819. 8018156: d013 beq.n 8018180 <select_check_waiters+0xf0>
  58820. 8018158: 697b ldr r3, [r7, #20]
  58821. 801815a: 691a ldr r2, [r3, #16]
  58822. 801815c: 68fb ldr r3, [r7, #12]
  58823. 801815e: 2b00 cmp r3, #0
  58824. 8018160: da00 bge.n 8018164 <select_check_waiters+0xd4>
  58825. 8018162: 331f adds r3, #31
  58826. 8018164: 115b asrs r3, r3, #5
  58827. 8018166: f852 2023 ldr.w r2, [r2, r3, lsl #2]
  58828. 801816a: 68fb ldr r3, [r7, #12]
  58829. 801816c: f003 031f and.w r3, r3, #31
  58830. 8018170: fa22 f303 lsr.w r3, r2, r3
  58831. 8018174: f003 0301 and.w r3, r3, #1
  58832. 8018178: 2b00 cmp r3, #0
  58833. 801817a: d001 beq.n 8018180 <select_check_waiters+0xf0>
  58834. do_signal = 1;
  58835. 801817c: 2301 movs r3, #1
  58836. 801817e: 613b str r3, [r7, #16]
  58837. }
  58838. }
  58839. }
  58840. #endif /* LWIP_SOCKET_SELECT */
  58841. if (do_signal) {
  58842. 8018180: 693b ldr r3, [r7, #16]
  58843. 8018182: 2b00 cmp r3, #0
  58844. 8018184: d007 beq.n 8018196 <select_check_waiters+0x106>
  58845. scb->sem_signalled = 1;
  58846. 8018186: 697b ldr r3, [r7, #20]
  58847. 8018188: 2201 movs r2, #1
  58848. 801818a: 61da str r2, [r3, #28]
  58849. /* For !LWIP_TCPIP_CORE_LOCKING, we don't call SYS_ARCH_UNPROTECT() before signaling
  58850. the semaphore, as this might lead to the select thread taking itself off the list,
  58851. invalidating the semaphore. */
  58852. sys_sem_signal(SELECT_SEM_PTR(scb->sem));
  58853. 801818c: 697b ldr r3, [r7, #20]
  58854. 801818e: 3320 adds r3, #32
  58855. 8018190: 4618 mov r0, r3
  58856. 8018192: f00d fe8f bl 8025eb4 <sys_sem_signal>
  58857. for (scb = select_cb_list; scb != NULL; scb = scb->next) {
  58858. 8018196: 697b ldr r3, [r7, #20]
  58859. 8018198: 681b ldr r3, [r3, #0]
  58860. 801819a: 617b str r3, [r7, #20]
  58861. 801819c: 697b ldr r3, [r7, #20]
  58862. 801819e: 2b00 cmp r3, #0
  58863. 80181a0: d183 bne.n 80180aa <select_check_waiters+0x1a>
  58864. /* remember the state of select_cb_list to detect changes */
  58865. last_select_cb_ctr = select_cb_ctr;
  58866. }
  58867. SYS_ARCH_UNPROTECT(lev);
  58868. #endif
  58869. }
  58870. 80181a2: bf00 nop
  58871. 80181a4: bf00 nop
  58872. 80181a6: 3718 adds r7, #24
  58873. 80181a8: 46bd mov sp, r7
  58874. 80181aa: bd80 pop {r7, pc}
  58875. 80181ac: 24023488 .word 0x24023488
  58876. 080181b0 <lwip_ioctl>:
  58877. return err;
  58878. }
  58879. int
  58880. lwip_ioctl(int s, long cmd, void *argp)
  58881. {
  58882. 80181b0: b580 push {r7, lr}
  58883. 80181b2: b08c sub sp, #48 @ 0x30
  58884. 80181b4: af00 add r7, sp, #0
  58885. 80181b6: 60f8 str r0, [r7, #12]
  58886. 80181b8: 60b9 str r1, [r7, #8]
  58887. 80181ba: 607a str r2, [r7, #4]
  58888. struct lwip_sock *sock = get_socket(s);
  58889. 80181bc: 68f8 ldr r0, [r7, #12]
  58890. 80181be: f7ff f813 bl 80171e8 <get_socket>
  58891. 80181c2: 6278 str r0, [r7, #36] @ 0x24
  58892. u8_t val;
  58893. #if LWIP_SO_RCVBUF
  58894. int recv_avail;
  58895. #endif /* LWIP_SO_RCVBUF */
  58896. if (!sock) {
  58897. 80181c4: 6a7b ldr r3, [r7, #36] @ 0x24
  58898. 80181c6: 2b00 cmp r3, #0
  58899. 80181c8: d102 bne.n 80181d0 <lwip_ioctl+0x20>
  58900. return -1;
  58901. 80181ca: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  58902. 80181ce: e089 b.n 80182e4 <lwip_ioctl+0x134>
  58903. }
  58904. switch (cmd) {
  58905. 80181d0: 68bb ldr r3, [r7, #8]
  58906. 80181d2: 4a46 ldr r2, [pc, #280] @ (80182ec <lwip_ioctl+0x13c>)
  58907. 80181d4: 4293 cmp r3, r2
  58908. 80181d6: d048 beq.n 801826a <lwip_ioctl+0xba>
  58909. 80181d8: 68bb ldr r3, [r7, #8]
  58910. 80181da: 4a45 ldr r2, [pc, #276] @ (80182f0 <lwip_ioctl+0x140>)
  58911. 80181dc: 4293 cmp r3, r2
  58912. 80181de: d176 bne.n 80182ce <lwip_ioctl+0x11e>
  58913. #if LWIP_SO_RCVBUF || LWIP_FIONREAD_LINUXMODE
  58914. case FIONREAD:
  58915. if (!argp) {
  58916. 80181e0: 687b ldr r3, [r7, #4]
  58917. 80181e2: 2b00 cmp r3, #0
  58918. 80181e4: d10a bne.n 80181fc <lwip_ioctl+0x4c>
  58919. sock_set_errno(sock, EINVAL);
  58920. 80181e6: 2316 movs r3, #22
  58921. 80181e8: 61bb str r3, [r7, #24]
  58922. 80181ea: 69bb ldr r3, [r7, #24]
  58923. 80181ec: 2b00 cmp r3, #0
  58924. 80181ee: d002 beq.n 80181f6 <lwip_ioctl+0x46>
  58925. 80181f0: 4a40 ldr r2, [pc, #256] @ (80182f4 <lwip_ioctl+0x144>)
  58926. 80181f2: 69bb ldr r3, [r7, #24]
  58927. 80181f4: 6013 str r3, [r2, #0]
  58928. done_socket(sock);
  58929. return -1;
  58930. 80181f6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  58931. 80181fa: e073 b.n 80182e4 <lwip_ioctl+0x134>
  58932. }
  58933. #endif /* LWIP_FIONREAD_LINUXMODE */
  58934. #if LWIP_SO_RCVBUF
  58935. /* we come here if either LWIP_FIONREAD_LINUXMODE==0 or this is a TCP socket */
  58936. SYS_ARCH_GET(sock->conn->recv_avail, recv_avail);
  58937. 80181fc: f00d fef0 bl 8025fe0 <sys_arch_protect>
  58938. 8018200: 6238 str r0, [r7, #32]
  58939. 8018202: 6a7b ldr r3, [r7, #36] @ 0x24
  58940. 8018204: 681b ldr r3, [r3, #0]
  58941. 8018206: 6a5b ldr r3, [r3, #36] @ 0x24
  58942. 8018208: 62fb str r3, [r7, #44] @ 0x2c
  58943. 801820a: 6a38 ldr r0, [r7, #32]
  58944. 801820c: f00d fef6 bl 8025ffc <sys_arch_unprotect>
  58945. if (recv_avail < 0) {
  58946. 8018210: 6afb ldr r3, [r7, #44] @ 0x2c
  58947. 8018212: 2b00 cmp r3, #0
  58948. 8018214: da01 bge.n 801821a <lwip_ioctl+0x6a>
  58949. recv_avail = 0;
  58950. 8018216: 2300 movs r3, #0
  58951. 8018218: 62fb str r3, [r7, #44] @ 0x2c
  58952. }
  58953. /* Check if there is data left from the last recv operation. /maq 041215 */
  58954. if (sock->lastdata.netbuf) {
  58955. 801821a: 6a7b ldr r3, [r7, #36] @ 0x24
  58956. 801821c: 685b ldr r3, [r3, #4]
  58957. 801821e: 2b00 cmp r3, #0
  58958. 8018220: d016 beq.n 8018250 <lwip_ioctl+0xa0>
  58959. if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP) {
  58960. 8018222: 6a7b ldr r3, [r7, #36] @ 0x24
  58961. 8018224: 681b ldr r3, [r3, #0]
  58962. 8018226: 781b ldrb r3, [r3, #0]
  58963. 8018228: f003 03f0 and.w r3, r3, #240 @ 0xf0
  58964. 801822c: 2b10 cmp r3, #16
  58965. 801822e: d107 bne.n 8018240 <lwip_ioctl+0x90>
  58966. recv_avail += sock->lastdata.pbuf->tot_len;
  58967. 8018230: 6a7b ldr r3, [r7, #36] @ 0x24
  58968. 8018232: 685b ldr r3, [r3, #4]
  58969. 8018234: 891b ldrh r3, [r3, #8]
  58970. 8018236: 461a mov r2, r3
  58971. 8018238: 6afb ldr r3, [r7, #44] @ 0x2c
  58972. 801823a: 4413 add r3, r2
  58973. 801823c: 62fb str r3, [r7, #44] @ 0x2c
  58974. 801823e: e007 b.n 8018250 <lwip_ioctl+0xa0>
  58975. } else {
  58976. recv_avail += sock->lastdata.netbuf->p->tot_len;
  58977. 8018240: 6a7b ldr r3, [r7, #36] @ 0x24
  58978. 8018242: 685b ldr r3, [r3, #4]
  58979. 8018244: 681b ldr r3, [r3, #0]
  58980. 8018246: 891b ldrh r3, [r3, #8]
  58981. 8018248: 461a mov r2, r3
  58982. 801824a: 6afb ldr r3, [r7, #44] @ 0x2c
  58983. 801824c: 4413 add r3, r2
  58984. 801824e: 62fb str r3, [r7, #44] @ 0x2c
  58985. }
  58986. }
  58987. *((int *)argp) = recv_avail;
  58988. 8018250: 687b ldr r3, [r7, #4]
  58989. 8018252: 6afa ldr r2, [r7, #44] @ 0x2c
  58990. 8018254: 601a str r2, [r3, #0]
  58991. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_ioctl(%d, FIONREAD, %p) = %"U16_F"\n", s, argp, *((u16_t *)argp)));
  58992. sock_set_errno(sock, 0);
  58993. 8018256: 2300 movs r3, #0
  58994. 8018258: 61fb str r3, [r7, #28]
  58995. 801825a: 69fb ldr r3, [r7, #28]
  58996. 801825c: 2b00 cmp r3, #0
  58997. 801825e: d002 beq.n 8018266 <lwip_ioctl+0xb6>
  58998. 8018260: 4a24 ldr r2, [pc, #144] @ (80182f4 <lwip_ioctl+0x144>)
  58999. 8018262: 69fb ldr r3, [r7, #28]
  59000. 8018264: 6013 str r3, [r2, #0]
  59001. done_socket(sock);
  59002. return 0;
  59003. 8018266: 2300 movs r3, #0
  59004. 8018268: e03c b.n 80182e4 <lwip_ioctl+0x134>
  59005. break;
  59006. #endif /* LWIP_SO_RCVBUF */
  59007. #endif /* LWIP_SO_RCVBUF || LWIP_FIONREAD_LINUXMODE */
  59008. case (long)FIONBIO:
  59009. val = 0;
  59010. 801826a: 2300 movs r3, #0
  59011. 801826c: f887 302b strb.w r3, [r7, #43] @ 0x2b
  59012. if (argp && *(int *)argp) {
  59013. 8018270: 687b ldr r3, [r7, #4]
  59014. 8018272: 2b00 cmp r3, #0
  59015. 8018274: d006 beq.n 8018284 <lwip_ioctl+0xd4>
  59016. 8018276: 687b ldr r3, [r7, #4]
  59017. 8018278: 681b ldr r3, [r3, #0]
  59018. 801827a: 2b00 cmp r3, #0
  59019. 801827c: d002 beq.n 8018284 <lwip_ioctl+0xd4>
  59020. val = 1;
  59021. 801827e: 2301 movs r3, #1
  59022. 8018280: f887 302b strb.w r3, [r7, #43] @ 0x2b
  59023. }
  59024. netconn_set_nonblocking(sock->conn, val);
  59025. 8018284: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  59026. 8018288: 2b00 cmp r3, #0
  59027. 801828a: d00b beq.n 80182a4 <lwip_ioctl+0xf4>
  59028. 801828c: 6a7b ldr r3, [r7, #36] @ 0x24
  59029. 801828e: 681b ldr r3, [r3, #0]
  59030. 8018290: f893 2028 ldrb.w r2, [r3, #40] @ 0x28
  59031. 8018294: 6a7b ldr r3, [r7, #36] @ 0x24
  59032. 8018296: 681b ldr r3, [r3, #0]
  59033. 8018298: f042 0202 orr.w r2, r2, #2
  59034. 801829c: b2d2 uxtb r2, r2
  59035. 801829e: f883 2028 strb.w r2, [r3, #40] @ 0x28
  59036. 80182a2: e00a b.n 80182ba <lwip_ioctl+0x10a>
  59037. 80182a4: 6a7b ldr r3, [r7, #36] @ 0x24
  59038. 80182a6: 681b ldr r3, [r3, #0]
  59039. 80182a8: f893 2028 ldrb.w r2, [r3, #40] @ 0x28
  59040. 80182ac: 6a7b ldr r3, [r7, #36] @ 0x24
  59041. 80182ae: 681b ldr r3, [r3, #0]
  59042. 80182b0: f022 0202 bic.w r2, r2, #2
  59043. 80182b4: b2d2 uxtb r2, r2
  59044. 80182b6: f883 2028 strb.w r2, [r3, #40] @ 0x28
  59045. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_ioctl(%d, FIONBIO, %d)\n", s, val));
  59046. sock_set_errno(sock, 0);
  59047. 80182ba: 2300 movs r3, #0
  59048. 80182bc: 617b str r3, [r7, #20]
  59049. 80182be: 697b ldr r3, [r7, #20]
  59050. 80182c0: 2b00 cmp r3, #0
  59051. 80182c2: d002 beq.n 80182ca <lwip_ioctl+0x11a>
  59052. 80182c4: 4a0b ldr r2, [pc, #44] @ (80182f4 <lwip_ioctl+0x144>)
  59053. 80182c6: 697b ldr r3, [r7, #20]
  59054. 80182c8: 6013 str r3, [r2, #0]
  59055. done_socket(sock);
  59056. return 0;
  59057. 80182ca: 2300 movs r3, #0
  59058. 80182cc: e00a b.n 80182e4 <lwip_ioctl+0x134>
  59059. default:
  59060. break;
  59061. 80182ce: bf00 nop
  59062. } /* switch (cmd) */
  59063. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_ioctl(%d, UNIMPL: 0x%lx, %p)\n", s, cmd, argp));
  59064. sock_set_errno(sock, ENOSYS); /* not yet implemented */
  59065. 80182d0: 2326 movs r3, #38 @ 0x26
  59066. 80182d2: 613b str r3, [r7, #16]
  59067. 80182d4: 693b ldr r3, [r7, #16]
  59068. 80182d6: 2b00 cmp r3, #0
  59069. 80182d8: d002 beq.n 80182e0 <lwip_ioctl+0x130>
  59070. 80182da: 4a06 ldr r2, [pc, #24] @ (80182f4 <lwip_ioctl+0x144>)
  59071. 80182dc: 693b ldr r3, [r7, #16]
  59072. 80182de: 6013 str r3, [r2, #0]
  59073. done_socket(sock);
  59074. return -1;
  59075. 80182e0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  59076. }
  59077. 80182e4: 4618 mov r0, r3
  59078. 80182e6: 3730 adds r7, #48 @ 0x30
  59079. 80182e8: 46bd mov sp, r7
  59080. 80182ea: bd80 pop {r7, pc}
  59081. 80182ec: 8004667e .word 0x8004667e
  59082. 80182f0: 4004667f .word 0x4004667f
  59083. 80182f4: 2402a2e4 .word 0x2402a2e4
  59084. 080182f8 <tcpip_timeouts_mbox_fetch>:
  59085. * @param mbox the mbox to fetch the message from
  59086. * @param msg the place to store the message
  59087. */
  59088. static void
  59089. tcpip_timeouts_mbox_fetch(sys_mbox_t *mbox, void **msg)
  59090. {
  59091. 80182f8: b580 push {r7, lr}
  59092. 80182fa: b084 sub sp, #16
  59093. 80182fc: af00 add r7, sp, #0
  59094. 80182fe: 6078 str r0, [r7, #4]
  59095. 8018300: 6039 str r1, [r7, #0]
  59096. u32_t sleeptime, res;
  59097. again:
  59098. LWIP_ASSERT_CORE_LOCKED();
  59099. 8018302: f7f7 feb5 bl 8010070 <sys_check_core_locking>
  59100. sleeptime = sys_timeouts_sleeptime();
  59101. 8018306: f008 fb41 bl 802098c <sys_timeouts_sleeptime>
  59102. 801830a: 60f8 str r0, [r7, #12]
  59103. if (sleeptime == SYS_TIMEOUTS_SLEEPTIME_INFINITE) {
  59104. 801830c: 68fb ldr r3, [r7, #12]
  59105. 801830e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  59106. 8018312: d109 bne.n 8018328 <tcpip_timeouts_mbox_fetch+0x30>
  59107. UNLOCK_TCPIP_CORE();
  59108. 8018314: f7f7 fe9e bl 8010054 <sys_unlock_tcpip_core>
  59109. sys_arch_mbox_fetch(mbox, msg, 0);
  59110. 8018318: 2200 movs r2, #0
  59111. 801831a: 6839 ldr r1, [r7, #0]
  59112. 801831c: 6878 ldr r0, [r7, #4]
  59113. 801831e: f00d fd0d bl 8025d3c <sys_arch_mbox_fetch>
  59114. LOCK_TCPIP_CORE();
  59115. 8018322: f7f7 fe87 bl 8010034 <sys_lock_tcpip_core>
  59116. return;
  59117. 8018326: e016 b.n 8018356 <tcpip_timeouts_mbox_fetch+0x5e>
  59118. } else if (sleeptime == 0) {
  59119. 8018328: 68fb ldr r3, [r7, #12]
  59120. 801832a: 2b00 cmp r3, #0
  59121. 801832c: d102 bne.n 8018334 <tcpip_timeouts_mbox_fetch+0x3c>
  59122. sys_check_timeouts();
  59123. 801832e: f008 faf1 bl 8020914 <sys_check_timeouts>
  59124. /* We try again to fetch a message from the mbox. */
  59125. goto again;
  59126. 8018332: e7e6 b.n 8018302 <tcpip_timeouts_mbox_fetch+0xa>
  59127. }
  59128. UNLOCK_TCPIP_CORE();
  59129. 8018334: f7f7 fe8e bl 8010054 <sys_unlock_tcpip_core>
  59130. res = sys_arch_mbox_fetch(mbox, msg, sleeptime);
  59131. 8018338: 68fa ldr r2, [r7, #12]
  59132. 801833a: 6839 ldr r1, [r7, #0]
  59133. 801833c: 6878 ldr r0, [r7, #4]
  59134. 801833e: f00d fcfd bl 8025d3c <sys_arch_mbox_fetch>
  59135. 8018342: 60b8 str r0, [r7, #8]
  59136. LOCK_TCPIP_CORE();
  59137. 8018344: f7f7 fe76 bl 8010034 <sys_lock_tcpip_core>
  59138. if (res == SYS_ARCH_TIMEOUT) {
  59139. 8018348: 68bb ldr r3, [r7, #8]
  59140. 801834a: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  59141. 801834e: d102 bne.n 8018356 <tcpip_timeouts_mbox_fetch+0x5e>
  59142. /* If a SYS_ARCH_TIMEOUT value is returned, a timeout occurred
  59143. before a message could be fetched. */
  59144. sys_check_timeouts();
  59145. 8018350: f008 fae0 bl 8020914 <sys_check_timeouts>
  59146. /* We try again to fetch a message from the mbox. */
  59147. goto again;
  59148. 8018354: e7d5 b.n 8018302 <tcpip_timeouts_mbox_fetch+0xa>
  59149. }
  59150. }
  59151. 8018356: 3710 adds r7, #16
  59152. 8018358: 46bd mov sp, r7
  59153. 801835a: bd80 pop {r7, pc}
  59154. 0801835c <tcpip_thread>:
  59155. *
  59156. * @param arg unused argument
  59157. */
  59158. static void
  59159. tcpip_thread(void *arg)
  59160. {
  59161. 801835c: b580 push {r7, lr}
  59162. 801835e: b084 sub sp, #16
  59163. 8018360: af00 add r7, sp, #0
  59164. 8018362: 6078 str r0, [r7, #4]
  59165. struct tcpip_msg *msg;
  59166. LWIP_UNUSED_ARG(arg);
  59167. LWIP_MARK_TCPIP_THREAD();
  59168. 8018364: f7f7 fec0 bl 80100e8 <sys_mark_tcpip_thread>
  59169. LOCK_TCPIP_CORE();
  59170. 8018368: f7f7 fe64 bl 8010034 <sys_lock_tcpip_core>
  59171. if (tcpip_init_done != NULL) {
  59172. 801836c: 4b0f ldr r3, [pc, #60] @ (80183ac <tcpip_thread+0x50>)
  59173. 801836e: 681b ldr r3, [r3, #0]
  59174. 8018370: 2b00 cmp r3, #0
  59175. 8018372: d005 beq.n 8018380 <tcpip_thread+0x24>
  59176. tcpip_init_done(tcpip_init_done_arg);
  59177. 8018374: 4b0d ldr r3, [pc, #52] @ (80183ac <tcpip_thread+0x50>)
  59178. 8018376: 681b ldr r3, [r3, #0]
  59179. 8018378: 4a0d ldr r2, [pc, #52] @ (80183b0 <tcpip_thread+0x54>)
  59180. 801837a: 6812 ldr r2, [r2, #0]
  59181. 801837c: 4610 mov r0, r2
  59182. 801837e: 4798 blx r3
  59183. }
  59184. while (1) { /* MAIN Loop */
  59185. LWIP_TCPIP_THREAD_ALIVE();
  59186. /* wait for a message, timeouts are processed while waiting */
  59187. TCPIP_MBOX_FETCH(&tcpip_mbox, (void **)&msg);
  59188. 8018380: f107 030c add.w r3, r7, #12
  59189. 8018384: 4619 mov r1, r3
  59190. 8018386: 480b ldr r0, [pc, #44] @ (80183b4 <tcpip_thread+0x58>)
  59191. 8018388: f7ff ffb6 bl 80182f8 <tcpip_timeouts_mbox_fetch>
  59192. if (msg == NULL) {
  59193. 801838c: 68fb ldr r3, [r7, #12]
  59194. 801838e: 2b00 cmp r3, #0
  59195. 8018390: d106 bne.n 80183a0 <tcpip_thread+0x44>
  59196. LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: invalid message: NULL\n"));
  59197. LWIP_ASSERT("tcpip_thread: invalid message", 0);
  59198. 8018392: 4b09 ldr r3, [pc, #36] @ (80183b8 <tcpip_thread+0x5c>)
  59199. 8018394: 2291 movs r2, #145 @ 0x91
  59200. 8018396: 4909 ldr r1, [pc, #36] @ (80183bc <tcpip_thread+0x60>)
  59201. 8018398: 4809 ldr r0, [pc, #36] @ (80183c0 <tcpip_thread+0x64>)
  59202. 801839a: f011 f8b7 bl 802950c <iprintf>
  59203. continue;
  59204. 801839e: e003 b.n 80183a8 <tcpip_thread+0x4c>
  59205. }
  59206. tcpip_thread_handle_msg(msg);
  59207. 80183a0: 68fb ldr r3, [r7, #12]
  59208. 80183a2: 4618 mov r0, r3
  59209. 80183a4: f000 f80e bl 80183c4 <tcpip_thread_handle_msg>
  59210. TCPIP_MBOX_FETCH(&tcpip_mbox, (void **)&msg);
  59211. 80183a8: e7ea b.n 8018380 <tcpip_thread+0x24>
  59212. 80183aa: bf00 nop
  59213. 80183ac: 2402348c .word 0x2402348c
  59214. 80183b0: 24023490 .word 0x24023490
  59215. 80183b4: 24023494 .word 0x24023494
  59216. 80183b8: 0802d530 .word 0x0802d530
  59217. 80183bc: 0802d560 .word 0x0802d560
  59218. 80183c0: 0802d580 .word 0x0802d580
  59219. 080183c4 <tcpip_thread_handle_msg>:
  59220. /* Handle a single tcpip_msg
  59221. * This is in its own function for access by tests only.
  59222. */
  59223. static void
  59224. tcpip_thread_handle_msg(struct tcpip_msg *msg)
  59225. {
  59226. 80183c4: b580 push {r7, lr}
  59227. 80183c6: b082 sub sp, #8
  59228. 80183c8: af00 add r7, sp, #0
  59229. 80183ca: 6078 str r0, [r7, #4]
  59230. switch (msg->type) {
  59231. 80183cc: 687b ldr r3, [r7, #4]
  59232. 80183ce: 781b ldrb r3, [r3, #0]
  59233. 80183d0: 2b02 cmp r3, #2
  59234. 80183d2: d026 beq.n 8018422 <tcpip_thread_handle_msg+0x5e>
  59235. 80183d4: 2b02 cmp r3, #2
  59236. 80183d6: dc2b bgt.n 8018430 <tcpip_thread_handle_msg+0x6c>
  59237. 80183d8: 2b00 cmp r3, #0
  59238. 80183da: d002 beq.n 80183e2 <tcpip_thread_handle_msg+0x1e>
  59239. 80183dc: 2b01 cmp r3, #1
  59240. 80183de: d015 beq.n 801840c <tcpip_thread_handle_msg+0x48>
  59241. 80183e0: e026 b.n 8018430 <tcpip_thread_handle_msg+0x6c>
  59242. #endif /* !LWIP_TCPIP_CORE_LOCKING */
  59243. #if !LWIP_TCPIP_CORE_LOCKING_INPUT
  59244. case TCPIP_MSG_INPKT:
  59245. LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: PACKET %p\n", (void *)msg));
  59246. if (msg->msg.inp.input_fn(msg->msg.inp.p, msg->msg.inp.netif) != ERR_OK) {
  59247. 80183e2: 687b ldr r3, [r7, #4]
  59248. 80183e4: 68db ldr r3, [r3, #12]
  59249. 80183e6: 687a ldr r2, [r7, #4]
  59250. 80183e8: 6850 ldr r0, [r2, #4]
  59251. 80183ea: 687a ldr r2, [r7, #4]
  59252. 80183ec: 6892 ldr r2, [r2, #8]
  59253. 80183ee: 4611 mov r1, r2
  59254. 80183f0: 4798 blx r3
  59255. 80183f2: 4603 mov r3, r0
  59256. 80183f4: 2b00 cmp r3, #0
  59257. 80183f6: d004 beq.n 8018402 <tcpip_thread_handle_msg+0x3e>
  59258. pbuf_free(msg->msg.inp.p);
  59259. 80183f8: 687b ldr r3, [r7, #4]
  59260. 80183fa: 685b ldr r3, [r3, #4]
  59261. 80183fc: 4618 mov r0, r3
  59262. 80183fe: f001 fe0d bl 801a01c <pbuf_free>
  59263. }
  59264. memp_free(MEMP_TCPIP_MSG_INPKT, msg);
  59265. 8018402: 6879 ldr r1, [r7, #4]
  59266. 8018404: 2009 movs r0, #9
  59267. 8018406: f000 ff1b bl 8019240 <memp_free>
  59268. break;
  59269. 801840a: e018 b.n 801843e <tcpip_thread_handle_msg+0x7a>
  59270. break;
  59271. #endif /* LWIP_TCPIP_TIMEOUT && LWIP_TIMERS */
  59272. case TCPIP_MSG_CALLBACK:
  59273. LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: CALLBACK %p\n", (void *)msg));
  59274. msg->msg.cb.function(msg->msg.cb.ctx);
  59275. 801840c: 687b ldr r3, [r7, #4]
  59276. 801840e: 685b ldr r3, [r3, #4]
  59277. 8018410: 687a ldr r2, [r7, #4]
  59278. 8018412: 6892 ldr r2, [r2, #8]
  59279. 8018414: 4610 mov r0, r2
  59280. 8018416: 4798 blx r3
  59281. memp_free(MEMP_TCPIP_MSG_API, msg);
  59282. 8018418: 6879 ldr r1, [r7, #4]
  59283. 801841a: 2008 movs r0, #8
  59284. 801841c: f000 ff10 bl 8019240 <memp_free>
  59285. break;
  59286. 8018420: e00d b.n 801843e <tcpip_thread_handle_msg+0x7a>
  59287. case TCPIP_MSG_CALLBACK_STATIC:
  59288. LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: CALLBACK_STATIC %p\n", (void *)msg));
  59289. msg->msg.cb.function(msg->msg.cb.ctx);
  59290. 8018422: 687b ldr r3, [r7, #4]
  59291. 8018424: 685b ldr r3, [r3, #4]
  59292. 8018426: 687a ldr r2, [r7, #4]
  59293. 8018428: 6892 ldr r2, [r2, #8]
  59294. 801842a: 4610 mov r0, r2
  59295. 801842c: 4798 blx r3
  59296. break;
  59297. 801842e: e006 b.n 801843e <tcpip_thread_handle_msg+0x7a>
  59298. default:
  59299. LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: invalid message: %d\n", msg->type));
  59300. LWIP_ASSERT("tcpip_thread: invalid message", 0);
  59301. 8018430: 4b05 ldr r3, [pc, #20] @ (8018448 <tcpip_thread_handle_msg+0x84>)
  59302. 8018432: 22cf movs r2, #207 @ 0xcf
  59303. 8018434: 4905 ldr r1, [pc, #20] @ (801844c <tcpip_thread_handle_msg+0x88>)
  59304. 8018436: 4806 ldr r0, [pc, #24] @ (8018450 <tcpip_thread_handle_msg+0x8c>)
  59305. 8018438: f011 f868 bl 802950c <iprintf>
  59306. break;
  59307. 801843c: bf00 nop
  59308. }
  59309. }
  59310. 801843e: bf00 nop
  59311. 8018440: 3708 adds r7, #8
  59312. 8018442: 46bd mov sp, r7
  59313. 8018444: bd80 pop {r7, pc}
  59314. 8018446: bf00 nop
  59315. 8018448: 0802d530 .word 0x0802d530
  59316. 801844c: 0802d560 .word 0x0802d560
  59317. 8018450: 0802d580 .word 0x0802d580
  59318. 08018454 <tcpip_inpkt>:
  59319. * @param inp the network interface on which the packet was received
  59320. * @param input_fn input function to call
  59321. */
  59322. err_t
  59323. tcpip_inpkt(struct pbuf *p, struct netif *inp, netif_input_fn input_fn)
  59324. {
  59325. 8018454: b580 push {r7, lr}
  59326. 8018456: b086 sub sp, #24
  59327. 8018458: af00 add r7, sp, #0
  59328. 801845a: 60f8 str r0, [r7, #12]
  59329. 801845c: 60b9 str r1, [r7, #8]
  59330. 801845e: 607a str r2, [r7, #4]
  59331. UNLOCK_TCPIP_CORE();
  59332. return ret;
  59333. #else /* LWIP_TCPIP_CORE_LOCKING_INPUT */
  59334. struct tcpip_msg *msg;
  59335. LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox));
  59336. 8018460: 481a ldr r0, [pc, #104] @ (80184cc <tcpip_inpkt+0x78>)
  59337. 8018462: f00d fcb3 bl 8025dcc <sys_mbox_valid>
  59338. 8018466: 4603 mov r3, r0
  59339. 8018468: 2b00 cmp r3, #0
  59340. 801846a: d105 bne.n 8018478 <tcpip_inpkt+0x24>
  59341. 801846c: 4b18 ldr r3, [pc, #96] @ (80184d0 <tcpip_inpkt+0x7c>)
  59342. 801846e: 22fc movs r2, #252 @ 0xfc
  59343. 8018470: 4918 ldr r1, [pc, #96] @ (80184d4 <tcpip_inpkt+0x80>)
  59344. 8018472: 4819 ldr r0, [pc, #100] @ (80184d8 <tcpip_inpkt+0x84>)
  59345. 8018474: f011 f84a bl 802950c <iprintf>
  59346. msg = (struct tcpip_msg *)memp_malloc(MEMP_TCPIP_MSG_INPKT);
  59347. 8018478: 2009 movs r0, #9
  59348. 801847a: f000 fe6b bl 8019154 <memp_malloc>
  59349. 801847e: 6178 str r0, [r7, #20]
  59350. if (msg == NULL) {
  59351. 8018480: 697b ldr r3, [r7, #20]
  59352. 8018482: 2b00 cmp r3, #0
  59353. 8018484: d102 bne.n 801848c <tcpip_inpkt+0x38>
  59354. return ERR_MEM;
  59355. 8018486: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  59356. 801848a: e01a b.n 80184c2 <tcpip_inpkt+0x6e>
  59357. }
  59358. msg->type = TCPIP_MSG_INPKT;
  59359. 801848c: 697b ldr r3, [r7, #20]
  59360. 801848e: 2200 movs r2, #0
  59361. 8018490: 701a strb r2, [r3, #0]
  59362. msg->msg.inp.p = p;
  59363. 8018492: 697b ldr r3, [r7, #20]
  59364. 8018494: 68fa ldr r2, [r7, #12]
  59365. 8018496: 605a str r2, [r3, #4]
  59366. msg->msg.inp.netif = inp;
  59367. 8018498: 697b ldr r3, [r7, #20]
  59368. 801849a: 68ba ldr r2, [r7, #8]
  59369. 801849c: 609a str r2, [r3, #8]
  59370. msg->msg.inp.input_fn = input_fn;
  59371. 801849e: 697b ldr r3, [r7, #20]
  59372. 80184a0: 687a ldr r2, [r7, #4]
  59373. 80184a2: 60da str r2, [r3, #12]
  59374. if (sys_mbox_trypost(&tcpip_mbox, msg) != ERR_OK) {
  59375. 80184a4: 6979 ldr r1, [r7, #20]
  59376. 80184a6: 4809 ldr r0, [pc, #36] @ (80184cc <tcpip_inpkt+0x78>)
  59377. 80184a8: f00d fc2e bl 8025d08 <sys_mbox_trypost>
  59378. 80184ac: 4603 mov r3, r0
  59379. 80184ae: 2b00 cmp r3, #0
  59380. 80184b0: d006 beq.n 80184c0 <tcpip_inpkt+0x6c>
  59381. memp_free(MEMP_TCPIP_MSG_INPKT, msg);
  59382. 80184b2: 6979 ldr r1, [r7, #20]
  59383. 80184b4: 2009 movs r0, #9
  59384. 80184b6: f000 fec3 bl 8019240 <memp_free>
  59385. return ERR_MEM;
  59386. 80184ba: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  59387. 80184be: e000 b.n 80184c2 <tcpip_inpkt+0x6e>
  59388. }
  59389. return ERR_OK;
  59390. 80184c0: 2300 movs r3, #0
  59391. #endif /* LWIP_TCPIP_CORE_LOCKING_INPUT */
  59392. }
  59393. 80184c2: 4618 mov r0, r3
  59394. 80184c4: 3718 adds r7, #24
  59395. 80184c6: 46bd mov sp, r7
  59396. 80184c8: bd80 pop {r7, pc}
  59397. 80184ca: bf00 nop
  59398. 80184cc: 24023494 .word 0x24023494
  59399. 80184d0: 0802d530 .word 0x0802d530
  59400. 80184d4: 0802d5a8 .word 0x0802d5a8
  59401. 80184d8: 0802d580 .word 0x0802d580
  59402. 080184dc <tcpip_input>:
  59403. * NETIF_FLAG_ETHERNET flags)
  59404. * @param inp the network interface on which the packet was received
  59405. */
  59406. err_t
  59407. tcpip_input(struct pbuf *p, struct netif *inp)
  59408. {
  59409. 80184dc: b580 push {r7, lr}
  59410. 80184de: b082 sub sp, #8
  59411. 80184e0: af00 add r7, sp, #0
  59412. 80184e2: 6078 str r0, [r7, #4]
  59413. 80184e4: 6039 str r1, [r7, #0]
  59414. #if LWIP_ETHERNET
  59415. if (inp->flags & (NETIF_FLAG_ETHARP | NETIF_FLAG_ETHERNET)) {
  59416. 80184e6: 683b ldr r3, [r7, #0]
  59417. 80184e8: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  59418. 80184ec: f003 0318 and.w r3, r3, #24
  59419. 80184f0: 2b00 cmp r3, #0
  59420. 80184f2: d006 beq.n 8018502 <tcpip_input+0x26>
  59421. return tcpip_inpkt(p, inp, ethernet_input);
  59422. 80184f4: 4a08 ldr r2, [pc, #32] @ (8018518 <tcpip_input+0x3c>)
  59423. 80184f6: 6839 ldr r1, [r7, #0]
  59424. 80184f8: 6878 ldr r0, [r7, #4]
  59425. 80184fa: f7ff ffab bl 8018454 <tcpip_inpkt>
  59426. 80184fe: 4603 mov r3, r0
  59427. 8018500: e005 b.n 801850e <tcpip_input+0x32>
  59428. } else
  59429. #endif /* LWIP_ETHERNET */
  59430. return tcpip_inpkt(p, inp, ip_input);
  59431. 8018502: 4a06 ldr r2, [pc, #24] @ (801851c <tcpip_input+0x40>)
  59432. 8018504: 6839 ldr r1, [r7, #0]
  59433. 8018506: 6878 ldr r0, [r7, #4]
  59434. 8018508: f7ff ffa4 bl 8018454 <tcpip_inpkt>
  59435. 801850c: 4603 mov r3, r0
  59436. }
  59437. 801850e: 4618 mov r0, r3
  59438. 8018510: 3708 adds r7, #8
  59439. 8018512: 46bd mov sp, r7
  59440. 8018514: bd80 pop {r7, pc}
  59441. 8018516: bf00 nop
  59442. 8018518: 08025afd .word 0x08025afd
  59443. 801851c: 08024625 .word 0x08024625
  59444. 08018520 <tcpip_try_callback>:
  59445. *
  59446. * @see tcpip_callback
  59447. */
  59448. err_t
  59449. tcpip_try_callback(tcpip_callback_fn function, void *ctx)
  59450. {
  59451. 8018520: b580 push {r7, lr}
  59452. 8018522: b084 sub sp, #16
  59453. 8018524: af00 add r7, sp, #0
  59454. 8018526: 6078 str r0, [r7, #4]
  59455. 8018528: 6039 str r1, [r7, #0]
  59456. struct tcpip_msg *msg;
  59457. LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox));
  59458. 801852a: 4819 ldr r0, [pc, #100] @ (8018590 <tcpip_try_callback+0x70>)
  59459. 801852c: f00d fc4e bl 8025dcc <sys_mbox_valid>
  59460. 8018530: 4603 mov r3, r0
  59461. 8018532: 2b00 cmp r3, #0
  59462. 8018534: d106 bne.n 8018544 <tcpip_try_callback+0x24>
  59463. 8018536: 4b17 ldr r3, [pc, #92] @ (8018594 <tcpip_try_callback+0x74>)
  59464. 8018538: f240 125d movw r2, #349 @ 0x15d
  59465. 801853c: 4916 ldr r1, [pc, #88] @ (8018598 <tcpip_try_callback+0x78>)
  59466. 801853e: 4817 ldr r0, [pc, #92] @ (801859c <tcpip_try_callback+0x7c>)
  59467. 8018540: f010 ffe4 bl 802950c <iprintf>
  59468. msg = (struct tcpip_msg *)memp_malloc(MEMP_TCPIP_MSG_API);
  59469. 8018544: 2008 movs r0, #8
  59470. 8018546: f000 fe05 bl 8019154 <memp_malloc>
  59471. 801854a: 60f8 str r0, [r7, #12]
  59472. if (msg == NULL) {
  59473. 801854c: 68fb ldr r3, [r7, #12]
  59474. 801854e: 2b00 cmp r3, #0
  59475. 8018550: d102 bne.n 8018558 <tcpip_try_callback+0x38>
  59476. return ERR_MEM;
  59477. 8018552: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  59478. 8018556: e017 b.n 8018588 <tcpip_try_callback+0x68>
  59479. }
  59480. msg->type = TCPIP_MSG_CALLBACK;
  59481. 8018558: 68fb ldr r3, [r7, #12]
  59482. 801855a: 2201 movs r2, #1
  59483. 801855c: 701a strb r2, [r3, #0]
  59484. msg->msg.cb.function = function;
  59485. 801855e: 68fb ldr r3, [r7, #12]
  59486. 8018560: 687a ldr r2, [r7, #4]
  59487. 8018562: 605a str r2, [r3, #4]
  59488. msg->msg.cb.ctx = ctx;
  59489. 8018564: 68fb ldr r3, [r7, #12]
  59490. 8018566: 683a ldr r2, [r7, #0]
  59491. 8018568: 609a str r2, [r3, #8]
  59492. if (sys_mbox_trypost(&tcpip_mbox, msg) != ERR_OK) {
  59493. 801856a: 68f9 ldr r1, [r7, #12]
  59494. 801856c: 4808 ldr r0, [pc, #32] @ (8018590 <tcpip_try_callback+0x70>)
  59495. 801856e: f00d fbcb bl 8025d08 <sys_mbox_trypost>
  59496. 8018572: 4603 mov r3, r0
  59497. 8018574: 2b00 cmp r3, #0
  59498. 8018576: d006 beq.n 8018586 <tcpip_try_callback+0x66>
  59499. memp_free(MEMP_TCPIP_MSG_API, msg);
  59500. 8018578: 68f9 ldr r1, [r7, #12]
  59501. 801857a: 2008 movs r0, #8
  59502. 801857c: f000 fe60 bl 8019240 <memp_free>
  59503. return ERR_MEM;
  59504. 8018580: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  59505. 8018584: e000 b.n 8018588 <tcpip_try_callback+0x68>
  59506. }
  59507. return ERR_OK;
  59508. 8018586: 2300 movs r3, #0
  59509. }
  59510. 8018588: 4618 mov r0, r3
  59511. 801858a: 3710 adds r7, #16
  59512. 801858c: 46bd mov sp, r7
  59513. 801858e: bd80 pop {r7, pc}
  59514. 8018590: 24023494 .word 0x24023494
  59515. 8018594: 0802d530 .word 0x0802d530
  59516. 8018598: 0802d5a8 .word 0x0802d5a8
  59517. 801859c: 0802d580 .word 0x0802d580
  59518. 080185a0 <tcpip_send_msg_wait_sem>:
  59519. * @param sem semaphore to wait on
  59520. * @return ERR_OK if the function was called, another err_t if not
  59521. */
  59522. err_t
  59523. tcpip_send_msg_wait_sem(tcpip_callback_fn fn, void *apimsg, sys_sem_t *sem)
  59524. {
  59525. 80185a0: b580 push {r7, lr}
  59526. 80185a2: b084 sub sp, #16
  59527. 80185a4: af00 add r7, sp, #0
  59528. 80185a6: 60f8 str r0, [r7, #12]
  59529. 80185a8: 60b9 str r1, [r7, #8]
  59530. 80185aa: 607a str r2, [r7, #4]
  59531. #if LWIP_TCPIP_CORE_LOCKING
  59532. LWIP_UNUSED_ARG(sem);
  59533. LOCK_TCPIP_CORE();
  59534. 80185ac: f7f7 fd42 bl 8010034 <sys_lock_tcpip_core>
  59535. fn(apimsg);
  59536. 80185b0: 68fb ldr r3, [r7, #12]
  59537. 80185b2: 68b8 ldr r0, [r7, #8]
  59538. 80185b4: 4798 blx r3
  59539. UNLOCK_TCPIP_CORE();
  59540. 80185b6: f7f7 fd4d bl 8010054 <sys_unlock_tcpip_core>
  59541. return ERR_OK;
  59542. 80185ba: 2300 movs r3, #0
  59543. sys_mbox_post(&tcpip_mbox, &TCPIP_MSG_VAR_REF(msg));
  59544. sys_arch_sem_wait(sem, 0);
  59545. TCPIP_MSG_VAR_FREE(msg);
  59546. return ERR_OK;
  59547. #endif /* LWIP_TCPIP_CORE_LOCKING */
  59548. }
  59549. 80185bc: 4618 mov r0, r3
  59550. 80185be: 3710 adds r7, #16
  59551. 80185c0: 46bd mov sp, r7
  59552. 80185c2: bd80 pop {r7, pc}
  59553. 080185c4 <tcpip_init>:
  59554. * @param initfunc a function to call when tcpip_thread is running and finished initializing
  59555. * @param arg argument to pass to initfunc
  59556. */
  59557. void
  59558. tcpip_init(tcpip_init_done_fn initfunc, void *arg)
  59559. {
  59560. 80185c4: b580 push {r7, lr}
  59561. 80185c6: b084 sub sp, #16
  59562. 80185c8: af02 add r7, sp, #8
  59563. 80185ca: 6078 str r0, [r7, #4]
  59564. 80185cc: 6039 str r1, [r7, #0]
  59565. lwip_init();
  59566. 80185ce: f000 f92d bl 801882c <lwip_init>
  59567. tcpip_init_done = initfunc;
  59568. 80185d2: 4a17 ldr r2, [pc, #92] @ (8018630 <tcpip_init+0x6c>)
  59569. 80185d4: 687b ldr r3, [r7, #4]
  59570. 80185d6: 6013 str r3, [r2, #0]
  59571. tcpip_init_done_arg = arg;
  59572. 80185d8: 4a16 ldr r2, [pc, #88] @ (8018634 <tcpip_init+0x70>)
  59573. 80185da: 683b ldr r3, [r7, #0]
  59574. 80185dc: 6013 str r3, [r2, #0]
  59575. if (sys_mbox_new(&tcpip_mbox, TCPIP_MBOX_SIZE) != ERR_OK) {
  59576. 80185de: 2106 movs r1, #6
  59577. 80185e0: 4815 ldr r0, [pc, #84] @ (8018638 <tcpip_init+0x74>)
  59578. 80185e2: f00d fb65 bl 8025cb0 <sys_mbox_new>
  59579. 80185e6: 4603 mov r3, r0
  59580. 80185e8: 2b00 cmp r3, #0
  59581. 80185ea: d006 beq.n 80185fa <tcpip_init+0x36>
  59582. LWIP_ASSERT("failed to create tcpip_thread mbox", 0);
  59583. 80185ec: 4b13 ldr r3, [pc, #76] @ (801863c <tcpip_init+0x78>)
  59584. 80185ee: f240 2261 movw r2, #609 @ 0x261
  59585. 80185f2: 4913 ldr r1, [pc, #76] @ (8018640 <tcpip_init+0x7c>)
  59586. 80185f4: 4813 ldr r0, [pc, #76] @ (8018644 <tcpip_init+0x80>)
  59587. 80185f6: f010 ff89 bl 802950c <iprintf>
  59588. }
  59589. #if LWIP_TCPIP_CORE_LOCKING
  59590. if (sys_mutex_new(&lock_tcpip_core) != ERR_OK) {
  59591. 80185fa: 4813 ldr r0, [pc, #76] @ (8018648 <tcpip_init+0x84>)
  59592. 80185fc: f00d fc9e bl 8025f3c <sys_mutex_new>
  59593. 8018600: 4603 mov r3, r0
  59594. 8018602: 2b00 cmp r3, #0
  59595. 8018604: d006 beq.n 8018614 <tcpip_init+0x50>
  59596. LWIP_ASSERT("failed to create lock_tcpip_core", 0);
  59597. 8018606: 4b0d ldr r3, [pc, #52] @ (801863c <tcpip_init+0x78>)
  59598. 8018608: f240 2265 movw r2, #613 @ 0x265
  59599. 801860c: 490f ldr r1, [pc, #60] @ (801864c <tcpip_init+0x88>)
  59600. 801860e: 480d ldr r0, [pc, #52] @ (8018644 <tcpip_init+0x80>)
  59601. 8018610: f010 ff7c bl 802950c <iprintf>
  59602. }
  59603. #endif /* LWIP_TCPIP_CORE_LOCKING */
  59604. sys_thread_new(TCPIP_THREAD_NAME, tcpip_thread, NULL, TCPIP_THREAD_STACKSIZE, TCPIP_THREAD_PRIO);
  59605. 8018614: 2330 movs r3, #48 @ 0x30
  59606. 8018616: 9300 str r3, [sp, #0]
  59607. 8018618: f44f 5380 mov.w r3, #4096 @ 0x1000
  59608. 801861c: 2200 movs r2, #0
  59609. 801861e: 490c ldr r1, [pc, #48] @ (8018650 <tcpip_init+0x8c>)
  59610. 8018620: 480c ldr r0, [pc, #48] @ (8018654 <tcpip_init+0x90>)
  59611. 8018622: f00d fcbd bl 8025fa0 <sys_thread_new>
  59612. }
  59613. 8018626: bf00 nop
  59614. 8018628: 3708 adds r7, #8
  59615. 801862a: 46bd mov sp, r7
  59616. 801862c: bd80 pop {r7, pc}
  59617. 801862e: bf00 nop
  59618. 8018630: 2402348c .word 0x2402348c
  59619. 8018634: 24023490 .word 0x24023490
  59620. 8018638: 24023494 .word 0x24023494
  59621. 801863c: 0802d530 .word 0x0802d530
  59622. 8018640: 0802d5b8 .word 0x0802d5b8
  59623. 8018644: 0802d580 .word 0x0802d580
  59624. 8018648: 24023498 .word 0x24023498
  59625. 801864c: 0802d5dc .word 0x0802d5dc
  59626. 8018650: 0801835d .word 0x0801835d
  59627. 8018654: 0802d600 .word 0x0802d600
  59628. 08018658 <lwip_htons>:
  59629. * @param n u16_t in host byte order
  59630. * @return n in network byte order
  59631. */
  59632. u16_t
  59633. lwip_htons(u16_t n)
  59634. {
  59635. 8018658: b480 push {r7}
  59636. 801865a: b083 sub sp, #12
  59637. 801865c: af00 add r7, sp, #0
  59638. 801865e: 4603 mov r3, r0
  59639. 8018660: 80fb strh r3, [r7, #6]
  59640. return PP_HTONS(n);
  59641. 8018662: 88fb ldrh r3, [r7, #6]
  59642. 8018664: 021b lsls r3, r3, #8
  59643. 8018666: b21a sxth r2, r3
  59644. 8018668: 88fb ldrh r3, [r7, #6]
  59645. 801866a: 0a1b lsrs r3, r3, #8
  59646. 801866c: b29b uxth r3, r3
  59647. 801866e: b21b sxth r3, r3
  59648. 8018670: 4313 orrs r3, r2
  59649. 8018672: b21b sxth r3, r3
  59650. 8018674: b29b uxth r3, r3
  59651. }
  59652. 8018676: 4618 mov r0, r3
  59653. 8018678: 370c adds r7, #12
  59654. 801867a: 46bd mov sp, r7
  59655. 801867c: f85d 7b04 ldr.w r7, [sp], #4
  59656. 8018680: 4770 bx lr
  59657. 08018682 <lwip_htonl>:
  59658. * @param n u32_t in host byte order
  59659. * @return n in network byte order
  59660. */
  59661. u32_t
  59662. lwip_htonl(u32_t n)
  59663. {
  59664. 8018682: b480 push {r7}
  59665. 8018684: b083 sub sp, #12
  59666. 8018686: af00 add r7, sp, #0
  59667. 8018688: 6078 str r0, [r7, #4]
  59668. return PP_HTONL(n);
  59669. 801868a: 687b ldr r3, [r7, #4]
  59670. 801868c: 061a lsls r2, r3, #24
  59671. 801868e: 687b ldr r3, [r7, #4]
  59672. 8018690: 021b lsls r3, r3, #8
  59673. 8018692: f403 037f and.w r3, r3, #16711680 @ 0xff0000
  59674. 8018696: 431a orrs r2, r3
  59675. 8018698: 687b ldr r3, [r7, #4]
  59676. 801869a: 0a1b lsrs r3, r3, #8
  59677. 801869c: f403 437f and.w r3, r3, #65280 @ 0xff00
  59678. 80186a0: 431a orrs r2, r3
  59679. 80186a2: 687b ldr r3, [r7, #4]
  59680. 80186a4: 0e1b lsrs r3, r3, #24
  59681. 80186a6: 4313 orrs r3, r2
  59682. }
  59683. 80186a8: 4618 mov r0, r3
  59684. 80186aa: 370c adds r7, #12
  59685. 80186ac: 46bd mov sp, r7
  59686. 80186ae: f85d 7b04 ldr.w r7, [sp], #4
  59687. 80186b2: 4770 bx lr
  59688. 080186b4 <lwip_standard_chksum>:
  59689. * @param len length of data to be summed
  59690. * @return host order (!) lwip checksum (non-inverted Internet sum)
  59691. */
  59692. u16_t
  59693. lwip_standard_chksum(const void *dataptr, int len)
  59694. {
  59695. 80186b4: b480 push {r7}
  59696. 80186b6: b089 sub sp, #36 @ 0x24
  59697. 80186b8: af00 add r7, sp, #0
  59698. 80186ba: 6078 str r0, [r7, #4]
  59699. 80186bc: 6039 str r1, [r7, #0]
  59700. const u8_t *pb = (const u8_t *)dataptr;
  59701. 80186be: 687b ldr r3, [r7, #4]
  59702. 80186c0: 61fb str r3, [r7, #28]
  59703. const u16_t *ps;
  59704. u16_t t = 0;
  59705. 80186c2: 2300 movs r3, #0
  59706. 80186c4: 81fb strh r3, [r7, #14]
  59707. u32_t sum = 0;
  59708. 80186c6: 2300 movs r3, #0
  59709. 80186c8: 617b str r3, [r7, #20]
  59710. int odd = ((mem_ptr_t)pb & 1);
  59711. 80186ca: 69fb ldr r3, [r7, #28]
  59712. 80186cc: f003 0301 and.w r3, r3, #1
  59713. 80186d0: 613b str r3, [r7, #16]
  59714. /* Get aligned to u16_t */
  59715. if (odd && len > 0) {
  59716. 80186d2: 693b ldr r3, [r7, #16]
  59717. 80186d4: 2b00 cmp r3, #0
  59718. 80186d6: d00d beq.n 80186f4 <lwip_standard_chksum+0x40>
  59719. 80186d8: 683b ldr r3, [r7, #0]
  59720. 80186da: 2b00 cmp r3, #0
  59721. 80186dc: dd0a ble.n 80186f4 <lwip_standard_chksum+0x40>
  59722. ((u8_t *)&t)[1] = *pb++;
  59723. 80186de: 69fa ldr r2, [r7, #28]
  59724. 80186e0: 1c53 adds r3, r2, #1
  59725. 80186e2: 61fb str r3, [r7, #28]
  59726. 80186e4: f107 030e add.w r3, r7, #14
  59727. 80186e8: 3301 adds r3, #1
  59728. 80186ea: 7812 ldrb r2, [r2, #0]
  59729. 80186ec: 701a strb r2, [r3, #0]
  59730. len--;
  59731. 80186ee: 683b ldr r3, [r7, #0]
  59732. 80186f0: 3b01 subs r3, #1
  59733. 80186f2: 603b str r3, [r7, #0]
  59734. }
  59735. /* Add the bulk of the data */
  59736. ps = (const u16_t *)(const void *)pb;
  59737. 80186f4: 69fb ldr r3, [r7, #28]
  59738. 80186f6: 61bb str r3, [r7, #24]
  59739. while (len > 1) {
  59740. 80186f8: e00a b.n 8018710 <lwip_standard_chksum+0x5c>
  59741. sum += *ps++;
  59742. 80186fa: 69bb ldr r3, [r7, #24]
  59743. 80186fc: 1c9a adds r2, r3, #2
  59744. 80186fe: 61ba str r2, [r7, #24]
  59745. 8018700: 881b ldrh r3, [r3, #0]
  59746. 8018702: 461a mov r2, r3
  59747. 8018704: 697b ldr r3, [r7, #20]
  59748. 8018706: 4413 add r3, r2
  59749. 8018708: 617b str r3, [r7, #20]
  59750. len -= 2;
  59751. 801870a: 683b ldr r3, [r7, #0]
  59752. 801870c: 3b02 subs r3, #2
  59753. 801870e: 603b str r3, [r7, #0]
  59754. while (len > 1) {
  59755. 8018710: 683b ldr r3, [r7, #0]
  59756. 8018712: 2b01 cmp r3, #1
  59757. 8018714: dcf1 bgt.n 80186fa <lwip_standard_chksum+0x46>
  59758. }
  59759. /* Consume left-over byte, if any */
  59760. if (len > 0) {
  59761. 8018716: 683b ldr r3, [r7, #0]
  59762. 8018718: 2b00 cmp r3, #0
  59763. 801871a: dd04 ble.n 8018726 <lwip_standard_chksum+0x72>
  59764. ((u8_t *)&t)[0] = *(const u8_t *)ps;
  59765. 801871c: f107 030e add.w r3, r7, #14
  59766. 8018720: 69ba ldr r2, [r7, #24]
  59767. 8018722: 7812 ldrb r2, [r2, #0]
  59768. 8018724: 701a strb r2, [r3, #0]
  59769. }
  59770. /* Add end bytes */
  59771. sum += t;
  59772. 8018726: 89fb ldrh r3, [r7, #14]
  59773. 8018728: 461a mov r2, r3
  59774. 801872a: 697b ldr r3, [r7, #20]
  59775. 801872c: 4413 add r3, r2
  59776. 801872e: 617b str r3, [r7, #20]
  59777. /* Fold 32-bit sum to 16 bits
  59778. calling this twice is probably faster than if statements... */
  59779. sum = FOLD_U32T(sum);
  59780. 8018730: 697b ldr r3, [r7, #20]
  59781. 8018732: 0c1a lsrs r2, r3, #16
  59782. 8018734: 697b ldr r3, [r7, #20]
  59783. 8018736: b29b uxth r3, r3
  59784. 8018738: 4413 add r3, r2
  59785. 801873a: 617b str r3, [r7, #20]
  59786. sum = FOLD_U32T(sum);
  59787. 801873c: 697b ldr r3, [r7, #20]
  59788. 801873e: 0c1a lsrs r2, r3, #16
  59789. 8018740: 697b ldr r3, [r7, #20]
  59790. 8018742: b29b uxth r3, r3
  59791. 8018744: 4413 add r3, r2
  59792. 8018746: 617b str r3, [r7, #20]
  59793. /* Swap if alignment was odd */
  59794. if (odd) {
  59795. 8018748: 693b ldr r3, [r7, #16]
  59796. 801874a: 2b00 cmp r3, #0
  59797. 801874c: d007 beq.n 801875e <lwip_standard_chksum+0xaa>
  59798. sum = SWAP_BYTES_IN_WORD(sum);
  59799. 801874e: 697b ldr r3, [r7, #20]
  59800. 8018750: 021b lsls r3, r3, #8
  59801. 8018752: b29a uxth r2, r3
  59802. 8018754: 697b ldr r3, [r7, #20]
  59803. 8018756: 0a1b lsrs r3, r3, #8
  59804. 8018758: b2db uxtb r3, r3
  59805. 801875a: 4313 orrs r3, r2
  59806. 801875c: 617b str r3, [r7, #20]
  59807. }
  59808. return (u16_t)sum;
  59809. 801875e: 697b ldr r3, [r7, #20]
  59810. 8018760: b29b uxth r3, r3
  59811. }
  59812. 8018762: 4618 mov r0, r3
  59813. 8018764: 3724 adds r7, #36 @ 0x24
  59814. 8018766: 46bd mov sp, r7
  59815. 8018768: f85d 7b04 ldr.w r7, [sp], #4
  59816. 801876c: 4770 bx lr
  59817. 0801876e <inet_chksum>:
  59818. * @return checksum (as u16_t) to be saved directly in the protocol header
  59819. */
  59820. u16_t
  59821. inet_chksum(const void *dataptr, u16_t len)
  59822. {
  59823. 801876e: b580 push {r7, lr}
  59824. 8018770: b082 sub sp, #8
  59825. 8018772: af00 add r7, sp, #0
  59826. 8018774: 6078 str r0, [r7, #4]
  59827. 8018776: 460b mov r3, r1
  59828. 8018778: 807b strh r3, [r7, #2]
  59829. return (u16_t)~(unsigned int)LWIP_CHKSUM(dataptr, len);
  59830. 801877a: 887b ldrh r3, [r7, #2]
  59831. 801877c: 4619 mov r1, r3
  59832. 801877e: 6878 ldr r0, [r7, #4]
  59833. 8018780: f7ff ff98 bl 80186b4 <lwip_standard_chksum>
  59834. 8018784: 4603 mov r3, r0
  59835. 8018786: 43db mvns r3, r3
  59836. 8018788: b29b uxth r3, r3
  59837. }
  59838. 801878a: 4618 mov r0, r3
  59839. 801878c: 3708 adds r7, #8
  59840. 801878e: 46bd mov sp, r7
  59841. 8018790: bd80 pop {r7, pc}
  59842. 08018792 <inet_chksum_pbuf>:
  59843. * @param p pbuf chain over that the checksum should be calculated
  59844. * @return checksum (as u16_t) to be saved directly in the protocol header
  59845. */
  59846. u16_t
  59847. inet_chksum_pbuf(struct pbuf *p)
  59848. {
  59849. 8018792: b580 push {r7, lr}
  59850. 8018794: b086 sub sp, #24
  59851. 8018796: af00 add r7, sp, #0
  59852. 8018798: 6078 str r0, [r7, #4]
  59853. u32_t acc;
  59854. struct pbuf *q;
  59855. int swapped = 0;
  59856. 801879a: 2300 movs r3, #0
  59857. 801879c: 60fb str r3, [r7, #12]
  59858. acc = 0;
  59859. 801879e: 2300 movs r3, #0
  59860. 80187a0: 617b str r3, [r7, #20]
  59861. for (q = p; q != NULL; q = q->next) {
  59862. 80187a2: 687b ldr r3, [r7, #4]
  59863. 80187a4: 613b str r3, [r7, #16]
  59864. 80187a6: e02b b.n 8018800 <inet_chksum_pbuf+0x6e>
  59865. acc += LWIP_CHKSUM(q->payload, q->len);
  59866. 80187a8: 693b ldr r3, [r7, #16]
  59867. 80187aa: 685a ldr r2, [r3, #4]
  59868. 80187ac: 693b ldr r3, [r7, #16]
  59869. 80187ae: 895b ldrh r3, [r3, #10]
  59870. 80187b0: 4619 mov r1, r3
  59871. 80187b2: 4610 mov r0, r2
  59872. 80187b4: f7ff ff7e bl 80186b4 <lwip_standard_chksum>
  59873. 80187b8: 4603 mov r3, r0
  59874. 80187ba: 461a mov r2, r3
  59875. 80187bc: 697b ldr r3, [r7, #20]
  59876. 80187be: 4413 add r3, r2
  59877. 80187c0: 617b str r3, [r7, #20]
  59878. acc = FOLD_U32T(acc);
  59879. 80187c2: 697b ldr r3, [r7, #20]
  59880. 80187c4: 0c1a lsrs r2, r3, #16
  59881. 80187c6: 697b ldr r3, [r7, #20]
  59882. 80187c8: b29b uxth r3, r3
  59883. 80187ca: 4413 add r3, r2
  59884. 80187cc: 617b str r3, [r7, #20]
  59885. if (q->len % 2 != 0) {
  59886. 80187ce: 693b ldr r3, [r7, #16]
  59887. 80187d0: 895b ldrh r3, [r3, #10]
  59888. 80187d2: f003 0301 and.w r3, r3, #1
  59889. 80187d6: b29b uxth r3, r3
  59890. 80187d8: 2b00 cmp r3, #0
  59891. 80187da: d00e beq.n 80187fa <inet_chksum_pbuf+0x68>
  59892. swapped = !swapped;
  59893. 80187dc: 68fb ldr r3, [r7, #12]
  59894. 80187de: 2b00 cmp r3, #0
  59895. 80187e0: bf0c ite eq
  59896. 80187e2: 2301 moveq r3, #1
  59897. 80187e4: 2300 movne r3, #0
  59898. 80187e6: b2db uxtb r3, r3
  59899. 80187e8: 60fb str r3, [r7, #12]
  59900. acc = SWAP_BYTES_IN_WORD(acc);
  59901. 80187ea: 697b ldr r3, [r7, #20]
  59902. 80187ec: 021b lsls r3, r3, #8
  59903. 80187ee: b29a uxth r2, r3
  59904. 80187f0: 697b ldr r3, [r7, #20]
  59905. 80187f2: 0a1b lsrs r3, r3, #8
  59906. 80187f4: b2db uxtb r3, r3
  59907. 80187f6: 4313 orrs r3, r2
  59908. 80187f8: 617b str r3, [r7, #20]
  59909. for (q = p; q != NULL; q = q->next) {
  59910. 80187fa: 693b ldr r3, [r7, #16]
  59911. 80187fc: 681b ldr r3, [r3, #0]
  59912. 80187fe: 613b str r3, [r7, #16]
  59913. 8018800: 693b ldr r3, [r7, #16]
  59914. 8018802: 2b00 cmp r3, #0
  59915. 8018804: d1d0 bne.n 80187a8 <inet_chksum_pbuf+0x16>
  59916. }
  59917. }
  59918. if (swapped) {
  59919. 8018806: 68fb ldr r3, [r7, #12]
  59920. 8018808: 2b00 cmp r3, #0
  59921. 801880a: d007 beq.n 801881c <inet_chksum_pbuf+0x8a>
  59922. acc = SWAP_BYTES_IN_WORD(acc);
  59923. 801880c: 697b ldr r3, [r7, #20]
  59924. 801880e: 021b lsls r3, r3, #8
  59925. 8018810: b29a uxth r2, r3
  59926. 8018812: 697b ldr r3, [r7, #20]
  59927. 8018814: 0a1b lsrs r3, r3, #8
  59928. 8018816: b2db uxtb r3, r3
  59929. 8018818: 4313 orrs r3, r2
  59930. 801881a: 617b str r3, [r7, #20]
  59931. }
  59932. return (u16_t)~(acc & 0xffffUL);
  59933. 801881c: 697b ldr r3, [r7, #20]
  59934. 801881e: b29b uxth r3, r3
  59935. 8018820: 43db mvns r3, r3
  59936. 8018822: b29b uxth r3, r3
  59937. }
  59938. 8018824: 4618 mov r0, r3
  59939. 8018826: 3718 adds r7, #24
  59940. 8018828: 46bd mov sp, r7
  59941. 801882a: bd80 pop {r7, pc}
  59942. 0801882c <lwip_init>:
  59943. * Initialize all modules.
  59944. * Use this in NO_SYS mode. Use tcpip_init() otherwise.
  59945. */
  59946. void
  59947. lwip_init(void)
  59948. {
  59949. 801882c: b580 push {r7, lr}
  59950. 801882e: b082 sub sp, #8
  59951. 8018830: af00 add r7, sp, #0
  59952. #ifndef LWIP_SKIP_CONST_CHECK
  59953. int a = 0;
  59954. 8018832: 2300 movs r3, #0
  59955. 8018834: 607b str r3, [r7, #4]
  59956. #endif
  59957. /* Modules initialization */
  59958. stats_init();
  59959. #if !NO_SYS
  59960. sys_init();
  59961. 8018836: f00d fb75 bl 8025f24 <sys_init>
  59962. #endif /* !NO_SYS */
  59963. mem_init();
  59964. 801883a: f000 f8d3 bl 80189e4 <mem_init>
  59965. memp_init();
  59966. 801883e: f000 fc1b bl 8019078 <memp_init>
  59967. pbuf_init();
  59968. netif_init();
  59969. 8018842: f000 fd27 bl 8019294 <netif_init>
  59970. #endif /* LWIP_IPV4 */
  59971. #if LWIP_RAW
  59972. raw_init();
  59973. #endif /* LWIP_RAW */
  59974. #if LWIP_UDP
  59975. udp_init();
  59976. 8018846: f008 f8db bl 8020a00 <udp_init>
  59977. #endif /* LWIP_UDP */
  59978. #if LWIP_TCP
  59979. tcp_init();
  59980. 801884a: f001 fe91 bl 801a570 <tcp_init>
  59981. #if PPP_SUPPORT
  59982. ppp_init();
  59983. #endif
  59984. #if LWIP_TIMERS
  59985. sys_timeouts_init();
  59986. 801884e: f008 f817 bl 8020880 <sys_timeouts_init>
  59987. #endif /* LWIP_TIMERS */
  59988. }
  59989. 8018852: bf00 nop
  59990. 8018854: 3708 adds r7, #8
  59991. 8018856: 46bd mov sp, r7
  59992. 8018858: bd80 pop {r7, pc}
  59993. ...
  59994. 0801885c <ptr_to_mem>:
  59995. #define mem_overflow_check_element(mem)
  59996. #endif /* MEM_OVERFLOW_CHECK */
  59997. static struct mem *
  59998. ptr_to_mem(mem_size_t ptr)
  59999. {
  60000. 801885c: b480 push {r7}
  60001. 801885e: b083 sub sp, #12
  60002. 8018860: af00 add r7, sp, #0
  60003. 8018862: 6078 str r0, [r7, #4]
  60004. return (struct mem *)(void *)&ram[ptr];
  60005. 8018864: 4b04 ldr r3, [pc, #16] @ (8018878 <ptr_to_mem+0x1c>)
  60006. 8018866: 681a ldr r2, [r3, #0]
  60007. 8018868: 687b ldr r3, [r7, #4]
  60008. 801886a: 4413 add r3, r2
  60009. }
  60010. 801886c: 4618 mov r0, r3
  60011. 801886e: 370c adds r7, #12
  60012. 8018870: 46bd mov sp, r7
  60013. 8018872: f85d 7b04 ldr.w r7, [sp], #4
  60014. 8018876: 4770 bx lr
  60015. 8018878: 240234b4 .word 0x240234b4
  60016. 0801887c <mem_to_ptr>:
  60017. static mem_size_t
  60018. mem_to_ptr(void *mem)
  60019. {
  60020. 801887c: b480 push {r7}
  60021. 801887e: b083 sub sp, #12
  60022. 8018880: af00 add r7, sp, #0
  60023. 8018882: 6078 str r0, [r7, #4]
  60024. return (mem_size_t)((u8_t *)mem - ram);
  60025. 8018884: 4b04 ldr r3, [pc, #16] @ (8018898 <mem_to_ptr+0x1c>)
  60026. 8018886: 681b ldr r3, [r3, #0]
  60027. 8018888: 687a ldr r2, [r7, #4]
  60028. 801888a: 1ad3 subs r3, r2, r3
  60029. }
  60030. 801888c: 4618 mov r0, r3
  60031. 801888e: 370c adds r7, #12
  60032. 8018890: 46bd mov sp, r7
  60033. 8018892: f85d 7b04 ldr.w r7, [sp], #4
  60034. 8018896: 4770 bx lr
  60035. 8018898: 240234b4 .word 0x240234b4
  60036. 0801889c <plug_holes>:
  60037. * This assumes access to the heap is protected by the calling function
  60038. * already.
  60039. */
  60040. static void
  60041. plug_holes(struct mem *mem)
  60042. {
  60043. 801889c: b590 push {r4, r7, lr}
  60044. 801889e: b085 sub sp, #20
  60045. 80188a0: af00 add r7, sp, #0
  60046. 80188a2: 6078 str r0, [r7, #4]
  60047. struct mem *nmem;
  60048. struct mem *pmem;
  60049. LWIP_ASSERT("plug_holes: mem >= ram", (u8_t *)mem >= ram);
  60050. 80188a4: 4b45 ldr r3, [pc, #276] @ (80189bc <plug_holes+0x120>)
  60051. 80188a6: 681b ldr r3, [r3, #0]
  60052. 80188a8: 687a ldr r2, [r7, #4]
  60053. 80188aa: 429a cmp r2, r3
  60054. 80188ac: d206 bcs.n 80188bc <plug_holes+0x20>
  60055. 80188ae: 4b44 ldr r3, [pc, #272] @ (80189c0 <plug_holes+0x124>)
  60056. 80188b0: f240 12df movw r2, #479 @ 0x1df
  60057. 80188b4: 4943 ldr r1, [pc, #268] @ (80189c4 <plug_holes+0x128>)
  60058. 80188b6: 4844 ldr r0, [pc, #272] @ (80189c8 <plug_holes+0x12c>)
  60059. 80188b8: f010 fe28 bl 802950c <iprintf>
  60060. LWIP_ASSERT("plug_holes: mem < ram_end", (u8_t *)mem < (u8_t *)ram_end);
  60061. 80188bc: 4b43 ldr r3, [pc, #268] @ (80189cc <plug_holes+0x130>)
  60062. 80188be: 681b ldr r3, [r3, #0]
  60063. 80188c0: 687a ldr r2, [r7, #4]
  60064. 80188c2: 429a cmp r2, r3
  60065. 80188c4: d306 bcc.n 80188d4 <plug_holes+0x38>
  60066. 80188c6: 4b3e ldr r3, [pc, #248] @ (80189c0 <plug_holes+0x124>)
  60067. 80188c8: f44f 72f0 mov.w r2, #480 @ 0x1e0
  60068. 80188cc: 4940 ldr r1, [pc, #256] @ (80189d0 <plug_holes+0x134>)
  60069. 80188ce: 483e ldr r0, [pc, #248] @ (80189c8 <plug_holes+0x12c>)
  60070. 80188d0: f010 fe1c bl 802950c <iprintf>
  60071. LWIP_ASSERT("plug_holes: mem->used == 0", mem->used == 0);
  60072. 80188d4: 687b ldr r3, [r7, #4]
  60073. 80188d6: 7a1b ldrb r3, [r3, #8]
  60074. 80188d8: 2b00 cmp r3, #0
  60075. 80188da: d006 beq.n 80188ea <plug_holes+0x4e>
  60076. 80188dc: 4b38 ldr r3, [pc, #224] @ (80189c0 <plug_holes+0x124>)
  60077. 80188de: f240 12e1 movw r2, #481 @ 0x1e1
  60078. 80188e2: 493c ldr r1, [pc, #240] @ (80189d4 <plug_holes+0x138>)
  60079. 80188e4: 4838 ldr r0, [pc, #224] @ (80189c8 <plug_holes+0x12c>)
  60080. 80188e6: f010 fe11 bl 802950c <iprintf>
  60081. /* plug hole forward */
  60082. LWIP_ASSERT("plug_holes: mem->next <= MEM_SIZE_ALIGNED", mem->next <= MEM_SIZE_ALIGNED);
  60083. 80188ea: 687b ldr r3, [r7, #4]
  60084. 80188ec: 681b ldr r3, [r3, #0]
  60085. 80188ee: 4a3a ldr r2, [pc, #232] @ (80189d8 <plug_holes+0x13c>)
  60086. 80188f0: 4293 cmp r3, r2
  60087. 80188f2: d906 bls.n 8018902 <plug_holes+0x66>
  60088. 80188f4: 4b32 ldr r3, [pc, #200] @ (80189c0 <plug_holes+0x124>)
  60089. 80188f6: f44f 72f2 mov.w r2, #484 @ 0x1e4
  60090. 80188fa: 4938 ldr r1, [pc, #224] @ (80189dc <plug_holes+0x140>)
  60091. 80188fc: 4832 ldr r0, [pc, #200] @ (80189c8 <plug_holes+0x12c>)
  60092. 80188fe: f010 fe05 bl 802950c <iprintf>
  60093. nmem = ptr_to_mem(mem->next);
  60094. 8018902: 687b ldr r3, [r7, #4]
  60095. 8018904: 681b ldr r3, [r3, #0]
  60096. 8018906: 4618 mov r0, r3
  60097. 8018908: f7ff ffa8 bl 801885c <ptr_to_mem>
  60098. 801890c: 60f8 str r0, [r7, #12]
  60099. if (mem != nmem && nmem->used == 0 && (u8_t *)nmem != (u8_t *)ram_end) {
  60100. 801890e: 687a ldr r2, [r7, #4]
  60101. 8018910: 68fb ldr r3, [r7, #12]
  60102. 8018912: 429a cmp r2, r3
  60103. 8018914: d024 beq.n 8018960 <plug_holes+0xc4>
  60104. 8018916: 68fb ldr r3, [r7, #12]
  60105. 8018918: 7a1b ldrb r3, [r3, #8]
  60106. 801891a: 2b00 cmp r3, #0
  60107. 801891c: d120 bne.n 8018960 <plug_holes+0xc4>
  60108. 801891e: 4b2b ldr r3, [pc, #172] @ (80189cc <plug_holes+0x130>)
  60109. 8018920: 681b ldr r3, [r3, #0]
  60110. 8018922: 68fa ldr r2, [r7, #12]
  60111. 8018924: 429a cmp r2, r3
  60112. 8018926: d01b beq.n 8018960 <plug_holes+0xc4>
  60113. /* if mem->next is unused and not end of ram, combine mem and mem->next */
  60114. if (lfree == nmem) {
  60115. 8018928: 4b2d ldr r3, [pc, #180] @ (80189e0 <plug_holes+0x144>)
  60116. 801892a: 681b ldr r3, [r3, #0]
  60117. 801892c: 68fa ldr r2, [r7, #12]
  60118. 801892e: 429a cmp r2, r3
  60119. 8018930: d102 bne.n 8018938 <plug_holes+0x9c>
  60120. lfree = mem;
  60121. 8018932: 4a2b ldr r2, [pc, #172] @ (80189e0 <plug_holes+0x144>)
  60122. 8018934: 687b ldr r3, [r7, #4]
  60123. 8018936: 6013 str r3, [r2, #0]
  60124. }
  60125. mem->next = nmem->next;
  60126. 8018938: 68fb ldr r3, [r7, #12]
  60127. 801893a: 681a ldr r2, [r3, #0]
  60128. 801893c: 687b ldr r3, [r7, #4]
  60129. 801893e: 601a str r2, [r3, #0]
  60130. if (nmem->next != MEM_SIZE_ALIGNED) {
  60131. 8018940: 68fb ldr r3, [r7, #12]
  60132. 8018942: 681b ldr r3, [r3, #0]
  60133. 8018944: 4a24 ldr r2, [pc, #144] @ (80189d8 <plug_holes+0x13c>)
  60134. 8018946: 4293 cmp r3, r2
  60135. 8018948: d00a beq.n 8018960 <plug_holes+0xc4>
  60136. ptr_to_mem(nmem->next)->prev = mem_to_ptr(mem);
  60137. 801894a: 68fb ldr r3, [r7, #12]
  60138. 801894c: 681b ldr r3, [r3, #0]
  60139. 801894e: 4618 mov r0, r3
  60140. 8018950: f7ff ff84 bl 801885c <ptr_to_mem>
  60141. 8018954: 4604 mov r4, r0
  60142. 8018956: 6878 ldr r0, [r7, #4]
  60143. 8018958: f7ff ff90 bl 801887c <mem_to_ptr>
  60144. 801895c: 4603 mov r3, r0
  60145. 801895e: 6063 str r3, [r4, #4]
  60146. }
  60147. }
  60148. /* plug hole backward */
  60149. pmem = ptr_to_mem(mem->prev);
  60150. 8018960: 687b ldr r3, [r7, #4]
  60151. 8018962: 685b ldr r3, [r3, #4]
  60152. 8018964: 4618 mov r0, r3
  60153. 8018966: f7ff ff79 bl 801885c <ptr_to_mem>
  60154. 801896a: 60b8 str r0, [r7, #8]
  60155. if (pmem != mem && pmem->used == 0) {
  60156. 801896c: 68ba ldr r2, [r7, #8]
  60157. 801896e: 687b ldr r3, [r7, #4]
  60158. 8018970: 429a cmp r2, r3
  60159. 8018972: d01f beq.n 80189b4 <plug_holes+0x118>
  60160. 8018974: 68bb ldr r3, [r7, #8]
  60161. 8018976: 7a1b ldrb r3, [r3, #8]
  60162. 8018978: 2b00 cmp r3, #0
  60163. 801897a: d11b bne.n 80189b4 <plug_holes+0x118>
  60164. /* if mem->prev is unused, combine mem and mem->prev */
  60165. if (lfree == mem) {
  60166. 801897c: 4b18 ldr r3, [pc, #96] @ (80189e0 <plug_holes+0x144>)
  60167. 801897e: 681b ldr r3, [r3, #0]
  60168. 8018980: 687a ldr r2, [r7, #4]
  60169. 8018982: 429a cmp r2, r3
  60170. 8018984: d102 bne.n 801898c <plug_holes+0xf0>
  60171. lfree = pmem;
  60172. 8018986: 4a16 ldr r2, [pc, #88] @ (80189e0 <plug_holes+0x144>)
  60173. 8018988: 68bb ldr r3, [r7, #8]
  60174. 801898a: 6013 str r3, [r2, #0]
  60175. }
  60176. pmem->next = mem->next;
  60177. 801898c: 687b ldr r3, [r7, #4]
  60178. 801898e: 681a ldr r2, [r3, #0]
  60179. 8018990: 68bb ldr r3, [r7, #8]
  60180. 8018992: 601a str r2, [r3, #0]
  60181. if (mem->next != MEM_SIZE_ALIGNED) {
  60182. 8018994: 687b ldr r3, [r7, #4]
  60183. 8018996: 681b ldr r3, [r3, #0]
  60184. 8018998: 4a0f ldr r2, [pc, #60] @ (80189d8 <plug_holes+0x13c>)
  60185. 801899a: 4293 cmp r3, r2
  60186. 801899c: d00a beq.n 80189b4 <plug_holes+0x118>
  60187. ptr_to_mem(mem->next)->prev = mem_to_ptr(pmem);
  60188. 801899e: 687b ldr r3, [r7, #4]
  60189. 80189a0: 681b ldr r3, [r3, #0]
  60190. 80189a2: 4618 mov r0, r3
  60191. 80189a4: f7ff ff5a bl 801885c <ptr_to_mem>
  60192. 80189a8: 4604 mov r4, r0
  60193. 80189aa: 68b8 ldr r0, [r7, #8]
  60194. 80189ac: f7ff ff66 bl 801887c <mem_to_ptr>
  60195. 80189b0: 4603 mov r3, r0
  60196. 80189b2: 6063 str r3, [r4, #4]
  60197. }
  60198. }
  60199. }
  60200. 80189b4: bf00 nop
  60201. 80189b6: 3714 adds r7, #20
  60202. 80189b8: 46bd mov sp, r7
  60203. 80189ba: bd90 pop {r4, r7, pc}
  60204. 80189bc: 240234b4 .word 0x240234b4
  60205. 80189c0: 0802d610 .word 0x0802d610
  60206. 80189c4: 0802d640 .word 0x0802d640
  60207. 80189c8: 0802d658 .word 0x0802d658
  60208. 80189cc: 240234b8 .word 0x240234b8
  60209. 80189d0: 0802d680 .word 0x0802d680
  60210. 80189d4: 0802d69c .word 0x0802d69c
  60211. 80189d8: 0001ffe8 .word 0x0001ffe8
  60212. 80189dc: 0802d6b8 .word 0x0802d6b8
  60213. 80189e0: 240234c0 .word 0x240234c0
  60214. 080189e4 <mem_init>:
  60215. /**
  60216. * Zero the heap and initialize start, end and lowest-free
  60217. */
  60218. void
  60219. mem_init(void)
  60220. {
  60221. 80189e4: b580 push {r7, lr}
  60222. 80189e6: b082 sub sp, #8
  60223. 80189e8: af00 add r7, sp, #0
  60224. LWIP_ASSERT("Sanity check alignment",
  60225. (SIZEOF_STRUCT_MEM & (MEM_ALIGNMENT - 1)) == 0);
  60226. /* align the heap */
  60227. ram = (u8_t *)LWIP_MEM_ALIGN(LWIP_RAM_HEAP_POINTER);
  60228. 80189ea: 4b1b ldr r3, [pc, #108] @ (8018a58 <mem_init+0x74>)
  60229. 80189ec: 4a1b ldr r2, [pc, #108] @ (8018a5c <mem_init+0x78>)
  60230. 80189ee: 601a str r2, [r3, #0]
  60231. /* initialize the start of the heap */
  60232. mem = (struct mem *)(void *)ram;
  60233. 80189f0: 4b19 ldr r3, [pc, #100] @ (8018a58 <mem_init+0x74>)
  60234. 80189f2: 681b ldr r3, [r3, #0]
  60235. 80189f4: 607b str r3, [r7, #4]
  60236. mem->next = MEM_SIZE_ALIGNED;
  60237. 80189f6: 687b ldr r3, [r7, #4]
  60238. 80189f8: 4a19 ldr r2, [pc, #100] @ (8018a60 <mem_init+0x7c>)
  60239. 80189fa: 601a str r2, [r3, #0]
  60240. mem->prev = 0;
  60241. 80189fc: 687b ldr r3, [r7, #4]
  60242. 80189fe: 2200 movs r2, #0
  60243. 8018a00: 605a str r2, [r3, #4]
  60244. mem->used = 0;
  60245. 8018a02: 687b ldr r3, [r7, #4]
  60246. 8018a04: 2200 movs r2, #0
  60247. 8018a06: 721a strb r2, [r3, #8]
  60248. /* initialize the end of the heap */
  60249. ram_end = ptr_to_mem(MEM_SIZE_ALIGNED);
  60250. 8018a08: 4815 ldr r0, [pc, #84] @ (8018a60 <mem_init+0x7c>)
  60251. 8018a0a: f7ff ff27 bl 801885c <ptr_to_mem>
  60252. 8018a0e: 4603 mov r3, r0
  60253. 8018a10: 4a14 ldr r2, [pc, #80] @ (8018a64 <mem_init+0x80>)
  60254. 8018a12: 6013 str r3, [r2, #0]
  60255. ram_end->used = 1;
  60256. 8018a14: 4b13 ldr r3, [pc, #76] @ (8018a64 <mem_init+0x80>)
  60257. 8018a16: 681b ldr r3, [r3, #0]
  60258. 8018a18: 2201 movs r2, #1
  60259. 8018a1a: 721a strb r2, [r3, #8]
  60260. ram_end->next = MEM_SIZE_ALIGNED;
  60261. 8018a1c: 4b11 ldr r3, [pc, #68] @ (8018a64 <mem_init+0x80>)
  60262. 8018a1e: 681b ldr r3, [r3, #0]
  60263. 8018a20: 4a0f ldr r2, [pc, #60] @ (8018a60 <mem_init+0x7c>)
  60264. 8018a22: 601a str r2, [r3, #0]
  60265. ram_end->prev = MEM_SIZE_ALIGNED;
  60266. 8018a24: 4b0f ldr r3, [pc, #60] @ (8018a64 <mem_init+0x80>)
  60267. 8018a26: 681b ldr r3, [r3, #0]
  60268. 8018a28: 4a0d ldr r2, [pc, #52] @ (8018a60 <mem_init+0x7c>)
  60269. 8018a2a: 605a str r2, [r3, #4]
  60270. MEM_SANITY();
  60271. /* initialize the lowest-free pointer to the start of the heap */
  60272. lfree = (struct mem *)(void *)ram;
  60273. 8018a2c: 4b0a ldr r3, [pc, #40] @ (8018a58 <mem_init+0x74>)
  60274. 8018a2e: 681b ldr r3, [r3, #0]
  60275. 8018a30: 4a0d ldr r2, [pc, #52] @ (8018a68 <mem_init+0x84>)
  60276. 8018a32: 6013 str r3, [r2, #0]
  60277. MEM_STATS_AVAIL(avail, MEM_SIZE_ALIGNED);
  60278. if (sys_mutex_new(&mem_mutex) != ERR_OK) {
  60279. 8018a34: 480d ldr r0, [pc, #52] @ (8018a6c <mem_init+0x88>)
  60280. 8018a36: f00d fa81 bl 8025f3c <sys_mutex_new>
  60281. 8018a3a: 4603 mov r3, r0
  60282. 8018a3c: 2b00 cmp r3, #0
  60283. 8018a3e: d006 beq.n 8018a4e <mem_init+0x6a>
  60284. LWIP_ASSERT("failed to create mem_mutex", 0);
  60285. 8018a40: 4b0b ldr r3, [pc, #44] @ (8018a70 <mem_init+0x8c>)
  60286. 8018a42: f240 221f movw r2, #543 @ 0x21f
  60287. 8018a46: 490b ldr r1, [pc, #44] @ (8018a74 <mem_init+0x90>)
  60288. 8018a48: 480b ldr r0, [pc, #44] @ (8018a78 <mem_init+0x94>)
  60289. 8018a4a: f010 fd5f bl 802950c <iprintf>
  60290. }
  60291. }
  60292. 8018a4e: bf00 nop
  60293. 8018a50: 3708 adds r7, #8
  60294. 8018a52: 46bd mov sp, r7
  60295. 8018a54: bd80 pop {r7, pc}
  60296. 8018a56: bf00 nop
  60297. 8018a58: 240234b4 .word 0x240234b4
  60298. 8018a5c: 24020000 .word 0x24020000
  60299. 8018a60: 0001ffe8 .word 0x0001ffe8
  60300. 8018a64: 240234b8 .word 0x240234b8
  60301. 8018a68: 240234c0 .word 0x240234c0
  60302. 8018a6c: 240234bc .word 0x240234bc
  60303. 8018a70: 0802d610 .word 0x0802d610
  60304. 8018a74: 0802d6e4 .word 0x0802d6e4
  60305. 8018a78: 0802d658 .word 0x0802d658
  60306. 08018a7c <mem_link_valid>:
  60307. /* Check if a struct mem is correctly linked.
  60308. * If not, double-free is a possible reason.
  60309. */
  60310. static int
  60311. mem_link_valid(struct mem *mem)
  60312. {
  60313. 8018a7c: b580 push {r7, lr}
  60314. 8018a7e: b086 sub sp, #24
  60315. 8018a80: af00 add r7, sp, #0
  60316. 8018a82: 6078 str r0, [r7, #4]
  60317. struct mem *nmem, *pmem;
  60318. mem_size_t rmem_idx;
  60319. rmem_idx = mem_to_ptr(mem);
  60320. 8018a84: 6878 ldr r0, [r7, #4]
  60321. 8018a86: f7ff fef9 bl 801887c <mem_to_ptr>
  60322. 8018a8a: 6178 str r0, [r7, #20]
  60323. nmem = ptr_to_mem(mem->next);
  60324. 8018a8c: 687b ldr r3, [r7, #4]
  60325. 8018a8e: 681b ldr r3, [r3, #0]
  60326. 8018a90: 4618 mov r0, r3
  60327. 8018a92: f7ff fee3 bl 801885c <ptr_to_mem>
  60328. 8018a96: 6138 str r0, [r7, #16]
  60329. pmem = ptr_to_mem(mem->prev);
  60330. 8018a98: 687b ldr r3, [r7, #4]
  60331. 8018a9a: 685b ldr r3, [r3, #4]
  60332. 8018a9c: 4618 mov r0, r3
  60333. 8018a9e: f7ff fedd bl 801885c <ptr_to_mem>
  60334. 8018aa2: 60f8 str r0, [r7, #12]
  60335. if ((mem->next > MEM_SIZE_ALIGNED) || (mem->prev > MEM_SIZE_ALIGNED) ||
  60336. 8018aa4: 687b ldr r3, [r7, #4]
  60337. 8018aa6: 681b ldr r3, [r3, #0]
  60338. 8018aa8: 4a11 ldr r2, [pc, #68] @ (8018af0 <mem_link_valid+0x74>)
  60339. 8018aaa: 4293 cmp r3, r2
  60340. 8018aac: d818 bhi.n 8018ae0 <mem_link_valid+0x64>
  60341. 8018aae: 687b ldr r3, [r7, #4]
  60342. 8018ab0: 685b ldr r3, [r3, #4]
  60343. 8018ab2: 4a0f ldr r2, [pc, #60] @ (8018af0 <mem_link_valid+0x74>)
  60344. 8018ab4: 4293 cmp r3, r2
  60345. 8018ab6: d813 bhi.n 8018ae0 <mem_link_valid+0x64>
  60346. ((mem->prev != rmem_idx) && (pmem->next != rmem_idx)) ||
  60347. 8018ab8: 687b ldr r3, [r7, #4]
  60348. 8018aba: 685b ldr r3, [r3, #4]
  60349. if ((mem->next > MEM_SIZE_ALIGNED) || (mem->prev > MEM_SIZE_ALIGNED) ||
  60350. 8018abc: 697a ldr r2, [r7, #20]
  60351. 8018abe: 429a cmp r2, r3
  60352. 8018ac0: d004 beq.n 8018acc <mem_link_valid+0x50>
  60353. ((mem->prev != rmem_idx) && (pmem->next != rmem_idx)) ||
  60354. 8018ac2: 68fb ldr r3, [r7, #12]
  60355. 8018ac4: 681b ldr r3, [r3, #0]
  60356. 8018ac6: 697a ldr r2, [r7, #20]
  60357. 8018ac8: 429a cmp r2, r3
  60358. 8018aca: d109 bne.n 8018ae0 <mem_link_valid+0x64>
  60359. ((nmem != ram_end) && (nmem->prev != rmem_idx))) {
  60360. 8018acc: 4b09 ldr r3, [pc, #36] @ (8018af4 <mem_link_valid+0x78>)
  60361. 8018ace: 681b ldr r3, [r3, #0]
  60362. ((mem->prev != rmem_idx) && (pmem->next != rmem_idx)) ||
  60363. 8018ad0: 693a ldr r2, [r7, #16]
  60364. 8018ad2: 429a cmp r2, r3
  60365. 8018ad4: d006 beq.n 8018ae4 <mem_link_valid+0x68>
  60366. ((nmem != ram_end) && (nmem->prev != rmem_idx))) {
  60367. 8018ad6: 693b ldr r3, [r7, #16]
  60368. 8018ad8: 685b ldr r3, [r3, #4]
  60369. 8018ada: 697a ldr r2, [r7, #20]
  60370. 8018adc: 429a cmp r2, r3
  60371. 8018ade: d001 beq.n 8018ae4 <mem_link_valid+0x68>
  60372. return 0;
  60373. 8018ae0: 2300 movs r3, #0
  60374. 8018ae2: e000 b.n 8018ae6 <mem_link_valid+0x6a>
  60375. }
  60376. return 1;
  60377. 8018ae4: 2301 movs r3, #1
  60378. }
  60379. 8018ae6: 4618 mov r0, r3
  60380. 8018ae8: 3718 adds r7, #24
  60381. 8018aea: 46bd mov sp, r7
  60382. 8018aec: bd80 pop {r7, pc}
  60383. 8018aee: bf00 nop
  60384. 8018af0: 0001ffe8 .word 0x0001ffe8
  60385. 8018af4: 240234b8 .word 0x240234b8
  60386. 08018af8 <mem_free>:
  60387. * @param rmem is the data portion of a struct mem as returned by a previous
  60388. * call to mem_malloc()
  60389. */
  60390. void
  60391. mem_free(void *rmem)
  60392. {
  60393. 8018af8: b580 push {r7, lr}
  60394. 8018afa: b088 sub sp, #32
  60395. 8018afc: af00 add r7, sp, #0
  60396. 8018afe: 6078 str r0, [r7, #4]
  60397. struct mem *mem;
  60398. LWIP_MEM_FREE_DECL_PROTECT();
  60399. if (rmem == NULL) {
  60400. 8018b00: 687b ldr r3, [r7, #4]
  60401. 8018b02: 2b00 cmp r3, #0
  60402. 8018b04: d070 beq.n 8018be8 <mem_free+0xf0>
  60403. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("mem_free(p == NULL) was called.\n"));
  60404. return;
  60405. }
  60406. if ((((mem_ptr_t)rmem) & (MEM_ALIGNMENT - 1)) != 0) {
  60407. 8018b06: 687b ldr r3, [r7, #4]
  60408. 8018b08: f003 0303 and.w r3, r3, #3
  60409. 8018b0c: 2b00 cmp r3, #0
  60410. 8018b0e: d00d beq.n 8018b2c <mem_free+0x34>
  60411. LWIP_MEM_ILLEGAL_FREE("mem_free: sanity check alignment");
  60412. 8018b10: 4b37 ldr r3, [pc, #220] @ (8018bf0 <mem_free+0xf8>)
  60413. 8018b12: f240 2273 movw r2, #627 @ 0x273
  60414. 8018b16: 4937 ldr r1, [pc, #220] @ (8018bf4 <mem_free+0xfc>)
  60415. 8018b18: 4837 ldr r0, [pc, #220] @ (8018bf8 <mem_free+0x100>)
  60416. 8018b1a: f010 fcf7 bl 802950c <iprintf>
  60417. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: sanity check alignment\n"));
  60418. /* protect mem stats from concurrent access */
  60419. MEM_STATS_INC_LOCKED(illegal);
  60420. 8018b1e: f00d fa5f bl 8025fe0 <sys_arch_protect>
  60421. 8018b22: 60f8 str r0, [r7, #12]
  60422. 8018b24: 68f8 ldr r0, [r7, #12]
  60423. 8018b26: f00d fa69 bl 8025ffc <sys_arch_unprotect>
  60424. return;
  60425. 8018b2a: e05e b.n 8018bea <mem_free+0xf2>
  60426. }
  60427. /* Get the corresponding struct mem: */
  60428. /* cast through void* to get rid of alignment warnings */
  60429. mem = (struct mem *)(void *)((u8_t *)rmem - (SIZEOF_STRUCT_MEM + MEM_SANITY_OFFSET));
  60430. 8018b2c: 687b ldr r3, [r7, #4]
  60431. 8018b2e: 3b0c subs r3, #12
  60432. 8018b30: 61fb str r3, [r7, #28]
  60433. if ((u8_t *)mem < ram || (u8_t *)rmem + MIN_SIZE_ALIGNED > (u8_t *)ram_end) {
  60434. 8018b32: 4b32 ldr r3, [pc, #200] @ (8018bfc <mem_free+0x104>)
  60435. 8018b34: 681b ldr r3, [r3, #0]
  60436. 8018b36: 69fa ldr r2, [r7, #28]
  60437. 8018b38: 429a cmp r2, r3
  60438. 8018b3a: d306 bcc.n 8018b4a <mem_free+0x52>
  60439. 8018b3c: 687b ldr r3, [r7, #4]
  60440. 8018b3e: f103 020c add.w r2, r3, #12
  60441. 8018b42: 4b2f ldr r3, [pc, #188] @ (8018c00 <mem_free+0x108>)
  60442. 8018b44: 681b ldr r3, [r3, #0]
  60443. 8018b46: 429a cmp r2, r3
  60444. 8018b48: d90d bls.n 8018b66 <mem_free+0x6e>
  60445. LWIP_MEM_ILLEGAL_FREE("mem_free: illegal memory");
  60446. 8018b4a: 4b29 ldr r3, [pc, #164] @ (8018bf0 <mem_free+0xf8>)
  60447. 8018b4c: f240 227f movw r2, #639 @ 0x27f
  60448. 8018b50: 492c ldr r1, [pc, #176] @ (8018c04 <mem_free+0x10c>)
  60449. 8018b52: 4829 ldr r0, [pc, #164] @ (8018bf8 <mem_free+0x100>)
  60450. 8018b54: f010 fcda bl 802950c <iprintf>
  60451. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: illegal memory\n"));
  60452. /* protect mem stats from concurrent access */
  60453. MEM_STATS_INC_LOCKED(illegal);
  60454. 8018b58: f00d fa42 bl 8025fe0 <sys_arch_protect>
  60455. 8018b5c: 6138 str r0, [r7, #16]
  60456. 8018b5e: 6938 ldr r0, [r7, #16]
  60457. 8018b60: f00d fa4c bl 8025ffc <sys_arch_unprotect>
  60458. return;
  60459. 8018b64: e041 b.n 8018bea <mem_free+0xf2>
  60460. }
  60461. #if MEM_OVERFLOW_CHECK
  60462. mem_overflow_check_element(mem);
  60463. #endif
  60464. /* protect the heap from concurrent access */
  60465. LWIP_MEM_FREE_PROTECT();
  60466. 8018b66: 4828 ldr r0, [pc, #160] @ (8018c08 <mem_free+0x110>)
  60467. 8018b68: f00d f9fe bl 8025f68 <sys_mutex_lock>
  60468. /* mem has to be in a used state */
  60469. if (!mem->used) {
  60470. 8018b6c: 69fb ldr r3, [r7, #28]
  60471. 8018b6e: 7a1b ldrb r3, [r3, #8]
  60472. 8018b70: 2b00 cmp r3, #0
  60473. 8018b72: d110 bne.n 8018b96 <mem_free+0x9e>
  60474. LWIP_MEM_ILLEGAL_FREE("mem_free: illegal memory: double free");
  60475. 8018b74: 4b1e ldr r3, [pc, #120] @ (8018bf0 <mem_free+0xf8>)
  60476. 8018b76: f44f 7223 mov.w r2, #652 @ 0x28c
  60477. 8018b7a: 4924 ldr r1, [pc, #144] @ (8018c0c <mem_free+0x114>)
  60478. 8018b7c: 481e ldr r0, [pc, #120] @ (8018bf8 <mem_free+0x100>)
  60479. 8018b7e: f010 fcc5 bl 802950c <iprintf>
  60480. LWIP_MEM_FREE_UNPROTECT();
  60481. 8018b82: 4821 ldr r0, [pc, #132] @ (8018c08 <mem_free+0x110>)
  60482. 8018b84: f00d f9ff bl 8025f86 <sys_mutex_unlock>
  60483. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: illegal memory: double free?\n"));
  60484. /* protect mem stats from concurrent access */
  60485. MEM_STATS_INC_LOCKED(illegal);
  60486. 8018b88: f00d fa2a bl 8025fe0 <sys_arch_protect>
  60487. 8018b8c: 6178 str r0, [r7, #20]
  60488. 8018b8e: 6978 ldr r0, [r7, #20]
  60489. 8018b90: f00d fa34 bl 8025ffc <sys_arch_unprotect>
  60490. return;
  60491. 8018b94: e029 b.n 8018bea <mem_free+0xf2>
  60492. }
  60493. if (!mem_link_valid(mem)) {
  60494. 8018b96: 69f8 ldr r0, [r7, #28]
  60495. 8018b98: f7ff ff70 bl 8018a7c <mem_link_valid>
  60496. 8018b9c: 4603 mov r3, r0
  60497. 8018b9e: 2b00 cmp r3, #0
  60498. 8018ba0: d110 bne.n 8018bc4 <mem_free+0xcc>
  60499. LWIP_MEM_ILLEGAL_FREE("mem_free: illegal memory: non-linked: double free");
  60500. 8018ba2: 4b13 ldr r3, [pc, #76] @ (8018bf0 <mem_free+0xf8>)
  60501. 8018ba4: f240 2295 movw r2, #661 @ 0x295
  60502. 8018ba8: 4919 ldr r1, [pc, #100] @ (8018c10 <mem_free+0x118>)
  60503. 8018baa: 4813 ldr r0, [pc, #76] @ (8018bf8 <mem_free+0x100>)
  60504. 8018bac: f010 fcae bl 802950c <iprintf>
  60505. LWIP_MEM_FREE_UNPROTECT();
  60506. 8018bb0: 4815 ldr r0, [pc, #84] @ (8018c08 <mem_free+0x110>)
  60507. 8018bb2: f00d f9e8 bl 8025f86 <sys_mutex_unlock>
  60508. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: illegal memory: non-linked: double free?\n"));
  60509. /* protect mem stats from concurrent access */
  60510. MEM_STATS_INC_LOCKED(illegal);
  60511. 8018bb6: f00d fa13 bl 8025fe0 <sys_arch_protect>
  60512. 8018bba: 61b8 str r0, [r7, #24]
  60513. 8018bbc: 69b8 ldr r0, [r7, #24]
  60514. 8018bbe: f00d fa1d bl 8025ffc <sys_arch_unprotect>
  60515. return;
  60516. 8018bc2: e012 b.n 8018bea <mem_free+0xf2>
  60517. }
  60518. /* mem is now unused. */
  60519. mem->used = 0;
  60520. 8018bc4: 69fb ldr r3, [r7, #28]
  60521. 8018bc6: 2200 movs r2, #0
  60522. 8018bc8: 721a strb r2, [r3, #8]
  60523. if (mem < lfree) {
  60524. 8018bca: 4b12 ldr r3, [pc, #72] @ (8018c14 <mem_free+0x11c>)
  60525. 8018bcc: 681b ldr r3, [r3, #0]
  60526. 8018bce: 69fa ldr r2, [r7, #28]
  60527. 8018bd0: 429a cmp r2, r3
  60528. 8018bd2: d202 bcs.n 8018bda <mem_free+0xe2>
  60529. /* the newly freed struct is now the lowest */
  60530. lfree = mem;
  60531. 8018bd4: 4a0f ldr r2, [pc, #60] @ (8018c14 <mem_free+0x11c>)
  60532. 8018bd6: 69fb ldr r3, [r7, #28]
  60533. 8018bd8: 6013 str r3, [r2, #0]
  60534. }
  60535. MEM_STATS_DEC_USED(used, mem->next - (mem_size_t)(((u8_t *)mem - ram)));
  60536. /* finally, see if prev or next are free also */
  60537. plug_holes(mem);
  60538. 8018bda: 69f8 ldr r0, [r7, #28]
  60539. 8018bdc: f7ff fe5e bl 801889c <plug_holes>
  60540. MEM_SANITY();
  60541. #if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT
  60542. mem_free_count = 1;
  60543. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  60544. LWIP_MEM_FREE_UNPROTECT();
  60545. 8018be0: 4809 ldr r0, [pc, #36] @ (8018c08 <mem_free+0x110>)
  60546. 8018be2: f00d f9d0 bl 8025f86 <sys_mutex_unlock>
  60547. 8018be6: e000 b.n 8018bea <mem_free+0xf2>
  60548. return;
  60549. 8018be8: bf00 nop
  60550. }
  60551. 8018bea: 3720 adds r7, #32
  60552. 8018bec: 46bd mov sp, r7
  60553. 8018bee: bd80 pop {r7, pc}
  60554. 8018bf0: 0802d610 .word 0x0802d610
  60555. 8018bf4: 0802d700 .word 0x0802d700
  60556. 8018bf8: 0802d658 .word 0x0802d658
  60557. 8018bfc: 240234b4 .word 0x240234b4
  60558. 8018c00: 240234b8 .word 0x240234b8
  60559. 8018c04: 0802d724 .word 0x0802d724
  60560. 8018c08: 240234bc .word 0x240234bc
  60561. 8018c0c: 0802d740 .word 0x0802d740
  60562. 8018c10: 0802d768 .word 0x0802d768
  60563. 8018c14: 240234c0 .word 0x240234c0
  60564. 08018c18 <mem_trim>:
  60565. * or NULL if newsize is > old size, in which case rmem is NOT touched
  60566. * or freed!
  60567. */
  60568. void *
  60569. mem_trim(void *rmem, mem_size_t new_size)
  60570. {
  60571. 8018c18: b580 push {r7, lr}
  60572. 8018c1a: b08a sub sp, #40 @ 0x28
  60573. 8018c1c: af00 add r7, sp, #0
  60574. 8018c1e: 6078 str r0, [r7, #4]
  60575. 8018c20: 6039 str r1, [r7, #0]
  60576. /* use the FREE_PROTECT here: it protects with sem OR SYS_ARCH_PROTECT */
  60577. LWIP_MEM_FREE_DECL_PROTECT();
  60578. /* Expand the size of the allocated memory region so that we can
  60579. adjust for alignment. */
  60580. newsize = (mem_size_t)LWIP_MEM_ALIGN_SIZE(new_size);
  60581. 8018c22: 683b ldr r3, [r7, #0]
  60582. 8018c24: 3303 adds r3, #3
  60583. 8018c26: f023 0303 bic.w r3, r3, #3
  60584. 8018c2a: 627b str r3, [r7, #36] @ 0x24
  60585. if (newsize < MIN_SIZE_ALIGNED) {
  60586. 8018c2c: 6a7b ldr r3, [r7, #36] @ 0x24
  60587. 8018c2e: 2b0b cmp r3, #11
  60588. 8018c30: d801 bhi.n 8018c36 <mem_trim+0x1e>
  60589. /* every data block must be at least MIN_SIZE_ALIGNED long */
  60590. newsize = MIN_SIZE_ALIGNED;
  60591. 8018c32: 230c movs r3, #12
  60592. 8018c34: 627b str r3, [r7, #36] @ 0x24
  60593. }
  60594. #if MEM_OVERFLOW_CHECK
  60595. newsize += MEM_SANITY_REGION_BEFORE_ALIGNED + MEM_SANITY_REGION_AFTER_ALIGNED;
  60596. #endif
  60597. if ((newsize > MEM_SIZE_ALIGNED) || (newsize < new_size)) {
  60598. 8018c36: 6a7b ldr r3, [r7, #36] @ 0x24
  60599. 8018c38: 4a6e ldr r2, [pc, #440] @ (8018df4 <mem_trim+0x1dc>)
  60600. 8018c3a: 4293 cmp r3, r2
  60601. 8018c3c: d803 bhi.n 8018c46 <mem_trim+0x2e>
  60602. 8018c3e: 6a7a ldr r2, [r7, #36] @ 0x24
  60603. 8018c40: 683b ldr r3, [r7, #0]
  60604. 8018c42: 429a cmp r2, r3
  60605. 8018c44: d201 bcs.n 8018c4a <mem_trim+0x32>
  60606. return NULL;
  60607. 8018c46: 2300 movs r3, #0
  60608. 8018c48: e0d0 b.n 8018dec <mem_trim+0x1d4>
  60609. }
  60610. LWIP_ASSERT("mem_trim: legal memory", (u8_t *)rmem >= (u8_t *)ram &&
  60611. 8018c4a: 4b6b ldr r3, [pc, #428] @ (8018df8 <mem_trim+0x1e0>)
  60612. 8018c4c: 681b ldr r3, [r3, #0]
  60613. 8018c4e: 687a ldr r2, [r7, #4]
  60614. 8018c50: 429a cmp r2, r3
  60615. 8018c52: d304 bcc.n 8018c5e <mem_trim+0x46>
  60616. 8018c54: 4b69 ldr r3, [pc, #420] @ (8018dfc <mem_trim+0x1e4>)
  60617. 8018c56: 681b ldr r3, [r3, #0]
  60618. 8018c58: 687a ldr r2, [r7, #4]
  60619. 8018c5a: 429a cmp r2, r3
  60620. 8018c5c: d306 bcc.n 8018c6c <mem_trim+0x54>
  60621. 8018c5e: 4b68 ldr r3, [pc, #416] @ (8018e00 <mem_trim+0x1e8>)
  60622. 8018c60: f240 22d1 movw r2, #721 @ 0x2d1
  60623. 8018c64: 4967 ldr r1, [pc, #412] @ (8018e04 <mem_trim+0x1ec>)
  60624. 8018c66: 4868 ldr r0, [pc, #416] @ (8018e08 <mem_trim+0x1f0>)
  60625. 8018c68: f010 fc50 bl 802950c <iprintf>
  60626. (u8_t *)rmem < (u8_t *)ram_end);
  60627. if ((u8_t *)rmem < (u8_t *)ram || (u8_t *)rmem >= (u8_t *)ram_end) {
  60628. 8018c6c: 4b62 ldr r3, [pc, #392] @ (8018df8 <mem_trim+0x1e0>)
  60629. 8018c6e: 681b ldr r3, [r3, #0]
  60630. 8018c70: 687a ldr r2, [r7, #4]
  60631. 8018c72: 429a cmp r2, r3
  60632. 8018c74: d304 bcc.n 8018c80 <mem_trim+0x68>
  60633. 8018c76: 4b61 ldr r3, [pc, #388] @ (8018dfc <mem_trim+0x1e4>)
  60634. 8018c78: 681b ldr r3, [r3, #0]
  60635. 8018c7a: 687a ldr r2, [r7, #4]
  60636. 8018c7c: 429a cmp r2, r3
  60637. 8018c7e: d307 bcc.n 8018c90 <mem_trim+0x78>
  60638. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_trim: illegal memory\n"));
  60639. /* protect mem stats from concurrent access */
  60640. MEM_STATS_INC_LOCKED(illegal);
  60641. 8018c80: f00d f9ae bl 8025fe0 <sys_arch_protect>
  60642. 8018c84: 60b8 str r0, [r7, #8]
  60643. 8018c86: 68b8 ldr r0, [r7, #8]
  60644. 8018c88: f00d f9b8 bl 8025ffc <sys_arch_unprotect>
  60645. return rmem;
  60646. 8018c8c: 687b ldr r3, [r7, #4]
  60647. 8018c8e: e0ad b.n 8018dec <mem_trim+0x1d4>
  60648. }
  60649. /* Get the corresponding struct mem ... */
  60650. /* cast through void* to get rid of alignment warnings */
  60651. mem = (struct mem *)(void *)((u8_t *)rmem - (SIZEOF_STRUCT_MEM + MEM_SANITY_OFFSET));
  60652. 8018c90: 687b ldr r3, [r7, #4]
  60653. 8018c92: 3b0c subs r3, #12
  60654. 8018c94: 623b str r3, [r7, #32]
  60655. #if MEM_OVERFLOW_CHECK
  60656. mem_overflow_check_element(mem);
  60657. #endif
  60658. /* ... and its offset pointer */
  60659. ptr = mem_to_ptr(mem);
  60660. 8018c96: 6a38 ldr r0, [r7, #32]
  60661. 8018c98: f7ff fdf0 bl 801887c <mem_to_ptr>
  60662. 8018c9c: 61f8 str r0, [r7, #28]
  60663. size = (mem_size_t)((mem_size_t)(mem->next - ptr) - (SIZEOF_STRUCT_MEM + MEM_SANITY_OVERHEAD));
  60664. 8018c9e: 6a3b ldr r3, [r7, #32]
  60665. 8018ca0: 681a ldr r2, [r3, #0]
  60666. 8018ca2: 69fb ldr r3, [r7, #28]
  60667. 8018ca4: 1ad3 subs r3, r2, r3
  60668. 8018ca6: 3b0c subs r3, #12
  60669. 8018ca8: 61bb str r3, [r7, #24]
  60670. LWIP_ASSERT("mem_trim can only shrink memory", newsize <= size);
  60671. 8018caa: 6a7a ldr r2, [r7, #36] @ 0x24
  60672. 8018cac: 69bb ldr r3, [r7, #24]
  60673. 8018cae: 429a cmp r2, r3
  60674. 8018cb0: d906 bls.n 8018cc0 <mem_trim+0xa8>
  60675. 8018cb2: 4b53 ldr r3, [pc, #332] @ (8018e00 <mem_trim+0x1e8>)
  60676. 8018cb4: f44f 7239 mov.w r2, #740 @ 0x2e4
  60677. 8018cb8: 4954 ldr r1, [pc, #336] @ (8018e0c <mem_trim+0x1f4>)
  60678. 8018cba: 4853 ldr r0, [pc, #332] @ (8018e08 <mem_trim+0x1f0>)
  60679. 8018cbc: f010 fc26 bl 802950c <iprintf>
  60680. if (newsize > size) {
  60681. 8018cc0: 6a7a ldr r2, [r7, #36] @ 0x24
  60682. 8018cc2: 69bb ldr r3, [r7, #24]
  60683. 8018cc4: 429a cmp r2, r3
  60684. 8018cc6: d901 bls.n 8018ccc <mem_trim+0xb4>
  60685. /* not supported */
  60686. return NULL;
  60687. 8018cc8: 2300 movs r3, #0
  60688. 8018cca: e08f b.n 8018dec <mem_trim+0x1d4>
  60689. }
  60690. if (newsize == size) {
  60691. 8018ccc: 6a7a ldr r2, [r7, #36] @ 0x24
  60692. 8018cce: 69bb ldr r3, [r7, #24]
  60693. 8018cd0: 429a cmp r2, r3
  60694. 8018cd2: d101 bne.n 8018cd8 <mem_trim+0xc0>
  60695. /* No change in size, simply return */
  60696. return rmem;
  60697. 8018cd4: 687b ldr r3, [r7, #4]
  60698. 8018cd6: e089 b.n 8018dec <mem_trim+0x1d4>
  60699. }
  60700. /* protect the heap from concurrent access */
  60701. LWIP_MEM_FREE_PROTECT();
  60702. 8018cd8: 484d ldr r0, [pc, #308] @ (8018e10 <mem_trim+0x1f8>)
  60703. 8018cda: f00d f945 bl 8025f68 <sys_mutex_lock>
  60704. mem2 = ptr_to_mem(mem->next);
  60705. 8018cde: 6a3b ldr r3, [r7, #32]
  60706. 8018ce0: 681b ldr r3, [r3, #0]
  60707. 8018ce2: 4618 mov r0, r3
  60708. 8018ce4: f7ff fdba bl 801885c <ptr_to_mem>
  60709. 8018ce8: 6178 str r0, [r7, #20]
  60710. if (mem2->used == 0) {
  60711. 8018cea: 697b ldr r3, [r7, #20]
  60712. 8018cec: 7a1b ldrb r3, [r3, #8]
  60713. 8018cee: 2b00 cmp r3, #0
  60714. 8018cf0: d13c bne.n 8018d6c <mem_trim+0x154>
  60715. /* The next struct is unused, we can simply move it at little */
  60716. mem_size_t next;
  60717. LWIP_ASSERT("invalid next ptr", mem->next != MEM_SIZE_ALIGNED);
  60718. 8018cf2: 6a3b ldr r3, [r7, #32]
  60719. 8018cf4: 681b ldr r3, [r3, #0]
  60720. 8018cf6: 4a3f ldr r2, [pc, #252] @ (8018df4 <mem_trim+0x1dc>)
  60721. 8018cf8: 4293 cmp r3, r2
  60722. 8018cfa: d106 bne.n 8018d0a <mem_trim+0xf2>
  60723. 8018cfc: 4b40 ldr r3, [pc, #256] @ (8018e00 <mem_trim+0x1e8>)
  60724. 8018cfe: f240 22f5 movw r2, #757 @ 0x2f5
  60725. 8018d02: 4944 ldr r1, [pc, #272] @ (8018e14 <mem_trim+0x1fc>)
  60726. 8018d04: 4840 ldr r0, [pc, #256] @ (8018e08 <mem_trim+0x1f0>)
  60727. 8018d06: f010 fc01 bl 802950c <iprintf>
  60728. /* remember the old next pointer */
  60729. next = mem2->next;
  60730. 8018d0a: 697b ldr r3, [r7, #20]
  60731. 8018d0c: 681b ldr r3, [r3, #0]
  60732. 8018d0e: 60fb str r3, [r7, #12]
  60733. /* create new struct mem which is moved directly after the shrinked mem */
  60734. ptr2 = (mem_size_t)(ptr + SIZEOF_STRUCT_MEM + newsize);
  60735. 8018d10: 69fa ldr r2, [r7, #28]
  60736. 8018d12: 6a7b ldr r3, [r7, #36] @ 0x24
  60737. 8018d14: 4413 add r3, r2
  60738. 8018d16: 330c adds r3, #12
  60739. 8018d18: 613b str r3, [r7, #16]
  60740. if (lfree == mem2) {
  60741. 8018d1a: 4b3f ldr r3, [pc, #252] @ (8018e18 <mem_trim+0x200>)
  60742. 8018d1c: 681b ldr r3, [r3, #0]
  60743. 8018d1e: 697a ldr r2, [r7, #20]
  60744. 8018d20: 429a cmp r2, r3
  60745. 8018d22: d105 bne.n 8018d30 <mem_trim+0x118>
  60746. lfree = ptr_to_mem(ptr2);
  60747. 8018d24: 6938 ldr r0, [r7, #16]
  60748. 8018d26: f7ff fd99 bl 801885c <ptr_to_mem>
  60749. 8018d2a: 4603 mov r3, r0
  60750. 8018d2c: 4a3a ldr r2, [pc, #232] @ (8018e18 <mem_trim+0x200>)
  60751. 8018d2e: 6013 str r3, [r2, #0]
  60752. }
  60753. mem2 = ptr_to_mem(ptr2);
  60754. 8018d30: 6938 ldr r0, [r7, #16]
  60755. 8018d32: f7ff fd93 bl 801885c <ptr_to_mem>
  60756. 8018d36: 6178 str r0, [r7, #20]
  60757. mem2->used = 0;
  60758. 8018d38: 697b ldr r3, [r7, #20]
  60759. 8018d3a: 2200 movs r2, #0
  60760. 8018d3c: 721a strb r2, [r3, #8]
  60761. /* restore the next pointer */
  60762. mem2->next = next;
  60763. 8018d3e: 697b ldr r3, [r7, #20]
  60764. 8018d40: 68fa ldr r2, [r7, #12]
  60765. 8018d42: 601a str r2, [r3, #0]
  60766. /* link it back to mem */
  60767. mem2->prev = ptr;
  60768. 8018d44: 697b ldr r3, [r7, #20]
  60769. 8018d46: 69fa ldr r2, [r7, #28]
  60770. 8018d48: 605a str r2, [r3, #4]
  60771. /* link mem to it */
  60772. mem->next = ptr2;
  60773. 8018d4a: 6a3b ldr r3, [r7, #32]
  60774. 8018d4c: 693a ldr r2, [r7, #16]
  60775. 8018d4e: 601a str r2, [r3, #0]
  60776. /* last thing to restore linked list: as we have moved mem2,
  60777. * let 'mem2->next->prev' point to mem2 again. but only if mem2->next is not
  60778. * the end of the heap */
  60779. if (mem2->next != MEM_SIZE_ALIGNED) {
  60780. 8018d50: 697b ldr r3, [r7, #20]
  60781. 8018d52: 681b ldr r3, [r3, #0]
  60782. 8018d54: 4a27 ldr r2, [pc, #156] @ (8018df4 <mem_trim+0x1dc>)
  60783. 8018d56: 4293 cmp r3, r2
  60784. 8018d58: d044 beq.n 8018de4 <mem_trim+0x1cc>
  60785. ptr_to_mem(mem2->next)->prev = ptr2;
  60786. 8018d5a: 697b ldr r3, [r7, #20]
  60787. 8018d5c: 681b ldr r3, [r3, #0]
  60788. 8018d5e: 4618 mov r0, r3
  60789. 8018d60: f7ff fd7c bl 801885c <ptr_to_mem>
  60790. 8018d64: 4602 mov r2, r0
  60791. 8018d66: 693b ldr r3, [r7, #16]
  60792. 8018d68: 6053 str r3, [r2, #4]
  60793. 8018d6a: e03b b.n 8018de4 <mem_trim+0x1cc>
  60794. }
  60795. MEM_STATS_DEC_USED(used, (size - newsize));
  60796. /* no need to plug holes, we've already done that */
  60797. } else if (newsize + SIZEOF_STRUCT_MEM + MIN_SIZE_ALIGNED <= size) {
  60798. 8018d6c: 6a7b ldr r3, [r7, #36] @ 0x24
  60799. 8018d6e: 3318 adds r3, #24
  60800. 8018d70: 69ba ldr r2, [r7, #24]
  60801. 8018d72: 429a cmp r2, r3
  60802. 8018d74: d336 bcc.n 8018de4 <mem_trim+0x1cc>
  60803. * Old size ('size') must be big enough to contain at least 'newsize' plus a struct mem
  60804. * ('SIZEOF_STRUCT_MEM') with some data ('MIN_SIZE_ALIGNED').
  60805. * @todo we could leave out MIN_SIZE_ALIGNED. We would create an empty
  60806. * region that couldn't hold data, but when mem->next gets freed,
  60807. * the 2 regions would be combined, resulting in more free memory */
  60808. ptr2 = (mem_size_t)(ptr + SIZEOF_STRUCT_MEM + newsize);
  60809. 8018d76: 69fa ldr r2, [r7, #28]
  60810. 8018d78: 6a7b ldr r3, [r7, #36] @ 0x24
  60811. 8018d7a: 4413 add r3, r2
  60812. 8018d7c: 330c adds r3, #12
  60813. 8018d7e: 613b str r3, [r7, #16]
  60814. LWIP_ASSERT("invalid next ptr", mem->next != MEM_SIZE_ALIGNED);
  60815. 8018d80: 6a3b ldr r3, [r7, #32]
  60816. 8018d82: 681b ldr r3, [r3, #0]
  60817. 8018d84: 4a1b ldr r2, [pc, #108] @ (8018df4 <mem_trim+0x1dc>)
  60818. 8018d86: 4293 cmp r3, r2
  60819. 8018d88: d106 bne.n 8018d98 <mem_trim+0x180>
  60820. 8018d8a: 4b1d ldr r3, [pc, #116] @ (8018e00 <mem_trim+0x1e8>)
  60821. 8018d8c: f240 3216 movw r2, #790 @ 0x316
  60822. 8018d90: 4920 ldr r1, [pc, #128] @ (8018e14 <mem_trim+0x1fc>)
  60823. 8018d92: 481d ldr r0, [pc, #116] @ (8018e08 <mem_trim+0x1f0>)
  60824. 8018d94: f010 fbba bl 802950c <iprintf>
  60825. mem2 = ptr_to_mem(ptr2);
  60826. 8018d98: 6938 ldr r0, [r7, #16]
  60827. 8018d9a: f7ff fd5f bl 801885c <ptr_to_mem>
  60828. 8018d9e: 6178 str r0, [r7, #20]
  60829. if (mem2 < lfree) {
  60830. 8018da0: 4b1d ldr r3, [pc, #116] @ (8018e18 <mem_trim+0x200>)
  60831. 8018da2: 681b ldr r3, [r3, #0]
  60832. 8018da4: 697a ldr r2, [r7, #20]
  60833. 8018da6: 429a cmp r2, r3
  60834. 8018da8: d202 bcs.n 8018db0 <mem_trim+0x198>
  60835. lfree = mem2;
  60836. 8018daa: 4a1b ldr r2, [pc, #108] @ (8018e18 <mem_trim+0x200>)
  60837. 8018dac: 697b ldr r3, [r7, #20]
  60838. 8018dae: 6013 str r3, [r2, #0]
  60839. }
  60840. mem2->used = 0;
  60841. 8018db0: 697b ldr r3, [r7, #20]
  60842. 8018db2: 2200 movs r2, #0
  60843. 8018db4: 721a strb r2, [r3, #8]
  60844. mem2->next = mem->next;
  60845. 8018db6: 6a3b ldr r3, [r7, #32]
  60846. 8018db8: 681a ldr r2, [r3, #0]
  60847. 8018dba: 697b ldr r3, [r7, #20]
  60848. 8018dbc: 601a str r2, [r3, #0]
  60849. mem2->prev = ptr;
  60850. 8018dbe: 697b ldr r3, [r7, #20]
  60851. 8018dc0: 69fa ldr r2, [r7, #28]
  60852. 8018dc2: 605a str r2, [r3, #4]
  60853. mem->next = ptr2;
  60854. 8018dc4: 6a3b ldr r3, [r7, #32]
  60855. 8018dc6: 693a ldr r2, [r7, #16]
  60856. 8018dc8: 601a str r2, [r3, #0]
  60857. if (mem2->next != MEM_SIZE_ALIGNED) {
  60858. 8018dca: 697b ldr r3, [r7, #20]
  60859. 8018dcc: 681b ldr r3, [r3, #0]
  60860. 8018dce: 4a09 ldr r2, [pc, #36] @ (8018df4 <mem_trim+0x1dc>)
  60861. 8018dd0: 4293 cmp r3, r2
  60862. 8018dd2: d007 beq.n 8018de4 <mem_trim+0x1cc>
  60863. ptr_to_mem(mem2->next)->prev = ptr2;
  60864. 8018dd4: 697b ldr r3, [r7, #20]
  60865. 8018dd6: 681b ldr r3, [r3, #0]
  60866. 8018dd8: 4618 mov r0, r3
  60867. 8018dda: f7ff fd3f bl 801885c <ptr_to_mem>
  60868. 8018dde: 4602 mov r2, r0
  60869. 8018de0: 693b ldr r3, [r7, #16]
  60870. 8018de2: 6053 str r3, [r2, #4]
  60871. #endif
  60872. MEM_SANITY();
  60873. #if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT
  60874. mem_free_count = 1;
  60875. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  60876. LWIP_MEM_FREE_UNPROTECT();
  60877. 8018de4: 480a ldr r0, [pc, #40] @ (8018e10 <mem_trim+0x1f8>)
  60878. 8018de6: f00d f8ce bl 8025f86 <sys_mutex_unlock>
  60879. return rmem;
  60880. 8018dea: 687b ldr r3, [r7, #4]
  60881. }
  60882. 8018dec: 4618 mov r0, r3
  60883. 8018dee: 3728 adds r7, #40 @ 0x28
  60884. 8018df0: 46bd mov sp, r7
  60885. 8018df2: bd80 pop {r7, pc}
  60886. 8018df4: 0001ffe8 .word 0x0001ffe8
  60887. 8018df8: 240234b4 .word 0x240234b4
  60888. 8018dfc: 240234b8 .word 0x240234b8
  60889. 8018e00: 0802d610 .word 0x0802d610
  60890. 8018e04: 0802d79c .word 0x0802d79c
  60891. 8018e08: 0802d658 .word 0x0802d658
  60892. 8018e0c: 0802d7b4 .word 0x0802d7b4
  60893. 8018e10: 240234bc .word 0x240234bc
  60894. 8018e14: 0802d7d4 .word 0x0802d7d4
  60895. 8018e18: 240234c0 .word 0x240234c0
  60896. 08018e1c <mem_malloc>:
  60897. *
  60898. * Note that the returned value will always be aligned (as defined by MEM_ALIGNMENT).
  60899. */
  60900. void *
  60901. mem_malloc(mem_size_t size_in)
  60902. {
  60903. 8018e1c: b580 push {r7, lr}
  60904. 8018e1e: b088 sub sp, #32
  60905. 8018e20: af00 add r7, sp, #0
  60906. 8018e22: 6078 str r0, [r7, #4]
  60907. #if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT
  60908. u8_t local_mem_free_count = 0;
  60909. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  60910. LWIP_MEM_ALLOC_DECL_PROTECT();
  60911. if (size_in == 0) {
  60912. 8018e24: 687b ldr r3, [r7, #4]
  60913. 8018e26: 2b00 cmp r3, #0
  60914. 8018e28: d101 bne.n 8018e2e <mem_malloc+0x12>
  60915. return NULL;
  60916. 8018e2a: 2300 movs r3, #0
  60917. 8018e2c: e0d9 b.n 8018fe2 <mem_malloc+0x1c6>
  60918. }
  60919. /* Expand the size of the allocated memory region so that we can
  60920. adjust for alignment. */
  60921. size = (mem_size_t)LWIP_MEM_ALIGN_SIZE(size_in);
  60922. 8018e2e: 687b ldr r3, [r7, #4]
  60923. 8018e30: 3303 adds r3, #3
  60924. 8018e32: f023 0303 bic.w r3, r3, #3
  60925. 8018e36: 61bb str r3, [r7, #24]
  60926. if (size < MIN_SIZE_ALIGNED) {
  60927. 8018e38: 69bb ldr r3, [r7, #24]
  60928. 8018e3a: 2b0b cmp r3, #11
  60929. 8018e3c: d801 bhi.n 8018e42 <mem_malloc+0x26>
  60930. /* every data block must be at least MIN_SIZE_ALIGNED long */
  60931. size = MIN_SIZE_ALIGNED;
  60932. 8018e3e: 230c movs r3, #12
  60933. 8018e40: 61bb str r3, [r7, #24]
  60934. }
  60935. #if MEM_OVERFLOW_CHECK
  60936. size += MEM_SANITY_REGION_BEFORE_ALIGNED + MEM_SANITY_REGION_AFTER_ALIGNED;
  60937. #endif
  60938. if ((size > MEM_SIZE_ALIGNED) || (size < size_in)) {
  60939. 8018e42: 69bb ldr r3, [r7, #24]
  60940. 8018e44: 4a69 ldr r2, [pc, #420] @ (8018fec <mem_malloc+0x1d0>)
  60941. 8018e46: 4293 cmp r3, r2
  60942. 8018e48: d803 bhi.n 8018e52 <mem_malloc+0x36>
  60943. 8018e4a: 69ba ldr r2, [r7, #24]
  60944. 8018e4c: 687b ldr r3, [r7, #4]
  60945. 8018e4e: 429a cmp r2, r3
  60946. 8018e50: d201 bcs.n 8018e56 <mem_malloc+0x3a>
  60947. return NULL;
  60948. 8018e52: 2300 movs r3, #0
  60949. 8018e54: e0c5 b.n 8018fe2 <mem_malloc+0x1c6>
  60950. }
  60951. /* protect the heap from concurrent access */
  60952. sys_mutex_lock(&mem_mutex);
  60953. 8018e56: 4866 ldr r0, [pc, #408] @ (8018ff0 <mem_malloc+0x1d4>)
  60954. 8018e58: f00d f886 bl 8025f68 <sys_mutex_lock>
  60955. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  60956. /* Scan through the heap searching for a free block that is big enough,
  60957. * beginning with the lowest free block.
  60958. */
  60959. for (ptr = mem_to_ptr(lfree); ptr < MEM_SIZE_ALIGNED - size;
  60960. 8018e5c: 4b65 ldr r3, [pc, #404] @ (8018ff4 <mem_malloc+0x1d8>)
  60961. 8018e5e: 681b ldr r3, [r3, #0]
  60962. 8018e60: 4618 mov r0, r3
  60963. 8018e62: f7ff fd0b bl 801887c <mem_to_ptr>
  60964. 8018e66: 61f8 str r0, [r7, #28]
  60965. 8018e68: e0b0 b.n 8018fcc <mem_malloc+0x1b0>
  60966. ptr = ptr_to_mem(ptr)->next) {
  60967. mem = ptr_to_mem(ptr);
  60968. 8018e6a: 69f8 ldr r0, [r7, #28]
  60969. 8018e6c: f7ff fcf6 bl 801885c <ptr_to_mem>
  60970. 8018e70: 6138 str r0, [r7, #16]
  60971. local_mem_free_count = 1;
  60972. break;
  60973. }
  60974. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  60975. if ((!mem->used) &&
  60976. 8018e72: 693b ldr r3, [r7, #16]
  60977. 8018e74: 7a1b ldrb r3, [r3, #8]
  60978. 8018e76: 2b00 cmp r3, #0
  60979. 8018e78: f040 80a2 bne.w 8018fc0 <mem_malloc+0x1a4>
  60980. (mem->next - (ptr + SIZEOF_STRUCT_MEM)) >= size) {
  60981. 8018e7c: 693b ldr r3, [r7, #16]
  60982. 8018e7e: 681a ldr r2, [r3, #0]
  60983. 8018e80: 69fb ldr r3, [r7, #28]
  60984. 8018e82: 1ad3 subs r3, r2, r3
  60985. 8018e84: 3b0c subs r3, #12
  60986. if ((!mem->used) &&
  60987. 8018e86: 69ba ldr r2, [r7, #24]
  60988. 8018e88: 429a cmp r2, r3
  60989. 8018e8a: f200 8099 bhi.w 8018fc0 <mem_malloc+0x1a4>
  60990. /* mem is not used and at least perfect fit is possible:
  60991. * mem->next - (ptr + SIZEOF_STRUCT_MEM) gives us the 'user data size' of mem */
  60992. if (mem->next - (ptr + SIZEOF_STRUCT_MEM) >= (size + SIZEOF_STRUCT_MEM + MIN_SIZE_ALIGNED)) {
  60993. 8018e8e: 693b ldr r3, [r7, #16]
  60994. 8018e90: 681a ldr r2, [r3, #0]
  60995. 8018e92: 69fb ldr r3, [r7, #28]
  60996. 8018e94: 1ad3 subs r3, r2, r3
  60997. 8018e96: f1a3 020c sub.w r2, r3, #12
  60998. 8018e9a: 69bb ldr r3, [r7, #24]
  60999. 8018e9c: 3318 adds r3, #24
  61000. 8018e9e: 429a cmp r2, r3
  61001. 8018ea0: d331 bcc.n 8018f06 <mem_malloc+0xea>
  61002. * struct mem would fit in but no data between mem2 and mem2->next
  61003. * @todo we could leave out MIN_SIZE_ALIGNED. We would create an empty
  61004. * region that couldn't hold data, but when mem->next gets freed,
  61005. * the 2 regions would be combined, resulting in more free memory
  61006. */
  61007. ptr2 = (mem_size_t)(ptr + SIZEOF_STRUCT_MEM + size);
  61008. 8018ea2: 69fa ldr r2, [r7, #28]
  61009. 8018ea4: 69bb ldr r3, [r7, #24]
  61010. 8018ea6: 4413 add r3, r2
  61011. 8018ea8: 330c adds r3, #12
  61012. 8018eaa: 60fb str r3, [r7, #12]
  61013. LWIP_ASSERT("invalid next ptr",ptr2 != MEM_SIZE_ALIGNED);
  61014. 8018eac: 68fb ldr r3, [r7, #12]
  61015. 8018eae: 4a4f ldr r2, [pc, #316] @ (8018fec <mem_malloc+0x1d0>)
  61016. 8018eb0: 4293 cmp r3, r2
  61017. 8018eb2: d106 bne.n 8018ec2 <mem_malloc+0xa6>
  61018. 8018eb4: 4b50 ldr r3, [pc, #320] @ (8018ff8 <mem_malloc+0x1dc>)
  61019. 8018eb6: f240 3287 movw r2, #903 @ 0x387
  61020. 8018eba: 4950 ldr r1, [pc, #320] @ (8018ffc <mem_malloc+0x1e0>)
  61021. 8018ebc: 4850 ldr r0, [pc, #320] @ (8019000 <mem_malloc+0x1e4>)
  61022. 8018ebe: f010 fb25 bl 802950c <iprintf>
  61023. /* create mem2 struct */
  61024. mem2 = ptr_to_mem(ptr2);
  61025. 8018ec2: 68f8 ldr r0, [r7, #12]
  61026. 8018ec4: f7ff fcca bl 801885c <ptr_to_mem>
  61027. 8018ec8: 60b8 str r0, [r7, #8]
  61028. mem2->used = 0;
  61029. 8018eca: 68bb ldr r3, [r7, #8]
  61030. 8018ecc: 2200 movs r2, #0
  61031. 8018ece: 721a strb r2, [r3, #8]
  61032. mem2->next = mem->next;
  61033. 8018ed0: 693b ldr r3, [r7, #16]
  61034. 8018ed2: 681a ldr r2, [r3, #0]
  61035. 8018ed4: 68bb ldr r3, [r7, #8]
  61036. 8018ed6: 601a str r2, [r3, #0]
  61037. mem2->prev = ptr;
  61038. 8018ed8: 68bb ldr r3, [r7, #8]
  61039. 8018eda: 69fa ldr r2, [r7, #28]
  61040. 8018edc: 605a str r2, [r3, #4]
  61041. /* and insert it between mem and mem->next */
  61042. mem->next = ptr2;
  61043. 8018ede: 693b ldr r3, [r7, #16]
  61044. 8018ee0: 68fa ldr r2, [r7, #12]
  61045. 8018ee2: 601a str r2, [r3, #0]
  61046. mem->used = 1;
  61047. 8018ee4: 693b ldr r3, [r7, #16]
  61048. 8018ee6: 2201 movs r2, #1
  61049. 8018ee8: 721a strb r2, [r3, #8]
  61050. if (mem2->next != MEM_SIZE_ALIGNED) {
  61051. 8018eea: 68bb ldr r3, [r7, #8]
  61052. 8018eec: 681b ldr r3, [r3, #0]
  61053. 8018eee: 4a3f ldr r2, [pc, #252] @ (8018fec <mem_malloc+0x1d0>)
  61054. 8018ef0: 4293 cmp r3, r2
  61055. 8018ef2: d00b beq.n 8018f0c <mem_malloc+0xf0>
  61056. ptr_to_mem(mem2->next)->prev = ptr2;
  61057. 8018ef4: 68bb ldr r3, [r7, #8]
  61058. 8018ef6: 681b ldr r3, [r3, #0]
  61059. 8018ef8: 4618 mov r0, r3
  61060. 8018efa: f7ff fcaf bl 801885c <ptr_to_mem>
  61061. 8018efe: 4602 mov r2, r0
  61062. 8018f00: 68fb ldr r3, [r7, #12]
  61063. 8018f02: 6053 str r3, [r2, #4]
  61064. 8018f04: e002 b.n 8018f0c <mem_malloc+0xf0>
  61065. * take care of this).
  61066. * -> near fit or exact fit: do not split, no mem2 creation
  61067. * also can't move mem->next directly behind mem, since mem->next
  61068. * will always be used at this point!
  61069. */
  61070. mem->used = 1;
  61071. 8018f06: 693b ldr r3, [r7, #16]
  61072. 8018f08: 2201 movs r2, #1
  61073. 8018f0a: 721a strb r2, [r3, #8]
  61074. MEM_STATS_INC_USED(used, mem->next - mem_to_ptr(mem));
  61075. }
  61076. #if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT
  61077. mem_malloc_adjust_lfree:
  61078. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  61079. if (mem == lfree) {
  61080. 8018f0c: 4b39 ldr r3, [pc, #228] @ (8018ff4 <mem_malloc+0x1d8>)
  61081. 8018f0e: 681b ldr r3, [r3, #0]
  61082. 8018f10: 693a ldr r2, [r7, #16]
  61083. 8018f12: 429a cmp r2, r3
  61084. 8018f14: d127 bne.n 8018f66 <mem_malloc+0x14a>
  61085. struct mem *cur = lfree;
  61086. 8018f16: 4b37 ldr r3, [pc, #220] @ (8018ff4 <mem_malloc+0x1d8>)
  61087. 8018f18: 681b ldr r3, [r3, #0]
  61088. 8018f1a: 617b str r3, [r7, #20]
  61089. /* Find next free block after mem and update lowest free pointer */
  61090. while (cur->used && cur != ram_end) {
  61091. 8018f1c: e005 b.n 8018f2a <mem_malloc+0x10e>
  61092. /* If mem_free or mem_trim have run, we have to restart since they
  61093. could have altered our current struct mem or lfree. */
  61094. goto mem_malloc_adjust_lfree;
  61095. }
  61096. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  61097. cur = ptr_to_mem(cur->next);
  61098. 8018f1e: 697b ldr r3, [r7, #20]
  61099. 8018f20: 681b ldr r3, [r3, #0]
  61100. 8018f22: 4618 mov r0, r3
  61101. 8018f24: f7ff fc9a bl 801885c <ptr_to_mem>
  61102. 8018f28: 6178 str r0, [r7, #20]
  61103. while (cur->used && cur != ram_end) {
  61104. 8018f2a: 697b ldr r3, [r7, #20]
  61105. 8018f2c: 7a1b ldrb r3, [r3, #8]
  61106. 8018f2e: 2b00 cmp r3, #0
  61107. 8018f30: d004 beq.n 8018f3c <mem_malloc+0x120>
  61108. 8018f32: 4b34 ldr r3, [pc, #208] @ (8019004 <mem_malloc+0x1e8>)
  61109. 8018f34: 681b ldr r3, [r3, #0]
  61110. 8018f36: 697a ldr r2, [r7, #20]
  61111. 8018f38: 429a cmp r2, r3
  61112. 8018f3a: d1f0 bne.n 8018f1e <mem_malloc+0x102>
  61113. }
  61114. lfree = cur;
  61115. 8018f3c: 4a2d ldr r2, [pc, #180] @ (8018ff4 <mem_malloc+0x1d8>)
  61116. 8018f3e: 697b ldr r3, [r7, #20]
  61117. 8018f40: 6013 str r3, [r2, #0]
  61118. LWIP_ASSERT("mem_malloc: !lfree->used", ((lfree == ram_end) || (!lfree->used)));
  61119. 8018f42: 4b2c ldr r3, [pc, #176] @ (8018ff4 <mem_malloc+0x1d8>)
  61120. 8018f44: 681a ldr r2, [r3, #0]
  61121. 8018f46: 4b2f ldr r3, [pc, #188] @ (8019004 <mem_malloc+0x1e8>)
  61122. 8018f48: 681b ldr r3, [r3, #0]
  61123. 8018f4a: 429a cmp r2, r3
  61124. 8018f4c: d00b beq.n 8018f66 <mem_malloc+0x14a>
  61125. 8018f4e: 4b29 ldr r3, [pc, #164] @ (8018ff4 <mem_malloc+0x1d8>)
  61126. 8018f50: 681b ldr r3, [r3, #0]
  61127. 8018f52: 7a1b ldrb r3, [r3, #8]
  61128. 8018f54: 2b00 cmp r3, #0
  61129. 8018f56: d006 beq.n 8018f66 <mem_malloc+0x14a>
  61130. 8018f58: 4b27 ldr r3, [pc, #156] @ (8018ff8 <mem_malloc+0x1dc>)
  61131. 8018f5a: f240 32b5 movw r2, #949 @ 0x3b5
  61132. 8018f5e: 492a ldr r1, [pc, #168] @ (8019008 <mem_malloc+0x1ec>)
  61133. 8018f60: 4827 ldr r0, [pc, #156] @ (8019000 <mem_malloc+0x1e4>)
  61134. 8018f62: f010 fad3 bl 802950c <iprintf>
  61135. }
  61136. LWIP_MEM_ALLOC_UNPROTECT();
  61137. sys_mutex_unlock(&mem_mutex);
  61138. 8018f66: 4822 ldr r0, [pc, #136] @ (8018ff0 <mem_malloc+0x1d4>)
  61139. 8018f68: f00d f80d bl 8025f86 <sys_mutex_unlock>
  61140. LWIP_ASSERT("mem_malloc: allocated memory not above ram_end.",
  61141. 8018f6c: 693a ldr r2, [r7, #16]
  61142. 8018f6e: 69bb ldr r3, [r7, #24]
  61143. 8018f70: 4413 add r3, r2
  61144. 8018f72: 330c adds r3, #12
  61145. 8018f74: 4a23 ldr r2, [pc, #140] @ (8019004 <mem_malloc+0x1e8>)
  61146. 8018f76: 6812 ldr r2, [r2, #0]
  61147. 8018f78: 4293 cmp r3, r2
  61148. 8018f7a: d906 bls.n 8018f8a <mem_malloc+0x16e>
  61149. 8018f7c: 4b1e ldr r3, [pc, #120] @ (8018ff8 <mem_malloc+0x1dc>)
  61150. 8018f7e: f240 32b9 movw r2, #953 @ 0x3b9
  61151. 8018f82: 4922 ldr r1, [pc, #136] @ (801900c <mem_malloc+0x1f0>)
  61152. 8018f84: 481e ldr r0, [pc, #120] @ (8019000 <mem_malloc+0x1e4>)
  61153. 8018f86: f010 fac1 bl 802950c <iprintf>
  61154. (mem_ptr_t)mem + SIZEOF_STRUCT_MEM + size <= (mem_ptr_t)ram_end);
  61155. LWIP_ASSERT("mem_malloc: allocated memory properly aligned.",
  61156. 8018f8a: 693b ldr r3, [r7, #16]
  61157. 8018f8c: f003 0303 and.w r3, r3, #3
  61158. 8018f90: 2b00 cmp r3, #0
  61159. 8018f92: d006 beq.n 8018fa2 <mem_malloc+0x186>
  61160. 8018f94: 4b18 ldr r3, [pc, #96] @ (8018ff8 <mem_malloc+0x1dc>)
  61161. 8018f96: f240 32bb movw r2, #955 @ 0x3bb
  61162. 8018f9a: 491d ldr r1, [pc, #116] @ (8019010 <mem_malloc+0x1f4>)
  61163. 8018f9c: 4818 ldr r0, [pc, #96] @ (8019000 <mem_malloc+0x1e4>)
  61164. 8018f9e: f010 fab5 bl 802950c <iprintf>
  61165. ((mem_ptr_t)mem + SIZEOF_STRUCT_MEM) % MEM_ALIGNMENT == 0);
  61166. LWIP_ASSERT("mem_malloc: sanity check alignment",
  61167. 8018fa2: 693b ldr r3, [r7, #16]
  61168. 8018fa4: f003 0303 and.w r3, r3, #3
  61169. 8018fa8: 2b00 cmp r3, #0
  61170. 8018faa: d006 beq.n 8018fba <mem_malloc+0x19e>
  61171. 8018fac: 4b12 ldr r3, [pc, #72] @ (8018ff8 <mem_malloc+0x1dc>)
  61172. 8018fae: f240 32bd movw r2, #957 @ 0x3bd
  61173. 8018fb2: 4918 ldr r1, [pc, #96] @ (8019014 <mem_malloc+0x1f8>)
  61174. 8018fb4: 4812 ldr r0, [pc, #72] @ (8019000 <mem_malloc+0x1e4>)
  61175. 8018fb6: f010 faa9 bl 802950c <iprintf>
  61176. #if MEM_OVERFLOW_CHECK
  61177. mem_overflow_init_element(mem, size_in);
  61178. #endif
  61179. MEM_SANITY();
  61180. return (u8_t *)mem + SIZEOF_STRUCT_MEM + MEM_SANITY_OFFSET;
  61181. 8018fba: 693b ldr r3, [r7, #16]
  61182. 8018fbc: 330c adds r3, #12
  61183. 8018fbe: e010 b.n 8018fe2 <mem_malloc+0x1c6>
  61184. ptr = ptr_to_mem(ptr)->next) {
  61185. 8018fc0: 69f8 ldr r0, [r7, #28]
  61186. 8018fc2: f7ff fc4b bl 801885c <ptr_to_mem>
  61187. 8018fc6: 4603 mov r3, r0
  61188. 8018fc8: 681b ldr r3, [r3, #0]
  61189. 8018fca: 61fb str r3, [r7, #28]
  61190. for (ptr = mem_to_ptr(lfree); ptr < MEM_SIZE_ALIGNED - size;
  61191. 8018fcc: 69ba ldr r2, [r7, #24]
  61192. 8018fce: 4b07 ldr r3, [pc, #28] @ (8018fec <mem_malloc+0x1d0>)
  61193. 8018fd0: 1a9b subs r3, r3, r2
  61194. 8018fd2: 69fa ldr r2, [r7, #28]
  61195. 8018fd4: 429a cmp r2, r3
  61196. 8018fd6: f4ff af48 bcc.w 8018e6a <mem_malloc+0x4e>
  61197. /* if we got interrupted by a mem_free, try again */
  61198. } while (local_mem_free_count != 0);
  61199. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  61200. MEM_STATS_INC(err);
  61201. LWIP_MEM_ALLOC_UNPROTECT();
  61202. sys_mutex_unlock(&mem_mutex);
  61203. 8018fda: 4805 ldr r0, [pc, #20] @ (8018ff0 <mem_malloc+0x1d4>)
  61204. 8018fdc: f00c ffd3 bl 8025f86 <sys_mutex_unlock>
  61205. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("mem_malloc: could not allocate %"S16_F" bytes\n", (s16_t)size));
  61206. return NULL;
  61207. 8018fe0: 2300 movs r3, #0
  61208. }
  61209. 8018fe2: 4618 mov r0, r3
  61210. 8018fe4: 3720 adds r7, #32
  61211. 8018fe6: 46bd mov sp, r7
  61212. 8018fe8: bd80 pop {r7, pc}
  61213. 8018fea: bf00 nop
  61214. 8018fec: 0001ffe8 .word 0x0001ffe8
  61215. 8018ff0: 240234bc .word 0x240234bc
  61216. 8018ff4: 240234c0 .word 0x240234c0
  61217. 8018ff8: 0802d610 .word 0x0802d610
  61218. 8018ffc: 0802d7d4 .word 0x0802d7d4
  61219. 8019000: 0802d658 .word 0x0802d658
  61220. 8019004: 240234b8 .word 0x240234b8
  61221. 8019008: 0802d7e8 .word 0x0802d7e8
  61222. 801900c: 0802d804 .word 0x0802d804
  61223. 8019010: 0802d834 .word 0x0802d834
  61224. 8019014: 0802d864 .word 0x0802d864
  61225. 08019018 <memp_init_pool>:
  61226. *
  61227. * @param desc pool to initialize
  61228. */
  61229. void
  61230. memp_init_pool(const struct memp_desc *desc)
  61231. {
  61232. 8019018: b480 push {r7}
  61233. 801901a: b085 sub sp, #20
  61234. 801901c: af00 add r7, sp, #0
  61235. 801901e: 6078 str r0, [r7, #4]
  61236. LWIP_UNUSED_ARG(desc);
  61237. #else
  61238. int i;
  61239. struct memp *memp;
  61240. *desc->tab = NULL;
  61241. 8019020: 687b ldr r3, [r7, #4]
  61242. 8019022: 68db ldr r3, [r3, #12]
  61243. 8019024: 2200 movs r2, #0
  61244. 8019026: 601a str r2, [r3, #0]
  61245. memp = (struct memp *)LWIP_MEM_ALIGN(desc->base);
  61246. 8019028: 687b ldr r3, [r7, #4]
  61247. 801902a: 689b ldr r3, [r3, #8]
  61248. 801902c: 3303 adds r3, #3
  61249. 801902e: f023 0303 bic.w r3, r3, #3
  61250. 8019032: 60bb str r3, [r7, #8]
  61251. + MEM_SANITY_REGION_AFTER_ALIGNED
  61252. #endif
  61253. ));
  61254. #endif
  61255. /* create a linked list of memp elements */
  61256. for (i = 0; i < desc->num; ++i) {
  61257. 8019034: 2300 movs r3, #0
  61258. 8019036: 60fb str r3, [r7, #12]
  61259. 8019038: e011 b.n 801905e <memp_init_pool+0x46>
  61260. memp->next = *desc->tab;
  61261. 801903a: 687b ldr r3, [r7, #4]
  61262. 801903c: 68db ldr r3, [r3, #12]
  61263. 801903e: 681a ldr r2, [r3, #0]
  61264. 8019040: 68bb ldr r3, [r7, #8]
  61265. 8019042: 601a str r2, [r3, #0]
  61266. *desc->tab = memp;
  61267. 8019044: 687b ldr r3, [r7, #4]
  61268. 8019046: 68db ldr r3, [r3, #12]
  61269. 8019048: 68ba ldr r2, [r7, #8]
  61270. 801904a: 601a str r2, [r3, #0]
  61271. #if MEMP_OVERFLOW_CHECK
  61272. memp_overflow_init_element(memp, desc);
  61273. #endif /* MEMP_OVERFLOW_CHECK */
  61274. /* cast through void* to get rid of alignment warnings */
  61275. memp = (struct memp *)(void *)((u8_t *)memp + MEMP_SIZE + desc->size
  61276. 801904c: 687b ldr r3, [r7, #4]
  61277. 801904e: 889b ldrh r3, [r3, #4]
  61278. 8019050: 461a mov r2, r3
  61279. 8019052: 68bb ldr r3, [r7, #8]
  61280. 8019054: 4413 add r3, r2
  61281. 8019056: 60bb str r3, [r7, #8]
  61282. for (i = 0; i < desc->num; ++i) {
  61283. 8019058: 68fb ldr r3, [r7, #12]
  61284. 801905a: 3301 adds r3, #1
  61285. 801905c: 60fb str r3, [r7, #12]
  61286. 801905e: 687b ldr r3, [r7, #4]
  61287. 8019060: 88db ldrh r3, [r3, #6]
  61288. 8019062: 461a mov r2, r3
  61289. 8019064: 68fb ldr r3, [r7, #12]
  61290. 8019066: 4293 cmp r3, r2
  61291. 8019068: dbe7 blt.n 801903a <memp_init_pool+0x22>
  61292. #endif /* !MEMP_MEM_MALLOC */
  61293. #if MEMP_STATS && (defined(LWIP_DEBUG) || LWIP_STATS_DISPLAY)
  61294. desc->stats->name = desc->desc;
  61295. #endif /* MEMP_STATS && (defined(LWIP_DEBUG) || LWIP_STATS_DISPLAY) */
  61296. }
  61297. 801906a: bf00 nop
  61298. 801906c: bf00 nop
  61299. 801906e: 3714 adds r7, #20
  61300. 8019070: 46bd mov sp, r7
  61301. 8019072: f85d 7b04 ldr.w r7, [sp], #4
  61302. 8019076: 4770 bx lr
  61303. 08019078 <memp_init>:
  61304. *
  61305. * Carves out memp_memory into linked lists for each pool-type.
  61306. */
  61307. void
  61308. memp_init(void)
  61309. {
  61310. 8019078: b580 push {r7, lr}
  61311. 801907a: b082 sub sp, #8
  61312. 801907c: af00 add r7, sp, #0
  61313. u16_t i;
  61314. /* for every pool: */
  61315. for (i = 0; i < LWIP_ARRAYSIZE(memp_pools); i++) {
  61316. 801907e: 2300 movs r3, #0
  61317. 8019080: 80fb strh r3, [r7, #6]
  61318. 8019082: e009 b.n 8019098 <memp_init+0x20>
  61319. memp_init_pool(memp_pools[i]);
  61320. 8019084: 88fb ldrh r3, [r7, #6]
  61321. 8019086: 4a08 ldr r2, [pc, #32] @ (80190a8 <memp_init+0x30>)
  61322. 8019088: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  61323. 801908c: 4618 mov r0, r3
  61324. 801908e: f7ff ffc3 bl 8019018 <memp_init_pool>
  61325. for (i = 0; i < LWIP_ARRAYSIZE(memp_pools); i++) {
  61326. 8019092: 88fb ldrh r3, [r7, #6]
  61327. 8019094: 3301 adds r3, #1
  61328. 8019096: 80fb strh r3, [r7, #6]
  61329. 8019098: 88fb ldrh r3, [r7, #6]
  61330. 801909a: 2b0c cmp r3, #12
  61331. 801909c: d9f2 bls.n 8019084 <memp_init+0xc>
  61332. #if MEMP_OVERFLOW_CHECK >= 2
  61333. /* check everything a first time to see if it worked */
  61334. memp_overflow_check_all();
  61335. #endif /* MEMP_OVERFLOW_CHECK >= 2 */
  61336. }
  61337. 801909e: bf00 nop
  61338. 80190a0: bf00 nop
  61339. 80190a2: 3708 adds r7, #8
  61340. 80190a4: 46bd mov sp, r7
  61341. 80190a6: bd80 pop {r7, pc}
  61342. 80190a8: 08030720 .word 0x08030720
  61343. 080190ac <do_memp_malloc_pool>:
  61344. #if !MEMP_OVERFLOW_CHECK
  61345. do_memp_malloc_pool(const struct memp_desc *desc)
  61346. #else
  61347. do_memp_malloc_pool_fn(const struct memp_desc *desc, const char *file, const int line)
  61348. #endif
  61349. {
  61350. 80190ac: b580 push {r7, lr}
  61351. 80190ae: b084 sub sp, #16
  61352. 80190b0: af00 add r7, sp, #0
  61353. 80190b2: 6078 str r0, [r7, #4]
  61354. #if MEMP_MEM_MALLOC
  61355. memp = (struct memp *)mem_malloc(MEMP_SIZE + MEMP_ALIGN_SIZE(desc->size));
  61356. SYS_ARCH_PROTECT(old_level);
  61357. #else /* MEMP_MEM_MALLOC */
  61358. SYS_ARCH_PROTECT(old_level);
  61359. 80190b4: f00c ff94 bl 8025fe0 <sys_arch_protect>
  61360. 80190b8: 60f8 str r0, [r7, #12]
  61361. memp = *desc->tab;
  61362. 80190ba: 687b ldr r3, [r7, #4]
  61363. 80190bc: 68db ldr r3, [r3, #12]
  61364. 80190be: 681b ldr r3, [r3, #0]
  61365. 80190c0: 60bb str r3, [r7, #8]
  61366. #endif /* MEMP_MEM_MALLOC */
  61367. if (memp != NULL) {
  61368. 80190c2: 68bb ldr r3, [r7, #8]
  61369. 80190c4: 2b00 cmp r3, #0
  61370. 80190c6: d015 beq.n 80190f4 <do_memp_malloc_pool+0x48>
  61371. #if !MEMP_MEM_MALLOC
  61372. #if MEMP_OVERFLOW_CHECK == 1
  61373. memp_overflow_check_element(memp, desc);
  61374. #endif /* MEMP_OVERFLOW_CHECK */
  61375. *desc->tab = memp->next;
  61376. 80190c8: 687b ldr r3, [r7, #4]
  61377. 80190ca: 68db ldr r3, [r3, #12]
  61378. 80190cc: 68ba ldr r2, [r7, #8]
  61379. 80190ce: 6812 ldr r2, [r2, #0]
  61380. 80190d0: 601a str r2, [r3, #0]
  61381. memp->line = line;
  61382. #if MEMP_MEM_MALLOC
  61383. memp_overflow_init_element(memp, desc);
  61384. #endif /* MEMP_MEM_MALLOC */
  61385. #endif /* MEMP_OVERFLOW_CHECK */
  61386. LWIP_ASSERT("memp_malloc: memp properly aligned",
  61387. 80190d2: 68bb ldr r3, [r7, #8]
  61388. 80190d4: f003 0303 and.w r3, r3, #3
  61389. 80190d8: 2b00 cmp r3, #0
  61390. 80190da: d006 beq.n 80190ea <do_memp_malloc_pool+0x3e>
  61391. 80190dc: 4b09 ldr r3, [pc, #36] @ (8019104 <do_memp_malloc_pool+0x58>)
  61392. 80190de: f44f 728c mov.w r2, #280 @ 0x118
  61393. 80190e2: 4909 ldr r1, [pc, #36] @ (8019108 <do_memp_malloc_pool+0x5c>)
  61394. 80190e4: 4809 ldr r0, [pc, #36] @ (801910c <do_memp_malloc_pool+0x60>)
  61395. 80190e6: f010 fa11 bl 802950c <iprintf>
  61396. desc->stats->used++;
  61397. if (desc->stats->used > desc->stats->max) {
  61398. desc->stats->max = desc->stats->used;
  61399. }
  61400. #endif
  61401. SYS_ARCH_UNPROTECT(old_level);
  61402. 80190ea: 68f8 ldr r0, [r7, #12]
  61403. 80190ec: f00c ff86 bl 8025ffc <sys_arch_unprotect>
  61404. /* cast through u8_t* to get rid of alignment warnings */
  61405. return ((u8_t *)memp + MEMP_SIZE);
  61406. 80190f0: 68bb ldr r3, [r7, #8]
  61407. 80190f2: e003 b.n 80190fc <do_memp_malloc_pool+0x50>
  61408. } else {
  61409. #if MEMP_STATS
  61410. desc->stats->err++;
  61411. #endif
  61412. SYS_ARCH_UNPROTECT(old_level);
  61413. 80190f4: 68f8 ldr r0, [r7, #12]
  61414. 80190f6: f00c ff81 bl 8025ffc <sys_arch_unprotect>
  61415. LWIP_DEBUGF(MEMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("memp_malloc: out of memory in pool %s\n", desc->desc));
  61416. }
  61417. return NULL;
  61418. 80190fa: 2300 movs r3, #0
  61419. }
  61420. 80190fc: 4618 mov r0, r3
  61421. 80190fe: 3710 adds r7, #16
  61422. 8019100: 46bd mov sp, r7
  61423. 8019102: bd80 pop {r7, pc}
  61424. 8019104: 0802d920 .word 0x0802d920
  61425. 8019108: 0802d950 .word 0x0802d950
  61426. 801910c: 0802d974 .word 0x0802d974
  61427. 08019110 <memp_malloc_pool>:
  61428. #if !MEMP_OVERFLOW_CHECK
  61429. memp_malloc_pool(const struct memp_desc *desc)
  61430. #else
  61431. memp_malloc_pool_fn(const struct memp_desc *desc, const char *file, const int line)
  61432. #endif
  61433. {
  61434. 8019110: b580 push {r7, lr}
  61435. 8019112: b082 sub sp, #8
  61436. 8019114: af00 add r7, sp, #0
  61437. 8019116: 6078 str r0, [r7, #4]
  61438. LWIP_ASSERT("invalid pool desc", desc != NULL);
  61439. 8019118: 687b ldr r3, [r7, #4]
  61440. 801911a: 2b00 cmp r3, #0
  61441. 801911c: d106 bne.n 801912c <memp_malloc_pool+0x1c>
  61442. 801911e: 4b0a ldr r3, [pc, #40] @ (8019148 <memp_malloc_pool+0x38>)
  61443. 8019120: f44f 729e mov.w r2, #316 @ 0x13c
  61444. 8019124: 4909 ldr r1, [pc, #36] @ (801914c <memp_malloc_pool+0x3c>)
  61445. 8019126: 480a ldr r0, [pc, #40] @ (8019150 <memp_malloc_pool+0x40>)
  61446. 8019128: f010 f9f0 bl 802950c <iprintf>
  61447. if (desc == NULL) {
  61448. 801912c: 687b ldr r3, [r7, #4]
  61449. 801912e: 2b00 cmp r3, #0
  61450. 8019130: d101 bne.n 8019136 <memp_malloc_pool+0x26>
  61451. return NULL;
  61452. 8019132: 2300 movs r3, #0
  61453. 8019134: e003 b.n 801913e <memp_malloc_pool+0x2e>
  61454. }
  61455. #if !MEMP_OVERFLOW_CHECK
  61456. return do_memp_malloc_pool(desc);
  61457. 8019136: 6878 ldr r0, [r7, #4]
  61458. 8019138: f7ff ffb8 bl 80190ac <do_memp_malloc_pool>
  61459. 801913c: 4603 mov r3, r0
  61460. #else
  61461. return do_memp_malloc_pool_fn(desc, file, line);
  61462. #endif
  61463. }
  61464. 801913e: 4618 mov r0, r3
  61465. 8019140: 3708 adds r7, #8
  61466. 8019142: 46bd mov sp, r7
  61467. 8019144: bd80 pop {r7, pc}
  61468. 8019146: bf00 nop
  61469. 8019148: 0802d920 .word 0x0802d920
  61470. 801914c: 0802d99c .word 0x0802d99c
  61471. 8019150: 0802d974 .word 0x0802d974
  61472. 08019154 <memp_malloc>:
  61473. #if !MEMP_OVERFLOW_CHECK
  61474. memp_malloc(memp_t type)
  61475. #else
  61476. memp_malloc_fn(memp_t type, const char *file, const int line)
  61477. #endif
  61478. {
  61479. 8019154: b580 push {r7, lr}
  61480. 8019156: b084 sub sp, #16
  61481. 8019158: af00 add r7, sp, #0
  61482. 801915a: 4603 mov r3, r0
  61483. 801915c: 71fb strb r3, [r7, #7]
  61484. void *memp;
  61485. LWIP_ERROR("memp_malloc: type < MEMP_MAX", (type < MEMP_MAX), return NULL;);
  61486. 801915e: 79fb ldrb r3, [r7, #7]
  61487. 8019160: 2b0c cmp r3, #12
  61488. 8019162: d908 bls.n 8019176 <memp_malloc+0x22>
  61489. 8019164: 4b0a ldr r3, [pc, #40] @ (8019190 <memp_malloc+0x3c>)
  61490. 8019166: f240 1257 movw r2, #343 @ 0x157
  61491. 801916a: 490a ldr r1, [pc, #40] @ (8019194 <memp_malloc+0x40>)
  61492. 801916c: 480a ldr r0, [pc, #40] @ (8019198 <memp_malloc+0x44>)
  61493. 801916e: f010 f9cd bl 802950c <iprintf>
  61494. 8019172: 2300 movs r3, #0
  61495. 8019174: e008 b.n 8019188 <memp_malloc+0x34>
  61496. #if MEMP_OVERFLOW_CHECK >= 2
  61497. memp_overflow_check_all();
  61498. #endif /* MEMP_OVERFLOW_CHECK >= 2 */
  61499. #if !MEMP_OVERFLOW_CHECK
  61500. memp = do_memp_malloc_pool(memp_pools[type]);
  61501. 8019176: 79fb ldrb r3, [r7, #7]
  61502. 8019178: 4a08 ldr r2, [pc, #32] @ (801919c <memp_malloc+0x48>)
  61503. 801917a: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  61504. 801917e: 4618 mov r0, r3
  61505. 8019180: f7ff ff94 bl 80190ac <do_memp_malloc_pool>
  61506. 8019184: 60f8 str r0, [r7, #12]
  61507. #else
  61508. memp = do_memp_malloc_pool_fn(memp_pools[type], file, line);
  61509. #endif
  61510. return memp;
  61511. 8019186: 68fb ldr r3, [r7, #12]
  61512. }
  61513. 8019188: 4618 mov r0, r3
  61514. 801918a: 3710 adds r7, #16
  61515. 801918c: 46bd mov sp, r7
  61516. 801918e: bd80 pop {r7, pc}
  61517. 8019190: 0802d920 .word 0x0802d920
  61518. 8019194: 0802d9b0 .word 0x0802d9b0
  61519. 8019198: 0802d974 .word 0x0802d974
  61520. 801919c: 08030720 .word 0x08030720
  61521. 080191a0 <do_memp_free_pool>:
  61522. static void
  61523. do_memp_free_pool(const struct memp_desc *desc, void *mem)
  61524. {
  61525. 80191a0: b580 push {r7, lr}
  61526. 80191a2: b084 sub sp, #16
  61527. 80191a4: af00 add r7, sp, #0
  61528. 80191a6: 6078 str r0, [r7, #4]
  61529. 80191a8: 6039 str r1, [r7, #0]
  61530. struct memp *memp;
  61531. SYS_ARCH_DECL_PROTECT(old_level);
  61532. LWIP_ASSERT("memp_free: mem properly aligned",
  61533. 80191aa: 683b ldr r3, [r7, #0]
  61534. 80191ac: f003 0303 and.w r3, r3, #3
  61535. 80191b0: 2b00 cmp r3, #0
  61536. 80191b2: d006 beq.n 80191c2 <do_memp_free_pool+0x22>
  61537. 80191b4: 4b0d ldr r3, [pc, #52] @ (80191ec <do_memp_free_pool+0x4c>)
  61538. 80191b6: f44f 72b6 mov.w r2, #364 @ 0x16c
  61539. 80191ba: 490d ldr r1, [pc, #52] @ (80191f0 <do_memp_free_pool+0x50>)
  61540. 80191bc: 480d ldr r0, [pc, #52] @ (80191f4 <do_memp_free_pool+0x54>)
  61541. 80191be: f010 f9a5 bl 802950c <iprintf>
  61542. ((mem_ptr_t)mem % MEM_ALIGNMENT) == 0);
  61543. /* cast through void* to get rid of alignment warnings */
  61544. memp = (struct memp *)(void *)((u8_t *)mem - MEMP_SIZE);
  61545. 80191c2: 683b ldr r3, [r7, #0]
  61546. 80191c4: 60fb str r3, [r7, #12]
  61547. SYS_ARCH_PROTECT(old_level);
  61548. 80191c6: f00c ff0b bl 8025fe0 <sys_arch_protect>
  61549. 80191ca: 60b8 str r0, [r7, #8]
  61550. #if MEMP_MEM_MALLOC
  61551. LWIP_UNUSED_ARG(desc);
  61552. SYS_ARCH_UNPROTECT(old_level);
  61553. mem_free(memp);
  61554. #else /* MEMP_MEM_MALLOC */
  61555. memp->next = *desc->tab;
  61556. 80191cc: 687b ldr r3, [r7, #4]
  61557. 80191ce: 68db ldr r3, [r3, #12]
  61558. 80191d0: 681a ldr r2, [r3, #0]
  61559. 80191d2: 68fb ldr r3, [r7, #12]
  61560. 80191d4: 601a str r2, [r3, #0]
  61561. *desc->tab = memp;
  61562. 80191d6: 687b ldr r3, [r7, #4]
  61563. 80191d8: 68db ldr r3, [r3, #12]
  61564. 80191da: 68fa ldr r2, [r7, #12]
  61565. 80191dc: 601a str r2, [r3, #0]
  61566. #if MEMP_SANITY_CHECK
  61567. LWIP_ASSERT("memp sanity", memp_sanity(desc));
  61568. #endif /* MEMP_SANITY_CHECK */
  61569. SYS_ARCH_UNPROTECT(old_level);
  61570. 80191de: 68b8 ldr r0, [r7, #8]
  61571. 80191e0: f00c ff0c bl 8025ffc <sys_arch_unprotect>
  61572. #endif /* !MEMP_MEM_MALLOC */
  61573. }
  61574. 80191e4: bf00 nop
  61575. 80191e6: 3710 adds r7, #16
  61576. 80191e8: 46bd mov sp, r7
  61577. 80191ea: bd80 pop {r7, pc}
  61578. 80191ec: 0802d920 .word 0x0802d920
  61579. 80191f0: 0802d9d0 .word 0x0802d9d0
  61580. 80191f4: 0802d974 .word 0x0802d974
  61581. 080191f8 <memp_free_pool>:
  61582. * @param desc the pool where to put mem
  61583. * @param mem the memp element to free
  61584. */
  61585. void
  61586. memp_free_pool(const struct memp_desc *desc, void *mem)
  61587. {
  61588. 80191f8: b580 push {r7, lr}
  61589. 80191fa: b082 sub sp, #8
  61590. 80191fc: af00 add r7, sp, #0
  61591. 80191fe: 6078 str r0, [r7, #4]
  61592. 8019200: 6039 str r1, [r7, #0]
  61593. LWIP_ASSERT("invalid pool desc", desc != NULL);
  61594. 8019202: 687b ldr r3, [r7, #4]
  61595. 8019204: 2b00 cmp r3, #0
  61596. 8019206: d106 bne.n 8019216 <memp_free_pool+0x1e>
  61597. 8019208: 4b0a ldr r3, [pc, #40] @ (8019234 <memp_free_pool+0x3c>)
  61598. 801920a: f240 1295 movw r2, #405 @ 0x195
  61599. 801920e: 490a ldr r1, [pc, #40] @ (8019238 <memp_free_pool+0x40>)
  61600. 8019210: 480a ldr r0, [pc, #40] @ (801923c <memp_free_pool+0x44>)
  61601. 8019212: f010 f97b bl 802950c <iprintf>
  61602. if ((desc == NULL) || (mem == NULL)) {
  61603. 8019216: 687b ldr r3, [r7, #4]
  61604. 8019218: 2b00 cmp r3, #0
  61605. 801921a: d007 beq.n 801922c <memp_free_pool+0x34>
  61606. 801921c: 683b ldr r3, [r7, #0]
  61607. 801921e: 2b00 cmp r3, #0
  61608. 8019220: d004 beq.n 801922c <memp_free_pool+0x34>
  61609. return;
  61610. }
  61611. do_memp_free_pool(desc, mem);
  61612. 8019222: 6839 ldr r1, [r7, #0]
  61613. 8019224: 6878 ldr r0, [r7, #4]
  61614. 8019226: f7ff ffbb bl 80191a0 <do_memp_free_pool>
  61615. 801922a: e000 b.n 801922e <memp_free_pool+0x36>
  61616. return;
  61617. 801922c: bf00 nop
  61618. }
  61619. 801922e: 3708 adds r7, #8
  61620. 8019230: 46bd mov sp, r7
  61621. 8019232: bd80 pop {r7, pc}
  61622. 8019234: 0802d920 .word 0x0802d920
  61623. 8019238: 0802d99c .word 0x0802d99c
  61624. 801923c: 0802d974 .word 0x0802d974
  61625. 08019240 <memp_free>:
  61626. * @param type the pool where to put mem
  61627. * @param mem the memp element to free
  61628. */
  61629. void
  61630. memp_free(memp_t type, void *mem)
  61631. {
  61632. 8019240: b580 push {r7, lr}
  61633. 8019242: b082 sub sp, #8
  61634. 8019244: af00 add r7, sp, #0
  61635. 8019246: 4603 mov r3, r0
  61636. 8019248: 6039 str r1, [r7, #0]
  61637. 801924a: 71fb strb r3, [r7, #7]
  61638. #ifdef LWIP_HOOK_MEMP_AVAILABLE
  61639. struct memp *old_first;
  61640. #endif
  61641. LWIP_ERROR("memp_free: type < MEMP_MAX", (type < MEMP_MAX), return;);
  61642. 801924c: 79fb ldrb r3, [r7, #7]
  61643. 801924e: 2b0c cmp r3, #12
  61644. 8019250: d907 bls.n 8019262 <memp_free+0x22>
  61645. 8019252: 4b0c ldr r3, [pc, #48] @ (8019284 <memp_free+0x44>)
  61646. 8019254: f44f 72d5 mov.w r2, #426 @ 0x1aa
  61647. 8019258: 490b ldr r1, [pc, #44] @ (8019288 <memp_free+0x48>)
  61648. 801925a: 480c ldr r0, [pc, #48] @ (801928c <memp_free+0x4c>)
  61649. 801925c: f010 f956 bl 802950c <iprintf>
  61650. 8019260: e00c b.n 801927c <memp_free+0x3c>
  61651. if (mem == NULL) {
  61652. 8019262: 683b ldr r3, [r7, #0]
  61653. 8019264: 2b00 cmp r3, #0
  61654. 8019266: d008 beq.n 801927a <memp_free+0x3a>
  61655. #ifdef LWIP_HOOK_MEMP_AVAILABLE
  61656. old_first = *memp_pools[type]->tab;
  61657. #endif
  61658. do_memp_free_pool(memp_pools[type], mem);
  61659. 8019268: 79fb ldrb r3, [r7, #7]
  61660. 801926a: 4a09 ldr r2, [pc, #36] @ (8019290 <memp_free+0x50>)
  61661. 801926c: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  61662. 8019270: 6839 ldr r1, [r7, #0]
  61663. 8019272: 4618 mov r0, r3
  61664. 8019274: f7ff ff94 bl 80191a0 <do_memp_free_pool>
  61665. 8019278: e000 b.n 801927c <memp_free+0x3c>
  61666. return;
  61667. 801927a: bf00 nop
  61668. #ifdef LWIP_HOOK_MEMP_AVAILABLE
  61669. if (old_first == NULL) {
  61670. LWIP_HOOK_MEMP_AVAILABLE(type);
  61671. }
  61672. #endif
  61673. }
  61674. 801927c: 3708 adds r7, #8
  61675. 801927e: 46bd mov sp, r7
  61676. 8019280: bd80 pop {r7, pc}
  61677. 8019282: bf00 nop
  61678. 8019284: 0802d920 .word 0x0802d920
  61679. 8019288: 0802d9f0 .word 0x0802d9f0
  61680. 801928c: 0802d974 .word 0x0802d974
  61681. 8019290: 08030720 .word 0x08030720
  61682. 08019294 <netif_init>:
  61683. }
  61684. #endif /* LWIP_HAVE_LOOPIF */
  61685. void
  61686. netif_init(void)
  61687. {
  61688. 8019294: b480 push {r7}
  61689. 8019296: af00 add r7, sp, #0
  61690. netif_set_link_up(&loop_netif);
  61691. netif_set_up(&loop_netif);
  61692. #endif /* LWIP_HAVE_LOOPIF */
  61693. }
  61694. 8019298: bf00 nop
  61695. 801929a: 46bd mov sp, r7
  61696. 801929c: f85d 7b04 ldr.w r7, [sp], #4
  61697. 80192a0: 4770 bx lr
  61698. ...
  61699. 080192a4 <netif_add>:
  61700. netif_add(struct netif *netif,
  61701. #if LWIP_IPV4
  61702. const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw,
  61703. #endif /* LWIP_IPV4 */
  61704. void *state, netif_init_fn init, netif_input_fn input)
  61705. {
  61706. 80192a4: b580 push {r7, lr}
  61707. 80192a6: b086 sub sp, #24
  61708. 80192a8: af00 add r7, sp, #0
  61709. 80192aa: 60f8 str r0, [r7, #12]
  61710. 80192ac: 60b9 str r1, [r7, #8]
  61711. 80192ae: 607a str r2, [r7, #4]
  61712. 80192b0: 603b str r3, [r7, #0]
  61713. #if LWIP_IPV6
  61714. s8_t i;
  61715. #endif
  61716. LWIP_ASSERT_CORE_LOCKED();
  61717. 80192b2: f7f6 fedd bl 8010070 <sys_check_core_locking>
  61718. LWIP_ASSERT("single netif already set", 0);
  61719. return NULL;
  61720. }
  61721. #endif
  61722. LWIP_ERROR("netif_add: invalid netif", netif != NULL, return NULL);
  61723. 80192b6: 68fb ldr r3, [r7, #12]
  61724. 80192b8: 2b00 cmp r3, #0
  61725. 80192ba: d108 bne.n 80192ce <netif_add+0x2a>
  61726. 80192bc: 4b5b ldr r3, [pc, #364] @ (801942c <netif_add+0x188>)
  61727. 80192be: f240 1227 movw r2, #295 @ 0x127
  61728. 80192c2: 495b ldr r1, [pc, #364] @ (8019430 <netif_add+0x18c>)
  61729. 80192c4: 485b ldr r0, [pc, #364] @ (8019434 <netif_add+0x190>)
  61730. 80192c6: f010 f921 bl 802950c <iprintf>
  61731. 80192ca: 2300 movs r3, #0
  61732. 80192cc: e0a9 b.n 8019422 <netif_add+0x17e>
  61733. LWIP_ERROR("netif_add: No init function given", init != NULL, return NULL);
  61734. 80192ce: 6a7b ldr r3, [r7, #36] @ 0x24
  61735. 80192d0: 2b00 cmp r3, #0
  61736. 80192d2: d108 bne.n 80192e6 <netif_add+0x42>
  61737. 80192d4: 4b55 ldr r3, [pc, #340] @ (801942c <netif_add+0x188>)
  61738. 80192d6: f44f 7294 mov.w r2, #296 @ 0x128
  61739. 80192da: 4957 ldr r1, [pc, #348] @ (8019438 <netif_add+0x194>)
  61740. 80192dc: 4855 ldr r0, [pc, #340] @ (8019434 <netif_add+0x190>)
  61741. 80192de: f010 f915 bl 802950c <iprintf>
  61742. 80192e2: 2300 movs r3, #0
  61743. 80192e4: e09d b.n 8019422 <netif_add+0x17e>
  61744. #if LWIP_IPV4
  61745. if (ipaddr == NULL) {
  61746. 80192e6: 68bb ldr r3, [r7, #8]
  61747. 80192e8: 2b00 cmp r3, #0
  61748. 80192ea: d101 bne.n 80192f0 <netif_add+0x4c>
  61749. ipaddr = ip_2_ip4(IP4_ADDR_ANY);
  61750. 80192ec: 4b53 ldr r3, [pc, #332] @ (801943c <netif_add+0x198>)
  61751. 80192ee: 60bb str r3, [r7, #8]
  61752. }
  61753. if (netmask == NULL) {
  61754. 80192f0: 687b ldr r3, [r7, #4]
  61755. 80192f2: 2b00 cmp r3, #0
  61756. 80192f4: d101 bne.n 80192fa <netif_add+0x56>
  61757. netmask = ip_2_ip4(IP4_ADDR_ANY);
  61758. 80192f6: 4b51 ldr r3, [pc, #324] @ (801943c <netif_add+0x198>)
  61759. 80192f8: 607b str r3, [r7, #4]
  61760. }
  61761. if (gw == NULL) {
  61762. 80192fa: 683b ldr r3, [r7, #0]
  61763. 80192fc: 2b00 cmp r3, #0
  61764. 80192fe: d101 bne.n 8019304 <netif_add+0x60>
  61765. gw = ip_2_ip4(IP4_ADDR_ANY);
  61766. 8019300: 4b4e ldr r3, [pc, #312] @ (801943c <netif_add+0x198>)
  61767. 8019302: 603b str r3, [r7, #0]
  61768. }
  61769. /* reset new interface configuration state */
  61770. ip_addr_set_zero_ip4(&netif->ip_addr);
  61771. 8019304: 68fb ldr r3, [r7, #12]
  61772. 8019306: 2200 movs r2, #0
  61773. 8019308: 605a str r2, [r3, #4]
  61774. ip_addr_set_zero_ip4(&netif->netmask);
  61775. 801930a: 68fb ldr r3, [r7, #12]
  61776. 801930c: 2200 movs r2, #0
  61777. 801930e: 609a str r2, [r3, #8]
  61778. ip_addr_set_zero_ip4(&netif->gw);
  61779. 8019310: 68fb ldr r3, [r7, #12]
  61780. 8019312: 2200 movs r2, #0
  61781. 8019314: 60da str r2, [r3, #12]
  61782. netif->output = netif_null_output_ip4;
  61783. 8019316: 68fb ldr r3, [r7, #12]
  61784. 8019318: 4a49 ldr r2, [pc, #292] @ (8019440 <netif_add+0x19c>)
  61785. 801931a: 615a str r2, [r3, #20]
  61786. #endif /* LWIP_IPV6_ADDRESS_LIFETIMES */
  61787. }
  61788. netif->output_ip6 = netif_null_output_ip6;
  61789. #endif /* LWIP_IPV6 */
  61790. NETIF_SET_CHECKSUM_CTRL(netif, NETIF_CHECKSUM_ENABLE_ALL);
  61791. netif->mtu = 0;
  61792. 801931c: 68fb ldr r3, [r7, #12]
  61793. 801931e: 2200 movs r2, #0
  61794. 8019320: 851a strh r2, [r3, #40] @ 0x28
  61795. netif->flags = 0;
  61796. 8019322: 68fb ldr r3, [r7, #12]
  61797. 8019324: 2200 movs r2, #0
  61798. 8019326: f883 2031 strb.w r2, [r3, #49] @ 0x31
  61799. #ifdef netif_get_client_data
  61800. memset(netif->client_data, 0, sizeof(netif->client_data));
  61801. 801932a: 68fb ldr r3, [r7, #12]
  61802. 801932c: 3324 adds r3, #36 @ 0x24
  61803. 801932e: 2204 movs r2, #4
  61804. 8019330: 2100 movs r1, #0
  61805. 8019332: 4618 mov r0, r3
  61806. 8019334: f010 fa7c bl 8029830 <memset>
  61807. #endif /* LWIP_IPV6 */
  61808. #if LWIP_NETIF_STATUS_CALLBACK
  61809. netif->status_callback = NULL;
  61810. #endif /* LWIP_NETIF_STATUS_CALLBACK */
  61811. #if LWIP_NETIF_LINK_CALLBACK
  61812. netif->link_callback = NULL;
  61813. 8019338: 68fb ldr r3, [r7, #12]
  61814. 801933a: 2200 movs r2, #0
  61815. 801933c: 61da str r2, [r3, #28]
  61816. netif->loop_first = NULL;
  61817. netif->loop_last = NULL;
  61818. #endif /* ENABLE_LOOPBACK */
  61819. /* remember netif specific state information data */
  61820. netif->state = state;
  61821. 801933e: 68fb ldr r3, [r7, #12]
  61822. 8019340: 6a3a ldr r2, [r7, #32]
  61823. 8019342: 621a str r2, [r3, #32]
  61824. netif->num = netif_num;
  61825. 8019344: 4b3f ldr r3, [pc, #252] @ (8019444 <netif_add+0x1a0>)
  61826. 8019346: 781a ldrb r2, [r3, #0]
  61827. 8019348: 68fb ldr r3, [r7, #12]
  61828. 801934a: f883 2034 strb.w r2, [r3, #52] @ 0x34
  61829. netif->input = input;
  61830. 801934e: 68fb ldr r3, [r7, #12]
  61831. 8019350: 6aba ldr r2, [r7, #40] @ 0x28
  61832. 8019352: 611a str r2, [r3, #16]
  61833. #if ENABLE_LOOPBACK && LWIP_LOOPBACK_MAX_PBUFS
  61834. netif->loop_cnt_current = 0;
  61835. #endif /* ENABLE_LOOPBACK && LWIP_LOOPBACK_MAX_PBUFS */
  61836. #if LWIP_IPV4
  61837. netif_set_addr(netif, ipaddr, netmask, gw);
  61838. 8019354: 683b ldr r3, [r7, #0]
  61839. 8019356: 687a ldr r2, [r7, #4]
  61840. 8019358: 68b9 ldr r1, [r7, #8]
  61841. 801935a: 68f8 ldr r0, [r7, #12]
  61842. 801935c: f000 f914 bl 8019588 <netif_set_addr>
  61843. #endif /* LWIP_IPV4 */
  61844. /* call user specified initialization function for netif */
  61845. if (init(netif) != ERR_OK) {
  61846. 8019360: 6a7b ldr r3, [r7, #36] @ 0x24
  61847. 8019362: 68f8 ldr r0, [r7, #12]
  61848. 8019364: 4798 blx r3
  61849. 8019366: 4603 mov r3, r0
  61850. 8019368: 2b00 cmp r3, #0
  61851. 801936a: d001 beq.n 8019370 <netif_add+0xcc>
  61852. return NULL;
  61853. 801936c: 2300 movs r3, #0
  61854. 801936e: e058 b.n 8019422 <netif_add+0x17e>
  61855. */
  61856. {
  61857. struct netif *netif2;
  61858. int num_netifs;
  61859. do {
  61860. if (netif->num == 255) {
  61861. 8019370: 68fb ldr r3, [r7, #12]
  61862. 8019372: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  61863. 8019376: 2bff cmp r3, #255 @ 0xff
  61864. 8019378: d103 bne.n 8019382 <netif_add+0xde>
  61865. netif->num = 0;
  61866. 801937a: 68fb ldr r3, [r7, #12]
  61867. 801937c: 2200 movs r2, #0
  61868. 801937e: f883 2034 strb.w r2, [r3, #52] @ 0x34
  61869. }
  61870. num_netifs = 0;
  61871. 8019382: 2300 movs r3, #0
  61872. 8019384: 613b str r3, [r7, #16]
  61873. for (netif2 = netif_list; netif2 != NULL; netif2 = netif2->next) {
  61874. 8019386: 4b30 ldr r3, [pc, #192] @ (8019448 <netif_add+0x1a4>)
  61875. 8019388: 681b ldr r3, [r3, #0]
  61876. 801938a: 617b str r3, [r7, #20]
  61877. 801938c: e02b b.n 80193e6 <netif_add+0x142>
  61878. LWIP_ASSERT("netif already added", netif2 != netif);
  61879. 801938e: 697a ldr r2, [r7, #20]
  61880. 8019390: 68fb ldr r3, [r7, #12]
  61881. 8019392: 429a cmp r2, r3
  61882. 8019394: d106 bne.n 80193a4 <netif_add+0x100>
  61883. 8019396: 4b25 ldr r3, [pc, #148] @ (801942c <netif_add+0x188>)
  61884. 8019398: f240 128b movw r2, #395 @ 0x18b
  61885. 801939c: 492b ldr r1, [pc, #172] @ (801944c <netif_add+0x1a8>)
  61886. 801939e: 4825 ldr r0, [pc, #148] @ (8019434 <netif_add+0x190>)
  61887. 80193a0: f010 f8b4 bl 802950c <iprintf>
  61888. num_netifs++;
  61889. 80193a4: 693b ldr r3, [r7, #16]
  61890. 80193a6: 3301 adds r3, #1
  61891. 80193a8: 613b str r3, [r7, #16]
  61892. LWIP_ASSERT("too many netifs, max. supported number is 255", num_netifs <= 255);
  61893. 80193aa: 693b ldr r3, [r7, #16]
  61894. 80193ac: 2bff cmp r3, #255 @ 0xff
  61895. 80193ae: dd06 ble.n 80193be <netif_add+0x11a>
  61896. 80193b0: 4b1e ldr r3, [pc, #120] @ (801942c <netif_add+0x188>)
  61897. 80193b2: f240 128d movw r2, #397 @ 0x18d
  61898. 80193b6: 4926 ldr r1, [pc, #152] @ (8019450 <netif_add+0x1ac>)
  61899. 80193b8: 481e ldr r0, [pc, #120] @ (8019434 <netif_add+0x190>)
  61900. 80193ba: f010 f8a7 bl 802950c <iprintf>
  61901. if (netif2->num == netif->num) {
  61902. 80193be: 697b ldr r3, [r7, #20]
  61903. 80193c0: f893 2034 ldrb.w r2, [r3, #52] @ 0x34
  61904. 80193c4: 68fb ldr r3, [r7, #12]
  61905. 80193c6: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  61906. 80193ca: 429a cmp r2, r3
  61907. 80193cc: d108 bne.n 80193e0 <netif_add+0x13c>
  61908. netif->num++;
  61909. 80193ce: 68fb ldr r3, [r7, #12]
  61910. 80193d0: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  61911. 80193d4: 3301 adds r3, #1
  61912. 80193d6: b2da uxtb r2, r3
  61913. 80193d8: 68fb ldr r3, [r7, #12]
  61914. 80193da: f883 2034 strb.w r2, [r3, #52] @ 0x34
  61915. break;
  61916. 80193de: e005 b.n 80193ec <netif_add+0x148>
  61917. for (netif2 = netif_list; netif2 != NULL; netif2 = netif2->next) {
  61918. 80193e0: 697b ldr r3, [r7, #20]
  61919. 80193e2: 681b ldr r3, [r3, #0]
  61920. 80193e4: 617b str r3, [r7, #20]
  61921. 80193e6: 697b ldr r3, [r7, #20]
  61922. 80193e8: 2b00 cmp r3, #0
  61923. 80193ea: d1d0 bne.n 801938e <netif_add+0xea>
  61924. }
  61925. }
  61926. } while (netif2 != NULL);
  61927. 80193ec: 697b ldr r3, [r7, #20]
  61928. 80193ee: 2b00 cmp r3, #0
  61929. 80193f0: d1be bne.n 8019370 <netif_add+0xcc>
  61930. }
  61931. if (netif->num == 254) {
  61932. 80193f2: 68fb ldr r3, [r7, #12]
  61933. 80193f4: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  61934. 80193f8: 2bfe cmp r3, #254 @ 0xfe
  61935. 80193fa: d103 bne.n 8019404 <netif_add+0x160>
  61936. netif_num = 0;
  61937. 80193fc: 4b11 ldr r3, [pc, #68] @ (8019444 <netif_add+0x1a0>)
  61938. 80193fe: 2200 movs r2, #0
  61939. 8019400: 701a strb r2, [r3, #0]
  61940. 8019402: e006 b.n 8019412 <netif_add+0x16e>
  61941. } else {
  61942. netif_num = (u8_t)(netif->num + 1);
  61943. 8019404: 68fb ldr r3, [r7, #12]
  61944. 8019406: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  61945. 801940a: 3301 adds r3, #1
  61946. 801940c: b2da uxtb r2, r3
  61947. 801940e: 4b0d ldr r3, [pc, #52] @ (8019444 <netif_add+0x1a0>)
  61948. 8019410: 701a strb r2, [r3, #0]
  61949. }
  61950. /* add this netif to the list */
  61951. netif->next = netif_list;
  61952. 8019412: 4b0d ldr r3, [pc, #52] @ (8019448 <netif_add+0x1a4>)
  61953. 8019414: 681a ldr r2, [r3, #0]
  61954. 8019416: 68fb ldr r3, [r7, #12]
  61955. 8019418: 601a str r2, [r3, #0]
  61956. netif_list = netif;
  61957. 801941a: 4a0b ldr r2, [pc, #44] @ (8019448 <netif_add+0x1a4>)
  61958. 801941c: 68fb ldr r3, [r7, #12]
  61959. 801941e: 6013 str r3, [r2, #0]
  61960. #endif /* LWIP_IPV4 */
  61961. LWIP_DEBUGF(NETIF_DEBUG, ("\n"));
  61962. netif_invoke_ext_callback(netif, LWIP_NSC_NETIF_ADDED, NULL);
  61963. return netif;
  61964. 8019420: 68fb ldr r3, [r7, #12]
  61965. }
  61966. 8019422: 4618 mov r0, r3
  61967. 8019424: 3718 adds r7, #24
  61968. 8019426: 46bd mov sp, r7
  61969. 8019428: bd80 pop {r7, pc}
  61970. 801942a: bf00 nop
  61971. 801942c: 0802da0c .word 0x0802da0c
  61972. 8019430: 0802daa0 .word 0x0802daa0
  61973. 8019434: 0802da5c .word 0x0802da5c
  61974. 8019438: 0802dabc .word 0x0802dabc
  61975. 801943c: 080307a4 .word 0x080307a4
  61976. 8019440: 0801987f .word 0x0801987f
  61977. 8019444: 24029fe8 .word 0x24029fe8
  61978. 8019448: 24029fe0 .word 0x24029fe0
  61979. 801944c: 0802dae0 .word 0x0802dae0
  61980. 8019450: 0802daf4 .word 0x0802daf4
  61981. 08019454 <netif_do_ip_addr_changed>:
  61982. static void
  61983. netif_do_ip_addr_changed(const ip_addr_t *old_addr, const ip_addr_t *new_addr)
  61984. {
  61985. 8019454: b580 push {r7, lr}
  61986. 8019456: b082 sub sp, #8
  61987. 8019458: af00 add r7, sp, #0
  61988. 801945a: 6078 str r0, [r7, #4]
  61989. 801945c: 6039 str r1, [r7, #0]
  61990. #if LWIP_TCP
  61991. tcp_netif_ip_addr_changed(old_addr, new_addr);
  61992. 801945e: 6839 ldr r1, [r7, #0]
  61993. 8019460: 6878 ldr r0, [r7, #4]
  61994. 8019462: f002 fe6f bl 801c144 <tcp_netif_ip_addr_changed>
  61995. #endif /* LWIP_TCP */
  61996. #if LWIP_UDP
  61997. udp_netif_ip_addr_changed(old_addr, new_addr);
  61998. 8019466: 6839 ldr r1, [r7, #0]
  61999. 8019468: 6878 ldr r0, [r7, #4]
  62000. 801946a: f008 f82b bl 80214c4 <udp_netif_ip_addr_changed>
  62001. #endif /* LWIP_UDP */
  62002. #if LWIP_RAW
  62003. raw_netif_ip_addr_changed(old_addr, new_addr);
  62004. #endif /* LWIP_RAW */
  62005. }
  62006. 801946e: bf00 nop
  62007. 8019470: 3708 adds r7, #8
  62008. 8019472: 46bd mov sp, r7
  62009. 8019474: bd80 pop {r7, pc}
  62010. ...
  62011. 08019478 <netif_do_set_ipaddr>:
  62012. #if LWIP_IPV4
  62013. static int
  62014. netif_do_set_ipaddr(struct netif *netif, const ip4_addr_t *ipaddr, ip_addr_t *old_addr)
  62015. {
  62016. 8019478: b580 push {r7, lr}
  62017. 801947a: b086 sub sp, #24
  62018. 801947c: af00 add r7, sp, #0
  62019. 801947e: 60f8 str r0, [r7, #12]
  62020. 8019480: 60b9 str r1, [r7, #8]
  62021. 8019482: 607a str r2, [r7, #4]
  62022. LWIP_ASSERT("invalid pointer", ipaddr != NULL);
  62023. 8019484: 68bb ldr r3, [r7, #8]
  62024. 8019486: 2b00 cmp r3, #0
  62025. 8019488: d106 bne.n 8019498 <netif_do_set_ipaddr+0x20>
  62026. 801948a: 4b1d ldr r3, [pc, #116] @ (8019500 <netif_do_set_ipaddr+0x88>)
  62027. 801948c: f240 12cb movw r2, #459 @ 0x1cb
  62028. 8019490: 491c ldr r1, [pc, #112] @ (8019504 <netif_do_set_ipaddr+0x8c>)
  62029. 8019492: 481d ldr r0, [pc, #116] @ (8019508 <netif_do_set_ipaddr+0x90>)
  62030. 8019494: f010 f83a bl 802950c <iprintf>
  62031. LWIP_ASSERT("invalid pointer", old_addr != NULL);
  62032. 8019498: 687b ldr r3, [r7, #4]
  62033. 801949a: 2b00 cmp r3, #0
  62034. 801949c: d106 bne.n 80194ac <netif_do_set_ipaddr+0x34>
  62035. 801949e: 4b18 ldr r3, [pc, #96] @ (8019500 <netif_do_set_ipaddr+0x88>)
  62036. 80194a0: f44f 72e6 mov.w r2, #460 @ 0x1cc
  62037. 80194a4: 4917 ldr r1, [pc, #92] @ (8019504 <netif_do_set_ipaddr+0x8c>)
  62038. 80194a6: 4818 ldr r0, [pc, #96] @ (8019508 <netif_do_set_ipaddr+0x90>)
  62039. 80194a8: f010 f830 bl 802950c <iprintf>
  62040. /* address is actually being changed? */
  62041. if (ip4_addr_cmp(ipaddr, netif_ip4_addr(netif)) == 0) {
  62042. 80194ac: 68bb ldr r3, [r7, #8]
  62043. 80194ae: 681a ldr r2, [r3, #0]
  62044. 80194b0: 68fb ldr r3, [r7, #12]
  62045. 80194b2: 3304 adds r3, #4
  62046. 80194b4: 681b ldr r3, [r3, #0]
  62047. 80194b6: 429a cmp r2, r3
  62048. 80194b8: d01c beq.n 80194f4 <netif_do_set_ipaddr+0x7c>
  62049. ip_addr_t new_addr;
  62050. *ip_2_ip4(&new_addr) = *ipaddr;
  62051. 80194ba: 68bb ldr r3, [r7, #8]
  62052. 80194bc: 681b ldr r3, [r3, #0]
  62053. 80194be: 617b str r3, [r7, #20]
  62054. IP_SET_TYPE_VAL(new_addr, IPADDR_TYPE_V4);
  62055. ip_addr_copy(*old_addr, *netif_ip_addr4(netif));
  62056. 80194c0: 68fb ldr r3, [r7, #12]
  62057. 80194c2: 3304 adds r3, #4
  62058. 80194c4: 681a ldr r2, [r3, #0]
  62059. 80194c6: 687b ldr r3, [r7, #4]
  62060. 80194c8: 601a str r2, [r3, #0]
  62061. LWIP_DEBUGF(NETIF_DEBUG | LWIP_DBG_STATE, ("netif_set_ipaddr: netif address being changed\n"));
  62062. netif_do_ip_addr_changed(old_addr, &new_addr);
  62063. 80194ca: f107 0314 add.w r3, r7, #20
  62064. 80194ce: 4619 mov r1, r3
  62065. 80194d0: 6878 ldr r0, [r7, #4]
  62066. 80194d2: f7ff ffbf bl 8019454 <netif_do_ip_addr_changed>
  62067. mib2_remove_ip4(netif);
  62068. mib2_remove_route_ip4(0, netif);
  62069. /* set new IP address to netif */
  62070. ip4_addr_set(ip_2_ip4(&netif->ip_addr), ipaddr);
  62071. 80194d6: 68bb ldr r3, [r7, #8]
  62072. 80194d8: 2b00 cmp r3, #0
  62073. 80194da: d002 beq.n 80194e2 <netif_do_set_ipaddr+0x6a>
  62074. 80194dc: 68bb ldr r3, [r7, #8]
  62075. 80194de: 681b ldr r3, [r3, #0]
  62076. 80194e0: e000 b.n 80194e4 <netif_do_set_ipaddr+0x6c>
  62077. 80194e2: 2300 movs r3, #0
  62078. 80194e4: 68fa ldr r2, [r7, #12]
  62079. 80194e6: 6053 str r3, [r2, #4]
  62080. IP_SET_TYPE_VAL(netif->ip_addr, IPADDR_TYPE_V4);
  62081. mib2_add_ip4(netif);
  62082. mib2_add_route_ip4(0, netif);
  62083. netif_issue_reports(netif, NETIF_REPORT_TYPE_IPV4);
  62084. 80194e8: 2101 movs r1, #1
  62085. 80194ea: 68f8 ldr r0, [r7, #12]
  62086. 80194ec: f000 f8d6 bl 801969c <netif_issue_reports>
  62087. NETIF_STATUS_CALLBACK(netif);
  62088. return 1; /* address changed */
  62089. 80194f0: 2301 movs r3, #1
  62090. 80194f2: e000 b.n 80194f6 <netif_do_set_ipaddr+0x7e>
  62091. }
  62092. return 0; /* address unchanged */
  62093. 80194f4: 2300 movs r3, #0
  62094. }
  62095. 80194f6: 4618 mov r0, r3
  62096. 80194f8: 3718 adds r7, #24
  62097. 80194fa: 46bd mov sp, r7
  62098. 80194fc: bd80 pop {r7, pc}
  62099. 80194fe: bf00 nop
  62100. 8019500: 0802da0c .word 0x0802da0c
  62101. 8019504: 0802db24 .word 0x0802db24
  62102. 8019508: 0802da5c .word 0x0802da5c
  62103. 0801950c <netif_do_set_netmask>:
  62104. }
  62105. }
  62106. static int
  62107. netif_do_set_netmask(struct netif *netif, const ip4_addr_t *netmask, ip_addr_t *old_nm)
  62108. {
  62109. 801950c: b480 push {r7}
  62110. 801950e: b085 sub sp, #20
  62111. 8019510: af00 add r7, sp, #0
  62112. 8019512: 60f8 str r0, [r7, #12]
  62113. 8019514: 60b9 str r1, [r7, #8]
  62114. 8019516: 607a str r2, [r7, #4]
  62115. /* address is actually being changed? */
  62116. if (ip4_addr_cmp(netmask, netif_ip4_netmask(netif)) == 0) {
  62117. 8019518: 68bb ldr r3, [r7, #8]
  62118. 801951a: 681a ldr r2, [r3, #0]
  62119. 801951c: 68fb ldr r3, [r7, #12]
  62120. 801951e: 3308 adds r3, #8
  62121. 8019520: 681b ldr r3, [r3, #0]
  62122. 8019522: 429a cmp r2, r3
  62123. 8019524: d00a beq.n 801953c <netif_do_set_netmask+0x30>
  62124. #else
  62125. LWIP_UNUSED_ARG(old_nm);
  62126. #endif
  62127. mib2_remove_route_ip4(0, netif);
  62128. /* set new netmask to netif */
  62129. ip4_addr_set(ip_2_ip4(&netif->netmask), netmask);
  62130. 8019526: 68bb ldr r3, [r7, #8]
  62131. 8019528: 2b00 cmp r3, #0
  62132. 801952a: d002 beq.n 8019532 <netif_do_set_netmask+0x26>
  62133. 801952c: 68bb ldr r3, [r7, #8]
  62134. 801952e: 681b ldr r3, [r3, #0]
  62135. 8019530: e000 b.n 8019534 <netif_do_set_netmask+0x28>
  62136. 8019532: 2300 movs r3, #0
  62137. 8019534: 68fa ldr r2, [r7, #12]
  62138. 8019536: 6093 str r3, [r2, #8]
  62139. netif->name[0], netif->name[1],
  62140. ip4_addr1_16(netif_ip4_netmask(netif)),
  62141. ip4_addr2_16(netif_ip4_netmask(netif)),
  62142. ip4_addr3_16(netif_ip4_netmask(netif)),
  62143. ip4_addr4_16(netif_ip4_netmask(netif))));
  62144. return 1; /* netmask changed */
  62145. 8019538: 2301 movs r3, #1
  62146. 801953a: e000 b.n 801953e <netif_do_set_netmask+0x32>
  62147. }
  62148. return 0; /* netmask unchanged */
  62149. 801953c: 2300 movs r3, #0
  62150. }
  62151. 801953e: 4618 mov r0, r3
  62152. 8019540: 3714 adds r7, #20
  62153. 8019542: 46bd mov sp, r7
  62154. 8019544: f85d 7b04 ldr.w r7, [sp], #4
  62155. 8019548: 4770 bx lr
  62156. 0801954a <netif_do_set_gw>:
  62157. }
  62158. }
  62159. static int
  62160. netif_do_set_gw(struct netif *netif, const ip4_addr_t *gw, ip_addr_t *old_gw)
  62161. {
  62162. 801954a: b480 push {r7}
  62163. 801954c: b085 sub sp, #20
  62164. 801954e: af00 add r7, sp, #0
  62165. 8019550: 60f8 str r0, [r7, #12]
  62166. 8019552: 60b9 str r1, [r7, #8]
  62167. 8019554: 607a str r2, [r7, #4]
  62168. /* address is actually being changed? */
  62169. if (ip4_addr_cmp(gw, netif_ip4_gw(netif)) == 0) {
  62170. 8019556: 68bb ldr r3, [r7, #8]
  62171. 8019558: 681a ldr r2, [r3, #0]
  62172. 801955a: 68fb ldr r3, [r7, #12]
  62173. 801955c: 330c adds r3, #12
  62174. 801955e: 681b ldr r3, [r3, #0]
  62175. 8019560: 429a cmp r2, r3
  62176. 8019562: d00a beq.n 801957a <netif_do_set_gw+0x30>
  62177. ip_addr_copy(*old_gw, *netif_ip_gw4(netif));
  62178. #else
  62179. LWIP_UNUSED_ARG(old_gw);
  62180. #endif
  62181. ip4_addr_set(ip_2_ip4(&netif->gw), gw);
  62182. 8019564: 68bb ldr r3, [r7, #8]
  62183. 8019566: 2b00 cmp r3, #0
  62184. 8019568: d002 beq.n 8019570 <netif_do_set_gw+0x26>
  62185. 801956a: 68bb ldr r3, [r7, #8]
  62186. 801956c: 681b ldr r3, [r3, #0]
  62187. 801956e: e000 b.n 8019572 <netif_do_set_gw+0x28>
  62188. 8019570: 2300 movs r3, #0
  62189. 8019572: 68fa ldr r2, [r7, #12]
  62190. 8019574: 60d3 str r3, [r2, #12]
  62191. netif->name[0], netif->name[1],
  62192. ip4_addr1_16(netif_ip4_gw(netif)),
  62193. ip4_addr2_16(netif_ip4_gw(netif)),
  62194. ip4_addr3_16(netif_ip4_gw(netif)),
  62195. ip4_addr4_16(netif_ip4_gw(netif))));
  62196. return 1; /* gateway changed */
  62197. 8019576: 2301 movs r3, #1
  62198. 8019578: e000 b.n 801957c <netif_do_set_gw+0x32>
  62199. }
  62200. return 0; /* gateway unchanged */
  62201. 801957a: 2300 movs r3, #0
  62202. }
  62203. 801957c: 4618 mov r0, r3
  62204. 801957e: 3714 adds r7, #20
  62205. 8019580: 46bd mov sp, r7
  62206. 8019582: f85d 7b04 ldr.w r7, [sp], #4
  62207. 8019586: 4770 bx lr
  62208. 08019588 <netif_set_addr>:
  62209. * @param gw the new default gateway
  62210. */
  62211. void
  62212. netif_set_addr(struct netif *netif, const ip4_addr_t *ipaddr, const ip4_addr_t *netmask,
  62213. const ip4_addr_t *gw)
  62214. {
  62215. 8019588: b580 push {r7, lr}
  62216. 801958a: b088 sub sp, #32
  62217. 801958c: af00 add r7, sp, #0
  62218. 801958e: 60f8 str r0, [r7, #12]
  62219. 8019590: 60b9 str r1, [r7, #8]
  62220. 8019592: 607a str r2, [r7, #4]
  62221. 8019594: 603b str r3, [r7, #0]
  62222. ip_addr_t old_nm_val;
  62223. ip_addr_t old_gw_val;
  62224. ip_addr_t *old_nm = &old_nm_val;
  62225. ip_addr_t *old_gw = &old_gw_val;
  62226. #else
  62227. ip_addr_t *old_nm = NULL;
  62228. 8019596: 2300 movs r3, #0
  62229. 8019598: 61fb str r3, [r7, #28]
  62230. ip_addr_t *old_gw = NULL;
  62231. 801959a: 2300 movs r3, #0
  62232. 801959c: 61bb str r3, [r7, #24]
  62233. #endif
  62234. ip_addr_t old_addr;
  62235. int remove;
  62236. LWIP_ASSERT_CORE_LOCKED();
  62237. 801959e: f7f6 fd67 bl 8010070 <sys_check_core_locking>
  62238. /* Don't propagate NULL pointer (IPv4 ANY) to subsequent functions */
  62239. if (ipaddr == NULL) {
  62240. 80195a2: 68bb ldr r3, [r7, #8]
  62241. 80195a4: 2b00 cmp r3, #0
  62242. 80195a6: d101 bne.n 80195ac <netif_set_addr+0x24>
  62243. ipaddr = IP4_ADDR_ANY4;
  62244. 80195a8: 4b1c ldr r3, [pc, #112] @ (801961c <netif_set_addr+0x94>)
  62245. 80195aa: 60bb str r3, [r7, #8]
  62246. }
  62247. if (netmask == NULL) {
  62248. 80195ac: 687b ldr r3, [r7, #4]
  62249. 80195ae: 2b00 cmp r3, #0
  62250. 80195b0: d101 bne.n 80195b6 <netif_set_addr+0x2e>
  62251. netmask = IP4_ADDR_ANY4;
  62252. 80195b2: 4b1a ldr r3, [pc, #104] @ (801961c <netif_set_addr+0x94>)
  62253. 80195b4: 607b str r3, [r7, #4]
  62254. }
  62255. if (gw == NULL) {
  62256. 80195b6: 683b ldr r3, [r7, #0]
  62257. 80195b8: 2b00 cmp r3, #0
  62258. 80195ba: d101 bne.n 80195c0 <netif_set_addr+0x38>
  62259. gw = IP4_ADDR_ANY4;
  62260. 80195bc: 4b17 ldr r3, [pc, #92] @ (801961c <netif_set_addr+0x94>)
  62261. 80195be: 603b str r3, [r7, #0]
  62262. }
  62263. remove = ip4_addr_isany(ipaddr);
  62264. 80195c0: 68bb ldr r3, [r7, #8]
  62265. 80195c2: 2b00 cmp r3, #0
  62266. 80195c4: d003 beq.n 80195ce <netif_set_addr+0x46>
  62267. 80195c6: 68bb ldr r3, [r7, #8]
  62268. 80195c8: 681b ldr r3, [r3, #0]
  62269. 80195ca: 2b00 cmp r3, #0
  62270. 80195cc: d101 bne.n 80195d2 <netif_set_addr+0x4a>
  62271. 80195ce: 2301 movs r3, #1
  62272. 80195d0: e000 b.n 80195d4 <netif_set_addr+0x4c>
  62273. 80195d2: 2300 movs r3, #0
  62274. 80195d4: 617b str r3, [r7, #20]
  62275. if (remove) {
  62276. 80195d6: 697b ldr r3, [r7, #20]
  62277. 80195d8: 2b00 cmp r3, #0
  62278. 80195da: d006 beq.n 80195ea <netif_set_addr+0x62>
  62279. /* when removing an address, we have to remove it *before* changing netmask/gw
  62280. to ensure that tcp RST segment can be sent correctly */
  62281. if (netif_do_set_ipaddr(netif, ipaddr, &old_addr)) {
  62282. 80195dc: f107 0310 add.w r3, r7, #16
  62283. 80195e0: 461a mov r2, r3
  62284. 80195e2: 68b9 ldr r1, [r7, #8]
  62285. 80195e4: 68f8 ldr r0, [r7, #12]
  62286. 80195e6: f7ff ff47 bl 8019478 <netif_do_set_ipaddr>
  62287. change_reason |= LWIP_NSC_IPV4_ADDRESS_CHANGED;
  62288. cb_args.ipv4_changed.old_address = &old_addr;
  62289. #endif
  62290. }
  62291. }
  62292. if (netif_do_set_netmask(netif, netmask, old_nm)) {
  62293. 80195ea: 69fa ldr r2, [r7, #28]
  62294. 80195ec: 6879 ldr r1, [r7, #4]
  62295. 80195ee: 68f8 ldr r0, [r7, #12]
  62296. 80195f0: f7ff ff8c bl 801950c <netif_do_set_netmask>
  62297. #if LWIP_NETIF_EXT_STATUS_CALLBACK
  62298. change_reason |= LWIP_NSC_IPV4_NETMASK_CHANGED;
  62299. cb_args.ipv4_changed.old_netmask = old_nm;
  62300. #endif
  62301. }
  62302. if (netif_do_set_gw(netif, gw, old_gw)) {
  62303. 80195f4: 69ba ldr r2, [r7, #24]
  62304. 80195f6: 6839 ldr r1, [r7, #0]
  62305. 80195f8: 68f8 ldr r0, [r7, #12]
  62306. 80195fa: f7ff ffa6 bl 801954a <netif_do_set_gw>
  62307. #if LWIP_NETIF_EXT_STATUS_CALLBACK
  62308. change_reason |= LWIP_NSC_IPV4_GATEWAY_CHANGED;
  62309. cb_args.ipv4_changed.old_gw = old_gw;
  62310. #endif
  62311. }
  62312. if (!remove) {
  62313. 80195fe: 697b ldr r3, [r7, #20]
  62314. 8019600: 2b00 cmp r3, #0
  62315. 8019602: d106 bne.n 8019612 <netif_set_addr+0x8a>
  62316. /* set ipaddr last to ensure netmask/gw have been set when status callback is called */
  62317. if (netif_do_set_ipaddr(netif, ipaddr, &old_addr)) {
  62318. 8019604: f107 0310 add.w r3, r7, #16
  62319. 8019608: 461a mov r2, r3
  62320. 801960a: 68b9 ldr r1, [r7, #8]
  62321. 801960c: 68f8 ldr r0, [r7, #12]
  62322. 801960e: f7ff ff33 bl 8019478 <netif_do_set_ipaddr>
  62323. if (change_reason != LWIP_NSC_NONE) {
  62324. change_reason |= LWIP_NSC_IPV4_SETTINGS_CHANGED;
  62325. netif_invoke_ext_callback(netif, change_reason, &cb_args);
  62326. }
  62327. #endif
  62328. }
  62329. 8019612: bf00 nop
  62330. 8019614: 3720 adds r7, #32
  62331. 8019616: 46bd mov sp, r7
  62332. 8019618: bd80 pop {r7, pc}
  62333. 801961a: bf00 nop
  62334. 801961c: 080307a4 .word 0x080307a4
  62335. 08019620 <netif_set_default>:
  62336. *
  62337. * @param netif the default network interface
  62338. */
  62339. void
  62340. netif_set_default(struct netif *netif)
  62341. {
  62342. 8019620: b580 push {r7, lr}
  62343. 8019622: b082 sub sp, #8
  62344. 8019624: af00 add r7, sp, #0
  62345. 8019626: 6078 str r0, [r7, #4]
  62346. LWIP_ASSERT_CORE_LOCKED();
  62347. 8019628: f7f6 fd22 bl 8010070 <sys_check_core_locking>
  62348. mib2_remove_route_ip4(1, netif);
  62349. } else {
  62350. /* install default route */
  62351. mib2_add_route_ip4(1, netif);
  62352. }
  62353. netif_default = netif;
  62354. 801962c: 4a03 ldr r2, [pc, #12] @ (801963c <netif_set_default+0x1c>)
  62355. 801962e: 687b ldr r3, [r7, #4]
  62356. 8019630: 6013 str r3, [r2, #0]
  62357. LWIP_DEBUGF(NETIF_DEBUG, ("netif: setting default interface %c%c\n",
  62358. netif ? netif->name[0] : '\'', netif ? netif->name[1] : '\''));
  62359. }
  62360. 8019632: bf00 nop
  62361. 8019634: 3708 adds r7, #8
  62362. 8019636: 46bd mov sp, r7
  62363. 8019638: bd80 pop {r7, pc}
  62364. 801963a: bf00 nop
  62365. 801963c: 24029fe4 .word 0x24029fe4
  62366. 08019640 <netif_set_up>:
  62367. * Bring an interface up, available for processing
  62368. * traffic.
  62369. */
  62370. void
  62371. netif_set_up(struct netif *netif)
  62372. {
  62373. 8019640: b580 push {r7, lr}
  62374. 8019642: b082 sub sp, #8
  62375. 8019644: af00 add r7, sp, #0
  62376. 8019646: 6078 str r0, [r7, #4]
  62377. LWIP_ASSERT_CORE_LOCKED();
  62378. 8019648: f7f6 fd12 bl 8010070 <sys_check_core_locking>
  62379. LWIP_ERROR("netif_set_up: invalid netif", netif != NULL, return);
  62380. 801964c: 687b ldr r3, [r7, #4]
  62381. 801964e: 2b00 cmp r3, #0
  62382. 8019650: d107 bne.n 8019662 <netif_set_up+0x22>
  62383. 8019652: 4b0f ldr r3, [pc, #60] @ (8019690 <netif_set_up+0x50>)
  62384. 8019654: f44f 7254 mov.w r2, #848 @ 0x350
  62385. 8019658: 490e ldr r1, [pc, #56] @ (8019694 <netif_set_up+0x54>)
  62386. 801965a: 480f ldr r0, [pc, #60] @ (8019698 <netif_set_up+0x58>)
  62387. 801965c: f00f ff56 bl 802950c <iprintf>
  62388. 8019660: e013 b.n 801968a <netif_set_up+0x4a>
  62389. if (!(netif->flags & NETIF_FLAG_UP)) {
  62390. 8019662: 687b ldr r3, [r7, #4]
  62391. 8019664: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  62392. 8019668: f003 0301 and.w r3, r3, #1
  62393. 801966c: 2b00 cmp r3, #0
  62394. 801966e: d10c bne.n 801968a <netif_set_up+0x4a>
  62395. netif_set_flags(netif, NETIF_FLAG_UP);
  62396. 8019670: 687b ldr r3, [r7, #4]
  62397. 8019672: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  62398. 8019676: f043 0301 orr.w r3, r3, #1
  62399. 801967a: b2da uxtb r2, r3
  62400. 801967c: 687b ldr r3, [r7, #4]
  62401. 801967e: f883 2031 strb.w r2, [r3, #49] @ 0x31
  62402. args.status_changed.state = 1;
  62403. netif_invoke_ext_callback(netif, LWIP_NSC_STATUS_CHANGED, &args);
  62404. }
  62405. #endif
  62406. netif_issue_reports(netif, NETIF_REPORT_TYPE_IPV4 | NETIF_REPORT_TYPE_IPV6);
  62407. 8019682: 2103 movs r1, #3
  62408. 8019684: 6878 ldr r0, [r7, #4]
  62409. 8019686: f000 f809 bl 801969c <netif_issue_reports>
  62410. #if LWIP_IPV6
  62411. nd6_restart_netif(netif);
  62412. #endif /* LWIP_IPV6 */
  62413. }
  62414. }
  62415. 801968a: 3708 adds r7, #8
  62416. 801968c: 46bd mov sp, r7
  62417. 801968e: bd80 pop {r7, pc}
  62418. 8019690: 0802da0c .word 0x0802da0c
  62419. 8019694: 0802db94 .word 0x0802db94
  62420. 8019698: 0802da5c .word 0x0802da5c
  62421. 0801969c <netif_issue_reports>:
  62422. /** Send ARP/IGMP/MLD/RS events, e.g. on link-up/netif-up or addr-change
  62423. */
  62424. static void
  62425. netif_issue_reports(struct netif *netif, u8_t report_type)
  62426. {
  62427. 801969c: b580 push {r7, lr}
  62428. 801969e: b082 sub sp, #8
  62429. 80196a0: af00 add r7, sp, #0
  62430. 80196a2: 6078 str r0, [r7, #4]
  62431. 80196a4: 460b mov r3, r1
  62432. 80196a6: 70fb strb r3, [r7, #3]
  62433. LWIP_ASSERT("netif_issue_reports: invalid netif", netif != NULL);
  62434. 80196a8: 687b ldr r3, [r7, #4]
  62435. 80196aa: 2b00 cmp r3, #0
  62436. 80196ac: d106 bne.n 80196bc <netif_issue_reports+0x20>
  62437. 80196ae: 4b18 ldr r3, [pc, #96] @ (8019710 <netif_issue_reports+0x74>)
  62438. 80196b0: f240 326d movw r2, #877 @ 0x36d
  62439. 80196b4: 4917 ldr r1, [pc, #92] @ (8019714 <netif_issue_reports+0x78>)
  62440. 80196b6: 4818 ldr r0, [pc, #96] @ (8019718 <netif_issue_reports+0x7c>)
  62441. 80196b8: f00f ff28 bl 802950c <iprintf>
  62442. /* Only send reports when both link and admin states are up */
  62443. if (!(netif->flags & NETIF_FLAG_LINK_UP) ||
  62444. 80196bc: 687b ldr r3, [r7, #4]
  62445. 80196be: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  62446. 80196c2: f003 0304 and.w r3, r3, #4
  62447. 80196c6: 2b00 cmp r3, #0
  62448. 80196c8: d01e beq.n 8019708 <netif_issue_reports+0x6c>
  62449. !(netif->flags & NETIF_FLAG_UP)) {
  62450. 80196ca: 687b ldr r3, [r7, #4]
  62451. 80196cc: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  62452. 80196d0: f003 0301 and.w r3, r3, #1
  62453. if (!(netif->flags & NETIF_FLAG_LINK_UP) ||
  62454. 80196d4: 2b00 cmp r3, #0
  62455. 80196d6: d017 beq.n 8019708 <netif_issue_reports+0x6c>
  62456. return;
  62457. }
  62458. #if LWIP_IPV4
  62459. if ((report_type & NETIF_REPORT_TYPE_IPV4) &&
  62460. 80196d8: 78fb ldrb r3, [r7, #3]
  62461. 80196da: f003 0301 and.w r3, r3, #1
  62462. 80196de: 2b00 cmp r3, #0
  62463. 80196e0: d013 beq.n 801970a <netif_issue_reports+0x6e>
  62464. !ip4_addr_isany_val(*netif_ip4_addr(netif))) {
  62465. 80196e2: 687b ldr r3, [r7, #4]
  62466. 80196e4: 3304 adds r3, #4
  62467. 80196e6: 681b ldr r3, [r3, #0]
  62468. if ((report_type & NETIF_REPORT_TYPE_IPV4) &&
  62469. 80196e8: 2b00 cmp r3, #0
  62470. 80196ea: d00e beq.n 801970a <netif_issue_reports+0x6e>
  62471. #if LWIP_ARP
  62472. /* For Ethernet network interfaces, we would like to send a "gratuitous ARP" */
  62473. if (netif->flags & (NETIF_FLAG_ETHARP)) {
  62474. 80196ec: 687b ldr r3, [r7, #4]
  62475. 80196ee: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  62476. 80196f2: f003 0308 and.w r3, r3, #8
  62477. 80196f6: 2b00 cmp r3, #0
  62478. 80196f8: d007 beq.n 801970a <netif_issue_reports+0x6e>
  62479. etharp_gratuitous(netif);
  62480. 80196fa: 687b ldr r3, [r7, #4]
  62481. 80196fc: 3304 adds r3, #4
  62482. 80196fe: 4619 mov r1, r3
  62483. 8019700: 6878 ldr r0, [r7, #4]
  62484. 8019702: f00a fd2b bl 802415c <etharp_request>
  62485. 8019706: e000 b.n 801970a <netif_issue_reports+0x6e>
  62486. return;
  62487. 8019708: bf00 nop
  62488. /* send mld memberships */
  62489. mld6_report_groups(netif);
  62490. #endif /* LWIP_IPV6_MLD */
  62491. }
  62492. #endif /* LWIP_IPV6 */
  62493. }
  62494. 801970a: 3708 adds r7, #8
  62495. 801970c: 46bd mov sp, r7
  62496. 801970e: bd80 pop {r7, pc}
  62497. 8019710: 0802da0c .word 0x0802da0c
  62498. 8019714: 0802dbb0 .word 0x0802dbb0
  62499. 8019718: 0802da5c .word 0x0802da5c
  62500. 0801971c <netif_set_down>:
  62501. * @ingroup netif
  62502. * Bring an interface down, disabling any traffic processing.
  62503. */
  62504. void
  62505. netif_set_down(struct netif *netif)
  62506. {
  62507. 801971c: b580 push {r7, lr}
  62508. 801971e: b082 sub sp, #8
  62509. 8019720: af00 add r7, sp, #0
  62510. 8019722: 6078 str r0, [r7, #4]
  62511. LWIP_ASSERT_CORE_LOCKED();
  62512. 8019724: f7f6 fca4 bl 8010070 <sys_check_core_locking>
  62513. LWIP_ERROR("netif_set_down: invalid netif", netif != NULL, return);
  62514. 8019728: 687b ldr r3, [r7, #4]
  62515. 801972a: 2b00 cmp r3, #0
  62516. 801972c: d107 bne.n 801973e <netif_set_down+0x22>
  62517. 801972e: 4b12 ldr r3, [pc, #72] @ (8019778 <netif_set_down+0x5c>)
  62518. 8019730: f240 329b movw r2, #923 @ 0x39b
  62519. 8019734: 4911 ldr r1, [pc, #68] @ (801977c <netif_set_down+0x60>)
  62520. 8019736: 4812 ldr r0, [pc, #72] @ (8019780 <netif_set_down+0x64>)
  62521. 8019738: f00f fee8 bl 802950c <iprintf>
  62522. 801973c: e019 b.n 8019772 <netif_set_down+0x56>
  62523. if (netif->flags & NETIF_FLAG_UP) {
  62524. 801973e: 687b ldr r3, [r7, #4]
  62525. 8019740: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  62526. 8019744: f003 0301 and.w r3, r3, #1
  62527. 8019748: 2b00 cmp r3, #0
  62528. 801974a: d012 beq.n 8019772 <netif_set_down+0x56>
  62529. args.status_changed.state = 0;
  62530. netif_invoke_ext_callback(netif, LWIP_NSC_STATUS_CHANGED, &args);
  62531. }
  62532. #endif
  62533. netif_clear_flags(netif, NETIF_FLAG_UP);
  62534. 801974c: 687b ldr r3, [r7, #4]
  62535. 801974e: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  62536. 8019752: f023 0301 bic.w r3, r3, #1
  62537. 8019756: b2da uxtb r2, r3
  62538. 8019758: 687b ldr r3, [r7, #4]
  62539. 801975a: f883 2031 strb.w r2, [r3, #49] @ 0x31
  62540. MIB2_COPY_SYSUPTIME_TO(&netif->ts);
  62541. #if LWIP_IPV4 && LWIP_ARP
  62542. if (netif->flags & NETIF_FLAG_ETHARP) {
  62543. 801975e: 687b ldr r3, [r7, #4]
  62544. 8019760: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  62545. 8019764: f003 0308 and.w r3, r3, #8
  62546. 8019768: 2b00 cmp r3, #0
  62547. 801976a: d002 beq.n 8019772 <netif_set_down+0x56>
  62548. etharp_cleanup_netif(netif);
  62549. 801976c: 6878 ldr r0, [r7, #4]
  62550. 801976e: f00a f8ab bl 80238c8 <etharp_cleanup_netif>
  62551. nd6_cleanup_netif(netif);
  62552. #endif /* LWIP_IPV6 */
  62553. NETIF_STATUS_CALLBACK(netif);
  62554. }
  62555. }
  62556. 8019772: 3708 adds r7, #8
  62557. 8019774: 46bd mov sp, r7
  62558. 8019776: bd80 pop {r7, pc}
  62559. 8019778: 0802da0c .word 0x0802da0c
  62560. 801977c: 0802dbd4 .word 0x0802dbd4
  62561. 8019780: 0802da5c .word 0x0802da5c
  62562. 08019784 <netif_set_link_up>:
  62563. * @ingroup netif
  62564. * Called by a driver when its link goes up
  62565. */
  62566. void
  62567. netif_set_link_up(struct netif *netif)
  62568. {
  62569. 8019784: b580 push {r7, lr}
  62570. 8019786: b082 sub sp, #8
  62571. 8019788: af00 add r7, sp, #0
  62572. 801978a: 6078 str r0, [r7, #4]
  62573. LWIP_ASSERT_CORE_LOCKED();
  62574. 801978c: f7f6 fc70 bl 8010070 <sys_check_core_locking>
  62575. LWIP_ERROR("netif_set_link_up: invalid netif", netif != NULL, return);
  62576. 8019790: 687b ldr r3, [r7, #4]
  62577. 8019792: 2b00 cmp r3, #0
  62578. 8019794: d107 bne.n 80197a6 <netif_set_link_up+0x22>
  62579. 8019796: 4b15 ldr r3, [pc, #84] @ (80197ec <netif_set_link_up+0x68>)
  62580. 8019798: f44f 7278 mov.w r2, #992 @ 0x3e0
  62581. 801979c: 4914 ldr r1, [pc, #80] @ (80197f0 <netif_set_link_up+0x6c>)
  62582. 801979e: 4815 ldr r0, [pc, #84] @ (80197f4 <netif_set_link_up+0x70>)
  62583. 80197a0: f00f feb4 bl 802950c <iprintf>
  62584. 80197a4: e01e b.n 80197e4 <netif_set_link_up+0x60>
  62585. if (!(netif->flags & NETIF_FLAG_LINK_UP)) {
  62586. 80197a6: 687b ldr r3, [r7, #4]
  62587. 80197a8: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  62588. 80197ac: f003 0304 and.w r3, r3, #4
  62589. 80197b0: 2b00 cmp r3, #0
  62590. 80197b2: d117 bne.n 80197e4 <netif_set_link_up+0x60>
  62591. netif_set_flags(netif, NETIF_FLAG_LINK_UP);
  62592. 80197b4: 687b ldr r3, [r7, #4]
  62593. 80197b6: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  62594. 80197ba: f043 0304 orr.w r3, r3, #4
  62595. 80197be: b2da uxtb r2, r3
  62596. 80197c0: 687b ldr r3, [r7, #4]
  62597. 80197c2: f883 2031 strb.w r2, [r3, #49] @ 0x31
  62598. #if LWIP_DHCP
  62599. dhcp_network_changed(netif);
  62600. 80197c6: 6878 ldr r0, [r7, #4]
  62601. 80197c8: f008 faaa bl 8021d20 <dhcp_network_changed>
  62602. #if LWIP_AUTOIP
  62603. autoip_network_changed(netif);
  62604. #endif /* LWIP_AUTOIP */
  62605. netif_issue_reports(netif, NETIF_REPORT_TYPE_IPV4 | NETIF_REPORT_TYPE_IPV6);
  62606. 80197cc: 2103 movs r1, #3
  62607. 80197ce: 6878 ldr r0, [r7, #4]
  62608. 80197d0: f7ff ff64 bl 801969c <netif_issue_reports>
  62609. #if LWIP_IPV6
  62610. nd6_restart_netif(netif);
  62611. #endif /* LWIP_IPV6 */
  62612. NETIF_LINK_CALLBACK(netif);
  62613. 80197d4: 687b ldr r3, [r7, #4]
  62614. 80197d6: 69db ldr r3, [r3, #28]
  62615. 80197d8: 2b00 cmp r3, #0
  62616. 80197da: d003 beq.n 80197e4 <netif_set_link_up+0x60>
  62617. 80197dc: 687b ldr r3, [r7, #4]
  62618. 80197de: 69db ldr r3, [r3, #28]
  62619. 80197e0: 6878 ldr r0, [r7, #4]
  62620. 80197e2: 4798 blx r3
  62621. args.link_changed.state = 1;
  62622. netif_invoke_ext_callback(netif, LWIP_NSC_LINK_CHANGED, &args);
  62623. }
  62624. #endif
  62625. }
  62626. }
  62627. 80197e4: 3708 adds r7, #8
  62628. 80197e6: 46bd mov sp, r7
  62629. 80197e8: bd80 pop {r7, pc}
  62630. 80197ea: bf00 nop
  62631. 80197ec: 0802da0c .word 0x0802da0c
  62632. 80197f0: 0802dbf4 .word 0x0802dbf4
  62633. 80197f4: 0802da5c .word 0x0802da5c
  62634. 080197f8 <netif_set_link_down>:
  62635. * @ingroup netif
  62636. * Called by a driver when its link goes down
  62637. */
  62638. void
  62639. netif_set_link_down(struct netif *netif)
  62640. {
  62641. 80197f8: b580 push {r7, lr}
  62642. 80197fa: b082 sub sp, #8
  62643. 80197fc: af00 add r7, sp, #0
  62644. 80197fe: 6078 str r0, [r7, #4]
  62645. LWIP_ASSERT_CORE_LOCKED();
  62646. 8019800: f7f6 fc36 bl 8010070 <sys_check_core_locking>
  62647. LWIP_ERROR("netif_set_link_down: invalid netif", netif != NULL, return);
  62648. 8019804: 687b ldr r3, [r7, #4]
  62649. 8019806: 2b00 cmp r3, #0
  62650. 8019808: d107 bne.n 801981a <netif_set_link_down+0x22>
  62651. 801980a: 4b11 ldr r3, [pc, #68] @ (8019850 <netif_set_link_down+0x58>)
  62652. 801980c: f240 4206 movw r2, #1030 @ 0x406
  62653. 8019810: 4910 ldr r1, [pc, #64] @ (8019854 <netif_set_link_down+0x5c>)
  62654. 8019812: 4811 ldr r0, [pc, #68] @ (8019858 <netif_set_link_down+0x60>)
  62655. 8019814: f00f fe7a bl 802950c <iprintf>
  62656. 8019818: e017 b.n 801984a <netif_set_link_down+0x52>
  62657. if (netif->flags & NETIF_FLAG_LINK_UP) {
  62658. 801981a: 687b ldr r3, [r7, #4]
  62659. 801981c: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  62660. 8019820: f003 0304 and.w r3, r3, #4
  62661. 8019824: 2b00 cmp r3, #0
  62662. 8019826: d010 beq.n 801984a <netif_set_link_down+0x52>
  62663. netif_clear_flags(netif, NETIF_FLAG_LINK_UP);
  62664. 8019828: 687b ldr r3, [r7, #4]
  62665. 801982a: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  62666. 801982e: f023 0304 bic.w r3, r3, #4
  62667. 8019832: b2da uxtb r2, r3
  62668. 8019834: 687b ldr r3, [r7, #4]
  62669. 8019836: f883 2031 strb.w r2, [r3, #49] @ 0x31
  62670. NETIF_LINK_CALLBACK(netif);
  62671. 801983a: 687b ldr r3, [r7, #4]
  62672. 801983c: 69db ldr r3, [r3, #28]
  62673. 801983e: 2b00 cmp r3, #0
  62674. 8019840: d003 beq.n 801984a <netif_set_link_down+0x52>
  62675. 8019842: 687b ldr r3, [r7, #4]
  62676. 8019844: 69db ldr r3, [r3, #28]
  62677. 8019846: 6878 ldr r0, [r7, #4]
  62678. 8019848: 4798 blx r3
  62679. args.link_changed.state = 0;
  62680. netif_invoke_ext_callback(netif, LWIP_NSC_LINK_CHANGED, &args);
  62681. }
  62682. #endif
  62683. }
  62684. }
  62685. 801984a: 3708 adds r7, #8
  62686. 801984c: 46bd mov sp, r7
  62687. 801984e: bd80 pop {r7, pc}
  62688. 8019850: 0802da0c .word 0x0802da0c
  62689. 8019854: 0802dc18 .word 0x0802dc18
  62690. 8019858: 0802da5c .word 0x0802da5c
  62691. 0801985c <netif_set_link_callback>:
  62692. * @ingroup netif
  62693. * Set callback to be called when link is brought up/down
  62694. */
  62695. void
  62696. netif_set_link_callback(struct netif *netif, netif_status_callback_fn link_callback)
  62697. {
  62698. 801985c: b580 push {r7, lr}
  62699. 801985e: b082 sub sp, #8
  62700. 8019860: af00 add r7, sp, #0
  62701. 8019862: 6078 str r0, [r7, #4]
  62702. 8019864: 6039 str r1, [r7, #0]
  62703. LWIP_ASSERT_CORE_LOCKED();
  62704. 8019866: f7f6 fc03 bl 8010070 <sys_check_core_locking>
  62705. if (netif) {
  62706. 801986a: 687b ldr r3, [r7, #4]
  62707. 801986c: 2b00 cmp r3, #0
  62708. 801986e: d002 beq.n 8019876 <netif_set_link_callback+0x1a>
  62709. netif->link_callback = link_callback;
  62710. 8019870: 687b ldr r3, [r7, #4]
  62711. 8019872: 683a ldr r2, [r7, #0]
  62712. 8019874: 61da str r2, [r3, #28]
  62713. }
  62714. }
  62715. 8019876: bf00 nop
  62716. 8019878: 3708 adds r7, #8
  62717. 801987a: 46bd mov sp, r7
  62718. 801987c: bd80 pop {r7, pc}
  62719. 0801987e <netif_null_output_ip4>:
  62720. #if LWIP_IPV4
  62721. /** Dummy IPv4 output function for netifs not supporting IPv4
  62722. */
  62723. static err_t
  62724. netif_null_output_ip4(struct netif *netif, struct pbuf *p, const ip4_addr_t *ipaddr)
  62725. {
  62726. 801987e: b480 push {r7}
  62727. 8019880: b085 sub sp, #20
  62728. 8019882: af00 add r7, sp, #0
  62729. 8019884: 60f8 str r0, [r7, #12]
  62730. 8019886: 60b9 str r1, [r7, #8]
  62731. 8019888: 607a str r2, [r7, #4]
  62732. LWIP_UNUSED_ARG(netif);
  62733. LWIP_UNUSED_ARG(p);
  62734. LWIP_UNUSED_ARG(ipaddr);
  62735. return ERR_IF;
  62736. 801988a: f06f 030b mvn.w r3, #11
  62737. }
  62738. 801988e: 4618 mov r0, r3
  62739. 8019890: 3714 adds r7, #20
  62740. 8019892: 46bd mov sp, r7
  62741. 8019894: f85d 7b04 ldr.w r7, [sp], #4
  62742. 8019898: 4770 bx lr
  62743. ...
  62744. 0801989c <netif_get_by_index>:
  62745. *
  62746. * @param idx index of netif to find
  62747. */
  62748. struct netif *
  62749. netif_get_by_index(u8_t idx)
  62750. {
  62751. 801989c: b580 push {r7, lr}
  62752. 801989e: b084 sub sp, #16
  62753. 80198a0: af00 add r7, sp, #0
  62754. 80198a2: 4603 mov r3, r0
  62755. 80198a4: 71fb strb r3, [r7, #7]
  62756. struct netif *netif;
  62757. LWIP_ASSERT_CORE_LOCKED();
  62758. 80198a6: f7f6 fbe3 bl 8010070 <sys_check_core_locking>
  62759. if (idx != NETIF_NO_INDEX) {
  62760. 80198aa: 79fb ldrb r3, [r7, #7]
  62761. 80198ac: 2b00 cmp r3, #0
  62762. 80198ae: d013 beq.n 80198d8 <netif_get_by_index+0x3c>
  62763. NETIF_FOREACH(netif) {
  62764. 80198b0: 4b0c ldr r3, [pc, #48] @ (80198e4 <netif_get_by_index+0x48>)
  62765. 80198b2: 681b ldr r3, [r3, #0]
  62766. 80198b4: 60fb str r3, [r7, #12]
  62767. 80198b6: e00c b.n 80198d2 <netif_get_by_index+0x36>
  62768. if (idx == netif_get_index(netif)) {
  62769. 80198b8: 68fb ldr r3, [r7, #12]
  62770. 80198ba: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  62771. 80198be: 3301 adds r3, #1
  62772. 80198c0: b2db uxtb r3, r3
  62773. 80198c2: 79fa ldrb r2, [r7, #7]
  62774. 80198c4: 429a cmp r2, r3
  62775. 80198c6: d101 bne.n 80198cc <netif_get_by_index+0x30>
  62776. return netif; /* found! */
  62777. 80198c8: 68fb ldr r3, [r7, #12]
  62778. 80198ca: e006 b.n 80198da <netif_get_by_index+0x3e>
  62779. NETIF_FOREACH(netif) {
  62780. 80198cc: 68fb ldr r3, [r7, #12]
  62781. 80198ce: 681b ldr r3, [r3, #0]
  62782. 80198d0: 60fb str r3, [r7, #12]
  62783. 80198d2: 68fb ldr r3, [r7, #12]
  62784. 80198d4: 2b00 cmp r3, #0
  62785. 80198d6: d1ef bne.n 80198b8 <netif_get_by_index+0x1c>
  62786. }
  62787. }
  62788. }
  62789. return NULL;
  62790. 80198d8: 2300 movs r3, #0
  62791. }
  62792. 80198da: 4618 mov r0, r3
  62793. 80198dc: 3710 adds r7, #16
  62794. 80198de: 46bd mov sp, r7
  62795. 80198e0: bd80 pop {r7, pc}
  62796. 80198e2: bf00 nop
  62797. 80198e4: 24029fe0 .word 0x24029fe0
  62798. 080198e8 <pbuf_free_ooseq>:
  62799. #if !NO_SYS
  62800. static
  62801. #endif /* !NO_SYS */
  62802. void
  62803. pbuf_free_ooseq(void)
  62804. {
  62805. 80198e8: b580 push {r7, lr}
  62806. 80198ea: b082 sub sp, #8
  62807. 80198ec: af00 add r7, sp, #0
  62808. struct tcp_pcb *pcb;
  62809. SYS_ARCH_SET(pbuf_free_ooseq_pending, 0);
  62810. 80198ee: f00c fb77 bl 8025fe0 <sys_arch_protect>
  62811. 80198f2: 6038 str r0, [r7, #0]
  62812. 80198f4: 4b0d ldr r3, [pc, #52] @ (801992c <pbuf_free_ooseq+0x44>)
  62813. 80198f6: 2200 movs r2, #0
  62814. 80198f8: 701a strb r2, [r3, #0]
  62815. 80198fa: 6838 ldr r0, [r7, #0]
  62816. 80198fc: f00c fb7e bl 8025ffc <sys_arch_unprotect>
  62817. for (pcb = tcp_active_pcbs; NULL != pcb; pcb = pcb->next) {
  62818. 8019900: 4b0b ldr r3, [pc, #44] @ (8019930 <pbuf_free_ooseq+0x48>)
  62819. 8019902: 681b ldr r3, [r3, #0]
  62820. 8019904: 607b str r3, [r7, #4]
  62821. 8019906: e00a b.n 801991e <pbuf_free_ooseq+0x36>
  62822. if (pcb->ooseq != NULL) {
  62823. 8019908: 687b ldr r3, [r7, #4]
  62824. 801990a: 6f5b ldr r3, [r3, #116] @ 0x74
  62825. 801990c: 2b00 cmp r3, #0
  62826. 801990e: d003 beq.n 8019918 <pbuf_free_ooseq+0x30>
  62827. /** Free the ooseq pbufs of one PCB only */
  62828. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free_ooseq: freeing out-of-sequence pbufs\n"));
  62829. tcp_free_ooseq(pcb);
  62830. 8019910: 6878 ldr r0, [r7, #4]
  62831. 8019912: f002 fc55 bl 801c1c0 <tcp_free_ooseq>
  62832. return;
  62833. 8019916: e005 b.n 8019924 <pbuf_free_ooseq+0x3c>
  62834. for (pcb = tcp_active_pcbs; NULL != pcb; pcb = pcb->next) {
  62835. 8019918: 687b ldr r3, [r7, #4]
  62836. 801991a: 68db ldr r3, [r3, #12]
  62837. 801991c: 607b str r3, [r7, #4]
  62838. 801991e: 687b ldr r3, [r7, #4]
  62839. 8019920: 2b00 cmp r3, #0
  62840. 8019922: d1f1 bne.n 8019908 <pbuf_free_ooseq+0x20>
  62841. }
  62842. }
  62843. }
  62844. 8019924: 3708 adds r7, #8
  62845. 8019926: 46bd mov sp, r7
  62846. 8019928: bd80 pop {r7, pc}
  62847. 801992a: bf00 nop
  62848. 801992c: 24029fe9 .word 0x24029fe9
  62849. 8019930: 24029ff8 .word 0x24029ff8
  62850. 08019934 <pbuf_free_ooseq_callback>:
  62851. /**
  62852. * Just a callback function for tcpip_callback() that calls pbuf_free_ooseq().
  62853. */
  62854. static void
  62855. pbuf_free_ooseq_callback(void *arg)
  62856. {
  62857. 8019934: b580 push {r7, lr}
  62858. 8019936: b082 sub sp, #8
  62859. 8019938: af00 add r7, sp, #0
  62860. 801993a: 6078 str r0, [r7, #4]
  62861. LWIP_UNUSED_ARG(arg);
  62862. pbuf_free_ooseq();
  62863. 801993c: f7ff ffd4 bl 80198e8 <pbuf_free_ooseq>
  62864. }
  62865. 8019940: bf00 nop
  62866. 8019942: 3708 adds r7, #8
  62867. 8019944: 46bd mov sp, r7
  62868. 8019946: bd80 pop {r7, pc}
  62869. 08019948 <pbuf_pool_is_empty>:
  62870. #endif /* !NO_SYS */
  62871. /** Queue a call to pbuf_free_ooseq if not already queued. */
  62872. static void
  62873. pbuf_pool_is_empty(void)
  62874. {
  62875. 8019948: b580 push {r7, lr}
  62876. 801994a: b082 sub sp, #8
  62877. 801994c: af00 add r7, sp, #0
  62878. #ifndef PBUF_POOL_FREE_OOSEQ_QUEUE_CALL
  62879. SYS_ARCH_SET(pbuf_free_ooseq_pending, 1);
  62880. #else /* PBUF_POOL_FREE_OOSEQ_QUEUE_CALL */
  62881. u8_t queued;
  62882. SYS_ARCH_DECL_PROTECT(old_level);
  62883. SYS_ARCH_PROTECT(old_level);
  62884. 801994e: f00c fb47 bl 8025fe0 <sys_arch_protect>
  62885. 8019952: 6078 str r0, [r7, #4]
  62886. queued = pbuf_free_ooseq_pending;
  62887. 8019954: 4b0f ldr r3, [pc, #60] @ (8019994 <pbuf_pool_is_empty+0x4c>)
  62888. 8019956: 781b ldrb r3, [r3, #0]
  62889. 8019958: 70fb strb r3, [r7, #3]
  62890. pbuf_free_ooseq_pending = 1;
  62891. 801995a: 4b0e ldr r3, [pc, #56] @ (8019994 <pbuf_pool_is_empty+0x4c>)
  62892. 801995c: 2201 movs r2, #1
  62893. 801995e: 701a strb r2, [r3, #0]
  62894. SYS_ARCH_UNPROTECT(old_level);
  62895. 8019960: 6878 ldr r0, [r7, #4]
  62896. 8019962: f00c fb4b bl 8025ffc <sys_arch_unprotect>
  62897. if (!queued) {
  62898. 8019966: 78fb ldrb r3, [r7, #3]
  62899. 8019968: 2b00 cmp r3, #0
  62900. 801996a: d10f bne.n 801998c <pbuf_pool_is_empty+0x44>
  62901. /* queue a call to pbuf_free_ooseq if not already queued */
  62902. PBUF_POOL_FREE_OOSEQ_QUEUE_CALL();
  62903. 801996c: 2100 movs r1, #0
  62904. 801996e: 480a ldr r0, [pc, #40] @ (8019998 <pbuf_pool_is_empty+0x50>)
  62905. 8019970: f7fe fdd6 bl 8018520 <tcpip_try_callback>
  62906. 8019974: 4603 mov r3, r0
  62907. 8019976: 2b00 cmp r3, #0
  62908. 8019978: d008 beq.n 801998c <pbuf_pool_is_empty+0x44>
  62909. 801997a: f00c fb31 bl 8025fe0 <sys_arch_protect>
  62910. 801997e: 6078 str r0, [r7, #4]
  62911. 8019980: 4b04 ldr r3, [pc, #16] @ (8019994 <pbuf_pool_is_empty+0x4c>)
  62912. 8019982: 2200 movs r2, #0
  62913. 8019984: 701a strb r2, [r3, #0]
  62914. 8019986: 6878 ldr r0, [r7, #4]
  62915. 8019988: f00c fb38 bl 8025ffc <sys_arch_unprotect>
  62916. }
  62917. #endif /* PBUF_POOL_FREE_OOSEQ_QUEUE_CALL */
  62918. }
  62919. 801998c: bf00 nop
  62920. 801998e: 3708 adds r7, #8
  62921. 8019990: 46bd mov sp, r7
  62922. 8019992: bd80 pop {r7, pc}
  62923. 8019994: 24029fe9 .word 0x24029fe9
  62924. 8019998: 08019935 .word 0x08019935
  62925. 0801999c <pbuf_init_alloced_pbuf>:
  62926. #endif /* !LWIP_TCP || !TCP_QUEUE_OOSEQ || !PBUF_POOL_FREE_OOSEQ */
  62927. /* Initialize members of struct pbuf after allocation */
  62928. static void
  62929. pbuf_init_alloced_pbuf(struct pbuf *p, void *payload, u16_t tot_len, u16_t len, pbuf_type type, u8_t flags)
  62930. {
  62931. 801999c: b480 push {r7}
  62932. 801999e: b085 sub sp, #20
  62933. 80199a0: af00 add r7, sp, #0
  62934. 80199a2: 60f8 str r0, [r7, #12]
  62935. 80199a4: 60b9 str r1, [r7, #8]
  62936. 80199a6: 4611 mov r1, r2
  62937. 80199a8: 461a mov r2, r3
  62938. 80199aa: 460b mov r3, r1
  62939. 80199ac: 80fb strh r3, [r7, #6]
  62940. 80199ae: 4613 mov r3, r2
  62941. 80199b0: 80bb strh r3, [r7, #4]
  62942. p->next = NULL;
  62943. 80199b2: 68fb ldr r3, [r7, #12]
  62944. 80199b4: 2200 movs r2, #0
  62945. 80199b6: 601a str r2, [r3, #0]
  62946. p->payload = payload;
  62947. 80199b8: 68fb ldr r3, [r7, #12]
  62948. 80199ba: 68ba ldr r2, [r7, #8]
  62949. 80199bc: 605a str r2, [r3, #4]
  62950. p->tot_len = tot_len;
  62951. 80199be: 68fb ldr r3, [r7, #12]
  62952. 80199c0: 88fa ldrh r2, [r7, #6]
  62953. 80199c2: 811a strh r2, [r3, #8]
  62954. p->len = len;
  62955. 80199c4: 68fb ldr r3, [r7, #12]
  62956. 80199c6: 88ba ldrh r2, [r7, #4]
  62957. 80199c8: 815a strh r2, [r3, #10]
  62958. p->type_internal = (u8_t)type;
  62959. 80199ca: 8b3b ldrh r3, [r7, #24]
  62960. 80199cc: b2da uxtb r2, r3
  62961. 80199ce: 68fb ldr r3, [r7, #12]
  62962. 80199d0: 731a strb r2, [r3, #12]
  62963. p->flags = flags;
  62964. 80199d2: 68fb ldr r3, [r7, #12]
  62965. 80199d4: 7f3a ldrb r2, [r7, #28]
  62966. 80199d6: 735a strb r2, [r3, #13]
  62967. p->ref = 1;
  62968. 80199d8: 68fb ldr r3, [r7, #12]
  62969. 80199da: 2201 movs r2, #1
  62970. 80199dc: 739a strb r2, [r3, #14]
  62971. p->if_idx = NETIF_NO_INDEX;
  62972. 80199de: 68fb ldr r3, [r7, #12]
  62973. 80199e0: 2200 movs r2, #0
  62974. 80199e2: 73da strb r2, [r3, #15]
  62975. }
  62976. 80199e4: bf00 nop
  62977. 80199e6: 3714 adds r7, #20
  62978. 80199e8: 46bd mov sp, r7
  62979. 80199ea: f85d 7b04 ldr.w r7, [sp], #4
  62980. 80199ee: 4770 bx lr
  62981. 080199f0 <pbuf_alloc>:
  62982. * @return the allocated pbuf. If multiple pbufs where allocated, this
  62983. * is the first pbuf of a pbuf chain.
  62984. */
  62985. struct pbuf *
  62986. pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type)
  62987. {
  62988. 80199f0: b580 push {r7, lr}
  62989. 80199f2: b08c sub sp, #48 @ 0x30
  62990. 80199f4: af02 add r7, sp, #8
  62991. 80199f6: 4603 mov r3, r0
  62992. 80199f8: 71fb strb r3, [r7, #7]
  62993. 80199fa: 460b mov r3, r1
  62994. 80199fc: 80bb strh r3, [r7, #4]
  62995. 80199fe: 4613 mov r3, r2
  62996. 8019a00: 807b strh r3, [r7, #2]
  62997. struct pbuf *p;
  62998. u16_t offset = (u16_t)layer;
  62999. 8019a02: 79fb ldrb r3, [r7, #7]
  63000. 8019a04: 847b strh r3, [r7, #34] @ 0x22
  63001. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloc(length=%"U16_F")\n", length));
  63002. switch (type) {
  63003. 8019a06: 887b ldrh r3, [r7, #2]
  63004. 8019a08: f5b3 7f20 cmp.w r3, #640 @ 0x280
  63005. 8019a0c: f000 8082 beq.w 8019b14 <pbuf_alloc+0x124>
  63006. 8019a10: f5b3 7f20 cmp.w r3, #640 @ 0x280
  63007. 8019a14: f300 80c9 bgt.w 8019baa <pbuf_alloc+0x1ba>
  63008. 8019a18: f5b3 7fc1 cmp.w r3, #386 @ 0x182
  63009. 8019a1c: d010 beq.n 8019a40 <pbuf_alloc+0x50>
  63010. 8019a1e: f5b3 7fc1 cmp.w r3, #386 @ 0x182
  63011. 8019a22: f300 80c2 bgt.w 8019baa <pbuf_alloc+0x1ba>
  63012. 8019a26: 2b01 cmp r3, #1
  63013. 8019a28: d002 beq.n 8019a30 <pbuf_alloc+0x40>
  63014. 8019a2a: 2b41 cmp r3, #65 @ 0x41
  63015. 8019a2c: f040 80bd bne.w 8019baa <pbuf_alloc+0x1ba>
  63016. case PBUF_REF: /* fall through */
  63017. case PBUF_ROM:
  63018. p = pbuf_alloc_reference(NULL, length, type);
  63019. 8019a30: 887a ldrh r2, [r7, #2]
  63020. 8019a32: 88bb ldrh r3, [r7, #4]
  63021. 8019a34: 4619 mov r1, r3
  63022. 8019a36: 2000 movs r0, #0
  63023. 8019a38: f000 f8d2 bl 8019be0 <pbuf_alloc_reference>
  63024. 8019a3c: 6278 str r0, [r7, #36] @ 0x24
  63025. break;
  63026. 8019a3e: e0be b.n 8019bbe <pbuf_alloc+0x1ce>
  63027. case PBUF_POOL: {
  63028. struct pbuf *q, *last;
  63029. u16_t rem_len; /* remaining length */
  63030. p = NULL;
  63031. 8019a40: 2300 movs r3, #0
  63032. 8019a42: 627b str r3, [r7, #36] @ 0x24
  63033. last = NULL;
  63034. 8019a44: 2300 movs r3, #0
  63035. 8019a46: 61fb str r3, [r7, #28]
  63036. rem_len = length;
  63037. 8019a48: 88bb ldrh r3, [r7, #4]
  63038. 8019a4a: 837b strh r3, [r7, #26]
  63039. do {
  63040. u16_t qlen;
  63041. q = (struct pbuf *)memp_malloc(MEMP_PBUF_POOL);
  63042. 8019a4c: 200c movs r0, #12
  63043. 8019a4e: f7ff fb81 bl 8019154 <memp_malloc>
  63044. 8019a52: 6138 str r0, [r7, #16]
  63045. if (q == NULL) {
  63046. 8019a54: 693b ldr r3, [r7, #16]
  63047. 8019a56: 2b00 cmp r3, #0
  63048. 8019a58: d109 bne.n 8019a6e <pbuf_alloc+0x7e>
  63049. PBUF_POOL_IS_EMPTY();
  63050. 8019a5a: f7ff ff75 bl 8019948 <pbuf_pool_is_empty>
  63051. /* free chain so far allocated */
  63052. if (p) {
  63053. 8019a5e: 6a7b ldr r3, [r7, #36] @ 0x24
  63054. 8019a60: 2b00 cmp r3, #0
  63055. 8019a62: d002 beq.n 8019a6a <pbuf_alloc+0x7a>
  63056. pbuf_free(p);
  63057. 8019a64: 6a78 ldr r0, [r7, #36] @ 0x24
  63058. 8019a66: f000 fad9 bl 801a01c <pbuf_free>
  63059. }
  63060. /* bail out unsuccessfully */
  63061. return NULL;
  63062. 8019a6a: 2300 movs r3, #0
  63063. 8019a6c: e0a8 b.n 8019bc0 <pbuf_alloc+0x1d0>
  63064. }
  63065. qlen = LWIP_MIN(rem_len, (u16_t)(PBUF_POOL_BUFSIZE_ALIGNED - LWIP_MEM_ALIGN_SIZE(offset)));
  63066. 8019a6e: 8c7b ldrh r3, [r7, #34] @ 0x22
  63067. 8019a70: 3303 adds r3, #3
  63068. 8019a72: b29b uxth r3, r3
  63069. 8019a74: f023 0303 bic.w r3, r3, #3
  63070. 8019a78: b29a uxth r2, r3
  63071. 8019a7a: f240 53ec movw r3, #1516 @ 0x5ec
  63072. 8019a7e: 1a9b subs r3, r3, r2
  63073. 8019a80: b29b uxth r3, r3
  63074. 8019a82: 8b7a ldrh r2, [r7, #26]
  63075. 8019a84: 4293 cmp r3, r2
  63076. 8019a86: bf28 it cs
  63077. 8019a88: 4613 movcs r3, r2
  63078. 8019a8a: 81fb strh r3, [r7, #14]
  63079. pbuf_init_alloced_pbuf(q, LWIP_MEM_ALIGN((void *)((u8_t *)q + SIZEOF_STRUCT_PBUF + offset)),
  63080. 8019a8c: 8c7b ldrh r3, [r7, #34] @ 0x22
  63081. 8019a8e: 3310 adds r3, #16
  63082. 8019a90: 693a ldr r2, [r7, #16]
  63083. 8019a92: 4413 add r3, r2
  63084. 8019a94: 3303 adds r3, #3
  63085. 8019a96: f023 0303 bic.w r3, r3, #3
  63086. 8019a9a: 4618 mov r0, r3
  63087. 8019a9c: 89f9 ldrh r1, [r7, #14]
  63088. 8019a9e: 8b7a ldrh r2, [r7, #26]
  63089. 8019aa0: 2300 movs r3, #0
  63090. 8019aa2: 9301 str r3, [sp, #4]
  63091. 8019aa4: 887b ldrh r3, [r7, #2]
  63092. 8019aa6: 9300 str r3, [sp, #0]
  63093. 8019aa8: 460b mov r3, r1
  63094. 8019aaa: 4601 mov r1, r0
  63095. 8019aac: 6938 ldr r0, [r7, #16]
  63096. 8019aae: f7ff ff75 bl 801999c <pbuf_init_alloced_pbuf>
  63097. rem_len, qlen, type, 0);
  63098. LWIP_ASSERT("pbuf_alloc: pbuf q->payload properly aligned",
  63099. 8019ab2: 693b ldr r3, [r7, #16]
  63100. 8019ab4: 685b ldr r3, [r3, #4]
  63101. 8019ab6: f003 0303 and.w r3, r3, #3
  63102. 8019aba: 2b00 cmp r3, #0
  63103. 8019abc: d006 beq.n 8019acc <pbuf_alloc+0xdc>
  63104. 8019abe: 4b42 ldr r3, [pc, #264] @ (8019bc8 <pbuf_alloc+0x1d8>)
  63105. 8019ac0: f44f 7280 mov.w r2, #256 @ 0x100
  63106. 8019ac4: 4941 ldr r1, [pc, #260] @ (8019bcc <pbuf_alloc+0x1dc>)
  63107. 8019ac6: 4842 ldr r0, [pc, #264] @ (8019bd0 <pbuf_alloc+0x1e0>)
  63108. 8019ac8: f00f fd20 bl 802950c <iprintf>
  63109. ((mem_ptr_t)q->payload % MEM_ALIGNMENT) == 0);
  63110. LWIP_ASSERT("PBUF_POOL_BUFSIZE must be bigger than MEM_ALIGNMENT",
  63111. 8019acc: 8c7b ldrh r3, [r7, #34] @ 0x22
  63112. 8019ace: 3303 adds r3, #3
  63113. 8019ad0: f023 0303 bic.w r3, r3, #3
  63114. 8019ad4: f240 52ec movw r2, #1516 @ 0x5ec
  63115. 8019ad8: 4293 cmp r3, r2
  63116. 8019ada: d106 bne.n 8019aea <pbuf_alloc+0xfa>
  63117. 8019adc: 4b3a ldr r3, [pc, #232] @ (8019bc8 <pbuf_alloc+0x1d8>)
  63118. 8019ade: f44f 7281 mov.w r2, #258 @ 0x102
  63119. 8019ae2: 493c ldr r1, [pc, #240] @ (8019bd4 <pbuf_alloc+0x1e4>)
  63120. 8019ae4: 483a ldr r0, [pc, #232] @ (8019bd0 <pbuf_alloc+0x1e0>)
  63121. 8019ae6: f00f fd11 bl 802950c <iprintf>
  63122. (PBUF_POOL_BUFSIZE_ALIGNED - LWIP_MEM_ALIGN_SIZE(offset)) > 0 );
  63123. if (p == NULL) {
  63124. 8019aea: 6a7b ldr r3, [r7, #36] @ 0x24
  63125. 8019aec: 2b00 cmp r3, #0
  63126. 8019aee: d102 bne.n 8019af6 <pbuf_alloc+0x106>
  63127. /* allocated head of pbuf chain (into p) */
  63128. p = q;
  63129. 8019af0: 693b ldr r3, [r7, #16]
  63130. 8019af2: 627b str r3, [r7, #36] @ 0x24
  63131. 8019af4: e002 b.n 8019afc <pbuf_alloc+0x10c>
  63132. } else {
  63133. /* make previous pbuf point to this pbuf */
  63134. last->next = q;
  63135. 8019af6: 69fb ldr r3, [r7, #28]
  63136. 8019af8: 693a ldr r2, [r7, #16]
  63137. 8019afa: 601a str r2, [r3, #0]
  63138. }
  63139. last = q;
  63140. 8019afc: 693b ldr r3, [r7, #16]
  63141. 8019afe: 61fb str r3, [r7, #28]
  63142. rem_len = (u16_t)(rem_len - qlen);
  63143. 8019b00: 8b7a ldrh r2, [r7, #26]
  63144. 8019b02: 89fb ldrh r3, [r7, #14]
  63145. 8019b04: 1ad3 subs r3, r2, r3
  63146. 8019b06: 837b strh r3, [r7, #26]
  63147. offset = 0;
  63148. 8019b08: 2300 movs r3, #0
  63149. 8019b0a: 847b strh r3, [r7, #34] @ 0x22
  63150. } while (rem_len > 0);
  63151. 8019b0c: 8b7b ldrh r3, [r7, #26]
  63152. 8019b0e: 2b00 cmp r3, #0
  63153. 8019b10: d19c bne.n 8019a4c <pbuf_alloc+0x5c>
  63154. break;
  63155. 8019b12: e054 b.n 8019bbe <pbuf_alloc+0x1ce>
  63156. }
  63157. case PBUF_RAM: {
  63158. u16_t payload_len = (u16_t)(LWIP_MEM_ALIGN_SIZE(offset) + LWIP_MEM_ALIGN_SIZE(length));
  63159. 8019b14: 8c7b ldrh r3, [r7, #34] @ 0x22
  63160. 8019b16: 3303 adds r3, #3
  63161. 8019b18: b29b uxth r3, r3
  63162. 8019b1a: f023 0303 bic.w r3, r3, #3
  63163. 8019b1e: b29a uxth r2, r3
  63164. 8019b20: 88bb ldrh r3, [r7, #4]
  63165. 8019b22: 3303 adds r3, #3
  63166. 8019b24: b29b uxth r3, r3
  63167. 8019b26: f023 0303 bic.w r3, r3, #3
  63168. 8019b2a: b29b uxth r3, r3
  63169. 8019b2c: 4413 add r3, r2
  63170. 8019b2e: 833b strh r3, [r7, #24]
  63171. mem_size_t alloc_len = (mem_size_t)(LWIP_MEM_ALIGN_SIZE(SIZEOF_STRUCT_PBUF) + payload_len);
  63172. 8019b30: 8b3b ldrh r3, [r7, #24]
  63173. 8019b32: 3310 adds r3, #16
  63174. 8019b34: 617b str r3, [r7, #20]
  63175. /* bug #50040: Check for integer overflow when calculating alloc_len */
  63176. if ((payload_len < LWIP_MEM_ALIGN_SIZE(length)) ||
  63177. 8019b36: 8b3a ldrh r2, [r7, #24]
  63178. 8019b38: 88bb ldrh r3, [r7, #4]
  63179. 8019b3a: 3303 adds r3, #3
  63180. 8019b3c: f023 0303 bic.w r3, r3, #3
  63181. 8019b40: 429a cmp r2, r3
  63182. 8019b42: d306 bcc.n 8019b52 <pbuf_alloc+0x162>
  63183. (alloc_len < LWIP_MEM_ALIGN_SIZE(length))) {
  63184. 8019b44: 88bb ldrh r3, [r7, #4]
  63185. 8019b46: 3303 adds r3, #3
  63186. 8019b48: f023 0303 bic.w r3, r3, #3
  63187. if ((payload_len < LWIP_MEM_ALIGN_SIZE(length)) ||
  63188. 8019b4c: 697a ldr r2, [r7, #20]
  63189. 8019b4e: 429a cmp r2, r3
  63190. 8019b50: d201 bcs.n 8019b56 <pbuf_alloc+0x166>
  63191. return NULL;
  63192. 8019b52: 2300 movs r3, #0
  63193. 8019b54: e034 b.n 8019bc0 <pbuf_alloc+0x1d0>
  63194. }
  63195. /* If pbuf is to be allocated in RAM, allocate memory for it. */
  63196. p = (struct pbuf *)mem_malloc(alloc_len);
  63197. 8019b56: 6978 ldr r0, [r7, #20]
  63198. 8019b58: f7ff f960 bl 8018e1c <mem_malloc>
  63199. 8019b5c: 6278 str r0, [r7, #36] @ 0x24
  63200. if (p == NULL) {
  63201. 8019b5e: 6a7b ldr r3, [r7, #36] @ 0x24
  63202. 8019b60: 2b00 cmp r3, #0
  63203. 8019b62: d101 bne.n 8019b68 <pbuf_alloc+0x178>
  63204. return NULL;
  63205. 8019b64: 2300 movs r3, #0
  63206. 8019b66: e02b b.n 8019bc0 <pbuf_alloc+0x1d0>
  63207. }
  63208. pbuf_init_alloced_pbuf(p, LWIP_MEM_ALIGN((void *)((u8_t *)p + SIZEOF_STRUCT_PBUF + offset)),
  63209. 8019b68: 8c7b ldrh r3, [r7, #34] @ 0x22
  63210. 8019b6a: 3310 adds r3, #16
  63211. 8019b6c: 6a7a ldr r2, [r7, #36] @ 0x24
  63212. 8019b6e: 4413 add r3, r2
  63213. 8019b70: 3303 adds r3, #3
  63214. 8019b72: f023 0303 bic.w r3, r3, #3
  63215. 8019b76: 4618 mov r0, r3
  63216. 8019b78: 88b9 ldrh r1, [r7, #4]
  63217. 8019b7a: 88ba ldrh r2, [r7, #4]
  63218. 8019b7c: 2300 movs r3, #0
  63219. 8019b7e: 9301 str r3, [sp, #4]
  63220. 8019b80: 887b ldrh r3, [r7, #2]
  63221. 8019b82: 9300 str r3, [sp, #0]
  63222. 8019b84: 460b mov r3, r1
  63223. 8019b86: 4601 mov r1, r0
  63224. 8019b88: 6a78 ldr r0, [r7, #36] @ 0x24
  63225. 8019b8a: f7ff ff07 bl 801999c <pbuf_init_alloced_pbuf>
  63226. length, length, type, 0);
  63227. LWIP_ASSERT("pbuf_alloc: pbuf->payload properly aligned",
  63228. 8019b8e: 6a7b ldr r3, [r7, #36] @ 0x24
  63229. 8019b90: 685b ldr r3, [r3, #4]
  63230. 8019b92: f003 0303 and.w r3, r3, #3
  63231. 8019b96: 2b00 cmp r3, #0
  63232. 8019b98: d010 beq.n 8019bbc <pbuf_alloc+0x1cc>
  63233. 8019b9a: 4b0b ldr r3, [pc, #44] @ (8019bc8 <pbuf_alloc+0x1d8>)
  63234. 8019b9c: f44f 7291 mov.w r2, #290 @ 0x122
  63235. 8019ba0: 490d ldr r1, [pc, #52] @ (8019bd8 <pbuf_alloc+0x1e8>)
  63236. 8019ba2: 480b ldr r0, [pc, #44] @ (8019bd0 <pbuf_alloc+0x1e0>)
  63237. 8019ba4: f00f fcb2 bl 802950c <iprintf>
  63238. ((mem_ptr_t)p->payload % MEM_ALIGNMENT) == 0);
  63239. break;
  63240. 8019ba8: e008 b.n 8019bbc <pbuf_alloc+0x1cc>
  63241. }
  63242. default:
  63243. LWIP_ASSERT("pbuf_alloc: erroneous type", 0);
  63244. 8019baa: 4b07 ldr r3, [pc, #28] @ (8019bc8 <pbuf_alloc+0x1d8>)
  63245. 8019bac: f240 1227 movw r2, #295 @ 0x127
  63246. 8019bb0: 490a ldr r1, [pc, #40] @ (8019bdc <pbuf_alloc+0x1ec>)
  63247. 8019bb2: 4807 ldr r0, [pc, #28] @ (8019bd0 <pbuf_alloc+0x1e0>)
  63248. 8019bb4: f00f fcaa bl 802950c <iprintf>
  63249. return NULL;
  63250. 8019bb8: 2300 movs r3, #0
  63251. 8019bba: e001 b.n 8019bc0 <pbuf_alloc+0x1d0>
  63252. break;
  63253. 8019bbc: bf00 nop
  63254. }
  63255. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloc(length=%"U16_F") == %p\n", length, (void *)p));
  63256. return p;
  63257. 8019bbe: 6a7b ldr r3, [r7, #36] @ 0x24
  63258. }
  63259. 8019bc0: 4618 mov r0, r3
  63260. 8019bc2: 3728 adds r7, #40 @ 0x28
  63261. 8019bc4: 46bd mov sp, r7
  63262. 8019bc6: bd80 pop {r7, pc}
  63263. 8019bc8: 0802dc3c .word 0x0802dc3c
  63264. 8019bcc: 0802dc6c .word 0x0802dc6c
  63265. 8019bd0: 0802dc9c .word 0x0802dc9c
  63266. 8019bd4: 0802dcc4 .word 0x0802dcc4
  63267. 8019bd8: 0802dcf8 .word 0x0802dcf8
  63268. 8019bdc: 0802dd24 .word 0x0802dd24
  63269. 08019be0 <pbuf_alloc_reference>:
  63270. *
  63271. * @return the allocated pbuf.
  63272. */
  63273. struct pbuf *
  63274. pbuf_alloc_reference(void *payload, u16_t length, pbuf_type type)
  63275. {
  63276. 8019be0: b580 push {r7, lr}
  63277. 8019be2: b086 sub sp, #24
  63278. 8019be4: af02 add r7, sp, #8
  63279. 8019be6: 6078 str r0, [r7, #4]
  63280. 8019be8: 460b mov r3, r1
  63281. 8019bea: 807b strh r3, [r7, #2]
  63282. 8019bec: 4613 mov r3, r2
  63283. 8019bee: 803b strh r3, [r7, #0]
  63284. struct pbuf *p;
  63285. LWIP_ASSERT("invalid pbuf_type", (type == PBUF_REF) || (type == PBUF_ROM));
  63286. 8019bf0: 883b ldrh r3, [r7, #0]
  63287. 8019bf2: 2b41 cmp r3, #65 @ 0x41
  63288. 8019bf4: d009 beq.n 8019c0a <pbuf_alloc_reference+0x2a>
  63289. 8019bf6: 883b ldrh r3, [r7, #0]
  63290. 8019bf8: 2b01 cmp r3, #1
  63291. 8019bfa: d006 beq.n 8019c0a <pbuf_alloc_reference+0x2a>
  63292. 8019bfc: 4b0f ldr r3, [pc, #60] @ (8019c3c <pbuf_alloc_reference+0x5c>)
  63293. 8019bfe: f44f 72a5 mov.w r2, #330 @ 0x14a
  63294. 8019c02: 490f ldr r1, [pc, #60] @ (8019c40 <pbuf_alloc_reference+0x60>)
  63295. 8019c04: 480f ldr r0, [pc, #60] @ (8019c44 <pbuf_alloc_reference+0x64>)
  63296. 8019c06: f00f fc81 bl 802950c <iprintf>
  63297. /* only allocate memory for the pbuf structure */
  63298. p = (struct pbuf *)memp_malloc(MEMP_PBUF);
  63299. 8019c0a: 200b movs r0, #11
  63300. 8019c0c: f7ff faa2 bl 8019154 <memp_malloc>
  63301. 8019c10: 60f8 str r0, [r7, #12]
  63302. if (p == NULL) {
  63303. 8019c12: 68fb ldr r3, [r7, #12]
  63304. 8019c14: 2b00 cmp r3, #0
  63305. 8019c16: d101 bne.n 8019c1c <pbuf_alloc_reference+0x3c>
  63306. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_LEVEL_SERIOUS,
  63307. ("pbuf_alloc_reference: Could not allocate MEMP_PBUF for PBUF_%s.\n",
  63308. (type == PBUF_ROM) ? "ROM" : "REF"));
  63309. return NULL;
  63310. 8019c18: 2300 movs r3, #0
  63311. 8019c1a: e00b b.n 8019c34 <pbuf_alloc_reference+0x54>
  63312. }
  63313. pbuf_init_alloced_pbuf(p, payload, length, length, type, 0);
  63314. 8019c1c: 8879 ldrh r1, [r7, #2]
  63315. 8019c1e: 887a ldrh r2, [r7, #2]
  63316. 8019c20: 2300 movs r3, #0
  63317. 8019c22: 9301 str r3, [sp, #4]
  63318. 8019c24: 883b ldrh r3, [r7, #0]
  63319. 8019c26: 9300 str r3, [sp, #0]
  63320. 8019c28: 460b mov r3, r1
  63321. 8019c2a: 6879 ldr r1, [r7, #4]
  63322. 8019c2c: 68f8 ldr r0, [r7, #12]
  63323. 8019c2e: f7ff feb5 bl 801999c <pbuf_init_alloced_pbuf>
  63324. return p;
  63325. 8019c32: 68fb ldr r3, [r7, #12]
  63326. }
  63327. 8019c34: 4618 mov r0, r3
  63328. 8019c36: 3710 adds r7, #16
  63329. 8019c38: 46bd mov sp, r7
  63330. 8019c3a: bd80 pop {r7, pc}
  63331. 8019c3c: 0802dc3c .word 0x0802dc3c
  63332. 8019c40: 0802dd40 .word 0x0802dd40
  63333. 8019c44: 0802dc9c .word 0x0802dc9c
  63334. 08019c48 <pbuf_alloced_custom>:
  63335. * big enough to hold 'length' plus the header size
  63336. */
  63337. struct pbuf *
  63338. pbuf_alloced_custom(pbuf_layer l, u16_t length, pbuf_type type, struct pbuf_custom *p,
  63339. void *payload_mem, u16_t payload_mem_len)
  63340. {
  63341. 8019c48: b580 push {r7, lr}
  63342. 8019c4a: b088 sub sp, #32
  63343. 8019c4c: af02 add r7, sp, #8
  63344. 8019c4e: 607b str r3, [r7, #4]
  63345. 8019c50: 4603 mov r3, r0
  63346. 8019c52: 73fb strb r3, [r7, #15]
  63347. 8019c54: 460b mov r3, r1
  63348. 8019c56: 81bb strh r3, [r7, #12]
  63349. 8019c58: 4613 mov r3, r2
  63350. 8019c5a: 817b strh r3, [r7, #10]
  63351. u16_t offset = (u16_t)l;
  63352. 8019c5c: 7bfb ldrb r3, [r7, #15]
  63353. 8019c5e: 827b strh r3, [r7, #18]
  63354. void *payload;
  63355. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloced_custom(length=%"U16_F")\n", length));
  63356. if (LWIP_MEM_ALIGN_SIZE(offset) + length > payload_mem_len) {
  63357. 8019c60: 8a7b ldrh r3, [r7, #18]
  63358. 8019c62: 3303 adds r3, #3
  63359. 8019c64: f023 0203 bic.w r2, r3, #3
  63360. 8019c68: 89bb ldrh r3, [r7, #12]
  63361. 8019c6a: 441a add r2, r3
  63362. 8019c6c: 8cbb ldrh r3, [r7, #36] @ 0x24
  63363. 8019c6e: 429a cmp r2, r3
  63364. 8019c70: d901 bls.n 8019c76 <pbuf_alloced_custom+0x2e>
  63365. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_LEVEL_WARNING, ("pbuf_alloced_custom(length=%"U16_F") buffer too short\n", length));
  63366. return NULL;
  63367. 8019c72: 2300 movs r3, #0
  63368. 8019c74: e018 b.n 8019ca8 <pbuf_alloced_custom+0x60>
  63369. }
  63370. if (payload_mem != NULL) {
  63371. 8019c76: 6a3b ldr r3, [r7, #32]
  63372. 8019c78: 2b00 cmp r3, #0
  63373. 8019c7a: d007 beq.n 8019c8c <pbuf_alloced_custom+0x44>
  63374. payload = (u8_t *)payload_mem + LWIP_MEM_ALIGN_SIZE(offset);
  63375. 8019c7c: 8a7b ldrh r3, [r7, #18]
  63376. 8019c7e: 3303 adds r3, #3
  63377. 8019c80: f023 0303 bic.w r3, r3, #3
  63378. 8019c84: 6a3a ldr r2, [r7, #32]
  63379. 8019c86: 4413 add r3, r2
  63380. 8019c88: 617b str r3, [r7, #20]
  63381. 8019c8a: e001 b.n 8019c90 <pbuf_alloced_custom+0x48>
  63382. } else {
  63383. payload = NULL;
  63384. 8019c8c: 2300 movs r3, #0
  63385. 8019c8e: 617b str r3, [r7, #20]
  63386. }
  63387. pbuf_init_alloced_pbuf(&p->pbuf, payload, length, length, type, PBUF_FLAG_IS_CUSTOM);
  63388. 8019c90: 6878 ldr r0, [r7, #4]
  63389. 8019c92: 89b9 ldrh r1, [r7, #12]
  63390. 8019c94: 89ba ldrh r2, [r7, #12]
  63391. 8019c96: 2302 movs r3, #2
  63392. 8019c98: 9301 str r3, [sp, #4]
  63393. 8019c9a: 897b ldrh r3, [r7, #10]
  63394. 8019c9c: 9300 str r3, [sp, #0]
  63395. 8019c9e: 460b mov r3, r1
  63396. 8019ca0: 6979 ldr r1, [r7, #20]
  63397. 8019ca2: f7ff fe7b bl 801999c <pbuf_init_alloced_pbuf>
  63398. return &p->pbuf;
  63399. 8019ca6: 687b ldr r3, [r7, #4]
  63400. }
  63401. 8019ca8: 4618 mov r0, r3
  63402. 8019caa: 3718 adds r7, #24
  63403. 8019cac: 46bd mov sp, r7
  63404. 8019cae: bd80 pop {r7, pc}
  63405. 08019cb0 <pbuf_realloc>:
  63406. *
  63407. * @note Despite its name, pbuf_realloc cannot grow the size of a pbuf (chain).
  63408. */
  63409. void
  63410. pbuf_realloc(struct pbuf *p, u16_t new_len)
  63411. {
  63412. 8019cb0: b580 push {r7, lr}
  63413. 8019cb2: b084 sub sp, #16
  63414. 8019cb4: af00 add r7, sp, #0
  63415. 8019cb6: 6078 str r0, [r7, #4]
  63416. 8019cb8: 460b mov r3, r1
  63417. 8019cba: 807b strh r3, [r7, #2]
  63418. struct pbuf *q;
  63419. u16_t rem_len; /* remaining length */
  63420. u16_t shrink;
  63421. LWIP_ASSERT("pbuf_realloc: p != NULL", p != NULL);
  63422. 8019cbc: 687b ldr r3, [r7, #4]
  63423. 8019cbe: 2b00 cmp r3, #0
  63424. 8019cc0: d106 bne.n 8019cd0 <pbuf_realloc+0x20>
  63425. 8019cc2: 4b39 ldr r3, [pc, #228] @ (8019da8 <pbuf_realloc+0xf8>)
  63426. 8019cc4: f44f 72cc mov.w r2, #408 @ 0x198
  63427. 8019cc8: 4938 ldr r1, [pc, #224] @ (8019dac <pbuf_realloc+0xfc>)
  63428. 8019cca: 4839 ldr r0, [pc, #228] @ (8019db0 <pbuf_realloc+0x100>)
  63429. 8019ccc: f00f fc1e bl 802950c <iprintf>
  63430. /* desired length larger than current length? */
  63431. if (new_len >= p->tot_len) {
  63432. 8019cd0: 687b ldr r3, [r7, #4]
  63433. 8019cd2: 891b ldrh r3, [r3, #8]
  63434. 8019cd4: 887a ldrh r2, [r7, #2]
  63435. 8019cd6: 429a cmp r2, r3
  63436. 8019cd8: d261 bcs.n 8019d9e <pbuf_realloc+0xee>
  63437. return;
  63438. }
  63439. /* the pbuf chain grows by (new_len - p->tot_len) bytes
  63440. * (which may be negative in case of shrinking) */
  63441. shrink = (u16_t)(p->tot_len - new_len);
  63442. 8019cda: 687b ldr r3, [r7, #4]
  63443. 8019cdc: 891a ldrh r2, [r3, #8]
  63444. 8019cde: 887b ldrh r3, [r7, #2]
  63445. 8019ce0: 1ad3 subs r3, r2, r3
  63446. 8019ce2: 813b strh r3, [r7, #8]
  63447. /* first, step over any pbufs that should remain in the chain */
  63448. rem_len = new_len;
  63449. 8019ce4: 887b ldrh r3, [r7, #2]
  63450. 8019ce6: 817b strh r3, [r7, #10]
  63451. q = p;
  63452. 8019ce8: 687b ldr r3, [r7, #4]
  63453. 8019cea: 60fb str r3, [r7, #12]
  63454. /* should this pbuf be kept? */
  63455. while (rem_len > q->len) {
  63456. 8019cec: e018 b.n 8019d20 <pbuf_realloc+0x70>
  63457. /* decrease remaining length by pbuf length */
  63458. rem_len = (u16_t)(rem_len - q->len);
  63459. 8019cee: 68fb ldr r3, [r7, #12]
  63460. 8019cf0: 895b ldrh r3, [r3, #10]
  63461. 8019cf2: 897a ldrh r2, [r7, #10]
  63462. 8019cf4: 1ad3 subs r3, r2, r3
  63463. 8019cf6: 817b strh r3, [r7, #10]
  63464. /* decrease total length indicator */
  63465. q->tot_len = (u16_t)(q->tot_len - shrink);
  63466. 8019cf8: 68fb ldr r3, [r7, #12]
  63467. 8019cfa: 891a ldrh r2, [r3, #8]
  63468. 8019cfc: 893b ldrh r3, [r7, #8]
  63469. 8019cfe: 1ad3 subs r3, r2, r3
  63470. 8019d00: b29a uxth r2, r3
  63471. 8019d02: 68fb ldr r3, [r7, #12]
  63472. 8019d04: 811a strh r2, [r3, #8]
  63473. /* proceed to next pbuf in chain */
  63474. q = q->next;
  63475. 8019d06: 68fb ldr r3, [r7, #12]
  63476. 8019d08: 681b ldr r3, [r3, #0]
  63477. 8019d0a: 60fb str r3, [r7, #12]
  63478. LWIP_ASSERT("pbuf_realloc: q != NULL", q != NULL);
  63479. 8019d0c: 68fb ldr r3, [r7, #12]
  63480. 8019d0e: 2b00 cmp r3, #0
  63481. 8019d10: d106 bne.n 8019d20 <pbuf_realloc+0x70>
  63482. 8019d12: 4b25 ldr r3, [pc, #148] @ (8019da8 <pbuf_realloc+0xf8>)
  63483. 8019d14: f240 12af movw r2, #431 @ 0x1af
  63484. 8019d18: 4926 ldr r1, [pc, #152] @ (8019db4 <pbuf_realloc+0x104>)
  63485. 8019d1a: 4825 ldr r0, [pc, #148] @ (8019db0 <pbuf_realloc+0x100>)
  63486. 8019d1c: f00f fbf6 bl 802950c <iprintf>
  63487. while (rem_len > q->len) {
  63488. 8019d20: 68fb ldr r3, [r7, #12]
  63489. 8019d22: 895b ldrh r3, [r3, #10]
  63490. 8019d24: 897a ldrh r2, [r7, #10]
  63491. 8019d26: 429a cmp r2, r3
  63492. 8019d28: d8e1 bhi.n 8019cee <pbuf_realloc+0x3e>
  63493. /* we have now reached the new last pbuf (in q) */
  63494. /* rem_len == desired length for pbuf q */
  63495. /* shrink allocated memory for PBUF_RAM */
  63496. /* (other types merely adjust their length fields */
  63497. if (pbuf_match_allocsrc(q, PBUF_TYPE_ALLOC_SRC_MASK_STD_HEAP) && (rem_len != q->len)
  63498. 8019d2a: 68fb ldr r3, [r7, #12]
  63499. 8019d2c: 7b1b ldrb r3, [r3, #12]
  63500. 8019d2e: f003 030f and.w r3, r3, #15
  63501. 8019d32: 2b00 cmp r3, #0
  63502. 8019d34: d11f bne.n 8019d76 <pbuf_realloc+0xc6>
  63503. 8019d36: 68fb ldr r3, [r7, #12]
  63504. 8019d38: 895b ldrh r3, [r3, #10]
  63505. 8019d3a: 897a ldrh r2, [r7, #10]
  63506. 8019d3c: 429a cmp r2, r3
  63507. 8019d3e: d01a beq.n 8019d76 <pbuf_realloc+0xc6>
  63508. #if LWIP_SUPPORT_CUSTOM_PBUF
  63509. && ((q->flags & PBUF_FLAG_IS_CUSTOM) == 0)
  63510. 8019d40: 68fb ldr r3, [r7, #12]
  63511. 8019d42: 7b5b ldrb r3, [r3, #13]
  63512. 8019d44: f003 0302 and.w r3, r3, #2
  63513. 8019d48: 2b00 cmp r3, #0
  63514. 8019d4a: d114 bne.n 8019d76 <pbuf_realloc+0xc6>
  63515. #endif /* LWIP_SUPPORT_CUSTOM_PBUF */
  63516. ) {
  63517. /* reallocate and adjust the length of the pbuf that will be split */
  63518. q = (struct pbuf *)mem_trim(q, (mem_size_t)(((u8_t *)q->payload - (u8_t *)q) + rem_len));
  63519. 8019d4c: 68fb ldr r3, [r7, #12]
  63520. 8019d4e: 685a ldr r2, [r3, #4]
  63521. 8019d50: 68fb ldr r3, [r7, #12]
  63522. 8019d52: 1ad2 subs r2, r2, r3
  63523. 8019d54: 897b ldrh r3, [r7, #10]
  63524. 8019d56: 4413 add r3, r2
  63525. 8019d58: 4619 mov r1, r3
  63526. 8019d5a: 68f8 ldr r0, [r7, #12]
  63527. 8019d5c: f7fe ff5c bl 8018c18 <mem_trim>
  63528. 8019d60: 60f8 str r0, [r7, #12]
  63529. LWIP_ASSERT("mem_trim returned q == NULL", q != NULL);
  63530. 8019d62: 68fb ldr r3, [r7, #12]
  63531. 8019d64: 2b00 cmp r3, #0
  63532. 8019d66: d106 bne.n 8019d76 <pbuf_realloc+0xc6>
  63533. 8019d68: 4b0f ldr r3, [pc, #60] @ (8019da8 <pbuf_realloc+0xf8>)
  63534. 8019d6a: f240 12bd movw r2, #445 @ 0x1bd
  63535. 8019d6e: 4912 ldr r1, [pc, #72] @ (8019db8 <pbuf_realloc+0x108>)
  63536. 8019d70: 480f ldr r0, [pc, #60] @ (8019db0 <pbuf_realloc+0x100>)
  63537. 8019d72: f00f fbcb bl 802950c <iprintf>
  63538. }
  63539. /* adjust length fields for new last pbuf */
  63540. q->len = rem_len;
  63541. 8019d76: 68fb ldr r3, [r7, #12]
  63542. 8019d78: 897a ldrh r2, [r7, #10]
  63543. 8019d7a: 815a strh r2, [r3, #10]
  63544. q->tot_len = q->len;
  63545. 8019d7c: 68fb ldr r3, [r7, #12]
  63546. 8019d7e: 895a ldrh r2, [r3, #10]
  63547. 8019d80: 68fb ldr r3, [r7, #12]
  63548. 8019d82: 811a strh r2, [r3, #8]
  63549. /* any remaining pbufs in chain? */
  63550. if (q->next != NULL) {
  63551. 8019d84: 68fb ldr r3, [r7, #12]
  63552. 8019d86: 681b ldr r3, [r3, #0]
  63553. 8019d88: 2b00 cmp r3, #0
  63554. 8019d8a: d004 beq.n 8019d96 <pbuf_realloc+0xe6>
  63555. /* free remaining pbufs in chain */
  63556. pbuf_free(q->next);
  63557. 8019d8c: 68fb ldr r3, [r7, #12]
  63558. 8019d8e: 681b ldr r3, [r3, #0]
  63559. 8019d90: 4618 mov r0, r3
  63560. 8019d92: f000 f943 bl 801a01c <pbuf_free>
  63561. }
  63562. /* q is last packet in chain */
  63563. q->next = NULL;
  63564. 8019d96: 68fb ldr r3, [r7, #12]
  63565. 8019d98: 2200 movs r2, #0
  63566. 8019d9a: 601a str r2, [r3, #0]
  63567. 8019d9c: e000 b.n 8019da0 <pbuf_realloc+0xf0>
  63568. return;
  63569. 8019d9e: bf00 nop
  63570. }
  63571. 8019da0: 3710 adds r7, #16
  63572. 8019da2: 46bd mov sp, r7
  63573. 8019da4: bd80 pop {r7, pc}
  63574. 8019da6: bf00 nop
  63575. 8019da8: 0802dc3c .word 0x0802dc3c
  63576. 8019dac: 0802dd54 .word 0x0802dd54
  63577. 8019db0: 0802dc9c .word 0x0802dc9c
  63578. 8019db4: 0802dd6c .word 0x0802dd6c
  63579. 8019db8: 0802dd84 .word 0x0802dd84
  63580. 08019dbc <pbuf_add_header_impl>:
  63581. * @return non-zero on failure, zero on success.
  63582. *
  63583. */
  63584. static u8_t
  63585. pbuf_add_header_impl(struct pbuf *p, size_t header_size_increment, u8_t force)
  63586. {
  63587. 8019dbc: b580 push {r7, lr}
  63588. 8019dbe: b086 sub sp, #24
  63589. 8019dc0: af00 add r7, sp, #0
  63590. 8019dc2: 60f8 str r0, [r7, #12]
  63591. 8019dc4: 60b9 str r1, [r7, #8]
  63592. 8019dc6: 4613 mov r3, r2
  63593. 8019dc8: 71fb strb r3, [r7, #7]
  63594. u16_t type_internal;
  63595. void *payload;
  63596. u16_t increment_magnitude;
  63597. LWIP_ASSERT("p != NULL", p != NULL);
  63598. 8019dca: 68fb ldr r3, [r7, #12]
  63599. 8019dcc: 2b00 cmp r3, #0
  63600. 8019dce: d106 bne.n 8019dde <pbuf_add_header_impl+0x22>
  63601. 8019dd0: 4b2b ldr r3, [pc, #172] @ (8019e80 <pbuf_add_header_impl+0xc4>)
  63602. 8019dd2: f240 12df movw r2, #479 @ 0x1df
  63603. 8019dd6: 492b ldr r1, [pc, #172] @ (8019e84 <pbuf_add_header_impl+0xc8>)
  63604. 8019dd8: 482b ldr r0, [pc, #172] @ (8019e88 <pbuf_add_header_impl+0xcc>)
  63605. 8019dda: f00f fb97 bl 802950c <iprintf>
  63606. if ((p == NULL) || (header_size_increment > 0xFFFF)) {
  63607. 8019dde: 68fb ldr r3, [r7, #12]
  63608. 8019de0: 2b00 cmp r3, #0
  63609. 8019de2: d003 beq.n 8019dec <pbuf_add_header_impl+0x30>
  63610. 8019de4: 68bb ldr r3, [r7, #8]
  63611. 8019de6: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  63612. 8019dea: d301 bcc.n 8019df0 <pbuf_add_header_impl+0x34>
  63613. return 1;
  63614. 8019dec: 2301 movs r3, #1
  63615. 8019dee: e043 b.n 8019e78 <pbuf_add_header_impl+0xbc>
  63616. }
  63617. if (header_size_increment == 0) {
  63618. 8019df0: 68bb ldr r3, [r7, #8]
  63619. 8019df2: 2b00 cmp r3, #0
  63620. 8019df4: d101 bne.n 8019dfa <pbuf_add_header_impl+0x3e>
  63621. return 0;
  63622. 8019df6: 2300 movs r3, #0
  63623. 8019df8: e03e b.n 8019e78 <pbuf_add_header_impl+0xbc>
  63624. }
  63625. increment_magnitude = (u16_t)header_size_increment;
  63626. 8019dfa: 68bb ldr r3, [r7, #8]
  63627. 8019dfc: 827b strh r3, [r7, #18]
  63628. /* Do not allow tot_len to wrap as a result. */
  63629. if ((u16_t)(increment_magnitude + p->tot_len) < increment_magnitude) {
  63630. 8019dfe: 68fb ldr r3, [r7, #12]
  63631. 8019e00: 891a ldrh r2, [r3, #8]
  63632. 8019e02: 8a7b ldrh r3, [r7, #18]
  63633. 8019e04: 4413 add r3, r2
  63634. 8019e06: b29b uxth r3, r3
  63635. 8019e08: 8a7a ldrh r2, [r7, #18]
  63636. 8019e0a: 429a cmp r2, r3
  63637. 8019e0c: d901 bls.n 8019e12 <pbuf_add_header_impl+0x56>
  63638. return 1;
  63639. 8019e0e: 2301 movs r3, #1
  63640. 8019e10: e032 b.n 8019e78 <pbuf_add_header_impl+0xbc>
  63641. }
  63642. type_internal = p->type_internal;
  63643. 8019e12: 68fb ldr r3, [r7, #12]
  63644. 8019e14: 7b1b ldrb r3, [r3, #12]
  63645. 8019e16: 823b strh r3, [r7, #16]
  63646. /* pbuf types containing payloads? */
  63647. if (type_internal & PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS) {
  63648. 8019e18: 8a3b ldrh r3, [r7, #16]
  63649. 8019e1a: f003 0380 and.w r3, r3, #128 @ 0x80
  63650. 8019e1e: 2b00 cmp r3, #0
  63651. 8019e20: d00c beq.n 8019e3c <pbuf_add_header_impl+0x80>
  63652. /* set new payload pointer */
  63653. payload = (u8_t *)p->payload - header_size_increment;
  63654. 8019e22: 68fb ldr r3, [r7, #12]
  63655. 8019e24: 685a ldr r2, [r3, #4]
  63656. 8019e26: 68bb ldr r3, [r7, #8]
  63657. 8019e28: 425b negs r3, r3
  63658. 8019e2a: 4413 add r3, r2
  63659. 8019e2c: 617b str r3, [r7, #20]
  63660. /* boundary check fails? */
  63661. if ((u8_t *)payload < (u8_t *)p + SIZEOF_STRUCT_PBUF) {
  63662. 8019e2e: 68fb ldr r3, [r7, #12]
  63663. 8019e30: 3310 adds r3, #16
  63664. 8019e32: 697a ldr r2, [r7, #20]
  63665. 8019e34: 429a cmp r2, r3
  63666. 8019e36: d20d bcs.n 8019e54 <pbuf_add_header_impl+0x98>
  63667. LWIP_DEBUGF( PBUF_DEBUG | LWIP_DBG_TRACE,
  63668. ("pbuf_add_header: failed as %p < %p (not enough space for new header size)\n",
  63669. (void *)payload, (void *)((u8_t *)p + SIZEOF_STRUCT_PBUF)));
  63670. /* bail out unsuccessfully */
  63671. return 1;
  63672. 8019e38: 2301 movs r3, #1
  63673. 8019e3a: e01d b.n 8019e78 <pbuf_add_header_impl+0xbc>
  63674. }
  63675. /* pbuf types referring to external payloads? */
  63676. } else {
  63677. /* hide a header in the payload? */
  63678. if (force) {
  63679. 8019e3c: 79fb ldrb r3, [r7, #7]
  63680. 8019e3e: 2b00 cmp r3, #0
  63681. 8019e40: d006 beq.n 8019e50 <pbuf_add_header_impl+0x94>
  63682. payload = (u8_t *)p->payload - header_size_increment;
  63683. 8019e42: 68fb ldr r3, [r7, #12]
  63684. 8019e44: 685a ldr r2, [r3, #4]
  63685. 8019e46: 68bb ldr r3, [r7, #8]
  63686. 8019e48: 425b negs r3, r3
  63687. 8019e4a: 4413 add r3, r2
  63688. 8019e4c: 617b str r3, [r7, #20]
  63689. 8019e4e: e001 b.n 8019e54 <pbuf_add_header_impl+0x98>
  63690. } else {
  63691. /* cannot expand payload to front (yet!)
  63692. * bail out unsuccessfully */
  63693. return 1;
  63694. 8019e50: 2301 movs r3, #1
  63695. 8019e52: e011 b.n 8019e78 <pbuf_add_header_impl+0xbc>
  63696. }
  63697. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_add_header: old %p new %p (%"U16_F")\n",
  63698. (void *)p->payload, (void *)payload, increment_magnitude));
  63699. /* modify pbuf fields */
  63700. p->payload = payload;
  63701. 8019e54: 68fb ldr r3, [r7, #12]
  63702. 8019e56: 697a ldr r2, [r7, #20]
  63703. 8019e58: 605a str r2, [r3, #4]
  63704. p->len = (u16_t)(p->len + increment_magnitude);
  63705. 8019e5a: 68fb ldr r3, [r7, #12]
  63706. 8019e5c: 895a ldrh r2, [r3, #10]
  63707. 8019e5e: 8a7b ldrh r3, [r7, #18]
  63708. 8019e60: 4413 add r3, r2
  63709. 8019e62: b29a uxth r2, r3
  63710. 8019e64: 68fb ldr r3, [r7, #12]
  63711. 8019e66: 815a strh r2, [r3, #10]
  63712. p->tot_len = (u16_t)(p->tot_len + increment_magnitude);
  63713. 8019e68: 68fb ldr r3, [r7, #12]
  63714. 8019e6a: 891a ldrh r2, [r3, #8]
  63715. 8019e6c: 8a7b ldrh r3, [r7, #18]
  63716. 8019e6e: 4413 add r3, r2
  63717. 8019e70: b29a uxth r2, r3
  63718. 8019e72: 68fb ldr r3, [r7, #12]
  63719. 8019e74: 811a strh r2, [r3, #8]
  63720. return 0;
  63721. 8019e76: 2300 movs r3, #0
  63722. }
  63723. 8019e78: 4618 mov r0, r3
  63724. 8019e7a: 3718 adds r7, #24
  63725. 8019e7c: 46bd mov sp, r7
  63726. 8019e7e: bd80 pop {r7, pc}
  63727. 8019e80: 0802dc3c .word 0x0802dc3c
  63728. 8019e84: 0802dda0 .word 0x0802dda0
  63729. 8019e88: 0802dc9c .word 0x0802dc9c
  63730. 08019e8c <pbuf_add_header>:
  63731. * @return non-zero on failure, zero on success.
  63732. *
  63733. */
  63734. u8_t
  63735. pbuf_add_header(struct pbuf *p, size_t header_size_increment)
  63736. {
  63737. 8019e8c: b580 push {r7, lr}
  63738. 8019e8e: b082 sub sp, #8
  63739. 8019e90: af00 add r7, sp, #0
  63740. 8019e92: 6078 str r0, [r7, #4]
  63741. 8019e94: 6039 str r1, [r7, #0]
  63742. return pbuf_add_header_impl(p, header_size_increment, 0);
  63743. 8019e96: 2200 movs r2, #0
  63744. 8019e98: 6839 ldr r1, [r7, #0]
  63745. 8019e9a: 6878 ldr r0, [r7, #4]
  63746. 8019e9c: f7ff ff8e bl 8019dbc <pbuf_add_header_impl>
  63747. 8019ea0: 4603 mov r3, r0
  63748. }
  63749. 8019ea2: 4618 mov r0, r3
  63750. 8019ea4: 3708 adds r7, #8
  63751. 8019ea6: 46bd mov sp, r7
  63752. 8019ea8: bd80 pop {r7, pc}
  63753. ...
  63754. 08019eac <pbuf_remove_header>:
  63755. * @return non-zero on failure, zero on success.
  63756. *
  63757. */
  63758. u8_t
  63759. pbuf_remove_header(struct pbuf *p, size_t header_size_decrement)
  63760. {
  63761. 8019eac: b580 push {r7, lr}
  63762. 8019eae: b084 sub sp, #16
  63763. 8019eb0: af00 add r7, sp, #0
  63764. 8019eb2: 6078 str r0, [r7, #4]
  63765. 8019eb4: 6039 str r1, [r7, #0]
  63766. void *payload;
  63767. u16_t increment_magnitude;
  63768. LWIP_ASSERT("p != NULL", p != NULL);
  63769. 8019eb6: 687b ldr r3, [r7, #4]
  63770. 8019eb8: 2b00 cmp r3, #0
  63771. 8019eba: d106 bne.n 8019eca <pbuf_remove_header+0x1e>
  63772. 8019ebc: 4b20 ldr r3, [pc, #128] @ (8019f40 <pbuf_remove_header+0x94>)
  63773. 8019ebe: f240 224b movw r2, #587 @ 0x24b
  63774. 8019ec2: 4920 ldr r1, [pc, #128] @ (8019f44 <pbuf_remove_header+0x98>)
  63775. 8019ec4: 4820 ldr r0, [pc, #128] @ (8019f48 <pbuf_remove_header+0x9c>)
  63776. 8019ec6: f00f fb21 bl 802950c <iprintf>
  63777. if ((p == NULL) || (header_size_decrement > 0xFFFF)) {
  63778. 8019eca: 687b ldr r3, [r7, #4]
  63779. 8019ecc: 2b00 cmp r3, #0
  63780. 8019ece: d003 beq.n 8019ed8 <pbuf_remove_header+0x2c>
  63781. 8019ed0: 683b ldr r3, [r7, #0]
  63782. 8019ed2: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  63783. 8019ed6: d301 bcc.n 8019edc <pbuf_remove_header+0x30>
  63784. return 1;
  63785. 8019ed8: 2301 movs r3, #1
  63786. 8019eda: e02c b.n 8019f36 <pbuf_remove_header+0x8a>
  63787. }
  63788. if (header_size_decrement == 0) {
  63789. 8019edc: 683b ldr r3, [r7, #0]
  63790. 8019ede: 2b00 cmp r3, #0
  63791. 8019ee0: d101 bne.n 8019ee6 <pbuf_remove_header+0x3a>
  63792. return 0;
  63793. 8019ee2: 2300 movs r3, #0
  63794. 8019ee4: e027 b.n 8019f36 <pbuf_remove_header+0x8a>
  63795. }
  63796. increment_magnitude = (u16_t)header_size_decrement;
  63797. 8019ee6: 683b ldr r3, [r7, #0]
  63798. 8019ee8: 81fb strh r3, [r7, #14]
  63799. /* Check that we aren't going to move off the end of the pbuf */
  63800. LWIP_ERROR("increment_magnitude <= p->len", (increment_magnitude <= p->len), return 1;);
  63801. 8019eea: 687b ldr r3, [r7, #4]
  63802. 8019eec: 895b ldrh r3, [r3, #10]
  63803. 8019eee: 89fa ldrh r2, [r7, #14]
  63804. 8019ef0: 429a cmp r2, r3
  63805. 8019ef2: d908 bls.n 8019f06 <pbuf_remove_header+0x5a>
  63806. 8019ef4: 4b12 ldr r3, [pc, #72] @ (8019f40 <pbuf_remove_header+0x94>)
  63807. 8019ef6: f240 2255 movw r2, #597 @ 0x255
  63808. 8019efa: 4914 ldr r1, [pc, #80] @ (8019f4c <pbuf_remove_header+0xa0>)
  63809. 8019efc: 4812 ldr r0, [pc, #72] @ (8019f48 <pbuf_remove_header+0x9c>)
  63810. 8019efe: f00f fb05 bl 802950c <iprintf>
  63811. 8019f02: 2301 movs r3, #1
  63812. 8019f04: e017 b.n 8019f36 <pbuf_remove_header+0x8a>
  63813. /* remember current payload pointer */
  63814. payload = p->payload;
  63815. 8019f06: 687b ldr r3, [r7, #4]
  63816. 8019f08: 685b ldr r3, [r3, #4]
  63817. 8019f0a: 60bb str r3, [r7, #8]
  63818. LWIP_UNUSED_ARG(payload); /* only used in LWIP_DEBUGF below */
  63819. /* increase payload pointer (guarded by length check above) */
  63820. p->payload = (u8_t *)p->payload + header_size_decrement;
  63821. 8019f0c: 687b ldr r3, [r7, #4]
  63822. 8019f0e: 685a ldr r2, [r3, #4]
  63823. 8019f10: 683b ldr r3, [r7, #0]
  63824. 8019f12: 441a add r2, r3
  63825. 8019f14: 687b ldr r3, [r7, #4]
  63826. 8019f16: 605a str r2, [r3, #4]
  63827. /* modify pbuf length fields */
  63828. p->len = (u16_t)(p->len - increment_magnitude);
  63829. 8019f18: 687b ldr r3, [r7, #4]
  63830. 8019f1a: 895a ldrh r2, [r3, #10]
  63831. 8019f1c: 89fb ldrh r3, [r7, #14]
  63832. 8019f1e: 1ad3 subs r3, r2, r3
  63833. 8019f20: b29a uxth r2, r3
  63834. 8019f22: 687b ldr r3, [r7, #4]
  63835. 8019f24: 815a strh r2, [r3, #10]
  63836. p->tot_len = (u16_t)(p->tot_len - increment_magnitude);
  63837. 8019f26: 687b ldr r3, [r7, #4]
  63838. 8019f28: 891a ldrh r2, [r3, #8]
  63839. 8019f2a: 89fb ldrh r3, [r7, #14]
  63840. 8019f2c: 1ad3 subs r3, r2, r3
  63841. 8019f2e: b29a uxth r2, r3
  63842. 8019f30: 687b ldr r3, [r7, #4]
  63843. 8019f32: 811a strh r2, [r3, #8]
  63844. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_remove_header: old %p new %p (%"U16_F")\n",
  63845. (void *)payload, (void *)p->payload, increment_magnitude));
  63846. return 0;
  63847. 8019f34: 2300 movs r3, #0
  63848. }
  63849. 8019f36: 4618 mov r0, r3
  63850. 8019f38: 3710 adds r7, #16
  63851. 8019f3a: 46bd mov sp, r7
  63852. 8019f3c: bd80 pop {r7, pc}
  63853. 8019f3e: bf00 nop
  63854. 8019f40: 0802dc3c .word 0x0802dc3c
  63855. 8019f44: 0802dda0 .word 0x0802dda0
  63856. 8019f48: 0802dc9c .word 0x0802dc9c
  63857. 8019f4c: 0802ddac .word 0x0802ddac
  63858. 08019f50 <pbuf_header_impl>:
  63859. static u8_t
  63860. pbuf_header_impl(struct pbuf *p, s16_t header_size_increment, u8_t force)
  63861. {
  63862. 8019f50: b580 push {r7, lr}
  63863. 8019f52: b082 sub sp, #8
  63864. 8019f54: af00 add r7, sp, #0
  63865. 8019f56: 6078 str r0, [r7, #4]
  63866. 8019f58: 460b mov r3, r1
  63867. 8019f5a: 807b strh r3, [r7, #2]
  63868. 8019f5c: 4613 mov r3, r2
  63869. 8019f5e: 707b strb r3, [r7, #1]
  63870. if (header_size_increment < 0) {
  63871. 8019f60: f9b7 3002 ldrsh.w r3, [r7, #2]
  63872. 8019f64: 2b00 cmp r3, #0
  63873. 8019f66: da08 bge.n 8019f7a <pbuf_header_impl+0x2a>
  63874. return pbuf_remove_header(p, (size_t) - header_size_increment);
  63875. 8019f68: f9b7 3002 ldrsh.w r3, [r7, #2]
  63876. 8019f6c: 425b negs r3, r3
  63877. 8019f6e: 4619 mov r1, r3
  63878. 8019f70: 6878 ldr r0, [r7, #4]
  63879. 8019f72: f7ff ff9b bl 8019eac <pbuf_remove_header>
  63880. 8019f76: 4603 mov r3, r0
  63881. 8019f78: e007 b.n 8019f8a <pbuf_header_impl+0x3a>
  63882. } else {
  63883. return pbuf_add_header_impl(p, (size_t)header_size_increment, force);
  63884. 8019f7a: f9b7 3002 ldrsh.w r3, [r7, #2]
  63885. 8019f7e: 787a ldrb r2, [r7, #1]
  63886. 8019f80: 4619 mov r1, r3
  63887. 8019f82: 6878 ldr r0, [r7, #4]
  63888. 8019f84: f7ff ff1a bl 8019dbc <pbuf_add_header_impl>
  63889. 8019f88: 4603 mov r3, r0
  63890. }
  63891. }
  63892. 8019f8a: 4618 mov r0, r3
  63893. 8019f8c: 3708 adds r7, #8
  63894. 8019f8e: 46bd mov sp, r7
  63895. 8019f90: bd80 pop {r7, pc}
  63896. 08019f92 <pbuf_header_force>:
  63897. * Same as pbuf_header but does not check if 'header_size > 0' is allowed.
  63898. * This is used internally only, to allow PBUF_REF for RX.
  63899. */
  63900. u8_t
  63901. pbuf_header_force(struct pbuf *p, s16_t header_size_increment)
  63902. {
  63903. 8019f92: b580 push {r7, lr}
  63904. 8019f94: b082 sub sp, #8
  63905. 8019f96: af00 add r7, sp, #0
  63906. 8019f98: 6078 str r0, [r7, #4]
  63907. 8019f9a: 460b mov r3, r1
  63908. 8019f9c: 807b strh r3, [r7, #2]
  63909. return pbuf_header_impl(p, header_size_increment, 1);
  63910. 8019f9e: f9b7 3002 ldrsh.w r3, [r7, #2]
  63911. 8019fa2: 2201 movs r2, #1
  63912. 8019fa4: 4619 mov r1, r3
  63913. 8019fa6: 6878 ldr r0, [r7, #4]
  63914. 8019fa8: f7ff ffd2 bl 8019f50 <pbuf_header_impl>
  63915. 8019fac: 4603 mov r3, r0
  63916. }
  63917. 8019fae: 4618 mov r0, r3
  63918. 8019fb0: 3708 adds r7, #8
  63919. 8019fb2: 46bd mov sp, r7
  63920. 8019fb4: bd80 pop {r7, pc}
  63921. 08019fb6 <pbuf_free_header>:
  63922. * takes an u16_t not s16_t!
  63923. * @return the new head pbuf
  63924. */
  63925. struct pbuf *
  63926. pbuf_free_header(struct pbuf *q, u16_t size)
  63927. {
  63928. 8019fb6: b580 push {r7, lr}
  63929. 8019fb8: b086 sub sp, #24
  63930. 8019fba: af00 add r7, sp, #0
  63931. 8019fbc: 6078 str r0, [r7, #4]
  63932. 8019fbe: 460b mov r3, r1
  63933. 8019fc0: 807b strh r3, [r7, #2]
  63934. struct pbuf *p = q;
  63935. 8019fc2: 687b ldr r3, [r7, #4]
  63936. 8019fc4: 617b str r3, [r7, #20]
  63937. u16_t free_left = size;
  63938. 8019fc6: 887b ldrh r3, [r7, #2]
  63939. 8019fc8: 827b strh r3, [r7, #18]
  63940. while (free_left && p) {
  63941. 8019fca: e01c b.n 801a006 <pbuf_free_header+0x50>
  63942. if (free_left >= p->len) {
  63943. 8019fcc: 697b ldr r3, [r7, #20]
  63944. 8019fce: 895b ldrh r3, [r3, #10]
  63945. 8019fd0: 8a7a ldrh r2, [r7, #18]
  63946. 8019fd2: 429a cmp r2, r3
  63947. 8019fd4: d310 bcc.n 8019ff8 <pbuf_free_header+0x42>
  63948. struct pbuf *f = p;
  63949. 8019fd6: 697b ldr r3, [r7, #20]
  63950. 8019fd8: 60fb str r3, [r7, #12]
  63951. free_left = (u16_t)(free_left - p->len);
  63952. 8019fda: 697b ldr r3, [r7, #20]
  63953. 8019fdc: 895b ldrh r3, [r3, #10]
  63954. 8019fde: 8a7a ldrh r2, [r7, #18]
  63955. 8019fe0: 1ad3 subs r3, r2, r3
  63956. 8019fe2: 827b strh r3, [r7, #18]
  63957. p = p->next;
  63958. 8019fe4: 697b ldr r3, [r7, #20]
  63959. 8019fe6: 681b ldr r3, [r3, #0]
  63960. 8019fe8: 617b str r3, [r7, #20]
  63961. f->next = 0;
  63962. 8019fea: 68fb ldr r3, [r7, #12]
  63963. 8019fec: 2200 movs r2, #0
  63964. 8019fee: 601a str r2, [r3, #0]
  63965. pbuf_free(f);
  63966. 8019ff0: 68f8 ldr r0, [r7, #12]
  63967. 8019ff2: f000 f813 bl 801a01c <pbuf_free>
  63968. 8019ff6: e006 b.n 801a006 <pbuf_free_header+0x50>
  63969. } else {
  63970. pbuf_remove_header(p, free_left);
  63971. 8019ff8: 8a7b ldrh r3, [r7, #18]
  63972. 8019ffa: 4619 mov r1, r3
  63973. 8019ffc: 6978 ldr r0, [r7, #20]
  63974. 8019ffe: f7ff ff55 bl 8019eac <pbuf_remove_header>
  63975. free_left = 0;
  63976. 801a002: 2300 movs r3, #0
  63977. 801a004: 827b strh r3, [r7, #18]
  63978. while (free_left && p) {
  63979. 801a006: 8a7b ldrh r3, [r7, #18]
  63980. 801a008: 2b00 cmp r3, #0
  63981. 801a00a: d002 beq.n 801a012 <pbuf_free_header+0x5c>
  63982. 801a00c: 697b ldr r3, [r7, #20]
  63983. 801a00e: 2b00 cmp r3, #0
  63984. 801a010: d1dc bne.n 8019fcc <pbuf_free_header+0x16>
  63985. }
  63986. }
  63987. return p;
  63988. 801a012: 697b ldr r3, [r7, #20]
  63989. }
  63990. 801a014: 4618 mov r0, r3
  63991. 801a016: 3718 adds r7, #24
  63992. 801a018: 46bd mov sp, r7
  63993. 801a01a: bd80 pop {r7, pc}
  63994. 0801a01c <pbuf_free>:
  63995. * 1->1->1 becomes .......
  63996. *
  63997. */
  63998. u8_t
  63999. pbuf_free(struct pbuf *p)
  64000. {
  64001. 801a01c: b580 push {r7, lr}
  64002. 801a01e: b088 sub sp, #32
  64003. 801a020: af00 add r7, sp, #0
  64004. 801a022: 6078 str r0, [r7, #4]
  64005. u8_t alloc_src;
  64006. struct pbuf *q;
  64007. u8_t count;
  64008. if (p == NULL) {
  64009. 801a024: 687b ldr r3, [r7, #4]
  64010. 801a026: 2b00 cmp r3, #0
  64011. 801a028: d10b bne.n 801a042 <pbuf_free+0x26>
  64012. LWIP_ASSERT("p != NULL", p != NULL);
  64013. 801a02a: 687b ldr r3, [r7, #4]
  64014. 801a02c: 2b00 cmp r3, #0
  64015. 801a02e: d106 bne.n 801a03e <pbuf_free+0x22>
  64016. 801a030: 4b3b ldr r3, [pc, #236] @ (801a120 <pbuf_free+0x104>)
  64017. 801a032: f44f 7237 mov.w r2, #732 @ 0x2dc
  64018. 801a036: 493b ldr r1, [pc, #236] @ (801a124 <pbuf_free+0x108>)
  64019. 801a038: 483b ldr r0, [pc, #236] @ (801a128 <pbuf_free+0x10c>)
  64020. 801a03a: f00f fa67 bl 802950c <iprintf>
  64021. /* if assertions are disabled, proceed with debug output */
  64022. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_LEVEL_SERIOUS,
  64023. ("pbuf_free(p == NULL) was called.\n"));
  64024. return 0;
  64025. 801a03e: 2300 movs r3, #0
  64026. 801a040: e069 b.n 801a116 <pbuf_free+0xfa>
  64027. }
  64028. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free(%p)\n", (void *)p));
  64029. PERF_START;
  64030. count = 0;
  64031. 801a042: 2300 movs r3, #0
  64032. 801a044: 77fb strb r3, [r7, #31]
  64033. /* de-allocate all consecutive pbufs from the head of the chain that
  64034. * obtain a zero reference count after decrementing*/
  64035. while (p != NULL) {
  64036. 801a046: e062 b.n 801a10e <pbuf_free+0xf2>
  64037. LWIP_PBUF_REF_T ref;
  64038. SYS_ARCH_DECL_PROTECT(old_level);
  64039. /* Since decrementing ref cannot be guaranteed to be a single machine operation
  64040. * we must protect it. We put the new ref into a local variable to prevent
  64041. * further protection. */
  64042. SYS_ARCH_PROTECT(old_level);
  64043. 801a048: f00b ffca bl 8025fe0 <sys_arch_protect>
  64044. 801a04c: 61b8 str r0, [r7, #24]
  64045. /* all pbufs in a chain are referenced at least once */
  64046. LWIP_ASSERT("pbuf_free: p->ref > 0", p->ref > 0);
  64047. 801a04e: 687b ldr r3, [r7, #4]
  64048. 801a050: 7b9b ldrb r3, [r3, #14]
  64049. 801a052: 2b00 cmp r3, #0
  64050. 801a054: d106 bne.n 801a064 <pbuf_free+0x48>
  64051. 801a056: 4b32 ldr r3, [pc, #200] @ (801a120 <pbuf_free+0x104>)
  64052. 801a058: f240 22f1 movw r2, #753 @ 0x2f1
  64053. 801a05c: 4933 ldr r1, [pc, #204] @ (801a12c <pbuf_free+0x110>)
  64054. 801a05e: 4832 ldr r0, [pc, #200] @ (801a128 <pbuf_free+0x10c>)
  64055. 801a060: f00f fa54 bl 802950c <iprintf>
  64056. /* decrease reference count (number of pointers to pbuf) */
  64057. ref = --(p->ref);
  64058. 801a064: 687b ldr r3, [r7, #4]
  64059. 801a066: 7b9b ldrb r3, [r3, #14]
  64060. 801a068: 3b01 subs r3, #1
  64061. 801a06a: b2da uxtb r2, r3
  64062. 801a06c: 687b ldr r3, [r7, #4]
  64063. 801a06e: 739a strb r2, [r3, #14]
  64064. 801a070: 687b ldr r3, [r7, #4]
  64065. 801a072: 7b9b ldrb r3, [r3, #14]
  64066. 801a074: 75fb strb r3, [r7, #23]
  64067. SYS_ARCH_UNPROTECT(old_level);
  64068. 801a076: 69b8 ldr r0, [r7, #24]
  64069. 801a078: f00b ffc0 bl 8025ffc <sys_arch_unprotect>
  64070. /* this pbuf is no longer referenced to? */
  64071. if (ref == 0) {
  64072. 801a07c: 7dfb ldrb r3, [r7, #23]
  64073. 801a07e: 2b00 cmp r3, #0
  64074. 801a080: d143 bne.n 801a10a <pbuf_free+0xee>
  64075. /* remember next pbuf in chain for next iteration */
  64076. q = p->next;
  64077. 801a082: 687b ldr r3, [r7, #4]
  64078. 801a084: 681b ldr r3, [r3, #0]
  64079. 801a086: 613b str r3, [r7, #16]
  64080. LWIP_DEBUGF( PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free: deallocating %p\n", (void *)p));
  64081. alloc_src = pbuf_get_allocsrc(p);
  64082. 801a088: 687b ldr r3, [r7, #4]
  64083. 801a08a: 7b1b ldrb r3, [r3, #12]
  64084. 801a08c: f003 030f and.w r3, r3, #15
  64085. 801a090: 73fb strb r3, [r7, #15]
  64086. #if LWIP_SUPPORT_CUSTOM_PBUF
  64087. /* is this a custom pbuf? */
  64088. if ((p->flags & PBUF_FLAG_IS_CUSTOM) != 0) {
  64089. 801a092: 687b ldr r3, [r7, #4]
  64090. 801a094: 7b5b ldrb r3, [r3, #13]
  64091. 801a096: f003 0302 and.w r3, r3, #2
  64092. 801a09a: 2b00 cmp r3, #0
  64093. 801a09c: d011 beq.n 801a0c2 <pbuf_free+0xa6>
  64094. struct pbuf_custom *pc = (struct pbuf_custom *)p;
  64095. 801a09e: 687b ldr r3, [r7, #4]
  64096. 801a0a0: 60bb str r3, [r7, #8]
  64097. LWIP_ASSERT("pc->custom_free_function != NULL", pc->custom_free_function != NULL);
  64098. 801a0a2: 68bb ldr r3, [r7, #8]
  64099. 801a0a4: 691b ldr r3, [r3, #16]
  64100. 801a0a6: 2b00 cmp r3, #0
  64101. 801a0a8: d106 bne.n 801a0b8 <pbuf_free+0x9c>
  64102. 801a0aa: 4b1d ldr r3, [pc, #116] @ (801a120 <pbuf_free+0x104>)
  64103. 801a0ac: f240 22ff movw r2, #767 @ 0x2ff
  64104. 801a0b0: 491f ldr r1, [pc, #124] @ (801a130 <pbuf_free+0x114>)
  64105. 801a0b2: 481d ldr r0, [pc, #116] @ (801a128 <pbuf_free+0x10c>)
  64106. 801a0b4: f00f fa2a bl 802950c <iprintf>
  64107. pc->custom_free_function(p);
  64108. 801a0b8: 68bb ldr r3, [r7, #8]
  64109. 801a0ba: 691b ldr r3, [r3, #16]
  64110. 801a0bc: 6878 ldr r0, [r7, #4]
  64111. 801a0be: 4798 blx r3
  64112. 801a0c0: e01d b.n 801a0fe <pbuf_free+0xe2>
  64113. } else
  64114. #endif /* LWIP_SUPPORT_CUSTOM_PBUF */
  64115. {
  64116. /* is this a pbuf from the pool? */
  64117. if (alloc_src == PBUF_TYPE_ALLOC_SRC_MASK_STD_MEMP_PBUF_POOL) {
  64118. 801a0c2: 7bfb ldrb r3, [r7, #15]
  64119. 801a0c4: 2b02 cmp r3, #2
  64120. 801a0c6: d104 bne.n 801a0d2 <pbuf_free+0xb6>
  64121. memp_free(MEMP_PBUF_POOL, p);
  64122. 801a0c8: 6879 ldr r1, [r7, #4]
  64123. 801a0ca: 200c movs r0, #12
  64124. 801a0cc: f7ff f8b8 bl 8019240 <memp_free>
  64125. 801a0d0: e015 b.n 801a0fe <pbuf_free+0xe2>
  64126. /* is this a ROM or RAM referencing pbuf? */
  64127. } else if (alloc_src == PBUF_TYPE_ALLOC_SRC_MASK_STD_MEMP_PBUF) {
  64128. 801a0d2: 7bfb ldrb r3, [r7, #15]
  64129. 801a0d4: 2b01 cmp r3, #1
  64130. 801a0d6: d104 bne.n 801a0e2 <pbuf_free+0xc6>
  64131. memp_free(MEMP_PBUF, p);
  64132. 801a0d8: 6879 ldr r1, [r7, #4]
  64133. 801a0da: 200b movs r0, #11
  64134. 801a0dc: f7ff f8b0 bl 8019240 <memp_free>
  64135. 801a0e0: e00d b.n 801a0fe <pbuf_free+0xe2>
  64136. /* type == PBUF_RAM */
  64137. } else if (alloc_src == PBUF_TYPE_ALLOC_SRC_MASK_STD_HEAP) {
  64138. 801a0e2: 7bfb ldrb r3, [r7, #15]
  64139. 801a0e4: 2b00 cmp r3, #0
  64140. 801a0e6: d103 bne.n 801a0f0 <pbuf_free+0xd4>
  64141. mem_free(p);
  64142. 801a0e8: 6878 ldr r0, [r7, #4]
  64143. 801a0ea: f7fe fd05 bl 8018af8 <mem_free>
  64144. 801a0ee: e006 b.n 801a0fe <pbuf_free+0xe2>
  64145. } else {
  64146. /* @todo: support freeing other types */
  64147. LWIP_ASSERT("invalid pbuf type", 0);
  64148. 801a0f0: 4b0b ldr r3, [pc, #44] @ (801a120 <pbuf_free+0x104>)
  64149. 801a0f2: f240 320f movw r2, #783 @ 0x30f
  64150. 801a0f6: 490f ldr r1, [pc, #60] @ (801a134 <pbuf_free+0x118>)
  64151. 801a0f8: 480b ldr r0, [pc, #44] @ (801a128 <pbuf_free+0x10c>)
  64152. 801a0fa: f00f fa07 bl 802950c <iprintf>
  64153. }
  64154. }
  64155. count++;
  64156. 801a0fe: 7ffb ldrb r3, [r7, #31]
  64157. 801a100: 3301 adds r3, #1
  64158. 801a102: 77fb strb r3, [r7, #31]
  64159. /* proceed to next pbuf */
  64160. p = q;
  64161. 801a104: 693b ldr r3, [r7, #16]
  64162. 801a106: 607b str r3, [r7, #4]
  64163. 801a108: e001 b.n 801a10e <pbuf_free+0xf2>
  64164. /* p->ref > 0, this pbuf is still referenced to */
  64165. /* (and so the remaining pbufs in chain as well) */
  64166. } else {
  64167. LWIP_DEBUGF( PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free: %p has ref %"U16_F", ending here.\n", (void *)p, (u16_t)ref));
  64168. /* stop walking through the chain */
  64169. p = NULL;
  64170. 801a10a: 2300 movs r3, #0
  64171. 801a10c: 607b str r3, [r7, #4]
  64172. while (p != NULL) {
  64173. 801a10e: 687b ldr r3, [r7, #4]
  64174. 801a110: 2b00 cmp r3, #0
  64175. 801a112: d199 bne.n 801a048 <pbuf_free+0x2c>
  64176. }
  64177. }
  64178. PERF_STOP("pbuf_free");
  64179. /* return number of de-allocated pbufs */
  64180. return count;
  64181. 801a114: 7ffb ldrb r3, [r7, #31]
  64182. }
  64183. 801a116: 4618 mov r0, r3
  64184. 801a118: 3720 adds r7, #32
  64185. 801a11a: 46bd mov sp, r7
  64186. 801a11c: bd80 pop {r7, pc}
  64187. 801a11e: bf00 nop
  64188. 801a120: 0802dc3c .word 0x0802dc3c
  64189. 801a124: 0802dda0 .word 0x0802dda0
  64190. 801a128: 0802dc9c .word 0x0802dc9c
  64191. 801a12c: 0802ddcc .word 0x0802ddcc
  64192. 801a130: 0802dde4 .word 0x0802dde4
  64193. 801a134: 0802de08 .word 0x0802de08
  64194. 0801a138 <pbuf_clen>:
  64195. * @param p first pbuf of chain
  64196. * @return the number of pbufs in a chain
  64197. */
  64198. u16_t
  64199. pbuf_clen(const struct pbuf *p)
  64200. {
  64201. 801a138: b480 push {r7}
  64202. 801a13a: b085 sub sp, #20
  64203. 801a13c: af00 add r7, sp, #0
  64204. 801a13e: 6078 str r0, [r7, #4]
  64205. u16_t len;
  64206. len = 0;
  64207. 801a140: 2300 movs r3, #0
  64208. 801a142: 81fb strh r3, [r7, #14]
  64209. while (p != NULL) {
  64210. 801a144: e005 b.n 801a152 <pbuf_clen+0x1a>
  64211. ++len;
  64212. 801a146: 89fb ldrh r3, [r7, #14]
  64213. 801a148: 3301 adds r3, #1
  64214. 801a14a: 81fb strh r3, [r7, #14]
  64215. p = p->next;
  64216. 801a14c: 687b ldr r3, [r7, #4]
  64217. 801a14e: 681b ldr r3, [r3, #0]
  64218. 801a150: 607b str r3, [r7, #4]
  64219. while (p != NULL) {
  64220. 801a152: 687b ldr r3, [r7, #4]
  64221. 801a154: 2b00 cmp r3, #0
  64222. 801a156: d1f6 bne.n 801a146 <pbuf_clen+0xe>
  64223. }
  64224. return len;
  64225. 801a158: 89fb ldrh r3, [r7, #14]
  64226. }
  64227. 801a15a: 4618 mov r0, r3
  64228. 801a15c: 3714 adds r7, #20
  64229. 801a15e: 46bd mov sp, r7
  64230. 801a160: f85d 7b04 ldr.w r7, [sp], #4
  64231. 801a164: 4770 bx lr
  64232. ...
  64233. 0801a168 <pbuf_ref>:
  64234. * @param p pbuf to increase reference counter of
  64235. *
  64236. */
  64237. void
  64238. pbuf_ref(struct pbuf *p)
  64239. {
  64240. 801a168: b580 push {r7, lr}
  64241. 801a16a: b084 sub sp, #16
  64242. 801a16c: af00 add r7, sp, #0
  64243. 801a16e: 6078 str r0, [r7, #4]
  64244. /* pbuf given? */
  64245. if (p != NULL) {
  64246. 801a170: 687b ldr r3, [r7, #4]
  64247. 801a172: 2b00 cmp r3, #0
  64248. 801a174: d016 beq.n 801a1a4 <pbuf_ref+0x3c>
  64249. SYS_ARCH_SET(p->ref, (LWIP_PBUF_REF_T)(p->ref + 1));
  64250. 801a176: f00b ff33 bl 8025fe0 <sys_arch_protect>
  64251. 801a17a: 60f8 str r0, [r7, #12]
  64252. 801a17c: 687b ldr r3, [r7, #4]
  64253. 801a17e: 7b9b ldrb r3, [r3, #14]
  64254. 801a180: 3301 adds r3, #1
  64255. 801a182: b2da uxtb r2, r3
  64256. 801a184: 687b ldr r3, [r7, #4]
  64257. 801a186: 739a strb r2, [r3, #14]
  64258. 801a188: 68f8 ldr r0, [r7, #12]
  64259. 801a18a: f00b ff37 bl 8025ffc <sys_arch_unprotect>
  64260. LWIP_ASSERT("pbuf ref overflow", p->ref > 0);
  64261. 801a18e: 687b ldr r3, [r7, #4]
  64262. 801a190: 7b9b ldrb r3, [r3, #14]
  64263. 801a192: 2b00 cmp r3, #0
  64264. 801a194: d106 bne.n 801a1a4 <pbuf_ref+0x3c>
  64265. 801a196: 4b05 ldr r3, [pc, #20] @ (801a1ac <pbuf_ref+0x44>)
  64266. 801a198: f240 3242 movw r2, #834 @ 0x342
  64267. 801a19c: 4904 ldr r1, [pc, #16] @ (801a1b0 <pbuf_ref+0x48>)
  64268. 801a19e: 4805 ldr r0, [pc, #20] @ (801a1b4 <pbuf_ref+0x4c>)
  64269. 801a1a0: f00f f9b4 bl 802950c <iprintf>
  64270. }
  64271. }
  64272. 801a1a4: bf00 nop
  64273. 801a1a6: 3710 adds r7, #16
  64274. 801a1a8: 46bd mov sp, r7
  64275. 801a1aa: bd80 pop {r7, pc}
  64276. 801a1ac: 0802dc3c .word 0x0802dc3c
  64277. 801a1b0: 0802de1c .word 0x0802de1c
  64278. 801a1b4: 0802dc9c .word 0x0802dc9c
  64279. 0801a1b8 <pbuf_cat>:
  64280. *
  64281. * @see pbuf_chain()
  64282. */
  64283. void
  64284. pbuf_cat(struct pbuf *h, struct pbuf *t)
  64285. {
  64286. 801a1b8: b580 push {r7, lr}
  64287. 801a1ba: b084 sub sp, #16
  64288. 801a1bc: af00 add r7, sp, #0
  64289. 801a1be: 6078 str r0, [r7, #4]
  64290. 801a1c0: 6039 str r1, [r7, #0]
  64291. struct pbuf *p;
  64292. LWIP_ERROR("(h != NULL) && (t != NULL) (programmer violates API)",
  64293. 801a1c2: 687b ldr r3, [r7, #4]
  64294. 801a1c4: 2b00 cmp r3, #0
  64295. 801a1c6: d002 beq.n 801a1ce <pbuf_cat+0x16>
  64296. 801a1c8: 683b ldr r3, [r7, #0]
  64297. 801a1ca: 2b00 cmp r3, #0
  64298. 801a1cc: d107 bne.n 801a1de <pbuf_cat+0x26>
  64299. 801a1ce: 4b20 ldr r3, [pc, #128] @ (801a250 <pbuf_cat+0x98>)
  64300. 801a1d0: f240 3259 movw r2, #857 @ 0x359
  64301. 801a1d4: 491f ldr r1, [pc, #124] @ (801a254 <pbuf_cat+0x9c>)
  64302. 801a1d6: 4820 ldr r0, [pc, #128] @ (801a258 <pbuf_cat+0xa0>)
  64303. 801a1d8: f00f f998 bl 802950c <iprintf>
  64304. 801a1dc: e034 b.n 801a248 <pbuf_cat+0x90>
  64305. ((h != NULL) && (t != NULL)), return;);
  64306. /* proceed to last pbuf of chain */
  64307. for (p = h; p->next != NULL; p = p->next) {
  64308. 801a1de: 687b ldr r3, [r7, #4]
  64309. 801a1e0: 60fb str r3, [r7, #12]
  64310. 801a1e2: e00a b.n 801a1fa <pbuf_cat+0x42>
  64311. /* add total length of second chain to all totals of first chain */
  64312. p->tot_len = (u16_t)(p->tot_len + t->tot_len);
  64313. 801a1e4: 68fb ldr r3, [r7, #12]
  64314. 801a1e6: 891a ldrh r2, [r3, #8]
  64315. 801a1e8: 683b ldr r3, [r7, #0]
  64316. 801a1ea: 891b ldrh r3, [r3, #8]
  64317. 801a1ec: 4413 add r3, r2
  64318. 801a1ee: b29a uxth r2, r3
  64319. 801a1f0: 68fb ldr r3, [r7, #12]
  64320. 801a1f2: 811a strh r2, [r3, #8]
  64321. for (p = h; p->next != NULL; p = p->next) {
  64322. 801a1f4: 68fb ldr r3, [r7, #12]
  64323. 801a1f6: 681b ldr r3, [r3, #0]
  64324. 801a1f8: 60fb str r3, [r7, #12]
  64325. 801a1fa: 68fb ldr r3, [r7, #12]
  64326. 801a1fc: 681b ldr r3, [r3, #0]
  64327. 801a1fe: 2b00 cmp r3, #0
  64328. 801a200: d1f0 bne.n 801a1e4 <pbuf_cat+0x2c>
  64329. }
  64330. /* { p is last pbuf of first h chain, p->next == NULL } */
  64331. LWIP_ASSERT("p->tot_len == p->len (of last pbuf in chain)", p->tot_len == p->len);
  64332. 801a202: 68fb ldr r3, [r7, #12]
  64333. 801a204: 891a ldrh r2, [r3, #8]
  64334. 801a206: 68fb ldr r3, [r7, #12]
  64335. 801a208: 895b ldrh r3, [r3, #10]
  64336. 801a20a: 429a cmp r2, r3
  64337. 801a20c: d006 beq.n 801a21c <pbuf_cat+0x64>
  64338. 801a20e: 4b10 ldr r3, [pc, #64] @ (801a250 <pbuf_cat+0x98>)
  64339. 801a210: f240 3262 movw r2, #866 @ 0x362
  64340. 801a214: 4911 ldr r1, [pc, #68] @ (801a25c <pbuf_cat+0xa4>)
  64341. 801a216: 4810 ldr r0, [pc, #64] @ (801a258 <pbuf_cat+0xa0>)
  64342. 801a218: f00f f978 bl 802950c <iprintf>
  64343. LWIP_ASSERT("p->next == NULL", p->next == NULL);
  64344. 801a21c: 68fb ldr r3, [r7, #12]
  64345. 801a21e: 681b ldr r3, [r3, #0]
  64346. 801a220: 2b00 cmp r3, #0
  64347. 801a222: d006 beq.n 801a232 <pbuf_cat+0x7a>
  64348. 801a224: 4b0a ldr r3, [pc, #40] @ (801a250 <pbuf_cat+0x98>)
  64349. 801a226: f240 3263 movw r2, #867 @ 0x363
  64350. 801a22a: 490d ldr r1, [pc, #52] @ (801a260 <pbuf_cat+0xa8>)
  64351. 801a22c: 480a ldr r0, [pc, #40] @ (801a258 <pbuf_cat+0xa0>)
  64352. 801a22e: f00f f96d bl 802950c <iprintf>
  64353. /* add total length of second chain to last pbuf total of first chain */
  64354. p->tot_len = (u16_t)(p->tot_len + t->tot_len);
  64355. 801a232: 68fb ldr r3, [r7, #12]
  64356. 801a234: 891a ldrh r2, [r3, #8]
  64357. 801a236: 683b ldr r3, [r7, #0]
  64358. 801a238: 891b ldrh r3, [r3, #8]
  64359. 801a23a: 4413 add r3, r2
  64360. 801a23c: b29a uxth r2, r3
  64361. 801a23e: 68fb ldr r3, [r7, #12]
  64362. 801a240: 811a strh r2, [r3, #8]
  64363. /* chain last pbuf of head (p) with first of tail (t) */
  64364. p->next = t;
  64365. 801a242: 68fb ldr r3, [r7, #12]
  64366. 801a244: 683a ldr r2, [r7, #0]
  64367. 801a246: 601a str r2, [r3, #0]
  64368. /* p->next now references t, but the caller will drop its reference to t,
  64369. * so netto there is no change to the reference count of t.
  64370. */
  64371. }
  64372. 801a248: 3710 adds r7, #16
  64373. 801a24a: 46bd mov sp, r7
  64374. 801a24c: bd80 pop {r7, pc}
  64375. 801a24e: bf00 nop
  64376. 801a250: 0802dc3c .word 0x0802dc3c
  64377. 801a254: 0802de30 .word 0x0802de30
  64378. 801a258: 0802dc9c .word 0x0802dc9c
  64379. 801a25c: 0802de68 .word 0x0802de68
  64380. 801a260: 0802de98 .word 0x0802de98
  64381. 0801a264 <pbuf_chain>:
  64382. * The ->ref field of the first pbuf of the tail chain is adjusted.
  64383. *
  64384. */
  64385. void
  64386. pbuf_chain(struct pbuf *h, struct pbuf *t)
  64387. {
  64388. 801a264: b580 push {r7, lr}
  64389. 801a266: b082 sub sp, #8
  64390. 801a268: af00 add r7, sp, #0
  64391. 801a26a: 6078 str r0, [r7, #4]
  64392. 801a26c: 6039 str r1, [r7, #0]
  64393. pbuf_cat(h, t);
  64394. 801a26e: 6839 ldr r1, [r7, #0]
  64395. 801a270: 6878 ldr r0, [r7, #4]
  64396. 801a272: f7ff ffa1 bl 801a1b8 <pbuf_cat>
  64397. /* t is now referenced by h */
  64398. pbuf_ref(t);
  64399. 801a276: 6838 ldr r0, [r7, #0]
  64400. 801a278: f7ff ff76 bl 801a168 <pbuf_ref>
  64401. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_chain: %p references %p\n", (void *)h, (void *)t));
  64402. }
  64403. 801a27c: bf00 nop
  64404. 801a27e: 3708 adds r7, #8
  64405. 801a280: 46bd mov sp, r7
  64406. 801a282: bd80 pop {r7, pc}
  64407. 0801a284 <pbuf_copy>:
  64408. * ERR_ARG if one of the pbufs is NULL or p_to is not big
  64409. * enough to hold p_from
  64410. */
  64411. err_t
  64412. pbuf_copy(struct pbuf *p_to, const struct pbuf *p_from)
  64413. {
  64414. 801a284: b580 push {r7, lr}
  64415. 801a286: b086 sub sp, #24
  64416. 801a288: af00 add r7, sp, #0
  64417. 801a28a: 6078 str r0, [r7, #4]
  64418. 801a28c: 6039 str r1, [r7, #0]
  64419. size_t offset_to = 0, offset_from = 0, len;
  64420. 801a28e: 2300 movs r3, #0
  64421. 801a290: 617b str r3, [r7, #20]
  64422. 801a292: 2300 movs r3, #0
  64423. 801a294: 613b str r3, [r7, #16]
  64424. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_copy(%p, %p)\n",
  64425. (const void *)p_to, (const void *)p_from));
  64426. /* is the target big enough to hold the source? */
  64427. LWIP_ERROR("pbuf_copy: target not big enough to hold source", ((p_to != NULL) &&
  64428. 801a296: 687b ldr r3, [r7, #4]
  64429. 801a298: 2b00 cmp r3, #0
  64430. 801a29a: d008 beq.n 801a2ae <pbuf_copy+0x2a>
  64431. 801a29c: 683b ldr r3, [r7, #0]
  64432. 801a29e: 2b00 cmp r3, #0
  64433. 801a2a0: d005 beq.n 801a2ae <pbuf_copy+0x2a>
  64434. 801a2a2: 687b ldr r3, [r7, #4]
  64435. 801a2a4: 891a ldrh r2, [r3, #8]
  64436. 801a2a6: 683b ldr r3, [r7, #0]
  64437. 801a2a8: 891b ldrh r3, [r3, #8]
  64438. 801a2aa: 429a cmp r2, r3
  64439. 801a2ac: d209 bcs.n 801a2c2 <pbuf_copy+0x3e>
  64440. 801a2ae: 4b57 ldr r3, [pc, #348] @ (801a40c <pbuf_copy+0x188>)
  64441. 801a2b0: f240 32c9 movw r2, #969 @ 0x3c9
  64442. 801a2b4: 4956 ldr r1, [pc, #344] @ (801a410 <pbuf_copy+0x18c>)
  64443. 801a2b6: 4857 ldr r0, [pc, #348] @ (801a414 <pbuf_copy+0x190>)
  64444. 801a2b8: f00f f928 bl 802950c <iprintf>
  64445. 801a2bc: f06f 030f mvn.w r3, #15
  64446. 801a2c0: e09f b.n 801a402 <pbuf_copy+0x17e>
  64447. (p_from != NULL) && (p_to->tot_len >= p_from->tot_len)), return ERR_ARG;);
  64448. /* iterate through pbuf chain */
  64449. do {
  64450. /* copy one part of the original chain */
  64451. if ((p_to->len - offset_to) >= (p_from->len - offset_from)) {
  64452. 801a2c2: 687b ldr r3, [r7, #4]
  64453. 801a2c4: 895b ldrh r3, [r3, #10]
  64454. 801a2c6: 461a mov r2, r3
  64455. 801a2c8: 697b ldr r3, [r7, #20]
  64456. 801a2ca: 1ad2 subs r2, r2, r3
  64457. 801a2cc: 683b ldr r3, [r7, #0]
  64458. 801a2ce: 895b ldrh r3, [r3, #10]
  64459. 801a2d0: 4619 mov r1, r3
  64460. 801a2d2: 693b ldr r3, [r7, #16]
  64461. 801a2d4: 1acb subs r3, r1, r3
  64462. 801a2d6: 429a cmp r2, r3
  64463. 801a2d8: d306 bcc.n 801a2e8 <pbuf_copy+0x64>
  64464. /* complete current p_from fits into current p_to */
  64465. len = p_from->len - offset_from;
  64466. 801a2da: 683b ldr r3, [r7, #0]
  64467. 801a2dc: 895b ldrh r3, [r3, #10]
  64468. 801a2de: 461a mov r2, r3
  64469. 801a2e0: 693b ldr r3, [r7, #16]
  64470. 801a2e2: 1ad3 subs r3, r2, r3
  64471. 801a2e4: 60fb str r3, [r7, #12]
  64472. 801a2e6: e005 b.n 801a2f4 <pbuf_copy+0x70>
  64473. } else {
  64474. /* current p_from does not fit into current p_to */
  64475. len = p_to->len - offset_to;
  64476. 801a2e8: 687b ldr r3, [r7, #4]
  64477. 801a2ea: 895b ldrh r3, [r3, #10]
  64478. 801a2ec: 461a mov r2, r3
  64479. 801a2ee: 697b ldr r3, [r7, #20]
  64480. 801a2f0: 1ad3 subs r3, r2, r3
  64481. 801a2f2: 60fb str r3, [r7, #12]
  64482. }
  64483. MEMCPY((u8_t *)p_to->payload + offset_to, (u8_t *)p_from->payload + offset_from, len);
  64484. 801a2f4: 687b ldr r3, [r7, #4]
  64485. 801a2f6: 685a ldr r2, [r3, #4]
  64486. 801a2f8: 697b ldr r3, [r7, #20]
  64487. 801a2fa: 18d0 adds r0, r2, r3
  64488. 801a2fc: 683b ldr r3, [r7, #0]
  64489. 801a2fe: 685a ldr r2, [r3, #4]
  64490. 801a300: 693b ldr r3, [r7, #16]
  64491. 801a302: 4413 add r3, r2
  64492. 801a304: 68fa ldr r2, [r7, #12]
  64493. 801a306: 4619 mov r1, r3
  64494. 801a308: f00f fb89 bl 8029a1e <memcpy>
  64495. offset_to += len;
  64496. 801a30c: 697a ldr r2, [r7, #20]
  64497. 801a30e: 68fb ldr r3, [r7, #12]
  64498. 801a310: 4413 add r3, r2
  64499. 801a312: 617b str r3, [r7, #20]
  64500. offset_from += len;
  64501. 801a314: 693a ldr r2, [r7, #16]
  64502. 801a316: 68fb ldr r3, [r7, #12]
  64503. 801a318: 4413 add r3, r2
  64504. 801a31a: 613b str r3, [r7, #16]
  64505. LWIP_ASSERT("offset_to <= p_to->len", offset_to <= p_to->len);
  64506. 801a31c: 687b ldr r3, [r7, #4]
  64507. 801a31e: 895b ldrh r3, [r3, #10]
  64508. 801a320: 461a mov r2, r3
  64509. 801a322: 697b ldr r3, [r7, #20]
  64510. 801a324: 4293 cmp r3, r2
  64511. 801a326: d906 bls.n 801a336 <pbuf_copy+0xb2>
  64512. 801a328: 4b38 ldr r3, [pc, #224] @ (801a40c <pbuf_copy+0x188>)
  64513. 801a32a: f240 32d9 movw r2, #985 @ 0x3d9
  64514. 801a32e: 493a ldr r1, [pc, #232] @ (801a418 <pbuf_copy+0x194>)
  64515. 801a330: 4838 ldr r0, [pc, #224] @ (801a414 <pbuf_copy+0x190>)
  64516. 801a332: f00f f8eb bl 802950c <iprintf>
  64517. LWIP_ASSERT("offset_from <= p_from->len", offset_from <= p_from->len);
  64518. 801a336: 683b ldr r3, [r7, #0]
  64519. 801a338: 895b ldrh r3, [r3, #10]
  64520. 801a33a: 461a mov r2, r3
  64521. 801a33c: 693b ldr r3, [r7, #16]
  64522. 801a33e: 4293 cmp r3, r2
  64523. 801a340: d906 bls.n 801a350 <pbuf_copy+0xcc>
  64524. 801a342: 4b32 ldr r3, [pc, #200] @ (801a40c <pbuf_copy+0x188>)
  64525. 801a344: f240 32da movw r2, #986 @ 0x3da
  64526. 801a348: 4934 ldr r1, [pc, #208] @ (801a41c <pbuf_copy+0x198>)
  64527. 801a34a: 4832 ldr r0, [pc, #200] @ (801a414 <pbuf_copy+0x190>)
  64528. 801a34c: f00f f8de bl 802950c <iprintf>
  64529. if (offset_from >= p_from->len) {
  64530. 801a350: 683b ldr r3, [r7, #0]
  64531. 801a352: 895b ldrh r3, [r3, #10]
  64532. 801a354: 461a mov r2, r3
  64533. 801a356: 693b ldr r3, [r7, #16]
  64534. 801a358: 4293 cmp r3, r2
  64535. 801a35a: d304 bcc.n 801a366 <pbuf_copy+0xe2>
  64536. /* on to next p_from (if any) */
  64537. offset_from = 0;
  64538. 801a35c: 2300 movs r3, #0
  64539. 801a35e: 613b str r3, [r7, #16]
  64540. p_from = p_from->next;
  64541. 801a360: 683b ldr r3, [r7, #0]
  64542. 801a362: 681b ldr r3, [r3, #0]
  64543. 801a364: 603b str r3, [r7, #0]
  64544. }
  64545. if (offset_to == p_to->len) {
  64546. 801a366: 687b ldr r3, [r7, #4]
  64547. 801a368: 895b ldrh r3, [r3, #10]
  64548. 801a36a: 461a mov r2, r3
  64549. 801a36c: 697b ldr r3, [r7, #20]
  64550. 801a36e: 4293 cmp r3, r2
  64551. 801a370: d114 bne.n 801a39c <pbuf_copy+0x118>
  64552. /* on to next p_to (if any) */
  64553. offset_to = 0;
  64554. 801a372: 2300 movs r3, #0
  64555. 801a374: 617b str r3, [r7, #20]
  64556. p_to = p_to->next;
  64557. 801a376: 687b ldr r3, [r7, #4]
  64558. 801a378: 681b ldr r3, [r3, #0]
  64559. 801a37a: 607b str r3, [r7, #4]
  64560. LWIP_ERROR("p_to != NULL", (p_to != NULL) || (p_from == NULL), return ERR_ARG;);
  64561. 801a37c: 687b ldr r3, [r7, #4]
  64562. 801a37e: 2b00 cmp r3, #0
  64563. 801a380: d10c bne.n 801a39c <pbuf_copy+0x118>
  64564. 801a382: 683b ldr r3, [r7, #0]
  64565. 801a384: 2b00 cmp r3, #0
  64566. 801a386: d009 beq.n 801a39c <pbuf_copy+0x118>
  64567. 801a388: 4b20 ldr r3, [pc, #128] @ (801a40c <pbuf_copy+0x188>)
  64568. 801a38a: f44f 7279 mov.w r2, #996 @ 0x3e4
  64569. 801a38e: 4924 ldr r1, [pc, #144] @ (801a420 <pbuf_copy+0x19c>)
  64570. 801a390: 4820 ldr r0, [pc, #128] @ (801a414 <pbuf_copy+0x190>)
  64571. 801a392: f00f f8bb bl 802950c <iprintf>
  64572. 801a396: f06f 030f mvn.w r3, #15
  64573. 801a39a: e032 b.n 801a402 <pbuf_copy+0x17e>
  64574. }
  64575. if ((p_from != NULL) && (p_from->len == p_from->tot_len)) {
  64576. 801a39c: 683b ldr r3, [r7, #0]
  64577. 801a39e: 2b00 cmp r3, #0
  64578. 801a3a0: d013 beq.n 801a3ca <pbuf_copy+0x146>
  64579. 801a3a2: 683b ldr r3, [r7, #0]
  64580. 801a3a4: 895a ldrh r2, [r3, #10]
  64581. 801a3a6: 683b ldr r3, [r7, #0]
  64582. 801a3a8: 891b ldrh r3, [r3, #8]
  64583. 801a3aa: 429a cmp r2, r3
  64584. 801a3ac: d10d bne.n 801a3ca <pbuf_copy+0x146>
  64585. /* don't copy more than one packet! */
  64586. LWIP_ERROR("pbuf_copy() does not allow packet queues!",
  64587. 801a3ae: 683b ldr r3, [r7, #0]
  64588. 801a3b0: 681b ldr r3, [r3, #0]
  64589. 801a3b2: 2b00 cmp r3, #0
  64590. 801a3b4: d009 beq.n 801a3ca <pbuf_copy+0x146>
  64591. 801a3b6: 4b15 ldr r3, [pc, #84] @ (801a40c <pbuf_copy+0x188>)
  64592. 801a3b8: f240 32e9 movw r2, #1001 @ 0x3e9
  64593. 801a3bc: 4919 ldr r1, [pc, #100] @ (801a424 <pbuf_copy+0x1a0>)
  64594. 801a3be: 4815 ldr r0, [pc, #84] @ (801a414 <pbuf_copy+0x190>)
  64595. 801a3c0: f00f f8a4 bl 802950c <iprintf>
  64596. 801a3c4: f06f 0305 mvn.w r3, #5
  64597. 801a3c8: e01b b.n 801a402 <pbuf_copy+0x17e>
  64598. (p_from->next == NULL), return ERR_VAL;);
  64599. }
  64600. if ((p_to != NULL) && (p_to->len == p_to->tot_len)) {
  64601. 801a3ca: 687b ldr r3, [r7, #4]
  64602. 801a3cc: 2b00 cmp r3, #0
  64603. 801a3ce: d013 beq.n 801a3f8 <pbuf_copy+0x174>
  64604. 801a3d0: 687b ldr r3, [r7, #4]
  64605. 801a3d2: 895a ldrh r2, [r3, #10]
  64606. 801a3d4: 687b ldr r3, [r7, #4]
  64607. 801a3d6: 891b ldrh r3, [r3, #8]
  64608. 801a3d8: 429a cmp r2, r3
  64609. 801a3da: d10d bne.n 801a3f8 <pbuf_copy+0x174>
  64610. /* don't copy more than one packet! */
  64611. LWIP_ERROR("pbuf_copy() does not allow packet queues!",
  64612. 801a3dc: 687b ldr r3, [r7, #4]
  64613. 801a3de: 681b ldr r3, [r3, #0]
  64614. 801a3e0: 2b00 cmp r3, #0
  64615. 801a3e2: d009 beq.n 801a3f8 <pbuf_copy+0x174>
  64616. 801a3e4: 4b09 ldr r3, [pc, #36] @ (801a40c <pbuf_copy+0x188>)
  64617. 801a3e6: f240 32ee movw r2, #1006 @ 0x3ee
  64618. 801a3ea: 490e ldr r1, [pc, #56] @ (801a424 <pbuf_copy+0x1a0>)
  64619. 801a3ec: 4809 ldr r0, [pc, #36] @ (801a414 <pbuf_copy+0x190>)
  64620. 801a3ee: f00f f88d bl 802950c <iprintf>
  64621. 801a3f2: f06f 0305 mvn.w r3, #5
  64622. 801a3f6: e004 b.n 801a402 <pbuf_copy+0x17e>
  64623. (p_to->next == NULL), return ERR_VAL;);
  64624. }
  64625. } while (p_from);
  64626. 801a3f8: 683b ldr r3, [r7, #0]
  64627. 801a3fa: 2b00 cmp r3, #0
  64628. 801a3fc: f47f af61 bne.w 801a2c2 <pbuf_copy+0x3e>
  64629. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_copy: end of chain reached.\n"));
  64630. return ERR_OK;
  64631. 801a400: 2300 movs r3, #0
  64632. }
  64633. 801a402: 4618 mov r0, r3
  64634. 801a404: 3718 adds r7, #24
  64635. 801a406: 46bd mov sp, r7
  64636. 801a408: bd80 pop {r7, pc}
  64637. 801a40a: bf00 nop
  64638. 801a40c: 0802dc3c .word 0x0802dc3c
  64639. 801a410: 0802dee4 .word 0x0802dee4
  64640. 801a414: 0802dc9c .word 0x0802dc9c
  64641. 801a418: 0802df14 .word 0x0802df14
  64642. 801a41c: 0802df2c .word 0x0802df2c
  64643. 801a420: 0802df48 .word 0x0802df48
  64644. 801a424: 0802df58 .word 0x0802df58
  64645. 0801a428 <pbuf_copy_partial>:
  64646. * @param offset offset into the packet buffer from where to begin copying len bytes
  64647. * @return the number of bytes copied, or 0 on failure
  64648. */
  64649. u16_t
  64650. pbuf_copy_partial(const struct pbuf *buf, void *dataptr, u16_t len, u16_t offset)
  64651. {
  64652. 801a428: b580 push {r7, lr}
  64653. 801a42a: b088 sub sp, #32
  64654. 801a42c: af00 add r7, sp, #0
  64655. 801a42e: 60f8 str r0, [r7, #12]
  64656. 801a430: 60b9 str r1, [r7, #8]
  64657. 801a432: 4611 mov r1, r2
  64658. 801a434: 461a mov r2, r3
  64659. 801a436: 460b mov r3, r1
  64660. 801a438: 80fb strh r3, [r7, #6]
  64661. 801a43a: 4613 mov r3, r2
  64662. 801a43c: 80bb strh r3, [r7, #4]
  64663. const struct pbuf *p;
  64664. u16_t left = 0;
  64665. 801a43e: 2300 movs r3, #0
  64666. 801a440: 837b strh r3, [r7, #26]
  64667. u16_t buf_copy_len;
  64668. u16_t copied_total = 0;
  64669. 801a442: 2300 movs r3, #0
  64670. 801a444: 82fb strh r3, [r7, #22]
  64671. LWIP_ERROR("pbuf_copy_partial: invalid buf", (buf != NULL), return 0;);
  64672. 801a446: 68fb ldr r3, [r7, #12]
  64673. 801a448: 2b00 cmp r3, #0
  64674. 801a44a: d108 bne.n 801a45e <pbuf_copy_partial+0x36>
  64675. 801a44c: 4b2b ldr r3, [pc, #172] @ (801a4fc <pbuf_copy_partial+0xd4>)
  64676. 801a44e: f240 420a movw r2, #1034 @ 0x40a
  64677. 801a452: 492b ldr r1, [pc, #172] @ (801a500 <pbuf_copy_partial+0xd8>)
  64678. 801a454: 482b ldr r0, [pc, #172] @ (801a504 <pbuf_copy_partial+0xdc>)
  64679. 801a456: f00f f859 bl 802950c <iprintf>
  64680. 801a45a: 2300 movs r3, #0
  64681. 801a45c: e04a b.n 801a4f4 <pbuf_copy_partial+0xcc>
  64682. LWIP_ERROR("pbuf_copy_partial: invalid dataptr", (dataptr != NULL), return 0;);
  64683. 801a45e: 68bb ldr r3, [r7, #8]
  64684. 801a460: 2b00 cmp r3, #0
  64685. 801a462: d108 bne.n 801a476 <pbuf_copy_partial+0x4e>
  64686. 801a464: 4b25 ldr r3, [pc, #148] @ (801a4fc <pbuf_copy_partial+0xd4>)
  64687. 801a466: f240 420b movw r2, #1035 @ 0x40b
  64688. 801a46a: 4927 ldr r1, [pc, #156] @ (801a508 <pbuf_copy_partial+0xe0>)
  64689. 801a46c: 4825 ldr r0, [pc, #148] @ (801a504 <pbuf_copy_partial+0xdc>)
  64690. 801a46e: f00f f84d bl 802950c <iprintf>
  64691. 801a472: 2300 movs r3, #0
  64692. 801a474: e03e b.n 801a4f4 <pbuf_copy_partial+0xcc>
  64693. /* Note some systems use byte copy if dataptr or one of the pbuf payload pointers are unaligned. */
  64694. for (p = buf; len != 0 && p != NULL; p = p->next) {
  64695. 801a476: 68fb ldr r3, [r7, #12]
  64696. 801a478: 61fb str r3, [r7, #28]
  64697. 801a47a: e034 b.n 801a4e6 <pbuf_copy_partial+0xbe>
  64698. if ((offset != 0) && (offset >= p->len)) {
  64699. 801a47c: 88bb ldrh r3, [r7, #4]
  64700. 801a47e: 2b00 cmp r3, #0
  64701. 801a480: d00a beq.n 801a498 <pbuf_copy_partial+0x70>
  64702. 801a482: 69fb ldr r3, [r7, #28]
  64703. 801a484: 895b ldrh r3, [r3, #10]
  64704. 801a486: 88ba ldrh r2, [r7, #4]
  64705. 801a488: 429a cmp r2, r3
  64706. 801a48a: d305 bcc.n 801a498 <pbuf_copy_partial+0x70>
  64707. /* don't copy from this buffer -> on to the next */
  64708. offset = (u16_t)(offset - p->len);
  64709. 801a48c: 69fb ldr r3, [r7, #28]
  64710. 801a48e: 895b ldrh r3, [r3, #10]
  64711. 801a490: 88ba ldrh r2, [r7, #4]
  64712. 801a492: 1ad3 subs r3, r2, r3
  64713. 801a494: 80bb strh r3, [r7, #4]
  64714. 801a496: e023 b.n 801a4e0 <pbuf_copy_partial+0xb8>
  64715. } else {
  64716. /* copy from this buffer. maybe only partially. */
  64717. buf_copy_len = (u16_t)(p->len - offset);
  64718. 801a498: 69fb ldr r3, [r7, #28]
  64719. 801a49a: 895a ldrh r2, [r3, #10]
  64720. 801a49c: 88bb ldrh r3, [r7, #4]
  64721. 801a49e: 1ad3 subs r3, r2, r3
  64722. 801a4a0: 833b strh r3, [r7, #24]
  64723. if (buf_copy_len > len) {
  64724. 801a4a2: 8b3a ldrh r2, [r7, #24]
  64725. 801a4a4: 88fb ldrh r3, [r7, #6]
  64726. 801a4a6: 429a cmp r2, r3
  64727. 801a4a8: d901 bls.n 801a4ae <pbuf_copy_partial+0x86>
  64728. buf_copy_len = len;
  64729. 801a4aa: 88fb ldrh r3, [r7, #6]
  64730. 801a4ac: 833b strh r3, [r7, #24]
  64731. }
  64732. /* copy the necessary parts of the buffer */
  64733. MEMCPY(&((char *)dataptr)[left], &((char *)p->payload)[offset], buf_copy_len);
  64734. 801a4ae: 8b7b ldrh r3, [r7, #26]
  64735. 801a4b0: 68ba ldr r2, [r7, #8]
  64736. 801a4b2: 18d0 adds r0, r2, r3
  64737. 801a4b4: 69fb ldr r3, [r7, #28]
  64738. 801a4b6: 685a ldr r2, [r3, #4]
  64739. 801a4b8: 88bb ldrh r3, [r7, #4]
  64740. 801a4ba: 4413 add r3, r2
  64741. 801a4bc: 8b3a ldrh r2, [r7, #24]
  64742. 801a4be: 4619 mov r1, r3
  64743. 801a4c0: f00f faad bl 8029a1e <memcpy>
  64744. copied_total = (u16_t)(copied_total + buf_copy_len);
  64745. 801a4c4: 8afa ldrh r2, [r7, #22]
  64746. 801a4c6: 8b3b ldrh r3, [r7, #24]
  64747. 801a4c8: 4413 add r3, r2
  64748. 801a4ca: 82fb strh r3, [r7, #22]
  64749. left = (u16_t)(left + buf_copy_len);
  64750. 801a4cc: 8b7a ldrh r2, [r7, #26]
  64751. 801a4ce: 8b3b ldrh r3, [r7, #24]
  64752. 801a4d0: 4413 add r3, r2
  64753. 801a4d2: 837b strh r3, [r7, #26]
  64754. len = (u16_t)(len - buf_copy_len);
  64755. 801a4d4: 88fa ldrh r2, [r7, #6]
  64756. 801a4d6: 8b3b ldrh r3, [r7, #24]
  64757. 801a4d8: 1ad3 subs r3, r2, r3
  64758. 801a4da: 80fb strh r3, [r7, #6]
  64759. offset = 0;
  64760. 801a4dc: 2300 movs r3, #0
  64761. 801a4de: 80bb strh r3, [r7, #4]
  64762. for (p = buf; len != 0 && p != NULL; p = p->next) {
  64763. 801a4e0: 69fb ldr r3, [r7, #28]
  64764. 801a4e2: 681b ldr r3, [r3, #0]
  64765. 801a4e4: 61fb str r3, [r7, #28]
  64766. 801a4e6: 88fb ldrh r3, [r7, #6]
  64767. 801a4e8: 2b00 cmp r3, #0
  64768. 801a4ea: d002 beq.n 801a4f2 <pbuf_copy_partial+0xca>
  64769. 801a4ec: 69fb ldr r3, [r7, #28]
  64770. 801a4ee: 2b00 cmp r3, #0
  64771. 801a4f0: d1c4 bne.n 801a47c <pbuf_copy_partial+0x54>
  64772. }
  64773. }
  64774. return copied_total;
  64775. 801a4f2: 8afb ldrh r3, [r7, #22]
  64776. }
  64777. 801a4f4: 4618 mov r0, r3
  64778. 801a4f6: 3720 adds r7, #32
  64779. 801a4f8: 46bd mov sp, r7
  64780. 801a4fa: bd80 pop {r7, pc}
  64781. 801a4fc: 0802dc3c .word 0x0802dc3c
  64782. 801a500: 0802df84 .word 0x0802df84
  64783. 801a504: 0802dc9c .word 0x0802dc9c
  64784. 801a508: 0802dfa4 .word 0x0802dfa4
  64785. 0801a50c <pbuf_clone>:
  64786. *
  64787. * @return a new pbuf or NULL if allocation fails
  64788. */
  64789. struct pbuf *
  64790. pbuf_clone(pbuf_layer layer, pbuf_type type, struct pbuf *p)
  64791. {
  64792. 801a50c: b580 push {r7, lr}
  64793. 801a50e: b084 sub sp, #16
  64794. 801a510: af00 add r7, sp, #0
  64795. 801a512: 4603 mov r3, r0
  64796. 801a514: 603a str r2, [r7, #0]
  64797. 801a516: 71fb strb r3, [r7, #7]
  64798. 801a518: 460b mov r3, r1
  64799. 801a51a: 80bb strh r3, [r7, #4]
  64800. struct pbuf *q;
  64801. err_t err;
  64802. q = pbuf_alloc(layer, p->tot_len, type);
  64803. 801a51c: 683b ldr r3, [r7, #0]
  64804. 801a51e: 8919 ldrh r1, [r3, #8]
  64805. 801a520: 88ba ldrh r2, [r7, #4]
  64806. 801a522: 79fb ldrb r3, [r7, #7]
  64807. 801a524: 4618 mov r0, r3
  64808. 801a526: f7ff fa63 bl 80199f0 <pbuf_alloc>
  64809. 801a52a: 60f8 str r0, [r7, #12]
  64810. if (q == NULL) {
  64811. 801a52c: 68fb ldr r3, [r7, #12]
  64812. 801a52e: 2b00 cmp r3, #0
  64813. 801a530: d101 bne.n 801a536 <pbuf_clone+0x2a>
  64814. return NULL;
  64815. 801a532: 2300 movs r3, #0
  64816. 801a534: e011 b.n 801a55a <pbuf_clone+0x4e>
  64817. }
  64818. err = pbuf_copy(q, p);
  64819. 801a536: 6839 ldr r1, [r7, #0]
  64820. 801a538: 68f8 ldr r0, [r7, #12]
  64821. 801a53a: f7ff fea3 bl 801a284 <pbuf_copy>
  64822. 801a53e: 4603 mov r3, r0
  64823. 801a540: 72fb strb r3, [r7, #11]
  64824. LWIP_UNUSED_ARG(err); /* in case of LWIP_NOASSERT */
  64825. LWIP_ASSERT("pbuf_copy failed", err == ERR_OK);
  64826. 801a542: f997 300b ldrsb.w r3, [r7, #11]
  64827. 801a546: 2b00 cmp r3, #0
  64828. 801a548: d006 beq.n 801a558 <pbuf_clone+0x4c>
  64829. 801a54a: 4b06 ldr r3, [pc, #24] @ (801a564 <pbuf_clone+0x58>)
  64830. 801a54c: f240 5224 movw r2, #1316 @ 0x524
  64831. 801a550: 4905 ldr r1, [pc, #20] @ (801a568 <pbuf_clone+0x5c>)
  64832. 801a552: 4806 ldr r0, [pc, #24] @ (801a56c <pbuf_clone+0x60>)
  64833. 801a554: f00e ffda bl 802950c <iprintf>
  64834. return q;
  64835. 801a558: 68fb ldr r3, [r7, #12]
  64836. }
  64837. 801a55a: 4618 mov r0, r3
  64838. 801a55c: 3710 adds r7, #16
  64839. 801a55e: 46bd mov sp, r7
  64840. 801a560: bd80 pop {r7, pc}
  64841. 801a562: bf00 nop
  64842. 801a564: 0802dc3c .word 0x0802dc3c
  64843. 801a568: 0802e0b0 .word 0x0802e0b0
  64844. 801a56c: 0802dc9c .word 0x0802dc9c
  64845. 0801a570 <tcp_init>:
  64846. /**
  64847. * Initialize this module.
  64848. */
  64849. void
  64850. tcp_init(void)
  64851. {
  64852. 801a570: b580 push {r7, lr}
  64853. 801a572: af00 add r7, sp, #0
  64854. #ifdef LWIP_RAND
  64855. tcp_port = TCP_ENSURE_LOCAL_PORT_RANGE(LWIP_RAND());
  64856. 801a574: f00d fca0 bl 8027eb8 <rand>
  64857. 801a578: 4603 mov r3, r0
  64858. 801a57a: b29b uxth r3, r3
  64859. 801a57c: f3c3 030d ubfx r3, r3, #0, #14
  64860. 801a580: b29b uxth r3, r3
  64861. 801a582: f5a3 4380 sub.w r3, r3, #16384 @ 0x4000
  64862. 801a586: b29a uxth r2, r3
  64863. 801a588: 4b01 ldr r3, [pc, #4] @ (801a590 <tcp_init+0x20>)
  64864. 801a58a: 801a strh r2, [r3, #0]
  64865. #endif /* LWIP_RAND */
  64866. }
  64867. 801a58c: bf00 nop
  64868. 801a58e: bd80 pop {r7, pc}
  64869. 801a590: 24000038 .word 0x24000038
  64870. 0801a594 <tcp_free>:
  64871. /** Free a tcp pcb */
  64872. void
  64873. tcp_free(struct tcp_pcb *pcb)
  64874. {
  64875. 801a594: b580 push {r7, lr}
  64876. 801a596: b082 sub sp, #8
  64877. 801a598: af00 add r7, sp, #0
  64878. 801a59a: 6078 str r0, [r7, #4]
  64879. LWIP_ASSERT("tcp_free: LISTEN", pcb->state != LISTEN);
  64880. 801a59c: 687b ldr r3, [r7, #4]
  64881. 801a59e: 7d1b ldrb r3, [r3, #20]
  64882. 801a5a0: 2b01 cmp r3, #1
  64883. 801a5a2: d105 bne.n 801a5b0 <tcp_free+0x1c>
  64884. 801a5a4: 4b06 ldr r3, [pc, #24] @ (801a5c0 <tcp_free+0x2c>)
  64885. 801a5a6: 22d4 movs r2, #212 @ 0xd4
  64886. 801a5a8: 4906 ldr r1, [pc, #24] @ (801a5c4 <tcp_free+0x30>)
  64887. 801a5aa: 4807 ldr r0, [pc, #28] @ (801a5c8 <tcp_free+0x34>)
  64888. 801a5ac: f00e ffae bl 802950c <iprintf>
  64889. #if LWIP_TCP_PCB_NUM_EXT_ARGS
  64890. tcp_ext_arg_invoke_callbacks_destroyed(pcb->ext_args);
  64891. #endif
  64892. memp_free(MEMP_TCP_PCB, pcb);
  64893. 801a5b0: 6879 ldr r1, [r7, #4]
  64894. 801a5b2: 2001 movs r0, #1
  64895. 801a5b4: f7fe fe44 bl 8019240 <memp_free>
  64896. }
  64897. 801a5b8: bf00 nop
  64898. 801a5ba: 3708 adds r7, #8
  64899. 801a5bc: 46bd mov sp, r7
  64900. 801a5be: bd80 pop {r7, pc}
  64901. 801a5c0: 0802e13c .word 0x0802e13c
  64902. 801a5c4: 0802e16c .word 0x0802e16c
  64903. 801a5c8: 0802e180 .word 0x0802e180
  64904. 0801a5cc <tcp_free_listen>:
  64905. /** Free a tcp listen pcb */
  64906. static void
  64907. tcp_free_listen(struct tcp_pcb *pcb)
  64908. {
  64909. 801a5cc: b580 push {r7, lr}
  64910. 801a5ce: b082 sub sp, #8
  64911. 801a5d0: af00 add r7, sp, #0
  64912. 801a5d2: 6078 str r0, [r7, #4]
  64913. LWIP_ASSERT("tcp_free_listen: !LISTEN", pcb->state != LISTEN);
  64914. 801a5d4: 687b ldr r3, [r7, #4]
  64915. 801a5d6: 7d1b ldrb r3, [r3, #20]
  64916. 801a5d8: 2b01 cmp r3, #1
  64917. 801a5da: d105 bne.n 801a5e8 <tcp_free_listen+0x1c>
  64918. 801a5dc: 4b06 ldr r3, [pc, #24] @ (801a5f8 <tcp_free_listen+0x2c>)
  64919. 801a5de: 22df movs r2, #223 @ 0xdf
  64920. 801a5e0: 4906 ldr r1, [pc, #24] @ (801a5fc <tcp_free_listen+0x30>)
  64921. 801a5e2: 4807 ldr r0, [pc, #28] @ (801a600 <tcp_free_listen+0x34>)
  64922. 801a5e4: f00e ff92 bl 802950c <iprintf>
  64923. #if LWIP_TCP_PCB_NUM_EXT_ARGS
  64924. tcp_ext_arg_invoke_callbacks_destroyed(pcb->ext_args);
  64925. #endif
  64926. memp_free(MEMP_TCP_PCB_LISTEN, pcb);
  64927. 801a5e8: 6879 ldr r1, [r7, #4]
  64928. 801a5ea: 2002 movs r0, #2
  64929. 801a5ec: f7fe fe28 bl 8019240 <memp_free>
  64930. }
  64931. 801a5f0: bf00 nop
  64932. 801a5f2: 3708 adds r7, #8
  64933. 801a5f4: 46bd mov sp, r7
  64934. 801a5f6: bd80 pop {r7, pc}
  64935. 801a5f8: 0802e13c .word 0x0802e13c
  64936. 801a5fc: 0802e1a8 .word 0x0802e1a8
  64937. 801a600: 0802e180 .word 0x0802e180
  64938. 0801a604 <tcp_tmr>:
  64939. /**
  64940. * Called periodically to dispatch TCP timers.
  64941. */
  64942. void
  64943. tcp_tmr(void)
  64944. {
  64945. 801a604: b580 push {r7, lr}
  64946. 801a606: af00 add r7, sp, #0
  64947. /* Call tcp_fasttmr() every 250 ms */
  64948. tcp_fasttmr();
  64949. 801a608: f001 f86a bl 801b6e0 <tcp_fasttmr>
  64950. if (++tcp_timer & 1) {
  64951. 801a60c: 4b07 ldr r3, [pc, #28] @ (801a62c <tcp_tmr+0x28>)
  64952. 801a60e: 781b ldrb r3, [r3, #0]
  64953. 801a610: 3301 adds r3, #1
  64954. 801a612: b2da uxtb r2, r3
  64955. 801a614: 4b05 ldr r3, [pc, #20] @ (801a62c <tcp_tmr+0x28>)
  64956. 801a616: 701a strb r2, [r3, #0]
  64957. 801a618: 4b04 ldr r3, [pc, #16] @ (801a62c <tcp_tmr+0x28>)
  64958. 801a61a: 781b ldrb r3, [r3, #0]
  64959. 801a61c: f003 0301 and.w r3, r3, #1
  64960. 801a620: 2b00 cmp r3, #0
  64961. 801a622: d001 beq.n 801a628 <tcp_tmr+0x24>
  64962. /* Call tcp_slowtmr() every 500 ms, i.e., every other timer
  64963. tcp_tmr() is called. */
  64964. tcp_slowtmr();
  64965. 801a624: f000 fd1a bl 801b05c <tcp_slowtmr>
  64966. }
  64967. }
  64968. 801a628: bf00 nop
  64969. 801a62a: bd80 pop {r7, pc}
  64970. 801a62c: 2402a001 .word 0x2402a001
  64971. 0801a630 <tcp_remove_listener>:
  64972. /** Called when a listen pcb is closed. Iterates one pcb list and removes the
  64973. * closed listener pcb from pcb->listener if matching.
  64974. */
  64975. static void
  64976. tcp_remove_listener(struct tcp_pcb *list, struct tcp_pcb_listen *lpcb)
  64977. {
  64978. 801a630: b580 push {r7, lr}
  64979. 801a632: b084 sub sp, #16
  64980. 801a634: af00 add r7, sp, #0
  64981. 801a636: 6078 str r0, [r7, #4]
  64982. 801a638: 6039 str r1, [r7, #0]
  64983. struct tcp_pcb *pcb;
  64984. LWIP_ASSERT("tcp_remove_listener: invalid listener", lpcb != NULL);
  64985. 801a63a: 683b ldr r3, [r7, #0]
  64986. 801a63c: 2b00 cmp r3, #0
  64987. 801a63e: d105 bne.n 801a64c <tcp_remove_listener+0x1c>
  64988. 801a640: 4b0d ldr r3, [pc, #52] @ (801a678 <tcp_remove_listener+0x48>)
  64989. 801a642: 22ff movs r2, #255 @ 0xff
  64990. 801a644: 490d ldr r1, [pc, #52] @ (801a67c <tcp_remove_listener+0x4c>)
  64991. 801a646: 480e ldr r0, [pc, #56] @ (801a680 <tcp_remove_listener+0x50>)
  64992. 801a648: f00e ff60 bl 802950c <iprintf>
  64993. for (pcb = list; pcb != NULL; pcb = pcb->next) {
  64994. 801a64c: 687b ldr r3, [r7, #4]
  64995. 801a64e: 60fb str r3, [r7, #12]
  64996. 801a650: e00a b.n 801a668 <tcp_remove_listener+0x38>
  64997. if (pcb->listener == lpcb) {
  64998. 801a652: 68fb ldr r3, [r7, #12]
  64999. 801a654: 6fdb ldr r3, [r3, #124] @ 0x7c
  65000. 801a656: 683a ldr r2, [r7, #0]
  65001. 801a658: 429a cmp r2, r3
  65002. 801a65a: d102 bne.n 801a662 <tcp_remove_listener+0x32>
  65003. pcb->listener = NULL;
  65004. 801a65c: 68fb ldr r3, [r7, #12]
  65005. 801a65e: 2200 movs r2, #0
  65006. 801a660: 67da str r2, [r3, #124] @ 0x7c
  65007. for (pcb = list; pcb != NULL; pcb = pcb->next) {
  65008. 801a662: 68fb ldr r3, [r7, #12]
  65009. 801a664: 68db ldr r3, [r3, #12]
  65010. 801a666: 60fb str r3, [r7, #12]
  65011. 801a668: 68fb ldr r3, [r7, #12]
  65012. 801a66a: 2b00 cmp r3, #0
  65013. 801a66c: d1f1 bne.n 801a652 <tcp_remove_listener+0x22>
  65014. }
  65015. }
  65016. }
  65017. 801a66e: bf00 nop
  65018. 801a670: bf00 nop
  65019. 801a672: 3710 adds r7, #16
  65020. 801a674: 46bd mov sp, r7
  65021. 801a676: bd80 pop {r7, pc}
  65022. 801a678: 0802e13c .word 0x0802e13c
  65023. 801a67c: 0802e1c4 .word 0x0802e1c4
  65024. 801a680: 0802e180 .word 0x0802e180
  65025. 0801a684 <tcp_listen_closed>:
  65026. /** Called when a listen pcb is closed. Iterates all pcb lists and removes the
  65027. * closed listener pcb from pcb->listener if matching.
  65028. */
  65029. static void
  65030. tcp_listen_closed(struct tcp_pcb *pcb)
  65031. {
  65032. 801a684: b580 push {r7, lr}
  65033. 801a686: b084 sub sp, #16
  65034. 801a688: af00 add r7, sp, #0
  65035. 801a68a: 6078 str r0, [r7, #4]
  65036. #if LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG
  65037. size_t i;
  65038. LWIP_ASSERT("pcb != NULL", pcb != NULL);
  65039. 801a68c: 687b ldr r3, [r7, #4]
  65040. 801a68e: 2b00 cmp r3, #0
  65041. 801a690: d106 bne.n 801a6a0 <tcp_listen_closed+0x1c>
  65042. 801a692: 4b14 ldr r3, [pc, #80] @ (801a6e4 <tcp_listen_closed+0x60>)
  65043. 801a694: f240 1211 movw r2, #273 @ 0x111
  65044. 801a698: 4913 ldr r1, [pc, #76] @ (801a6e8 <tcp_listen_closed+0x64>)
  65045. 801a69a: 4814 ldr r0, [pc, #80] @ (801a6ec <tcp_listen_closed+0x68>)
  65046. 801a69c: f00e ff36 bl 802950c <iprintf>
  65047. LWIP_ASSERT("pcb->state == LISTEN", pcb->state == LISTEN);
  65048. 801a6a0: 687b ldr r3, [r7, #4]
  65049. 801a6a2: 7d1b ldrb r3, [r3, #20]
  65050. 801a6a4: 2b01 cmp r3, #1
  65051. 801a6a6: d006 beq.n 801a6b6 <tcp_listen_closed+0x32>
  65052. 801a6a8: 4b0e ldr r3, [pc, #56] @ (801a6e4 <tcp_listen_closed+0x60>)
  65053. 801a6aa: f44f 7289 mov.w r2, #274 @ 0x112
  65054. 801a6ae: 4910 ldr r1, [pc, #64] @ (801a6f0 <tcp_listen_closed+0x6c>)
  65055. 801a6b0: 480e ldr r0, [pc, #56] @ (801a6ec <tcp_listen_closed+0x68>)
  65056. 801a6b2: f00e ff2b bl 802950c <iprintf>
  65057. for (i = 1; i < LWIP_ARRAYSIZE(tcp_pcb_lists); i++) {
  65058. 801a6b6: 2301 movs r3, #1
  65059. 801a6b8: 60fb str r3, [r7, #12]
  65060. 801a6ba: e00b b.n 801a6d4 <tcp_listen_closed+0x50>
  65061. tcp_remove_listener(*tcp_pcb_lists[i], (struct tcp_pcb_listen *)pcb);
  65062. 801a6bc: 4a0d ldr r2, [pc, #52] @ (801a6f4 <tcp_listen_closed+0x70>)
  65063. 801a6be: 68fb ldr r3, [r7, #12]
  65064. 801a6c0: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  65065. 801a6c4: 681b ldr r3, [r3, #0]
  65066. 801a6c6: 6879 ldr r1, [r7, #4]
  65067. 801a6c8: 4618 mov r0, r3
  65068. 801a6ca: f7ff ffb1 bl 801a630 <tcp_remove_listener>
  65069. for (i = 1; i < LWIP_ARRAYSIZE(tcp_pcb_lists); i++) {
  65070. 801a6ce: 68fb ldr r3, [r7, #12]
  65071. 801a6d0: 3301 adds r3, #1
  65072. 801a6d2: 60fb str r3, [r7, #12]
  65073. 801a6d4: 68fb ldr r3, [r7, #12]
  65074. 801a6d6: 2b03 cmp r3, #3
  65075. 801a6d8: d9f0 bls.n 801a6bc <tcp_listen_closed+0x38>
  65076. }
  65077. #endif
  65078. LWIP_UNUSED_ARG(pcb);
  65079. }
  65080. 801a6da: bf00 nop
  65081. 801a6dc: bf00 nop
  65082. 801a6de: 3710 adds r7, #16
  65083. 801a6e0: 46bd mov sp, r7
  65084. 801a6e2: bd80 pop {r7, pc}
  65085. 801a6e4: 0802e13c .word 0x0802e13c
  65086. 801a6e8: 0802e1ec .word 0x0802e1ec
  65087. 801a6ec: 0802e180 .word 0x0802e180
  65088. 801a6f0: 0802e1f8 .word 0x0802e1f8
  65089. 801a6f4: 0803076c .word 0x0803076c
  65090. 0801a6f8 <tcp_close_shutdown>:
  65091. * @return ERR_OK if connection has been closed
  65092. * another err_t if closing failed and pcb is not freed
  65093. */
  65094. static err_t
  65095. tcp_close_shutdown(struct tcp_pcb *pcb, u8_t rst_on_unacked_data)
  65096. {
  65097. 801a6f8: b5b0 push {r4, r5, r7, lr}
  65098. 801a6fa: b088 sub sp, #32
  65099. 801a6fc: af04 add r7, sp, #16
  65100. 801a6fe: 6078 str r0, [r7, #4]
  65101. 801a700: 460b mov r3, r1
  65102. 801a702: 70fb strb r3, [r7, #3]
  65103. LWIP_ASSERT("tcp_close_shutdown: invalid pcb", pcb != NULL);
  65104. 801a704: 687b ldr r3, [r7, #4]
  65105. 801a706: 2b00 cmp r3, #0
  65106. 801a708: d106 bne.n 801a718 <tcp_close_shutdown+0x20>
  65107. 801a70a: 4b63 ldr r3, [pc, #396] @ (801a898 <tcp_close_shutdown+0x1a0>)
  65108. 801a70c: f44f 72af mov.w r2, #350 @ 0x15e
  65109. 801a710: 4962 ldr r1, [pc, #392] @ (801a89c <tcp_close_shutdown+0x1a4>)
  65110. 801a712: 4863 ldr r0, [pc, #396] @ (801a8a0 <tcp_close_shutdown+0x1a8>)
  65111. 801a714: f00e fefa bl 802950c <iprintf>
  65112. if (rst_on_unacked_data && ((pcb->state == ESTABLISHED) || (pcb->state == CLOSE_WAIT))) {
  65113. 801a718: 78fb ldrb r3, [r7, #3]
  65114. 801a71a: 2b00 cmp r3, #0
  65115. 801a71c: d067 beq.n 801a7ee <tcp_close_shutdown+0xf6>
  65116. 801a71e: 687b ldr r3, [r7, #4]
  65117. 801a720: 7d1b ldrb r3, [r3, #20]
  65118. 801a722: 2b04 cmp r3, #4
  65119. 801a724: d003 beq.n 801a72e <tcp_close_shutdown+0x36>
  65120. 801a726: 687b ldr r3, [r7, #4]
  65121. 801a728: 7d1b ldrb r3, [r3, #20]
  65122. 801a72a: 2b07 cmp r3, #7
  65123. 801a72c: d15f bne.n 801a7ee <tcp_close_shutdown+0xf6>
  65124. if ((pcb->refused_data != NULL) || (pcb->rcv_wnd != TCP_WND_MAX(pcb))) {
  65125. 801a72e: 687b ldr r3, [r7, #4]
  65126. 801a730: 6f9b ldr r3, [r3, #120] @ 0x78
  65127. 801a732: 2b00 cmp r3, #0
  65128. 801a734: d105 bne.n 801a742 <tcp_close_shutdown+0x4a>
  65129. 801a736: 687b ldr r3, [r7, #4]
  65130. 801a738: 8d1b ldrh r3, [r3, #40] @ 0x28
  65131. 801a73a: f241 62d0 movw r2, #5840 @ 0x16d0
  65132. 801a73e: 4293 cmp r3, r2
  65133. 801a740: d055 beq.n 801a7ee <tcp_close_shutdown+0xf6>
  65134. /* Not all data received by application, send RST to tell the remote
  65135. side about this. */
  65136. LWIP_ASSERT("pcb->flags & TF_RXCLOSED", pcb->flags & TF_RXCLOSED);
  65137. 801a742: 687b ldr r3, [r7, #4]
  65138. 801a744: 8b5b ldrh r3, [r3, #26]
  65139. 801a746: f003 0310 and.w r3, r3, #16
  65140. 801a74a: 2b00 cmp r3, #0
  65141. 801a74c: d106 bne.n 801a75c <tcp_close_shutdown+0x64>
  65142. 801a74e: 4b52 ldr r3, [pc, #328] @ (801a898 <tcp_close_shutdown+0x1a0>)
  65143. 801a750: f44f 72b2 mov.w r2, #356 @ 0x164
  65144. 801a754: 4953 ldr r1, [pc, #332] @ (801a8a4 <tcp_close_shutdown+0x1ac>)
  65145. 801a756: 4852 ldr r0, [pc, #328] @ (801a8a0 <tcp_close_shutdown+0x1a8>)
  65146. 801a758: f00e fed8 bl 802950c <iprintf>
  65147. /* don't call tcp_abort here: we must not deallocate the pcb since
  65148. that might not be expected when calling tcp_close */
  65149. tcp_rst(pcb, pcb->snd_nxt, pcb->rcv_nxt, &pcb->local_ip, &pcb->remote_ip,
  65150. 801a75c: 687b ldr r3, [r7, #4]
  65151. 801a75e: 6d18 ldr r0, [r3, #80] @ 0x50
  65152. 801a760: 687b ldr r3, [r7, #4]
  65153. 801a762: 6a5c ldr r4, [r3, #36] @ 0x24
  65154. 801a764: 687d ldr r5, [r7, #4]
  65155. 801a766: 687b ldr r3, [r7, #4]
  65156. 801a768: 3304 adds r3, #4
  65157. 801a76a: 687a ldr r2, [r7, #4]
  65158. 801a76c: 8ad2 ldrh r2, [r2, #22]
  65159. 801a76e: 6879 ldr r1, [r7, #4]
  65160. 801a770: 8b09 ldrh r1, [r1, #24]
  65161. 801a772: 9102 str r1, [sp, #8]
  65162. 801a774: 9201 str r2, [sp, #4]
  65163. 801a776: 9300 str r3, [sp, #0]
  65164. 801a778: 462b mov r3, r5
  65165. 801a77a: 4622 mov r2, r4
  65166. 801a77c: 4601 mov r1, r0
  65167. 801a77e: 6878 ldr r0, [r7, #4]
  65168. 801a780: f005 fdfa bl 8020378 <tcp_rst>
  65169. pcb->local_port, pcb->remote_port);
  65170. tcp_pcb_purge(pcb);
  65171. 801a784: 6878 ldr r0, [r7, #4]
  65172. 801a786: f001 fb67 bl 801be58 <tcp_pcb_purge>
  65173. TCP_RMV_ACTIVE(pcb);
  65174. 801a78a: 4b47 ldr r3, [pc, #284] @ (801a8a8 <tcp_close_shutdown+0x1b0>)
  65175. 801a78c: 681b ldr r3, [r3, #0]
  65176. 801a78e: 687a ldr r2, [r7, #4]
  65177. 801a790: 429a cmp r2, r3
  65178. 801a792: d105 bne.n 801a7a0 <tcp_close_shutdown+0xa8>
  65179. 801a794: 4b44 ldr r3, [pc, #272] @ (801a8a8 <tcp_close_shutdown+0x1b0>)
  65180. 801a796: 681b ldr r3, [r3, #0]
  65181. 801a798: 68db ldr r3, [r3, #12]
  65182. 801a79a: 4a43 ldr r2, [pc, #268] @ (801a8a8 <tcp_close_shutdown+0x1b0>)
  65183. 801a79c: 6013 str r3, [r2, #0]
  65184. 801a79e: e013 b.n 801a7c8 <tcp_close_shutdown+0xd0>
  65185. 801a7a0: 4b41 ldr r3, [pc, #260] @ (801a8a8 <tcp_close_shutdown+0x1b0>)
  65186. 801a7a2: 681b ldr r3, [r3, #0]
  65187. 801a7a4: 60fb str r3, [r7, #12]
  65188. 801a7a6: e00c b.n 801a7c2 <tcp_close_shutdown+0xca>
  65189. 801a7a8: 68fb ldr r3, [r7, #12]
  65190. 801a7aa: 68db ldr r3, [r3, #12]
  65191. 801a7ac: 687a ldr r2, [r7, #4]
  65192. 801a7ae: 429a cmp r2, r3
  65193. 801a7b0: d104 bne.n 801a7bc <tcp_close_shutdown+0xc4>
  65194. 801a7b2: 687b ldr r3, [r7, #4]
  65195. 801a7b4: 68da ldr r2, [r3, #12]
  65196. 801a7b6: 68fb ldr r3, [r7, #12]
  65197. 801a7b8: 60da str r2, [r3, #12]
  65198. 801a7ba: e005 b.n 801a7c8 <tcp_close_shutdown+0xd0>
  65199. 801a7bc: 68fb ldr r3, [r7, #12]
  65200. 801a7be: 68db ldr r3, [r3, #12]
  65201. 801a7c0: 60fb str r3, [r7, #12]
  65202. 801a7c2: 68fb ldr r3, [r7, #12]
  65203. 801a7c4: 2b00 cmp r3, #0
  65204. 801a7c6: d1ef bne.n 801a7a8 <tcp_close_shutdown+0xb0>
  65205. 801a7c8: 687b ldr r3, [r7, #4]
  65206. 801a7ca: 2200 movs r2, #0
  65207. 801a7cc: 60da str r2, [r3, #12]
  65208. 801a7ce: 4b37 ldr r3, [pc, #220] @ (801a8ac <tcp_close_shutdown+0x1b4>)
  65209. 801a7d0: 2201 movs r2, #1
  65210. 801a7d2: 701a strb r2, [r3, #0]
  65211. /* Deallocate the pcb since we already sent a RST for it */
  65212. if (tcp_input_pcb == pcb) {
  65213. 801a7d4: 4b36 ldr r3, [pc, #216] @ (801a8b0 <tcp_close_shutdown+0x1b8>)
  65214. 801a7d6: 681b ldr r3, [r3, #0]
  65215. 801a7d8: 687a ldr r2, [r7, #4]
  65216. 801a7da: 429a cmp r2, r3
  65217. 801a7dc: d102 bne.n 801a7e4 <tcp_close_shutdown+0xec>
  65218. /* prevent using a deallocated pcb: free it from tcp_input later */
  65219. tcp_trigger_input_pcb_close();
  65220. 801a7de: f003 ffff bl 801e7e0 <tcp_trigger_input_pcb_close>
  65221. 801a7e2: e002 b.n 801a7ea <tcp_close_shutdown+0xf2>
  65222. } else {
  65223. tcp_free(pcb);
  65224. 801a7e4: 6878 ldr r0, [r7, #4]
  65225. 801a7e6: f7ff fed5 bl 801a594 <tcp_free>
  65226. }
  65227. return ERR_OK;
  65228. 801a7ea: 2300 movs r3, #0
  65229. 801a7ec: e050 b.n 801a890 <tcp_close_shutdown+0x198>
  65230. }
  65231. }
  65232. /* - states which free the pcb are handled here,
  65233. - states which send FIN and change state are handled in tcp_close_shutdown_fin() */
  65234. switch (pcb->state) {
  65235. 801a7ee: 687b ldr r3, [r7, #4]
  65236. 801a7f0: 7d1b ldrb r3, [r3, #20]
  65237. 801a7f2: 2b02 cmp r3, #2
  65238. 801a7f4: d03b beq.n 801a86e <tcp_close_shutdown+0x176>
  65239. 801a7f6: 2b02 cmp r3, #2
  65240. 801a7f8: dc44 bgt.n 801a884 <tcp_close_shutdown+0x18c>
  65241. 801a7fa: 2b00 cmp r3, #0
  65242. 801a7fc: d002 beq.n 801a804 <tcp_close_shutdown+0x10c>
  65243. 801a7fe: 2b01 cmp r3, #1
  65244. 801a800: d02a beq.n 801a858 <tcp_close_shutdown+0x160>
  65245. 801a802: e03f b.n 801a884 <tcp_close_shutdown+0x18c>
  65246. * and the user needs some way to free it should the need arise.
  65247. * Calling tcp_close() with a pcb that has already been closed, (i.e. twice)
  65248. * or for a pcb that has been used and then entered the CLOSED state
  65249. * is erroneous, but this should never happen as the pcb has in those cases
  65250. * been freed, and so any remaining handles are bogus. */
  65251. if (pcb->local_port != 0) {
  65252. 801a804: 687b ldr r3, [r7, #4]
  65253. 801a806: 8adb ldrh r3, [r3, #22]
  65254. 801a808: 2b00 cmp r3, #0
  65255. 801a80a: d021 beq.n 801a850 <tcp_close_shutdown+0x158>
  65256. TCP_RMV(&tcp_bound_pcbs, pcb);
  65257. 801a80c: 4b29 ldr r3, [pc, #164] @ (801a8b4 <tcp_close_shutdown+0x1bc>)
  65258. 801a80e: 681b ldr r3, [r3, #0]
  65259. 801a810: 687a ldr r2, [r7, #4]
  65260. 801a812: 429a cmp r2, r3
  65261. 801a814: d105 bne.n 801a822 <tcp_close_shutdown+0x12a>
  65262. 801a816: 4b27 ldr r3, [pc, #156] @ (801a8b4 <tcp_close_shutdown+0x1bc>)
  65263. 801a818: 681b ldr r3, [r3, #0]
  65264. 801a81a: 68db ldr r3, [r3, #12]
  65265. 801a81c: 4a25 ldr r2, [pc, #148] @ (801a8b4 <tcp_close_shutdown+0x1bc>)
  65266. 801a81e: 6013 str r3, [r2, #0]
  65267. 801a820: e013 b.n 801a84a <tcp_close_shutdown+0x152>
  65268. 801a822: 4b24 ldr r3, [pc, #144] @ (801a8b4 <tcp_close_shutdown+0x1bc>)
  65269. 801a824: 681b ldr r3, [r3, #0]
  65270. 801a826: 60bb str r3, [r7, #8]
  65271. 801a828: e00c b.n 801a844 <tcp_close_shutdown+0x14c>
  65272. 801a82a: 68bb ldr r3, [r7, #8]
  65273. 801a82c: 68db ldr r3, [r3, #12]
  65274. 801a82e: 687a ldr r2, [r7, #4]
  65275. 801a830: 429a cmp r2, r3
  65276. 801a832: d104 bne.n 801a83e <tcp_close_shutdown+0x146>
  65277. 801a834: 687b ldr r3, [r7, #4]
  65278. 801a836: 68da ldr r2, [r3, #12]
  65279. 801a838: 68bb ldr r3, [r7, #8]
  65280. 801a83a: 60da str r2, [r3, #12]
  65281. 801a83c: e005 b.n 801a84a <tcp_close_shutdown+0x152>
  65282. 801a83e: 68bb ldr r3, [r7, #8]
  65283. 801a840: 68db ldr r3, [r3, #12]
  65284. 801a842: 60bb str r3, [r7, #8]
  65285. 801a844: 68bb ldr r3, [r7, #8]
  65286. 801a846: 2b00 cmp r3, #0
  65287. 801a848: d1ef bne.n 801a82a <tcp_close_shutdown+0x132>
  65288. 801a84a: 687b ldr r3, [r7, #4]
  65289. 801a84c: 2200 movs r2, #0
  65290. 801a84e: 60da str r2, [r3, #12]
  65291. }
  65292. tcp_free(pcb);
  65293. 801a850: 6878 ldr r0, [r7, #4]
  65294. 801a852: f7ff fe9f bl 801a594 <tcp_free>
  65295. break;
  65296. 801a856: e01a b.n 801a88e <tcp_close_shutdown+0x196>
  65297. case LISTEN:
  65298. tcp_listen_closed(pcb);
  65299. 801a858: 6878 ldr r0, [r7, #4]
  65300. 801a85a: f7ff ff13 bl 801a684 <tcp_listen_closed>
  65301. tcp_pcb_remove(&tcp_listen_pcbs.pcbs, pcb);
  65302. 801a85e: 6879 ldr r1, [r7, #4]
  65303. 801a860: 4815 ldr r0, [pc, #84] @ (801a8b8 <tcp_close_shutdown+0x1c0>)
  65304. 801a862: f001 fb49 bl 801bef8 <tcp_pcb_remove>
  65305. tcp_free_listen(pcb);
  65306. 801a866: 6878 ldr r0, [r7, #4]
  65307. 801a868: f7ff feb0 bl 801a5cc <tcp_free_listen>
  65308. break;
  65309. 801a86c: e00f b.n 801a88e <tcp_close_shutdown+0x196>
  65310. case SYN_SENT:
  65311. TCP_PCB_REMOVE_ACTIVE(pcb);
  65312. 801a86e: 6879 ldr r1, [r7, #4]
  65313. 801a870: 480d ldr r0, [pc, #52] @ (801a8a8 <tcp_close_shutdown+0x1b0>)
  65314. 801a872: f001 fb41 bl 801bef8 <tcp_pcb_remove>
  65315. 801a876: 4b0d ldr r3, [pc, #52] @ (801a8ac <tcp_close_shutdown+0x1b4>)
  65316. 801a878: 2201 movs r2, #1
  65317. 801a87a: 701a strb r2, [r3, #0]
  65318. tcp_free(pcb);
  65319. 801a87c: 6878 ldr r0, [r7, #4]
  65320. 801a87e: f7ff fe89 bl 801a594 <tcp_free>
  65321. MIB2_STATS_INC(mib2.tcpattemptfails);
  65322. break;
  65323. 801a882: e004 b.n 801a88e <tcp_close_shutdown+0x196>
  65324. default:
  65325. return tcp_close_shutdown_fin(pcb);
  65326. 801a884: 6878 ldr r0, [r7, #4]
  65327. 801a886: f000 f819 bl 801a8bc <tcp_close_shutdown_fin>
  65328. 801a88a: 4603 mov r3, r0
  65329. 801a88c: e000 b.n 801a890 <tcp_close_shutdown+0x198>
  65330. }
  65331. return ERR_OK;
  65332. 801a88e: 2300 movs r3, #0
  65333. }
  65334. 801a890: 4618 mov r0, r3
  65335. 801a892: 3710 adds r7, #16
  65336. 801a894: 46bd mov sp, r7
  65337. 801a896: bdb0 pop {r4, r5, r7, pc}
  65338. 801a898: 0802e13c .word 0x0802e13c
  65339. 801a89c: 0802e210 .word 0x0802e210
  65340. 801a8a0: 0802e180 .word 0x0802e180
  65341. 801a8a4: 0802e230 .word 0x0802e230
  65342. 801a8a8: 24029ff8 .word 0x24029ff8
  65343. 801a8ac: 2402a000 .word 0x2402a000
  65344. 801a8b0: 2402a03c .word 0x2402a03c
  65345. 801a8b4: 24029ff0 .word 0x24029ff0
  65346. 801a8b8: 24029ff4 .word 0x24029ff4
  65347. 0801a8bc <tcp_close_shutdown_fin>:
  65348. static err_t
  65349. tcp_close_shutdown_fin(struct tcp_pcb *pcb)
  65350. {
  65351. 801a8bc: b580 push {r7, lr}
  65352. 801a8be: b084 sub sp, #16
  65353. 801a8c0: af00 add r7, sp, #0
  65354. 801a8c2: 6078 str r0, [r7, #4]
  65355. err_t err;
  65356. LWIP_ASSERT("pcb != NULL", pcb != NULL);
  65357. 801a8c4: 687b ldr r3, [r7, #4]
  65358. 801a8c6: 2b00 cmp r3, #0
  65359. 801a8c8: d106 bne.n 801a8d8 <tcp_close_shutdown_fin+0x1c>
  65360. 801a8ca: 4b2e ldr r3, [pc, #184] @ (801a984 <tcp_close_shutdown_fin+0xc8>)
  65361. 801a8cc: f44f 72ce mov.w r2, #412 @ 0x19c
  65362. 801a8d0: 492d ldr r1, [pc, #180] @ (801a988 <tcp_close_shutdown_fin+0xcc>)
  65363. 801a8d2: 482e ldr r0, [pc, #184] @ (801a98c <tcp_close_shutdown_fin+0xd0>)
  65364. 801a8d4: f00e fe1a bl 802950c <iprintf>
  65365. switch (pcb->state) {
  65366. 801a8d8: 687b ldr r3, [r7, #4]
  65367. 801a8da: 7d1b ldrb r3, [r3, #20]
  65368. 801a8dc: 2b07 cmp r3, #7
  65369. 801a8de: d020 beq.n 801a922 <tcp_close_shutdown_fin+0x66>
  65370. 801a8e0: 2b07 cmp r3, #7
  65371. 801a8e2: dc2b bgt.n 801a93c <tcp_close_shutdown_fin+0x80>
  65372. 801a8e4: 2b03 cmp r3, #3
  65373. 801a8e6: d002 beq.n 801a8ee <tcp_close_shutdown_fin+0x32>
  65374. 801a8e8: 2b04 cmp r3, #4
  65375. 801a8ea: d00d beq.n 801a908 <tcp_close_shutdown_fin+0x4c>
  65376. 801a8ec: e026 b.n 801a93c <tcp_close_shutdown_fin+0x80>
  65377. case SYN_RCVD:
  65378. err = tcp_send_fin(pcb);
  65379. 801a8ee: 6878 ldr r0, [r7, #4]
  65380. 801a8f0: f004 fe42 bl 801f578 <tcp_send_fin>
  65381. 801a8f4: 4603 mov r3, r0
  65382. 801a8f6: 73fb strb r3, [r7, #15]
  65383. if (err == ERR_OK) {
  65384. 801a8f8: f997 300f ldrsb.w r3, [r7, #15]
  65385. 801a8fc: 2b00 cmp r3, #0
  65386. 801a8fe: d11f bne.n 801a940 <tcp_close_shutdown_fin+0x84>
  65387. tcp_backlog_accepted(pcb);
  65388. MIB2_STATS_INC(mib2.tcpattemptfails);
  65389. pcb->state = FIN_WAIT_1;
  65390. 801a900: 687b ldr r3, [r7, #4]
  65391. 801a902: 2205 movs r2, #5
  65392. 801a904: 751a strb r2, [r3, #20]
  65393. }
  65394. break;
  65395. 801a906: e01b b.n 801a940 <tcp_close_shutdown_fin+0x84>
  65396. case ESTABLISHED:
  65397. err = tcp_send_fin(pcb);
  65398. 801a908: 6878 ldr r0, [r7, #4]
  65399. 801a90a: f004 fe35 bl 801f578 <tcp_send_fin>
  65400. 801a90e: 4603 mov r3, r0
  65401. 801a910: 73fb strb r3, [r7, #15]
  65402. if (err == ERR_OK) {
  65403. 801a912: f997 300f ldrsb.w r3, [r7, #15]
  65404. 801a916: 2b00 cmp r3, #0
  65405. 801a918: d114 bne.n 801a944 <tcp_close_shutdown_fin+0x88>
  65406. MIB2_STATS_INC(mib2.tcpestabresets);
  65407. pcb->state = FIN_WAIT_1;
  65408. 801a91a: 687b ldr r3, [r7, #4]
  65409. 801a91c: 2205 movs r2, #5
  65410. 801a91e: 751a strb r2, [r3, #20]
  65411. }
  65412. break;
  65413. 801a920: e010 b.n 801a944 <tcp_close_shutdown_fin+0x88>
  65414. case CLOSE_WAIT:
  65415. err = tcp_send_fin(pcb);
  65416. 801a922: 6878 ldr r0, [r7, #4]
  65417. 801a924: f004 fe28 bl 801f578 <tcp_send_fin>
  65418. 801a928: 4603 mov r3, r0
  65419. 801a92a: 73fb strb r3, [r7, #15]
  65420. if (err == ERR_OK) {
  65421. 801a92c: f997 300f ldrsb.w r3, [r7, #15]
  65422. 801a930: 2b00 cmp r3, #0
  65423. 801a932: d109 bne.n 801a948 <tcp_close_shutdown_fin+0x8c>
  65424. MIB2_STATS_INC(mib2.tcpestabresets);
  65425. pcb->state = LAST_ACK;
  65426. 801a934: 687b ldr r3, [r7, #4]
  65427. 801a936: 2209 movs r2, #9
  65428. 801a938: 751a strb r2, [r3, #20]
  65429. }
  65430. break;
  65431. 801a93a: e005 b.n 801a948 <tcp_close_shutdown_fin+0x8c>
  65432. default:
  65433. /* Has already been closed, do nothing. */
  65434. return ERR_OK;
  65435. 801a93c: 2300 movs r3, #0
  65436. 801a93e: e01c b.n 801a97a <tcp_close_shutdown_fin+0xbe>
  65437. break;
  65438. 801a940: bf00 nop
  65439. 801a942: e002 b.n 801a94a <tcp_close_shutdown_fin+0x8e>
  65440. break;
  65441. 801a944: bf00 nop
  65442. 801a946: e000 b.n 801a94a <tcp_close_shutdown_fin+0x8e>
  65443. break;
  65444. 801a948: bf00 nop
  65445. }
  65446. if (err == ERR_OK) {
  65447. 801a94a: f997 300f ldrsb.w r3, [r7, #15]
  65448. 801a94e: 2b00 cmp r3, #0
  65449. 801a950: d103 bne.n 801a95a <tcp_close_shutdown_fin+0x9e>
  65450. /* To ensure all data has been sent when tcp_close returns, we have
  65451. to make sure tcp_output doesn't fail.
  65452. Since we don't really have to ensure all data has been sent when tcp_close
  65453. returns (unsent data is sent from tcp timer functions, also), we don't care
  65454. for the return value of tcp_output for now. */
  65455. tcp_output(pcb);
  65456. 801a952: 6878 ldr r0, [r7, #4]
  65457. 801a954: f004 ff4e bl 801f7f4 <tcp_output>
  65458. 801a958: e00d b.n 801a976 <tcp_close_shutdown_fin+0xba>
  65459. } else if (err == ERR_MEM) {
  65460. 801a95a: f997 300f ldrsb.w r3, [r7, #15]
  65461. 801a95e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  65462. 801a962: d108 bne.n 801a976 <tcp_close_shutdown_fin+0xba>
  65463. /* Mark this pcb for closing. Closing is retried from tcp_tmr. */
  65464. tcp_set_flags(pcb, TF_CLOSEPEND);
  65465. 801a964: 687b ldr r3, [r7, #4]
  65466. 801a966: 8b5b ldrh r3, [r3, #26]
  65467. 801a968: f043 0308 orr.w r3, r3, #8
  65468. 801a96c: b29a uxth r2, r3
  65469. 801a96e: 687b ldr r3, [r7, #4]
  65470. 801a970: 835a strh r2, [r3, #26]
  65471. /* We have to return ERR_OK from here to indicate to the callers that this
  65472. pcb should not be used any more as it will be freed soon via tcp_tmr.
  65473. This is OK here since sending FIN does not guarantee a time frime for
  65474. actually freeing the pcb, either (it is left in closure states for
  65475. remote ACK or timeout) */
  65476. return ERR_OK;
  65477. 801a972: 2300 movs r3, #0
  65478. 801a974: e001 b.n 801a97a <tcp_close_shutdown_fin+0xbe>
  65479. }
  65480. return err;
  65481. 801a976: f997 300f ldrsb.w r3, [r7, #15]
  65482. }
  65483. 801a97a: 4618 mov r0, r3
  65484. 801a97c: 3710 adds r7, #16
  65485. 801a97e: 46bd mov sp, r7
  65486. 801a980: bd80 pop {r7, pc}
  65487. 801a982: bf00 nop
  65488. 801a984: 0802e13c .word 0x0802e13c
  65489. 801a988: 0802e1ec .word 0x0802e1ec
  65490. 801a98c: 0802e180 .word 0x0802e180
  65491. 0801a990 <tcp_close>:
  65492. * @return ERR_OK if connection has been closed
  65493. * another err_t if closing failed and pcb is not freed
  65494. */
  65495. err_t
  65496. tcp_close(struct tcp_pcb *pcb)
  65497. {
  65498. 801a990: b580 push {r7, lr}
  65499. 801a992: b082 sub sp, #8
  65500. 801a994: af00 add r7, sp, #0
  65501. 801a996: 6078 str r0, [r7, #4]
  65502. LWIP_ASSERT_CORE_LOCKED();
  65503. 801a998: f7f5 fb6a bl 8010070 <sys_check_core_locking>
  65504. LWIP_ERROR("tcp_close: invalid pcb", pcb != NULL, return ERR_ARG);
  65505. 801a99c: 687b ldr r3, [r7, #4]
  65506. 801a99e: 2b00 cmp r3, #0
  65507. 801a9a0: d109 bne.n 801a9b6 <tcp_close+0x26>
  65508. 801a9a2: 4b0f ldr r3, [pc, #60] @ (801a9e0 <tcp_close+0x50>)
  65509. 801a9a4: f44f 72f4 mov.w r2, #488 @ 0x1e8
  65510. 801a9a8: 490e ldr r1, [pc, #56] @ (801a9e4 <tcp_close+0x54>)
  65511. 801a9aa: 480f ldr r0, [pc, #60] @ (801a9e8 <tcp_close+0x58>)
  65512. 801a9ac: f00e fdae bl 802950c <iprintf>
  65513. 801a9b0: f06f 030f mvn.w r3, #15
  65514. 801a9b4: e00f b.n 801a9d6 <tcp_close+0x46>
  65515. LWIP_DEBUGF(TCP_DEBUG, ("tcp_close: closing in "));
  65516. tcp_debug_print_state(pcb->state);
  65517. if (pcb->state != LISTEN) {
  65518. 801a9b6: 687b ldr r3, [r7, #4]
  65519. 801a9b8: 7d1b ldrb r3, [r3, #20]
  65520. 801a9ba: 2b01 cmp r3, #1
  65521. 801a9bc: d006 beq.n 801a9cc <tcp_close+0x3c>
  65522. /* Set a flag not to receive any more data... */
  65523. tcp_set_flags(pcb, TF_RXCLOSED);
  65524. 801a9be: 687b ldr r3, [r7, #4]
  65525. 801a9c0: 8b5b ldrh r3, [r3, #26]
  65526. 801a9c2: f043 0310 orr.w r3, r3, #16
  65527. 801a9c6: b29a uxth r2, r3
  65528. 801a9c8: 687b ldr r3, [r7, #4]
  65529. 801a9ca: 835a strh r2, [r3, #26]
  65530. }
  65531. /* ... and close */
  65532. return tcp_close_shutdown(pcb, 1);
  65533. 801a9cc: 2101 movs r1, #1
  65534. 801a9ce: 6878 ldr r0, [r7, #4]
  65535. 801a9d0: f7ff fe92 bl 801a6f8 <tcp_close_shutdown>
  65536. 801a9d4: 4603 mov r3, r0
  65537. }
  65538. 801a9d6: 4618 mov r0, r3
  65539. 801a9d8: 3708 adds r7, #8
  65540. 801a9da: 46bd mov sp, r7
  65541. 801a9dc: bd80 pop {r7, pc}
  65542. 801a9de: bf00 nop
  65543. 801a9e0: 0802e13c .word 0x0802e13c
  65544. 801a9e4: 0802e24c .word 0x0802e24c
  65545. 801a9e8: 0802e180 .word 0x0802e180
  65546. 0801a9ec <tcp_shutdown>:
  65547. * @return ERR_OK if shutdown succeeded (or the PCB has already been shut down)
  65548. * another err_t on error.
  65549. */
  65550. err_t
  65551. tcp_shutdown(struct tcp_pcb *pcb, int shut_rx, int shut_tx)
  65552. {
  65553. 801a9ec: b580 push {r7, lr}
  65554. 801a9ee: b084 sub sp, #16
  65555. 801a9f0: af00 add r7, sp, #0
  65556. 801a9f2: 60f8 str r0, [r7, #12]
  65557. 801a9f4: 60b9 str r1, [r7, #8]
  65558. 801a9f6: 607a str r2, [r7, #4]
  65559. LWIP_ASSERT_CORE_LOCKED();
  65560. 801a9f8: f7f5 fb3a bl 8010070 <sys_check_core_locking>
  65561. LWIP_ERROR("tcp_shutdown: invalid pcb", pcb != NULL, return ERR_ARG);
  65562. 801a9fc: 68fb ldr r3, [r7, #12]
  65563. 801a9fe: 2b00 cmp r3, #0
  65564. 801aa00: d109 bne.n 801aa16 <tcp_shutdown+0x2a>
  65565. 801aa02: 4b26 ldr r3, [pc, #152] @ (801aa9c <tcp_shutdown+0xb0>)
  65566. 801aa04: f240 2207 movw r2, #519 @ 0x207
  65567. 801aa08: 4925 ldr r1, [pc, #148] @ (801aaa0 <tcp_shutdown+0xb4>)
  65568. 801aa0a: 4826 ldr r0, [pc, #152] @ (801aaa4 <tcp_shutdown+0xb8>)
  65569. 801aa0c: f00e fd7e bl 802950c <iprintf>
  65570. 801aa10: f06f 030f mvn.w r3, #15
  65571. 801aa14: e03d b.n 801aa92 <tcp_shutdown+0xa6>
  65572. if (pcb->state == LISTEN) {
  65573. 801aa16: 68fb ldr r3, [r7, #12]
  65574. 801aa18: 7d1b ldrb r3, [r3, #20]
  65575. 801aa1a: 2b01 cmp r3, #1
  65576. 801aa1c: d102 bne.n 801aa24 <tcp_shutdown+0x38>
  65577. return ERR_CONN;
  65578. 801aa1e: f06f 030a mvn.w r3, #10
  65579. 801aa22: e036 b.n 801aa92 <tcp_shutdown+0xa6>
  65580. }
  65581. if (shut_rx) {
  65582. 801aa24: 68bb ldr r3, [r7, #8]
  65583. 801aa26: 2b00 cmp r3, #0
  65584. 801aa28: d01b beq.n 801aa62 <tcp_shutdown+0x76>
  65585. /* shut down the receive side: set a flag not to receive any more data... */
  65586. tcp_set_flags(pcb, TF_RXCLOSED);
  65587. 801aa2a: 68fb ldr r3, [r7, #12]
  65588. 801aa2c: 8b5b ldrh r3, [r3, #26]
  65589. 801aa2e: f043 0310 orr.w r3, r3, #16
  65590. 801aa32: b29a uxth r2, r3
  65591. 801aa34: 68fb ldr r3, [r7, #12]
  65592. 801aa36: 835a strh r2, [r3, #26]
  65593. if (shut_tx) {
  65594. 801aa38: 687b ldr r3, [r7, #4]
  65595. 801aa3a: 2b00 cmp r3, #0
  65596. 801aa3c: d005 beq.n 801aa4a <tcp_shutdown+0x5e>
  65597. /* shutting down the tx AND rx side is the same as closing for the raw API */
  65598. return tcp_close_shutdown(pcb, 1);
  65599. 801aa3e: 2101 movs r1, #1
  65600. 801aa40: 68f8 ldr r0, [r7, #12]
  65601. 801aa42: f7ff fe59 bl 801a6f8 <tcp_close_shutdown>
  65602. 801aa46: 4603 mov r3, r0
  65603. 801aa48: e023 b.n 801aa92 <tcp_shutdown+0xa6>
  65604. }
  65605. /* ... and free buffered data */
  65606. if (pcb->refused_data != NULL) {
  65607. 801aa4a: 68fb ldr r3, [r7, #12]
  65608. 801aa4c: 6f9b ldr r3, [r3, #120] @ 0x78
  65609. 801aa4e: 2b00 cmp r3, #0
  65610. 801aa50: d007 beq.n 801aa62 <tcp_shutdown+0x76>
  65611. pbuf_free(pcb->refused_data);
  65612. 801aa52: 68fb ldr r3, [r7, #12]
  65613. 801aa54: 6f9b ldr r3, [r3, #120] @ 0x78
  65614. 801aa56: 4618 mov r0, r3
  65615. 801aa58: f7ff fae0 bl 801a01c <pbuf_free>
  65616. pcb->refused_data = NULL;
  65617. 801aa5c: 68fb ldr r3, [r7, #12]
  65618. 801aa5e: 2200 movs r2, #0
  65619. 801aa60: 679a str r2, [r3, #120] @ 0x78
  65620. }
  65621. }
  65622. if (shut_tx) {
  65623. 801aa62: 687b ldr r3, [r7, #4]
  65624. 801aa64: 2b00 cmp r3, #0
  65625. 801aa66: d013 beq.n 801aa90 <tcp_shutdown+0xa4>
  65626. /* This can't happen twice since if it succeeds, the pcb's state is changed.
  65627. Only close in these states as the others directly deallocate the PCB */
  65628. switch (pcb->state) {
  65629. 801aa68: 68fb ldr r3, [r7, #12]
  65630. 801aa6a: 7d1b ldrb r3, [r3, #20]
  65631. 801aa6c: 2b04 cmp r3, #4
  65632. 801aa6e: dc02 bgt.n 801aa76 <tcp_shutdown+0x8a>
  65633. 801aa70: 2b03 cmp r3, #3
  65634. 801aa72: da02 bge.n 801aa7a <tcp_shutdown+0x8e>
  65635. 801aa74: e009 b.n 801aa8a <tcp_shutdown+0x9e>
  65636. 801aa76: 2b07 cmp r3, #7
  65637. 801aa78: d107 bne.n 801aa8a <tcp_shutdown+0x9e>
  65638. case SYN_RCVD:
  65639. case ESTABLISHED:
  65640. case CLOSE_WAIT:
  65641. return tcp_close_shutdown(pcb, (u8_t)shut_rx);
  65642. 801aa7a: 68bb ldr r3, [r7, #8]
  65643. 801aa7c: b2db uxtb r3, r3
  65644. 801aa7e: 4619 mov r1, r3
  65645. 801aa80: 68f8 ldr r0, [r7, #12]
  65646. 801aa82: f7ff fe39 bl 801a6f8 <tcp_close_shutdown>
  65647. 801aa86: 4603 mov r3, r0
  65648. 801aa88: e003 b.n 801aa92 <tcp_shutdown+0xa6>
  65649. default:
  65650. /* Not (yet?) connected, cannot shutdown the TX side as that would bring us
  65651. into CLOSED state, where the PCB is deallocated. */
  65652. return ERR_CONN;
  65653. 801aa8a: f06f 030a mvn.w r3, #10
  65654. 801aa8e: e000 b.n 801aa92 <tcp_shutdown+0xa6>
  65655. }
  65656. }
  65657. return ERR_OK;
  65658. 801aa90: 2300 movs r3, #0
  65659. }
  65660. 801aa92: 4618 mov r0, r3
  65661. 801aa94: 3710 adds r7, #16
  65662. 801aa96: 46bd mov sp, r7
  65663. 801aa98: bd80 pop {r7, pc}
  65664. 801aa9a: bf00 nop
  65665. 801aa9c: 0802e13c .word 0x0802e13c
  65666. 801aaa0: 0802e264 .word 0x0802e264
  65667. 801aaa4: 0802e180 .word 0x0802e180
  65668. 0801aaa8 <tcp_abandon>:
  65669. * @param pcb the tcp_pcb to abort
  65670. * @param reset boolean to indicate whether a reset should be sent
  65671. */
  65672. void
  65673. tcp_abandon(struct tcp_pcb *pcb, int reset)
  65674. {
  65675. 801aaa8: b580 push {r7, lr}
  65676. 801aaaa: b08e sub sp, #56 @ 0x38
  65677. 801aaac: af04 add r7, sp, #16
  65678. 801aaae: 6078 str r0, [r7, #4]
  65679. 801aab0: 6039 str r1, [r7, #0]
  65680. #if LWIP_CALLBACK_API
  65681. tcp_err_fn errf;
  65682. #endif /* LWIP_CALLBACK_API */
  65683. void *errf_arg;
  65684. LWIP_ASSERT_CORE_LOCKED();
  65685. 801aab2: f7f5 fadd bl 8010070 <sys_check_core_locking>
  65686. LWIP_ERROR("tcp_abandon: invalid pcb", pcb != NULL, return);
  65687. 801aab6: 687b ldr r3, [r7, #4]
  65688. 801aab8: 2b00 cmp r3, #0
  65689. 801aaba: d107 bne.n 801aacc <tcp_abandon+0x24>
  65690. 801aabc: 4b52 ldr r3, [pc, #328] @ (801ac08 <tcp_abandon+0x160>)
  65691. 801aabe: f240 223d movw r2, #573 @ 0x23d
  65692. 801aac2: 4952 ldr r1, [pc, #328] @ (801ac0c <tcp_abandon+0x164>)
  65693. 801aac4: 4852 ldr r0, [pc, #328] @ (801ac10 <tcp_abandon+0x168>)
  65694. 801aac6: f00e fd21 bl 802950c <iprintf>
  65695. 801aaca: e099 b.n 801ac00 <tcp_abandon+0x158>
  65696. /* pcb->state LISTEN not allowed here */
  65697. LWIP_ASSERT("don't call tcp_abort/tcp_abandon for listen-pcbs",
  65698. 801aacc: 687b ldr r3, [r7, #4]
  65699. 801aace: 7d1b ldrb r3, [r3, #20]
  65700. 801aad0: 2b01 cmp r3, #1
  65701. 801aad2: d106 bne.n 801aae2 <tcp_abandon+0x3a>
  65702. 801aad4: 4b4c ldr r3, [pc, #304] @ (801ac08 <tcp_abandon+0x160>)
  65703. 801aad6: f44f 7210 mov.w r2, #576 @ 0x240
  65704. 801aada: 494e ldr r1, [pc, #312] @ (801ac14 <tcp_abandon+0x16c>)
  65705. 801aadc: 484c ldr r0, [pc, #304] @ (801ac10 <tcp_abandon+0x168>)
  65706. 801aade: f00e fd15 bl 802950c <iprintf>
  65707. pcb->state != LISTEN);
  65708. /* Figure out on which TCP PCB list we are, and remove us. If we
  65709. are in an active state, call the receive function associated with
  65710. the PCB with a NULL argument, and send an RST to the remote end. */
  65711. if (pcb->state == TIME_WAIT) {
  65712. 801aae2: 687b ldr r3, [r7, #4]
  65713. 801aae4: 7d1b ldrb r3, [r3, #20]
  65714. 801aae6: 2b0a cmp r3, #10
  65715. 801aae8: d107 bne.n 801aafa <tcp_abandon+0x52>
  65716. tcp_pcb_remove(&tcp_tw_pcbs, pcb);
  65717. 801aaea: 6879 ldr r1, [r7, #4]
  65718. 801aaec: 484a ldr r0, [pc, #296] @ (801ac18 <tcp_abandon+0x170>)
  65719. 801aaee: f001 fa03 bl 801bef8 <tcp_pcb_remove>
  65720. tcp_free(pcb);
  65721. 801aaf2: 6878 ldr r0, [r7, #4]
  65722. 801aaf4: f7ff fd4e bl 801a594 <tcp_free>
  65723. 801aaf8: e082 b.n 801ac00 <tcp_abandon+0x158>
  65724. } else {
  65725. int send_rst = 0;
  65726. 801aafa: 2300 movs r3, #0
  65727. 801aafc: 627b str r3, [r7, #36] @ 0x24
  65728. u16_t local_port = 0;
  65729. 801aafe: 2300 movs r3, #0
  65730. 801ab00: 847b strh r3, [r7, #34] @ 0x22
  65731. enum tcp_state last_state;
  65732. seqno = pcb->snd_nxt;
  65733. 801ab02: 687b ldr r3, [r7, #4]
  65734. 801ab04: 6d1b ldr r3, [r3, #80] @ 0x50
  65735. 801ab06: 61bb str r3, [r7, #24]
  65736. ackno = pcb->rcv_nxt;
  65737. 801ab08: 687b ldr r3, [r7, #4]
  65738. 801ab0a: 6a5b ldr r3, [r3, #36] @ 0x24
  65739. 801ab0c: 617b str r3, [r7, #20]
  65740. #if LWIP_CALLBACK_API
  65741. errf = pcb->errf;
  65742. 801ab0e: 687b ldr r3, [r7, #4]
  65743. 801ab10: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  65744. 801ab14: 613b str r3, [r7, #16]
  65745. #endif /* LWIP_CALLBACK_API */
  65746. errf_arg = pcb->callback_arg;
  65747. 801ab16: 687b ldr r3, [r7, #4]
  65748. 801ab18: 691b ldr r3, [r3, #16]
  65749. 801ab1a: 60fb str r3, [r7, #12]
  65750. if (pcb->state == CLOSED) {
  65751. 801ab1c: 687b ldr r3, [r7, #4]
  65752. 801ab1e: 7d1b ldrb r3, [r3, #20]
  65753. 801ab20: 2b00 cmp r3, #0
  65754. 801ab22: d126 bne.n 801ab72 <tcp_abandon+0xca>
  65755. if (pcb->local_port != 0) {
  65756. 801ab24: 687b ldr r3, [r7, #4]
  65757. 801ab26: 8adb ldrh r3, [r3, #22]
  65758. 801ab28: 2b00 cmp r3, #0
  65759. 801ab2a: d02e beq.n 801ab8a <tcp_abandon+0xe2>
  65760. /* bound, not yet opened */
  65761. TCP_RMV(&tcp_bound_pcbs, pcb);
  65762. 801ab2c: 4b3b ldr r3, [pc, #236] @ (801ac1c <tcp_abandon+0x174>)
  65763. 801ab2e: 681b ldr r3, [r3, #0]
  65764. 801ab30: 687a ldr r2, [r7, #4]
  65765. 801ab32: 429a cmp r2, r3
  65766. 801ab34: d105 bne.n 801ab42 <tcp_abandon+0x9a>
  65767. 801ab36: 4b39 ldr r3, [pc, #228] @ (801ac1c <tcp_abandon+0x174>)
  65768. 801ab38: 681b ldr r3, [r3, #0]
  65769. 801ab3a: 68db ldr r3, [r3, #12]
  65770. 801ab3c: 4a37 ldr r2, [pc, #220] @ (801ac1c <tcp_abandon+0x174>)
  65771. 801ab3e: 6013 str r3, [r2, #0]
  65772. 801ab40: e013 b.n 801ab6a <tcp_abandon+0xc2>
  65773. 801ab42: 4b36 ldr r3, [pc, #216] @ (801ac1c <tcp_abandon+0x174>)
  65774. 801ab44: 681b ldr r3, [r3, #0]
  65775. 801ab46: 61fb str r3, [r7, #28]
  65776. 801ab48: e00c b.n 801ab64 <tcp_abandon+0xbc>
  65777. 801ab4a: 69fb ldr r3, [r7, #28]
  65778. 801ab4c: 68db ldr r3, [r3, #12]
  65779. 801ab4e: 687a ldr r2, [r7, #4]
  65780. 801ab50: 429a cmp r2, r3
  65781. 801ab52: d104 bne.n 801ab5e <tcp_abandon+0xb6>
  65782. 801ab54: 687b ldr r3, [r7, #4]
  65783. 801ab56: 68da ldr r2, [r3, #12]
  65784. 801ab58: 69fb ldr r3, [r7, #28]
  65785. 801ab5a: 60da str r2, [r3, #12]
  65786. 801ab5c: e005 b.n 801ab6a <tcp_abandon+0xc2>
  65787. 801ab5e: 69fb ldr r3, [r7, #28]
  65788. 801ab60: 68db ldr r3, [r3, #12]
  65789. 801ab62: 61fb str r3, [r7, #28]
  65790. 801ab64: 69fb ldr r3, [r7, #28]
  65791. 801ab66: 2b00 cmp r3, #0
  65792. 801ab68: d1ef bne.n 801ab4a <tcp_abandon+0xa2>
  65793. 801ab6a: 687b ldr r3, [r7, #4]
  65794. 801ab6c: 2200 movs r2, #0
  65795. 801ab6e: 60da str r2, [r3, #12]
  65796. 801ab70: e00b b.n 801ab8a <tcp_abandon+0xe2>
  65797. }
  65798. } else {
  65799. send_rst = reset;
  65800. 801ab72: 683b ldr r3, [r7, #0]
  65801. 801ab74: 627b str r3, [r7, #36] @ 0x24
  65802. local_port = pcb->local_port;
  65803. 801ab76: 687b ldr r3, [r7, #4]
  65804. 801ab78: 8adb ldrh r3, [r3, #22]
  65805. 801ab7a: 847b strh r3, [r7, #34] @ 0x22
  65806. TCP_PCB_REMOVE_ACTIVE(pcb);
  65807. 801ab7c: 6879 ldr r1, [r7, #4]
  65808. 801ab7e: 4828 ldr r0, [pc, #160] @ (801ac20 <tcp_abandon+0x178>)
  65809. 801ab80: f001 f9ba bl 801bef8 <tcp_pcb_remove>
  65810. 801ab84: 4b27 ldr r3, [pc, #156] @ (801ac24 <tcp_abandon+0x17c>)
  65811. 801ab86: 2201 movs r2, #1
  65812. 801ab88: 701a strb r2, [r3, #0]
  65813. }
  65814. if (pcb->unacked != NULL) {
  65815. 801ab8a: 687b ldr r3, [r7, #4]
  65816. 801ab8c: 6f1b ldr r3, [r3, #112] @ 0x70
  65817. 801ab8e: 2b00 cmp r3, #0
  65818. 801ab90: d004 beq.n 801ab9c <tcp_abandon+0xf4>
  65819. tcp_segs_free(pcb->unacked);
  65820. 801ab92: 687b ldr r3, [r7, #4]
  65821. 801ab94: 6f1b ldr r3, [r3, #112] @ 0x70
  65822. 801ab96: 4618 mov r0, r3
  65823. 801ab98: f000 fe84 bl 801b8a4 <tcp_segs_free>
  65824. }
  65825. if (pcb->unsent != NULL) {
  65826. 801ab9c: 687b ldr r3, [r7, #4]
  65827. 801ab9e: 6edb ldr r3, [r3, #108] @ 0x6c
  65828. 801aba0: 2b00 cmp r3, #0
  65829. 801aba2: d004 beq.n 801abae <tcp_abandon+0x106>
  65830. tcp_segs_free(pcb->unsent);
  65831. 801aba4: 687b ldr r3, [r7, #4]
  65832. 801aba6: 6edb ldr r3, [r3, #108] @ 0x6c
  65833. 801aba8: 4618 mov r0, r3
  65834. 801abaa: f000 fe7b bl 801b8a4 <tcp_segs_free>
  65835. }
  65836. #if TCP_QUEUE_OOSEQ
  65837. if (pcb->ooseq != NULL) {
  65838. 801abae: 687b ldr r3, [r7, #4]
  65839. 801abb0: 6f5b ldr r3, [r3, #116] @ 0x74
  65840. 801abb2: 2b00 cmp r3, #0
  65841. 801abb4: d004 beq.n 801abc0 <tcp_abandon+0x118>
  65842. tcp_segs_free(pcb->ooseq);
  65843. 801abb6: 687b ldr r3, [r7, #4]
  65844. 801abb8: 6f5b ldr r3, [r3, #116] @ 0x74
  65845. 801abba: 4618 mov r0, r3
  65846. 801abbc: f000 fe72 bl 801b8a4 <tcp_segs_free>
  65847. }
  65848. #endif /* TCP_QUEUE_OOSEQ */
  65849. tcp_backlog_accepted(pcb);
  65850. if (send_rst) {
  65851. 801abc0: 6a7b ldr r3, [r7, #36] @ 0x24
  65852. 801abc2: 2b00 cmp r3, #0
  65853. 801abc4: d00e beq.n 801abe4 <tcp_abandon+0x13c>
  65854. LWIP_DEBUGF(TCP_RST_DEBUG, ("tcp_abandon: sending RST\n"));
  65855. tcp_rst(pcb, seqno, ackno, &pcb->local_ip, &pcb->remote_ip, local_port, pcb->remote_port);
  65856. 801abc6: 6879 ldr r1, [r7, #4]
  65857. 801abc8: 687b ldr r3, [r7, #4]
  65858. 801abca: 3304 adds r3, #4
  65859. 801abcc: 687a ldr r2, [r7, #4]
  65860. 801abce: 8b12 ldrh r2, [r2, #24]
  65861. 801abd0: 9202 str r2, [sp, #8]
  65862. 801abd2: 8c7a ldrh r2, [r7, #34] @ 0x22
  65863. 801abd4: 9201 str r2, [sp, #4]
  65864. 801abd6: 9300 str r3, [sp, #0]
  65865. 801abd8: 460b mov r3, r1
  65866. 801abda: 697a ldr r2, [r7, #20]
  65867. 801abdc: 69b9 ldr r1, [r7, #24]
  65868. 801abde: 6878 ldr r0, [r7, #4]
  65869. 801abe0: f005 fbca bl 8020378 <tcp_rst>
  65870. }
  65871. last_state = pcb->state;
  65872. 801abe4: 687b ldr r3, [r7, #4]
  65873. 801abe6: 7d1b ldrb r3, [r3, #20]
  65874. 801abe8: 72fb strb r3, [r7, #11]
  65875. tcp_free(pcb);
  65876. 801abea: 6878 ldr r0, [r7, #4]
  65877. 801abec: f7ff fcd2 bl 801a594 <tcp_free>
  65878. TCP_EVENT_ERR(last_state, errf, errf_arg, ERR_ABRT);
  65879. 801abf0: 693b ldr r3, [r7, #16]
  65880. 801abf2: 2b00 cmp r3, #0
  65881. 801abf4: d004 beq.n 801ac00 <tcp_abandon+0x158>
  65882. 801abf6: 693b ldr r3, [r7, #16]
  65883. 801abf8: f06f 010c mvn.w r1, #12
  65884. 801abfc: 68f8 ldr r0, [r7, #12]
  65885. 801abfe: 4798 blx r3
  65886. }
  65887. }
  65888. 801ac00: 3728 adds r7, #40 @ 0x28
  65889. 801ac02: 46bd mov sp, r7
  65890. 801ac04: bd80 pop {r7, pc}
  65891. 801ac06: bf00 nop
  65892. 801ac08: 0802e13c .word 0x0802e13c
  65893. 801ac0c: 0802e280 .word 0x0802e280
  65894. 801ac10: 0802e180 .word 0x0802e180
  65895. 801ac14: 0802e29c .word 0x0802e29c
  65896. 801ac18: 24029ffc .word 0x24029ffc
  65897. 801ac1c: 24029ff0 .word 0x24029ff0
  65898. 801ac20: 24029ff8 .word 0x24029ff8
  65899. 801ac24: 2402a000 .word 0x2402a000
  65900. 0801ac28 <tcp_abort>:
  65901. *
  65902. * @param pcb the tcp pcb to abort
  65903. */
  65904. void
  65905. tcp_abort(struct tcp_pcb *pcb)
  65906. {
  65907. 801ac28: b580 push {r7, lr}
  65908. 801ac2a: b082 sub sp, #8
  65909. 801ac2c: af00 add r7, sp, #0
  65910. 801ac2e: 6078 str r0, [r7, #4]
  65911. tcp_abandon(pcb, 1);
  65912. 801ac30: 2101 movs r1, #1
  65913. 801ac32: 6878 ldr r0, [r7, #4]
  65914. 801ac34: f7ff ff38 bl 801aaa8 <tcp_abandon>
  65915. }
  65916. 801ac38: bf00 nop
  65917. 801ac3a: 3708 adds r7, #8
  65918. 801ac3c: 46bd mov sp, r7
  65919. 801ac3e: bd80 pop {r7, pc}
  65920. 0801ac40 <tcp_update_rcv_ann_wnd>:
  65921. * Returns how much extra window would be advertised if we sent an
  65922. * update now.
  65923. */
  65924. u32_t
  65925. tcp_update_rcv_ann_wnd(struct tcp_pcb *pcb)
  65926. {
  65927. 801ac40: b580 push {r7, lr}
  65928. 801ac42: b084 sub sp, #16
  65929. 801ac44: af00 add r7, sp, #0
  65930. 801ac46: 6078 str r0, [r7, #4]
  65931. u32_t new_right_edge;
  65932. LWIP_ASSERT("tcp_update_rcv_ann_wnd: invalid pcb", pcb != NULL);
  65933. 801ac48: 687b ldr r3, [r7, #4]
  65934. 801ac4a: 2b00 cmp r3, #0
  65935. 801ac4c: d106 bne.n 801ac5c <tcp_update_rcv_ann_wnd+0x1c>
  65936. 801ac4e: 4b25 ldr r3, [pc, #148] @ (801ace4 <tcp_update_rcv_ann_wnd+0xa4>)
  65937. 801ac50: f240 32a6 movw r2, #934 @ 0x3a6
  65938. 801ac54: 4924 ldr r1, [pc, #144] @ (801ace8 <tcp_update_rcv_ann_wnd+0xa8>)
  65939. 801ac56: 4825 ldr r0, [pc, #148] @ (801acec <tcp_update_rcv_ann_wnd+0xac>)
  65940. 801ac58: f00e fc58 bl 802950c <iprintf>
  65941. new_right_edge = pcb->rcv_nxt + pcb->rcv_wnd;
  65942. 801ac5c: 687b ldr r3, [r7, #4]
  65943. 801ac5e: 6a5b ldr r3, [r3, #36] @ 0x24
  65944. 801ac60: 687a ldr r2, [r7, #4]
  65945. 801ac62: 8d12 ldrh r2, [r2, #40] @ 0x28
  65946. 801ac64: 4413 add r3, r2
  65947. 801ac66: 60fb str r3, [r7, #12]
  65948. if (TCP_SEQ_GEQ(new_right_edge, pcb->rcv_ann_right_edge + LWIP_MIN((TCP_WND / 2), pcb->mss))) {
  65949. 801ac68: 687b ldr r3, [r7, #4]
  65950. 801ac6a: 6adb ldr r3, [r3, #44] @ 0x2c
  65951. 801ac6c: 687a ldr r2, [r7, #4]
  65952. 801ac6e: 8e52 ldrh r2, [r2, #50] @ 0x32
  65953. 801ac70: f640 3168 movw r1, #2920 @ 0xb68
  65954. 801ac74: 428a cmp r2, r1
  65955. 801ac76: bf28 it cs
  65956. 801ac78: 460a movcs r2, r1
  65957. 801ac7a: b292 uxth r2, r2
  65958. 801ac7c: 4413 add r3, r2
  65959. 801ac7e: 68fa ldr r2, [r7, #12]
  65960. 801ac80: 1ad3 subs r3, r2, r3
  65961. 801ac82: 2b00 cmp r3, #0
  65962. 801ac84: db08 blt.n 801ac98 <tcp_update_rcv_ann_wnd+0x58>
  65963. /* we can advertise more window */
  65964. pcb->rcv_ann_wnd = pcb->rcv_wnd;
  65965. 801ac86: 687b ldr r3, [r7, #4]
  65966. 801ac88: 8d1a ldrh r2, [r3, #40] @ 0x28
  65967. 801ac8a: 687b ldr r3, [r7, #4]
  65968. 801ac8c: 855a strh r2, [r3, #42] @ 0x2a
  65969. return new_right_edge - pcb->rcv_ann_right_edge;
  65970. 801ac8e: 687b ldr r3, [r7, #4]
  65971. 801ac90: 6adb ldr r3, [r3, #44] @ 0x2c
  65972. 801ac92: 68fa ldr r2, [r7, #12]
  65973. 801ac94: 1ad3 subs r3, r2, r3
  65974. 801ac96: e020 b.n 801acda <tcp_update_rcv_ann_wnd+0x9a>
  65975. } else {
  65976. if (TCP_SEQ_GT(pcb->rcv_nxt, pcb->rcv_ann_right_edge)) {
  65977. 801ac98: 687b ldr r3, [r7, #4]
  65978. 801ac9a: 6a5a ldr r2, [r3, #36] @ 0x24
  65979. 801ac9c: 687b ldr r3, [r7, #4]
  65980. 801ac9e: 6adb ldr r3, [r3, #44] @ 0x2c
  65981. 801aca0: 1ad3 subs r3, r2, r3
  65982. 801aca2: 2b00 cmp r3, #0
  65983. 801aca4: dd03 ble.n 801acae <tcp_update_rcv_ann_wnd+0x6e>
  65984. /* Can happen due to other end sending out of advertised window,
  65985. * but within actual available (but not yet advertised) window */
  65986. pcb->rcv_ann_wnd = 0;
  65987. 801aca6: 687b ldr r3, [r7, #4]
  65988. 801aca8: 2200 movs r2, #0
  65989. 801acaa: 855a strh r2, [r3, #42] @ 0x2a
  65990. 801acac: e014 b.n 801acd8 <tcp_update_rcv_ann_wnd+0x98>
  65991. } else {
  65992. /* keep the right edge of window constant */
  65993. u32_t new_rcv_ann_wnd = pcb->rcv_ann_right_edge - pcb->rcv_nxt;
  65994. 801acae: 687b ldr r3, [r7, #4]
  65995. 801acb0: 6ada ldr r2, [r3, #44] @ 0x2c
  65996. 801acb2: 687b ldr r3, [r7, #4]
  65997. 801acb4: 6a5b ldr r3, [r3, #36] @ 0x24
  65998. 801acb6: 1ad3 subs r3, r2, r3
  65999. 801acb8: 60bb str r3, [r7, #8]
  66000. #if !LWIP_WND_SCALE
  66001. LWIP_ASSERT("new_rcv_ann_wnd <= 0xffff", new_rcv_ann_wnd <= 0xffff);
  66002. 801acba: 68bb ldr r3, [r7, #8]
  66003. 801acbc: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  66004. 801acc0: d306 bcc.n 801acd0 <tcp_update_rcv_ann_wnd+0x90>
  66005. 801acc2: 4b08 ldr r3, [pc, #32] @ (801ace4 <tcp_update_rcv_ann_wnd+0xa4>)
  66006. 801acc4: f240 32b6 movw r2, #950 @ 0x3b6
  66007. 801acc8: 4909 ldr r1, [pc, #36] @ (801acf0 <tcp_update_rcv_ann_wnd+0xb0>)
  66008. 801acca: 4808 ldr r0, [pc, #32] @ (801acec <tcp_update_rcv_ann_wnd+0xac>)
  66009. 801accc: f00e fc1e bl 802950c <iprintf>
  66010. #endif
  66011. pcb->rcv_ann_wnd = (tcpwnd_size_t)new_rcv_ann_wnd;
  66012. 801acd0: 68bb ldr r3, [r7, #8]
  66013. 801acd2: b29a uxth r2, r3
  66014. 801acd4: 687b ldr r3, [r7, #4]
  66015. 801acd6: 855a strh r2, [r3, #42] @ 0x2a
  66016. }
  66017. return 0;
  66018. 801acd8: 2300 movs r3, #0
  66019. }
  66020. }
  66021. 801acda: 4618 mov r0, r3
  66022. 801acdc: 3710 adds r7, #16
  66023. 801acde: 46bd mov sp, r7
  66024. 801ace0: bd80 pop {r7, pc}
  66025. 801ace2: bf00 nop
  66026. 801ace4: 0802e13c .word 0x0802e13c
  66027. 801ace8: 0802e398 .word 0x0802e398
  66028. 801acec: 0802e180 .word 0x0802e180
  66029. 801acf0: 0802e3bc .word 0x0802e3bc
  66030. 0801acf4 <tcp_recved>:
  66031. * @param pcb the tcp_pcb for which data is read
  66032. * @param len the amount of bytes that have been read by the application
  66033. */
  66034. void
  66035. tcp_recved(struct tcp_pcb *pcb, u16_t len)
  66036. {
  66037. 801acf4: b580 push {r7, lr}
  66038. 801acf6: b084 sub sp, #16
  66039. 801acf8: af00 add r7, sp, #0
  66040. 801acfa: 6078 str r0, [r7, #4]
  66041. 801acfc: 460b mov r3, r1
  66042. 801acfe: 807b strh r3, [r7, #2]
  66043. u32_t wnd_inflation;
  66044. tcpwnd_size_t rcv_wnd;
  66045. LWIP_ASSERT_CORE_LOCKED();
  66046. 801ad00: f7f5 f9b6 bl 8010070 <sys_check_core_locking>
  66047. LWIP_ERROR("tcp_recved: invalid pcb", pcb != NULL, return);
  66048. 801ad04: 687b ldr r3, [r7, #4]
  66049. 801ad06: 2b00 cmp r3, #0
  66050. 801ad08: d107 bne.n 801ad1a <tcp_recved+0x26>
  66051. 801ad0a: 4b20 ldr r3, [pc, #128] @ (801ad8c <tcp_recved+0x98>)
  66052. 801ad0c: f240 32cf movw r2, #975 @ 0x3cf
  66053. 801ad10: 491f ldr r1, [pc, #124] @ (801ad90 <tcp_recved+0x9c>)
  66054. 801ad12: 4820 ldr r0, [pc, #128] @ (801ad94 <tcp_recved+0xa0>)
  66055. 801ad14: f00e fbfa bl 802950c <iprintf>
  66056. 801ad18: e034 b.n 801ad84 <tcp_recved+0x90>
  66057. /* pcb->state LISTEN not allowed here */
  66058. LWIP_ASSERT("don't call tcp_recved for listen-pcbs",
  66059. 801ad1a: 687b ldr r3, [r7, #4]
  66060. 801ad1c: 7d1b ldrb r3, [r3, #20]
  66061. 801ad1e: 2b01 cmp r3, #1
  66062. 801ad20: d106 bne.n 801ad30 <tcp_recved+0x3c>
  66063. 801ad22: 4b1a ldr r3, [pc, #104] @ (801ad8c <tcp_recved+0x98>)
  66064. 801ad24: f240 32d2 movw r2, #978 @ 0x3d2
  66065. 801ad28: 491b ldr r1, [pc, #108] @ (801ad98 <tcp_recved+0xa4>)
  66066. 801ad2a: 481a ldr r0, [pc, #104] @ (801ad94 <tcp_recved+0xa0>)
  66067. 801ad2c: f00e fbee bl 802950c <iprintf>
  66068. pcb->state != LISTEN);
  66069. rcv_wnd = (tcpwnd_size_t)(pcb->rcv_wnd + len);
  66070. 801ad30: 687b ldr r3, [r7, #4]
  66071. 801ad32: 8d1a ldrh r2, [r3, #40] @ 0x28
  66072. 801ad34: 887b ldrh r3, [r7, #2]
  66073. 801ad36: 4413 add r3, r2
  66074. 801ad38: 81fb strh r3, [r7, #14]
  66075. if ((rcv_wnd > TCP_WND_MAX(pcb)) || (rcv_wnd < pcb->rcv_wnd)) {
  66076. 801ad3a: 89fb ldrh r3, [r7, #14]
  66077. 801ad3c: f241 62d0 movw r2, #5840 @ 0x16d0
  66078. 801ad40: 4293 cmp r3, r2
  66079. 801ad42: d804 bhi.n 801ad4e <tcp_recved+0x5a>
  66080. 801ad44: 687b ldr r3, [r7, #4]
  66081. 801ad46: 8d1b ldrh r3, [r3, #40] @ 0x28
  66082. 801ad48: 89fa ldrh r2, [r7, #14]
  66083. 801ad4a: 429a cmp r2, r3
  66084. 801ad4c: d204 bcs.n 801ad58 <tcp_recved+0x64>
  66085. /* window got too big or tcpwnd_size_t overflow */
  66086. LWIP_DEBUGF(TCP_DEBUG, ("tcp_recved: window got too big or tcpwnd_size_t overflow\n"));
  66087. pcb->rcv_wnd = TCP_WND_MAX(pcb);
  66088. 801ad4e: 687b ldr r3, [r7, #4]
  66089. 801ad50: f241 62d0 movw r2, #5840 @ 0x16d0
  66090. 801ad54: 851a strh r2, [r3, #40] @ 0x28
  66091. 801ad56: e002 b.n 801ad5e <tcp_recved+0x6a>
  66092. } else {
  66093. pcb->rcv_wnd = rcv_wnd;
  66094. 801ad58: 687b ldr r3, [r7, #4]
  66095. 801ad5a: 89fa ldrh r2, [r7, #14]
  66096. 801ad5c: 851a strh r2, [r3, #40] @ 0x28
  66097. }
  66098. wnd_inflation = tcp_update_rcv_ann_wnd(pcb);
  66099. 801ad5e: 6878 ldr r0, [r7, #4]
  66100. 801ad60: f7ff ff6e bl 801ac40 <tcp_update_rcv_ann_wnd>
  66101. 801ad64: 60b8 str r0, [r7, #8]
  66102. /* If the change in the right edge of window is significant (default
  66103. * watermark is TCP_WND/4), then send an explicit update now.
  66104. * Otherwise wait for a packet to be sent in the normal course of
  66105. * events (or more window to be available later) */
  66106. if (wnd_inflation >= TCP_WND_UPDATE_THRESHOLD) {
  66107. 801ad66: 68bb ldr r3, [r7, #8]
  66108. 801ad68: f240 52b3 movw r2, #1459 @ 0x5b3
  66109. 801ad6c: 4293 cmp r3, r2
  66110. 801ad6e: d909 bls.n 801ad84 <tcp_recved+0x90>
  66111. tcp_ack_now(pcb);
  66112. 801ad70: 687b ldr r3, [r7, #4]
  66113. 801ad72: 8b5b ldrh r3, [r3, #26]
  66114. 801ad74: f043 0302 orr.w r3, r3, #2
  66115. 801ad78: b29a uxth r2, r3
  66116. 801ad7a: 687b ldr r3, [r7, #4]
  66117. 801ad7c: 835a strh r2, [r3, #26]
  66118. tcp_output(pcb);
  66119. 801ad7e: 6878 ldr r0, [r7, #4]
  66120. 801ad80: f004 fd38 bl 801f7f4 <tcp_output>
  66121. }
  66122. LWIP_DEBUGF(TCP_DEBUG, ("tcp_recved: received %"U16_F" bytes, wnd %"TCPWNDSIZE_F" (%"TCPWNDSIZE_F").\n",
  66123. len, pcb->rcv_wnd, (u16_t)(TCP_WND_MAX(pcb) - pcb->rcv_wnd)));
  66124. }
  66125. 801ad84: 3710 adds r7, #16
  66126. 801ad86: 46bd mov sp, r7
  66127. 801ad88: bd80 pop {r7, pc}
  66128. 801ad8a: bf00 nop
  66129. 801ad8c: 0802e13c .word 0x0802e13c
  66130. 801ad90: 0802e3d8 .word 0x0802e3d8
  66131. 801ad94: 0802e180 .word 0x0802e180
  66132. 801ad98: 0802e3f0 .word 0x0802e3f0
  66133. 0801ad9c <tcp_new_port>:
  66134. *
  66135. * @return a new (free) local TCP port number
  66136. */
  66137. static u16_t
  66138. tcp_new_port(void)
  66139. {
  66140. 801ad9c: b480 push {r7}
  66141. 801ad9e: b083 sub sp, #12
  66142. 801ada0: af00 add r7, sp, #0
  66143. u8_t i;
  66144. u16_t n = 0;
  66145. 801ada2: 2300 movs r3, #0
  66146. 801ada4: 80bb strh r3, [r7, #4]
  66147. struct tcp_pcb *pcb;
  66148. again:
  66149. tcp_port++;
  66150. 801ada6: 4b1e ldr r3, [pc, #120] @ (801ae20 <tcp_new_port+0x84>)
  66151. 801ada8: 881b ldrh r3, [r3, #0]
  66152. 801adaa: 3301 adds r3, #1
  66153. 801adac: b29a uxth r2, r3
  66154. 801adae: 4b1c ldr r3, [pc, #112] @ (801ae20 <tcp_new_port+0x84>)
  66155. 801adb0: 801a strh r2, [r3, #0]
  66156. if (tcp_port == TCP_LOCAL_PORT_RANGE_END) {
  66157. 801adb2: 4b1b ldr r3, [pc, #108] @ (801ae20 <tcp_new_port+0x84>)
  66158. 801adb4: 881b ldrh r3, [r3, #0]
  66159. 801adb6: f64f 72ff movw r2, #65535 @ 0xffff
  66160. 801adba: 4293 cmp r3, r2
  66161. 801adbc: d103 bne.n 801adc6 <tcp_new_port+0x2a>
  66162. tcp_port = TCP_LOCAL_PORT_RANGE_START;
  66163. 801adbe: 4b18 ldr r3, [pc, #96] @ (801ae20 <tcp_new_port+0x84>)
  66164. 801adc0: f44f 4240 mov.w r2, #49152 @ 0xc000
  66165. 801adc4: 801a strh r2, [r3, #0]
  66166. }
  66167. /* Check all PCB lists. */
  66168. for (i = 0; i < NUM_TCP_PCB_LISTS; i++) {
  66169. 801adc6: 2300 movs r3, #0
  66170. 801adc8: 71fb strb r3, [r7, #7]
  66171. 801adca: e01e b.n 801ae0a <tcp_new_port+0x6e>
  66172. for (pcb = *tcp_pcb_lists[i]; pcb != NULL; pcb = pcb->next) {
  66173. 801adcc: 79fb ldrb r3, [r7, #7]
  66174. 801adce: 4a15 ldr r2, [pc, #84] @ (801ae24 <tcp_new_port+0x88>)
  66175. 801add0: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  66176. 801add4: 681b ldr r3, [r3, #0]
  66177. 801add6: 603b str r3, [r7, #0]
  66178. 801add8: e011 b.n 801adfe <tcp_new_port+0x62>
  66179. if (pcb->local_port == tcp_port) {
  66180. 801adda: 683b ldr r3, [r7, #0]
  66181. 801addc: 8ada ldrh r2, [r3, #22]
  66182. 801adde: 4b10 ldr r3, [pc, #64] @ (801ae20 <tcp_new_port+0x84>)
  66183. 801ade0: 881b ldrh r3, [r3, #0]
  66184. 801ade2: 429a cmp r2, r3
  66185. 801ade4: d108 bne.n 801adf8 <tcp_new_port+0x5c>
  66186. n++;
  66187. 801ade6: 88bb ldrh r3, [r7, #4]
  66188. 801ade8: 3301 adds r3, #1
  66189. 801adea: 80bb strh r3, [r7, #4]
  66190. if (n > (TCP_LOCAL_PORT_RANGE_END - TCP_LOCAL_PORT_RANGE_START)) {
  66191. 801adec: 88bb ldrh r3, [r7, #4]
  66192. 801adee: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  66193. 801adf2: d3d8 bcc.n 801ada6 <tcp_new_port+0xa>
  66194. return 0;
  66195. 801adf4: 2300 movs r3, #0
  66196. 801adf6: e00d b.n 801ae14 <tcp_new_port+0x78>
  66197. for (pcb = *tcp_pcb_lists[i]; pcb != NULL; pcb = pcb->next) {
  66198. 801adf8: 683b ldr r3, [r7, #0]
  66199. 801adfa: 68db ldr r3, [r3, #12]
  66200. 801adfc: 603b str r3, [r7, #0]
  66201. 801adfe: 683b ldr r3, [r7, #0]
  66202. 801ae00: 2b00 cmp r3, #0
  66203. 801ae02: d1ea bne.n 801adda <tcp_new_port+0x3e>
  66204. for (i = 0; i < NUM_TCP_PCB_LISTS; i++) {
  66205. 801ae04: 79fb ldrb r3, [r7, #7]
  66206. 801ae06: 3301 adds r3, #1
  66207. 801ae08: 71fb strb r3, [r7, #7]
  66208. 801ae0a: 79fb ldrb r3, [r7, #7]
  66209. 801ae0c: 2b03 cmp r3, #3
  66210. 801ae0e: d9dd bls.n 801adcc <tcp_new_port+0x30>
  66211. }
  66212. goto again;
  66213. }
  66214. }
  66215. }
  66216. return tcp_port;
  66217. 801ae10: 4b03 ldr r3, [pc, #12] @ (801ae20 <tcp_new_port+0x84>)
  66218. 801ae12: 881b ldrh r3, [r3, #0]
  66219. }
  66220. 801ae14: 4618 mov r0, r3
  66221. 801ae16: 370c adds r7, #12
  66222. 801ae18: 46bd mov sp, r7
  66223. 801ae1a: f85d 7b04 ldr.w r7, [sp], #4
  66224. 801ae1e: 4770 bx lr
  66225. 801ae20: 24000038 .word 0x24000038
  66226. 801ae24: 0803076c .word 0x0803076c
  66227. 0801ae28 <tcp_connect>:
  66228. * other err_t values if connect request couldn't be sent
  66229. */
  66230. err_t
  66231. tcp_connect(struct tcp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port,
  66232. tcp_connected_fn connected)
  66233. {
  66234. 801ae28: b580 push {r7, lr}
  66235. 801ae2a: b08a sub sp, #40 @ 0x28
  66236. 801ae2c: af00 add r7, sp, #0
  66237. 801ae2e: 60f8 str r0, [r7, #12]
  66238. 801ae30: 60b9 str r1, [r7, #8]
  66239. 801ae32: 603b str r3, [r7, #0]
  66240. 801ae34: 4613 mov r3, r2
  66241. 801ae36: 80fb strh r3, [r7, #6]
  66242. struct netif *netif = NULL;
  66243. 801ae38: 2300 movs r3, #0
  66244. 801ae3a: 627b str r3, [r7, #36] @ 0x24
  66245. err_t ret;
  66246. u32_t iss;
  66247. u16_t old_local_port;
  66248. LWIP_ASSERT_CORE_LOCKED();
  66249. 801ae3c: f7f5 f918 bl 8010070 <sys_check_core_locking>
  66250. LWIP_ERROR("tcp_connect: invalid pcb", pcb != NULL, return ERR_ARG);
  66251. 801ae40: 68fb ldr r3, [r7, #12]
  66252. 801ae42: 2b00 cmp r3, #0
  66253. 801ae44: d109 bne.n 801ae5a <tcp_connect+0x32>
  66254. 801ae46: 4b7d ldr r3, [pc, #500] @ (801b03c <tcp_connect+0x214>)
  66255. 801ae48: f240 4235 movw r2, #1077 @ 0x435
  66256. 801ae4c: 497c ldr r1, [pc, #496] @ (801b040 <tcp_connect+0x218>)
  66257. 801ae4e: 487d ldr r0, [pc, #500] @ (801b044 <tcp_connect+0x21c>)
  66258. 801ae50: f00e fb5c bl 802950c <iprintf>
  66259. 801ae54: f06f 030f mvn.w r3, #15
  66260. 801ae58: e0ec b.n 801b034 <tcp_connect+0x20c>
  66261. LWIP_ERROR("tcp_connect: invalid ipaddr", ipaddr != NULL, return ERR_ARG);
  66262. 801ae5a: 68bb ldr r3, [r7, #8]
  66263. 801ae5c: 2b00 cmp r3, #0
  66264. 801ae5e: d109 bne.n 801ae74 <tcp_connect+0x4c>
  66265. 801ae60: 4b76 ldr r3, [pc, #472] @ (801b03c <tcp_connect+0x214>)
  66266. 801ae62: f240 4236 movw r2, #1078 @ 0x436
  66267. 801ae66: 4978 ldr r1, [pc, #480] @ (801b048 <tcp_connect+0x220>)
  66268. 801ae68: 4876 ldr r0, [pc, #472] @ (801b044 <tcp_connect+0x21c>)
  66269. 801ae6a: f00e fb4f bl 802950c <iprintf>
  66270. 801ae6e: f06f 030f mvn.w r3, #15
  66271. 801ae72: e0df b.n 801b034 <tcp_connect+0x20c>
  66272. LWIP_ERROR("tcp_connect: can only connect from state CLOSED", pcb->state == CLOSED, return ERR_ISCONN);
  66273. 801ae74: 68fb ldr r3, [r7, #12]
  66274. 801ae76: 7d1b ldrb r3, [r3, #20]
  66275. 801ae78: 2b00 cmp r3, #0
  66276. 801ae7a: d009 beq.n 801ae90 <tcp_connect+0x68>
  66277. 801ae7c: 4b6f ldr r3, [pc, #444] @ (801b03c <tcp_connect+0x214>)
  66278. 801ae7e: f44f 6287 mov.w r2, #1080 @ 0x438
  66279. 801ae82: 4972 ldr r1, [pc, #456] @ (801b04c <tcp_connect+0x224>)
  66280. 801ae84: 486f ldr r0, [pc, #444] @ (801b044 <tcp_connect+0x21c>)
  66281. 801ae86: f00e fb41 bl 802950c <iprintf>
  66282. 801ae8a: f06f 0309 mvn.w r3, #9
  66283. 801ae8e: e0d1 b.n 801b034 <tcp_connect+0x20c>
  66284. LWIP_DEBUGF(TCP_DEBUG, ("tcp_connect to port %"U16_F"\n", port));
  66285. ip_addr_set(&pcb->remote_ip, ipaddr);
  66286. 801ae90: 68bb ldr r3, [r7, #8]
  66287. 801ae92: 2b00 cmp r3, #0
  66288. 801ae94: d002 beq.n 801ae9c <tcp_connect+0x74>
  66289. 801ae96: 68bb ldr r3, [r7, #8]
  66290. 801ae98: 681b ldr r3, [r3, #0]
  66291. 801ae9a: e000 b.n 801ae9e <tcp_connect+0x76>
  66292. 801ae9c: 2300 movs r3, #0
  66293. 801ae9e: 68fa ldr r2, [r7, #12]
  66294. 801aea0: 6053 str r3, [r2, #4]
  66295. pcb->remote_port = port;
  66296. 801aea2: 68fb ldr r3, [r7, #12]
  66297. 801aea4: 88fa ldrh r2, [r7, #6]
  66298. 801aea6: 831a strh r2, [r3, #24]
  66299. if (pcb->netif_idx != NETIF_NO_INDEX) {
  66300. 801aea8: 68fb ldr r3, [r7, #12]
  66301. 801aeaa: 7a1b ldrb r3, [r3, #8]
  66302. 801aeac: 2b00 cmp r3, #0
  66303. 801aeae: d006 beq.n 801aebe <tcp_connect+0x96>
  66304. netif = netif_get_by_index(pcb->netif_idx);
  66305. 801aeb0: 68fb ldr r3, [r7, #12]
  66306. 801aeb2: 7a1b ldrb r3, [r3, #8]
  66307. 801aeb4: 4618 mov r0, r3
  66308. 801aeb6: f7fe fcf1 bl 801989c <netif_get_by_index>
  66309. 801aeba: 6278 str r0, [r7, #36] @ 0x24
  66310. 801aebc: e005 b.n 801aeca <tcp_connect+0xa2>
  66311. } else {
  66312. /* check if we have a route to the remote host */
  66313. netif = ip_route(&pcb->local_ip, &pcb->remote_ip);
  66314. 801aebe: 68fb ldr r3, [r7, #12]
  66315. 801aec0: 3304 adds r3, #4
  66316. 801aec2: 4618 mov r0, r3
  66317. 801aec4: f009 fb14 bl 80244f0 <ip4_route>
  66318. 801aec8: 6278 str r0, [r7, #36] @ 0x24
  66319. }
  66320. if (netif == NULL) {
  66321. 801aeca: 6a7b ldr r3, [r7, #36] @ 0x24
  66322. 801aecc: 2b00 cmp r3, #0
  66323. 801aece: d102 bne.n 801aed6 <tcp_connect+0xae>
  66324. /* Don't even try to send a SYN packet if we have no route since that will fail. */
  66325. return ERR_RTE;
  66326. 801aed0: f06f 0303 mvn.w r3, #3
  66327. 801aed4: e0ae b.n 801b034 <tcp_connect+0x20c>
  66328. }
  66329. /* check if local IP has been assigned to pcb, if not, get one */
  66330. if (ip_addr_isany(&pcb->local_ip)) {
  66331. 801aed6: 68fb ldr r3, [r7, #12]
  66332. 801aed8: 2b00 cmp r3, #0
  66333. 801aeda: d003 beq.n 801aee4 <tcp_connect+0xbc>
  66334. 801aedc: 68fb ldr r3, [r7, #12]
  66335. 801aede: 681b ldr r3, [r3, #0]
  66336. 801aee0: 2b00 cmp r3, #0
  66337. 801aee2: d111 bne.n 801af08 <tcp_connect+0xe0>
  66338. const ip_addr_t *local_ip = ip_netif_get_local_ip(netif, ipaddr);
  66339. 801aee4: 6a7b ldr r3, [r7, #36] @ 0x24
  66340. 801aee6: 2b00 cmp r3, #0
  66341. 801aee8: d002 beq.n 801aef0 <tcp_connect+0xc8>
  66342. 801aeea: 6a7b ldr r3, [r7, #36] @ 0x24
  66343. 801aeec: 3304 adds r3, #4
  66344. 801aeee: e000 b.n 801aef2 <tcp_connect+0xca>
  66345. 801aef0: 2300 movs r3, #0
  66346. 801aef2: 61fb str r3, [r7, #28]
  66347. if (local_ip == NULL) {
  66348. 801aef4: 69fb ldr r3, [r7, #28]
  66349. 801aef6: 2b00 cmp r3, #0
  66350. 801aef8: d102 bne.n 801af00 <tcp_connect+0xd8>
  66351. return ERR_RTE;
  66352. 801aefa: f06f 0303 mvn.w r3, #3
  66353. 801aefe: e099 b.n 801b034 <tcp_connect+0x20c>
  66354. }
  66355. ip_addr_copy(pcb->local_ip, *local_ip);
  66356. 801af00: 69fb ldr r3, [r7, #28]
  66357. 801af02: 681a ldr r2, [r3, #0]
  66358. 801af04: 68fb ldr r3, [r7, #12]
  66359. 801af06: 601a str r2, [r3, #0]
  66360. ip6_addr_lacks_zone(ip_2_ip6(&pcb->remote_ip), IP6_UNICAST)) {
  66361. ip6_addr_assign_zone(ip_2_ip6(&pcb->remote_ip), IP6_UNICAST, netif);
  66362. }
  66363. #endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */
  66364. old_local_port = pcb->local_port;
  66365. 801af08: 68fb ldr r3, [r7, #12]
  66366. 801af0a: 8adb ldrh r3, [r3, #22]
  66367. 801af0c: 837b strh r3, [r7, #26]
  66368. if (pcb->local_port == 0) {
  66369. 801af0e: 68fb ldr r3, [r7, #12]
  66370. 801af10: 8adb ldrh r3, [r3, #22]
  66371. 801af12: 2b00 cmp r3, #0
  66372. 801af14: d10c bne.n 801af30 <tcp_connect+0x108>
  66373. pcb->local_port = tcp_new_port();
  66374. 801af16: f7ff ff41 bl 801ad9c <tcp_new_port>
  66375. 801af1a: 4603 mov r3, r0
  66376. 801af1c: 461a mov r2, r3
  66377. 801af1e: 68fb ldr r3, [r7, #12]
  66378. 801af20: 82da strh r2, [r3, #22]
  66379. if (pcb->local_port == 0) {
  66380. 801af22: 68fb ldr r3, [r7, #12]
  66381. 801af24: 8adb ldrh r3, [r3, #22]
  66382. 801af26: 2b00 cmp r3, #0
  66383. 801af28: d102 bne.n 801af30 <tcp_connect+0x108>
  66384. return ERR_BUF;
  66385. 801af2a: f06f 0301 mvn.w r3, #1
  66386. 801af2e: e081 b.n 801b034 <tcp_connect+0x20c>
  66387. }
  66388. }
  66389. #endif /* SO_REUSE */
  66390. }
  66391. iss = tcp_next_iss(pcb);
  66392. 801af30: 68f8 ldr r0, [r7, #12]
  66393. 801af32: f001 f875 bl 801c020 <tcp_next_iss>
  66394. 801af36: 6178 str r0, [r7, #20]
  66395. pcb->rcv_nxt = 0;
  66396. 801af38: 68fb ldr r3, [r7, #12]
  66397. 801af3a: 2200 movs r2, #0
  66398. 801af3c: 625a str r2, [r3, #36] @ 0x24
  66399. pcb->snd_nxt = iss;
  66400. 801af3e: 68fb ldr r3, [r7, #12]
  66401. 801af40: 697a ldr r2, [r7, #20]
  66402. 801af42: 651a str r2, [r3, #80] @ 0x50
  66403. pcb->lastack = iss - 1;
  66404. 801af44: 697b ldr r3, [r7, #20]
  66405. 801af46: 1e5a subs r2, r3, #1
  66406. 801af48: 68fb ldr r3, [r7, #12]
  66407. 801af4a: 645a str r2, [r3, #68] @ 0x44
  66408. pcb->snd_wl2 = iss - 1;
  66409. 801af4c: 697b ldr r3, [r7, #20]
  66410. 801af4e: 1e5a subs r2, r3, #1
  66411. 801af50: 68fb ldr r3, [r7, #12]
  66412. 801af52: 659a str r2, [r3, #88] @ 0x58
  66413. pcb->snd_lbb = iss - 1;
  66414. 801af54: 697b ldr r3, [r7, #20]
  66415. 801af56: 1e5a subs r2, r3, #1
  66416. 801af58: 68fb ldr r3, [r7, #12]
  66417. 801af5a: 65da str r2, [r3, #92] @ 0x5c
  66418. /* Start with a window that does not need scaling. When window scaling is
  66419. enabled and used, the window is enlarged when both sides agree on scaling. */
  66420. pcb->rcv_wnd = pcb->rcv_ann_wnd = TCPWND_MIN16(TCP_WND);
  66421. 801af5c: 68fb ldr r3, [r7, #12]
  66422. 801af5e: f241 62d0 movw r2, #5840 @ 0x16d0
  66423. 801af62: 855a strh r2, [r3, #42] @ 0x2a
  66424. 801af64: 68fb ldr r3, [r7, #12]
  66425. 801af66: 8d5a ldrh r2, [r3, #42] @ 0x2a
  66426. 801af68: 68fb ldr r3, [r7, #12]
  66427. 801af6a: 851a strh r2, [r3, #40] @ 0x28
  66428. pcb->rcv_ann_right_edge = pcb->rcv_nxt;
  66429. 801af6c: 68fb ldr r3, [r7, #12]
  66430. 801af6e: 6a5a ldr r2, [r3, #36] @ 0x24
  66431. 801af70: 68fb ldr r3, [r7, #12]
  66432. 801af72: 62da str r2, [r3, #44] @ 0x2c
  66433. pcb->snd_wnd = TCP_WND;
  66434. 801af74: 68fb ldr r3, [r7, #12]
  66435. 801af76: f241 62d0 movw r2, #5840 @ 0x16d0
  66436. 801af7a: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  66437. /* As initial send MSS, we use TCP_MSS but limit it to 536.
  66438. The send MSS is updated when an MSS option is received. */
  66439. pcb->mss = INITIAL_MSS;
  66440. 801af7e: 68fb ldr r3, [r7, #12]
  66441. 801af80: f44f 7206 mov.w r2, #536 @ 0x218
  66442. 801af84: 865a strh r2, [r3, #50] @ 0x32
  66443. #if TCP_CALCULATE_EFF_SEND_MSS
  66444. pcb->mss = tcp_eff_send_mss_netif(pcb->mss, netif, &pcb->remote_ip);
  66445. 801af86: 68fb ldr r3, [r7, #12]
  66446. 801af88: 8e58 ldrh r0, [r3, #50] @ 0x32
  66447. 801af8a: 68fb ldr r3, [r7, #12]
  66448. 801af8c: 3304 adds r3, #4
  66449. 801af8e: 461a mov r2, r3
  66450. 801af90: 6a79 ldr r1, [r7, #36] @ 0x24
  66451. 801af92: f001 f86b bl 801c06c <tcp_eff_send_mss_netif>
  66452. 801af96: 4603 mov r3, r0
  66453. 801af98: 461a mov r2, r3
  66454. 801af9a: 68fb ldr r3, [r7, #12]
  66455. 801af9c: 865a strh r2, [r3, #50] @ 0x32
  66456. #endif /* TCP_CALCULATE_EFF_SEND_MSS */
  66457. pcb->cwnd = 1;
  66458. 801af9e: 68fb ldr r3, [r7, #12]
  66459. 801afa0: 2201 movs r2, #1
  66460. 801afa2: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  66461. #if LWIP_CALLBACK_API
  66462. pcb->connected = connected;
  66463. 801afa6: 68fb ldr r3, [r7, #12]
  66464. 801afa8: 683a ldr r2, [r7, #0]
  66465. 801afaa: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  66466. #else /* LWIP_CALLBACK_API */
  66467. LWIP_UNUSED_ARG(connected);
  66468. #endif /* LWIP_CALLBACK_API */
  66469. /* Send a SYN together with the MSS option. */
  66470. ret = tcp_enqueue_flags(pcb, TCP_SYN);
  66471. 801afae: 2102 movs r1, #2
  66472. 801afb0: 68f8 ldr r0, [r7, #12]
  66473. 801afb2: f004 fb31 bl 801f618 <tcp_enqueue_flags>
  66474. 801afb6: 4603 mov r3, r0
  66475. 801afb8: 74fb strb r3, [r7, #19]
  66476. if (ret == ERR_OK) {
  66477. 801afba: f997 3013 ldrsb.w r3, [r7, #19]
  66478. 801afbe: 2b00 cmp r3, #0
  66479. 801afc0: d136 bne.n 801b030 <tcp_connect+0x208>
  66480. /* SYN segment was enqueued, changed the pcbs state now */
  66481. pcb->state = SYN_SENT;
  66482. 801afc2: 68fb ldr r3, [r7, #12]
  66483. 801afc4: 2202 movs r2, #2
  66484. 801afc6: 751a strb r2, [r3, #20]
  66485. if (old_local_port != 0) {
  66486. 801afc8: 8b7b ldrh r3, [r7, #26]
  66487. 801afca: 2b00 cmp r3, #0
  66488. 801afcc: d021 beq.n 801b012 <tcp_connect+0x1ea>
  66489. TCP_RMV(&tcp_bound_pcbs, pcb);
  66490. 801afce: 4b20 ldr r3, [pc, #128] @ (801b050 <tcp_connect+0x228>)
  66491. 801afd0: 681b ldr r3, [r3, #0]
  66492. 801afd2: 68fa ldr r2, [r7, #12]
  66493. 801afd4: 429a cmp r2, r3
  66494. 801afd6: d105 bne.n 801afe4 <tcp_connect+0x1bc>
  66495. 801afd8: 4b1d ldr r3, [pc, #116] @ (801b050 <tcp_connect+0x228>)
  66496. 801afda: 681b ldr r3, [r3, #0]
  66497. 801afdc: 68db ldr r3, [r3, #12]
  66498. 801afde: 4a1c ldr r2, [pc, #112] @ (801b050 <tcp_connect+0x228>)
  66499. 801afe0: 6013 str r3, [r2, #0]
  66500. 801afe2: e013 b.n 801b00c <tcp_connect+0x1e4>
  66501. 801afe4: 4b1a ldr r3, [pc, #104] @ (801b050 <tcp_connect+0x228>)
  66502. 801afe6: 681b ldr r3, [r3, #0]
  66503. 801afe8: 623b str r3, [r7, #32]
  66504. 801afea: e00c b.n 801b006 <tcp_connect+0x1de>
  66505. 801afec: 6a3b ldr r3, [r7, #32]
  66506. 801afee: 68db ldr r3, [r3, #12]
  66507. 801aff0: 68fa ldr r2, [r7, #12]
  66508. 801aff2: 429a cmp r2, r3
  66509. 801aff4: d104 bne.n 801b000 <tcp_connect+0x1d8>
  66510. 801aff6: 68fb ldr r3, [r7, #12]
  66511. 801aff8: 68da ldr r2, [r3, #12]
  66512. 801affa: 6a3b ldr r3, [r7, #32]
  66513. 801affc: 60da str r2, [r3, #12]
  66514. 801affe: e005 b.n 801b00c <tcp_connect+0x1e4>
  66515. 801b000: 6a3b ldr r3, [r7, #32]
  66516. 801b002: 68db ldr r3, [r3, #12]
  66517. 801b004: 623b str r3, [r7, #32]
  66518. 801b006: 6a3b ldr r3, [r7, #32]
  66519. 801b008: 2b00 cmp r3, #0
  66520. 801b00a: d1ef bne.n 801afec <tcp_connect+0x1c4>
  66521. 801b00c: 68fb ldr r3, [r7, #12]
  66522. 801b00e: 2200 movs r2, #0
  66523. 801b010: 60da str r2, [r3, #12]
  66524. }
  66525. TCP_REG_ACTIVE(pcb);
  66526. 801b012: 4b10 ldr r3, [pc, #64] @ (801b054 <tcp_connect+0x22c>)
  66527. 801b014: 681a ldr r2, [r3, #0]
  66528. 801b016: 68fb ldr r3, [r7, #12]
  66529. 801b018: 60da str r2, [r3, #12]
  66530. 801b01a: 4a0e ldr r2, [pc, #56] @ (801b054 <tcp_connect+0x22c>)
  66531. 801b01c: 68fb ldr r3, [r7, #12]
  66532. 801b01e: 6013 str r3, [r2, #0]
  66533. 801b020: f005 fb6c bl 80206fc <tcp_timer_needed>
  66534. 801b024: 4b0c ldr r3, [pc, #48] @ (801b058 <tcp_connect+0x230>)
  66535. 801b026: 2201 movs r2, #1
  66536. 801b028: 701a strb r2, [r3, #0]
  66537. MIB2_STATS_INC(mib2.tcpactiveopens);
  66538. tcp_output(pcb);
  66539. 801b02a: 68f8 ldr r0, [r7, #12]
  66540. 801b02c: f004 fbe2 bl 801f7f4 <tcp_output>
  66541. }
  66542. return ret;
  66543. 801b030: f997 3013 ldrsb.w r3, [r7, #19]
  66544. }
  66545. 801b034: 4618 mov r0, r3
  66546. 801b036: 3728 adds r7, #40 @ 0x28
  66547. 801b038: 46bd mov sp, r7
  66548. 801b03a: bd80 pop {r7, pc}
  66549. 801b03c: 0802e13c .word 0x0802e13c
  66550. 801b040: 0802e418 .word 0x0802e418
  66551. 801b044: 0802e180 .word 0x0802e180
  66552. 801b048: 0802e434 .word 0x0802e434
  66553. 801b04c: 0802e450 .word 0x0802e450
  66554. 801b050: 24029ff0 .word 0x24029ff0
  66555. 801b054: 24029ff8 .word 0x24029ff8
  66556. 801b058: 2402a000 .word 0x2402a000
  66557. 0801b05c <tcp_slowtmr>:
  66558. *
  66559. * Automatically called from tcp_tmr().
  66560. */
  66561. void
  66562. tcp_slowtmr(void)
  66563. {
  66564. 801b05c: b5b0 push {r4, r5, r7, lr}
  66565. 801b05e: b090 sub sp, #64 @ 0x40
  66566. 801b060: af04 add r7, sp, #16
  66567. tcpwnd_size_t eff_wnd;
  66568. u8_t pcb_remove; /* flag if a PCB should be removed */
  66569. u8_t pcb_reset; /* flag if a RST should be sent when removing */
  66570. err_t err;
  66571. err = ERR_OK;
  66572. 801b062: 2300 movs r3, #0
  66573. 801b064: f887 3025 strb.w r3, [r7, #37] @ 0x25
  66574. ++tcp_ticks;
  66575. 801b068: 4b95 ldr r3, [pc, #596] @ (801b2c0 <tcp_slowtmr+0x264>)
  66576. 801b06a: 681b ldr r3, [r3, #0]
  66577. 801b06c: 3301 adds r3, #1
  66578. 801b06e: 4a94 ldr r2, [pc, #592] @ (801b2c0 <tcp_slowtmr+0x264>)
  66579. 801b070: 6013 str r3, [r2, #0]
  66580. ++tcp_timer_ctr;
  66581. 801b072: 4b94 ldr r3, [pc, #592] @ (801b2c4 <tcp_slowtmr+0x268>)
  66582. 801b074: 781b ldrb r3, [r3, #0]
  66583. 801b076: 3301 adds r3, #1
  66584. 801b078: b2da uxtb r2, r3
  66585. 801b07a: 4b92 ldr r3, [pc, #584] @ (801b2c4 <tcp_slowtmr+0x268>)
  66586. 801b07c: 701a strb r2, [r3, #0]
  66587. 801b07e: e000 b.n 801b082 <tcp_slowtmr+0x26>
  66588. prev->polltmr = 0;
  66589. LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: polling application\n"));
  66590. tcp_active_pcbs_changed = 0;
  66591. TCP_EVENT_POLL(prev, err);
  66592. if (tcp_active_pcbs_changed) {
  66593. goto tcp_slowtmr_start;
  66594. 801b080: bf00 nop
  66595. prev = NULL;
  66596. 801b082: 2300 movs r3, #0
  66597. 801b084: 62bb str r3, [r7, #40] @ 0x28
  66598. pcb = tcp_active_pcbs;
  66599. 801b086: 4b90 ldr r3, [pc, #576] @ (801b2c8 <tcp_slowtmr+0x26c>)
  66600. 801b088: 681b ldr r3, [r3, #0]
  66601. 801b08a: 62fb str r3, [r7, #44] @ 0x2c
  66602. while (pcb != NULL) {
  66603. 801b08c: e29d b.n 801b5ca <tcp_slowtmr+0x56e>
  66604. LWIP_ASSERT("tcp_slowtmr: active pcb->state != CLOSED\n", pcb->state != CLOSED);
  66605. 801b08e: 6afb ldr r3, [r7, #44] @ 0x2c
  66606. 801b090: 7d1b ldrb r3, [r3, #20]
  66607. 801b092: 2b00 cmp r3, #0
  66608. 801b094: d106 bne.n 801b0a4 <tcp_slowtmr+0x48>
  66609. 801b096: 4b8d ldr r3, [pc, #564] @ (801b2cc <tcp_slowtmr+0x270>)
  66610. 801b098: f240 42be movw r2, #1214 @ 0x4be
  66611. 801b09c: 498c ldr r1, [pc, #560] @ (801b2d0 <tcp_slowtmr+0x274>)
  66612. 801b09e: 488d ldr r0, [pc, #564] @ (801b2d4 <tcp_slowtmr+0x278>)
  66613. 801b0a0: f00e fa34 bl 802950c <iprintf>
  66614. LWIP_ASSERT("tcp_slowtmr: active pcb->state != LISTEN\n", pcb->state != LISTEN);
  66615. 801b0a4: 6afb ldr r3, [r7, #44] @ 0x2c
  66616. 801b0a6: 7d1b ldrb r3, [r3, #20]
  66617. 801b0a8: 2b01 cmp r3, #1
  66618. 801b0aa: d106 bne.n 801b0ba <tcp_slowtmr+0x5e>
  66619. 801b0ac: 4b87 ldr r3, [pc, #540] @ (801b2cc <tcp_slowtmr+0x270>)
  66620. 801b0ae: f240 42bf movw r2, #1215 @ 0x4bf
  66621. 801b0b2: 4989 ldr r1, [pc, #548] @ (801b2d8 <tcp_slowtmr+0x27c>)
  66622. 801b0b4: 4887 ldr r0, [pc, #540] @ (801b2d4 <tcp_slowtmr+0x278>)
  66623. 801b0b6: f00e fa29 bl 802950c <iprintf>
  66624. LWIP_ASSERT("tcp_slowtmr: active pcb->state != TIME-WAIT\n", pcb->state != TIME_WAIT);
  66625. 801b0ba: 6afb ldr r3, [r7, #44] @ 0x2c
  66626. 801b0bc: 7d1b ldrb r3, [r3, #20]
  66627. 801b0be: 2b0a cmp r3, #10
  66628. 801b0c0: d106 bne.n 801b0d0 <tcp_slowtmr+0x74>
  66629. 801b0c2: 4b82 ldr r3, [pc, #520] @ (801b2cc <tcp_slowtmr+0x270>)
  66630. 801b0c4: f44f 6298 mov.w r2, #1216 @ 0x4c0
  66631. 801b0c8: 4984 ldr r1, [pc, #528] @ (801b2dc <tcp_slowtmr+0x280>)
  66632. 801b0ca: 4882 ldr r0, [pc, #520] @ (801b2d4 <tcp_slowtmr+0x278>)
  66633. 801b0cc: f00e fa1e bl 802950c <iprintf>
  66634. if (pcb->last_timer == tcp_timer_ctr) {
  66635. 801b0d0: 6afb ldr r3, [r7, #44] @ 0x2c
  66636. 801b0d2: 7f9a ldrb r2, [r3, #30]
  66637. 801b0d4: 4b7b ldr r3, [pc, #492] @ (801b2c4 <tcp_slowtmr+0x268>)
  66638. 801b0d6: 781b ldrb r3, [r3, #0]
  66639. 801b0d8: 429a cmp r2, r3
  66640. 801b0da: d105 bne.n 801b0e8 <tcp_slowtmr+0x8c>
  66641. prev = pcb;
  66642. 801b0dc: 6afb ldr r3, [r7, #44] @ 0x2c
  66643. 801b0de: 62bb str r3, [r7, #40] @ 0x28
  66644. pcb = pcb->next;
  66645. 801b0e0: 6afb ldr r3, [r7, #44] @ 0x2c
  66646. 801b0e2: 68db ldr r3, [r3, #12]
  66647. 801b0e4: 62fb str r3, [r7, #44] @ 0x2c
  66648. continue;
  66649. 801b0e6: e270 b.n 801b5ca <tcp_slowtmr+0x56e>
  66650. pcb->last_timer = tcp_timer_ctr;
  66651. 801b0e8: 4b76 ldr r3, [pc, #472] @ (801b2c4 <tcp_slowtmr+0x268>)
  66652. 801b0ea: 781a ldrb r2, [r3, #0]
  66653. 801b0ec: 6afb ldr r3, [r7, #44] @ 0x2c
  66654. 801b0ee: 779a strb r2, [r3, #30]
  66655. pcb_remove = 0;
  66656. 801b0f0: 2300 movs r3, #0
  66657. 801b0f2: f887 3027 strb.w r3, [r7, #39] @ 0x27
  66658. pcb_reset = 0;
  66659. 801b0f6: 2300 movs r3, #0
  66660. 801b0f8: f887 3026 strb.w r3, [r7, #38] @ 0x26
  66661. if (pcb->state == SYN_SENT && pcb->nrtx >= TCP_SYNMAXRTX) {
  66662. 801b0fc: 6afb ldr r3, [r7, #44] @ 0x2c
  66663. 801b0fe: 7d1b ldrb r3, [r3, #20]
  66664. 801b100: 2b02 cmp r3, #2
  66665. 801b102: d10a bne.n 801b11a <tcp_slowtmr+0xbe>
  66666. 801b104: 6afb ldr r3, [r7, #44] @ 0x2c
  66667. 801b106: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  66668. 801b10a: 2b05 cmp r3, #5
  66669. 801b10c: d905 bls.n 801b11a <tcp_slowtmr+0xbe>
  66670. ++pcb_remove;
  66671. 801b10e: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  66672. 801b112: 3301 adds r3, #1
  66673. 801b114: f887 3027 strb.w r3, [r7, #39] @ 0x27
  66674. LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: max SYN retries reached\n"));
  66675. 801b118: e11e b.n 801b358 <tcp_slowtmr+0x2fc>
  66676. } else if (pcb->nrtx >= TCP_MAXRTX) {
  66677. 801b11a: 6afb ldr r3, [r7, #44] @ 0x2c
  66678. 801b11c: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  66679. 801b120: 2b0b cmp r3, #11
  66680. 801b122: d905 bls.n 801b130 <tcp_slowtmr+0xd4>
  66681. ++pcb_remove;
  66682. 801b124: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  66683. 801b128: 3301 adds r3, #1
  66684. 801b12a: f887 3027 strb.w r3, [r7, #39] @ 0x27
  66685. 801b12e: e113 b.n 801b358 <tcp_slowtmr+0x2fc>
  66686. if (pcb->persist_backoff > 0) {
  66687. 801b130: 6afb ldr r3, [r7, #44] @ 0x2c
  66688. 801b132: f893 3099 ldrb.w r3, [r3, #153] @ 0x99
  66689. 801b136: 2b00 cmp r3, #0
  66690. 801b138: d075 beq.n 801b226 <tcp_slowtmr+0x1ca>
  66691. LWIP_ASSERT("tcp_slowtimr: persist ticking with in-flight data", pcb->unacked == NULL);
  66692. 801b13a: 6afb ldr r3, [r7, #44] @ 0x2c
  66693. 801b13c: 6f1b ldr r3, [r3, #112] @ 0x70
  66694. 801b13e: 2b00 cmp r3, #0
  66695. 801b140: d006 beq.n 801b150 <tcp_slowtmr+0xf4>
  66696. 801b142: 4b62 ldr r3, [pc, #392] @ (801b2cc <tcp_slowtmr+0x270>)
  66697. 801b144: f240 42d4 movw r2, #1236 @ 0x4d4
  66698. 801b148: 4965 ldr r1, [pc, #404] @ (801b2e0 <tcp_slowtmr+0x284>)
  66699. 801b14a: 4862 ldr r0, [pc, #392] @ (801b2d4 <tcp_slowtmr+0x278>)
  66700. 801b14c: f00e f9de bl 802950c <iprintf>
  66701. LWIP_ASSERT("tcp_slowtimr: persist ticking with empty send buffer", pcb->unsent != NULL);
  66702. 801b150: 6afb ldr r3, [r7, #44] @ 0x2c
  66703. 801b152: 6edb ldr r3, [r3, #108] @ 0x6c
  66704. 801b154: 2b00 cmp r3, #0
  66705. 801b156: d106 bne.n 801b166 <tcp_slowtmr+0x10a>
  66706. 801b158: 4b5c ldr r3, [pc, #368] @ (801b2cc <tcp_slowtmr+0x270>)
  66707. 801b15a: f240 42d5 movw r2, #1237 @ 0x4d5
  66708. 801b15e: 4961 ldr r1, [pc, #388] @ (801b2e4 <tcp_slowtmr+0x288>)
  66709. 801b160: 485c ldr r0, [pc, #368] @ (801b2d4 <tcp_slowtmr+0x278>)
  66710. 801b162: f00e f9d3 bl 802950c <iprintf>
  66711. if (pcb->persist_probe >= TCP_MAXRTX) {
  66712. 801b166: 6afb ldr r3, [r7, #44] @ 0x2c
  66713. 801b168: f893 309a ldrb.w r3, [r3, #154] @ 0x9a
  66714. 801b16c: 2b0b cmp r3, #11
  66715. 801b16e: d905 bls.n 801b17c <tcp_slowtmr+0x120>
  66716. ++pcb_remove; /* max probes reached */
  66717. 801b170: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  66718. 801b174: 3301 adds r3, #1
  66719. 801b176: f887 3027 strb.w r3, [r7, #39] @ 0x27
  66720. 801b17a: e0ed b.n 801b358 <tcp_slowtmr+0x2fc>
  66721. u8_t backoff_cnt = tcp_persist_backoff[pcb->persist_backoff - 1];
  66722. 801b17c: 6afb ldr r3, [r7, #44] @ 0x2c
  66723. 801b17e: f893 3099 ldrb.w r3, [r3, #153] @ 0x99
  66724. 801b182: 3b01 subs r3, #1
  66725. 801b184: 4a58 ldr r2, [pc, #352] @ (801b2e8 <tcp_slowtmr+0x28c>)
  66726. 801b186: 5cd3 ldrb r3, [r2, r3]
  66727. 801b188: 747b strb r3, [r7, #17]
  66728. if (pcb->persist_cnt < backoff_cnt) {
  66729. 801b18a: 6afb ldr r3, [r7, #44] @ 0x2c
  66730. 801b18c: f893 3098 ldrb.w r3, [r3, #152] @ 0x98
  66731. 801b190: 7c7a ldrb r2, [r7, #17]
  66732. 801b192: 429a cmp r2, r3
  66733. 801b194: d907 bls.n 801b1a6 <tcp_slowtmr+0x14a>
  66734. pcb->persist_cnt++;
  66735. 801b196: 6afb ldr r3, [r7, #44] @ 0x2c
  66736. 801b198: f893 3098 ldrb.w r3, [r3, #152] @ 0x98
  66737. 801b19c: 3301 adds r3, #1
  66738. 801b19e: b2da uxtb r2, r3
  66739. 801b1a0: 6afb ldr r3, [r7, #44] @ 0x2c
  66740. 801b1a2: f883 2098 strb.w r2, [r3, #152] @ 0x98
  66741. if (pcb->persist_cnt >= backoff_cnt) {
  66742. 801b1a6: 6afb ldr r3, [r7, #44] @ 0x2c
  66743. 801b1a8: f893 3098 ldrb.w r3, [r3, #152] @ 0x98
  66744. 801b1ac: 7c7a ldrb r2, [r7, #17]
  66745. 801b1ae: 429a cmp r2, r3
  66746. 801b1b0: f200 80d2 bhi.w 801b358 <tcp_slowtmr+0x2fc>
  66747. int next_slot = 1; /* increment timer to next slot */
  66748. 801b1b4: 2301 movs r3, #1
  66749. 801b1b6: 623b str r3, [r7, #32]
  66750. if (pcb->snd_wnd == 0) {
  66751. 801b1b8: 6afb ldr r3, [r7, #44] @ 0x2c
  66752. 801b1ba: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  66753. 801b1be: 2b00 cmp r3, #0
  66754. 801b1c0: d108 bne.n 801b1d4 <tcp_slowtmr+0x178>
  66755. if (tcp_zero_window_probe(pcb) != ERR_OK) {
  66756. 801b1c2: 6af8 ldr r0, [r7, #44] @ 0x2c
  66757. 801b1c4: f005 f9cc bl 8020560 <tcp_zero_window_probe>
  66758. 801b1c8: 4603 mov r3, r0
  66759. 801b1ca: 2b00 cmp r3, #0
  66760. 801b1cc: d014 beq.n 801b1f8 <tcp_slowtmr+0x19c>
  66761. next_slot = 0; /* try probe again with current slot */
  66762. 801b1ce: 2300 movs r3, #0
  66763. 801b1d0: 623b str r3, [r7, #32]
  66764. 801b1d2: e011 b.n 801b1f8 <tcp_slowtmr+0x19c>
  66765. if (tcp_split_unsent_seg(pcb, (u16_t)pcb->snd_wnd) == ERR_OK) {
  66766. 801b1d4: 6afb ldr r3, [r7, #44] @ 0x2c
  66767. 801b1d6: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  66768. 801b1da: 4619 mov r1, r3
  66769. 801b1dc: 6af8 ldr r0, [r7, #44] @ 0x2c
  66770. 801b1de: f004 f87f bl 801f2e0 <tcp_split_unsent_seg>
  66771. 801b1e2: 4603 mov r3, r0
  66772. 801b1e4: 2b00 cmp r3, #0
  66773. 801b1e6: d107 bne.n 801b1f8 <tcp_slowtmr+0x19c>
  66774. if (tcp_output(pcb) == ERR_OK) {
  66775. 801b1e8: 6af8 ldr r0, [r7, #44] @ 0x2c
  66776. 801b1ea: f004 fb03 bl 801f7f4 <tcp_output>
  66777. 801b1ee: 4603 mov r3, r0
  66778. 801b1f0: 2b00 cmp r3, #0
  66779. 801b1f2: d101 bne.n 801b1f8 <tcp_slowtmr+0x19c>
  66780. next_slot = 0;
  66781. 801b1f4: 2300 movs r3, #0
  66782. 801b1f6: 623b str r3, [r7, #32]
  66783. if (next_slot) {
  66784. 801b1f8: 6a3b ldr r3, [r7, #32]
  66785. 801b1fa: 2b00 cmp r3, #0
  66786. 801b1fc: f000 80ac beq.w 801b358 <tcp_slowtmr+0x2fc>
  66787. pcb->persist_cnt = 0;
  66788. 801b200: 6afb ldr r3, [r7, #44] @ 0x2c
  66789. 801b202: 2200 movs r2, #0
  66790. 801b204: f883 2098 strb.w r2, [r3, #152] @ 0x98
  66791. if (pcb->persist_backoff < sizeof(tcp_persist_backoff)) {
  66792. 801b208: 6afb ldr r3, [r7, #44] @ 0x2c
  66793. 801b20a: f893 3099 ldrb.w r3, [r3, #153] @ 0x99
  66794. 801b20e: 2b06 cmp r3, #6
  66795. 801b210: f200 80a2 bhi.w 801b358 <tcp_slowtmr+0x2fc>
  66796. pcb->persist_backoff++;
  66797. 801b214: 6afb ldr r3, [r7, #44] @ 0x2c
  66798. 801b216: f893 3099 ldrb.w r3, [r3, #153] @ 0x99
  66799. 801b21a: 3301 adds r3, #1
  66800. 801b21c: b2da uxtb r2, r3
  66801. 801b21e: 6afb ldr r3, [r7, #44] @ 0x2c
  66802. 801b220: f883 2099 strb.w r2, [r3, #153] @ 0x99
  66803. 801b224: e098 b.n 801b358 <tcp_slowtmr+0x2fc>
  66804. if ((pcb->rtime >= 0) && (pcb->rtime < 0x7FFF)) {
  66805. 801b226: 6afb ldr r3, [r7, #44] @ 0x2c
  66806. 801b228: f9b3 3030 ldrsh.w r3, [r3, #48] @ 0x30
  66807. 801b22c: 2b00 cmp r3, #0
  66808. 801b22e: db0f blt.n 801b250 <tcp_slowtmr+0x1f4>
  66809. 801b230: 6afb ldr r3, [r7, #44] @ 0x2c
  66810. 801b232: f9b3 3030 ldrsh.w r3, [r3, #48] @ 0x30
  66811. 801b236: f647 72ff movw r2, #32767 @ 0x7fff
  66812. 801b23a: 4293 cmp r3, r2
  66813. 801b23c: d008 beq.n 801b250 <tcp_slowtmr+0x1f4>
  66814. ++pcb->rtime;
  66815. 801b23e: 6afb ldr r3, [r7, #44] @ 0x2c
  66816. 801b240: f9b3 3030 ldrsh.w r3, [r3, #48] @ 0x30
  66817. 801b244: b29b uxth r3, r3
  66818. 801b246: 3301 adds r3, #1
  66819. 801b248: b29b uxth r3, r3
  66820. 801b24a: b21a sxth r2, r3
  66821. 801b24c: 6afb ldr r3, [r7, #44] @ 0x2c
  66822. 801b24e: 861a strh r2, [r3, #48] @ 0x30
  66823. if (pcb->rtime >= pcb->rto) {
  66824. 801b250: 6afb ldr r3, [r7, #44] @ 0x2c
  66825. 801b252: f9b3 2030 ldrsh.w r2, [r3, #48] @ 0x30
  66826. 801b256: 6afb ldr r3, [r7, #44] @ 0x2c
  66827. 801b258: f9b3 3040 ldrsh.w r3, [r3, #64] @ 0x40
  66828. 801b25c: 429a cmp r2, r3
  66829. 801b25e: db7b blt.n 801b358 <tcp_slowtmr+0x2fc>
  66830. if ((tcp_rexmit_rto_prepare(pcb) == ERR_OK) || ((pcb->unacked == NULL) && (pcb->unsent != NULL))) {
  66831. 801b260: 6af8 ldr r0, [r7, #44] @ 0x2c
  66832. 801b262: f004 fdbf bl 801fde4 <tcp_rexmit_rto_prepare>
  66833. 801b266: 4603 mov r3, r0
  66834. 801b268: 2b00 cmp r3, #0
  66835. 801b26a: d007 beq.n 801b27c <tcp_slowtmr+0x220>
  66836. 801b26c: 6afb ldr r3, [r7, #44] @ 0x2c
  66837. 801b26e: 6f1b ldr r3, [r3, #112] @ 0x70
  66838. 801b270: 2b00 cmp r3, #0
  66839. 801b272: d171 bne.n 801b358 <tcp_slowtmr+0x2fc>
  66840. 801b274: 6afb ldr r3, [r7, #44] @ 0x2c
  66841. 801b276: 6edb ldr r3, [r3, #108] @ 0x6c
  66842. 801b278: 2b00 cmp r3, #0
  66843. 801b27a: d06d beq.n 801b358 <tcp_slowtmr+0x2fc>
  66844. if (pcb->state != SYN_SENT) {
  66845. 801b27c: 6afb ldr r3, [r7, #44] @ 0x2c
  66846. 801b27e: 7d1b ldrb r3, [r3, #20]
  66847. 801b280: 2b02 cmp r3, #2
  66848. 801b282: d03a beq.n 801b2fa <tcp_slowtmr+0x29e>
  66849. u8_t backoff_idx = LWIP_MIN(pcb->nrtx, sizeof(tcp_backoff) - 1);
  66850. 801b284: 6afb ldr r3, [r7, #44] @ 0x2c
  66851. 801b286: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  66852. 801b28a: 2b0c cmp r3, #12
  66853. 801b28c: bf28 it cs
  66854. 801b28e: 230c movcs r3, #12
  66855. 801b290: 76fb strb r3, [r7, #27]
  66856. int calc_rto = ((pcb->sa >> 3) + pcb->sv) << tcp_backoff[backoff_idx];
  66857. 801b292: 6afb ldr r3, [r7, #44] @ 0x2c
  66858. 801b294: f9b3 303c ldrsh.w r3, [r3, #60] @ 0x3c
  66859. 801b298: 10db asrs r3, r3, #3
  66860. 801b29a: b21b sxth r3, r3
  66861. 801b29c: 461a mov r2, r3
  66862. 801b29e: 6afb ldr r3, [r7, #44] @ 0x2c
  66863. 801b2a0: f9b3 303e ldrsh.w r3, [r3, #62] @ 0x3e
  66864. 801b2a4: 4413 add r3, r2
  66865. 801b2a6: 7efa ldrb r2, [r7, #27]
  66866. 801b2a8: 4910 ldr r1, [pc, #64] @ (801b2ec <tcp_slowtmr+0x290>)
  66867. 801b2aa: 5c8a ldrb r2, [r1, r2]
  66868. 801b2ac: 4093 lsls r3, r2
  66869. 801b2ae: 617b str r3, [r7, #20]
  66870. pcb->rto = (s16_t)LWIP_MIN(calc_rto, 0x7FFF);
  66871. 801b2b0: 697b ldr r3, [r7, #20]
  66872. 801b2b2: f647 72fe movw r2, #32766 @ 0x7ffe
  66873. 801b2b6: 4293 cmp r3, r2
  66874. 801b2b8: dc1a bgt.n 801b2f0 <tcp_slowtmr+0x294>
  66875. 801b2ba: 697b ldr r3, [r7, #20]
  66876. 801b2bc: b21a sxth r2, r3
  66877. 801b2be: e019 b.n 801b2f4 <tcp_slowtmr+0x298>
  66878. 801b2c0: 24029fec .word 0x24029fec
  66879. 801b2c4: 2402a002 .word 0x2402a002
  66880. 801b2c8: 24029ff8 .word 0x24029ff8
  66881. 801b2cc: 0802e13c .word 0x0802e13c
  66882. 801b2d0: 0802e480 .word 0x0802e480
  66883. 801b2d4: 0802e180 .word 0x0802e180
  66884. 801b2d8: 0802e4ac .word 0x0802e4ac
  66885. 801b2dc: 0802e4d8 .word 0x0802e4d8
  66886. 801b2e0: 0802e508 .word 0x0802e508
  66887. 801b2e4: 0802e53c .word 0x0802e53c
  66888. 801b2e8: 08030764 .word 0x08030764
  66889. 801b2ec: 08030754 .word 0x08030754
  66890. 801b2f0: f647 72ff movw r2, #32767 @ 0x7fff
  66891. 801b2f4: 6afb ldr r3, [r7, #44] @ 0x2c
  66892. 801b2f6: f8a3 2040 strh.w r2, [r3, #64] @ 0x40
  66893. pcb->rtime = 0;
  66894. 801b2fa: 6afb ldr r3, [r7, #44] @ 0x2c
  66895. 801b2fc: 2200 movs r2, #0
  66896. 801b2fe: 861a strh r2, [r3, #48] @ 0x30
  66897. eff_wnd = LWIP_MIN(pcb->cwnd, pcb->snd_wnd);
  66898. 801b300: 6afb ldr r3, [r7, #44] @ 0x2c
  66899. 801b302: f8b3 2060 ldrh.w r2, [r3, #96] @ 0x60
  66900. 801b306: 6afb ldr r3, [r7, #44] @ 0x2c
  66901. 801b308: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  66902. 801b30c: 4293 cmp r3, r2
  66903. 801b30e: bf28 it cs
  66904. 801b310: 4613 movcs r3, r2
  66905. 801b312: 827b strh r3, [r7, #18]
  66906. pcb->ssthresh = eff_wnd >> 1;
  66907. 801b314: 8a7b ldrh r3, [r7, #18]
  66908. 801b316: 085b lsrs r3, r3, #1
  66909. 801b318: b29a uxth r2, r3
  66910. 801b31a: 6afb ldr r3, [r7, #44] @ 0x2c
  66911. 801b31c: f8a3 204a strh.w r2, [r3, #74] @ 0x4a
  66912. if (pcb->ssthresh < (tcpwnd_size_t)(pcb->mss << 1)) {
  66913. 801b320: 6afb ldr r3, [r7, #44] @ 0x2c
  66914. 801b322: f8b3 204a ldrh.w r2, [r3, #74] @ 0x4a
  66915. 801b326: 6afb ldr r3, [r7, #44] @ 0x2c
  66916. 801b328: 8e5b ldrh r3, [r3, #50] @ 0x32
  66917. 801b32a: 005b lsls r3, r3, #1
  66918. 801b32c: b29b uxth r3, r3
  66919. 801b32e: 429a cmp r2, r3
  66920. 801b330: d206 bcs.n 801b340 <tcp_slowtmr+0x2e4>
  66921. pcb->ssthresh = (tcpwnd_size_t)(pcb->mss << 1);
  66922. 801b332: 6afb ldr r3, [r7, #44] @ 0x2c
  66923. 801b334: 8e5b ldrh r3, [r3, #50] @ 0x32
  66924. 801b336: 005b lsls r3, r3, #1
  66925. 801b338: b29a uxth r2, r3
  66926. 801b33a: 6afb ldr r3, [r7, #44] @ 0x2c
  66927. 801b33c: f8a3 204a strh.w r2, [r3, #74] @ 0x4a
  66928. pcb->cwnd = pcb->mss;
  66929. 801b340: 6afb ldr r3, [r7, #44] @ 0x2c
  66930. 801b342: 8e5a ldrh r2, [r3, #50] @ 0x32
  66931. 801b344: 6afb ldr r3, [r7, #44] @ 0x2c
  66932. 801b346: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  66933. pcb->bytes_acked = 0;
  66934. 801b34a: 6afb ldr r3, [r7, #44] @ 0x2c
  66935. 801b34c: 2200 movs r2, #0
  66936. 801b34e: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  66937. tcp_rexmit_rto_commit(pcb);
  66938. 801b352: 6af8 ldr r0, [r7, #44] @ 0x2c
  66939. 801b354: f004 fdc0 bl 801fed8 <tcp_rexmit_rto_commit>
  66940. if (pcb->state == FIN_WAIT_2) {
  66941. 801b358: 6afb ldr r3, [r7, #44] @ 0x2c
  66942. 801b35a: 7d1b ldrb r3, [r3, #20]
  66943. 801b35c: 2b06 cmp r3, #6
  66944. 801b35e: d111 bne.n 801b384 <tcp_slowtmr+0x328>
  66945. if (pcb->flags & TF_RXCLOSED) {
  66946. 801b360: 6afb ldr r3, [r7, #44] @ 0x2c
  66947. 801b362: 8b5b ldrh r3, [r3, #26]
  66948. 801b364: f003 0310 and.w r3, r3, #16
  66949. 801b368: 2b00 cmp r3, #0
  66950. 801b36a: d00b beq.n 801b384 <tcp_slowtmr+0x328>
  66951. if ((u32_t)(tcp_ticks - pcb->tmr) >
  66952. 801b36c: 4b9c ldr r3, [pc, #624] @ (801b5e0 <tcp_slowtmr+0x584>)
  66953. 801b36e: 681a ldr r2, [r3, #0]
  66954. 801b370: 6afb ldr r3, [r7, #44] @ 0x2c
  66955. 801b372: 6a1b ldr r3, [r3, #32]
  66956. 801b374: 1ad3 subs r3, r2, r3
  66957. 801b376: 2b28 cmp r3, #40 @ 0x28
  66958. 801b378: d904 bls.n 801b384 <tcp_slowtmr+0x328>
  66959. ++pcb_remove;
  66960. 801b37a: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  66961. 801b37e: 3301 adds r3, #1
  66962. 801b380: f887 3027 strb.w r3, [r7, #39] @ 0x27
  66963. if (ip_get_option(pcb, SOF_KEEPALIVE) &&
  66964. 801b384: 6afb ldr r3, [r7, #44] @ 0x2c
  66965. 801b386: 7a5b ldrb r3, [r3, #9]
  66966. 801b388: f003 0308 and.w r3, r3, #8
  66967. 801b38c: 2b00 cmp r3, #0
  66968. 801b38e: d04a beq.n 801b426 <tcp_slowtmr+0x3ca>
  66969. ((pcb->state == ESTABLISHED) ||
  66970. 801b390: 6afb ldr r3, [r7, #44] @ 0x2c
  66971. 801b392: 7d1b ldrb r3, [r3, #20]
  66972. if (ip_get_option(pcb, SOF_KEEPALIVE) &&
  66973. 801b394: 2b04 cmp r3, #4
  66974. 801b396: d003 beq.n 801b3a0 <tcp_slowtmr+0x344>
  66975. (pcb->state == CLOSE_WAIT))) {
  66976. 801b398: 6afb ldr r3, [r7, #44] @ 0x2c
  66977. 801b39a: 7d1b ldrb r3, [r3, #20]
  66978. ((pcb->state == ESTABLISHED) ||
  66979. 801b39c: 2b07 cmp r3, #7
  66980. 801b39e: d142 bne.n 801b426 <tcp_slowtmr+0x3ca>
  66981. if ((u32_t)(tcp_ticks - pcb->tmr) >
  66982. 801b3a0: 4b8f ldr r3, [pc, #572] @ (801b5e0 <tcp_slowtmr+0x584>)
  66983. 801b3a2: 681a ldr r2, [r3, #0]
  66984. 801b3a4: 6afb ldr r3, [r7, #44] @ 0x2c
  66985. 801b3a6: 6a1b ldr r3, [r3, #32]
  66986. 801b3a8: 1ad2 subs r2, r2, r3
  66987. (pcb->keep_idle + TCP_KEEP_DUR(pcb)) / TCP_SLOW_INTERVAL) {
  66988. 801b3aa: 6afb ldr r3, [r7, #44] @ 0x2c
  66989. 801b3ac: f8d3 1094 ldr.w r1, [r3, #148] @ 0x94
  66990. 801b3b0: 4b8c ldr r3, [pc, #560] @ (801b5e4 <tcp_slowtmr+0x588>)
  66991. 801b3b2: 440b add r3, r1
  66992. 801b3b4: 498c ldr r1, [pc, #560] @ (801b5e8 <tcp_slowtmr+0x58c>)
  66993. 801b3b6: fba1 1303 umull r1, r3, r1, r3
  66994. 801b3ba: 095b lsrs r3, r3, #5
  66995. if ((u32_t)(tcp_ticks - pcb->tmr) >
  66996. 801b3bc: 429a cmp r2, r3
  66997. 801b3be: d90a bls.n 801b3d6 <tcp_slowtmr+0x37a>
  66998. ++pcb_remove;
  66999. 801b3c0: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  67000. 801b3c4: 3301 adds r3, #1
  67001. 801b3c6: f887 3027 strb.w r3, [r7, #39] @ 0x27
  67002. ++pcb_reset;
  67003. 801b3ca: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  67004. 801b3ce: 3301 adds r3, #1
  67005. 801b3d0: f887 3026 strb.w r3, [r7, #38] @ 0x26
  67006. 801b3d4: e027 b.n 801b426 <tcp_slowtmr+0x3ca>
  67007. } else if ((u32_t)(tcp_ticks - pcb->tmr) >
  67008. 801b3d6: 4b82 ldr r3, [pc, #520] @ (801b5e0 <tcp_slowtmr+0x584>)
  67009. 801b3d8: 681a ldr r2, [r3, #0]
  67010. 801b3da: 6afb ldr r3, [r7, #44] @ 0x2c
  67011. 801b3dc: 6a1b ldr r3, [r3, #32]
  67012. 801b3de: 1ad2 subs r2, r2, r3
  67013. (pcb->keep_idle + pcb->keep_cnt_sent * TCP_KEEP_INTVL(pcb))
  67014. 801b3e0: 6afb ldr r3, [r7, #44] @ 0x2c
  67015. 801b3e2: f8d3 1094 ldr.w r1, [r3, #148] @ 0x94
  67016. 801b3e6: 6afb ldr r3, [r7, #44] @ 0x2c
  67017. 801b3e8: f893 309b ldrb.w r3, [r3, #155] @ 0x9b
  67018. 801b3ec: 4618 mov r0, r3
  67019. 801b3ee: 4b7f ldr r3, [pc, #508] @ (801b5ec <tcp_slowtmr+0x590>)
  67020. 801b3f0: fb00 f303 mul.w r3, r0, r3
  67021. 801b3f4: 440b add r3, r1
  67022. / TCP_SLOW_INTERVAL) {
  67023. 801b3f6: 497c ldr r1, [pc, #496] @ (801b5e8 <tcp_slowtmr+0x58c>)
  67024. 801b3f8: fba1 1303 umull r1, r3, r1, r3
  67025. 801b3fc: 095b lsrs r3, r3, #5
  67026. } else if ((u32_t)(tcp_ticks - pcb->tmr) >
  67027. 801b3fe: 429a cmp r2, r3
  67028. 801b400: d911 bls.n 801b426 <tcp_slowtmr+0x3ca>
  67029. err = tcp_keepalive(pcb);
  67030. 801b402: 6af8 ldr r0, [r7, #44] @ 0x2c
  67031. 801b404: f005 f86c bl 80204e0 <tcp_keepalive>
  67032. 801b408: 4603 mov r3, r0
  67033. 801b40a: f887 3025 strb.w r3, [r7, #37] @ 0x25
  67034. if (err == ERR_OK) {
  67035. 801b40e: f997 3025 ldrsb.w r3, [r7, #37] @ 0x25
  67036. 801b412: 2b00 cmp r3, #0
  67037. 801b414: d107 bne.n 801b426 <tcp_slowtmr+0x3ca>
  67038. pcb->keep_cnt_sent++;
  67039. 801b416: 6afb ldr r3, [r7, #44] @ 0x2c
  67040. 801b418: f893 309b ldrb.w r3, [r3, #155] @ 0x9b
  67041. 801b41c: 3301 adds r3, #1
  67042. 801b41e: b2da uxtb r2, r3
  67043. 801b420: 6afb ldr r3, [r7, #44] @ 0x2c
  67044. 801b422: f883 209b strb.w r2, [r3, #155] @ 0x9b
  67045. if (pcb->ooseq != NULL &&
  67046. 801b426: 6afb ldr r3, [r7, #44] @ 0x2c
  67047. 801b428: 6f5b ldr r3, [r3, #116] @ 0x74
  67048. 801b42a: 2b00 cmp r3, #0
  67049. 801b42c: d011 beq.n 801b452 <tcp_slowtmr+0x3f6>
  67050. (tcp_ticks - pcb->tmr >= (u32_t)pcb->rto * TCP_OOSEQ_TIMEOUT)) {
  67051. 801b42e: 4b6c ldr r3, [pc, #432] @ (801b5e0 <tcp_slowtmr+0x584>)
  67052. 801b430: 681a ldr r2, [r3, #0]
  67053. 801b432: 6afb ldr r3, [r7, #44] @ 0x2c
  67054. 801b434: 6a1b ldr r3, [r3, #32]
  67055. 801b436: 1ad2 subs r2, r2, r3
  67056. 801b438: 6afb ldr r3, [r7, #44] @ 0x2c
  67057. 801b43a: f9b3 3040 ldrsh.w r3, [r3, #64] @ 0x40
  67058. 801b43e: 4619 mov r1, r3
  67059. 801b440: 460b mov r3, r1
  67060. 801b442: 005b lsls r3, r3, #1
  67061. 801b444: 440b add r3, r1
  67062. 801b446: 005b lsls r3, r3, #1
  67063. if (pcb->ooseq != NULL &&
  67064. 801b448: 429a cmp r2, r3
  67065. 801b44a: d302 bcc.n 801b452 <tcp_slowtmr+0x3f6>
  67066. tcp_free_ooseq(pcb);
  67067. 801b44c: 6af8 ldr r0, [r7, #44] @ 0x2c
  67068. 801b44e: f000 feb7 bl 801c1c0 <tcp_free_ooseq>
  67069. if (pcb->state == SYN_RCVD) {
  67070. 801b452: 6afb ldr r3, [r7, #44] @ 0x2c
  67071. 801b454: 7d1b ldrb r3, [r3, #20]
  67072. 801b456: 2b03 cmp r3, #3
  67073. 801b458: d10b bne.n 801b472 <tcp_slowtmr+0x416>
  67074. if ((u32_t)(tcp_ticks - pcb->tmr) >
  67075. 801b45a: 4b61 ldr r3, [pc, #388] @ (801b5e0 <tcp_slowtmr+0x584>)
  67076. 801b45c: 681a ldr r2, [r3, #0]
  67077. 801b45e: 6afb ldr r3, [r7, #44] @ 0x2c
  67078. 801b460: 6a1b ldr r3, [r3, #32]
  67079. 801b462: 1ad3 subs r3, r2, r3
  67080. 801b464: 2b28 cmp r3, #40 @ 0x28
  67081. 801b466: d904 bls.n 801b472 <tcp_slowtmr+0x416>
  67082. ++pcb_remove;
  67083. 801b468: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  67084. 801b46c: 3301 adds r3, #1
  67085. 801b46e: f887 3027 strb.w r3, [r7, #39] @ 0x27
  67086. if (pcb->state == LAST_ACK) {
  67087. 801b472: 6afb ldr r3, [r7, #44] @ 0x2c
  67088. 801b474: 7d1b ldrb r3, [r3, #20]
  67089. 801b476: 2b09 cmp r3, #9
  67090. 801b478: d10b bne.n 801b492 <tcp_slowtmr+0x436>
  67091. if ((u32_t)(tcp_ticks - pcb->tmr) > 2 * TCP_MSL / TCP_SLOW_INTERVAL) {
  67092. 801b47a: 4b59 ldr r3, [pc, #356] @ (801b5e0 <tcp_slowtmr+0x584>)
  67093. 801b47c: 681a ldr r2, [r3, #0]
  67094. 801b47e: 6afb ldr r3, [r7, #44] @ 0x2c
  67095. 801b480: 6a1b ldr r3, [r3, #32]
  67096. 801b482: 1ad3 subs r3, r2, r3
  67097. 801b484: 2bf0 cmp r3, #240 @ 0xf0
  67098. 801b486: d904 bls.n 801b492 <tcp_slowtmr+0x436>
  67099. ++pcb_remove;
  67100. 801b488: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  67101. 801b48c: 3301 adds r3, #1
  67102. 801b48e: f887 3027 strb.w r3, [r7, #39] @ 0x27
  67103. if (pcb_remove) {
  67104. 801b492: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  67105. 801b496: 2b00 cmp r3, #0
  67106. 801b498: d060 beq.n 801b55c <tcp_slowtmr+0x500>
  67107. tcp_err_fn err_fn = pcb->errf;
  67108. 801b49a: 6afb ldr r3, [r7, #44] @ 0x2c
  67109. 801b49c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  67110. 801b4a0: 60fb str r3, [r7, #12]
  67111. tcp_pcb_purge(pcb);
  67112. 801b4a2: 6af8 ldr r0, [r7, #44] @ 0x2c
  67113. 801b4a4: f000 fcd8 bl 801be58 <tcp_pcb_purge>
  67114. if (prev != NULL) {
  67115. 801b4a8: 6abb ldr r3, [r7, #40] @ 0x28
  67116. 801b4aa: 2b00 cmp r3, #0
  67117. 801b4ac: d010 beq.n 801b4d0 <tcp_slowtmr+0x474>
  67118. LWIP_ASSERT("tcp_slowtmr: middle tcp != tcp_active_pcbs", pcb != tcp_active_pcbs);
  67119. 801b4ae: 4b50 ldr r3, [pc, #320] @ (801b5f0 <tcp_slowtmr+0x594>)
  67120. 801b4b0: 681b ldr r3, [r3, #0]
  67121. 801b4b2: 6afa ldr r2, [r7, #44] @ 0x2c
  67122. 801b4b4: 429a cmp r2, r3
  67123. 801b4b6: d106 bne.n 801b4c6 <tcp_slowtmr+0x46a>
  67124. 801b4b8: 4b4e ldr r3, [pc, #312] @ (801b5f4 <tcp_slowtmr+0x598>)
  67125. 801b4ba: f240 526d movw r2, #1389 @ 0x56d
  67126. 801b4be: 494e ldr r1, [pc, #312] @ (801b5f8 <tcp_slowtmr+0x59c>)
  67127. 801b4c0: 484e ldr r0, [pc, #312] @ (801b5fc <tcp_slowtmr+0x5a0>)
  67128. 801b4c2: f00e f823 bl 802950c <iprintf>
  67129. prev->next = pcb->next;
  67130. 801b4c6: 6afb ldr r3, [r7, #44] @ 0x2c
  67131. 801b4c8: 68da ldr r2, [r3, #12]
  67132. 801b4ca: 6abb ldr r3, [r7, #40] @ 0x28
  67133. 801b4cc: 60da str r2, [r3, #12]
  67134. 801b4ce: e00f b.n 801b4f0 <tcp_slowtmr+0x494>
  67135. LWIP_ASSERT("tcp_slowtmr: first pcb == tcp_active_pcbs", tcp_active_pcbs == pcb);
  67136. 801b4d0: 4b47 ldr r3, [pc, #284] @ (801b5f0 <tcp_slowtmr+0x594>)
  67137. 801b4d2: 681b ldr r3, [r3, #0]
  67138. 801b4d4: 6afa ldr r2, [r7, #44] @ 0x2c
  67139. 801b4d6: 429a cmp r2, r3
  67140. 801b4d8: d006 beq.n 801b4e8 <tcp_slowtmr+0x48c>
  67141. 801b4da: 4b46 ldr r3, [pc, #280] @ (801b5f4 <tcp_slowtmr+0x598>)
  67142. 801b4dc: f240 5271 movw r2, #1393 @ 0x571
  67143. 801b4e0: 4947 ldr r1, [pc, #284] @ (801b600 <tcp_slowtmr+0x5a4>)
  67144. 801b4e2: 4846 ldr r0, [pc, #280] @ (801b5fc <tcp_slowtmr+0x5a0>)
  67145. 801b4e4: f00e f812 bl 802950c <iprintf>
  67146. tcp_active_pcbs = pcb->next;
  67147. 801b4e8: 6afb ldr r3, [r7, #44] @ 0x2c
  67148. 801b4ea: 68db ldr r3, [r3, #12]
  67149. 801b4ec: 4a40 ldr r2, [pc, #256] @ (801b5f0 <tcp_slowtmr+0x594>)
  67150. 801b4ee: 6013 str r3, [r2, #0]
  67151. if (pcb_reset) {
  67152. 801b4f0: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  67153. 801b4f4: 2b00 cmp r3, #0
  67154. 801b4f6: d013 beq.n 801b520 <tcp_slowtmr+0x4c4>
  67155. tcp_rst(pcb, pcb->snd_nxt, pcb->rcv_nxt, &pcb->local_ip, &pcb->remote_ip,
  67156. 801b4f8: 6afb ldr r3, [r7, #44] @ 0x2c
  67157. 801b4fa: 6d18 ldr r0, [r3, #80] @ 0x50
  67158. 801b4fc: 6afb ldr r3, [r7, #44] @ 0x2c
  67159. 801b4fe: 6a5c ldr r4, [r3, #36] @ 0x24
  67160. 801b500: 6afd ldr r5, [r7, #44] @ 0x2c
  67161. 801b502: 6afb ldr r3, [r7, #44] @ 0x2c
  67162. 801b504: 3304 adds r3, #4
  67163. 801b506: 6afa ldr r2, [r7, #44] @ 0x2c
  67164. 801b508: 8ad2 ldrh r2, [r2, #22]
  67165. 801b50a: 6af9 ldr r1, [r7, #44] @ 0x2c
  67166. 801b50c: 8b09 ldrh r1, [r1, #24]
  67167. 801b50e: 9102 str r1, [sp, #8]
  67168. 801b510: 9201 str r2, [sp, #4]
  67169. 801b512: 9300 str r3, [sp, #0]
  67170. 801b514: 462b mov r3, r5
  67171. 801b516: 4622 mov r2, r4
  67172. 801b518: 4601 mov r1, r0
  67173. 801b51a: 6af8 ldr r0, [r7, #44] @ 0x2c
  67174. 801b51c: f004 ff2c bl 8020378 <tcp_rst>
  67175. err_arg = pcb->callback_arg;
  67176. 801b520: 6afb ldr r3, [r7, #44] @ 0x2c
  67177. 801b522: 691b ldr r3, [r3, #16]
  67178. 801b524: 60bb str r3, [r7, #8]
  67179. last_state = pcb->state;
  67180. 801b526: 6afb ldr r3, [r7, #44] @ 0x2c
  67181. 801b528: 7d1b ldrb r3, [r3, #20]
  67182. 801b52a: 71fb strb r3, [r7, #7]
  67183. pcb2 = pcb;
  67184. 801b52c: 6afb ldr r3, [r7, #44] @ 0x2c
  67185. 801b52e: 603b str r3, [r7, #0]
  67186. pcb = pcb->next;
  67187. 801b530: 6afb ldr r3, [r7, #44] @ 0x2c
  67188. 801b532: 68db ldr r3, [r3, #12]
  67189. 801b534: 62fb str r3, [r7, #44] @ 0x2c
  67190. tcp_free(pcb2);
  67191. 801b536: 6838 ldr r0, [r7, #0]
  67192. 801b538: f7ff f82c bl 801a594 <tcp_free>
  67193. tcp_active_pcbs_changed = 0;
  67194. 801b53c: 4b31 ldr r3, [pc, #196] @ (801b604 <tcp_slowtmr+0x5a8>)
  67195. 801b53e: 2200 movs r2, #0
  67196. 801b540: 701a strb r2, [r3, #0]
  67197. TCP_EVENT_ERR(last_state, err_fn, err_arg, ERR_ABRT);
  67198. 801b542: 68fb ldr r3, [r7, #12]
  67199. 801b544: 2b00 cmp r3, #0
  67200. 801b546: d004 beq.n 801b552 <tcp_slowtmr+0x4f6>
  67201. 801b548: 68fb ldr r3, [r7, #12]
  67202. 801b54a: f06f 010c mvn.w r1, #12
  67203. 801b54e: 68b8 ldr r0, [r7, #8]
  67204. 801b550: 4798 blx r3
  67205. if (tcp_active_pcbs_changed) {
  67206. 801b552: 4b2c ldr r3, [pc, #176] @ (801b604 <tcp_slowtmr+0x5a8>)
  67207. 801b554: 781b ldrb r3, [r3, #0]
  67208. 801b556: 2b00 cmp r3, #0
  67209. 801b558: d037 beq.n 801b5ca <tcp_slowtmr+0x56e>
  67210. goto tcp_slowtmr_start;
  67211. 801b55a: e592 b.n 801b082 <tcp_slowtmr+0x26>
  67212. prev = pcb;
  67213. 801b55c: 6afb ldr r3, [r7, #44] @ 0x2c
  67214. 801b55e: 62bb str r3, [r7, #40] @ 0x28
  67215. pcb = pcb->next;
  67216. 801b560: 6afb ldr r3, [r7, #44] @ 0x2c
  67217. 801b562: 68db ldr r3, [r3, #12]
  67218. 801b564: 62fb str r3, [r7, #44] @ 0x2c
  67219. ++prev->polltmr;
  67220. 801b566: 6abb ldr r3, [r7, #40] @ 0x28
  67221. 801b568: 7f1b ldrb r3, [r3, #28]
  67222. 801b56a: 3301 adds r3, #1
  67223. 801b56c: b2da uxtb r2, r3
  67224. 801b56e: 6abb ldr r3, [r7, #40] @ 0x28
  67225. 801b570: 771a strb r2, [r3, #28]
  67226. if (prev->polltmr >= prev->pollinterval) {
  67227. 801b572: 6abb ldr r3, [r7, #40] @ 0x28
  67228. 801b574: 7f1a ldrb r2, [r3, #28]
  67229. 801b576: 6abb ldr r3, [r7, #40] @ 0x28
  67230. 801b578: 7f5b ldrb r3, [r3, #29]
  67231. 801b57a: 429a cmp r2, r3
  67232. 801b57c: d325 bcc.n 801b5ca <tcp_slowtmr+0x56e>
  67233. prev->polltmr = 0;
  67234. 801b57e: 6abb ldr r3, [r7, #40] @ 0x28
  67235. 801b580: 2200 movs r2, #0
  67236. 801b582: 771a strb r2, [r3, #28]
  67237. tcp_active_pcbs_changed = 0;
  67238. 801b584: 4b1f ldr r3, [pc, #124] @ (801b604 <tcp_slowtmr+0x5a8>)
  67239. 801b586: 2200 movs r2, #0
  67240. 801b588: 701a strb r2, [r3, #0]
  67241. TCP_EVENT_POLL(prev, err);
  67242. 801b58a: 6abb ldr r3, [r7, #40] @ 0x28
  67243. 801b58c: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  67244. 801b590: 2b00 cmp r3, #0
  67245. 801b592: d00b beq.n 801b5ac <tcp_slowtmr+0x550>
  67246. 801b594: 6abb ldr r3, [r7, #40] @ 0x28
  67247. 801b596: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  67248. 801b59a: 6aba ldr r2, [r7, #40] @ 0x28
  67249. 801b59c: 6912 ldr r2, [r2, #16]
  67250. 801b59e: 6ab9 ldr r1, [r7, #40] @ 0x28
  67251. 801b5a0: 4610 mov r0, r2
  67252. 801b5a2: 4798 blx r3
  67253. 801b5a4: 4603 mov r3, r0
  67254. 801b5a6: f887 3025 strb.w r3, [r7, #37] @ 0x25
  67255. 801b5aa: e002 b.n 801b5b2 <tcp_slowtmr+0x556>
  67256. 801b5ac: 2300 movs r3, #0
  67257. 801b5ae: f887 3025 strb.w r3, [r7, #37] @ 0x25
  67258. if (tcp_active_pcbs_changed) {
  67259. 801b5b2: 4b14 ldr r3, [pc, #80] @ (801b604 <tcp_slowtmr+0x5a8>)
  67260. 801b5b4: 781b ldrb r3, [r3, #0]
  67261. 801b5b6: 2b00 cmp r3, #0
  67262. 801b5b8: f47f ad62 bne.w 801b080 <tcp_slowtmr+0x24>
  67263. }
  67264. /* if err == ERR_ABRT, 'prev' is already deallocated */
  67265. if (err == ERR_OK) {
  67266. 801b5bc: f997 3025 ldrsb.w r3, [r7, #37] @ 0x25
  67267. 801b5c0: 2b00 cmp r3, #0
  67268. 801b5c2: d102 bne.n 801b5ca <tcp_slowtmr+0x56e>
  67269. tcp_output(prev);
  67270. 801b5c4: 6ab8 ldr r0, [r7, #40] @ 0x28
  67271. 801b5c6: f004 f915 bl 801f7f4 <tcp_output>
  67272. while (pcb != NULL) {
  67273. 801b5ca: 6afb ldr r3, [r7, #44] @ 0x2c
  67274. 801b5cc: 2b00 cmp r3, #0
  67275. 801b5ce: f47f ad5e bne.w 801b08e <tcp_slowtmr+0x32>
  67276. }
  67277. }
  67278. /* Steps through all of the TIME-WAIT PCBs. */
  67279. prev = NULL;
  67280. 801b5d2: 2300 movs r3, #0
  67281. 801b5d4: 62bb str r3, [r7, #40] @ 0x28
  67282. pcb = tcp_tw_pcbs;
  67283. 801b5d6: 4b0c ldr r3, [pc, #48] @ (801b608 <tcp_slowtmr+0x5ac>)
  67284. 801b5d8: 681b ldr r3, [r3, #0]
  67285. 801b5da: 62fb str r3, [r7, #44] @ 0x2c
  67286. while (pcb != NULL) {
  67287. 801b5dc: e069 b.n 801b6b2 <tcp_slowtmr+0x656>
  67288. 801b5de: bf00 nop
  67289. 801b5e0: 24029fec .word 0x24029fec
  67290. 801b5e4: 000a4cb8 .word 0x000a4cb8
  67291. 801b5e8: 10624dd3 .word 0x10624dd3
  67292. 801b5ec: 000124f8 .word 0x000124f8
  67293. 801b5f0: 24029ff8 .word 0x24029ff8
  67294. 801b5f4: 0802e13c .word 0x0802e13c
  67295. 801b5f8: 0802e574 .word 0x0802e574
  67296. 801b5fc: 0802e180 .word 0x0802e180
  67297. 801b600: 0802e5a0 .word 0x0802e5a0
  67298. 801b604: 2402a000 .word 0x2402a000
  67299. 801b608: 24029ffc .word 0x24029ffc
  67300. LWIP_ASSERT("tcp_slowtmr: TIME-WAIT pcb->state == TIME-WAIT", pcb->state == TIME_WAIT);
  67301. 801b60c: 6afb ldr r3, [r7, #44] @ 0x2c
  67302. 801b60e: 7d1b ldrb r3, [r3, #20]
  67303. 801b610: 2b0a cmp r3, #10
  67304. 801b612: d006 beq.n 801b622 <tcp_slowtmr+0x5c6>
  67305. 801b614: 4b2b ldr r3, [pc, #172] @ (801b6c4 <tcp_slowtmr+0x668>)
  67306. 801b616: f240 52a1 movw r2, #1441 @ 0x5a1
  67307. 801b61a: 492b ldr r1, [pc, #172] @ (801b6c8 <tcp_slowtmr+0x66c>)
  67308. 801b61c: 482b ldr r0, [pc, #172] @ (801b6cc <tcp_slowtmr+0x670>)
  67309. 801b61e: f00d ff75 bl 802950c <iprintf>
  67310. pcb_remove = 0;
  67311. 801b622: 2300 movs r3, #0
  67312. 801b624: f887 3027 strb.w r3, [r7, #39] @ 0x27
  67313. /* Check if this PCB has stayed long enough in TIME-WAIT */
  67314. if ((u32_t)(tcp_ticks - pcb->tmr) > 2 * TCP_MSL / TCP_SLOW_INTERVAL) {
  67315. 801b628: 4b29 ldr r3, [pc, #164] @ (801b6d0 <tcp_slowtmr+0x674>)
  67316. 801b62a: 681a ldr r2, [r3, #0]
  67317. 801b62c: 6afb ldr r3, [r7, #44] @ 0x2c
  67318. 801b62e: 6a1b ldr r3, [r3, #32]
  67319. 801b630: 1ad3 subs r3, r2, r3
  67320. 801b632: 2bf0 cmp r3, #240 @ 0xf0
  67321. 801b634: d904 bls.n 801b640 <tcp_slowtmr+0x5e4>
  67322. ++pcb_remove;
  67323. 801b636: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  67324. 801b63a: 3301 adds r3, #1
  67325. 801b63c: f887 3027 strb.w r3, [r7, #39] @ 0x27
  67326. }
  67327. /* If the PCB should be removed, do it. */
  67328. if (pcb_remove) {
  67329. 801b640: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  67330. 801b644: 2b00 cmp r3, #0
  67331. 801b646: d02f beq.n 801b6a8 <tcp_slowtmr+0x64c>
  67332. struct tcp_pcb *pcb2;
  67333. tcp_pcb_purge(pcb);
  67334. 801b648: 6af8 ldr r0, [r7, #44] @ 0x2c
  67335. 801b64a: f000 fc05 bl 801be58 <tcp_pcb_purge>
  67336. /* Remove PCB from tcp_tw_pcbs list. */
  67337. if (prev != NULL) {
  67338. 801b64e: 6abb ldr r3, [r7, #40] @ 0x28
  67339. 801b650: 2b00 cmp r3, #0
  67340. 801b652: d010 beq.n 801b676 <tcp_slowtmr+0x61a>
  67341. LWIP_ASSERT("tcp_slowtmr: middle tcp != tcp_tw_pcbs", pcb != tcp_tw_pcbs);
  67342. 801b654: 4b1f ldr r3, [pc, #124] @ (801b6d4 <tcp_slowtmr+0x678>)
  67343. 801b656: 681b ldr r3, [r3, #0]
  67344. 801b658: 6afa ldr r2, [r7, #44] @ 0x2c
  67345. 801b65a: 429a cmp r2, r3
  67346. 801b65c: d106 bne.n 801b66c <tcp_slowtmr+0x610>
  67347. 801b65e: 4b19 ldr r3, [pc, #100] @ (801b6c4 <tcp_slowtmr+0x668>)
  67348. 801b660: f240 52af movw r2, #1455 @ 0x5af
  67349. 801b664: 491c ldr r1, [pc, #112] @ (801b6d8 <tcp_slowtmr+0x67c>)
  67350. 801b666: 4819 ldr r0, [pc, #100] @ (801b6cc <tcp_slowtmr+0x670>)
  67351. 801b668: f00d ff50 bl 802950c <iprintf>
  67352. prev->next = pcb->next;
  67353. 801b66c: 6afb ldr r3, [r7, #44] @ 0x2c
  67354. 801b66e: 68da ldr r2, [r3, #12]
  67355. 801b670: 6abb ldr r3, [r7, #40] @ 0x28
  67356. 801b672: 60da str r2, [r3, #12]
  67357. 801b674: e00f b.n 801b696 <tcp_slowtmr+0x63a>
  67358. } else {
  67359. /* This PCB was the first. */
  67360. LWIP_ASSERT("tcp_slowtmr: first pcb == tcp_tw_pcbs", tcp_tw_pcbs == pcb);
  67361. 801b676: 4b17 ldr r3, [pc, #92] @ (801b6d4 <tcp_slowtmr+0x678>)
  67362. 801b678: 681b ldr r3, [r3, #0]
  67363. 801b67a: 6afa ldr r2, [r7, #44] @ 0x2c
  67364. 801b67c: 429a cmp r2, r3
  67365. 801b67e: d006 beq.n 801b68e <tcp_slowtmr+0x632>
  67366. 801b680: 4b10 ldr r3, [pc, #64] @ (801b6c4 <tcp_slowtmr+0x668>)
  67367. 801b682: f240 52b3 movw r2, #1459 @ 0x5b3
  67368. 801b686: 4915 ldr r1, [pc, #84] @ (801b6dc <tcp_slowtmr+0x680>)
  67369. 801b688: 4810 ldr r0, [pc, #64] @ (801b6cc <tcp_slowtmr+0x670>)
  67370. 801b68a: f00d ff3f bl 802950c <iprintf>
  67371. tcp_tw_pcbs = pcb->next;
  67372. 801b68e: 6afb ldr r3, [r7, #44] @ 0x2c
  67373. 801b690: 68db ldr r3, [r3, #12]
  67374. 801b692: 4a10 ldr r2, [pc, #64] @ (801b6d4 <tcp_slowtmr+0x678>)
  67375. 801b694: 6013 str r3, [r2, #0]
  67376. }
  67377. pcb2 = pcb;
  67378. 801b696: 6afb ldr r3, [r7, #44] @ 0x2c
  67379. 801b698: 61fb str r3, [r7, #28]
  67380. pcb = pcb->next;
  67381. 801b69a: 6afb ldr r3, [r7, #44] @ 0x2c
  67382. 801b69c: 68db ldr r3, [r3, #12]
  67383. 801b69e: 62fb str r3, [r7, #44] @ 0x2c
  67384. tcp_free(pcb2);
  67385. 801b6a0: 69f8 ldr r0, [r7, #28]
  67386. 801b6a2: f7fe ff77 bl 801a594 <tcp_free>
  67387. 801b6a6: e004 b.n 801b6b2 <tcp_slowtmr+0x656>
  67388. } else {
  67389. prev = pcb;
  67390. 801b6a8: 6afb ldr r3, [r7, #44] @ 0x2c
  67391. 801b6aa: 62bb str r3, [r7, #40] @ 0x28
  67392. pcb = pcb->next;
  67393. 801b6ac: 6afb ldr r3, [r7, #44] @ 0x2c
  67394. 801b6ae: 68db ldr r3, [r3, #12]
  67395. 801b6b0: 62fb str r3, [r7, #44] @ 0x2c
  67396. while (pcb != NULL) {
  67397. 801b6b2: 6afb ldr r3, [r7, #44] @ 0x2c
  67398. 801b6b4: 2b00 cmp r3, #0
  67399. 801b6b6: d1a9 bne.n 801b60c <tcp_slowtmr+0x5b0>
  67400. }
  67401. }
  67402. }
  67403. 801b6b8: bf00 nop
  67404. 801b6ba: bf00 nop
  67405. 801b6bc: 3730 adds r7, #48 @ 0x30
  67406. 801b6be: 46bd mov sp, r7
  67407. 801b6c0: bdb0 pop {r4, r5, r7, pc}
  67408. 801b6c2: bf00 nop
  67409. 801b6c4: 0802e13c .word 0x0802e13c
  67410. 801b6c8: 0802e5cc .word 0x0802e5cc
  67411. 801b6cc: 0802e180 .word 0x0802e180
  67412. 801b6d0: 24029fec .word 0x24029fec
  67413. 801b6d4: 24029ffc .word 0x24029ffc
  67414. 801b6d8: 0802e5fc .word 0x0802e5fc
  67415. 801b6dc: 0802e624 .word 0x0802e624
  67416. 0801b6e0 <tcp_fasttmr>:
  67417. *
  67418. * Automatically called from tcp_tmr().
  67419. */
  67420. void
  67421. tcp_fasttmr(void)
  67422. {
  67423. 801b6e0: b580 push {r7, lr}
  67424. 801b6e2: b082 sub sp, #8
  67425. 801b6e4: af00 add r7, sp, #0
  67426. struct tcp_pcb *pcb;
  67427. ++tcp_timer_ctr;
  67428. 801b6e6: 4b2d ldr r3, [pc, #180] @ (801b79c <tcp_fasttmr+0xbc>)
  67429. 801b6e8: 781b ldrb r3, [r3, #0]
  67430. 801b6ea: 3301 adds r3, #1
  67431. 801b6ec: b2da uxtb r2, r3
  67432. 801b6ee: 4b2b ldr r3, [pc, #172] @ (801b79c <tcp_fasttmr+0xbc>)
  67433. 801b6f0: 701a strb r2, [r3, #0]
  67434. tcp_fasttmr_start:
  67435. pcb = tcp_active_pcbs;
  67436. 801b6f2: 4b2b ldr r3, [pc, #172] @ (801b7a0 <tcp_fasttmr+0xc0>)
  67437. 801b6f4: 681b ldr r3, [r3, #0]
  67438. 801b6f6: 607b str r3, [r7, #4]
  67439. while (pcb != NULL) {
  67440. 801b6f8: e048 b.n 801b78c <tcp_fasttmr+0xac>
  67441. if (pcb->last_timer != tcp_timer_ctr) {
  67442. 801b6fa: 687b ldr r3, [r7, #4]
  67443. 801b6fc: 7f9a ldrb r2, [r3, #30]
  67444. 801b6fe: 4b27 ldr r3, [pc, #156] @ (801b79c <tcp_fasttmr+0xbc>)
  67445. 801b700: 781b ldrb r3, [r3, #0]
  67446. 801b702: 429a cmp r2, r3
  67447. 801b704: d03f beq.n 801b786 <tcp_fasttmr+0xa6>
  67448. struct tcp_pcb *next;
  67449. pcb->last_timer = tcp_timer_ctr;
  67450. 801b706: 4b25 ldr r3, [pc, #148] @ (801b79c <tcp_fasttmr+0xbc>)
  67451. 801b708: 781a ldrb r2, [r3, #0]
  67452. 801b70a: 687b ldr r3, [r7, #4]
  67453. 801b70c: 779a strb r2, [r3, #30]
  67454. /* send delayed ACKs */
  67455. if (pcb->flags & TF_ACK_DELAY) {
  67456. 801b70e: 687b ldr r3, [r7, #4]
  67457. 801b710: 8b5b ldrh r3, [r3, #26]
  67458. 801b712: f003 0301 and.w r3, r3, #1
  67459. 801b716: 2b00 cmp r3, #0
  67460. 801b718: d010 beq.n 801b73c <tcp_fasttmr+0x5c>
  67461. LWIP_DEBUGF(TCP_DEBUG, ("tcp_fasttmr: delayed ACK\n"));
  67462. tcp_ack_now(pcb);
  67463. 801b71a: 687b ldr r3, [r7, #4]
  67464. 801b71c: 8b5b ldrh r3, [r3, #26]
  67465. 801b71e: f043 0302 orr.w r3, r3, #2
  67466. 801b722: b29a uxth r2, r3
  67467. 801b724: 687b ldr r3, [r7, #4]
  67468. 801b726: 835a strh r2, [r3, #26]
  67469. tcp_output(pcb);
  67470. 801b728: 6878 ldr r0, [r7, #4]
  67471. 801b72a: f004 f863 bl 801f7f4 <tcp_output>
  67472. tcp_clear_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW);
  67473. 801b72e: 687b ldr r3, [r7, #4]
  67474. 801b730: 8b5b ldrh r3, [r3, #26]
  67475. 801b732: f023 0303 bic.w r3, r3, #3
  67476. 801b736: b29a uxth r2, r3
  67477. 801b738: 687b ldr r3, [r7, #4]
  67478. 801b73a: 835a strh r2, [r3, #26]
  67479. }
  67480. /* send pending FIN */
  67481. if (pcb->flags & TF_CLOSEPEND) {
  67482. 801b73c: 687b ldr r3, [r7, #4]
  67483. 801b73e: 8b5b ldrh r3, [r3, #26]
  67484. 801b740: f003 0308 and.w r3, r3, #8
  67485. 801b744: 2b00 cmp r3, #0
  67486. 801b746: d009 beq.n 801b75c <tcp_fasttmr+0x7c>
  67487. LWIP_DEBUGF(TCP_DEBUG, ("tcp_fasttmr: pending FIN\n"));
  67488. tcp_clear_flags(pcb, TF_CLOSEPEND);
  67489. 801b748: 687b ldr r3, [r7, #4]
  67490. 801b74a: 8b5b ldrh r3, [r3, #26]
  67491. 801b74c: f023 0308 bic.w r3, r3, #8
  67492. 801b750: b29a uxth r2, r3
  67493. 801b752: 687b ldr r3, [r7, #4]
  67494. 801b754: 835a strh r2, [r3, #26]
  67495. tcp_close_shutdown_fin(pcb);
  67496. 801b756: 6878 ldr r0, [r7, #4]
  67497. 801b758: f7ff f8b0 bl 801a8bc <tcp_close_shutdown_fin>
  67498. }
  67499. next = pcb->next;
  67500. 801b75c: 687b ldr r3, [r7, #4]
  67501. 801b75e: 68db ldr r3, [r3, #12]
  67502. 801b760: 603b str r3, [r7, #0]
  67503. /* If there is data which was previously "refused" by upper layer */
  67504. if (pcb->refused_data != NULL) {
  67505. 801b762: 687b ldr r3, [r7, #4]
  67506. 801b764: 6f9b ldr r3, [r3, #120] @ 0x78
  67507. 801b766: 2b00 cmp r3, #0
  67508. 801b768: d00a beq.n 801b780 <tcp_fasttmr+0xa0>
  67509. tcp_active_pcbs_changed = 0;
  67510. 801b76a: 4b0e ldr r3, [pc, #56] @ (801b7a4 <tcp_fasttmr+0xc4>)
  67511. 801b76c: 2200 movs r2, #0
  67512. 801b76e: 701a strb r2, [r3, #0]
  67513. tcp_process_refused_data(pcb);
  67514. 801b770: 6878 ldr r0, [r7, #4]
  67515. 801b772: f000 f819 bl 801b7a8 <tcp_process_refused_data>
  67516. if (tcp_active_pcbs_changed) {
  67517. 801b776: 4b0b ldr r3, [pc, #44] @ (801b7a4 <tcp_fasttmr+0xc4>)
  67518. 801b778: 781b ldrb r3, [r3, #0]
  67519. 801b77a: 2b00 cmp r3, #0
  67520. 801b77c: d000 beq.n 801b780 <tcp_fasttmr+0xa0>
  67521. /* application callback has changed the pcb list: restart the loop */
  67522. goto tcp_fasttmr_start;
  67523. 801b77e: e7b8 b.n 801b6f2 <tcp_fasttmr+0x12>
  67524. }
  67525. }
  67526. pcb = next;
  67527. 801b780: 683b ldr r3, [r7, #0]
  67528. 801b782: 607b str r3, [r7, #4]
  67529. 801b784: e002 b.n 801b78c <tcp_fasttmr+0xac>
  67530. } else {
  67531. pcb = pcb->next;
  67532. 801b786: 687b ldr r3, [r7, #4]
  67533. 801b788: 68db ldr r3, [r3, #12]
  67534. 801b78a: 607b str r3, [r7, #4]
  67535. while (pcb != NULL) {
  67536. 801b78c: 687b ldr r3, [r7, #4]
  67537. 801b78e: 2b00 cmp r3, #0
  67538. 801b790: d1b3 bne.n 801b6fa <tcp_fasttmr+0x1a>
  67539. }
  67540. }
  67541. }
  67542. 801b792: bf00 nop
  67543. 801b794: bf00 nop
  67544. 801b796: 3708 adds r7, #8
  67545. 801b798: 46bd mov sp, r7
  67546. 801b79a: bd80 pop {r7, pc}
  67547. 801b79c: 2402a002 .word 0x2402a002
  67548. 801b7a0: 24029ff8 .word 0x24029ff8
  67549. 801b7a4: 2402a000 .word 0x2402a000
  67550. 0801b7a8 <tcp_process_refused_data>:
  67551. }
  67552. /** Pass pcb->refused_data to the recv callback */
  67553. err_t
  67554. tcp_process_refused_data(struct tcp_pcb *pcb)
  67555. {
  67556. 801b7a8: b590 push {r4, r7, lr}
  67557. 801b7aa: b085 sub sp, #20
  67558. 801b7ac: af00 add r7, sp, #0
  67559. 801b7ae: 6078 str r0, [r7, #4]
  67560. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  67561. struct pbuf *rest;
  67562. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  67563. LWIP_ERROR("tcp_process_refused_data: invalid pcb", pcb != NULL, return ERR_ARG);
  67564. 801b7b0: 687b ldr r3, [r7, #4]
  67565. 801b7b2: 2b00 cmp r3, #0
  67566. 801b7b4: d109 bne.n 801b7ca <tcp_process_refused_data+0x22>
  67567. 801b7b6: 4b38 ldr r3, [pc, #224] @ (801b898 <tcp_process_refused_data+0xf0>)
  67568. 801b7b8: f240 6209 movw r2, #1545 @ 0x609
  67569. 801b7bc: 4937 ldr r1, [pc, #220] @ (801b89c <tcp_process_refused_data+0xf4>)
  67570. 801b7be: 4838 ldr r0, [pc, #224] @ (801b8a0 <tcp_process_refused_data+0xf8>)
  67571. 801b7c0: f00d fea4 bl 802950c <iprintf>
  67572. 801b7c4: f06f 030f mvn.w r3, #15
  67573. 801b7c8: e061 b.n 801b88e <tcp_process_refused_data+0xe6>
  67574. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  67575. while (pcb->refused_data != NULL)
  67576. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  67577. {
  67578. err_t err;
  67579. u8_t refused_flags = pcb->refused_data->flags;
  67580. 801b7ca: 687b ldr r3, [r7, #4]
  67581. 801b7cc: 6f9b ldr r3, [r3, #120] @ 0x78
  67582. 801b7ce: 7b5b ldrb r3, [r3, #13]
  67583. 801b7d0: 73bb strb r3, [r7, #14]
  67584. /* set pcb->refused_data to NULL in case the callback frees it and then
  67585. closes the pcb */
  67586. struct pbuf *refused_data = pcb->refused_data;
  67587. 801b7d2: 687b ldr r3, [r7, #4]
  67588. 801b7d4: 6f9b ldr r3, [r3, #120] @ 0x78
  67589. 801b7d6: 60bb str r3, [r7, #8]
  67590. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  67591. pbuf_split_64k(refused_data, &rest);
  67592. pcb->refused_data = rest;
  67593. #else /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  67594. pcb->refused_data = NULL;
  67595. 801b7d8: 687b ldr r3, [r7, #4]
  67596. 801b7da: 2200 movs r2, #0
  67597. 801b7dc: 679a str r2, [r3, #120] @ 0x78
  67598. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  67599. /* Notify again application with data previously received. */
  67600. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_input: notify kept packet\n"));
  67601. TCP_EVENT_RECV(pcb, refused_data, ERR_OK, err);
  67602. 801b7de: 687b ldr r3, [r7, #4]
  67603. 801b7e0: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  67604. 801b7e4: 2b00 cmp r3, #0
  67605. 801b7e6: d00b beq.n 801b800 <tcp_process_refused_data+0x58>
  67606. 801b7e8: 687b ldr r3, [r7, #4]
  67607. 801b7ea: f8d3 4084 ldr.w r4, [r3, #132] @ 0x84
  67608. 801b7ee: 687b ldr r3, [r7, #4]
  67609. 801b7f0: 6918 ldr r0, [r3, #16]
  67610. 801b7f2: 2300 movs r3, #0
  67611. 801b7f4: 68ba ldr r2, [r7, #8]
  67612. 801b7f6: 6879 ldr r1, [r7, #4]
  67613. 801b7f8: 47a0 blx r4
  67614. 801b7fa: 4603 mov r3, r0
  67615. 801b7fc: 73fb strb r3, [r7, #15]
  67616. 801b7fe: e007 b.n 801b810 <tcp_process_refused_data+0x68>
  67617. 801b800: 2300 movs r3, #0
  67618. 801b802: 68ba ldr r2, [r7, #8]
  67619. 801b804: 6879 ldr r1, [r7, #4]
  67620. 801b806: 2000 movs r0, #0
  67621. 801b808: f000 f8a6 bl 801b958 <tcp_recv_null>
  67622. 801b80c: 4603 mov r3, r0
  67623. 801b80e: 73fb strb r3, [r7, #15]
  67624. if (err == ERR_OK) {
  67625. 801b810: f997 300f ldrsb.w r3, [r7, #15]
  67626. 801b814: 2b00 cmp r3, #0
  67627. 801b816: d12b bne.n 801b870 <tcp_process_refused_data+0xc8>
  67628. /* did refused_data include a FIN? */
  67629. if ((refused_flags & PBUF_FLAG_TCP_FIN)
  67630. 801b818: 7bbb ldrb r3, [r7, #14]
  67631. 801b81a: f003 0320 and.w r3, r3, #32
  67632. 801b81e: 2b00 cmp r3, #0
  67633. 801b820: d034 beq.n 801b88c <tcp_process_refused_data+0xe4>
  67634. && (rest == NULL)
  67635. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  67636. ) {
  67637. /* correct rcv_wnd as the application won't call tcp_recved()
  67638. for the FIN's seqno */
  67639. if (pcb->rcv_wnd != TCP_WND_MAX(pcb)) {
  67640. 801b822: 687b ldr r3, [r7, #4]
  67641. 801b824: 8d1b ldrh r3, [r3, #40] @ 0x28
  67642. 801b826: f241 62d0 movw r2, #5840 @ 0x16d0
  67643. 801b82a: 4293 cmp r3, r2
  67644. 801b82c: d005 beq.n 801b83a <tcp_process_refused_data+0x92>
  67645. pcb->rcv_wnd++;
  67646. 801b82e: 687b ldr r3, [r7, #4]
  67647. 801b830: 8d1b ldrh r3, [r3, #40] @ 0x28
  67648. 801b832: 3301 adds r3, #1
  67649. 801b834: b29a uxth r2, r3
  67650. 801b836: 687b ldr r3, [r7, #4]
  67651. 801b838: 851a strh r2, [r3, #40] @ 0x28
  67652. }
  67653. TCP_EVENT_CLOSED(pcb, err);
  67654. 801b83a: 687b ldr r3, [r7, #4]
  67655. 801b83c: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  67656. 801b840: 2b00 cmp r3, #0
  67657. 801b842: d00b beq.n 801b85c <tcp_process_refused_data+0xb4>
  67658. 801b844: 687b ldr r3, [r7, #4]
  67659. 801b846: f8d3 4084 ldr.w r4, [r3, #132] @ 0x84
  67660. 801b84a: 687b ldr r3, [r7, #4]
  67661. 801b84c: 6918 ldr r0, [r3, #16]
  67662. 801b84e: 2300 movs r3, #0
  67663. 801b850: 2200 movs r2, #0
  67664. 801b852: 6879 ldr r1, [r7, #4]
  67665. 801b854: 47a0 blx r4
  67666. 801b856: 4603 mov r3, r0
  67667. 801b858: 73fb strb r3, [r7, #15]
  67668. 801b85a: e001 b.n 801b860 <tcp_process_refused_data+0xb8>
  67669. 801b85c: 2300 movs r3, #0
  67670. 801b85e: 73fb strb r3, [r7, #15]
  67671. if (err == ERR_ABRT) {
  67672. 801b860: f997 300f ldrsb.w r3, [r7, #15]
  67673. 801b864: f113 0f0d cmn.w r3, #13
  67674. 801b868: d110 bne.n 801b88c <tcp_process_refused_data+0xe4>
  67675. return ERR_ABRT;
  67676. 801b86a: f06f 030c mvn.w r3, #12
  67677. 801b86e: e00e b.n 801b88e <tcp_process_refused_data+0xe6>
  67678. }
  67679. }
  67680. } else if (err == ERR_ABRT) {
  67681. 801b870: f997 300f ldrsb.w r3, [r7, #15]
  67682. 801b874: f113 0f0d cmn.w r3, #13
  67683. 801b878: d102 bne.n 801b880 <tcp_process_refused_data+0xd8>
  67684. /* if err == ERR_ABRT, 'pcb' is already deallocated */
  67685. /* Drop incoming packets because pcb is "full" (only if the incoming
  67686. segment contains data). */
  67687. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_input: drop incoming packets, because pcb is \"full\"\n"));
  67688. return ERR_ABRT;
  67689. 801b87a: f06f 030c mvn.w r3, #12
  67690. 801b87e: e006 b.n 801b88e <tcp_process_refused_data+0xe6>
  67691. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  67692. if (rest != NULL) {
  67693. pbuf_cat(refused_data, rest);
  67694. }
  67695. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  67696. pcb->refused_data = refused_data;
  67697. 801b880: 687b ldr r3, [r7, #4]
  67698. 801b882: 68ba ldr r2, [r7, #8]
  67699. 801b884: 679a str r2, [r3, #120] @ 0x78
  67700. return ERR_INPROGRESS;
  67701. 801b886: f06f 0304 mvn.w r3, #4
  67702. 801b88a: e000 b.n 801b88e <tcp_process_refused_data+0xe6>
  67703. }
  67704. }
  67705. return ERR_OK;
  67706. 801b88c: 2300 movs r3, #0
  67707. }
  67708. 801b88e: 4618 mov r0, r3
  67709. 801b890: 3714 adds r7, #20
  67710. 801b892: 46bd mov sp, r7
  67711. 801b894: bd90 pop {r4, r7, pc}
  67712. 801b896: bf00 nop
  67713. 801b898: 0802e13c .word 0x0802e13c
  67714. 801b89c: 0802e64c .word 0x0802e64c
  67715. 801b8a0: 0802e180 .word 0x0802e180
  67716. 0801b8a4 <tcp_segs_free>:
  67717. *
  67718. * @param seg tcp_seg list of TCP segments to free
  67719. */
  67720. void
  67721. tcp_segs_free(struct tcp_seg *seg)
  67722. {
  67723. 801b8a4: b580 push {r7, lr}
  67724. 801b8a6: b084 sub sp, #16
  67725. 801b8a8: af00 add r7, sp, #0
  67726. 801b8aa: 6078 str r0, [r7, #4]
  67727. while (seg != NULL) {
  67728. 801b8ac: e007 b.n 801b8be <tcp_segs_free+0x1a>
  67729. struct tcp_seg *next = seg->next;
  67730. 801b8ae: 687b ldr r3, [r7, #4]
  67731. 801b8b0: 681b ldr r3, [r3, #0]
  67732. 801b8b2: 60fb str r3, [r7, #12]
  67733. tcp_seg_free(seg);
  67734. 801b8b4: 6878 ldr r0, [r7, #4]
  67735. 801b8b6: f000 f80a bl 801b8ce <tcp_seg_free>
  67736. seg = next;
  67737. 801b8ba: 68fb ldr r3, [r7, #12]
  67738. 801b8bc: 607b str r3, [r7, #4]
  67739. while (seg != NULL) {
  67740. 801b8be: 687b ldr r3, [r7, #4]
  67741. 801b8c0: 2b00 cmp r3, #0
  67742. 801b8c2: d1f4 bne.n 801b8ae <tcp_segs_free+0xa>
  67743. }
  67744. }
  67745. 801b8c4: bf00 nop
  67746. 801b8c6: bf00 nop
  67747. 801b8c8: 3710 adds r7, #16
  67748. 801b8ca: 46bd mov sp, r7
  67749. 801b8cc: bd80 pop {r7, pc}
  67750. 0801b8ce <tcp_seg_free>:
  67751. *
  67752. * @param seg single tcp_seg to free
  67753. */
  67754. void
  67755. tcp_seg_free(struct tcp_seg *seg)
  67756. {
  67757. 801b8ce: b580 push {r7, lr}
  67758. 801b8d0: b082 sub sp, #8
  67759. 801b8d2: af00 add r7, sp, #0
  67760. 801b8d4: 6078 str r0, [r7, #4]
  67761. if (seg != NULL) {
  67762. 801b8d6: 687b ldr r3, [r7, #4]
  67763. 801b8d8: 2b00 cmp r3, #0
  67764. 801b8da: d00c beq.n 801b8f6 <tcp_seg_free+0x28>
  67765. if (seg->p != NULL) {
  67766. 801b8dc: 687b ldr r3, [r7, #4]
  67767. 801b8de: 685b ldr r3, [r3, #4]
  67768. 801b8e0: 2b00 cmp r3, #0
  67769. 801b8e2: d004 beq.n 801b8ee <tcp_seg_free+0x20>
  67770. pbuf_free(seg->p);
  67771. 801b8e4: 687b ldr r3, [r7, #4]
  67772. 801b8e6: 685b ldr r3, [r3, #4]
  67773. 801b8e8: 4618 mov r0, r3
  67774. 801b8ea: f7fe fb97 bl 801a01c <pbuf_free>
  67775. #if TCP_DEBUG
  67776. seg->p = NULL;
  67777. #endif /* TCP_DEBUG */
  67778. }
  67779. memp_free(MEMP_TCP_SEG, seg);
  67780. 801b8ee: 6879 ldr r1, [r7, #4]
  67781. 801b8f0: 2003 movs r0, #3
  67782. 801b8f2: f7fd fca5 bl 8019240 <memp_free>
  67783. }
  67784. }
  67785. 801b8f6: bf00 nop
  67786. 801b8f8: 3708 adds r7, #8
  67787. 801b8fa: 46bd mov sp, r7
  67788. 801b8fc: bd80 pop {r7, pc}
  67789. ...
  67790. 0801b900 <tcp_seg_copy>:
  67791. * @param seg the old tcp_seg
  67792. * @return a copy of seg
  67793. */
  67794. struct tcp_seg *
  67795. tcp_seg_copy(struct tcp_seg *seg)
  67796. {
  67797. 801b900: b580 push {r7, lr}
  67798. 801b902: b084 sub sp, #16
  67799. 801b904: af00 add r7, sp, #0
  67800. 801b906: 6078 str r0, [r7, #4]
  67801. struct tcp_seg *cseg;
  67802. LWIP_ASSERT("tcp_seg_copy: invalid seg", seg != NULL);
  67803. 801b908: 687b ldr r3, [r7, #4]
  67804. 801b90a: 2b00 cmp r3, #0
  67805. 801b90c: d106 bne.n 801b91c <tcp_seg_copy+0x1c>
  67806. 801b90e: 4b0f ldr r3, [pc, #60] @ (801b94c <tcp_seg_copy+0x4c>)
  67807. 801b910: f240 6282 movw r2, #1666 @ 0x682
  67808. 801b914: 490e ldr r1, [pc, #56] @ (801b950 <tcp_seg_copy+0x50>)
  67809. 801b916: 480f ldr r0, [pc, #60] @ (801b954 <tcp_seg_copy+0x54>)
  67810. 801b918: f00d fdf8 bl 802950c <iprintf>
  67811. cseg = (struct tcp_seg *)memp_malloc(MEMP_TCP_SEG);
  67812. 801b91c: 2003 movs r0, #3
  67813. 801b91e: f7fd fc19 bl 8019154 <memp_malloc>
  67814. 801b922: 60f8 str r0, [r7, #12]
  67815. if (cseg == NULL) {
  67816. 801b924: 68fb ldr r3, [r7, #12]
  67817. 801b926: 2b00 cmp r3, #0
  67818. 801b928: d101 bne.n 801b92e <tcp_seg_copy+0x2e>
  67819. return NULL;
  67820. 801b92a: 2300 movs r3, #0
  67821. 801b92c: e00a b.n 801b944 <tcp_seg_copy+0x44>
  67822. }
  67823. SMEMCPY((u8_t *)cseg, (const u8_t *)seg, sizeof(struct tcp_seg));
  67824. 801b92e: 2214 movs r2, #20
  67825. 801b930: 6879 ldr r1, [r7, #4]
  67826. 801b932: 68f8 ldr r0, [r7, #12]
  67827. 801b934: f00e f873 bl 8029a1e <memcpy>
  67828. pbuf_ref(cseg->p);
  67829. 801b938: 68fb ldr r3, [r7, #12]
  67830. 801b93a: 685b ldr r3, [r3, #4]
  67831. 801b93c: 4618 mov r0, r3
  67832. 801b93e: f7fe fc13 bl 801a168 <pbuf_ref>
  67833. return cseg;
  67834. 801b942: 68fb ldr r3, [r7, #12]
  67835. }
  67836. 801b944: 4618 mov r0, r3
  67837. 801b946: 3710 adds r7, #16
  67838. 801b948: 46bd mov sp, r7
  67839. 801b94a: bd80 pop {r7, pc}
  67840. 801b94c: 0802e13c .word 0x0802e13c
  67841. 801b950: 0802e690 .word 0x0802e690
  67842. 801b954: 0802e180 .word 0x0802e180
  67843. 0801b958 <tcp_recv_null>:
  67844. * Default receive callback that is called if the user didn't register
  67845. * a recv callback for the pcb.
  67846. */
  67847. err_t
  67848. tcp_recv_null(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err)
  67849. {
  67850. 801b958: b580 push {r7, lr}
  67851. 801b95a: b084 sub sp, #16
  67852. 801b95c: af00 add r7, sp, #0
  67853. 801b95e: 60f8 str r0, [r7, #12]
  67854. 801b960: 60b9 str r1, [r7, #8]
  67855. 801b962: 607a str r2, [r7, #4]
  67856. 801b964: 70fb strb r3, [r7, #3]
  67857. LWIP_UNUSED_ARG(arg);
  67858. LWIP_ERROR("tcp_recv_null: invalid pcb", pcb != NULL, return ERR_ARG);
  67859. 801b966: 68bb ldr r3, [r7, #8]
  67860. 801b968: 2b00 cmp r3, #0
  67861. 801b96a: d109 bne.n 801b980 <tcp_recv_null+0x28>
  67862. 801b96c: 4b12 ldr r3, [pc, #72] @ (801b9b8 <tcp_recv_null+0x60>)
  67863. 801b96e: f44f 62d3 mov.w r2, #1688 @ 0x698
  67864. 801b972: 4912 ldr r1, [pc, #72] @ (801b9bc <tcp_recv_null+0x64>)
  67865. 801b974: 4812 ldr r0, [pc, #72] @ (801b9c0 <tcp_recv_null+0x68>)
  67866. 801b976: f00d fdc9 bl 802950c <iprintf>
  67867. 801b97a: f06f 030f mvn.w r3, #15
  67868. 801b97e: e016 b.n 801b9ae <tcp_recv_null+0x56>
  67869. if (p != NULL) {
  67870. 801b980: 687b ldr r3, [r7, #4]
  67871. 801b982: 2b00 cmp r3, #0
  67872. 801b984: d009 beq.n 801b99a <tcp_recv_null+0x42>
  67873. tcp_recved(pcb, p->tot_len);
  67874. 801b986: 687b ldr r3, [r7, #4]
  67875. 801b988: 891b ldrh r3, [r3, #8]
  67876. 801b98a: 4619 mov r1, r3
  67877. 801b98c: 68b8 ldr r0, [r7, #8]
  67878. 801b98e: f7ff f9b1 bl 801acf4 <tcp_recved>
  67879. pbuf_free(p);
  67880. 801b992: 6878 ldr r0, [r7, #4]
  67881. 801b994: f7fe fb42 bl 801a01c <pbuf_free>
  67882. 801b998: e008 b.n 801b9ac <tcp_recv_null+0x54>
  67883. } else if (err == ERR_OK) {
  67884. 801b99a: f997 3003 ldrsb.w r3, [r7, #3]
  67885. 801b99e: 2b00 cmp r3, #0
  67886. 801b9a0: d104 bne.n 801b9ac <tcp_recv_null+0x54>
  67887. return tcp_close(pcb);
  67888. 801b9a2: 68b8 ldr r0, [r7, #8]
  67889. 801b9a4: f7fe fff4 bl 801a990 <tcp_close>
  67890. 801b9a8: 4603 mov r3, r0
  67891. 801b9aa: e000 b.n 801b9ae <tcp_recv_null+0x56>
  67892. }
  67893. return ERR_OK;
  67894. 801b9ac: 2300 movs r3, #0
  67895. }
  67896. 801b9ae: 4618 mov r0, r3
  67897. 801b9b0: 3710 adds r7, #16
  67898. 801b9b2: 46bd mov sp, r7
  67899. 801b9b4: bd80 pop {r7, pc}
  67900. 801b9b6: bf00 nop
  67901. 801b9b8: 0802e13c .word 0x0802e13c
  67902. 801b9bc: 0802e6ac .word 0x0802e6ac
  67903. 801b9c0: 0802e180 .word 0x0802e180
  67904. 0801b9c4 <tcp_kill_prio>:
  67905. *
  67906. * @param prio minimum priority
  67907. */
  67908. static void
  67909. tcp_kill_prio(u8_t prio)
  67910. {
  67911. 801b9c4: b580 push {r7, lr}
  67912. 801b9c6: b086 sub sp, #24
  67913. 801b9c8: af00 add r7, sp, #0
  67914. 801b9ca: 4603 mov r3, r0
  67915. 801b9cc: 71fb strb r3, [r7, #7]
  67916. struct tcp_pcb *pcb, *inactive;
  67917. u32_t inactivity;
  67918. u8_t mprio;
  67919. mprio = LWIP_MIN(TCP_PRIO_MAX, prio);
  67920. 801b9ce: f997 3007 ldrsb.w r3, [r7, #7]
  67921. 801b9d2: 2b00 cmp r3, #0
  67922. 801b9d4: db01 blt.n 801b9da <tcp_kill_prio+0x16>
  67923. 801b9d6: 79fb ldrb r3, [r7, #7]
  67924. 801b9d8: e000 b.n 801b9dc <tcp_kill_prio+0x18>
  67925. 801b9da: 237f movs r3, #127 @ 0x7f
  67926. 801b9dc: 72fb strb r3, [r7, #11]
  67927. /* We want to kill connections with a lower prio, so bail out if
  67928. * supplied prio is 0 - there can never be a lower prio
  67929. */
  67930. if (mprio == 0) {
  67931. 801b9de: 7afb ldrb r3, [r7, #11]
  67932. 801b9e0: 2b00 cmp r3, #0
  67933. 801b9e2: d034 beq.n 801ba4e <tcp_kill_prio+0x8a>
  67934. /* We only want kill connections with a lower prio, so decrement prio by one
  67935. * and start searching for oldest connection with same or lower priority than mprio.
  67936. * We want to find the connections with the lowest possible prio, and among
  67937. * these the one with the longest inactivity time.
  67938. */
  67939. mprio--;
  67940. 801b9e4: 7afb ldrb r3, [r7, #11]
  67941. 801b9e6: 3b01 subs r3, #1
  67942. 801b9e8: 72fb strb r3, [r7, #11]
  67943. inactivity = 0;
  67944. 801b9ea: 2300 movs r3, #0
  67945. 801b9ec: 60fb str r3, [r7, #12]
  67946. inactive = NULL;
  67947. 801b9ee: 2300 movs r3, #0
  67948. 801b9f0: 613b str r3, [r7, #16]
  67949. for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
  67950. 801b9f2: 4b19 ldr r3, [pc, #100] @ (801ba58 <tcp_kill_prio+0x94>)
  67951. 801b9f4: 681b ldr r3, [r3, #0]
  67952. 801b9f6: 617b str r3, [r7, #20]
  67953. 801b9f8: e01f b.n 801ba3a <tcp_kill_prio+0x76>
  67954. /* lower prio is always a kill candidate */
  67955. if ((pcb->prio < mprio) ||
  67956. 801b9fa: 697b ldr r3, [r7, #20]
  67957. 801b9fc: 7d5b ldrb r3, [r3, #21]
  67958. 801b9fe: 7afa ldrb r2, [r7, #11]
  67959. 801ba00: 429a cmp r2, r3
  67960. 801ba02: d80c bhi.n 801ba1e <tcp_kill_prio+0x5a>
  67961. /* longer inactivity is also a kill candidate */
  67962. ((pcb->prio == mprio) && ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity))) {
  67963. 801ba04: 697b ldr r3, [r7, #20]
  67964. 801ba06: 7d5b ldrb r3, [r3, #21]
  67965. if ((pcb->prio < mprio) ||
  67966. 801ba08: 7afa ldrb r2, [r7, #11]
  67967. 801ba0a: 429a cmp r2, r3
  67968. 801ba0c: d112 bne.n 801ba34 <tcp_kill_prio+0x70>
  67969. ((pcb->prio == mprio) && ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity))) {
  67970. 801ba0e: 4b13 ldr r3, [pc, #76] @ (801ba5c <tcp_kill_prio+0x98>)
  67971. 801ba10: 681a ldr r2, [r3, #0]
  67972. 801ba12: 697b ldr r3, [r7, #20]
  67973. 801ba14: 6a1b ldr r3, [r3, #32]
  67974. 801ba16: 1ad3 subs r3, r2, r3
  67975. 801ba18: 68fa ldr r2, [r7, #12]
  67976. 801ba1a: 429a cmp r2, r3
  67977. 801ba1c: d80a bhi.n 801ba34 <tcp_kill_prio+0x70>
  67978. inactivity = tcp_ticks - pcb->tmr;
  67979. 801ba1e: 4b0f ldr r3, [pc, #60] @ (801ba5c <tcp_kill_prio+0x98>)
  67980. 801ba20: 681a ldr r2, [r3, #0]
  67981. 801ba22: 697b ldr r3, [r7, #20]
  67982. 801ba24: 6a1b ldr r3, [r3, #32]
  67983. 801ba26: 1ad3 subs r3, r2, r3
  67984. 801ba28: 60fb str r3, [r7, #12]
  67985. inactive = pcb;
  67986. 801ba2a: 697b ldr r3, [r7, #20]
  67987. 801ba2c: 613b str r3, [r7, #16]
  67988. mprio = pcb->prio;
  67989. 801ba2e: 697b ldr r3, [r7, #20]
  67990. 801ba30: 7d5b ldrb r3, [r3, #21]
  67991. 801ba32: 72fb strb r3, [r7, #11]
  67992. for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
  67993. 801ba34: 697b ldr r3, [r7, #20]
  67994. 801ba36: 68db ldr r3, [r3, #12]
  67995. 801ba38: 617b str r3, [r7, #20]
  67996. 801ba3a: 697b ldr r3, [r7, #20]
  67997. 801ba3c: 2b00 cmp r3, #0
  67998. 801ba3e: d1dc bne.n 801b9fa <tcp_kill_prio+0x36>
  67999. }
  68000. }
  68001. if (inactive != NULL) {
  68002. 801ba40: 693b ldr r3, [r7, #16]
  68003. 801ba42: 2b00 cmp r3, #0
  68004. 801ba44: d004 beq.n 801ba50 <tcp_kill_prio+0x8c>
  68005. LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_prio: killing oldest PCB %p (%"S32_F")\n",
  68006. (void *)inactive, inactivity));
  68007. tcp_abort(inactive);
  68008. 801ba46: 6938 ldr r0, [r7, #16]
  68009. 801ba48: f7ff f8ee bl 801ac28 <tcp_abort>
  68010. 801ba4c: e000 b.n 801ba50 <tcp_kill_prio+0x8c>
  68011. return;
  68012. 801ba4e: bf00 nop
  68013. }
  68014. }
  68015. 801ba50: 3718 adds r7, #24
  68016. 801ba52: 46bd mov sp, r7
  68017. 801ba54: bd80 pop {r7, pc}
  68018. 801ba56: bf00 nop
  68019. 801ba58: 24029ff8 .word 0x24029ff8
  68020. 801ba5c: 24029fec .word 0x24029fec
  68021. 0801ba60 <tcp_kill_state>:
  68022. * Kills the oldest connection that is in specific state.
  68023. * Called from tcp_alloc() for LAST_ACK and CLOSING if no more connections are available.
  68024. */
  68025. static void
  68026. tcp_kill_state(enum tcp_state state)
  68027. {
  68028. 801ba60: b580 push {r7, lr}
  68029. 801ba62: b086 sub sp, #24
  68030. 801ba64: af00 add r7, sp, #0
  68031. 801ba66: 4603 mov r3, r0
  68032. 801ba68: 71fb strb r3, [r7, #7]
  68033. struct tcp_pcb *pcb, *inactive;
  68034. u32_t inactivity;
  68035. LWIP_ASSERT("invalid state", (state == CLOSING) || (state == LAST_ACK));
  68036. 801ba6a: 79fb ldrb r3, [r7, #7]
  68037. 801ba6c: 2b08 cmp r3, #8
  68038. 801ba6e: d009 beq.n 801ba84 <tcp_kill_state+0x24>
  68039. 801ba70: 79fb ldrb r3, [r7, #7]
  68040. 801ba72: 2b09 cmp r3, #9
  68041. 801ba74: d006 beq.n 801ba84 <tcp_kill_state+0x24>
  68042. 801ba76: 4b1a ldr r3, [pc, #104] @ (801bae0 <tcp_kill_state+0x80>)
  68043. 801ba78: f240 62dd movw r2, #1757 @ 0x6dd
  68044. 801ba7c: 4919 ldr r1, [pc, #100] @ (801bae4 <tcp_kill_state+0x84>)
  68045. 801ba7e: 481a ldr r0, [pc, #104] @ (801bae8 <tcp_kill_state+0x88>)
  68046. 801ba80: f00d fd44 bl 802950c <iprintf>
  68047. inactivity = 0;
  68048. 801ba84: 2300 movs r3, #0
  68049. 801ba86: 60fb str r3, [r7, #12]
  68050. inactive = NULL;
  68051. 801ba88: 2300 movs r3, #0
  68052. 801ba8a: 613b str r3, [r7, #16]
  68053. /* Go through the list of active pcbs and get the oldest pcb that is in state
  68054. CLOSING/LAST_ACK. */
  68055. for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
  68056. 801ba8c: 4b17 ldr r3, [pc, #92] @ (801baec <tcp_kill_state+0x8c>)
  68057. 801ba8e: 681b ldr r3, [r3, #0]
  68058. 801ba90: 617b str r3, [r7, #20]
  68059. 801ba92: e017 b.n 801bac4 <tcp_kill_state+0x64>
  68060. if (pcb->state == state) {
  68061. 801ba94: 697b ldr r3, [r7, #20]
  68062. 801ba96: 7d1b ldrb r3, [r3, #20]
  68063. 801ba98: 79fa ldrb r2, [r7, #7]
  68064. 801ba9a: 429a cmp r2, r3
  68065. 801ba9c: d10f bne.n 801babe <tcp_kill_state+0x5e>
  68066. if ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity) {
  68067. 801ba9e: 4b14 ldr r3, [pc, #80] @ (801baf0 <tcp_kill_state+0x90>)
  68068. 801baa0: 681a ldr r2, [r3, #0]
  68069. 801baa2: 697b ldr r3, [r7, #20]
  68070. 801baa4: 6a1b ldr r3, [r3, #32]
  68071. 801baa6: 1ad3 subs r3, r2, r3
  68072. 801baa8: 68fa ldr r2, [r7, #12]
  68073. 801baaa: 429a cmp r2, r3
  68074. 801baac: d807 bhi.n 801babe <tcp_kill_state+0x5e>
  68075. inactivity = tcp_ticks - pcb->tmr;
  68076. 801baae: 4b10 ldr r3, [pc, #64] @ (801baf0 <tcp_kill_state+0x90>)
  68077. 801bab0: 681a ldr r2, [r3, #0]
  68078. 801bab2: 697b ldr r3, [r7, #20]
  68079. 801bab4: 6a1b ldr r3, [r3, #32]
  68080. 801bab6: 1ad3 subs r3, r2, r3
  68081. 801bab8: 60fb str r3, [r7, #12]
  68082. inactive = pcb;
  68083. 801baba: 697b ldr r3, [r7, #20]
  68084. 801babc: 613b str r3, [r7, #16]
  68085. for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
  68086. 801babe: 697b ldr r3, [r7, #20]
  68087. 801bac0: 68db ldr r3, [r3, #12]
  68088. 801bac2: 617b str r3, [r7, #20]
  68089. 801bac4: 697b ldr r3, [r7, #20]
  68090. 801bac6: 2b00 cmp r3, #0
  68091. 801bac8: d1e4 bne.n 801ba94 <tcp_kill_state+0x34>
  68092. }
  68093. }
  68094. }
  68095. if (inactive != NULL) {
  68096. 801baca: 693b ldr r3, [r7, #16]
  68097. 801bacc: 2b00 cmp r3, #0
  68098. 801bace: d003 beq.n 801bad8 <tcp_kill_state+0x78>
  68099. LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_closing: killing oldest %s PCB %p (%"S32_F")\n",
  68100. tcp_state_str[state], (void *)inactive, inactivity));
  68101. /* Don't send a RST, since no data is lost. */
  68102. tcp_abandon(inactive, 0);
  68103. 801bad0: 2100 movs r1, #0
  68104. 801bad2: 6938 ldr r0, [r7, #16]
  68105. 801bad4: f7fe ffe8 bl 801aaa8 <tcp_abandon>
  68106. }
  68107. }
  68108. 801bad8: bf00 nop
  68109. 801bada: 3718 adds r7, #24
  68110. 801badc: 46bd mov sp, r7
  68111. 801bade: bd80 pop {r7, pc}
  68112. 801bae0: 0802e13c .word 0x0802e13c
  68113. 801bae4: 0802e6c8 .word 0x0802e6c8
  68114. 801bae8: 0802e180 .word 0x0802e180
  68115. 801baec: 24029ff8 .word 0x24029ff8
  68116. 801baf0: 24029fec .word 0x24029fec
  68117. 0801baf4 <tcp_kill_timewait>:
  68118. * Kills the oldest connection that is in TIME_WAIT state.
  68119. * Called from tcp_alloc() if no more connections are available.
  68120. */
  68121. static void
  68122. tcp_kill_timewait(void)
  68123. {
  68124. 801baf4: b580 push {r7, lr}
  68125. 801baf6: b084 sub sp, #16
  68126. 801baf8: af00 add r7, sp, #0
  68127. struct tcp_pcb *pcb, *inactive;
  68128. u32_t inactivity;
  68129. inactivity = 0;
  68130. 801bafa: 2300 movs r3, #0
  68131. 801bafc: 607b str r3, [r7, #4]
  68132. inactive = NULL;
  68133. 801bafe: 2300 movs r3, #0
  68134. 801bb00: 60bb str r3, [r7, #8]
  68135. /* Go through the list of TIME_WAIT pcbs and get the oldest pcb. */
  68136. for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) {
  68137. 801bb02: 4b12 ldr r3, [pc, #72] @ (801bb4c <tcp_kill_timewait+0x58>)
  68138. 801bb04: 681b ldr r3, [r3, #0]
  68139. 801bb06: 60fb str r3, [r7, #12]
  68140. 801bb08: e012 b.n 801bb30 <tcp_kill_timewait+0x3c>
  68141. if ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity) {
  68142. 801bb0a: 4b11 ldr r3, [pc, #68] @ (801bb50 <tcp_kill_timewait+0x5c>)
  68143. 801bb0c: 681a ldr r2, [r3, #0]
  68144. 801bb0e: 68fb ldr r3, [r7, #12]
  68145. 801bb10: 6a1b ldr r3, [r3, #32]
  68146. 801bb12: 1ad3 subs r3, r2, r3
  68147. 801bb14: 687a ldr r2, [r7, #4]
  68148. 801bb16: 429a cmp r2, r3
  68149. 801bb18: d807 bhi.n 801bb2a <tcp_kill_timewait+0x36>
  68150. inactivity = tcp_ticks - pcb->tmr;
  68151. 801bb1a: 4b0d ldr r3, [pc, #52] @ (801bb50 <tcp_kill_timewait+0x5c>)
  68152. 801bb1c: 681a ldr r2, [r3, #0]
  68153. 801bb1e: 68fb ldr r3, [r7, #12]
  68154. 801bb20: 6a1b ldr r3, [r3, #32]
  68155. 801bb22: 1ad3 subs r3, r2, r3
  68156. 801bb24: 607b str r3, [r7, #4]
  68157. inactive = pcb;
  68158. 801bb26: 68fb ldr r3, [r7, #12]
  68159. 801bb28: 60bb str r3, [r7, #8]
  68160. for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) {
  68161. 801bb2a: 68fb ldr r3, [r7, #12]
  68162. 801bb2c: 68db ldr r3, [r3, #12]
  68163. 801bb2e: 60fb str r3, [r7, #12]
  68164. 801bb30: 68fb ldr r3, [r7, #12]
  68165. 801bb32: 2b00 cmp r3, #0
  68166. 801bb34: d1e9 bne.n 801bb0a <tcp_kill_timewait+0x16>
  68167. }
  68168. }
  68169. if (inactive != NULL) {
  68170. 801bb36: 68bb ldr r3, [r7, #8]
  68171. 801bb38: 2b00 cmp r3, #0
  68172. 801bb3a: d002 beq.n 801bb42 <tcp_kill_timewait+0x4e>
  68173. LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_timewait: killing oldest TIME-WAIT PCB %p (%"S32_F")\n",
  68174. (void *)inactive, inactivity));
  68175. tcp_abort(inactive);
  68176. 801bb3c: 68b8 ldr r0, [r7, #8]
  68177. 801bb3e: f7ff f873 bl 801ac28 <tcp_abort>
  68178. }
  68179. }
  68180. 801bb42: bf00 nop
  68181. 801bb44: 3710 adds r7, #16
  68182. 801bb46: 46bd mov sp, r7
  68183. 801bb48: bd80 pop {r7, pc}
  68184. 801bb4a: bf00 nop
  68185. 801bb4c: 24029ffc .word 0x24029ffc
  68186. 801bb50: 24029fec .word 0x24029fec
  68187. 0801bb54 <tcp_handle_closepend>:
  68188. * now send the FIN (which failed before), the pcb might be in a state that is
  68189. * OK for us to now free it.
  68190. */
  68191. static void
  68192. tcp_handle_closepend(void)
  68193. {
  68194. 801bb54: b580 push {r7, lr}
  68195. 801bb56: b082 sub sp, #8
  68196. 801bb58: af00 add r7, sp, #0
  68197. struct tcp_pcb *pcb = tcp_active_pcbs;
  68198. 801bb5a: 4b10 ldr r3, [pc, #64] @ (801bb9c <tcp_handle_closepend+0x48>)
  68199. 801bb5c: 681b ldr r3, [r3, #0]
  68200. 801bb5e: 607b str r3, [r7, #4]
  68201. while (pcb != NULL) {
  68202. 801bb60: e014 b.n 801bb8c <tcp_handle_closepend+0x38>
  68203. struct tcp_pcb *next = pcb->next;
  68204. 801bb62: 687b ldr r3, [r7, #4]
  68205. 801bb64: 68db ldr r3, [r3, #12]
  68206. 801bb66: 603b str r3, [r7, #0]
  68207. /* send pending FIN */
  68208. if (pcb->flags & TF_CLOSEPEND) {
  68209. 801bb68: 687b ldr r3, [r7, #4]
  68210. 801bb6a: 8b5b ldrh r3, [r3, #26]
  68211. 801bb6c: f003 0308 and.w r3, r3, #8
  68212. 801bb70: 2b00 cmp r3, #0
  68213. 801bb72: d009 beq.n 801bb88 <tcp_handle_closepend+0x34>
  68214. LWIP_DEBUGF(TCP_DEBUG, ("tcp_handle_closepend: pending FIN\n"));
  68215. tcp_clear_flags(pcb, TF_CLOSEPEND);
  68216. 801bb74: 687b ldr r3, [r7, #4]
  68217. 801bb76: 8b5b ldrh r3, [r3, #26]
  68218. 801bb78: f023 0308 bic.w r3, r3, #8
  68219. 801bb7c: b29a uxth r2, r3
  68220. 801bb7e: 687b ldr r3, [r7, #4]
  68221. 801bb80: 835a strh r2, [r3, #26]
  68222. tcp_close_shutdown_fin(pcb);
  68223. 801bb82: 6878 ldr r0, [r7, #4]
  68224. 801bb84: f7fe fe9a bl 801a8bc <tcp_close_shutdown_fin>
  68225. }
  68226. pcb = next;
  68227. 801bb88: 683b ldr r3, [r7, #0]
  68228. 801bb8a: 607b str r3, [r7, #4]
  68229. while (pcb != NULL) {
  68230. 801bb8c: 687b ldr r3, [r7, #4]
  68231. 801bb8e: 2b00 cmp r3, #0
  68232. 801bb90: d1e7 bne.n 801bb62 <tcp_handle_closepend+0xe>
  68233. }
  68234. }
  68235. 801bb92: bf00 nop
  68236. 801bb94: bf00 nop
  68237. 801bb96: 3708 adds r7, #8
  68238. 801bb98: 46bd mov sp, r7
  68239. 801bb9a: bd80 pop {r7, pc}
  68240. 801bb9c: 24029ff8 .word 0x24029ff8
  68241. 0801bba0 <tcp_alloc>:
  68242. * @param prio priority for the new pcb
  68243. * @return a new tcp_pcb that initially is in state CLOSED
  68244. */
  68245. struct tcp_pcb *
  68246. tcp_alloc(u8_t prio)
  68247. {
  68248. 801bba0: b580 push {r7, lr}
  68249. 801bba2: b084 sub sp, #16
  68250. 801bba4: af00 add r7, sp, #0
  68251. 801bba6: 4603 mov r3, r0
  68252. 801bba8: 71fb strb r3, [r7, #7]
  68253. struct tcp_pcb *pcb;
  68254. LWIP_ASSERT_CORE_LOCKED();
  68255. 801bbaa: f7f4 fa61 bl 8010070 <sys_check_core_locking>
  68256. pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB);
  68257. 801bbae: 2001 movs r0, #1
  68258. 801bbb0: f7fd fad0 bl 8019154 <memp_malloc>
  68259. 801bbb4: 60f8 str r0, [r7, #12]
  68260. if (pcb == NULL) {
  68261. 801bbb6: 68fb ldr r3, [r7, #12]
  68262. 801bbb8: 2b00 cmp r3, #0
  68263. 801bbba: d126 bne.n 801bc0a <tcp_alloc+0x6a>
  68264. /* Try to send FIN for all pcbs stuck in TF_CLOSEPEND first */
  68265. tcp_handle_closepend();
  68266. 801bbbc: f7ff ffca bl 801bb54 <tcp_handle_closepend>
  68267. /* Try killing oldest connection in TIME-WAIT. */
  68268. LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing off oldest TIME-WAIT connection\n"));
  68269. tcp_kill_timewait();
  68270. 801bbc0: f7ff ff98 bl 801baf4 <tcp_kill_timewait>
  68271. /* Try to allocate a tcp_pcb again. */
  68272. pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB);
  68273. 801bbc4: 2001 movs r0, #1
  68274. 801bbc6: f7fd fac5 bl 8019154 <memp_malloc>
  68275. 801bbca: 60f8 str r0, [r7, #12]
  68276. if (pcb == NULL) {
  68277. 801bbcc: 68fb ldr r3, [r7, #12]
  68278. 801bbce: 2b00 cmp r3, #0
  68279. 801bbd0: d11b bne.n 801bc0a <tcp_alloc+0x6a>
  68280. /* Try killing oldest connection in LAST-ACK (these wouldn't go to TIME-WAIT). */
  68281. LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing off oldest LAST-ACK connection\n"));
  68282. tcp_kill_state(LAST_ACK);
  68283. 801bbd2: 2009 movs r0, #9
  68284. 801bbd4: f7ff ff44 bl 801ba60 <tcp_kill_state>
  68285. /* Try to allocate a tcp_pcb again. */
  68286. pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB);
  68287. 801bbd8: 2001 movs r0, #1
  68288. 801bbda: f7fd fabb bl 8019154 <memp_malloc>
  68289. 801bbde: 60f8 str r0, [r7, #12]
  68290. if (pcb == NULL) {
  68291. 801bbe0: 68fb ldr r3, [r7, #12]
  68292. 801bbe2: 2b00 cmp r3, #0
  68293. 801bbe4: d111 bne.n 801bc0a <tcp_alloc+0x6a>
  68294. /* Try killing oldest connection in CLOSING. */
  68295. LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing off oldest CLOSING connection\n"));
  68296. tcp_kill_state(CLOSING);
  68297. 801bbe6: 2008 movs r0, #8
  68298. 801bbe8: f7ff ff3a bl 801ba60 <tcp_kill_state>
  68299. /* Try to allocate a tcp_pcb again. */
  68300. pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB);
  68301. 801bbec: 2001 movs r0, #1
  68302. 801bbee: f7fd fab1 bl 8019154 <memp_malloc>
  68303. 801bbf2: 60f8 str r0, [r7, #12]
  68304. if (pcb == NULL) {
  68305. 801bbf4: 68fb ldr r3, [r7, #12]
  68306. 801bbf6: 2b00 cmp r3, #0
  68307. 801bbf8: d107 bne.n 801bc0a <tcp_alloc+0x6a>
  68308. /* Try killing oldest active connection with lower priority than the new one. */
  68309. LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing oldest connection with prio lower than %d\n", prio));
  68310. tcp_kill_prio(prio);
  68311. 801bbfa: 79fb ldrb r3, [r7, #7]
  68312. 801bbfc: 4618 mov r0, r3
  68313. 801bbfe: f7ff fee1 bl 801b9c4 <tcp_kill_prio>
  68314. /* Try to allocate a tcp_pcb again. */
  68315. pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB);
  68316. 801bc02: 2001 movs r0, #1
  68317. 801bc04: f7fd faa6 bl 8019154 <memp_malloc>
  68318. 801bc08: 60f8 str r0, [r7, #12]
  68319. if (pcb != NULL) {
  68320. /* adjust err stats: memp_malloc failed above */
  68321. MEMP_STATS_DEC(err, MEMP_TCP_PCB);
  68322. }
  68323. }
  68324. if (pcb != NULL) {
  68325. 801bc0a: 68fb ldr r3, [r7, #12]
  68326. 801bc0c: 2b00 cmp r3, #0
  68327. 801bc0e: d03f beq.n 801bc90 <tcp_alloc+0xf0>
  68328. /* zero out the whole pcb, so there is no need to initialize members to zero */
  68329. memset(pcb, 0, sizeof(struct tcp_pcb));
  68330. 801bc10: 229c movs r2, #156 @ 0x9c
  68331. 801bc12: 2100 movs r1, #0
  68332. 801bc14: 68f8 ldr r0, [r7, #12]
  68333. 801bc16: f00d fe0b bl 8029830 <memset>
  68334. pcb->prio = prio;
  68335. 801bc1a: 68fb ldr r3, [r7, #12]
  68336. 801bc1c: 79fa ldrb r2, [r7, #7]
  68337. 801bc1e: 755a strb r2, [r3, #21]
  68338. pcb->snd_buf = TCP_SND_BUF;
  68339. 801bc20: 68fb ldr r3, [r7, #12]
  68340. 801bc22: f241 62d0 movw r2, #5840 @ 0x16d0
  68341. 801bc26: f8a3 2064 strh.w r2, [r3, #100] @ 0x64
  68342. /* Start with a window that does not need scaling. When window scaling is
  68343. enabled and used, the window is enlarged when both sides agree on scaling. */
  68344. pcb->rcv_wnd = pcb->rcv_ann_wnd = TCPWND_MIN16(TCP_WND);
  68345. 801bc2a: 68fb ldr r3, [r7, #12]
  68346. 801bc2c: f241 62d0 movw r2, #5840 @ 0x16d0
  68347. 801bc30: 855a strh r2, [r3, #42] @ 0x2a
  68348. 801bc32: 68fb ldr r3, [r7, #12]
  68349. 801bc34: 8d5a ldrh r2, [r3, #42] @ 0x2a
  68350. 801bc36: 68fb ldr r3, [r7, #12]
  68351. 801bc38: 851a strh r2, [r3, #40] @ 0x28
  68352. pcb->ttl = TCP_TTL;
  68353. 801bc3a: 68fb ldr r3, [r7, #12]
  68354. 801bc3c: 22ff movs r2, #255 @ 0xff
  68355. 801bc3e: 72da strb r2, [r3, #11]
  68356. /* As initial send MSS, we use TCP_MSS but limit it to 536.
  68357. The send MSS is updated when an MSS option is received. */
  68358. pcb->mss = INITIAL_MSS;
  68359. 801bc40: 68fb ldr r3, [r7, #12]
  68360. 801bc42: f44f 7206 mov.w r2, #536 @ 0x218
  68361. 801bc46: 865a strh r2, [r3, #50] @ 0x32
  68362. pcb->rto = 3000 / TCP_SLOW_INTERVAL;
  68363. 801bc48: 68fb ldr r3, [r7, #12]
  68364. 801bc4a: 2206 movs r2, #6
  68365. 801bc4c: f8a3 2040 strh.w r2, [r3, #64] @ 0x40
  68366. pcb->sv = 3000 / TCP_SLOW_INTERVAL;
  68367. 801bc50: 68fb ldr r3, [r7, #12]
  68368. 801bc52: 2206 movs r2, #6
  68369. 801bc54: 87da strh r2, [r3, #62] @ 0x3e
  68370. pcb->rtime = -1;
  68371. 801bc56: 68fb ldr r3, [r7, #12]
  68372. 801bc58: f64f 72ff movw r2, #65535 @ 0xffff
  68373. 801bc5c: 861a strh r2, [r3, #48] @ 0x30
  68374. pcb->cwnd = 1;
  68375. 801bc5e: 68fb ldr r3, [r7, #12]
  68376. 801bc60: 2201 movs r2, #1
  68377. 801bc62: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  68378. pcb->tmr = tcp_ticks;
  68379. 801bc66: 4b0d ldr r3, [pc, #52] @ (801bc9c <tcp_alloc+0xfc>)
  68380. 801bc68: 681a ldr r2, [r3, #0]
  68381. 801bc6a: 68fb ldr r3, [r7, #12]
  68382. 801bc6c: 621a str r2, [r3, #32]
  68383. pcb->last_timer = tcp_timer_ctr;
  68384. 801bc6e: 4b0c ldr r3, [pc, #48] @ (801bca0 <tcp_alloc+0x100>)
  68385. 801bc70: 781a ldrb r2, [r3, #0]
  68386. 801bc72: 68fb ldr r3, [r7, #12]
  68387. 801bc74: 779a strb r2, [r3, #30]
  68388. of using the largest advertised receive window. We've seen complications with
  68389. receiving TCPs that use window scaling and/or window auto-tuning where the
  68390. initial advertised window is very small and then grows rapidly once the
  68391. connection is established. To avoid these complications, we set ssthresh to the
  68392. largest effective cwnd (amount of in-flight data) that the sender can have. */
  68393. pcb->ssthresh = TCP_SND_BUF;
  68394. 801bc76: 68fb ldr r3, [r7, #12]
  68395. 801bc78: f241 62d0 movw r2, #5840 @ 0x16d0
  68396. 801bc7c: f8a3 204a strh.w r2, [r3, #74] @ 0x4a
  68397. #if LWIP_CALLBACK_API
  68398. pcb->recv = tcp_recv_null;
  68399. 801bc80: 68fb ldr r3, [r7, #12]
  68400. 801bc82: 4a08 ldr r2, [pc, #32] @ (801bca4 <tcp_alloc+0x104>)
  68401. 801bc84: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  68402. #endif /* LWIP_CALLBACK_API */
  68403. /* Init KEEPALIVE timer */
  68404. pcb->keep_idle = TCP_KEEPIDLE_DEFAULT;
  68405. 801bc88: 68fb ldr r3, [r7, #12]
  68406. 801bc8a: 4a07 ldr r2, [pc, #28] @ (801bca8 <tcp_alloc+0x108>)
  68407. 801bc8c: f8c3 2094 str.w r2, [r3, #148] @ 0x94
  68408. #if LWIP_TCP_KEEPALIVE
  68409. pcb->keep_intvl = TCP_KEEPINTVL_DEFAULT;
  68410. pcb->keep_cnt = TCP_KEEPCNT_DEFAULT;
  68411. #endif /* LWIP_TCP_KEEPALIVE */
  68412. }
  68413. return pcb;
  68414. 801bc90: 68fb ldr r3, [r7, #12]
  68415. }
  68416. 801bc92: 4618 mov r0, r3
  68417. 801bc94: 3710 adds r7, #16
  68418. 801bc96: 46bd mov sp, r7
  68419. 801bc98: bd80 pop {r7, pc}
  68420. 801bc9a: bf00 nop
  68421. 801bc9c: 24029fec .word 0x24029fec
  68422. 801bca0: 2402a002 .word 0x2402a002
  68423. 801bca4: 0801b959 .word 0x0801b959
  68424. 801bca8: 006ddd00 .word 0x006ddd00
  68425. 0801bcac <tcp_new_ip_type>:
  68426. * supply @ref IPADDR_TYPE_ANY as argument and bind to @ref IP_ANY_TYPE.
  68427. * @return a new tcp_pcb that initially is in state CLOSED
  68428. */
  68429. struct tcp_pcb *
  68430. tcp_new_ip_type(u8_t type)
  68431. {
  68432. 801bcac: b580 push {r7, lr}
  68433. 801bcae: b084 sub sp, #16
  68434. 801bcb0: af00 add r7, sp, #0
  68435. 801bcb2: 4603 mov r3, r0
  68436. 801bcb4: 71fb strb r3, [r7, #7]
  68437. struct tcp_pcb *pcb;
  68438. pcb = tcp_alloc(TCP_PRIO_NORMAL);
  68439. 801bcb6: 2040 movs r0, #64 @ 0x40
  68440. 801bcb8: f7ff ff72 bl 801bba0 <tcp_alloc>
  68441. 801bcbc: 60f8 str r0, [r7, #12]
  68442. IP_SET_TYPE_VAL(pcb->remote_ip, type);
  68443. }
  68444. #else
  68445. LWIP_UNUSED_ARG(type);
  68446. #endif /* LWIP_IPV4 && LWIP_IPV6 */
  68447. return pcb;
  68448. 801bcbe: 68fb ldr r3, [r7, #12]
  68449. }
  68450. 801bcc0: 4618 mov r0, r3
  68451. 801bcc2: 3710 adds r7, #16
  68452. 801bcc4: 46bd mov sp, r7
  68453. 801bcc6: bd80 pop {r7, pc}
  68454. 0801bcc8 <tcp_arg>:
  68455. * @param pcb tcp_pcb to set the callback argument
  68456. * @param arg void pointer argument to pass to callback functions
  68457. */
  68458. void
  68459. tcp_arg(struct tcp_pcb *pcb, void *arg)
  68460. {
  68461. 801bcc8: b580 push {r7, lr}
  68462. 801bcca: b082 sub sp, #8
  68463. 801bccc: af00 add r7, sp, #0
  68464. 801bcce: 6078 str r0, [r7, #4]
  68465. 801bcd0: 6039 str r1, [r7, #0]
  68466. LWIP_ASSERT_CORE_LOCKED();
  68467. 801bcd2: f7f4 f9cd bl 8010070 <sys_check_core_locking>
  68468. /* This function is allowed to be called for both listen pcbs and
  68469. connection pcbs. */
  68470. if (pcb != NULL) {
  68471. 801bcd6: 687b ldr r3, [r7, #4]
  68472. 801bcd8: 2b00 cmp r3, #0
  68473. 801bcda: d002 beq.n 801bce2 <tcp_arg+0x1a>
  68474. pcb->callback_arg = arg;
  68475. 801bcdc: 687b ldr r3, [r7, #4]
  68476. 801bcde: 683a ldr r2, [r7, #0]
  68477. 801bce0: 611a str r2, [r3, #16]
  68478. }
  68479. }
  68480. 801bce2: bf00 nop
  68481. 801bce4: 3708 adds r7, #8
  68482. 801bce6: 46bd mov sp, r7
  68483. 801bce8: bd80 pop {r7, pc}
  68484. ...
  68485. 0801bcec <tcp_recv>:
  68486. * @param pcb tcp_pcb to set the recv callback
  68487. * @param recv callback function to call for this pcb when data is received
  68488. */
  68489. void
  68490. tcp_recv(struct tcp_pcb *pcb, tcp_recv_fn recv)
  68491. {
  68492. 801bcec: b580 push {r7, lr}
  68493. 801bcee: b082 sub sp, #8
  68494. 801bcf0: af00 add r7, sp, #0
  68495. 801bcf2: 6078 str r0, [r7, #4]
  68496. 801bcf4: 6039 str r1, [r7, #0]
  68497. LWIP_ASSERT_CORE_LOCKED();
  68498. 801bcf6: f7f4 f9bb bl 8010070 <sys_check_core_locking>
  68499. if (pcb != NULL) {
  68500. 801bcfa: 687b ldr r3, [r7, #4]
  68501. 801bcfc: 2b00 cmp r3, #0
  68502. 801bcfe: d00e beq.n 801bd1e <tcp_recv+0x32>
  68503. LWIP_ASSERT("invalid socket state for recv callback", pcb->state != LISTEN);
  68504. 801bd00: 687b ldr r3, [r7, #4]
  68505. 801bd02: 7d1b ldrb r3, [r3, #20]
  68506. 801bd04: 2b01 cmp r3, #1
  68507. 801bd06: d106 bne.n 801bd16 <tcp_recv+0x2a>
  68508. 801bd08: 4b07 ldr r3, [pc, #28] @ (801bd28 <tcp_recv+0x3c>)
  68509. 801bd0a: f240 72df movw r2, #2015 @ 0x7df
  68510. 801bd0e: 4907 ldr r1, [pc, #28] @ (801bd2c <tcp_recv+0x40>)
  68511. 801bd10: 4807 ldr r0, [pc, #28] @ (801bd30 <tcp_recv+0x44>)
  68512. 801bd12: f00d fbfb bl 802950c <iprintf>
  68513. pcb->recv = recv;
  68514. 801bd16: 687b ldr r3, [r7, #4]
  68515. 801bd18: 683a ldr r2, [r7, #0]
  68516. 801bd1a: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  68517. }
  68518. }
  68519. 801bd1e: bf00 nop
  68520. 801bd20: 3708 adds r7, #8
  68521. 801bd22: 46bd mov sp, r7
  68522. 801bd24: bd80 pop {r7, pc}
  68523. 801bd26: bf00 nop
  68524. 801bd28: 0802e13c .word 0x0802e13c
  68525. 801bd2c: 0802e6d8 .word 0x0802e6d8
  68526. 801bd30: 0802e180 .word 0x0802e180
  68527. 0801bd34 <tcp_sent>:
  68528. * @param pcb tcp_pcb to set the sent callback
  68529. * @param sent callback function to call for this pcb when data is successfully sent
  68530. */
  68531. void
  68532. tcp_sent(struct tcp_pcb *pcb, tcp_sent_fn sent)
  68533. {
  68534. 801bd34: b580 push {r7, lr}
  68535. 801bd36: b082 sub sp, #8
  68536. 801bd38: af00 add r7, sp, #0
  68537. 801bd3a: 6078 str r0, [r7, #4]
  68538. 801bd3c: 6039 str r1, [r7, #0]
  68539. LWIP_ASSERT_CORE_LOCKED();
  68540. 801bd3e: f7f4 f997 bl 8010070 <sys_check_core_locking>
  68541. if (pcb != NULL) {
  68542. 801bd42: 687b ldr r3, [r7, #4]
  68543. 801bd44: 2b00 cmp r3, #0
  68544. 801bd46: d00e beq.n 801bd66 <tcp_sent+0x32>
  68545. LWIP_ASSERT("invalid socket state for sent callback", pcb->state != LISTEN);
  68546. 801bd48: 687b ldr r3, [r7, #4]
  68547. 801bd4a: 7d1b ldrb r3, [r3, #20]
  68548. 801bd4c: 2b01 cmp r3, #1
  68549. 801bd4e: d106 bne.n 801bd5e <tcp_sent+0x2a>
  68550. 801bd50: 4b07 ldr r3, [pc, #28] @ (801bd70 <tcp_sent+0x3c>)
  68551. 801bd52: f240 72f3 movw r2, #2035 @ 0x7f3
  68552. 801bd56: 4907 ldr r1, [pc, #28] @ (801bd74 <tcp_sent+0x40>)
  68553. 801bd58: 4807 ldr r0, [pc, #28] @ (801bd78 <tcp_sent+0x44>)
  68554. 801bd5a: f00d fbd7 bl 802950c <iprintf>
  68555. pcb->sent = sent;
  68556. 801bd5e: 687b ldr r3, [r7, #4]
  68557. 801bd60: 683a ldr r2, [r7, #0]
  68558. 801bd62: f8c3 2080 str.w r2, [r3, #128] @ 0x80
  68559. }
  68560. }
  68561. 801bd66: bf00 nop
  68562. 801bd68: 3708 adds r7, #8
  68563. 801bd6a: 46bd mov sp, r7
  68564. 801bd6c: bd80 pop {r7, pc}
  68565. 801bd6e: bf00 nop
  68566. 801bd70: 0802e13c .word 0x0802e13c
  68567. 801bd74: 0802e700 .word 0x0802e700
  68568. 801bd78: 0802e180 .word 0x0802e180
  68569. 0801bd7c <tcp_err>:
  68570. * @param err callback function to call for this pcb when a fatal error
  68571. * has occurred on the connection
  68572. */
  68573. void
  68574. tcp_err(struct tcp_pcb *pcb, tcp_err_fn err)
  68575. {
  68576. 801bd7c: b580 push {r7, lr}
  68577. 801bd7e: b082 sub sp, #8
  68578. 801bd80: af00 add r7, sp, #0
  68579. 801bd82: 6078 str r0, [r7, #4]
  68580. 801bd84: 6039 str r1, [r7, #0]
  68581. LWIP_ASSERT_CORE_LOCKED();
  68582. 801bd86: f7f4 f973 bl 8010070 <sys_check_core_locking>
  68583. if (pcb != NULL) {
  68584. 801bd8a: 687b ldr r3, [r7, #4]
  68585. 801bd8c: 2b00 cmp r3, #0
  68586. 801bd8e: d00e beq.n 801bdae <tcp_err+0x32>
  68587. LWIP_ASSERT("invalid socket state for err callback", pcb->state != LISTEN);
  68588. 801bd90: 687b ldr r3, [r7, #4]
  68589. 801bd92: 7d1b ldrb r3, [r3, #20]
  68590. 801bd94: 2b01 cmp r3, #1
  68591. 801bd96: d106 bne.n 801bda6 <tcp_err+0x2a>
  68592. 801bd98: 4b07 ldr r3, [pc, #28] @ (801bdb8 <tcp_err+0x3c>)
  68593. 801bd9a: f640 020d movw r2, #2061 @ 0x80d
  68594. 801bd9e: 4907 ldr r1, [pc, #28] @ (801bdbc <tcp_err+0x40>)
  68595. 801bda0: 4807 ldr r0, [pc, #28] @ (801bdc0 <tcp_err+0x44>)
  68596. 801bda2: f00d fbb3 bl 802950c <iprintf>
  68597. pcb->errf = err;
  68598. 801bda6: 687b ldr r3, [r7, #4]
  68599. 801bda8: 683a ldr r2, [r7, #0]
  68600. 801bdaa: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  68601. }
  68602. }
  68603. 801bdae: bf00 nop
  68604. 801bdb0: 3708 adds r7, #8
  68605. 801bdb2: 46bd mov sp, r7
  68606. 801bdb4: bd80 pop {r7, pc}
  68607. 801bdb6: bf00 nop
  68608. 801bdb8: 0802e13c .word 0x0802e13c
  68609. 801bdbc: 0802e728 .word 0x0802e728
  68610. 801bdc0: 0802e180 .word 0x0802e180
  68611. 0801bdc4 <tcp_accept>:
  68612. * @param accept callback function to call for this pcb when LISTENing
  68613. * connection has been connected to another host
  68614. */
  68615. void
  68616. tcp_accept(struct tcp_pcb *pcb, tcp_accept_fn accept)
  68617. {
  68618. 801bdc4: b580 push {r7, lr}
  68619. 801bdc6: b084 sub sp, #16
  68620. 801bdc8: af00 add r7, sp, #0
  68621. 801bdca: 6078 str r0, [r7, #4]
  68622. 801bdcc: 6039 str r1, [r7, #0]
  68623. LWIP_ASSERT_CORE_LOCKED();
  68624. 801bdce: f7f4 f94f bl 8010070 <sys_check_core_locking>
  68625. if ((pcb != NULL) && (pcb->state == LISTEN)) {
  68626. 801bdd2: 687b ldr r3, [r7, #4]
  68627. 801bdd4: 2b00 cmp r3, #0
  68628. 801bdd6: d008 beq.n 801bdea <tcp_accept+0x26>
  68629. 801bdd8: 687b ldr r3, [r7, #4]
  68630. 801bdda: 7d1b ldrb r3, [r3, #20]
  68631. 801bddc: 2b01 cmp r3, #1
  68632. 801bdde: d104 bne.n 801bdea <tcp_accept+0x26>
  68633. struct tcp_pcb_listen *lpcb = (struct tcp_pcb_listen *)pcb;
  68634. 801bde0: 687b ldr r3, [r7, #4]
  68635. 801bde2: 60fb str r3, [r7, #12]
  68636. lpcb->accept = accept;
  68637. 801bde4: 68fb ldr r3, [r7, #12]
  68638. 801bde6: 683a ldr r2, [r7, #0]
  68639. 801bde8: 619a str r2, [r3, #24]
  68640. }
  68641. }
  68642. 801bdea: bf00 nop
  68643. 801bdec: 3710 adds r7, #16
  68644. 801bdee: 46bd mov sp, r7
  68645. 801bdf0: bd80 pop {r7, pc}
  68646. ...
  68647. 0801bdf4 <tcp_poll>:
  68648. * the application may use the polling functionality to call tcp_write()
  68649. * again when the connection has been idle for a while.
  68650. */
  68651. void
  68652. tcp_poll(struct tcp_pcb *pcb, tcp_poll_fn poll, u8_t interval)
  68653. {
  68654. 801bdf4: b580 push {r7, lr}
  68655. 801bdf6: b084 sub sp, #16
  68656. 801bdf8: af00 add r7, sp, #0
  68657. 801bdfa: 60f8 str r0, [r7, #12]
  68658. 801bdfc: 60b9 str r1, [r7, #8]
  68659. 801bdfe: 4613 mov r3, r2
  68660. 801be00: 71fb strb r3, [r7, #7]
  68661. LWIP_ASSERT_CORE_LOCKED();
  68662. 801be02: f7f4 f935 bl 8010070 <sys_check_core_locking>
  68663. LWIP_ERROR("tcp_poll: invalid pcb", pcb != NULL, return);
  68664. 801be06: 68fb ldr r3, [r7, #12]
  68665. 801be08: 2b00 cmp r3, #0
  68666. 801be0a: d107 bne.n 801be1c <tcp_poll+0x28>
  68667. 801be0c: 4b0e ldr r3, [pc, #56] @ (801be48 <tcp_poll+0x54>)
  68668. 801be0e: f640 023d movw r2, #2109 @ 0x83d
  68669. 801be12: 490e ldr r1, [pc, #56] @ (801be4c <tcp_poll+0x58>)
  68670. 801be14: 480e ldr r0, [pc, #56] @ (801be50 <tcp_poll+0x5c>)
  68671. 801be16: f00d fb79 bl 802950c <iprintf>
  68672. 801be1a: e011 b.n 801be40 <tcp_poll+0x4c>
  68673. LWIP_ASSERT("invalid socket state for poll", pcb->state != LISTEN);
  68674. 801be1c: 68fb ldr r3, [r7, #12]
  68675. 801be1e: 7d1b ldrb r3, [r3, #20]
  68676. 801be20: 2b01 cmp r3, #1
  68677. 801be22: d106 bne.n 801be32 <tcp_poll+0x3e>
  68678. 801be24: 4b08 ldr r3, [pc, #32] @ (801be48 <tcp_poll+0x54>)
  68679. 801be26: f640 023e movw r2, #2110 @ 0x83e
  68680. 801be2a: 490a ldr r1, [pc, #40] @ (801be54 <tcp_poll+0x60>)
  68681. 801be2c: 4808 ldr r0, [pc, #32] @ (801be50 <tcp_poll+0x5c>)
  68682. 801be2e: f00d fb6d bl 802950c <iprintf>
  68683. #if LWIP_CALLBACK_API
  68684. pcb->poll = poll;
  68685. 801be32: 68fb ldr r3, [r7, #12]
  68686. 801be34: 68ba ldr r2, [r7, #8]
  68687. 801be36: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  68688. #else /* LWIP_CALLBACK_API */
  68689. LWIP_UNUSED_ARG(poll);
  68690. #endif /* LWIP_CALLBACK_API */
  68691. pcb->pollinterval = interval;
  68692. 801be3a: 68fb ldr r3, [r7, #12]
  68693. 801be3c: 79fa ldrb r2, [r7, #7]
  68694. 801be3e: 775a strb r2, [r3, #29]
  68695. }
  68696. 801be40: 3710 adds r7, #16
  68697. 801be42: 46bd mov sp, r7
  68698. 801be44: bd80 pop {r7, pc}
  68699. 801be46: bf00 nop
  68700. 801be48: 0802e13c .word 0x0802e13c
  68701. 801be4c: 0802e750 .word 0x0802e750
  68702. 801be50: 0802e180 .word 0x0802e180
  68703. 801be54: 0802e768 .word 0x0802e768
  68704. 0801be58 <tcp_pcb_purge>:
  68705. *
  68706. * @param pcb tcp_pcb to purge. The pcb itself is not deallocated!
  68707. */
  68708. void
  68709. tcp_pcb_purge(struct tcp_pcb *pcb)
  68710. {
  68711. 801be58: b580 push {r7, lr}
  68712. 801be5a: b082 sub sp, #8
  68713. 801be5c: af00 add r7, sp, #0
  68714. 801be5e: 6078 str r0, [r7, #4]
  68715. LWIP_ERROR("tcp_pcb_purge: invalid pcb", pcb != NULL, return);
  68716. 801be60: 687b ldr r3, [r7, #4]
  68717. 801be62: 2b00 cmp r3, #0
  68718. 801be64: d107 bne.n 801be76 <tcp_pcb_purge+0x1e>
  68719. 801be66: 4b21 ldr r3, [pc, #132] @ (801beec <tcp_pcb_purge+0x94>)
  68720. 801be68: f640 0251 movw r2, #2129 @ 0x851
  68721. 801be6c: 4920 ldr r1, [pc, #128] @ (801bef0 <tcp_pcb_purge+0x98>)
  68722. 801be6e: 4821 ldr r0, [pc, #132] @ (801bef4 <tcp_pcb_purge+0x9c>)
  68723. 801be70: f00d fb4c bl 802950c <iprintf>
  68724. 801be74: e037 b.n 801bee6 <tcp_pcb_purge+0x8e>
  68725. if (pcb->state != CLOSED &&
  68726. 801be76: 687b ldr r3, [r7, #4]
  68727. 801be78: 7d1b ldrb r3, [r3, #20]
  68728. 801be7a: 2b00 cmp r3, #0
  68729. 801be7c: d033 beq.n 801bee6 <tcp_pcb_purge+0x8e>
  68730. pcb->state != TIME_WAIT &&
  68731. 801be7e: 687b ldr r3, [r7, #4]
  68732. 801be80: 7d1b ldrb r3, [r3, #20]
  68733. if (pcb->state != CLOSED &&
  68734. 801be82: 2b0a cmp r3, #10
  68735. 801be84: d02f beq.n 801bee6 <tcp_pcb_purge+0x8e>
  68736. pcb->state != LISTEN) {
  68737. 801be86: 687b ldr r3, [r7, #4]
  68738. 801be88: 7d1b ldrb r3, [r3, #20]
  68739. pcb->state != TIME_WAIT &&
  68740. 801be8a: 2b01 cmp r3, #1
  68741. 801be8c: d02b beq.n 801bee6 <tcp_pcb_purge+0x8e>
  68742. LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge\n"));
  68743. tcp_backlog_accepted(pcb);
  68744. if (pcb->refused_data != NULL) {
  68745. 801be8e: 687b ldr r3, [r7, #4]
  68746. 801be90: 6f9b ldr r3, [r3, #120] @ 0x78
  68747. 801be92: 2b00 cmp r3, #0
  68748. 801be94: d007 beq.n 801bea6 <tcp_pcb_purge+0x4e>
  68749. LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->refused_data\n"));
  68750. pbuf_free(pcb->refused_data);
  68751. 801be96: 687b ldr r3, [r7, #4]
  68752. 801be98: 6f9b ldr r3, [r3, #120] @ 0x78
  68753. 801be9a: 4618 mov r0, r3
  68754. 801be9c: f7fe f8be bl 801a01c <pbuf_free>
  68755. pcb->refused_data = NULL;
  68756. 801bea0: 687b ldr r3, [r7, #4]
  68757. 801bea2: 2200 movs r2, #0
  68758. 801bea4: 679a str r2, [r3, #120] @ 0x78
  68759. }
  68760. if (pcb->unacked != NULL) {
  68761. LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->unacked\n"));
  68762. }
  68763. #if TCP_QUEUE_OOSEQ
  68764. if (pcb->ooseq != NULL) {
  68765. 801bea6: 687b ldr r3, [r7, #4]
  68766. 801bea8: 6f5b ldr r3, [r3, #116] @ 0x74
  68767. 801beaa: 2b00 cmp r3, #0
  68768. 801beac: d002 beq.n 801beb4 <tcp_pcb_purge+0x5c>
  68769. LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->ooseq\n"));
  68770. tcp_free_ooseq(pcb);
  68771. 801beae: 6878 ldr r0, [r7, #4]
  68772. 801beb0: f000 f986 bl 801c1c0 <tcp_free_ooseq>
  68773. }
  68774. #endif /* TCP_QUEUE_OOSEQ */
  68775. /* Stop the retransmission timer as it will expect data on unacked
  68776. queue if it fires */
  68777. pcb->rtime = -1;
  68778. 801beb4: 687b ldr r3, [r7, #4]
  68779. 801beb6: f64f 72ff movw r2, #65535 @ 0xffff
  68780. 801beba: 861a strh r2, [r3, #48] @ 0x30
  68781. tcp_segs_free(pcb->unsent);
  68782. 801bebc: 687b ldr r3, [r7, #4]
  68783. 801bebe: 6edb ldr r3, [r3, #108] @ 0x6c
  68784. 801bec0: 4618 mov r0, r3
  68785. 801bec2: f7ff fcef bl 801b8a4 <tcp_segs_free>
  68786. tcp_segs_free(pcb->unacked);
  68787. 801bec6: 687b ldr r3, [r7, #4]
  68788. 801bec8: 6f1b ldr r3, [r3, #112] @ 0x70
  68789. 801beca: 4618 mov r0, r3
  68790. 801becc: f7ff fcea bl 801b8a4 <tcp_segs_free>
  68791. pcb->unacked = pcb->unsent = NULL;
  68792. 801bed0: 687b ldr r3, [r7, #4]
  68793. 801bed2: 2200 movs r2, #0
  68794. 801bed4: 66da str r2, [r3, #108] @ 0x6c
  68795. 801bed6: 687b ldr r3, [r7, #4]
  68796. 801bed8: 6eda ldr r2, [r3, #108] @ 0x6c
  68797. 801beda: 687b ldr r3, [r7, #4]
  68798. 801bedc: 671a str r2, [r3, #112] @ 0x70
  68799. #if TCP_OVERSIZE
  68800. pcb->unsent_oversize = 0;
  68801. 801bede: 687b ldr r3, [r7, #4]
  68802. 801bee0: 2200 movs r2, #0
  68803. 801bee2: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  68804. #endif /* TCP_OVERSIZE */
  68805. }
  68806. }
  68807. 801bee6: 3708 adds r7, #8
  68808. 801bee8: 46bd mov sp, r7
  68809. 801beea: bd80 pop {r7, pc}
  68810. 801beec: 0802e13c .word 0x0802e13c
  68811. 801bef0: 0802e788 .word 0x0802e788
  68812. 801bef4: 0802e180 .word 0x0802e180
  68813. 0801bef8 <tcp_pcb_remove>:
  68814. * @param pcblist PCB list to purge.
  68815. * @param pcb tcp_pcb to purge. The pcb itself is NOT deallocated!
  68816. */
  68817. void
  68818. tcp_pcb_remove(struct tcp_pcb **pcblist, struct tcp_pcb *pcb)
  68819. {
  68820. 801bef8: b580 push {r7, lr}
  68821. 801befa: b084 sub sp, #16
  68822. 801befc: af00 add r7, sp, #0
  68823. 801befe: 6078 str r0, [r7, #4]
  68824. 801bf00: 6039 str r1, [r7, #0]
  68825. LWIP_ASSERT("tcp_pcb_remove: invalid pcb", pcb != NULL);
  68826. 801bf02: 683b ldr r3, [r7, #0]
  68827. 801bf04: 2b00 cmp r3, #0
  68828. 801bf06: d106 bne.n 801bf16 <tcp_pcb_remove+0x1e>
  68829. 801bf08: 4b3e ldr r3, [pc, #248] @ (801c004 <tcp_pcb_remove+0x10c>)
  68830. 801bf0a: f640 0283 movw r2, #2179 @ 0x883
  68831. 801bf0e: 493e ldr r1, [pc, #248] @ (801c008 <tcp_pcb_remove+0x110>)
  68832. 801bf10: 483e ldr r0, [pc, #248] @ (801c00c <tcp_pcb_remove+0x114>)
  68833. 801bf12: f00d fafb bl 802950c <iprintf>
  68834. LWIP_ASSERT("tcp_pcb_remove: invalid pcblist", pcblist != NULL);
  68835. 801bf16: 687b ldr r3, [r7, #4]
  68836. 801bf18: 2b00 cmp r3, #0
  68837. 801bf1a: d106 bne.n 801bf2a <tcp_pcb_remove+0x32>
  68838. 801bf1c: 4b39 ldr r3, [pc, #228] @ (801c004 <tcp_pcb_remove+0x10c>)
  68839. 801bf1e: f640 0284 movw r2, #2180 @ 0x884
  68840. 801bf22: 493b ldr r1, [pc, #236] @ (801c010 <tcp_pcb_remove+0x118>)
  68841. 801bf24: 4839 ldr r0, [pc, #228] @ (801c00c <tcp_pcb_remove+0x114>)
  68842. 801bf26: f00d faf1 bl 802950c <iprintf>
  68843. TCP_RMV(pcblist, pcb);
  68844. 801bf2a: 687b ldr r3, [r7, #4]
  68845. 801bf2c: 681b ldr r3, [r3, #0]
  68846. 801bf2e: 683a ldr r2, [r7, #0]
  68847. 801bf30: 429a cmp r2, r3
  68848. 801bf32: d105 bne.n 801bf40 <tcp_pcb_remove+0x48>
  68849. 801bf34: 687b ldr r3, [r7, #4]
  68850. 801bf36: 681b ldr r3, [r3, #0]
  68851. 801bf38: 68da ldr r2, [r3, #12]
  68852. 801bf3a: 687b ldr r3, [r7, #4]
  68853. 801bf3c: 601a str r2, [r3, #0]
  68854. 801bf3e: e013 b.n 801bf68 <tcp_pcb_remove+0x70>
  68855. 801bf40: 687b ldr r3, [r7, #4]
  68856. 801bf42: 681b ldr r3, [r3, #0]
  68857. 801bf44: 60fb str r3, [r7, #12]
  68858. 801bf46: e00c b.n 801bf62 <tcp_pcb_remove+0x6a>
  68859. 801bf48: 68fb ldr r3, [r7, #12]
  68860. 801bf4a: 68db ldr r3, [r3, #12]
  68861. 801bf4c: 683a ldr r2, [r7, #0]
  68862. 801bf4e: 429a cmp r2, r3
  68863. 801bf50: d104 bne.n 801bf5c <tcp_pcb_remove+0x64>
  68864. 801bf52: 683b ldr r3, [r7, #0]
  68865. 801bf54: 68da ldr r2, [r3, #12]
  68866. 801bf56: 68fb ldr r3, [r7, #12]
  68867. 801bf58: 60da str r2, [r3, #12]
  68868. 801bf5a: e005 b.n 801bf68 <tcp_pcb_remove+0x70>
  68869. 801bf5c: 68fb ldr r3, [r7, #12]
  68870. 801bf5e: 68db ldr r3, [r3, #12]
  68871. 801bf60: 60fb str r3, [r7, #12]
  68872. 801bf62: 68fb ldr r3, [r7, #12]
  68873. 801bf64: 2b00 cmp r3, #0
  68874. 801bf66: d1ef bne.n 801bf48 <tcp_pcb_remove+0x50>
  68875. 801bf68: 683b ldr r3, [r7, #0]
  68876. 801bf6a: 2200 movs r2, #0
  68877. 801bf6c: 60da str r2, [r3, #12]
  68878. tcp_pcb_purge(pcb);
  68879. 801bf6e: 6838 ldr r0, [r7, #0]
  68880. 801bf70: f7ff ff72 bl 801be58 <tcp_pcb_purge>
  68881. /* if there is an outstanding delayed ACKs, send it */
  68882. if ((pcb->state != TIME_WAIT) &&
  68883. 801bf74: 683b ldr r3, [r7, #0]
  68884. 801bf76: 7d1b ldrb r3, [r3, #20]
  68885. 801bf78: 2b0a cmp r3, #10
  68886. 801bf7a: d013 beq.n 801bfa4 <tcp_pcb_remove+0xac>
  68887. (pcb->state != LISTEN) &&
  68888. 801bf7c: 683b ldr r3, [r7, #0]
  68889. 801bf7e: 7d1b ldrb r3, [r3, #20]
  68890. if ((pcb->state != TIME_WAIT) &&
  68891. 801bf80: 2b01 cmp r3, #1
  68892. 801bf82: d00f beq.n 801bfa4 <tcp_pcb_remove+0xac>
  68893. (pcb->flags & TF_ACK_DELAY)) {
  68894. 801bf84: 683b ldr r3, [r7, #0]
  68895. 801bf86: 8b5b ldrh r3, [r3, #26]
  68896. 801bf88: f003 0301 and.w r3, r3, #1
  68897. (pcb->state != LISTEN) &&
  68898. 801bf8c: 2b00 cmp r3, #0
  68899. 801bf8e: d009 beq.n 801bfa4 <tcp_pcb_remove+0xac>
  68900. tcp_ack_now(pcb);
  68901. 801bf90: 683b ldr r3, [r7, #0]
  68902. 801bf92: 8b5b ldrh r3, [r3, #26]
  68903. 801bf94: f043 0302 orr.w r3, r3, #2
  68904. 801bf98: b29a uxth r2, r3
  68905. 801bf9a: 683b ldr r3, [r7, #0]
  68906. 801bf9c: 835a strh r2, [r3, #26]
  68907. tcp_output(pcb);
  68908. 801bf9e: 6838 ldr r0, [r7, #0]
  68909. 801bfa0: f003 fc28 bl 801f7f4 <tcp_output>
  68910. }
  68911. if (pcb->state != LISTEN) {
  68912. 801bfa4: 683b ldr r3, [r7, #0]
  68913. 801bfa6: 7d1b ldrb r3, [r3, #20]
  68914. 801bfa8: 2b01 cmp r3, #1
  68915. 801bfaa: d020 beq.n 801bfee <tcp_pcb_remove+0xf6>
  68916. LWIP_ASSERT("unsent segments leaking", pcb->unsent == NULL);
  68917. 801bfac: 683b ldr r3, [r7, #0]
  68918. 801bfae: 6edb ldr r3, [r3, #108] @ 0x6c
  68919. 801bfb0: 2b00 cmp r3, #0
  68920. 801bfb2: d006 beq.n 801bfc2 <tcp_pcb_remove+0xca>
  68921. 801bfb4: 4b13 ldr r3, [pc, #76] @ (801c004 <tcp_pcb_remove+0x10c>)
  68922. 801bfb6: f640 0293 movw r2, #2195 @ 0x893
  68923. 801bfba: 4916 ldr r1, [pc, #88] @ (801c014 <tcp_pcb_remove+0x11c>)
  68924. 801bfbc: 4813 ldr r0, [pc, #76] @ (801c00c <tcp_pcb_remove+0x114>)
  68925. 801bfbe: f00d faa5 bl 802950c <iprintf>
  68926. LWIP_ASSERT("unacked segments leaking", pcb->unacked == NULL);
  68927. 801bfc2: 683b ldr r3, [r7, #0]
  68928. 801bfc4: 6f1b ldr r3, [r3, #112] @ 0x70
  68929. 801bfc6: 2b00 cmp r3, #0
  68930. 801bfc8: d006 beq.n 801bfd8 <tcp_pcb_remove+0xe0>
  68931. 801bfca: 4b0e ldr r3, [pc, #56] @ (801c004 <tcp_pcb_remove+0x10c>)
  68932. 801bfcc: f640 0294 movw r2, #2196 @ 0x894
  68933. 801bfd0: 4911 ldr r1, [pc, #68] @ (801c018 <tcp_pcb_remove+0x120>)
  68934. 801bfd2: 480e ldr r0, [pc, #56] @ (801c00c <tcp_pcb_remove+0x114>)
  68935. 801bfd4: f00d fa9a bl 802950c <iprintf>
  68936. #if TCP_QUEUE_OOSEQ
  68937. LWIP_ASSERT("ooseq segments leaking", pcb->ooseq == NULL);
  68938. 801bfd8: 683b ldr r3, [r7, #0]
  68939. 801bfda: 6f5b ldr r3, [r3, #116] @ 0x74
  68940. 801bfdc: 2b00 cmp r3, #0
  68941. 801bfde: d006 beq.n 801bfee <tcp_pcb_remove+0xf6>
  68942. 801bfe0: 4b08 ldr r3, [pc, #32] @ (801c004 <tcp_pcb_remove+0x10c>)
  68943. 801bfe2: f640 0296 movw r2, #2198 @ 0x896
  68944. 801bfe6: 490d ldr r1, [pc, #52] @ (801c01c <tcp_pcb_remove+0x124>)
  68945. 801bfe8: 4808 ldr r0, [pc, #32] @ (801c00c <tcp_pcb_remove+0x114>)
  68946. 801bfea: f00d fa8f bl 802950c <iprintf>
  68947. #endif /* TCP_QUEUE_OOSEQ */
  68948. }
  68949. pcb->state = CLOSED;
  68950. 801bfee: 683b ldr r3, [r7, #0]
  68951. 801bff0: 2200 movs r2, #0
  68952. 801bff2: 751a strb r2, [r3, #20]
  68953. /* reset the local port to prevent the pcb from being 'bound' */
  68954. pcb->local_port = 0;
  68955. 801bff4: 683b ldr r3, [r7, #0]
  68956. 801bff6: 2200 movs r2, #0
  68957. 801bff8: 82da strh r2, [r3, #22]
  68958. LWIP_ASSERT("tcp_pcb_remove: tcp_pcbs_sane()", tcp_pcbs_sane());
  68959. }
  68960. 801bffa: bf00 nop
  68961. 801bffc: 3710 adds r7, #16
  68962. 801bffe: 46bd mov sp, r7
  68963. 801c000: bd80 pop {r7, pc}
  68964. 801c002: bf00 nop
  68965. 801c004: 0802e13c .word 0x0802e13c
  68966. 801c008: 0802e7a4 .word 0x0802e7a4
  68967. 801c00c: 0802e180 .word 0x0802e180
  68968. 801c010: 0802e7c0 .word 0x0802e7c0
  68969. 801c014: 0802e7e0 .word 0x0802e7e0
  68970. 801c018: 0802e7f8 .word 0x0802e7f8
  68971. 801c01c: 0802e814 .word 0x0802e814
  68972. 0801c020 <tcp_next_iss>:
  68973. *
  68974. * @return u32_t pseudo random sequence number
  68975. */
  68976. u32_t
  68977. tcp_next_iss(struct tcp_pcb *pcb)
  68978. {
  68979. 801c020: b580 push {r7, lr}
  68980. 801c022: b082 sub sp, #8
  68981. 801c024: af00 add r7, sp, #0
  68982. 801c026: 6078 str r0, [r7, #4]
  68983. LWIP_ASSERT("tcp_next_iss: invalid pcb", pcb != NULL);
  68984. return LWIP_HOOK_TCP_ISN(&pcb->local_ip, pcb->local_port, &pcb->remote_ip, pcb->remote_port);
  68985. #else /* LWIP_HOOK_TCP_ISN */
  68986. static u32_t iss = 6510;
  68987. LWIP_ASSERT("tcp_next_iss: invalid pcb", pcb != NULL);
  68988. 801c028: 687b ldr r3, [r7, #4]
  68989. 801c02a: 2b00 cmp r3, #0
  68990. 801c02c: d106 bne.n 801c03c <tcp_next_iss+0x1c>
  68991. 801c02e: 4b0a ldr r3, [pc, #40] @ (801c058 <tcp_next_iss+0x38>)
  68992. 801c030: f640 02af movw r2, #2223 @ 0x8af
  68993. 801c034: 4909 ldr r1, [pc, #36] @ (801c05c <tcp_next_iss+0x3c>)
  68994. 801c036: 480a ldr r0, [pc, #40] @ (801c060 <tcp_next_iss+0x40>)
  68995. 801c038: f00d fa68 bl 802950c <iprintf>
  68996. LWIP_UNUSED_ARG(pcb);
  68997. iss += tcp_ticks; /* XXX */
  68998. 801c03c: 4b09 ldr r3, [pc, #36] @ (801c064 <tcp_next_iss+0x44>)
  68999. 801c03e: 681a ldr r2, [r3, #0]
  69000. 801c040: 4b09 ldr r3, [pc, #36] @ (801c068 <tcp_next_iss+0x48>)
  69001. 801c042: 681b ldr r3, [r3, #0]
  69002. 801c044: 4413 add r3, r2
  69003. 801c046: 4a07 ldr r2, [pc, #28] @ (801c064 <tcp_next_iss+0x44>)
  69004. 801c048: 6013 str r3, [r2, #0]
  69005. return iss;
  69006. 801c04a: 4b06 ldr r3, [pc, #24] @ (801c064 <tcp_next_iss+0x44>)
  69007. 801c04c: 681b ldr r3, [r3, #0]
  69008. #endif /* LWIP_HOOK_TCP_ISN */
  69009. }
  69010. 801c04e: 4618 mov r0, r3
  69011. 801c050: 3708 adds r7, #8
  69012. 801c052: 46bd mov sp, r7
  69013. 801c054: bd80 pop {r7, pc}
  69014. 801c056: bf00 nop
  69015. 801c058: 0802e13c .word 0x0802e13c
  69016. 801c05c: 0802e82c .word 0x0802e82c
  69017. 801c060: 0802e180 .word 0x0802e180
  69018. 801c064: 2400003c .word 0x2400003c
  69019. 801c068: 24029fec .word 0x24029fec
  69020. 0801c06c <tcp_eff_send_mss_netif>:
  69021. * by calculating the minimum of TCP_MSS and the mtu (if set) of the target
  69022. * netif (if not NULL).
  69023. */
  69024. u16_t
  69025. tcp_eff_send_mss_netif(u16_t sendmss, struct netif *outif, const ip_addr_t *dest)
  69026. {
  69027. 801c06c: b580 push {r7, lr}
  69028. 801c06e: b086 sub sp, #24
  69029. 801c070: af00 add r7, sp, #0
  69030. 801c072: 4603 mov r3, r0
  69031. 801c074: 60b9 str r1, [r7, #8]
  69032. 801c076: 607a str r2, [r7, #4]
  69033. 801c078: 81fb strh r3, [r7, #14]
  69034. u16_t mss_s;
  69035. u16_t mtu;
  69036. LWIP_UNUSED_ARG(dest); /* in case IPv6 is disabled */
  69037. LWIP_ASSERT("tcp_eff_send_mss_netif: invalid dst_ip", dest != NULL);
  69038. 801c07a: 687b ldr r3, [r7, #4]
  69039. 801c07c: 2b00 cmp r3, #0
  69040. 801c07e: d106 bne.n 801c08e <tcp_eff_send_mss_netif+0x22>
  69041. 801c080: 4b14 ldr r3, [pc, #80] @ (801c0d4 <tcp_eff_send_mss_netif+0x68>)
  69042. 801c082: f640 02c5 movw r2, #2245 @ 0x8c5
  69043. 801c086: 4914 ldr r1, [pc, #80] @ (801c0d8 <tcp_eff_send_mss_netif+0x6c>)
  69044. 801c088: 4814 ldr r0, [pc, #80] @ (801c0dc <tcp_eff_send_mss_netif+0x70>)
  69045. 801c08a: f00d fa3f bl 802950c <iprintf>
  69046. else
  69047. #endif /* LWIP_IPV4 */
  69048. #endif /* LWIP_IPV6 */
  69049. #if LWIP_IPV4
  69050. {
  69051. if (outif == NULL) {
  69052. 801c08e: 68bb ldr r3, [r7, #8]
  69053. 801c090: 2b00 cmp r3, #0
  69054. 801c092: d101 bne.n 801c098 <tcp_eff_send_mss_netif+0x2c>
  69055. return sendmss;
  69056. 801c094: 89fb ldrh r3, [r7, #14]
  69057. 801c096: e019 b.n 801c0cc <tcp_eff_send_mss_netif+0x60>
  69058. }
  69059. mtu = outif->mtu;
  69060. 801c098: 68bb ldr r3, [r7, #8]
  69061. 801c09a: 8d1b ldrh r3, [r3, #40] @ 0x28
  69062. 801c09c: 82fb strh r3, [r7, #22]
  69063. }
  69064. #endif /* LWIP_IPV4 */
  69065. if (mtu != 0) {
  69066. 801c09e: 8afb ldrh r3, [r7, #22]
  69067. 801c0a0: 2b00 cmp r3, #0
  69068. 801c0a2: d012 beq.n 801c0ca <tcp_eff_send_mss_netif+0x5e>
  69069. else
  69070. #endif /* LWIP_IPV4 */
  69071. #endif /* LWIP_IPV6 */
  69072. #if LWIP_IPV4
  69073. {
  69074. offset = IP_HLEN + TCP_HLEN;
  69075. 801c0a4: 2328 movs r3, #40 @ 0x28
  69076. 801c0a6: 82bb strh r3, [r7, #20]
  69077. }
  69078. #endif /* LWIP_IPV4 */
  69079. mss_s = (mtu > offset) ? (u16_t)(mtu - offset) : 0;
  69080. 801c0a8: 8afa ldrh r2, [r7, #22]
  69081. 801c0aa: 8abb ldrh r3, [r7, #20]
  69082. 801c0ac: 429a cmp r2, r3
  69083. 801c0ae: d904 bls.n 801c0ba <tcp_eff_send_mss_netif+0x4e>
  69084. 801c0b0: 8afa ldrh r2, [r7, #22]
  69085. 801c0b2: 8abb ldrh r3, [r7, #20]
  69086. 801c0b4: 1ad3 subs r3, r2, r3
  69087. 801c0b6: b29b uxth r3, r3
  69088. 801c0b8: e000 b.n 801c0bc <tcp_eff_send_mss_netif+0x50>
  69089. 801c0ba: 2300 movs r3, #0
  69090. 801c0bc: 827b strh r3, [r7, #18]
  69091. /* RFC 1122, chap 4.2.2.6:
  69092. * Eff.snd.MSS = min(SendMSS+20, MMS_S) - TCPhdrsize - IPoptionsize
  69093. * We correct for TCP options in tcp_write(), and don't support IP options.
  69094. */
  69095. sendmss = LWIP_MIN(sendmss, mss_s);
  69096. 801c0be: 8a7a ldrh r2, [r7, #18]
  69097. 801c0c0: 89fb ldrh r3, [r7, #14]
  69098. 801c0c2: 4293 cmp r3, r2
  69099. 801c0c4: bf28 it cs
  69100. 801c0c6: 4613 movcs r3, r2
  69101. 801c0c8: 81fb strh r3, [r7, #14]
  69102. }
  69103. return sendmss;
  69104. 801c0ca: 89fb ldrh r3, [r7, #14]
  69105. }
  69106. 801c0cc: 4618 mov r0, r3
  69107. 801c0ce: 3718 adds r7, #24
  69108. 801c0d0: 46bd mov sp, r7
  69109. 801c0d2: bd80 pop {r7, pc}
  69110. 801c0d4: 0802e13c .word 0x0802e13c
  69111. 801c0d8: 0802e848 .word 0x0802e848
  69112. 801c0dc: 0802e180 .word 0x0802e180
  69113. 0801c0e0 <tcp_netif_ip_addr_changed_pcblist>:
  69114. #endif /* TCP_CALCULATE_EFF_SEND_MSS */
  69115. /** Helper function for tcp_netif_ip_addr_changed() that iterates a pcb list */
  69116. static void
  69117. tcp_netif_ip_addr_changed_pcblist(const ip_addr_t *old_addr, struct tcp_pcb *pcb_list)
  69118. {
  69119. 801c0e0: b580 push {r7, lr}
  69120. 801c0e2: b084 sub sp, #16
  69121. 801c0e4: af00 add r7, sp, #0
  69122. 801c0e6: 6078 str r0, [r7, #4]
  69123. 801c0e8: 6039 str r1, [r7, #0]
  69124. struct tcp_pcb *pcb;
  69125. pcb = pcb_list;
  69126. 801c0ea: 683b ldr r3, [r7, #0]
  69127. 801c0ec: 60fb str r3, [r7, #12]
  69128. LWIP_ASSERT("tcp_netif_ip_addr_changed_pcblist: invalid old_addr", old_addr != NULL);
  69129. 801c0ee: 687b ldr r3, [r7, #4]
  69130. 801c0f0: 2b00 cmp r3, #0
  69131. 801c0f2: d119 bne.n 801c128 <tcp_netif_ip_addr_changed_pcblist+0x48>
  69132. 801c0f4: 4b10 ldr r3, [pc, #64] @ (801c138 <tcp_netif_ip_addr_changed_pcblist+0x58>)
  69133. 801c0f6: f44f 6210 mov.w r2, #2304 @ 0x900
  69134. 801c0fa: 4910 ldr r1, [pc, #64] @ (801c13c <tcp_netif_ip_addr_changed_pcblist+0x5c>)
  69135. 801c0fc: 4810 ldr r0, [pc, #64] @ (801c140 <tcp_netif_ip_addr_changed_pcblist+0x60>)
  69136. 801c0fe: f00d fa05 bl 802950c <iprintf>
  69137. while (pcb != NULL) {
  69138. 801c102: e011 b.n 801c128 <tcp_netif_ip_addr_changed_pcblist+0x48>
  69139. /* PCB bound to current local interface address? */
  69140. if (ip_addr_cmp(&pcb->local_ip, old_addr)
  69141. 801c104: 68fb ldr r3, [r7, #12]
  69142. 801c106: 681a ldr r2, [r3, #0]
  69143. 801c108: 687b ldr r3, [r7, #4]
  69144. 801c10a: 681b ldr r3, [r3, #0]
  69145. 801c10c: 429a cmp r2, r3
  69146. 801c10e: d108 bne.n 801c122 <tcp_netif_ip_addr_changed_pcblist+0x42>
  69147. /* connections to link-local addresses must persist (RFC3927 ch. 1.9) */
  69148. && (!IP_IS_V4_VAL(pcb->local_ip) || !ip4_addr_islinklocal(ip_2_ip4(&pcb->local_ip)))
  69149. #endif /* LWIP_AUTOIP */
  69150. ) {
  69151. /* this connection must be aborted */
  69152. struct tcp_pcb *next = pcb->next;
  69153. 801c110: 68fb ldr r3, [r7, #12]
  69154. 801c112: 68db ldr r3, [r3, #12]
  69155. 801c114: 60bb str r3, [r7, #8]
  69156. LWIP_DEBUGF(NETIF_DEBUG | LWIP_DBG_STATE, ("netif_set_ipaddr: aborting TCP pcb %p\n", (void *)pcb));
  69157. tcp_abort(pcb);
  69158. 801c116: 68f8 ldr r0, [r7, #12]
  69159. 801c118: f7fe fd86 bl 801ac28 <tcp_abort>
  69160. pcb = next;
  69161. 801c11c: 68bb ldr r3, [r7, #8]
  69162. 801c11e: 60fb str r3, [r7, #12]
  69163. 801c120: e002 b.n 801c128 <tcp_netif_ip_addr_changed_pcblist+0x48>
  69164. } else {
  69165. pcb = pcb->next;
  69166. 801c122: 68fb ldr r3, [r7, #12]
  69167. 801c124: 68db ldr r3, [r3, #12]
  69168. 801c126: 60fb str r3, [r7, #12]
  69169. while (pcb != NULL) {
  69170. 801c128: 68fb ldr r3, [r7, #12]
  69171. 801c12a: 2b00 cmp r3, #0
  69172. 801c12c: d1ea bne.n 801c104 <tcp_netif_ip_addr_changed_pcblist+0x24>
  69173. }
  69174. }
  69175. }
  69176. 801c12e: bf00 nop
  69177. 801c130: bf00 nop
  69178. 801c132: 3710 adds r7, #16
  69179. 801c134: 46bd mov sp, r7
  69180. 801c136: bd80 pop {r7, pc}
  69181. 801c138: 0802e13c .word 0x0802e13c
  69182. 801c13c: 0802e870 .word 0x0802e870
  69183. 801c140: 0802e180 .word 0x0802e180
  69184. 0801c144 <tcp_netif_ip_addr_changed>:
  69185. * @param old_addr IP address of the netif before change
  69186. * @param new_addr IP address of the netif after change or NULL if netif has been removed
  69187. */
  69188. void
  69189. tcp_netif_ip_addr_changed(const ip_addr_t *old_addr, const ip_addr_t *new_addr)
  69190. {
  69191. 801c144: b580 push {r7, lr}
  69192. 801c146: b084 sub sp, #16
  69193. 801c148: af00 add r7, sp, #0
  69194. 801c14a: 6078 str r0, [r7, #4]
  69195. 801c14c: 6039 str r1, [r7, #0]
  69196. struct tcp_pcb_listen *lpcb;
  69197. if (!ip_addr_isany(old_addr)) {
  69198. 801c14e: 687b ldr r3, [r7, #4]
  69199. 801c150: 2b00 cmp r3, #0
  69200. 801c152: d02a beq.n 801c1aa <tcp_netif_ip_addr_changed+0x66>
  69201. 801c154: 687b ldr r3, [r7, #4]
  69202. 801c156: 681b ldr r3, [r3, #0]
  69203. 801c158: 2b00 cmp r3, #0
  69204. 801c15a: d026 beq.n 801c1aa <tcp_netif_ip_addr_changed+0x66>
  69205. tcp_netif_ip_addr_changed_pcblist(old_addr, tcp_active_pcbs);
  69206. 801c15c: 4b15 ldr r3, [pc, #84] @ (801c1b4 <tcp_netif_ip_addr_changed+0x70>)
  69207. 801c15e: 681b ldr r3, [r3, #0]
  69208. 801c160: 4619 mov r1, r3
  69209. 801c162: 6878 ldr r0, [r7, #4]
  69210. 801c164: f7ff ffbc bl 801c0e0 <tcp_netif_ip_addr_changed_pcblist>
  69211. tcp_netif_ip_addr_changed_pcblist(old_addr, tcp_bound_pcbs);
  69212. 801c168: 4b13 ldr r3, [pc, #76] @ (801c1b8 <tcp_netif_ip_addr_changed+0x74>)
  69213. 801c16a: 681b ldr r3, [r3, #0]
  69214. 801c16c: 4619 mov r1, r3
  69215. 801c16e: 6878 ldr r0, [r7, #4]
  69216. 801c170: f7ff ffb6 bl 801c0e0 <tcp_netif_ip_addr_changed_pcblist>
  69217. if (!ip_addr_isany(new_addr)) {
  69218. 801c174: 683b ldr r3, [r7, #0]
  69219. 801c176: 2b00 cmp r3, #0
  69220. 801c178: d017 beq.n 801c1aa <tcp_netif_ip_addr_changed+0x66>
  69221. 801c17a: 683b ldr r3, [r7, #0]
  69222. 801c17c: 681b ldr r3, [r3, #0]
  69223. 801c17e: 2b00 cmp r3, #0
  69224. 801c180: d013 beq.n 801c1aa <tcp_netif_ip_addr_changed+0x66>
  69225. /* PCB bound to current local interface address? */
  69226. for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) {
  69227. 801c182: 4b0e ldr r3, [pc, #56] @ (801c1bc <tcp_netif_ip_addr_changed+0x78>)
  69228. 801c184: 681b ldr r3, [r3, #0]
  69229. 801c186: 60fb str r3, [r7, #12]
  69230. 801c188: e00c b.n 801c1a4 <tcp_netif_ip_addr_changed+0x60>
  69231. /* PCB bound to current local interface address? */
  69232. if (ip_addr_cmp(&lpcb->local_ip, old_addr)) {
  69233. 801c18a: 68fb ldr r3, [r7, #12]
  69234. 801c18c: 681a ldr r2, [r3, #0]
  69235. 801c18e: 687b ldr r3, [r7, #4]
  69236. 801c190: 681b ldr r3, [r3, #0]
  69237. 801c192: 429a cmp r2, r3
  69238. 801c194: d103 bne.n 801c19e <tcp_netif_ip_addr_changed+0x5a>
  69239. /* The PCB is listening to the old ipaddr and
  69240. * is set to listen to the new one instead */
  69241. ip_addr_copy(lpcb->local_ip, *new_addr);
  69242. 801c196: 683b ldr r3, [r7, #0]
  69243. 801c198: 681a ldr r2, [r3, #0]
  69244. 801c19a: 68fb ldr r3, [r7, #12]
  69245. 801c19c: 601a str r2, [r3, #0]
  69246. for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) {
  69247. 801c19e: 68fb ldr r3, [r7, #12]
  69248. 801c1a0: 68db ldr r3, [r3, #12]
  69249. 801c1a2: 60fb str r3, [r7, #12]
  69250. 801c1a4: 68fb ldr r3, [r7, #12]
  69251. 801c1a6: 2b00 cmp r3, #0
  69252. 801c1a8: d1ef bne.n 801c18a <tcp_netif_ip_addr_changed+0x46>
  69253. }
  69254. }
  69255. }
  69256. }
  69257. }
  69258. 801c1aa: bf00 nop
  69259. 801c1ac: 3710 adds r7, #16
  69260. 801c1ae: 46bd mov sp, r7
  69261. 801c1b0: bd80 pop {r7, pc}
  69262. 801c1b2: bf00 nop
  69263. 801c1b4: 24029ff8 .word 0x24029ff8
  69264. 801c1b8: 24029ff0 .word 0x24029ff0
  69265. 801c1bc: 24029ff4 .word 0x24029ff4
  69266. 0801c1c0 <tcp_free_ooseq>:
  69267. #if TCP_QUEUE_OOSEQ
  69268. /* Free all ooseq pbufs (and possibly reset SACK state) */
  69269. void
  69270. tcp_free_ooseq(struct tcp_pcb *pcb)
  69271. {
  69272. 801c1c0: b580 push {r7, lr}
  69273. 801c1c2: b082 sub sp, #8
  69274. 801c1c4: af00 add r7, sp, #0
  69275. 801c1c6: 6078 str r0, [r7, #4]
  69276. if (pcb->ooseq) {
  69277. 801c1c8: 687b ldr r3, [r7, #4]
  69278. 801c1ca: 6f5b ldr r3, [r3, #116] @ 0x74
  69279. 801c1cc: 2b00 cmp r3, #0
  69280. 801c1ce: d007 beq.n 801c1e0 <tcp_free_ooseq+0x20>
  69281. tcp_segs_free(pcb->ooseq);
  69282. 801c1d0: 687b ldr r3, [r7, #4]
  69283. 801c1d2: 6f5b ldr r3, [r3, #116] @ 0x74
  69284. 801c1d4: 4618 mov r0, r3
  69285. 801c1d6: f7ff fb65 bl 801b8a4 <tcp_segs_free>
  69286. pcb->ooseq = NULL;
  69287. 801c1da: 687b ldr r3, [r7, #4]
  69288. 801c1dc: 2200 movs r2, #0
  69289. 801c1de: 675a str r2, [r3, #116] @ 0x74
  69290. #if LWIP_TCP_SACK_OUT
  69291. memset(pcb->rcv_sacks, 0, sizeof(pcb->rcv_sacks));
  69292. #endif /* LWIP_TCP_SACK_OUT */
  69293. }
  69294. }
  69295. 801c1e0: bf00 nop
  69296. 801c1e2: 3708 adds r7, #8
  69297. 801c1e4: 46bd mov sp, r7
  69298. 801c1e6: bd80 pop {r7, pc}
  69299. 0801c1e8 <tcp_input>:
  69300. * @param p received TCP segment to process (p->payload pointing to the TCP header)
  69301. * @param inp network interface on which this segment was received
  69302. */
  69303. void
  69304. tcp_input(struct pbuf *p, struct netif *inp)
  69305. {
  69306. 801c1e8: b590 push {r4, r7, lr}
  69307. 801c1ea: b08d sub sp, #52 @ 0x34
  69308. 801c1ec: af04 add r7, sp, #16
  69309. 801c1ee: 6078 str r0, [r7, #4]
  69310. 801c1f0: 6039 str r1, [r7, #0]
  69311. #endif /* SO_REUSE */
  69312. u8_t hdrlen_bytes;
  69313. err_t err;
  69314. LWIP_UNUSED_ARG(inp);
  69315. LWIP_ASSERT_CORE_LOCKED();
  69316. 801c1f2: f7f3 ff3d bl 8010070 <sys_check_core_locking>
  69317. LWIP_ASSERT("tcp_input: invalid pbuf", p != NULL);
  69318. 801c1f6: 687b ldr r3, [r7, #4]
  69319. 801c1f8: 2b00 cmp r3, #0
  69320. 801c1fa: d105 bne.n 801c208 <tcp_input+0x20>
  69321. 801c1fc: 4b9b ldr r3, [pc, #620] @ (801c46c <tcp_input+0x284>)
  69322. 801c1fe: 2283 movs r2, #131 @ 0x83
  69323. 801c200: 499b ldr r1, [pc, #620] @ (801c470 <tcp_input+0x288>)
  69324. 801c202: 489c ldr r0, [pc, #624] @ (801c474 <tcp_input+0x28c>)
  69325. 801c204: f00d f982 bl 802950c <iprintf>
  69326. PERF_START;
  69327. TCP_STATS_INC(tcp.recv);
  69328. MIB2_STATS_INC(mib2.tcpinsegs);
  69329. tcphdr = (struct tcp_hdr *)p->payload;
  69330. 801c208: 687b ldr r3, [r7, #4]
  69331. 801c20a: 685b ldr r3, [r3, #4]
  69332. 801c20c: 4a9a ldr r2, [pc, #616] @ (801c478 <tcp_input+0x290>)
  69333. 801c20e: 6013 str r3, [r2, #0]
  69334. #if TCP_INPUT_DEBUG
  69335. tcp_debug_print(tcphdr);
  69336. #endif
  69337. /* Check that TCP header fits in payload */
  69338. if (p->len < TCP_HLEN) {
  69339. 801c210: 687b ldr r3, [r7, #4]
  69340. 801c212: 895b ldrh r3, [r3, #10]
  69341. 801c214: 2b13 cmp r3, #19
  69342. 801c216: f240 83d1 bls.w 801c9bc <tcp_input+0x7d4>
  69343. TCP_STATS_INC(tcp.lenerr);
  69344. goto dropped;
  69345. }
  69346. /* Don't even process incoming broadcasts/multicasts. */
  69347. if (ip_addr_isbroadcast(ip_current_dest_addr(), ip_current_netif()) ||
  69348. 801c21a: 4b98 ldr r3, [pc, #608] @ (801c47c <tcp_input+0x294>)
  69349. 801c21c: 695b ldr r3, [r3, #20]
  69350. 801c21e: 4a97 ldr r2, [pc, #604] @ (801c47c <tcp_input+0x294>)
  69351. 801c220: 6812 ldr r2, [r2, #0]
  69352. 801c222: 4611 mov r1, r2
  69353. 801c224: 4618 mov r0, r3
  69354. 801c226: f008 fc1b bl 8024a60 <ip4_addr_isbroadcast_u32>
  69355. 801c22a: 4603 mov r3, r0
  69356. 801c22c: 2b00 cmp r3, #0
  69357. 801c22e: f040 83c7 bne.w 801c9c0 <tcp_input+0x7d8>
  69358. ip_addr_ismulticast(ip_current_dest_addr())) {
  69359. 801c232: 4b92 ldr r3, [pc, #584] @ (801c47c <tcp_input+0x294>)
  69360. 801c234: 695b ldr r3, [r3, #20]
  69361. 801c236: f003 03f0 and.w r3, r3, #240 @ 0xf0
  69362. if (ip_addr_isbroadcast(ip_current_dest_addr(), ip_current_netif()) ||
  69363. 801c23a: 2be0 cmp r3, #224 @ 0xe0
  69364. 801c23c: f000 83c0 beq.w 801c9c0 <tcp_input+0x7d8>
  69365. }
  69366. }
  69367. #endif /* CHECKSUM_CHECK_TCP */
  69368. /* sanity-check header length */
  69369. hdrlen_bytes = TCPH_HDRLEN_BYTES(tcphdr);
  69370. 801c240: 4b8d ldr r3, [pc, #564] @ (801c478 <tcp_input+0x290>)
  69371. 801c242: 681b ldr r3, [r3, #0]
  69372. 801c244: 899b ldrh r3, [r3, #12]
  69373. 801c246: b29b uxth r3, r3
  69374. 801c248: 4618 mov r0, r3
  69375. 801c24a: f7fc fa05 bl 8018658 <lwip_htons>
  69376. 801c24e: 4603 mov r3, r0
  69377. 801c250: 0b1b lsrs r3, r3, #12
  69378. 801c252: b29b uxth r3, r3
  69379. 801c254: b2db uxtb r3, r3
  69380. 801c256: 009b lsls r3, r3, #2
  69381. 801c258: 74bb strb r3, [r7, #18]
  69382. if ((hdrlen_bytes < TCP_HLEN) || (hdrlen_bytes > p->tot_len)) {
  69383. 801c25a: 7cbb ldrb r3, [r7, #18]
  69384. 801c25c: 2b13 cmp r3, #19
  69385. 801c25e: f240 83b1 bls.w 801c9c4 <tcp_input+0x7dc>
  69386. 801c262: 7cbb ldrb r3, [r7, #18]
  69387. 801c264: b29a uxth r2, r3
  69388. 801c266: 687b ldr r3, [r7, #4]
  69389. 801c268: 891b ldrh r3, [r3, #8]
  69390. 801c26a: 429a cmp r2, r3
  69391. 801c26c: f200 83aa bhi.w 801c9c4 <tcp_input+0x7dc>
  69392. goto dropped;
  69393. }
  69394. /* Move the payload pointer in the pbuf so that it points to the
  69395. TCP data instead of the TCP header. */
  69396. tcphdr_optlen = (u16_t)(hdrlen_bytes - TCP_HLEN);
  69397. 801c270: 7cbb ldrb r3, [r7, #18]
  69398. 801c272: b29b uxth r3, r3
  69399. 801c274: 3b14 subs r3, #20
  69400. 801c276: b29a uxth r2, r3
  69401. 801c278: 4b81 ldr r3, [pc, #516] @ (801c480 <tcp_input+0x298>)
  69402. 801c27a: 801a strh r2, [r3, #0]
  69403. tcphdr_opt2 = NULL;
  69404. 801c27c: 4b81 ldr r3, [pc, #516] @ (801c484 <tcp_input+0x29c>)
  69405. 801c27e: 2200 movs r2, #0
  69406. 801c280: 601a str r2, [r3, #0]
  69407. if (p->len >= hdrlen_bytes) {
  69408. 801c282: 687b ldr r3, [r7, #4]
  69409. 801c284: 895a ldrh r2, [r3, #10]
  69410. 801c286: 7cbb ldrb r3, [r7, #18]
  69411. 801c288: b29b uxth r3, r3
  69412. 801c28a: 429a cmp r2, r3
  69413. 801c28c: d309 bcc.n 801c2a2 <tcp_input+0xba>
  69414. /* all options are in the first pbuf */
  69415. tcphdr_opt1len = tcphdr_optlen;
  69416. 801c28e: 4b7c ldr r3, [pc, #496] @ (801c480 <tcp_input+0x298>)
  69417. 801c290: 881a ldrh r2, [r3, #0]
  69418. 801c292: 4b7d ldr r3, [pc, #500] @ (801c488 <tcp_input+0x2a0>)
  69419. 801c294: 801a strh r2, [r3, #0]
  69420. pbuf_remove_header(p, hdrlen_bytes); /* cannot fail */
  69421. 801c296: 7cbb ldrb r3, [r7, #18]
  69422. 801c298: 4619 mov r1, r3
  69423. 801c29a: 6878 ldr r0, [r7, #4]
  69424. 801c29c: f7fd fe06 bl 8019eac <pbuf_remove_header>
  69425. 801c2a0: e04e b.n 801c340 <tcp_input+0x158>
  69426. } else {
  69427. u16_t opt2len;
  69428. /* TCP header fits into first pbuf, options don't - data is in the next pbuf */
  69429. /* there must be a next pbuf, due to hdrlen_bytes sanity check above */
  69430. LWIP_ASSERT("p->next != NULL", p->next != NULL);
  69431. 801c2a2: 687b ldr r3, [r7, #4]
  69432. 801c2a4: 681b ldr r3, [r3, #0]
  69433. 801c2a6: 2b00 cmp r3, #0
  69434. 801c2a8: d105 bne.n 801c2b6 <tcp_input+0xce>
  69435. 801c2aa: 4b70 ldr r3, [pc, #448] @ (801c46c <tcp_input+0x284>)
  69436. 801c2ac: 22c2 movs r2, #194 @ 0xc2
  69437. 801c2ae: 4977 ldr r1, [pc, #476] @ (801c48c <tcp_input+0x2a4>)
  69438. 801c2b0: 4870 ldr r0, [pc, #448] @ (801c474 <tcp_input+0x28c>)
  69439. 801c2b2: f00d f92b bl 802950c <iprintf>
  69440. /* advance over the TCP header (cannot fail) */
  69441. pbuf_remove_header(p, TCP_HLEN);
  69442. 801c2b6: 2114 movs r1, #20
  69443. 801c2b8: 6878 ldr r0, [r7, #4]
  69444. 801c2ba: f7fd fdf7 bl 8019eac <pbuf_remove_header>
  69445. /* determine how long the first and second parts of the options are */
  69446. tcphdr_opt1len = p->len;
  69447. 801c2be: 687b ldr r3, [r7, #4]
  69448. 801c2c0: 895a ldrh r2, [r3, #10]
  69449. 801c2c2: 4b71 ldr r3, [pc, #452] @ (801c488 <tcp_input+0x2a0>)
  69450. 801c2c4: 801a strh r2, [r3, #0]
  69451. opt2len = (u16_t)(tcphdr_optlen - tcphdr_opt1len);
  69452. 801c2c6: 4b6e ldr r3, [pc, #440] @ (801c480 <tcp_input+0x298>)
  69453. 801c2c8: 881a ldrh r2, [r3, #0]
  69454. 801c2ca: 4b6f ldr r3, [pc, #444] @ (801c488 <tcp_input+0x2a0>)
  69455. 801c2cc: 881b ldrh r3, [r3, #0]
  69456. 801c2ce: 1ad3 subs r3, r2, r3
  69457. 801c2d0: 823b strh r3, [r7, #16]
  69458. /* options continue in the next pbuf: set p to zero length and hide the
  69459. options in the next pbuf (adjusting p->tot_len) */
  69460. pbuf_remove_header(p, tcphdr_opt1len);
  69461. 801c2d2: 4b6d ldr r3, [pc, #436] @ (801c488 <tcp_input+0x2a0>)
  69462. 801c2d4: 881b ldrh r3, [r3, #0]
  69463. 801c2d6: 4619 mov r1, r3
  69464. 801c2d8: 6878 ldr r0, [r7, #4]
  69465. 801c2da: f7fd fde7 bl 8019eac <pbuf_remove_header>
  69466. /* check that the options fit in the second pbuf */
  69467. if (opt2len > p->next->len) {
  69468. 801c2de: 687b ldr r3, [r7, #4]
  69469. 801c2e0: 681b ldr r3, [r3, #0]
  69470. 801c2e2: 895b ldrh r3, [r3, #10]
  69471. 801c2e4: 8a3a ldrh r2, [r7, #16]
  69472. 801c2e6: 429a cmp r2, r3
  69473. 801c2e8: f200 836e bhi.w 801c9c8 <tcp_input+0x7e0>
  69474. TCP_STATS_INC(tcp.lenerr);
  69475. goto dropped;
  69476. }
  69477. /* remember the pointer to the second part of the options */
  69478. tcphdr_opt2 = (u8_t *)p->next->payload;
  69479. 801c2ec: 687b ldr r3, [r7, #4]
  69480. 801c2ee: 681b ldr r3, [r3, #0]
  69481. 801c2f0: 685b ldr r3, [r3, #4]
  69482. 801c2f2: 4a64 ldr r2, [pc, #400] @ (801c484 <tcp_input+0x29c>)
  69483. 801c2f4: 6013 str r3, [r2, #0]
  69484. /* advance p->next to point after the options, and manually
  69485. adjust p->tot_len to keep it consistent with the changed p->next */
  69486. pbuf_remove_header(p->next, opt2len);
  69487. 801c2f6: 687b ldr r3, [r7, #4]
  69488. 801c2f8: 681b ldr r3, [r3, #0]
  69489. 801c2fa: 8a3a ldrh r2, [r7, #16]
  69490. 801c2fc: 4611 mov r1, r2
  69491. 801c2fe: 4618 mov r0, r3
  69492. 801c300: f7fd fdd4 bl 8019eac <pbuf_remove_header>
  69493. p->tot_len = (u16_t)(p->tot_len - opt2len);
  69494. 801c304: 687b ldr r3, [r7, #4]
  69495. 801c306: 891a ldrh r2, [r3, #8]
  69496. 801c308: 8a3b ldrh r3, [r7, #16]
  69497. 801c30a: 1ad3 subs r3, r2, r3
  69498. 801c30c: b29a uxth r2, r3
  69499. 801c30e: 687b ldr r3, [r7, #4]
  69500. 801c310: 811a strh r2, [r3, #8]
  69501. LWIP_ASSERT("p->len == 0", p->len == 0);
  69502. 801c312: 687b ldr r3, [r7, #4]
  69503. 801c314: 895b ldrh r3, [r3, #10]
  69504. 801c316: 2b00 cmp r3, #0
  69505. 801c318: d005 beq.n 801c326 <tcp_input+0x13e>
  69506. 801c31a: 4b54 ldr r3, [pc, #336] @ (801c46c <tcp_input+0x284>)
  69507. 801c31c: 22df movs r2, #223 @ 0xdf
  69508. 801c31e: 495c ldr r1, [pc, #368] @ (801c490 <tcp_input+0x2a8>)
  69509. 801c320: 4854 ldr r0, [pc, #336] @ (801c474 <tcp_input+0x28c>)
  69510. 801c322: f00d f8f3 bl 802950c <iprintf>
  69511. LWIP_ASSERT("p->tot_len == p->next->tot_len", p->tot_len == p->next->tot_len);
  69512. 801c326: 687b ldr r3, [r7, #4]
  69513. 801c328: 891a ldrh r2, [r3, #8]
  69514. 801c32a: 687b ldr r3, [r7, #4]
  69515. 801c32c: 681b ldr r3, [r3, #0]
  69516. 801c32e: 891b ldrh r3, [r3, #8]
  69517. 801c330: 429a cmp r2, r3
  69518. 801c332: d005 beq.n 801c340 <tcp_input+0x158>
  69519. 801c334: 4b4d ldr r3, [pc, #308] @ (801c46c <tcp_input+0x284>)
  69520. 801c336: 22e0 movs r2, #224 @ 0xe0
  69521. 801c338: 4956 ldr r1, [pc, #344] @ (801c494 <tcp_input+0x2ac>)
  69522. 801c33a: 484e ldr r0, [pc, #312] @ (801c474 <tcp_input+0x28c>)
  69523. 801c33c: f00d f8e6 bl 802950c <iprintf>
  69524. }
  69525. /* Convert fields in TCP header to host byte order. */
  69526. tcphdr->src = lwip_ntohs(tcphdr->src);
  69527. 801c340: 4b4d ldr r3, [pc, #308] @ (801c478 <tcp_input+0x290>)
  69528. 801c342: 681b ldr r3, [r3, #0]
  69529. 801c344: 881b ldrh r3, [r3, #0]
  69530. 801c346: b29b uxth r3, r3
  69531. 801c348: 4a4b ldr r2, [pc, #300] @ (801c478 <tcp_input+0x290>)
  69532. 801c34a: 6814 ldr r4, [r2, #0]
  69533. 801c34c: 4618 mov r0, r3
  69534. 801c34e: f7fc f983 bl 8018658 <lwip_htons>
  69535. 801c352: 4603 mov r3, r0
  69536. 801c354: 8023 strh r3, [r4, #0]
  69537. tcphdr->dest = lwip_ntohs(tcphdr->dest);
  69538. 801c356: 4b48 ldr r3, [pc, #288] @ (801c478 <tcp_input+0x290>)
  69539. 801c358: 681b ldr r3, [r3, #0]
  69540. 801c35a: 885b ldrh r3, [r3, #2]
  69541. 801c35c: b29b uxth r3, r3
  69542. 801c35e: 4a46 ldr r2, [pc, #280] @ (801c478 <tcp_input+0x290>)
  69543. 801c360: 6814 ldr r4, [r2, #0]
  69544. 801c362: 4618 mov r0, r3
  69545. 801c364: f7fc f978 bl 8018658 <lwip_htons>
  69546. 801c368: 4603 mov r3, r0
  69547. 801c36a: 8063 strh r3, [r4, #2]
  69548. seqno = tcphdr->seqno = lwip_ntohl(tcphdr->seqno);
  69549. 801c36c: 4b42 ldr r3, [pc, #264] @ (801c478 <tcp_input+0x290>)
  69550. 801c36e: 681b ldr r3, [r3, #0]
  69551. 801c370: 685b ldr r3, [r3, #4]
  69552. 801c372: 4a41 ldr r2, [pc, #260] @ (801c478 <tcp_input+0x290>)
  69553. 801c374: 6814 ldr r4, [r2, #0]
  69554. 801c376: 4618 mov r0, r3
  69555. 801c378: f7fc f983 bl 8018682 <lwip_htonl>
  69556. 801c37c: 4603 mov r3, r0
  69557. 801c37e: 6063 str r3, [r4, #4]
  69558. 801c380: 6863 ldr r3, [r4, #4]
  69559. 801c382: 4a45 ldr r2, [pc, #276] @ (801c498 <tcp_input+0x2b0>)
  69560. 801c384: 6013 str r3, [r2, #0]
  69561. ackno = tcphdr->ackno = lwip_ntohl(tcphdr->ackno);
  69562. 801c386: 4b3c ldr r3, [pc, #240] @ (801c478 <tcp_input+0x290>)
  69563. 801c388: 681b ldr r3, [r3, #0]
  69564. 801c38a: 689b ldr r3, [r3, #8]
  69565. 801c38c: 4a3a ldr r2, [pc, #232] @ (801c478 <tcp_input+0x290>)
  69566. 801c38e: 6814 ldr r4, [r2, #0]
  69567. 801c390: 4618 mov r0, r3
  69568. 801c392: f7fc f976 bl 8018682 <lwip_htonl>
  69569. 801c396: 4603 mov r3, r0
  69570. 801c398: 60a3 str r3, [r4, #8]
  69571. 801c39a: 68a3 ldr r3, [r4, #8]
  69572. 801c39c: 4a3f ldr r2, [pc, #252] @ (801c49c <tcp_input+0x2b4>)
  69573. 801c39e: 6013 str r3, [r2, #0]
  69574. tcphdr->wnd = lwip_ntohs(tcphdr->wnd);
  69575. 801c3a0: 4b35 ldr r3, [pc, #212] @ (801c478 <tcp_input+0x290>)
  69576. 801c3a2: 681b ldr r3, [r3, #0]
  69577. 801c3a4: 89db ldrh r3, [r3, #14]
  69578. 801c3a6: b29b uxth r3, r3
  69579. 801c3a8: 4a33 ldr r2, [pc, #204] @ (801c478 <tcp_input+0x290>)
  69580. 801c3aa: 6814 ldr r4, [r2, #0]
  69581. 801c3ac: 4618 mov r0, r3
  69582. 801c3ae: f7fc f953 bl 8018658 <lwip_htons>
  69583. 801c3b2: 4603 mov r3, r0
  69584. 801c3b4: 81e3 strh r3, [r4, #14]
  69585. flags = TCPH_FLAGS(tcphdr);
  69586. 801c3b6: 4b30 ldr r3, [pc, #192] @ (801c478 <tcp_input+0x290>)
  69587. 801c3b8: 681b ldr r3, [r3, #0]
  69588. 801c3ba: 899b ldrh r3, [r3, #12]
  69589. 801c3bc: b29b uxth r3, r3
  69590. 801c3be: 4618 mov r0, r3
  69591. 801c3c0: f7fc f94a bl 8018658 <lwip_htons>
  69592. 801c3c4: 4603 mov r3, r0
  69593. 801c3c6: b2db uxtb r3, r3
  69594. 801c3c8: f003 033f and.w r3, r3, #63 @ 0x3f
  69595. 801c3cc: b2da uxtb r2, r3
  69596. 801c3ce: 4b34 ldr r3, [pc, #208] @ (801c4a0 <tcp_input+0x2b8>)
  69597. 801c3d0: 701a strb r2, [r3, #0]
  69598. tcplen = p->tot_len;
  69599. 801c3d2: 687b ldr r3, [r7, #4]
  69600. 801c3d4: 891a ldrh r2, [r3, #8]
  69601. 801c3d6: 4b33 ldr r3, [pc, #204] @ (801c4a4 <tcp_input+0x2bc>)
  69602. 801c3d8: 801a strh r2, [r3, #0]
  69603. if (flags & (TCP_FIN | TCP_SYN)) {
  69604. 801c3da: 4b31 ldr r3, [pc, #196] @ (801c4a0 <tcp_input+0x2b8>)
  69605. 801c3dc: 781b ldrb r3, [r3, #0]
  69606. 801c3de: f003 0303 and.w r3, r3, #3
  69607. 801c3e2: 2b00 cmp r3, #0
  69608. 801c3e4: d00c beq.n 801c400 <tcp_input+0x218>
  69609. tcplen++;
  69610. 801c3e6: 4b2f ldr r3, [pc, #188] @ (801c4a4 <tcp_input+0x2bc>)
  69611. 801c3e8: 881b ldrh r3, [r3, #0]
  69612. 801c3ea: 3301 adds r3, #1
  69613. 801c3ec: b29a uxth r2, r3
  69614. 801c3ee: 4b2d ldr r3, [pc, #180] @ (801c4a4 <tcp_input+0x2bc>)
  69615. 801c3f0: 801a strh r2, [r3, #0]
  69616. if (tcplen < p->tot_len) {
  69617. 801c3f2: 687b ldr r3, [r7, #4]
  69618. 801c3f4: 891a ldrh r2, [r3, #8]
  69619. 801c3f6: 4b2b ldr r3, [pc, #172] @ (801c4a4 <tcp_input+0x2bc>)
  69620. 801c3f8: 881b ldrh r3, [r3, #0]
  69621. 801c3fa: 429a cmp r2, r3
  69622. 801c3fc: f200 82e6 bhi.w 801c9cc <tcp_input+0x7e4>
  69623. }
  69624. }
  69625. /* Demultiplex an incoming segment. First, we check if it is destined
  69626. for an active connection. */
  69627. prev = NULL;
  69628. 801c400: 2300 movs r3, #0
  69629. 801c402: 61fb str r3, [r7, #28]
  69630. for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
  69631. 801c404: 4b28 ldr r3, [pc, #160] @ (801c4a8 <tcp_input+0x2c0>)
  69632. 801c406: 681b ldr r3, [r3, #0]
  69633. 801c408: 61bb str r3, [r7, #24]
  69634. 801c40a: e09d b.n 801c548 <tcp_input+0x360>
  69635. LWIP_ASSERT("tcp_input: active pcb->state != CLOSED", pcb->state != CLOSED);
  69636. 801c40c: 69bb ldr r3, [r7, #24]
  69637. 801c40e: 7d1b ldrb r3, [r3, #20]
  69638. 801c410: 2b00 cmp r3, #0
  69639. 801c412: d105 bne.n 801c420 <tcp_input+0x238>
  69640. 801c414: 4b15 ldr r3, [pc, #84] @ (801c46c <tcp_input+0x284>)
  69641. 801c416: 22fb movs r2, #251 @ 0xfb
  69642. 801c418: 4924 ldr r1, [pc, #144] @ (801c4ac <tcp_input+0x2c4>)
  69643. 801c41a: 4816 ldr r0, [pc, #88] @ (801c474 <tcp_input+0x28c>)
  69644. 801c41c: f00d f876 bl 802950c <iprintf>
  69645. LWIP_ASSERT("tcp_input: active pcb->state != TIME-WAIT", pcb->state != TIME_WAIT);
  69646. 801c420: 69bb ldr r3, [r7, #24]
  69647. 801c422: 7d1b ldrb r3, [r3, #20]
  69648. 801c424: 2b0a cmp r3, #10
  69649. 801c426: d105 bne.n 801c434 <tcp_input+0x24c>
  69650. 801c428: 4b10 ldr r3, [pc, #64] @ (801c46c <tcp_input+0x284>)
  69651. 801c42a: 22fc movs r2, #252 @ 0xfc
  69652. 801c42c: 4920 ldr r1, [pc, #128] @ (801c4b0 <tcp_input+0x2c8>)
  69653. 801c42e: 4811 ldr r0, [pc, #68] @ (801c474 <tcp_input+0x28c>)
  69654. 801c430: f00d f86c bl 802950c <iprintf>
  69655. LWIP_ASSERT("tcp_input: active pcb->state != LISTEN", pcb->state != LISTEN);
  69656. 801c434: 69bb ldr r3, [r7, #24]
  69657. 801c436: 7d1b ldrb r3, [r3, #20]
  69658. 801c438: 2b01 cmp r3, #1
  69659. 801c43a: d105 bne.n 801c448 <tcp_input+0x260>
  69660. 801c43c: 4b0b ldr r3, [pc, #44] @ (801c46c <tcp_input+0x284>)
  69661. 801c43e: 22fd movs r2, #253 @ 0xfd
  69662. 801c440: 491c ldr r1, [pc, #112] @ (801c4b4 <tcp_input+0x2cc>)
  69663. 801c442: 480c ldr r0, [pc, #48] @ (801c474 <tcp_input+0x28c>)
  69664. 801c444: f00d f862 bl 802950c <iprintf>
  69665. /* check if PCB is bound to specific netif */
  69666. if ((pcb->netif_idx != NETIF_NO_INDEX) &&
  69667. 801c448: 69bb ldr r3, [r7, #24]
  69668. 801c44a: 7a1b ldrb r3, [r3, #8]
  69669. 801c44c: 2b00 cmp r3, #0
  69670. 801c44e: d033 beq.n 801c4b8 <tcp_input+0x2d0>
  69671. (pcb->netif_idx != netif_get_index(ip_data.current_input_netif))) {
  69672. 801c450: 69bb ldr r3, [r7, #24]
  69673. 801c452: 7a1a ldrb r2, [r3, #8]
  69674. 801c454: 4b09 ldr r3, [pc, #36] @ (801c47c <tcp_input+0x294>)
  69675. 801c456: 685b ldr r3, [r3, #4]
  69676. 801c458: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  69677. 801c45c: 3301 adds r3, #1
  69678. 801c45e: b2db uxtb r3, r3
  69679. if ((pcb->netif_idx != NETIF_NO_INDEX) &&
  69680. 801c460: 429a cmp r2, r3
  69681. 801c462: d029 beq.n 801c4b8 <tcp_input+0x2d0>
  69682. prev = pcb;
  69683. 801c464: 69bb ldr r3, [r7, #24]
  69684. 801c466: 61fb str r3, [r7, #28]
  69685. continue;
  69686. 801c468: e06b b.n 801c542 <tcp_input+0x35a>
  69687. 801c46a: bf00 nop
  69688. 801c46c: 0802e8a4 .word 0x0802e8a4
  69689. 801c470: 0802e8d8 .word 0x0802e8d8
  69690. 801c474: 0802e8f0 .word 0x0802e8f0
  69691. 801c478: 2402a018 .word 0x2402a018
  69692. 801c47c: 2402349c .word 0x2402349c
  69693. 801c480: 2402a01c .word 0x2402a01c
  69694. 801c484: 2402a020 .word 0x2402a020
  69695. 801c488: 2402a01e .word 0x2402a01e
  69696. 801c48c: 0802e918 .word 0x0802e918
  69697. 801c490: 0802e928 .word 0x0802e928
  69698. 801c494: 0802e934 .word 0x0802e934
  69699. 801c498: 2402a028 .word 0x2402a028
  69700. 801c49c: 2402a02c .word 0x2402a02c
  69701. 801c4a0: 2402a034 .word 0x2402a034
  69702. 801c4a4: 2402a032 .word 0x2402a032
  69703. 801c4a8: 24029ff8 .word 0x24029ff8
  69704. 801c4ac: 0802e954 .word 0x0802e954
  69705. 801c4b0: 0802e97c .word 0x0802e97c
  69706. 801c4b4: 0802e9a8 .word 0x0802e9a8
  69707. }
  69708. if (pcb->remote_port == tcphdr->src &&
  69709. 801c4b8: 69bb ldr r3, [r7, #24]
  69710. 801c4ba: 8b1a ldrh r2, [r3, #24]
  69711. 801c4bc: 4b72 ldr r3, [pc, #456] @ (801c688 <tcp_input+0x4a0>)
  69712. 801c4be: 681b ldr r3, [r3, #0]
  69713. 801c4c0: 881b ldrh r3, [r3, #0]
  69714. 801c4c2: b29b uxth r3, r3
  69715. 801c4c4: 429a cmp r2, r3
  69716. 801c4c6: d13a bne.n 801c53e <tcp_input+0x356>
  69717. pcb->local_port == tcphdr->dest &&
  69718. 801c4c8: 69bb ldr r3, [r7, #24]
  69719. 801c4ca: 8ada ldrh r2, [r3, #22]
  69720. 801c4cc: 4b6e ldr r3, [pc, #440] @ (801c688 <tcp_input+0x4a0>)
  69721. 801c4ce: 681b ldr r3, [r3, #0]
  69722. 801c4d0: 885b ldrh r3, [r3, #2]
  69723. 801c4d2: b29b uxth r3, r3
  69724. if (pcb->remote_port == tcphdr->src &&
  69725. 801c4d4: 429a cmp r2, r3
  69726. 801c4d6: d132 bne.n 801c53e <tcp_input+0x356>
  69727. ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) &&
  69728. 801c4d8: 69bb ldr r3, [r7, #24]
  69729. 801c4da: 685a ldr r2, [r3, #4]
  69730. 801c4dc: 4b6b ldr r3, [pc, #428] @ (801c68c <tcp_input+0x4a4>)
  69731. 801c4de: 691b ldr r3, [r3, #16]
  69732. pcb->local_port == tcphdr->dest &&
  69733. 801c4e0: 429a cmp r2, r3
  69734. 801c4e2: d12c bne.n 801c53e <tcp_input+0x356>
  69735. ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) {
  69736. 801c4e4: 69bb ldr r3, [r7, #24]
  69737. 801c4e6: 681a ldr r2, [r3, #0]
  69738. 801c4e8: 4b68 ldr r3, [pc, #416] @ (801c68c <tcp_input+0x4a4>)
  69739. 801c4ea: 695b ldr r3, [r3, #20]
  69740. ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) &&
  69741. 801c4ec: 429a cmp r2, r3
  69742. 801c4ee: d126 bne.n 801c53e <tcp_input+0x356>
  69743. /* Move this PCB to the front of the list so that subsequent
  69744. lookups will be faster (we exploit locality in TCP segment
  69745. arrivals). */
  69746. LWIP_ASSERT("tcp_input: pcb->next != pcb (before cache)", pcb->next != pcb);
  69747. 801c4f0: 69bb ldr r3, [r7, #24]
  69748. 801c4f2: 68db ldr r3, [r3, #12]
  69749. 801c4f4: 69ba ldr r2, [r7, #24]
  69750. 801c4f6: 429a cmp r2, r3
  69751. 801c4f8: d106 bne.n 801c508 <tcp_input+0x320>
  69752. 801c4fa: 4b65 ldr r3, [pc, #404] @ (801c690 <tcp_input+0x4a8>)
  69753. 801c4fc: f240 120d movw r2, #269 @ 0x10d
  69754. 801c500: 4964 ldr r1, [pc, #400] @ (801c694 <tcp_input+0x4ac>)
  69755. 801c502: 4865 ldr r0, [pc, #404] @ (801c698 <tcp_input+0x4b0>)
  69756. 801c504: f00d f802 bl 802950c <iprintf>
  69757. if (prev != NULL) {
  69758. 801c508: 69fb ldr r3, [r7, #28]
  69759. 801c50a: 2b00 cmp r3, #0
  69760. 801c50c: d00a beq.n 801c524 <tcp_input+0x33c>
  69761. prev->next = pcb->next;
  69762. 801c50e: 69bb ldr r3, [r7, #24]
  69763. 801c510: 68da ldr r2, [r3, #12]
  69764. 801c512: 69fb ldr r3, [r7, #28]
  69765. 801c514: 60da str r2, [r3, #12]
  69766. pcb->next = tcp_active_pcbs;
  69767. 801c516: 4b61 ldr r3, [pc, #388] @ (801c69c <tcp_input+0x4b4>)
  69768. 801c518: 681a ldr r2, [r3, #0]
  69769. 801c51a: 69bb ldr r3, [r7, #24]
  69770. 801c51c: 60da str r2, [r3, #12]
  69771. tcp_active_pcbs = pcb;
  69772. 801c51e: 4a5f ldr r2, [pc, #380] @ (801c69c <tcp_input+0x4b4>)
  69773. 801c520: 69bb ldr r3, [r7, #24]
  69774. 801c522: 6013 str r3, [r2, #0]
  69775. } else {
  69776. TCP_STATS_INC(tcp.cachehit);
  69777. }
  69778. LWIP_ASSERT("tcp_input: pcb->next != pcb (after cache)", pcb->next != pcb);
  69779. 801c524: 69bb ldr r3, [r7, #24]
  69780. 801c526: 68db ldr r3, [r3, #12]
  69781. 801c528: 69ba ldr r2, [r7, #24]
  69782. 801c52a: 429a cmp r2, r3
  69783. 801c52c: d111 bne.n 801c552 <tcp_input+0x36a>
  69784. 801c52e: 4b58 ldr r3, [pc, #352] @ (801c690 <tcp_input+0x4a8>)
  69785. 801c530: f240 1215 movw r2, #277 @ 0x115
  69786. 801c534: 495a ldr r1, [pc, #360] @ (801c6a0 <tcp_input+0x4b8>)
  69787. 801c536: 4858 ldr r0, [pc, #352] @ (801c698 <tcp_input+0x4b0>)
  69788. 801c538: f00c ffe8 bl 802950c <iprintf>
  69789. break;
  69790. 801c53c: e009 b.n 801c552 <tcp_input+0x36a>
  69791. }
  69792. prev = pcb;
  69793. 801c53e: 69bb ldr r3, [r7, #24]
  69794. 801c540: 61fb str r3, [r7, #28]
  69795. for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
  69796. 801c542: 69bb ldr r3, [r7, #24]
  69797. 801c544: 68db ldr r3, [r3, #12]
  69798. 801c546: 61bb str r3, [r7, #24]
  69799. 801c548: 69bb ldr r3, [r7, #24]
  69800. 801c54a: 2b00 cmp r3, #0
  69801. 801c54c: f47f af5e bne.w 801c40c <tcp_input+0x224>
  69802. 801c550: e000 b.n 801c554 <tcp_input+0x36c>
  69803. break;
  69804. 801c552: bf00 nop
  69805. }
  69806. if (pcb == NULL) {
  69807. 801c554: 69bb ldr r3, [r7, #24]
  69808. 801c556: 2b00 cmp r3, #0
  69809. 801c558: f040 80aa bne.w 801c6b0 <tcp_input+0x4c8>
  69810. /* If it did not go to an active connection, we check the connections
  69811. in the TIME-WAIT state. */
  69812. for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) {
  69813. 801c55c: 4b51 ldr r3, [pc, #324] @ (801c6a4 <tcp_input+0x4bc>)
  69814. 801c55e: 681b ldr r3, [r3, #0]
  69815. 801c560: 61bb str r3, [r7, #24]
  69816. 801c562: e03f b.n 801c5e4 <tcp_input+0x3fc>
  69817. LWIP_ASSERT("tcp_input: TIME-WAIT pcb->state == TIME-WAIT", pcb->state == TIME_WAIT);
  69818. 801c564: 69bb ldr r3, [r7, #24]
  69819. 801c566: 7d1b ldrb r3, [r3, #20]
  69820. 801c568: 2b0a cmp r3, #10
  69821. 801c56a: d006 beq.n 801c57a <tcp_input+0x392>
  69822. 801c56c: 4b48 ldr r3, [pc, #288] @ (801c690 <tcp_input+0x4a8>)
  69823. 801c56e: f240 121f movw r2, #287 @ 0x11f
  69824. 801c572: 494d ldr r1, [pc, #308] @ (801c6a8 <tcp_input+0x4c0>)
  69825. 801c574: 4848 ldr r0, [pc, #288] @ (801c698 <tcp_input+0x4b0>)
  69826. 801c576: f00c ffc9 bl 802950c <iprintf>
  69827. /* check if PCB is bound to specific netif */
  69828. if ((pcb->netif_idx != NETIF_NO_INDEX) &&
  69829. 801c57a: 69bb ldr r3, [r7, #24]
  69830. 801c57c: 7a1b ldrb r3, [r3, #8]
  69831. 801c57e: 2b00 cmp r3, #0
  69832. 801c580: d009 beq.n 801c596 <tcp_input+0x3ae>
  69833. (pcb->netif_idx != netif_get_index(ip_data.current_input_netif))) {
  69834. 801c582: 69bb ldr r3, [r7, #24]
  69835. 801c584: 7a1a ldrb r2, [r3, #8]
  69836. 801c586: 4b41 ldr r3, [pc, #260] @ (801c68c <tcp_input+0x4a4>)
  69837. 801c588: 685b ldr r3, [r3, #4]
  69838. 801c58a: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  69839. 801c58e: 3301 adds r3, #1
  69840. 801c590: b2db uxtb r3, r3
  69841. if ((pcb->netif_idx != NETIF_NO_INDEX) &&
  69842. 801c592: 429a cmp r2, r3
  69843. 801c594: d122 bne.n 801c5dc <tcp_input+0x3f4>
  69844. continue;
  69845. }
  69846. if (pcb->remote_port == tcphdr->src &&
  69847. 801c596: 69bb ldr r3, [r7, #24]
  69848. 801c598: 8b1a ldrh r2, [r3, #24]
  69849. 801c59a: 4b3b ldr r3, [pc, #236] @ (801c688 <tcp_input+0x4a0>)
  69850. 801c59c: 681b ldr r3, [r3, #0]
  69851. 801c59e: 881b ldrh r3, [r3, #0]
  69852. 801c5a0: b29b uxth r3, r3
  69853. 801c5a2: 429a cmp r2, r3
  69854. 801c5a4: d11b bne.n 801c5de <tcp_input+0x3f6>
  69855. pcb->local_port == tcphdr->dest &&
  69856. 801c5a6: 69bb ldr r3, [r7, #24]
  69857. 801c5a8: 8ada ldrh r2, [r3, #22]
  69858. 801c5aa: 4b37 ldr r3, [pc, #220] @ (801c688 <tcp_input+0x4a0>)
  69859. 801c5ac: 681b ldr r3, [r3, #0]
  69860. 801c5ae: 885b ldrh r3, [r3, #2]
  69861. 801c5b0: b29b uxth r3, r3
  69862. if (pcb->remote_port == tcphdr->src &&
  69863. 801c5b2: 429a cmp r2, r3
  69864. 801c5b4: d113 bne.n 801c5de <tcp_input+0x3f6>
  69865. ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) &&
  69866. 801c5b6: 69bb ldr r3, [r7, #24]
  69867. 801c5b8: 685a ldr r2, [r3, #4]
  69868. 801c5ba: 4b34 ldr r3, [pc, #208] @ (801c68c <tcp_input+0x4a4>)
  69869. 801c5bc: 691b ldr r3, [r3, #16]
  69870. pcb->local_port == tcphdr->dest &&
  69871. 801c5be: 429a cmp r2, r3
  69872. 801c5c0: d10d bne.n 801c5de <tcp_input+0x3f6>
  69873. ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) {
  69874. 801c5c2: 69bb ldr r3, [r7, #24]
  69875. 801c5c4: 681a ldr r2, [r3, #0]
  69876. 801c5c6: 4b31 ldr r3, [pc, #196] @ (801c68c <tcp_input+0x4a4>)
  69877. 801c5c8: 695b ldr r3, [r3, #20]
  69878. ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) &&
  69879. 801c5ca: 429a cmp r2, r3
  69880. 801c5cc: d107 bne.n 801c5de <tcp_input+0x3f6>
  69881. #ifdef LWIP_HOOK_TCP_INPACKET_PCB
  69882. if (LWIP_HOOK_TCP_INPACKET_PCB(pcb, tcphdr, tcphdr_optlen, tcphdr_opt1len,
  69883. tcphdr_opt2, p) == ERR_OK)
  69884. #endif
  69885. {
  69886. tcp_timewait_input(pcb);
  69887. 801c5ce: 69b8 ldr r0, [r7, #24]
  69888. 801c5d0: f000 fb56 bl 801cc80 <tcp_timewait_input>
  69889. }
  69890. pbuf_free(p);
  69891. 801c5d4: 6878 ldr r0, [r7, #4]
  69892. 801c5d6: f7fd fd21 bl 801a01c <pbuf_free>
  69893. return;
  69894. 801c5da: e1fd b.n 801c9d8 <tcp_input+0x7f0>
  69895. continue;
  69896. 801c5dc: bf00 nop
  69897. for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) {
  69898. 801c5de: 69bb ldr r3, [r7, #24]
  69899. 801c5e0: 68db ldr r3, [r3, #12]
  69900. 801c5e2: 61bb str r3, [r7, #24]
  69901. 801c5e4: 69bb ldr r3, [r7, #24]
  69902. 801c5e6: 2b00 cmp r3, #0
  69903. 801c5e8: d1bc bne.n 801c564 <tcp_input+0x37c>
  69904. }
  69905. }
  69906. /* Finally, if we still did not get a match, we check all PCBs that
  69907. are LISTENing for incoming connections. */
  69908. prev = NULL;
  69909. 801c5ea: 2300 movs r3, #0
  69910. 801c5ec: 61fb str r3, [r7, #28]
  69911. for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) {
  69912. 801c5ee: 4b2f ldr r3, [pc, #188] @ (801c6ac <tcp_input+0x4c4>)
  69913. 801c5f0: 681b ldr r3, [r3, #0]
  69914. 801c5f2: 617b str r3, [r7, #20]
  69915. 801c5f4: e02a b.n 801c64c <tcp_input+0x464>
  69916. /* check if PCB is bound to specific netif */
  69917. if ((lpcb->netif_idx != NETIF_NO_INDEX) &&
  69918. 801c5f6: 697b ldr r3, [r7, #20]
  69919. 801c5f8: 7a1b ldrb r3, [r3, #8]
  69920. 801c5fa: 2b00 cmp r3, #0
  69921. 801c5fc: d00c beq.n 801c618 <tcp_input+0x430>
  69922. (lpcb->netif_idx != netif_get_index(ip_data.current_input_netif))) {
  69923. 801c5fe: 697b ldr r3, [r7, #20]
  69924. 801c600: 7a1a ldrb r2, [r3, #8]
  69925. 801c602: 4b22 ldr r3, [pc, #136] @ (801c68c <tcp_input+0x4a4>)
  69926. 801c604: 685b ldr r3, [r3, #4]
  69927. 801c606: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  69928. 801c60a: 3301 adds r3, #1
  69929. 801c60c: b2db uxtb r3, r3
  69930. if ((lpcb->netif_idx != NETIF_NO_INDEX) &&
  69931. 801c60e: 429a cmp r2, r3
  69932. 801c610: d002 beq.n 801c618 <tcp_input+0x430>
  69933. prev = (struct tcp_pcb *)lpcb;
  69934. 801c612: 697b ldr r3, [r7, #20]
  69935. 801c614: 61fb str r3, [r7, #28]
  69936. continue;
  69937. 801c616: e016 b.n 801c646 <tcp_input+0x45e>
  69938. }
  69939. if (lpcb->local_port == tcphdr->dest) {
  69940. 801c618: 697b ldr r3, [r7, #20]
  69941. 801c61a: 8ada ldrh r2, [r3, #22]
  69942. 801c61c: 4b1a ldr r3, [pc, #104] @ (801c688 <tcp_input+0x4a0>)
  69943. 801c61e: 681b ldr r3, [r3, #0]
  69944. 801c620: 885b ldrh r3, [r3, #2]
  69945. 801c622: b29b uxth r3, r3
  69946. 801c624: 429a cmp r2, r3
  69947. 801c626: d10c bne.n 801c642 <tcp_input+0x45a>
  69948. lpcb_prev = prev;
  69949. #else /* SO_REUSE */
  69950. break;
  69951. #endif /* SO_REUSE */
  69952. } else if (IP_ADDR_PCB_VERSION_MATCH_EXACT(lpcb, ip_current_dest_addr())) {
  69953. if (ip_addr_cmp(&lpcb->local_ip, ip_current_dest_addr())) {
  69954. 801c628: 697b ldr r3, [r7, #20]
  69955. 801c62a: 681a ldr r2, [r3, #0]
  69956. 801c62c: 4b17 ldr r3, [pc, #92] @ (801c68c <tcp_input+0x4a4>)
  69957. 801c62e: 695b ldr r3, [r3, #20]
  69958. 801c630: 429a cmp r2, r3
  69959. 801c632: d00f beq.n 801c654 <tcp_input+0x46c>
  69960. /* found an exact match */
  69961. break;
  69962. } else if (ip_addr_isany(&lpcb->local_ip)) {
  69963. 801c634: 697b ldr r3, [r7, #20]
  69964. 801c636: 2b00 cmp r3, #0
  69965. 801c638: d00d beq.n 801c656 <tcp_input+0x46e>
  69966. 801c63a: 697b ldr r3, [r7, #20]
  69967. 801c63c: 681b ldr r3, [r3, #0]
  69968. 801c63e: 2b00 cmp r3, #0
  69969. 801c640: d009 beq.n 801c656 <tcp_input+0x46e>
  69970. break;
  69971. #endif /* SO_REUSE */
  69972. }
  69973. }
  69974. }
  69975. prev = (struct tcp_pcb *)lpcb;
  69976. 801c642: 697b ldr r3, [r7, #20]
  69977. 801c644: 61fb str r3, [r7, #28]
  69978. for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) {
  69979. 801c646: 697b ldr r3, [r7, #20]
  69980. 801c648: 68db ldr r3, [r3, #12]
  69981. 801c64a: 617b str r3, [r7, #20]
  69982. 801c64c: 697b ldr r3, [r7, #20]
  69983. 801c64e: 2b00 cmp r3, #0
  69984. 801c650: d1d1 bne.n 801c5f6 <tcp_input+0x40e>
  69985. 801c652: e000 b.n 801c656 <tcp_input+0x46e>
  69986. break;
  69987. 801c654: bf00 nop
  69988. /* only pass to ANY if no specific local IP has been found */
  69989. lpcb = lpcb_any;
  69990. prev = lpcb_prev;
  69991. }
  69992. #endif /* SO_REUSE */
  69993. if (lpcb != NULL) {
  69994. 801c656: 697b ldr r3, [r7, #20]
  69995. 801c658: 2b00 cmp r3, #0
  69996. 801c65a: d029 beq.n 801c6b0 <tcp_input+0x4c8>
  69997. /* Move this PCB to the front of the list so that subsequent
  69998. lookups will be faster (we exploit locality in TCP segment
  69999. arrivals). */
  70000. if (prev != NULL) {
  70001. 801c65c: 69fb ldr r3, [r7, #28]
  70002. 801c65e: 2b00 cmp r3, #0
  70003. 801c660: d00a beq.n 801c678 <tcp_input+0x490>
  70004. ((struct tcp_pcb_listen *)prev)->next = lpcb->next;
  70005. 801c662: 697b ldr r3, [r7, #20]
  70006. 801c664: 68da ldr r2, [r3, #12]
  70007. 801c666: 69fb ldr r3, [r7, #28]
  70008. 801c668: 60da str r2, [r3, #12]
  70009. /* our successor is the remainder of the listening list */
  70010. lpcb->next = tcp_listen_pcbs.listen_pcbs;
  70011. 801c66a: 4b10 ldr r3, [pc, #64] @ (801c6ac <tcp_input+0x4c4>)
  70012. 801c66c: 681a ldr r2, [r3, #0]
  70013. 801c66e: 697b ldr r3, [r7, #20]
  70014. 801c670: 60da str r2, [r3, #12]
  70015. /* put this listening pcb at the head of the listening list */
  70016. tcp_listen_pcbs.listen_pcbs = lpcb;
  70017. 801c672: 4a0e ldr r2, [pc, #56] @ (801c6ac <tcp_input+0x4c4>)
  70018. 801c674: 697b ldr r3, [r7, #20]
  70019. 801c676: 6013 str r3, [r2, #0]
  70020. #ifdef LWIP_HOOK_TCP_INPACKET_PCB
  70021. if (LWIP_HOOK_TCP_INPACKET_PCB((struct tcp_pcb *)lpcb, tcphdr, tcphdr_optlen,
  70022. tcphdr_opt1len, tcphdr_opt2, p) == ERR_OK)
  70023. #endif
  70024. {
  70025. tcp_listen_input(lpcb);
  70026. 801c678: 6978 ldr r0, [r7, #20]
  70027. 801c67a: f000 fa03 bl 801ca84 <tcp_listen_input>
  70028. }
  70029. pbuf_free(p);
  70030. 801c67e: 6878 ldr r0, [r7, #4]
  70031. 801c680: f7fd fccc bl 801a01c <pbuf_free>
  70032. return;
  70033. 801c684: e1a8 b.n 801c9d8 <tcp_input+0x7f0>
  70034. 801c686: bf00 nop
  70035. 801c688: 2402a018 .word 0x2402a018
  70036. 801c68c: 2402349c .word 0x2402349c
  70037. 801c690: 0802e8a4 .word 0x0802e8a4
  70038. 801c694: 0802e9d0 .word 0x0802e9d0
  70039. 801c698: 0802e8f0 .word 0x0802e8f0
  70040. 801c69c: 24029ff8 .word 0x24029ff8
  70041. 801c6a0: 0802e9fc .word 0x0802e9fc
  70042. 801c6a4: 24029ffc .word 0x24029ffc
  70043. 801c6a8: 0802ea28 .word 0x0802ea28
  70044. 801c6ac: 24029ff4 .word 0x24029ff4
  70045. tcphdr_opt1len, tcphdr_opt2, p) != ERR_OK) {
  70046. pbuf_free(p);
  70047. return;
  70048. }
  70049. #endif
  70050. if (pcb != NULL) {
  70051. 801c6b0: 69bb ldr r3, [r7, #24]
  70052. 801c6b2: 2b00 cmp r3, #0
  70053. 801c6b4: f000 8158 beq.w 801c968 <tcp_input+0x780>
  70054. #if TCP_INPUT_DEBUG
  70055. tcp_debug_print_state(pcb->state);
  70056. #endif /* TCP_INPUT_DEBUG */
  70057. /* Set up a tcp_seg structure. */
  70058. inseg.next = NULL;
  70059. 801c6b8: 4b95 ldr r3, [pc, #596] @ (801c910 <tcp_input+0x728>)
  70060. 801c6ba: 2200 movs r2, #0
  70061. 801c6bc: 601a str r2, [r3, #0]
  70062. inseg.len = p->tot_len;
  70063. 801c6be: 687b ldr r3, [r7, #4]
  70064. 801c6c0: 891a ldrh r2, [r3, #8]
  70065. 801c6c2: 4b93 ldr r3, [pc, #588] @ (801c910 <tcp_input+0x728>)
  70066. 801c6c4: 811a strh r2, [r3, #8]
  70067. inseg.p = p;
  70068. 801c6c6: 4a92 ldr r2, [pc, #584] @ (801c910 <tcp_input+0x728>)
  70069. 801c6c8: 687b ldr r3, [r7, #4]
  70070. 801c6ca: 6053 str r3, [r2, #4]
  70071. inseg.tcphdr = tcphdr;
  70072. 801c6cc: 4b91 ldr r3, [pc, #580] @ (801c914 <tcp_input+0x72c>)
  70073. 801c6ce: 681b ldr r3, [r3, #0]
  70074. 801c6d0: 4a8f ldr r2, [pc, #572] @ (801c910 <tcp_input+0x728>)
  70075. 801c6d2: 6113 str r3, [r2, #16]
  70076. recv_data = NULL;
  70077. 801c6d4: 4b90 ldr r3, [pc, #576] @ (801c918 <tcp_input+0x730>)
  70078. 801c6d6: 2200 movs r2, #0
  70079. 801c6d8: 601a str r2, [r3, #0]
  70080. recv_flags = 0;
  70081. 801c6da: 4b90 ldr r3, [pc, #576] @ (801c91c <tcp_input+0x734>)
  70082. 801c6dc: 2200 movs r2, #0
  70083. 801c6de: 701a strb r2, [r3, #0]
  70084. recv_acked = 0;
  70085. 801c6e0: 4b8f ldr r3, [pc, #572] @ (801c920 <tcp_input+0x738>)
  70086. 801c6e2: 2200 movs r2, #0
  70087. 801c6e4: 801a strh r2, [r3, #0]
  70088. if (flags & TCP_PSH) {
  70089. 801c6e6: 4b8f ldr r3, [pc, #572] @ (801c924 <tcp_input+0x73c>)
  70090. 801c6e8: 781b ldrb r3, [r3, #0]
  70091. 801c6ea: f003 0308 and.w r3, r3, #8
  70092. 801c6ee: 2b00 cmp r3, #0
  70093. 801c6f0: d006 beq.n 801c700 <tcp_input+0x518>
  70094. p->flags |= PBUF_FLAG_PUSH;
  70095. 801c6f2: 687b ldr r3, [r7, #4]
  70096. 801c6f4: 7b5b ldrb r3, [r3, #13]
  70097. 801c6f6: f043 0301 orr.w r3, r3, #1
  70098. 801c6fa: b2da uxtb r2, r3
  70099. 801c6fc: 687b ldr r3, [r7, #4]
  70100. 801c6fe: 735a strb r2, [r3, #13]
  70101. }
  70102. /* If there is data which was previously "refused" by upper layer */
  70103. if (pcb->refused_data != NULL) {
  70104. 801c700: 69bb ldr r3, [r7, #24]
  70105. 801c702: 6f9b ldr r3, [r3, #120] @ 0x78
  70106. 801c704: 2b00 cmp r3, #0
  70107. 801c706: d017 beq.n 801c738 <tcp_input+0x550>
  70108. if ((tcp_process_refused_data(pcb) == ERR_ABRT) ||
  70109. 801c708: 69b8 ldr r0, [r7, #24]
  70110. 801c70a: f7ff f84d bl 801b7a8 <tcp_process_refused_data>
  70111. 801c70e: 4603 mov r3, r0
  70112. 801c710: f113 0f0d cmn.w r3, #13
  70113. 801c714: d007 beq.n 801c726 <tcp_input+0x53e>
  70114. ((pcb->refused_data != NULL) && (tcplen > 0))) {
  70115. 801c716: 69bb ldr r3, [r7, #24]
  70116. 801c718: 6f9b ldr r3, [r3, #120] @ 0x78
  70117. if ((tcp_process_refused_data(pcb) == ERR_ABRT) ||
  70118. 801c71a: 2b00 cmp r3, #0
  70119. 801c71c: d00c beq.n 801c738 <tcp_input+0x550>
  70120. ((pcb->refused_data != NULL) && (tcplen > 0))) {
  70121. 801c71e: 4b82 ldr r3, [pc, #520] @ (801c928 <tcp_input+0x740>)
  70122. 801c720: 881b ldrh r3, [r3, #0]
  70123. 801c722: 2b00 cmp r3, #0
  70124. 801c724: d008 beq.n 801c738 <tcp_input+0x550>
  70125. /* pcb has been aborted or refused data is still refused and the new
  70126. segment contains data */
  70127. if (pcb->rcv_ann_wnd == 0) {
  70128. 801c726: 69bb ldr r3, [r7, #24]
  70129. 801c728: 8d5b ldrh r3, [r3, #42] @ 0x2a
  70130. 801c72a: 2b00 cmp r3, #0
  70131. 801c72c: f040 80e4 bne.w 801c8f8 <tcp_input+0x710>
  70132. /* this is a zero-window probe, we respond to it with current RCV.NXT
  70133. and drop the data segment */
  70134. tcp_send_empty_ack(pcb);
  70135. 801c730: 69b8 ldr r0, [r7, #24]
  70136. 801c732: f003 fe73 bl 802041c <tcp_send_empty_ack>
  70137. }
  70138. TCP_STATS_INC(tcp.drop);
  70139. MIB2_STATS_INC(mib2.tcpinerrs);
  70140. goto aborted;
  70141. 801c736: e0df b.n 801c8f8 <tcp_input+0x710>
  70142. }
  70143. }
  70144. tcp_input_pcb = pcb;
  70145. 801c738: 4a7c ldr r2, [pc, #496] @ (801c92c <tcp_input+0x744>)
  70146. 801c73a: 69bb ldr r3, [r7, #24]
  70147. 801c73c: 6013 str r3, [r2, #0]
  70148. err = tcp_process(pcb);
  70149. 801c73e: 69b8 ldr r0, [r7, #24]
  70150. 801c740: f000 fb18 bl 801cd74 <tcp_process>
  70151. 801c744: 4603 mov r3, r0
  70152. 801c746: 74fb strb r3, [r7, #19]
  70153. /* A return value of ERR_ABRT means that tcp_abort() was called
  70154. and that the pcb has been freed. If so, we don't do anything. */
  70155. if (err != ERR_ABRT) {
  70156. 801c748: f997 3013 ldrsb.w r3, [r7, #19]
  70157. 801c74c: f113 0f0d cmn.w r3, #13
  70158. 801c750: f000 80d4 beq.w 801c8fc <tcp_input+0x714>
  70159. if (recv_flags & TF_RESET) {
  70160. 801c754: 4b71 ldr r3, [pc, #452] @ (801c91c <tcp_input+0x734>)
  70161. 801c756: 781b ldrb r3, [r3, #0]
  70162. 801c758: f003 0308 and.w r3, r3, #8
  70163. 801c75c: 2b00 cmp r3, #0
  70164. 801c75e: d015 beq.n 801c78c <tcp_input+0x5a4>
  70165. /* TF_RESET means that the connection was reset by the other
  70166. end. We then call the error callback to inform the
  70167. application that the connection is dead before we
  70168. deallocate the PCB. */
  70169. TCP_EVENT_ERR(pcb->state, pcb->errf, pcb->callback_arg, ERR_RST);
  70170. 801c760: 69bb ldr r3, [r7, #24]
  70171. 801c762: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  70172. 801c766: 2b00 cmp r3, #0
  70173. 801c768: d008 beq.n 801c77c <tcp_input+0x594>
  70174. 801c76a: 69bb ldr r3, [r7, #24]
  70175. 801c76c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  70176. 801c770: 69ba ldr r2, [r7, #24]
  70177. 801c772: 6912 ldr r2, [r2, #16]
  70178. 801c774: f06f 010d mvn.w r1, #13
  70179. 801c778: 4610 mov r0, r2
  70180. 801c77a: 4798 blx r3
  70181. tcp_pcb_remove(&tcp_active_pcbs, pcb);
  70182. 801c77c: 69b9 ldr r1, [r7, #24]
  70183. 801c77e: 486c ldr r0, [pc, #432] @ (801c930 <tcp_input+0x748>)
  70184. 801c780: f7ff fbba bl 801bef8 <tcp_pcb_remove>
  70185. tcp_free(pcb);
  70186. 801c784: 69b8 ldr r0, [r7, #24]
  70187. 801c786: f7fd ff05 bl 801a594 <tcp_free>
  70188. 801c78a: e0da b.n 801c942 <tcp_input+0x75a>
  70189. } else {
  70190. err = ERR_OK;
  70191. 801c78c: 2300 movs r3, #0
  70192. 801c78e: 74fb strb r3, [r7, #19]
  70193. /* If the application has registered a "sent" function to be
  70194. called when new send buffer space is available, we call it
  70195. now. */
  70196. if (recv_acked > 0) {
  70197. 801c790: 4b63 ldr r3, [pc, #396] @ (801c920 <tcp_input+0x738>)
  70198. 801c792: 881b ldrh r3, [r3, #0]
  70199. 801c794: 2b00 cmp r3, #0
  70200. 801c796: d01d beq.n 801c7d4 <tcp_input+0x5ec>
  70201. while (acked > 0) {
  70202. acked16 = (u16_t)LWIP_MIN(acked, 0xffffu);
  70203. acked -= acked16;
  70204. #else
  70205. {
  70206. acked16 = recv_acked;
  70207. 801c798: 4b61 ldr r3, [pc, #388] @ (801c920 <tcp_input+0x738>)
  70208. 801c79a: 881b ldrh r3, [r3, #0]
  70209. 801c79c: 81fb strh r3, [r7, #14]
  70210. #endif
  70211. TCP_EVENT_SENT(pcb, (u16_t)acked16, err);
  70212. 801c79e: 69bb ldr r3, [r7, #24]
  70213. 801c7a0: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  70214. 801c7a4: 2b00 cmp r3, #0
  70215. 801c7a6: d00a beq.n 801c7be <tcp_input+0x5d6>
  70216. 801c7a8: 69bb ldr r3, [r7, #24]
  70217. 801c7aa: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  70218. 801c7ae: 69ba ldr r2, [r7, #24]
  70219. 801c7b0: 6910 ldr r0, [r2, #16]
  70220. 801c7b2: 89fa ldrh r2, [r7, #14]
  70221. 801c7b4: 69b9 ldr r1, [r7, #24]
  70222. 801c7b6: 4798 blx r3
  70223. 801c7b8: 4603 mov r3, r0
  70224. 801c7ba: 74fb strb r3, [r7, #19]
  70225. 801c7bc: e001 b.n 801c7c2 <tcp_input+0x5da>
  70226. 801c7be: 2300 movs r3, #0
  70227. 801c7c0: 74fb strb r3, [r7, #19]
  70228. if (err == ERR_ABRT) {
  70229. 801c7c2: f997 3013 ldrsb.w r3, [r7, #19]
  70230. 801c7c6: f113 0f0d cmn.w r3, #13
  70231. 801c7ca: f000 8099 beq.w 801c900 <tcp_input+0x718>
  70232. goto aborted;
  70233. }
  70234. }
  70235. recv_acked = 0;
  70236. 801c7ce: 4b54 ldr r3, [pc, #336] @ (801c920 <tcp_input+0x738>)
  70237. 801c7d0: 2200 movs r2, #0
  70238. 801c7d2: 801a strh r2, [r3, #0]
  70239. }
  70240. if (tcp_input_delayed_close(pcb)) {
  70241. 801c7d4: 69b8 ldr r0, [r7, #24]
  70242. 801c7d6: f000 f915 bl 801ca04 <tcp_input_delayed_close>
  70243. 801c7da: 4603 mov r3, r0
  70244. 801c7dc: 2b00 cmp r3, #0
  70245. 801c7de: f040 8091 bne.w 801c904 <tcp_input+0x71c>
  70246. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  70247. while (recv_data != NULL) {
  70248. struct pbuf *rest = NULL;
  70249. pbuf_split_64k(recv_data, &rest);
  70250. #else /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  70251. if (recv_data != NULL) {
  70252. 801c7e2: 4b4d ldr r3, [pc, #308] @ (801c918 <tcp_input+0x730>)
  70253. 801c7e4: 681b ldr r3, [r3, #0]
  70254. 801c7e6: 2b00 cmp r3, #0
  70255. 801c7e8: d041 beq.n 801c86e <tcp_input+0x686>
  70256. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  70257. LWIP_ASSERT("pcb->refused_data == NULL", pcb->refused_data == NULL);
  70258. 801c7ea: 69bb ldr r3, [r7, #24]
  70259. 801c7ec: 6f9b ldr r3, [r3, #120] @ 0x78
  70260. 801c7ee: 2b00 cmp r3, #0
  70261. 801c7f0: d006 beq.n 801c800 <tcp_input+0x618>
  70262. 801c7f2: 4b50 ldr r3, [pc, #320] @ (801c934 <tcp_input+0x74c>)
  70263. 801c7f4: f44f 72f3 mov.w r2, #486 @ 0x1e6
  70264. 801c7f8: 494f ldr r1, [pc, #316] @ (801c938 <tcp_input+0x750>)
  70265. 801c7fa: 4850 ldr r0, [pc, #320] @ (801c93c <tcp_input+0x754>)
  70266. 801c7fc: f00c fe86 bl 802950c <iprintf>
  70267. if (pcb->flags & TF_RXCLOSED) {
  70268. 801c800: 69bb ldr r3, [r7, #24]
  70269. 801c802: 8b5b ldrh r3, [r3, #26]
  70270. 801c804: f003 0310 and.w r3, r3, #16
  70271. 801c808: 2b00 cmp r3, #0
  70272. 801c80a: d008 beq.n 801c81e <tcp_input+0x636>
  70273. /* received data although already closed -> abort (send RST) to
  70274. notify the remote host that not all data has been processed */
  70275. pbuf_free(recv_data);
  70276. 801c80c: 4b42 ldr r3, [pc, #264] @ (801c918 <tcp_input+0x730>)
  70277. 801c80e: 681b ldr r3, [r3, #0]
  70278. 801c810: 4618 mov r0, r3
  70279. 801c812: f7fd fc03 bl 801a01c <pbuf_free>
  70280. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  70281. if (rest != NULL) {
  70282. pbuf_free(rest);
  70283. }
  70284. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  70285. tcp_abort(pcb);
  70286. 801c816: 69b8 ldr r0, [r7, #24]
  70287. 801c818: f7fe fa06 bl 801ac28 <tcp_abort>
  70288. goto aborted;
  70289. 801c81c: e091 b.n 801c942 <tcp_input+0x75a>
  70290. }
  70291. /* Notify application that data has been received. */
  70292. TCP_EVENT_RECV(pcb, recv_data, ERR_OK, err);
  70293. 801c81e: 69bb ldr r3, [r7, #24]
  70294. 801c820: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  70295. 801c824: 2b00 cmp r3, #0
  70296. 801c826: d00c beq.n 801c842 <tcp_input+0x65a>
  70297. 801c828: 69bb ldr r3, [r7, #24]
  70298. 801c82a: f8d3 4084 ldr.w r4, [r3, #132] @ 0x84
  70299. 801c82e: 69bb ldr r3, [r7, #24]
  70300. 801c830: 6918 ldr r0, [r3, #16]
  70301. 801c832: 4b39 ldr r3, [pc, #228] @ (801c918 <tcp_input+0x730>)
  70302. 801c834: 681a ldr r2, [r3, #0]
  70303. 801c836: 2300 movs r3, #0
  70304. 801c838: 69b9 ldr r1, [r7, #24]
  70305. 801c83a: 47a0 blx r4
  70306. 801c83c: 4603 mov r3, r0
  70307. 801c83e: 74fb strb r3, [r7, #19]
  70308. 801c840: e008 b.n 801c854 <tcp_input+0x66c>
  70309. 801c842: 4b35 ldr r3, [pc, #212] @ (801c918 <tcp_input+0x730>)
  70310. 801c844: 681a ldr r2, [r3, #0]
  70311. 801c846: 2300 movs r3, #0
  70312. 801c848: 69b9 ldr r1, [r7, #24]
  70313. 801c84a: 2000 movs r0, #0
  70314. 801c84c: f7ff f884 bl 801b958 <tcp_recv_null>
  70315. 801c850: 4603 mov r3, r0
  70316. 801c852: 74fb strb r3, [r7, #19]
  70317. if (err == ERR_ABRT) {
  70318. 801c854: f997 3013 ldrsb.w r3, [r7, #19]
  70319. 801c858: f113 0f0d cmn.w r3, #13
  70320. 801c85c: d054 beq.n 801c908 <tcp_input+0x720>
  70321. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  70322. goto aborted;
  70323. }
  70324. /* If the upper layer can't receive this data, store it */
  70325. if (err != ERR_OK) {
  70326. 801c85e: f997 3013 ldrsb.w r3, [r7, #19]
  70327. 801c862: 2b00 cmp r3, #0
  70328. 801c864: d003 beq.n 801c86e <tcp_input+0x686>
  70329. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  70330. if (rest != NULL) {
  70331. pbuf_cat(recv_data, rest);
  70332. }
  70333. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  70334. pcb->refused_data = recv_data;
  70335. 801c866: 4b2c ldr r3, [pc, #176] @ (801c918 <tcp_input+0x730>)
  70336. 801c868: 681a ldr r2, [r3, #0]
  70337. 801c86a: 69bb ldr r3, [r7, #24]
  70338. 801c86c: 679a str r2, [r3, #120] @ 0x78
  70339. }
  70340. }
  70341. /* If a FIN segment was received, we call the callback
  70342. function with a NULL buffer to indicate EOF. */
  70343. if (recv_flags & TF_GOT_FIN) {
  70344. 801c86e: 4b2b ldr r3, [pc, #172] @ (801c91c <tcp_input+0x734>)
  70345. 801c870: 781b ldrb r3, [r3, #0]
  70346. 801c872: f003 0320 and.w r3, r3, #32
  70347. 801c876: 2b00 cmp r3, #0
  70348. 801c878: d031 beq.n 801c8de <tcp_input+0x6f6>
  70349. if (pcb->refused_data != NULL) {
  70350. 801c87a: 69bb ldr r3, [r7, #24]
  70351. 801c87c: 6f9b ldr r3, [r3, #120] @ 0x78
  70352. 801c87e: 2b00 cmp r3, #0
  70353. 801c880: d009 beq.n 801c896 <tcp_input+0x6ae>
  70354. /* Delay this if we have refused data. */
  70355. pcb->refused_data->flags |= PBUF_FLAG_TCP_FIN;
  70356. 801c882: 69bb ldr r3, [r7, #24]
  70357. 801c884: 6f9b ldr r3, [r3, #120] @ 0x78
  70358. 801c886: 7b5a ldrb r2, [r3, #13]
  70359. 801c888: 69bb ldr r3, [r7, #24]
  70360. 801c88a: 6f9b ldr r3, [r3, #120] @ 0x78
  70361. 801c88c: f042 0220 orr.w r2, r2, #32
  70362. 801c890: b2d2 uxtb r2, r2
  70363. 801c892: 735a strb r2, [r3, #13]
  70364. 801c894: e023 b.n 801c8de <tcp_input+0x6f6>
  70365. } else {
  70366. /* correct rcv_wnd as the application won't call tcp_recved()
  70367. for the FIN's seqno */
  70368. if (pcb->rcv_wnd != TCP_WND_MAX(pcb)) {
  70369. 801c896: 69bb ldr r3, [r7, #24]
  70370. 801c898: 8d1b ldrh r3, [r3, #40] @ 0x28
  70371. 801c89a: f241 62d0 movw r2, #5840 @ 0x16d0
  70372. 801c89e: 4293 cmp r3, r2
  70373. 801c8a0: d005 beq.n 801c8ae <tcp_input+0x6c6>
  70374. pcb->rcv_wnd++;
  70375. 801c8a2: 69bb ldr r3, [r7, #24]
  70376. 801c8a4: 8d1b ldrh r3, [r3, #40] @ 0x28
  70377. 801c8a6: 3301 adds r3, #1
  70378. 801c8a8: b29a uxth r2, r3
  70379. 801c8aa: 69bb ldr r3, [r7, #24]
  70380. 801c8ac: 851a strh r2, [r3, #40] @ 0x28
  70381. }
  70382. TCP_EVENT_CLOSED(pcb, err);
  70383. 801c8ae: 69bb ldr r3, [r7, #24]
  70384. 801c8b0: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  70385. 801c8b4: 2b00 cmp r3, #0
  70386. 801c8b6: d00b beq.n 801c8d0 <tcp_input+0x6e8>
  70387. 801c8b8: 69bb ldr r3, [r7, #24]
  70388. 801c8ba: f8d3 4084 ldr.w r4, [r3, #132] @ 0x84
  70389. 801c8be: 69bb ldr r3, [r7, #24]
  70390. 801c8c0: 6918 ldr r0, [r3, #16]
  70391. 801c8c2: 2300 movs r3, #0
  70392. 801c8c4: 2200 movs r2, #0
  70393. 801c8c6: 69b9 ldr r1, [r7, #24]
  70394. 801c8c8: 47a0 blx r4
  70395. 801c8ca: 4603 mov r3, r0
  70396. 801c8cc: 74fb strb r3, [r7, #19]
  70397. 801c8ce: e001 b.n 801c8d4 <tcp_input+0x6ec>
  70398. 801c8d0: 2300 movs r3, #0
  70399. 801c8d2: 74fb strb r3, [r7, #19]
  70400. if (err == ERR_ABRT) {
  70401. 801c8d4: f997 3013 ldrsb.w r3, [r7, #19]
  70402. 801c8d8: f113 0f0d cmn.w r3, #13
  70403. 801c8dc: d016 beq.n 801c90c <tcp_input+0x724>
  70404. goto aborted;
  70405. }
  70406. }
  70407. }
  70408. tcp_input_pcb = NULL;
  70409. 801c8de: 4b13 ldr r3, [pc, #76] @ (801c92c <tcp_input+0x744>)
  70410. 801c8e0: 2200 movs r2, #0
  70411. 801c8e2: 601a str r2, [r3, #0]
  70412. if (tcp_input_delayed_close(pcb)) {
  70413. 801c8e4: 69b8 ldr r0, [r7, #24]
  70414. 801c8e6: f000 f88d bl 801ca04 <tcp_input_delayed_close>
  70415. 801c8ea: 4603 mov r3, r0
  70416. 801c8ec: 2b00 cmp r3, #0
  70417. 801c8ee: d127 bne.n 801c940 <tcp_input+0x758>
  70418. goto aborted;
  70419. }
  70420. /* Try to send something out. */
  70421. tcp_output(pcb);
  70422. 801c8f0: 69b8 ldr r0, [r7, #24]
  70423. 801c8f2: f002 ff7f bl 801f7f4 <tcp_output>
  70424. 801c8f6: e024 b.n 801c942 <tcp_input+0x75a>
  70425. goto aborted;
  70426. 801c8f8: bf00 nop
  70427. 801c8fa: e022 b.n 801c942 <tcp_input+0x75a>
  70428. #endif /* TCP_INPUT_DEBUG */
  70429. }
  70430. }
  70431. /* Jump target if pcb has been aborted in a callback (by calling tcp_abort()).
  70432. Below this line, 'pcb' may not be dereferenced! */
  70433. aborted:
  70434. 801c8fc: bf00 nop
  70435. 801c8fe: e020 b.n 801c942 <tcp_input+0x75a>
  70436. goto aborted;
  70437. 801c900: bf00 nop
  70438. 801c902: e01e b.n 801c942 <tcp_input+0x75a>
  70439. goto aborted;
  70440. 801c904: bf00 nop
  70441. 801c906: e01c b.n 801c942 <tcp_input+0x75a>
  70442. goto aborted;
  70443. 801c908: bf00 nop
  70444. 801c90a: e01a b.n 801c942 <tcp_input+0x75a>
  70445. goto aborted;
  70446. 801c90c: bf00 nop
  70447. 801c90e: e018 b.n 801c942 <tcp_input+0x75a>
  70448. 801c910: 2402a004 .word 0x2402a004
  70449. 801c914: 2402a018 .word 0x2402a018
  70450. 801c918: 2402a038 .word 0x2402a038
  70451. 801c91c: 2402a035 .word 0x2402a035
  70452. 801c920: 2402a030 .word 0x2402a030
  70453. 801c924: 2402a034 .word 0x2402a034
  70454. 801c928: 2402a032 .word 0x2402a032
  70455. 801c92c: 2402a03c .word 0x2402a03c
  70456. 801c930: 24029ff8 .word 0x24029ff8
  70457. 801c934: 0802e8a4 .word 0x0802e8a4
  70458. 801c938: 0802ea58 .word 0x0802ea58
  70459. 801c93c: 0802e8f0 .word 0x0802e8f0
  70460. goto aborted;
  70461. 801c940: bf00 nop
  70462. tcp_input_pcb = NULL;
  70463. 801c942: 4b27 ldr r3, [pc, #156] @ (801c9e0 <tcp_input+0x7f8>)
  70464. 801c944: 2200 movs r2, #0
  70465. 801c946: 601a str r2, [r3, #0]
  70466. recv_data = NULL;
  70467. 801c948: 4b26 ldr r3, [pc, #152] @ (801c9e4 <tcp_input+0x7fc>)
  70468. 801c94a: 2200 movs r2, #0
  70469. 801c94c: 601a str r2, [r3, #0]
  70470. /* give up our reference to inseg.p */
  70471. if (inseg.p != NULL) {
  70472. 801c94e: 4b26 ldr r3, [pc, #152] @ (801c9e8 <tcp_input+0x800>)
  70473. 801c950: 685b ldr r3, [r3, #4]
  70474. 801c952: 2b00 cmp r3, #0
  70475. 801c954: d03f beq.n 801c9d6 <tcp_input+0x7ee>
  70476. pbuf_free(inseg.p);
  70477. 801c956: 4b24 ldr r3, [pc, #144] @ (801c9e8 <tcp_input+0x800>)
  70478. 801c958: 685b ldr r3, [r3, #4]
  70479. 801c95a: 4618 mov r0, r3
  70480. 801c95c: f7fd fb5e bl 801a01c <pbuf_free>
  70481. inseg.p = NULL;
  70482. 801c960: 4b21 ldr r3, [pc, #132] @ (801c9e8 <tcp_input+0x800>)
  70483. 801c962: 2200 movs r2, #0
  70484. 801c964: 605a str r2, [r3, #4]
  70485. pbuf_free(p);
  70486. }
  70487. LWIP_ASSERT("tcp_input: tcp_pcbs_sane()", tcp_pcbs_sane());
  70488. PERF_STOP("tcp_input");
  70489. return;
  70490. 801c966: e036 b.n 801c9d6 <tcp_input+0x7ee>
  70491. if (!(TCPH_FLAGS(tcphdr) & TCP_RST)) {
  70492. 801c968: 4b20 ldr r3, [pc, #128] @ (801c9ec <tcp_input+0x804>)
  70493. 801c96a: 681b ldr r3, [r3, #0]
  70494. 801c96c: 899b ldrh r3, [r3, #12]
  70495. 801c96e: b29b uxth r3, r3
  70496. 801c970: 4618 mov r0, r3
  70497. 801c972: f7fb fe71 bl 8018658 <lwip_htons>
  70498. 801c976: 4603 mov r3, r0
  70499. 801c978: b2db uxtb r3, r3
  70500. 801c97a: f003 0304 and.w r3, r3, #4
  70501. 801c97e: 2b00 cmp r3, #0
  70502. 801c980: d118 bne.n 801c9b4 <tcp_input+0x7cc>
  70503. tcp_rst(NULL, ackno, seqno + tcplen, ip_current_dest_addr(),
  70504. 801c982: 4b1b ldr r3, [pc, #108] @ (801c9f0 <tcp_input+0x808>)
  70505. 801c984: 6819 ldr r1, [r3, #0]
  70506. 801c986: 4b1b ldr r3, [pc, #108] @ (801c9f4 <tcp_input+0x80c>)
  70507. 801c988: 881b ldrh r3, [r3, #0]
  70508. 801c98a: 461a mov r2, r3
  70509. 801c98c: 4b1a ldr r3, [pc, #104] @ (801c9f8 <tcp_input+0x810>)
  70510. 801c98e: 681b ldr r3, [r3, #0]
  70511. 801c990: 18d0 adds r0, r2, r3
  70512. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  70513. 801c992: 4b16 ldr r3, [pc, #88] @ (801c9ec <tcp_input+0x804>)
  70514. 801c994: 681b ldr r3, [r3, #0]
  70515. tcp_rst(NULL, ackno, seqno + tcplen, ip_current_dest_addr(),
  70516. 801c996: 885b ldrh r3, [r3, #2]
  70517. 801c998: b29b uxth r3, r3
  70518. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  70519. 801c99a: 4a14 ldr r2, [pc, #80] @ (801c9ec <tcp_input+0x804>)
  70520. 801c99c: 6812 ldr r2, [r2, #0]
  70521. tcp_rst(NULL, ackno, seqno + tcplen, ip_current_dest_addr(),
  70522. 801c99e: 8812 ldrh r2, [r2, #0]
  70523. 801c9a0: b292 uxth r2, r2
  70524. 801c9a2: 9202 str r2, [sp, #8]
  70525. 801c9a4: 9301 str r3, [sp, #4]
  70526. 801c9a6: 4b15 ldr r3, [pc, #84] @ (801c9fc <tcp_input+0x814>)
  70527. 801c9a8: 9300 str r3, [sp, #0]
  70528. 801c9aa: 4b15 ldr r3, [pc, #84] @ (801ca00 <tcp_input+0x818>)
  70529. 801c9ac: 4602 mov r2, r0
  70530. 801c9ae: 2000 movs r0, #0
  70531. 801c9b0: f003 fce2 bl 8020378 <tcp_rst>
  70532. pbuf_free(p);
  70533. 801c9b4: 6878 ldr r0, [r7, #4]
  70534. 801c9b6: f7fd fb31 bl 801a01c <pbuf_free>
  70535. return;
  70536. 801c9ba: e00c b.n 801c9d6 <tcp_input+0x7ee>
  70537. goto dropped;
  70538. 801c9bc: bf00 nop
  70539. 801c9be: e006 b.n 801c9ce <tcp_input+0x7e6>
  70540. goto dropped;
  70541. 801c9c0: bf00 nop
  70542. 801c9c2: e004 b.n 801c9ce <tcp_input+0x7e6>
  70543. goto dropped;
  70544. 801c9c4: bf00 nop
  70545. 801c9c6: e002 b.n 801c9ce <tcp_input+0x7e6>
  70546. goto dropped;
  70547. 801c9c8: bf00 nop
  70548. 801c9ca: e000 b.n 801c9ce <tcp_input+0x7e6>
  70549. goto dropped;
  70550. 801c9cc: bf00 nop
  70551. dropped:
  70552. TCP_STATS_INC(tcp.drop);
  70553. MIB2_STATS_INC(mib2.tcpinerrs);
  70554. pbuf_free(p);
  70555. 801c9ce: 6878 ldr r0, [r7, #4]
  70556. 801c9d0: f7fd fb24 bl 801a01c <pbuf_free>
  70557. 801c9d4: e000 b.n 801c9d8 <tcp_input+0x7f0>
  70558. return;
  70559. 801c9d6: bf00 nop
  70560. }
  70561. 801c9d8: 3724 adds r7, #36 @ 0x24
  70562. 801c9da: 46bd mov sp, r7
  70563. 801c9dc: bd90 pop {r4, r7, pc}
  70564. 801c9de: bf00 nop
  70565. 801c9e0: 2402a03c .word 0x2402a03c
  70566. 801c9e4: 2402a038 .word 0x2402a038
  70567. 801c9e8: 2402a004 .word 0x2402a004
  70568. 801c9ec: 2402a018 .word 0x2402a018
  70569. 801c9f0: 2402a02c .word 0x2402a02c
  70570. 801c9f4: 2402a032 .word 0x2402a032
  70571. 801c9f8: 2402a028 .word 0x2402a028
  70572. 801c9fc: 240234ac .word 0x240234ac
  70573. 801ca00: 240234b0 .word 0x240234b0
  70574. 0801ca04 <tcp_input_delayed_close>:
  70575. * any more.
  70576. * @returns 1 if the pcb has been closed and deallocated, 0 otherwise
  70577. */
  70578. static int
  70579. tcp_input_delayed_close(struct tcp_pcb *pcb)
  70580. {
  70581. 801ca04: b580 push {r7, lr}
  70582. 801ca06: b082 sub sp, #8
  70583. 801ca08: af00 add r7, sp, #0
  70584. 801ca0a: 6078 str r0, [r7, #4]
  70585. LWIP_ASSERT("tcp_input_delayed_close: invalid pcb", pcb != NULL);
  70586. 801ca0c: 687b ldr r3, [r7, #4]
  70587. 801ca0e: 2b00 cmp r3, #0
  70588. 801ca10: d106 bne.n 801ca20 <tcp_input_delayed_close+0x1c>
  70589. 801ca12: 4b17 ldr r3, [pc, #92] @ (801ca70 <tcp_input_delayed_close+0x6c>)
  70590. 801ca14: f240 225a movw r2, #602 @ 0x25a
  70591. 801ca18: 4916 ldr r1, [pc, #88] @ (801ca74 <tcp_input_delayed_close+0x70>)
  70592. 801ca1a: 4817 ldr r0, [pc, #92] @ (801ca78 <tcp_input_delayed_close+0x74>)
  70593. 801ca1c: f00c fd76 bl 802950c <iprintf>
  70594. if (recv_flags & TF_CLOSED) {
  70595. 801ca20: 4b16 ldr r3, [pc, #88] @ (801ca7c <tcp_input_delayed_close+0x78>)
  70596. 801ca22: 781b ldrb r3, [r3, #0]
  70597. 801ca24: f003 0310 and.w r3, r3, #16
  70598. 801ca28: 2b00 cmp r3, #0
  70599. 801ca2a: d01c beq.n 801ca66 <tcp_input_delayed_close+0x62>
  70600. /* The connection has been closed and we will deallocate the
  70601. PCB. */
  70602. if (!(pcb->flags & TF_RXCLOSED)) {
  70603. 801ca2c: 687b ldr r3, [r7, #4]
  70604. 801ca2e: 8b5b ldrh r3, [r3, #26]
  70605. 801ca30: f003 0310 and.w r3, r3, #16
  70606. 801ca34: 2b00 cmp r3, #0
  70607. 801ca36: d10d bne.n 801ca54 <tcp_input_delayed_close+0x50>
  70608. /* Connection closed although the application has only shut down the
  70609. tx side: call the PCB's err callback and indicate the closure to
  70610. ensure the application doesn't continue using the PCB. */
  70611. TCP_EVENT_ERR(pcb->state, pcb->errf, pcb->callback_arg, ERR_CLSD);
  70612. 801ca38: 687b ldr r3, [r7, #4]
  70613. 801ca3a: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  70614. 801ca3e: 2b00 cmp r3, #0
  70615. 801ca40: d008 beq.n 801ca54 <tcp_input_delayed_close+0x50>
  70616. 801ca42: 687b ldr r3, [r7, #4]
  70617. 801ca44: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  70618. 801ca48: 687a ldr r2, [r7, #4]
  70619. 801ca4a: 6912 ldr r2, [r2, #16]
  70620. 801ca4c: f06f 010e mvn.w r1, #14
  70621. 801ca50: 4610 mov r0, r2
  70622. 801ca52: 4798 blx r3
  70623. }
  70624. tcp_pcb_remove(&tcp_active_pcbs, pcb);
  70625. 801ca54: 6879 ldr r1, [r7, #4]
  70626. 801ca56: 480a ldr r0, [pc, #40] @ (801ca80 <tcp_input_delayed_close+0x7c>)
  70627. 801ca58: f7ff fa4e bl 801bef8 <tcp_pcb_remove>
  70628. tcp_free(pcb);
  70629. 801ca5c: 6878 ldr r0, [r7, #4]
  70630. 801ca5e: f7fd fd99 bl 801a594 <tcp_free>
  70631. return 1;
  70632. 801ca62: 2301 movs r3, #1
  70633. 801ca64: e000 b.n 801ca68 <tcp_input_delayed_close+0x64>
  70634. }
  70635. return 0;
  70636. 801ca66: 2300 movs r3, #0
  70637. }
  70638. 801ca68: 4618 mov r0, r3
  70639. 801ca6a: 3708 adds r7, #8
  70640. 801ca6c: 46bd mov sp, r7
  70641. 801ca6e: bd80 pop {r7, pc}
  70642. 801ca70: 0802e8a4 .word 0x0802e8a4
  70643. 801ca74: 0802ea74 .word 0x0802ea74
  70644. 801ca78: 0802e8f0 .word 0x0802e8f0
  70645. 801ca7c: 2402a035 .word 0x2402a035
  70646. 801ca80: 24029ff8 .word 0x24029ff8
  70647. 0801ca84 <tcp_listen_input>:
  70648. * @note the segment which arrived is saved in global variables, therefore only the pcb
  70649. * involved is passed as a parameter to this function
  70650. */
  70651. static void
  70652. tcp_listen_input(struct tcp_pcb_listen *pcb)
  70653. {
  70654. 801ca84: b590 push {r4, r7, lr}
  70655. 801ca86: b08b sub sp, #44 @ 0x2c
  70656. 801ca88: af04 add r7, sp, #16
  70657. 801ca8a: 6078 str r0, [r7, #4]
  70658. struct tcp_pcb *npcb;
  70659. u32_t iss;
  70660. err_t rc;
  70661. if (flags & TCP_RST) {
  70662. 801ca8c: 4b6f ldr r3, [pc, #444] @ (801cc4c <tcp_listen_input+0x1c8>)
  70663. 801ca8e: 781b ldrb r3, [r3, #0]
  70664. 801ca90: f003 0304 and.w r3, r3, #4
  70665. 801ca94: 2b00 cmp r3, #0
  70666. 801ca96: f040 80d2 bne.w 801cc3e <tcp_listen_input+0x1ba>
  70667. /* An incoming RST should be ignored. Return. */
  70668. return;
  70669. }
  70670. LWIP_ASSERT("tcp_listen_input: invalid pcb", pcb != NULL);
  70671. 801ca9a: 687b ldr r3, [r7, #4]
  70672. 801ca9c: 2b00 cmp r3, #0
  70673. 801ca9e: d106 bne.n 801caae <tcp_listen_input+0x2a>
  70674. 801caa0: 4b6b ldr r3, [pc, #428] @ (801cc50 <tcp_listen_input+0x1cc>)
  70675. 801caa2: f240 2281 movw r2, #641 @ 0x281
  70676. 801caa6: 496b ldr r1, [pc, #428] @ (801cc54 <tcp_listen_input+0x1d0>)
  70677. 801caa8: 486b ldr r0, [pc, #428] @ (801cc58 <tcp_listen_input+0x1d4>)
  70678. 801caaa: f00c fd2f bl 802950c <iprintf>
  70679. /* In the LISTEN state, we check for incoming SYN segments,
  70680. creates a new PCB, and responds with a SYN|ACK. */
  70681. if (flags & TCP_ACK) {
  70682. 801caae: 4b67 ldr r3, [pc, #412] @ (801cc4c <tcp_listen_input+0x1c8>)
  70683. 801cab0: 781b ldrb r3, [r3, #0]
  70684. 801cab2: f003 0310 and.w r3, r3, #16
  70685. 801cab6: 2b00 cmp r3, #0
  70686. 801cab8: d019 beq.n 801caee <tcp_listen_input+0x6a>
  70687. /* For incoming segments with the ACK flag set, respond with a
  70688. RST. */
  70689. LWIP_DEBUGF(TCP_RST_DEBUG, ("tcp_listen_input: ACK in LISTEN, sending reset\n"));
  70690. tcp_rst((const struct tcp_pcb *)pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  70691. 801caba: 4b68 ldr r3, [pc, #416] @ (801cc5c <tcp_listen_input+0x1d8>)
  70692. 801cabc: 6819 ldr r1, [r3, #0]
  70693. 801cabe: 4b68 ldr r3, [pc, #416] @ (801cc60 <tcp_listen_input+0x1dc>)
  70694. 801cac0: 881b ldrh r3, [r3, #0]
  70695. 801cac2: 461a mov r2, r3
  70696. 801cac4: 4b67 ldr r3, [pc, #412] @ (801cc64 <tcp_listen_input+0x1e0>)
  70697. 801cac6: 681b ldr r3, [r3, #0]
  70698. 801cac8: 18d0 adds r0, r2, r3
  70699. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  70700. 801caca: 4b67 ldr r3, [pc, #412] @ (801cc68 <tcp_listen_input+0x1e4>)
  70701. 801cacc: 681b ldr r3, [r3, #0]
  70702. tcp_rst((const struct tcp_pcb *)pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  70703. 801cace: 885b ldrh r3, [r3, #2]
  70704. 801cad0: b29b uxth r3, r3
  70705. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  70706. 801cad2: 4a65 ldr r2, [pc, #404] @ (801cc68 <tcp_listen_input+0x1e4>)
  70707. 801cad4: 6812 ldr r2, [r2, #0]
  70708. tcp_rst((const struct tcp_pcb *)pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  70709. 801cad6: 8812 ldrh r2, [r2, #0]
  70710. 801cad8: b292 uxth r2, r2
  70711. 801cada: 9202 str r2, [sp, #8]
  70712. 801cadc: 9301 str r3, [sp, #4]
  70713. 801cade: 4b63 ldr r3, [pc, #396] @ (801cc6c <tcp_listen_input+0x1e8>)
  70714. 801cae0: 9300 str r3, [sp, #0]
  70715. 801cae2: 4b63 ldr r3, [pc, #396] @ (801cc70 <tcp_listen_input+0x1ec>)
  70716. 801cae4: 4602 mov r2, r0
  70717. 801cae6: 6878 ldr r0, [r7, #4]
  70718. 801cae8: f003 fc46 bl 8020378 <tcp_rst>
  70719. tcp_abandon(npcb, 0);
  70720. return;
  70721. }
  70722. tcp_output(npcb);
  70723. }
  70724. return;
  70725. 801caec: e0a9 b.n 801cc42 <tcp_listen_input+0x1be>
  70726. } else if (flags & TCP_SYN) {
  70727. 801caee: 4b57 ldr r3, [pc, #348] @ (801cc4c <tcp_listen_input+0x1c8>)
  70728. 801caf0: 781b ldrb r3, [r3, #0]
  70729. 801caf2: f003 0302 and.w r3, r3, #2
  70730. 801caf6: 2b00 cmp r3, #0
  70731. 801caf8: f000 80a3 beq.w 801cc42 <tcp_listen_input+0x1be>
  70732. npcb = tcp_alloc(pcb->prio);
  70733. 801cafc: 687b ldr r3, [r7, #4]
  70734. 801cafe: 7d5b ldrb r3, [r3, #21]
  70735. 801cb00: 4618 mov r0, r3
  70736. 801cb02: f7ff f84d bl 801bba0 <tcp_alloc>
  70737. 801cb06: 6178 str r0, [r7, #20]
  70738. if (npcb == NULL) {
  70739. 801cb08: 697b ldr r3, [r7, #20]
  70740. 801cb0a: 2b00 cmp r3, #0
  70741. 801cb0c: d111 bne.n 801cb32 <tcp_listen_input+0xae>
  70742. TCP_EVENT_ACCEPT(pcb, NULL, pcb->callback_arg, ERR_MEM, err);
  70743. 801cb0e: 687b ldr r3, [r7, #4]
  70744. 801cb10: 699b ldr r3, [r3, #24]
  70745. 801cb12: 2b00 cmp r3, #0
  70746. 801cb14: d00a beq.n 801cb2c <tcp_listen_input+0xa8>
  70747. 801cb16: 687b ldr r3, [r7, #4]
  70748. 801cb18: 699b ldr r3, [r3, #24]
  70749. 801cb1a: 687a ldr r2, [r7, #4]
  70750. 801cb1c: 6910 ldr r0, [r2, #16]
  70751. 801cb1e: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  70752. 801cb22: 2100 movs r1, #0
  70753. 801cb24: 4798 blx r3
  70754. 801cb26: 4603 mov r3, r0
  70755. 801cb28: 73bb strb r3, [r7, #14]
  70756. return;
  70757. 801cb2a: e08b b.n 801cc44 <tcp_listen_input+0x1c0>
  70758. TCP_EVENT_ACCEPT(pcb, NULL, pcb->callback_arg, ERR_MEM, err);
  70759. 801cb2c: 23f0 movs r3, #240 @ 0xf0
  70760. 801cb2e: 73bb strb r3, [r7, #14]
  70761. return;
  70762. 801cb30: e088 b.n 801cc44 <tcp_listen_input+0x1c0>
  70763. ip_addr_copy(npcb->local_ip, *ip_current_dest_addr());
  70764. 801cb32: 4b50 ldr r3, [pc, #320] @ (801cc74 <tcp_listen_input+0x1f0>)
  70765. 801cb34: 695a ldr r2, [r3, #20]
  70766. 801cb36: 697b ldr r3, [r7, #20]
  70767. 801cb38: 601a str r2, [r3, #0]
  70768. ip_addr_copy(npcb->remote_ip, *ip_current_src_addr());
  70769. 801cb3a: 4b4e ldr r3, [pc, #312] @ (801cc74 <tcp_listen_input+0x1f0>)
  70770. 801cb3c: 691a ldr r2, [r3, #16]
  70771. 801cb3e: 697b ldr r3, [r7, #20]
  70772. 801cb40: 605a str r2, [r3, #4]
  70773. npcb->local_port = pcb->local_port;
  70774. 801cb42: 687b ldr r3, [r7, #4]
  70775. 801cb44: 8ada ldrh r2, [r3, #22]
  70776. 801cb46: 697b ldr r3, [r7, #20]
  70777. 801cb48: 82da strh r2, [r3, #22]
  70778. npcb->remote_port = tcphdr->src;
  70779. 801cb4a: 4b47 ldr r3, [pc, #284] @ (801cc68 <tcp_listen_input+0x1e4>)
  70780. 801cb4c: 681b ldr r3, [r3, #0]
  70781. 801cb4e: 881b ldrh r3, [r3, #0]
  70782. 801cb50: b29a uxth r2, r3
  70783. 801cb52: 697b ldr r3, [r7, #20]
  70784. 801cb54: 831a strh r2, [r3, #24]
  70785. npcb->state = SYN_RCVD;
  70786. 801cb56: 697b ldr r3, [r7, #20]
  70787. 801cb58: 2203 movs r2, #3
  70788. 801cb5a: 751a strb r2, [r3, #20]
  70789. npcb->rcv_nxt = seqno + 1;
  70790. 801cb5c: 4b41 ldr r3, [pc, #260] @ (801cc64 <tcp_listen_input+0x1e0>)
  70791. 801cb5e: 681b ldr r3, [r3, #0]
  70792. 801cb60: 1c5a adds r2, r3, #1
  70793. 801cb62: 697b ldr r3, [r7, #20]
  70794. 801cb64: 625a str r2, [r3, #36] @ 0x24
  70795. npcb->rcv_ann_right_edge = npcb->rcv_nxt;
  70796. 801cb66: 697b ldr r3, [r7, #20]
  70797. 801cb68: 6a5a ldr r2, [r3, #36] @ 0x24
  70798. 801cb6a: 697b ldr r3, [r7, #20]
  70799. 801cb6c: 62da str r2, [r3, #44] @ 0x2c
  70800. iss = tcp_next_iss(npcb);
  70801. 801cb6e: 6978 ldr r0, [r7, #20]
  70802. 801cb70: f7ff fa56 bl 801c020 <tcp_next_iss>
  70803. 801cb74: 6138 str r0, [r7, #16]
  70804. npcb->snd_wl2 = iss;
  70805. 801cb76: 697b ldr r3, [r7, #20]
  70806. 801cb78: 693a ldr r2, [r7, #16]
  70807. 801cb7a: 659a str r2, [r3, #88] @ 0x58
  70808. npcb->snd_nxt = iss;
  70809. 801cb7c: 697b ldr r3, [r7, #20]
  70810. 801cb7e: 693a ldr r2, [r7, #16]
  70811. 801cb80: 651a str r2, [r3, #80] @ 0x50
  70812. npcb->lastack = iss;
  70813. 801cb82: 697b ldr r3, [r7, #20]
  70814. 801cb84: 693a ldr r2, [r7, #16]
  70815. 801cb86: 645a str r2, [r3, #68] @ 0x44
  70816. npcb->snd_lbb = iss;
  70817. 801cb88: 697b ldr r3, [r7, #20]
  70818. 801cb8a: 693a ldr r2, [r7, #16]
  70819. 801cb8c: 65da str r2, [r3, #92] @ 0x5c
  70820. npcb->snd_wl1 = seqno - 1;/* initialise to seqno-1 to force window update */
  70821. 801cb8e: 4b35 ldr r3, [pc, #212] @ (801cc64 <tcp_listen_input+0x1e0>)
  70822. 801cb90: 681b ldr r3, [r3, #0]
  70823. 801cb92: 1e5a subs r2, r3, #1
  70824. 801cb94: 697b ldr r3, [r7, #20]
  70825. 801cb96: 655a str r2, [r3, #84] @ 0x54
  70826. npcb->callback_arg = pcb->callback_arg;
  70827. 801cb98: 687b ldr r3, [r7, #4]
  70828. 801cb9a: 691a ldr r2, [r3, #16]
  70829. 801cb9c: 697b ldr r3, [r7, #20]
  70830. 801cb9e: 611a str r2, [r3, #16]
  70831. npcb->listener = pcb;
  70832. 801cba0: 697b ldr r3, [r7, #20]
  70833. 801cba2: 687a ldr r2, [r7, #4]
  70834. 801cba4: 67da str r2, [r3, #124] @ 0x7c
  70835. npcb->so_options = pcb->so_options & SOF_INHERITED;
  70836. 801cba6: 687b ldr r3, [r7, #4]
  70837. 801cba8: 7a5b ldrb r3, [r3, #9]
  70838. 801cbaa: f003 030c and.w r3, r3, #12
  70839. 801cbae: b2da uxtb r2, r3
  70840. 801cbb0: 697b ldr r3, [r7, #20]
  70841. 801cbb2: 725a strb r2, [r3, #9]
  70842. npcb->netif_idx = pcb->netif_idx;
  70843. 801cbb4: 687b ldr r3, [r7, #4]
  70844. 801cbb6: 7a1a ldrb r2, [r3, #8]
  70845. 801cbb8: 697b ldr r3, [r7, #20]
  70846. 801cbba: 721a strb r2, [r3, #8]
  70847. TCP_REG_ACTIVE(npcb);
  70848. 801cbbc: 4b2e ldr r3, [pc, #184] @ (801cc78 <tcp_listen_input+0x1f4>)
  70849. 801cbbe: 681a ldr r2, [r3, #0]
  70850. 801cbc0: 697b ldr r3, [r7, #20]
  70851. 801cbc2: 60da str r2, [r3, #12]
  70852. 801cbc4: 4a2c ldr r2, [pc, #176] @ (801cc78 <tcp_listen_input+0x1f4>)
  70853. 801cbc6: 697b ldr r3, [r7, #20]
  70854. 801cbc8: 6013 str r3, [r2, #0]
  70855. 801cbca: f003 fd97 bl 80206fc <tcp_timer_needed>
  70856. 801cbce: 4b2b ldr r3, [pc, #172] @ (801cc7c <tcp_listen_input+0x1f8>)
  70857. 801cbd0: 2201 movs r2, #1
  70858. 801cbd2: 701a strb r2, [r3, #0]
  70859. tcp_parseopt(npcb);
  70860. 801cbd4: 6978 ldr r0, [r7, #20]
  70861. 801cbd6: f001 fd8b bl 801e6f0 <tcp_parseopt>
  70862. npcb->snd_wnd = tcphdr->wnd;
  70863. 801cbda: 4b23 ldr r3, [pc, #140] @ (801cc68 <tcp_listen_input+0x1e4>)
  70864. 801cbdc: 681b ldr r3, [r3, #0]
  70865. 801cbde: 89db ldrh r3, [r3, #14]
  70866. 801cbe0: b29a uxth r2, r3
  70867. 801cbe2: 697b ldr r3, [r7, #20]
  70868. 801cbe4: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  70869. npcb->snd_wnd_max = npcb->snd_wnd;
  70870. 801cbe8: 697b ldr r3, [r7, #20]
  70871. 801cbea: f8b3 2060 ldrh.w r2, [r3, #96] @ 0x60
  70872. 801cbee: 697b ldr r3, [r7, #20]
  70873. 801cbf0: f8a3 2062 strh.w r2, [r3, #98] @ 0x62
  70874. npcb->mss = tcp_eff_send_mss(npcb->mss, &npcb->local_ip, &npcb->remote_ip);
  70875. 801cbf4: 697b ldr r3, [r7, #20]
  70876. 801cbf6: 8e5c ldrh r4, [r3, #50] @ 0x32
  70877. 801cbf8: 697b ldr r3, [r7, #20]
  70878. 801cbfa: 3304 adds r3, #4
  70879. 801cbfc: 4618 mov r0, r3
  70880. 801cbfe: f007 fc77 bl 80244f0 <ip4_route>
  70881. 801cc02: 4601 mov r1, r0
  70882. 801cc04: 697b ldr r3, [r7, #20]
  70883. 801cc06: 3304 adds r3, #4
  70884. 801cc08: 461a mov r2, r3
  70885. 801cc0a: 4620 mov r0, r4
  70886. 801cc0c: f7ff fa2e bl 801c06c <tcp_eff_send_mss_netif>
  70887. 801cc10: 4603 mov r3, r0
  70888. 801cc12: 461a mov r2, r3
  70889. 801cc14: 697b ldr r3, [r7, #20]
  70890. 801cc16: 865a strh r2, [r3, #50] @ 0x32
  70891. rc = tcp_enqueue_flags(npcb, TCP_SYN | TCP_ACK);
  70892. 801cc18: 2112 movs r1, #18
  70893. 801cc1a: 6978 ldr r0, [r7, #20]
  70894. 801cc1c: f002 fcfc bl 801f618 <tcp_enqueue_flags>
  70895. 801cc20: 4603 mov r3, r0
  70896. 801cc22: 73fb strb r3, [r7, #15]
  70897. if (rc != ERR_OK) {
  70898. 801cc24: f997 300f ldrsb.w r3, [r7, #15]
  70899. 801cc28: 2b00 cmp r3, #0
  70900. 801cc2a: d004 beq.n 801cc36 <tcp_listen_input+0x1b2>
  70901. tcp_abandon(npcb, 0);
  70902. 801cc2c: 2100 movs r1, #0
  70903. 801cc2e: 6978 ldr r0, [r7, #20]
  70904. 801cc30: f7fd ff3a bl 801aaa8 <tcp_abandon>
  70905. return;
  70906. 801cc34: e006 b.n 801cc44 <tcp_listen_input+0x1c0>
  70907. tcp_output(npcb);
  70908. 801cc36: 6978 ldr r0, [r7, #20]
  70909. 801cc38: f002 fddc bl 801f7f4 <tcp_output>
  70910. return;
  70911. 801cc3c: e001 b.n 801cc42 <tcp_listen_input+0x1be>
  70912. return;
  70913. 801cc3e: bf00 nop
  70914. 801cc40: e000 b.n 801cc44 <tcp_listen_input+0x1c0>
  70915. return;
  70916. 801cc42: bf00 nop
  70917. }
  70918. 801cc44: 371c adds r7, #28
  70919. 801cc46: 46bd mov sp, r7
  70920. 801cc48: bd90 pop {r4, r7, pc}
  70921. 801cc4a: bf00 nop
  70922. 801cc4c: 2402a034 .word 0x2402a034
  70923. 801cc50: 0802e8a4 .word 0x0802e8a4
  70924. 801cc54: 0802ea9c .word 0x0802ea9c
  70925. 801cc58: 0802e8f0 .word 0x0802e8f0
  70926. 801cc5c: 2402a02c .word 0x2402a02c
  70927. 801cc60: 2402a032 .word 0x2402a032
  70928. 801cc64: 2402a028 .word 0x2402a028
  70929. 801cc68: 2402a018 .word 0x2402a018
  70930. 801cc6c: 240234ac .word 0x240234ac
  70931. 801cc70: 240234b0 .word 0x240234b0
  70932. 801cc74: 2402349c .word 0x2402349c
  70933. 801cc78: 24029ff8 .word 0x24029ff8
  70934. 801cc7c: 2402a000 .word 0x2402a000
  70935. 0801cc80 <tcp_timewait_input>:
  70936. * @note the segment which arrived is saved in global variables, therefore only the pcb
  70937. * involved is passed as a parameter to this function
  70938. */
  70939. static void
  70940. tcp_timewait_input(struct tcp_pcb *pcb)
  70941. {
  70942. 801cc80: b580 push {r7, lr}
  70943. 801cc82: b086 sub sp, #24
  70944. 801cc84: af04 add r7, sp, #16
  70945. 801cc86: 6078 str r0, [r7, #4]
  70946. /* RFC 1337: in TIME_WAIT, ignore RST and ACK FINs + any 'acceptable' segments */
  70947. /* RFC 793 3.9 Event Processing - Segment Arrives:
  70948. * - first check sequence number - we skip that one in TIME_WAIT (always
  70949. * acceptable since we only send ACKs)
  70950. * - second check the RST bit (... return) */
  70951. if (flags & TCP_RST) {
  70952. 801cc88: 4b2f ldr r3, [pc, #188] @ (801cd48 <tcp_timewait_input+0xc8>)
  70953. 801cc8a: 781b ldrb r3, [r3, #0]
  70954. 801cc8c: f003 0304 and.w r3, r3, #4
  70955. 801cc90: 2b00 cmp r3, #0
  70956. 801cc92: d153 bne.n 801cd3c <tcp_timewait_input+0xbc>
  70957. return;
  70958. }
  70959. LWIP_ASSERT("tcp_timewait_input: invalid pcb", pcb != NULL);
  70960. 801cc94: 687b ldr r3, [r7, #4]
  70961. 801cc96: 2b00 cmp r3, #0
  70962. 801cc98: d106 bne.n 801cca8 <tcp_timewait_input+0x28>
  70963. 801cc9a: 4b2c ldr r3, [pc, #176] @ (801cd4c <tcp_timewait_input+0xcc>)
  70964. 801cc9c: f240 22ee movw r2, #750 @ 0x2ee
  70965. 801cca0: 492b ldr r1, [pc, #172] @ (801cd50 <tcp_timewait_input+0xd0>)
  70966. 801cca2: 482c ldr r0, [pc, #176] @ (801cd54 <tcp_timewait_input+0xd4>)
  70967. 801cca4: f00c fc32 bl 802950c <iprintf>
  70968. /* - fourth, check the SYN bit, */
  70969. if (flags & TCP_SYN) {
  70970. 801cca8: 4b27 ldr r3, [pc, #156] @ (801cd48 <tcp_timewait_input+0xc8>)
  70971. 801ccaa: 781b ldrb r3, [r3, #0]
  70972. 801ccac: f003 0302 and.w r3, r3, #2
  70973. 801ccb0: 2b00 cmp r3, #0
  70974. 801ccb2: d02a beq.n 801cd0a <tcp_timewait_input+0x8a>
  70975. /* If an incoming segment is not acceptable, an acknowledgment
  70976. should be sent in reply */
  70977. if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt, pcb->rcv_nxt + pcb->rcv_wnd)) {
  70978. 801ccb4: 4b28 ldr r3, [pc, #160] @ (801cd58 <tcp_timewait_input+0xd8>)
  70979. 801ccb6: 681a ldr r2, [r3, #0]
  70980. 801ccb8: 687b ldr r3, [r7, #4]
  70981. 801ccba: 6a5b ldr r3, [r3, #36] @ 0x24
  70982. 801ccbc: 1ad3 subs r3, r2, r3
  70983. 801ccbe: 2b00 cmp r3, #0
  70984. 801ccc0: db2d blt.n 801cd1e <tcp_timewait_input+0x9e>
  70985. 801ccc2: 4b25 ldr r3, [pc, #148] @ (801cd58 <tcp_timewait_input+0xd8>)
  70986. 801ccc4: 681a ldr r2, [r3, #0]
  70987. 801ccc6: 687b ldr r3, [r7, #4]
  70988. 801ccc8: 6a5b ldr r3, [r3, #36] @ 0x24
  70989. 801ccca: 6879 ldr r1, [r7, #4]
  70990. 801cccc: 8d09 ldrh r1, [r1, #40] @ 0x28
  70991. 801ccce: 440b add r3, r1
  70992. 801ccd0: 1ad3 subs r3, r2, r3
  70993. 801ccd2: 2b00 cmp r3, #0
  70994. 801ccd4: dc23 bgt.n 801cd1e <tcp_timewait_input+0x9e>
  70995. /* If the SYN is in the window it is an error, send a reset */
  70996. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  70997. 801ccd6: 4b21 ldr r3, [pc, #132] @ (801cd5c <tcp_timewait_input+0xdc>)
  70998. 801ccd8: 6819 ldr r1, [r3, #0]
  70999. 801ccda: 4b21 ldr r3, [pc, #132] @ (801cd60 <tcp_timewait_input+0xe0>)
  71000. 801ccdc: 881b ldrh r3, [r3, #0]
  71001. 801ccde: 461a mov r2, r3
  71002. 801cce0: 4b1d ldr r3, [pc, #116] @ (801cd58 <tcp_timewait_input+0xd8>)
  71003. 801cce2: 681b ldr r3, [r3, #0]
  71004. 801cce4: 18d0 adds r0, r2, r3
  71005. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  71006. 801cce6: 4b1f ldr r3, [pc, #124] @ (801cd64 <tcp_timewait_input+0xe4>)
  71007. 801cce8: 681b ldr r3, [r3, #0]
  71008. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  71009. 801ccea: 885b ldrh r3, [r3, #2]
  71010. 801ccec: b29b uxth r3, r3
  71011. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  71012. 801ccee: 4a1d ldr r2, [pc, #116] @ (801cd64 <tcp_timewait_input+0xe4>)
  71013. 801ccf0: 6812 ldr r2, [r2, #0]
  71014. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  71015. 801ccf2: 8812 ldrh r2, [r2, #0]
  71016. 801ccf4: b292 uxth r2, r2
  71017. 801ccf6: 9202 str r2, [sp, #8]
  71018. 801ccf8: 9301 str r3, [sp, #4]
  71019. 801ccfa: 4b1b ldr r3, [pc, #108] @ (801cd68 <tcp_timewait_input+0xe8>)
  71020. 801ccfc: 9300 str r3, [sp, #0]
  71021. 801ccfe: 4b1b ldr r3, [pc, #108] @ (801cd6c <tcp_timewait_input+0xec>)
  71022. 801cd00: 4602 mov r2, r0
  71023. 801cd02: 6878 ldr r0, [r7, #4]
  71024. 801cd04: f003 fb38 bl 8020378 <tcp_rst>
  71025. return;
  71026. 801cd08: e01b b.n 801cd42 <tcp_timewait_input+0xc2>
  71027. }
  71028. } else if (flags & TCP_FIN) {
  71029. 801cd0a: 4b0f ldr r3, [pc, #60] @ (801cd48 <tcp_timewait_input+0xc8>)
  71030. 801cd0c: 781b ldrb r3, [r3, #0]
  71031. 801cd0e: f003 0301 and.w r3, r3, #1
  71032. 801cd12: 2b00 cmp r3, #0
  71033. 801cd14: d003 beq.n 801cd1e <tcp_timewait_input+0x9e>
  71034. /* - eighth, check the FIN bit: Remain in the TIME-WAIT state.
  71035. Restart the 2 MSL time-wait timeout.*/
  71036. pcb->tmr = tcp_ticks;
  71037. 801cd16: 4b16 ldr r3, [pc, #88] @ (801cd70 <tcp_timewait_input+0xf0>)
  71038. 801cd18: 681a ldr r2, [r3, #0]
  71039. 801cd1a: 687b ldr r3, [r7, #4]
  71040. 801cd1c: 621a str r2, [r3, #32]
  71041. }
  71042. if ((tcplen > 0)) {
  71043. 801cd1e: 4b10 ldr r3, [pc, #64] @ (801cd60 <tcp_timewait_input+0xe0>)
  71044. 801cd20: 881b ldrh r3, [r3, #0]
  71045. 801cd22: 2b00 cmp r3, #0
  71046. 801cd24: d00c beq.n 801cd40 <tcp_timewait_input+0xc0>
  71047. /* Acknowledge data, FIN or out-of-window SYN */
  71048. tcp_ack_now(pcb);
  71049. 801cd26: 687b ldr r3, [r7, #4]
  71050. 801cd28: 8b5b ldrh r3, [r3, #26]
  71051. 801cd2a: f043 0302 orr.w r3, r3, #2
  71052. 801cd2e: b29a uxth r2, r3
  71053. 801cd30: 687b ldr r3, [r7, #4]
  71054. 801cd32: 835a strh r2, [r3, #26]
  71055. tcp_output(pcb);
  71056. 801cd34: 6878 ldr r0, [r7, #4]
  71057. 801cd36: f002 fd5d bl 801f7f4 <tcp_output>
  71058. }
  71059. return;
  71060. 801cd3a: e001 b.n 801cd40 <tcp_timewait_input+0xc0>
  71061. return;
  71062. 801cd3c: bf00 nop
  71063. 801cd3e: e000 b.n 801cd42 <tcp_timewait_input+0xc2>
  71064. return;
  71065. 801cd40: bf00 nop
  71066. }
  71067. 801cd42: 3708 adds r7, #8
  71068. 801cd44: 46bd mov sp, r7
  71069. 801cd46: bd80 pop {r7, pc}
  71070. 801cd48: 2402a034 .word 0x2402a034
  71071. 801cd4c: 0802e8a4 .word 0x0802e8a4
  71072. 801cd50: 0802eabc .word 0x0802eabc
  71073. 801cd54: 0802e8f0 .word 0x0802e8f0
  71074. 801cd58: 2402a028 .word 0x2402a028
  71075. 801cd5c: 2402a02c .word 0x2402a02c
  71076. 801cd60: 2402a032 .word 0x2402a032
  71077. 801cd64: 2402a018 .word 0x2402a018
  71078. 801cd68: 240234ac .word 0x240234ac
  71079. 801cd6c: 240234b0 .word 0x240234b0
  71080. 801cd70: 24029fec .word 0x24029fec
  71081. 0801cd74 <tcp_process>:
  71082. * @note the segment which arrived is saved in global variables, therefore only the pcb
  71083. * involved is passed as a parameter to this function
  71084. */
  71085. static err_t
  71086. tcp_process(struct tcp_pcb *pcb)
  71087. {
  71088. 801cd74: b590 push {r4, r7, lr}
  71089. 801cd76: b08d sub sp, #52 @ 0x34
  71090. 801cd78: af04 add r7, sp, #16
  71091. 801cd7a: 6078 str r0, [r7, #4]
  71092. struct tcp_seg *rseg;
  71093. u8_t acceptable = 0;
  71094. 801cd7c: 2300 movs r3, #0
  71095. 801cd7e: 77fb strb r3, [r7, #31]
  71096. err_t err;
  71097. err = ERR_OK;
  71098. 801cd80: 2300 movs r3, #0
  71099. 801cd82: 77bb strb r3, [r7, #30]
  71100. LWIP_ASSERT("tcp_process: invalid pcb", pcb != NULL);
  71101. 801cd84: 687b ldr r3, [r7, #4]
  71102. 801cd86: 2b00 cmp r3, #0
  71103. 801cd88: d106 bne.n 801cd98 <tcp_process+0x24>
  71104. 801cd8a: 4b9d ldr r3, [pc, #628] @ (801d000 <tcp_process+0x28c>)
  71105. 801cd8c: f44f 7247 mov.w r2, #796 @ 0x31c
  71106. 801cd90: 499c ldr r1, [pc, #624] @ (801d004 <tcp_process+0x290>)
  71107. 801cd92: 489d ldr r0, [pc, #628] @ (801d008 <tcp_process+0x294>)
  71108. 801cd94: f00c fbba bl 802950c <iprintf>
  71109. /* Process incoming RST segments. */
  71110. if (flags & TCP_RST) {
  71111. 801cd98: 4b9c ldr r3, [pc, #624] @ (801d00c <tcp_process+0x298>)
  71112. 801cd9a: 781b ldrb r3, [r3, #0]
  71113. 801cd9c: f003 0304 and.w r3, r3, #4
  71114. 801cda0: 2b00 cmp r3, #0
  71115. 801cda2: d04e beq.n 801ce42 <tcp_process+0xce>
  71116. /* First, determine if the reset is acceptable. */
  71117. if (pcb->state == SYN_SENT) {
  71118. 801cda4: 687b ldr r3, [r7, #4]
  71119. 801cda6: 7d1b ldrb r3, [r3, #20]
  71120. 801cda8: 2b02 cmp r3, #2
  71121. 801cdaa: d108 bne.n 801cdbe <tcp_process+0x4a>
  71122. /* "In the SYN-SENT state (a RST received in response to an initial SYN),
  71123. the RST is acceptable if the ACK field acknowledges the SYN." */
  71124. if (ackno == pcb->snd_nxt) {
  71125. 801cdac: 687b ldr r3, [r7, #4]
  71126. 801cdae: 6d1a ldr r2, [r3, #80] @ 0x50
  71127. 801cdb0: 4b97 ldr r3, [pc, #604] @ (801d010 <tcp_process+0x29c>)
  71128. 801cdb2: 681b ldr r3, [r3, #0]
  71129. 801cdb4: 429a cmp r2, r3
  71130. 801cdb6: d123 bne.n 801ce00 <tcp_process+0x8c>
  71131. acceptable = 1;
  71132. 801cdb8: 2301 movs r3, #1
  71133. 801cdba: 77fb strb r3, [r7, #31]
  71134. 801cdbc: e020 b.n 801ce00 <tcp_process+0x8c>
  71135. }
  71136. } else {
  71137. /* "In all states except SYN-SENT, all reset (RST) segments are validated
  71138. by checking their SEQ-fields." */
  71139. if (seqno == pcb->rcv_nxt) {
  71140. 801cdbe: 687b ldr r3, [r7, #4]
  71141. 801cdc0: 6a5a ldr r2, [r3, #36] @ 0x24
  71142. 801cdc2: 4b94 ldr r3, [pc, #592] @ (801d014 <tcp_process+0x2a0>)
  71143. 801cdc4: 681b ldr r3, [r3, #0]
  71144. 801cdc6: 429a cmp r2, r3
  71145. 801cdc8: d102 bne.n 801cdd0 <tcp_process+0x5c>
  71146. acceptable = 1;
  71147. 801cdca: 2301 movs r3, #1
  71148. 801cdcc: 77fb strb r3, [r7, #31]
  71149. 801cdce: e017 b.n 801ce00 <tcp_process+0x8c>
  71150. } else if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt,
  71151. 801cdd0: 4b90 ldr r3, [pc, #576] @ (801d014 <tcp_process+0x2a0>)
  71152. 801cdd2: 681a ldr r2, [r3, #0]
  71153. 801cdd4: 687b ldr r3, [r7, #4]
  71154. 801cdd6: 6a5b ldr r3, [r3, #36] @ 0x24
  71155. 801cdd8: 1ad3 subs r3, r2, r3
  71156. 801cdda: 2b00 cmp r3, #0
  71157. 801cddc: db10 blt.n 801ce00 <tcp_process+0x8c>
  71158. 801cdde: 4b8d ldr r3, [pc, #564] @ (801d014 <tcp_process+0x2a0>)
  71159. 801cde0: 681a ldr r2, [r3, #0]
  71160. 801cde2: 687b ldr r3, [r7, #4]
  71161. 801cde4: 6a5b ldr r3, [r3, #36] @ 0x24
  71162. 801cde6: 6879 ldr r1, [r7, #4]
  71163. 801cde8: 8d09 ldrh r1, [r1, #40] @ 0x28
  71164. 801cdea: 440b add r3, r1
  71165. 801cdec: 1ad3 subs r3, r2, r3
  71166. 801cdee: 2b00 cmp r3, #0
  71167. 801cdf0: dc06 bgt.n 801ce00 <tcp_process+0x8c>
  71168. pcb->rcv_nxt + pcb->rcv_wnd)) {
  71169. /* If the sequence number is inside the window, we send a challenge ACK
  71170. and wait for a re-send with matching sequence number.
  71171. This follows RFC 5961 section 3.2 and addresses CVE-2004-0230
  71172. (RST spoofing attack), which is present in RFC 793 RST handling. */
  71173. tcp_ack_now(pcb);
  71174. 801cdf2: 687b ldr r3, [r7, #4]
  71175. 801cdf4: 8b5b ldrh r3, [r3, #26]
  71176. 801cdf6: f043 0302 orr.w r3, r3, #2
  71177. 801cdfa: b29a uxth r2, r3
  71178. 801cdfc: 687b ldr r3, [r7, #4]
  71179. 801cdfe: 835a strh r2, [r3, #26]
  71180. }
  71181. }
  71182. if (acceptable) {
  71183. 801ce00: 7ffb ldrb r3, [r7, #31]
  71184. 801ce02: 2b00 cmp r3, #0
  71185. 801ce04: d01b beq.n 801ce3e <tcp_process+0xca>
  71186. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_process: Connection RESET\n"));
  71187. LWIP_ASSERT("tcp_input: pcb->state != CLOSED", pcb->state != CLOSED);
  71188. 801ce06: 687b ldr r3, [r7, #4]
  71189. 801ce08: 7d1b ldrb r3, [r3, #20]
  71190. 801ce0a: 2b00 cmp r3, #0
  71191. 801ce0c: d106 bne.n 801ce1c <tcp_process+0xa8>
  71192. 801ce0e: 4b7c ldr r3, [pc, #496] @ (801d000 <tcp_process+0x28c>)
  71193. 801ce10: f44f 724e mov.w r2, #824 @ 0x338
  71194. 801ce14: 4980 ldr r1, [pc, #512] @ (801d018 <tcp_process+0x2a4>)
  71195. 801ce16: 487c ldr r0, [pc, #496] @ (801d008 <tcp_process+0x294>)
  71196. 801ce18: f00c fb78 bl 802950c <iprintf>
  71197. recv_flags |= TF_RESET;
  71198. 801ce1c: 4b7f ldr r3, [pc, #508] @ (801d01c <tcp_process+0x2a8>)
  71199. 801ce1e: 781b ldrb r3, [r3, #0]
  71200. 801ce20: f043 0308 orr.w r3, r3, #8
  71201. 801ce24: b2da uxtb r2, r3
  71202. 801ce26: 4b7d ldr r3, [pc, #500] @ (801d01c <tcp_process+0x2a8>)
  71203. 801ce28: 701a strb r2, [r3, #0]
  71204. tcp_clear_flags(pcb, TF_ACK_DELAY);
  71205. 801ce2a: 687b ldr r3, [r7, #4]
  71206. 801ce2c: 8b5b ldrh r3, [r3, #26]
  71207. 801ce2e: f023 0301 bic.w r3, r3, #1
  71208. 801ce32: b29a uxth r2, r3
  71209. 801ce34: 687b ldr r3, [r7, #4]
  71210. 801ce36: 835a strh r2, [r3, #26]
  71211. return ERR_RST;
  71212. 801ce38: f06f 030d mvn.w r3, #13
  71213. 801ce3c: e37a b.n 801d534 <tcp_process+0x7c0>
  71214. } else {
  71215. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_process: unacceptable reset seqno %"U32_F" rcv_nxt %"U32_F"\n",
  71216. seqno, pcb->rcv_nxt));
  71217. LWIP_DEBUGF(TCP_DEBUG, ("tcp_process: unacceptable reset seqno %"U32_F" rcv_nxt %"U32_F"\n",
  71218. seqno, pcb->rcv_nxt));
  71219. return ERR_OK;
  71220. 801ce3e: 2300 movs r3, #0
  71221. 801ce40: e378 b.n 801d534 <tcp_process+0x7c0>
  71222. }
  71223. }
  71224. if ((flags & TCP_SYN) && (pcb->state != SYN_SENT && pcb->state != SYN_RCVD)) {
  71225. 801ce42: 4b72 ldr r3, [pc, #456] @ (801d00c <tcp_process+0x298>)
  71226. 801ce44: 781b ldrb r3, [r3, #0]
  71227. 801ce46: f003 0302 and.w r3, r3, #2
  71228. 801ce4a: 2b00 cmp r3, #0
  71229. 801ce4c: d010 beq.n 801ce70 <tcp_process+0xfc>
  71230. 801ce4e: 687b ldr r3, [r7, #4]
  71231. 801ce50: 7d1b ldrb r3, [r3, #20]
  71232. 801ce52: 2b02 cmp r3, #2
  71233. 801ce54: d00c beq.n 801ce70 <tcp_process+0xfc>
  71234. 801ce56: 687b ldr r3, [r7, #4]
  71235. 801ce58: 7d1b ldrb r3, [r3, #20]
  71236. 801ce5a: 2b03 cmp r3, #3
  71237. 801ce5c: d008 beq.n 801ce70 <tcp_process+0xfc>
  71238. /* Cope with new connection attempt after remote end crashed */
  71239. tcp_ack_now(pcb);
  71240. 801ce5e: 687b ldr r3, [r7, #4]
  71241. 801ce60: 8b5b ldrh r3, [r3, #26]
  71242. 801ce62: f043 0302 orr.w r3, r3, #2
  71243. 801ce66: b29a uxth r2, r3
  71244. 801ce68: 687b ldr r3, [r7, #4]
  71245. 801ce6a: 835a strh r2, [r3, #26]
  71246. return ERR_OK;
  71247. 801ce6c: 2300 movs r3, #0
  71248. 801ce6e: e361 b.n 801d534 <tcp_process+0x7c0>
  71249. }
  71250. if ((pcb->flags & TF_RXCLOSED) == 0) {
  71251. 801ce70: 687b ldr r3, [r7, #4]
  71252. 801ce72: 8b5b ldrh r3, [r3, #26]
  71253. 801ce74: f003 0310 and.w r3, r3, #16
  71254. 801ce78: 2b00 cmp r3, #0
  71255. 801ce7a: d103 bne.n 801ce84 <tcp_process+0x110>
  71256. /* Update the PCB (in)activity timer unless rx is closed (see tcp_shutdown) */
  71257. pcb->tmr = tcp_ticks;
  71258. 801ce7c: 4b68 ldr r3, [pc, #416] @ (801d020 <tcp_process+0x2ac>)
  71259. 801ce7e: 681a ldr r2, [r3, #0]
  71260. 801ce80: 687b ldr r3, [r7, #4]
  71261. 801ce82: 621a str r2, [r3, #32]
  71262. }
  71263. pcb->keep_cnt_sent = 0;
  71264. 801ce84: 687b ldr r3, [r7, #4]
  71265. 801ce86: 2200 movs r2, #0
  71266. 801ce88: f883 209b strb.w r2, [r3, #155] @ 0x9b
  71267. pcb->persist_probe = 0;
  71268. 801ce8c: 687b ldr r3, [r7, #4]
  71269. 801ce8e: 2200 movs r2, #0
  71270. 801ce90: f883 209a strb.w r2, [r3, #154] @ 0x9a
  71271. tcp_parseopt(pcb);
  71272. 801ce94: 6878 ldr r0, [r7, #4]
  71273. 801ce96: f001 fc2b bl 801e6f0 <tcp_parseopt>
  71274. /* Do different things depending on the TCP state. */
  71275. switch (pcb->state) {
  71276. 801ce9a: 687b ldr r3, [r7, #4]
  71277. 801ce9c: 7d1b ldrb r3, [r3, #20]
  71278. 801ce9e: 3b02 subs r3, #2
  71279. 801cea0: 2b07 cmp r3, #7
  71280. 801cea2: f200 8337 bhi.w 801d514 <tcp_process+0x7a0>
  71281. 801cea6: a201 add r2, pc, #4 @ (adr r2, 801ceac <tcp_process+0x138>)
  71282. 801cea8: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  71283. 801ceac: 0801cecd .word 0x0801cecd
  71284. 801ceb0: 0801d0fd .word 0x0801d0fd
  71285. 801ceb4: 0801d275 .word 0x0801d275
  71286. 801ceb8: 0801d29f .word 0x0801d29f
  71287. 801cebc: 0801d3c3 .word 0x0801d3c3
  71288. 801cec0: 0801d275 .word 0x0801d275
  71289. 801cec4: 0801d44f .word 0x0801d44f
  71290. 801cec8: 0801d4df .word 0x0801d4df
  71291. case SYN_SENT:
  71292. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("SYN-SENT: ackno %"U32_F" pcb->snd_nxt %"U32_F" unacked %"U32_F"\n", ackno,
  71293. pcb->snd_nxt, lwip_ntohl(pcb->unacked->tcphdr->seqno)));
  71294. /* received SYN ACK with expected sequence number? */
  71295. if ((flags & TCP_ACK) && (flags & TCP_SYN)
  71296. 801cecc: 4b4f ldr r3, [pc, #316] @ (801d00c <tcp_process+0x298>)
  71297. 801cece: 781b ldrb r3, [r3, #0]
  71298. 801ced0: f003 0310 and.w r3, r3, #16
  71299. 801ced4: 2b00 cmp r3, #0
  71300. 801ced6: f000 80e4 beq.w 801d0a2 <tcp_process+0x32e>
  71301. 801ceda: 4b4c ldr r3, [pc, #304] @ (801d00c <tcp_process+0x298>)
  71302. 801cedc: 781b ldrb r3, [r3, #0]
  71303. 801cede: f003 0302 and.w r3, r3, #2
  71304. 801cee2: 2b00 cmp r3, #0
  71305. 801cee4: f000 80dd beq.w 801d0a2 <tcp_process+0x32e>
  71306. && (ackno == pcb->lastack + 1)) {
  71307. 801cee8: 687b ldr r3, [r7, #4]
  71308. 801ceea: 6c5b ldr r3, [r3, #68] @ 0x44
  71309. 801ceec: 1c5a adds r2, r3, #1
  71310. 801ceee: 4b48 ldr r3, [pc, #288] @ (801d010 <tcp_process+0x29c>)
  71311. 801cef0: 681b ldr r3, [r3, #0]
  71312. 801cef2: 429a cmp r2, r3
  71313. 801cef4: f040 80d5 bne.w 801d0a2 <tcp_process+0x32e>
  71314. pcb->rcv_nxt = seqno + 1;
  71315. 801cef8: 4b46 ldr r3, [pc, #280] @ (801d014 <tcp_process+0x2a0>)
  71316. 801cefa: 681b ldr r3, [r3, #0]
  71317. 801cefc: 1c5a adds r2, r3, #1
  71318. 801cefe: 687b ldr r3, [r7, #4]
  71319. 801cf00: 625a str r2, [r3, #36] @ 0x24
  71320. pcb->rcv_ann_right_edge = pcb->rcv_nxt;
  71321. 801cf02: 687b ldr r3, [r7, #4]
  71322. 801cf04: 6a5a ldr r2, [r3, #36] @ 0x24
  71323. 801cf06: 687b ldr r3, [r7, #4]
  71324. 801cf08: 62da str r2, [r3, #44] @ 0x2c
  71325. pcb->lastack = ackno;
  71326. 801cf0a: 4b41 ldr r3, [pc, #260] @ (801d010 <tcp_process+0x29c>)
  71327. 801cf0c: 681a ldr r2, [r3, #0]
  71328. 801cf0e: 687b ldr r3, [r7, #4]
  71329. 801cf10: 645a str r2, [r3, #68] @ 0x44
  71330. pcb->snd_wnd = tcphdr->wnd;
  71331. 801cf12: 4b44 ldr r3, [pc, #272] @ (801d024 <tcp_process+0x2b0>)
  71332. 801cf14: 681b ldr r3, [r3, #0]
  71333. 801cf16: 89db ldrh r3, [r3, #14]
  71334. 801cf18: b29a uxth r2, r3
  71335. 801cf1a: 687b ldr r3, [r7, #4]
  71336. 801cf1c: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  71337. pcb->snd_wnd_max = pcb->snd_wnd;
  71338. 801cf20: 687b ldr r3, [r7, #4]
  71339. 801cf22: f8b3 2060 ldrh.w r2, [r3, #96] @ 0x60
  71340. 801cf26: 687b ldr r3, [r7, #4]
  71341. 801cf28: f8a3 2062 strh.w r2, [r3, #98] @ 0x62
  71342. pcb->snd_wl1 = seqno - 1; /* initialise to seqno - 1 to force window update */
  71343. 801cf2c: 4b39 ldr r3, [pc, #228] @ (801d014 <tcp_process+0x2a0>)
  71344. 801cf2e: 681b ldr r3, [r3, #0]
  71345. 801cf30: 1e5a subs r2, r3, #1
  71346. 801cf32: 687b ldr r3, [r7, #4]
  71347. 801cf34: 655a str r2, [r3, #84] @ 0x54
  71348. pcb->state = ESTABLISHED;
  71349. 801cf36: 687b ldr r3, [r7, #4]
  71350. 801cf38: 2204 movs r2, #4
  71351. 801cf3a: 751a strb r2, [r3, #20]
  71352. #if TCP_CALCULATE_EFF_SEND_MSS
  71353. pcb->mss = tcp_eff_send_mss(pcb->mss, &pcb->local_ip, &pcb->remote_ip);
  71354. 801cf3c: 687b ldr r3, [r7, #4]
  71355. 801cf3e: 8e5c ldrh r4, [r3, #50] @ 0x32
  71356. 801cf40: 687b ldr r3, [r7, #4]
  71357. 801cf42: 3304 adds r3, #4
  71358. 801cf44: 4618 mov r0, r3
  71359. 801cf46: f007 fad3 bl 80244f0 <ip4_route>
  71360. 801cf4a: 4601 mov r1, r0
  71361. 801cf4c: 687b ldr r3, [r7, #4]
  71362. 801cf4e: 3304 adds r3, #4
  71363. 801cf50: 461a mov r2, r3
  71364. 801cf52: 4620 mov r0, r4
  71365. 801cf54: f7ff f88a bl 801c06c <tcp_eff_send_mss_netif>
  71366. 801cf58: 4603 mov r3, r0
  71367. 801cf5a: 461a mov r2, r3
  71368. 801cf5c: 687b ldr r3, [r7, #4]
  71369. 801cf5e: 865a strh r2, [r3, #50] @ 0x32
  71370. #endif /* TCP_CALCULATE_EFF_SEND_MSS */
  71371. pcb->cwnd = LWIP_TCP_CALC_INITIAL_CWND(pcb->mss);
  71372. 801cf60: 687b ldr r3, [r7, #4]
  71373. 801cf62: 8e5b ldrh r3, [r3, #50] @ 0x32
  71374. 801cf64: 009a lsls r2, r3, #2
  71375. 801cf66: 687b ldr r3, [r7, #4]
  71376. 801cf68: 8e5b ldrh r3, [r3, #50] @ 0x32
  71377. 801cf6a: 005b lsls r3, r3, #1
  71378. 801cf6c: f241 111c movw r1, #4380 @ 0x111c
  71379. 801cf70: 428b cmp r3, r1
  71380. 801cf72: bf38 it cc
  71381. 801cf74: 460b movcc r3, r1
  71382. 801cf76: 429a cmp r2, r3
  71383. 801cf78: d204 bcs.n 801cf84 <tcp_process+0x210>
  71384. 801cf7a: 687b ldr r3, [r7, #4]
  71385. 801cf7c: 8e5b ldrh r3, [r3, #50] @ 0x32
  71386. 801cf7e: 009b lsls r3, r3, #2
  71387. 801cf80: b29b uxth r3, r3
  71388. 801cf82: e00d b.n 801cfa0 <tcp_process+0x22c>
  71389. 801cf84: 687b ldr r3, [r7, #4]
  71390. 801cf86: 8e5b ldrh r3, [r3, #50] @ 0x32
  71391. 801cf88: 005b lsls r3, r3, #1
  71392. 801cf8a: f241 121c movw r2, #4380 @ 0x111c
  71393. 801cf8e: 4293 cmp r3, r2
  71394. 801cf90: d904 bls.n 801cf9c <tcp_process+0x228>
  71395. 801cf92: 687b ldr r3, [r7, #4]
  71396. 801cf94: 8e5b ldrh r3, [r3, #50] @ 0x32
  71397. 801cf96: 005b lsls r3, r3, #1
  71398. 801cf98: b29b uxth r3, r3
  71399. 801cf9a: e001 b.n 801cfa0 <tcp_process+0x22c>
  71400. 801cf9c: f241 131c movw r3, #4380 @ 0x111c
  71401. 801cfa0: 687a ldr r2, [r7, #4]
  71402. 801cfa2: f8a2 3048 strh.w r3, [r2, #72] @ 0x48
  71403. LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_process (SENT): cwnd %"TCPWNDSIZE_F
  71404. " ssthresh %"TCPWNDSIZE_F"\n",
  71405. pcb->cwnd, pcb->ssthresh));
  71406. LWIP_ASSERT("pcb->snd_queuelen > 0", (pcb->snd_queuelen > 0));
  71407. 801cfa6: 687b ldr r3, [r7, #4]
  71408. 801cfa8: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  71409. 801cfac: 2b00 cmp r3, #0
  71410. 801cfae: d106 bne.n 801cfbe <tcp_process+0x24a>
  71411. 801cfb0: 4b13 ldr r3, [pc, #76] @ (801d000 <tcp_process+0x28c>)
  71412. 801cfb2: f44f 725b mov.w r2, #876 @ 0x36c
  71413. 801cfb6: 491c ldr r1, [pc, #112] @ (801d028 <tcp_process+0x2b4>)
  71414. 801cfb8: 4813 ldr r0, [pc, #76] @ (801d008 <tcp_process+0x294>)
  71415. 801cfba: f00c faa7 bl 802950c <iprintf>
  71416. --pcb->snd_queuelen;
  71417. 801cfbe: 687b ldr r3, [r7, #4]
  71418. 801cfc0: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  71419. 801cfc4: 3b01 subs r3, #1
  71420. 801cfc6: b29a uxth r2, r3
  71421. 801cfc8: 687b ldr r3, [r7, #4]
  71422. 801cfca: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  71423. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_process: SYN-SENT --queuelen %"TCPWNDSIZE_F"\n", (tcpwnd_size_t)pcb->snd_queuelen));
  71424. rseg = pcb->unacked;
  71425. 801cfce: 687b ldr r3, [r7, #4]
  71426. 801cfd0: 6f1b ldr r3, [r3, #112] @ 0x70
  71427. 801cfd2: 617b str r3, [r7, #20]
  71428. if (rseg == NULL) {
  71429. 801cfd4: 697b ldr r3, [r7, #20]
  71430. 801cfd6: 2b00 cmp r3, #0
  71431. 801cfd8: d12a bne.n 801d030 <tcp_process+0x2bc>
  71432. /* might happen if tcp_output fails in tcp_rexmit_rto()
  71433. in which case the segment is on the unsent list */
  71434. rseg = pcb->unsent;
  71435. 801cfda: 687b ldr r3, [r7, #4]
  71436. 801cfdc: 6edb ldr r3, [r3, #108] @ 0x6c
  71437. 801cfde: 617b str r3, [r7, #20]
  71438. LWIP_ASSERT("no segment to free", rseg != NULL);
  71439. 801cfe0: 697b ldr r3, [r7, #20]
  71440. 801cfe2: 2b00 cmp r3, #0
  71441. 801cfe4: d106 bne.n 801cff4 <tcp_process+0x280>
  71442. 801cfe6: 4b06 ldr r3, [pc, #24] @ (801d000 <tcp_process+0x28c>)
  71443. 801cfe8: f44f 725d mov.w r2, #884 @ 0x374
  71444. 801cfec: 490f ldr r1, [pc, #60] @ (801d02c <tcp_process+0x2b8>)
  71445. 801cfee: 4806 ldr r0, [pc, #24] @ (801d008 <tcp_process+0x294>)
  71446. 801cff0: f00c fa8c bl 802950c <iprintf>
  71447. pcb->unsent = rseg->next;
  71448. 801cff4: 697b ldr r3, [r7, #20]
  71449. 801cff6: 681a ldr r2, [r3, #0]
  71450. 801cff8: 687b ldr r3, [r7, #4]
  71451. 801cffa: 66da str r2, [r3, #108] @ 0x6c
  71452. 801cffc: e01c b.n 801d038 <tcp_process+0x2c4>
  71453. 801cffe: bf00 nop
  71454. 801d000: 0802e8a4 .word 0x0802e8a4
  71455. 801d004: 0802eadc .word 0x0802eadc
  71456. 801d008: 0802e8f0 .word 0x0802e8f0
  71457. 801d00c: 2402a034 .word 0x2402a034
  71458. 801d010: 2402a02c .word 0x2402a02c
  71459. 801d014: 2402a028 .word 0x2402a028
  71460. 801d018: 0802eaf8 .word 0x0802eaf8
  71461. 801d01c: 2402a035 .word 0x2402a035
  71462. 801d020: 24029fec .word 0x24029fec
  71463. 801d024: 2402a018 .word 0x2402a018
  71464. 801d028: 0802eb18 .word 0x0802eb18
  71465. 801d02c: 0802eb30 .word 0x0802eb30
  71466. } else {
  71467. pcb->unacked = rseg->next;
  71468. 801d030: 697b ldr r3, [r7, #20]
  71469. 801d032: 681a ldr r2, [r3, #0]
  71470. 801d034: 687b ldr r3, [r7, #4]
  71471. 801d036: 671a str r2, [r3, #112] @ 0x70
  71472. }
  71473. tcp_seg_free(rseg);
  71474. 801d038: 6978 ldr r0, [r7, #20]
  71475. 801d03a: f7fe fc48 bl 801b8ce <tcp_seg_free>
  71476. /* If there's nothing left to acknowledge, stop the retransmit
  71477. timer, otherwise reset it to start again */
  71478. if (pcb->unacked == NULL) {
  71479. 801d03e: 687b ldr r3, [r7, #4]
  71480. 801d040: 6f1b ldr r3, [r3, #112] @ 0x70
  71481. 801d042: 2b00 cmp r3, #0
  71482. 801d044: d104 bne.n 801d050 <tcp_process+0x2dc>
  71483. pcb->rtime = -1;
  71484. 801d046: 687b ldr r3, [r7, #4]
  71485. 801d048: f64f 72ff movw r2, #65535 @ 0xffff
  71486. 801d04c: 861a strh r2, [r3, #48] @ 0x30
  71487. 801d04e: e006 b.n 801d05e <tcp_process+0x2ea>
  71488. } else {
  71489. pcb->rtime = 0;
  71490. 801d050: 687b ldr r3, [r7, #4]
  71491. 801d052: 2200 movs r2, #0
  71492. 801d054: 861a strh r2, [r3, #48] @ 0x30
  71493. pcb->nrtx = 0;
  71494. 801d056: 687b ldr r3, [r7, #4]
  71495. 801d058: 2200 movs r2, #0
  71496. 801d05a: f883 2042 strb.w r2, [r3, #66] @ 0x42
  71497. }
  71498. /* Call the user specified function to call when successfully
  71499. * connected. */
  71500. TCP_EVENT_CONNECTED(pcb, ERR_OK, err);
  71501. 801d05e: 687b ldr r3, [r7, #4]
  71502. 801d060: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  71503. 801d064: 2b00 cmp r3, #0
  71504. 801d066: d00a beq.n 801d07e <tcp_process+0x30a>
  71505. 801d068: 687b ldr r3, [r7, #4]
  71506. 801d06a: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  71507. 801d06e: 687a ldr r2, [r7, #4]
  71508. 801d070: 6910 ldr r0, [r2, #16]
  71509. 801d072: 2200 movs r2, #0
  71510. 801d074: 6879 ldr r1, [r7, #4]
  71511. 801d076: 4798 blx r3
  71512. 801d078: 4603 mov r3, r0
  71513. 801d07a: 77bb strb r3, [r7, #30]
  71514. 801d07c: e001 b.n 801d082 <tcp_process+0x30e>
  71515. 801d07e: 2300 movs r3, #0
  71516. 801d080: 77bb strb r3, [r7, #30]
  71517. if (err == ERR_ABRT) {
  71518. 801d082: f997 301e ldrsb.w r3, [r7, #30]
  71519. 801d086: f113 0f0d cmn.w r3, #13
  71520. 801d08a: d102 bne.n 801d092 <tcp_process+0x31e>
  71521. return ERR_ABRT;
  71522. 801d08c: f06f 030c mvn.w r3, #12
  71523. 801d090: e250 b.n 801d534 <tcp_process+0x7c0>
  71524. }
  71525. tcp_ack_now(pcb);
  71526. 801d092: 687b ldr r3, [r7, #4]
  71527. 801d094: 8b5b ldrh r3, [r3, #26]
  71528. 801d096: f043 0302 orr.w r3, r3, #2
  71529. 801d09a: b29a uxth r2, r3
  71530. 801d09c: 687b ldr r3, [r7, #4]
  71531. 801d09e: 835a strh r2, [r3, #26]
  71532. if (pcb->nrtx < TCP_SYNMAXRTX) {
  71533. pcb->rtime = 0;
  71534. tcp_rexmit_rto(pcb);
  71535. }
  71536. }
  71537. break;
  71538. 801d0a0: e23a b.n 801d518 <tcp_process+0x7a4>
  71539. else if (flags & TCP_ACK) {
  71540. 801d0a2: 4b98 ldr r3, [pc, #608] @ (801d304 <tcp_process+0x590>)
  71541. 801d0a4: 781b ldrb r3, [r3, #0]
  71542. 801d0a6: f003 0310 and.w r3, r3, #16
  71543. 801d0aa: 2b00 cmp r3, #0
  71544. 801d0ac: f000 8234 beq.w 801d518 <tcp_process+0x7a4>
  71545. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  71546. 801d0b0: 4b95 ldr r3, [pc, #596] @ (801d308 <tcp_process+0x594>)
  71547. 801d0b2: 6819 ldr r1, [r3, #0]
  71548. 801d0b4: 4b95 ldr r3, [pc, #596] @ (801d30c <tcp_process+0x598>)
  71549. 801d0b6: 881b ldrh r3, [r3, #0]
  71550. 801d0b8: 461a mov r2, r3
  71551. 801d0ba: 4b95 ldr r3, [pc, #596] @ (801d310 <tcp_process+0x59c>)
  71552. 801d0bc: 681b ldr r3, [r3, #0]
  71553. 801d0be: 18d0 adds r0, r2, r3
  71554. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  71555. 801d0c0: 4b94 ldr r3, [pc, #592] @ (801d314 <tcp_process+0x5a0>)
  71556. 801d0c2: 681b ldr r3, [r3, #0]
  71557. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  71558. 801d0c4: 885b ldrh r3, [r3, #2]
  71559. 801d0c6: b29b uxth r3, r3
  71560. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  71561. 801d0c8: 4a92 ldr r2, [pc, #584] @ (801d314 <tcp_process+0x5a0>)
  71562. 801d0ca: 6812 ldr r2, [r2, #0]
  71563. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  71564. 801d0cc: 8812 ldrh r2, [r2, #0]
  71565. 801d0ce: b292 uxth r2, r2
  71566. 801d0d0: 9202 str r2, [sp, #8]
  71567. 801d0d2: 9301 str r3, [sp, #4]
  71568. 801d0d4: 4b90 ldr r3, [pc, #576] @ (801d318 <tcp_process+0x5a4>)
  71569. 801d0d6: 9300 str r3, [sp, #0]
  71570. 801d0d8: 4b90 ldr r3, [pc, #576] @ (801d31c <tcp_process+0x5a8>)
  71571. 801d0da: 4602 mov r2, r0
  71572. 801d0dc: 6878 ldr r0, [r7, #4]
  71573. 801d0de: f003 f94b bl 8020378 <tcp_rst>
  71574. if (pcb->nrtx < TCP_SYNMAXRTX) {
  71575. 801d0e2: 687b ldr r3, [r7, #4]
  71576. 801d0e4: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  71577. 801d0e8: 2b05 cmp r3, #5
  71578. 801d0ea: f200 8215 bhi.w 801d518 <tcp_process+0x7a4>
  71579. pcb->rtime = 0;
  71580. 801d0ee: 687b ldr r3, [r7, #4]
  71581. 801d0f0: 2200 movs r2, #0
  71582. 801d0f2: 861a strh r2, [r3, #48] @ 0x30
  71583. tcp_rexmit_rto(pcb);
  71584. 801d0f4: 6878 ldr r0, [r7, #4]
  71585. 801d0f6: f002 ff17 bl 801ff28 <tcp_rexmit_rto>
  71586. break;
  71587. 801d0fa: e20d b.n 801d518 <tcp_process+0x7a4>
  71588. case SYN_RCVD:
  71589. if (flags & TCP_ACK) {
  71590. 801d0fc: 4b81 ldr r3, [pc, #516] @ (801d304 <tcp_process+0x590>)
  71591. 801d0fe: 781b ldrb r3, [r3, #0]
  71592. 801d100: f003 0310 and.w r3, r3, #16
  71593. 801d104: 2b00 cmp r3, #0
  71594. 801d106: f000 80a1 beq.w 801d24c <tcp_process+0x4d8>
  71595. /* expected ACK number? */
  71596. if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) {
  71597. 801d10a: 4b7f ldr r3, [pc, #508] @ (801d308 <tcp_process+0x594>)
  71598. 801d10c: 681a ldr r2, [r3, #0]
  71599. 801d10e: 687b ldr r3, [r7, #4]
  71600. 801d110: 6c5b ldr r3, [r3, #68] @ 0x44
  71601. 801d112: 1ad3 subs r3, r2, r3
  71602. 801d114: 3b01 subs r3, #1
  71603. 801d116: 2b00 cmp r3, #0
  71604. 801d118: db7e blt.n 801d218 <tcp_process+0x4a4>
  71605. 801d11a: 4b7b ldr r3, [pc, #492] @ (801d308 <tcp_process+0x594>)
  71606. 801d11c: 681a ldr r2, [r3, #0]
  71607. 801d11e: 687b ldr r3, [r7, #4]
  71608. 801d120: 6d1b ldr r3, [r3, #80] @ 0x50
  71609. 801d122: 1ad3 subs r3, r2, r3
  71610. 801d124: 2b00 cmp r3, #0
  71611. 801d126: dc77 bgt.n 801d218 <tcp_process+0x4a4>
  71612. pcb->state = ESTABLISHED;
  71613. 801d128: 687b ldr r3, [r7, #4]
  71614. 801d12a: 2204 movs r2, #4
  71615. 801d12c: 751a strb r2, [r3, #20]
  71616. LWIP_DEBUGF(TCP_DEBUG, ("TCP connection established %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest));
  71617. #if LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG
  71618. if (pcb->listener == NULL) {
  71619. 801d12e: 687b ldr r3, [r7, #4]
  71620. 801d130: 6fdb ldr r3, [r3, #124] @ 0x7c
  71621. 801d132: 2b00 cmp r3, #0
  71622. 801d134: d102 bne.n 801d13c <tcp_process+0x3c8>
  71623. /* listen pcb might be closed by now */
  71624. err = ERR_VAL;
  71625. 801d136: 23fa movs r3, #250 @ 0xfa
  71626. 801d138: 77bb strb r3, [r7, #30]
  71627. 801d13a: e01d b.n 801d178 <tcp_process+0x404>
  71628. } else
  71629. #endif /* LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG */
  71630. {
  71631. #if LWIP_CALLBACK_API
  71632. LWIP_ASSERT("pcb->listener->accept != NULL", pcb->listener->accept != NULL);
  71633. 801d13c: 687b ldr r3, [r7, #4]
  71634. 801d13e: 6fdb ldr r3, [r3, #124] @ 0x7c
  71635. 801d140: 699b ldr r3, [r3, #24]
  71636. 801d142: 2b00 cmp r3, #0
  71637. 801d144: d106 bne.n 801d154 <tcp_process+0x3e0>
  71638. 801d146: 4b76 ldr r3, [pc, #472] @ (801d320 <tcp_process+0x5ac>)
  71639. 801d148: f44f 726a mov.w r2, #936 @ 0x3a8
  71640. 801d14c: 4975 ldr r1, [pc, #468] @ (801d324 <tcp_process+0x5b0>)
  71641. 801d14e: 4876 ldr r0, [pc, #472] @ (801d328 <tcp_process+0x5b4>)
  71642. 801d150: f00c f9dc bl 802950c <iprintf>
  71643. #endif
  71644. tcp_backlog_accepted(pcb);
  71645. /* Call the accept function. */
  71646. TCP_EVENT_ACCEPT(pcb->listener, pcb, pcb->callback_arg, ERR_OK, err);
  71647. 801d154: 687b ldr r3, [r7, #4]
  71648. 801d156: 6fdb ldr r3, [r3, #124] @ 0x7c
  71649. 801d158: 699b ldr r3, [r3, #24]
  71650. 801d15a: 2b00 cmp r3, #0
  71651. 801d15c: d00a beq.n 801d174 <tcp_process+0x400>
  71652. 801d15e: 687b ldr r3, [r7, #4]
  71653. 801d160: 6fdb ldr r3, [r3, #124] @ 0x7c
  71654. 801d162: 699b ldr r3, [r3, #24]
  71655. 801d164: 687a ldr r2, [r7, #4]
  71656. 801d166: 6910 ldr r0, [r2, #16]
  71657. 801d168: 2200 movs r2, #0
  71658. 801d16a: 6879 ldr r1, [r7, #4]
  71659. 801d16c: 4798 blx r3
  71660. 801d16e: 4603 mov r3, r0
  71661. 801d170: 77bb strb r3, [r7, #30]
  71662. 801d172: e001 b.n 801d178 <tcp_process+0x404>
  71663. 801d174: 23f0 movs r3, #240 @ 0xf0
  71664. 801d176: 77bb strb r3, [r7, #30]
  71665. }
  71666. if (err != ERR_OK) {
  71667. 801d178: f997 301e ldrsb.w r3, [r7, #30]
  71668. 801d17c: 2b00 cmp r3, #0
  71669. 801d17e: d00a beq.n 801d196 <tcp_process+0x422>
  71670. /* If the accept function returns with an error, we abort
  71671. * the connection. */
  71672. /* Already aborted? */
  71673. if (err != ERR_ABRT) {
  71674. 801d180: f997 301e ldrsb.w r3, [r7, #30]
  71675. 801d184: f113 0f0d cmn.w r3, #13
  71676. 801d188: d002 beq.n 801d190 <tcp_process+0x41c>
  71677. tcp_abort(pcb);
  71678. 801d18a: 6878 ldr r0, [r7, #4]
  71679. 801d18c: f7fd fd4c bl 801ac28 <tcp_abort>
  71680. }
  71681. return ERR_ABRT;
  71682. 801d190: f06f 030c mvn.w r3, #12
  71683. 801d194: e1ce b.n 801d534 <tcp_process+0x7c0>
  71684. }
  71685. /* If there was any data contained within this ACK,
  71686. * we'd better pass it on to the application as well. */
  71687. tcp_receive(pcb);
  71688. 801d196: 6878 ldr r0, [r7, #4]
  71689. 801d198: f000 fae0 bl 801d75c <tcp_receive>
  71690. /* Prevent ACK for SYN to generate a sent event */
  71691. if (recv_acked != 0) {
  71692. 801d19c: 4b63 ldr r3, [pc, #396] @ (801d32c <tcp_process+0x5b8>)
  71693. 801d19e: 881b ldrh r3, [r3, #0]
  71694. 801d1a0: 2b00 cmp r3, #0
  71695. 801d1a2: d005 beq.n 801d1b0 <tcp_process+0x43c>
  71696. recv_acked--;
  71697. 801d1a4: 4b61 ldr r3, [pc, #388] @ (801d32c <tcp_process+0x5b8>)
  71698. 801d1a6: 881b ldrh r3, [r3, #0]
  71699. 801d1a8: 3b01 subs r3, #1
  71700. 801d1aa: b29a uxth r2, r3
  71701. 801d1ac: 4b5f ldr r3, [pc, #380] @ (801d32c <tcp_process+0x5b8>)
  71702. 801d1ae: 801a strh r2, [r3, #0]
  71703. }
  71704. pcb->cwnd = LWIP_TCP_CALC_INITIAL_CWND(pcb->mss);
  71705. 801d1b0: 687b ldr r3, [r7, #4]
  71706. 801d1b2: 8e5b ldrh r3, [r3, #50] @ 0x32
  71707. 801d1b4: 009a lsls r2, r3, #2
  71708. 801d1b6: 687b ldr r3, [r7, #4]
  71709. 801d1b8: 8e5b ldrh r3, [r3, #50] @ 0x32
  71710. 801d1ba: 005b lsls r3, r3, #1
  71711. 801d1bc: f241 111c movw r1, #4380 @ 0x111c
  71712. 801d1c0: 428b cmp r3, r1
  71713. 801d1c2: bf38 it cc
  71714. 801d1c4: 460b movcc r3, r1
  71715. 801d1c6: 429a cmp r2, r3
  71716. 801d1c8: d204 bcs.n 801d1d4 <tcp_process+0x460>
  71717. 801d1ca: 687b ldr r3, [r7, #4]
  71718. 801d1cc: 8e5b ldrh r3, [r3, #50] @ 0x32
  71719. 801d1ce: 009b lsls r3, r3, #2
  71720. 801d1d0: b29b uxth r3, r3
  71721. 801d1d2: e00d b.n 801d1f0 <tcp_process+0x47c>
  71722. 801d1d4: 687b ldr r3, [r7, #4]
  71723. 801d1d6: 8e5b ldrh r3, [r3, #50] @ 0x32
  71724. 801d1d8: 005b lsls r3, r3, #1
  71725. 801d1da: f241 121c movw r2, #4380 @ 0x111c
  71726. 801d1de: 4293 cmp r3, r2
  71727. 801d1e0: d904 bls.n 801d1ec <tcp_process+0x478>
  71728. 801d1e2: 687b ldr r3, [r7, #4]
  71729. 801d1e4: 8e5b ldrh r3, [r3, #50] @ 0x32
  71730. 801d1e6: 005b lsls r3, r3, #1
  71731. 801d1e8: b29b uxth r3, r3
  71732. 801d1ea: e001 b.n 801d1f0 <tcp_process+0x47c>
  71733. 801d1ec: f241 131c movw r3, #4380 @ 0x111c
  71734. 801d1f0: 687a ldr r2, [r7, #4]
  71735. 801d1f2: f8a2 3048 strh.w r3, [r2, #72] @ 0x48
  71736. LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_process (SYN_RCVD): cwnd %"TCPWNDSIZE_F
  71737. " ssthresh %"TCPWNDSIZE_F"\n",
  71738. pcb->cwnd, pcb->ssthresh));
  71739. if (recv_flags & TF_GOT_FIN) {
  71740. 801d1f6: 4b4e ldr r3, [pc, #312] @ (801d330 <tcp_process+0x5bc>)
  71741. 801d1f8: 781b ldrb r3, [r3, #0]
  71742. 801d1fa: f003 0320 and.w r3, r3, #32
  71743. 801d1fe: 2b00 cmp r3, #0
  71744. 801d200: d037 beq.n 801d272 <tcp_process+0x4fe>
  71745. tcp_ack_now(pcb);
  71746. 801d202: 687b ldr r3, [r7, #4]
  71747. 801d204: 8b5b ldrh r3, [r3, #26]
  71748. 801d206: f043 0302 orr.w r3, r3, #2
  71749. 801d20a: b29a uxth r2, r3
  71750. 801d20c: 687b ldr r3, [r7, #4]
  71751. 801d20e: 835a strh r2, [r3, #26]
  71752. pcb->state = CLOSE_WAIT;
  71753. 801d210: 687b ldr r3, [r7, #4]
  71754. 801d212: 2207 movs r2, #7
  71755. 801d214: 751a strb r2, [r3, #20]
  71756. if (recv_flags & TF_GOT_FIN) {
  71757. 801d216: e02c b.n 801d272 <tcp_process+0x4fe>
  71758. }
  71759. } else {
  71760. /* incorrect ACK number, send RST */
  71761. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  71762. 801d218: 4b3b ldr r3, [pc, #236] @ (801d308 <tcp_process+0x594>)
  71763. 801d21a: 6819 ldr r1, [r3, #0]
  71764. 801d21c: 4b3b ldr r3, [pc, #236] @ (801d30c <tcp_process+0x598>)
  71765. 801d21e: 881b ldrh r3, [r3, #0]
  71766. 801d220: 461a mov r2, r3
  71767. 801d222: 4b3b ldr r3, [pc, #236] @ (801d310 <tcp_process+0x59c>)
  71768. 801d224: 681b ldr r3, [r3, #0]
  71769. 801d226: 18d0 adds r0, r2, r3
  71770. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  71771. 801d228: 4b3a ldr r3, [pc, #232] @ (801d314 <tcp_process+0x5a0>)
  71772. 801d22a: 681b ldr r3, [r3, #0]
  71773. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  71774. 801d22c: 885b ldrh r3, [r3, #2]
  71775. 801d22e: b29b uxth r3, r3
  71776. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  71777. 801d230: 4a38 ldr r2, [pc, #224] @ (801d314 <tcp_process+0x5a0>)
  71778. 801d232: 6812 ldr r2, [r2, #0]
  71779. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  71780. 801d234: 8812 ldrh r2, [r2, #0]
  71781. 801d236: b292 uxth r2, r2
  71782. 801d238: 9202 str r2, [sp, #8]
  71783. 801d23a: 9301 str r3, [sp, #4]
  71784. 801d23c: 4b36 ldr r3, [pc, #216] @ (801d318 <tcp_process+0x5a4>)
  71785. 801d23e: 9300 str r3, [sp, #0]
  71786. 801d240: 4b36 ldr r3, [pc, #216] @ (801d31c <tcp_process+0x5a8>)
  71787. 801d242: 4602 mov r2, r0
  71788. 801d244: 6878 ldr r0, [r7, #4]
  71789. 801d246: f003 f897 bl 8020378 <tcp_rst>
  71790. }
  71791. } else if ((flags & TCP_SYN) && (seqno == pcb->rcv_nxt - 1)) {
  71792. /* Looks like another copy of the SYN - retransmit our SYN-ACK */
  71793. tcp_rexmit(pcb);
  71794. }
  71795. break;
  71796. 801d24a: e167 b.n 801d51c <tcp_process+0x7a8>
  71797. } else if ((flags & TCP_SYN) && (seqno == pcb->rcv_nxt - 1)) {
  71798. 801d24c: 4b2d ldr r3, [pc, #180] @ (801d304 <tcp_process+0x590>)
  71799. 801d24e: 781b ldrb r3, [r3, #0]
  71800. 801d250: f003 0302 and.w r3, r3, #2
  71801. 801d254: 2b00 cmp r3, #0
  71802. 801d256: f000 8161 beq.w 801d51c <tcp_process+0x7a8>
  71803. 801d25a: 687b ldr r3, [r7, #4]
  71804. 801d25c: 6a5b ldr r3, [r3, #36] @ 0x24
  71805. 801d25e: 1e5a subs r2, r3, #1
  71806. 801d260: 4b2b ldr r3, [pc, #172] @ (801d310 <tcp_process+0x59c>)
  71807. 801d262: 681b ldr r3, [r3, #0]
  71808. 801d264: 429a cmp r2, r3
  71809. 801d266: f040 8159 bne.w 801d51c <tcp_process+0x7a8>
  71810. tcp_rexmit(pcb);
  71811. 801d26a: 6878 ldr r0, [r7, #4]
  71812. 801d26c: f002 fe7e bl 801ff6c <tcp_rexmit>
  71813. break;
  71814. 801d270: e154 b.n 801d51c <tcp_process+0x7a8>
  71815. 801d272: e153 b.n 801d51c <tcp_process+0x7a8>
  71816. case CLOSE_WAIT:
  71817. /* FALLTHROUGH */
  71818. case ESTABLISHED:
  71819. tcp_receive(pcb);
  71820. 801d274: 6878 ldr r0, [r7, #4]
  71821. 801d276: f000 fa71 bl 801d75c <tcp_receive>
  71822. if (recv_flags & TF_GOT_FIN) { /* passive close */
  71823. 801d27a: 4b2d ldr r3, [pc, #180] @ (801d330 <tcp_process+0x5bc>)
  71824. 801d27c: 781b ldrb r3, [r3, #0]
  71825. 801d27e: f003 0320 and.w r3, r3, #32
  71826. 801d282: 2b00 cmp r3, #0
  71827. 801d284: f000 814c beq.w 801d520 <tcp_process+0x7ac>
  71828. tcp_ack_now(pcb);
  71829. 801d288: 687b ldr r3, [r7, #4]
  71830. 801d28a: 8b5b ldrh r3, [r3, #26]
  71831. 801d28c: f043 0302 orr.w r3, r3, #2
  71832. 801d290: b29a uxth r2, r3
  71833. 801d292: 687b ldr r3, [r7, #4]
  71834. 801d294: 835a strh r2, [r3, #26]
  71835. pcb->state = CLOSE_WAIT;
  71836. 801d296: 687b ldr r3, [r7, #4]
  71837. 801d298: 2207 movs r2, #7
  71838. 801d29a: 751a strb r2, [r3, #20]
  71839. }
  71840. break;
  71841. 801d29c: e140 b.n 801d520 <tcp_process+0x7ac>
  71842. case FIN_WAIT_1:
  71843. tcp_receive(pcb);
  71844. 801d29e: 6878 ldr r0, [r7, #4]
  71845. 801d2a0: f000 fa5c bl 801d75c <tcp_receive>
  71846. if (recv_flags & TF_GOT_FIN) {
  71847. 801d2a4: 4b22 ldr r3, [pc, #136] @ (801d330 <tcp_process+0x5bc>)
  71848. 801d2a6: 781b ldrb r3, [r3, #0]
  71849. 801d2a8: f003 0320 and.w r3, r3, #32
  71850. 801d2ac: 2b00 cmp r3, #0
  71851. 801d2ae: d071 beq.n 801d394 <tcp_process+0x620>
  71852. if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) &&
  71853. 801d2b0: 4b14 ldr r3, [pc, #80] @ (801d304 <tcp_process+0x590>)
  71854. 801d2b2: 781b ldrb r3, [r3, #0]
  71855. 801d2b4: f003 0310 and.w r3, r3, #16
  71856. 801d2b8: 2b00 cmp r3, #0
  71857. 801d2ba: d060 beq.n 801d37e <tcp_process+0x60a>
  71858. 801d2bc: 687b ldr r3, [r7, #4]
  71859. 801d2be: 6d1a ldr r2, [r3, #80] @ 0x50
  71860. 801d2c0: 4b11 ldr r3, [pc, #68] @ (801d308 <tcp_process+0x594>)
  71861. 801d2c2: 681b ldr r3, [r3, #0]
  71862. 801d2c4: 429a cmp r2, r3
  71863. 801d2c6: d15a bne.n 801d37e <tcp_process+0x60a>
  71864. pcb->unsent == NULL) {
  71865. 801d2c8: 687b ldr r3, [r7, #4]
  71866. 801d2ca: 6edb ldr r3, [r3, #108] @ 0x6c
  71867. if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) &&
  71868. 801d2cc: 2b00 cmp r3, #0
  71869. 801d2ce: d156 bne.n 801d37e <tcp_process+0x60a>
  71870. LWIP_DEBUGF(TCP_DEBUG,
  71871. ("TCP connection closed: FIN_WAIT_1 %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest));
  71872. tcp_ack_now(pcb);
  71873. 801d2d0: 687b ldr r3, [r7, #4]
  71874. 801d2d2: 8b5b ldrh r3, [r3, #26]
  71875. 801d2d4: f043 0302 orr.w r3, r3, #2
  71876. 801d2d8: b29a uxth r2, r3
  71877. 801d2da: 687b ldr r3, [r7, #4]
  71878. 801d2dc: 835a strh r2, [r3, #26]
  71879. tcp_pcb_purge(pcb);
  71880. 801d2de: 6878 ldr r0, [r7, #4]
  71881. 801d2e0: f7fe fdba bl 801be58 <tcp_pcb_purge>
  71882. TCP_RMV_ACTIVE(pcb);
  71883. 801d2e4: 4b13 ldr r3, [pc, #76] @ (801d334 <tcp_process+0x5c0>)
  71884. 801d2e6: 681b ldr r3, [r3, #0]
  71885. 801d2e8: 687a ldr r2, [r7, #4]
  71886. 801d2ea: 429a cmp r2, r3
  71887. 801d2ec: d105 bne.n 801d2fa <tcp_process+0x586>
  71888. 801d2ee: 4b11 ldr r3, [pc, #68] @ (801d334 <tcp_process+0x5c0>)
  71889. 801d2f0: 681b ldr r3, [r3, #0]
  71890. 801d2f2: 68db ldr r3, [r3, #12]
  71891. 801d2f4: 4a0f ldr r2, [pc, #60] @ (801d334 <tcp_process+0x5c0>)
  71892. 801d2f6: 6013 str r3, [r2, #0]
  71893. 801d2f8: e02e b.n 801d358 <tcp_process+0x5e4>
  71894. 801d2fa: 4b0e ldr r3, [pc, #56] @ (801d334 <tcp_process+0x5c0>)
  71895. 801d2fc: 681b ldr r3, [r3, #0]
  71896. 801d2fe: 613b str r3, [r7, #16]
  71897. 801d300: e027 b.n 801d352 <tcp_process+0x5de>
  71898. 801d302: bf00 nop
  71899. 801d304: 2402a034 .word 0x2402a034
  71900. 801d308: 2402a02c .word 0x2402a02c
  71901. 801d30c: 2402a032 .word 0x2402a032
  71902. 801d310: 2402a028 .word 0x2402a028
  71903. 801d314: 2402a018 .word 0x2402a018
  71904. 801d318: 240234ac .word 0x240234ac
  71905. 801d31c: 240234b0 .word 0x240234b0
  71906. 801d320: 0802e8a4 .word 0x0802e8a4
  71907. 801d324: 0802eb44 .word 0x0802eb44
  71908. 801d328: 0802e8f0 .word 0x0802e8f0
  71909. 801d32c: 2402a030 .word 0x2402a030
  71910. 801d330: 2402a035 .word 0x2402a035
  71911. 801d334: 24029ff8 .word 0x24029ff8
  71912. 801d338: 693b ldr r3, [r7, #16]
  71913. 801d33a: 68db ldr r3, [r3, #12]
  71914. 801d33c: 687a ldr r2, [r7, #4]
  71915. 801d33e: 429a cmp r2, r3
  71916. 801d340: d104 bne.n 801d34c <tcp_process+0x5d8>
  71917. 801d342: 687b ldr r3, [r7, #4]
  71918. 801d344: 68da ldr r2, [r3, #12]
  71919. 801d346: 693b ldr r3, [r7, #16]
  71920. 801d348: 60da str r2, [r3, #12]
  71921. 801d34a: e005 b.n 801d358 <tcp_process+0x5e4>
  71922. 801d34c: 693b ldr r3, [r7, #16]
  71923. 801d34e: 68db ldr r3, [r3, #12]
  71924. 801d350: 613b str r3, [r7, #16]
  71925. 801d352: 693b ldr r3, [r7, #16]
  71926. 801d354: 2b00 cmp r3, #0
  71927. 801d356: d1ef bne.n 801d338 <tcp_process+0x5c4>
  71928. 801d358: 687b ldr r3, [r7, #4]
  71929. 801d35a: 2200 movs r2, #0
  71930. 801d35c: 60da str r2, [r3, #12]
  71931. 801d35e: 4b77 ldr r3, [pc, #476] @ (801d53c <tcp_process+0x7c8>)
  71932. 801d360: 2201 movs r2, #1
  71933. 801d362: 701a strb r2, [r3, #0]
  71934. pcb->state = TIME_WAIT;
  71935. 801d364: 687b ldr r3, [r7, #4]
  71936. 801d366: 220a movs r2, #10
  71937. 801d368: 751a strb r2, [r3, #20]
  71938. TCP_REG(&tcp_tw_pcbs, pcb);
  71939. 801d36a: 4b75 ldr r3, [pc, #468] @ (801d540 <tcp_process+0x7cc>)
  71940. 801d36c: 681a ldr r2, [r3, #0]
  71941. 801d36e: 687b ldr r3, [r7, #4]
  71942. 801d370: 60da str r2, [r3, #12]
  71943. 801d372: 4a73 ldr r2, [pc, #460] @ (801d540 <tcp_process+0x7cc>)
  71944. 801d374: 687b ldr r3, [r7, #4]
  71945. 801d376: 6013 str r3, [r2, #0]
  71946. 801d378: f003 f9c0 bl 80206fc <tcp_timer_needed>
  71947. }
  71948. } else if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) &&
  71949. pcb->unsent == NULL) {
  71950. pcb->state = FIN_WAIT_2;
  71951. }
  71952. break;
  71953. 801d37c: e0d2 b.n 801d524 <tcp_process+0x7b0>
  71954. tcp_ack_now(pcb);
  71955. 801d37e: 687b ldr r3, [r7, #4]
  71956. 801d380: 8b5b ldrh r3, [r3, #26]
  71957. 801d382: f043 0302 orr.w r3, r3, #2
  71958. 801d386: b29a uxth r2, r3
  71959. 801d388: 687b ldr r3, [r7, #4]
  71960. 801d38a: 835a strh r2, [r3, #26]
  71961. pcb->state = CLOSING;
  71962. 801d38c: 687b ldr r3, [r7, #4]
  71963. 801d38e: 2208 movs r2, #8
  71964. 801d390: 751a strb r2, [r3, #20]
  71965. break;
  71966. 801d392: e0c7 b.n 801d524 <tcp_process+0x7b0>
  71967. } else if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) &&
  71968. 801d394: 4b6b ldr r3, [pc, #428] @ (801d544 <tcp_process+0x7d0>)
  71969. 801d396: 781b ldrb r3, [r3, #0]
  71970. 801d398: f003 0310 and.w r3, r3, #16
  71971. 801d39c: 2b00 cmp r3, #0
  71972. 801d39e: f000 80c1 beq.w 801d524 <tcp_process+0x7b0>
  71973. 801d3a2: 687b ldr r3, [r7, #4]
  71974. 801d3a4: 6d1a ldr r2, [r3, #80] @ 0x50
  71975. 801d3a6: 4b68 ldr r3, [pc, #416] @ (801d548 <tcp_process+0x7d4>)
  71976. 801d3a8: 681b ldr r3, [r3, #0]
  71977. 801d3aa: 429a cmp r2, r3
  71978. 801d3ac: f040 80ba bne.w 801d524 <tcp_process+0x7b0>
  71979. pcb->unsent == NULL) {
  71980. 801d3b0: 687b ldr r3, [r7, #4]
  71981. 801d3b2: 6edb ldr r3, [r3, #108] @ 0x6c
  71982. } else if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) &&
  71983. 801d3b4: 2b00 cmp r3, #0
  71984. 801d3b6: f040 80b5 bne.w 801d524 <tcp_process+0x7b0>
  71985. pcb->state = FIN_WAIT_2;
  71986. 801d3ba: 687b ldr r3, [r7, #4]
  71987. 801d3bc: 2206 movs r2, #6
  71988. 801d3be: 751a strb r2, [r3, #20]
  71989. break;
  71990. 801d3c0: e0b0 b.n 801d524 <tcp_process+0x7b0>
  71991. case FIN_WAIT_2:
  71992. tcp_receive(pcb);
  71993. 801d3c2: 6878 ldr r0, [r7, #4]
  71994. 801d3c4: f000 f9ca bl 801d75c <tcp_receive>
  71995. if (recv_flags & TF_GOT_FIN) {
  71996. 801d3c8: 4b60 ldr r3, [pc, #384] @ (801d54c <tcp_process+0x7d8>)
  71997. 801d3ca: 781b ldrb r3, [r3, #0]
  71998. 801d3cc: f003 0320 and.w r3, r3, #32
  71999. 801d3d0: 2b00 cmp r3, #0
  72000. 801d3d2: f000 80a9 beq.w 801d528 <tcp_process+0x7b4>
  72001. LWIP_DEBUGF(TCP_DEBUG, ("TCP connection closed: FIN_WAIT_2 %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest));
  72002. tcp_ack_now(pcb);
  72003. 801d3d6: 687b ldr r3, [r7, #4]
  72004. 801d3d8: 8b5b ldrh r3, [r3, #26]
  72005. 801d3da: f043 0302 orr.w r3, r3, #2
  72006. 801d3de: b29a uxth r2, r3
  72007. 801d3e0: 687b ldr r3, [r7, #4]
  72008. 801d3e2: 835a strh r2, [r3, #26]
  72009. tcp_pcb_purge(pcb);
  72010. 801d3e4: 6878 ldr r0, [r7, #4]
  72011. 801d3e6: f7fe fd37 bl 801be58 <tcp_pcb_purge>
  72012. TCP_RMV_ACTIVE(pcb);
  72013. 801d3ea: 4b59 ldr r3, [pc, #356] @ (801d550 <tcp_process+0x7dc>)
  72014. 801d3ec: 681b ldr r3, [r3, #0]
  72015. 801d3ee: 687a ldr r2, [r7, #4]
  72016. 801d3f0: 429a cmp r2, r3
  72017. 801d3f2: d105 bne.n 801d400 <tcp_process+0x68c>
  72018. 801d3f4: 4b56 ldr r3, [pc, #344] @ (801d550 <tcp_process+0x7dc>)
  72019. 801d3f6: 681b ldr r3, [r3, #0]
  72020. 801d3f8: 68db ldr r3, [r3, #12]
  72021. 801d3fa: 4a55 ldr r2, [pc, #340] @ (801d550 <tcp_process+0x7dc>)
  72022. 801d3fc: 6013 str r3, [r2, #0]
  72023. 801d3fe: e013 b.n 801d428 <tcp_process+0x6b4>
  72024. 801d400: 4b53 ldr r3, [pc, #332] @ (801d550 <tcp_process+0x7dc>)
  72025. 801d402: 681b ldr r3, [r3, #0]
  72026. 801d404: 60fb str r3, [r7, #12]
  72027. 801d406: e00c b.n 801d422 <tcp_process+0x6ae>
  72028. 801d408: 68fb ldr r3, [r7, #12]
  72029. 801d40a: 68db ldr r3, [r3, #12]
  72030. 801d40c: 687a ldr r2, [r7, #4]
  72031. 801d40e: 429a cmp r2, r3
  72032. 801d410: d104 bne.n 801d41c <tcp_process+0x6a8>
  72033. 801d412: 687b ldr r3, [r7, #4]
  72034. 801d414: 68da ldr r2, [r3, #12]
  72035. 801d416: 68fb ldr r3, [r7, #12]
  72036. 801d418: 60da str r2, [r3, #12]
  72037. 801d41a: e005 b.n 801d428 <tcp_process+0x6b4>
  72038. 801d41c: 68fb ldr r3, [r7, #12]
  72039. 801d41e: 68db ldr r3, [r3, #12]
  72040. 801d420: 60fb str r3, [r7, #12]
  72041. 801d422: 68fb ldr r3, [r7, #12]
  72042. 801d424: 2b00 cmp r3, #0
  72043. 801d426: d1ef bne.n 801d408 <tcp_process+0x694>
  72044. 801d428: 687b ldr r3, [r7, #4]
  72045. 801d42a: 2200 movs r2, #0
  72046. 801d42c: 60da str r2, [r3, #12]
  72047. 801d42e: 4b43 ldr r3, [pc, #268] @ (801d53c <tcp_process+0x7c8>)
  72048. 801d430: 2201 movs r2, #1
  72049. 801d432: 701a strb r2, [r3, #0]
  72050. pcb->state = TIME_WAIT;
  72051. 801d434: 687b ldr r3, [r7, #4]
  72052. 801d436: 220a movs r2, #10
  72053. 801d438: 751a strb r2, [r3, #20]
  72054. TCP_REG(&tcp_tw_pcbs, pcb);
  72055. 801d43a: 4b41 ldr r3, [pc, #260] @ (801d540 <tcp_process+0x7cc>)
  72056. 801d43c: 681a ldr r2, [r3, #0]
  72057. 801d43e: 687b ldr r3, [r7, #4]
  72058. 801d440: 60da str r2, [r3, #12]
  72059. 801d442: 4a3f ldr r2, [pc, #252] @ (801d540 <tcp_process+0x7cc>)
  72060. 801d444: 687b ldr r3, [r7, #4]
  72061. 801d446: 6013 str r3, [r2, #0]
  72062. 801d448: f003 f958 bl 80206fc <tcp_timer_needed>
  72063. }
  72064. break;
  72065. 801d44c: e06c b.n 801d528 <tcp_process+0x7b4>
  72066. case CLOSING:
  72067. tcp_receive(pcb);
  72068. 801d44e: 6878 ldr r0, [r7, #4]
  72069. 801d450: f000 f984 bl 801d75c <tcp_receive>
  72070. if ((flags & TCP_ACK) && ackno == pcb->snd_nxt && pcb->unsent == NULL) {
  72071. 801d454: 4b3b ldr r3, [pc, #236] @ (801d544 <tcp_process+0x7d0>)
  72072. 801d456: 781b ldrb r3, [r3, #0]
  72073. 801d458: f003 0310 and.w r3, r3, #16
  72074. 801d45c: 2b00 cmp r3, #0
  72075. 801d45e: d065 beq.n 801d52c <tcp_process+0x7b8>
  72076. 801d460: 687b ldr r3, [r7, #4]
  72077. 801d462: 6d1a ldr r2, [r3, #80] @ 0x50
  72078. 801d464: 4b38 ldr r3, [pc, #224] @ (801d548 <tcp_process+0x7d4>)
  72079. 801d466: 681b ldr r3, [r3, #0]
  72080. 801d468: 429a cmp r2, r3
  72081. 801d46a: d15f bne.n 801d52c <tcp_process+0x7b8>
  72082. 801d46c: 687b ldr r3, [r7, #4]
  72083. 801d46e: 6edb ldr r3, [r3, #108] @ 0x6c
  72084. 801d470: 2b00 cmp r3, #0
  72085. 801d472: d15b bne.n 801d52c <tcp_process+0x7b8>
  72086. LWIP_DEBUGF(TCP_DEBUG, ("TCP connection closed: CLOSING %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest));
  72087. tcp_pcb_purge(pcb);
  72088. 801d474: 6878 ldr r0, [r7, #4]
  72089. 801d476: f7fe fcef bl 801be58 <tcp_pcb_purge>
  72090. TCP_RMV_ACTIVE(pcb);
  72091. 801d47a: 4b35 ldr r3, [pc, #212] @ (801d550 <tcp_process+0x7dc>)
  72092. 801d47c: 681b ldr r3, [r3, #0]
  72093. 801d47e: 687a ldr r2, [r7, #4]
  72094. 801d480: 429a cmp r2, r3
  72095. 801d482: d105 bne.n 801d490 <tcp_process+0x71c>
  72096. 801d484: 4b32 ldr r3, [pc, #200] @ (801d550 <tcp_process+0x7dc>)
  72097. 801d486: 681b ldr r3, [r3, #0]
  72098. 801d488: 68db ldr r3, [r3, #12]
  72099. 801d48a: 4a31 ldr r2, [pc, #196] @ (801d550 <tcp_process+0x7dc>)
  72100. 801d48c: 6013 str r3, [r2, #0]
  72101. 801d48e: e013 b.n 801d4b8 <tcp_process+0x744>
  72102. 801d490: 4b2f ldr r3, [pc, #188] @ (801d550 <tcp_process+0x7dc>)
  72103. 801d492: 681b ldr r3, [r3, #0]
  72104. 801d494: 61bb str r3, [r7, #24]
  72105. 801d496: e00c b.n 801d4b2 <tcp_process+0x73e>
  72106. 801d498: 69bb ldr r3, [r7, #24]
  72107. 801d49a: 68db ldr r3, [r3, #12]
  72108. 801d49c: 687a ldr r2, [r7, #4]
  72109. 801d49e: 429a cmp r2, r3
  72110. 801d4a0: d104 bne.n 801d4ac <tcp_process+0x738>
  72111. 801d4a2: 687b ldr r3, [r7, #4]
  72112. 801d4a4: 68da ldr r2, [r3, #12]
  72113. 801d4a6: 69bb ldr r3, [r7, #24]
  72114. 801d4a8: 60da str r2, [r3, #12]
  72115. 801d4aa: e005 b.n 801d4b8 <tcp_process+0x744>
  72116. 801d4ac: 69bb ldr r3, [r7, #24]
  72117. 801d4ae: 68db ldr r3, [r3, #12]
  72118. 801d4b0: 61bb str r3, [r7, #24]
  72119. 801d4b2: 69bb ldr r3, [r7, #24]
  72120. 801d4b4: 2b00 cmp r3, #0
  72121. 801d4b6: d1ef bne.n 801d498 <tcp_process+0x724>
  72122. 801d4b8: 687b ldr r3, [r7, #4]
  72123. 801d4ba: 2200 movs r2, #0
  72124. 801d4bc: 60da str r2, [r3, #12]
  72125. 801d4be: 4b1f ldr r3, [pc, #124] @ (801d53c <tcp_process+0x7c8>)
  72126. 801d4c0: 2201 movs r2, #1
  72127. 801d4c2: 701a strb r2, [r3, #0]
  72128. pcb->state = TIME_WAIT;
  72129. 801d4c4: 687b ldr r3, [r7, #4]
  72130. 801d4c6: 220a movs r2, #10
  72131. 801d4c8: 751a strb r2, [r3, #20]
  72132. TCP_REG(&tcp_tw_pcbs, pcb);
  72133. 801d4ca: 4b1d ldr r3, [pc, #116] @ (801d540 <tcp_process+0x7cc>)
  72134. 801d4cc: 681a ldr r2, [r3, #0]
  72135. 801d4ce: 687b ldr r3, [r7, #4]
  72136. 801d4d0: 60da str r2, [r3, #12]
  72137. 801d4d2: 4a1b ldr r2, [pc, #108] @ (801d540 <tcp_process+0x7cc>)
  72138. 801d4d4: 687b ldr r3, [r7, #4]
  72139. 801d4d6: 6013 str r3, [r2, #0]
  72140. 801d4d8: f003 f910 bl 80206fc <tcp_timer_needed>
  72141. }
  72142. break;
  72143. 801d4dc: e026 b.n 801d52c <tcp_process+0x7b8>
  72144. case LAST_ACK:
  72145. tcp_receive(pcb);
  72146. 801d4de: 6878 ldr r0, [r7, #4]
  72147. 801d4e0: f000 f93c bl 801d75c <tcp_receive>
  72148. if ((flags & TCP_ACK) && ackno == pcb->snd_nxt && pcb->unsent == NULL) {
  72149. 801d4e4: 4b17 ldr r3, [pc, #92] @ (801d544 <tcp_process+0x7d0>)
  72150. 801d4e6: 781b ldrb r3, [r3, #0]
  72151. 801d4e8: f003 0310 and.w r3, r3, #16
  72152. 801d4ec: 2b00 cmp r3, #0
  72153. 801d4ee: d01f beq.n 801d530 <tcp_process+0x7bc>
  72154. 801d4f0: 687b ldr r3, [r7, #4]
  72155. 801d4f2: 6d1a ldr r2, [r3, #80] @ 0x50
  72156. 801d4f4: 4b14 ldr r3, [pc, #80] @ (801d548 <tcp_process+0x7d4>)
  72157. 801d4f6: 681b ldr r3, [r3, #0]
  72158. 801d4f8: 429a cmp r2, r3
  72159. 801d4fa: d119 bne.n 801d530 <tcp_process+0x7bc>
  72160. 801d4fc: 687b ldr r3, [r7, #4]
  72161. 801d4fe: 6edb ldr r3, [r3, #108] @ 0x6c
  72162. 801d500: 2b00 cmp r3, #0
  72163. 801d502: d115 bne.n 801d530 <tcp_process+0x7bc>
  72164. LWIP_DEBUGF(TCP_DEBUG, ("TCP connection closed: LAST_ACK %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest));
  72165. /* bugfix #21699: don't set pcb->state to CLOSED here or we risk leaking segments */
  72166. recv_flags |= TF_CLOSED;
  72167. 801d504: 4b11 ldr r3, [pc, #68] @ (801d54c <tcp_process+0x7d8>)
  72168. 801d506: 781b ldrb r3, [r3, #0]
  72169. 801d508: f043 0310 orr.w r3, r3, #16
  72170. 801d50c: b2da uxtb r2, r3
  72171. 801d50e: 4b0f ldr r3, [pc, #60] @ (801d54c <tcp_process+0x7d8>)
  72172. 801d510: 701a strb r2, [r3, #0]
  72173. }
  72174. break;
  72175. 801d512: e00d b.n 801d530 <tcp_process+0x7bc>
  72176. default:
  72177. break;
  72178. 801d514: bf00 nop
  72179. 801d516: e00c b.n 801d532 <tcp_process+0x7be>
  72180. break;
  72181. 801d518: bf00 nop
  72182. 801d51a: e00a b.n 801d532 <tcp_process+0x7be>
  72183. break;
  72184. 801d51c: bf00 nop
  72185. 801d51e: e008 b.n 801d532 <tcp_process+0x7be>
  72186. break;
  72187. 801d520: bf00 nop
  72188. 801d522: e006 b.n 801d532 <tcp_process+0x7be>
  72189. break;
  72190. 801d524: bf00 nop
  72191. 801d526: e004 b.n 801d532 <tcp_process+0x7be>
  72192. break;
  72193. 801d528: bf00 nop
  72194. 801d52a: e002 b.n 801d532 <tcp_process+0x7be>
  72195. break;
  72196. 801d52c: bf00 nop
  72197. 801d52e: e000 b.n 801d532 <tcp_process+0x7be>
  72198. break;
  72199. 801d530: bf00 nop
  72200. }
  72201. return ERR_OK;
  72202. 801d532: 2300 movs r3, #0
  72203. }
  72204. 801d534: 4618 mov r0, r3
  72205. 801d536: 3724 adds r7, #36 @ 0x24
  72206. 801d538: 46bd mov sp, r7
  72207. 801d53a: bd90 pop {r4, r7, pc}
  72208. 801d53c: 2402a000 .word 0x2402a000
  72209. 801d540: 24029ffc .word 0x24029ffc
  72210. 801d544: 2402a034 .word 0x2402a034
  72211. 801d548: 2402a02c .word 0x2402a02c
  72212. 801d54c: 2402a035 .word 0x2402a035
  72213. 801d550: 24029ff8 .word 0x24029ff8
  72214. 0801d554 <tcp_oos_insert_segment>:
  72215. *
  72216. * Called from tcp_receive()
  72217. */
  72218. static void
  72219. tcp_oos_insert_segment(struct tcp_seg *cseg, struct tcp_seg *next)
  72220. {
  72221. 801d554: b590 push {r4, r7, lr}
  72222. 801d556: b085 sub sp, #20
  72223. 801d558: af00 add r7, sp, #0
  72224. 801d55a: 6078 str r0, [r7, #4]
  72225. 801d55c: 6039 str r1, [r7, #0]
  72226. struct tcp_seg *old_seg;
  72227. LWIP_ASSERT("tcp_oos_insert_segment: invalid cseg", cseg != NULL);
  72228. 801d55e: 687b ldr r3, [r7, #4]
  72229. 801d560: 2b00 cmp r3, #0
  72230. 801d562: d106 bne.n 801d572 <tcp_oos_insert_segment+0x1e>
  72231. 801d564: 4b3b ldr r3, [pc, #236] @ (801d654 <tcp_oos_insert_segment+0x100>)
  72232. 801d566: f240 421f movw r2, #1055 @ 0x41f
  72233. 801d56a: 493b ldr r1, [pc, #236] @ (801d658 <tcp_oos_insert_segment+0x104>)
  72234. 801d56c: 483b ldr r0, [pc, #236] @ (801d65c <tcp_oos_insert_segment+0x108>)
  72235. 801d56e: f00b ffcd bl 802950c <iprintf>
  72236. if (TCPH_FLAGS(cseg->tcphdr) & TCP_FIN) {
  72237. 801d572: 687b ldr r3, [r7, #4]
  72238. 801d574: 691b ldr r3, [r3, #16]
  72239. 801d576: 899b ldrh r3, [r3, #12]
  72240. 801d578: b29b uxth r3, r3
  72241. 801d57a: 4618 mov r0, r3
  72242. 801d57c: f7fb f86c bl 8018658 <lwip_htons>
  72243. 801d580: 4603 mov r3, r0
  72244. 801d582: b2db uxtb r3, r3
  72245. 801d584: f003 0301 and.w r3, r3, #1
  72246. 801d588: 2b00 cmp r3, #0
  72247. 801d58a: d028 beq.n 801d5de <tcp_oos_insert_segment+0x8a>
  72248. /* received segment overlaps all following segments */
  72249. tcp_segs_free(next);
  72250. 801d58c: 6838 ldr r0, [r7, #0]
  72251. 801d58e: f7fe f989 bl 801b8a4 <tcp_segs_free>
  72252. next = NULL;
  72253. 801d592: 2300 movs r3, #0
  72254. 801d594: 603b str r3, [r7, #0]
  72255. 801d596: e056 b.n 801d646 <tcp_oos_insert_segment+0xf2>
  72256. oos queue may have segments with FIN flag */
  72257. while (next &&
  72258. TCP_SEQ_GEQ((seqno + cseg->len),
  72259. (next->tcphdr->seqno + next->len))) {
  72260. /* cseg with FIN already processed */
  72261. if (TCPH_FLAGS(next->tcphdr) & TCP_FIN) {
  72262. 801d598: 683b ldr r3, [r7, #0]
  72263. 801d59a: 691b ldr r3, [r3, #16]
  72264. 801d59c: 899b ldrh r3, [r3, #12]
  72265. 801d59e: b29b uxth r3, r3
  72266. 801d5a0: 4618 mov r0, r3
  72267. 801d5a2: f7fb f859 bl 8018658 <lwip_htons>
  72268. 801d5a6: 4603 mov r3, r0
  72269. 801d5a8: b2db uxtb r3, r3
  72270. 801d5aa: f003 0301 and.w r3, r3, #1
  72271. 801d5ae: 2b00 cmp r3, #0
  72272. 801d5b0: d00d beq.n 801d5ce <tcp_oos_insert_segment+0x7a>
  72273. TCPH_SET_FLAG(cseg->tcphdr, TCP_FIN);
  72274. 801d5b2: 687b ldr r3, [r7, #4]
  72275. 801d5b4: 691b ldr r3, [r3, #16]
  72276. 801d5b6: 899b ldrh r3, [r3, #12]
  72277. 801d5b8: b29c uxth r4, r3
  72278. 801d5ba: 2001 movs r0, #1
  72279. 801d5bc: f7fb f84c bl 8018658 <lwip_htons>
  72280. 801d5c0: 4603 mov r3, r0
  72281. 801d5c2: 461a mov r2, r3
  72282. 801d5c4: 687b ldr r3, [r7, #4]
  72283. 801d5c6: 691b ldr r3, [r3, #16]
  72284. 801d5c8: 4322 orrs r2, r4
  72285. 801d5ca: b292 uxth r2, r2
  72286. 801d5cc: 819a strh r2, [r3, #12]
  72287. }
  72288. old_seg = next;
  72289. 801d5ce: 683b ldr r3, [r7, #0]
  72290. 801d5d0: 60fb str r3, [r7, #12]
  72291. next = next->next;
  72292. 801d5d2: 683b ldr r3, [r7, #0]
  72293. 801d5d4: 681b ldr r3, [r3, #0]
  72294. 801d5d6: 603b str r3, [r7, #0]
  72295. tcp_seg_free(old_seg);
  72296. 801d5d8: 68f8 ldr r0, [r7, #12]
  72297. 801d5da: f7fe f978 bl 801b8ce <tcp_seg_free>
  72298. while (next &&
  72299. 801d5de: 683b ldr r3, [r7, #0]
  72300. 801d5e0: 2b00 cmp r3, #0
  72301. 801d5e2: d00e beq.n 801d602 <tcp_oos_insert_segment+0xae>
  72302. TCP_SEQ_GEQ((seqno + cseg->len),
  72303. 801d5e4: 687b ldr r3, [r7, #4]
  72304. 801d5e6: 891b ldrh r3, [r3, #8]
  72305. 801d5e8: 461a mov r2, r3
  72306. 801d5ea: 4b1d ldr r3, [pc, #116] @ (801d660 <tcp_oos_insert_segment+0x10c>)
  72307. 801d5ec: 681b ldr r3, [r3, #0]
  72308. 801d5ee: 441a add r2, r3
  72309. 801d5f0: 683b ldr r3, [r7, #0]
  72310. 801d5f2: 691b ldr r3, [r3, #16]
  72311. 801d5f4: 685b ldr r3, [r3, #4]
  72312. 801d5f6: 6839 ldr r1, [r7, #0]
  72313. 801d5f8: 8909 ldrh r1, [r1, #8]
  72314. 801d5fa: 440b add r3, r1
  72315. 801d5fc: 1ad3 subs r3, r2, r3
  72316. while (next &&
  72317. 801d5fe: 2b00 cmp r3, #0
  72318. 801d600: daca bge.n 801d598 <tcp_oos_insert_segment+0x44>
  72319. }
  72320. if (next &&
  72321. 801d602: 683b ldr r3, [r7, #0]
  72322. 801d604: 2b00 cmp r3, #0
  72323. 801d606: d01e beq.n 801d646 <tcp_oos_insert_segment+0xf2>
  72324. TCP_SEQ_GT(seqno + cseg->len, next->tcphdr->seqno)) {
  72325. 801d608: 687b ldr r3, [r7, #4]
  72326. 801d60a: 891b ldrh r3, [r3, #8]
  72327. 801d60c: 461a mov r2, r3
  72328. 801d60e: 4b14 ldr r3, [pc, #80] @ (801d660 <tcp_oos_insert_segment+0x10c>)
  72329. 801d610: 681b ldr r3, [r3, #0]
  72330. 801d612: 441a add r2, r3
  72331. 801d614: 683b ldr r3, [r7, #0]
  72332. 801d616: 691b ldr r3, [r3, #16]
  72333. 801d618: 685b ldr r3, [r3, #4]
  72334. 801d61a: 1ad3 subs r3, r2, r3
  72335. if (next &&
  72336. 801d61c: 2b00 cmp r3, #0
  72337. 801d61e: dd12 ble.n 801d646 <tcp_oos_insert_segment+0xf2>
  72338. /* We need to trim the incoming segment. */
  72339. cseg->len = (u16_t)(next->tcphdr->seqno - seqno);
  72340. 801d620: 683b ldr r3, [r7, #0]
  72341. 801d622: 691b ldr r3, [r3, #16]
  72342. 801d624: 685b ldr r3, [r3, #4]
  72343. 801d626: b29a uxth r2, r3
  72344. 801d628: 4b0d ldr r3, [pc, #52] @ (801d660 <tcp_oos_insert_segment+0x10c>)
  72345. 801d62a: 681b ldr r3, [r3, #0]
  72346. 801d62c: b29b uxth r3, r3
  72347. 801d62e: 1ad3 subs r3, r2, r3
  72348. 801d630: b29a uxth r2, r3
  72349. 801d632: 687b ldr r3, [r7, #4]
  72350. 801d634: 811a strh r2, [r3, #8]
  72351. pbuf_realloc(cseg->p, cseg->len);
  72352. 801d636: 687b ldr r3, [r7, #4]
  72353. 801d638: 685a ldr r2, [r3, #4]
  72354. 801d63a: 687b ldr r3, [r7, #4]
  72355. 801d63c: 891b ldrh r3, [r3, #8]
  72356. 801d63e: 4619 mov r1, r3
  72357. 801d640: 4610 mov r0, r2
  72358. 801d642: f7fc fb35 bl 8019cb0 <pbuf_realloc>
  72359. }
  72360. }
  72361. cseg->next = next;
  72362. 801d646: 687b ldr r3, [r7, #4]
  72363. 801d648: 683a ldr r2, [r7, #0]
  72364. 801d64a: 601a str r2, [r3, #0]
  72365. }
  72366. 801d64c: bf00 nop
  72367. 801d64e: 3714 adds r7, #20
  72368. 801d650: 46bd mov sp, r7
  72369. 801d652: bd90 pop {r4, r7, pc}
  72370. 801d654: 0802e8a4 .word 0x0802e8a4
  72371. 801d658: 0802eb64 .word 0x0802eb64
  72372. 801d65c: 0802e8f0 .word 0x0802e8f0
  72373. 801d660: 2402a028 .word 0x2402a028
  72374. 0801d664 <tcp_free_acked_segments>:
  72375. /** Remove segments from a list if the incoming ACK acknowledges them */
  72376. static struct tcp_seg *
  72377. tcp_free_acked_segments(struct tcp_pcb *pcb, struct tcp_seg *seg_list, const char *dbg_list_name,
  72378. struct tcp_seg *dbg_other_seg_list)
  72379. {
  72380. 801d664: b5b0 push {r4, r5, r7, lr}
  72381. 801d666: b086 sub sp, #24
  72382. 801d668: af00 add r7, sp, #0
  72383. 801d66a: 60f8 str r0, [r7, #12]
  72384. 801d66c: 60b9 str r1, [r7, #8]
  72385. 801d66e: 607a str r2, [r7, #4]
  72386. 801d670: 603b str r3, [r7, #0]
  72387. u16_t clen;
  72388. LWIP_UNUSED_ARG(dbg_list_name);
  72389. LWIP_UNUSED_ARG(dbg_other_seg_list);
  72390. while (seg_list != NULL &&
  72391. 801d672: e03e b.n 801d6f2 <tcp_free_acked_segments+0x8e>
  72392. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: removing %"U32_F":%"U32_F" from pcb->%s\n",
  72393. lwip_ntohl(seg_list->tcphdr->seqno),
  72394. lwip_ntohl(seg_list->tcphdr->seqno) + TCP_TCPLEN(seg_list),
  72395. dbg_list_name));
  72396. next = seg_list;
  72397. 801d674: 68bb ldr r3, [r7, #8]
  72398. 801d676: 617b str r3, [r7, #20]
  72399. seg_list = seg_list->next;
  72400. 801d678: 68bb ldr r3, [r7, #8]
  72401. 801d67a: 681b ldr r3, [r3, #0]
  72402. 801d67c: 60bb str r3, [r7, #8]
  72403. clen = pbuf_clen(next->p);
  72404. 801d67e: 697b ldr r3, [r7, #20]
  72405. 801d680: 685b ldr r3, [r3, #4]
  72406. 801d682: 4618 mov r0, r3
  72407. 801d684: f7fc fd58 bl 801a138 <pbuf_clen>
  72408. 801d688: 4603 mov r3, r0
  72409. 801d68a: 827b strh r3, [r7, #18]
  72410. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_receive: queuelen %"TCPWNDSIZE_F" ... ",
  72411. (tcpwnd_size_t)pcb->snd_queuelen));
  72412. LWIP_ASSERT("pcb->snd_queuelen >= pbuf_clen(next->p)", (pcb->snd_queuelen >= clen));
  72413. 801d68c: 68fb ldr r3, [r7, #12]
  72414. 801d68e: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  72415. 801d692: 8a7a ldrh r2, [r7, #18]
  72416. 801d694: 429a cmp r2, r3
  72417. 801d696: d906 bls.n 801d6a6 <tcp_free_acked_segments+0x42>
  72418. 801d698: 4b2a ldr r3, [pc, #168] @ (801d744 <tcp_free_acked_segments+0xe0>)
  72419. 801d69a: f240 4257 movw r2, #1111 @ 0x457
  72420. 801d69e: 492a ldr r1, [pc, #168] @ (801d748 <tcp_free_acked_segments+0xe4>)
  72421. 801d6a0: 482a ldr r0, [pc, #168] @ (801d74c <tcp_free_acked_segments+0xe8>)
  72422. 801d6a2: f00b ff33 bl 802950c <iprintf>
  72423. pcb->snd_queuelen = (u16_t)(pcb->snd_queuelen - clen);
  72424. 801d6a6: 68fb ldr r3, [r7, #12]
  72425. 801d6a8: f8b3 2066 ldrh.w r2, [r3, #102] @ 0x66
  72426. 801d6ac: 8a7b ldrh r3, [r7, #18]
  72427. 801d6ae: 1ad3 subs r3, r2, r3
  72428. 801d6b0: b29a uxth r2, r3
  72429. 801d6b2: 68fb ldr r3, [r7, #12]
  72430. 801d6b4: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  72431. recv_acked = (tcpwnd_size_t)(recv_acked + next->len);
  72432. 801d6b8: 697b ldr r3, [r7, #20]
  72433. 801d6ba: 891a ldrh r2, [r3, #8]
  72434. 801d6bc: 4b24 ldr r3, [pc, #144] @ (801d750 <tcp_free_acked_segments+0xec>)
  72435. 801d6be: 881b ldrh r3, [r3, #0]
  72436. 801d6c0: 4413 add r3, r2
  72437. 801d6c2: b29a uxth r2, r3
  72438. 801d6c4: 4b22 ldr r3, [pc, #136] @ (801d750 <tcp_free_acked_segments+0xec>)
  72439. 801d6c6: 801a strh r2, [r3, #0]
  72440. tcp_seg_free(next);
  72441. 801d6c8: 6978 ldr r0, [r7, #20]
  72442. 801d6ca: f7fe f900 bl 801b8ce <tcp_seg_free>
  72443. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("%"TCPWNDSIZE_F" (after freeing %s)\n",
  72444. (tcpwnd_size_t)pcb->snd_queuelen,
  72445. dbg_list_name));
  72446. if (pcb->snd_queuelen != 0) {
  72447. 801d6ce: 68fb ldr r3, [r7, #12]
  72448. 801d6d0: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  72449. 801d6d4: 2b00 cmp r3, #0
  72450. 801d6d6: d00c beq.n 801d6f2 <tcp_free_acked_segments+0x8e>
  72451. LWIP_ASSERT("tcp_receive: valid queue length",
  72452. 801d6d8: 68bb ldr r3, [r7, #8]
  72453. 801d6da: 2b00 cmp r3, #0
  72454. 801d6dc: d109 bne.n 801d6f2 <tcp_free_acked_segments+0x8e>
  72455. 801d6de: 683b ldr r3, [r7, #0]
  72456. 801d6e0: 2b00 cmp r3, #0
  72457. 801d6e2: d106 bne.n 801d6f2 <tcp_free_acked_segments+0x8e>
  72458. 801d6e4: 4b17 ldr r3, [pc, #92] @ (801d744 <tcp_free_acked_segments+0xe0>)
  72459. 801d6e6: f240 4261 movw r2, #1121 @ 0x461
  72460. 801d6ea: 491a ldr r1, [pc, #104] @ (801d754 <tcp_free_acked_segments+0xf0>)
  72461. 801d6ec: 4817 ldr r0, [pc, #92] @ (801d74c <tcp_free_acked_segments+0xe8>)
  72462. 801d6ee: f00b ff0d bl 802950c <iprintf>
  72463. while (seg_list != NULL &&
  72464. 801d6f2: 68bb ldr r3, [r7, #8]
  72465. 801d6f4: 2b00 cmp r3, #0
  72466. 801d6f6: d020 beq.n 801d73a <tcp_free_acked_segments+0xd6>
  72467. TCP_SEQ_LEQ(lwip_ntohl(seg_list->tcphdr->seqno) +
  72468. 801d6f8: 68bb ldr r3, [r7, #8]
  72469. 801d6fa: 691b ldr r3, [r3, #16]
  72470. 801d6fc: 685b ldr r3, [r3, #4]
  72471. 801d6fe: 4618 mov r0, r3
  72472. 801d700: f7fa ffbf bl 8018682 <lwip_htonl>
  72473. 801d704: 4604 mov r4, r0
  72474. 801d706: 68bb ldr r3, [r7, #8]
  72475. 801d708: 891b ldrh r3, [r3, #8]
  72476. 801d70a: 461d mov r5, r3
  72477. 801d70c: 68bb ldr r3, [r7, #8]
  72478. 801d70e: 691b ldr r3, [r3, #16]
  72479. 801d710: 899b ldrh r3, [r3, #12]
  72480. 801d712: b29b uxth r3, r3
  72481. 801d714: 4618 mov r0, r3
  72482. 801d716: f7fa ff9f bl 8018658 <lwip_htons>
  72483. 801d71a: 4603 mov r3, r0
  72484. 801d71c: b2db uxtb r3, r3
  72485. 801d71e: f003 0303 and.w r3, r3, #3
  72486. 801d722: 2b00 cmp r3, #0
  72487. 801d724: d001 beq.n 801d72a <tcp_free_acked_segments+0xc6>
  72488. 801d726: 2301 movs r3, #1
  72489. 801d728: e000 b.n 801d72c <tcp_free_acked_segments+0xc8>
  72490. 801d72a: 2300 movs r3, #0
  72491. 801d72c: 442b add r3, r5
  72492. 801d72e: 18e2 adds r2, r4, r3
  72493. 801d730: 4b09 ldr r3, [pc, #36] @ (801d758 <tcp_free_acked_segments+0xf4>)
  72494. 801d732: 681b ldr r3, [r3, #0]
  72495. 801d734: 1ad3 subs r3, r2, r3
  72496. while (seg_list != NULL &&
  72497. 801d736: 2b00 cmp r3, #0
  72498. 801d738: dd9c ble.n 801d674 <tcp_free_acked_segments+0x10>
  72499. seg_list != NULL || dbg_other_seg_list != NULL);
  72500. }
  72501. }
  72502. return seg_list;
  72503. 801d73a: 68bb ldr r3, [r7, #8]
  72504. }
  72505. 801d73c: 4618 mov r0, r3
  72506. 801d73e: 3718 adds r7, #24
  72507. 801d740: 46bd mov sp, r7
  72508. 801d742: bdb0 pop {r4, r5, r7, pc}
  72509. 801d744: 0802e8a4 .word 0x0802e8a4
  72510. 801d748: 0802eb8c .word 0x0802eb8c
  72511. 801d74c: 0802e8f0 .word 0x0802e8f0
  72512. 801d750: 2402a030 .word 0x2402a030
  72513. 801d754: 0802ebb4 .word 0x0802ebb4
  72514. 801d758: 2402a02c .word 0x2402a02c
  72515. 0801d75c <tcp_receive>:
  72516. *
  72517. * Called from tcp_process().
  72518. */
  72519. static void
  72520. tcp_receive(struct tcp_pcb *pcb)
  72521. {
  72522. 801d75c: b5b0 push {r4, r5, r7, lr}
  72523. 801d75e: b094 sub sp, #80 @ 0x50
  72524. 801d760: af00 add r7, sp, #0
  72525. 801d762: 6078 str r0, [r7, #4]
  72526. s16_t m;
  72527. u32_t right_wnd_edge;
  72528. int found_dupack = 0;
  72529. 801d764: 2300 movs r3, #0
  72530. 801d766: 64bb str r3, [r7, #72] @ 0x48
  72531. LWIP_ASSERT("tcp_receive: invalid pcb", pcb != NULL);
  72532. 801d768: 687b ldr r3, [r7, #4]
  72533. 801d76a: 2b00 cmp r3, #0
  72534. 801d76c: d106 bne.n 801d77c <tcp_receive+0x20>
  72535. 801d76e: 4b91 ldr r3, [pc, #580] @ (801d9b4 <tcp_receive+0x258>)
  72536. 801d770: f240 427b movw r2, #1147 @ 0x47b
  72537. 801d774: 4990 ldr r1, [pc, #576] @ (801d9b8 <tcp_receive+0x25c>)
  72538. 801d776: 4891 ldr r0, [pc, #580] @ (801d9bc <tcp_receive+0x260>)
  72539. 801d778: f00b fec8 bl 802950c <iprintf>
  72540. LWIP_ASSERT("tcp_receive: wrong state", pcb->state >= ESTABLISHED);
  72541. 801d77c: 687b ldr r3, [r7, #4]
  72542. 801d77e: 7d1b ldrb r3, [r3, #20]
  72543. 801d780: 2b03 cmp r3, #3
  72544. 801d782: d806 bhi.n 801d792 <tcp_receive+0x36>
  72545. 801d784: 4b8b ldr r3, [pc, #556] @ (801d9b4 <tcp_receive+0x258>)
  72546. 801d786: f240 427c movw r2, #1148 @ 0x47c
  72547. 801d78a: 498d ldr r1, [pc, #564] @ (801d9c0 <tcp_receive+0x264>)
  72548. 801d78c: 488b ldr r0, [pc, #556] @ (801d9bc <tcp_receive+0x260>)
  72549. 801d78e: f00b febd bl 802950c <iprintf>
  72550. if (flags & TCP_ACK) {
  72551. 801d792: 4b8c ldr r3, [pc, #560] @ (801d9c4 <tcp_receive+0x268>)
  72552. 801d794: 781b ldrb r3, [r3, #0]
  72553. 801d796: f003 0310 and.w r3, r3, #16
  72554. 801d79a: 2b00 cmp r3, #0
  72555. 801d79c: f000 8264 beq.w 801dc68 <tcp_receive+0x50c>
  72556. right_wnd_edge = pcb->snd_wnd + pcb->snd_wl2;
  72557. 801d7a0: 687b ldr r3, [r7, #4]
  72558. 801d7a2: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  72559. 801d7a6: 461a mov r2, r3
  72560. 801d7a8: 687b ldr r3, [r7, #4]
  72561. 801d7aa: 6d9b ldr r3, [r3, #88] @ 0x58
  72562. 801d7ac: 4413 add r3, r2
  72563. 801d7ae: 633b str r3, [r7, #48] @ 0x30
  72564. /* Update window. */
  72565. if (TCP_SEQ_LT(pcb->snd_wl1, seqno) ||
  72566. 801d7b0: 687b ldr r3, [r7, #4]
  72567. 801d7b2: 6d5a ldr r2, [r3, #84] @ 0x54
  72568. 801d7b4: 4b84 ldr r3, [pc, #528] @ (801d9c8 <tcp_receive+0x26c>)
  72569. 801d7b6: 681b ldr r3, [r3, #0]
  72570. 801d7b8: 1ad3 subs r3, r2, r3
  72571. 801d7ba: 2b00 cmp r3, #0
  72572. 801d7bc: db1b blt.n 801d7f6 <tcp_receive+0x9a>
  72573. (pcb->snd_wl1 == seqno && TCP_SEQ_LT(pcb->snd_wl2, ackno)) ||
  72574. 801d7be: 687b ldr r3, [r7, #4]
  72575. 801d7c0: 6d5a ldr r2, [r3, #84] @ 0x54
  72576. 801d7c2: 4b81 ldr r3, [pc, #516] @ (801d9c8 <tcp_receive+0x26c>)
  72577. 801d7c4: 681b ldr r3, [r3, #0]
  72578. if (TCP_SEQ_LT(pcb->snd_wl1, seqno) ||
  72579. 801d7c6: 429a cmp r2, r3
  72580. 801d7c8: d106 bne.n 801d7d8 <tcp_receive+0x7c>
  72581. (pcb->snd_wl1 == seqno && TCP_SEQ_LT(pcb->snd_wl2, ackno)) ||
  72582. 801d7ca: 687b ldr r3, [r7, #4]
  72583. 801d7cc: 6d9a ldr r2, [r3, #88] @ 0x58
  72584. 801d7ce: 4b7f ldr r3, [pc, #508] @ (801d9cc <tcp_receive+0x270>)
  72585. 801d7d0: 681b ldr r3, [r3, #0]
  72586. 801d7d2: 1ad3 subs r3, r2, r3
  72587. 801d7d4: 2b00 cmp r3, #0
  72588. 801d7d6: db0e blt.n 801d7f6 <tcp_receive+0x9a>
  72589. (pcb->snd_wl2 == ackno && (u32_t)SND_WND_SCALE(pcb, tcphdr->wnd) > pcb->snd_wnd)) {
  72590. 801d7d8: 687b ldr r3, [r7, #4]
  72591. 801d7da: 6d9a ldr r2, [r3, #88] @ 0x58
  72592. 801d7dc: 4b7b ldr r3, [pc, #492] @ (801d9cc <tcp_receive+0x270>)
  72593. 801d7de: 681b ldr r3, [r3, #0]
  72594. (pcb->snd_wl1 == seqno && TCP_SEQ_LT(pcb->snd_wl2, ackno)) ||
  72595. 801d7e0: 429a cmp r2, r3
  72596. 801d7e2: d125 bne.n 801d830 <tcp_receive+0xd4>
  72597. (pcb->snd_wl2 == ackno && (u32_t)SND_WND_SCALE(pcb, tcphdr->wnd) > pcb->snd_wnd)) {
  72598. 801d7e4: 4b7a ldr r3, [pc, #488] @ (801d9d0 <tcp_receive+0x274>)
  72599. 801d7e6: 681b ldr r3, [r3, #0]
  72600. 801d7e8: 89db ldrh r3, [r3, #14]
  72601. 801d7ea: b29a uxth r2, r3
  72602. 801d7ec: 687b ldr r3, [r7, #4]
  72603. 801d7ee: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  72604. 801d7f2: 429a cmp r2, r3
  72605. 801d7f4: d91c bls.n 801d830 <tcp_receive+0xd4>
  72606. pcb->snd_wnd = SND_WND_SCALE(pcb, tcphdr->wnd);
  72607. 801d7f6: 4b76 ldr r3, [pc, #472] @ (801d9d0 <tcp_receive+0x274>)
  72608. 801d7f8: 681b ldr r3, [r3, #0]
  72609. 801d7fa: 89db ldrh r3, [r3, #14]
  72610. 801d7fc: b29a uxth r2, r3
  72611. 801d7fe: 687b ldr r3, [r7, #4]
  72612. 801d800: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  72613. /* keep track of the biggest window announced by the remote host to calculate
  72614. the maximum segment size */
  72615. if (pcb->snd_wnd_max < pcb->snd_wnd) {
  72616. 801d804: 687b ldr r3, [r7, #4]
  72617. 801d806: f8b3 2062 ldrh.w r2, [r3, #98] @ 0x62
  72618. 801d80a: 687b ldr r3, [r7, #4]
  72619. 801d80c: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  72620. 801d810: 429a cmp r2, r3
  72621. 801d812: d205 bcs.n 801d820 <tcp_receive+0xc4>
  72622. pcb->snd_wnd_max = pcb->snd_wnd;
  72623. 801d814: 687b ldr r3, [r7, #4]
  72624. 801d816: f8b3 2060 ldrh.w r2, [r3, #96] @ 0x60
  72625. 801d81a: 687b ldr r3, [r7, #4]
  72626. 801d81c: f8a3 2062 strh.w r2, [r3, #98] @ 0x62
  72627. }
  72628. pcb->snd_wl1 = seqno;
  72629. 801d820: 4b69 ldr r3, [pc, #420] @ (801d9c8 <tcp_receive+0x26c>)
  72630. 801d822: 681a ldr r2, [r3, #0]
  72631. 801d824: 687b ldr r3, [r7, #4]
  72632. 801d826: 655a str r2, [r3, #84] @ 0x54
  72633. pcb->snd_wl2 = ackno;
  72634. 801d828: 4b68 ldr r3, [pc, #416] @ (801d9cc <tcp_receive+0x270>)
  72635. 801d82a: 681a ldr r2, [r3, #0]
  72636. 801d82c: 687b ldr r3, [r7, #4]
  72637. 801d82e: 659a str r2, [r3, #88] @ 0x58
  72638. * If it only passes 1, should reset dupack counter
  72639. *
  72640. */
  72641. /* Clause 1 */
  72642. if (TCP_SEQ_LEQ(ackno, pcb->lastack)) {
  72643. 801d830: 4b66 ldr r3, [pc, #408] @ (801d9cc <tcp_receive+0x270>)
  72644. 801d832: 681a ldr r2, [r3, #0]
  72645. 801d834: 687b ldr r3, [r7, #4]
  72646. 801d836: 6c5b ldr r3, [r3, #68] @ 0x44
  72647. 801d838: 1ad3 subs r3, r2, r3
  72648. 801d83a: 2b00 cmp r3, #0
  72649. 801d83c: dc58 bgt.n 801d8f0 <tcp_receive+0x194>
  72650. /* Clause 2 */
  72651. if (tcplen == 0) {
  72652. 801d83e: 4b65 ldr r3, [pc, #404] @ (801d9d4 <tcp_receive+0x278>)
  72653. 801d840: 881b ldrh r3, [r3, #0]
  72654. 801d842: 2b00 cmp r3, #0
  72655. 801d844: d14b bne.n 801d8de <tcp_receive+0x182>
  72656. /* Clause 3 */
  72657. if (pcb->snd_wl2 + pcb->snd_wnd == right_wnd_edge) {
  72658. 801d846: 687b ldr r3, [r7, #4]
  72659. 801d848: 6d9b ldr r3, [r3, #88] @ 0x58
  72660. 801d84a: 687a ldr r2, [r7, #4]
  72661. 801d84c: f8b2 2060 ldrh.w r2, [r2, #96] @ 0x60
  72662. 801d850: 4413 add r3, r2
  72663. 801d852: 6b3a ldr r2, [r7, #48] @ 0x30
  72664. 801d854: 429a cmp r2, r3
  72665. 801d856: d142 bne.n 801d8de <tcp_receive+0x182>
  72666. /* Clause 4 */
  72667. if (pcb->rtime >= 0) {
  72668. 801d858: 687b ldr r3, [r7, #4]
  72669. 801d85a: f9b3 3030 ldrsh.w r3, [r3, #48] @ 0x30
  72670. 801d85e: 2b00 cmp r3, #0
  72671. 801d860: db3d blt.n 801d8de <tcp_receive+0x182>
  72672. /* Clause 5 */
  72673. if (pcb->lastack == ackno) {
  72674. 801d862: 687b ldr r3, [r7, #4]
  72675. 801d864: 6c5a ldr r2, [r3, #68] @ 0x44
  72676. 801d866: 4b59 ldr r3, [pc, #356] @ (801d9cc <tcp_receive+0x270>)
  72677. 801d868: 681b ldr r3, [r3, #0]
  72678. 801d86a: 429a cmp r2, r3
  72679. 801d86c: d137 bne.n 801d8de <tcp_receive+0x182>
  72680. found_dupack = 1;
  72681. 801d86e: 2301 movs r3, #1
  72682. 801d870: 64bb str r3, [r7, #72] @ 0x48
  72683. if ((u8_t)(pcb->dupacks + 1) > pcb->dupacks) {
  72684. 801d872: 687b ldr r3, [r7, #4]
  72685. 801d874: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  72686. 801d878: 2bff cmp r3, #255 @ 0xff
  72687. 801d87a: d007 beq.n 801d88c <tcp_receive+0x130>
  72688. ++pcb->dupacks;
  72689. 801d87c: 687b ldr r3, [r7, #4]
  72690. 801d87e: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  72691. 801d882: 3301 adds r3, #1
  72692. 801d884: b2da uxtb r2, r3
  72693. 801d886: 687b ldr r3, [r7, #4]
  72694. 801d888: f883 2043 strb.w r2, [r3, #67] @ 0x43
  72695. }
  72696. if (pcb->dupacks > 3) {
  72697. 801d88c: 687b ldr r3, [r7, #4]
  72698. 801d88e: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  72699. 801d892: 2b03 cmp r3, #3
  72700. 801d894: d91b bls.n 801d8ce <tcp_receive+0x172>
  72701. /* Inflate the congestion window */
  72702. TCP_WND_INC(pcb->cwnd, pcb->mss);
  72703. 801d896: 687b ldr r3, [r7, #4]
  72704. 801d898: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  72705. 801d89c: 687b ldr r3, [r7, #4]
  72706. 801d89e: 8e5b ldrh r3, [r3, #50] @ 0x32
  72707. 801d8a0: 4413 add r3, r2
  72708. 801d8a2: b29a uxth r2, r3
  72709. 801d8a4: 687b ldr r3, [r7, #4]
  72710. 801d8a6: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  72711. 801d8aa: 429a cmp r2, r3
  72712. 801d8ac: d30a bcc.n 801d8c4 <tcp_receive+0x168>
  72713. 801d8ae: 687b ldr r3, [r7, #4]
  72714. 801d8b0: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  72715. 801d8b4: 687b ldr r3, [r7, #4]
  72716. 801d8b6: 8e5b ldrh r3, [r3, #50] @ 0x32
  72717. 801d8b8: 4413 add r3, r2
  72718. 801d8ba: b29a uxth r2, r3
  72719. 801d8bc: 687b ldr r3, [r7, #4]
  72720. 801d8be: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  72721. 801d8c2: e004 b.n 801d8ce <tcp_receive+0x172>
  72722. 801d8c4: 687b ldr r3, [r7, #4]
  72723. 801d8c6: f64f 72ff movw r2, #65535 @ 0xffff
  72724. 801d8ca: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  72725. }
  72726. if (pcb->dupacks >= 3) {
  72727. 801d8ce: 687b ldr r3, [r7, #4]
  72728. 801d8d0: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  72729. 801d8d4: 2b02 cmp r3, #2
  72730. 801d8d6: d902 bls.n 801d8de <tcp_receive+0x182>
  72731. /* Do fast retransmit (checked via TF_INFR, not via dupacks count) */
  72732. tcp_rexmit_fast(pcb);
  72733. 801d8d8: 6878 ldr r0, [r7, #4]
  72734. 801d8da: f002 fbb3 bl 8020044 <tcp_rexmit_fast>
  72735. }
  72736. }
  72737. }
  72738. /* If Clause (1) or more is true, but not a duplicate ack, reset
  72739. * count of consecutive duplicate acks */
  72740. if (!found_dupack) {
  72741. 801d8de: 6cbb ldr r3, [r7, #72] @ 0x48
  72742. 801d8e0: 2b00 cmp r3, #0
  72743. 801d8e2: f040 8161 bne.w 801dba8 <tcp_receive+0x44c>
  72744. pcb->dupacks = 0;
  72745. 801d8e6: 687b ldr r3, [r7, #4]
  72746. 801d8e8: 2200 movs r2, #0
  72747. 801d8ea: f883 2043 strb.w r2, [r3, #67] @ 0x43
  72748. 801d8ee: e15b b.n 801dba8 <tcp_receive+0x44c>
  72749. }
  72750. } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) {
  72751. 801d8f0: 4b36 ldr r3, [pc, #216] @ (801d9cc <tcp_receive+0x270>)
  72752. 801d8f2: 681a ldr r2, [r3, #0]
  72753. 801d8f4: 687b ldr r3, [r7, #4]
  72754. 801d8f6: 6c5b ldr r3, [r3, #68] @ 0x44
  72755. 801d8f8: 1ad3 subs r3, r2, r3
  72756. 801d8fa: 3b01 subs r3, #1
  72757. 801d8fc: 2b00 cmp r3, #0
  72758. 801d8fe: f2c0 814e blt.w 801db9e <tcp_receive+0x442>
  72759. 801d902: 4b32 ldr r3, [pc, #200] @ (801d9cc <tcp_receive+0x270>)
  72760. 801d904: 681a ldr r2, [r3, #0]
  72761. 801d906: 687b ldr r3, [r7, #4]
  72762. 801d908: 6d1b ldr r3, [r3, #80] @ 0x50
  72763. 801d90a: 1ad3 subs r3, r2, r3
  72764. 801d90c: 2b00 cmp r3, #0
  72765. 801d90e: f300 8146 bgt.w 801db9e <tcp_receive+0x442>
  72766. tcpwnd_size_t acked;
  72767. /* Reset the "IN Fast Retransmit" flag, since we are no longer
  72768. in fast retransmit. Also reset the congestion window to the
  72769. slow start threshold. */
  72770. if (pcb->flags & TF_INFR) {
  72771. 801d912: 687b ldr r3, [r7, #4]
  72772. 801d914: 8b5b ldrh r3, [r3, #26]
  72773. 801d916: f003 0304 and.w r3, r3, #4
  72774. 801d91a: 2b00 cmp r3, #0
  72775. 801d91c: d010 beq.n 801d940 <tcp_receive+0x1e4>
  72776. tcp_clear_flags(pcb, TF_INFR);
  72777. 801d91e: 687b ldr r3, [r7, #4]
  72778. 801d920: 8b5b ldrh r3, [r3, #26]
  72779. 801d922: f023 0304 bic.w r3, r3, #4
  72780. 801d926: b29a uxth r2, r3
  72781. 801d928: 687b ldr r3, [r7, #4]
  72782. 801d92a: 835a strh r2, [r3, #26]
  72783. pcb->cwnd = pcb->ssthresh;
  72784. 801d92c: 687b ldr r3, [r7, #4]
  72785. 801d92e: f8b3 204a ldrh.w r2, [r3, #74] @ 0x4a
  72786. 801d932: 687b ldr r3, [r7, #4]
  72787. 801d934: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  72788. pcb->bytes_acked = 0;
  72789. 801d938: 687b ldr r3, [r7, #4]
  72790. 801d93a: 2200 movs r2, #0
  72791. 801d93c: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  72792. }
  72793. /* Reset the number of retransmissions. */
  72794. pcb->nrtx = 0;
  72795. 801d940: 687b ldr r3, [r7, #4]
  72796. 801d942: 2200 movs r2, #0
  72797. 801d944: f883 2042 strb.w r2, [r3, #66] @ 0x42
  72798. /* Reset the retransmission time-out. */
  72799. pcb->rto = (s16_t)((pcb->sa >> 3) + pcb->sv);
  72800. 801d948: 687b ldr r3, [r7, #4]
  72801. 801d94a: f9b3 303c ldrsh.w r3, [r3, #60] @ 0x3c
  72802. 801d94e: 10db asrs r3, r3, #3
  72803. 801d950: b21b sxth r3, r3
  72804. 801d952: b29a uxth r2, r3
  72805. 801d954: 687b ldr r3, [r7, #4]
  72806. 801d956: f9b3 303e ldrsh.w r3, [r3, #62] @ 0x3e
  72807. 801d95a: b29b uxth r3, r3
  72808. 801d95c: 4413 add r3, r2
  72809. 801d95e: b29b uxth r3, r3
  72810. 801d960: b21a sxth r2, r3
  72811. 801d962: 687b ldr r3, [r7, #4]
  72812. 801d964: f8a3 2040 strh.w r2, [r3, #64] @ 0x40
  72813. /* Record how much data this ACK acks */
  72814. acked = (tcpwnd_size_t)(ackno - pcb->lastack);
  72815. 801d968: 4b18 ldr r3, [pc, #96] @ (801d9cc <tcp_receive+0x270>)
  72816. 801d96a: 681b ldr r3, [r3, #0]
  72817. 801d96c: b29a uxth r2, r3
  72818. 801d96e: 687b ldr r3, [r7, #4]
  72819. 801d970: 6c5b ldr r3, [r3, #68] @ 0x44
  72820. 801d972: b29b uxth r3, r3
  72821. 801d974: 1ad3 subs r3, r2, r3
  72822. 801d976: 85fb strh r3, [r7, #46] @ 0x2e
  72823. /* Reset the fast retransmit variables. */
  72824. pcb->dupacks = 0;
  72825. 801d978: 687b ldr r3, [r7, #4]
  72826. 801d97a: 2200 movs r2, #0
  72827. 801d97c: f883 2043 strb.w r2, [r3, #67] @ 0x43
  72828. pcb->lastack = ackno;
  72829. 801d980: 4b12 ldr r3, [pc, #72] @ (801d9cc <tcp_receive+0x270>)
  72830. 801d982: 681a ldr r2, [r3, #0]
  72831. 801d984: 687b ldr r3, [r7, #4]
  72832. 801d986: 645a str r2, [r3, #68] @ 0x44
  72833. /* Update the congestion control variables (cwnd and
  72834. ssthresh). */
  72835. if (pcb->state >= ESTABLISHED) {
  72836. 801d988: 687b ldr r3, [r7, #4]
  72837. 801d98a: 7d1b ldrb r3, [r3, #20]
  72838. 801d98c: 2b03 cmp r3, #3
  72839. 801d98e: f240 8097 bls.w 801dac0 <tcp_receive+0x364>
  72840. if (pcb->cwnd < pcb->ssthresh) {
  72841. 801d992: 687b ldr r3, [r7, #4]
  72842. 801d994: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  72843. 801d998: 687b ldr r3, [r7, #4]
  72844. 801d99a: f8b3 304a ldrh.w r3, [r3, #74] @ 0x4a
  72845. 801d99e: 429a cmp r2, r3
  72846. 801d9a0: d245 bcs.n 801da2e <tcp_receive+0x2d2>
  72847. tcpwnd_size_t increase;
  72848. /* limit to 1 SMSS segment during period following RTO */
  72849. u8_t num_seg = (pcb->flags & TF_RTO) ? 1 : 2;
  72850. 801d9a2: 687b ldr r3, [r7, #4]
  72851. 801d9a4: 8b5b ldrh r3, [r3, #26]
  72852. 801d9a6: f403 6300 and.w r3, r3, #2048 @ 0x800
  72853. 801d9aa: 2b00 cmp r3, #0
  72854. 801d9ac: d014 beq.n 801d9d8 <tcp_receive+0x27c>
  72855. 801d9ae: 2301 movs r3, #1
  72856. 801d9b0: e013 b.n 801d9da <tcp_receive+0x27e>
  72857. 801d9b2: bf00 nop
  72858. 801d9b4: 0802e8a4 .word 0x0802e8a4
  72859. 801d9b8: 0802ebd4 .word 0x0802ebd4
  72860. 801d9bc: 0802e8f0 .word 0x0802e8f0
  72861. 801d9c0: 0802ebf0 .word 0x0802ebf0
  72862. 801d9c4: 2402a034 .word 0x2402a034
  72863. 801d9c8: 2402a028 .word 0x2402a028
  72864. 801d9cc: 2402a02c .word 0x2402a02c
  72865. 801d9d0: 2402a018 .word 0x2402a018
  72866. 801d9d4: 2402a032 .word 0x2402a032
  72867. 801d9d8: 2302 movs r3, #2
  72868. 801d9da: f887 302d strb.w r3, [r7, #45] @ 0x2d
  72869. /* RFC 3465, section 2.2 Slow Start */
  72870. increase = LWIP_MIN(acked, (tcpwnd_size_t)(num_seg * pcb->mss));
  72871. 801d9de: f897 302d ldrb.w r3, [r7, #45] @ 0x2d
  72872. 801d9e2: b29a uxth r2, r3
  72873. 801d9e4: 687b ldr r3, [r7, #4]
  72874. 801d9e6: 8e5b ldrh r3, [r3, #50] @ 0x32
  72875. 801d9e8: fb12 f303 smulbb r3, r2, r3
  72876. 801d9ec: b29b uxth r3, r3
  72877. 801d9ee: 8dfa ldrh r2, [r7, #46] @ 0x2e
  72878. 801d9f0: 4293 cmp r3, r2
  72879. 801d9f2: bf28 it cs
  72880. 801d9f4: 4613 movcs r3, r2
  72881. 801d9f6: 857b strh r3, [r7, #42] @ 0x2a
  72882. TCP_WND_INC(pcb->cwnd, increase);
  72883. 801d9f8: 687b ldr r3, [r7, #4]
  72884. 801d9fa: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  72885. 801d9fe: 8d7b ldrh r3, [r7, #42] @ 0x2a
  72886. 801da00: 4413 add r3, r2
  72887. 801da02: b29a uxth r2, r3
  72888. 801da04: 687b ldr r3, [r7, #4]
  72889. 801da06: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  72890. 801da0a: 429a cmp r2, r3
  72891. 801da0c: d309 bcc.n 801da22 <tcp_receive+0x2c6>
  72892. 801da0e: 687b ldr r3, [r7, #4]
  72893. 801da10: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  72894. 801da14: 8d7b ldrh r3, [r7, #42] @ 0x2a
  72895. 801da16: 4413 add r3, r2
  72896. 801da18: b29a uxth r2, r3
  72897. 801da1a: 687b ldr r3, [r7, #4]
  72898. 801da1c: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  72899. 801da20: e04e b.n 801dac0 <tcp_receive+0x364>
  72900. 801da22: 687b ldr r3, [r7, #4]
  72901. 801da24: f64f 72ff movw r2, #65535 @ 0xffff
  72902. 801da28: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  72903. 801da2c: e048 b.n 801dac0 <tcp_receive+0x364>
  72904. LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_receive: slow start cwnd %"TCPWNDSIZE_F"\n", pcb->cwnd));
  72905. } else {
  72906. /* RFC 3465, section 2.1 Congestion Avoidance */
  72907. TCP_WND_INC(pcb->bytes_acked, acked);
  72908. 801da2e: 687b ldr r3, [r7, #4]
  72909. 801da30: f8b3 206a ldrh.w r2, [r3, #106] @ 0x6a
  72910. 801da34: 8dfb ldrh r3, [r7, #46] @ 0x2e
  72911. 801da36: 4413 add r3, r2
  72912. 801da38: b29a uxth r2, r3
  72913. 801da3a: 687b ldr r3, [r7, #4]
  72914. 801da3c: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  72915. 801da40: 429a cmp r2, r3
  72916. 801da42: d309 bcc.n 801da58 <tcp_receive+0x2fc>
  72917. 801da44: 687b ldr r3, [r7, #4]
  72918. 801da46: f8b3 206a ldrh.w r2, [r3, #106] @ 0x6a
  72919. 801da4a: 8dfb ldrh r3, [r7, #46] @ 0x2e
  72920. 801da4c: 4413 add r3, r2
  72921. 801da4e: b29a uxth r2, r3
  72922. 801da50: 687b ldr r3, [r7, #4]
  72923. 801da52: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  72924. 801da56: e004 b.n 801da62 <tcp_receive+0x306>
  72925. 801da58: 687b ldr r3, [r7, #4]
  72926. 801da5a: f64f 72ff movw r2, #65535 @ 0xffff
  72927. 801da5e: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  72928. if (pcb->bytes_acked >= pcb->cwnd) {
  72929. 801da62: 687b ldr r3, [r7, #4]
  72930. 801da64: f8b3 206a ldrh.w r2, [r3, #106] @ 0x6a
  72931. 801da68: 687b ldr r3, [r7, #4]
  72932. 801da6a: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  72933. 801da6e: 429a cmp r2, r3
  72934. 801da70: d326 bcc.n 801dac0 <tcp_receive+0x364>
  72935. pcb->bytes_acked = (tcpwnd_size_t)(pcb->bytes_acked - pcb->cwnd);
  72936. 801da72: 687b ldr r3, [r7, #4]
  72937. 801da74: f8b3 206a ldrh.w r2, [r3, #106] @ 0x6a
  72938. 801da78: 687b ldr r3, [r7, #4]
  72939. 801da7a: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  72940. 801da7e: 1ad3 subs r3, r2, r3
  72941. 801da80: b29a uxth r2, r3
  72942. 801da82: 687b ldr r3, [r7, #4]
  72943. 801da84: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  72944. TCP_WND_INC(pcb->cwnd, pcb->mss);
  72945. 801da88: 687b ldr r3, [r7, #4]
  72946. 801da8a: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  72947. 801da8e: 687b ldr r3, [r7, #4]
  72948. 801da90: 8e5b ldrh r3, [r3, #50] @ 0x32
  72949. 801da92: 4413 add r3, r2
  72950. 801da94: b29a uxth r2, r3
  72951. 801da96: 687b ldr r3, [r7, #4]
  72952. 801da98: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  72953. 801da9c: 429a cmp r2, r3
  72954. 801da9e: d30a bcc.n 801dab6 <tcp_receive+0x35a>
  72955. 801daa0: 687b ldr r3, [r7, #4]
  72956. 801daa2: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  72957. 801daa6: 687b ldr r3, [r7, #4]
  72958. 801daa8: 8e5b ldrh r3, [r3, #50] @ 0x32
  72959. 801daaa: 4413 add r3, r2
  72960. 801daac: b29a uxth r2, r3
  72961. 801daae: 687b ldr r3, [r7, #4]
  72962. 801dab0: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  72963. 801dab4: e004 b.n 801dac0 <tcp_receive+0x364>
  72964. 801dab6: 687b ldr r3, [r7, #4]
  72965. 801dab8: f64f 72ff movw r2, #65535 @ 0xffff
  72966. 801dabc: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  72967. pcb->unacked != NULL ?
  72968. lwip_ntohl(pcb->unacked->tcphdr->seqno) + TCP_TCPLEN(pcb->unacked) : 0));
  72969. /* Remove segment from the unacknowledged list if the incoming
  72970. ACK acknowledges them. */
  72971. pcb->unacked = tcp_free_acked_segments(pcb, pcb->unacked, "unacked", pcb->unsent);
  72972. 801dac0: 687b ldr r3, [r7, #4]
  72973. 801dac2: 6f19 ldr r1, [r3, #112] @ 0x70
  72974. 801dac4: 687b ldr r3, [r7, #4]
  72975. 801dac6: 6edb ldr r3, [r3, #108] @ 0x6c
  72976. 801dac8: 4a98 ldr r2, [pc, #608] @ (801dd2c <tcp_receive+0x5d0>)
  72977. 801daca: 6878 ldr r0, [r7, #4]
  72978. 801dacc: f7ff fdca bl 801d664 <tcp_free_acked_segments>
  72979. 801dad0: 4602 mov r2, r0
  72980. 801dad2: 687b ldr r3, [r7, #4]
  72981. 801dad4: 671a str r2, [r3, #112] @ 0x70
  72982. on the list are acknowledged by the ACK. This may seem
  72983. strange since an "unsent" segment shouldn't be acked. The
  72984. rationale is that lwIP puts all outstanding segments on the
  72985. ->unsent list after a retransmission, so these segments may
  72986. in fact have been sent once. */
  72987. pcb->unsent = tcp_free_acked_segments(pcb, pcb->unsent, "unsent", pcb->unacked);
  72988. 801dad6: 687b ldr r3, [r7, #4]
  72989. 801dad8: 6ed9 ldr r1, [r3, #108] @ 0x6c
  72990. 801dada: 687b ldr r3, [r7, #4]
  72991. 801dadc: 6f1b ldr r3, [r3, #112] @ 0x70
  72992. 801dade: 4a94 ldr r2, [pc, #592] @ (801dd30 <tcp_receive+0x5d4>)
  72993. 801dae0: 6878 ldr r0, [r7, #4]
  72994. 801dae2: f7ff fdbf bl 801d664 <tcp_free_acked_segments>
  72995. 801dae6: 4602 mov r2, r0
  72996. 801dae8: 687b ldr r3, [r7, #4]
  72997. 801daea: 66da str r2, [r3, #108] @ 0x6c
  72998. /* If there's nothing left to acknowledge, stop the retransmit
  72999. timer, otherwise reset it to start again */
  73000. if (pcb->unacked == NULL) {
  73001. 801daec: 687b ldr r3, [r7, #4]
  73002. 801daee: 6f1b ldr r3, [r3, #112] @ 0x70
  73003. 801daf0: 2b00 cmp r3, #0
  73004. 801daf2: d104 bne.n 801dafe <tcp_receive+0x3a2>
  73005. pcb->rtime = -1;
  73006. 801daf4: 687b ldr r3, [r7, #4]
  73007. 801daf6: f64f 72ff movw r2, #65535 @ 0xffff
  73008. 801dafa: 861a strh r2, [r3, #48] @ 0x30
  73009. 801dafc: e002 b.n 801db04 <tcp_receive+0x3a8>
  73010. } else {
  73011. pcb->rtime = 0;
  73012. 801dafe: 687b ldr r3, [r7, #4]
  73013. 801db00: 2200 movs r2, #0
  73014. 801db02: 861a strh r2, [r3, #48] @ 0x30
  73015. }
  73016. pcb->polltmr = 0;
  73017. 801db04: 687b ldr r3, [r7, #4]
  73018. 801db06: 2200 movs r2, #0
  73019. 801db08: 771a strb r2, [r3, #28]
  73020. #if TCP_OVERSIZE
  73021. if (pcb->unsent == NULL) {
  73022. 801db0a: 687b ldr r3, [r7, #4]
  73023. 801db0c: 6edb ldr r3, [r3, #108] @ 0x6c
  73024. 801db0e: 2b00 cmp r3, #0
  73025. 801db10: d103 bne.n 801db1a <tcp_receive+0x3be>
  73026. pcb->unsent_oversize = 0;
  73027. 801db12: 687b ldr r3, [r7, #4]
  73028. 801db14: 2200 movs r2, #0
  73029. 801db16: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  73030. /* Inform neighbor reachability of forward progress. */
  73031. nd6_reachability_hint(ip6_current_src_addr());
  73032. }
  73033. #endif /* LWIP_IPV6 && LWIP_ND6_TCP_REACHABILITY_HINTS*/
  73034. pcb->snd_buf = (tcpwnd_size_t)(pcb->snd_buf + recv_acked);
  73035. 801db1a: 687b ldr r3, [r7, #4]
  73036. 801db1c: f8b3 2064 ldrh.w r2, [r3, #100] @ 0x64
  73037. 801db20: 4b84 ldr r3, [pc, #528] @ (801dd34 <tcp_receive+0x5d8>)
  73038. 801db22: 881b ldrh r3, [r3, #0]
  73039. 801db24: 4413 add r3, r2
  73040. 801db26: b29a uxth r2, r3
  73041. 801db28: 687b ldr r3, [r7, #4]
  73042. 801db2a: f8a3 2064 strh.w r2, [r3, #100] @ 0x64
  73043. /* check if this ACK ends our retransmission of in-flight data */
  73044. if (pcb->flags & TF_RTO) {
  73045. 801db2e: 687b ldr r3, [r7, #4]
  73046. 801db30: 8b5b ldrh r3, [r3, #26]
  73047. 801db32: f403 6300 and.w r3, r3, #2048 @ 0x800
  73048. 801db36: 2b00 cmp r3, #0
  73049. 801db38: d035 beq.n 801dba6 <tcp_receive+0x44a>
  73050. /* RTO is done if
  73051. 1) both queues are empty or
  73052. 2) unacked is empty and unsent head contains data not part of RTO or
  73053. 3) unacked head contains data not part of RTO */
  73054. if (pcb->unacked == NULL) {
  73055. 801db3a: 687b ldr r3, [r7, #4]
  73056. 801db3c: 6f1b ldr r3, [r3, #112] @ 0x70
  73057. 801db3e: 2b00 cmp r3, #0
  73058. 801db40: d118 bne.n 801db74 <tcp_receive+0x418>
  73059. if ((pcb->unsent == NULL) ||
  73060. 801db42: 687b ldr r3, [r7, #4]
  73061. 801db44: 6edb ldr r3, [r3, #108] @ 0x6c
  73062. 801db46: 2b00 cmp r3, #0
  73063. 801db48: d00c beq.n 801db64 <tcp_receive+0x408>
  73064. (TCP_SEQ_LEQ(pcb->rto_end, lwip_ntohl(pcb->unsent->tcphdr->seqno)))) {
  73065. 801db4a: 687b ldr r3, [r7, #4]
  73066. 801db4c: 6cdc ldr r4, [r3, #76] @ 0x4c
  73067. 801db4e: 687b ldr r3, [r7, #4]
  73068. 801db50: 6edb ldr r3, [r3, #108] @ 0x6c
  73069. 801db52: 691b ldr r3, [r3, #16]
  73070. 801db54: 685b ldr r3, [r3, #4]
  73071. 801db56: 4618 mov r0, r3
  73072. 801db58: f7fa fd93 bl 8018682 <lwip_htonl>
  73073. 801db5c: 4603 mov r3, r0
  73074. 801db5e: 1ae3 subs r3, r4, r3
  73075. if ((pcb->unsent == NULL) ||
  73076. 801db60: 2b00 cmp r3, #0
  73077. 801db62: dc20 bgt.n 801dba6 <tcp_receive+0x44a>
  73078. tcp_clear_flags(pcb, TF_RTO);
  73079. 801db64: 687b ldr r3, [r7, #4]
  73080. 801db66: 8b5b ldrh r3, [r3, #26]
  73081. 801db68: f423 6300 bic.w r3, r3, #2048 @ 0x800
  73082. 801db6c: b29a uxth r2, r3
  73083. 801db6e: 687b ldr r3, [r7, #4]
  73084. 801db70: 835a strh r2, [r3, #26]
  73085. } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) {
  73086. 801db72: e018 b.n 801dba6 <tcp_receive+0x44a>
  73087. }
  73088. } else if (TCP_SEQ_LEQ(pcb->rto_end, lwip_ntohl(pcb->unacked->tcphdr->seqno))) {
  73089. 801db74: 687b ldr r3, [r7, #4]
  73090. 801db76: 6cdc ldr r4, [r3, #76] @ 0x4c
  73091. 801db78: 687b ldr r3, [r7, #4]
  73092. 801db7a: 6f1b ldr r3, [r3, #112] @ 0x70
  73093. 801db7c: 691b ldr r3, [r3, #16]
  73094. 801db7e: 685b ldr r3, [r3, #4]
  73095. 801db80: 4618 mov r0, r3
  73096. 801db82: f7fa fd7e bl 8018682 <lwip_htonl>
  73097. 801db86: 4603 mov r3, r0
  73098. 801db88: 1ae3 subs r3, r4, r3
  73099. 801db8a: 2b00 cmp r3, #0
  73100. 801db8c: dc0b bgt.n 801dba6 <tcp_receive+0x44a>
  73101. tcp_clear_flags(pcb, TF_RTO);
  73102. 801db8e: 687b ldr r3, [r7, #4]
  73103. 801db90: 8b5b ldrh r3, [r3, #26]
  73104. 801db92: f423 6300 bic.w r3, r3, #2048 @ 0x800
  73105. 801db96: b29a uxth r2, r3
  73106. 801db98: 687b ldr r3, [r7, #4]
  73107. 801db9a: 835a strh r2, [r3, #26]
  73108. } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) {
  73109. 801db9c: e003 b.n 801dba6 <tcp_receive+0x44a>
  73110. }
  73111. }
  73112. /* End of ACK for new data processing. */
  73113. } else {
  73114. /* Out of sequence ACK, didn't really ack anything */
  73115. tcp_send_empty_ack(pcb);
  73116. 801db9e: 6878 ldr r0, [r7, #4]
  73117. 801dba0: f002 fc3c bl 802041c <tcp_send_empty_ack>
  73118. 801dba4: e000 b.n 801dba8 <tcp_receive+0x44c>
  73119. } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) {
  73120. 801dba6: bf00 nop
  73121. pcb->rttest, pcb->rtseq, ackno));
  73122. /* RTT estimation calculations. This is done by checking if the
  73123. incoming segment acknowledges the segment we use to take a
  73124. round-trip time measurement. */
  73125. if (pcb->rttest && TCP_SEQ_LT(pcb->rtseq, ackno)) {
  73126. 801dba8: 687b ldr r3, [r7, #4]
  73127. 801dbaa: 6b5b ldr r3, [r3, #52] @ 0x34
  73128. 801dbac: 2b00 cmp r3, #0
  73129. 801dbae: d05b beq.n 801dc68 <tcp_receive+0x50c>
  73130. 801dbb0: 687b ldr r3, [r7, #4]
  73131. 801dbb2: 6b9a ldr r2, [r3, #56] @ 0x38
  73132. 801dbb4: 4b60 ldr r3, [pc, #384] @ (801dd38 <tcp_receive+0x5dc>)
  73133. 801dbb6: 681b ldr r3, [r3, #0]
  73134. 801dbb8: 1ad3 subs r3, r2, r3
  73135. 801dbba: 2b00 cmp r3, #0
  73136. 801dbbc: da54 bge.n 801dc68 <tcp_receive+0x50c>
  73137. /* diff between this shouldn't exceed 32K since this are tcp timer ticks
  73138. and a round-trip shouldn't be that long... */
  73139. m = (s16_t)(tcp_ticks - pcb->rttest);
  73140. 801dbbe: 4b5f ldr r3, [pc, #380] @ (801dd3c <tcp_receive+0x5e0>)
  73141. 801dbc0: 681b ldr r3, [r3, #0]
  73142. 801dbc2: b29a uxth r2, r3
  73143. 801dbc4: 687b ldr r3, [r7, #4]
  73144. 801dbc6: 6b5b ldr r3, [r3, #52] @ 0x34
  73145. 801dbc8: b29b uxth r3, r3
  73146. 801dbca: 1ad3 subs r3, r2, r3
  73147. 801dbcc: b29b uxth r3, r3
  73148. 801dbce: f8a7 304e strh.w r3, [r7, #78] @ 0x4e
  73149. LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_receive: experienced rtt %"U16_F" ticks (%"U16_F" msec).\n",
  73150. m, (u16_t)(m * TCP_SLOW_INTERVAL)));
  73151. /* This is taken directly from VJs original code in his paper */
  73152. m = (s16_t)(m - (pcb->sa >> 3));
  73153. 801dbd2: f8b7 204e ldrh.w r2, [r7, #78] @ 0x4e
  73154. 801dbd6: 687b ldr r3, [r7, #4]
  73155. 801dbd8: f9b3 303c ldrsh.w r3, [r3, #60] @ 0x3c
  73156. 801dbdc: 10db asrs r3, r3, #3
  73157. 801dbde: b21b sxth r3, r3
  73158. 801dbe0: b29b uxth r3, r3
  73159. 801dbe2: 1ad3 subs r3, r2, r3
  73160. 801dbe4: b29b uxth r3, r3
  73161. 801dbe6: f8a7 304e strh.w r3, [r7, #78] @ 0x4e
  73162. pcb->sa = (s16_t)(pcb->sa + m);
  73163. 801dbea: 687b ldr r3, [r7, #4]
  73164. 801dbec: f9b3 303c ldrsh.w r3, [r3, #60] @ 0x3c
  73165. 801dbf0: b29a uxth r2, r3
  73166. 801dbf2: f8b7 304e ldrh.w r3, [r7, #78] @ 0x4e
  73167. 801dbf6: 4413 add r3, r2
  73168. 801dbf8: b29b uxth r3, r3
  73169. 801dbfa: b21a sxth r2, r3
  73170. 801dbfc: 687b ldr r3, [r7, #4]
  73171. 801dbfe: 879a strh r2, [r3, #60] @ 0x3c
  73172. if (m < 0) {
  73173. 801dc00: f9b7 304e ldrsh.w r3, [r7, #78] @ 0x4e
  73174. 801dc04: 2b00 cmp r3, #0
  73175. 801dc06: da05 bge.n 801dc14 <tcp_receive+0x4b8>
  73176. m = (s16_t) - m;
  73177. 801dc08: f8b7 304e ldrh.w r3, [r7, #78] @ 0x4e
  73178. 801dc0c: 425b negs r3, r3
  73179. 801dc0e: b29b uxth r3, r3
  73180. 801dc10: f8a7 304e strh.w r3, [r7, #78] @ 0x4e
  73181. }
  73182. m = (s16_t)(m - (pcb->sv >> 2));
  73183. 801dc14: f8b7 204e ldrh.w r2, [r7, #78] @ 0x4e
  73184. 801dc18: 687b ldr r3, [r7, #4]
  73185. 801dc1a: f9b3 303e ldrsh.w r3, [r3, #62] @ 0x3e
  73186. 801dc1e: 109b asrs r3, r3, #2
  73187. 801dc20: b21b sxth r3, r3
  73188. 801dc22: b29b uxth r3, r3
  73189. 801dc24: 1ad3 subs r3, r2, r3
  73190. 801dc26: b29b uxth r3, r3
  73191. 801dc28: f8a7 304e strh.w r3, [r7, #78] @ 0x4e
  73192. pcb->sv = (s16_t)(pcb->sv + m);
  73193. 801dc2c: 687b ldr r3, [r7, #4]
  73194. 801dc2e: f9b3 303e ldrsh.w r3, [r3, #62] @ 0x3e
  73195. 801dc32: b29a uxth r2, r3
  73196. 801dc34: f8b7 304e ldrh.w r3, [r7, #78] @ 0x4e
  73197. 801dc38: 4413 add r3, r2
  73198. 801dc3a: b29b uxth r3, r3
  73199. 801dc3c: b21a sxth r2, r3
  73200. 801dc3e: 687b ldr r3, [r7, #4]
  73201. 801dc40: 87da strh r2, [r3, #62] @ 0x3e
  73202. pcb->rto = (s16_t)((pcb->sa >> 3) + pcb->sv);
  73203. 801dc42: 687b ldr r3, [r7, #4]
  73204. 801dc44: f9b3 303c ldrsh.w r3, [r3, #60] @ 0x3c
  73205. 801dc48: 10db asrs r3, r3, #3
  73206. 801dc4a: b21b sxth r3, r3
  73207. 801dc4c: b29a uxth r2, r3
  73208. 801dc4e: 687b ldr r3, [r7, #4]
  73209. 801dc50: f9b3 303e ldrsh.w r3, [r3, #62] @ 0x3e
  73210. 801dc54: b29b uxth r3, r3
  73211. 801dc56: 4413 add r3, r2
  73212. 801dc58: b29b uxth r3, r3
  73213. 801dc5a: b21a sxth r2, r3
  73214. 801dc5c: 687b ldr r3, [r7, #4]
  73215. 801dc5e: f8a3 2040 strh.w r2, [r3, #64] @ 0x40
  73216. LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_receive: RTO %"U16_F" (%"U16_F" milliseconds)\n",
  73217. pcb->rto, (u16_t)(pcb->rto * TCP_SLOW_INTERVAL)));
  73218. pcb->rttest = 0;
  73219. 801dc62: 687b ldr r3, [r7, #4]
  73220. 801dc64: 2200 movs r2, #0
  73221. 801dc66: 635a str r2, [r3, #52] @ 0x34
  73222. /* If the incoming segment contains data, we must process it
  73223. further unless the pcb already received a FIN.
  73224. (RFC 793, chapter 3.9, "SEGMENT ARRIVES" in states CLOSE-WAIT, CLOSING,
  73225. LAST-ACK and TIME-WAIT: "Ignore the segment text.") */
  73226. if ((tcplen > 0) && (pcb->state < CLOSE_WAIT)) {
  73227. 801dc68: 4b35 ldr r3, [pc, #212] @ (801dd40 <tcp_receive+0x5e4>)
  73228. 801dc6a: 881b ldrh r3, [r3, #0]
  73229. 801dc6c: 2b00 cmp r3, #0
  73230. 801dc6e: f000 84df beq.w 801e630 <tcp_receive+0xed4>
  73231. 801dc72: 687b ldr r3, [r7, #4]
  73232. 801dc74: 7d1b ldrb r3, [r3, #20]
  73233. 801dc76: 2b06 cmp r3, #6
  73234. 801dc78: f200 84da bhi.w 801e630 <tcp_receive+0xed4>
  73235. this if the sequence number of the incoming segment is less
  73236. than rcv_nxt, and the sequence number plus the length of the
  73237. segment is larger than rcv_nxt. */
  73238. /* if (TCP_SEQ_LT(seqno, pcb->rcv_nxt)) {
  73239. if (TCP_SEQ_LT(pcb->rcv_nxt, seqno + tcplen)) {*/
  73240. if (TCP_SEQ_BETWEEN(pcb->rcv_nxt, seqno + 1, seqno + tcplen - 1)) {
  73241. 801dc7c: 687b ldr r3, [r7, #4]
  73242. 801dc7e: 6a5a ldr r2, [r3, #36] @ 0x24
  73243. 801dc80: 4b30 ldr r3, [pc, #192] @ (801dd44 <tcp_receive+0x5e8>)
  73244. 801dc82: 681b ldr r3, [r3, #0]
  73245. 801dc84: 1ad3 subs r3, r2, r3
  73246. 801dc86: 3b01 subs r3, #1
  73247. 801dc88: 2b00 cmp r3, #0
  73248. 801dc8a: f2c0 808f blt.w 801ddac <tcp_receive+0x650>
  73249. 801dc8e: 687b ldr r3, [r7, #4]
  73250. 801dc90: 6a5a ldr r2, [r3, #36] @ 0x24
  73251. 801dc92: 4b2b ldr r3, [pc, #172] @ (801dd40 <tcp_receive+0x5e4>)
  73252. 801dc94: 881b ldrh r3, [r3, #0]
  73253. 801dc96: 4619 mov r1, r3
  73254. 801dc98: 4b2a ldr r3, [pc, #168] @ (801dd44 <tcp_receive+0x5e8>)
  73255. 801dc9a: 681b ldr r3, [r3, #0]
  73256. 801dc9c: 440b add r3, r1
  73257. 801dc9e: 1ad3 subs r3, r2, r3
  73258. 801dca0: 3301 adds r3, #1
  73259. 801dca2: 2b00 cmp r3, #0
  73260. 801dca4: f300 8082 bgt.w 801ddac <tcp_receive+0x650>
  73261. After we are done with adjusting the pbuf pointers we must
  73262. adjust the ->data pointer in the seg and the segment
  73263. length.*/
  73264. struct pbuf *p = inseg.p;
  73265. 801dca8: 4b27 ldr r3, [pc, #156] @ (801dd48 <tcp_receive+0x5ec>)
  73266. 801dcaa: 685b ldr r3, [r3, #4]
  73267. 801dcac: 647b str r3, [r7, #68] @ 0x44
  73268. u32_t off32 = pcb->rcv_nxt - seqno;
  73269. 801dcae: 687b ldr r3, [r7, #4]
  73270. 801dcb0: 6a5a ldr r2, [r3, #36] @ 0x24
  73271. 801dcb2: 4b24 ldr r3, [pc, #144] @ (801dd44 <tcp_receive+0x5e8>)
  73272. 801dcb4: 681b ldr r3, [r3, #0]
  73273. 801dcb6: 1ad3 subs r3, r2, r3
  73274. 801dcb8: 627b str r3, [r7, #36] @ 0x24
  73275. u16_t new_tot_len, off;
  73276. LWIP_ASSERT("inseg.p != NULL", inseg.p);
  73277. 801dcba: 4b23 ldr r3, [pc, #140] @ (801dd48 <tcp_receive+0x5ec>)
  73278. 801dcbc: 685b ldr r3, [r3, #4]
  73279. 801dcbe: 2b00 cmp r3, #0
  73280. 801dcc0: d106 bne.n 801dcd0 <tcp_receive+0x574>
  73281. 801dcc2: 4b22 ldr r3, [pc, #136] @ (801dd4c <tcp_receive+0x5f0>)
  73282. 801dcc4: f240 5294 movw r2, #1428 @ 0x594
  73283. 801dcc8: 4921 ldr r1, [pc, #132] @ (801dd50 <tcp_receive+0x5f4>)
  73284. 801dcca: 4822 ldr r0, [pc, #136] @ (801dd54 <tcp_receive+0x5f8>)
  73285. 801dccc: f00b fc1e bl 802950c <iprintf>
  73286. LWIP_ASSERT("insane offset!", (off32 < 0xffff));
  73287. 801dcd0: 6a7b ldr r3, [r7, #36] @ 0x24
  73288. 801dcd2: f64f 72fe movw r2, #65534 @ 0xfffe
  73289. 801dcd6: 4293 cmp r3, r2
  73290. 801dcd8: d906 bls.n 801dce8 <tcp_receive+0x58c>
  73291. 801dcda: 4b1c ldr r3, [pc, #112] @ (801dd4c <tcp_receive+0x5f0>)
  73292. 801dcdc: f240 5295 movw r2, #1429 @ 0x595
  73293. 801dce0: 491d ldr r1, [pc, #116] @ (801dd58 <tcp_receive+0x5fc>)
  73294. 801dce2: 481c ldr r0, [pc, #112] @ (801dd54 <tcp_receive+0x5f8>)
  73295. 801dce4: f00b fc12 bl 802950c <iprintf>
  73296. off = (u16_t)off32;
  73297. 801dce8: 6a7b ldr r3, [r7, #36] @ 0x24
  73298. 801dcea: f8a7 3042 strh.w r3, [r7, #66] @ 0x42
  73299. LWIP_ASSERT("pbuf too short!", (((s32_t)inseg.p->tot_len) >= off));
  73300. 801dcee: 4b16 ldr r3, [pc, #88] @ (801dd48 <tcp_receive+0x5ec>)
  73301. 801dcf0: 685b ldr r3, [r3, #4]
  73302. 801dcf2: 891b ldrh r3, [r3, #8]
  73303. 801dcf4: f8b7 2042 ldrh.w r2, [r7, #66] @ 0x42
  73304. 801dcf8: 429a cmp r2, r3
  73305. 801dcfa: d906 bls.n 801dd0a <tcp_receive+0x5ae>
  73306. 801dcfc: 4b13 ldr r3, [pc, #76] @ (801dd4c <tcp_receive+0x5f0>)
  73307. 801dcfe: f240 5297 movw r2, #1431 @ 0x597
  73308. 801dd02: 4916 ldr r1, [pc, #88] @ (801dd5c <tcp_receive+0x600>)
  73309. 801dd04: 4813 ldr r0, [pc, #76] @ (801dd54 <tcp_receive+0x5f8>)
  73310. 801dd06: f00b fc01 bl 802950c <iprintf>
  73311. inseg.len -= off;
  73312. 801dd0a: 4b0f ldr r3, [pc, #60] @ (801dd48 <tcp_receive+0x5ec>)
  73313. 801dd0c: 891a ldrh r2, [r3, #8]
  73314. 801dd0e: f8b7 3042 ldrh.w r3, [r7, #66] @ 0x42
  73315. 801dd12: 1ad3 subs r3, r2, r3
  73316. 801dd14: b29a uxth r2, r3
  73317. 801dd16: 4b0c ldr r3, [pc, #48] @ (801dd48 <tcp_receive+0x5ec>)
  73318. 801dd18: 811a strh r2, [r3, #8]
  73319. new_tot_len = (u16_t)(inseg.p->tot_len - off);
  73320. 801dd1a: 4b0b ldr r3, [pc, #44] @ (801dd48 <tcp_receive+0x5ec>)
  73321. 801dd1c: 685b ldr r3, [r3, #4]
  73322. 801dd1e: 891a ldrh r2, [r3, #8]
  73323. 801dd20: f8b7 3042 ldrh.w r3, [r7, #66] @ 0x42
  73324. 801dd24: 1ad3 subs r3, r2, r3
  73325. 801dd26: 847b strh r3, [r7, #34] @ 0x22
  73326. while (p->len < off) {
  73327. 801dd28: e02a b.n 801dd80 <tcp_receive+0x624>
  73328. 801dd2a: bf00 nop
  73329. 801dd2c: 0802ec0c .word 0x0802ec0c
  73330. 801dd30: 0802ec14 .word 0x0802ec14
  73331. 801dd34: 2402a030 .word 0x2402a030
  73332. 801dd38: 2402a02c .word 0x2402a02c
  73333. 801dd3c: 24029fec .word 0x24029fec
  73334. 801dd40: 2402a032 .word 0x2402a032
  73335. 801dd44: 2402a028 .word 0x2402a028
  73336. 801dd48: 2402a004 .word 0x2402a004
  73337. 801dd4c: 0802e8a4 .word 0x0802e8a4
  73338. 801dd50: 0802ec1c .word 0x0802ec1c
  73339. 801dd54: 0802e8f0 .word 0x0802e8f0
  73340. 801dd58: 0802ec2c .word 0x0802ec2c
  73341. 801dd5c: 0802ec3c .word 0x0802ec3c
  73342. off -= p->len;
  73343. 801dd60: 6c7b ldr r3, [r7, #68] @ 0x44
  73344. 801dd62: 895b ldrh r3, [r3, #10]
  73345. 801dd64: f8b7 2042 ldrh.w r2, [r7, #66] @ 0x42
  73346. 801dd68: 1ad3 subs r3, r2, r3
  73347. 801dd6a: f8a7 3042 strh.w r3, [r7, #66] @ 0x42
  73348. /* all pbufs up to and including this one have len==0, so tot_len is equal */
  73349. p->tot_len = new_tot_len;
  73350. 801dd6e: 6c7b ldr r3, [r7, #68] @ 0x44
  73351. 801dd70: 8c7a ldrh r2, [r7, #34] @ 0x22
  73352. 801dd72: 811a strh r2, [r3, #8]
  73353. p->len = 0;
  73354. 801dd74: 6c7b ldr r3, [r7, #68] @ 0x44
  73355. 801dd76: 2200 movs r2, #0
  73356. 801dd78: 815a strh r2, [r3, #10]
  73357. p = p->next;
  73358. 801dd7a: 6c7b ldr r3, [r7, #68] @ 0x44
  73359. 801dd7c: 681b ldr r3, [r3, #0]
  73360. 801dd7e: 647b str r3, [r7, #68] @ 0x44
  73361. while (p->len < off) {
  73362. 801dd80: 6c7b ldr r3, [r7, #68] @ 0x44
  73363. 801dd82: 895b ldrh r3, [r3, #10]
  73364. 801dd84: f8b7 2042 ldrh.w r2, [r7, #66] @ 0x42
  73365. 801dd88: 429a cmp r2, r3
  73366. 801dd8a: d8e9 bhi.n 801dd60 <tcp_receive+0x604>
  73367. }
  73368. /* cannot fail... */
  73369. pbuf_remove_header(p, off);
  73370. 801dd8c: f8b7 3042 ldrh.w r3, [r7, #66] @ 0x42
  73371. 801dd90: 4619 mov r1, r3
  73372. 801dd92: 6c78 ldr r0, [r7, #68] @ 0x44
  73373. 801dd94: f7fc f88a bl 8019eac <pbuf_remove_header>
  73374. inseg.tcphdr->seqno = seqno = pcb->rcv_nxt;
  73375. 801dd98: 687b ldr r3, [r7, #4]
  73376. 801dd9a: 6a5b ldr r3, [r3, #36] @ 0x24
  73377. 801dd9c: 4a90 ldr r2, [pc, #576] @ (801dfe0 <tcp_receive+0x884>)
  73378. 801dd9e: 6013 str r3, [r2, #0]
  73379. 801dda0: 4b90 ldr r3, [pc, #576] @ (801dfe4 <tcp_receive+0x888>)
  73380. 801dda2: 691b ldr r3, [r3, #16]
  73381. 801dda4: 4a8e ldr r2, [pc, #568] @ (801dfe0 <tcp_receive+0x884>)
  73382. 801dda6: 6812 ldr r2, [r2, #0]
  73383. 801dda8: 605a str r2, [r3, #4]
  73384. if (TCP_SEQ_BETWEEN(pcb->rcv_nxt, seqno + 1, seqno + tcplen - 1)) {
  73385. 801ddaa: e00d b.n 801ddc8 <tcp_receive+0x66c>
  73386. } else {
  73387. if (TCP_SEQ_LT(seqno, pcb->rcv_nxt)) {
  73388. 801ddac: 4b8c ldr r3, [pc, #560] @ (801dfe0 <tcp_receive+0x884>)
  73389. 801ddae: 681a ldr r2, [r3, #0]
  73390. 801ddb0: 687b ldr r3, [r7, #4]
  73391. 801ddb2: 6a5b ldr r3, [r3, #36] @ 0x24
  73392. 801ddb4: 1ad3 subs r3, r2, r3
  73393. 801ddb6: 2b00 cmp r3, #0
  73394. 801ddb8: da06 bge.n 801ddc8 <tcp_receive+0x66c>
  73395. /* the whole segment is < rcv_nxt */
  73396. /* must be a duplicate of a packet that has already been correctly handled */
  73397. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: duplicate seqno %"U32_F"\n", seqno));
  73398. tcp_ack_now(pcb);
  73399. 801ddba: 687b ldr r3, [r7, #4]
  73400. 801ddbc: 8b5b ldrh r3, [r3, #26]
  73401. 801ddbe: f043 0302 orr.w r3, r3, #2
  73402. 801ddc2: b29a uxth r2, r3
  73403. 801ddc4: 687b ldr r3, [r7, #4]
  73404. 801ddc6: 835a strh r2, [r3, #26]
  73405. }
  73406. /* The sequence number must be within the window (above rcv_nxt
  73407. and below rcv_nxt + rcv_wnd) in order to be further
  73408. processed. */
  73409. if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt,
  73410. 801ddc8: 4b85 ldr r3, [pc, #532] @ (801dfe0 <tcp_receive+0x884>)
  73411. 801ddca: 681a ldr r2, [r3, #0]
  73412. 801ddcc: 687b ldr r3, [r7, #4]
  73413. 801ddce: 6a5b ldr r3, [r3, #36] @ 0x24
  73414. 801ddd0: 1ad3 subs r3, r2, r3
  73415. 801ddd2: 2b00 cmp r3, #0
  73416. 801ddd4: f2c0 8427 blt.w 801e626 <tcp_receive+0xeca>
  73417. 801ddd8: 4b81 ldr r3, [pc, #516] @ (801dfe0 <tcp_receive+0x884>)
  73418. 801ddda: 681a ldr r2, [r3, #0]
  73419. 801dddc: 687b ldr r3, [r7, #4]
  73420. 801ddde: 6a5b ldr r3, [r3, #36] @ 0x24
  73421. 801dde0: 6879 ldr r1, [r7, #4]
  73422. 801dde2: 8d09 ldrh r1, [r1, #40] @ 0x28
  73423. 801dde4: 440b add r3, r1
  73424. 801dde6: 1ad3 subs r3, r2, r3
  73425. 801dde8: 3301 adds r3, #1
  73426. 801ddea: 2b00 cmp r3, #0
  73427. 801ddec: f300 841b bgt.w 801e626 <tcp_receive+0xeca>
  73428. pcb->rcv_nxt + pcb->rcv_wnd - 1)) {
  73429. if (pcb->rcv_nxt == seqno) {
  73430. 801ddf0: 687b ldr r3, [r7, #4]
  73431. 801ddf2: 6a5a ldr r2, [r3, #36] @ 0x24
  73432. 801ddf4: 4b7a ldr r3, [pc, #488] @ (801dfe0 <tcp_receive+0x884>)
  73433. 801ddf6: 681b ldr r3, [r3, #0]
  73434. 801ddf8: 429a cmp r2, r3
  73435. 801ddfa: f040 8298 bne.w 801e32e <tcp_receive+0xbd2>
  73436. /* The incoming segment is the next in sequence. We check if
  73437. we have to trim the end of the segment and update rcv_nxt
  73438. and pass the data to the application. */
  73439. tcplen = TCP_TCPLEN(&inseg);
  73440. 801ddfe: 4b79 ldr r3, [pc, #484] @ (801dfe4 <tcp_receive+0x888>)
  73441. 801de00: 891c ldrh r4, [r3, #8]
  73442. 801de02: 4b78 ldr r3, [pc, #480] @ (801dfe4 <tcp_receive+0x888>)
  73443. 801de04: 691b ldr r3, [r3, #16]
  73444. 801de06: 899b ldrh r3, [r3, #12]
  73445. 801de08: b29b uxth r3, r3
  73446. 801de0a: 4618 mov r0, r3
  73447. 801de0c: f7fa fc24 bl 8018658 <lwip_htons>
  73448. 801de10: 4603 mov r3, r0
  73449. 801de12: b2db uxtb r3, r3
  73450. 801de14: f003 0303 and.w r3, r3, #3
  73451. 801de18: 2b00 cmp r3, #0
  73452. 801de1a: d001 beq.n 801de20 <tcp_receive+0x6c4>
  73453. 801de1c: 2301 movs r3, #1
  73454. 801de1e: e000 b.n 801de22 <tcp_receive+0x6c6>
  73455. 801de20: 2300 movs r3, #0
  73456. 801de22: 4423 add r3, r4
  73457. 801de24: b29a uxth r2, r3
  73458. 801de26: 4b70 ldr r3, [pc, #448] @ (801dfe8 <tcp_receive+0x88c>)
  73459. 801de28: 801a strh r2, [r3, #0]
  73460. if (tcplen > pcb->rcv_wnd) {
  73461. 801de2a: 687b ldr r3, [r7, #4]
  73462. 801de2c: 8d1a ldrh r2, [r3, #40] @ 0x28
  73463. 801de2e: 4b6e ldr r3, [pc, #440] @ (801dfe8 <tcp_receive+0x88c>)
  73464. 801de30: 881b ldrh r3, [r3, #0]
  73465. 801de32: 429a cmp r2, r3
  73466. 801de34: d274 bcs.n 801df20 <tcp_receive+0x7c4>
  73467. LWIP_DEBUGF(TCP_INPUT_DEBUG,
  73468. ("tcp_receive: other end overran receive window"
  73469. "seqno %"U32_F" len %"U16_F" right edge %"U32_F"\n",
  73470. seqno, tcplen, pcb->rcv_nxt + pcb->rcv_wnd));
  73471. if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) {
  73472. 801de36: 4b6b ldr r3, [pc, #428] @ (801dfe4 <tcp_receive+0x888>)
  73473. 801de38: 691b ldr r3, [r3, #16]
  73474. 801de3a: 899b ldrh r3, [r3, #12]
  73475. 801de3c: b29b uxth r3, r3
  73476. 801de3e: 4618 mov r0, r3
  73477. 801de40: f7fa fc0a bl 8018658 <lwip_htons>
  73478. 801de44: 4603 mov r3, r0
  73479. 801de46: b2db uxtb r3, r3
  73480. 801de48: f003 0301 and.w r3, r3, #1
  73481. 801de4c: 2b00 cmp r3, #0
  73482. 801de4e: d01e beq.n 801de8e <tcp_receive+0x732>
  73483. /* Must remove the FIN from the header as we're trimming
  73484. * that byte of sequence-space from the packet */
  73485. TCPH_FLAGS_SET(inseg.tcphdr, TCPH_FLAGS(inseg.tcphdr) & ~(unsigned int)TCP_FIN);
  73486. 801de50: 4b64 ldr r3, [pc, #400] @ (801dfe4 <tcp_receive+0x888>)
  73487. 801de52: 691b ldr r3, [r3, #16]
  73488. 801de54: 899b ldrh r3, [r3, #12]
  73489. 801de56: b29b uxth r3, r3
  73490. 801de58: b21b sxth r3, r3
  73491. 801de5a: f423 537c bic.w r3, r3, #16128 @ 0x3f00
  73492. 801de5e: b21c sxth r4, r3
  73493. 801de60: 4b60 ldr r3, [pc, #384] @ (801dfe4 <tcp_receive+0x888>)
  73494. 801de62: 691b ldr r3, [r3, #16]
  73495. 801de64: 899b ldrh r3, [r3, #12]
  73496. 801de66: b29b uxth r3, r3
  73497. 801de68: 4618 mov r0, r3
  73498. 801de6a: f7fa fbf5 bl 8018658 <lwip_htons>
  73499. 801de6e: 4603 mov r3, r0
  73500. 801de70: b2db uxtb r3, r3
  73501. 801de72: f003 033e and.w r3, r3, #62 @ 0x3e
  73502. 801de76: b29b uxth r3, r3
  73503. 801de78: 4618 mov r0, r3
  73504. 801de7a: f7fa fbed bl 8018658 <lwip_htons>
  73505. 801de7e: 4603 mov r3, r0
  73506. 801de80: b21b sxth r3, r3
  73507. 801de82: 4323 orrs r3, r4
  73508. 801de84: b21a sxth r2, r3
  73509. 801de86: 4b57 ldr r3, [pc, #348] @ (801dfe4 <tcp_receive+0x888>)
  73510. 801de88: 691b ldr r3, [r3, #16]
  73511. 801de8a: b292 uxth r2, r2
  73512. 801de8c: 819a strh r2, [r3, #12]
  73513. }
  73514. /* Adjust length of segment to fit in the window. */
  73515. TCPWND_CHECK16(pcb->rcv_wnd);
  73516. inseg.len = (u16_t)pcb->rcv_wnd;
  73517. 801de8e: 687b ldr r3, [r7, #4]
  73518. 801de90: 8d1a ldrh r2, [r3, #40] @ 0x28
  73519. 801de92: 4b54 ldr r3, [pc, #336] @ (801dfe4 <tcp_receive+0x888>)
  73520. 801de94: 811a strh r2, [r3, #8]
  73521. if (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) {
  73522. 801de96: 4b53 ldr r3, [pc, #332] @ (801dfe4 <tcp_receive+0x888>)
  73523. 801de98: 691b ldr r3, [r3, #16]
  73524. 801de9a: 899b ldrh r3, [r3, #12]
  73525. 801de9c: b29b uxth r3, r3
  73526. 801de9e: 4618 mov r0, r3
  73527. 801dea0: f7fa fbda bl 8018658 <lwip_htons>
  73528. 801dea4: 4603 mov r3, r0
  73529. 801dea6: b2db uxtb r3, r3
  73530. 801dea8: f003 0302 and.w r3, r3, #2
  73531. 801deac: 2b00 cmp r3, #0
  73532. 801deae: d005 beq.n 801debc <tcp_receive+0x760>
  73533. inseg.len -= 1;
  73534. 801deb0: 4b4c ldr r3, [pc, #304] @ (801dfe4 <tcp_receive+0x888>)
  73535. 801deb2: 891b ldrh r3, [r3, #8]
  73536. 801deb4: 3b01 subs r3, #1
  73537. 801deb6: b29a uxth r2, r3
  73538. 801deb8: 4b4a ldr r3, [pc, #296] @ (801dfe4 <tcp_receive+0x888>)
  73539. 801deba: 811a strh r2, [r3, #8]
  73540. }
  73541. pbuf_realloc(inseg.p, inseg.len);
  73542. 801debc: 4b49 ldr r3, [pc, #292] @ (801dfe4 <tcp_receive+0x888>)
  73543. 801debe: 685b ldr r3, [r3, #4]
  73544. 801dec0: 4a48 ldr r2, [pc, #288] @ (801dfe4 <tcp_receive+0x888>)
  73545. 801dec2: 8912 ldrh r2, [r2, #8]
  73546. 801dec4: 4611 mov r1, r2
  73547. 801dec6: 4618 mov r0, r3
  73548. 801dec8: f7fb fef2 bl 8019cb0 <pbuf_realloc>
  73549. tcplen = TCP_TCPLEN(&inseg);
  73550. 801decc: 4b45 ldr r3, [pc, #276] @ (801dfe4 <tcp_receive+0x888>)
  73551. 801dece: 891c ldrh r4, [r3, #8]
  73552. 801ded0: 4b44 ldr r3, [pc, #272] @ (801dfe4 <tcp_receive+0x888>)
  73553. 801ded2: 691b ldr r3, [r3, #16]
  73554. 801ded4: 899b ldrh r3, [r3, #12]
  73555. 801ded6: b29b uxth r3, r3
  73556. 801ded8: 4618 mov r0, r3
  73557. 801deda: f7fa fbbd bl 8018658 <lwip_htons>
  73558. 801dede: 4603 mov r3, r0
  73559. 801dee0: b2db uxtb r3, r3
  73560. 801dee2: f003 0303 and.w r3, r3, #3
  73561. 801dee6: 2b00 cmp r3, #0
  73562. 801dee8: d001 beq.n 801deee <tcp_receive+0x792>
  73563. 801deea: 2301 movs r3, #1
  73564. 801deec: e000 b.n 801def0 <tcp_receive+0x794>
  73565. 801deee: 2300 movs r3, #0
  73566. 801def0: 4423 add r3, r4
  73567. 801def2: b29a uxth r2, r3
  73568. 801def4: 4b3c ldr r3, [pc, #240] @ (801dfe8 <tcp_receive+0x88c>)
  73569. 801def6: 801a strh r2, [r3, #0]
  73570. LWIP_ASSERT("tcp_receive: segment not trimmed correctly to rcv_wnd\n",
  73571. 801def8: 4b3b ldr r3, [pc, #236] @ (801dfe8 <tcp_receive+0x88c>)
  73572. 801defa: 881b ldrh r3, [r3, #0]
  73573. 801defc: 461a mov r2, r3
  73574. 801defe: 4b38 ldr r3, [pc, #224] @ (801dfe0 <tcp_receive+0x884>)
  73575. 801df00: 681b ldr r3, [r3, #0]
  73576. 801df02: 441a add r2, r3
  73577. 801df04: 687b ldr r3, [r7, #4]
  73578. 801df06: 6a5b ldr r3, [r3, #36] @ 0x24
  73579. 801df08: 6879 ldr r1, [r7, #4]
  73580. 801df0a: 8d09 ldrh r1, [r1, #40] @ 0x28
  73581. 801df0c: 440b add r3, r1
  73582. 801df0e: 429a cmp r2, r3
  73583. 801df10: d006 beq.n 801df20 <tcp_receive+0x7c4>
  73584. 801df12: 4b36 ldr r3, [pc, #216] @ (801dfec <tcp_receive+0x890>)
  73585. 801df14: f240 52cb movw r2, #1483 @ 0x5cb
  73586. 801df18: 4935 ldr r1, [pc, #212] @ (801dff0 <tcp_receive+0x894>)
  73587. 801df1a: 4836 ldr r0, [pc, #216] @ (801dff4 <tcp_receive+0x898>)
  73588. 801df1c: f00b faf6 bl 802950c <iprintf>
  73589. }
  73590. #if TCP_QUEUE_OOSEQ
  73591. /* Received in-sequence data, adjust ooseq data if:
  73592. - FIN has been received or
  73593. - inseq overlaps with ooseq */
  73594. if (pcb->ooseq != NULL) {
  73595. 801df20: 687b ldr r3, [r7, #4]
  73596. 801df22: 6f5b ldr r3, [r3, #116] @ 0x74
  73597. 801df24: 2b00 cmp r3, #0
  73598. 801df26: f000 80e6 beq.w 801e0f6 <tcp_receive+0x99a>
  73599. if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) {
  73600. 801df2a: 4b2e ldr r3, [pc, #184] @ (801dfe4 <tcp_receive+0x888>)
  73601. 801df2c: 691b ldr r3, [r3, #16]
  73602. 801df2e: 899b ldrh r3, [r3, #12]
  73603. 801df30: b29b uxth r3, r3
  73604. 801df32: 4618 mov r0, r3
  73605. 801df34: f7fa fb90 bl 8018658 <lwip_htons>
  73606. 801df38: 4603 mov r3, r0
  73607. 801df3a: b2db uxtb r3, r3
  73608. 801df3c: f003 0301 and.w r3, r3, #1
  73609. 801df40: 2b00 cmp r3, #0
  73610. 801df42: d010 beq.n 801df66 <tcp_receive+0x80a>
  73611. LWIP_DEBUGF(TCP_INPUT_DEBUG,
  73612. ("tcp_receive: received in-order FIN, binning ooseq queue\n"));
  73613. /* Received in-order FIN means anything that was received
  73614. * out of order must now have been received in-order, so
  73615. * bin the ooseq queue */
  73616. while (pcb->ooseq != NULL) {
  73617. 801df44: e00a b.n 801df5c <tcp_receive+0x800>
  73618. struct tcp_seg *old_ooseq = pcb->ooseq;
  73619. 801df46: 687b ldr r3, [r7, #4]
  73620. 801df48: 6f5b ldr r3, [r3, #116] @ 0x74
  73621. 801df4a: 60fb str r3, [r7, #12]
  73622. pcb->ooseq = pcb->ooseq->next;
  73623. 801df4c: 687b ldr r3, [r7, #4]
  73624. 801df4e: 6f5b ldr r3, [r3, #116] @ 0x74
  73625. 801df50: 681a ldr r2, [r3, #0]
  73626. 801df52: 687b ldr r3, [r7, #4]
  73627. 801df54: 675a str r2, [r3, #116] @ 0x74
  73628. tcp_seg_free(old_ooseq);
  73629. 801df56: 68f8 ldr r0, [r7, #12]
  73630. 801df58: f7fd fcb9 bl 801b8ce <tcp_seg_free>
  73631. while (pcb->ooseq != NULL) {
  73632. 801df5c: 687b ldr r3, [r7, #4]
  73633. 801df5e: 6f5b ldr r3, [r3, #116] @ 0x74
  73634. 801df60: 2b00 cmp r3, #0
  73635. 801df62: d1f0 bne.n 801df46 <tcp_receive+0x7ea>
  73636. 801df64: e0c7 b.n 801e0f6 <tcp_receive+0x99a>
  73637. }
  73638. } else {
  73639. struct tcp_seg *next = pcb->ooseq;
  73640. 801df66: 687b ldr r3, [r7, #4]
  73641. 801df68: 6f5b ldr r3, [r3, #116] @ 0x74
  73642. 801df6a: 63fb str r3, [r7, #60] @ 0x3c
  73643. /* Remove all segments on ooseq that are covered by inseg already.
  73644. * FIN is copied from ooseq to inseg if present. */
  73645. while (next &&
  73646. 801df6c: e051 b.n 801e012 <tcp_receive+0x8b6>
  73647. TCP_SEQ_GEQ(seqno + tcplen,
  73648. next->tcphdr->seqno + next->len)) {
  73649. struct tcp_seg *tmp;
  73650. /* inseg cannot have FIN here (already processed above) */
  73651. if ((TCPH_FLAGS(next->tcphdr) & TCP_FIN) != 0 &&
  73652. 801df6e: 6bfb ldr r3, [r7, #60] @ 0x3c
  73653. 801df70: 691b ldr r3, [r3, #16]
  73654. 801df72: 899b ldrh r3, [r3, #12]
  73655. 801df74: b29b uxth r3, r3
  73656. 801df76: 4618 mov r0, r3
  73657. 801df78: f7fa fb6e bl 8018658 <lwip_htons>
  73658. 801df7c: 4603 mov r3, r0
  73659. 801df7e: b2db uxtb r3, r3
  73660. 801df80: f003 0301 and.w r3, r3, #1
  73661. 801df84: 2b00 cmp r3, #0
  73662. 801df86: d03c beq.n 801e002 <tcp_receive+0x8a6>
  73663. (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) == 0) {
  73664. 801df88: 4b16 ldr r3, [pc, #88] @ (801dfe4 <tcp_receive+0x888>)
  73665. 801df8a: 691b ldr r3, [r3, #16]
  73666. 801df8c: 899b ldrh r3, [r3, #12]
  73667. 801df8e: b29b uxth r3, r3
  73668. 801df90: 4618 mov r0, r3
  73669. 801df92: f7fa fb61 bl 8018658 <lwip_htons>
  73670. 801df96: 4603 mov r3, r0
  73671. 801df98: b2db uxtb r3, r3
  73672. 801df9a: f003 0302 and.w r3, r3, #2
  73673. if ((TCPH_FLAGS(next->tcphdr) & TCP_FIN) != 0 &&
  73674. 801df9e: 2b00 cmp r3, #0
  73675. 801dfa0: d12f bne.n 801e002 <tcp_receive+0x8a6>
  73676. TCPH_SET_FLAG(inseg.tcphdr, TCP_FIN);
  73677. 801dfa2: 4b10 ldr r3, [pc, #64] @ (801dfe4 <tcp_receive+0x888>)
  73678. 801dfa4: 691b ldr r3, [r3, #16]
  73679. 801dfa6: 899b ldrh r3, [r3, #12]
  73680. 801dfa8: b29c uxth r4, r3
  73681. 801dfaa: 2001 movs r0, #1
  73682. 801dfac: f7fa fb54 bl 8018658 <lwip_htons>
  73683. 801dfb0: 4603 mov r3, r0
  73684. 801dfb2: 461a mov r2, r3
  73685. 801dfb4: 4b0b ldr r3, [pc, #44] @ (801dfe4 <tcp_receive+0x888>)
  73686. 801dfb6: 691b ldr r3, [r3, #16]
  73687. 801dfb8: 4322 orrs r2, r4
  73688. 801dfba: b292 uxth r2, r2
  73689. 801dfbc: 819a strh r2, [r3, #12]
  73690. tcplen = TCP_TCPLEN(&inseg);
  73691. 801dfbe: 4b09 ldr r3, [pc, #36] @ (801dfe4 <tcp_receive+0x888>)
  73692. 801dfc0: 891c ldrh r4, [r3, #8]
  73693. 801dfc2: 4b08 ldr r3, [pc, #32] @ (801dfe4 <tcp_receive+0x888>)
  73694. 801dfc4: 691b ldr r3, [r3, #16]
  73695. 801dfc6: 899b ldrh r3, [r3, #12]
  73696. 801dfc8: b29b uxth r3, r3
  73697. 801dfca: 4618 mov r0, r3
  73698. 801dfcc: f7fa fb44 bl 8018658 <lwip_htons>
  73699. 801dfd0: 4603 mov r3, r0
  73700. 801dfd2: b2db uxtb r3, r3
  73701. 801dfd4: f003 0303 and.w r3, r3, #3
  73702. 801dfd8: 2b00 cmp r3, #0
  73703. 801dfda: d00d beq.n 801dff8 <tcp_receive+0x89c>
  73704. 801dfdc: 2301 movs r3, #1
  73705. 801dfde: e00c b.n 801dffa <tcp_receive+0x89e>
  73706. 801dfe0: 2402a028 .word 0x2402a028
  73707. 801dfe4: 2402a004 .word 0x2402a004
  73708. 801dfe8: 2402a032 .word 0x2402a032
  73709. 801dfec: 0802e8a4 .word 0x0802e8a4
  73710. 801dff0: 0802ec4c .word 0x0802ec4c
  73711. 801dff4: 0802e8f0 .word 0x0802e8f0
  73712. 801dff8: 2300 movs r3, #0
  73713. 801dffa: 4423 add r3, r4
  73714. 801dffc: b29a uxth r2, r3
  73715. 801dffe: 4b98 ldr r3, [pc, #608] @ (801e260 <tcp_receive+0xb04>)
  73716. 801e000: 801a strh r2, [r3, #0]
  73717. }
  73718. tmp = next;
  73719. 801e002: 6bfb ldr r3, [r7, #60] @ 0x3c
  73720. 801e004: 613b str r3, [r7, #16]
  73721. next = next->next;
  73722. 801e006: 6bfb ldr r3, [r7, #60] @ 0x3c
  73723. 801e008: 681b ldr r3, [r3, #0]
  73724. 801e00a: 63fb str r3, [r7, #60] @ 0x3c
  73725. tcp_seg_free(tmp);
  73726. 801e00c: 6938 ldr r0, [r7, #16]
  73727. 801e00e: f7fd fc5e bl 801b8ce <tcp_seg_free>
  73728. while (next &&
  73729. 801e012: 6bfb ldr r3, [r7, #60] @ 0x3c
  73730. 801e014: 2b00 cmp r3, #0
  73731. 801e016: d00e beq.n 801e036 <tcp_receive+0x8da>
  73732. TCP_SEQ_GEQ(seqno + tcplen,
  73733. 801e018: 4b91 ldr r3, [pc, #580] @ (801e260 <tcp_receive+0xb04>)
  73734. 801e01a: 881b ldrh r3, [r3, #0]
  73735. 801e01c: 461a mov r2, r3
  73736. 801e01e: 4b91 ldr r3, [pc, #580] @ (801e264 <tcp_receive+0xb08>)
  73737. 801e020: 681b ldr r3, [r3, #0]
  73738. 801e022: 441a add r2, r3
  73739. 801e024: 6bfb ldr r3, [r7, #60] @ 0x3c
  73740. 801e026: 691b ldr r3, [r3, #16]
  73741. 801e028: 685b ldr r3, [r3, #4]
  73742. 801e02a: 6bf9 ldr r1, [r7, #60] @ 0x3c
  73743. 801e02c: 8909 ldrh r1, [r1, #8]
  73744. 801e02e: 440b add r3, r1
  73745. 801e030: 1ad3 subs r3, r2, r3
  73746. while (next &&
  73747. 801e032: 2b00 cmp r3, #0
  73748. 801e034: da9b bge.n 801df6e <tcp_receive+0x812>
  73749. }
  73750. /* Now trim right side of inseg if it overlaps with the first
  73751. * segment on ooseq */
  73752. if (next &&
  73753. 801e036: 6bfb ldr r3, [r7, #60] @ 0x3c
  73754. 801e038: 2b00 cmp r3, #0
  73755. 801e03a: d059 beq.n 801e0f0 <tcp_receive+0x994>
  73756. TCP_SEQ_GT(seqno + tcplen,
  73757. 801e03c: 4b88 ldr r3, [pc, #544] @ (801e260 <tcp_receive+0xb04>)
  73758. 801e03e: 881b ldrh r3, [r3, #0]
  73759. 801e040: 461a mov r2, r3
  73760. 801e042: 4b88 ldr r3, [pc, #544] @ (801e264 <tcp_receive+0xb08>)
  73761. 801e044: 681b ldr r3, [r3, #0]
  73762. 801e046: 441a add r2, r3
  73763. 801e048: 6bfb ldr r3, [r7, #60] @ 0x3c
  73764. 801e04a: 691b ldr r3, [r3, #16]
  73765. 801e04c: 685b ldr r3, [r3, #4]
  73766. 801e04e: 1ad3 subs r3, r2, r3
  73767. if (next &&
  73768. 801e050: 2b00 cmp r3, #0
  73769. 801e052: dd4d ble.n 801e0f0 <tcp_receive+0x994>
  73770. next->tcphdr->seqno)) {
  73771. /* inseg cannot have FIN here (already processed above) */
  73772. inseg.len = (u16_t)(next->tcphdr->seqno - seqno);
  73773. 801e054: 6bfb ldr r3, [r7, #60] @ 0x3c
  73774. 801e056: 691b ldr r3, [r3, #16]
  73775. 801e058: 685b ldr r3, [r3, #4]
  73776. 801e05a: b29a uxth r2, r3
  73777. 801e05c: 4b81 ldr r3, [pc, #516] @ (801e264 <tcp_receive+0xb08>)
  73778. 801e05e: 681b ldr r3, [r3, #0]
  73779. 801e060: b29b uxth r3, r3
  73780. 801e062: 1ad3 subs r3, r2, r3
  73781. 801e064: b29a uxth r2, r3
  73782. 801e066: 4b80 ldr r3, [pc, #512] @ (801e268 <tcp_receive+0xb0c>)
  73783. 801e068: 811a strh r2, [r3, #8]
  73784. if (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) {
  73785. 801e06a: 4b7f ldr r3, [pc, #508] @ (801e268 <tcp_receive+0xb0c>)
  73786. 801e06c: 691b ldr r3, [r3, #16]
  73787. 801e06e: 899b ldrh r3, [r3, #12]
  73788. 801e070: b29b uxth r3, r3
  73789. 801e072: 4618 mov r0, r3
  73790. 801e074: f7fa faf0 bl 8018658 <lwip_htons>
  73791. 801e078: 4603 mov r3, r0
  73792. 801e07a: b2db uxtb r3, r3
  73793. 801e07c: f003 0302 and.w r3, r3, #2
  73794. 801e080: 2b00 cmp r3, #0
  73795. 801e082: d005 beq.n 801e090 <tcp_receive+0x934>
  73796. inseg.len -= 1;
  73797. 801e084: 4b78 ldr r3, [pc, #480] @ (801e268 <tcp_receive+0xb0c>)
  73798. 801e086: 891b ldrh r3, [r3, #8]
  73799. 801e088: 3b01 subs r3, #1
  73800. 801e08a: b29a uxth r2, r3
  73801. 801e08c: 4b76 ldr r3, [pc, #472] @ (801e268 <tcp_receive+0xb0c>)
  73802. 801e08e: 811a strh r2, [r3, #8]
  73803. }
  73804. pbuf_realloc(inseg.p, inseg.len);
  73805. 801e090: 4b75 ldr r3, [pc, #468] @ (801e268 <tcp_receive+0xb0c>)
  73806. 801e092: 685b ldr r3, [r3, #4]
  73807. 801e094: 4a74 ldr r2, [pc, #464] @ (801e268 <tcp_receive+0xb0c>)
  73808. 801e096: 8912 ldrh r2, [r2, #8]
  73809. 801e098: 4611 mov r1, r2
  73810. 801e09a: 4618 mov r0, r3
  73811. 801e09c: f7fb fe08 bl 8019cb0 <pbuf_realloc>
  73812. tcplen = TCP_TCPLEN(&inseg);
  73813. 801e0a0: 4b71 ldr r3, [pc, #452] @ (801e268 <tcp_receive+0xb0c>)
  73814. 801e0a2: 891c ldrh r4, [r3, #8]
  73815. 801e0a4: 4b70 ldr r3, [pc, #448] @ (801e268 <tcp_receive+0xb0c>)
  73816. 801e0a6: 691b ldr r3, [r3, #16]
  73817. 801e0a8: 899b ldrh r3, [r3, #12]
  73818. 801e0aa: b29b uxth r3, r3
  73819. 801e0ac: 4618 mov r0, r3
  73820. 801e0ae: f7fa fad3 bl 8018658 <lwip_htons>
  73821. 801e0b2: 4603 mov r3, r0
  73822. 801e0b4: b2db uxtb r3, r3
  73823. 801e0b6: f003 0303 and.w r3, r3, #3
  73824. 801e0ba: 2b00 cmp r3, #0
  73825. 801e0bc: d001 beq.n 801e0c2 <tcp_receive+0x966>
  73826. 801e0be: 2301 movs r3, #1
  73827. 801e0c0: e000 b.n 801e0c4 <tcp_receive+0x968>
  73828. 801e0c2: 2300 movs r3, #0
  73829. 801e0c4: 4423 add r3, r4
  73830. 801e0c6: b29a uxth r2, r3
  73831. 801e0c8: 4b65 ldr r3, [pc, #404] @ (801e260 <tcp_receive+0xb04>)
  73832. 801e0ca: 801a strh r2, [r3, #0]
  73833. LWIP_ASSERT("tcp_receive: segment not trimmed correctly to ooseq queue\n",
  73834. 801e0cc: 4b64 ldr r3, [pc, #400] @ (801e260 <tcp_receive+0xb04>)
  73835. 801e0ce: 881b ldrh r3, [r3, #0]
  73836. 801e0d0: 461a mov r2, r3
  73837. 801e0d2: 4b64 ldr r3, [pc, #400] @ (801e264 <tcp_receive+0xb08>)
  73838. 801e0d4: 681b ldr r3, [r3, #0]
  73839. 801e0d6: 441a add r2, r3
  73840. 801e0d8: 6bfb ldr r3, [r7, #60] @ 0x3c
  73841. 801e0da: 691b ldr r3, [r3, #16]
  73842. 801e0dc: 685b ldr r3, [r3, #4]
  73843. 801e0de: 429a cmp r2, r3
  73844. 801e0e0: d006 beq.n 801e0f0 <tcp_receive+0x994>
  73845. 801e0e2: 4b62 ldr r3, [pc, #392] @ (801e26c <tcp_receive+0xb10>)
  73846. 801e0e4: f240 52fc movw r2, #1532 @ 0x5fc
  73847. 801e0e8: 4961 ldr r1, [pc, #388] @ (801e270 <tcp_receive+0xb14>)
  73848. 801e0ea: 4862 ldr r0, [pc, #392] @ (801e274 <tcp_receive+0xb18>)
  73849. 801e0ec: f00b fa0e bl 802950c <iprintf>
  73850. (seqno + tcplen) == next->tcphdr->seqno);
  73851. }
  73852. pcb->ooseq = next;
  73853. 801e0f0: 687b ldr r3, [r7, #4]
  73854. 801e0f2: 6bfa ldr r2, [r7, #60] @ 0x3c
  73855. 801e0f4: 675a str r2, [r3, #116] @ 0x74
  73856. }
  73857. }
  73858. #endif /* TCP_QUEUE_OOSEQ */
  73859. pcb->rcv_nxt = seqno + tcplen;
  73860. 801e0f6: 4b5a ldr r3, [pc, #360] @ (801e260 <tcp_receive+0xb04>)
  73861. 801e0f8: 881b ldrh r3, [r3, #0]
  73862. 801e0fa: 461a mov r2, r3
  73863. 801e0fc: 4b59 ldr r3, [pc, #356] @ (801e264 <tcp_receive+0xb08>)
  73864. 801e0fe: 681b ldr r3, [r3, #0]
  73865. 801e100: 441a add r2, r3
  73866. 801e102: 687b ldr r3, [r7, #4]
  73867. 801e104: 625a str r2, [r3, #36] @ 0x24
  73868. /* Update the receiver's (our) window. */
  73869. LWIP_ASSERT("tcp_receive: tcplen > rcv_wnd\n", pcb->rcv_wnd >= tcplen);
  73870. 801e106: 687b ldr r3, [r7, #4]
  73871. 801e108: 8d1a ldrh r2, [r3, #40] @ 0x28
  73872. 801e10a: 4b55 ldr r3, [pc, #340] @ (801e260 <tcp_receive+0xb04>)
  73873. 801e10c: 881b ldrh r3, [r3, #0]
  73874. 801e10e: 429a cmp r2, r3
  73875. 801e110: d206 bcs.n 801e120 <tcp_receive+0x9c4>
  73876. 801e112: 4b56 ldr r3, [pc, #344] @ (801e26c <tcp_receive+0xb10>)
  73877. 801e114: f240 6207 movw r2, #1543 @ 0x607
  73878. 801e118: 4957 ldr r1, [pc, #348] @ (801e278 <tcp_receive+0xb1c>)
  73879. 801e11a: 4856 ldr r0, [pc, #344] @ (801e274 <tcp_receive+0xb18>)
  73880. 801e11c: f00b f9f6 bl 802950c <iprintf>
  73881. pcb->rcv_wnd -= tcplen;
  73882. 801e120: 687b ldr r3, [r7, #4]
  73883. 801e122: 8d1a ldrh r2, [r3, #40] @ 0x28
  73884. 801e124: 4b4e ldr r3, [pc, #312] @ (801e260 <tcp_receive+0xb04>)
  73885. 801e126: 881b ldrh r3, [r3, #0]
  73886. 801e128: 1ad3 subs r3, r2, r3
  73887. 801e12a: b29a uxth r2, r3
  73888. 801e12c: 687b ldr r3, [r7, #4]
  73889. 801e12e: 851a strh r2, [r3, #40] @ 0x28
  73890. tcp_update_rcv_ann_wnd(pcb);
  73891. 801e130: 6878 ldr r0, [r7, #4]
  73892. 801e132: f7fc fd85 bl 801ac40 <tcp_update_rcv_ann_wnd>
  73893. chains its data on this pbuf as well.
  73894. If the segment was a FIN, we set the TF_GOT_FIN flag that will
  73895. be used to indicate to the application that the remote side has
  73896. closed its end of the connection. */
  73897. if (inseg.p->tot_len > 0) {
  73898. 801e136: 4b4c ldr r3, [pc, #304] @ (801e268 <tcp_receive+0xb0c>)
  73899. 801e138: 685b ldr r3, [r3, #4]
  73900. 801e13a: 891b ldrh r3, [r3, #8]
  73901. 801e13c: 2b00 cmp r3, #0
  73902. 801e13e: d006 beq.n 801e14e <tcp_receive+0x9f2>
  73903. recv_data = inseg.p;
  73904. 801e140: 4b49 ldr r3, [pc, #292] @ (801e268 <tcp_receive+0xb0c>)
  73905. 801e142: 685b ldr r3, [r3, #4]
  73906. 801e144: 4a4d ldr r2, [pc, #308] @ (801e27c <tcp_receive+0xb20>)
  73907. 801e146: 6013 str r3, [r2, #0]
  73908. /* Since this pbuf now is the responsibility of the
  73909. application, we delete our reference to it so that we won't
  73910. (mistakingly) deallocate it. */
  73911. inseg.p = NULL;
  73912. 801e148: 4b47 ldr r3, [pc, #284] @ (801e268 <tcp_receive+0xb0c>)
  73913. 801e14a: 2200 movs r2, #0
  73914. 801e14c: 605a str r2, [r3, #4]
  73915. }
  73916. if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) {
  73917. 801e14e: 4b46 ldr r3, [pc, #280] @ (801e268 <tcp_receive+0xb0c>)
  73918. 801e150: 691b ldr r3, [r3, #16]
  73919. 801e152: 899b ldrh r3, [r3, #12]
  73920. 801e154: b29b uxth r3, r3
  73921. 801e156: 4618 mov r0, r3
  73922. 801e158: f7fa fa7e bl 8018658 <lwip_htons>
  73923. 801e15c: 4603 mov r3, r0
  73924. 801e15e: b2db uxtb r3, r3
  73925. 801e160: f003 0301 and.w r3, r3, #1
  73926. 801e164: 2b00 cmp r3, #0
  73927. 801e166: f000 80b8 beq.w 801e2da <tcp_receive+0xb7e>
  73928. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: received FIN.\n"));
  73929. recv_flags |= TF_GOT_FIN;
  73930. 801e16a: 4b45 ldr r3, [pc, #276] @ (801e280 <tcp_receive+0xb24>)
  73931. 801e16c: 781b ldrb r3, [r3, #0]
  73932. 801e16e: f043 0320 orr.w r3, r3, #32
  73933. 801e172: b2da uxtb r2, r3
  73934. 801e174: 4b42 ldr r3, [pc, #264] @ (801e280 <tcp_receive+0xb24>)
  73935. 801e176: 701a strb r2, [r3, #0]
  73936. }
  73937. #if TCP_QUEUE_OOSEQ
  73938. /* We now check if we have segments on the ->ooseq queue that
  73939. are now in sequence. */
  73940. while (pcb->ooseq != NULL &&
  73941. 801e178: e0af b.n 801e2da <tcp_receive+0xb7e>
  73942. pcb->ooseq->tcphdr->seqno == pcb->rcv_nxt) {
  73943. struct tcp_seg *cseg = pcb->ooseq;
  73944. 801e17a: 687b ldr r3, [r7, #4]
  73945. 801e17c: 6f5b ldr r3, [r3, #116] @ 0x74
  73946. 801e17e: 60bb str r3, [r7, #8]
  73947. seqno = pcb->ooseq->tcphdr->seqno;
  73948. 801e180: 687b ldr r3, [r7, #4]
  73949. 801e182: 6f5b ldr r3, [r3, #116] @ 0x74
  73950. 801e184: 691b ldr r3, [r3, #16]
  73951. 801e186: 685b ldr r3, [r3, #4]
  73952. 801e188: 4a36 ldr r2, [pc, #216] @ (801e264 <tcp_receive+0xb08>)
  73953. 801e18a: 6013 str r3, [r2, #0]
  73954. pcb->rcv_nxt += TCP_TCPLEN(cseg);
  73955. 801e18c: 68bb ldr r3, [r7, #8]
  73956. 801e18e: 891b ldrh r3, [r3, #8]
  73957. 801e190: 461c mov r4, r3
  73958. 801e192: 68bb ldr r3, [r7, #8]
  73959. 801e194: 691b ldr r3, [r3, #16]
  73960. 801e196: 899b ldrh r3, [r3, #12]
  73961. 801e198: b29b uxth r3, r3
  73962. 801e19a: 4618 mov r0, r3
  73963. 801e19c: f7fa fa5c bl 8018658 <lwip_htons>
  73964. 801e1a0: 4603 mov r3, r0
  73965. 801e1a2: b2db uxtb r3, r3
  73966. 801e1a4: f003 0303 and.w r3, r3, #3
  73967. 801e1a8: 2b00 cmp r3, #0
  73968. 801e1aa: d001 beq.n 801e1b0 <tcp_receive+0xa54>
  73969. 801e1ac: 2301 movs r3, #1
  73970. 801e1ae: e000 b.n 801e1b2 <tcp_receive+0xa56>
  73971. 801e1b0: 2300 movs r3, #0
  73972. 801e1b2: 191a adds r2, r3, r4
  73973. 801e1b4: 687b ldr r3, [r7, #4]
  73974. 801e1b6: 6a5b ldr r3, [r3, #36] @ 0x24
  73975. 801e1b8: 441a add r2, r3
  73976. 801e1ba: 687b ldr r3, [r7, #4]
  73977. 801e1bc: 625a str r2, [r3, #36] @ 0x24
  73978. LWIP_ASSERT("tcp_receive: ooseq tcplen > rcv_wnd\n",
  73979. 801e1be: 687b ldr r3, [r7, #4]
  73980. 801e1c0: 8d1b ldrh r3, [r3, #40] @ 0x28
  73981. 801e1c2: 461c mov r4, r3
  73982. 801e1c4: 68bb ldr r3, [r7, #8]
  73983. 801e1c6: 891b ldrh r3, [r3, #8]
  73984. 801e1c8: 461d mov r5, r3
  73985. 801e1ca: 68bb ldr r3, [r7, #8]
  73986. 801e1cc: 691b ldr r3, [r3, #16]
  73987. 801e1ce: 899b ldrh r3, [r3, #12]
  73988. 801e1d0: b29b uxth r3, r3
  73989. 801e1d2: 4618 mov r0, r3
  73990. 801e1d4: f7fa fa40 bl 8018658 <lwip_htons>
  73991. 801e1d8: 4603 mov r3, r0
  73992. 801e1da: b2db uxtb r3, r3
  73993. 801e1dc: f003 0303 and.w r3, r3, #3
  73994. 801e1e0: 2b00 cmp r3, #0
  73995. 801e1e2: d001 beq.n 801e1e8 <tcp_receive+0xa8c>
  73996. 801e1e4: 2301 movs r3, #1
  73997. 801e1e6: e000 b.n 801e1ea <tcp_receive+0xa8e>
  73998. 801e1e8: 2300 movs r3, #0
  73999. 801e1ea: 442b add r3, r5
  74000. 801e1ec: 429c cmp r4, r3
  74001. 801e1ee: d206 bcs.n 801e1fe <tcp_receive+0xaa2>
  74002. 801e1f0: 4b1e ldr r3, [pc, #120] @ (801e26c <tcp_receive+0xb10>)
  74003. 801e1f2: f240 622b movw r2, #1579 @ 0x62b
  74004. 801e1f6: 4923 ldr r1, [pc, #140] @ (801e284 <tcp_receive+0xb28>)
  74005. 801e1f8: 481e ldr r0, [pc, #120] @ (801e274 <tcp_receive+0xb18>)
  74006. 801e1fa: f00b f987 bl 802950c <iprintf>
  74007. pcb->rcv_wnd >= TCP_TCPLEN(cseg));
  74008. pcb->rcv_wnd -= TCP_TCPLEN(cseg);
  74009. 801e1fe: 68bb ldr r3, [r7, #8]
  74010. 801e200: 891b ldrh r3, [r3, #8]
  74011. 801e202: 461c mov r4, r3
  74012. 801e204: 68bb ldr r3, [r7, #8]
  74013. 801e206: 691b ldr r3, [r3, #16]
  74014. 801e208: 899b ldrh r3, [r3, #12]
  74015. 801e20a: b29b uxth r3, r3
  74016. 801e20c: 4618 mov r0, r3
  74017. 801e20e: f7fa fa23 bl 8018658 <lwip_htons>
  74018. 801e212: 4603 mov r3, r0
  74019. 801e214: b2db uxtb r3, r3
  74020. 801e216: f003 0303 and.w r3, r3, #3
  74021. 801e21a: 2b00 cmp r3, #0
  74022. 801e21c: d001 beq.n 801e222 <tcp_receive+0xac6>
  74023. 801e21e: 2301 movs r3, #1
  74024. 801e220: e000 b.n 801e224 <tcp_receive+0xac8>
  74025. 801e222: 2300 movs r3, #0
  74026. 801e224: 1919 adds r1, r3, r4
  74027. 801e226: 687b ldr r3, [r7, #4]
  74028. 801e228: 8d1a ldrh r2, [r3, #40] @ 0x28
  74029. 801e22a: b28b uxth r3, r1
  74030. 801e22c: 1ad3 subs r3, r2, r3
  74031. 801e22e: b29a uxth r2, r3
  74032. 801e230: 687b ldr r3, [r7, #4]
  74033. 801e232: 851a strh r2, [r3, #40] @ 0x28
  74034. tcp_update_rcv_ann_wnd(pcb);
  74035. 801e234: 6878 ldr r0, [r7, #4]
  74036. 801e236: f7fc fd03 bl 801ac40 <tcp_update_rcv_ann_wnd>
  74037. if (cseg->p->tot_len > 0) {
  74038. 801e23a: 68bb ldr r3, [r7, #8]
  74039. 801e23c: 685b ldr r3, [r3, #4]
  74040. 801e23e: 891b ldrh r3, [r3, #8]
  74041. 801e240: 2b00 cmp r3, #0
  74042. 801e242: d028 beq.n 801e296 <tcp_receive+0xb3a>
  74043. /* Chain this pbuf onto the pbuf that we will pass to
  74044. the application. */
  74045. /* With window scaling, this can overflow recv_data->tot_len, but
  74046. that's not a problem since we explicitly fix that before passing
  74047. recv_data to the application. */
  74048. if (recv_data) {
  74049. 801e244: 4b0d ldr r3, [pc, #52] @ (801e27c <tcp_receive+0xb20>)
  74050. 801e246: 681b ldr r3, [r3, #0]
  74051. 801e248: 2b00 cmp r3, #0
  74052. 801e24a: d01d beq.n 801e288 <tcp_receive+0xb2c>
  74053. pbuf_cat(recv_data, cseg->p);
  74054. 801e24c: 4b0b ldr r3, [pc, #44] @ (801e27c <tcp_receive+0xb20>)
  74055. 801e24e: 681a ldr r2, [r3, #0]
  74056. 801e250: 68bb ldr r3, [r7, #8]
  74057. 801e252: 685b ldr r3, [r3, #4]
  74058. 801e254: 4619 mov r1, r3
  74059. 801e256: 4610 mov r0, r2
  74060. 801e258: f7fb ffae bl 801a1b8 <pbuf_cat>
  74061. 801e25c: e018 b.n 801e290 <tcp_receive+0xb34>
  74062. 801e25e: bf00 nop
  74063. 801e260: 2402a032 .word 0x2402a032
  74064. 801e264: 2402a028 .word 0x2402a028
  74065. 801e268: 2402a004 .word 0x2402a004
  74066. 801e26c: 0802e8a4 .word 0x0802e8a4
  74067. 801e270: 0802ec84 .word 0x0802ec84
  74068. 801e274: 0802e8f0 .word 0x0802e8f0
  74069. 801e278: 0802ecc0 .word 0x0802ecc0
  74070. 801e27c: 2402a038 .word 0x2402a038
  74071. 801e280: 2402a035 .word 0x2402a035
  74072. 801e284: 0802ece0 .word 0x0802ece0
  74073. } else {
  74074. recv_data = cseg->p;
  74075. 801e288: 68bb ldr r3, [r7, #8]
  74076. 801e28a: 685b ldr r3, [r3, #4]
  74077. 801e28c: 4a70 ldr r2, [pc, #448] @ (801e450 <tcp_receive+0xcf4>)
  74078. 801e28e: 6013 str r3, [r2, #0]
  74079. }
  74080. cseg->p = NULL;
  74081. 801e290: 68bb ldr r3, [r7, #8]
  74082. 801e292: 2200 movs r2, #0
  74083. 801e294: 605a str r2, [r3, #4]
  74084. }
  74085. if (TCPH_FLAGS(cseg->tcphdr) & TCP_FIN) {
  74086. 801e296: 68bb ldr r3, [r7, #8]
  74087. 801e298: 691b ldr r3, [r3, #16]
  74088. 801e29a: 899b ldrh r3, [r3, #12]
  74089. 801e29c: b29b uxth r3, r3
  74090. 801e29e: 4618 mov r0, r3
  74091. 801e2a0: f7fa f9da bl 8018658 <lwip_htons>
  74092. 801e2a4: 4603 mov r3, r0
  74093. 801e2a6: b2db uxtb r3, r3
  74094. 801e2a8: f003 0301 and.w r3, r3, #1
  74095. 801e2ac: 2b00 cmp r3, #0
  74096. 801e2ae: d00d beq.n 801e2cc <tcp_receive+0xb70>
  74097. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: dequeued FIN.\n"));
  74098. recv_flags |= TF_GOT_FIN;
  74099. 801e2b0: 4b68 ldr r3, [pc, #416] @ (801e454 <tcp_receive+0xcf8>)
  74100. 801e2b2: 781b ldrb r3, [r3, #0]
  74101. 801e2b4: f043 0320 orr.w r3, r3, #32
  74102. 801e2b8: b2da uxtb r2, r3
  74103. 801e2ba: 4b66 ldr r3, [pc, #408] @ (801e454 <tcp_receive+0xcf8>)
  74104. 801e2bc: 701a strb r2, [r3, #0]
  74105. if (pcb->state == ESTABLISHED) { /* force passive close or we can move to active close */
  74106. 801e2be: 687b ldr r3, [r7, #4]
  74107. 801e2c0: 7d1b ldrb r3, [r3, #20]
  74108. 801e2c2: 2b04 cmp r3, #4
  74109. 801e2c4: d102 bne.n 801e2cc <tcp_receive+0xb70>
  74110. pcb->state = CLOSE_WAIT;
  74111. 801e2c6: 687b ldr r3, [r7, #4]
  74112. 801e2c8: 2207 movs r2, #7
  74113. 801e2ca: 751a strb r2, [r3, #20]
  74114. }
  74115. }
  74116. pcb->ooseq = cseg->next;
  74117. 801e2cc: 68bb ldr r3, [r7, #8]
  74118. 801e2ce: 681a ldr r2, [r3, #0]
  74119. 801e2d0: 687b ldr r3, [r7, #4]
  74120. 801e2d2: 675a str r2, [r3, #116] @ 0x74
  74121. tcp_seg_free(cseg);
  74122. 801e2d4: 68b8 ldr r0, [r7, #8]
  74123. 801e2d6: f7fd fafa bl 801b8ce <tcp_seg_free>
  74124. while (pcb->ooseq != NULL &&
  74125. 801e2da: 687b ldr r3, [r7, #4]
  74126. 801e2dc: 6f5b ldr r3, [r3, #116] @ 0x74
  74127. 801e2de: 2b00 cmp r3, #0
  74128. 801e2e0: d008 beq.n 801e2f4 <tcp_receive+0xb98>
  74129. pcb->ooseq->tcphdr->seqno == pcb->rcv_nxt) {
  74130. 801e2e2: 687b ldr r3, [r7, #4]
  74131. 801e2e4: 6f5b ldr r3, [r3, #116] @ 0x74
  74132. 801e2e6: 691b ldr r3, [r3, #16]
  74133. 801e2e8: 685a ldr r2, [r3, #4]
  74134. 801e2ea: 687b ldr r3, [r7, #4]
  74135. 801e2ec: 6a5b ldr r3, [r3, #36] @ 0x24
  74136. while (pcb->ooseq != NULL &&
  74137. 801e2ee: 429a cmp r2, r3
  74138. 801e2f0: f43f af43 beq.w 801e17a <tcp_receive+0xa1e>
  74139. #endif /* LWIP_TCP_SACK_OUT */
  74140. #endif /* TCP_QUEUE_OOSEQ */
  74141. /* Acknowledge the segment(s). */
  74142. tcp_ack(pcb);
  74143. 801e2f4: 687b ldr r3, [r7, #4]
  74144. 801e2f6: 8b5b ldrh r3, [r3, #26]
  74145. 801e2f8: f003 0301 and.w r3, r3, #1
  74146. 801e2fc: 2b00 cmp r3, #0
  74147. 801e2fe: d00e beq.n 801e31e <tcp_receive+0xbc2>
  74148. 801e300: 687b ldr r3, [r7, #4]
  74149. 801e302: 8b5b ldrh r3, [r3, #26]
  74150. 801e304: f023 0301 bic.w r3, r3, #1
  74151. 801e308: b29a uxth r2, r3
  74152. 801e30a: 687b ldr r3, [r7, #4]
  74153. 801e30c: 835a strh r2, [r3, #26]
  74154. 801e30e: 687b ldr r3, [r7, #4]
  74155. 801e310: 8b5b ldrh r3, [r3, #26]
  74156. 801e312: f043 0302 orr.w r3, r3, #2
  74157. 801e316: b29a uxth r2, r3
  74158. 801e318: 687b ldr r3, [r7, #4]
  74159. 801e31a: 835a strh r2, [r3, #26]
  74160. if (pcb->rcv_nxt == seqno) {
  74161. 801e31c: e187 b.n 801e62e <tcp_receive+0xed2>
  74162. tcp_ack(pcb);
  74163. 801e31e: 687b ldr r3, [r7, #4]
  74164. 801e320: 8b5b ldrh r3, [r3, #26]
  74165. 801e322: f043 0301 orr.w r3, r3, #1
  74166. 801e326: b29a uxth r2, r3
  74167. 801e328: 687b ldr r3, [r7, #4]
  74168. 801e32a: 835a strh r2, [r3, #26]
  74169. if (pcb->rcv_nxt == seqno) {
  74170. 801e32c: e17f b.n 801e62e <tcp_receive+0xed2>
  74171. } else {
  74172. /* We get here if the incoming segment is out-of-sequence. */
  74173. #if TCP_QUEUE_OOSEQ
  74174. /* We queue the segment on the ->ooseq queue. */
  74175. if (pcb->ooseq == NULL) {
  74176. 801e32e: 687b ldr r3, [r7, #4]
  74177. 801e330: 6f5b ldr r3, [r3, #116] @ 0x74
  74178. 801e332: 2b00 cmp r3, #0
  74179. 801e334: d106 bne.n 801e344 <tcp_receive+0xbe8>
  74180. pcb->ooseq = tcp_seg_copy(&inseg);
  74181. 801e336: 4848 ldr r0, [pc, #288] @ (801e458 <tcp_receive+0xcfc>)
  74182. 801e338: f7fd fae2 bl 801b900 <tcp_seg_copy>
  74183. 801e33c: 4602 mov r2, r0
  74184. 801e33e: 687b ldr r3, [r7, #4]
  74185. 801e340: 675a str r2, [r3, #116] @ 0x74
  74186. 801e342: e16c b.n 801e61e <tcp_receive+0xec2>
  74187. #if LWIP_TCP_SACK_OUT
  74188. /* This is the left edge of the lowest possible SACK range.
  74189. It may start before the newly received segment (possibly adjusted below). */
  74190. u32_t sackbeg = TCP_SEQ_LT(seqno, pcb->ooseq->tcphdr->seqno) ? seqno : pcb->ooseq->tcphdr->seqno;
  74191. #endif /* LWIP_TCP_SACK_OUT */
  74192. struct tcp_seg *next, *prev = NULL;
  74193. 801e344: 2300 movs r3, #0
  74194. 801e346: 637b str r3, [r7, #52] @ 0x34
  74195. for (next = pcb->ooseq; next != NULL; next = next->next) {
  74196. 801e348: 687b ldr r3, [r7, #4]
  74197. 801e34a: 6f5b ldr r3, [r3, #116] @ 0x74
  74198. 801e34c: 63bb str r3, [r7, #56] @ 0x38
  74199. 801e34e: e156 b.n 801e5fe <tcp_receive+0xea2>
  74200. if (seqno == next->tcphdr->seqno) {
  74201. 801e350: 6bbb ldr r3, [r7, #56] @ 0x38
  74202. 801e352: 691b ldr r3, [r3, #16]
  74203. 801e354: 685a ldr r2, [r3, #4]
  74204. 801e356: 4b41 ldr r3, [pc, #260] @ (801e45c <tcp_receive+0xd00>)
  74205. 801e358: 681b ldr r3, [r3, #0]
  74206. 801e35a: 429a cmp r2, r3
  74207. 801e35c: d11d bne.n 801e39a <tcp_receive+0xc3e>
  74208. /* The sequence number of the incoming segment is the
  74209. same as the sequence number of the segment on
  74210. ->ooseq. We check the lengths to see which one to
  74211. discard. */
  74212. if (inseg.len > next->len) {
  74213. 801e35e: 4b3e ldr r3, [pc, #248] @ (801e458 <tcp_receive+0xcfc>)
  74214. 801e360: 891a ldrh r2, [r3, #8]
  74215. 801e362: 6bbb ldr r3, [r7, #56] @ 0x38
  74216. 801e364: 891b ldrh r3, [r3, #8]
  74217. 801e366: 429a cmp r2, r3
  74218. 801e368: f240 814e bls.w 801e608 <tcp_receive+0xeac>
  74219. /* The incoming segment is larger than the old
  74220. segment. We replace some segments with the new
  74221. one. */
  74222. struct tcp_seg *cseg = tcp_seg_copy(&inseg);
  74223. 801e36c: 483a ldr r0, [pc, #232] @ (801e458 <tcp_receive+0xcfc>)
  74224. 801e36e: f7fd fac7 bl 801b900 <tcp_seg_copy>
  74225. 801e372: 6178 str r0, [r7, #20]
  74226. if (cseg != NULL) {
  74227. 801e374: 697b ldr r3, [r7, #20]
  74228. 801e376: 2b00 cmp r3, #0
  74229. 801e378: f000 8148 beq.w 801e60c <tcp_receive+0xeb0>
  74230. if (prev != NULL) {
  74231. 801e37c: 6b7b ldr r3, [r7, #52] @ 0x34
  74232. 801e37e: 2b00 cmp r3, #0
  74233. 801e380: d003 beq.n 801e38a <tcp_receive+0xc2e>
  74234. prev->next = cseg;
  74235. 801e382: 6b7b ldr r3, [r7, #52] @ 0x34
  74236. 801e384: 697a ldr r2, [r7, #20]
  74237. 801e386: 601a str r2, [r3, #0]
  74238. 801e388: e002 b.n 801e390 <tcp_receive+0xc34>
  74239. } else {
  74240. pcb->ooseq = cseg;
  74241. 801e38a: 687b ldr r3, [r7, #4]
  74242. 801e38c: 697a ldr r2, [r7, #20]
  74243. 801e38e: 675a str r2, [r3, #116] @ 0x74
  74244. }
  74245. tcp_oos_insert_segment(cseg, next);
  74246. 801e390: 6bb9 ldr r1, [r7, #56] @ 0x38
  74247. 801e392: 6978 ldr r0, [r7, #20]
  74248. 801e394: f7ff f8de bl 801d554 <tcp_oos_insert_segment>
  74249. }
  74250. break;
  74251. 801e398: e138 b.n 801e60c <tcp_receive+0xeb0>
  74252. segment was smaller than the old one; in either
  74253. case, we ditch the incoming segment. */
  74254. break;
  74255. }
  74256. } else {
  74257. if (prev == NULL) {
  74258. 801e39a: 6b7b ldr r3, [r7, #52] @ 0x34
  74259. 801e39c: 2b00 cmp r3, #0
  74260. 801e39e: d117 bne.n 801e3d0 <tcp_receive+0xc74>
  74261. if (TCP_SEQ_LT(seqno, next->tcphdr->seqno)) {
  74262. 801e3a0: 4b2e ldr r3, [pc, #184] @ (801e45c <tcp_receive+0xd00>)
  74263. 801e3a2: 681a ldr r2, [r3, #0]
  74264. 801e3a4: 6bbb ldr r3, [r7, #56] @ 0x38
  74265. 801e3a6: 691b ldr r3, [r3, #16]
  74266. 801e3a8: 685b ldr r3, [r3, #4]
  74267. 801e3aa: 1ad3 subs r3, r2, r3
  74268. 801e3ac: 2b00 cmp r3, #0
  74269. 801e3ae: da57 bge.n 801e460 <tcp_receive+0xd04>
  74270. /* The sequence number of the incoming segment is lower
  74271. than the sequence number of the first segment on the
  74272. queue. We put the incoming segment first on the
  74273. queue. */
  74274. struct tcp_seg *cseg = tcp_seg_copy(&inseg);
  74275. 801e3b0: 4829 ldr r0, [pc, #164] @ (801e458 <tcp_receive+0xcfc>)
  74276. 801e3b2: f7fd faa5 bl 801b900 <tcp_seg_copy>
  74277. 801e3b6: 61b8 str r0, [r7, #24]
  74278. if (cseg != NULL) {
  74279. 801e3b8: 69bb ldr r3, [r7, #24]
  74280. 801e3ba: 2b00 cmp r3, #0
  74281. 801e3bc: f000 8128 beq.w 801e610 <tcp_receive+0xeb4>
  74282. pcb->ooseq = cseg;
  74283. 801e3c0: 687b ldr r3, [r7, #4]
  74284. 801e3c2: 69ba ldr r2, [r7, #24]
  74285. 801e3c4: 675a str r2, [r3, #116] @ 0x74
  74286. tcp_oos_insert_segment(cseg, next);
  74287. 801e3c6: 6bb9 ldr r1, [r7, #56] @ 0x38
  74288. 801e3c8: 69b8 ldr r0, [r7, #24]
  74289. 801e3ca: f7ff f8c3 bl 801d554 <tcp_oos_insert_segment>
  74290. }
  74291. break;
  74292. 801e3ce: e11f b.n 801e610 <tcp_receive+0xeb4>
  74293. }
  74294. } else {
  74295. /*if (TCP_SEQ_LT(prev->tcphdr->seqno, seqno) &&
  74296. TCP_SEQ_LT(seqno, next->tcphdr->seqno)) {*/
  74297. if (TCP_SEQ_BETWEEN(seqno, prev->tcphdr->seqno + 1, next->tcphdr->seqno - 1)) {
  74298. 801e3d0: 4b22 ldr r3, [pc, #136] @ (801e45c <tcp_receive+0xd00>)
  74299. 801e3d2: 681a ldr r2, [r3, #0]
  74300. 801e3d4: 6b7b ldr r3, [r7, #52] @ 0x34
  74301. 801e3d6: 691b ldr r3, [r3, #16]
  74302. 801e3d8: 685b ldr r3, [r3, #4]
  74303. 801e3da: 1ad3 subs r3, r2, r3
  74304. 801e3dc: 3b01 subs r3, #1
  74305. 801e3de: 2b00 cmp r3, #0
  74306. 801e3e0: db3e blt.n 801e460 <tcp_receive+0xd04>
  74307. 801e3e2: 4b1e ldr r3, [pc, #120] @ (801e45c <tcp_receive+0xd00>)
  74308. 801e3e4: 681a ldr r2, [r3, #0]
  74309. 801e3e6: 6bbb ldr r3, [r7, #56] @ 0x38
  74310. 801e3e8: 691b ldr r3, [r3, #16]
  74311. 801e3ea: 685b ldr r3, [r3, #4]
  74312. 801e3ec: 1ad3 subs r3, r2, r3
  74313. 801e3ee: 3301 adds r3, #1
  74314. 801e3f0: 2b00 cmp r3, #0
  74315. 801e3f2: dc35 bgt.n 801e460 <tcp_receive+0xd04>
  74316. /* The sequence number of the incoming segment is in
  74317. between the sequence numbers of the previous and
  74318. the next segment on ->ooseq. We trim trim the previous
  74319. segment, delete next segments that included in received segment
  74320. and trim received, if needed. */
  74321. struct tcp_seg *cseg = tcp_seg_copy(&inseg);
  74322. 801e3f4: 4818 ldr r0, [pc, #96] @ (801e458 <tcp_receive+0xcfc>)
  74323. 801e3f6: f7fd fa83 bl 801b900 <tcp_seg_copy>
  74324. 801e3fa: 61f8 str r0, [r7, #28]
  74325. if (cseg != NULL) {
  74326. 801e3fc: 69fb ldr r3, [r7, #28]
  74327. 801e3fe: 2b00 cmp r3, #0
  74328. 801e400: f000 8108 beq.w 801e614 <tcp_receive+0xeb8>
  74329. if (TCP_SEQ_GT(prev->tcphdr->seqno + prev->len, seqno)) {
  74330. 801e404: 6b7b ldr r3, [r7, #52] @ 0x34
  74331. 801e406: 691b ldr r3, [r3, #16]
  74332. 801e408: 685b ldr r3, [r3, #4]
  74333. 801e40a: 6b7a ldr r2, [r7, #52] @ 0x34
  74334. 801e40c: 8912 ldrh r2, [r2, #8]
  74335. 801e40e: 441a add r2, r3
  74336. 801e410: 4b12 ldr r3, [pc, #72] @ (801e45c <tcp_receive+0xd00>)
  74337. 801e412: 681b ldr r3, [r3, #0]
  74338. 801e414: 1ad3 subs r3, r2, r3
  74339. 801e416: 2b00 cmp r3, #0
  74340. 801e418: dd12 ble.n 801e440 <tcp_receive+0xce4>
  74341. /* We need to trim the prev segment. */
  74342. prev->len = (u16_t)(seqno - prev->tcphdr->seqno);
  74343. 801e41a: 4b10 ldr r3, [pc, #64] @ (801e45c <tcp_receive+0xd00>)
  74344. 801e41c: 681b ldr r3, [r3, #0]
  74345. 801e41e: b29a uxth r2, r3
  74346. 801e420: 6b7b ldr r3, [r7, #52] @ 0x34
  74347. 801e422: 691b ldr r3, [r3, #16]
  74348. 801e424: 685b ldr r3, [r3, #4]
  74349. 801e426: b29b uxth r3, r3
  74350. 801e428: 1ad3 subs r3, r2, r3
  74351. 801e42a: b29a uxth r2, r3
  74352. 801e42c: 6b7b ldr r3, [r7, #52] @ 0x34
  74353. 801e42e: 811a strh r2, [r3, #8]
  74354. pbuf_realloc(prev->p, prev->len);
  74355. 801e430: 6b7b ldr r3, [r7, #52] @ 0x34
  74356. 801e432: 685a ldr r2, [r3, #4]
  74357. 801e434: 6b7b ldr r3, [r7, #52] @ 0x34
  74358. 801e436: 891b ldrh r3, [r3, #8]
  74359. 801e438: 4619 mov r1, r3
  74360. 801e43a: 4610 mov r0, r2
  74361. 801e43c: f7fb fc38 bl 8019cb0 <pbuf_realloc>
  74362. }
  74363. prev->next = cseg;
  74364. 801e440: 6b7b ldr r3, [r7, #52] @ 0x34
  74365. 801e442: 69fa ldr r2, [r7, #28]
  74366. 801e444: 601a str r2, [r3, #0]
  74367. tcp_oos_insert_segment(cseg, next);
  74368. 801e446: 6bb9 ldr r1, [r7, #56] @ 0x38
  74369. 801e448: 69f8 ldr r0, [r7, #28]
  74370. 801e44a: f7ff f883 bl 801d554 <tcp_oos_insert_segment>
  74371. }
  74372. break;
  74373. 801e44e: e0e1 b.n 801e614 <tcp_receive+0xeb8>
  74374. 801e450: 2402a038 .word 0x2402a038
  74375. 801e454: 2402a035 .word 0x2402a035
  74376. 801e458: 2402a004 .word 0x2402a004
  74377. 801e45c: 2402a028 .word 0x2402a028
  74378. #endif /* LWIP_TCP_SACK_OUT */
  74379. /* We don't use 'prev' below, so let's set it to current 'next'.
  74380. This way even if we break the loop below, 'prev' will be pointing
  74381. at the segment right in front of the newly added one. */
  74382. prev = next;
  74383. 801e460: 6bbb ldr r3, [r7, #56] @ 0x38
  74384. 801e462: 637b str r3, [r7, #52] @ 0x34
  74385. /* If the "next" segment is the last segment on the
  74386. ooseq queue, we add the incoming segment to the end
  74387. of the list. */
  74388. if (next->next == NULL &&
  74389. 801e464: 6bbb ldr r3, [r7, #56] @ 0x38
  74390. 801e466: 681b ldr r3, [r3, #0]
  74391. 801e468: 2b00 cmp r3, #0
  74392. 801e46a: f040 80c5 bne.w 801e5f8 <tcp_receive+0xe9c>
  74393. TCP_SEQ_GT(seqno, next->tcphdr->seqno)) {
  74394. 801e46e: 4b7f ldr r3, [pc, #508] @ (801e66c <tcp_receive+0xf10>)
  74395. 801e470: 681a ldr r2, [r3, #0]
  74396. 801e472: 6bbb ldr r3, [r7, #56] @ 0x38
  74397. 801e474: 691b ldr r3, [r3, #16]
  74398. 801e476: 685b ldr r3, [r3, #4]
  74399. 801e478: 1ad3 subs r3, r2, r3
  74400. if (next->next == NULL &&
  74401. 801e47a: 2b00 cmp r3, #0
  74402. 801e47c: f340 80bc ble.w 801e5f8 <tcp_receive+0xe9c>
  74403. if (TCPH_FLAGS(next->tcphdr) & TCP_FIN) {
  74404. 801e480: 6bbb ldr r3, [r7, #56] @ 0x38
  74405. 801e482: 691b ldr r3, [r3, #16]
  74406. 801e484: 899b ldrh r3, [r3, #12]
  74407. 801e486: b29b uxth r3, r3
  74408. 801e488: 4618 mov r0, r3
  74409. 801e48a: f7fa f8e5 bl 8018658 <lwip_htons>
  74410. 801e48e: 4603 mov r3, r0
  74411. 801e490: b2db uxtb r3, r3
  74412. 801e492: f003 0301 and.w r3, r3, #1
  74413. 801e496: 2b00 cmp r3, #0
  74414. 801e498: f040 80be bne.w 801e618 <tcp_receive+0xebc>
  74415. /* segment "next" already contains all data */
  74416. break;
  74417. }
  74418. next->next = tcp_seg_copy(&inseg);
  74419. 801e49c: 4874 ldr r0, [pc, #464] @ (801e670 <tcp_receive+0xf14>)
  74420. 801e49e: f7fd fa2f bl 801b900 <tcp_seg_copy>
  74421. 801e4a2: 4602 mov r2, r0
  74422. 801e4a4: 6bbb ldr r3, [r7, #56] @ 0x38
  74423. 801e4a6: 601a str r2, [r3, #0]
  74424. if (next->next != NULL) {
  74425. 801e4a8: 6bbb ldr r3, [r7, #56] @ 0x38
  74426. 801e4aa: 681b ldr r3, [r3, #0]
  74427. 801e4ac: 2b00 cmp r3, #0
  74428. 801e4ae: f000 80b5 beq.w 801e61c <tcp_receive+0xec0>
  74429. if (TCP_SEQ_GT(next->tcphdr->seqno + next->len, seqno)) {
  74430. 801e4b2: 6bbb ldr r3, [r7, #56] @ 0x38
  74431. 801e4b4: 691b ldr r3, [r3, #16]
  74432. 801e4b6: 685b ldr r3, [r3, #4]
  74433. 801e4b8: 6bba ldr r2, [r7, #56] @ 0x38
  74434. 801e4ba: 8912 ldrh r2, [r2, #8]
  74435. 801e4bc: 441a add r2, r3
  74436. 801e4be: 4b6b ldr r3, [pc, #428] @ (801e66c <tcp_receive+0xf10>)
  74437. 801e4c0: 681b ldr r3, [r3, #0]
  74438. 801e4c2: 1ad3 subs r3, r2, r3
  74439. 801e4c4: 2b00 cmp r3, #0
  74440. 801e4c6: dd12 ble.n 801e4ee <tcp_receive+0xd92>
  74441. /* We need to trim the last segment. */
  74442. next->len = (u16_t)(seqno - next->tcphdr->seqno);
  74443. 801e4c8: 4b68 ldr r3, [pc, #416] @ (801e66c <tcp_receive+0xf10>)
  74444. 801e4ca: 681b ldr r3, [r3, #0]
  74445. 801e4cc: b29a uxth r2, r3
  74446. 801e4ce: 6bbb ldr r3, [r7, #56] @ 0x38
  74447. 801e4d0: 691b ldr r3, [r3, #16]
  74448. 801e4d2: 685b ldr r3, [r3, #4]
  74449. 801e4d4: b29b uxth r3, r3
  74450. 801e4d6: 1ad3 subs r3, r2, r3
  74451. 801e4d8: b29a uxth r2, r3
  74452. 801e4da: 6bbb ldr r3, [r7, #56] @ 0x38
  74453. 801e4dc: 811a strh r2, [r3, #8]
  74454. pbuf_realloc(next->p, next->len);
  74455. 801e4de: 6bbb ldr r3, [r7, #56] @ 0x38
  74456. 801e4e0: 685a ldr r2, [r3, #4]
  74457. 801e4e2: 6bbb ldr r3, [r7, #56] @ 0x38
  74458. 801e4e4: 891b ldrh r3, [r3, #8]
  74459. 801e4e6: 4619 mov r1, r3
  74460. 801e4e8: 4610 mov r0, r2
  74461. 801e4ea: f7fb fbe1 bl 8019cb0 <pbuf_realloc>
  74462. }
  74463. /* check if the remote side overruns our receive window */
  74464. if (TCP_SEQ_GT((u32_t)tcplen + seqno, pcb->rcv_nxt + (u32_t)pcb->rcv_wnd)) {
  74465. 801e4ee: 4b61 ldr r3, [pc, #388] @ (801e674 <tcp_receive+0xf18>)
  74466. 801e4f0: 881b ldrh r3, [r3, #0]
  74467. 801e4f2: 461a mov r2, r3
  74468. 801e4f4: 4b5d ldr r3, [pc, #372] @ (801e66c <tcp_receive+0xf10>)
  74469. 801e4f6: 681b ldr r3, [r3, #0]
  74470. 801e4f8: 441a add r2, r3
  74471. 801e4fa: 687b ldr r3, [r7, #4]
  74472. 801e4fc: 6a5b ldr r3, [r3, #36] @ 0x24
  74473. 801e4fe: 6879 ldr r1, [r7, #4]
  74474. 801e500: 8d09 ldrh r1, [r1, #40] @ 0x28
  74475. 801e502: 440b add r3, r1
  74476. 801e504: 1ad3 subs r3, r2, r3
  74477. 801e506: 2b00 cmp r3, #0
  74478. 801e508: f340 8088 ble.w 801e61c <tcp_receive+0xec0>
  74479. LWIP_DEBUGF(TCP_INPUT_DEBUG,
  74480. ("tcp_receive: other end overran receive window"
  74481. "seqno %"U32_F" len %"U16_F" right edge %"U32_F"\n",
  74482. seqno, tcplen, pcb->rcv_nxt + pcb->rcv_wnd));
  74483. if (TCPH_FLAGS(next->next->tcphdr) & TCP_FIN) {
  74484. 801e50c: 6bbb ldr r3, [r7, #56] @ 0x38
  74485. 801e50e: 681b ldr r3, [r3, #0]
  74486. 801e510: 691b ldr r3, [r3, #16]
  74487. 801e512: 899b ldrh r3, [r3, #12]
  74488. 801e514: b29b uxth r3, r3
  74489. 801e516: 4618 mov r0, r3
  74490. 801e518: f7fa f89e bl 8018658 <lwip_htons>
  74491. 801e51c: 4603 mov r3, r0
  74492. 801e51e: b2db uxtb r3, r3
  74493. 801e520: f003 0301 and.w r3, r3, #1
  74494. 801e524: 2b00 cmp r3, #0
  74495. 801e526: d021 beq.n 801e56c <tcp_receive+0xe10>
  74496. /* Must remove the FIN from the header as we're trimming
  74497. * that byte of sequence-space from the packet */
  74498. TCPH_FLAGS_SET(next->next->tcphdr, TCPH_FLAGS(next->next->tcphdr) & ~TCP_FIN);
  74499. 801e528: 6bbb ldr r3, [r7, #56] @ 0x38
  74500. 801e52a: 681b ldr r3, [r3, #0]
  74501. 801e52c: 691b ldr r3, [r3, #16]
  74502. 801e52e: 899b ldrh r3, [r3, #12]
  74503. 801e530: b29b uxth r3, r3
  74504. 801e532: b21b sxth r3, r3
  74505. 801e534: f423 537c bic.w r3, r3, #16128 @ 0x3f00
  74506. 801e538: b21c sxth r4, r3
  74507. 801e53a: 6bbb ldr r3, [r7, #56] @ 0x38
  74508. 801e53c: 681b ldr r3, [r3, #0]
  74509. 801e53e: 691b ldr r3, [r3, #16]
  74510. 801e540: 899b ldrh r3, [r3, #12]
  74511. 801e542: b29b uxth r3, r3
  74512. 801e544: 4618 mov r0, r3
  74513. 801e546: f7fa f887 bl 8018658 <lwip_htons>
  74514. 801e54a: 4603 mov r3, r0
  74515. 801e54c: b2db uxtb r3, r3
  74516. 801e54e: f003 033e and.w r3, r3, #62 @ 0x3e
  74517. 801e552: b29b uxth r3, r3
  74518. 801e554: 4618 mov r0, r3
  74519. 801e556: f7fa f87f bl 8018658 <lwip_htons>
  74520. 801e55a: 4603 mov r3, r0
  74521. 801e55c: b21b sxth r3, r3
  74522. 801e55e: 4323 orrs r3, r4
  74523. 801e560: b21a sxth r2, r3
  74524. 801e562: 6bbb ldr r3, [r7, #56] @ 0x38
  74525. 801e564: 681b ldr r3, [r3, #0]
  74526. 801e566: 691b ldr r3, [r3, #16]
  74527. 801e568: b292 uxth r2, r2
  74528. 801e56a: 819a strh r2, [r3, #12]
  74529. }
  74530. /* Adjust length of segment to fit in the window. */
  74531. next->next->len = (u16_t)(pcb->rcv_nxt + pcb->rcv_wnd - seqno);
  74532. 801e56c: 687b ldr r3, [r7, #4]
  74533. 801e56e: 6a5b ldr r3, [r3, #36] @ 0x24
  74534. 801e570: b29a uxth r2, r3
  74535. 801e572: 687b ldr r3, [r7, #4]
  74536. 801e574: 8d1b ldrh r3, [r3, #40] @ 0x28
  74537. 801e576: 4413 add r3, r2
  74538. 801e578: b299 uxth r1, r3
  74539. 801e57a: 4b3c ldr r3, [pc, #240] @ (801e66c <tcp_receive+0xf10>)
  74540. 801e57c: 681b ldr r3, [r3, #0]
  74541. 801e57e: b29a uxth r2, r3
  74542. 801e580: 6bbb ldr r3, [r7, #56] @ 0x38
  74543. 801e582: 681b ldr r3, [r3, #0]
  74544. 801e584: 1a8a subs r2, r1, r2
  74545. 801e586: b292 uxth r2, r2
  74546. 801e588: 811a strh r2, [r3, #8]
  74547. pbuf_realloc(next->next->p, next->next->len);
  74548. 801e58a: 6bbb ldr r3, [r7, #56] @ 0x38
  74549. 801e58c: 681b ldr r3, [r3, #0]
  74550. 801e58e: 685a ldr r2, [r3, #4]
  74551. 801e590: 6bbb ldr r3, [r7, #56] @ 0x38
  74552. 801e592: 681b ldr r3, [r3, #0]
  74553. 801e594: 891b ldrh r3, [r3, #8]
  74554. 801e596: 4619 mov r1, r3
  74555. 801e598: 4610 mov r0, r2
  74556. 801e59a: f7fb fb89 bl 8019cb0 <pbuf_realloc>
  74557. tcplen = TCP_TCPLEN(next->next);
  74558. 801e59e: 6bbb ldr r3, [r7, #56] @ 0x38
  74559. 801e5a0: 681b ldr r3, [r3, #0]
  74560. 801e5a2: 891c ldrh r4, [r3, #8]
  74561. 801e5a4: 6bbb ldr r3, [r7, #56] @ 0x38
  74562. 801e5a6: 681b ldr r3, [r3, #0]
  74563. 801e5a8: 691b ldr r3, [r3, #16]
  74564. 801e5aa: 899b ldrh r3, [r3, #12]
  74565. 801e5ac: b29b uxth r3, r3
  74566. 801e5ae: 4618 mov r0, r3
  74567. 801e5b0: f7fa f852 bl 8018658 <lwip_htons>
  74568. 801e5b4: 4603 mov r3, r0
  74569. 801e5b6: b2db uxtb r3, r3
  74570. 801e5b8: f003 0303 and.w r3, r3, #3
  74571. 801e5bc: 2b00 cmp r3, #0
  74572. 801e5be: d001 beq.n 801e5c4 <tcp_receive+0xe68>
  74573. 801e5c0: 2301 movs r3, #1
  74574. 801e5c2: e000 b.n 801e5c6 <tcp_receive+0xe6a>
  74575. 801e5c4: 2300 movs r3, #0
  74576. 801e5c6: 4423 add r3, r4
  74577. 801e5c8: b29a uxth r2, r3
  74578. 801e5ca: 4b2a ldr r3, [pc, #168] @ (801e674 <tcp_receive+0xf18>)
  74579. 801e5cc: 801a strh r2, [r3, #0]
  74580. LWIP_ASSERT("tcp_receive: segment not trimmed correctly to rcv_wnd\n",
  74581. 801e5ce: 4b29 ldr r3, [pc, #164] @ (801e674 <tcp_receive+0xf18>)
  74582. 801e5d0: 881b ldrh r3, [r3, #0]
  74583. 801e5d2: 461a mov r2, r3
  74584. 801e5d4: 4b25 ldr r3, [pc, #148] @ (801e66c <tcp_receive+0xf10>)
  74585. 801e5d6: 681b ldr r3, [r3, #0]
  74586. 801e5d8: 441a add r2, r3
  74587. 801e5da: 687b ldr r3, [r7, #4]
  74588. 801e5dc: 6a5b ldr r3, [r3, #36] @ 0x24
  74589. 801e5de: 6879 ldr r1, [r7, #4]
  74590. 801e5e0: 8d09 ldrh r1, [r1, #40] @ 0x28
  74591. 801e5e2: 440b add r3, r1
  74592. 801e5e4: 429a cmp r2, r3
  74593. 801e5e6: d019 beq.n 801e61c <tcp_receive+0xec0>
  74594. 801e5e8: 4b23 ldr r3, [pc, #140] @ (801e678 <tcp_receive+0xf1c>)
  74595. 801e5ea: f44f 62df mov.w r2, #1784 @ 0x6f8
  74596. 801e5ee: 4923 ldr r1, [pc, #140] @ (801e67c <tcp_receive+0xf20>)
  74597. 801e5f0: 4823 ldr r0, [pc, #140] @ (801e680 <tcp_receive+0xf24>)
  74598. 801e5f2: f00a ff8b bl 802950c <iprintf>
  74599. (seqno + tcplen) == (pcb->rcv_nxt + pcb->rcv_wnd));
  74600. }
  74601. }
  74602. break;
  74603. 801e5f6: e011 b.n 801e61c <tcp_receive+0xec0>
  74604. for (next = pcb->ooseq; next != NULL; next = next->next) {
  74605. 801e5f8: 6bbb ldr r3, [r7, #56] @ 0x38
  74606. 801e5fa: 681b ldr r3, [r3, #0]
  74607. 801e5fc: 63bb str r3, [r7, #56] @ 0x38
  74608. 801e5fe: 6bbb ldr r3, [r7, #56] @ 0x38
  74609. 801e600: 2b00 cmp r3, #0
  74610. 801e602: f47f aea5 bne.w 801e350 <tcp_receive+0xbf4>
  74611. 801e606: e00a b.n 801e61e <tcp_receive+0xec2>
  74612. break;
  74613. 801e608: bf00 nop
  74614. 801e60a: e008 b.n 801e61e <tcp_receive+0xec2>
  74615. break;
  74616. 801e60c: bf00 nop
  74617. 801e60e: e006 b.n 801e61e <tcp_receive+0xec2>
  74618. break;
  74619. 801e610: bf00 nop
  74620. 801e612: e004 b.n 801e61e <tcp_receive+0xec2>
  74621. break;
  74622. 801e614: bf00 nop
  74623. 801e616: e002 b.n 801e61e <tcp_receive+0xec2>
  74624. break;
  74625. 801e618: bf00 nop
  74626. 801e61a: e000 b.n 801e61e <tcp_receive+0xec2>
  74627. break;
  74628. 801e61c: bf00 nop
  74629. #endif /* TCP_OOSEQ_BYTES_LIMIT || TCP_OOSEQ_PBUFS_LIMIT */
  74630. #endif /* TCP_QUEUE_OOSEQ */
  74631. /* We send the ACK packet after we've (potentially) dealt with SACKs,
  74632. so they can be included in the acknowledgment. */
  74633. tcp_send_empty_ack(pcb);
  74634. 801e61e: 6878 ldr r0, [r7, #4]
  74635. 801e620: f001 fefc bl 802041c <tcp_send_empty_ack>
  74636. if (pcb->rcv_nxt == seqno) {
  74637. 801e624: e003 b.n 801e62e <tcp_receive+0xed2>
  74638. }
  74639. } else {
  74640. /* The incoming segment is not within the window. */
  74641. tcp_send_empty_ack(pcb);
  74642. 801e626: 6878 ldr r0, [r7, #4]
  74643. 801e628: f001 fef8 bl 802041c <tcp_send_empty_ack>
  74644. if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt,
  74645. 801e62c: e01a b.n 801e664 <tcp_receive+0xf08>
  74646. 801e62e: e019 b.n 801e664 <tcp_receive+0xf08>
  74647. }
  74648. } else {
  74649. /* Segments with length 0 is taken care of here. Segments that
  74650. fall out of the window are ACKed. */
  74651. if (!TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt, pcb->rcv_nxt + pcb->rcv_wnd - 1)) {
  74652. 801e630: 4b0e ldr r3, [pc, #56] @ (801e66c <tcp_receive+0xf10>)
  74653. 801e632: 681a ldr r2, [r3, #0]
  74654. 801e634: 687b ldr r3, [r7, #4]
  74655. 801e636: 6a5b ldr r3, [r3, #36] @ 0x24
  74656. 801e638: 1ad3 subs r3, r2, r3
  74657. 801e63a: 2b00 cmp r3, #0
  74658. 801e63c: db0a blt.n 801e654 <tcp_receive+0xef8>
  74659. 801e63e: 4b0b ldr r3, [pc, #44] @ (801e66c <tcp_receive+0xf10>)
  74660. 801e640: 681a ldr r2, [r3, #0]
  74661. 801e642: 687b ldr r3, [r7, #4]
  74662. 801e644: 6a5b ldr r3, [r3, #36] @ 0x24
  74663. 801e646: 6879 ldr r1, [r7, #4]
  74664. 801e648: 8d09 ldrh r1, [r1, #40] @ 0x28
  74665. 801e64a: 440b add r3, r1
  74666. 801e64c: 1ad3 subs r3, r2, r3
  74667. 801e64e: 3301 adds r3, #1
  74668. 801e650: 2b00 cmp r3, #0
  74669. 801e652: dd07 ble.n 801e664 <tcp_receive+0xf08>
  74670. tcp_ack_now(pcb);
  74671. 801e654: 687b ldr r3, [r7, #4]
  74672. 801e656: 8b5b ldrh r3, [r3, #26]
  74673. 801e658: f043 0302 orr.w r3, r3, #2
  74674. 801e65c: b29a uxth r2, r3
  74675. 801e65e: 687b ldr r3, [r7, #4]
  74676. 801e660: 835a strh r2, [r3, #26]
  74677. }
  74678. }
  74679. }
  74680. 801e662: e7ff b.n 801e664 <tcp_receive+0xf08>
  74681. 801e664: bf00 nop
  74682. 801e666: 3750 adds r7, #80 @ 0x50
  74683. 801e668: 46bd mov sp, r7
  74684. 801e66a: bdb0 pop {r4, r5, r7, pc}
  74685. 801e66c: 2402a028 .word 0x2402a028
  74686. 801e670: 2402a004 .word 0x2402a004
  74687. 801e674: 2402a032 .word 0x2402a032
  74688. 801e678: 0802e8a4 .word 0x0802e8a4
  74689. 801e67c: 0802ec4c .word 0x0802ec4c
  74690. 801e680: 0802e8f0 .word 0x0802e8f0
  74691. 0801e684 <tcp_get_next_optbyte>:
  74692. static u8_t
  74693. tcp_get_next_optbyte(void)
  74694. {
  74695. 801e684: b480 push {r7}
  74696. 801e686: b083 sub sp, #12
  74697. 801e688: af00 add r7, sp, #0
  74698. u16_t optidx = tcp_optidx++;
  74699. 801e68a: 4b15 ldr r3, [pc, #84] @ (801e6e0 <tcp_get_next_optbyte+0x5c>)
  74700. 801e68c: 881b ldrh r3, [r3, #0]
  74701. 801e68e: 1c5a adds r2, r3, #1
  74702. 801e690: b291 uxth r1, r2
  74703. 801e692: 4a13 ldr r2, [pc, #76] @ (801e6e0 <tcp_get_next_optbyte+0x5c>)
  74704. 801e694: 8011 strh r1, [r2, #0]
  74705. 801e696: 80fb strh r3, [r7, #6]
  74706. if ((tcphdr_opt2 == NULL) || (optidx < tcphdr_opt1len)) {
  74707. 801e698: 4b12 ldr r3, [pc, #72] @ (801e6e4 <tcp_get_next_optbyte+0x60>)
  74708. 801e69a: 681b ldr r3, [r3, #0]
  74709. 801e69c: 2b00 cmp r3, #0
  74710. 801e69e: d004 beq.n 801e6aa <tcp_get_next_optbyte+0x26>
  74711. 801e6a0: 4b11 ldr r3, [pc, #68] @ (801e6e8 <tcp_get_next_optbyte+0x64>)
  74712. 801e6a2: 881b ldrh r3, [r3, #0]
  74713. 801e6a4: 88fa ldrh r2, [r7, #6]
  74714. 801e6a6: 429a cmp r2, r3
  74715. 801e6a8: d208 bcs.n 801e6bc <tcp_get_next_optbyte+0x38>
  74716. u8_t *opts = (u8_t *)tcphdr + TCP_HLEN;
  74717. 801e6aa: 4b10 ldr r3, [pc, #64] @ (801e6ec <tcp_get_next_optbyte+0x68>)
  74718. 801e6ac: 681b ldr r3, [r3, #0]
  74719. 801e6ae: 3314 adds r3, #20
  74720. 801e6b0: 603b str r3, [r7, #0]
  74721. return opts[optidx];
  74722. 801e6b2: 88fb ldrh r3, [r7, #6]
  74723. 801e6b4: 683a ldr r2, [r7, #0]
  74724. 801e6b6: 4413 add r3, r2
  74725. 801e6b8: 781b ldrb r3, [r3, #0]
  74726. 801e6ba: e00b b.n 801e6d4 <tcp_get_next_optbyte+0x50>
  74727. } else {
  74728. u8_t idx = (u8_t)(optidx - tcphdr_opt1len);
  74729. 801e6bc: 88fb ldrh r3, [r7, #6]
  74730. 801e6be: b2da uxtb r2, r3
  74731. 801e6c0: 4b09 ldr r3, [pc, #36] @ (801e6e8 <tcp_get_next_optbyte+0x64>)
  74732. 801e6c2: 881b ldrh r3, [r3, #0]
  74733. 801e6c4: b2db uxtb r3, r3
  74734. 801e6c6: 1ad3 subs r3, r2, r3
  74735. 801e6c8: 717b strb r3, [r7, #5]
  74736. return tcphdr_opt2[idx];
  74737. 801e6ca: 4b06 ldr r3, [pc, #24] @ (801e6e4 <tcp_get_next_optbyte+0x60>)
  74738. 801e6cc: 681a ldr r2, [r3, #0]
  74739. 801e6ce: 797b ldrb r3, [r7, #5]
  74740. 801e6d0: 4413 add r3, r2
  74741. 801e6d2: 781b ldrb r3, [r3, #0]
  74742. }
  74743. }
  74744. 801e6d4: 4618 mov r0, r3
  74745. 801e6d6: 370c adds r7, #12
  74746. 801e6d8: 46bd mov sp, r7
  74747. 801e6da: f85d 7b04 ldr.w r7, [sp], #4
  74748. 801e6de: 4770 bx lr
  74749. 801e6e0: 2402a024 .word 0x2402a024
  74750. 801e6e4: 2402a020 .word 0x2402a020
  74751. 801e6e8: 2402a01e .word 0x2402a01e
  74752. 801e6ec: 2402a018 .word 0x2402a018
  74753. 0801e6f0 <tcp_parseopt>:
  74754. *
  74755. * @param pcb the tcp_pcb for which a segment arrived
  74756. */
  74757. static void
  74758. tcp_parseopt(struct tcp_pcb *pcb)
  74759. {
  74760. 801e6f0: b580 push {r7, lr}
  74761. 801e6f2: b084 sub sp, #16
  74762. 801e6f4: af00 add r7, sp, #0
  74763. 801e6f6: 6078 str r0, [r7, #4]
  74764. u16_t mss;
  74765. #if LWIP_TCP_TIMESTAMPS
  74766. u32_t tsval;
  74767. #endif
  74768. LWIP_ASSERT("tcp_parseopt: invalid pcb", pcb != NULL);
  74769. 801e6f8: 687b ldr r3, [r7, #4]
  74770. 801e6fa: 2b00 cmp r3, #0
  74771. 801e6fc: d106 bne.n 801e70c <tcp_parseopt+0x1c>
  74772. 801e6fe: 4b33 ldr r3, [pc, #204] @ (801e7cc <tcp_parseopt+0xdc>)
  74773. 801e700: f240 727d movw r2, #1917 @ 0x77d
  74774. 801e704: 4932 ldr r1, [pc, #200] @ (801e7d0 <tcp_parseopt+0xe0>)
  74775. 801e706: 4833 ldr r0, [pc, #204] @ (801e7d4 <tcp_parseopt+0xe4>)
  74776. 801e708: f00a ff00 bl 802950c <iprintf>
  74777. /* Parse the TCP MSS option, if present. */
  74778. if (tcphdr_optlen != 0) {
  74779. 801e70c: 4b32 ldr r3, [pc, #200] @ (801e7d8 <tcp_parseopt+0xe8>)
  74780. 801e70e: 881b ldrh r3, [r3, #0]
  74781. 801e710: 2b00 cmp r3, #0
  74782. 801e712: d057 beq.n 801e7c4 <tcp_parseopt+0xd4>
  74783. for (tcp_optidx = 0; tcp_optidx < tcphdr_optlen; ) {
  74784. 801e714: 4b31 ldr r3, [pc, #196] @ (801e7dc <tcp_parseopt+0xec>)
  74785. 801e716: 2200 movs r2, #0
  74786. 801e718: 801a strh r2, [r3, #0]
  74787. 801e71a: e047 b.n 801e7ac <tcp_parseopt+0xbc>
  74788. u8_t opt = tcp_get_next_optbyte();
  74789. 801e71c: f7ff ffb2 bl 801e684 <tcp_get_next_optbyte>
  74790. 801e720: 4603 mov r3, r0
  74791. 801e722: 73fb strb r3, [r7, #15]
  74792. switch (opt) {
  74793. 801e724: 7bfb ldrb r3, [r7, #15]
  74794. 801e726: 2b02 cmp r3, #2
  74795. 801e728: d006 beq.n 801e738 <tcp_parseopt+0x48>
  74796. 801e72a: 2b02 cmp r3, #2
  74797. 801e72c: dc2b bgt.n 801e786 <tcp_parseopt+0x96>
  74798. 801e72e: 2b00 cmp r3, #0
  74799. 801e730: d043 beq.n 801e7ba <tcp_parseopt+0xca>
  74800. 801e732: 2b01 cmp r3, #1
  74801. 801e734: d039 beq.n 801e7aa <tcp_parseopt+0xba>
  74802. 801e736: e026 b.n 801e786 <tcp_parseopt+0x96>
  74803. /* NOP option. */
  74804. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: NOP\n"));
  74805. break;
  74806. case LWIP_TCP_OPT_MSS:
  74807. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: MSS\n"));
  74808. if (tcp_get_next_optbyte() != LWIP_TCP_OPT_LEN_MSS || (tcp_optidx - 2 + LWIP_TCP_OPT_LEN_MSS) > tcphdr_optlen) {
  74809. 801e738: f7ff ffa4 bl 801e684 <tcp_get_next_optbyte>
  74810. 801e73c: 4603 mov r3, r0
  74811. 801e73e: 2b04 cmp r3, #4
  74812. 801e740: d13d bne.n 801e7be <tcp_parseopt+0xce>
  74813. 801e742: 4b26 ldr r3, [pc, #152] @ (801e7dc <tcp_parseopt+0xec>)
  74814. 801e744: 881b ldrh r3, [r3, #0]
  74815. 801e746: 3301 adds r3, #1
  74816. 801e748: 4a23 ldr r2, [pc, #140] @ (801e7d8 <tcp_parseopt+0xe8>)
  74817. 801e74a: 8812 ldrh r2, [r2, #0]
  74818. 801e74c: 4293 cmp r3, r2
  74819. 801e74e: da36 bge.n 801e7be <tcp_parseopt+0xce>
  74820. /* Bad length */
  74821. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: bad length\n"));
  74822. return;
  74823. }
  74824. /* An MSS option with the right option length. */
  74825. mss = (u16_t)(tcp_get_next_optbyte() << 8);
  74826. 801e750: f7ff ff98 bl 801e684 <tcp_get_next_optbyte>
  74827. 801e754: 4603 mov r3, r0
  74828. 801e756: 021b lsls r3, r3, #8
  74829. 801e758: 81bb strh r3, [r7, #12]
  74830. mss |= tcp_get_next_optbyte();
  74831. 801e75a: f7ff ff93 bl 801e684 <tcp_get_next_optbyte>
  74832. 801e75e: 4603 mov r3, r0
  74833. 801e760: 461a mov r2, r3
  74834. 801e762: 89bb ldrh r3, [r7, #12]
  74835. 801e764: 4313 orrs r3, r2
  74836. 801e766: 81bb strh r3, [r7, #12]
  74837. /* Limit the mss to the configured TCP_MSS and prevent division by zero */
  74838. pcb->mss = ((mss > TCP_MSS) || (mss == 0)) ? TCP_MSS : mss;
  74839. 801e768: 89bb ldrh r3, [r7, #12]
  74840. 801e76a: f240 52b4 movw r2, #1460 @ 0x5b4
  74841. 801e76e: 4293 cmp r3, r2
  74842. 801e770: d804 bhi.n 801e77c <tcp_parseopt+0x8c>
  74843. 801e772: 89bb ldrh r3, [r7, #12]
  74844. 801e774: 2b00 cmp r3, #0
  74845. 801e776: d001 beq.n 801e77c <tcp_parseopt+0x8c>
  74846. 801e778: 89ba ldrh r2, [r7, #12]
  74847. 801e77a: e001 b.n 801e780 <tcp_parseopt+0x90>
  74848. 801e77c: f240 52b4 movw r2, #1460 @ 0x5b4
  74849. 801e780: 687b ldr r3, [r7, #4]
  74850. 801e782: 865a strh r2, [r3, #50] @ 0x32
  74851. break;
  74852. 801e784: e012 b.n 801e7ac <tcp_parseopt+0xbc>
  74853. }
  74854. break;
  74855. #endif /* LWIP_TCP_SACK_OUT */
  74856. default:
  74857. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: other\n"));
  74858. data = tcp_get_next_optbyte();
  74859. 801e786: f7ff ff7d bl 801e684 <tcp_get_next_optbyte>
  74860. 801e78a: 4603 mov r3, r0
  74861. 801e78c: 72fb strb r3, [r7, #11]
  74862. if (data < 2) {
  74863. 801e78e: 7afb ldrb r3, [r7, #11]
  74864. 801e790: 2b01 cmp r3, #1
  74865. 801e792: d916 bls.n 801e7c2 <tcp_parseopt+0xd2>
  74866. and we don't process them further. */
  74867. return;
  74868. }
  74869. /* All other options have a length field, so that we easily
  74870. can skip past them. */
  74871. tcp_optidx += data - 2;
  74872. 801e794: 7afb ldrb r3, [r7, #11]
  74873. 801e796: b29a uxth r2, r3
  74874. 801e798: 4b10 ldr r3, [pc, #64] @ (801e7dc <tcp_parseopt+0xec>)
  74875. 801e79a: 881b ldrh r3, [r3, #0]
  74876. 801e79c: 4413 add r3, r2
  74877. 801e79e: b29b uxth r3, r3
  74878. 801e7a0: 3b02 subs r3, #2
  74879. 801e7a2: b29a uxth r2, r3
  74880. 801e7a4: 4b0d ldr r3, [pc, #52] @ (801e7dc <tcp_parseopt+0xec>)
  74881. 801e7a6: 801a strh r2, [r3, #0]
  74882. 801e7a8: e000 b.n 801e7ac <tcp_parseopt+0xbc>
  74883. break;
  74884. 801e7aa: bf00 nop
  74885. for (tcp_optidx = 0; tcp_optidx < tcphdr_optlen; ) {
  74886. 801e7ac: 4b0b ldr r3, [pc, #44] @ (801e7dc <tcp_parseopt+0xec>)
  74887. 801e7ae: 881a ldrh r2, [r3, #0]
  74888. 801e7b0: 4b09 ldr r3, [pc, #36] @ (801e7d8 <tcp_parseopt+0xe8>)
  74889. 801e7b2: 881b ldrh r3, [r3, #0]
  74890. 801e7b4: 429a cmp r2, r3
  74891. 801e7b6: d3b1 bcc.n 801e71c <tcp_parseopt+0x2c>
  74892. 801e7b8: e004 b.n 801e7c4 <tcp_parseopt+0xd4>
  74893. return;
  74894. 801e7ba: bf00 nop
  74895. 801e7bc: e002 b.n 801e7c4 <tcp_parseopt+0xd4>
  74896. return;
  74897. 801e7be: bf00 nop
  74898. 801e7c0: e000 b.n 801e7c4 <tcp_parseopt+0xd4>
  74899. return;
  74900. 801e7c2: bf00 nop
  74901. }
  74902. }
  74903. }
  74904. }
  74905. 801e7c4: 3710 adds r7, #16
  74906. 801e7c6: 46bd mov sp, r7
  74907. 801e7c8: bd80 pop {r7, pc}
  74908. 801e7ca: bf00 nop
  74909. 801e7cc: 0802e8a4 .word 0x0802e8a4
  74910. 801e7d0: 0802ed08 .word 0x0802ed08
  74911. 801e7d4: 0802e8f0 .word 0x0802e8f0
  74912. 801e7d8: 2402a01c .word 0x2402a01c
  74913. 801e7dc: 2402a024 .word 0x2402a024
  74914. 0801e7e0 <tcp_trigger_input_pcb_close>:
  74915. void
  74916. tcp_trigger_input_pcb_close(void)
  74917. {
  74918. 801e7e0: b480 push {r7}
  74919. 801e7e2: af00 add r7, sp, #0
  74920. recv_flags |= TF_CLOSED;
  74921. 801e7e4: 4b05 ldr r3, [pc, #20] @ (801e7fc <tcp_trigger_input_pcb_close+0x1c>)
  74922. 801e7e6: 781b ldrb r3, [r3, #0]
  74923. 801e7e8: f043 0310 orr.w r3, r3, #16
  74924. 801e7ec: b2da uxtb r2, r3
  74925. 801e7ee: 4b03 ldr r3, [pc, #12] @ (801e7fc <tcp_trigger_input_pcb_close+0x1c>)
  74926. 801e7f0: 701a strb r2, [r3, #0]
  74927. }
  74928. 801e7f2: bf00 nop
  74929. 801e7f4: 46bd mov sp, r7
  74930. 801e7f6: f85d 7b04 ldr.w r7, [sp], #4
  74931. 801e7fa: 4770 bx lr
  74932. 801e7fc: 2402a035 .word 0x2402a035
  74933. 0801e800 <tcp_route>:
  74934. static err_t tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb, struct netif *netif);
  74935. /* tcp_route: common code that returns a fixed bound netif or calls ip_route */
  74936. static struct netif *
  74937. tcp_route(const struct tcp_pcb *pcb, const ip_addr_t *src, const ip_addr_t *dst)
  74938. {
  74939. 801e800: b580 push {r7, lr}
  74940. 801e802: b084 sub sp, #16
  74941. 801e804: af00 add r7, sp, #0
  74942. 801e806: 60f8 str r0, [r7, #12]
  74943. 801e808: 60b9 str r1, [r7, #8]
  74944. 801e80a: 607a str r2, [r7, #4]
  74945. LWIP_UNUSED_ARG(src); /* in case IPv4-only and source-based routing is disabled */
  74946. if ((pcb != NULL) && (pcb->netif_idx != NETIF_NO_INDEX)) {
  74947. 801e80c: 68fb ldr r3, [r7, #12]
  74948. 801e80e: 2b00 cmp r3, #0
  74949. 801e810: d00a beq.n 801e828 <tcp_route+0x28>
  74950. 801e812: 68fb ldr r3, [r7, #12]
  74951. 801e814: 7a1b ldrb r3, [r3, #8]
  74952. 801e816: 2b00 cmp r3, #0
  74953. 801e818: d006 beq.n 801e828 <tcp_route+0x28>
  74954. return netif_get_by_index(pcb->netif_idx);
  74955. 801e81a: 68fb ldr r3, [r7, #12]
  74956. 801e81c: 7a1b ldrb r3, [r3, #8]
  74957. 801e81e: 4618 mov r0, r3
  74958. 801e820: f7fb f83c bl 801989c <netif_get_by_index>
  74959. 801e824: 4603 mov r3, r0
  74960. 801e826: e003 b.n 801e830 <tcp_route+0x30>
  74961. } else {
  74962. return ip_route(src, dst);
  74963. 801e828: 6878 ldr r0, [r7, #4]
  74964. 801e82a: f005 fe61 bl 80244f0 <ip4_route>
  74965. 801e82e: 4603 mov r3, r0
  74966. }
  74967. }
  74968. 801e830: 4618 mov r0, r3
  74969. 801e832: 3710 adds r7, #16
  74970. 801e834: 46bd mov sp, r7
  74971. 801e836: bd80 pop {r7, pc}
  74972. 0801e838 <tcp_create_segment>:
  74973. * The TCP header is filled in except ackno and wnd.
  74974. * p is freed on failure.
  74975. */
  74976. static struct tcp_seg *
  74977. tcp_create_segment(const struct tcp_pcb *pcb, struct pbuf *p, u8_t hdrflags, u32_t seqno, u8_t optflags)
  74978. {
  74979. 801e838: b590 push {r4, r7, lr}
  74980. 801e83a: b087 sub sp, #28
  74981. 801e83c: af00 add r7, sp, #0
  74982. 801e83e: 60f8 str r0, [r7, #12]
  74983. 801e840: 60b9 str r1, [r7, #8]
  74984. 801e842: 603b str r3, [r7, #0]
  74985. 801e844: 4613 mov r3, r2
  74986. 801e846: 71fb strb r3, [r7, #7]
  74987. struct tcp_seg *seg;
  74988. u8_t optlen;
  74989. LWIP_ASSERT("tcp_create_segment: invalid pcb", pcb != NULL);
  74990. 801e848: 68fb ldr r3, [r7, #12]
  74991. 801e84a: 2b00 cmp r3, #0
  74992. 801e84c: d105 bne.n 801e85a <tcp_create_segment+0x22>
  74993. 801e84e: 4b45 ldr r3, [pc, #276] @ (801e964 <tcp_create_segment+0x12c>)
  74994. 801e850: 22a3 movs r2, #163 @ 0xa3
  74995. 801e852: 4945 ldr r1, [pc, #276] @ (801e968 <tcp_create_segment+0x130>)
  74996. 801e854: 4845 ldr r0, [pc, #276] @ (801e96c <tcp_create_segment+0x134>)
  74997. 801e856: f00a fe59 bl 802950c <iprintf>
  74998. LWIP_ASSERT("tcp_create_segment: invalid pbuf", p != NULL);
  74999. 801e85a: 68bb ldr r3, [r7, #8]
  75000. 801e85c: 2b00 cmp r3, #0
  75001. 801e85e: d105 bne.n 801e86c <tcp_create_segment+0x34>
  75002. 801e860: 4b40 ldr r3, [pc, #256] @ (801e964 <tcp_create_segment+0x12c>)
  75003. 801e862: 22a4 movs r2, #164 @ 0xa4
  75004. 801e864: 4942 ldr r1, [pc, #264] @ (801e970 <tcp_create_segment+0x138>)
  75005. 801e866: 4841 ldr r0, [pc, #260] @ (801e96c <tcp_create_segment+0x134>)
  75006. 801e868: f00a fe50 bl 802950c <iprintf>
  75007. optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb);
  75008. 801e86c: f897 3028 ldrb.w r3, [r7, #40] @ 0x28
  75009. 801e870: 009b lsls r3, r3, #2
  75010. 801e872: b2db uxtb r3, r3
  75011. 801e874: f003 0304 and.w r3, r3, #4
  75012. 801e878: 75fb strb r3, [r7, #23]
  75013. if ((seg = (struct tcp_seg *)memp_malloc(MEMP_TCP_SEG)) == NULL) {
  75014. 801e87a: 2003 movs r0, #3
  75015. 801e87c: f7fa fc6a bl 8019154 <memp_malloc>
  75016. 801e880: 6138 str r0, [r7, #16]
  75017. 801e882: 693b ldr r3, [r7, #16]
  75018. 801e884: 2b00 cmp r3, #0
  75019. 801e886: d104 bne.n 801e892 <tcp_create_segment+0x5a>
  75020. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_create_segment: no memory.\n"));
  75021. pbuf_free(p);
  75022. 801e888: 68b8 ldr r0, [r7, #8]
  75023. 801e88a: f7fb fbc7 bl 801a01c <pbuf_free>
  75024. return NULL;
  75025. 801e88e: 2300 movs r3, #0
  75026. 801e890: e063 b.n 801e95a <tcp_create_segment+0x122>
  75027. }
  75028. seg->flags = optflags;
  75029. 801e892: 693b ldr r3, [r7, #16]
  75030. 801e894: f897 2028 ldrb.w r2, [r7, #40] @ 0x28
  75031. 801e898: 731a strb r2, [r3, #12]
  75032. seg->next = NULL;
  75033. 801e89a: 693b ldr r3, [r7, #16]
  75034. 801e89c: 2200 movs r2, #0
  75035. 801e89e: 601a str r2, [r3, #0]
  75036. seg->p = p;
  75037. 801e8a0: 693b ldr r3, [r7, #16]
  75038. 801e8a2: 68ba ldr r2, [r7, #8]
  75039. 801e8a4: 605a str r2, [r3, #4]
  75040. LWIP_ASSERT("p->tot_len >= optlen", p->tot_len >= optlen);
  75041. 801e8a6: 68bb ldr r3, [r7, #8]
  75042. 801e8a8: 891a ldrh r2, [r3, #8]
  75043. 801e8aa: 7dfb ldrb r3, [r7, #23]
  75044. 801e8ac: b29b uxth r3, r3
  75045. 801e8ae: 429a cmp r2, r3
  75046. 801e8b0: d205 bcs.n 801e8be <tcp_create_segment+0x86>
  75047. 801e8b2: 4b2c ldr r3, [pc, #176] @ (801e964 <tcp_create_segment+0x12c>)
  75048. 801e8b4: 22b0 movs r2, #176 @ 0xb0
  75049. 801e8b6: 492f ldr r1, [pc, #188] @ (801e974 <tcp_create_segment+0x13c>)
  75050. 801e8b8: 482c ldr r0, [pc, #176] @ (801e96c <tcp_create_segment+0x134>)
  75051. 801e8ba: f00a fe27 bl 802950c <iprintf>
  75052. seg->len = p->tot_len - optlen;
  75053. 801e8be: 68bb ldr r3, [r7, #8]
  75054. 801e8c0: 891a ldrh r2, [r3, #8]
  75055. 801e8c2: 7dfb ldrb r3, [r7, #23]
  75056. 801e8c4: b29b uxth r3, r3
  75057. 801e8c6: 1ad3 subs r3, r2, r3
  75058. 801e8c8: b29a uxth r2, r3
  75059. 801e8ca: 693b ldr r3, [r7, #16]
  75060. 801e8cc: 811a strh r2, [r3, #8]
  75061. #if TCP_OVERSIZE_DBGCHECK
  75062. seg->oversize_left = 0;
  75063. 801e8ce: 693b ldr r3, [r7, #16]
  75064. 801e8d0: 2200 movs r2, #0
  75065. 801e8d2: 815a strh r2, [r3, #10]
  75066. LWIP_ASSERT("invalid optflags passed: TF_SEG_DATA_CHECKSUMMED",
  75067. (optflags & TF_SEG_DATA_CHECKSUMMED) == 0);
  75068. #endif /* TCP_CHECKSUM_ON_COPY */
  75069. /* build TCP header */
  75070. if (pbuf_add_header(p, TCP_HLEN)) {
  75071. 801e8d4: 2114 movs r1, #20
  75072. 801e8d6: 68b8 ldr r0, [r7, #8]
  75073. 801e8d8: f7fb fad8 bl 8019e8c <pbuf_add_header>
  75074. 801e8dc: 4603 mov r3, r0
  75075. 801e8de: 2b00 cmp r3, #0
  75076. 801e8e0: d004 beq.n 801e8ec <tcp_create_segment+0xb4>
  75077. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_create_segment: no room for TCP header in pbuf.\n"));
  75078. TCP_STATS_INC(tcp.err);
  75079. tcp_seg_free(seg);
  75080. 801e8e2: 6938 ldr r0, [r7, #16]
  75081. 801e8e4: f7fc fff3 bl 801b8ce <tcp_seg_free>
  75082. return NULL;
  75083. 801e8e8: 2300 movs r3, #0
  75084. 801e8ea: e036 b.n 801e95a <tcp_create_segment+0x122>
  75085. }
  75086. seg->tcphdr = (struct tcp_hdr *)seg->p->payload;
  75087. 801e8ec: 693b ldr r3, [r7, #16]
  75088. 801e8ee: 685b ldr r3, [r3, #4]
  75089. 801e8f0: 685a ldr r2, [r3, #4]
  75090. 801e8f2: 693b ldr r3, [r7, #16]
  75091. 801e8f4: 611a str r2, [r3, #16]
  75092. seg->tcphdr->src = lwip_htons(pcb->local_port);
  75093. 801e8f6: 68fb ldr r3, [r7, #12]
  75094. 801e8f8: 8ada ldrh r2, [r3, #22]
  75095. 801e8fa: 693b ldr r3, [r7, #16]
  75096. 801e8fc: 691c ldr r4, [r3, #16]
  75097. 801e8fe: 4610 mov r0, r2
  75098. 801e900: f7f9 feaa bl 8018658 <lwip_htons>
  75099. 801e904: 4603 mov r3, r0
  75100. 801e906: 8023 strh r3, [r4, #0]
  75101. seg->tcphdr->dest = lwip_htons(pcb->remote_port);
  75102. 801e908: 68fb ldr r3, [r7, #12]
  75103. 801e90a: 8b1a ldrh r2, [r3, #24]
  75104. 801e90c: 693b ldr r3, [r7, #16]
  75105. 801e90e: 691c ldr r4, [r3, #16]
  75106. 801e910: 4610 mov r0, r2
  75107. 801e912: f7f9 fea1 bl 8018658 <lwip_htons>
  75108. 801e916: 4603 mov r3, r0
  75109. 801e918: 8063 strh r3, [r4, #2]
  75110. seg->tcphdr->seqno = lwip_htonl(seqno);
  75111. 801e91a: 693b ldr r3, [r7, #16]
  75112. 801e91c: 691c ldr r4, [r3, #16]
  75113. 801e91e: 6838 ldr r0, [r7, #0]
  75114. 801e920: f7f9 feaf bl 8018682 <lwip_htonl>
  75115. 801e924: 4603 mov r3, r0
  75116. 801e926: 6063 str r3, [r4, #4]
  75117. /* ackno is set in tcp_output */
  75118. TCPH_HDRLEN_FLAGS_SET(seg->tcphdr, (5 + optlen / 4), hdrflags);
  75119. 801e928: 7dfb ldrb r3, [r7, #23]
  75120. 801e92a: 089b lsrs r3, r3, #2
  75121. 801e92c: b2db uxtb r3, r3
  75122. 801e92e: 3305 adds r3, #5
  75123. 801e930: b29b uxth r3, r3
  75124. 801e932: 031b lsls r3, r3, #12
  75125. 801e934: b29a uxth r2, r3
  75126. 801e936: 79fb ldrb r3, [r7, #7]
  75127. 801e938: b29b uxth r3, r3
  75128. 801e93a: 4313 orrs r3, r2
  75129. 801e93c: b29a uxth r2, r3
  75130. 801e93e: 693b ldr r3, [r7, #16]
  75131. 801e940: 691c ldr r4, [r3, #16]
  75132. 801e942: 4610 mov r0, r2
  75133. 801e944: f7f9 fe88 bl 8018658 <lwip_htons>
  75134. 801e948: 4603 mov r3, r0
  75135. 801e94a: 81a3 strh r3, [r4, #12]
  75136. /* wnd and chksum are set in tcp_output */
  75137. seg->tcphdr->urgp = 0;
  75138. 801e94c: 693b ldr r3, [r7, #16]
  75139. 801e94e: 691b ldr r3, [r3, #16]
  75140. 801e950: 2200 movs r2, #0
  75141. 801e952: 749a strb r2, [r3, #18]
  75142. 801e954: 2200 movs r2, #0
  75143. 801e956: 74da strb r2, [r3, #19]
  75144. return seg;
  75145. 801e958: 693b ldr r3, [r7, #16]
  75146. }
  75147. 801e95a: 4618 mov r0, r3
  75148. 801e95c: 371c adds r7, #28
  75149. 801e95e: 46bd mov sp, r7
  75150. 801e960: bd90 pop {r4, r7, pc}
  75151. 801e962: bf00 nop
  75152. 801e964: 0802ed24 .word 0x0802ed24
  75153. 801e968: 0802ed58 .word 0x0802ed58
  75154. 801e96c: 0802ed78 .word 0x0802ed78
  75155. 801e970: 0802eda0 .word 0x0802eda0
  75156. 801e974: 0802edc4 .word 0x0802edc4
  75157. 0801e978 <tcp_pbuf_prealloc>:
  75158. #if TCP_OVERSIZE
  75159. static struct pbuf *
  75160. tcp_pbuf_prealloc(pbuf_layer layer, u16_t length, u16_t max_length,
  75161. u16_t *oversize, const struct tcp_pcb *pcb, u8_t apiflags,
  75162. u8_t first_seg)
  75163. {
  75164. 801e978: b580 push {r7, lr}
  75165. 801e97a: b086 sub sp, #24
  75166. 801e97c: af00 add r7, sp, #0
  75167. 801e97e: 607b str r3, [r7, #4]
  75168. 801e980: 4603 mov r3, r0
  75169. 801e982: 73fb strb r3, [r7, #15]
  75170. 801e984: 460b mov r3, r1
  75171. 801e986: 81bb strh r3, [r7, #12]
  75172. 801e988: 4613 mov r3, r2
  75173. 801e98a: 817b strh r3, [r7, #10]
  75174. struct pbuf *p;
  75175. u16_t alloc = length;
  75176. 801e98c: 89bb ldrh r3, [r7, #12]
  75177. 801e98e: 82fb strh r3, [r7, #22]
  75178. LWIP_ASSERT("tcp_pbuf_prealloc: invalid oversize", oversize != NULL);
  75179. 801e990: 687b ldr r3, [r7, #4]
  75180. 801e992: 2b00 cmp r3, #0
  75181. 801e994: d105 bne.n 801e9a2 <tcp_pbuf_prealloc+0x2a>
  75182. 801e996: 4b30 ldr r3, [pc, #192] @ (801ea58 <tcp_pbuf_prealloc+0xe0>)
  75183. 801e998: 22e8 movs r2, #232 @ 0xe8
  75184. 801e99a: 4930 ldr r1, [pc, #192] @ (801ea5c <tcp_pbuf_prealloc+0xe4>)
  75185. 801e99c: 4830 ldr r0, [pc, #192] @ (801ea60 <tcp_pbuf_prealloc+0xe8>)
  75186. 801e99e: f00a fdb5 bl 802950c <iprintf>
  75187. LWIP_ASSERT("tcp_pbuf_prealloc: invalid pcb", pcb != NULL);
  75188. 801e9a2: 6a3b ldr r3, [r7, #32]
  75189. 801e9a4: 2b00 cmp r3, #0
  75190. 801e9a6: d105 bne.n 801e9b4 <tcp_pbuf_prealloc+0x3c>
  75191. 801e9a8: 4b2b ldr r3, [pc, #172] @ (801ea58 <tcp_pbuf_prealloc+0xe0>)
  75192. 801e9aa: 22e9 movs r2, #233 @ 0xe9
  75193. 801e9ac: 492d ldr r1, [pc, #180] @ (801ea64 <tcp_pbuf_prealloc+0xec>)
  75194. 801e9ae: 482c ldr r0, [pc, #176] @ (801ea60 <tcp_pbuf_prealloc+0xe8>)
  75195. 801e9b0: f00a fdac bl 802950c <iprintf>
  75196. LWIP_UNUSED_ARG(pcb);
  75197. LWIP_UNUSED_ARG(apiflags);
  75198. LWIP_UNUSED_ARG(first_seg);
  75199. alloc = max_length;
  75200. #else /* LWIP_NETIF_TX_SINGLE_PBUF */
  75201. if (length < max_length) {
  75202. 801e9b4: 89ba ldrh r2, [r7, #12]
  75203. 801e9b6: 897b ldrh r3, [r7, #10]
  75204. 801e9b8: 429a cmp r2, r3
  75205. 801e9ba: d221 bcs.n 801ea00 <tcp_pbuf_prealloc+0x88>
  75206. *
  75207. * Did the user set TCP_WRITE_FLAG_MORE?
  75208. *
  75209. * Will the Nagle algorithm defer transmission of this segment?
  75210. */
  75211. if ((apiflags & TCP_WRITE_FLAG_MORE) ||
  75212. 801e9bc: f897 3024 ldrb.w r3, [r7, #36] @ 0x24
  75213. 801e9c0: f003 0302 and.w r3, r3, #2
  75214. 801e9c4: 2b00 cmp r3, #0
  75215. 801e9c6: d111 bne.n 801e9ec <tcp_pbuf_prealloc+0x74>
  75216. (!(pcb->flags & TF_NODELAY) &&
  75217. 801e9c8: 6a3b ldr r3, [r7, #32]
  75218. 801e9ca: 8b5b ldrh r3, [r3, #26]
  75219. 801e9cc: f003 0340 and.w r3, r3, #64 @ 0x40
  75220. if ((apiflags & TCP_WRITE_FLAG_MORE) ||
  75221. 801e9d0: 2b00 cmp r3, #0
  75222. 801e9d2: d115 bne.n 801ea00 <tcp_pbuf_prealloc+0x88>
  75223. (!(pcb->flags & TF_NODELAY) &&
  75224. 801e9d4: f897 3028 ldrb.w r3, [r7, #40] @ 0x28
  75225. 801e9d8: 2b00 cmp r3, #0
  75226. 801e9da: d007 beq.n 801e9ec <tcp_pbuf_prealloc+0x74>
  75227. (!first_seg ||
  75228. pcb->unsent != NULL ||
  75229. 801e9dc: 6a3b ldr r3, [r7, #32]
  75230. 801e9de: 6edb ldr r3, [r3, #108] @ 0x6c
  75231. (!first_seg ||
  75232. 801e9e0: 2b00 cmp r3, #0
  75233. 801e9e2: d103 bne.n 801e9ec <tcp_pbuf_prealloc+0x74>
  75234. pcb->unacked != NULL))) {
  75235. 801e9e4: 6a3b ldr r3, [r7, #32]
  75236. 801e9e6: 6f1b ldr r3, [r3, #112] @ 0x70
  75237. pcb->unsent != NULL ||
  75238. 801e9e8: 2b00 cmp r3, #0
  75239. 801e9ea: d009 beq.n 801ea00 <tcp_pbuf_prealloc+0x88>
  75240. alloc = LWIP_MIN(max_length, LWIP_MEM_ALIGN_SIZE(TCP_OVERSIZE_CALC_LENGTH(length)));
  75241. 801e9ec: 89bb ldrh r3, [r7, #12]
  75242. 801e9ee: f203 53b7 addw r3, r3, #1463 @ 0x5b7
  75243. 801e9f2: f023 0203 bic.w r2, r3, #3
  75244. 801e9f6: 897b ldrh r3, [r7, #10]
  75245. 801e9f8: 4293 cmp r3, r2
  75246. 801e9fa: bf28 it cs
  75247. 801e9fc: 4613 movcs r3, r2
  75248. 801e9fe: 82fb strh r3, [r7, #22]
  75249. }
  75250. }
  75251. #endif /* LWIP_NETIF_TX_SINGLE_PBUF */
  75252. p = pbuf_alloc(layer, alloc, PBUF_RAM);
  75253. 801ea00: 8af9 ldrh r1, [r7, #22]
  75254. 801ea02: 7bfb ldrb r3, [r7, #15]
  75255. 801ea04: f44f 7220 mov.w r2, #640 @ 0x280
  75256. 801ea08: 4618 mov r0, r3
  75257. 801ea0a: f7fa fff1 bl 80199f0 <pbuf_alloc>
  75258. 801ea0e: 6138 str r0, [r7, #16]
  75259. if (p == NULL) {
  75260. 801ea10: 693b ldr r3, [r7, #16]
  75261. 801ea12: 2b00 cmp r3, #0
  75262. 801ea14: d101 bne.n 801ea1a <tcp_pbuf_prealloc+0xa2>
  75263. return NULL;
  75264. 801ea16: 2300 movs r3, #0
  75265. 801ea18: e019 b.n 801ea4e <tcp_pbuf_prealloc+0xd6>
  75266. }
  75267. LWIP_ASSERT("need unchained pbuf", p->next == NULL);
  75268. 801ea1a: 693b ldr r3, [r7, #16]
  75269. 801ea1c: 681b ldr r3, [r3, #0]
  75270. 801ea1e: 2b00 cmp r3, #0
  75271. 801ea20: d006 beq.n 801ea30 <tcp_pbuf_prealloc+0xb8>
  75272. 801ea22: 4b0d ldr r3, [pc, #52] @ (801ea58 <tcp_pbuf_prealloc+0xe0>)
  75273. 801ea24: f240 120b movw r2, #267 @ 0x10b
  75274. 801ea28: 490f ldr r1, [pc, #60] @ (801ea68 <tcp_pbuf_prealloc+0xf0>)
  75275. 801ea2a: 480d ldr r0, [pc, #52] @ (801ea60 <tcp_pbuf_prealloc+0xe8>)
  75276. 801ea2c: f00a fd6e bl 802950c <iprintf>
  75277. *oversize = p->len - length;
  75278. 801ea30: 693b ldr r3, [r7, #16]
  75279. 801ea32: 895a ldrh r2, [r3, #10]
  75280. 801ea34: 89bb ldrh r3, [r7, #12]
  75281. 801ea36: 1ad3 subs r3, r2, r3
  75282. 801ea38: b29a uxth r2, r3
  75283. 801ea3a: 687b ldr r3, [r7, #4]
  75284. 801ea3c: 801a strh r2, [r3, #0]
  75285. /* trim p->len to the currently used size */
  75286. p->len = p->tot_len = length;
  75287. 801ea3e: 693b ldr r3, [r7, #16]
  75288. 801ea40: 89ba ldrh r2, [r7, #12]
  75289. 801ea42: 811a strh r2, [r3, #8]
  75290. 801ea44: 693b ldr r3, [r7, #16]
  75291. 801ea46: 891a ldrh r2, [r3, #8]
  75292. 801ea48: 693b ldr r3, [r7, #16]
  75293. 801ea4a: 815a strh r2, [r3, #10]
  75294. return p;
  75295. 801ea4c: 693b ldr r3, [r7, #16]
  75296. }
  75297. 801ea4e: 4618 mov r0, r3
  75298. 801ea50: 3718 adds r7, #24
  75299. 801ea52: 46bd mov sp, r7
  75300. 801ea54: bd80 pop {r7, pc}
  75301. 801ea56: bf00 nop
  75302. 801ea58: 0802ed24 .word 0x0802ed24
  75303. 801ea5c: 0802eddc .word 0x0802eddc
  75304. 801ea60: 0802ed78 .word 0x0802ed78
  75305. 801ea64: 0802ee00 .word 0x0802ee00
  75306. 801ea68: 0802ee20 .word 0x0802ee20
  75307. 0801ea6c <tcp_write_checks>:
  75308. * @param len length of data to send (checked agains snd_buf)
  75309. * @return ERR_OK if tcp_write is allowed to proceed, another err_t otherwise
  75310. */
  75311. static err_t
  75312. tcp_write_checks(struct tcp_pcb *pcb, u16_t len)
  75313. {
  75314. 801ea6c: b580 push {r7, lr}
  75315. 801ea6e: b082 sub sp, #8
  75316. 801ea70: af00 add r7, sp, #0
  75317. 801ea72: 6078 str r0, [r7, #4]
  75318. 801ea74: 460b mov r3, r1
  75319. 801ea76: 807b strh r3, [r7, #2]
  75320. LWIP_ASSERT("tcp_write_checks: invalid pcb", pcb != NULL);
  75321. 801ea78: 687b ldr r3, [r7, #4]
  75322. 801ea7a: 2b00 cmp r3, #0
  75323. 801ea7c: d106 bne.n 801ea8c <tcp_write_checks+0x20>
  75324. 801ea7e: 4b33 ldr r3, [pc, #204] @ (801eb4c <tcp_write_checks+0xe0>)
  75325. 801ea80: f240 1233 movw r2, #307 @ 0x133
  75326. 801ea84: 4932 ldr r1, [pc, #200] @ (801eb50 <tcp_write_checks+0xe4>)
  75327. 801ea86: 4833 ldr r0, [pc, #204] @ (801eb54 <tcp_write_checks+0xe8>)
  75328. 801ea88: f00a fd40 bl 802950c <iprintf>
  75329. /* connection is in invalid state for data transmission? */
  75330. if ((pcb->state != ESTABLISHED) &&
  75331. 801ea8c: 687b ldr r3, [r7, #4]
  75332. 801ea8e: 7d1b ldrb r3, [r3, #20]
  75333. 801ea90: 2b04 cmp r3, #4
  75334. 801ea92: d00e beq.n 801eab2 <tcp_write_checks+0x46>
  75335. (pcb->state != CLOSE_WAIT) &&
  75336. 801ea94: 687b ldr r3, [r7, #4]
  75337. 801ea96: 7d1b ldrb r3, [r3, #20]
  75338. if ((pcb->state != ESTABLISHED) &&
  75339. 801ea98: 2b07 cmp r3, #7
  75340. 801ea9a: d00a beq.n 801eab2 <tcp_write_checks+0x46>
  75341. (pcb->state != SYN_SENT) &&
  75342. 801ea9c: 687b ldr r3, [r7, #4]
  75343. 801ea9e: 7d1b ldrb r3, [r3, #20]
  75344. (pcb->state != CLOSE_WAIT) &&
  75345. 801eaa0: 2b02 cmp r3, #2
  75346. 801eaa2: d006 beq.n 801eab2 <tcp_write_checks+0x46>
  75347. (pcb->state != SYN_RCVD)) {
  75348. 801eaa4: 687b ldr r3, [r7, #4]
  75349. 801eaa6: 7d1b ldrb r3, [r3, #20]
  75350. (pcb->state != SYN_SENT) &&
  75351. 801eaa8: 2b03 cmp r3, #3
  75352. 801eaaa: d002 beq.n 801eab2 <tcp_write_checks+0x46>
  75353. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_STATE | LWIP_DBG_LEVEL_SEVERE, ("tcp_write() called in invalid state\n"));
  75354. return ERR_CONN;
  75355. 801eaac: f06f 030a mvn.w r3, #10
  75356. 801eab0: e048 b.n 801eb44 <tcp_write_checks+0xd8>
  75357. } else if (len == 0) {
  75358. 801eab2: 887b ldrh r3, [r7, #2]
  75359. 801eab4: 2b00 cmp r3, #0
  75360. 801eab6: d101 bne.n 801eabc <tcp_write_checks+0x50>
  75361. return ERR_OK;
  75362. 801eab8: 2300 movs r3, #0
  75363. 801eaba: e043 b.n 801eb44 <tcp_write_checks+0xd8>
  75364. }
  75365. /* fail on too much data */
  75366. if (len > pcb->snd_buf) {
  75367. 801eabc: 687b ldr r3, [r7, #4]
  75368. 801eabe: f8b3 3064 ldrh.w r3, [r3, #100] @ 0x64
  75369. 801eac2: 887a ldrh r2, [r7, #2]
  75370. 801eac4: 429a cmp r2, r3
  75371. 801eac6: d909 bls.n 801eadc <tcp_write_checks+0x70>
  75372. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("tcp_write: too much data (len=%"U16_F" > snd_buf=%"TCPWNDSIZE_F")\n",
  75373. len, pcb->snd_buf));
  75374. tcp_set_flags(pcb, TF_NAGLEMEMERR);
  75375. 801eac8: 687b ldr r3, [r7, #4]
  75376. 801eaca: 8b5b ldrh r3, [r3, #26]
  75377. 801eacc: f043 0380 orr.w r3, r3, #128 @ 0x80
  75378. 801ead0: b29a uxth r2, r3
  75379. 801ead2: 687b ldr r3, [r7, #4]
  75380. 801ead4: 835a strh r2, [r3, #26]
  75381. return ERR_MEM;
  75382. 801ead6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  75383. 801eada: e033 b.n 801eb44 <tcp_write_checks+0xd8>
  75384. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_write: queuelen: %"TCPWNDSIZE_F"\n", (tcpwnd_size_t)pcb->snd_queuelen));
  75385. /* If total number of pbufs on the unsent/unacked queues exceeds the
  75386. * configured maximum, return an error */
  75387. /* check for configured max queuelen and possible overflow */
  75388. if (pcb->snd_queuelen >= LWIP_MIN(TCP_SND_QUEUELEN, (TCP_SNDQUEUELEN_OVERFLOW + 1))) {
  75389. 801eadc: 687b ldr r3, [r7, #4]
  75390. 801eade: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  75391. 801eae2: 2b0f cmp r3, #15
  75392. 801eae4: d909 bls.n 801eafa <tcp_write_checks+0x8e>
  75393. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("tcp_write: too long queue %"U16_F" (max %"U16_F")\n",
  75394. pcb->snd_queuelen, (u16_t)TCP_SND_QUEUELEN));
  75395. TCP_STATS_INC(tcp.memerr);
  75396. tcp_set_flags(pcb, TF_NAGLEMEMERR);
  75397. 801eae6: 687b ldr r3, [r7, #4]
  75398. 801eae8: 8b5b ldrh r3, [r3, #26]
  75399. 801eaea: f043 0380 orr.w r3, r3, #128 @ 0x80
  75400. 801eaee: b29a uxth r2, r3
  75401. 801eaf0: 687b ldr r3, [r7, #4]
  75402. 801eaf2: 835a strh r2, [r3, #26]
  75403. return ERR_MEM;
  75404. 801eaf4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  75405. 801eaf8: e024 b.n 801eb44 <tcp_write_checks+0xd8>
  75406. }
  75407. if (pcb->snd_queuelen != 0) {
  75408. 801eafa: 687b ldr r3, [r7, #4]
  75409. 801eafc: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  75410. 801eb00: 2b00 cmp r3, #0
  75411. 801eb02: d00f beq.n 801eb24 <tcp_write_checks+0xb8>
  75412. LWIP_ASSERT("tcp_write: pbufs on queue => at least one queue non-empty",
  75413. 801eb04: 687b ldr r3, [r7, #4]
  75414. 801eb06: 6f1b ldr r3, [r3, #112] @ 0x70
  75415. 801eb08: 2b00 cmp r3, #0
  75416. 801eb0a: d11a bne.n 801eb42 <tcp_write_checks+0xd6>
  75417. 801eb0c: 687b ldr r3, [r7, #4]
  75418. 801eb0e: 6edb ldr r3, [r3, #108] @ 0x6c
  75419. 801eb10: 2b00 cmp r3, #0
  75420. 801eb12: d116 bne.n 801eb42 <tcp_write_checks+0xd6>
  75421. 801eb14: 4b0d ldr r3, [pc, #52] @ (801eb4c <tcp_write_checks+0xe0>)
  75422. 801eb16: f240 1255 movw r2, #341 @ 0x155
  75423. 801eb1a: 490f ldr r1, [pc, #60] @ (801eb58 <tcp_write_checks+0xec>)
  75424. 801eb1c: 480d ldr r0, [pc, #52] @ (801eb54 <tcp_write_checks+0xe8>)
  75425. 801eb1e: f00a fcf5 bl 802950c <iprintf>
  75426. 801eb22: e00e b.n 801eb42 <tcp_write_checks+0xd6>
  75427. pcb->unacked != NULL || pcb->unsent != NULL);
  75428. } else {
  75429. LWIP_ASSERT("tcp_write: no pbufs on queue => both queues empty",
  75430. 801eb24: 687b ldr r3, [r7, #4]
  75431. 801eb26: 6f1b ldr r3, [r3, #112] @ 0x70
  75432. 801eb28: 2b00 cmp r3, #0
  75433. 801eb2a: d103 bne.n 801eb34 <tcp_write_checks+0xc8>
  75434. 801eb2c: 687b ldr r3, [r7, #4]
  75435. 801eb2e: 6edb ldr r3, [r3, #108] @ 0x6c
  75436. 801eb30: 2b00 cmp r3, #0
  75437. 801eb32: d006 beq.n 801eb42 <tcp_write_checks+0xd6>
  75438. 801eb34: 4b05 ldr r3, [pc, #20] @ (801eb4c <tcp_write_checks+0xe0>)
  75439. 801eb36: f44f 72ac mov.w r2, #344 @ 0x158
  75440. 801eb3a: 4908 ldr r1, [pc, #32] @ (801eb5c <tcp_write_checks+0xf0>)
  75441. 801eb3c: 4805 ldr r0, [pc, #20] @ (801eb54 <tcp_write_checks+0xe8>)
  75442. 801eb3e: f00a fce5 bl 802950c <iprintf>
  75443. pcb->unacked == NULL && pcb->unsent == NULL);
  75444. }
  75445. return ERR_OK;
  75446. 801eb42: 2300 movs r3, #0
  75447. }
  75448. 801eb44: 4618 mov r0, r3
  75449. 801eb46: 3708 adds r7, #8
  75450. 801eb48: 46bd mov sp, r7
  75451. 801eb4a: bd80 pop {r7, pc}
  75452. 801eb4c: 0802ed24 .word 0x0802ed24
  75453. 801eb50: 0802ee34 .word 0x0802ee34
  75454. 801eb54: 0802ed78 .word 0x0802ed78
  75455. 801eb58: 0802ee54 .word 0x0802ee54
  75456. 801eb5c: 0802ee90 .word 0x0802ee90
  75457. 0801eb60 <tcp_write>:
  75458. * - TCP_WRITE_FLAG_MORE (0x02) for TCP connection, PSH flag will not be set on last segment sent,
  75459. * @return ERR_OK if enqueued, another err_t on error
  75460. */
  75461. err_t
  75462. tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t apiflags)
  75463. {
  75464. 801eb60: b590 push {r4, r7, lr}
  75465. 801eb62: b09d sub sp, #116 @ 0x74
  75466. 801eb64: af04 add r7, sp, #16
  75467. 801eb66: 60f8 str r0, [r7, #12]
  75468. 801eb68: 60b9 str r1, [r7, #8]
  75469. 801eb6a: 4611 mov r1, r2
  75470. 801eb6c: 461a mov r2, r3
  75471. 801eb6e: 460b mov r3, r1
  75472. 801eb70: 80fb strh r3, [r7, #6]
  75473. 801eb72: 4613 mov r3, r2
  75474. 801eb74: 717b strb r3, [r7, #5]
  75475. struct pbuf *concat_p = NULL;
  75476. 801eb76: 2300 movs r3, #0
  75477. 801eb78: 63fb str r3, [r7, #60] @ 0x3c
  75478. struct tcp_seg *last_unsent = NULL, *seg = NULL, *prev_seg = NULL, *queue = NULL;
  75479. 801eb7a: 2300 movs r3, #0
  75480. 801eb7c: 643b str r3, [r7, #64] @ 0x40
  75481. 801eb7e: 2300 movs r3, #0
  75482. 801eb80: 657b str r3, [r7, #84] @ 0x54
  75483. 801eb82: 2300 movs r3, #0
  75484. 801eb84: 653b str r3, [r7, #80] @ 0x50
  75485. 801eb86: 2300 movs r3, #0
  75486. 801eb88: 64fb str r3, [r7, #76] @ 0x4c
  75487. u16_t pos = 0; /* position in 'arg' data */
  75488. 801eb8a: 2300 movs r3, #0
  75489. 801eb8c: f8a7 304a strh.w r3, [r7, #74] @ 0x4a
  75490. u16_t queuelen;
  75491. u8_t optlen;
  75492. u8_t optflags = 0;
  75493. 801eb90: 2300 movs r3, #0
  75494. 801eb92: f887 302b strb.w r3, [r7, #43] @ 0x2b
  75495. #if TCP_OVERSIZE
  75496. u16_t oversize = 0;
  75497. 801eb96: 2300 movs r3, #0
  75498. 801eb98: 82fb strh r3, [r7, #22]
  75499. u16_t oversize_used = 0;
  75500. 801eb9a: 2300 movs r3, #0
  75501. 801eb9c: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  75502. #if TCP_OVERSIZE_DBGCHECK
  75503. u16_t oversize_add = 0;
  75504. 801eba0: 2300 movs r3, #0
  75505. 801eba2: f8a7 305a strh.w r3, [r7, #90] @ 0x5a
  75506. #endif /* TCP_OVERSIZE_DBGCHECK*/
  75507. #endif /* TCP_OVERSIZE */
  75508. u16_t extendlen = 0;
  75509. 801eba6: 2300 movs r3, #0
  75510. 801eba8: f8a7 305e strh.w r3, [r7, #94] @ 0x5e
  75511. u16_t concat_chksummed = 0;
  75512. #endif /* TCP_CHECKSUM_ON_COPY */
  75513. err_t err;
  75514. u16_t mss_local;
  75515. LWIP_ERROR("tcp_write: invalid pcb", pcb != NULL, return ERR_ARG);
  75516. 801ebac: 68fb ldr r3, [r7, #12]
  75517. 801ebae: 2b00 cmp r3, #0
  75518. 801ebb0: d109 bne.n 801ebc6 <tcp_write+0x66>
  75519. 801ebb2: 4b9d ldr r3, [pc, #628] @ (801ee28 <tcp_write+0x2c8>)
  75520. 801ebb4: f44f 72cf mov.w r2, #414 @ 0x19e
  75521. 801ebb8: 499c ldr r1, [pc, #624] @ (801ee2c <tcp_write+0x2cc>)
  75522. 801ebba: 489d ldr r0, [pc, #628] @ (801ee30 <tcp_write+0x2d0>)
  75523. 801ebbc: f00a fca6 bl 802950c <iprintf>
  75524. 801ebc0: f06f 030f mvn.w r3, #15
  75525. 801ebc4: e37b b.n 801f2be <tcp_write+0x75e>
  75526. /* don't allocate segments bigger than half the maximum window we ever received */
  75527. mss_local = LWIP_MIN(pcb->mss, TCPWND_MIN16(pcb->snd_wnd_max / 2));
  75528. 801ebc6: 68fb ldr r3, [r7, #12]
  75529. 801ebc8: f8b3 3062 ldrh.w r3, [r3, #98] @ 0x62
  75530. 801ebcc: 085b lsrs r3, r3, #1
  75531. 801ebce: b29a uxth r2, r3
  75532. 801ebd0: 68fb ldr r3, [r7, #12]
  75533. 801ebd2: 8e5b ldrh r3, [r3, #50] @ 0x32
  75534. 801ebd4: 4293 cmp r3, r2
  75535. 801ebd6: bf28 it cs
  75536. 801ebd8: 4613 movcs r3, r2
  75537. 801ebda: 853b strh r3, [r7, #40] @ 0x28
  75538. mss_local = mss_local ? mss_local : pcb->mss;
  75539. 801ebdc: 8d3b ldrh r3, [r7, #40] @ 0x28
  75540. 801ebde: 2b00 cmp r3, #0
  75541. 801ebe0: d102 bne.n 801ebe8 <tcp_write+0x88>
  75542. 801ebe2: 68fb ldr r3, [r7, #12]
  75543. 801ebe4: 8e5b ldrh r3, [r3, #50] @ 0x32
  75544. 801ebe6: e000 b.n 801ebea <tcp_write+0x8a>
  75545. 801ebe8: 8d3b ldrh r3, [r7, #40] @ 0x28
  75546. 801ebea: 853b strh r3, [r7, #40] @ 0x28
  75547. LWIP_ASSERT_CORE_LOCKED();
  75548. 801ebec: f7f1 fa40 bl 8010070 <sys_check_core_locking>
  75549. apiflags |= TCP_WRITE_FLAG_COPY;
  75550. #endif /* LWIP_NETIF_TX_SINGLE_PBUF */
  75551. LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_write(pcb=%p, data=%p, len=%"U16_F", apiflags=%"U16_F")\n",
  75552. (void *)pcb, arg, len, (u16_t)apiflags));
  75553. LWIP_ERROR("tcp_write: arg == NULL (programmer violates API)",
  75554. 801ebf0: 68bb ldr r3, [r7, #8]
  75555. 801ebf2: 2b00 cmp r3, #0
  75556. 801ebf4: d109 bne.n 801ec0a <tcp_write+0xaa>
  75557. 801ebf6: 4b8c ldr r3, [pc, #560] @ (801ee28 <tcp_write+0x2c8>)
  75558. 801ebf8: f240 12ad movw r2, #429 @ 0x1ad
  75559. 801ebfc: 498d ldr r1, [pc, #564] @ (801ee34 <tcp_write+0x2d4>)
  75560. 801ebfe: 488c ldr r0, [pc, #560] @ (801ee30 <tcp_write+0x2d0>)
  75561. 801ec00: f00a fc84 bl 802950c <iprintf>
  75562. 801ec04: f06f 030f mvn.w r3, #15
  75563. 801ec08: e359 b.n 801f2be <tcp_write+0x75e>
  75564. arg != NULL, return ERR_ARG;);
  75565. err = tcp_write_checks(pcb, len);
  75566. 801ec0a: 88fb ldrh r3, [r7, #6]
  75567. 801ec0c: 4619 mov r1, r3
  75568. 801ec0e: 68f8 ldr r0, [r7, #12]
  75569. 801ec10: f7ff ff2c bl 801ea6c <tcp_write_checks>
  75570. 801ec14: 4603 mov r3, r0
  75571. 801ec16: f887 3027 strb.w r3, [r7, #39] @ 0x27
  75572. if (err != ERR_OK) {
  75573. 801ec1a: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  75574. 801ec1e: 2b00 cmp r3, #0
  75575. 801ec20: d002 beq.n 801ec28 <tcp_write+0xc8>
  75576. return err;
  75577. 801ec22: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  75578. 801ec26: e34a b.n 801f2be <tcp_write+0x75e>
  75579. }
  75580. queuelen = pcb->snd_queuelen;
  75581. 801ec28: 68fb ldr r3, [r7, #12]
  75582. 801ec2a: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  75583. 801ec2e: f8a7 3048 strh.w r3, [r7, #72] @ 0x48
  75584. /* ensure that segments can hold at least one data byte... */
  75585. mss_local = LWIP_MAX(mss_local, LWIP_TCP_OPT_LEN_TS + 1);
  75586. } else
  75587. #endif /* LWIP_TCP_TIMESTAMPS */
  75588. {
  75589. optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb);
  75590. 801ec32: 2300 movs r3, #0
  75591. 801ec34: f887 3026 strb.w r3, [r7, #38] @ 0x26
  75592. *
  75593. * pos records progress as data is segmented.
  75594. */
  75595. /* Find the tail of the unsent queue. */
  75596. if (pcb->unsent != NULL) {
  75597. 801ec38: 68fb ldr r3, [r7, #12]
  75598. 801ec3a: 6edb ldr r3, [r3, #108] @ 0x6c
  75599. 801ec3c: 2b00 cmp r3, #0
  75600. 801ec3e: f000 8127 beq.w 801ee90 <tcp_write+0x330>
  75601. u16_t space;
  75602. u16_t unsent_optlen;
  75603. /* @todo: this could be sped up by keeping last_unsent in the pcb */
  75604. for (last_unsent = pcb->unsent; last_unsent->next != NULL;
  75605. 801ec42: 68fb ldr r3, [r7, #12]
  75606. 801ec44: 6edb ldr r3, [r3, #108] @ 0x6c
  75607. 801ec46: 643b str r3, [r7, #64] @ 0x40
  75608. 801ec48: e002 b.n 801ec50 <tcp_write+0xf0>
  75609. last_unsent = last_unsent->next);
  75610. 801ec4a: 6c3b ldr r3, [r7, #64] @ 0x40
  75611. 801ec4c: 681b ldr r3, [r3, #0]
  75612. 801ec4e: 643b str r3, [r7, #64] @ 0x40
  75613. for (last_unsent = pcb->unsent; last_unsent->next != NULL;
  75614. 801ec50: 6c3b ldr r3, [r7, #64] @ 0x40
  75615. 801ec52: 681b ldr r3, [r3, #0]
  75616. 801ec54: 2b00 cmp r3, #0
  75617. 801ec56: d1f8 bne.n 801ec4a <tcp_write+0xea>
  75618. /* Usable space at the end of the last unsent segment */
  75619. unsent_optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(last_unsent->flags, pcb);
  75620. 801ec58: 6c3b ldr r3, [r7, #64] @ 0x40
  75621. 801ec5a: 7b1b ldrb r3, [r3, #12]
  75622. 801ec5c: 009b lsls r3, r3, #2
  75623. 801ec5e: b29b uxth r3, r3
  75624. 801ec60: f003 0304 and.w r3, r3, #4
  75625. 801ec64: 84bb strh r3, [r7, #36] @ 0x24
  75626. LWIP_ASSERT("mss_local is too small", mss_local >= last_unsent->len + unsent_optlen);
  75627. 801ec66: 8d3a ldrh r2, [r7, #40] @ 0x28
  75628. 801ec68: 6c3b ldr r3, [r7, #64] @ 0x40
  75629. 801ec6a: 891b ldrh r3, [r3, #8]
  75630. 801ec6c: 4619 mov r1, r3
  75631. 801ec6e: 8cbb ldrh r3, [r7, #36] @ 0x24
  75632. 801ec70: 440b add r3, r1
  75633. 801ec72: 429a cmp r2, r3
  75634. 801ec74: da06 bge.n 801ec84 <tcp_write+0x124>
  75635. 801ec76: 4b6c ldr r3, [pc, #432] @ (801ee28 <tcp_write+0x2c8>)
  75636. 801ec78: f44f 72f3 mov.w r2, #486 @ 0x1e6
  75637. 801ec7c: 496e ldr r1, [pc, #440] @ (801ee38 <tcp_write+0x2d8>)
  75638. 801ec7e: 486c ldr r0, [pc, #432] @ (801ee30 <tcp_write+0x2d0>)
  75639. 801ec80: f00a fc44 bl 802950c <iprintf>
  75640. space = mss_local - (last_unsent->len + unsent_optlen);
  75641. 801ec84: 6c3b ldr r3, [r7, #64] @ 0x40
  75642. 801ec86: 891a ldrh r2, [r3, #8]
  75643. 801ec88: 8cbb ldrh r3, [r7, #36] @ 0x24
  75644. 801ec8a: 4413 add r3, r2
  75645. 801ec8c: b29b uxth r3, r3
  75646. 801ec8e: 8d3a ldrh r2, [r7, #40] @ 0x28
  75647. 801ec90: 1ad3 subs r3, r2, r3
  75648. 801ec92: f8a7 305c strh.w r3, [r7, #92] @ 0x5c
  75649. * function.
  75650. */
  75651. #if TCP_OVERSIZE
  75652. #if TCP_OVERSIZE_DBGCHECK
  75653. /* check that pcb->unsent_oversize matches last_unsent->oversize_left */
  75654. LWIP_ASSERT("unsent_oversize mismatch (pcb vs. last_unsent)",
  75655. 801ec96: 68fb ldr r3, [r7, #12]
  75656. 801ec98: f8b3 2068 ldrh.w r2, [r3, #104] @ 0x68
  75657. 801ec9c: 6c3b ldr r3, [r7, #64] @ 0x40
  75658. 801ec9e: 895b ldrh r3, [r3, #10]
  75659. 801eca0: 429a cmp r2, r3
  75660. 801eca2: d006 beq.n 801ecb2 <tcp_write+0x152>
  75661. 801eca4: 4b60 ldr r3, [pc, #384] @ (801ee28 <tcp_write+0x2c8>)
  75662. 801eca6: f240 12f3 movw r2, #499 @ 0x1f3
  75663. 801ecaa: 4964 ldr r1, [pc, #400] @ (801ee3c <tcp_write+0x2dc>)
  75664. 801ecac: 4860 ldr r0, [pc, #384] @ (801ee30 <tcp_write+0x2d0>)
  75665. 801ecae: f00a fc2d bl 802950c <iprintf>
  75666. pcb->unsent_oversize == last_unsent->oversize_left);
  75667. #endif /* TCP_OVERSIZE_DBGCHECK */
  75668. oversize = pcb->unsent_oversize;
  75669. 801ecb2: 68fb ldr r3, [r7, #12]
  75670. 801ecb4: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  75671. 801ecb8: 82fb strh r3, [r7, #22]
  75672. if (oversize > 0) {
  75673. 801ecba: 8afb ldrh r3, [r7, #22]
  75674. 801ecbc: 2b00 cmp r3, #0
  75675. 801ecbe: d02e beq.n 801ed1e <tcp_write+0x1be>
  75676. LWIP_ASSERT("inconsistent oversize vs. space", oversize <= space);
  75677. 801ecc0: 8afb ldrh r3, [r7, #22]
  75678. 801ecc2: f8b7 205c ldrh.w r2, [r7, #92] @ 0x5c
  75679. 801ecc6: 429a cmp r2, r3
  75680. 801ecc8: d206 bcs.n 801ecd8 <tcp_write+0x178>
  75681. 801ecca: 4b57 ldr r3, [pc, #348] @ (801ee28 <tcp_write+0x2c8>)
  75682. 801eccc: f44f 72fc mov.w r2, #504 @ 0x1f8
  75683. 801ecd0: 495b ldr r1, [pc, #364] @ (801ee40 <tcp_write+0x2e0>)
  75684. 801ecd2: 4857 ldr r0, [pc, #348] @ (801ee30 <tcp_write+0x2d0>)
  75685. 801ecd4: f00a fc1a bl 802950c <iprintf>
  75686. seg = last_unsent;
  75687. 801ecd8: 6c3b ldr r3, [r7, #64] @ 0x40
  75688. 801ecda: 657b str r3, [r7, #84] @ 0x54
  75689. oversize_used = LWIP_MIN(space, LWIP_MIN(oversize, len));
  75690. 801ecdc: 8afb ldrh r3, [r7, #22]
  75691. 801ecde: 88fa ldrh r2, [r7, #6]
  75692. 801ece0: 4293 cmp r3, r2
  75693. 801ece2: bf28 it cs
  75694. 801ece4: 4613 movcs r3, r2
  75695. 801ece6: b29b uxth r3, r3
  75696. 801ece8: f8b7 205c ldrh.w r2, [r7, #92] @ 0x5c
  75697. 801ecec: 4293 cmp r3, r2
  75698. 801ecee: bf28 it cs
  75699. 801ecf0: 4613 movcs r3, r2
  75700. 801ecf2: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  75701. pos += oversize_used;
  75702. 801ecf6: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  75703. 801ecfa: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  75704. 801ecfe: 4413 add r3, r2
  75705. 801ed00: f8a7 304a strh.w r3, [r7, #74] @ 0x4a
  75706. oversize -= oversize_used;
  75707. 801ed04: 8afa ldrh r2, [r7, #22]
  75708. 801ed06: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  75709. 801ed0a: 1ad3 subs r3, r2, r3
  75710. 801ed0c: b29b uxth r3, r3
  75711. 801ed0e: 82fb strh r3, [r7, #22]
  75712. space -= oversize_used;
  75713. 801ed10: f8b7 205c ldrh.w r2, [r7, #92] @ 0x5c
  75714. 801ed14: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  75715. 801ed18: 1ad3 subs r3, r2, r3
  75716. 801ed1a: f8a7 305c strh.w r3, [r7, #92] @ 0x5c
  75717. }
  75718. /* now we are either finished or oversize is zero */
  75719. LWIP_ASSERT("inconsistent oversize vs. len", (oversize == 0) || (pos == len));
  75720. 801ed1e: 8afb ldrh r3, [r7, #22]
  75721. 801ed20: 2b00 cmp r3, #0
  75722. 801ed22: d00b beq.n 801ed3c <tcp_write+0x1dc>
  75723. 801ed24: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  75724. 801ed28: 88fb ldrh r3, [r7, #6]
  75725. 801ed2a: 429a cmp r2, r3
  75726. 801ed2c: d006 beq.n 801ed3c <tcp_write+0x1dc>
  75727. 801ed2e: 4b3e ldr r3, [pc, #248] @ (801ee28 <tcp_write+0x2c8>)
  75728. 801ed30: f44f 7200 mov.w r2, #512 @ 0x200
  75729. 801ed34: 4943 ldr r1, [pc, #268] @ (801ee44 <tcp_write+0x2e4>)
  75730. 801ed36: 483e ldr r0, [pc, #248] @ (801ee30 <tcp_write+0x2d0>)
  75731. 801ed38: f00a fbe8 bl 802950c <iprintf>
  75732. *
  75733. * This phase is skipped for LWIP_NETIF_TX_SINGLE_PBUF as we could only execute
  75734. * it after rexmit puts a segment from unacked to unsent and at this point,
  75735. * oversize info is lost.
  75736. */
  75737. if ((pos < len) && (space > 0) && (last_unsent->len > 0)) {
  75738. 801ed3c: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  75739. 801ed40: 88fb ldrh r3, [r7, #6]
  75740. 801ed42: 429a cmp r2, r3
  75741. 801ed44: f080 8172 bcs.w 801f02c <tcp_write+0x4cc>
  75742. 801ed48: f8b7 305c ldrh.w r3, [r7, #92] @ 0x5c
  75743. 801ed4c: 2b00 cmp r3, #0
  75744. 801ed4e: f000 816d beq.w 801f02c <tcp_write+0x4cc>
  75745. 801ed52: 6c3b ldr r3, [r7, #64] @ 0x40
  75746. 801ed54: 891b ldrh r3, [r3, #8]
  75747. 801ed56: 2b00 cmp r3, #0
  75748. 801ed58: f000 8168 beq.w 801f02c <tcp_write+0x4cc>
  75749. u16_t seglen = LWIP_MIN(space, len - pos);
  75750. 801ed5c: 88fa ldrh r2, [r7, #6]
  75751. 801ed5e: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  75752. 801ed62: 1ad2 subs r2, r2, r3
  75753. 801ed64: f8b7 305c ldrh.w r3, [r7, #92] @ 0x5c
  75754. 801ed68: 4293 cmp r3, r2
  75755. 801ed6a: bfa8 it ge
  75756. 801ed6c: 4613 movge r3, r2
  75757. 801ed6e: 847b strh r3, [r7, #34] @ 0x22
  75758. seg = last_unsent;
  75759. 801ed70: 6c3b ldr r3, [r7, #64] @ 0x40
  75760. 801ed72: 657b str r3, [r7, #84] @ 0x54
  75761. /* Create a pbuf with a copy or reference to seglen bytes. We
  75762. * can use PBUF_RAW here since the data appears in the middle of
  75763. * a segment. A header will never be prepended. */
  75764. if (apiflags & TCP_WRITE_FLAG_COPY) {
  75765. 801ed74: 797b ldrb r3, [r7, #5]
  75766. 801ed76: f003 0301 and.w r3, r3, #1
  75767. 801ed7a: 2b00 cmp r3, #0
  75768. 801ed7c: d02b beq.n 801edd6 <tcp_write+0x276>
  75769. /* Data is copied */
  75770. if ((concat_p = tcp_pbuf_prealloc(PBUF_RAW, seglen, space, &oversize, pcb, apiflags, 1)) == NULL) {
  75771. 801ed7e: f107 0016 add.w r0, r7, #22
  75772. 801ed82: f8b7 205c ldrh.w r2, [r7, #92] @ 0x5c
  75773. 801ed86: 8c79 ldrh r1, [r7, #34] @ 0x22
  75774. 801ed88: 2301 movs r3, #1
  75775. 801ed8a: 9302 str r3, [sp, #8]
  75776. 801ed8c: 797b ldrb r3, [r7, #5]
  75777. 801ed8e: 9301 str r3, [sp, #4]
  75778. 801ed90: 68fb ldr r3, [r7, #12]
  75779. 801ed92: 9300 str r3, [sp, #0]
  75780. 801ed94: 4603 mov r3, r0
  75781. 801ed96: 2000 movs r0, #0
  75782. 801ed98: f7ff fdee bl 801e978 <tcp_pbuf_prealloc>
  75783. 801ed9c: 63f8 str r0, [r7, #60] @ 0x3c
  75784. 801ed9e: 6bfb ldr r3, [r7, #60] @ 0x3c
  75785. 801eda0: 2b00 cmp r3, #0
  75786. 801eda2: f000 825a beq.w 801f25a <tcp_write+0x6fa>
  75787. ("tcp_write : could not allocate memory for pbuf copy size %"U16_F"\n",
  75788. seglen));
  75789. goto memerr;
  75790. }
  75791. #if TCP_OVERSIZE_DBGCHECK
  75792. oversize_add = oversize;
  75793. 801eda6: 8afb ldrh r3, [r7, #22]
  75794. 801eda8: f8a7 305a strh.w r3, [r7, #90] @ 0x5a
  75795. #endif /* TCP_OVERSIZE_DBGCHECK */
  75796. TCP_DATA_COPY2(concat_p->payload, (const u8_t *)arg + pos, seglen, &concat_chksum, &concat_chksum_swapped);
  75797. 801edac: 6bfb ldr r3, [r7, #60] @ 0x3c
  75798. 801edae: 6858 ldr r0, [r3, #4]
  75799. 801edb0: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  75800. 801edb4: 68ba ldr r2, [r7, #8]
  75801. 801edb6: 4413 add r3, r2
  75802. 801edb8: 8c7a ldrh r2, [r7, #34] @ 0x22
  75803. 801edba: 4619 mov r1, r3
  75804. 801edbc: f00a fe2f bl 8029a1e <memcpy>
  75805. #if TCP_CHECKSUM_ON_COPY
  75806. concat_chksummed += seglen;
  75807. #endif /* TCP_CHECKSUM_ON_COPY */
  75808. queuelen += pbuf_clen(concat_p);
  75809. 801edc0: 6bf8 ldr r0, [r7, #60] @ 0x3c
  75810. 801edc2: f7fb f9b9 bl 801a138 <pbuf_clen>
  75811. 801edc6: 4603 mov r3, r0
  75812. 801edc8: 461a mov r2, r3
  75813. 801edca: f8b7 3048 ldrh.w r3, [r7, #72] @ 0x48
  75814. 801edce: 4413 add r3, r2
  75815. 801edd0: f8a7 3048 strh.w r3, [r7, #72] @ 0x48
  75816. 801edd4: e055 b.n 801ee82 <tcp_write+0x322>
  75817. } else {
  75818. /* Data is not copied */
  75819. /* If the last unsent pbuf is of type PBUF_ROM, try to extend it. */
  75820. struct pbuf *p;
  75821. for (p = last_unsent->p; p->next != NULL; p = p->next);
  75822. 801edd6: 6c3b ldr r3, [r7, #64] @ 0x40
  75823. 801edd8: 685b ldr r3, [r3, #4]
  75824. 801edda: 63bb str r3, [r7, #56] @ 0x38
  75825. 801eddc: e002 b.n 801ede4 <tcp_write+0x284>
  75826. 801edde: 6bbb ldr r3, [r7, #56] @ 0x38
  75827. 801ede0: 681b ldr r3, [r3, #0]
  75828. 801ede2: 63bb str r3, [r7, #56] @ 0x38
  75829. 801ede4: 6bbb ldr r3, [r7, #56] @ 0x38
  75830. 801ede6: 681b ldr r3, [r3, #0]
  75831. 801ede8: 2b00 cmp r3, #0
  75832. 801edea: d1f8 bne.n 801edde <tcp_write+0x27e>
  75833. if (((p->type_internal & (PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS | PBUF_TYPE_FLAG_DATA_VOLATILE)) == 0) &&
  75834. 801edec: 6bbb ldr r3, [r7, #56] @ 0x38
  75835. 801edee: 7b1b ldrb r3, [r3, #12]
  75836. 801edf0: f003 03c0 and.w r3, r3, #192 @ 0xc0
  75837. 801edf4: 2b00 cmp r3, #0
  75838. 801edf6: d129 bne.n 801ee4c <tcp_write+0x2ec>
  75839. (const u8_t *)p->payload + p->len == (const u8_t *)arg) {
  75840. 801edf8: 6bbb ldr r3, [r7, #56] @ 0x38
  75841. 801edfa: 685b ldr r3, [r3, #4]
  75842. 801edfc: 6bba ldr r2, [r7, #56] @ 0x38
  75843. 801edfe: 8952 ldrh r2, [r2, #10]
  75844. 801ee00: 4413 add r3, r2
  75845. if (((p->type_internal & (PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS | PBUF_TYPE_FLAG_DATA_VOLATILE)) == 0) &&
  75846. 801ee02: 68ba ldr r2, [r7, #8]
  75847. 801ee04: 429a cmp r2, r3
  75848. 801ee06: d121 bne.n 801ee4c <tcp_write+0x2ec>
  75849. LWIP_ASSERT("tcp_write: ROM pbufs cannot be oversized", pos == 0);
  75850. 801ee08: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  75851. 801ee0c: 2b00 cmp r3, #0
  75852. 801ee0e: d006 beq.n 801ee1e <tcp_write+0x2be>
  75853. 801ee10: 4b05 ldr r3, [pc, #20] @ (801ee28 <tcp_write+0x2c8>)
  75854. 801ee12: f240 2231 movw r2, #561 @ 0x231
  75855. 801ee16: 490c ldr r1, [pc, #48] @ (801ee48 <tcp_write+0x2e8>)
  75856. 801ee18: 4805 ldr r0, [pc, #20] @ (801ee30 <tcp_write+0x2d0>)
  75857. 801ee1a: f00a fb77 bl 802950c <iprintf>
  75858. extendlen = seglen;
  75859. 801ee1e: 8c7b ldrh r3, [r7, #34] @ 0x22
  75860. 801ee20: f8a7 305e strh.w r3, [r7, #94] @ 0x5e
  75861. 801ee24: e02d b.n 801ee82 <tcp_write+0x322>
  75862. 801ee26: bf00 nop
  75863. 801ee28: 0802ed24 .word 0x0802ed24
  75864. 801ee2c: 0802eec4 .word 0x0802eec4
  75865. 801ee30: 0802ed78 .word 0x0802ed78
  75866. 801ee34: 0802eedc .word 0x0802eedc
  75867. 801ee38: 0802ef10 .word 0x0802ef10
  75868. 801ee3c: 0802ef28 .word 0x0802ef28
  75869. 801ee40: 0802ef58 .word 0x0802ef58
  75870. 801ee44: 0802ef78 .word 0x0802ef78
  75871. 801ee48: 0802ef98 .word 0x0802ef98
  75872. } else {
  75873. if ((concat_p = pbuf_alloc(PBUF_RAW, seglen, PBUF_ROM)) == NULL) {
  75874. 801ee4c: 8c7b ldrh r3, [r7, #34] @ 0x22
  75875. 801ee4e: 2201 movs r2, #1
  75876. 801ee50: 4619 mov r1, r3
  75877. 801ee52: 2000 movs r0, #0
  75878. 801ee54: f7fa fdcc bl 80199f0 <pbuf_alloc>
  75879. 801ee58: 63f8 str r0, [r7, #60] @ 0x3c
  75880. 801ee5a: 6bfb ldr r3, [r7, #60] @ 0x3c
  75881. 801ee5c: 2b00 cmp r3, #0
  75882. 801ee5e: f000 81fe beq.w 801f25e <tcp_write+0x6fe>
  75883. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS,
  75884. ("tcp_write: could not allocate memory for zero-copy pbuf\n"));
  75885. goto memerr;
  75886. }
  75887. /* reference the non-volatile payload data */
  75888. ((struct pbuf_rom *)concat_p)->payload = (const u8_t *)arg + pos;
  75889. 801ee62: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  75890. 801ee66: 68ba ldr r2, [r7, #8]
  75891. 801ee68: 441a add r2, r3
  75892. 801ee6a: 6bfb ldr r3, [r7, #60] @ 0x3c
  75893. 801ee6c: 605a str r2, [r3, #4]
  75894. queuelen += pbuf_clen(concat_p);
  75895. 801ee6e: 6bf8 ldr r0, [r7, #60] @ 0x3c
  75896. 801ee70: f7fb f962 bl 801a138 <pbuf_clen>
  75897. 801ee74: 4603 mov r3, r0
  75898. 801ee76: 461a mov r2, r3
  75899. 801ee78: f8b7 3048 ldrh.w r3, [r7, #72] @ 0x48
  75900. 801ee7c: 4413 add r3, r2
  75901. 801ee7e: f8a7 3048 strh.w r3, [r7, #72] @ 0x48
  75902. &concat_chksum, &concat_chksum_swapped);
  75903. concat_chksummed += seglen;
  75904. #endif /* TCP_CHECKSUM_ON_COPY */
  75905. }
  75906. pos += seglen;
  75907. 801ee82: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  75908. 801ee86: 8c7b ldrh r3, [r7, #34] @ 0x22
  75909. 801ee88: 4413 add r3, r2
  75910. 801ee8a: f8a7 304a strh.w r3, [r7, #74] @ 0x4a
  75911. 801ee8e: e0cd b.n 801f02c <tcp_write+0x4cc>
  75912. }
  75913. #endif /* !LWIP_NETIF_TX_SINGLE_PBUF */
  75914. } else {
  75915. #if TCP_OVERSIZE
  75916. LWIP_ASSERT("unsent_oversize mismatch (pcb->unsent is NULL)",
  75917. 801ee90: 68fb ldr r3, [r7, #12]
  75918. 801ee92: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  75919. 801ee96: 2b00 cmp r3, #0
  75920. 801ee98: f000 80c8 beq.w 801f02c <tcp_write+0x4cc>
  75921. 801ee9c: 4b72 ldr r3, [pc, #456] @ (801f068 <tcp_write+0x508>)
  75922. 801ee9e: f240 224a movw r2, #586 @ 0x24a
  75923. 801eea2: 4972 ldr r1, [pc, #456] @ (801f06c <tcp_write+0x50c>)
  75924. 801eea4: 4872 ldr r0, [pc, #456] @ (801f070 <tcp_write+0x510>)
  75925. 801eea6: f00a fb31 bl 802950c <iprintf>
  75926. * Phase 3: Create new segments.
  75927. *
  75928. * The new segments are chained together in the local 'queue'
  75929. * variable, ready to be appended to pcb->unsent.
  75930. */
  75931. while (pos < len) {
  75932. 801eeaa: e0bf b.n 801f02c <tcp_write+0x4cc>
  75933. struct pbuf *p;
  75934. u16_t left = len - pos;
  75935. 801eeac: 88fa ldrh r2, [r7, #6]
  75936. 801eeae: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  75937. 801eeb2: 1ad3 subs r3, r2, r3
  75938. 801eeb4: 843b strh r3, [r7, #32]
  75939. u16_t max_len = mss_local - optlen;
  75940. 801eeb6: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  75941. 801eeba: b29b uxth r3, r3
  75942. 801eebc: 8d3a ldrh r2, [r7, #40] @ 0x28
  75943. 801eebe: 1ad3 subs r3, r2, r3
  75944. 801eec0: 83fb strh r3, [r7, #30]
  75945. u16_t seglen = LWIP_MIN(left, max_len);
  75946. 801eec2: 8bfa ldrh r2, [r7, #30]
  75947. 801eec4: 8c3b ldrh r3, [r7, #32]
  75948. 801eec6: 4293 cmp r3, r2
  75949. 801eec8: bf28 it cs
  75950. 801eeca: 4613 movcs r3, r2
  75951. 801eecc: 83bb strh r3, [r7, #28]
  75952. #if TCP_CHECKSUM_ON_COPY
  75953. u16_t chksum = 0;
  75954. u8_t chksum_swapped = 0;
  75955. #endif /* TCP_CHECKSUM_ON_COPY */
  75956. if (apiflags & TCP_WRITE_FLAG_COPY) {
  75957. 801eece: 797b ldrb r3, [r7, #5]
  75958. 801eed0: f003 0301 and.w r3, r3, #1
  75959. 801eed4: 2b00 cmp r3, #0
  75960. 801eed6: d036 beq.n 801ef46 <tcp_write+0x3e6>
  75961. /* If copy is set, memory should be allocated and data copied
  75962. * into pbuf */
  75963. if ((p = tcp_pbuf_prealloc(PBUF_TRANSPORT, seglen + optlen, mss_local, &oversize, pcb, apiflags, queue == NULL)) == NULL) {
  75964. 801eed8: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  75965. 801eedc: b29a uxth r2, r3
  75966. 801eede: 8bbb ldrh r3, [r7, #28]
  75967. 801eee0: 4413 add r3, r2
  75968. 801eee2: b299 uxth r1, r3
  75969. 801eee4: 6cfb ldr r3, [r7, #76] @ 0x4c
  75970. 801eee6: 2b00 cmp r3, #0
  75971. 801eee8: bf0c ite eq
  75972. 801eeea: 2301 moveq r3, #1
  75973. 801eeec: 2300 movne r3, #0
  75974. 801eeee: b2db uxtb r3, r3
  75975. 801eef0: f107 0016 add.w r0, r7, #22
  75976. 801eef4: 8d3a ldrh r2, [r7, #40] @ 0x28
  75977. 801eef6: 9302 str r3, [sp, #8]
  75978. 801eef8: 797b ldrb r3, [r7, #5]
  75979. 801eefa: 9301 str r3, [sp, #4]
  75980. 801eefc: 68fb ldr r3, [r7, #12]
  75981. 801eefe: 9300 str r3, [sp, #0]
  75982. 801ef00: 4603 mov r3, r0
  75983. 801ef02: 2036 movs r0, #54 @ 0x36
  75984. 801ef04: f7ff fd38 bl 801e978 <tcp_pbuf_prealloc>
  75985. 801ef08: 6378 str r0, [r7, #52] @ 0x34
  75986. 801ef0a: 6b7b ldr r3, [r7, #52] @ 0x34
  75987. 801ef0c: 2b00 cmp r3, #0
  75988. 801ef0e: f000 81a8 beq.w 801f262 <tcp_write+0x702>
  75989. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_write : could not allocate memory for pbuf copy size %"U16_F"\n", seglen));
  75990. goto memerr;
  75991. }
  75992. LWIP_ASSERT("tcp_write: check that first pbuf can hold the complete seglen",
  75993. 801ef12: 6b7b ldr r3, [r7, #52] @ 0x34
  75994. 801ef14: 895b ldrh r3, [r3, #10]
  75995. 801ef16: 8bba ldrh r2, [r7, #28]
  75996. 801ef18: 429a cmp r2, r3
  75997. 801ef1a: d906 bls.n 801ef2a <tcp_write+0x3ca>
  75998. 801ef1c: 4b52 ldr r3, [pc, #328] @ (801f068 <tcp_write+0x508>)
  75999. 801ef1e: f240 2266 movw r2, #614 @ 0x266
  76000. 801ef22: 4954 ldr r1, [pc, #336] @ (801f074 <tcp_write+0x514>)
  76001. 801ef24: 4852 ldr r0, [pc, #328] @ (801f070 <tcp_write+0x510>)
  76002. 801ef26: f00a faf1 bl 802950c <iprintf>
  76003. (p->len >= seglen));
  76004. TCP_DATA_COPY2((char *)p->payload + optlen, (const u8_t *)arg + pos, seglen, &chksum, &chksum_swapped);
  76005. 801ef2a: 6b7b ldr r3, [r7, #52] @ 0x34
  76006. 801ef2c: 685a ldr r2, [r3, #4]
  76007. 801ef2e: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  76008. 801ef32: 18d0 adds r0, r2, r3
  76009. 801ef34: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  76010. 801ef38: 68ba ldr r2, [r7, #8]
  76011. 801ef3a: 4413 add r3, r2
  76012. 801ef3c: 8bba ldrh r2, [r7, #28]
  76013. 801ef3e: 4619 mov r1, r3
  76014. 801ef40: f00a fd6d bl 8029a1e <memcpy>
  76015. 801ef44: e02f b.n 801efa6 <tcp_write+0x446>
  76016. * sent out on the link (as it has to be ACKed by the remote
  76017. * party) we can safely use PBUF_ROM instead of PBUF_REF here.
  76018. */
  76019. struct pbuf *p2;
  76020. #if TCP_OVERSIZE
  76021. LWIP_ASSERT("oversize == 0", oversize == 0);
  76022. 801ef46: 8afb ldrh r3, [r7, #22]
  76023. 801ef48: 2b00 cmp r3, #0
  76024. 801ef4a: d006 beq.n 801ef5a <tcp_write+0x3fa>
  76025. 801ef4c: 4b46 ldr r3, [pc, #280] @ (801f068 <tcp_write+0x508>)
  76026. 801ef4e: f240 2271 movw r2, #625 @ 0x271
  76027. 801ef52: 4949 ldr r1, [pc, #292] @ (801f078 <tcp_write+0x518>)
  76028. 801ef54: 4846 ldr r0, [pc, #280] @ (801f070 <tcp_write+0x510>)
  76029. 801ef56: f00a fad9 bl 802950c <iprintf>
  76030. #endif /* TCP_OVERSIZE */
  76031. if ((p2 = pbuf_alloc(PBUF_TRANSPORT, seglen, PBUF_ROM)) == NULL) {
  76032. 801ef5a: 8bbb ldrh r3, [r7, #28]
  76033. 801ef5c: 2201 movs r2, #1
  76034. 801ef5e: 4619 mov r1, r3
  76035. 801ef60: 2036 movs r0, #54 @ 0x36
  76036. 801ef62: f7fa fd45 bl 80199f0 <pbuf_alloc>
  76037. 801ef66: 61b8 str r0, [r7, #24]
  76038. 801ef68: 69bb ldr r3, [r7, #24]
  76039. 801ef6a: 2b00 cmp r3, #0
  76040. 801ef6c: f000 817b beq.w 801f266 <tcp_write+0x706>
  76041. chksum_swapped = 1;
  76042. chksum = SWAP_BYTES_IN_WORD(chksum);
  76043. }
  76044. #endif /* TCP_CHECKSUM_ON_COPY */
  76045. /* reference the non-volatile payload data */
  76046. ((struct pbuf_rom *)p2)->payload = (const u8_t *)arg + pos;
  76047. 801ef70: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  76048. 801ef74: 68ba ldr r2, [r7, #8]
  76049. 801ef76: 441a add r2, r3
  76050. 801ef78: 69bb ldr r3, [r7, #24]
  76051. 801ef7a: 605a str r2, [r3, #4]
  76052. /* Second, allocate a pbuf for the headers. */
  76053. if ((p = pbuf_alloc(PBUF_TRANSPORT, optlen, PBUF_RAM)) == NULL) {
  76054. 801ef7c: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  76055. 801ef80: b29b uxth r3, r3
  76056. 801ef82: f44f 7220 mov.w r2, #640 @ 0x280
  76057. 801ef86: 4619 mov r1, r3
  76058. 801ef88: 2036 movs r0, #54 @ 0x36
  76059. 801ef8a: f7fa fd31 bl 80199f0 <pbuf_alloc>
  76060. 801ef8e: 6378 str r0, [r7, #52] @ 0x34
  76061. 801ef90: 6b7b ldr r3, [r7, #52] @ 0x34
  76062. 801ef92: 2b00 cmp r3, #0
  76063. 801ef94: d103 bne.n 801ef9e <tcp_write+0x43e>
  76064. /* If allocation fails, we have to deallocate the data pbuf as
  76065. * well. */
  76066. pbuf_free(p2);
  76067. 801ef96: 69b8 ldr r0, [r7, #24]
  76068. 801ef98: f7fb f840 bl 801a01c <pbuf_free>
  76069. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_write: could not allocate memory for header pbuf\n"));
  76070. goto memerr;
  76071. 801ef9c: e166 b.n 801f26c <tcp_write+0x70c>
  76072. }
  76073. /* Concatenate the headers and data pbufs together. */
  76074. pbuf_cat(p/*header*/, p2/*data*/);
  76075. 801ef9e: 69b9 ldr r1, [r7, #24]
  76076. 801efa0: 6b78 ldr r0, [r7, #52] @ 0x34
  76077. 801efa2: f7fb f909 bl 801a1b8 <pbuf_cat>
  76078. }
  76079. queuelen += pbuf_clen(p);
  76080. 801efa6: 6b78 ldr r0, [r7, #52] @ 0x34
  76081. 801efa8: f7fb f8c6 bl 801a138 <pbuf_clen>
  76082. 801efac: 4603 mov r3, r0
  76083. 801efae: 461a mov r2, r3
  76084. 801efb0: f8b7 3048 ldrh.w r3, [r7, #72] @ 0x48
  76085. 801efb4: 4413 add r3, r2
  76086. 801efb6: f8a7 3048 strh.w r3, [r7, #72] @ 0x48
  76087. /* Now that there are more segments queued, we check again if the
  76088. * length of the queue exceeds the configured maximum or
  76089. * overflows. */
  76090. if (queuelen > LWIP_MIN(TCP_SND_QUEUELEN, TCP_SNDQUEUELEN_OVERFLOW)) {
  76091. 801efba: f8b7 3048 ldrh.w r3, [r7, #72] @ 0x48
  76092. 801efbe: 2b10 cmp r3, #16
  76093. 801efc0: d903 bls.n 801efca <tcp_write+0x46a>
  76094. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_write: queue too long %"U16_F" (%d)\n",
  76095. queuelen, (int)TCP_SND_QUEUELEN));
  76096. pbuf_free(p);
  76097. 801efc2: 6b78 ldr r0, [r7, #52] @ 0x34
  76098. 801efc4: f7fb f82a bl 801a01c <pbuf_free>
  76099. goto memerr;
  76100. 801efc8: e150 b.n 801f26c <tcp_write+0x70c>
  76101. }
  76102. if ((seg = tcp_create_segment(pcb, p, 0, pcb->snd_lbb + pos, optflags)) == NULL) {
  76103. 801efca: 68fb ldr r3, [r7, #12]
  76104. 801efcc: 6dda ldr r2, [r3, #92] @ 0x5c
  76105. 801efce: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  76106. 801efd2: 441a add r2, r3
  76107. 801efd4: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  76108. 801efd8: 9300 str r3, [sp, #0]
  76109. 801efda: 4613 mov r3, r2
  76110. 801efdc: 2200 movs r2, #0
  76111. 801efde: 6b79 ldr r1, [r7, #52] @ 0x34
  76112. 801efe0: 68f8 ldr r0, [r7, #12]
  76113. 801efe2: f7ff fc29 bl 801e838 <tcp_create_segment>
  76114. 801efe6: 6578 str r0, [r7, #84] @ 0x54
  76115. 801efe8: 6d7b ldr r3, [r7, #84] @ 0x54
  76116. 801efea: 2b00 cmp r3, #0
  76117. 801efec: f000 813d beq.w 801f26a <tcp_write+0x70a>
  76118. goto memerr;
  76119. }
  76120. #if TCP_OVERSIZE_DBGCHECK
  76121. seg->oversize_left = oversize;
  76122. 801eff0: 8afa ldrh r2, [r7, #22]
  76123. 801eff2: 6d7b ldr r3, [r7, #84] @ 0x54
  76124. 801eff4: 815a strh r2, [r3, #10]
  76125. seg->chksum_swapped = chksum_swapped;
  76126. seg->flags |= TF_SEG_DATA_CHECKSUMMED;
  76127. #endif /* TCP_CHECKSUM_ON_COPY */
  76128. /* first segment of to-be-queued data? */
  76129. if (queue == NULL) {
  76130. 801eff6: 6cfb ldr r3, [r7, #76] @ 0x4c
  76131. 801eff8: 2b00 cmp r3, #0
  76132. 801effa: d102 bne.n 801f002 <tcp_write+0x4a2>
  76133. queue = seg;
  76134. 801effc: 6d7b ldr r3, [r7, #84] @ 0x54
  76135. 801effe: 64fb str r3, [r7, #76] @ 0x4c
  76136. 801f000: e00c b.n 801f01c <tcp_write+0x4bc>
  76137. } else {
  76138. /* Attach the segment to the end of the queued segments */
  76139. LWIP_ASSERT("prev_seg != NULL", prev_seg != NULL);
  76140. 801f002: 6d3b ldr r3, [r7, #80] @ 0x50
  76141. 801f004: 2b00 cmp r3, #0
  76142. 801f006: d106 bne.n 801f016 <tcp_write+0x4b6>
  76143. 801f008: 4b17 ldr r3, [pc, #92] @ (801f068 <tcp_write+0x508>)
  76144. 801f00a: f240 22ab movw r2, #683 @ 0x2ab
  76145. 801f00e: 491b ldr r1, [pc, #108] @ (801f07c <tcp_write+0x51c>)
  76146. 801f010: 4817 ldr r0, [pc, #92] @ (801f070 <tcp_write+0x510>)
  76147. 801f012: f00a fa7b bl 802950c <iprintf>
  76148. prev_seg->next = seg;
  76149. 801f016: 6d3b ldr r3, [r7, #80] @ 0x50
  76150. 801f018: 6d7a ldr r2, [r7, #84] @ 0x54
  76151. 801f01a: 601a str r2, [r3, #0]
  76152. }
  76153. /* remember last segment of to-be-queued data for next iteration */
  76154. prev_seg = seg;
  76155. 801f01c: 6d7b ldr r3, [r7, #84] @ 0x54
  76156. 801f01e: 653b str r3, [r7, #80] @ 0x50
  76157. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_TRACE, ("tcp_write: queueing %"U32_F":%"U32_F"\n",
  76158. lwip_ntohl(seg->tcphdr->seqno),
  76159. lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg)));
  76160. pos += seglen;
  76161. 801f020: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  76162. 801f024: 8bbb ldrh r3, [r7, #28]
  76163. 801f026: 4413 add r3, r2
  76164. 801f028: f8a7 304a strh.w r3, [r7, #74] @ 0x4a
  76165. while (pos < len) {
  76166. 801f02c: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  76167. 801f030: 88fb ldrh r3, [r7, #6]
  76168. 801f032: 429a cmp r2, r3
  76169. 801f034: f4ff af3a bcc.w 801eeac <tcp_write+0x34c>
  76170. /*
  76171. * All three segmentation phases were successful. We can commit the
  76172. * transaction.
  76173. */
  76174. #if TCP_OVERSIZE_DBGCHECK
  76175. if ((last_unsent != NULL) && (oversize_add != 0)) {
  76176. 801f038: 6c3b ldr r3, [r7, #64] @ 0x40
  76177. 801f03a: 2b00 cmp r3, #0
  76178. 801f03c: d00b beq.n 801f056 <tcp_write+0x4f6>
  76179. 801f03e: f8b7 305a ldrh.w r3, [r7, #90] @ 0x5a
  76180. 801f042: 2b00 cmp r3, #0
  76181. 801f044: d007 beq.n 801f056 <tcp_write+0x4f6>
  76182. last_unsent->oversize_left += oversize_add;
  76183. 801f046: 6c3b ldr r3, [r7, #64] @ 0x40
  76184. 801f048: 895a ldrh r2, [r3, #10]
  76185. 801f04a: f8b7 305a ldrh.w r3, [r7, #90] @ 0x5a
  76186. 801f04e: 4413 add r3, r2
  76187. 801f050: b29a uxth r2, r3
  76188. 801f052: 6c3b ldr r3, [r7, #64] @ 0x40
  76189. 801f054: 815a strh r2, [r3, #10]
  76190. /*
  76191. * Phase 1: If data has been added to the preallocated tail of
  76192. * last_unsent, we update the length fields of the pbuf chain.
  76193. */
  76194. #if TCP_OVERSIZE
  76195. if (oversize_used > 0) {
  76196. 801f056: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  76197. 801f05a: 2b00 cmp r3, #0
  76198. 801f05c: d052 beq.n 801f104 <tcp_write+0x5a4>
  76199. struct pbuf *p;
  76200. /* Bump tot_len of whole chain, len of tail */
  76201. for (p = last_unsent->p; p; p = p->next) {
  76202. 801f05e: 6c3b ldr r3, [r7, #64] @ 0x40
  76203. 801f060: 685b ldr r3, [r3, #4]
  76204. 801f062: 633b str r3, [r7, #48] @ 0x30
  76205. 801f064: e02e b.n 801f0c4 <tcp_write+0x564>
  76206. 801f066: bf00 nop
  76207. 801f068: 0802ed24 .word 0x0802ed24
  76208. 801f06c: 0802efc4 .word 0x0802efc4
  76209. 801f070: 0802ed78 .word 0x0802ed78
  76210. 801f074: 0802eff4 .word 0x0802eff4
  76211. 801f078: 0802f034 .word 0x0802f034
  76212. 801f07c: 0802f044 .word 0x0802f044
  76213. p->tot_len += oversize_used;
  76214. 801f080: 6b3b ldr r3, [r7, #48] @ 0x30
  76215. 801f082: 891a ldrh r2, [r3, #8]
  76216. 801f084: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  76217. 801f088: 4413 add r3, r2
  76218. 801f08a: b29a uxth r2, r3
  76219. 801f08c: 6b3b ldr r3, [r7, #48] @ 0x30
  76220. 801f08e: 811a strh r2, [r3, #8]
  76221. if (p->next == NULL) {
  76222. 801f090: 6b3b ldr r3, [r7, #48] @ 0x30
  76223. 801f092: 681b ldr r3, [r3, #0]
  76224. 801f094: 2b00 cmp r3, #0
  76225. 801f096: d112 bne.n 801f0be <tcp_write+0x55e>
  76226. TCP_DATA_COPY((char *)p->payload + p->len, arg, oversize_used, last_unsent);
  76227. 801f098: 6b3b ldr r3, [r7, #48] @ 0x30
  76228. 801f09a: 685b ldr r3, [r3, #4]
  76229. 801f09c: 6b3a ldr r2, [r7, #48] @ 0x30
  76230. 801f09e: 8952 ldrh r2, [r2, #10]
  76231. 801f0a0: 4413 add r3, r2
  76232. 801f0a2: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  76233. 801f0a6: 68b9 ldr r1, [r7, #8]
  76234. 801f0a8: 4618 mov r0, r3
  76235. 801f0aa: f00a fcb8 bl 8029a1e <memcpy>
  76236. p->len += oversize_used;
  76237. 801f0ae: 6b3b ldr r3, [r7, #48] @ 0x30
  76238. 801f0b0: 895a ldrh r2, [r3, #10]
  76239. 801f0b2: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  76240. 801f0b6: 4413 add r3, r2
  76241. 801f0b8: b29a uxth r2, r3
  76242. 801f0ba: 6b3b ldr r3, [r7, #48] @ 0x30
  76243. 801f0bc: 815a strh r2, [r3, #10]
  76244. for (p = last_unsent->p; p; p = p->next) {
  76245. 801f0be: 6b3b ldr r3, [r7, #48] @ 0x30
  76246. 801f0c0: 681b ldr r3, [r3, #0]
  76247. 801f0c2: 633b str r3, [r7, #48] @ 0x30
  76248. 801f0c4: 6b3b ldr r3, [r7, #48] @ 0x30
  76249. 801f0c6: 2b00 cmp r3, #0
  76250. 801f0c8: d1da bne.n 801f080 <tcp_write+0x520>
  76251. }
  76252. }
  76253. last_unsent->len += oversize_used;
  76254. 801f0ca: 6c3b ldr r3, [r7, #64] @ 0x40
  76255. 801f0cc: 891a ldrh r2, [r3, #8]
  76256. 801f0ce: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  76257. 801f0d2: 4413 add r3, r2
  76258. 801f0d4: b29a uxth r2, r3
  76259. 801f0d6: 6c3b ldr r3, [r7, #64] @ 0x40
  76260. 801f0d8: 811a strh r2, [r3, #8]
  76261. #if TCP_OVERSIZE_DBGCHECK
  76262. LWIP_ASSERT("last_unsent->oversize_left >= oversize_used",
  76263. 801f0da: 6c3b ldr r3, [r7, #64] @ 0x40
  76264. 801f0dc: 895b ldrh r3, [r3, #10]
  76265. 801f0de: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  76266. 801f0e2: 429a cmp r2, r3
  76267. 801f0e4: d906 bls.n 801f0f4 <tcp_write+0x594>
  76268. 801f0e6: 4b78 ldr r3, [pc, #480] @ (801f2c8 <tcp_write+0x768>)
  76269. 801f0e8: f240 22d3 movw r2, #723 @ 0x2d3
  76270. 801f0ec: 4977 ldr r1, [pc, #476] @ (801f2cc <tcp_write+0x76c>)
  76271. 801f0ee: 4878 ldr r0, [pc, #480] @ (801f2d0 <tcp_write+0x770>)
  76272. 801f0f0: f00a fa0c bl 802950c <iprintf>
  76273. last_unsent->oversize_left >= oversize_used);
  76274. last_unsent->oversize_left -= oversize_used;
  76275. 801f0f4: 6c3b ldr r3, [r7, #64] @ 0x40
  76276. 801f0f6: 895a ldrh r2, [r3, #10]
  76277. 801f0f8: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  76278. 801f0fc: 1ad3 subs r3, r2, r3
  76279. 801f0fe: b29a uxth r2, r3
  76280. 801f100: 6c3b ldr r3, [r7, #64] @ 0x40
  76281. 801f102: 815a strh r2, [r3, #10]
  76282. #endif /* TCP_OVERSIZE_DBGCHECK */
  76283. }
  76284. pcb->unsent_oversize = oversize;
  76285. 801f104: 8afa ldrh r2, [r7, #22]
  76286. 801f106: 68fb ldr r3, [r7, #12]
  76287. 801f108: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  76288. /*
  76289. * Phase 2: concat_p can be concatenated onto last_unsent->p, unless we
  76290. * determined that the last ROM pbuf can be extended to include the new data.
  76291. */
  76292. if (concat_p != NULL) {
  76293. 801f10c: 6bfb ldr r3, [r7, #60] @ 0x3c
  76294. 801f10e: 2b00 cmp r3, #0
  76295. 801f110: d018 beq.n 801f144 <tcp_write+0x5e4>
  76296. LWIP_ASSERT("tcp_write: cannot concatenate when pcb->unsent is empty",
  76297. 801f112: 6c3b ldr r3, [r7, #64] @ 0x40
  76298. 801f114: 2b00 cmp r3, #0
  76299. 801f116: d106 bne.n 801f126 <tcp_write+0x5c6>
  76300. 801f118: 4b6b ldr r3, [pc, #428] @ (801f2c8 <tcp_write+0x768>)
  76301. 801f11a: f44f 7238 mov.w r2, #736 @ 0x2e0
  76302. 801f11e: 496d ldr r1, [pc, #436] @ (801f2d4 <tcp_write+0x774>)
  76303. 801f120: 486b ldr r0, [pc, #428] @ (801f2d0 <tcp_write+0x770>)
  76304. 801f122: f00a f9f3 bl 802950c <iprintf>
  76305. (last_unsent != NULL));
  76306. pbuf_cat(last_unsent->p, concat_p);
  76307. 801f126: 6c3b ldr r3, [r7, #64] @ 0x40
  76308. 801f128: 685b ldr r3, [r3, #4]
  76309. 801f12a: 6bf9 ldr r1, [r7, #60] @ 0x3c
  76310. 801f12c: 4618 mov r0, r3
  76311. 801f12e: f7fb f843 bl 801a1b8 <pbuf_cat>
  76312. last_unsent->len += concat_p->tot_len;
  76313. 801f132: 6c3b ldr r3, [r7, #64] @ 0x40
  76314. 801f134: 891a ldrh r2, [r3, #8]
  76315. 801f136: 6bfb ldr r3, [r7, #60] @ 0x3c
  76316. 801f138: 891b ldrh r3, [r3, #8]
  76317. 801f13a: 4413 add r3, r2
  76318. 801f13c: b29a uxth r2, r3
  76319. 801f13e: 6c3b ldr r3, [r7, #64] @ 0x40
  76320. 801f140: 811a strh r2, [r3, #8]
  76321. 801f142: e03c b.n 801f1be <tcp_write+0x65e>
  76322. } else if (extendlen > 0) {
  76323. 801f144: f8b7 305e ldrh.w r3, [r7, #94] @ 0x5e
  76324. 801f148: 2b00 cmp r3, #0
  76325. 801f14a: d038 beq.n 801f1be <tcp_write+0x65e>
  76326. struct pbuf *p;
  76327. LWIP_ASSERT("tcp_write: extension of reference requires reference",
  76328. 801f14c: 6c3b ldr r3, [r7, #64] @ 0x40
  76329. 801f14e: 2b00 cmp r3, #0
  76330. 801f150: d003 beq.n 801f15a <tcp_write+0x5fa>
  76331. 801f152: 6c3b ldr r3, [r7, #64] @ 0x40
  76332. 801f154: 685b ldr r3, [r3, #4]
  76333. 801f156: 2b00 cmp r3, #0
  76334. 801f158: d106 bne.n 801f168 <tcp_write+0x608>
  76335. 801f15a: 4b5b ldr r3, [pc, #364] @ (801f2c8 <tcp_write+0x768>)
  76336. 801f15c: f240 22e6 movw r2, #742 @ 0x2e6
  76337. 801f160: 495d ldr r1, [pc, #372] @ (801f2d8 <tcp_write+0x778>)
  76338. 801f162: 485b ldr r0, [pc, #364] @ (801f2d0 <tcp_write+0x770>)
  76339. 801f164: f00a f9d2 bl 802950c <iprintf>
  76340. last_unsent != NULL && last_unsent->p != NULL);
  76341. for (p = last_unsent->p; p->next != NULL; p = p->next) {
  76342. 801f168: 6c3b ldr r3, [r7, #64] @ 0x40
  76343. 801f16a: 685b ldr r3, [r3, #4]
  76344. 801f16c: 62fb str r3, [r7, #44] @ 0x2c
  76345. 801f16e: e00a b.n 801f186 <tcp_write+0x626>
  76346. p->tot_len += extendlen;
  76347. 801f170: 6afb ldr r3, [r7, #44] @ 0x2c
  76348. 801f172: 891a ldrh r2, [r3, #8]
  76349. 801f174: f8b7 305e ldrh.w r3, [r7, #94] @ 0x5e
  76350. 801f178: 4413 add r3, r2
  76351. 801f17a: b29a uxth r2, r3
  76352. 801f17c: 6afb ldr r3, [r7, #44] @ 0x2c
  76353. 801f17e: 811a strh r2, [r3, #8]
  76354. for (p = last_unsent->p; p->next != NULL; p = p->next) {
  76355. 801f180: 6afb ldr r3, [r7, #44] @ 0x2c
  76356. 801f182: 681b ldr r3, [r3, #0]
  76357. 801f184: 62fb str r3, [r7, #44] @ 0x2c
  76358. 801f186: 6afb ldr r3, [r7, #44] @ 0x2c
  76359. 801f188: 681b ldr r3, [r3, #0]
  76360. 801f18a: 2b00 cmp r3, #0
  76361. 801f18c: d1f0 bne.n 801f170 <tcp_write+0x610>
  76362. }
  76363. p->tot_len += extendlen;
  76364. 801f18e: 6afb ldr r3, [r7, #44] @ 0x2c
  76365. 801f190: 891a ldrh r2, [r3, #8]
  76366. 801f192: f8b7 305e ldrh.w r3, [r7, #94] @ 0x5e
  76367. 801f196: 4413 add r3, r2
  76368. 801f198: b29a uxth r2, r3
  76369. 801f19a: 6afb ldr r3, [r7, #44] @ 0x2c
  76370. 801f19c: 811a strh r2, [r3, #8]
  76371. p->len += extendlen;
  76372. 801f19e: 6afb ldr r3, [r7, #44] @ 0x2c
  76373. 801f1a0: 895a ldrh r2, [r3, #10]
  76374. 801f1a2: f8b7 305e ldrh.w r3, [r7, #94] @ 0x5e
  76375. 801f1a6: 4413 add r3, r2
  76376. 801f1a8: b29a uxth r2, r3
  76377. 801f1aa: 6afb ldr r3, [r7, #44] @ 0x2c
  76378. 801f1ac: 815a strh r2, [r3, #10]
  76379. last_unsent->len += extendlen;
  76380. 801f1ae: 6c3b ldr r3, [r7, #64] @ 0x40
  76381. 801f1b0: 891a ldrh r2, [r3, #8]
  76382. 801f1b2: f8b7 305e ldrh.w r3, [r7, #94] @ 0x5e
  76383. 801f1b6: 4413 add r3, r2
  76384. 801f1b8: b29a uxth r2, r3
  76385. 801f1ba: 6c3b ldr r3, [r7, #64] @ 0x40
  76386. 801f1bc: 811a strh r2, [r3, #8]
  76387. /*
  76388. * Phase 3: Append queue to pcb->unsent. Queue may be NULL, but that
  76389. * is harmless
  76390. */
  76391. if (last_unsent == NULL) {
  76392. 801f1be: 6c3b ldr r3, [r7, #64] @ 0x40
  76393. 801f1c0: 2b00 cmp r3, #0
  76394. 801f1c2: d103 bne.n 801f1cc <tcp_write+0x66c>
  76395. pcb->unsent = queue;
  76396. 801f1c4: 68fb ldr r3, [r7, #12]
  76397. 801f1c6: 6cfa ldr r2, [r7, #76] @ 0x4c
  76398. 801f1c8: 66da str r2, [r3, #108] @ 0x6c
  76399. 801f1ca: e002 b.n 801f1d2 <tcp_write+0x672>
  76400. } else {
  76401. last_unsent->next = queue;
  76402. 801f1cc: 6c3b ldr r3, [r7, #64] @ 0x40
  76403. 801f1ce: 6cfa ldr r2, [r7, #76] @ 0x4c
  76404. 801f1d0: 601a str r2, [r3, #0]
  76405. }
  76406. /*
  76407. * Finally update the pcb state.
  76408. */
  76409. pcb->snd_lbb += len;
  76410. 801f1d2: 68fb ldr r3, [r7, #12]
  76411. 801f1d4: 6dda ldr r2, [r3, #92] @ 0x5c
  76412. 801f1d6: 88fb ldrh r3, [r7, #6]
  76413. 801f1d8: 441a add r2, r3
  76414. 801f1da: 68fb ldr r3, [r7, #12]
  76415. 801f1dc: 65da str r2, [r3, #92] @ 0x5c
  76416. pcb->snd_buf -= len;
  76417. 801f1de: 68fb ldr r3, [r7, #12]
  76418. 801f1e0: f8b3 2064 ldrh.w r2, [r3, #100] @ 0x64
  76419. 801f1e4: 88fb ldrh r3, [r7, #6]
  76420. 801f1e6: 1ad3 subs r3, r2, r3
  76421. 801f1e8: b29a uxth r2, r3
  76422. 801f1ea: 68fb ldr r3, [r7, #12]
  76423. 801f1ec: f8a3 2064 strh.w r2, [r3, #100] @ 0x64
  76424. pcb->snd_queuelen = queuelen;
  76425. 801f1f0: 68fb ldr r3, [r7, #12]
  76426. 801f1f2: f8b7 2048 ldrh.w r2, [r7, #72] @ 0x48
  76427. 801f1f6: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  76428. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_write: %"S16_F" (after enqueued)\n",
  76429. pcb->snd_queuelen));
  76430. if (pcb->snd_queuelen != 0) {
  76431. 801f1fa: 68fb ldr r3, [r7, #12]
  76432. 801f1fc: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  76433. 801f200: 2b00 cmp r3, #0
  76434. 801f202: d00e beq.n 801f222 <tcp_write+0x6c2>
  76435. LWIP_ASSERT("tcp_write: valid queue length",
  76436. 801f204: 68fb ldr r3, [r7, #12]
  76437. 801f206: 6f1b ldr r3, [r3, #112] @ 0x70
  76438. 801f208: 2b00 cmp r3, #0
  76439. 801f20a: d10a bne.n 801f222 <tcp_write+0x6c2>
  76440. 801f20c: 68fb ldr r3, [r7, #12]
  76441. 801f20e: 6edb ldr r3, [r3, #108] @ 0x6c
  76442. 801f210: 2b00 cmp r3, #0
  76443. 801f212: d106 bne.n 801f222 <tcp_write+0x6c2>
  76444. 801f214: 4b2c ldr r3, [pc, #176] @ (801f2c8 <tcp_write+0x768>)
  76445. 801f216: f240 3212 movw r2, #786 @ 0x312
  76446. 801f21a: 4930 ldr r1, [pc, #192] @ (801f2dc <tcp_write+0x77c>)
  76447. 801f21c: 482c ldr r0, [pc, #176] @ (801f2d0 <tcp_write+0x770>)
  76448. 801f21e: f00a f975 bl 802950c <iprintf>
  76449. pcb->unacked != NULL || pcb->unsent != NULL);
  76450. }
  76451. /* Set the PSH flag in the last segment that we enqueued. */
  76452. if (seg != NULL && seg->tcphdr != NULL && ((apiflags & TCP_WRITE_FLAG_MORE) == 0)) {
  76453. 801f222: 6d7b ldr r3, [r7, #84] @ 0x54
  76454. 801f224: 2b00 cmp r3, #0
  76455. 801f226: d016 beq.n 801f256 <tcp_write+0x6f6>
  76456. 801f228: 6d7b ldr r3, [r7, #84] @ 0x54
  76457. 801f22a: 691b ldr r3, [r3, #16]
  76458. 801f22c: 2b00 cmp r3, #0
  76459. 801f22e: d012 beq.n 801f256 <tcp_write+0x6f6>
  76460. 801f230: 797b ldrb r3, [r7, #5]
  76461. 801f232: f003 0302 and.w r3, r3, #2
  76462. 801f236: 2b00 cmp r3, #0
  76463. 801f238: d10d bne.n 801f256 <tcp_write+0x6f6>
  76464. TCPH_SET_FLAG(seg->tcphdr, TCP_PSH);
  76465. 801f23a: 6d7b ldr r3, [r7, #84] @ 0x54
  76466. 801f23c: 691b ldr r3, [r3, #16]
  76467. 801f23e: 899b ldrh r3, [r3, #12]
  76468. 801f240: b29c uxth r4, r3
  76469. 801f242: 2008 movs r0, #8
  76470. 801f244: f7f9 fa08 bl 8018658 <lwip_htons>
  76471. 801f248: 4603 mov r3, r0
  76472. 801f24a: 461a mov r2, r3
  76473. 801f24c: 6d7b ldr r3, [r7, #84] @ 0x54
  76474. 801f24e: 691b ldr r3, [r3, #16]
  76475. 801f250: 4322 orrs r2, r4
  76476. 801f252: b292 uxth r2, r2
  76477. 801f254: 819a strh r2, [r3, #12]
  76478. }
  76479. return ERR_OK;
  76480. 801f256: 2300 movs r3, #0
  76481. 801f258: e031 b.n 801f2be <tcp_write+0x75e>
  76482. goto memerr;
  76483. 801f25a: bf00 nop
  76484. 801f25c: e006 b.n 801f26c <tcp_write+0x70c>
  76485. goto memerr;
  76486. 801f25e: bf00 nop
  76487. 801f260: e004 b.n 801f26c <tcp_write+0x70c>
  76488. goto memerr;
  76489. 801f262: bf00 nop
  76490. 801f264: e002 b.n 801f26c <tcp_write+0x70c>
  76491. goto memerr;
  76492. 801f266: bf00 nop
  76493. 801f268: e000 b.n 801f26c <tcp_write+0x70c>
  76494. goto memerr;
  76495. 801f26a: bf00 nop
  76496. memerr:
  76497. tcp_set_flags(pcb, TF_NAGLEMEMERR);
  76498. 801f26c: 68fb ldr r3, [r7, #12]
  76499. 801f26e: 8b5b ldrh r3, [r3, #26]
  76500. 801f270: f043 0380 orr.w r3, r3, #128 @ 0x80
  76501. 801f274: b29a uxth r2, r3
  76502. 801f276: 68fb ldr r3, [r7, #12]
  76503. 801f278: 835a strh r2, [r3, #26]
  76504. TCP_STATS_INC(tcp.memerr);
  76505. if (concat_p != NULL) {
  76506. 801f27a: 6bfb ldr r3, [r7, #60] @ 0x3c
  76507. 801f27c: 2b00 cmp r3, #0
  76508. 801f27e: d002 beq.n 801f286 <tcp_write+0x726>
  76509. pbuf_free(concat_p);
  76510. 801f280: 6bf8 ldr r0, [r7, #60] @ 0x3c
  76511. 801f282: f7fa fecb bl 801a01c <pbuf_free>
  76512. }
  76513. if (queue != NULL) {
  76514. 801f286: 6cfb ldr r3, [r7, #76] @ 0x4c
  76515. 801f288: 2b00 cmp r3, #0
  76516. 801f28a: d002 beq.n 801f292 <tcp_write+0x732>
  76517. tcp_segs_free(queue);
  76518. 801f28c: 6cf8 ldr r0, [r7, #76] @ 0x4c
  76519. 801f28e: f7fc fb09 bl 801b8a4 <tcp_segs_free>
  76520. }
  76521. if (pcb->snd_queuelen != 0) {
  76522. 801f292: 68fb ldr r3, [r7, #12]
  76523. 801f294: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  76524. 801f298: 2b00 cmp r3, #0
  76525. 801f29a: d00e beq.n 801f2ba <tcp_write+0x75a>
  76526. LWIP_ASSERT("tcp_write: valid queue length", pcb->unacked != NULL ||
  76527. 801f29c: 68fb ldr r3, [r7, #12]
  76528. 801f29e: 6f1b ldr r3, [r3, #112] @ 0x70
  76529. 801f2a0: 2b00 cmp r3, #0
  76530. 801f2a2: d10a bne.n 801f2ba <tcp_write+0x75a>
  76531. 801f2a4: 68fb ldr r3, [r7, #12]
  76532. 801f2a6: 6edb ldr r3, [r3, #108] @ 0x6c
  76533. 801f2a8: 2b00 cmp r3, #0
  76534. 801f2aa: d106 bne.n 801f2ba <tcp_write+0x75a>
  76535. 801f2ac: 4b06 ldr r3, [pc, #24] @ (801f2c8 <tcp_write+0x768>)
  76536. 801f2ae: f240 3227 movw r2, #807 @ 0x327
  76537. 801f2b2: 490a ldr r1, [pc, #40] @ (801f2dc <tcp_write+0x77c>)
  76538. 801f2b4: 4806 ldr r0, [pc, #24] @ (801f2d0 <tcp_write+0x770>)
  76539. 801f2b6: f00a f929 bl 802950c <iprintf>
  76540. pcb->unsent != NULL);
  76541. }
  76542. LWIP_DEBUGF(TCP_QLEN_DEBUG | LWIP_DBG_STATE, ("tcp_write: %"S16_F" (with mem err)\n", pcb->snd_queuelen));
  76543. return ERR_MEM;
  76544. 801f2ba: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  76545. }
  76546. 801f2be: 4618 mov r0, r3
  76547. 801f2c0: 3764 adds r7, #100 @ 0x64
  76548. 801f2c2: 46bd mov sp, r7
  76549. 801f2c4: bd90 pop {r4, r7, pc}
  76550. 801f2c6: bf00 nop
  76551. 801f2c8: 0802ed24 .word 0x0802ed24
  76552. 801f2cc: 0802f058 .word 0x0802f058
  76553. 801f2d0: 0802ed78 .word 0x0802ed78
  76554. 801f2d4: 0802f084 .word 0x0802f084
  76555. 801f2d8: 0802f0bc .word 0x0802f0bc
  76556. 801f2dc: 0802f0f4 .word 0x0802f0f4
  76557. 0801f2e0 <tcp_split_unsent_seg>:
  76558. * @param pcb the tcp_pcb for which to split the unsent head
  76559. * @param split the amount of payload to remain in the head
  76560. */
  76561. err_t
  76562. tcp_split_unsent_seg(struct tcp_pcb *pcb, u16_t split)
  76563. {
  76564. 801f2e0: b590 push {r4, r7, lr}
  76565. 801f2e2: b08b sub sp, #44 @ 0x2c
  76566. 801f2e4: af02 add r7, sp, #8
  76567. 801f2e6: 6078 str r0, [r7, #4]
  76568. 801f2e8: 460b mov r3, r1
  76569. 801f2ea: 807b strh r3, [r7, #2]
  76570. struct tcp_seg *seg = NULL, *useg = NULL;
  76571. 801f2ec: 2300 movs r3, #0
  76572. 801f2ee: 61bb str r3, [r7, #24]
  76573. 801f2f0: 2300 movs r3, #0
  76574. 801f2f2: 617b str r3, [r7, #20]
  76575. struct pbuf *p = NULL;
  76576. 801f2f4: 2300 movs r3, #0
  76577. 801f2f6: 613b str r3, [r7, #16]
  76578. u16_t chksum = 0;
  76579. u8_t chksum_swapped = 0;
  76580. struct pbuf *q;
  76581. #endif /* TCP_CHECKSUM_ON_COPY */
  76582. LWIP_ASSERT("tcp_split_unsent_seg: invalid pcb", pcb != NULL);
  76583. 801f2f8: 687b ldr r3, [r7, #4]
  76584. 801f2fa: 2b00 cmp r3, #0
  76585. 801f2fc: d106 bne.n 801f30c <tcp_split_unsent_seg+0x2c>
  76586. 801f2fe: 4b97 ldr r3, [pc, #604] @ (801f55c <tcp_split_unsent_seg+0x27c>)
  76587. 801f300: f240 324b movw r2, #843 @ 0x34b
  76588. 801f304: 4996 ldr r1, [pc, #600] @ (801f560 <tcp_split_unsent_seg+0x280>)
  76589. 801f306: 4897 ldr r0, [pc, #604] @ (801f564 <tcp_split_unsent_seg+0x284>)
  76590. 801f308: f00a f900 bl 802950c <iprintf>
  76591. useg = pcb->unsent;
  76592. 801f30c: 687b ldr r3, [r7, #4]
  76593. 801f30e: 6edb ldr r3, [r3, #108] @ 0x6c
  76594. 801f310: 617b str r3, [r7, #20]
  76595. if (useg == NULL) {
  76596. 801f312: 697b ldr r3, [r7, #20]
  76597. 801f314: 2b00 cmp r3, #0
  76598. 801f316: d102 bne.n 801f31e <tcp_split_unsent_seg+0x3e>
  76599. return ERR_MEM;
  76600. 801f318: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  76601. 801f31c: e119 b.n 801f552 <tcp_split_unsent_seg+0x272>
  76602. }
  76603. if (split == 0) {
  76604. 801f31e: 887b ldrh r3, [r7, #2]
  76605. 801f320: 2b00 cmp r3, #0
  76606. 801f322: d109 bne.n 801f338 <tcp_split_unsent_seg+0x58>
  76607. LWIP_ASSERT("Can't split segment into length 0", 0);
  76608. 801f324: 4b8d ldr r3, [pc, #564] @ (801f55c <tcp_split_unsent_seg+0x27c>)
  76609. 801f326: f240 3253 movw r2, #851 @ 0x353
  76610. 801f32a: 498f ldr r1, [pc, #572] @ (801f568 <tcp_split_unsent_seg+0x288>)
  76611. 801f32c: 488d ldr r0, [pc, #564] @ (801f564 <tcp_split_unsent_seg+0x284>)
  76612. 801f32e: f00a f8ed bl 802950c <iprintf>
  76613. return ERR_VAL;
  76614. 801f332: f06f 0305 mvn.w r3, #5
  76615. 801f336: e10c b.n 801f552 <tcp_split_unsent_seg+0x272>
  76616. }
  76617. if (useg->len <= split) {
  76618. 801f338: 697b ldr r3, [r7, #20]
  76619. 801f33a: 891b ldrh r3, [r3, #8]
  76620. 801f33c: 887a ldrh r2, [r7, #2]
  76621. 801f33e: 429a cmp r2, r3
  76622. 801f340: d301 bcc.n 801f346 <tcp_split_unsent_seg+0x66>
  76623. return ERR_OK;
  76624. 801f342: 2300 movs r3, #0
  76625. 801f344: e105 b.n 801f552 <tcp_split_unsent_seg+0x272>
  76626. }
  76627. LWIP_ASSERT("split <= mss", split <= pcb->mss);
  76628. 801f346: 687b ldr r3, [r7, #4]
  76629. 801f348: 8e5b ldrh r3, [r3, #50] @ 0x32
  76630. 801f34a: 887a ldrh r2, [r7, #2]
  76631. 801f34c: 429a cmp r2, r3
  76632. 801f34e: d906 bls.n 801f35e <tcp_split_unsent_seg+0x7e>
  76633. 801f350: 4b82 ldr r3, [pc, #520] @ (801f55c <tcp_split_unsent_seg+0x27c>)
  76634. 801f352: f240 325b movw r2, #859 @ 0x35b
  76635. 801f356: 4985 ldr r1, [pc, #532] @ (801f56c <tcp_split_unsent_seg+0x28c>)
  76636. 801f358: 4882 ldr r0, [pc, #520] @ (801f564 <tcp_split_unsent_seg+0x284>)
  76637. 801f35a: f00a f8d7 bl 802950c <iprintf>
  76638. LWIP_ASSERT("useg->len > 0", useg->len > 0);
  76639. 801f35e: 697b ldr r3, [r7, #20]
  76640. 801f360: 891b ldrh r3, [r3, #8]
  76641. 801f362: 2b00 cmp r3, #0
  76642. 801f364: d106 bne.n 801f374 <tcp_split_unsent_seg+0x94>
  76643. 801f366: 4b7d ldr r3, [pc, #500] @ (801f55c <tcp_split_unsent_seg+0x27c>)
  76644. 801f368: f44f 7257 mov.w r2, #860 @ 0x35c
  76645. 801f36c: 4980 ldr r1, [pc, #512] @ (801f570 <tcp_split_unsent_seg+0x290>)
  76646. 801f36e: 487d ldr r0, [pc, #500] @ (801f564 <tcp_split_unsent_seg+0x284>)
  76647. 801f370: f00a f8cc bl 802950c <iprintf>
  76648. * to split this packet so we may actually exceed the max value by
  76649. * one!
  76650. */
  76651. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_enqueue: split_unsent_seg: %u\n", (unsigned int)pcb->snd_queuelen));
  76652. optflags = useg->flags;
  76653. 801f374: 697b ldr r3, [r7, #20]
  76654. 801f376: 7b1b ldrb r3, [r3, #12]
  76655. 801f378: 73fb strb r3, [r7, #15]
  76656. #if TCP_CHECKSUM_ON_COPY
  76657. /* Remove since checksum is not stored until after tcp_create_segment() */
  76658. optflags &= ~TF_SEG_DATA_CHECKSUMMED;
  76659. #endif /* TCP_CHECKSUM_ON_COPY */
  76660. optlen = LWIP_TCP_OPT_LENGTH(optflags);
  76661. 801f37a: 7bfb ldrb r3, [r7, #15]
  76662. 801f37c: 009b lsls r3, r3, #2
  76663. 801f37e: b2db uxtb r3, r3
  76664. 801f380: f003 0304 and.w r3, r3, #4
  76665. 801f384: 73bb strb r3, [r7, #14]
  76666. remainder = useg->len - split;
  76667. 801f386: 697b ldr r3, [r7, #20]
  76668. 801f388: 891a ldrh r2, [r3, #8]
  76669. 801f38a: 887b ldrh r3, [r7, #2]
  76670. 801f38c: 1ad3 subs r3, r2, r3
  76671. 801f38e: 81bb strh r3, [r7, #12]
  76672. /* Create new pbuf for the remainder of the split */
  76673. p = pbuf_alloc(PBUF_TRANSPORT, remainder + optlen, PBUF_RAM);
  76674. 801f390: 7bbb ldrb r3, [r7, #14]
  76675. 801f392: b29a uxth r2, r3
  76676. 801f394: 89bb ldrh r3, [r7, #12]
  76677. 801f396: 4413 add r3, r2
  76678. 801f398: b29b uxth r3, r3
  76679. 801f39a: f44f 7220 mov.w r2, #640 @ 0x280
  76680. 801f39e: 4619 mov r1, r3
  76681. 801f3a0: 2036 movs r0, #54 @ 0x36
  76682. 801f3a2: f7fa fb25 bl 80199f0 <pbuf_alloc>
  76683. 801f3a6: 6138 str r0, [r7, #16]
  76684. if (p == NULL) {
  76685. 801f3a8: 693b ldr r3, [r7, #16]
  76686. 801f3aa: 2b00 cmp r3, #0
  76687. 801f3ac: f000 80ba beq.w 801f524 <tcp_split_unsent_seg+0x244>
  76688. ("tcp_split_unsent_seg: could not allocate memory for pbuf remainder %u\n", remainder));
  76689. goto memerr;
  76690. }
  76691. /* Offset into the original pbuf is past TCP/IP headers, options, and split amount */
  76692. offset = useg->p->tot_len - useg->len + split;
  76693. 801f3b0: 697b ldr r3, [r7, #20]
  76694. 801f3b2: 685b ldr r3, [r3, #4]
  76695. 801f3b4: 891a ldrh r2, [r3, #8]
  76696. 801f3b6: 697b ldr r3, [r7, #20]
  76697. 801f3b8: 891b ldrh r3, [r3, #8]
  76698. 801f3ba: 1ad3 subs r3, r2, r3
  76699. 801f3bc: b29a uxth r2, r3
  76700. 801f3be: 887b ldrh r3, [r7, #2]
  76701. 801f3c0: 4413 add r3, r2
  76702. 801f3c2: 817b strh r3, [r7, #10]
  76703. /* Copy remainder into new pbuf, headers and options will not be filled out */
  76704. if (pbuf_copy_partial(useg->p, (u8_t *)p->payload + optlen, remainder, offset ) != remainder) {
  76705. 801f3c4: 697b ldr r3, [r7, #20]
  76706. 801f3c6: 6858 ldr r0, [r3, #4]
  76707. 801f3c8: 693b ldr r3, [r7, #16]
  76708. 801f3ca: 685a ldr r2, [r3, #4]
  76709. 801f3cc: 7bbb ldrb r3, [r7, #14]
  76710. 801f3ce: 18d1 adds r1, r2, r3
  76711. 801f3d0: 897b ldrh r3, [r7, #10]
  76712. 801f3d2: 89ba ldrh r2, [r7, #12]
  76713. 801f3d4: f7fb f828 bl 801a428 <pbuf_copy_partial>
  76714. 801f3d8: 4603 mov r3, r0
  76715. 801f3da: 461a mov r2, r3
  76716. 801f3dc: 89bb ldrh r3, [r7, #12]
  76717. 801f3de: 4293 cmp r3, r2
  76718. 801f3e0: f040 80a2 bne.w 801f528 <tcp_split_unsent_seg+0x248>
  76719. #endif /* TCP_CHECKSUM_ON_COPY */
  76720. /* Options are created when calling tcp_output() */
  76721. /* Migrate flags from original segment */
  76722. split_flags = TCPH_FLAGS(useg->tcphdr);
  76723. 801f3e4: 697b ldr r3, [r7, #20]
  76724. 801f3e6: 691b ldr r3, [r3, #16]
  76725. 801f3e8: 899b ldrh r3, [r3, #12]
  76726. 801f3ea: b29b uxth r3, r3
  76727. 801f3ec: 4618 mov r0, r3
  76728. 801f3ee: f7f9 f933 bl 8018658 <lwip_htons>
  76729. 801f3f2: 4603 mov r3, r0
  76730. 801f3f4: b2db uxtb r3, r3
  76731. 801f3f6: f003 033f and.w r3, r3, #63 @ 0x3f
  76732. 801f3fa: 77fb strb r3, [r7, #31]
  76733. remainder_flags = 0; /* ACK added in tcp_output() */
  76734. 801f3fc: 2300 movs r3, #0
  76735. 801f3fe: 77bb strb r3, [r7, #30]
  76736. if (split_flags & TCP_PSH) {
  76737. 801f400: 7ffb ldrb r3, [r7, #31]
  76738. 801f402: f003 0308 and.w r3, r3, #8
  76739. 801f406: 2b00 cmp r3, #0
  76740. 801f408: d007 beq.n 801f41a <tcp_split_unsent_seg+0x13a>
  76741. split_flags &= ~TCP_PSH;
  76742. 801f40a: 7ffb ldrb r3, [r7, #31]
  76743. 801f40c: f023 0308 bic.w r3, r3, #8
  76744. 801f410: 77fb strb r3, [r7, #31]
  76745. remainder_flags |= TCP_PSH;
  76746. 801f412: 7fbb ldrb r3, [r7, #30]
  76747. 801f414: f043 0308 orr.w r3, r3, #8
  76748. 801f418: 77bb strb r3, [r7, #30]
  76749. }
  76750. if (split_flags & TCP_FIN) {
  76751. 801f41a: 7ffb ldrb r3, [r7, #31]
  76752. 801f41c: f003 0301 and.w r3, r3, #1
  76753. 801f420: 2b00 cmp r3, #0
  76754. 801f422: d007 beq.n 801f434 <tcp_split_unsent_seg+0x154>
  76755. split_flags &= ~TCP_FIN;
  76756. 801f424: 7ffb ldrb r3, [r7, #31]
  76757. 801f426: f023 0301 bic.w r3, r3, #1
  76758. 801f42a: 77fb strb r3, [r7, #31]
  76759. remainder_flags |= TCP_FIN;
  76760. 801f42c: 7fbb ldrb r3, [r7, #30]
  76761. 801f42e: f043 0301 orr.w r3, r3, #1
  76762. 801f432: 77bb strb r3, [r7, #30]
  76763. }
  76764. /* SYN should be left on split, RST should not be present with data */
  76765. seg = tcp_create_segment(pcb, p, remainder_flags, lwip_ntohl(useg->tcphdr->seqno) + split, optflags);
  76766. 801f434: 697b ldr r3, [r7, #20]
  76767. 801f436: 691b ldr r3, [r3, #16]
  76768. 801f438: 685b ldr r3, [r3, #4]
  76769. 801f43a: 4618 mov r0, r3
  76770. 801f43c: f7f9 f921 bl 8018682 <lwip_htonl>
  76771. 801f440: 4602 mov r2, r0
  76772. 801f442: 887b ldrh r3, [r7, #2]
  76773. 801f444: 18d1 adds r1, r2, r3
  76774. 801f446: 7fba ldrb r2, [r7, #30]
  76775. 801f448: 7bfb ldrb r3, [r7, #15]
  76776. 801f44a: 9300 str r3, [sp, #0]
  76777. 801f44c: 460b mov r3, r1
  76778. 801f44e: 6939 ldr r1, [r7, #16]
  76779. 801f450: 6878 ldr r0, [r7, #4]
  76780. 801f452: f7ff f9f1 bl 801e838 <tcp_create_segment>
  76781. 801f456: 61b8 str r0, [r7, #24]
  76782. if (seg == NULL) {
  76783. 801f458: 69bb ldr r3, [r7, #24]
  76784. 801f45a: 2b00 cmp r3, #0
  76785. 801f45c: d066 beq.n 801f52c <tcp_split_unsent_seg+0x24c>
  76786. seg->chksum_swapped = chksum_swapped;
  76787. seg->flags |= TF_SEG_DATA_CHECKSUMMED;
  76788. #endif /* TCP_CHECKSUM_ON_COPY */
  76789. /* Remove this segment from the queue since trimming it may free pbufs */
  76790. pcb->snd_queuelen -= pbuf_clen(useg->p);
  76791. 801f45e: 697b ldr r3, [r7, #20]
  76792. 801f460: 685b ldr r3, [r3, #4]
  76793. 801f462: 4618 mov r0, r3
  76794. 801f464: f7fa fe68 bl 801a138 <pbuf_clen>
  76795. 801f468: 4603 mov r3, r0
  76796. 801f46a: 461a mov r2, r3
  76797. 801f46c: 687b ldr r3, [r7, #4]
  76798. 801f46e: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  76799. 801f472: 1a9b subs r3, r3, r2
  76800. 801f474: b29a uxth r2, r3
  76801. 801f476: 687b ldr r3, [r7, #4]
  76802. 801f478: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  76803. /* Trim the original pbuf into our split size. At this point our remainder segment must be setup
  76804. successfully because we are modifying the original segment */
  76805. pbuf_realloc(useg->p, useg->p->tot_len - remainder);
  76806. 801f47c: 697b ldr r3, [r7, #20]
  76807. 801f47e: 6858 ldr r0, [r3, #4]
  76808. 801f480: 697b ldr r3, [r7, #20]
  76809. 801f482: 685b ldr r3, [r3, #4]
  76810. 801f484: 891a ldrh r2, [r3, #8]
  76811. 801f486: 89bb ldrh r3, [r7, #12]
  76812. 801f488: 1ad3 subs r3, r2, r3
  76813. 801f48a: b29b uxth r3, r3
  76814. 801f48c: 4619 mov r1, r3
  76815. 801f48e: f7fa fc0f bl 8019cb0 <pbuf_realloc>
  76816. useg->len -= remainder;
  76817. 801f492: 697b ldr r3, [r7, #20]
  76818. 801f494: 891a ldrh r2, [r3, #8]
  76819. 801f496: 89bb ldrh r3, [r7, #12]
  76820. 801f498: 1ad3 subs r3, r2, r3
  76821. 801f49a: b29a uxth r2, r3
  76822. 801f49c: 697b ldr r3, [r7, #20]
  76823. 801f49e: 811a strh r2, [r3, #8]
  76824. TCPH_SET_FLAG(useg->tcphdr, split_flags);
  76825. 801f4a0: 697b ldr r3, [r7, #20]
  76826. 801f4a2: 691b ldr r3, [r3, #16]
  76827. 801f4a4: 899b ldrh r3, [r3, #12]
  76828. 801f4a6: b29c uxth r4, r3
  76829. 801f4a8: 7ffb ldrb r3, [r7, #31]
  76830. 801f4aa: b29b uxth r3, r3
  76831. 801f4ac: 4618 mov r0, r3
  76832. 801f4ae: f7f9 f8d3 bl 8018658 <lwip_htons>
  76833. 801f4b2: 4603 mov r3, r0
  76834. 801f4b4: 461a mov r2, r3
  76835. 801f4b6: 697b ldr r3, [r7, #20]
  76836. 801f4b8: 691b ldr r3, [r3, #16]
  76837. 801f4ba: 4322 orrs r2, r4
  76838. 801f4bc: b292 uxth r2, r2
  76839. 801f4be: 819a strh r2, [r3, #12]
  76840. #if TCP_OVERSIZE_DBGCHECK
  76841. /* By trimming, realloc may have actually shrunk the pbuf, so clear oversize_left */
  76842. useg->oversize_left = 0;
  76843. 801f4c0: 697b ldr r3, [r7, #20]
  76844. 801f4c2: 2200 movs r2, #0
  76845. 801f4c4: 815a strh r2, [r3, #10]
  76846. #endif /* TCP_OVERSIZE_DBGCHECK */
  76847. /* Add back to the queue with new trimmed pbuf */
  76848. pcb->snd_queuelen += pbuf_clen(useg->p);
  76849. 801f4c6: 697b ldr r3, [r7, #20]
  76850. 801f4c8: 685b ldr r3, [r3, #4]
  76851. 801f4ca: 4618 mov r0, r3
  76852. 801f4cc: f7fa fe34 bl 801a138 <pbuf_clen>
  76853. 801f4d0: 4603 mov r3, r0
  76854. 801f4d2: 461a mov r2, r3
  76855. 801f4d4: 687b ldr r3, [r7, #4]
  76856. 801f4d6: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  76857. 801f4da: 4413 add r3, r2
  76858. 801f4dc: b29a uxth r2, r3
  76859. 801f4de: 687b ldr r3, [r7, #4]
  76860. 801f4e0: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  76861. #endif /* TCP_CHECKSUM_ON_COPY */
  76862. /* Update number of segments on the queues. Note that length now may
  76863. * exceed TCP_SND_QUEUELEN! We don't have to touch pcb->snd_buf
  76864. * because the total amount of data is constant when packet is split */
  76865. pcb->snd_queuelen += pbuf_clen(seg->p);
  76866. 801f4e4: 69bb ldr r3, [r7, #24]
  76867. 801f4e6: 685b ldr r3, [r3, #4]
  76868. 801f4e8: 4618 mov r0, r3
  76869. 801f4ea: f7fa fe25 bl 801a138 <pbuf_clen>
  76870. 801f4ee: 4603 mov r3, r0
  76871. 801f4f0: 461a mov r2, r3
  76872. 801f4f2: 687b ldr r3, [r7, #4]
  76873. 801f4f4: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  76874. 801f4f8: 4413 add r3, r2
  76875. 801f4fa: b29a uxth r2, r3
  76876. 801f4fc: 687b ldr r3, [r7, #4]
  76877. 801f4fe: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  76878. /* Finally insert remainder into queue after split (which stays head) */
  76879. seg->next = useg->next;
  76880. 801f502: 697b ldr r3, [r7, #20]
  76881. 801f504: 681a ldr r2, [r3, #0]
  76882. 801f506: 69bb ldr r3, [r7, #24]
  76883. 801f508: 601a str r2, [r3, #0]
  76884. useg->next = seg;
  76885. 801f50a: 697b ldr r3, [r7, #20]
  76886. 801f50c: 69ba ldr r2, [r7, #24]
  76887. 801f50e: 601a str r2, [r3, #0]
  76888. #if TCP_OVERSIZE
  76889. /* If remainder is last segment on the unsent, ensure we clear the oversize amount
  76890. * because the remainder is always sized to the exact remaining amount */
  76891. if (seg->next == NULL) {
  76892. 801f510: 69bb ldr r3, [r7, #24]
  76893. 801f512: 681b ldr r3, [r3, #0]
  76894. 801f514: 2b00 cmp r3, #0
  76895. 801f516: d103 bne.n 801f520 <tcp_split_unsent_seg+0x240>
  76896. pcb->unsent_oversize = 0;
  76897. 801f518: 687b ldr r3, [r7, #4]
  76898. 801f51a: 2200 movs r2, #0
  76899. 801f51c: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  76900. }
  76901. #endif /* TCP_OVERSIZE */
  76902. return ERR_OK;
  76903. 801f520: 2300 movs r3, #0
  76904. 801f522: e016 b.n 801f552 <tcp_split_unsent_seg+0x272>
  76905. goto memerr;
  76906. 801f524: bf00 nop
  76907. 801f526: e002 b.n 801f52e <tcp_split_unsent_seg+0x24e>
  76908. goto memerr;
  76909. 801f528: bf00 nop
  76910. 801f52a: e000 b.n 801f52e <tcp_split_unsent_seg+0x24e>
  76911. goto memerr;
  76912. 801f52c: bf00 nop
  76913. memerr:
  76914. TCP_STATS_INC(tcp.memerr);
  76915. LWIP_ASSERT("seg == NULL", seg == NULL);
  76916. 801f52e: 69bb ldr r3, [r7, #24]
  76917. 801f530: 2b00 cmp r3, #0
  76918. 801f532: d006 beq.n 801f542 <tcp_split_unsent_seg+0x262>
  76919. 801f534: 4b09 ldr r3, [pc, #36] @ (801f55c <tcp_split_unsent_seg+0x27c>)
  76920. 801f536: f44f 7276 mov.w r2, #984 @ 0x3d8
  76921. 801f53a: 490e ldr r1, [pc, #56] @ (801f574 <tcp_split_unsent_seg+0x294>)
  76922. 801f53c: 4809 ldr r0, [pc, #36] @ (801f564 <tcp_split_unsent_seg+0x284>)
  76923. 801f53e: f009 ffe5 bl 802950c <iprintf>
  76924. if (p != NULL) {
  76925. 801f542: 693b ldr r3, [r7, #16]
  76926. 801f544: 2b00 cmp r3, #0
  76927. 801f546: d002 beq.n 801f54e <tcp_split_unsent_seg+0x26e>
  76928. pbuf_free(p);
  76929. 801f548: 6938 ldr r0, [r7, #16]
  76930. 801f54a: f7fa fd67 bl 801a01c <pbuf_free>
  76931. }
  76932. return ERR_MEM;
  76933. 801f54e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  76934. }
  76935. 801f552: 4618 mov r0, r3
  76936. 801f554: 3724 adds r7, #36 @ 0x24
  76937. 801f556: 46bd mov sp, r7
  76938. 801f558: bd90 pop {r4, r7, pc}
  76939. 801f55a: bf00 nop
  76940. 801f55c: 0802ed24 .word 0x0802ed24
  76941. 801f560: 0802f114 .word 0x0802f114
  76942. 801f564: 0802ed78 .word 0x0802ed78
  76943. 801f568: 0802f138 .word 0x0802f138
  76944. 801f56c: 0802f15c .word 0x0802f15c
  76945. 801f570: 0802f16c .word 0x0802f16c
  76946. 801f574: 0802f17c .word 0x0802f17c
  76947. 0801f578 <tcp_send_fin>:
  76948. * @param pcb the tcp_pcb over which to send a segment
  76949. * @return ERR_OK if sent, another err_t otherwise
  76950. */
  76951. err_t
  76952. tcp_send_fin(struct tcp_pcb *pcb)
  76953. {
  76954. 801f578: b590 push {r4, r7, lr}
  76955. 801f57a: b085 sub sp, #20
  76956. 801f57c: af00 add r7, sp, #0
  76957. 801f57e: 6078 str r0, [r7, #4]
  76958. LWIP_ASSERT("tcp_send_fin: invalid pcb", pcb != NULL);
  76959. 801f580: 687b ldr r3, [r7, #4]
  76960. 801f582: 2b00 cmp r3, #0
  76961. 801f584: d106 bne.n 801f594 <tcp_send_fin+0x1c>
  76962. 801f586: 4b21 ldr r3, [pc, #132] @ (801f60c <tcp_send_fin+0x94>)
  76963. 801f588: f240 32eb movw r2, #1003 @ 0x3eb
  76964. 801f58c: 4920 ldr r1, [pc, #128] @ (801f610 <tcp_send_fin+0x98>)
  76965. 801f58e: 4821 ldr r0, [pc, #132] @ (801f614 <tcp_send_fin+0x9c>)
  76966. 801f590: f009 ffbc bl 802950c <iprintf>
  76967. /* first, try to add the fin to the last unsent segment */
  76968. if (pcb->unsent != NULL) {
  76969. 801f594: 687b ldr r3, [r7, #4]
  76970. 801f596: 6edb ldr r3, [r3, #108] @ 0x6c
  76971. 801f598: 2b00 cmp r3, #0
  76972. 801f59a: d02e beq.n 801f5fa <tcp_send_fin+0x82>
  76973. struct tcp_seg *last_unsent;
  76974. for (last_unsent = pcb->unsent; last_unsent->next != NULL;
  76975. 801f59c: 687b ldr r3, [r7, #4]
  76976. 801f59e: 6edb ldr r3, [r3, #108] @ 0x6c
  76977. 801f5a0: 60fb str r3, [r7, #12]
  76978. 801f5a2: e002 b.n 801f5aa <tcp_send_fin+0x32>
  76979. last_unsent = last_unsent->next);
  76980. 801f5a4: 68fb ldr r3, [r7, #12]
  76981. 801f5a6: 681b ldr r3, [r3, #0]
  76982. 801f5a8: 60fb str r3, [r7, #12]
  76983. for (last_unsent = pcb->unsent; last_unsent->next != NULL;
  76984. 801f5aa: 68fb ldr r3, [r7, #12]
  76985. 801f5ac: 681b ldr r3, [r3, #0]
  76986. 801f5ae: 2b00 cmp r3, #0
  76987. 801f5b0: d1f8 bne.n 801f5a4 <tcp_send_fin+0x2c>
  76988. if ((TCPH_FLAGS(last_unsent->tcphdr) & (TCP_SYN | TCP_FIN | TCP_RST)) == 0) {
  76989. 801f5b2: 68fb ldr r3, [r7, #12]
  76990. 801f5b4: 691b ldr r3, [r3, #16]
  76991. 801f5b6: 899b ldrh r3, [r3, #12]
  76992. 801f5b8: b29b uxth r3, r3
  76993. 801f5ba: 4618 mov r0, r3
  76994. 801f5bc: f7f9 f84c bl 8018658 <lwip_htons>
  76995. 801f5c0: 4603 mov r3, r0
  76996. 801f5c2: b2db uxtb r3, r3
  76997. 801f5c4: f003 0307 and.w r3, r3, #7
  76998. 801f5c8: 2b00 cmp r3, #0
  76999. 801f5ca: d116 bne.n 801f5fa <tcp_send_fin+0x82>
  77000. /* no SYN/FIN/RST flag in the header, we can add the FIN flag */
  77001. TCPH_SET_FLAG(last_unsent->tcphdr, TCP_FIN);
  77002. 801f5cc: 68fb ldr r3, [r7, #12]
  77003. 801f5ce: 691b ldr r3, [r3, #16]
  77004. 801f5d0: 899b ldrh r3, [r3, #12]
  77005. 801f5d2: b29c uxth r4, r3
  77006. 801f5d4: 2001 movs r0, #1
  77007. 801f5d6: f7f9 f83f bl 8018658 <lwip_htons>
  77008. 801f5da: 4603 mov r3, r0
  77009. 801f5dc: 461a mov r2, r3
  77010. 801f5de: 68fb ldr r3, [r7, #12]
  77011. 801f5e0: 691b ldr r3, [r3, #16]
  77012. 801f5e2: 4322 orrs r2, r4
  77013. 801f5e4: b292 uxth r2, r2
  77014. 801f5e6: 819a strh r2, [r3, #12]
  77015. tcp_set_flags(pcb, TF_FIN);
  77016. 801f5e8: 687b ldr r3, [r7, #4]
  77017. 801f5ea: 8b5b ldrh r3, [r3, #26]
  77018. 801f5ec: f043 0320 orr.w r3, r3, #32
  77019. 801f5f0: b29a uxth r2, r3
  77020. 801f5f2: 687b ldr r3, [r7, #4]
  77021. 801f5f4: 835a strh r2, [r3, #26]
  77022. return ERR_OK;
  77023. 801f5f6: 2300 movs r3, #0
  77024. 801f5f8: e004 b.n 801f604 <tcp_send_fin+0x8c>
  77025. }
  77026. }
  77027. /* no data, no length, flags, copy=1, no optdata */
  77028. return tcp_enqueue_flags(pcb, TCP_FIN);
  77029. 801f5fa: 2101 movs r1, #1
  77030. 801f5fc: 6878 ldr r0, [r7, #4]
  77031. 801f5fe: f000 f80b bl 801f618 <tcp_enqueue_flags>
  77032. 801f602: 4603 mov r3, r0
  77033. }
  77034. 801f604: 4618 mov r0, r3
  77035. 801f606: 3714 adds r7, #20
  77036. 801f608: 46bd mov sp, r7
  77037. 801f60a: bd90 pop {r4, r7, pc}
  77038. 801f60c: 0802ed24 .word 0x0802ed24
  77039. 801f610: 0802f188 .word 0x0802f188
  77040. 801f614: 0802ed78 .word 0x0802ed78
  77041. 0801f618 <tcp_enqueue_flags>:
  77042. * @param pcb Protocol control block for the TCP connection.
  77043. * @param flags TCP header flags to set in the outgoing segment.
  77044. */
  77045. err_t
  77046. tcp_enqueue_flags(struct tcp_pcb *pcb, u8_t flags)
  77047. {
  77048. 801f618: b580 push {r7, lr}
  77049. 801f61a: b088 sub sp, #32
  77050. 801f61c: af02 add r7, sp, #8
  77051. 801f61e: 6078 str r0, [r7, #4]
  77052. 801f620: 460b mov r3, r1
  77053. 801f622: 70fb strb r3, [r7, #3]
  77054. struct pbuf *p;
  77055. struct tcp_seg *seg;
  77056. u8_t optflags = 0;
  77057. 801f624: 2300 movs r3, #0
  77058. 801f626: 75fb strb r3, [r7, #23]
  77059. u8_t optlen = 0;
  77060. 801f628: 2300 movs r3, #0
  77061. 801f62a: 75bb strb r3, [r7, #22]
  77062. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_enqueue_flags: queuelen: %"U16_F"\n", (u16_t)pcb->snd_queuelen));
  77063. LWIP_ASSERT("tcp_enqueue_flags: need either TCP_SYN or TCP_FIN in flags (programmer violates API)",
  77064. 801f62c: 78fb ldrb r3, [r7, #3]
  77065. 801f62e: f003 0303 and.w r3, r3, #3
  77066. 801f632: 2b00 cmp r3, #0
  77067. 801f634: d106 bne.n 801f644 <tcp_enqueue_flags+0x2c>
  77068. 801f636: 4b67 ldr r3, [pc, #412] @ (801f7d4 <tcp_enqueue_flags+0x1bc>)
  77069. 801f638: f240 4211 movw r2, #1041 @ 0x411
  77070. 801f63c: 4966 ldr r1, [pc, #408] @ (801f7d8 <tcp_enqueue_flags+0x1c0>)
  77071. 801f63e: 4867 ldr r0, [pc, #412] @ (801f7dc <tcp_enqueue_flags+0x1c4>)
  77072. 801f640: f009 ff64 bl 802950c <iprintf>
  77073. (flags & (TCP_SYN | TCP_FIN)) != 0);
  77074. LWIP_ASSERT("tcp_enqueue_flags: invalid pcb", pcb != NULL);
  77075. 801f644: 687b ldr r3, [r7, #4]
  77076. 801f646: 2b00 cmp r3, #0
  77077. 801f648: d106 bne.n 801f658 <tcp_enqueue_flags+0x40>
  77078. 801f64a: 4b62 ldr r3, [pc, #392] @ (801f7d4 <tcp_enqueue_flags+0x1bc>)
  77079. 801f64c: f240 4213 movw r2, #1043 @ 0x413
  77080. 801f650: 4963 ldr r1, [pc, #396] @ (801f7e0 <tcp_enqueue_flags+0x1c8>)
  77081. 801f652: 4862 ldr r0, [pc, #392] @ (801f7dc <tcp_enqueue_flags+0x1c4>)
  77082. 801f654: f009 ff5a bl 802950c <iprintf>
  77083. /* No need to check pcb->snd_queuelen if only SYN or FIN are allowed! */
  77084. /* Get options for this segment. This is a special case since this is the
  77085. only place where a SYN can be sent. */
  77086. if (flags & TCP_SYN) {
  77087. 801f658: 78fb ldrb r3, [r7, #3]
  77088. 801f65a: f003 0302 and.w r3, r3, #2
  77089. 801f65e: 2b00 cmp r3, #0
  77090. 801f660: d001 beq.n 801f666 <tcp_enqueue_flags+0x4e>
  77091. optflags = TF_SEG_OPTS_MSS;
  77092. 801f662: 2301 movs r3, #1
  77093. 801f664: 75fb strb r3, [r7, #23]
  77094. /* Make sure the timestamp option is only included in data segments if we
  77095. agreed about it with the remote host (and in active open SYN segments). */
  77096. optflags |= TF_SEG_OPTS_TS;
  77097. }
  77098. #endif /* LWIP_TCP_TIMESTAMPS */
  77099. optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb);
  77100. 801f666: 7dfb ldrb r3, [r7, #23]
  77101. 801f668: 009b lsls r3, r3, #2
  77102. 801f66a: b2db uxtb r3, r3
  77103. 801f66c: f003 0304 and.w r3, r3, #4
  77104. 801f670: 75bb strb r3, [r7, #22]
  77105. /* Allocate pbuf with room for TCP header + options */
  77106. if ((p = pbuf_alloc(PBUF_TRANSPORT, optlen, PBUF_RAM)) == NULL) {
  77107. 801f672: 7dbb ldrb r3, [r7, #22]
  77108. 801f674: b29b uxth r3, r3
  77109. 801f676: f44f 7220 mov.w r2, #640 @ 0x280
  77110. 801f67a: 4619 mov r1, r3
  77111. 801f67c: 2036 movs r0, #54 @ 0x36
  77112. 801f67e: f7fa f9b7 bl 80199f0 <pbuf_alloc>
  77113. 801f682: 60f8 str r0, [r7, #12]
  77114. 801f684: 68fb ldr r3, [r7, #12]
  77115. 801f686: 2b00 cmp r3, #0
  77116. 801f688: d109 bne.n 801f69e <tcp_enqueue_flags+0x86>
  77117. tcp_set_flags(pcb, TF_NAGLEMEMERR);
  77118. 801f68a: 687b ldr r3, [r7, #4]
  77119. 801f68c: 8b5b ldrh r3, [r3, #26]
  77120. 801f68e: f043 0380 orr.w r3, r3, #128 @ 0x80
  77121. 801f692: b29a uxth r2, r3
  77122. 801f694: 687b ldr r3, [r7, #4]
  77123. 801f696: 835a strh r2, [r3, #26]
  77124. TCP_STATS_INC(tcp.memerr);
  77125. return ERR_MEM;
  77126. 801f698: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  77127. 801f69c: e095 b.n 801f7ca <tcp_enqueue_flags+0x1b2>
  77128. }
  77129. LWIP_ASSERT("tcp_enqueue_flags: check that first pbuf can hold optlen",
  77130. 801f69e: 68fb ldr r3, [r7, #12]
  77131. 801f6a0: 895a ldrh r2, [r3, #10]
  77132. 801f6a2: 7dbb ldrb r3, [r7, #22]
  77133. 801f6a4: b29b uxth r3, r3
  77134. 801f6a6: 429a cmp r2, r3
  77135. 801f6a8: d206 bcs.n 801f6b8 <tcp_enqueue_flags+0xa0>
  77136. 801f6aa: 4b4a ldr r3, [pc, #296] @ (801f7d4 <tcp_enqueue_flags+0x1bc>)
  77137. 801f6ac: f240 4239 movw r2, #1081 @ 0x439
  77138. 801f6b0: 494c ldr r1, [pc, #304] @ (801f7e4 <tcp_enqueue_flags+0x1cc>)
  77139. 801f6b2: 484a ldr r0, [pc, #296] @ (801f7dc <tcp_enqueue_flags+0x1c4>)
  77140. 801f6b4: f009 ff2a bl 802950c <iprintf>
  77141. (p->len >= optlen));
  77142. /* Allocate memory for tcp_seg, and fill in fields. */
  77143. if ((seg = tcp_create_segment(pcb, p, flags, pcb->snd_lbb, optflags)) == NULL) {
  77144. 801f6b8: 687b ldr r3, [r7, #4]
  77145. 801f6ba: 6dd9 ldr r1, [r3, #92] @ 0x5c
  77146. 801f6bc: 78fa ldrb r2, [r7, #3]
  77147. 801f6be: 7dfb ldrb r3, [r7, #23]
  77148. 801f6c0: 9300 str r3, [sp, #0]
  77149. 801f6c2: 460b mov r3, r1
  77150. 801f6c4: 68f9 ldr r1, [r7, #12]
  77151. 801f6c6: 6878 ldr r0, [r7, #4]
  77152. 801f6c8: f7ff f8b6 bl 801e838 <tcp_create_segment>
  77153. 801f6cc: 60b8 str r0, [r7, #8]
  77154. 801f6ce: 68bb ldr r3, [r7, #8]
  77155. 801f6d0: 2b00 cmp r3, #0
  77156. 801f6d2: d109 bne.n 801f6e8 <tcp_enqueue_flags+0xd0>
  77157. tcp_set_flags(pcb, TF_NAGLEMEMERR);
  77158. 801f6d4: 687b ldr r3, [r7, #4]
  77159. 801f6d6: 8b5b ldrh r3, [r3, #26]
  77160. 801f6d8: f043 0380 orr.w r3, r3, #128 @ 0x80
  77161. 801f6dc: b29a uxth r2, r3
  77162. 801f6de: 687b ldr r3, [r7, #4]
  77163. 801f6e0: 835a strh r2, [r3, #26]
  77164. TCP_STATS_INC(tcp.memerr);
  77165. return ERR_MEM;
  77166. 801f6e2: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  77167. 801f6e6: e070 b.n 801f7ca <tcp_enqueue_flags+0x1b2>
  77168. }
  77169. LWIP_ASSERT("seg->tcphdr not aligned", ((mem_ptr_t)seg->tcphdr % LWIP_MIN(MEM_ALIGNMENT, 4)) == 0);
  77170. 801f6e8: 68bb ldr r3, [r7, #8]
  77171. 801f6ea: 691b ldr r3, [r3, #16]
  77172. 801f6ec: f003 0303 and.w r3, r3, #3
  77173. 801f6f0: 2b00 cmp r3, #0
  77174. 801f6f2: d006 beq.n 801f702 <tcp_enqueue_flags+0xea>
  77175. 801f6f4: 4b37 ldr r3, [pc, #220] @ (801f7d4 <tcp_enqueue_flags+0x1bc>)
  77176. 801f6f6: f240 4242 movw r2, #1090 @ 0x442
  77177. 801f6fa: 493b ldr r1, [pc, #236] @ (801f7e8 <tcp_enqueue_flags+0x1d0>)
  77178. 801f6fc: 4837 ldr r0, [pc, #220] @ (801f7dc <tcp_enqueue_flags+0x1c4>)
  77179. 801f6fe: f009 ff05 bl 802950c <iprintf>
  77180. LWIP_ASSERT("tcp_enqueue_flags: invalid segment length", seg->len == 0);
  77181. 801f702: 68bb ldr r3, [r7, #8]
  77182. 801f704: 891b ldrh r3, [r3, #8]
  77183. 801f706: 2b00 cmp r3, #0
  77184. 801f708: d006 beq.n 801f718 <tcp_enqueue_flags+0x100>
  77185. 801f70a: 4b32 ldr r3, [pc, #200] @ (801f7d4 <tcp_enqueue_flags+0x1bc>)
  77186. 801f70c: f240 4243 movw r2, #1091 @ 0x443
  77187. 801f710: 4936 ldr r1, [pc, #216] @ (801f7ec <tcp_enqueue_flags+0x1d4>)
  77188. 801f712: 4832 ldr r0, [pc, #200] @ (801f7dc <tcp_enqueue_flags+0x1c4>)
  77189. 801f714: f009 fefa bl 802950c <iprintf>
  77190. lwip_ntohl(seg->tcphdr->seqno),
  77191. lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg),
  77192. (u16_t)flags));
  77193. /* Now append seg to pcb->unsent queue */
  77194. if (pcb->unsent == NULL) {
  77195. 801f718: 687b ldr r3, [r7, #4]
  77196. 801f71a: 6edb ldr r3, [r3, #108] @ 0x6c
  77197. 801f71c: 2b00 cmp r3, #0
  77198. 801f71e: d103 bne.n 801f728 <tcp_enqueue_flags+0x110>
  77199. pcb->unsent = seg;
  77200. 801f720: 687b ldr r3, [r7, #4]
  77201. 801f722: 68ba ldr r2, [r7, #8]
  77202. 801f724: 66da str r2, [r3, #108] @ 0x6c
  77203. 801f726: e00d b.n 801f744 <tcp_enqueue_flags+0x12c>
  77204. } else {
  77205. struct tcp_seg *useg;
  77206. for (useg = pcb->unsent; useg->next != NULL; useg = useg->next);
  77207. 801f728: 687b ldr r3, [r7, #4]
  77208. 801f72a: 6edb ldr r3, [r3, #108] @ 0x6c
  77209. 801f72c: 613b str r3, [r7, #16]
  77210. 801f72e: e002 b.n 801f736 <tcp_enqueue_flags+0x11e>
  77211. 801f730: 693b ldr r3, [r7, #16]
  77212. 801f732: 681b ldr r3, [r3, #0]
  77213. 801f734: 613b str r3, [r7, #16]
  77214. 801f736: 693b ldr r3, [r7, #16]
  77215. 801f738: 681b ldr r3, [r3, #0]
  77216. 801f73a: 2b00 cmp r3, #0
  77217. 801f73c: d1f8 bne.n 801f730 <tcp_enqueue_flags+0x118>
  77218. useg->next = seg;
  77219. 801f73e: 693b ldr r3, [r7, #16]
  77220. 801f740: 68ba ldr r2, [r7, #8]
  77221. 801f742: 601a str r2, [r3, #0]
  77222. }
  77223. #if TCP_OVERSIZE
  77224. /* The new unsent tail has no space */
  77225. pcb->unsent_oversize = 0;
  77226. 801f744: 687b ldr r3, [r7, #4]
  77227. 801f746: 2200 movs r2, #0
  77228. 801f748: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  77229. #endif /* TCP_OVERSIZE */
  77230. /* SYN and FIN bump the sequence number */
  77231. if ((flags & TCP_SYN) || (flags & TCP_FIN)) {
  77232. 801f74c: 78fb ldrb r3, [r7, #3]
  77233. 801f74e: f003 0302 and.w r3, r3, #2
  77234. 801f752: 2b00 cmp r3, #0
  77235. 801f754: d104 bne.n 801f760 <tcp_enqueue_flags+0x148>
  77236. 801f756: 78fb ldrb r3, [r7, #3]
  77237. 801f758: f003 0301 and.w r3, r3, #1
  77238. 801f75c: 2b00 cmp r3, #0
  77239. 801f75e: d004 beq.n 801f76a <tcp_enqueue_flags+0x152>
  77240. pcb->snd_lbb++;
  77241. 801f760: 687b ldr r3, [r7, #4]
  77242. 801f762: 6ddb ldr r3, [r3, #92] @ 0x5c
  77243. 801f764: 1c5a adds r2, r3, #1
  77244. 801f766: 687b ldr r3, [r7, #4]
  77245. 801f768: 65da str r2, [r3, #92] @ 0x5c
  77246. /* optlen does not influence snd_buf */
  77247. }
  77248. if (flags & TCP_FIN) {
  77249. 801f76a: 78fb ldrb r3, [r7, #3]
  77250. 801f76c: f003 0301 and.w r3, r3, #1
  77251. 801f770: 2b00 cmp r3, #0
  77252. 801f772: d006 beq.n 801f782 <tcp_enqueue_flags+0x16a>
  77253. tcp_set_flags(pcb, TF_FIN);
  77254. 801f774: 687b ldr r3, [r7, #4]
  77255. 801f776: 8b5b ldrh r3, [r3, #26]
  77256. 801f778: f043 0320 orr.w r3, r3, #32
  77257. 801f77c: b29a uxth r2, r3
  77258. 801f77e: 687b ldr r3, [r7, #4]
  77259. 801f780: 835a strh r2, [r3, #26]
  77260. }
  77261. /* update number of segments on the queues */
  77262. pcb->snd_queuelen += pbuf_clen(seg->p);
  77263. 801f782: 68bb ldr r3, [r7, #8]
  77264. 801f784: 685b ldr r3, [r3, #4]
  77265. 801f786: 4618 mov r0, r3
  77266. 801f788: f7fa fcd6 bl 801a138 <pbuf_clen>
  77267. 801f78c: 4603 mov r3, r0
  77268. 801f78e: 461a mov r2, r3
  77269. 801f790: 687b ldr r3, [r7, #4]
  77270. 801f792: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  77271. 801f796: 4413 add r3, r2
  77272. 801f798: b29a uxth r2, r3
  77273. 801f79a: 687b ldr r3, [r7, #4]
  77274. 801f79c: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  77275. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_enqueue_flags: %"S16_F" (after enqueued)\n", pcb->snd_queuelen));
  77276. if (pcb->snd_queuelen != 0) {
  77277. 801f7a0: 687b ldr r3, [r7, #4]
  77278. 801f7a2: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  77279. 801f7a6: 2b00 cmp r3, #0
  77280. 801f7a8: d00e beq.n 801f7c8 <tcp_enqueue_flags+0x1b0>
  77281. LWIP_ASSERT("tcp_enqueue_flags: invalid queue length",
  77282. 801f7aa: 687b ldr r3, [r7, #4]
  77283. 801f7ac: 6f1b ldr r3, [r3, #112] @ 0x70
  77284. 801f7ae: 2b00 cmp r3, #0
  77285. 801f7b0: d10a bne.n 801f7c8 <tcp_enqueue_flags+0x1b0>
  77286. 801f7b2: 687b ldr r3, [r7, #4]
  77287. 801f7b4: 6edb ldr r3, [r3, #108] @ 0x6c
  77288. 801f7b6: 2b00 cmp r3, #0
  77289. 801f7b8: d106 bne.n 801f7c8 <tcp_enqueue_flags+0x1b0>
  77290. 801f7ba: 4b06 ldr r3, [pc, #24] @ (801f7d4 <tcp_enqueue_flags+0x1bc>)
  77291. 801f7bc: f240 4265 movw r2, #1125 @ 0x465
  77292. 801f7c0: 490b ldr r1, [pc, #44] @ (801f7f0 <tcp_enqueue_flags+0x1d8>)
  77293. 801f7c2: 4806 ldr r0, [pc, #24] @ (801f7dc <tcp_enqueue_flags+0x1c4>)
  77294. 801f7c4: f009 fea2 bl 802950c <iprintf>
  77295. pcb->unacked != NULL || pcb->unsent != NULL);
  77296. }
  77297. return ERR_OK;
  77298. 801f7c8: 2300 movs r3, #0
  77299. }
  77300. 801f7ca: 4618 mov r0, r3
  77301. 801f7cc: 3718 adds r7, #24
  77302. 801f7ce: 46bd mov sp, r7
  77303. 801f7d0: bd80 pop {r7, pc}
  77304. 801f7d2: bf00 nop
  77305. 801f7d4: 0802ed24 .word 0x0802ed24
  77306. 801f7d8: 0802f1a4 .word 0x0802f1a4
  77307. 801f7dc: 0802ed78 .word 0x0802ed78
  77308. 801f7e0: 0802f1fc .word 0x0802f1fc
  77309. 801f7e4: 0802f21c .word 0x0802f21c
  77310. 801f7e8: 0802f258 .word 0x0802f258
  77311. 801f7ec: 0802f270 .word 0x0802f270
  77312. 801f7f0: 0802f29c .word 0x0802f29c
  77313. 0801f7f4 <tcp_output>:
  77314. * @return ERR_OK if data has been sent or nothing to send
  77315. * another err_t on error
  77316. */
  77317. err_t
  77318. tcp_output(struct tcp_pcb *pcb)
  77319. {
  77320. 801f7f4: b5b0 push {r4, r5, r7, lr}
  77321. 801f7f6: b08a sub sp, #40 @ 0x28
  77322. 801f7f8: af00 add r7, sp, #0
  77323. 801f7fa: 6078 str r0, [r7, #4]
  77324. struct netif *netif;
  77325. #if TCP_CWND_DEBUG
  77326. s16_t i = 0;
  77327. #endif /* TCP_CWND_DEBUG */
  77328. LWIP_ASSERT_CORE_LOCKED();
  77329. 801f7fc: f7f0 fc38 bl 8010070 <sys_check_core_locking>
  77330. LWIP_ASSERT("tcp_output: invalid pcb", pcb != NULL);
  77331. 801f800: 687b ldr r3, [r7, #4]
  77332. 801f802: 2b00 cmp r3, #0
  77333. 801f804: d106 bne.n 801f814 <tcp_output+0x20>
  77334. 801f806: 4b8a ldr r3, [pc, #552] @ (801fa30 <tcp_output+0x23c>)
  77335. 801f808: f240 42e1 movw r2, #1249 @ 0x4e1
  77336. 801f80c: 4989 ldr r1, [pc, #548] @ (801fa34 <tcp_output+0x240>)
  77337. 801f80e: 488a ldr r0, [pc, #552] @ (801fa38 <tcp_output+0x244>)
  77338. 801f810: f009 fe7c bl 802950c <iprintf>
  77339. /* pcb->state LISTEN not allowed here */
  77340. LWIP_ASSERT("don't call tcp_output for listen-pcbs",
  77341. 801f814: 687b ldr r3, [r7, #4]
  77342. 801f816: 7d1b ldrb r3, [r3, #20]
  77343. 801f818: 2b01 cmp r3, #1
  77344. 801f81a: d106 bne.n 801f82a <tcp_output+0x36>
  77345. 801f81c: 4b84 ldr r3, [pc, #528] @ (801fa30 <tcp_output+0x23c>)
  77346. 801f81e: f240 42e3 movw r2, #1251 @ 0x4e3
  77347. 801f822: 4986 ldr r1, [pc, #536] @ (801fa3c <tcp_output+0x248>)
  77348. 801f824: 4884 ldr r0, [pc, #528] @ (801fa38 <tcp_output+0x244>)
  77349. 801f826: f009 fe71 bl 802950c <iprintf>
  77350. /* First, check if we are invoked by the TCP input processing
  77351. code. If so, we do not output anything. Instead, we rely on the
  77352. input processing code to call us when input processing is done
  77353. with. */
  77354. if (tcp_input_pcb == pcb) {
  77355. 801f82a: 4b85 ldr r3, [pc, #532] @ (801fa40 <tcp_output+0x24c>)
  77356. 801f82c: 681b ldr r3, [r3, #0]
  77357. 801f82e: 687a ldr r2, [r7, #4]
  77358. 801f830: 429a cmp r2, r3
  77359. 801f832: d101 bne.n 801f838 <tcp_output+0x44>
  77360. return ERR_OK;
  77361. 801f834: 2300 movs r3, #0
  77362. 801f836: e1d1 b.n 801fbdc <tcp_output+0x3e8>
  77363. }
  77364. wnd = LWIP_MIN(pcb->snd_wnd, pcb->cwnd);
  77365. 801f838: 687b ldr r3, [r7, #4]
  77366. 801f83a: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  77367. 801f83e: 687b ldr r3, [r7, #4]
  77368. 801f840: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  77369. 801f844: 4293 cmp r3, r2
  77370. 801f846: bf28 it cs
  77371. 801f848: 4613 movcs r3, r2
  77372. 801f84a: b29b uxth r3, r3
  77373. 801f84c: 61bb str r3, [r7, #24]
  77374. seg = pcb->unsent;
  77375. 801f84e: 687b ldr r3, [r7, #4]
  77376. 801f850: 6edb ldr r3, [r3, #108] @ 0x6c
  77377. 801f852: 627b str r3, [r7, #36] @ 0x24
  77378. if (seg == NULL) {
  77379. 801f854: 6a7b ldr r3, [r7, #36] @ 0x24
  77380. 801f856: 2b00 cmp r3, #0
  77381. 801f858: d10b bne.n 801f872 <tcp_output+0x7e>
  77382. ", seg == NULL, ack %"U32_F"\n",
  77383. pcb->snd_wnd, pcb->cwnd, wnd, pcb->lastack));
  77384. /* If the TF_ACK_NOW flag is set and the ->unsent queue is empty, construct
  77385. * an empty ACK segment and send it. */
  77386. if (pcb->flags & TF_ACK_NOW) {
  77387. 801f85a: 687b ldr r3, [r7, #4]
  77388. 801f85c: 8b5b ldrh r3, [r3, #26]
  77389. 801f85e: f003 0302 and.w r3, r3, #2
  77390. 801f862: 2b00 cmp r3, #0
  77391. 801f864: f000 81ad beq.w 801fbc2 <tcp_output+0x3ce>
  77392. return tcp_send_empty_ack(pcb);
  77393. 801f868: 6878 ldr r0, [r7, #4]
  77394. 801f86a: f000 fdd7 bl 802041c <tcp_send_empty_ack>
  77395. 801f86e: 4603 mov r3, r0
  77396. 801f870: e1b4 b.n 801fbdc <tcp_output+0x3e8>
  77397. pcb->snd_wnd, pcb->cwnd, wnd,
  77398. lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len,
  77399. lwip_ntohl(seg->tcphdr->seqno), pcb->lastack));
  77400. }
  77401. netif = tcp_route(pcb, &pcb->local_ip, &pcb->remote_ip);
  77402. 801f872: 6879 ldr r1, [r7, #4]
  77403. 801f874: 687b ldr r3, [r7, #4]
  77404. 801f876: 3304 adds r3, #4
  77405. 801f878: 461a mov r2, r3
  77406. 801f87a: 6878 ldr r0, [r7, #4]
  77407. 801f87c: f7fe ffc0 bl 801e800 <tcp_route>
  77408. 801f880: 6178 str r0, [r7, #20]
  77409. if (netif == NULL) {
  77410. 801f882: 697b ldr r3, [r7, #20]
  77411. 801f884: 2b00 cmp r3, #0
  77412. 801f886: d102 bne.n 801f88e <tcp_output+0x9a>
  77413. return ERR_RTE;
  77414. 801f888: f06f 0303 mvn.w r3, #3
  77415. 801f88c: e1a6 b.n 801fbdc <tcp_output+0x3e8>
  77416. }
  77417. /* If we don't have a local IP address, we get one from netif */
  77418. if (ip_addr_isany(&pcb->local_ip)) {
  77419. 801f88e: 687b ldr r3, [r7, #4]
  77420. 801f890: 2b00 cmp r3, #0
  77421. 801f892: d003 beq.n 801f89c <tcp_output+0xa8>
  77422. 801f894: 687b ldr r3, [r7, #4]
  77423. 801f896: 681b ldr r3, [r3, #0]
  77424. 801f898: 2b00 cmp r3, #0
  77425. 801f89a: d111 bne.n 801f8c0 <tcp_output+0xcc>
  77426. const ip_addr_t *local_ip = ip_netif_get_local_ip(netif, &pcb->remote_ip);
  77427. 801f89c: 697b ldr r3, [r7, #20]
  77428. 801f89e: 2b00 cmp r3, #0
  77429. 801f8a0: d002 beq.n 801f8a8 <tcp_output+0xb4>
  77430. 801f8a2: 697b ldr r3, [r7, #20]
  77431. 801f8a4: 3304 adds r3, #4
  77432. 801f8a6: e000 b.n 801f8aa <tcp_output+0xb6>
  77433. 801f8a8: 2300 movs r3, #0
  77434. 801f8aa: 613b str r3, [r7, #16]
  77435. if (local_ip == NULL) {
  77436. 801f8ac: 693b ldr r3, [r7, #16]
  77437. 801f8ae: 2b00 cmp r3, #0
  77438. 801f8b0: d102 bne.n 801f8b8 <tcp_output+0xc4>
  77439. return ERR_RTE;
  77440. 801f8b2: f06f 0303 mvn.w r3, #3
  77441. 801f8b6: e191 b.n 801fbdc <tcp_output+0x3e8>
  77442. }
  77443. ip_addr_copy(pcb->local_ip, *local_ip);
  77444. 801f8b8: 693b ldr r3, [r7, #16]
  77445. 801f8ba: 681a ldr r2, [r3, #0]
  77446. 801f8bc: 687b ldr r3, [r7, #4]
  77447. 801f8be: 601a str r2, [r3, #0]
  77448. }
  77449. /* Handle the current segment not fitting within the window */
  77450. if (lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len > wnd) {
  77451. 801f8c0: 6a7b ldr r3, [r7, #36] @ 0x24
  77452. 801f8c2: 691b ldr r3, [r3, #16]
  77453. 801f8c4: 685b ldr r3, [r3, #4]
  77454. 801f8c6: 4618 mov r0, r3
  77455. 801f8c8: f7f8 fedb bl 8018682 <lwip_htonl>
  77456. 801f8cc: 4602 mov r2, r0
  77457. 801f8ce: 687b ldr r3, [r7, #4]
  77458. 801f8d0: 6c5b ldr r3, [r3, #68] @ 0x44
  77459. 801f8d2: 1ad3 subs r3, r2, r3
  77460. 801f8d4: 6a7a ldr r2, [r7, #36] @ 0x24
  77461. 801f8d6: 8912 ldrh r2, [r2, #8]
  77462. 801f8d8: 4413 add r3, r2
  77463. 801f8da: 69ba ldr r2, [r7, #24]
  77464. 801f8dc: 429a cmp r2, r3
  77465. 801f8de: d227 bcs.n 801f930 <tcp_output+0x13c>
  77466. * within the remaining (could be 0) send window and RTO timer is not running (we
  77467. * have no in-flight data). If window is still too small after persist timer fires,
  77468. * then we split the segment. We don't consider the congestion window since a cwnd
  77469. * smaller than 1 SMSS implies in-flight data
  77470. */
  77471. if (wnd == pcb->snd_wnd && pcb->unacked == NULL && pcb->persist_backoff == 0) {
  77472. 801f8e0: 687b ldr r3, [r7, #4]
  77473. 801f8e2: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  77474. 801f8e6: 461a mov r2, r3
  77475. 801f8e8: 69bb ldr r3, [r7, #24]
  77476. 801f8ea: 4293 cmp r3, r2
  77477. 801f8ec: d114 bne.n 801f918 <tcp_output+0x124>
  77478. 801f8ee: 687b ldr r3, [r7, #4]
  77479. 801f8f0: 6f1b ldr r3, [r3, #112] @ 0x70
  77480. 801f8f2: 2b00 cmp r3, #0
  77481. 801f8f4: d110 bne.n 801f918 <tcp_output+0x124>
  77482. 801f8f6: 687b ldr r3, [r7, #4]
  77483. 801f8f8: f893 3099 ldrb.w r3, [r3, #153] @ 0x99
  77484. 801f8fc: 2b00 cmp r3, #0
  77485. 801f8fe: d10b bne.n 801f918 <tcp_output+0x124>
  77486. pcb->persist_cnt = 0;
  77487. 801f900: 687b ldr r3, [r7, #4]
  77488. 801f902: 2200 movs r2, #0
  77489. 801f904: f883 2098 strb.w r2, [r3, #152] @ 0x98
  77490. pcb->persist_backoff = 1;
  77491. 801f908: 687b ldr r3, [r7, #4]
  77492. 801f90a: 2201 movs r2, #1
  77493. 801f90c: f883 2099 strb.w r2, [r3, #153] @ 0x99
  77494. pcb->persist_probe = 0;
  77495. 801f910: 687b ldr r3, [r7, #4]
  77496. 801f912: 2200 movs r2, #0
  77497. 801f914: f883 209a strb.w r2, [r3, #154] @ 0x9a
  77498. }
  77499. /* We need an ACK, but can't send data now, so send an empty ACK */
  77500. if (pcb->flags & TF_ACK_NOW) {
  77501. 801f918: 687b ldr r3, [r7, #4]
  77502. 801f91a: 8b5b ldrh r3, [r3, #26]
  77503. 801f91c: f003 0302 and.w r3, r3, #2
  77504. 801f920: 2b00 cmp r3, #0
  77505. 801f922: f000 8150 beq.w 801fbc6 <tcp_output+0x3d2>
  77506. return tcp_send_empty_ack(pcb);
  77507. 801f926: 6878 ldr r0, [r7, #4]
  77508. 801f928: f000 fd78 bl 802041c <tcp_send_empty_ack>
  77509. 801f92c: 4603 mov r3, r0
  77510. 801f92e: e155 b.n 801fbdc <tcp_output+0x3e8>
  77511. }
  77512. goto output_done;
  77513. }
  77514. /* Stop persist timer, above conditions are not active */
  77515. pcb->persist_backoff = 0;
  77516. 801f930: 687b ldr r3, [r7, #4]
  77517. 801f932: 2200 movs r2, #0
  77518. 801f934: f883 2099 strb.w r2, [r3, #153] @ 0x99
  77519. /* useg should point to last segment on unacked queue */
  77520. useg = pcb->unacked;
  77521. 801f938: 687b ldr r3, [r7, #4]
  77522. 801f93a: 6f1b ldr r3, [r3, #112] @ 0x70
  77523. 801f93c: 623b str r3, [r7, #32]
  77524. if (useg != NULL) {
  77525. 801f93e: 6a3b ldr r3, [r7, #32]
  77526. 801f940: 2b00 cmp r3, #0
  77527. 801f942: f000 811f beq.w 801fb84 <tcp_output+0x390>
  77528. for (; useg->next != NULL; useg = useg->next);
  77529. 801f946: e002 b.n 801f94e <tcp_output+0x15a>
  77530. 801f948: 6a3b ldr r3, [r7, #32]
  77531. 801f94a: 681b ldr r3, [r3, #0]
  77532. 801f94c: 623b str r3, [r7, #32]
  77533. 801f94e: 6a3b ldr r3, [r7, #32]
  77534. 801f950: 681b ldr r3, [r3, #0]
  77535. 801f952: 2b00 cmp r3, #0
  77536. 801f954: d1f8 bne.n 801f948 <tcp_output+0x154>
  77537. }
  77538. /* data available and window allows it to be sent? */
  77539. while (seg != NULL &&
  77540. 801f956: e115 b.n 801fb84 <tcp_output+0x390>
  77541. lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len <= wnd) {
  77542. LWIP_ASSERT("RST not expected here!",
  77543. 801f958: 6a7b ldr r3, [r7, #36] @ 0x24
  77544. 801f95a: 691b ldr r3, [r3, #16]
  77545. 801f95c: 899b ldrh r3, [r3, #12]
  77546. 801f95e: b29b uxth r3, r3
  77547. 801f960: 4618 mov r0, r3
  77548. 801f962: f7f8 fe79 bl 8018658 <lwip_htons>
  77549. 801f966: 4603 mov r3, r0
  77550. 801f968: b2db uxtb r3, r3
  77551. 801f96a: f003 0304 and.w r3, r3, #4
  77552. 801f96e: 2b00 cmp r3, #0
  77553. 801f970: d006 beq.n 801f980 <tcp_output+0x18c>
  77554. 801f972: 4b2f ldr r3, [pc, #188] @ (801fa30 <tcp_output+0x23c>)
  77555. 801f974: f240 5236 movw r2, #1334 @ 0x536
  77556. 801f978: 4932 ldr r1, [pc, #200] @ (801fa44 <tcp_output+0x250>)
  77557. 801f97a: 482f ldr r0, [pc, #188] @ (801fa38 <tcp_output+0x244>)
  77558. 801f97c: f009 fdc6 bl 802950c <iprintf>
  77559. * - if tcp_write had a memory error before (prevent delayed ACK timeout) or
  77560. * - if FIN was already enqueued for this PCB (SYN is always alone in a segment -
  77561. * either seg->next != NULL or pcb->unacked == NULL;
  77562. * RST is no sent using tcp_write/tcp_output.
  77563. */
  77564. if ((tcp_do_output_nagle(pcb) == 0) &&
  77565. 801f980: 687b ldr r3, [r7, #4]
  77566. 801f982: 6f1b ldr r3, [r3, #112] @ 0x70
  77567. 801f984: 2b00 cmp r3, #0
  77568. 801f986: d01f beq.n 801f9c8 <tcp_output+0x1d4>
  77569. 801f988: 687b ldr r3, [r7, #4]
  77570. 801f98a: 8b5b ldrh r3, [r3, #26]
  77571. 801f98c: f003 0344 and.w r3, r3, #68 @ 0x44
  77572. 801f990: 2b00 cmp r3, #0
  77573. 801f992: d119 bne.n 801f9c8 <tcp_output+0x1d4>
  77574. 801f994: 687b ldr r3, [r7, #4]
  77575. 801f996: 6edb ldr r3, [r3, #108] @ 0x6c
  77576. 801f998: 2b00 cmp r3, #0
  77577. 801f99a: d00b beq.n 801f9b4 <tcp_output+0x1c0>
  77578. 801f99c: 687b ldr r3, [r7, #4]
  77579. 801f99e: 6edb ldr r3, [r3, #108] @ 0x6c
  77580. 801f9a0: 681b ldr r3, [r3, #0]
  77581. 801f9a2: 2b00 cmp r3, #0
  77582. 801f9a4: d110 bne.n 801f9c8 <tcp_output+0x1d4>
  77583. 801f9a6: 687b ldr r3, [r7, #4]
  77584. 801f9a8: 6edb ldr r3, [r3, #108] @ 0x6c
  77585. 801f9aa: 891a ldrh r2, [r3, #8]
  77586. 801f9ac: 687b ldr r3, [r7, #4]
  77587. 801f9ae: 8e5b ldrh r3, [r3, #50] @ 0x32
  77588. 801f9b0: 429a cmp r2, r3
  77589. 801f9b2: d209 bcs.n 801f9c8 <tcp_output+0x1d4>
  77590. 801f9b4: 687b ldr r3, [r7, #4]
  77591. 801f9b6: f8b3 3064 ldrh.w r3, [r3, #100] @ 0x64
  77592. 801f9ba: 2b00 cmp r3, #0
  77593. 801f9bc: d004 beq.n 801f9c8 <tcp_output+0x1d4>
  77594. 801f9be: 687b ldr r3, [r7, #4]
  77595. 801f9c0: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  77596. 801f9c4: 2b0f cmp r3, #15
  77597. 801f9c6: d901 bls.n 801f9cc <tcp_output+0x1d8>
  77598. 801f9c8: 2301 movs r3, #1
  77599. 801f9ca: e000 b.n 801f9ce <tcp_output+0x1da>
  77600. 801f9cc: 2300 movs r3, #0
  77601. 801f9ce: 2b00 cmp r3, #0
  77602. 801f9d0: d106 bne.n 801f9e0 <tcp_output+0x1ec>
  77603. ((pcb->flags & (TF_NAGLEMEMERR | TF_FIN)) == 0)) {
  77604. 801f9d2: 687b ldr r3, [r7, #4]
  77605. 801f9d4: 8b5b ldrh r3, [r3, #26]
  77606. 801f9d6: f003 03a0 and.w r3, r3, #160 @ 0xa0
  77607. if ((tcp_do_output_nagle(pcb) == 0) &&
  77608. 801f9da: 2b00 cmp r3, #0
  77609. 801f9dc: f000 80e7 beq.w 801fbae <tcp_output+0x3ba>
  77610. pcb->lastack,
  77611. lwip_ntohl(seg->tcphdr->seqno), pcb->lastack, i));
  77612. ++i;
  77613. #endif /* TCP_CWND_DEBUG */
  77614. if (pcb->state != SYN_SENT) {
  77615. 801f9e0: 687b ldr r3, [r7, #4]
  77616. 801f9e2: 7d1b ldrb r3, [r3, #20]
  77617. 801f9e4: 2b02 cmp r3, #2
  77618. 801f9e6: d00d beq.n 801fa04 <tcp_output+0x210>
  77619. TCPH_SET_FLAG(seg->tcphdr, TCP_ACK);
  77620. 801f9e8: 6a7b ldr r3, [r7, #36] @ 0x24
  77621. 801f9ea: 691b ldr r3, [r3, #16]
  77622. 801f9ec: 899b ldrh r3, [r3, #12]
  77623. 801f9ee: b29c uxth r4, r3
  77624. 801f9f0: 2010 movs r0, #16
  77625. 801f9f2: f7f8 fe31 bl 8018658 <lwip_htons>
  77626. 801f9f6: 4603 mov r3, r0
  77627. 801f9f8: 461a mov r2, r3
  77628. 801f9fa: 6a7b ldr r3, [r7, #36] @ 0x24
  77629. 801f9fc: 691b ldr r3, [r3, #16]
  77630. 801f9fe: 4322 orrs r2, r4
  77631. 801fa00: b292 uxth r2, r2
  77632. 801fa02: 819a strh r2, [r3, #12]
  77633. }
  77634. err = tcp_output_segment(seg, pcb, netif);
  77635. 801fa04: 697a ldr r2, [r7, #20]
  77636. 801fa06: 6879 ldr r1, [r7, #4]
  77637. 801fa08: 6a78 ldr r0, [r7, #36] @ 0x24
  77638. 801fa0a: f000 f90b bl 801fc24 <tcp_output_segment>
  77639. 801fa0e: 4603 mov r3, r0
  77640. 801fa10: 73fb strb r3, [r7, #15]
  77641. if (err != ERR_OK) {
  77642. 801fa12: f997 300f ldrsb.w r3, [r7, #15]
  77643. 801fa16: 2b00 cmp r3, #0
  77644. 801fa18: d016 beq.n 801fa48 <tcp_output+0x254>
  77645. /* segment could not be sent, for whatever reason */
  77646. tcp_set_flags(pcb, TF_NAGLEMEMERR);
  77647. 801fa1a: 687b ldr r3, [r7, #4]
  77648. 801fa1c: 8b5b ldrh r3, [r3, #26]
  77649. 801fa1e: f043 0380 orr.w r3, r3, #128 @ 0x80
  77650. 801fa22: b29a uxth r2, r3
  77651. 801fa24: 687b ldr r3, [r7, #4]
  77652. 801fa26: 835a strh r2, [r3, #26]
  77653. return err;
  77654. 801fa28: f997 300f ldrsb.w r3, [r7, #15]
  77655. 801fa2c: e0d6 b.n 801fbdc <tcp_output+0x3e8>
  77656. 801fa2e: bf00 nop
  77657. 801fa30: 0802ed24 .word 0x0802ed24
  77658. 801fa34: 0802f2c4 .word 0x0802f2c4
  77659. 801fa38: 0802ed78 .word 0x0802ed78
  77660. 801fa3c: 0802f2dc .word 0x0802f2dc
  77661. 801fa40: 2402a03c .word 0x2402a03c
  77662. 801fa44: 0802f304 .word 0x0802f304
  77663. }
  77664. #if TCP_OVERSIZE_DBGCHECK
  77665. seg->oversize_left = 0;
  77666. 801fa48: 6a7b ldr r3, [r7, #36] @ 0x24
  77667. 801fa4a: 2200 movs r2, #0
  77668. 801fa4c: 815a strh r2, [r3, #10]
  77669. #endif /* TCP_OVERSIZE_DBGCHECK */
  77670. pcb->unsent = seg->next;
  77671. 801fa4e: 6a7b ldr r3, [r7, #36] @ 0x24
  77672. 801fa50: 681a ldr r2, [r3, #0]
  77673. 801fa52: 687b ldr r3, [r7, #4]
  77674. 801fa54: 66da str r2, [r3, #108] @ 0x6c
  77675. if (pcb->state != SYN_SENT) {
  77676. 801fa56: 687b ldr r3, [r7, #4]
  77677. 801fa58: 7d1b ldrb r3, [r3, #20]
  77678. 801fa5a: 2b02 cmp r3, #2
  77679. 801fa5c: d006 beq.n 801fa6c <tcp_output+0x278>
  77680. tcp_clear_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW);
  77681. 801fa5e: 687b ldr r3, [r7, #4]
  77682. 801fa60: 8b5b ldrh r3, [r3, #26]
  77683. 801fa62: f023 0303 bic.w r3, r3, #3
  77684. 801fa66: b29a uxth r2, r3
  77685. 801fa68: 687b ldr r3, [r7, #4]
  77686. 801fa6a: 835a strh r2, [r3, #26]
  77687. }
  77688. snd_nxt = lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg);
  77689. 801fa6c: 6a7b ldr r3, [r7, #36] @ 0x24
  77690. 801fa6e: 691b ldr r3, [r3, #16]
  77691. 801fa70: 685b ldr r3, [r3, #4]
  77692. 801fa72: 4618 mov r0, r3
  77693. 801fa74: f7f8 fe05 bl 8018682 <lwip_htonl>
  77694. 801fa78: 4604 mov r4, r0
  77695. 801fa7a: 6a7b ldr r3, [r7, #36] @ 0x24
  77696. 801fa7c: 891b ldrh r3, [r3, #8]
  77697. 801fa7e: 461d mov r5, r3
  77698. 801fa80: 6a7b ldr r3, [r7, #36] @ 0x24
  77699. 801fa82: 691b ldr r3, [r3, #16]
  77700. 801fa84: 899b ldrh r3, [r3, #12]
  77701. 801fa86: b29b uxth r3, r3
  77702. 801fa88: 4618 mov r0, r3
  77703. 801fa8a: f7f8 fde5 bl 8018658 <lwip_htons>
  77704. 801fa8e: 4603 mov r3, r0
  77705. 801fa90: b2db uxtb r3, r3
  77706. 801fa92: f003 0303 and.w r3, r3, #3
  77707. 801fa96: 2b00 cmp r3, #0
  77708. 801fa98: d001 beq.n 801fa9e <tcp_output+0x2aa>
  77709. 801fa9a: 2301 movs r3, #1
  77710. 801fa9c: e000 b.n 801faa0 <tcp_output+0x2ac>
  77711. 801fa9e: 2300 movs r3, #0
  77712. 801faa0: 442b add r3, r5
  77713. 801faa2: 4423 add r3, r4
  77714. 801faa4: 60bb str r3, [r7, #8]
  77715. if (TCP_SEQ_LT(pcb->snd_nxt, snd_nxt)) {
  77716. 801faa6: 687b ldr r3, [r7, #4]
  77717. 801faa8: 6d1a ldr r2, [r3, #80] @ 0x50
  77718. 801faaa: 68bb ldr r3, [r7, #8]
  77719. 801faac: 1ad3 subs r3, r2, r3
  77720. 801faae: 2b00 cmp r3, #0
  77721. 801fab0: da02 bge.n 801fab8 <tcp_output+0x2c4>
  77722. pcb->snd_nxt = snd_nxt;
  77723. 801fab2: 687b ldr r3, [r7, #4]
  77724. 801fab4: 68ba ldr r2, [r7, #8]
  77725. 801fab6: 651a str r2, [r3, #80] @ 0x50
  77726. }
  77727. /* put segment on unacknowledged list if length > 0 */
  77728. if (TCP_TCPLEN(seg) > 0) {
  77729. 801fab8: 6a7b ldr r3, [r7, #36] @ 0x24
  77730. 801faba: 891b ldrh r3, [r3, #8]
  77731. 801fabc: 461c mov r4, r3
  77732. 801fabe: 6a7b ldr r3, [r7, #36] @ 0x24
  77733. 801fac0: 691b ldr r3, [r3, #16]
  77734. 801fac2: 899b ldrh r3, [r3, #12]
  77735. 801fac4: b29b uxth r3, r3
  77736. 801fac6: 4618 mov r0, r3
  77737. 801fac8: f7f8 fdc6 bl 8018658 <lwip_htons>
  77738. 801facc: 4603 mov r3, r0
  77739. 801face: b2db uxtb r3, r3
  77740. 801fad0: f003 0303 and.w r3, r3, #3
  77741. 801fad4: 2b00 cmp r3, #0
  77742. 801fad6: d001 beq.n 801fadc <tcp_output+0x2e8>
  77743. 801fad8: 2301 movs r3, #1
  77744. 801fada: e000 b.n 801fade <tcp_output+0x2ea>
  77745. 801fadc: 2300 movs r3, #0
  77746. 801fade: 4423 add r3, r4
  77747. 801fae0: 2b00 cmp r3, #0
  77748. 801fae2: d049 beq.n 801fb78 <tcp_output+0x384>
  77749. seg->next = NULL;
  77750. 801fae4: 6a7b ldr r3, [r7, #36] @ 0x24
  77751. 801fae6: 2200 movs r2, #0
  77752. 801fae8: 601a str r2, [r3, #0]
  77753. /* unacked list is empty? */
  77754. if (pcb->unacked == NULL) {
  77755. 801faea: 687b ldr r3, [r7, #4]
  77756. 801faec: 6f1b ldr r3, [r3, #112] @ 0x70
  77757. 801faee: 2b00 cmp r3, #0
  77758. 801faf0: d105 bne.n 801fafe <tcp_output+0x30a>
  77759. pcb->unacked = seg;
  77760. 801faf2: 687b ldr r3, [r7, #4]
  77761. 801faf4: 6a7a ldr r2, [r7, #36] @ 0x24
  77762. 801faf6: 671a str r2, [r3, #112] @ 0x70
  77763. useg = seg;
  77764. 801faf8: 6a7b ldr r3, [r7, #36] @ 0x24
  77765. 801fafa: 623b str r3, [r7, #32]
  77766. 801fafc: e03f b.n 801fb7e <tcp_output+0x38a>
  77767. /* unacked list is not empty? */
  77768. } else {
  77769. /* In the case of fast retransmit, the packet should not go to the tail
  77770. * of the unacked queue, but rather somewhere before it. We need to check for
  77771. * this case. -STJ Jul 27, 2004 */
  77772. if (TCP_SEQ_LT(lwip_ntohl(seg->tcphdr->seqno), lwip_ntohl(useg->tcphdr->seqno))) {
  77773. 801fafe: 6a7b ldr r3, [r7, #36] @ 0x24
  77774. 801fb00: 691b ldr r3, [r3, #16]
  77775. 801fb02: 685b ldr r3, [r3, #4]
  77776. 801fb04: 4618 mov r0, r3
  77777. 801fb06: f7f8 fdbc bl 8018682 <lwip_htonl>
  77778. 801fb0a: 4604 mov r4, r0
  77779. 801fb0c: 6a3b ldr r3, [r7, #32]
  77780. 801fb0e: 691b ldr r3, [r3, #16]
  77781. 801fb10: 685b ldr r3, [r3, #4]
  77782. 801fb12: 4618 mov r0, r3
  77783. 801fb14: f7f8 fdb5 bl 8018682 <lwip_htonl>
  77784. 801fb18: 4603 mov r3, r0
  77785. 801fb1a: 1ae3 subs r3, r4, r3
  77786. 801fb1c: 2b00 cmp r3, #0
  77787. 801fb1e: da24 bge.n 801fb6a <tcp_output+0x376>
  77788. /* add segment to before tail of unacked list, keeping the list sorted */
  77789. struct tcp_seg **cur_seg = &(pcb->unacked);
  77790. 801fb20: 687b ldr r3, [r7, #4]
  77791. 801fb22: 3370 adds r3, #112 @ 0x70
  77792. 801fb24: 61fb str r3, [r7, #28]
  77793. while (*cur_seg &&
  77794. 801fb26: e002 b.n 801fb2e <tcp_output+0x33a>
  77795. TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) {
  77796. cur_seg = &((*cur_seg)->next );
  77797. 801fb28: 69fb ldr r3, [r7, #28]
  77798. 801fb2a: 681b ldr r3, [r3, #0]
  77799. 801fb2c: 61fb str r3, [r7, #28]
  77800. while (*cur_seg &&
  77801. 801fb2e: 69fb ldr r3, [r7, #28]
  77802. 801fb30: 681b ldr r3, [r3, #0]
  77803. 801fb32: 2b00 cmp r3, #0
  77804. 801fb34: d011 beq.n 801fb5a <tcp_output+0x366>
  77805. TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) {
  77806. 801fb36: 69fb ldr r3, [r7, #28]
  77807. 801fb38: 681b ldr r3, [r3, #0]
  77808. 801fb3a: 691b ldr r3, [r3, #16]
  77809. 801fb3c: 685b ldr r3, [r3, #4]
  77810. 801fb3e: 4618 mov r0, r3
  77811. 801fb40: f7f8 fd9f bl 8018682 <lwip_htonl>
  77812. 801fb44: 4604 mov r4, r0
  77813. 801fb46: 6a7b ldr r3, [r7, #36] @ 0x24
  77814. 801fb48: 691b ldr r3, [r3, #16]
  77815. 801fb4a: 685b ldr r3, [r3, #4]
  77816. 801fb4c: 4618 mov r0, r3
  77817. 801fb4e: f7f8 fd98 bl 8018682 <lwip_htonl>
  77818. 801fb52: 4603 mov r3, r0
  77819. 801fb54: 1ae3 subs r3, r4, r3
  77820. while (*cur_seg &&
  77821. 801fb56: 2b00 cmp r3, #0
  77822. 801fb58: dbe6 blt.n 801fb28 <tcp_output+0x334>
  77823. }
  77824. seg->next = (*cur_seg);
  77825. 801fb5a: 69fb ldr r3, [r7, #28]
  77826. 801fb5c: 681a ldr r2, [r3, #0]
  77827. 801fb5e: 6a7b ldr r3, [r7, #36] @ 0x24
  77828. 801fb60: 601a str r2, [r3, #0]
  77829. (*cur_seg) = seg;
  77830. 801fb62: 69fb ldr r3, [r7, #28]
  77831. 801fb64: 6a7a ldr r2, [r7, #36] @ 0x24
  77832. 801fb66: 601a str r2, [r3, #0]
  77833. 801fb68: e009 b.n 801fb7e <tcp_output+0x38a>
  77834. } else {
  77835. /* add segment to tail of unacked list */
  77836. useg->next = seg;
  77837. 801fb6a: 6a3b ldr r3, [r7, #32]
  77838. 801fb6c: 6a7a ldr r2, [r7, #36] @ 0x24
  77839. 801fb6e: 601a str r2, [r3, #0]
  77840. useg = useg->next;
  77841. 801fb70: 6a3b ldr r3, [r7, #32]
  77842. 801fb72: 681b ldr r3, [r3, #0]
  77843. 801fb74: 623b str r3, [r7, #32]
  77844. 801fb76: e002 b.n 801fb7e <tcp_output+0x38a>
  77845. }
  77846. }
  77847. /* do not queue empty segments on the unacked list */
  77848. } else {
  77849. tcp_seg_free(seg);
  77850. 801fb78: 6a78 ldr r0, [r7, #36] @ 0x24
  77851. 801fb7a: f7fb fea8 bl 801b8ce <tcp_seg_free>
  77852. }
  77853. seg = pcb->unsent;
  77854. 801fb7e: 687b ldr r3, [r7, #4]
  77855. 801fb80: 6edb ldr r3, [r3, #108] @ 0x6c
  77856. 801fb82: 627b str r3, [r7, #36] @ 0x24
  77857. while (seg != NULL &&
  77858. 801fb84: 6a7b ldr r3, [r7, #36] @ 0x24
  77859. 801fb86: 2b00 cmp r3, #0
  77860. 801fb88: d012 beq.n 801fbb0 <tcp_output+0x3bc>
  77861. lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len <= wnd) {
  77862. 801fb8a: 6a7b ldr r3, [r7, #36] @ 0x24
  77863. 801fb8c: 691b ldr r3, [r3, #16]
  77864. 801fb8e: 685b ldr r3, [r3, #4]
  77865. 801fb90: 4618 mov r0, r3
  77866. 801fb92: f7f8 fd76 bl 8018682 <lwip_htonl>
  77867. 801fb96: 4602 mov r2, r0
  77868. 801fb98: 687b ldr r3, [r7, #4]
  77869. 801fb9a: 6c5b ldr r3, [r3, #68] @ 0x44
  77870. 801fb9c: 1ad3 subs r3, r2, r3
  77871. 801fb9e: 6a7a ldr r2, [r7, #36] @ 0x24
  77872. 801fba0: 8912 ldrh r2, [r2, #8]
  77873. 801fba2: 4413 add r3, r2
  77874. while (seg != NULL &&
  77875. 801fba4: 69ba ldr r2, [r7, #24]
  77876. 801fba6: 429a cmp r2, r3
  77877. 801fba8: f4bf aed6 bcs.w 801f958 <tcp_output+0x164>
  77878. 801fbac: e000 b.n 801fbb0 <tcp_output+0x3bc>
  77879. break;
  77880. 801fbae: bf00 nop
  77881. }
  77882. #if TCP_OVERSIZE
  77883. if (pcb->unsent == NULL) {
  77884. 801fbb0: 687b ldr r3, [r7, #4]
  77885. 801fbb2: 6edb ldr r3, [r3, #108] @ 0x6c
  77886. 801fbb4: 2b00 cmp r3, #0
  77887. 801fbb6: d108 bne.n 801fbca <tcp_output+0x3d6>
  77888. /* last unsent has been removed, reset unsent_oversize */
  77889. pcb->unsent_oversize = 0;
  77890. 801fbb8: 687b ldr r3, [r7, #4]
  77891. 801fbba: 2200 movs r2, #0
  77892. 801fbbc: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  77893. 801fbc0: e004 b.n 801fbcc <tcp_output+0x3d8>
  77894. goto output_done;
  77895. 801fbc2: bf00 nop
  77896. 801fbc4: e002 b.n 801fbcc <tcp_output+0x3d8>
  77897. goto output_done;
  77898. 801fbc6: bf00 nop
  77899. 801fbc8: e000 b.n 801fbcc <tcp_output+0x3d8>
  77900. }
  77901. #endif /* TCP_OVERSIZE */
  77902. output_done:
  77903. 801fbca: bf00 nop
  77904. tcp_clear_flags(pcb, TF_NAGLEMEMERR);
  77905. 801fbcc: 687b ldr r3, [r7, #4]
  77906. 801fbce: 8b5b ldrh r3, [r3, #26]
  77907. 801fbd0: f023 0380 bic.w r3, r3, #128 @ 0x80
  77908. 801fbd4: b29a uxth r2, r3
  77909. 801fbd6: 687b ldr r3, [r7, #4]
  77910. 801fbd8: 835a strh r2, [r3, #26]
  77911. return ERR_OK;
  77912. 801fbda: 2300 movs r3, #0
  77913. }
  77914. 801fbdc: 4618 mov r0, r3
  77915. 801fbde: 3728 adds r7, #40 @ 0x28
  77916. 801fbe0: 46bd mov sp, r7
  77917. 801fbe2: bdb0 pop {r4, r5, r7, pc}
  77918. 0801fbe4 <tcp_output_segment_busy>:
  77919. * @arg seg the tcp segment to check
  77920. * @return 1 if ref != 1, 0 if ref == 1
  77921. */
  77922. static int
  77923. tcp_output_segment_busy(const struct tcp_seg *seg)
  77924. {
  77925. 801fbe4: b580 push {r7, lr}
  77926. 801fbe6: b082 sub sp, #8
  77927. 801fbe8: af00 add r7, sp, #0
  77928. 801fbea: 6078 str r0, [r7, #4]
  77929. LWIP_ASSERT("tcp_output_segment_busy: invalid seg", seg != NULL);
  77930. 801fbec: 687b ldr r3, [r7, #4]
  77931. 801fbee: 2b00 cmp r3, #0
  77932. 801fbf0: d106 bne.n 801fc00 <tcp_output_segment_busy+0x1c>
  77933. 801fbf2: 4b09 ldr r3, [pc, #36] @ (801fc18 <tcp_output_segment_busy+0x34>)
  77934. 801fbf4: f240 529a movw r2, #1434 @ 0x59a
  77935. 801fbf8: 4908 ldr r1, [pc, #32] @ (801fc1c <tcp_output_segment_busy+0x38>)
  77936. 801fbfa: 4809 ldr r0, [pc, #36] @ (801fc20 <tcp_output_segment_busy+0x3c>)
  77937. 801fbfc: f009 fc86 bl 802950c <iprintf>
  77938. /* We only need to check the first pbuf here:
  77939. If a pbuf is queued for transmission, a driver calls pbuf_ref(),
  77940. which only changes the ref count of the first pbuf */
  77941. if (seg->p->ref != 1) {
  77942. 801fc00: 687b ldr r3, [r7, #4]
  77943. 801fc02: 685b ldr r3, [r3, #4]
  77944. 801fc04: 7b9b ldrb r3, [r3, #14]
  77945. 801fc06: 2b01 cmp r3, #1
  77946. 801fc08: d001 beq.n 801fc0e <tcp_output_segment_busy+0x2a>
  77947. /* other reference found */
  77948. return 1;
  77949. 801fc0a: 2301 movs r3, #1
  77950. 801fc0c: e000 b.n 801fc10 <tcp_output_segment_busy+0x2c>
  77951. }
  77952. /* no other references found */
  77953. return 0;
  77954. 801fc0e: 2300 movs r3, #0
  77955. }
  77956. 801fc10: 4618 mov r0, r3
  77957. 801fc12: 3708 adds r7, #8
  77958. 801fc14: 46bd mov sp, r7
  77959. 801fc16: bd80 pop {r7, pc}
  77960. 801fc18: 0802ed24 .word 0x0802ed24
  77961. 801fc1c: 0802f31c .word 0x0802f31c
  77962. 801fc20: 0802ed78 .word 0x0802ed78
  77963. 0801fc24 <tcp_output_segment>:
  77964. * @param pcb the tcp_pcb for the TCP connection used to send the segment
  77965. * @param netif the netif used to send the segment
  77966. */
  77967. static err_t
  77968. tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb, struct netif *netif)
  77969. {
  77970. 801fc24: b5b0 push {r4, r5, r7, lr}
  77971. 801fc26: b08c sub sp, #48 @ 0x30
  77972. 801fc28: af04 add r7, sp, #16
  77973. 801fc2a: 60f8 str r0, [r7, #12]
  77974. 801fc2c: 60b9 str r1, [r7, #8]
  77975. 801fc2e: 607a str r2, [r7, #4]
  77976. u32_t *opts;
  77977. #if TCP_CHECKSUM_ON_COPY
  77978. int seg_chksum_was_swapped = 0;
  77979. #endif
  77980. LWIP_ASSERT("tcp_output_segment: invalid seg", seg != NULL);
  77981. 801fc30: 68fb ldr r3, [r7, #12]
  77982. 801fc32: 2b00 cmp r3, #0
  77983. 801fc34: d106 bne.n 801fc44 <tcp_output_segment+0x20>
  77984. 801fc36: 4b64 ldr r3, [pc, #400] @ (801fdc8 <tcp_output_segment+0x1a4>)
  77985. 801fc38: f44f 62b7 mov.w r2, #1464 @ 0x5b8
  77986. 801fc3c: 4963 ldr r1, [pc, #396] @ (801fdcc <tcp_output_segment+0x1a8>)
  77987. 801fc3e: 4864 ldr r0, [pc, #400] @ (801fdd0 <tcp_output_segment+0x1ac>)
  77988. 801fc40: f009 fc64 bl 802950c <iprintf>
  77989. LWIP_ASSERT("tcp_output_segment: invalid pcb", pcb != NULL);
  77990. 801fc44: 68bb ldr r3, [r7, #8]
  77991. 801fc46: 2b00 cmp r3, #0
  77992. 801fc48: d106 bne.n 801fc58 <tcp_output_segment+0x34>
  77993. 801fc4a: 4b5f ldr r3, [pc, #380] @ (801fdc8 <tcp_output_segment+0x1a4>)
  77994. 801fc4c: f240 52b9 movw r2, #1465 @ 0x5b9
  77995. 801fc50: 4960 ldr r1, [pc, #384] @ (801fdd4 <tcp_output_segment+0x1b0>)
  77996. 801fc52: 485f ldr r0, [pc, #380] @ (801fdd0 <tcp_output_segment+0x1ac>)
  77997. 801fc54: f009 fc5a bl 802950c <iprintf>
  77998. LWIP_ASSERT("tcp_output_segment: invalid netif", netif != NULL);
  77999. 801fc58: 687b ldr r3, [r7, #4]
  78000. 801fc5a: 2b00 cmp r3, #0
  78001. 801fc5c: d106 bne.n 801fc6c <tcp_output_segment+0x48>
  78002. 801fc5e: 4b5a ldr r3, [pc, #360] @ (801fdc8 <tcp_output_segment+0x1a4>)
  78003. 801fc60: f240 52ba movw r2, #1466 @ 0x5ba
  78004. 801fc64: 495c ldr r1, [pc, #368] @ (801fdd8 <tcp_output_segment+0x1b4>)
  78005. 801fc66: 485a ldr r0, [pc, #360] @ (801fdd0 <tcp_output_segment+0x1ac>)
  78006. 801fc68: f009 fc50 bl 802950c <iprintf>
  78007. if (tcp_output_segment_busy(seg)) {
  78008. 801fc6c: 68f8 ldr r0, [r7, #12]
  78009. 801fc6e: f7ff ffb9 bl 801fbe4 <tcp_output_segment_busy>
  78010. 801fc72: 4603 mov r3, r0
  78011. 801fc74: 2b00 cmp r3, #0
  78012. 801fc76: d001 beq.n 801fc7c <tcp_output_segment+0x58>
  78013. /* This should not happen: rexmit functions should have checked this.
  78014. However, since this function modifies p->len, we must not continue in this case. */
  78015. LWIP_DEBUGF(TCP_RTO_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_output_segment: segment busy\n"));
  78016. return ERR_OK;
  78017. 801fc78: 2300 movs r3, #0
  78018. 801fc7a: e0a1 b.n 801fdc0 <tcp_output_segment+0x19c>
  78019. }
  78020. /* The TCP header has already been constructed, but the ackno and
  78021. wnd fields remain. */
  78022. seg->tcphdr->ackno = lwip_htonl(pcb->rcv_nxt);
  78023. 801fc7c: 68bb ldr r3, [r7, #8]
  78024. 801fc7e: 6a5a ldr r2, [r3, #36] @ 0x24
  78025. 801fc80: 68fb ldr r3, [r7, #12]
  78026. 801fc82: 691c ldr r4, [r3, #16]
  78027. 801fc84: 4610 mov r0, r2
  78028. 801fc86: f7f8 fcfc bl 8018682 <lwip_htonl>
  78029. 801fc8a: 4603 mov r3, r0
  78030. 801fc8c: 60a3 str r3, [r4, #8]
  78031. the window scale option) is never scaled. */
  78032. seg->tcphdr->wnd = lwip_htons(TCPWND_MIN16(pcb->rcv_ann_wnd));
  78033. } else
  78034. #endif /* LWIP_WND_SCALE */
  78035. {
  78036. seg->tcphdr->wnd = lwip_htons(TCPWND_MIN16(RCV_WND_SCALE(pcb, pcb->rcv_ann_wnd)));
  78037. 801fc8e: 68bb ldr r3, [r7, #8]
  78038. 801fc90: 8d5a ldrh r2, [r3, #42] @ 0x2a
  78039. 801fc92: 68fb ldr r3, [r7, #12]
  78040. 801fc94: 691c ldr r4, [r3, #16]
  78041. 801fc96: 4610 mov r0, r2
  78042. 801fc98: f7f8 fcde bl 8018658 <lwip_htons>
  78043. 801fc9c: 4603 mov r3, r0
  78044. 801fc9e: 81e3 strh r3, [r4, #14]
  78045. }
  78046. pcb->rcv_ann_right_edge = pcb->rcv_nxt + pcb->rcv_ann_wnd;
  78047. 801fca0: 68bb ldr r3, [r7, #8]
  78048. 801fca2: 6a5b ldr r3, [r3, #36] @ 0x24
  78049. 801fca4: 68ba ldr r2, [r7, #8]
  78050. 801fca6: 8d52 ldrh r2, [r2, #42] @ 0x2a
  78051. 801fca8: 441a add r2, r3
  78052. 801fcaa: 68bb ldr r3, [r7, #8]
  78053. 801fcac: 62da str r2, [r3, #44] @ 0x2c
  78054. /* Add any requested options. NB MSS option is only set on SYN
  78055. packets, so ignore it here */
  78056. /* cast through void* to get rid of alignment warnings */
  78057. opts = (u32_t *)(void *)(seg->tcphdr + 1);
  78058. 801fcae: 68fb ldr r3, [r7, #12]
  78059. 801fcb0: 691b ldr r3, [r3, #16]
  78060. 801fcb2: 3314 adds r3, #20
  78061. 801fcb4: 61fb str r3, [r7, #28]
  78062. if (seg->flags & TF_SEG_OPTS_MSS) {
  78063. 801fcb6: 68fb ldr r3, [r7, #12]
  78064. 801fcb8: 7b1b ldrb r3, [r3, #12]
  78065. 801fcba: f003 0301 and.w r3, r3, #1
  78066. 801fcbe: 2b00 cmp r3, #0
  78067. 801fcc0: d015 beq.n 801fcee <tcp_output_segment+0xca>
  78068. u16_t mss;
  78069. #if TCP_CALCULATE_EFF_SEND_MSS
  78070. mss = tcp_eff_send_mss_netif(TCP_MSS, netif, &pcb->remote_ip);
  78071. 801fcc2: 68bb ldr r3, [r7, #8]
  78072. 801fcc4: 3304 adds r3, #4
  78073. 801fcc6: 461a mov r2, r3
  78074. 801fcc8: 6879 ldr r1, [r7, #4]
  78075. 801fcca: f240 50b4 movw r0, #1460 @ 0x5b4
  78076. 801fcce: f7fc f9cd bl 801c06c <tcp_eff_send_mss_netif>
  78077. 801fcd2: 4603 mov r3, r0
  78078. 801fcd4: 837b strh r3, [r7, #26]
  78079. #else /* TCP_CALCULATE_EFF_SEND_MSS */
  78080. mss = TCP_MSS;
  78081. #endif /* TCP_CALCULATE_EFF_SEND_MSS */
  78082. *opts = TCP_BUILD_MSS_OPTION(mss);
  78083. 801fcd6: 8b7b ldrh r3, [r7, #26]
  78084. 801fcd8: f043 7301 orr.w r3, r3, #33816576 @ 0x2040000
  78085. 801fcdc: 4618 mov r0, r3
  78086. 801fcde: f7f8 fcd0 bl 8018682 <lwip_htonl>
  78087. 801fce2: 4602 mov r2, r0
  78088. 801fce4: 69fb ldr r3, [r7, #28]
  78089. 801fce6: 601a str r2, [r3, #0]
  78090. opts += 1;
  78091. 801fce8: 69fb ldr r3, [r7, #28]
  78092. 801fcea: 3304 adds r3, #4
  78093. 801fcec: 61fb str r3, [r7, #28]
  78094. }
  78095. #endif
  78096. /* Set retransmission timer running if it is not currently enabled
  78097. This must be set before checking the route. */
  78098. if (pcb->rtime < 0) {
  78099. 801fcee: 68bb ldr r3, [r7, #8]
  78100. 801fcf0: f9b3 3030 ldrsh.w r3, [r3, #48] @ 0x30
  78101. 801fcf4: 2b00 cmp r3, #0
  78102. 801fcf6: da02 bge.n 801fcfe <tcp_output_segment+0xda>
  78103. pcb->rtime = 0;
  78104. 801fcf8: 68bb ldr r3, [r7, #8]
  78105. 801fcfa: 2200 movs r2, #0
  78106. 801fcfc: 861a strh r2, [r3, #48] @ 0x30
  78107. }
  78108. if (pcb->rttest == 0) {
  78109. 801fcfe: 68bb ldr r3, [r7, #8]
  78110. 801fd00: 6b5b ldr r3, [r3, #52] @ 0x34
  78111. 801fd02: 2b00 cmp r3, #0
  78112. 801fd04: d10c bne.n 801fd20 <tcp_output_segment+0xfc>
  78113. pcb->rttest = tcp_ticks;
  78114. 801fd06: 4b35 ldr r3, [pc, #212] @ (801fddc <tcp_output_segment+0x1b8>)
  78115. 801fd08: 681a ldr r2, [r3, #0]
  78116. 801fd0a: 68bb ldr r3, [r7, #8]
  78117. 801fd0c: 635a str r2, [r3, #52] @ 0x34
  78118. pcb->rtseq = lwip_ntohl(seg->tcphdr->seqno);
  78119. 801fd0e: 68fb ldr r3, [r7, #12]
  78120. 801fd10: 691b ldr r3, [r3, #16]
  78121. 801fd12: 685b ldr r3, [r3, #4]
  78122. 801fd14: 4618 mov r0, r3
  78123. 801fd16: f7f8 fcb4 bl 8018682 <lwip_htonl>
  78124. 801fd1a: 4602 mov r2, r0
  78125. 801fd1c: 68bb ldr r3, [r7, #8]
  78126. 801fd1e: 639a str r2, [r3, #56] @ 0x38
  78127. }
  78128. LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_output_segment: %"U32_F":%"U32_F"\n",
  78129. lwip_htonl(seg->tcphdr->seqno), lwip_htonl(seg->tcphdr->seqno) +
  78130. seg->len));
  78131. len = (u16_t)((u8_t *)seg->tcphdr - (u8_t *)seg->p->payload);
  78132. 801fd20: 68fb ldr r3, [r7, #12]
  78133. 801fd22: 691a ldr r2, [r3, #16]
  78134. 801fd24: 68fb ldr r3, [r7, #12]
  78135. 801fd26: 685b ldr r3, [r3, #4]
  78136. 801fd28: 685b ldr r3, [r3, #4]
  78137. 801fd2a: 1ad3 subs r3, r2, r3
  78138. 801fd2c: 833b strh r3, [r7, #24]
  78139. if (len == 0) {
  78140. /** Exclude retransmitted segments from this count. */
  78141. MIB2_STATS_INC(mib2.tcpoutsegs);
  78142. }
  78143. seg->p->len -= len;
  78144. 801fd2e: 68fb ldr r3, [r7, #12]
  78145. 801fd30: 685b ldr r3, [r3, #4]
  78146. 801fd32: 8959 ldrh r1, [r3, #10]
  78147. 801fd34: 68fb ldr r3, [r7, #12]
  78148. 801fd36: 685b ldr r3, [r3, #4]
  78149. 801fd38: 8b3a ldrh r2, [r7, #24]
  78150. 801fd3a: 1a8a subs r2, r1, r2
  78151. 801fd3c: b292 uxth r2, r2
  78152. 801fd3e: 815a strh r2, [r3, #10]
  78153. seg->p->tot_len -= len;
  78154. 801fd40: 68fb ldr r3, [r7, #12]
  78155. 801fd42: 685b ldr r3, [r3, #4]
  78156. 801fd44: 8919 ldrh r1, [r3, #8]
  78157. 801fd46: 68fb ldr r3, [r7, #12]
  78158. 801fd48: 685b ldr r3, [r3, #4]
  78159. 801fd4a: 8b3a ldrh r2, [r7, #24]
  78160. 801fd4c: 1a8a subs r2, r1, r2
  78161. 801fd4e: b292 uxth r2, r2
  78162. 801fd50: 811a strh r2, [r3, #8]
  78163. seg->p->payload = seg->tcphdr;
  78164. 801fd52: 68fb ldr r3, [r7, #12]
  78165. 801fd54: 685b ldr r3, [r3, #4]
  78166. 801fd56: 68fa ldr r2, [r7, #12]
  78167. 801fd58: 6912 ldr r2, [r2, #16]
  78168. 801fd5a: 605a str r2, [r3, #4]
  78169. seg->tcphdr->chksum = 0;
  78170. 801fd5c: 68fb ldr r3, [r7, #12]
  78171. 801fd5e: 691b ldr r3, [r3, #16]
  78172. 801fd60: 2200 movs r2, #0
  78173. 801fd62: 741a strb r2, [r3, #16]
  78174. 801fd64: 2200 movs r2, #0
  78175. 801fd66: 745a strb r2, [r3, #17]
  78176. #ifdef LWIP_HOOK_TCP_OUT_ADD_TCPOPTS
  78177. opts = LWIP_HOOK_TCP_OUT_ADD_TCPOPTS(seg->p, seg->tcphdr, pcb, opts);
  78178. #endif
  78179. LWIP_ASSERT("options not filled", (u8_t *)opts == ((u8_t *)(seg->tcphdr + 1)) + LWIP_TCP_OPT_LENGTH_SEGMENT(seg->flags, pcb));
  78180. 801fd68: 68fb ldr r3, [r7, #12]
  78181. 801fd6a: 691a ldr r2, [r3, #16]
  78182. 801fd6c: 68fb ldr r3, [r7, #12]
  78183. 801fd6e: 7b1b ldrb r3, [r3, #12]
  78184. 801fd70: f003 0301 and.w r3, r3, #1
  78185. 801fd74: 2b00 cmp r3, #0
  78186. 801fd76: d001 beq.n 801fd7c <tcp_output_segment+0x158>
  78187. 801fd78: 2318 movs r3, #24
  78188. 801fd7a: e000 b.n 801fd7e <tcp_output_segment+0x15a>
  78189. 801fd7c: 2314 movs r3, #20
  78190. 801fd7e: 4413 add r3, r2
  78191. 801fd80: 69fa ldr r2, [r7, #28]
  78192. 801fd82: 429a cmp r2, r3
  78193. 801fd84: d006 beq.n 801fd94 <tcp_output_segment+0x170>
  78194. 801fd86: 4b10 ldr r3, [pc, #64] @ (801fdc8 <tcp_output_segment+0x1a4>)
  78195. 801fd88: f240 621c movw r2, #1564 @ 0x61c
  78196. 801fd8c: 4914 ldr r1, [pc, #80] @ (801fde0 <tcp_output_segment+0x1bc>)
  78197. 801fd8e: 4810 ldr r0, [pc, #64] @ (801fdd0 <tcp_output_segment+0x1ac>)
  78198. 801fd90: f009 fbbc bl 802950c <iprintf>
  78199. }
  78200. #endif /* CHECKSUM_GEN_TCP */
  78201. TCP_STATS_INC(tcp.xmit);
  78202. NETIF_SET_HINTS(netif, &(pcb->netif_hints));
  78203. err = ip_output_if(seg->p, &pcb->local_ip, &pcb->remote_ip, pcb->ttl,
  78204. 801fd94: 68fb ldr r3, [r7, #12]
  78205. 801fd96: 6858 ldr r0, [r3, #4]
  78206. 801fd98: 68b9 ldr r1, [r7, #8]
  78207. 801fd9a: 68bb ldr r3, [r7, #8]
  78208. 801fd9c: 1d1c adds r4, r3, #4
  78209. 801fd9e: 68bb ldr r3, [r7, #8]
  78210. 801fda0: 7add ldrb r5, [r3, #11]
  78211. 801fda2: 68bb ldr r3, [r7, #8]
  78212. 801fda4: 7a9b ldrb r3, [r3, #10]
  78213. 801fda6: 687a ldr r2, [r7, #4]
  78214. 801fda8: 9202 str r2, [sp, #8]
  78215. 801fdaa: 2206 movs r2, #6
  78216. 801fdac: 9201 str r2, [sp, #4]
  78217. 801fdae: 9300 str r3, [sp, #0]
  78218. 801fdb0: 462b mov r3, r5
  78219. 801fdb2: 4622 mov r2, r4
  78220. 801fdb4: f004 fd7a bl 80248ac <ip4_output_if>
  78221. 801fdb8: 4603 mov r3, r0
  78222. 801fdba: 75fb strb r3, [r7, #23]
  78223. seg->chksum = SWAP_BYTES_IN_WORD(seg->chksum);
  78224. seg->chksum_swapped = 1;
  78225. }
  78226. #endif
  78227. return err;
  78228. 801fdbc: f997 3017 ldrsb.w r3, [r7, #23]
  78229. }
  78230. 801fdc0: 4618 mov r0, r3
  78231. 801fdc2: 3720 adds r7, #32
  78232. 801fdc4: 46bd mov sp, r7
  78233. 801fdc6: bdb0 pop {r4, r5, r7, pc}
  78234. 801fdc8: 0802ed24 .word 0x0802ed24
  78235. 801fdcc: 0802f344 .word 0x0802f344
  78236. 801fdd0: 0802ed78 .word 0x0802ed78
  78237. 801fdd4: 0802f364 .word 0x0802f364
  78238. 801fdd8: 0802f384 .word 0x0802f384
  78239. 801fddc: 24029fec .word 0x24029fec
  78240. 801fde0: 0802f3a8 .word 0x0802f3a8
  78241. 0801fde4 <tcp_rexmit_rto_prepare>:
  78242. *
  78243. * @param pcb the tcp_pcb for which to re-enqueue all unacked segments
  78244. */
  78245. err_t
  78246. tcp_rexmit_rto_prepare(struct tcp_pcb *pcb)
  78247. {
  78248. 801fde4: b5b0 push {r4, r5, r7, lr}
  78249. 801fde6: b084 sub sp, #16
  78250. 801fde8: af00 add r7, sp, #0
  78251. 801fdea: 6078 str r0, [r7, #4]
  78252. struct tcp_seg *seg;
  78253. LWIP_ASSERT("tcp_rexmit_rto_prepare: invalid pcb", pcb != NULL);
  78254. 801fdec: 687b ldr r3, [r7, #4]
  78255. 801fdee: 2b00 cmp r3, #0
  78256. 801fdf0: d106 bne.n 801fe00 <tcp_rexmit_rto_prepare+0x1c>
  78257. 801fdf2: 4b36 ldr r3, [pc, #216] @ (801fecc <tcp_rexmit_rto_prepare+0xe8>)
  78258. 801fdf4: f240 6263 movw r2, #1635 @ 0x663
  78259. 801fdf8: 4935 ldr r1, [pc, #212] @ (801fed0 <tcp_rexmit_rto_prepare+0xec>)
  78260. 801fdfa: 4836 ldr r0, [pc, #216] @ (801fed4 <tcp_rexmit_rto_prepare+0xf0>)
  78261. 801fdfc: f009 fb86 bl 802950c <iprintf>
  78262. if (pcb->unacked == NULL) {
  78263. 801fe00: 687b ldr r3, [r7, #4]
  78264. 801fe02: 6f1b ldr r3, [r3, #112] @ 0x70
  78265. 801fe04: 2b00 cmp r3, #0
  78266. 801fe06: d102 bne.n 801fe0e <tcp_rexmit_rto_prepare+0x2a>
  78267. return ERR_VAL;
  78268. 801fe08: f06f 0305 mvn.w r3, #5
  78269. 801fe0c: e059 b.n 801fec2 <tcp_rexmit_rto_prepare+0xde>
  78270. /* Move all unacked segments to the head of the unsent queue.
  78271. However, give up if any of the unsent pbufs are still referenced by the
  78272. netif driver due to deferred transmission. No point loading the link further
  78273. if it is struggling to flush its buffered writes. */
  78274. for (seg = pcb->unacked; seg->next != NULL; seg = seg->next) {
  78275. 801fe0e: 687b ldr r3, [r7, #4]
  78276. 801fe10: 6f1b ldr r3, [r3, #112] @ 0x70
  78277. 801fe12: 60fb str r3, [r7, #12]
  78278. 801fe14: e00b b.n 801fe2e <tcp_rexmit_rto_prepare+0x4a>
  78279. if (tcp_output_segment_busy(seg)) {
  78280. 801fe16: 68f8 ldr r0, [r7, #12]
  78281. 801fe18: f7ff fee4 bl 801fbe4 <tcp_output_segment_busy>
  78282. 801fe1c: 4603 mov r3, r0
  78283. 801fe1e: 2b00 cmp r3, #0
  78284. 801fe20: d002 beq.n 801fe28 <tcp_rexmit_rto_prepare+0x44>
  78285. LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_rexmit_rto: segment busy\n"));
  78286. return ERR_VAL;
  78287. 801fe22: f06f 0305 mvn.w r3, #5
  78288. 801fe26: e04c b.n 801fec2 <tcp_rexmit_rto_prepare+0xde>
  78289. for (seg = pcb->unacked; seg->next != NULL; seg = seg->next) {
  78290. 801fe28: 68fb ldr r3, [r7, #12]
  78291. 801fe2a: 681b ldr r3, [r3, #0]
  78292. 801fe2c: 60fb str r3, [r7, #12]
  78293. 801fe2e: 68fb ldr r3, [r7, #12]
  78294. 801fe30: 681b ldr r3, [r3, #0]
  78295. 801fe32: 2b00 cmp r3, #0
  78296. 801fe34: d1ef bne.n 801fe16 <tcp_rexmit_rto_prepare+0x32>
  78297. }
  78298. }
  78299. if (tcp_output_segment_busy(seg)) {
  78300. 801fe36: 68f8 ldr r0, [r7, #12]
  78301. 801fe38: f7ff fed4 bl 801fbe4 <tcp_output_segment_busy>
  78302. 801fe3c: 4603 mov r3, r0
  78303. 801fe3e: 2b00 cmp r3, #0
  78304. 801fe40: d002 beq.n 801fe48 <tcp_rexmit_rto_prepare+0x64>
  78305. LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_rexmit_rto: segment busy\n"));
  78306. return ERR_VAL;
  78307. 801fe42: f06f 0305 mvn.w r3, #5
  78308. 801fe46: e03c b.n 801fec2 <tcp_rexmit_rto_prepare+0xde>
  78309. }
  78310. /* concatenate unsent queue after unacked queue */
  78311. seg->next = pcb->unsent;
  78312. 801fe48: 687b ldr r3, [r7, #4]
  78313. 801fe4a: 6eda ldr r2, [r3, #108] @ 0x6c
  78314. 801fe4c: 68fb ldr r3, [r7, #12]
  78315. 801fe4e: 601a str r2, [r3, #0]
  78316. #if TCP_OVERSIZE_DBGCHECK
  78317. /* if last unsent changed, we need to update unsent_oversize */
  78318. if (pcb->unsent == NULL) {
  78319. 801fe50: 687b ldr r3, [r7, #4]
  78320. 801fe52: 6edb ldr r3, [r3, #108] @ 0x6c
  78321. 801fe54: 2b00 cmp r3, #0
  78322. 801fe56: d104 bne.n 801fe62 <tcp_rexmit_rto_prepare+0x7e>
  78323. pcb->unsent_oversize = seg->oversize_left;
  78324. 801fe58: 68fb ldr r3, [r7, #12]
  78325. 801fe5a: 895a ldrh r2, [r3, #10]
  78326. 801fe5c: 687b ldr r3, [r7, #4]
  78327. 801fe5e: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  78328. }
  78329. #endif /* TCP_OVERSIZE_DBGCHECK */
  78330. /* unsent queue is the concatenated queue (of unacked, unsent) */
  78331. pcb->unsent = pcb->unacked;
  78332. 801fe62: 687b ldr r3, [r7, #4]
  78333. 801fe64: 6f1a ldr r2, [r3, #112] @ 0x70
  78334. 801fe66: 687b ldr r3, [r7, #4]
  78335. 801fe68: 66da str r2, [r3, #108] @ 0x6c
  78336. /* unacked queue is now empty */
  78337. pcb->unacked = NULL;
  78338. 801fe6a: 687b ldr r3, [r7, #4]
  78339. 801fe6c: 2200 movs r2, #0
  78340. 801fe6e: 671a str r2, [r3, #112] @ 0x70
  78341. /* Mark RTO in-progress */
  78342. tcp_set_flags(pcb, TF_RTO);
  78343. 801fe70: 687b ldr r3, [r7, #4]
  78344. 801fe72: 8b5b ldrh r3, [r3, #26]
  78345. 801fe74: f443 6300 orr.w r3, r3, #2048 @ 0x800
  78346. 801fe78: b29a uxth r2, r3
  78347. 801fe7a: 687b ldr r3, [r7, #4]
  78348. 801fe7c: 835a strh r2, [r3, #26]
  78349. /* Record the next byte following retransmit */
  78350. pcb->rto_end = lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg);
  78351. 801fe7e: 68fb ldr r3, [r7, #12]
  78352. 801fe80: 691b ldr r3, [r3, #16]
  78353. 801fe82: 685b ldr r3, [r3, #4]
  78354. 801fe84: 4618 mov r0, r3
  78355. 801fe86: f7f8 fbfc bl 8018682 <lwip_htonl>
  78356. 801fe8a: 4604 mov r4, r0
  78357. 801fe8c: 68fb ldr r3, [r7, #12]
  78358. 801fe8e: 891b ldrh r3, [r3, #8]
  78359. 801fe90: 461d mov r5, r3
  78360. 801fe92: 68fb ldr r3, [r7, #12]
  78361. 801fe94: 691b ldr r3, [r3, #16]
  78362. 801fe96: 899b ldrh r3, [r3, #12]
  78363. 801fe98: b29b uxth r3, r3
  78364. 801fe9a: 4618 mov r0, r3
  78365. 801fe9c: f7f8 fbdc bl 8018658 <lwip_htons>
  78366. 801fea0: 4603 mov r3, r0
  78367. 801fea2: b2db uxtb r3, r3
  78368. 801fea4: f003 0303 and.w r3, r3, #3
  78369. 801fea8: 2b00 cmp r3, #0
  78370. 801feaa: d001 beq.n 801feb0 <tcp_rexmit_rto_prepare+0xcc>
  78371. 801feac: 2301 movs r3, #1
  78372. 801feae: e000 b.n 801feb2 <tcp_rexmit_rto_prepare+0xce>
  78373. 801feb0: 2300 movs r3, #0
  78374. 801feb2: 442b add r3, r5
  78375. 801feb4: 18e2 adds r2, r4, r3
  78376. 801feb6: 687b ldr r3, [r7, #4]
  78377. 801feb8: 64da str r2, [r3, #76] @ 0x4c
  78378. /* Don't take any RTT measurements after retransmitting. */
  78379. pcb->rttest = 0;
  78380. 801feba: 687b ldr r3, [r7, #4]
  78381. 801febc: 2200 movs r2, #0
  78382. 801febe: 635a str r2, [r3, #52] @ 0x34
  78383. return ERR_OK;
  78384. 801fec0: 2300 movs r3, #0
  78385. }
  78386. 801fec2: 4618 mov r0, r3
  78387. 801fec4: 3710 adds r7, #16
  78388. 801fec6: 46bd mov sp, r7
  78389. 801fec8: bdb0 pop {r4, r5, r7, pc}
  78390. 801feca: bf00 nop
  78391. 801fecc: 0802ed24 .word 0x0802ed24
  78392. 801fed0: 0802f3bc .word 0x0802f3bc
  78393. 801fed4: 0802ed78 .word 0x0802ed78
  78394. 0801fed8 <tcp_rexmit_rto_commit>:
  78395. *
  78396. * @param pcb the tcp_pcb for which to re-enqueue all unacked segments
  78397. */
  78398. void
  78399. tcp_rexmit_rto_commit(struct tcp_pcb *pcb)
  78400. {
  78401. 801fed8: b580 push {r7, lr}
  78402. 801feda: b082 sub sp, #8
  78403. 801fedc: af00 add r7, sp, #0
  78404. 801fede: 6078 str r0, [r7, #4]
  78405. LWIP_ASSERT("tcp_rexmit_rto_commit: invalid pcb", pcb != NULL);
  78406. 801fee0: 687b ldr r3, [r7, #4]
  78407. 801fee2: 2b00 cmp r3, #0
  78408. 801fee4: d106 bne.n 801fef4 <tcp_rexmit_rto_commit+0x1c>
  78409. 801fee6: 4b0d ldr r3, [pc, #52] @ (801ff1c <tcp_rexmit_rto_commit+0x44>)
  78410. 801fee8: f44f 62d3 mov.w r2, #1688 @ 0x698
  78411. 801feec: 490c ldr r1, [pc, #48] @ (801ff20 <tcp_rexmit_rto_commit+0x48>)
  78412. 801feee: 480d ldr r0, [pc, #52] @ (801ff24 <tcp_rexmit_rto_commit+0x4c>)
  78413. 801fef0: f009 fb0c bl 802950c <iprintf>
  78414. /* increment number of retransmissions */
  78415. if (pcb->nrtx < 0xFF) {
  78416. 801fef4: 687b ldr r3, [r7, #4]
  78417. 801fef6: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  78418. 801fefa: 2bff cmp r3, #255 @ 0xff
  78419. 801fefc: d007 beq.n 801ff0e <tcp_rexmit_rto_commit+0x36>
  78420. ++pcb->nrtx;
  78421. 801fefe: 687b ldr r3, [r7, #4]
  78422. 801ff00: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  78423. 801ff04: 3301 adds r3, #1
  78424. 801ff06: b2da uxtb r2, r3
  78425. 801ff08: 687b ldr r3, [r7, #4]
  78426. 801ff0a: f883 2042 strb.w r2, [r3, #66] @ 0x42
  78427. }
  78428. /* Do the actual retransmission */
  78429. tcp_output(pcb);
  78430. 801ff0e: 6878 ldr r0, [r7, #4]
  78431. 801ff10: f7ff fc70 bl 801f7f4 <tcp_output>
  78432. }
  78433. 801ff14: bf00 nop
  78434. 801ff16: 3708 adds r7, #8
  78435. 801ff18: 46bd mov sp, r7
  78436. 801ff1a: bd80 pop {r7, pc}
  78437. 801ff1c: 0802ed24 .word 0x0802ed24
  78438. 801ff20: 0802f3e0 .word 0x0802f3e0
  78439. 801ff24: 0802ed78 .word 0x0802ed78
  78440. 0801ff28 <tcp_rexmit_rto>:
  78441. *
  78442. * @param pcb the tcp_pcb for which to re-enqueue all unacked segments
  78443. */
  78444. void
  78445. tcp_rexmit_rto(struct tcp_pcb *pcb)
  78446. {
  78447. 801ff28: b580 push {r7, lr}
  78448. 801ff2a: b082 sub sp, #8
  78449. 801ff2c: af00 add r7, sp, #0
  78450. 801ff2e: 6078 str r0, [r7, #4]
  78451. LWIP_ASSERT("tcp_rexmit_rto: invalid pcb", pcb != NULL);
  78452. 801ff30: 687b ldr r3, [r7, #4]
  78453. 801ff32: 2b00 cmp r3, #0
  78454. 801ff34: d106 bne.n 801ff44 <tcp_rexmit_rto+0x1c>
  78455. 801ff36: 4b0a ldr r3, [pc, #40] @ (801ff60 <tcp_rexmit_rto+0x38>)
  78456. 801ff38: f240 62ad movw r2, #1709 @ 0x6ad
  78457. 801ff3c: 4909 ldr r1, [pc, #36] @ (801ff64 <tcp_rexmit_rto+0x3c>)
  78458. 801ff3e: 480a ldr r0, [pc, #40] @ (801ff68 <tcp_rexmit_rto+0x40>)
  78459. 801ff40: f009 fae4 bl 802950c <iprintf>
  78460. if (tcp_rexmit_rto_prepare(pcb) == ERR_OK) {
  78461. 801ff44: 6878 ldr r0, [r7, #4]
  78462. 801ff46: f7ff ff4d bl 801fde4 <tcp_rexmit_rto_prepare>
  78463. 801ff4a: 4603 mov r3, r0
  78464. 801ff4c: 2b00 cmp r3, #0
  78465. 801ff4e: d102 bne.n 801ff56 <tcp_rexmit_rto+0x2e>
  78466. tcp_rexmit_rto_commit(pcb);
  78467. 801ff50: 6878 ldr r0, [r7, #4]
  78468. 801ff52: f7ff ffc1 bl 801fed8 <tcp_rexmit_rto_commit>
  78469. }
  78470. }
  78471. 801ff56: bf00 nop
  78472. 801ff58: 3708 adds r7, #8
  78473. 801ff5a: 46bd mov sp, r7
  78474. 801ff5c: bd80 pop {r7, pc}
  78475. 801ff5e: bf00 nop
  78476. 801ff60: 0802ed24 .word 0x0802ed24
  78477. 801ff64: 0802f404 .word 0x0802f404
  78478. 801ff68: 0802ed78 .word 0x0802ed78
  78479. 0801ff6c <tcp_rexmit>:
  78480. *
  78481. * @param pcb the tcp_pcb for which to retransmit the first unacked segment
  78482. */
  78483. err_t
  78484. tcp_rexmit(struct tcp_pcb *pcb)
  78485. {
  78486. 801ff6c: b590 push {r4, r7, lr}
  78487. 801ff6e: b085 sub sp, #20
  78488. 801ff70: af00 add r7, sp, #0
  78489. 801ff72: 6078 str r0, [r7, #4]
  78490. struct tcp_seg *seg;
  78491. struct tcp_seg **cur_seg;
  78492. LWIP_ASSERT("tcp_rexmit: invalid pcb", pcb != NULL);
  78493. 801ff74: 687b ldr r3, [r7, #4]
  78494. 801ff76: 2b00 cmp r3, #0
  78495. 801ff78: d106 bne.n 801ff88 <tcp_rexmit+0x1c>
  78496. 801ff7a: 4b2f ldr r3, [pc, #188] @ (8020038 <tcp_rexmit+0xcc>)
  78497. 801ff7c: f240 62c1 movw r2, #1729 @ 0x6c1
  78498. 801ff80: 492e ldr r1, [pc, #184] @ (802003c <tcp_rexmit+0xd0>)
  78499. 801ff82: 482f ldr r0, [pc, #188] @ (8020040 <tcp_rexmit+0xd4>)
  78500. 801ff84: f009 fac2 bl 802950c <iprintf>
  78501. if (pcb->unacked == NULL) {
  78502. 801ff88: 687b ldr r3, [r7, #4]
  78503. 801ff8a: 6f1b ldr r3, [r3, #112] @ 0x70
  78504. 801ff8c: 2b00 cmp r3, #0
  78505. 801ff8e: d102 bne.n 801ff96 <tcp_rexmit+0x2a>
  78506. return ERR_VAL;
  78507. 801ff90: f06f 0305 mvn.w r3, #5
  78508. 801ff94: e04c b.n 8020030 <tcp_rexmit+0xc4>
  78509. }
  78510. seg = pcb->unacked;
  78511. 801ff96: 687b ldr r3, [r7, #4]
  78512. 801ff98: 6f1b ldr r3, [r3, #112] @ 0x70
  78513. 801ff9a: 60bb str r3, [r7, #8]
  78514. /* Give up if the segment is still referenced by the netif driver
  78515. due to deferred transmission. */
  78516. if (tcp_output_segment_busy(seg)) {
  78517. 801ff9c: 68b8 ldr r0, [r7, #8]
  78518. 801ff9e: f7ff fe21 bl 801fbe4 <tcp_output_segment_busy>
  78519. 801ffa2: 4603 mov r3, r0
  78520. 801ffa4: 2b00 cmp r3, #0
  78521. 801ffa6: d002 beq.n 801ffae <tcp_rexmit+0x42>
  78522. LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_rexmit busy\n"));
  78523. return ERR_VAL;
  78524. 801ffa8: f06f 0305 mvn.w r3, #5
  78525. 801ffac: e040 b.n 8020030 <tcp_rexmit+0xc4>
  78526. }
  78527. /* Move the first unacked segment to the unsent queue */
  78528. /* Keep the unsent queue sorted. */
  78529. pcb->unacked = seg->next;
  78530. 801ffae: 68bb ldr r3, [r7, #8]
  78531. 801ffb0: 681a ldr r2, [r3, #0]
  78532. 801ffb2: 687b ldr r3, [r7, #4]
  78533. 801ffb4: 671a str r2, [r3, #112] @ 0x70
  78534. cur_seg = &(pcb->unsent);
  78535. 801ffb6: 687b ldr r3, [r7, #4]
  78536. 801ffb8: 336c adds r3, #108 @ 0x6c
  78537. 801ffba: 60fb str r3, [r7, #12]
  78538. while (*cur_seg &&
  78539. 801ffbc: e002 b.n 801ffc4 <tcp_rexmit+0x58>
  78540. TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) {
  78541. cur_seg = &((*cur_seg)->next );
  78542. 801ffbe: 68fb ldr r3, [r7, #12]
  78543. 801ffc0: 681b ldr r3, [r3, #0]
  78544. 801ffc2: 60fb str r3, [r7, #12]
  78545. while (*cur_seg &&
  78546. 801ffc4: 68fb ldr r3, [r7, #12]
  78547. 801ffc6: 681b ldr r3, [r3, #0]
  78548. 801ffc8: 2b00 cmp r3, #0
  78549. 801ffca: d011 beq.n 801fff0 <tcp_rexmit+0x84>
  78550. TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) {
  78551. 801ffcc: 68fb ldr r3, [r7, #12]
  78552. 801ffce: 681b ldr r3, [r3, #0]
  78553. 801ffd0: 691b ldr r3, [r3, #16]
  78554. 801ffd2: 685b ldr r3, [r3, #4]
  78555. 801ffd4: 4618 mov r0, r3
  78556. 801ffd6: f7f8 fb54 bl 8018682 <lwip_htonl>
  78557. 801ffda: 4604 mov r4, r0
  78558. 801ffdc: 68bb ldr r3, [r7, #8]
  78559. 801ffde: 691b ldr r3, [r3, #16]
  78560. 801ffe0: 685b ldr r3, [r3, #4]
  78561. 801ffe2: 4618 mov r0, r3
  78562. 801ffe4: f7f8 fb4d bl 8018682 <lwip_htonl>
  78563. 801ffe8: 4603 mov r3, r0
  78564. 801ffea: 1ae3 subs r3, r4, r3
  78565. while (*cur_seg &&
  78566. 801ffec: 2b00 cmp r3, #0
  78567. 801ffee: dbe6 blt.n 801ffbe <tcp_rexmit+0x52>
  78568. }
  78569. seg->next = *cur_seg;
  78570. 801fff0: 68fb ldr r3, [r7, #12]
  78571. 801fff2: 681a ldr r2, [r3, #0]
  78572. 801fff4: 68bb ldr r3, [r7, #8]
  78573. 801fff6: 601a str r2, [r3, #0]
  78574. *cur_seg = seg;
  78575. 801fff8: 68fb ldr r3, [r7, #12]
  78576. 801fffa: 68ba ldr r2, [r7, #8]
  78577. 801fffc: 601a str r2, [r3, #0]
  78578. #if TCP_OVERSIZE
  78579. if (seg->next == NULL) {
  78580. 801fffe: 68bb ldr r3, [r7, #8]
  78581. 8020000: 681b ldr r3, [r3, #0]
  78582. 8020002: 2b00 cmp r3, #0
  78583. 8020004: d103 bne.n 802000e <tcp_rexmit+0xa2>
  78584. /* the retransmitted segment is last in unsent, so reset unsent_oversize */
  78585. pcb->unsent_oversize = 0;
  78586. 8020006: 687b ldr r3, [r7, #4]
  78587. 8020008: 2200 movs r2, #0
  78588. 802000a: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  78589. }
  78590. #endif /* TCP_OVERSIZE */
  78591. if (pcb->nrtx < 0xFF) {
  78592. 802000e: 687b ldr r3, [r7, #4]
  78593. 8020010: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  78594. 8020014: 2bff cmp r3, #255 @ 0xff
  78595. 8020016: d007 beq.n 8020028 <tcp_rexmit+0xbc>
  78596. ++pcb->nrtx;
  78597. 8020018: 687b ldr r3, [r7, #4]
  78598. 802001a: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  78599. 802001e: 3301 adds r3, #1
  78600. 8020020: b2da uxtb r2, r3
  78601. 8020022: 687b ldr r3, [r7, #4]
  78602. 8020024: f883 2042 strb.w r2, [r3, #66] @ 0x42
  78603. }
  78604. /* Don't take any rtt measurements after retransmitting. */
  78605. pcb->rttest = 0;
  78606. 8020028: 687b ldr r3, [r7, #4]
  78607. 802002a: 2200 movs r2, #0
  78608. 802002c: 635a str r2, [r3, #52] @ 0x34
  78609. /* Do the actual retransmission. */
  78610. MIB2_STATS_INC(mib2.tcpretranssegs);
  78611. /* No need to call tcp_output: we are always called from tcp_input()
  78612. and thus tcp_output directly returns. */
  78613. return ERR_OK;
  78614. 802002e: 2300 movs r3, #0
  78615. }
  78616. 8020030: 4618 mov r0, r3
  78617. 8020032: 3714 adds r7, #20
  78618. 8020034: 46bd mov sp, r7
  78619. 8020036: bd90 pop {r4, r7, pc}
  78620. 8020038: 0802ed24 .word 0x0802ed24
  78621. 802003c: 0802f420 .word 0x0802f420
  78622. 8020040: 0802ed78 .word 0x0802ed78
  78623. 08020044 <tcp_rexmit_fast>:
  78624. *
  78625. * @param pcb the tcp_pcb for which to retransmit the first unacked segment
  78626. */
  78627. void
  78628. tcp_rexmit_fast(struct tcp_pcb *pcb)
  78629. {
  78630. 8020044: b580 push {r7, lr}
  78631. 8020046: b082 sub sp, #8
  78632. 8020048: af00 add r7, sp, #0
  78633. 802004a: 6078 str r0, [r7, #4]
  78634. LWIP_ASSERT("tcp_rexmit_fast: invalid pcb", pcb != NULL);
  78635. 802004c: 687b ldr r3, [r7, #4]
  78636. 802004e: 2b00 cmp r3, #0
  78637. 8020050: d106 bne.n 8020060 <tcp_rexmit_fast+0x1c>
  78638. 8020052: 4b2a ldr r3, [pc, #168] @ (80200fc <tcp_rexmit_fast+0xb8>)
  78639. 8020054: f240 62f9 movw r2, #1785 @ 0x6f9
  78640. 8020058: 4929 ldr r1, [pc, #164] @ (8020100 <tcp_rexmit_fast+0xbc>)
  78641. 802005a: 482a ldr r0, [pc, #168] @ (8020104 <tcp_rexmit_fast+0xc0>)
  78642. 802005c: f009 fa56 bl 802950c <iprintf>
  78643. if (pcb->unacked != NULL && !(pcb->flags & TF_INFR)) {
  78644. 8020060: 687b ldr r3, [r7, #4]
  78645. 8020062: 6f1b ldr r3, [r3, #112] @ 0x70
  78646. 8020064: 2b00 cmp r3, #0
  78647. 8020066: d045 beq.n 80200f4 <tcp_rexmit_fast+0xb0>
  78648. 8020068: 687b ldr r3, [r7, #4]
  78649. 802006a: 8b5b ldrh r3, [r3, #26]
  78650. 802006c: f003 0304 and.w r3, r3, #4
  78651. 8020070: 2b00 cmp r3, #0
  78652. 8020072: d13f bne.n 80200f4 <tcp_rexmit_fast+0xb0>
  78653. LWIP_DEBUGF(TCP_FR_DEBUG,
  78654. ("tcp_receive: dupacks %"U16_F" (%"U32_F
  78655. "), fast retransmit %"U32_F"\n",
  78656. (u16_t)pcb->dupacks, pcb->lastack,
  78657. lwip_ntohl(pcb->unacked->tcphdr->seqno)));
  78658. if (tcp_rexmit(pcb) == ERR_OK) {
  78659. 8020074: 6878 ldr r0, [r7, #4]
  78660. 8020076: f7ff ff79 bl 801ff6c <tcp_rexmit>
  78661. 802007a: 4603 mov r3, r0
  78662. 802007c: 2b00 cmp r3, #0
  78663. 802007e: d139 bne.n 80200f4 <tcp_rexmit_fast+0xb0>
  78664. /* Set ssthresh to half of the minimum of the current
  78665. * cwnd and the advertised window */
  78666. pcb->ssthresh = LWIP_MIN(pcb->cwnd, pcb->snd_wnd) / 2;
  78667. 8020080: 687b ldr r3, [r7, #4]
  78668. 8020082: f8b3 2060 ldrh.w r2, [r3, #96] @ 0x60
  78669. 8020086: 687b ldr r3, [r7, #4]
  78670. 8020088: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  78671. 802008c: 4293 cmp r3, r2
  78672. 802008e: bf28 it cs
  78673. 8020090: 4613 movcs r3, r2
  78674. 8020092: b29b uxth r3, r3
  78675. 8020094: 2b00 cmp r3, #0
  78676. 8020096: da00 bge.n 802009a <tcp_rexmit_fast+0x56>
  78677. 8020098: 3301 adds r3, #1
  78678. 802009a: 105b asrs r3, r3, #1
  78679. 802009c: b29a uxth r2, r3
  78680. 802009e: 687b ldr r3, [r7, #4]
  78681. 80200a0: f8a3 204a strh.w r2, [r3, #74] @ 0x4a
  78682. /* The minimum value for ssthresh should be 2 MSS */
  78683. if (pcb->ssthresh < (2U * pcb->mss)) {
  78684. 80200a4: 687b ldr r3, [r7, #4]
  78685. 80200a6: f8b3 304a ldrh.w r3, [r3, #74] @ 0x4a
  78686. 80200aa: 461a mov r2, r3
  78687. 80200ac: 687b ldr r3, [r7, #4]
  78688. 80200ae: 8e5b ldrh r3, [r3, #50] @ 0x32
  78689. 80200b0: 005b lsls r3, r3, #1
  78690. 80200b2: 429a cmp r2, r3
  78691. 80200b4: d206 bcs.n 80200c4 <tcp_rexmit_fast+0x80>
  78692. LWIP_DEBUGF(TCP_FR_DEBUG,
  78693. ("tcp_receive: The minimum value for ssthresh %"TCPWNDSIZE_F
  78694. " should be min 2 mss %"U16_F"...\n",
  78695. pcb->ssthresh, (u16_t)(2 * pcb->mss)));
  78696. pcb->ssthresh = 2 * pcb->mss;
  78697. 80200b6: 687b ldr r3, [r7, #4]
  78698. 80200b8: 8e5b ldrh r3, [r3, #50] @ 0x32
  78699. 80200ba: 005b lsls r3, r3, #1
  78700. 80200bc: b29a uxth r2, r3
  78701. 80200be: 687b ldr r3, [r7, #4]
  78702. 80200c0: f8a3 204a strh.w r2, [r3, #74] @ 0x4a
  78703. }
  78704. pcb->cwnd = pcb->ssthresh + 3 * pcb->mss;
  78705. 80200c4: 687b ldr r3, [r7, #4]
  78706. 80200c6: f8b3 204a ldrh.w r2, [r3, #74] @ 0x4a
  78707. 80200ca: 687b ldr r3, [r7, #4]
  78708. 80200cc: 8e5b ldrh r3, [r3, #50] @ 0x32
  78709. 80200ce: 4619 mov r1, r3
  78710. 80200d0: 0049 lsls r1, r1, #1
  78711. 80200d2: 440b add r3, r1
  78712. 80200d4: b29b uxth r3, r3
  78713. 80200d6: 4413 add r3, r2
  78714. 80200d8: b29a uxth r2, r3
  78715. 80200da: 687b ldr r3, [r7, #4]
  78716. 80200dc: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  78717. tcp_set_flags(pcb, TF_INFR);
  78718. 80200e0: 687b ldr r3, [r7, #4]
  78719. 80200e2: 8b5b ldrh r3, [r3, #26]
  78720. 80200e4: f043 0304 orr.w r3, r3, #4
  78721. 80200e8: b29a uxth r2, r3
  78722. 80200ea: 687b ldr r3, [r7, #4]
  78723. 80200ec: 835a strh r2, [r3, #26]
  78724. /* Reset the retransmission timer to prevent immediate rto retransmissions */
  78725. pcb->rtime = 0;
  78726. 80200ee: 687b ldr r3, [r7, #4]
  78727. 80200f0: 2200 movs r2, #0
  78728. 80200f2: 861a strh r2, [r3, #48] @ 0x30
  78729. }
  78730. }
  78731. }
  78732. 80200f4: bf00 nop
  78733. 80200f6: 3708 adds r7, #8
  78734. 80200f8: 46bd mov sp, r7
  78735. 80200fa: bd80 pop {r7, pc}
  78736. 80200fc: 0802ed24 .word 0x0802ed24
  78737. 8020100: 0802f438 .word 0x0802f438
  78738. 8020104: 0802ed78 .word 0x0802ed78
  78739. 08020108 <tcp_output_alloc_header_common>:
  78740. static struct pbuf *
  78741. tcp_output_alloc_header_common(u32_t ackno, u16_t optlen, u16_t datalen,
  78742. u32_t seqno_be /* already in network byte order */,
  78743. u16_t src_port, u16_t dst_port, u8_t flags, u16_t wnd)
  78744. {
  78745. 8020108: b580 push {r7, lr}
  78746. 802010a: b086 sub sp, #24
  78747. 802010c: af00 add r7, sp, #0
  78748. 802010e: 60f8 str r0, [r7, #12]
  78749. 8020110: 607b str r3, [r7, #4]
  78750. 8020112: 460b mov r3, r1
  78751. 8020114: 817b strh r3, [r7, #10]
  78752. 8020116: 4613 mov r3, r2
  78753. 8020118: 813b strh r3, [r7, #8]
  78754. struct tcp_hdr *tcphdr;
  78755. struct pbuf *p;
  78756. p = pbuf_alloc(PBUF_IP, TCP_HLEN + optlen + datalen, PBUF_RAM);
  78757. 802011a: 897a ldrh r2, [r7, #10]
  78758. 802011c: 893b ldrh r3, [r7, #8]
  78759. 802011e: 4413 add r3, r2
  78760. 8020120: b29b uxth r3, r3
  78761. 8020122: 3314 adds r3, #20
  78762. 8020124: b29b uxth r3, r3
  78763. 8020126: f44f 7220 mov.w r2, #640 @ 0x280
  78764. 802012a: 4619 mov r1, r3
  78765. 802012c: 2022 movs r0, #34 @ 0x22
  78766. 802012e: f7f9 fc5f bl 80199f0 <pbuf_alloc>
  78767. 8020132: 6178 str r0, [r7, #20]
  78768. if (p != NULL) {
  78769. 8020134: 697b ldr r3, [r7, #20]
  78770. 8020136: 2b00 cmp r3, #0
  78771. 8020138: d04d beq.n 80201d6 <tcp_output_alloc_header_common+0xce>
  78772. LWIP_ASSERT("check that first pbuf can hold struct tcp_hdr",
  78773. 802013a: 897b ldrh r3, [r7, #10]
  78774. 802013c: 3313 adds r3, #19
  78775. 802013e: 697a ldr r2, [r7, #20]
  78776. 8020140: 8952 ldrh r2, [r2, #10]
  78777. 8020142: 4293 cmp r3, r2
  78778. 8020144: db06 blt.n 8020154 <tcp_output_alloc_header_common+0x4c>
  78779. 8020146: 4b26 ldr r3, [pc, #152] @ (80201e0 <tcp_output_alloc_header_common+0xd8>)
  78780. 8020148: f240 7223 movw r2, #1827 @ 0x723
  78781. 802014c: 4925 ldr r1, [pc, #148] @ (80201e4 <tcp_output_alloc_header_common+0xdc>)
  78782. 802014e: 4826 ldr r0, [pc, #152] @ (80201e8 <tcp_output_alloc_header_common+0xe0>)
  78783. 8020150: f009 f9dc bl 802950c <iprintf>
  78784. (p->len >= TCP_HLEN + optlen));
  78785. tcphdr = (struct tcp_hdr *)p->payload;
  78786. 8020154: 697b ldr r3, [r7, #20]
  78787. 8020156: 685b ldr r3, [r3, #4]
  78788. 8020158: 613b str r3, [r7, #16]
  78789. tcphdr->src = lwip_htons(src_port);
  78790. 802015a: 8c3b ldrh r3, [r7, #32]
  78791. 802015c: 4618 mov r0, r3
  78792. 802015e: f7f8 fa7b bl 8018658 <lwip_htons>
  78793. 8020162: 4603 mov r3, r0
  78794. 8020164: 461a mov r2, r3
  78795. 8020166: 693b ldr r3, [r7, #16]
  78796. 8020168: 801a strh r2, [r3, #0]
  78797. tcphdr->dest = lwip_htons(dst_port);
  78798. 802016a: 8cbb ldrh r3, [r7, #36] @ 0x24
  78799. 802016c: 4618 mov r0, r3
  78800. 802016e: f7f8 fa73 bl 8018658 <lwip_htons>
  78801. 8020172: 4603 mov r3, r0
  78802. 8020174: 461a mov r2, r3
  78803. 8020176: 693b ldr r3, [r7, #16]
  78804. 8020178: 805a strh r2, [r3, #2]
  78805. tcphdr->seqno = seqno_be;
  78806. 802017a: 693b ldr r3, [r7, #16]
  78807. 802017c: 687a ldr r2, [r7, #4]
  78808. 802017e: 605a str r2, [r3, #4]
  78809. tcphdr->ackno = lwip_htonl(ackno);
  78810. 8020180: 68f8 ldr r0, [r7, #12]
  78811. 8020182: f7f8 fa7e bl 8018682 <lwip_htonl>
  78812. 8020186: 4602 mov r2, r0
  78813. 8020188: 693b ldr r3, [r7, #16]
  78814. 802018a: 609a str r2, [r3, #8]
  78815. TCPH_HDRLEN_FLAGS_SET(tcphdr, (5 + optlen / 4), flags);
  78816. 802018c: 897b ldrh r3, [r7, #10]
  78817. 802018e: 089b lsrs r3, r3, #2
  78818. 8020190: b29b uxth r3, r3
  78819. 8020192: 3305 adds r3, #5
  78820. 8020194: b29b uxth r3, r3
  78821. 8020196: 031b lsls r3, r3, #12
  78822. 8020198: b29a uxth r2, r3
  78823. 802019a: f897 3028 ldrb.w r3, [r7, #40] @ 0x28
  78824. 802019e: b29b uxth r3, r3
  78825. 80201a0: 4313 orrs r3, r2
  78826. 80201a2: b29b uxth r3, r3
  78827. 80201a4: 4618 mov r0, r3
  78828. 80201a6: f7f8 fa57 bl 8018658 <lwip_htons>
  78829. 80201aa: 4603 mov r3, r0
  78830. 80201ac: 461a mov r2, r3
  78831. 80201ae: 693b ldr r3, [r7, #16]
  78832. 80201b0: 819a strh r2, [r3, #12]
  78833. tcphdr->wnd = lwip_htons(wnd);
  78834. 80201b2: 8dbb ldrh r3, [r7, #44] @ 0x2c
  78835. 80201b4: 4618 mov r0, r3
  78836. 80201b6: f7f8 fa4f bl 8018658 <lwip_htons>
  78837. 80201ba: 4603 mov r3, r0
  78838. 80201bc: 461a mov r2, r3
  78839. 80201be: 693b ldr r3, [r7, #16]
  78840. 80201c0: 81da strh r2, [r3, #14]
  78841. tcphdr->chksum = 0;
  78842. 80201c2: 693b ldr r3, [r7, #16]
  78843. 80201c4: 2200 movs r2, #0
  78844. 80201c6: 741a strb r2, [r3, #16]
  78845. 80201c8: 2200 movs r2, #0
  78846. 80201ca: 745a strb r2, [r3, #17]
  78847. tcphdr->urgp = 0;
  78848. 80201cc: 693b ldr r3, [r7, #16]
  78849. 80201ce: 2200 movs r2, #0
  78850. 80201d0: 749a strb r2, [r3, #18]
  78851. 80201d2: 2200 movs r2, #0
  78852. 80201d4: 74da strb r2, [r3, #19]
  78853. }
  78854. return p;
  78855. 80201d6: 697b ldr r3, [r7, #20]
  78856. }
  78857. 80201d8: 4618 mov r0, r3
  78858. 80201da: 3718 adds r7, #24
  78859. 80201dc: 46bd mov sp, r7
  78860. 80201de: bd80 pop {r7, pc}
  78861. 80201e0: 0802ed24 .word 0x0802ed24
  78862. 80201e4: 0802f458 .word 0x0802f458
  78863. 80201e8: 0802ed78 .word 0x0802ed78
  78864. 080201ec <tcp_output_alloc_header>:
  78865. * @return pbuf with p->payload being the tcp_hdr
  78866. */
  78867. static struct pbuf *
  78868. tcp_output_alloc_header(struct tcp_pcb *pcb, u16_t optlen, u16_t datalen,
  78869. u32_t seqno_be /* already in network byte order */)
  78870. {
  78871. 80201ec: b5b0 push {r4, r5, r7, lr}
  78872. 80201ee: b08a sub sp, #40 @ 0x28
  78873. 80201f0: af04 add r7, sp, #16
  78874. 80201f2: 60f8 str r0, [r7, #12]
  78875. 80201f4: 607b str r3, [r7, #4]
  78876. 80201f6: 460b mov r3, r1
  78877. 80201f8: 817b strh r3, [r7, #10]
  78878. 80201fa: 4613 mov r3, r2
  78879. 80201fc: 813b strh r3, [r7, #8]
  78880. struct pbuf *p;
  78881. LWIP_ASSERT("tcp_output_alloc_header: invalid pcb", pcb != NULL);
  78882. 80201fe: 68fb ldr r3, [r7, #12]
  78883. 8020200: 2b00 cmp r3, #0
  78884. 8020202: d106 bne.n 8020212 <tcp_output_alloc_header+0x26>
  78885. 8020204: 4b15 ldr r3, [pc, #84] @ (802025c <tcp_output_alloc_header+0x70>)
  78886. 8020206: f240 7242 movw r2, #1858 @ 0x742
  78887. 802020a: 4915 ldr r1, [pc, #84] @ (8020260 <tcp_output_alloc_header+0x74>)
  78888. 802020c: 4815 ldr r0, [pc, #84] @ (8020264 <tcp_output_alloc_header+0x78>)
  78889. 802020e: f009 f97d bl 802950c <iprintf>
  78890. p = tcp_output_alloc_header_common(pcb->rcv_nxt, optlen, datalen,
  78891. 8020212: 68fb ldr r3, [r7, #12]
  78892. 8020214: 6a58 ldr r0, [r3, #36] @ 0x24
  78893. 8020216: 68fb ldr r3, [r7, #12]
  78894. 8020218: 8adb ldrh r3, [r3, #22]
  78895. 802021a: 68fa ldr r2, [r7, #12]
  78896. 802021c: 8b12 ldrh r2, [r2, #24]
  78897. 802021e: 68f9 ldr r1, [r7, #12]
  78898. 8020220: 8d49 ldrh r1, [r1, #42] @ 0x2a
  78899. 8020222: 893d ldrh r5, [r7, #8]
  78900. 8020224: 897c ldrh r4, [r7, #10]
  78901. 8020226: 9103 str r1, [sp, #12]
  78902. 8020228: 2110 movs r1, #16
  78903. 802022a: 9102 str r1, [sp, #8]
  78904. 802022c: 9201 str r2, [sp, #4]
  78905. 802022e: 9300 str r3, [sp, #0]
  78906. 8020230: 687b ldr r3, [r7, #4]
  78907. 8020232: 462a mov r2, r5
  78908. 8020234: 4621 mov r1, r4
  78909. 8020236: f7ff ff67 bl 8020108 <tcp_output_alloc_header_common>
  78910. 802023a: 6178 str r0, [r7, #20]
  78911. seqno_be, pcb->local_port, pcb->remote_port, TCP_ACK,
  78912. TCPWND_MIN16(RCV_WND_SCALE(pcb, pcb->rcv_ann_wnd)));
  78913. if (p != NULL) {
  78914. 802023c: 697b ldr r3, [r7, #20]
  78915. 802023e: 2b00 cmp r3, #0
  78916. 8020240: d006 beq.n 8020250 <tcp_output_alloc_header+0x64>
  78917. /* If we're sending a packet, update the announced right window edge */
  78918. pcb->rcv_ann_right_edge = pcb->rcv_nxt + pcb->rcv_ann_wnd;
  78919. 8020242: 68fb ldr r3, [r7, #12]
  78920. 8020244: 6a5b ldr r3, [r3, #36] @ 0x24
  78921. 8020246: 68fa ldr r2, [r7, #12]
  78922. 8020248: 8d52 ldrh r2, [r2, #42] @ 0x2a
  78923. 802024a: 441a add r2, r3
  78924. 802024c: 68fb ldr r3, [r7, #12]
  78925. 802024e: 62da str r2, [r3, #44] @ 0x2c
  78926. }
  78927. return p;
  78928. 8020250: 697b ldr r3, [r7, #20]
  78929. }
  78930. 8020252: 4618 mov r0, r3
  78931. 8020254: 3718 adds r7, #24
  78932. 8020256: 46bd mov sp, r7
  78933. 8020258: bdb0 pop {r4, r5, r7, pc}
  78934. 802025a: bf00 nop
  78935. 802025c: 0802ed24 .word 0x0802ed24
  78936. 8020260: 0802f488 .word 0x0802f488
  78937. 8020264: 0802ed78 .word 0x0802ed78
  78938. 08020268 <tcp_output_fill_options>:
  78939. /* Fill in options for control segments */
  78940. static void
  78941. tcp_output_fill_options(const struct tcp_pcb *pcb, struct pbuf *p, u8_t optflags, u8_t num_sacks)
  78942. {
  78943. 8020268: b580 push {r7, lr}
  78944. 802026a: b088 sub sp, #32
  78945. 802026c: af00 add r7, sp, #0
  78946. 802026e: 60f8 str r0, [r7, #12]
  78947. 8020270: 60b9 str r1, [r7, #8]
  78948. 8020272: 4611 mov r1, r2
  78949. 8020274: 461a mov r2, r3
  78950. 8020276: 460b mov r3, r1
  78951. 8020278: 71fb strb r3, [r7, #7]
  78952. 802027a: 4613 mov r3, r2
  78953. 802027c: 71bb strb r3, [r7, #6]
  78954. struct tcp_hdr *tcphdr;
  78955. u32_t *opts;
  78956. u16_t sacks_len = 0;
  78957. 802027e: 2300 movs r3, #0
  78958. 8020280: 83fb strh r3, [r7, #30]
  78959. LWIP_ASSERT("tcp_output_fill_options: invalid pbuf", p != NULL);
  78960. 8020282: 68bb ldr r3, [r7, #8]
  78961. 8020284: 2b00 cmp r3, #0
  78962. 8020286: d106 bne.n 8020296 <tcp_output_fill_options+0x2e>
  78963. 8020288: 4b12 ldr r3, [pc, #72] @ (80202d4 <tcp_output_fill_options+0x6c>)
  78964. 802028a: f240 7256 movw r2, #1878 @ 0x756
  78965. 802028e: 4912 ldr r1, [pc, #72] @ (80202d8 <tcp_output_fill_options+0x70>)
  78966. 8020290: 4812 ldr r0, [pc, #72] @ (80202dc <tcp_output_fill_options+0x74>)
  78967. 8020292: f009 f93b bl 802950c <iprintf>
  78968. tcphdr = (struct tcp_hdr *)p->payload;
  78969. 8020296: 68bb ldr r3, [r7, #8]
  78970. 8020298: 685b ldr r3, [r3, #4]
  78971. 802029a: 61bb str r3, [r7, #24]
  78972. opts = (u32_t *)(void *)(tcphdr + 1);
  78973. 802029c: 69bb ldr r3, [r7, #24]
  78974. 802029e: 3314 adds r3, #20
  78975. 80202a0: 617b str r3, [r7, #20]
  78976. opts = LWIP_HOOK_TCP_OUT_ADD_TCPOPTS(p, tcphdr, pcb, opts);
  78977. #endif
  78978. LWIP_UNUSED_ARG(pcb);
  78979. LWIP_UNUSED_ARG(sacks_len);
  78980. LWIP_ASSERT("options not filled", (u8_t *)opts == ((u8_t *)(tcphdr + 1)) + sacks_len * 4 + LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb));
  78981. 80202a2: 8bfb ldrh r3, [r7, #30]
  78982. 80202a4: 009b lsls r3, r3, #2
  78983. 80202a6: 461a mov r2, r3
  78984. 80202a8: 79fb ldrb r3, [r7, #7]
  78985. 80202aa: 009b lsls r3, r3, #2
  78986. 80202ac: f003 0304 and.w r3, r3, #4
  78987. 80202b0: 4413 add r3, r2
  78988. 80202b2: 3314 adds r3, #20
  78989. 80202b4: 69ba ldr r2, [r7, #24]
  78990. 80202b6: 4413 add r3, r2
  78991. 80202b8: 697a ldr r2, [r7, #20]
  78992. 80202ba: 429a cmp r2, r3
  78993. 80202bc: d006 beq.n 80202cc <tcp_output_fill_options+0x64>
  78994. 80202be: 4b05 ldr r3, [pc, #20] @ (80202d4 <tcp_output_fill_options+0x6c>)
  78995. 80202c0: f240 7275 movw r2, #1909 @ 0x775
  78996. 80202c4: 4906 ldr r1, [pc, #24] @ (80202e0 <tcp_output_fill_options+0x78>)
  78997. 80202c6: 4805 ldr r0, [pc, #20] @ (80202dc <tcp_output_fill_options+0x74>)
  78998. 80202c8: f009 f920 bl 802950c <iprintf>
  78999. LWIP_UNUSED_ARG(optflags); /* for LWIP_NOASSERT */
  79000. LWIP_UNUSED_ARG(opts); /* for LWIP_NOASSERT */
  79001. }
  79002. 80202cc: bf00 nop
  79003. 80202ce: 3720 adds r7, #32
  79004. 80202d0: 46bd mov sp, r7
  79005. 80202d2: bd80 pop {r7, pc}
  79006. 80202d4: 0802ed24 .word 0x0802ed24
  79007. 80202d8: 0802f4b0 .word 0x0802f4b0
  79008. 80202dc: 0802ed78 .word 0x0802ed78
  79009. 80202e0: 0802f3a8 .word 0x0802f3a8
  79010. 080202e4 <tcp_output_control_segment>:
  79011. * header checksum and calling ip_output_if while handling netif hints and stats.
  79012. */
  79013. static err_t
  79014. tcp_output_control_segment(const struct tcp_pcb *pcb, struct pbuf *p,
  79015. const ip_addr_t *src, const ip_addr_t *dst)
  79016. {
  79017. 80202e4: b580 push {r7, lr}
  79018. 80202e6: b08a sub sp, #40 @ 0x28
  79019. 80202e8: af04 add r7, sp, #16
  79020. 80202ea: 60f8 str r0, [r7, #12]
  79021. 80202ec: 60b9 str r1, [r7, #8]
  79022. 80202ee: 607a str r2, [r7, #4]
  79023. 80202f0: 603b str r3, [r7, #0]
  79024. err_t err;
  79025. struct netif *netif;
  79026. LWIP_ASSERT("tcp_output_control_segment: invalid pbuf", p != NULL);
  79027. 80202f2: 68bb ldr r3, [r7, #8]
  79028. 80202f4: 2b00 cmp r3, #0
  79029. 80202f6: d106 bne.n 8020306 <tcp_output_control_segment+0x22>
  79030. 80202f8: 4b1c ldr r3, [pc, #112] @ (802036c <tcp_output_control_segment+0x88>)
  79031. 80202fa: f240 7287 movw r2, #1927 @ 0x787
  79032. 80202fe: 491c ldr r1, [pc, #112] @ (8020370 <tcp_output_control_segment+0x8c>)
  79033. 8020300: 481c ldr r0, [pc, #112] @ (8020374 <tcp_output_control_segment+0x90>)
  79034. 8020302: f009 f903 bl 802950c <iprintf>
  79035. netif = tcp_route(pcb, src, dst);
  79036. 8020306: 683a ldr r2, [r7, #0]
  79037. 8020308: 6879 ldr r1, [r7, #4]
  79038. 802030a: 68f8 ldr r0, [r7, #12]
  79039. 802030c: f7fe fa78 bl 801e800 <tcp_route>
  79040. 8020310: 6138 str r0, [r7, #16]
  79041. if (netif == NULL) {
  79042. 8020312: 693b ldr r3, [r7, #16]
  79043. 8020314: 2b00 cmp r3, #0
  79044. 8020316: d102 bne.n 802031e <tcp_output_control_segment+0x3a>
  79045. err = ERR_RTE;
  79046. 8020318: 23fc movs r3, #252 @ 0xfc
  79047. 802031a: 75fb strb r3, [r7, #23]
  79048. 802031c: e01c b.n 8020358 <tcp_output_control_segment+0x74>
  79049. struct tcp_hdr *tcphdr = (struct tcp_hdr *)p->payload;
  79050. tcphdr->chksum = ip_chksum_pseudo(p, IP_PROTO_TCP, p->tot_len,
  79051. src, dst);
  79052. }
  79053. #endif
  79054. if (pcb != NULL) {
  79055. 802031e: 68fb ldr r3, [r7, #12]
  79056. 8020320: 2b00 cmp r3, #0
  79057. 8020322: d006 beq.n 8020332 <tcp_output_control_segment+0x4e>
  79058. NETIF_SET_HINTS(netif, LWIP_CONST_CAST(struct netif_hint*, &(pcb->netif_hints)));
  79059. ttl = pcb->ttl;
  79060. 8020324: 68fb ldr r3, [r7, #12]
  79061. 8020326: 7adb ldrb r3, [r3, #11]
  79062. 8020328: 75bb strb r3, [r7, #22]
  79063. tos = pcb->tos;
  79064. 802032a: 68fb ldr r3, [r7, #12]
  79065. 802032c: 7a9b ldrb r3, [r3, #10]
  79066. 802032e: 757b strb r3, [r7, #21]
  79067. 8020330: e003 b.n 802033a <tcp_output_control_segment+0x56>
  79068. } else {
  79069. /* Send output with hardcoded TTL/HL since we have no access to the pcb */
  79070. ttl = TCP_TTL;
  79071. 8020332: 23ff movs r3, #255 @ 0xff
  79072. 8020334: 75bb strb r3, [r7, #22]
  79073. tos = 0;
  79074. 8020336: 2300 movs r3, #0
  79075. 8020338: 757b strb r3, [r7, #21]
  79076. }
  79077. TCP_STATS_INC(tcp.xmit);
  79078. err = ip_output_if(p, src, dst, ttl, tos, IP_PROTO_TCP, netif);
  79079. 802033a: 7dba ldrb r2, [r7, #22]
  79080. 802033c: 693b ldr r3, [r7, #16]
  79081. 802033e: 9302 str r3, [sp, #8]
  79082. 8020340: 2306 movs r3, #6
  79083. 8020342: 9301 str r3, [sp, #4]
  79084. 8020344: 7d7b ldrb r3, [r7, #21]
  79085. 8020346: 9300 str r3, [sp, #0]
  79086. 8020348: 4613 mov r3, r2
  79087. 802034a: 683a ldr r2, [r7, #0]
  79088. 802034c: 6879 ldr r1, [r7, #4]
  79089. 802034e: 68b8 ldr r0, [r7, #8]
  79090. 8020350: f004 faac bl 80248ac <ip4_output_if>
  79091. 8020354: 4603 mov r3, r0
  79092. 8020356: 75fb strb r3, [r7, #23]
  79093. NETIF_RESET_HINTS(netif);
  79094. }
  79095. pbuf_free(p);
  79096. 8020358: 68b8 ldr r0, [r7, #8]
  79097. 802035a: f7f9 fe5f bl 801a01c <pbuf_free>
  79098. return err;
  79099. 802035e: f997 3017 ldrsb.w r3, [r7, #23]
  79100. }
  79101. 8020362: 4618 mov r0, r3
  79102. 8020364: 3718 adds r7, #24
  79103. 8020366: 46bd mov sp, r7
  79104. 8020368: bd80 pop {r7, pc}
  79105. 802036a: bf00 nop
  79106. 802036c: 0802ed24 .word 0x0802ed24
  79107. 8020370: 0802f4d8 .word 0x0802f4d8
  79108. 8020374: 0802ed78 .word 0x0802ed78
  79109. 08020378 <tcp_rst>:
  79110. */
  79111. void
  79112. tcp_rst(const struct tcp_pcb *pcb, u32_t seqno, u32_t ackno,
  79113. const ip_addr_t *local_ip, const ip_addr_t *remote_ip,
  79114. u16_t local_port, u16_t remote_port)
  79115. {
  79116. 8020378: b590 push {r4, r7, lr}
  79117. 802037a: b08b sub sp, #44 @ 0x2c
  79118. 802037c: af04 add r7, sp, #16
  79119. 802037e: 60f8 str r0, [r7, #12]
  79120. 8020380: 60b9 str r1, [r7, #8]
  79121. 8020382: 607a str r2, [r7, #4]
  79122. 8020384: 603b str r3, [r7, #0]
  79123. struct pbuf *p;
  79124. u16_t wnd;
  79125. u8_t optlen;
  79126. LWIP_ASSERT("tcp_rst: invalid local_ip", local_ip != NULL);
  79127. 8020386: 683b ldr r3, [r7, #0]
  79128. 8020388: 2b00 cmp r3, #0
  79129. 802038a: d106 bne.n 802039a <tcp_rst+0x22>
  79130. 802038c: 4b1f ldr r3, [pc, #124] @ (802040c <tcp_rst+0x94>)
  79131. 802038e: f240 72c4 movw r2, #1988 @ 0x7c4
  79132. 8020392: 491f ldr r1, [pc, #124] @ (8020410 <tcp_rst+0x98>)
  79133. 8020394: 481f ldr r0, [pc, #124] @ (8020414 <tcp_rst+0x9c>)
  79134. 8020396: f009 f8b9 bl 802950c <iprintf>
  79135. LWIP_ASSERT("tcp_rst: invalid remote_ip", remote_ip != NULL);
  79136. 802039a: 6abb ldr r3, [r7, #40] @ 0x28
  79137. 802039c: 2b00 cmp r3, #0
  79138. 802039e: d106 bne.n 80203ae <tcp_rst+0x36>
  79139. 80203a0: 4b1a ldr r3, [pc, #104] @ (802040c <tcp_rst+0x94>)
  79140. 80203a2: f240 72c5 movw r2, #1989 @ 0x7c5
  79141. 80203a6: 491c ldr r1, [pc, #112] @ (8020418 <tcp_rst+0xa0>)
  79142. 80203a8: 481a ldr r0, [pc, #104] @ (8020414 <tcp_rst+0x9c>)
  79143. 80203aa: f009 f8af bl 802950c <iprintf>
  79144. optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb);
  79145. 80203ae: 2300 movs r3, #0
  79146. 80203b0: 75fb strb r3, [r7, #23]
  79147. #if LWIP_WND_SCALE
  79148. wnd = PP_HTONS(((TCP_WND >> TCP_RCV_SCALE) & 0xFFFF));
  79149. #else
  79150. wnd = PP_HTONS(TCP_WND);
  79151. 80203b2: f24d 0316 movw r3, #53270 @ 0xd016
  79152. 80203b6: 82bb strh r3, [r7, #20]
  79153. #endif
  79154. p = tcp_output_alloc_header_common(ackno, optlen, 0, lwip_htonl(seqno), local_port,
  79155. 80203b8: 7dfb ldrb r3, [r7, #23]
  79156. 80203ba: b29c uxth r4, r3
  79157. 80203bc: 68b8 ldr r0, [r7, #8]
  79158. 80203be: f7f8 f960 bl 8018682 <lwip_htonl>
  79159. 80203c2: 4602 mov r2, r0
  79160. 80203c4: 8abb ldrh r3, [r7, #20]
  79161. 80203c6: 9303 str r3, [sp, #12]
  79162. 80203c8: 2314 movs r3, #20
  79163. 80203ca: 9302 str r3, [sp, #8]
  79164. 80203cc: 8e3b ldrh r3, [r7, #48] @ 0x30
  79165. 80203ce: 9301 str r3, [sp, #4]
  79166. 80203d0: 8dbb ldrh r3, [r7, #44] @ 0x2c
  79167. 80203d2: 9300 str r3, [sp, #0]
  79168. 80203d4: 4613 mov r3, r2
  79169. 80203d6: 2200 movs r2, #0
  79170. 80203d8: 4621 mov r1, r4
  79171. 80203da: 6878 ldr r0, [r7, #4]
  79172. 80203dc: f7ff fe94 bl 8020108 <tcp_output_alloc_header_common>
  79173. 80203e0: 6138 str r0, [r7, #16]
  79174. remote_port, TCP_RST | TCP_ACK, wnd);
  79175. if (p == NULL) {
  79176. 80203e2: 693b ldr r3, [r7, #16]
  79177. 80203e4: 2b00 cmp r3, #0
  79178. 80203e6: d00c beq.n 8020402 <tcp_rst+0x8a>
  79179. LWIP_DEBUGF(TCP_DEBUG, ("tcp_rst: could not allocate memory for pbuf\n"));
  79180. return;
  79181. }
  79182. tcp_output_fill_options(pcb, p, 0, optlen);
  79183. 80203e8: 7dfb ldrb r3, [r7, #23]
  79184. 80203ea: 2200 movs r2, #0
  79185. 80203ec: 6939 ldr r1, [r7, #16]
  79186. 80203ee: 68f8 ldr r0, [r7, #12]
  79187. 80203f0: f7ff ff3a bl 8020268 <tcp_output_fill_options>
  79188. MIB2_STATS_INC(mib2.tcpoutrsts);
  79189. tcp_output_control_segment(pcb, p, local_ip, remote_ip);
  79190. 80203f4: 6abb ldr r3, [r7, #40] @ 0x28
  79191. 80203f6: 683a ldr r2, [r7, #0]
  79192. 80203f8: 6939 ldr r1, [r7, #16]
  79193. 80203fa: 68f8 ldr r0, [r7, #12]
  79194. 80203fc: f7ff ff72 bl 80202e4 <tcp_output_control_segment>
  79195. 8020400: e000 b.n 8020404 <tcp_rst+0x8c>
  79196. return;
  79197. 8020402: bf00 nop
  79198. LWIP_DEBUGF(TCP_RST_DEBUG, ("tcp_rst: seqno %"U32_F" ackno %"U32_F".\n", seqno, ackno));
  79199. }
  79200. 8020404: 371c adds r7, #28
  79201. 8020406: 46bd mov sp, r7
  79202. 8020408: bd90 pop {r4, r7, pc}
  79203. 802040a: bf00 nop
  79204. 802040c: 0802ed24 .word 0x0802ed24
  79205. 8020410: 0802f504 .word 0x0802f504
  79206. 8020414: 0802ed78 .word 0x0802ed78
  79207. 8020418: 0802f520 .word 0x0802f520
  79208. 0802041c <tcp_send_empty_ack>:
  79209. *
  79210. * @param pcb Protocol control block for the TCP connection to send the ACK
  79211. */
  79212. err_t
  79213. tcp_send_empty_ack(struct tcp_pcb *pcb)
  79214. {
  79215. 802041c: b590 push {r4, r7, lr}
  79216. 802041e: b087 sub sp, #28
  79217. 8020420: af00 add r7, sp, #0
  79218. 8020422: 6078 str r0, [r7, #4]
  79219. err_t err;
  79220. struct pbuf *p;
  79221. u8_t optlen, optflags = 0;
  79222. 8020424: 2300 movs r3, #0
  79223. 8020426: 75fb strb r3, [r7, #23]
  79224. u8_t num_sacks = 0;
  79225. 8020428: 2300 movs r3, #0
  79226. 802042a: 75bb strb r3, [r7, #22]
  79227. LWIP_ASSERT("tcp_send_empty_ack: invalid pcb", pcb != NULL);
  79228. 802042c: 687b ldr r3, [r7, #4]
  79229. 802042e: 2b00 cmp r3, #0
  79230. 8020430: d106 bne.n 8020440 <tcp_send_empty_ack+0x24>
  79231. 8020432: 4b28 ldr r3, [pc, #160] @ (80204d4 <tcp_send_empty_ack+0xb8>)
  79232. 8020434: f240 72ea movw r2, #2026 @ 0x7ea
  79233. 8020438: 4927 ldr r1, [pc, #156] @ (80204d8 <tcp_send_empty_ack+0xbc>)
  79234. 802043a: 4828 ldr r0, [pc, #160] @ (80204dc <tcp_send_empty_ack+0xc0>)
  79235. 802043c: f009 f866 bl 802950c <iprintf>
  79236. #if LWIP_TCP_TIMESTAMPS
  79237. if (pcb->flags & TF_TIMESTAMP) {
  79238. optflags = TF_SEG_OPTS_TS;
  79239. }
  79240. #endif
  79241. optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb);
  79242. 8020440: 7dfb ldrb r3, [r7, #23]
  79243. 8020442: 009b lsls r3, r3, #2
  79244. 8020444: b2db uxtb r3, r3
  79245. 8020446: f003 0304 and.w r3, r3, #4
  79246. 802044a: 757b strb r3, [r7, #21]
  79247. if ((num_sacks = tcp_get_num_sacks(pcb, optlen)) > 0) {
  79248. optlen += 4 + num_sacks * 8; /* 4 bytes for header (including 2*NOP), plus 8B for each SACK */
  79249. }
  79250. #endif
  79251. p = tcp_output_alloc_header(pcb, optlen, 0, lwip_htonl(pcb->snd_nxt));
  79252. 802044c: 7d7b ldrb r3, [r7, #21]
  79253. 802044e: b29c uxth r4, r3
  79254. 8020450: 687b ldr r3, [r7, #4]
  79255. 8020452: 6d1b ldr r3, [r3, #80] @ 0x50
  79256. 8020454: 4618 mov r0, r3
  79257. 8020456: f7f8 f914 bl 8018682 <lwip_htonl>
  79258. 802045a: 4603 mov r3, r0
  79259. 802045c: 2200 movs r2, #0
  79260. 802045e: 4621 mov r1, r4
  79261. 8020460: 6878 ldr r0, [r7, #4]
  79262. 8020462: f7ff fec3 bl 80201ec <tcp_output_alloc_header>
  79263. 8020466: 6138 str r0, [r7, #16]
  79264. if (p == NULL) {
  79265. 8020468: 693b ldr r3, [r7, #16]
  79266. 802046a: 2b00 cmp r3, #0
  79267. 802046c: d109 bne.n 8020482 <tcp_send_empty_ack+0x66>
  79268. /* let tcp_fasttmr retry sending this ACK */
  79269. tcp_set_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW);
  79270. 802046e: 687b ldr r3, [r7, #4]
  79271. 8020470: 8b5b ldrh r3, [r3, #26]
  79272. 8020472: f043 0303 orr.w r3, r3, #3
  79273. 8020476: b29a uxth r2, r3
  79274. 8020478: 687b ldr r3, [r7, #4]
  79275. 802047a: 835a strh r2, [r3, #26]
  79276. LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_output: (ACK) could not allocate pbuf\n"));
  79277. return ERR_BUF;
  79278. 802047c: f06f 0301 mvn.w r3, #1
  79279. 8020480: e023 b.n 80204ca <tcp_send_empty_ack+0xae>
  79280. }
  79281. tcp_output_fill_options(pcb, p, optflags, num_sacks);
  79282. 8020482: 7dbb ldrb r3, [r7, #22]
  79283. 8020484: 7dfa ldrb r2, [r7, #23]
  79284. 8020486: 6939 ldr r1, [r7, #16]
  79285. 8020488: 6878 ldr r0, [r7, #4]
  79286. 802048a: f7ff feed bl 8020268 <tcp_output_fill_options>
  79287. pcb->ts_lastacksent = pcb->rcv_nxt;
  79288. #endif
  79289. LWIP_DEBUGF(TCP_OUTPUT_DEBUG,
  79290. ("tcp_output: sending ACK for %"U32_F"\n", pcb->rcv_nxt));
  79291. err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip);
  79292. 802048e: 687a ldr r2, [r7, #4]
  79293. 8020490: 687b ldr r3, [r7, #4]
  79294. 8020492: 3304 adds r3, #4
  79295. 8020494: 6939 ldr r1, [r7, #16]
  79296. 8020496: 6878 ldr r0, [r7, #4]
  79297. 8020498: f7ff ff24 bl 80202e4 <tcp_output_control_segment>
  79298. 802049c: 4603 mov r3, r0
  79299. 802049e: 73fb strb r3, [r7, #15]
  79300. if (err != ERR_OK) {
  79301. 80204a0: f997 300f ldrsb.w r3, [r7, #15]
  79302. 80204a4: 2b00 cmp r3, #0
  79303. 80204a6: d007 beq.n 80204b8 <tcp_send_empty_ack+0x9c>
  79304. /* let tcp_fasttmr retry sending this ACK */
  79305. tcp_set_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW);
  79306. 80204a8: 687b ldr r3, [r7, #4]
  79307. 80204aa: 8b5b ldrh r3, [r3, #26]
  79308. 80204ac: f043 0303 orr.w r3, r3, #3
  79309. 80204b0: b29a uxth r2, r3
  79310. 80204b2: 687b ldr r3, [r7, #4]
  79311. 80204b4: 835a strh r2, [r3, #26]
  79312. 80204b6: e006 b.n 80204c6 <tcp_send_empty_ack+0xaa>
  79313. } else {
  79314. /* remove ACK flags from the PCB, as we sent an empty ACK now */
  79315. tcp_clear_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW);
  79316. 80204b8: 687b ldr r3, [r7, #4]
  79317. 80204ba: 8b5b ldrh r3, [r3, #26]
  79318. 80204bc: f023 0303 bic.w r3, r3, #3
  79319. 80204c0: b29a uxth r2, r3
  79320. 80204c2: 687b ldr r3, [r7, #4]
  79321. 80204c4: 835a strh r2, [r3, #26]
  79322. }
  79323. return err;
  79324. 80204c6: f997 300f ldrsb.w r3, [r7, #15]
  79325. }
  79326. 80204ca: 4618 mov r0, r3
  79327. 80204cc: 371c adds r7, #28
  79328. 80204ce: 46bd mov sp, r7
  79329. 80204d0: bd90 pop {r4, r7, pc}
  79330. 80204d2: bf00 nop
  79331. 80204d4: 0802ed24 .word 0x0802ed24
  79332. 80204d8: 0802f53c .word 0x0802f53c
  79333. 80204dc: 0802ed78 .word 0x0802ed78
  79334. 080204e0 <tcp_keepalive>:
  79335. *
  79336. * @param pcb the tcp_pcb for which to send a keepalive packet
  79337. */
  79338. err_t
  79339. tcp_keepalive(struct tcp_pcb *pcb)
  79340. {
  79341. 80204e0: b590 push {r4, r7, lr}
  79342. 80204e2: b085 sub sp, #20
  79343. 80204e4: af00 add r7, sp, #0
  79344. 80204e6: 6078 str r0, [r7, #4]
  79345. err_t err;
  79346. struct pbuf *p;
  79347. u8_t optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb);
  79348. 80204e8: 2300 movs r3, #0
  79349. 80204ea: 72bb strb r3, [r7, #10]
  79350. LWIP_ASSERT("tcp_keepalive: invalid pcb", pcb != NULL);
  79351. 80204ec: 687b ldr r3, [r7, #4]
  79352. 80204ee: 2b00 cmp r3, #0
  79353. 80204f0: d106 bne.n 8020500 <tcp_keepalive+0x20>
  79354. 80204f2: 4b18 ldr r3, [pc, #96] @ (8020554 <tcp_keepalive+0x74>)
  79355. 80204f4: f640 0224 movw r2, #2084 @ 0x824
  79356. 80204f8: 4917 ldr r1, [pc, #92] @ (8020558 <tcp_keepalive+0x78>)
  79357. 80204fa: 4818 ldr r0, [pc, #96] @ (802055c <tcp_keepalive+0x7c>)
  79358. 80204fc: f009 f806 bl 802950c <iprintf>
  79359. LWIP_DEBUGF(TCP_DEBUG, ("\n"));
  79360. LWIP_DEBUGF(TCP_DEBUG, ("tcp_keepalive: tcp_ticks %"U32_F" pcb->tmr %"U32_F" pcb->keep_cnt_sent %"U16_F"\n",
  79361. tcp_ticks, pcb->tmr, (u16_t)pcb->keep_cnt_sent));
  79362. p = tcp_output_alloc_header(pcb, optlen, 0, lwip_htonl(pcb->snd_nxt - 1));
  79363. 8020500: 7abb ldrb r3, [r7, #10]
  79364. 8020502: b29c uxth r4, r3
  79365. 8020504: 687b ldr r3, [r7, #4]
  79366. 8020506: 6d1b ldr r3, [r3, #80] @ 0x50
  79367. 8020508: 3b01 subs r3, #1
  79368. 802050a: 4618 mov r0, r3
  79369. 802050c: f7f8 f8b9 bl 8018682 <lwip_htonl>
  79370. 8020510: 4603 mov r3, r0
  79371. 8020512: 2200 movs r2, #0
  79372. 8020514: 4621 mov r1, r4
  79373. 8020516: 6878 ldr r0, [r7, #4]
  79374. 8020518: f7ff fe68 bl 80201ec <tcp_output_alloc_header>
  79375. 802051c: 60f8 str r0, [r7, #12]
  79376. if (p == NULL) {
  79377. 802051e: 68fb ldr r3, [r7, #12]
  79378. 8020520: 2b00 cmp r3, #0
  79379. 8020522: d102 bne.n 802052a <tcp_keepalive+0x4a>
  79380. LWIP_DEBUGF(TCP_DEBUG,
  79381. ("tcp_keepalive: could not allocate memory for pbuf\n"));
  79382. return ERR_MEM;
  79383. 8020524: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  79384. 8020528: e010 b.n 802054c <tcp_keepalive+0x6c>
  79385. }
  79386. tcp_output_fill_options(pcb, p, 0, optlen);
  79387. 802052a: 7abb ldrb r3, [r7, #10]
  79388. 802052c: 2200 movs r2, #0
  79389. 802052e: 68f9 ldr r1, [r7, #12]
  79390. 8020530: 6878 ldr r0, [r7, #4]
  79391. 8020532: f7ff fe99 bl 8020268 <tcp_output_fill_options>
  79392. err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip);
  79393. 8020536: 687a ldr r2, [r7, #4]
  79394. 8020538: 687b ldr r3, [r7, #4]
  79395. 802053a: 3304 adds r3, #4
  79396. 802053c: 68f9 ldr r1, [r7, #12]
  79397. 802053e: 6878 ldr r0, [r7, #4]
  79398. 8020540: f7ff fed0 bl 80202e4 <tcp_output_control_segment>
  79399. 8020544: 4603 mov r3, r0
  79400. 8020546: 72fb strb r3, [r7, #11]
  79401. LWIP_DEBUGF(TCP_DEBUG, ("tcp_keepalive: seqno %"U32_F" ackno %"U32_F" err %d.\n",
  79402. pcb->snd_nxt - 1, pcb->rcv_nxt, (int)err));
  79403. return err;
  79404. 8020548: f997 300b ldrsb.w r3, [r7, #11]
  79405. }
  79406. 802054c: 4618 mov r0, r3
  79407. 802054e: 3714 adds r7, #20
  79408. 8020550: 46bd mov sp, r7
  79409. 8020552: bd90 pop {r4, r7, pc}
  79410. 8020554: 0802ed24 .word 0x0802ed24
  79411. 8020558: 0802f55c .word 0x0802f55c
  79412. 802055c: 0802ed78 .word 0x0802ed78
  79413. 08020560 <tcp_zero_window_probe>:
  79414. *
  79415. * @param pcb the tcp_pcb for which to send a zero-window probe packet
  79416. */
  79417. err_t
  79418. tcp_zero_window_probe(struct tcp_pcb *pcb)
  79419. {
  79420. 8020560: b590 push {r4, r7, lr}
  79421. 8020562: b08b sub sp, #44 @ 0x2c
  79422. 8020564: af00 add r7, sp, #0
  79423. 8020566: 6078 str r0, [r7, #4]
  79424. struct tcp_hdr *tcphdr;
  79425. struct tcp_seg *seg;
  79426. u16_t len;
  79427. u8_t is_fin;
  79428. u32_t snd_nxt;
  79429. u8_t optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb);
  79430. 8020568: 2300 movs r3, #0
  79431. 802056a: 74fb strb r3, [r7, #19]
  79432. LWIP_ASSERT("tcp_zero_window_probe: invalid pcb", pcb != NULL);
  79433. 802056c: 687b ldr r3, [r7, #4]
  79434. 802056e: 2b00 cmp r3, #0
  79435. 8020570: d106 bne.n 8020580 <tcp_zero_window_probe+0x20>
  79436. 8020572: 4b4d ldr r3, [pc, #308] @ (80206a8 <tcp_zero_window_probe+0x148>)
  79437. 8020574: f640 024f movw r2, #2127 @ 0x84f
  79438. 8020578: 494c ldr r1, [pc, #304] @ (80206ac <tcp_zero_window_probe+0x14c>)
  79439. 802057a: 484d ldr r0, [pc, #308] @ (80206b0 <tcp_zero_window_probe+0x150>)
  79440. 802057c: f008 ffc6 bl 802950c <iprintf>
  79441. ("tcp_zero_window_probe: tcp_ticks %"U32_F
  79442. " pcb->tmr %"U32_F" pcb->keep_cnt_sent %"U16_F"\n",
  79443. tcp_ticks, pcb->tmr, (u16_t)pcb->keep_cnt_sent));
  79444. /* Only consider unsent, persist timer should be off when there is data in-flight */
  79445. seg = pcb->unsent;
  79446. 8020580: 687b ldr r3, [r7, #4]
  79447. 8020582: 6edb ldr r3, [r3, #108] @ 0x6c
  79448. 8020584: 627b str r3, [r7, #36] @ 0x24
  79449. if (seg == NULL) {
  79450. 8020586: 6a7b ldr r3, [r7, #36] @ 0x24
  79451. 8020588: 2b00 cmp r3, #0
  79452. 802058a: d101 bne.n 8020590 <tcp_zero_window_probe+0x30>
  79453. /* Not expected, persist timer should be off when the send buffer is empty */
  79454. return ERR_OK;
  79455. 802058c: 2300 movs r3, #0
  79456. 802058e: e087 b.n 80206a0 <tcp_zero_window_probe+0x140>
  79457. /* increment probe count. NOTE: we record probe even if it fails
  79458. to actually transmit due to an error. This ensures memory exhaustion/
  79459. routing problem doesn't leave a zero-window pcb as an indefinite zombie.
  79460. RTO mechanism has similar behavior, see pcb->nrtx */
  79461. if (pcb->persist_probe < 0xFF) {
  79462. 8020590: 687b ldr r3, [r7, #4]
  79463. 8020592: f893 309a ldrb.w r3, [r3, #154] @ 0x9a
  79464. 8020596: 2bff cmp r3, #255 @ 0xff
  79465. 8020598: d007 beq.n 80205aa <tcp_zero_window_probe+0x4a>
  79466. ++pcb->persist_probe;
  79467. 802059a: 687b ldr r3, [r7, #4]
  79468. 802059c: f893 309a ldrb.w r3, [r3, #154] @ 0x9a
  79469. 80205a0: 3301 adds r3, #1
  79470. 80205a2: b2da uxtb r2, r3
  79471. 80205a4: 687b ldr r3, [r7, #4]
  79472. 80205a6: f883 209a strb.w r2, [r3, #154] @ 0x9a
  79473. }
  79474. is_fin = ((TCPH_FLAGS(seg->tcphdr) & TCP_FIN) != 0) && (seg->len == 0);
  79475. 80205aa: 6a7b ldr r3, [r7, #36] @ 0x24
  79476. 80205ac: 691b ldr r3, [r3, #16]
  79477. 80205ae: 899b ldrh r3, [r3, #12]
  79478. 80205b0: b29b uxth r3, r3
  79479. 80205b2: 4618 mov r0, r3
  79480. 80205b4: f7f8 f850 bl 8018658 <lwip_htons>
  79481. 80205b8: 4603 mov r3, r0
  79482. 80205ba: b2db uxtb r3, r3
  79483. 80205bc: f003 0301 and.w r3, r3, #1
  79484. 80205c0: 2b00 cmp r3, #0
  79485. 80205c2: d005 beq.n 80205d0 <tcp_zero_window_probe+0x70>
  79486. 80205c4: 6a7b ldr r3, [r7, #36] @ 0x24
  79487. 80205c6: 891b ldrh r3, [r3, #8]
  79488. 80205c8: 2b00 cmp r3, #0
  79489. 80205ca: d101 bne.n 80205d0 <tcp_zero_window_probe+0x70>
  79490. 80205cc: 2301 movs r3, #1
  79491. 80205ce: e000 b.n 80205d2 <tcp_zero_window_probe+0x72>
  79492. 80205d0: 2300 movs r3, #0
  79493. 80205d2: f887 3023 strb.w r3, [r7, #35] @ 0x23
  79494. /* we want to send one seqno: either FIN or data (no options) */
  79495. len = is_fin ? 0 : 1;
  79496. 80205d6: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  79497. 80205da: 2b00 cmp r3, #0
  79498. 80205dc: bf0c ite eq
  79499. 80205de: 2301 moveq r3, #1
  79500. 80205e0: 2300 movne r3, #0
  79501. 80205e2: b2db uxtb r3, r3
  79502. 80205e4: 843b strh r3, [r7, #32]
  79503. p = tcp_output_alloc_header(pcb, optlen, len, seg->tcphdr->seqno);
  79504. 80205e6: 7cfb ldrb r3, [r7, #19]
  79505. 80205e8: b299 uxth r1, r3
  79506. 80205ea: 6a7b ldr r3, [r7, #36] @ 0x24
  79507. 80205ec: 691b ldr r3, [r3, #16]
  79508. 80205ee: 685b ldr r3, [r3, #4]
  79509. 80205f0: 8c3a ldrh r2, [r7, #32]
  79510. 80205f2: 6878 ldr r0, [r7, #4]
  79511. 80205f4: f7ff fdfa bl 80201ec <tcp_output_alloc_header>
  79512. 80205f8: 61f8 str r0, [r7, #28]
  79513. if (p == NULL) {
  79514. 80205fa: 69fb ldr r3, [r7, #28]
  79515. 80205fc: 2b00 cmp r3, #0
  79516. 80205fe: d102 bne.n 8020606 <tcp_zero_window_probe+0xa6>
  79517. LWIP_DEBUGF(TCP_DEBUG, ("tcp_zero_window_probe: no memory for pbuf\n"));
  79518. return ERR_MEM;
  79519. 8020600: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  79520. 8020604: e04c b.n 80206a0 <tcp_zero_window_probe+0x140>
  79521. }
  79522. tcphdr = (struct tcp_hdr *)p->payload;
  79523. 8020606: 69fb ldr r3, [r7, #28]
  79524. 8020608: 685b ldr r3, [r3, #4]
  79525. 802060a: 61bb str r3, [r7, #24]
  79526. if (is_fin) {
  79527. 802060c: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  79528. 8020610: 2b00 cmp r3, #0
  79529. 8020612: d011 beq.n 8020638 <tcp_zero_window_probe+0xd8>
  79530. /* FIN segment, no data */
  79531. TCPH_FLAGS_SET(tcphdr, TCP_ACK | TCP_FIN);
  79532. 8020614: 69bb ldr r3, [r7, #24]
  79533. 8020616: 899b ldrh r3, [r3, #12]
  79534. 8020618: b29b uxth r3, r3
  79535. 802061a: b21b sxth r3, r3
  79536. 802061c: f423 537c bic.w r3, r3, #16128 @ 0x3f00
  79537. 8020620: b21c sxth r4, r3
  79538. 8020622: 2011 movs r0, #17
  79539. 8020624: f7f8 f818 bl 8018658 <lwip_htons>
  79540. 8020628: 4603 mov r3, r0
  79541. 802062a: b21b sxth r3, r3
  79542. 802062c: 4323 orrs r3, r4
  79543. 802062e: b21b sxth r3, r3
  79544. 8020630: b29a uxth r2, r3
  79545. 8020632: 69bb ldr r3, [r7, #24]
  79546. 8020634: 819a strh r2, [r3, #12]
  79547. 8020636: e010 b.n 802065a <tcp_zero_window_probe+0xfa>
  79548. } else {
  79549. /* Data segment, copy in one byte from the head of the unacked queue */
  79550. char *d = ((char *)p->payload + TCP_HLEN);
  79551. 8020638: 69fb ldr r3, [r7, #28]
  79552. 802063a: 685b ldr r3, [r3, #4]
  79553. 802063c: 3314 adds r3, #20
  79554. 802063e: 617b str r3, [r7, #20]
  79555. /* Depending on whether the segment has already been sent (unacked) or not
  79556. (unsent), seg->p->payload points to the IP header or TCP header.
  79557. Ensure we copy the first TCP data byte: */
  79558. pbuf_copy_partial(seg->p, d, 1, seg->p->tot_len - seg->len);
  79559. 8020640: 6a7b ldr r3, [r7, #36] @ 0x24
  79560. 8020642: 6858 ldr r0, [r3, #4]
  79561. 8020644: 6a7b ldr r3, [r7, #36] @ 0x24
  79562. 8020646: 685b ldr r3, [r3, #4]
  79563. 8020648: 891a ldrh r2, [r3, #8]
  79564. 802064a: 6a7b ldr r3, [r7, #36] @ 0x24
  79565. 802064c: 891b ldrh r3, [r3, #8]
  79566. 802064e: 1ad3 subs r3, r2, r3
  79567. 8020650: b29b uxth r3, r3
  79568. 8020652: 2201 movs r2, #1
  79569. 8020654: 6979 ldr r1, [r7, #20]
  79570. 8020656: f7f9 fee7 bl 801a428 <pbuf_copy_partial>
  79571. }
  79572. /* The byte may be acknowledged without the window being opened. */
  79573. snd_nxt = lwip_ntohl(seg->tcphdr->seqno) + 1;
  79574. 802065a: 6a7b ldr r3, [r7, #36] @ 0x24
  79575. 802065c: 691b ldr r3, [r3, #16]
  79576. 802065e: 685b ldr r3, [r3, #4]
  79577. 8020660: 4618 mov r0, r3
  79578. 8020662: f7f8 f80e bl 8018682 <lwip_htonl>
  79579. 8020666: 4603 mov r3, r0
  79580. 8020668: 3301 adds r3, #1
  79581. 802066a: 60fb str r3, [r7, #12]
  79582. if (TCP_SEQ_LT(pcb->snd_nxt, snd_nxt)) {
  79583. 802066c: 687b ldr r3, [r7, #4]
  79584. 802066e: 6d1a ldr r2, [r3, #80] @ 0x50
  79585. 8020670: 68fb ldr r3, [r7, #12]
  79586. 8020672: 1ad3 subs r3, r2, r3
  79587. 8020674: 2b00 cmp r3, #0
  79588. 8020676: da02 bge.n 802067e <tcp_zero_window_probe+0x11e>
  79589. pcb->snd_nxt = snd_nxt;
  79590. 8020678: 687b ldr r3, [r7, #4]
  79591. 802067a: 68fa ldr r2, [r7, #12]
  79592. 802067c: 651a str r2, [r3, #80] @ 0x50
  79593. }
  79594. tcp_output_fill_options(pcb, p, 0, optlen);
  79595. 802067e: 7cfb ldrb r3, [r7, #19]
  79596. 8020680: 2200 movs r2, #0
  79597. 8020682: 69f9 ldr r1, [r7, #28]
  79598. 8020684: 6878 ldr r0, [r7, #4]
  79599. 8020686: f7ff fdef bl 8020268 <tcp_output_fill_options>
  79600. err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip);
  79601. 802068a: 687a ldr r2, [r7, #4]
  79602. 802068c: 687b ldr r3, [r7, #4]
  79603. 802068e: 3304 adds r3, #4
  79604. 8020690: 69f9 ldr r1, [r7, #28]
  79605. 8020692: 6878 ldr r0, [r7, #4]
  79606. 8020694: f7ff fe26 bl 80202e4 <tcp_output_control_segment>
  79607. 8020698: 4603 mov r3, r0
  79608. 802069a: 72fb strb r3, [r7, #11]
  79609. LWIP_DEBUGF(TCP_DEBUG, ("tcp_zero_window_probe: seqno %"U32_F
  79610. " ackno %"U32_F" err %d.\n",
  79611. pcb->snd_nxt - 1, pcb->rcv_nxt, (int)err));
  79612. return err;
  79613. 802069c: f997 300b ldrsb.w r3, [r7, #11]
  79614. }
  79615. 80206a0: 4618 mov r0, r3
  79616. 80206a2: 372c adds r7, #44 @ 0x2c
  79617. 80206a4: 46bd mov sp, r7
  79618. 80206a6: bd90 pop {r4, r7, pc}
  79619. 80206a8: 0802ed24 .word 0x0802ed24
  79620. 80206ac: 0802f578 .word 0x0802f578
  79621. 80206b0: 0802ed78 .word 0x0802ed78
  79622. 080206b4 <tcpip_tcp_timer>:
  79623. *
  79624. * @param arg unused argument
  79625. */
  79626. static void
  79627. tcpip_tcp_timer(void *arg)
  79628. {
  79629. 80206b4: b580 push {r7, lr}
  79630. 80206b6: b082 sub sp, #8
  79631. 80206b8: af00 add r7, sp, #0
  79632. 80206ba: 6078 str r0, [r7, #4]
  79633. LWIP_UNUSED_ARG(arg);
  79634. /* call TCP timer handler */
  79635. tcp_tmr();
  79636. 80206bc: f7f9 ffa2 bl 801a604 <tcp_tmr>
  79637. /* timer still needed? */
  79638. if (tcp_active_pcbs || tcp_tw_pcbs) {
  79639. 80206c0: 4b0a ldr r3, [pc, #40] @ (80206ec <tcpip_tcp_timer+0x38>)
  79640. 80206c2: 681b ldr r3, [r3, #0]
  79641. 80206c4: 2b00 cmp r3, #0
  79642. 80206c6: d103 bne.n 80206d0 <tcpip_tcp_timer+0x1c>
  79643. 80206c8: 4b09 ldr r3, [pc, #36] @ (80206f0 <tcpip_tcp_timer+0x3c>)
  79644. 80206ca: 681b ldr r3, [r3, #0]
  79645. 80206cc: 2b00 cmp r3, #0
  79646. 80206ce: d005 beq.n 80206dc <tcpip_tcp_timer+0x28>
  79647. /* restart timer */
  79648. sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL);
  79649. 80206d0: 2200 movs r2, #0
  79650. 80206d2: 4908 ldr r1, [pc, #32] @ (80206f4 <tcpip_tcp_timer+0x40>)
  79651. 80206d4: 20fa movs r0, #250 @ 0xfa
  79652. 80206d6: f000 f8f5 bl 80208c4 <sys_timeout>
  79653. 80206da: e003 b.n 80206e4 <tcpip_tcp_timer+0x30>
  79654. } else {
  79655. /* disable timer */
  79656. tcpip_tcp_timer_active = 0;
  79657. 80206dc: 4b06 ldr r3, [pc, #24] @ (80206f8 <tcpip_tcp_timer+0x44>)
  79658. 80206de: 2200 movs r2, #0
  79659. 80206e0: 601a str r2, [r3, #0]
  79660. }
  79661. }
  79662. 80206e2: bf00 nop
  79663. 80206e4: bf00 nop
  79664. 80206e6: 3708 adds r7, #8
  79665. 80206e8: 46bd mov sp, r7
  79666. 80206ea: bd80 pop {r7, pc}
  79667. 80206ec: 24029ff8 .word 0x24029ff8
  79668. 80206f0: 24029ffc .word 0x24029ffc
  79669. 80206f4: 080206b5 .word 0x080206b5
  79670. 80206f8: 2402a048 .word 0x2402a048
  79671. 080206fc <tcp_timer_needed>:
  79672. * the reason is to have the TCP timer only running when
  79673. * there are active (or time-wait) PCBs.
  79674. */
  79675. void
  79676. tcp_timer_needed(void)
  79677. {
  79678. 80206fc: b580 push {r7, lr}
  79679. 80206fe: af00 add r7, sp, #0
  79680. LWIP_ASSERT_CORE_LOCKED();
  79681. 8020700: f7ef fcb6 bl 8010070 <sys_check_core_locking>
  79682. /* timer is off but needed again? */
  79683. if (!tcpip_tcp_timer_active && (tcp_active_pcbs || tcp_tw_pcbs)) {
  79684. 8020704: 4b0a ldr r3, [pc, #40] @ (8020730 <tcp_timer_needed+0x34>)
  79685. 8020706: 681b ldr r3, [r3, #0]
  79686. 8020708: 2b00 cmp r3, #0
  79687. 802070a: d10f bne.n 802072c <tcp_timer_needed+0x30>
  79688. 802070c: 4b09 ldr r3, [pc, #36] @ (8020734 <tcp_timer_needed+0x38>)
  79689. 802070e: 681b ldr r3, [r3, #0]
  79690. 8020710: 2b00 cmp r3, #0
  79691. 8020712: d103 bne.n 802071c <tcp_timer_needed+0x20>
  79692. 8020714: 4b08 ldr r3, [pc, #32] @ (8020738 <tcp_timer_needed+0x3c>)
  79693. 8020716: 681b ldr r3, [r3, #0]
  79694. 8020718: 2b00 cmp r3, #0
  79695. 802071a: d007 beq.n 802072c <tcp_timer_needed+0x30>
  79696. /* enable and start timer */
  79697. tcpip_tcp_timer_active = 1;
  79698. 802071c: 4b04 ldr r3, [pc, #16] @ (8020730 <tcp_timer_needed+0x34>)
  79699. 802071e: 2201 movs r2, #1
  79700. 8020720: 601a str r2, [r3, #0]
  79701. sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL);
  79702. 8020722: 2200 movs r2, #0
  79703. 8020724: 4905 ldr r1, [pc, #20] @ (802073c <tcp_timer_needed+0x40>)
  79704. 8020726: 20fa movs r0, #250 @ 0xfa
  79705. 8020728: f000 f8cc bl 80208c4 <sys_timeout>
  79706. }
  79707. }
  79708. 802072c: bf00 nop
  79709. 802072e: bd80 pop {r7, pc}
  79710. 8020730: 2402a048 .word 0x2402a048
  79711. 8020734: 24029ff8 .word 0x24029ff8
  79712. 8020738: 24029ffc .word 0x24029ffc
  79713. 802073c: 080206b5 .word 0x080206b5
  79714. 08020740 <sys_timeout_abs>:
  79715. #if LWIP_DEBUG_TIMERNAMES
  79716. sys_timeout_abs(u32_t abs_time, sys_timeout_handler handler, void *arg, const char *handler_name)
  79717. #else /* LWIP_DEBUG_TIMERNAMES */
  79718. sys_timeout_abs(u32_t abs_time, sys_timeout_handler handler, void *arg)
  79719. #endif
  79720. {
  79721. 8020740: b580 push {r7, lr}
  79722. 8020742: b086 sub sp, #24
  79723. 8020744: af00 add r7, sp, #0
  79724. 8020746: 60f8 str r0, [r7, #12]
  79725. 8020748: 60b9 str r1, [r7, #8]
  79726. 802074a: 607a str r2, [r7, #4]
  79727. struct sys_timeo *timeout, *t;
  79728. timeout = (struct sys_timeo *)memp_malloc(MEMP_SYS_TIMEOUT);
  79729. 802074c: 200a movs r0, #10
  79730. 802074e: f7f8 fd01 bl 8019154 <memp_malloc>
  79731. 8020752: 6138 str r0, [r7, #16]
  79732. if (timeout == NULL) {
  79733. 8020754: 693b ldr r3, [r7, #16]
  79734. 8020756: 2b00 cmp r3, #0
  79735. 8020758: d109 bne.n 802076e <sys_timeout_abs+0x2e>
  79736. LWIP_ASSERT("sys_timeout: timeout != NULL, pool MEMP_SYS_TIMEOUT is empty", timeout != NULL);
  79737. 802075a: 693b ldr r3, [r7, #16]
  79738. 802075c: 2b00 cmp r3, #0
  79739. 802075e: d151 bne.n 8020804 <sys_timeout_abs+0xc4>
  79740. 8020760: 4b2a ldr r3, [pc, #168] @ (802080c <sys_timeout_abs+0xcc>)
  79741. 8020762: 22be movs r2, #190 @ 0xbe
  79742. 8020764: 492a ldr r1, [pc, #168] @ (8020810 <sys_timeout_abs+0xd0>)
  79743. 8020766: 482b ldr r0, [pc, #172] @ (8020814 <sys_timeout_abs+0xd4>)
  79744. 8020768: f008 fed0 bl 802950c <iprintf>
  79745. return;
  79746. 802076c: e04a b.n 8020804 <sys_timeout_abs+0xc4>
  79747. }
  79748. timeout->next = NULL;
  79749. 802076e: 693b ldr r3, [r7, #16]
  79750. 8020770: 2200 movs r2, #0
  79751. 8020772: 601a str r2, [r3, #0]
  79752. timeout->h = handler;
  79753. 8020774: 693b ldr r3, [r7, #16]
  79754. 8020776: 68ba ldr r2, [r7, #8]
  79755. 8020778: 609a str r2, [r3, #8]
  79756. timeout->arg = arg;
  79757. 802077a: 693b ldr r3, [r7, #16]
  79758. 802077c: 687a ldr r2, [r7, #4]
  79759. 802077e: 60da str r2, [r3, #12]
  79760. timeout->time = abs_time;
  79761. 8020780: 693b ldr r3, [r7, #16]
  79762. 8020782: 68fa ldr r2, [r7, #12]
  79763. 8020784: 605a str r2, [r3, #4]
  79764. timeout->handler_name = handler_name;
  79765. LWIP_DEBUGF(TIMERS_DEBUG, ("sys_timeout: %p abs_time=%"U32_F" handler=%s arg=%p\n",
  79766. (void *)timeout, abs_time, handler_name, (void *)arg));
  79767. #endif /* LWIP_DEBUG_TIMERNAMES */
  79768. if (next_timeout == NULL) {
  79769. 8020786: 4b24 ldr r3, [pc, #144] @ (8020818 <sys_timeout_abs+0xd8>)
  79770. 8020788: 681b ldr r3, [r3, #0]
  79771. 802078a: 2b00 cmp r3, #0
  79772. 802078c: d103 bne.n 8020796 <sys_timeout_abs+0x56>
  79773. next_timeout = timeout;
  79774. 802078e: 4a22 ldr r2, [pc, #136] @ (8020818 <sys_timeout_abs+0xd8>)
  79775. 8020790: 693b ldr r3, [r7, #16]
  79776. 8020792: 6013 str r3, [r2, #0]
  79777. return;
  79778. 8020794: e037 b.n 8020806 <sys_timeout_abs+0xc6>
  79779. }
  79780. if (TIME_LESS_THAN(timeout->time, next_timeout->time)) {
  79781. 8020796: 693b ldr r3, [r7, #16]
  79782. 8020798: 685a ldr r2, [r3, #4]
  79783. 802079a: 4b1f ldr r3, [pc, #124] @ (8020818 <sys_timeout_abs+0xd8>)
  79784. 802079c: 681b ldr r3, [r3, #0]
  79785. 802079e: 685b ldr r3, [r3, #4]
  79786. 80207a0: 1ad3 subs r3, r2, r3
  79787. 80207a2: 0fdb lsrs r3, r3, #31
  79788. 80207a4: f003 0301 and.w r3, r3, #1
  79789. 80207a8: b2db uxtb r3, r3
  79790. 80207aa: 2b00 cmp r3, #0
  79791. 80207ac: d007 beq.n 80207be <sys_timeout_abs+0x7e>
  79792. timeout->next = next_timeout;
  79793. 80207ae: 4b1a ldr r3, [pc, #104] @ (8020818 <sys_timeout_abs+0xd8>)
  79794. 80207b0: 681a ldr r2, [r3, #0]
  79795. 80207b2: 693b ldr r3, [r7, #16]
  79796. 80207b4: 601a str r2, [r3, #0]
  79797. next_timeout = timeout;
  79798. 80207b6: 4a18 ldr r2, [pc, #96] @ (8020818 <sys_timeout_abs+0xd8>)
  79799. 80207b8: 693b ldr r3, [r7, #16]
  79800. 80207ba: 6013 str r3, [r2, #0]
  79801. 80207bc: e023 b.n 8020806 <sys_timeout_abs+0xc6>
  79802. } else {
  79803. for (t = next_timeout; t != NULL; t = t->next) {
  79804. 80207be: 4b16 ldr r3, [pc, #88] @ (8020818 <sys_timeout_abs+0xd8>)
  79805. 80207c0: 681b ldr r3, [r3, #0]
  79806. 80207c2: 617b str r3, [r7, #20]
  79807. 80207c4: e01a b.n 80207fc <sys_timeout_abs+0xbc>
  79808. if ((t->next == NULL) || TIME_LESS_THAN(timeout->time, t->next->time)) {
  79809. 80207c6: 697b ldr r3, [r7, #20]
  79810. 80207c8: 681b ldr r3, [r3, #0]
  79811. 80207ca: 2b00 cmp r3, #0
  79812. 80207cc: d00b beq.n 80207e6 <sys_timeout_abs+0xa6>
  79813. 80207ce: 693b ldr r3, [r7, #16]
  79814. 80207d0: 685a ldr r2, [r3, #4]
  79815. 80207d2: 697b ldr r3, [r7, #20]
  79816. 80207d4: 681b ldr r3, [r3, #0]
  79817. 80207d6: 685b ldr r3, [r3, #4]
  79818. 80207d8: 1ad3 subs r3, r2, r3
  79819. 80207da: 0fdb lsrs r3, r3, #31
  79820. 80207dc: f003 0301 and.w r3, r3, #1
  79821. 80207e0: b2db uxtb r3, r3
  79822. 80207e2: 2b00 cmp r3, #0
  79823. 80207e4: d007 beq.n 80207f6 <sys_timeout_abs+0xb6>
  79824. timeout->next = t->next;
  79825. 80207e6: 697b ldr r3, [r7, #20]
  79826. 80207e8: 681a ldr r2, [r3, #0]
  79827. 80207ea: 693b ldr r3, [r7, #16]
  79828. 80207ec: 601a str r2, [r3, #0]
  79829. t->next = timeout;
  79830. 80207ee: 697b ldr r3, [r7, #20]
  79831. 80207f0: 693a ldr r2, [r7, #16]
  79832. 80207f2: 601a str r2, [r3, #0]
  79833. break;
  79834. 80207f4: e007 b.n 8020806 <sys_timeout_abs+0xc6>
  79835. for (t = next_timeout; t != NULL; t = t->next) {
  79836. 80207f6: 697b ldr r3, [r7, #20]
  79837. 80207f8: 681b ldr r3, [r3, #0]
  79838. 80207fa: 617b str r3, [r7, #20]
  79839. 80207fc: 697b ldr r3, [r7, #20]
  79840. 80207fe: 2b00 cmp r3, #0
  79841. 8020800: d1e1 bne.n 80207c6 <sys_timeout_abs+0x86>
  79842. 8020802: e000 b.n 8020806 <sys_timeout_abs+0xc6>
  79843. return;
  79844. 8020804: bf00 nop
  79845. }
  79846. }
  79847. }
  79848. }
  79849. 8020806: 3718 adds r7, #24
  79850. 8020808: 46bd mov sp, r7
  79851. 802080a: bd80 pop {r7, pc}
  79852. 802080c: 0802f59c .word 0x0802f59c
  79853. 8020810: 0802f5d0 .word 0x0802f5d0
  79854. 8020814: 0802f610 .word 0x0802f610
  79855. 8020818: 2402a040 .word 0x2402a040
  79856. 0802081c <lwip_cyclic_timer>:
  79857. #if !LWIP_TESTMODE
  79858. static
  79859. #endif
  79860. void
  79861. lwip_cyclic_timer(void *arg)
  79862. {
  79863. 802081c: b580 push {r7, lr}
  79864. 802081e: b086 sub sp, #24
  79865. 8020820: af00 add r7, sp, #0
  79866. 8020822: 6078 str r0, [r7, #4]
  79867. u32_t now;
  79868. u32_t next_timeout_time;
  79869. const struct lwip_cyclic_timer *cyclic = (const struct lwip_cyclic_timer *)arg;
  79870. 8020824: 687b ldr r3, [r7, #4]
  79871. 8020826: 617b str r3, [r7, #20]
  79872. #if LWIP_DEBUG_TIMERNAMES
  79873. LWIP_DEBUGF(TIMERS_DEBUG, ("tcpip: %s()\n", cyclic->handler_name));
  79874. #endif
  79875. cyclic->handler();
  79876. 8020828: 697b ldr r3, [r7, #20]
  79877. 802082a: 685b ldr r3, [r3, #4]
  79878. 802082c: 4798 blx r3
  79879. now = sys_now();
  79880. 802082e: f7ef f993 bl 800fb58 <sys_now>
  79881. 8020832: 6138 str r0, [r7, #16]
  79882. next_timeout_time = (u32_t)(current_timeout_due_time + cyclic->interval_ms); /* overflow handled by TIME_LESS_THAN macro */
  79883. 8020834: 697b ldr r3, [r7, #20]
  79884. 8020836: 681a ldr r2, [r3, #0]
  79885. 8020838: 4b0f ldr r3, [pc, #60] @ (8020878 <lwip_cyclic_timer+0x5c>)
  79886. 802083a: 681b ldr r3, [r3, #0]
  79887. 802083c: 4413 add r3, r2
  79888. 802083e: 60fb str r3, [r7, #12]
  79889. if (TIME_LESS_THAN(next_timeout_time, now)) {
  79890. 8020840: 68fa ldr r2, [r7, #12]
  79891. 8020842: 693b ldr r3, [r7, #16]
  79892. 8020844: 1ad3 subs r3, r2, r3
  79893. 8020846: 0fdb lsrs r3, r3, #31
  79894. 8020848: f003 0301 and.w r3, r3, #1
  79895. 802084c: b2db uxtb r3, r3
  79896. 802084e: 2b00 cmp r3, #0
  79897. 8020850: d009 beq.n 8020866 <lwip_cyclic_timer+0x4a>
  79898. /* timer would immediately expire again -> "overload" -> restart without any correction */
  79899. #if LWIP_DEBUG_TIMERNAMES
  79900. sys_timeout_abs((u32_t)(now + cyclic->interval_ms), lwip_cyclic_timer, arg, cyclic->handler_name);
  79901. #else
  79902. sys_timeout_abs((u32_t)(now + cyclic->interval_ms), lwip_cyclic_timer, arg);
  79903. 8020852: 697b ldr r3, [r7, #20]
  79904. 8020854: 681a ldr r2, [r3, #0]
  79905. 8020856: 693b ldr r3, [r7, #16]
  79906. 8020858: 4413 add r3, r2
  79907. 802085a: 687a ldr r2, [r7, #4]
  79908. 802085c: 4907 ldr r1, [pc, #28] @ (802087c <lwip_cyclic_timer+0x60>)
  79909. 802085e: 4618 mov r0, r3
  79910. 8020860: f7ff ff6e bl 8020740 <sys_timeout_abs>
  79911. sys_timeout_abs(next_timeout_time, lwip_cyclic_timer, arg, cyclic->handler_name);
  79912. #else
  79913. sys_timeout_abs(next_timeout_time, lwip_cyclic_timer, arg);
  79914. #endif
  79915. }
  79916. }
  79917. 8020864: e004 b.n 8020870 <lwip_cyclic_timer+0x54>
  79918. sys_timeout_abs(next_timeout_time, lwip_cyclic_timer, arg);
  79919. 8020866: 687a ldr r2, [r7, #4]
  79920. 8020868: 4904 ldr r1, [pc, #16] @ (802087c <lwip_cyclic_timer+0x60>)
  79921. 802086a: 68f8 ldr r0, [r7, #12]
  79922. 802086c: f7ff ff68 bl 8020740 <sys_timeout_abs>
  79923. }
  79924. 8020870: bf00 nop
  79925. 8020872: 3718 adds r7, #24
  79926. 8020874: 46bd mov sp, r7
  79927. 8020876: bd80 pop {r7, pc}
  79928. 8020878: 2402a044 .word 0x2402a044
  79929. 802087c: 0802081d .word 0x0802081d
  79930. 08020880 <sys_timeouts_init>:
  79931. /** Initialize this module */
  79932. void sys_timeouts_init(void)
  79933. {
  79934. 8020880: b580 push {r7, lr}
  79935. 8020882: b082 sub sp, #8
  79936. 8020884: af00 add r7, sp, #0
  79937. size_t i;
  79938. /* tcp_tmr() at index 0 is started on demand */
  79939. for (i = (LWIP_TCP ? 1 : 0); i < LWIP_ARRAYSIZE(lwip_cyclic_timers); i++) {
  79940. 8020886: 2301 movs r3, #1
  79941. 8020888: 607b str r3, [r7, #4]
  79942. 802088a: e00e b.n 80208aa <sys_timeouts_init+0x2a>
  79943. /* we have to cast via size_t to get rid of const warning
  79944. (this is OK as cyclic_timer() casts back to const* */
  79945. sys_timeout(lwip_cyclic_timers[i].interval_ms, lwip_cyclic_timer, LWIP_CONST_CAST(void *, &lwip_cyclic_timers[i]));
  79946. 802088c: 4a0b ldr r2, [pc, #44] @ (80208bc <sys_timeouts_init+0x3c>)
  79947. 802088e: 687b ldr r3, [r7, #4]
  79948. 8020890: f852 0033 ldr.w r0, [r2, r3, lsl #3]
  79949. 8020894: 687b ldr r3, [r7, #4]
  79950. 8020896: 00db lsls r3, r3, #3
  79951. 8020898: 4a08 ldr r2, [pc, #32] @ (80208bc <sys_timeouts_init+0x3c>)
  79952. 802089a: 4413 add r3, r2
  79953. 802089c: 461a mov r2, r3
  79954. 802089e: 4908 ldr r1, [pc, #32] @ (80208c0 <sys_timeouts_init+0x40>)
  79955. 80208a0: f000 f810 bl 80208c4 <sys_timeout>
  79956. for (i = (LWIP_TCP ? 1 : 0); i < LWIP_ARRAYSIZE(lwip_cyclic_timers); i++) {
  79957. 80208a4: 687b ldr r3, [r7, #4]
  79958. 80208a6: 3301 adds r3, #1
  79959. 80208a8: 607b str r3, [r7, #4]
  79960. 80208aa: 687b ldr r3, [r7, #4]
  79961. 80208ac: 2b04 cmp r3, #4
  79962. 80208ae: d9ed bls.n 802088c <sys_timeouts_init+0xc>
  79963. }
  79964. }
  79965. 80208b0: bf00 nop
  79966. 80208b2: bf00 nop
  79967. 80208b4: 3708 adds r7, #8
  79968. 80208b6: 46bd mov sp, r7
  79969. 80208b8: bd80 pop {r7, pc}
  79970. 80208ba: bf00 nop
  79971. 80208bc: 0803077c .word 0x0803077c
  79972. 80208c0: 0802081d .word 0x0802081d
  79973. 080208c4 <sys_timeout>:
  79974. sys_timeout_debug(u32_t msecs, sys_timeout_handler handler, void *arg, const char *handler_name)
  79975. #else /* LWIP_DEBUG_TIMERNAMES */
  79976. void
  79977. sys_timeout(u32_t msecs, sys_timeout_handler handler, void *arg)
  79978. #endif /* LWIP_DEBUG_TIMERNAMES */
  79979. {
  79980. 80208c4: b580 push {r7, lr}
  79981. 80208c6: b086 sub sp, #24
  79982. 80208c8: af00 add r7, sp, #0
  79983. 80208ca: 60f8 str r0, [r7, #12]
  79984. 80208cc: 60b9 str r1, [r7, #8]
  79985. 80208ce: 607a str r2, [r7, #4]
  79986. u32_t next_timeout_time;
  79987. LWIP_ASSERT_CORE_LOCKED();
  79988. 80208d0: f7ef fbce bl 8010070 <sys_check_core_locking>
  79989. LWIP_ASSERT("Timeout time too long, max is LWIP_UINT32_MAX/4 msecs", msecs <= (LWIP_UINT32_MAX / 4));
  79990. 80208d4: 68fb ldr r3, [r7, #12]
  79991. 80208d6: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  79992. 80208da: d306 bcc.n 80208ea <sys_timeout+0x26>
  79993. 80208dc: 4b0a ldr r3, [pc, #40] @ (8020908 <sys_timeout+0x44>)
  79994. 80208de: f240 1229 movw r2, #297 @ 0x129
  79995. 80208e2: 490a ldr r1, [pc, #40] @ (802090c <sys_timeout+0x48>)
  79996. 80208e4: 480a ldr r0, [pc, #40] @ (8020910 <sys_timeout+0x4c>)
  79997. 80208e6: f008 fe11 bl 802950c <iprintf>
  79998. next_timeout_time = (u32_t)(sys_now() + msecs); /* overflow handled by TIME_LESS_THAN macro */
  79999. 80208ea: f7ef f935 bl 800fb58 <sys_now>
  80000. 80208ee: 4602 mov r2, r0
  80001. 80208f0: 68fb ldr r3, [r7, #12]
  80002. 80208f2: 4413 add r3, r2
  80003. 80208f4: 617b str r3, [r7, #20]
  80004. #if LWIP_DEBUG_TIMERNAMES
  80005. sys_timeout_abs(next_timeout_time, handler, arg, handler_name);
  80006. #else
  80007. sys_timeout_abs(next_timeout_time, handler, arg);
  80008. 80208f6: 687a ldr r2, [r7, #4]
  80009. 80208f8: 68b9 ldr r1, [r7, #8]
  80010. 80208fa: 6978 ldr r0, [r7, #20]
  80011. 80208fc: f7ff ff20 bl 8020740 <sys_timeout_abs>
  80012. #endif
  80013. }
  80014. 8020900: bf00 nop
  80015. 8020902: 3718 adds r7, #24
  80016. 8020904: 46bd mov sp, r7
  80017. 8020906: bd80 pop {r7, pc}
  80018. 8020908: 0802f59c .word 0x0802f59c
  80019. 802090c: 0802f638 .word 0x0802f638
  80020. 8020910: 0802f610 .word 0x0802f610
  80021. 08020914 <sys_check_timeouts>:
  80022. *
  80023. * Must be called periodically from your main loop.
  80024. */
  80025. void
  80026. sys_check_timeouts(void)
  80027. {
  80028. 8020914: b580 push {r7, lr}
  80029. 8020916: b084 sub sp, #16
  80030. 8020918: af00 add r7, sp, #0
  80031. u32_t now;
  80032. LWIP_ASSERT_CORE_LOCKED();
  80033. 802091a: f7ef fba9 bl 8010070 <sys_check_core_locking>
  80034. /* Process only timers expired at the start of the function. */
  80035. now = sys_now();
  80036. 802091e: f7ef f91b bl 800fb58 <sys_now>
  80037. 8020922: 60f8 str r0, [r7, #12]
  80038. sys_timeout_handler handler;
  80039. void *arg;
  80040. PBUF_CHECK_FREE_OOSEQ();
  80041. tmptimeout = next_timeout;
  80042. 8020924: 4b17 ldr r3, [pc, #92] @ (8020984 <sys_check_timeouts+0x70>)
  80043. 8020926: 681b ldr r3, [r3, #0]
  80044. 8020928: 60bb str r3, [r7, #8]
  80045. if (tmptimeout == NULL) {
  80046. 802092a: 68bb ldr r3, [r7, #8]
  80047. 802092c: 2b00 cmp r3, #0
  80048. 802092e: d022 beq.n 8020976 <sys_check_timeouts+0x62>
  80049. return;
  80050. }
  80051. if (TIME_LESS_THAN(now, tmptimeout->time)) {
  80052. 8020930: 68bb ldr r3, [r7, #8]
  80053. 8020932: 685b ldr r3, [r3, #4]
  80054. 8020934: 68fa ldr r2, [r7, #12]
  80055. 8020936: 1ad3 subs r3, r2, r3
  80056. 8020938: 0fdb lsrs r3, r3, #31
  80057. 802093a: f003 0301 and.w r3, r3, #1
  80058. 802093e: b2db uxtb r3, r3
  80059. 8020940: 2b00 cmp r3, #0
  80060. 8020942: d11a bne.n 802097a <sys_check_timeouts+0x66>
  80061. return;
  80062. }
  80063. /* Timeout has expired */
  80064. next_timeout = tmptimeout->next;
  80065. 8020944: 68bb ldr r3, [r7, #8]
  80066. 8020946: 681b ldr r3, [r3, #0]
  80067. 8020948: 4a0e ldr r2, [pc, #56] @ (8020984 <sys_check_timeouts+0x70>)
  80068. 802094a: 6013 str r3, [r2, #0]
  80069. handler = tmptimeout->h;
  80070. 802094c: 68bb ldr r3, [r7, #8]
  80071. 802094e: 689b ldr r3, [r3, #8]
  80072. 8020950: 607b str r3, [r7, #4]
  80073. arg = tmptimeout->arg;
  80074. 8020952: 68bb ldr r3, [r7, #8]
  80075. 8020954: 68db ldr r3, [r3, #12]
  80076. 8020956: 603b str r3, [r7, #0]
  80077. current_timeout_due_time = tmptimeout->time;
  80078. 8020958: 68bb ldr r3, [r7, #8]
  80079. 802095a: 685b ldr r3, [r3, #4]
  80080. 802095c: 4a0a ldr r2, [pc, #40] @ (8020988 <sys_check_timeouts+0x74>)
  80081. 802095e: 6013 str r3, [r2, #0]
  80082. if (handler != NULL) {
  80083. LWIP_DEBUGF(TIMERS_DEBUG, ("sct calling h=%s t=%"U32_F" arg=%p\n",
  80084. tmptimeout->handler_name, sys_now() - tmptimeout->time, arg));
  80085. }
  80086. #endif /* LWIP_DEBUG_TIMERNAMES */
  80087. memp_free(MEMP_SYS_TIMEOUT, tmptimeout);
  80088. 8020960: 68b9 ldr r1, [r7, #8]
  80089. 8020962: 200a movs r0, #10
  80090. 8020964: f7f8 fc6c bl 8019240 <memp_free>
  80091. if (handler != NULL) {
  80092. 8020968: 687b ldr r3, [r7, #4]
  80093. 802096a: 2b00 cmp r3, #0
  80094. 802096c: d0da beq.n 8020924 <sys_check_timeouts+0x10>
  80095. handler(arg);
  80096. 802096e: 687b ldr r3, [r7, #4]
  80097. 8020970: 6838 ldr r0, [r7, #0]
  80098. 8020972: 4798 blx r3
  80099. do {
  80100. 8020974: e7d6 b.n 8020924 <sys_check_timeouts+0x10>
  80101. return;
  80102. 8020976: bf00 nop
  80103. 8020978: e000 b.n 802097c <sys_check_timeouts+0x68>
  80104. return;
  80105. 802097a: bf00 nop
  80106. }
  80107. LWIP_TCPIP_THREAD_ALIVE();
  80108. /* Repeat until all expired timers have been called */
  80109. } while (1);
  80110. }
  80111. 802097c: 3710 adds r7, #16
  80112. 802097e: 46bd mov sp, r7
  80113. 8020980: bd80 pop {r7, pc}
  80114. 8020982: bf00 nop
  80115. 8020984: 2402a040 .word 0x2402a040
  80116. 8020988: 2402a044 .word 0x2402a044
  80117. 0802098c <sys_timeouts_sleeptime>:
  80118. /** Return the time left before the next timeout is due. If no timeouts are
  80119. * enqueued, returns 0xffffffff
  80120. */
  80121. u32_t
  80122. sys_timeouts_sleeptime(void)
  80123. {
  80124. 802098c: b580 push {r7, lr}
  80125. 802098e: b082 sub sp, #8
  80126. 8020990: af00 add r7, sp, #0
  80127. u32_t now;
  80128. LWIP_ASSERT_CORE_LOCKED();
  80129. 8020992: f7ef fb6d bl 8010070 <sys_check_core_locking>
  80130. if (next_timeout == NULL) {
  80131. 8020996: 4b16 ldr r3, [pc, #88] @ (80209f0 <sys_timeouts_sleeptime+0x64>)
  80132. 8020998: 681b ldr r3, [r3, #0]
  80133. 802099a: 2b00 cmp r3, #0
  80134. 802099c: d102 bne.n 80209a4 <sys_timeouts_sleeptime+0x18>
  80135. return SYS_TIMEOUTS_SLEEPTIME_INFINITE;
  80136. 802099e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  80137. 80209a2: e020 b.n 80209e6 <sys_timeouts_sleeptime+0x5a>
  80138. }
  80139. now = sys_now();
  80140. 80209a4: f7ef f8d8 bl 800fb58 <sys_now>
  80141. 80209a8: 6078 str r0, [r7, #4]
  80142. if (TIME_LESS_THAN(next_timeout->time, now)) {
  80143. 80209aa: 4b11 ldr r3, [pc, #68] @ (80209f0 <sys_timeouts_sleeptime+0x64>)
  80144. 80209ac: 681b ldr r3, [r3, #0]
  80145. 80209ae: 685a ldr r2, [r3, #4]
  80146. 80209b0: 687b ldr r3, [r7, #4]
  80147. 80209b2: 1ad3 subs r3, r2, r3
  80148. 80209b4: 0fdb lsrs r3, r3, #31
  80149. 80209b6: f003 0301 and.w r3, r3, #1
  80150. 80209ba: b2db uxtb r3, r3
  80151. 80209bc: 2b00 cmp r3, #0
  80152. 80209be: d001 beq.n 80209c4 <sys_timeouts_sleeptime+0x38>
  80153. return 0;
  80154. 80209c0: 2300 movs r3, #0
  80155. 80209c2: e010 b.n 80209e6 <sys_timeouts_sleeptime+0x5a>
  80156. } else {
  80157. u32_t ret = (u32_t)(next_timeout->time - now);
  80158. 80209c4: 4b0a ldr r3, [pc, #40] @ (80209f0 <sys_timeouts_sleeptime+0x64>)
  80159. 80209c6: 681b ldr r3, [r3, #0]
  80160. 80209c8: 685a ldr r2, [r3, #4]
  80161. 80209ca: 687b ldr r3, [r7, #4]
  80162. 80209cc: 1ad3 subs r3, r2, r3
  80163. 80209ce: 603b str r3, [r7, #0]
  80164. LWIP_ASSERT("invalid sleeptime", ret <= LWIP_MAX_TIMEOUT);
  80165. 80209d0: 683b ldr r3, [r7, #0]
  80166. 80209d2: 2b00 cmp r3, #0
  80167. 80209d4: da06 bge.n 80209e4 <sys_timeouts_sleeptime+0x58>
  80168. 80209d6: 4b07 ldr r3, [pc, #28] @ (80209f4 <sys_timeouts_sleeptime+0x68>)
  80169. 80209d8: f44f 72dc mov.w r2, #440 @ 0x1b8
  80170. 80209dc: 4906 ldr r1, [pc, #24] @ (80209f8 <sys_timeouts_sleeptime+0x6c>)
  80171. 80209de: 4807 ldr r0, [pc, #28] @ (80209fc <sys_timeouts_sleeptime+0x70>)
  80172. 80209e0: f008 fd94 bl 802950c <iprintf>
  80173. return ret;
  80174. 80209e4: 683b ldr r3, [r7, #0]
  80175. }
  80176. }
  80177. 80209e6: 4618 mov r0, r3
  80178. 80209e8: 3708 adds r7, #8
  80179. 80209ea: 46bd mov sp, r7
  80180. 80209ec: bd80 pop {r7, pc}
  80181. 80209ee: bf00 nop
  80182. 80209f0: 2402a040 .word 0x2402a040
  80183. 80209f4: 0802f59c .word 0x0802f59c
  80184. 80209f8: 0802f670 .word 0x0802f670
  80185. 80209fc: 0802f610 .word 0x0802f610
  80186. 08020a00 <udp_init>:
  80187. /**
  80188. * Initialize this module.
  80189. */
  80190. void
  80191. udp_init(void)
  80192. {
  80193. 8020a00: b580 push {r7, lr}
  80194. 8020a02: af00 add r7, sp, #0
  80195. #ifdef LWIP_RAND
  80196. udp_port = UDP_ENSURE_LOCAL_PORT_RANGE(LWIP_RAND());
  80197. 8020a04: f007 fa58 bl 8027eb8 <rand>
  80198. 8020a08: 4603 mov r3, r0
  80199. 8020a0a: b29b uxth r3, r3
  80200. 8020a0c: f3c3 030d ubfx r3, r3, #0, #14
  80201. 8020a10: b29b uxth r3, r3
  80202. 8020a12: f5a3 4380 sub.w r3, r3, #16384 @ 0x4000
  80203. 8020a16: b29a uxth r2, r3
  80204. 8020a18: 4b01 ldr r3, [pc, #4] @ (8020a20 <udp_init+0x20>)
  80205. 8020a1a: 801a strh r2, [r3, #0]
  80206. #endif /* LWIP_RAND */
  80207. }
  80208. 8020a1c: bf00 nop
  80209. 8020a1e: bd80 pop {r7, pc}
  80210. 8020a20: 24000040 .word 0x24000040
  80211. 08020a24 <udp_new_port>:
  80212. *
  80213. * @return a new (free) local UDP port number
  80214. */
  80215. static u16_t
  80216. udp_new_port(void)
  80217. {
  80218. 8020a24: b480 push {r7}
  80219. 8020a26: b083 sub sp, #12
  80220. 8020a28: af00 add r7, sp, #0
  80221. u16_t n = 0;
  80222. 8020a2a: 2300 movs r3, #0
  80223. 8020a2c: 80fb strh r3, [r7, #6]
  80224. struct udp_pcb *pcb;
  80225. again:
  80226. if (udp_port++ == UDP_LOCAL_PORT_RANGE_END) {
  80227. 8020a2e: 4b17 ldr r3, [pc, #92] @ (8020a8c <udp_new_port+0x68>)
  80228. 8020a30: 881b ldrh r3, [r3, #0]
  80229. 8020a32: 1c5a adds r2, r3, #1
  80230. 8020a34: b291 uxth r1, r2
  80231. 8020a36: 4a15 ldr r2, [pc, #84] @ (8020a8c <udp_new_port+0x68>)
  80232. 8020a38: 8011 strh r1, [r2, #0]
  80233. 8020a3a: f64f 72ff movw r2, #65535 @ 0xffff
  80234. 8020a3e: 4293 cmp r3, r2
  80235. 8020a40: d103 bne.n 8020a4a <udp_new_port+0x26>
  80236. udp_port = UDP_LOCAL_PORT_RANGE_START;
  80237. 8020a42: 4b12 ldr r3, [pc, #72] @ (8020a8c <udp_new_port+0x68>)
  80238. 8020a44: f44f 4240 mov.w r2, #49152 @ 0xc000
  80239. 8020a48: 801a strh r2, [r3, #0]
  80240. }
  80241. /* Check all PCBs. */
  80242. for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) {
  80243. 8020a4a: 4b11 ldr r3, [pc, #68] @ (8020a90 <udp_new_port+0x6c>)
  80244. 8020a4c: 681b ldr r3, [r3, #0]
  80245. 8020a4e: 603b str r3, [r7, #0]
  80246. 8020a50: e011 b.n 8020a76 <udp_new_port+0x52>
  80247. if (pcb->local_port == udp_port) {
  80248. 8020a52: 683b ldr r3, [r7, #0]
  80249. 8020a54: 8a5a ldrh r2, [r3, #18]
  80250. 8020a56: 4b0d ldr r3, [pc, #52] @ (8020a8c <udp_new_port+0x68>)
  80251. 8020a58: 881b ldrh r3, [r3, #0]
  80252. 8020a5a: 429a cmp r2, r3
  80253. 8020a5c: d108 bne.n 8020a70 <udp_new_port+0x4c>
  80254. if (++n > (UDP_LOCAL_PORT_RANGE_END - UDP_LOCAL_PORT_RANGE_START)) {
  80255. 8020a5e: 88fb ldrh r3, [r7, #6]
  80256. 8020a60: 3301 adds r3, #1
  80257. 8020a62: 80fb strh r3, [r7, #6]
  80258. 8020a64: 88fb ldrh r3, [r7, #6]
  80259. 8020a66: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  80260. 8020a6a: d3e0 bcc.n 8020a2e <udp_new_port+0xa>
  80261. return 0;
  80262. 8020a6c: 2300 movs r3, #0
  80263. 8020a6e: e007 b.n 8020a80 <udp_new_port+0x5c>
  80264. for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) {
  80265. 8020a70: 683b ldr r3, [r7, #0]
  80266. 8020a72: 68db ldr r3, [r3, #12]
  80267. 8020a74: 603b str r3, [r7, #0]
  80268. 8020a76: 683b ldr r3, [r7, #0]
  80269. 8020a78: 2b00 cmp r3, #0
  80270. 8020a7a: d1ea bne.n 8020a52 <udp_new_port+0x2e>
  80271. }
  80272. goto again;
  80273. }
  80274. }
  80275. return udp_port;
  80276. 8020a7c: 4b03 ldr r3, [pc, #12] @ (8020a8c <udp_new_port+0x68>)
  80277. 8020a7e: 881b ldrh r3, [r3, #0]
  80278. }
  80279. 8020a80: 4618 mov r0, r3
  80280. 8020a82: 370c adds r7, #12
  80281. 8020a84: 46bd mov sp, r7
  80282. 8020a86: f85d 7b04 ldr.w r7, [sp], #4
  80283. 8020a8a: 4770 bx lr
  80284. 8020a8c: 24000040 .word 0x24000040
  80285. 8020a90: 2402a04c .word 0x2402a04c
  80286. 08020a94 <udp_input_local_match>:
  80287. * @param broadcast 1 if his is an IPv4 broadcast (global or subnet-only), 0 otherwise (only used for IPv4)
  80288. * @return 1 on match, 0 otherwise
  80289. */
  80290. static u8_t
  80291. udp_input_local_match(struct udp_pcb *pcb, struct netif *inp, u8_t broadcast)
  80292. {
  80293. 8020a94: b580 push {r7, lr}
  80294. 8020a96: b084 sub sp, #16
  80295. 8020a98: af00 add r7, sp, #0
  80296. 8020a9a: 60f8 str r0, [r7, #12]
  80297. 8020a9c: 60b9 str r1, [r7, #8]
  80298. 8020a9e: 4613 mov r3, r2
  80299. 8020aa0: 71fb strb r3, [r7, #7]
  80300. LWIP_UNUSED_ARG(inp); /* in IPv6 only case */
  80301. LWIP_UNUSED_ARG(broadcast); /* in IPv6 only case */
  80302. LWIP_ASSERT("udp_input_local_match: invalid pcb", pcb != NULL);
  80303. 8020aa2: 68fb ldr r3, [r7, #12]
  80304. 8020aa4: 2b00 cmp r3, #0
  80305. 8020aa6: d105 bne.n 8020ab4 <udp_input_local_match+0x20>
  80306. 8020aa8: 4b27 ldr r3, [pc, #156] @ (8020b48 <udp_input_local_match+0xb4>)
  80307. 8020aaa: 2287 movs r2, #135 @ 0x87
  80308. 8020aac: 4927 ldr r1, [pc, #156] @ (8020b4c <udp_input_local_match+0xb8>)
  80309. 8020aae: 4828 ldr r0, [pc, #160] @ (8020b50 <udp_input_local_match+0xbc>)
  80310. 8020ab0: f008 fd2c bl 802950c <iprintf>
  80311. LWIP_ASSERT("udp_input_local_match: invalid netif", inp != NULL);
  80312. 8020ab4: 68bb ldr r3, [r7, #8]
  80313. 8020ab6: 2b00 cmp r3, #0
  80314. 8020ab8: d105 bne.n 8020ac6 <udp_input_local_match+0x32>
  80315. 8020aba: 4b23 ldr r3, [pc, #140] @ (8020b48 <udp_input_local_match+0xb4>)
  80316. 8020abc: 2288 movs r2, #136 @ 0x88
  80317. 8020abe: 4925 ldr r1, [pc, #148] @ (8020b54 <udp_input_local_match+0xc0>)
  80318. 8020ac0: 4823 ldr r0, [pc, #140] @ (8020b50 <udp_input_local_match+0xbc>)
  80319. 8020ac2: f008 fd23 bl 802950c <iprintf>
  80320. /* check if PCB is bound to specific netif */
  80321. if ((pcb->netif_idx != NETIF_NO_INDEX) &&
  80322. 8020ac6: 68fb ldr r3, [r7, #12]
  80323. 8020ac8: 7a1b ldrb r3, [r3, #8]
  80324. 8020aca: 2b00 cmp r3, #0
  80325. 8020acc: d00b beq.n 8020ae6 <udp_input_local_match+0x52>
  80326. (pcb->netif_idx != netif_get_index(ip_data.current_input_netif))) {
  80327. 8020ace: 68fb ldr r3, [r7, #12]
  80328. 8020ad0: 7a1a ldrb r2, [r3, #8]
  80329. 8020ad2: 4b21 ldr r3, [pc, #132] @ (8020b58 <udp_input_local_match+0xc4>)
  80330. 8020ad4: 685b ldr r3, [r3, #4]
  80331. 8020ad6: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  80332. 8020ada: 3301 adds r3, #1
  80333. 8020adc: b2db uxtb r3, r3
  80334. if ((pcb->netif_idx != NETIF_NO_INDEX) &&
  80335. 8020ade: 429a cmp r2, r3
  80336. 8020ae0: d001 beq.n 8020ae6 <udp_input_local_match+0x52>
  80337. return 0;
  80338. 8020ae2: 2300 movs r3, #0
  80339. 8020ae4: e02b b.n 8020b3e <udp_input_local_match+0xaa>
  80340. /* Only need to check PCB if incoming IP version matches PCB IP version */
  80341. if (IP_ADDR_PCB_VERSION_MATCH_EXACT(pcb, ip_current_dest_addr())) {
  80342. #if LWIP_IPV4
  80343. /* Special case: IPv4 broadcast: all or broadcasts in my subnet
  80344. * Note: broadcast variable can only be 1 if it is an IPv4 broadcast */
  80345. if (broadcast != 0) {
  80346. 8020ae6: 79fb ldrb r3, [r7, #7]
  80347. 8020ae8: 2b00 cmp r3, #0
  80348. 8020aea: d018 beq.n 8020b1e <udp_input_local_match+0x8a>
  80349. #if IP_SOF_BROADCAST_RECV
  80350. if (ip_get_option(pcb, SOF_BROADCAST))
  80351. #endif /* IP_SOF_BROADCAST_RECV */
  80352. {
  80353. if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) ||
  80354. 8020aec: 68fb ldr r3, [r7, #12]
  80355. 8020aee: 2b00 cmp r3, #0
  80356. 8020af0: d013 beq.n 8020b1a <udp_input_local_match+0x86>
  80357. 8020af2: 68fb ldr r3, [r7, #12]
  80358. 8020af4: 681b ldr r3, [r3, #0]
  80359. 8020af6: 2b00 cmp r3, #0
  80360. 8020af8: d00f beq.n 8020b1a <udp_input_local_match+0x86>
  80361. ((ip4_current_dest_addr()->addr == IPADDR_BROADCAST)) ||
  80362. 8020afa: 4b17 ldr r3, [pc, #92] @ (8020b58 <udp_input_local_match+0xc4>)
  80363. 8020afc: 695b ldr r3, [r3, #20]
  80364. if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) ||
  80365. 8020afe: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  80366. 8020b02: d00a beq.n 8020b1a <udp_input_local_match+0x86>
  80367. ip4_addr_netcmp(ip_2_ip4(&pcb->local_ip), ip4_current_dest_addr(), netif_ip4_netmask(inp))) {
  80368. 8020b04: 68fb ldr r3, [r7, #12]
  80369. 8020b06: 681a ldr r2, [r3, #0]
  80370. 8020b08: 4b13 ldr r3, [pc, #76] @ (8020b58 <udp_input_local_match+0xc4>)
  80371. 8020b0a: 695b ldr r3, [r3, #20]
  80372. 8020b0c: 405a eors r2, r3
  80373. 8020b0e: 68bb ldr r3, [r7, #8]
  80374. 8020b10: 3308 adds r3, #8
  80375. 8020b12: 681b ldr r3, [r3, #0]
  80376. 8020b14: 4013 ands r3, r2
  80377. ((ip4_current_dest_addr()->addr == IPADDR_BROADCAST)) ||
  80378. 8020b16: 2b00 cmp r3, #0
  80379. 8020b18: d110 bne.n 8020b3c <udp_input_local_match+0xa8>
  80380. return 1;
  80381. 8020b1a: 2301 movs r3, #1
  80382. 8020b1c: e00f b.n 8020b3e <udp_input_local_match+0xaa>
  80383. }
  80384. }
  80385. } else
  80386. #endif /* LWIP_IPV4 */
  80387. /* Handle IPv4 and IPv6: all or exact match */
  80388. if (ip_addr_isany(&pcb->local_ip) || ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) {
  80389. 8020b1e: 68fb ldr r3, [r7, #12]
  80390. 8020b20: 2b00 cmp r3, #0
  80391. 8020b22: d009 beq.n 8020b38 <udp_input_local_match+0xa4>
  80392. 8020b24: 68fb ldr r3, [r7, #12]
  80393. 8020b26: 681b ldr r3, [r3, #0]
  80394. 8020b28: 2b00 cmp r3, #0
  80395. 8020b2a: d005 beq.n 8020b38 <udp_input_local_match+0xa4>
  80396. 8020b2c: 68fb ldr r3, [r7, #12]
  80397. 8020b2e: 681a ldr r2, [r3, #0]
  80398. 8020b30: 4b09 ldr r3, [pc, #36] @ (8020b58 <udp_input_local_match+0xc4>)
  80399. 8020b32: 695b ldr r3, [r3, #20]
  80400. 8020b34: 429a cmp r2, r3
  80401. 8020b36: d101 bne.n 8020b3c <udp_input_local_match+0xa8>
  80402. return 1;
  80403. 8020b38: 2301 movs r3, #1
  80404. 8020b3a: e000 b.n 8020b3e <udp_input_local_match+0xaa>
  80405. }
  80406. }
  80407. return 0;
  80408. 8020b3c: 2300 movs r3, #0
  80409. }
  80410. 8020b3e: 4618 mov r0, r3
  80411. 8020b40: 3710 adds r7, #16
  80412. 8020b42: 46bd mov sp, r7
  80413. 8020b44: bd80 pop {r7, pc}
  80414. 8020b46: bf00 nop
  80415. 8020b48: 0802f684 .word 0x0802f684
  80416. 8020b4c: 0802f6b4 .word 0x0802f6b4
  80417. 8020b50: 0802f6d8 .word 0x0802f6d8
  80418. 8020b54: 0802f700 .word 0x0802f700
  80419. 8020b58: 2402349c .word 0x2402349c
  80420. 08020b5c <udp_input>:
  80421. * @param inp network interface on which the datagram was received.
  80422. *
  80423. */
  80424. void
  80425. udp_input(struct pbuf *p, struct netif *inp)
  80426. {
  80427. 8020b5c: b590 push {r4, r7, lr}
  80428. 8020b5e: b08d sub sp, #52 @ 0x34
  80429. 8020b60: af02 add r7, sp, #8
  80430. 8020b62: 6078 str r0, [r7, #4]
  80431. 8020b64: 6039 str r1, [r7, #0]
  80432. struct udp_hdr *udphdr;
  80433. struct udp_pcb *pcb, *prev;
  80434. struct udp_pcb *uncon_pcb;
  80435. u16_t src, dest;
  80436. u8_t broadcast;
  80437. u8_t for_us = 0;
  80438. 8020b66: 2300 movs r3, #0
  80439. 8020b68: 77fb strb r3, [r7, #31]
  80440. LWIP_UNUSED_ARG(inp);
  80441. LWIP_ASSERT_CORE_LOCKED();
  80442. 8020b6a: f7ef fa81 bl 8010070 <sys_check_core_locking>
  80443. LWIP_ASSERT("udp_input: invalid pbuf", p != NULL);
  80444. 8020b6e: 687b ldr r3, [r7, #4]
  80445. 8020b70: 2b00 cmp r3, #0
  80446. 8020b72: d105 bne.n 8020b80 <udp_input+0x24>
  80447. 8020b74: 4b7c ldr r3, [pc, #496] @ (8020d68 <udp_input+0x20c>)
  80448. 8020b76: 22cf movs r2, #207 @ 0xcf
  80449. 8020b78: 497c ldr r1, [pc, #496] @ (8020d6c <udp_input+0x210>)
  80450. 8020b7a: 487d ldr r0, [pc, #500] @ (8020d70 <udp_input+0x214>)
  80451. 8020b7c: f008 fcc6 bl 802950c <iprintf>
  80452. LWIP_ASSERT("udp_input: invalid netif", inp != NULL);
  80453. 8020b80: 683b ldr r3, [r7, #0]
  80454. 8020b82: 2b00 cmp r3, #0
  80455. 8020b84: d105 bne.n 8020b92 <udp_input+0x36>
  80456. 8020b86: 4b78 ldr r3, [pc, #480] @ (8020d68 <udp_input+0x20c>)
  80457. 8020b88: 22d0 movs r2, #208 @ 0xd0
  80458. 8020b8a: 497a ldr r1, [pc, #488] @ (8020d74 <udp_input+0x218>)
  80459. 8020b8c: 4878 ldr r0, [pc, #480] @ (8020d70 <udp_input+0x214>)
  80460. 8020b8e: f008 fcbd bl 802950c <iprintf>
  80461. PERF_START;
  80462. UDP_STATS_INC(udp.recv);
  80463. /* Check minimum length (UDP header) */
  80464. if (p->len < UDP_HLEN) {
  80465. 8020b92: 687b ldr r3, [r7, #4]
  80466. 8020b94: 895b ldrh r3, [r3, #10]
  80467. 8020b96: 2b07 cmp r3, #7
  80468. 8020b98: d803 bhi.n 8020ba2 <udp_input+0x46>
  80469. LWIP_DEBUGF(UDP_DEBUG,
  80470. ("udp_input: short UDP datagram (%"U16_F" bytes) discarded\n", p->tot_len));
  80471. UDP_STATS_INC(udp.lenerr);
  80472. UDP_STATS_INC(udp.drop);
  80473. MIB2_STATS_INC(mib2.udpinerrors);
  80474. pbuf_free(p);
  80475. 8020b9a: 6878 ldr r0, [r7, #4]
  80476. 8020b9c: f7f9 fa3e bl 801a01c <pbuf_free>
  80477. goto end;
  80478. 8020ba0: e0de b.n 8020d60 <udp_input+0x204>
  80479. }
  80480. udphdr = (struct udp_hdr *)p->payload;
  80481. 8020ba2: 687b ldr r3, [r7, #4]
  80482. 8020ba4: 685b ldr r3, [r3, #4]
  80483. 8020ba6: 617b str r3, [r7, #20]
  80484. /* is broadcast packet ? */
  80485. broadcast = ip_addr_isbroadcast(ip_current_dest_addr(), ip_current_netif());
  80486. 8020ba8: 4b73 ldr r3, [pc, #460] @ (8020d78 <udp_input+0x21c>)
  80487. 8020baa: 695b ldr r3, [r3, #20]
  80488. 8020bac: 4a72 ldr r2, [pc, #456] @ (8020d78 <udp_input+0x21c>)
  80489. 8020bae: 6812 ldr r2, [r2, #0]
  80490. 8020bb0: 4611 mov r1, r2
  80491. 8020bb2: 4618 mov r0, r3
  80492. 8020bb4: f003 ff54 bl 8024a60 <ip4_addr_isbroadcast_u32>
  80493. 8020bb8: 4603 mov r3, r0
  80494. 8020bba: 74fb strb r3, [r7, #19]
  80495. LWIP_DEBUGF(UDP_DEBUG, ("udp_input: received datagram of length %"U16_F"\n", p->tot_len));
  80496. /* convert src and dest ports to host byte order */
  80497. src = lwip_ntohs(udphdr->src);
  80498. 8020bbc: 697b ldr r3, [r7, #20]
  80499. 8020bbe: 881b ldrh r3, [r3, #0]
  80500. 8020bc0: b29b uxth r3, r3
  80501. 8020bc2: 4618 mov r0, r3
  80502. 8020bc4: f7f7 fd48 bl 8018658 <lwip_htons>
  80503. 8020bc8: 4603 mov r3, r0
  80504. 8020bca: 823b strh r3, [r7, #16]
  80505. dest = lwip_ntohs(udphdr->dest);
  80506. 8020bcc: 697b ldr r3, [r7, #20]
  80507. 8020bce: 885b ldrh r3, [r3, #2]
  80508. 8020bd0: b29b uxth r3, r3
  80509. 8020bd2: 4618 mov r0, r3
  80510. 8020bd4: f7f7 fd40 bl 8018658 <lwip_htons>
  80511. 8020bd8: 4603 mov r3, r0
  80512. 8020bda: 81fb strh r3, [r7, #14]
  80513. ip_addr_debug_print_val(UDP_DEBUG, *ip_current_dest_addr());
  80514. LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F") <-- (", lwip_ntohs(udphdr->dest)));
  80515. ip_addr_debug_print_val(UDP_DEBUG, *ip_current_src_addr());
  80516. LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F")\n", lwip_ntohs(udphdr->src)));
  80517. pcb = NULL;
  80518. 8020bdc: 2300 movs r3, #0
  80519. 8020bde: 623b str r3, [r7, #32]
  80520. prev = NULL;
  80521. 8020be0: 2300 movs r3, #0
  80522. 8020be2: 627b str r3, [r7, #36] @ 0x24
  80523. uncon_pcb = NULL;
  80524. 8020be4: 2300 movs r3, #0
  80525. 8020be6: 61bb str r3, [r7, #24]
  80526. /* Iterate through the UDP pcb list for a matching pcb.
  80527. * 'Perfect match' pcbs (connected to the remote port & ip address) are
  80528. * preferred. If no perfect match is found, the first unconnected pcb that
  80529. * matches the local port and ip address gets the datagram. */
  80530. for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) {
  80531. 8020be8: 4b64 ldr r3, [pc, #400] @ (8020d7c <udp_input+0x220>)
  80532. 8020bea: 681b ldr r3, [r3, #0]
  80533. 8020bec: 623b str r3, [r7, #32]
  80534. 8020bee: e054 b.n 8020c9a <udp_input+0x13e>
  80535. LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F") <-- (", pcb->local_port));
  80536. ip_addr_debug_print_val(UDP_DEBUG, pcb->remote_ip);
  80537. LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F")\n", pcb->remote_port));
  80538. /* compare PCB local addr+port to UDP destination addr+port */
  80539. if ((pcb->local_port == dest) &&
  80540. 8020bf0: 6a3b ldr r3, [r7, #32]
  80541. 8020bf2: 8a5b ldrh r3, [r3, #18]
  80542. 8020bf4: 89fa ldrh r2, [r7, #14]
  80543. 8020bf6: 429a cmp r2, r3
  80544. 8020bf8: d14a bne.n 8020c90 <udp_input+0x134>
  80545. (udp_input_local_match(pcb, inp, broadcast) != 0)) {
  80546. 8020bfa: 7cfb ldrb r3, [r7, #19]
  80547. 8020bfc: 461a mov r2, r3
  80548. 8020bfe: 6839 ldr r1, [r7, #0]
  80549. 8020c00: 6a38 ldr r0, [r7, #32]
  80550. 8020c02: f7ff ff47 bl 8020a94 <udp_input_local_match>
  80551. 8020c06: 4603 mov r3, r0
  80552. if ((pcb->local_port == dest) &&
  80553. 8020c08: 2b00 cmp r3, #0
  80554. 8020c0a: d041 beq.n 8020c90 <udp_input+0x134>
  80555. if ((pcb->flags & UDP_FLAGS_CONNECTED) == 0) {
  80556. 8020c0c: 6a3b ldr r3, [r7, #32]
  80557. 8020c0e: 7c1b ldrb r3, [r3, #16]
  80558. 8020c10: f003 0304 and.w r3, r3, #4
  80559. 8020c14: 2b00 cmp r3, #0
  80560. 8020c16: d11d bne.n 8020c54 <udp_input+0xf8>
  80561. if (uncon_pcb == NULL) {
  80562. 8020c18: 69bb ldr r3, [r7, #24]
  80563. 8020c1a: 2b00 cmp r3, #0
  80564. 8020c1c: d102 bne.n 8020c24 <udp_input+0xc8>
  80565. /* the first unconnected matching PCB */
  80566. uncon_pcb = pcb;
  80567. 8020c1e: 6a3b ldr r3, [r7, #32]
  80568. 8020c20: 61bb str r3, [r7, #24]
  80569. 8020c22: e017 b.n 8020c54 <udp_input+0xf8>
  80570. #if LWIP_IPV4
  80571. } else if (broadcast && ip4_current_dest_addr()->addr == IPADDR_BROADCAST) {
  80572. 8020c24: 7cfb ldrb r3, [r7, #19]
  80573. 8020c26: 2b00 cmp r3, #0
  80574. 8020c28: d014 beq.n 8020c54 <udp_input+0xf8>
  80575. 8020c2a: 4b53 ldr r3, [pc, #332] @ (8020d78 <udp_input+0x21c>)
  80576. 8020c2c: 695b ldr r3, [r3, #20]
  80577. 8020c2e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  80578. 8020c32: d10f bne.n 8020c54 <udp_input+0xf8>
  80579. /* global broadcast address (only valid for IPv4; match was checked before) */
  80580. if (!IP_IS_V4_VAL(uncon_pcb->local_ip) || !ip4_addr_cmp(ip_2_ip4(&uncon_pcb->local_ip), netif_ip4_addr(inp))) {
  80581. 8020c34: 69bb ldr r3, [r7, #24]
  80582. 8020c36: 681a ldr r2, [r3, #0]
  80583. 8020c38: 683b ldr r3, [r7, #0]
  80584. 8020c3a: 3304 adds r3, #4
  80585. 8020c3c: 681b ldr r3, [r3, #0]
  80586. 8020c3e: 429a cmp r2, r3
  80587. 8020c40: d008 beq.n 8020c54 <udp_input+0xf8>
  80588. /* uncon_pcb does not match the input netif, check this pcb */
  80589. if (IP_IS_V4_VAL(pcb->local_ip) && ip4_addr_cmp(ip_2_ip4(&pcb->local_ip), netif_ip4_addr(inp))) {
  80590. 8020c42: 6a3b ldr r3, [r7, #32]
  80591. 8020c44: 681a ldr r2, [r3, #0]
  80592. 8020c46: 683b ldr r3, [r7, #0]
  80593. 8020c48: 3304 adds r3, #4
  80594. 8020c4a: 681b ldr r3, [r3, #0]
  80595. 8020c4c: 429a cmp r2, r3
  80596. 8020c4e: d101 bne.n 8020c54 <udp_input+0xf8>
  80597. /* better match */
  80598. uncon_pcb = pcb;
  80599. 8020c50: 6a3b ldr r3, [r7, #32]
  80600. 8020c52: 61bb str r3, [r7, #24]
  80601. }
  80602. #endif /* SO_REUSE */
  80603. }
  80604. /* compare PCB remote addr+port to UDP source addr+port */
  80605. if ((pcb->remote_port == src) &&
  80606. 8020c54: 6a3b ldr r3, [r7, #32]
  80607. 8020c56: 8a9b ldrh r3, [r3, #20]
  80608. 8020c58: 8a3a ldrh r2, [r7, #16]
  80609. 8020c5a: 429a cmp r2, r3
  80610. 8020c5c: d118 bne.n 8020c90 <udp_input+0x134>
  80611. (ip_addr_isany_val(pcb->remote_ip) ||
  80612. 8020c5e: 6a3b ldr r3, [r7, #32]
  80613. 8020c60: 685b ldr r3, [r3, #4]
  80614. if ((pcb->remote_port == src) &&
  80615. 8020c62: 2b00 cmp r3, #0
  80616. 8020c64: d005 beq.n 8020c72 <udp_input+0x116>
  80617. ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()))) {
  80618. 8020c66: 6a3b ldr r3, [r7, #32]
  80619. 8020c68: 685a ldr r2, [r3, #4]
  80620. 8020c6a: 4b43 ldr r3, [pc, #268] @ (8020d78 <udp_input+0x21c>)
  80621. 8020c6c: 691b ldr r3, [r3, #16]
  80622. (ip_addr_isany_val(pcb->remote_ip) ||
  80623. 8020c6e: 429a cmp r2, r3
  80624. 8020c70: d10e bne.n 8020c90 <udp_input+0x134>
  80625. /* the first fully matching PCB */
  80626. if (prev != NULL) {
  80627. 8020c72: 6a7b ldr r3, [r7, #36] @ 0x24
  80628. 8020c74: 2b00 cmp r3, #0
  80629. 8020c76: d014 beq.n 8020ca2 <udp_input+0x146>
  80630. /* move the pcb to the front of udp_pcbs so that is
  80631. found faster next time */
  80632. prev->next = pcb->next;
  80633. 8020c78: 6a3b ldr r3, [r7, #32]
  80634. 8020c7a: 68da ldr r2, [r3, #12]
  80635. 8020c7c: 6a7b ldr r3, [r7, #36] @ 0x24
  80636. 8020c7e: 60da str r2, [r3, #12]
  80637. pcb->next = udp_pcbs;
  80638. 8020c80: 4b3e ldr r3, [pc, #248] @ (8020d7c <udp_input+0x220>)
  80639. 8020c82: 681a ldr r2, [r3, #0]
  80640. 8020c84: 6a3b ldr r3, [r7, #32]
  80641. 8020c86: 60da str r2, [r3, #12]
  80642. udp_pcbs = pcb;
  80643. 8020c88: 4a3c ldr r2, [pc, #240] @ (8020d7c <udp_input+0x220>)
  80644. 8020c8a: 6a3b ldr r3, [r7, #32]
  80645. 8020c8c: 6013 str r3, [r2, #0]
  80646. } else {
  80647. UDP_STATS_INC(udp.cachehit);
  80648. }
  80649. break;
  80650. 8020c8e: e008 b.n 8020ca2 <udp_input+0x146>
  80651. }
  80652. }
  80653. prev = pcb;
  80654. 8020c90: 6a3b ldr r3, [r7, #32]
  80655. 8020c92: 627b str r3, [r7, #36] @ 0x24
  80656. for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) {
  80657. 8020c94: 6a3b ldr r3, [r7, #32]
  80658. 8020c96: 68db ldr r3, [r3, #12]
  80659. 8020c98: 623b str r3, [r7, #32]
  80660. 8020c9a: 6a3b ldr r3, [r7, #32]
  80661. 8020c9c: 2b00 cmp r3, #0
  80662. 8020c9e: d1a7 bne.n 8020bf0 <udp_input+0x94>
  80663. 8020ca0: e000 b.n 8020ca4 <udp_input+0x148>
  80664. break;
  80665. 8020ca2: bf00 nop
  80666. }
  80667. /* no fully matching pcb found? then look for an unconnected pcb */
  80668. if (pcb == NULL) {
  80669. 8020ca4: 6a3b ldr r3, [r7, #32]
  80670. 8020ca6: 2b00 cmp r3, #0
  80671. 8020ca8: d101 bne.n 8020cae <udp_input+0x152>
  80672. pcb = uncon_pcb;
  80673. 8020caa: 69bb ldr r3, [r7, #24]
  80674. 8020cac: 623b str r3, [r7, #32]
  80675. }
  80676. /* Check checksum if this is a match or if it was directed at us. */
  80677. if (pcb != NULL) {
  80678. 8020cae: 6a3b ldr r3, [r7, #32]
  80679. 8020cb0: 2b00 cmp r3, #0
  80680. 8020cb2: d002 beq.n 8020cba <udp_input+0x15e>
  80681. for_us = 1;
  80682. 8020cb4: 2301 movs r3, #1
  80683. 8020cb6: 77fb strb r3, [r7, #31]
  80684. 8020cb8: e00a b.n 8020cd0 <udp_input+0x174>
  80685. for_us = netif_get_ip6_addr_match(inp, ip6_current_dest_addr()) >= 0;
  80686. }
  80687. #endif /* LWIP_IPV6 */
  80688. #if LWIP_IPV4
  80689. if (!ip_current_is_v6()) {
  80690. for_us = ip4_addr_cmp(netif_ip4_addr(inp), ip4_current_dest_addr());
  80691. 8020cba: 683b ldr r3, [r7, #0]
  80692. 8020cbc: 3304 adds r3, #4
  80693. 8020cbe: 681a ldr r2, [r3, #0]
  80694. 8020cc0: 4b2d ldr r3, [pc, #180] @ (8020d78 <udp_input+0x21c>)
  80695. 8020cc2: 695b ldr r3, [r3, #20]
  80696. 8020cc4: 429a cmp r2, r3
  80697. 8020cc6: bf0c ite eq
  80698. 8020cc8: 2301 moveq r3, #1
  80699. 8020cca: 2300 movne r3, #0
  80700. 8020ccc: b2db uxtb r3, r3
  80701. 8020cce: 77fb strb r3, [r7, #31]
  80702. }
  80703. #endif /* LWIP_IPV4 */
  80704. }
  80705. if (for_us) {
  80706. 8020cd0: 7ffb ldrb r3, [r7, #31]
  80707. 8020cd2: 2b00 cmp r3, #0
  80708. 8020cd4: d041 beq.n 8020d5a <udp_input+0x1fe>
  80709. }
  80710. }
  80711. }
  80712. }
  80713. #endif /* CHECKSUM_CHECK_UDP */
  80714. if (pbuf_remove_header(p, UDP_HLEN)) {
  80715. 8020cd6: 2108 movs r1, #8
  80716. 8020cd8: 6878 ldr r0, [r7, #4]
  80717. 8020cda: f7f9 f8e7 bl 8019eac <pbuf_remove_header>
  80718. 8020cde: 4603 mov r3, r0
  80719. 8020ce0: 2b00 cmp r3, #0
  80720. 8020ce2: d00a beq.n 8020cfa <udp_input+0x19e>
  80721. /* Can we cope with this failing? Just assert for now */
  80722. LWIP_ASSERT("pbuf_remove_header failed\n", 0);
  80723. 8020ce4: 4b20 ldr r3, [pc, #128] @ (8020d68 <udp_input+0x20c>)
  80724. 8020ce6: f44f 72b8 mov.w r2, #368 @ 0x170
  80725. 8020cea: 4925 ldr r1, [pc, #148] @ (8020d80 <udp_input+0x224>)
  80726. 8020cec: 4820 ldr r0, [pc, #128] @ (8020d70 <udp_input+0x214>)
  80727. 8020cee: f008 fc0d bl 802950c <iprintf>
  80728. UDP_STATS_INC(udp.drop);
  80729. MIB2_STATS_INC(mib2.udpinerrors);
  80730. pbuf_free(p);
  80731. 8020cf2: 6878 ldr r0, [r7, #4]
  80732. 8020cf4: f7f9 f992 bl 801a01c <pbuf_free>
  80733. goto end;
  80734. 8020cf8: e032 b.n 8020d60 <udp_input+0x204>
  80735. }
  80736. if (pcb != NULL) {
  80737. 8020cfa: 6a3b ldr r3, [r7, #32]
  80738. 8020cfc: 2b00 cmp r3, #0
  80739. 8020cfe: d012 beq.n 8020d26 <udp_input+0x1ca>
  80740. }
  80741. }
  80742. }
  80743. #endif /* SO_REUSE && SO_REUSE_RXTOALL */
  80744. /* callback */
  80745. if (pcb->recv != NULL) {
  80746. 8020d00: 6a3b ldr r3, [r7, #32]
  80747. 8020d02: 699b ldr r3, [r3, #24]
  80748. 8020d04: 2b00 cmp r3, #0
  80749. 8020d06: d00a beq.n 8020d1e <udp_input+0x1c2>
  80750. /* now the recv function is responsible for freeing p */
  80751. pcb->recv(pcb->recv_arg, pcb, p, ip_current_src_addr(), src);
  80752. 8020d08: 6a3b ldr r3, [r7, #32]
  80753. 8020d0a: 699c ldr r4, [r3, #24]
  80754. 8020d0c: 6a3b ldr r3, [r7, #32]
  80755. 8020d0e: 69d8 ldr r0, [r3, #28]
  80756. 8020d10: 8a3b ldrh r3, [r7, #16]
  80757. 8020d12: 9300 str r3, [sp, #0]
  80758. 8020d14: 4b1b ldr r3, [pc, #108] @ (8020d84 <udp_input+0x228>)
  80759. 8020d16: 687a ldr r2, [r7, #4]
  80760. 8020d18: 6a39 ldr r1, [r7, #32]
  80761. 8020d1a: 47a0 blx r4
  80762. } else {
  80763. pbuf_free(p);
  80764. }
  80765. end:
  80766. PERF_STOP("udp_input");
  80767. return;
  80768. 8020d1c: e021 b.n 8020d62 <udp_input+0x206>
  80769. pbuf_free(p);
  80770. 8020d1e: 6878 ldr r0, [r7, #4]
  80771. 8020d20: f7f9 f97c bl 801a01c <pbuf_free>
  80772. goto end;
  80773. 8020d24: e01c b.n 8020d60 <udp_input+0x204>
  80774. if (!broadcast && !ip_addr_ismulticast(ip_current_dest_addr())) {
  80775. 8020d26: 7cfb ldrb r3, [r7, #19]
  80776. 8020d28: 2b00 cmp r3, #0
  80777. 8020d2a: d112 bne.n 8020d52 <udp_input+0x1f6>
  80778. 8020d2c: 4b12 ldr r3, [pc, #72] @ (8020d78 <udp_input+0x21c>)
  80779. 8020d2e: 695b ldr r3, [r3, #20]
  80780. 8020d30: f003 03f0 and.w r3, r3, #240 @ 0xf0
  80781. 8020d34: 2be0 cmp r3, #224 @ 0xe0
  80782. 8020d36: d00c beq.n 8020d52 <udp_input+0x1f6>
  80783. pbuf_header_force(p, (s16_t)(ip_current_header_tot_len() + UDP_HLEN));
  80784. 8020d38: 4b0f ldr r3, [pc, #60] @ (8020d78 <udp_input+0x21c>)
  80785. 8020d3a: 899b ldrh r3, [r3, #12]
  80786. 8020d3c: 3308 adds r3, #8
  80787. 8020d3e: b29b uxth r3, r3
  80788. 8020d40: b21b sxth r3, r3
  80789. 8020d42: 4619 mov r1, r3
  80790. 8020d44: 6878 ldr r0, [r7, #4]
  80791. 8020d46: f7f9 f924 bl 8019f92 <pbuf_header_force>
  80792. icmp_port_unreach(ip_current_is_v6(), p);
  80793. 8020d4a: 2103 movs r1, #3
  80794. 8020d4c: 6878 ldr r0, [r7, #4]
  80795. 8020d4e: f003 fb3b bl 80243c8 <icmp_dest_unreach>
  80796. pbuf_free(p);
  80797. 8020d52: 6878 ldr r0, [r7, #4]
  80798. 8020d54: f7f9 f962 bl 801a01c <pbuf_free>
  80799. return;
  80800. 8020d58: e003 b.n 8020d62 <udp_input+0x206>
  80801. pbuf_free(p);
  80802. 8020d5a: 6878 ldr r0, [r7, #4]
  80803. 8020d5c: f7f9 f95e bl 801a01c <pbuf_free>
  80804. return;
  80805. 8020d60: bf00 nop
  80806. UDP_STATS_INC(udp.drop);
  80807. MIB2_STATS_INC(mib2.udpinerrors);
  80808. pbuf_free(p);
  80809. PERF_STOP("udp_input");
  80810. #endif /* CHECKSUM_CHECK_UDP */
  80811. }
  80812. 8020d62: 372c adds r7, #44 @ 0x2c
  80813. 8020d64: 46bd mov sp, r7
  80814. 8020d66: bd90 pop {r4, r7, pc}
  80815. 8020d68: 0802f684 .word 0x0802f684
  80816. 8020d6c: 0802f728 .word 0x0802f728
  80817. 8020d70: 0802f6d8 .word 0x0802f6d8
  80818. 8020d74: 0802f740 .word 0x0802f740
  80819. 8020d78: 2402349c .word 0x2402349c
  80820. 8020d7c: 2402a04c .word 0x2402a04c
  80821. 8020d80: 0802f75c .word 0x0802f75c
  80822. 8020d84: 240234ac .word 0x240234ac
  80823. 08020d88 <udp_send>:
  80824. *
  80825. * @see udp_disconnect() udp_sendto()
  80826. */
  80827. err_t
  80828. udp_send(struct udp_pcb *pcb, struct pbuf *p)
  80829. {
  80830. 8020d88: b580 push {r7, lr}
  80831. 8020d8a: b082 sub sp, #8
  80832. 8020d8c: af00 add r7, sp, #0
  80833. 8020d8e: 6078 str r0, [r7, #4]
  80834. 8020d90: 6039 str r1, [r7, #0]
  80835. LWIP_ERROR("udp_send: invalid pcb", pcb != NULL, return ERR_ARG);
  80836. 8020d92: 687b ldr r3, [r7, #4]
  80837. 8020d94: 2b00 cmp r3, #0
  80838. 8020d96: d109 bne.n 8020dac <udp_send+0x24>
  80839. 8020d98: 4b11 ldr r3, [pc, #68] @ (8020de0 <udp_send+0x58>)
  80840. 8020d9a: f240 12d5 movw r2, #469 @ 0x1d5
  80841. 8020d9e: 4911 ldr r1, [pc, #68] @ (8020de4 <udp_send+0x5c>)
  80842. 8020da0: 4811 ldr r0, [pc, #68] @ (8020de8 <udp_send+0x60>)
  80843. 8020da2: f008 fbb3 bl 802950c <iprintf>
  80844. 8020da6: f06f 030f mvn.w r3, #15
  80845. 8020daa: e015 b.n 8020dd8 <udp_send+0x50>
  80846. LWIP_ERROR("udp_send: invalid pbuf", p != NULL, return ERR_ARG);
  80847. 8020dac: 683b ldr r3, [r7, #0]
  80848. 8020dae: 2b00 cmp r3, #0
  80849. 8020db0: d109 bne.n 8020dc6 <udp_send+0x3e>
  80850. 8020db2: 4b0b ldr r3, [pc, #44] @ (8020de0 <udp_send+0x58>)
  80851. 8020db4: f44f 72eb mov.w r2, #470 @ 0x1d6
  80852. 8020db8: 490c ldr r1, [pc, #48] @ (8020dec <udp_send+0x64>)
  80853. 8020dba: 480b ldr r0, [pc, #44] @ (8020de8 <udp_send+0x60>)
  80854. 8020dbc: f008 fba6 bl 802950c <iprintf>
  80855. 8020dc0: f06f 030f mvn.w r3, #15
  80856. 8020dc4: e008 b.n 8020dd8 <udp_send+0x50>
  80857. if (IP_IS_ANY_TYPE_VAL(pcb->remote_ip)) {
  80858. return ERR_VAL;
  80859. }
  80860. /* send to the packet using remote ip and port stored in the pcb */
  80861. return udp_sendto(pcb, p, &pcb->remote_ip, pcb->remote_port);
  80862. 8020dc6: 687b ldr r3, [r7, #4]
  80863. 8020dc8: 1d1a adds r2, r3, #4
  80864. 8020dca: 687b ldr r3, [r7, #4]
  80865. 8020dcc: 8a9b ldrh r3, [r3, #20]
  80866. 8020dce: 6839 ldr r1, [r7, #0]
  80867. 8020dd0: 6878 ldr r0, [r7, #4]
  80868. 8020dd2: f000 f80d bl 8020df0 <udp_sendto>
  80869. 8020dd6: 4603 mov r3, r0
  80870. }
  80871. 8020dd8: 4618 mov r0, r3
  80872. 8020dda: 3708 adds r7, #8
  80873. 8020ddc: 46bd mov sp, r7
  80874. 8020dde: bd80 pop {r7, pc}
  80875. 8020de0: 0802f684 .word 0x0802f684
  80876. 8020de4: 0802f778 .word 0x0802f778
  80877. 8020de8: 0802f6d8 .word 0x0802f6d8
  80878. 8020dec: 0802f790 .word 0x0802f790
  80879. 08020df0 <udp_sendto>:
  80880. * @see udp_disconnect() udp_send()
  80881. */
  80882. err_t
  80883. udp_sendto(struct udp_pcb *pcb, struct pbuf *p,
  80884. const ip_addr_t *dst_ip, u16_t dst_port)
  80885. {
  80886. 8020df0: b580 push {r7, lr}
  80887. 8020df2: b088 sub sp, #32
  80888. 8020df4: af02 add r7, sp, #8
  80889. 8020df6: 60f8 str r0, [r7, #12]
  80890. 8020df8: 60b9 str r1, [r7, #8]
  80891. 8020dfa: 607a str r2, [r7, #4]
  80892. 8020dfc: 807b strh r3, [r7, #2]
  80893. u16_t dst_port, u8_t have_chksum, u16_t chksum)
  80894. {
  80895. #endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
  80896. struct netif *netif;
  80897. LWIP_ERROR("udp_sendto: invalid pcb", pcb != NULL, return ERR_ARG);
  80898. 8020dfe: 68fb ldr r3, [r7, #12]
  80899. 8020e00: 2b00 cmp r3, #0
  80900. 8020e02: d109 bne.n 8020e18 <udp_sendto+0x28>
  80901. 8020e04: 4b23 ldr r3, [pc, #140] @ (8020e94 <udp_sendto+0xa4>)
  80902. 8020e06: f44f 7206 mov.w r2, #536 @ 0x218
  80903. 8020e0a: 4923 ldr r1, [pc, #140] @ (8020e98 <udp_sendto+0xa8>)
  80904. 8020e0c: 4823 ldr r0, [pc, #140] @ (8020e9c <udp_sendto+0xac>)
  80905. 8020e0e: f008 fb7d bl 802950c <iprintf>
  80906. 8020e12: f06f 030f mvn.w r3, #15
  80907. 8020e16: e038 b.n 8020e8a <udp_sendto+0x9a>
  80908. LWIP_ERROR("udp_sendto: invalid pbuf", p != NULL, return ERR_ARG);
  80909. 8020e18: 68bb ldr r3, [r7, #8]
  80910. 8020e1a: 2b00 cmp r3, #0
  80911. 8020e1c: d109 bne.n 8020e32 <udp_sendto+0x42>
  80912. 8020e1e: 4b1d ldr r3, [pc, #116] @ (8020e94 <udp_sendto+0xa4>)
  80913. 8020e20: f240 2219 movw r2, #537 @ 0x219
  80914. 8020e24: 491e ldr r1, [pc, #120] @ (8020ea0 <udp_sendto+0xb0>)
  80915. 8020e26: 481d ldr r0, [pc, #116] @ (8020e9c <udp_sendto+0xac>)
  80916. 8020e28: f008 fb70 bl 802950c <iprintf>
  80917. 8020e2c: f06f 030f mvn.w r3, #15
  80918. 8020e30: e02b b.n 8020e8a <udp_sendto+0x9a>
  80919. LWIP_ERROR("udp_sendto: invalid dst_ip", dst_ip != NULL, return ERR_ARG);
  80920. 8020e32: 687b ldr r3, [r7, #4]
  80921. 8020e34: 2b00 cmp r3, #0
  80922. 8020e36: d109 bne.n 8020e4c <udp_sendto+0x5c>
  80923. 8020e38: 4b16 ldr r3, [pc, #88] @ (8020e94 <udp_sendto+0xa4>)
  80924. 8020e3a: f240 221a movw r2, #538 @ 0x21a
  80925. 8020e3e: 4919 ldr r1, [pc, #100] @ (8020ea4 <udp_sendto+0xb4>)
  80926. 8020e40: 4816 ldr r0, [pc, #88] @ (8020e9c <udp_sendto+0xac>)
  80927. 8020e42: f008 fb63 bl 802950c <iprintf>
  80928. 8020e46: f06f 030f mvn.w r3, #15
  80929. 8020e4a: e01e b.n 8020e8a <udp_sendto+0x9a>
  80930. return ERR_VAL;
  80931. }
  80932. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, ("udp_send\n"));
  80933. if (pcb->netif_idx != NETIF_NO_INDEX) {
  80934. 8020e4c: 68fb ldr r3, [r7, #12]
  80935. 8020e4e: 7a1b ldrb r3, [r3, #8]
  80936. 8020e50: 2b00 cmp r3, #0
  80937. 8020e52: d006 beq.n 8020e62 <udp_sendto+0x72>
  80938. netif = netif_get_by_index(pcb->netif_idx);
  80939. 8020e54: 68fb ldr r3, [r7, #12]
  80940. 8020e56: 7a1b ldrb r3, [r3, #8]
  80941. 8020e58: 4618 mov r0, r3
  80942. 8020e5a: f7f8 fd1f bl 801989c <netif_get_by_index>
  80943. 8020e5e: 6178 str r0, [r7, #20]
  80944. 8020e60: e003 b.n 8020e6a <udp_sendto+0x7a>
  80945. if (netif == NULL)
  80946. #endif /* LWIP_MULTICAST_TX_OPTIONS */
  80947. {
  80948. /* find the outgoing network interface for this packet */
  80949. netif = ip_route(&pcb->local_ip, dst_ip);
  80950. 8020e62: 6878 ldr r0, [r7, #4]
  80951. 8020e64: f003 fb44 bl 80244f0 <ip4_route>
  80952. 8020e68: 6178 str r0, [r7, #20]
  80953. }
  80954. }
  80955. /* no outgoing network interface could be found? */
  80956. if (netif == NULL) {
  80957. 8020e6a: 697b ldr r3, [r7, #20]
  80958. 8020e6c: 2b00 cmp r3, #0
  80959. 8020e6e: d102 bne.n 8020e76 <udp_sendto+0x86>
  80960. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("udp_send: No route to "));
  80961. ip_addr_debug_print(UDP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, dst_ip);
  80962. LWIP_DEBUGF(UDP_DEBUG, ("\n"));
  80963. UDP_STATS_INC(udp.rterr);
  80964. return ERR_RTE;
  80965. 8020e70: f06f 0303 mvn.w r3, #3
  80966. 8020e74: e009 b.n 8020e8a <udp_sendto+0x9a>
  80967. }
  80968. #if LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP
  80969. return udp_sendto_if_chksum(pcb, p, dst_ip, dst_port, netif, have_chksum, chksum);
  80970. #else /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
  80971. return udp_sendto_if(pcb, p, dst_ip, dst_port, netif);
  80972. 8020e76: 887a ldrh r2, [r7, #2]
  80973. 8020e78: 697b ldr r3, [r7, #20]
  80974. 8020e7a: 9300 str r3, [sp, #0]
  80975. 8020e7c: 4613 mov r3, r2
  80976. 8020e7e: 687a ldr r2, [r7, #4]
  80977. 8020e80: 68b9 ldr r1, [r7, #8]
  80978. 8020e82: 68f8 ldr r0, [r7, #12]
  80979. 8020e84: f000 f810 bl 8020ea8 <udp_sendto_if>
  80980. 8020e88: 4603 mov r3, r0
  80981. #endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
  80982. }
  80983. 8020e8a: 4618 mov r0, r3
  80984. 8020e8c: 3718 adds r7, #24
  80985. 8020e8e: 46bd mov sp, r7
  80986. 8020e90: bd80 pop {r7, pc}
  80987. 8020e92: bf00 nop
  80988. 8020e94: 0802f684 .word 0x0802f684
  80989. 8020e98: 0802f7a8 .word 0x0802f7a8
  80990. 8020e9c: 0802f6d8 .word 0x0802f6d8
  80991. 8020ea0: 0802f7c0 .word 0x0802f7c0
  80992. 8020ea4: 0802f7dc .word 0x0802f7dc
  80993. 08020ea8 <udp_sendto_if>:
  80994. * @see udp_disconnect() udp_send()
  80995. */
  80996. err_t
  80997. udp_sendto_if(struct udp_pcb *pcb, struct pbuf *p,
  80998. const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif)
  80999. {
  81000. 8020ea8: b580 push {r7, lr}
  81001. 8020eaa: b088 sub sp, #32
  81002. 8020eac: af02 add r7, sp, #8
  81003. 8020eae: 60f8 str r0, [r7, #12]
  81004. 8020eb0: 60b9 str r1, [r7, #8]
  81005. 8020eb2: 607a str r2, [r7, #4]
  81006. 8020eb4: 807b strh r3, [r7, #2]
  81007. u16_t chksum)
  81008. {
  81009. #endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
  81010. const ip_addr_t *src_ip;
  81011. LWIP_ERROR("udp_sendto_if: invalid pcb", pcb != NULL, return ERR_ARG);
  81012. 8020eb6: 68fb ldr r3, [r7, #12]
  81013. 8020eb8: 2b00 cmp r3, #0
  81014. 8020eba: d109 bne.n 8020ed0 <udp_sendto_if+0x28>
  81015. 8020ebc: 4b2e ldr r3, [pc, #184] @ (8020f78 <udp_sendto_if+0xd0>)
  81016. 8020ebe: f44f 7220 mov.w r2, #640 @ 0x280
  81017. 8020ec2: 492e ldr r1, [pc, #184] @ (8020f7c <udp_sendto_if+0xd4>)
  81018. 8020ec4: 482e ldr r0, [pc, #184] @ (8020f80 <udp_sendto_if+0xd8>)
  81019. 8020ec6: f008 fb21 bl 802950c <iprintf>
  81020. 8020eca: f06f 030f mvn.w r3, #15
  81021. 8020ece: e04f b.n 8020f70 <udp_sendto_if+0xc8>
  81022. LWIP_ERROR("udp_sendto_if: invalid pbuf", p != NULL, return ERR_ARG);
  81023. 8020ed0: 68bb ldr r3, [r7, #8]
  81024. 8020ed2: 2b00 cmp r3, #0
  81025. 8020ed4: d109 bne.n 8020eea <udp_sendto_if+0x42>
  81026. 8020ed6: 4b28 ldr r3, [pc, #160] @ (8020f78 <udp_sendto_if+0xd0>)
  81027. 8020ed8: f240 2281 movw r2, #641 @ 0x281
  81028. 8020edc: 4929 ldr r1, [pc, #164] @ (8020f84 <udp_sendto_if+0xdc>)
  81029. 8020ede: 4828 ldr r0, [pc, #160] @ (8020f80 <udp_sendto_if+0xd8>)
  81030. 8020ee0: f008 fb14 bl 802950c <iprintf>
  81031. 8020ee4: f06f 030f mvn.w r3, #15
  81032. 8020ee8: e042 b.n 8020f70 <udp_sendto_if+0xc8>
  81033. LWIP_ERROR("udp_sendto_if: invalid dst_ip", dst_ip != NULL, return ERR_ARG);
  81034. 8020eea: 687b ldr r3, [r7, #4]
  81035. 8020eec: 2b00 cmp r3, #0
  81036. 8020eee: d109 bne.n 8020f04 <udp_sendto_if+0x5c>
  81037. 8020ef0: 4b21 ldr r3, [pc, #132] @ (8020f78 <udp_sendto_if+0xd0>)
  81038. 8020ef2: f240 2282 movw r2, #642 @ 0x282
  81039. 8020ef6: 4924 ldr r1, [pc, #144] @ (8020f88 <udp_sendto_if+0xe0>)
  81040. 8020ef8: 4821 ldr r0, [pc, #132] @ (8020f80 <udp_sendto_if+0xd8>)
  81041. 8020efa: f008 fb07 bl 802950c <iprintf>
  81042. 8020efe: f06f 030f mvn.w r3, #15
  81043. 8020f02: e035 b.n 8020f70 <udp_sendto_if+0xc8>
  81044. LWIP_ERROR("udp_sendto_if: invalid netif", netif != NULL, return ERR_ARG);
  81045. 8020f04: 6a3b ldr r3, [r7, #32]
  81046. 8020f06: 2b00 cmp r3, #0
  81047. 8020f08: d109 bne.n 8020f1e <udp_sendto_if+0x76>
  81048. 8020f0a: 4b1b ldr r3, [pc, #108] @ (8020f78 <udp_sendto_if+0xd0>)
  81049. 8020f0c: f240 2283 movw r2, #643 @ 0x283
  81050. 8020f10: 491e ldr r1, [pc, #120] @ (8020f8c <udp_sendto_if+0xe4>)
  81051. 8020f12: 481b ldr r0, [pc, #108] @ (8020f80 <udp_sendto_if+0xd8>)
  81052. 8020f14: f008 fafa bl 802950c <iprintf>
  81053. 8020f18: f06f 030f mvn.w r3, #15
  81054. 8020f1c: e028 b.n 8020f70 <udp_sendto_if+0xc8>
  81055. #endif /* LWIP_IPV6 */
  81056. #if LWIP_IPV4 && LWIP_IPV6
  81057. else
  81058. #endif /* LWIP_IPV4 && LWIP_IPV6 */
  81059. #if LWIP_IPV4
  81060. if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) ||
  81061. 8020f1e: 68fb ldr r3, [r7, #12]
  81062. 8020f20: 2b00 cmp r3, #0
  81063. 8020f22: d009 beq.n 8020f38 <udp_sendto_if+0x90>
  81064. 8020f24: 68fb ldr r3, [r7, #12]
  81065. 8020f26: 681b ldr r3, [r3, #0]
  81066. 8020f28: 2b00 cmp r3, #0
  81067. 8020f2a: d005 beq.n 8020f38 <udp_sendto_if+0x90>
  81068. ip4_addr_ismulticast(ip_2_ip4(&pcb->local_ip))) {
  81069. 8020f2c: 68fb ldr r3, [r7, #12]
  81070. 8020f2e: 681b ldr r3, [r3, #0]
  81071. 8020f30: f003 03f0 and.w r3, r3, #240 @ 0xf0
  81072. if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) ||
  81073. 8020f34: 2be0 cmp r3, #224 @ 0xe0
  81074. 8020f36: d103 bne.n 8020f40 <udp_sendto_if+0x98>
  81075. /* if the local_ip is any or multicast
  81076. * use the outgoing network interface IP address as source address */
  81077. src_ip = netif_ip_addr4(netif);
  81078. 8020f38: 6a3b ldr r3, [r7, #32]
  81079. 8020f3a: 3304 adds r3, #4
  81080. 8020f3c: 617b str r3, [r7, #20]
  81081. 8020f3e: e00b b.n 8020f58 <udp_sendto_if+0xb0>
  81082. } else {
  81083. /* check if UDP PCB local IP address is correct
  81084. * this could be an old address if netif->ip_addr has changed */
  81085. if (!ip4_addr_cmp(ip_2_ip4(&(pcb->local_ip)), netif_ip4_addr(netif))) {
  81086. 8020f40: 68fb ldr r3, [r7, #12]
  81087. 8020f42: 681a ldr r2, [r3, #0]
  81088. 8020f44: 6a3b ldr r3, [r7, #32]
  81089. 8020f46: 3304 adds r3, #4
  81090. 8020f48: 681b ldr r3, [r3, #0]
  81091. 8020f4a: 429a cmp r2, r3
  81092. 8020f4c: d002 beq.n 8020f54 <udp_sendto_if+0xac>
  81093. /* local_ip doesn't match, drop the packet */
  81094. return ERR_RTE;
  81095. 8020f4e: f06f 0303 mvn.w r3, #3
  81096. 8020f52: e00d b.n 8020f70 <udp_sendto_if+0xc8>
  81097. }
  81098. /* use UDP PCB local IP address as source address */
  81099. src_ip = &pcb->local_ip;
  81100. 8020f54: 68fb ldr r3, [r7, #12]
  81101. 8020f56: 617b str r3, [r7, #20]
  81102. }
  81103. #endif /* LWIP_IPV4 */
  81104. #if LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP
  81105. return udp_sendto_if_src_chksum(pcb, p, dst_ip, dst_port, netif, have_chksum, chksum, src_ip);
  81106. #else /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
  81107. return udp_sendto_if_src(pcb, p, dst_ip, dst_port, netif, src_ip);
  81108. 8020f58: 887a ldrh r2, [r7, #2]
  81109. 8020f5a: 697b ldr r3, [r7, #20]
  81110. 8020f5c: 9301 str r3, [sp, #4]
  81111. 8020f5e: 6a3b ldr r3, [r7, #32]
  81112. 8020f60: 9300 str r3, [sp, #0]
  81113. 8020f62: 4613 mov r3, r2
  81114. 8020f64: 687a ldr r2, [r7, #4]
  81115. 8020f66: 68b9 ldr r1, [r7, #8]
  81116. 8020f68: 68f8 ldr r0, [r7, #12]
  81117. 8020f6a: f000 f811 bl 8020f90 <udp_sendto_if_src>
  81118. 8020f6e: 4603 mov r3, r0
  81119. #endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
  81120. }
  81121. 8020f70: 4618 mov r0, r3
  81122. 8020f72: 3718 adds r7, #24
  81123. 8020f74: 46bd mov sp, r7
  81124. 8020f76: bd80 pop {r7, pc}
  81125. 8020f78: 0802f684 .word 0x0802f684
  81126. 8020f7c: 0802f7f8 .word 0x0802f7f8
  81127. 8020f80: 0802f6d8 .word 0x0802f6d8
  81128. 8020f84: 0802f814 .word 0x0802f814
  81129. 8020f88: 0802f830 .word 0x0802f830
  81130. 8020f8c: 0802f850 .word 0x0802f850
  81131. 08020f90 <udp_sendto_if_src>:
  81132. /** @ingroup udp_raw
  81133. * Same as @ref udp_sendto_if, but with source address */
  81134. err_t
  81135. udp_sendto_if_src(struct udp_pcb *pcb, struct pbuf *p,
  81136. const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif, const ip_addr_t *src_ip)
  81137. {
  81138. 8020f90: b580 push {r7, lr}
  81139. 8020f92: b08c sub sp, #48 @ 0x30
  81140. 8020f94: af04 add r7, sp, #16
  81141. 8020f96: 60f8 str r0, [r7, #12]
  81142. 8020f98: 60b9 str r1, [r7, #8]
  81143. 8020f9a: 607a str r2, [r7, #4]
  81144. 8020f9c: 807b strh r3, [r7, #2]
  81145. err_t err;
  81146. struct pbuf *q; /* q will be sent down the stack */
  81147. u8_t ip_proto;
  81148. u8_t ttl;
  81149. LWIP_ASSERT_CORE_LOCKED();
  81150. 8020f9e: f7ef f867 bl 8010070 <sys_check_core_locking>
  81151. LWIP_ERROR("udp_sendto_if_src: invalid pcb", pcb != NULL, return ERR_ARG);
  81152. 8020fa2: 68fb ldr r3, [r7, #12]
  81153. 8020fa4: 2b00 cmp r3, #0
  81154. 8020fa6: d109 bne.n 8020fbc <udp_sendto_if_src+0x2c>
  81155. 8020fa8: 4b65 ldr r3, [pc, #404] @ (8021140 <udp_sendto_if_src+0x1b0>)
  81156. 8020faa: f240 22d1 movw r2, #721 @ 0x2d1
  81157. 8020fae: 4965 ldr r1, [pc, #404] @ (8021144 <udp_sendto_if_src+0x1b4>)
  81158. 8020fb0: 4865 ldr r0, [pc, #404] @ (8021148 <udp_sendto_if_src+0x1b8>)
  81159. 8020fb2: f008 faab bl 802950c <iprintf>
  81160. 8020fb6: f06f 030f mvn.w r3, #15
  81161. 8020fba: e0bc b.n 8021136 <udp_sendto_if_src+0x1a6>
  81162. LWIP_ERROR("udp_sendto_if_src: invalid pbuf", p != NULL, return ERR_ARG);
  81163. 8020fbc: 68bb ldr r3, [r7, #8]
  81164. 8020fbe: 2b00 cmp r3, #0
  81165. 8020fc0: d109 bne.n 8020fd6 <udp_sendto_if_src+0x46>
  81166. 8020fc2: 4b5f ldr r3, [pc, #380] @ (8021140 <udp_sendto_if_src+0x1b0>)
  81167. 8020fc4: f240 22d2 movw r2, #722 @ 0x2d2
  81168. 8020fc8: 4960 ldr r1, [pc, #384] @ (802114c <udp_sendto_if_src+0x1bc>)
  81169. 8020fca: 485f ldr r0, [pc, #380] @ (8021148 <udp_sendto_if_src+0x1b8>)
  81170. 8020fcc: f008 fa9e bl 802950c <iprintf>
  81171. 8020fd0: f06f 030f mvn.w r3, #15
  81172. 8020fd4: e0af b.n 8021136 <udp_sendto_if_src+0x1a6>
  81173. LWIP_ERROR("udp_sendto_if_src: invalid dst_ip", dst_ip != NULL, return ERR_ARG);
  81174. 8020fd6: 687b ldr r3, [r7, #4]
  81175. 8020fd8: 2b00 cmp r3, #0
  81176. 8020fda: d109 bne.n 8020ff0 <udp_sendto_if_src+0x60>
  81177. 8020fdc: 4b58 ldr r3, [pc, #352] @ (8021140 <udp_sendto_if_src+0x1b0>)
  81178. 8020fde: f240 22d3 movw r2, #723 @ 0x2d3
  81179. 8020fe2: 495b ldr r1, [pc, #364] @ (8021150 <udp_sendto_if_src+0x1c0>)
  81180. 8020fe4: 4858 ldr r0, [pc, #352] @ (8021148 <udp_sendto_if_src+0x1b8>)
  81181. 8020fe6: f008 fa91 bl 802950c <iprintf>
  81182. 8020fea: f06f 030f mvn.w r3, #15
  81183. 8020fee: e0a2 b.n 8021136 <udp_sendto_if_src+0x1a6>
  81184. LWIP_ERROR("udp_sendto_if_src: invalid src_ip", src_ip != NULL, return ERR_ARG);
  81185. 8020ff0: 6afb ldr r3, [r7, #44] @ 0x2c
  81186. 8020ff2: 2b00 cmp r3, #0
  81187. 8020ff4: d109 bne.n 802100a <udp_sendto_if_src+0x7a>
  81188. 8020ff6: 4b52 ldr r3, [pc, #328] @ (8021140 <udp_sendto_if_src+0x1b0>)
  81189. 8020ff8: f44f 7235 mov.w r2, #724 @ 0x2d4
  81190. 8020ffc: 4955 ldr r1, [pc, #340] @ (8021154 <udp_sendto_if_src+0x1c4>)
  81191. 8020ffe: 4852 ldr r0, [pc, #328] @ (8021148 <udp_sendto_if_src+0x1b8>)
  81192. 8021000: f008 fa84 bl 802950c <iprintf>
  81193. 8021004: f06f 030f mvn.w r3, #15
  81194. 8021008: e095 b.n 8021136 <udp_sendto_if_src+0x1a6>
  81195. LWIP_ERROR("udp_sendto_if_src: invalid netif", netif != NULL, return ERR_ARG);
  81196. 802100a: 6abb ldr r3, [r7, #40] @ 0x28
  81197. 802100c: 2b00 cmp r3, #0
  81198. 802100e: d109 bne.n 8021024 <udp_sendto_if_src+0x94>
  81199. 8021010: 4b4b ldr r3, [pc, #300] @ (8021140 <udp_sendto_if_src+0x1b0>)
  81200. 8021012: f240 22d5 movw r2, #725 @ 0x2d5
  81201. 8021016: 4950 ldr r1, [pc, #320] @ (8021158 <udp_sendto_if_src+0x1c8>)
  81202. 8021018: 484b ldr r0, [pc, #300] @ (8021148 <udp_sendto_if_src+0x1b8>)
  81203. 802101a: f008 fa77 bl 802950c <iprintf>
  81204. 802101e: f06f 030f mvn.w r3, #15
  81205. 8021022: e088 b.n 8021136 <udp_sendto_if_src+0x1a6>
  81206. return ERR_VAL;
  81207. }
  81208. #endif /* LWIP_IPV4 && IP_SOF_BROADCAST */
  81209. /* if the PCB is not yet bound to a port, bind it here */
  81210. if (pcb->local_port == 0) {
  81211. 8021024: 68fb ldr r3, [r7, #12]
  81212. 8021026: 8a5b ldrh r3, [r3, #18]
  81213. 8021028: 2b00 cmp r3, #0
  81214. 802102a: d10f bne.n 802104c <udp_sendto_if_src+0xbc>
  81215. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, ("udp_send: not yet bound to a port, binding now\n"));
  81216. err = udp_bind(pcb, &pcb->local_ip, pcb->local_port);
  81217. 802102c: 68f9 ldr r1, [r7, #12]
  81218. 802102e: 68fb ldr r3, [r7, #12]
  81219. 8021030: 8a5b ldrh r3, [r3, #18]
  81220. 8021032: 461a mov r2, r3
  81221. 8021034: 68f8 ldr r0, [r7, #12]
  81222. 8021036: f000 f893 bl 8021160 <udp_bind>
  81223. 802103a: 4603 mov r3, r0
  81224. 802103c: 76fb strb r3, [r7, #27]
  81225. if (err != ERR_OK) {
  81226. 802103e: f997 301b ldrsb.w r3, [r7, #27]
  81227. 8021042: 2b00 cmp r3, #0
  81228. 8021044: d002 beq.n 802104c <udp_sendto_if_src+0xbc>
  81229. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("udp_send: forced port bind failed\n"));
  81230. return err;
  81231. 8021046: f997 301b ldrsb.w r3, [r7, #27]
  81232. 802104a: e074 b.n 8021136 <udp_sendto_if_src+0x1a6>
  81233. }
  81234. }
  81235. /* packet too large to add a UDP header without causing an overflow? */
  81236. if ((u16_t)(p->tot_len + UDP_HLEN) < p->tot_len) {
  81237. 802104c: 68bb ldr r3, [r7, #8]
  81238. 802104e: 891b ldrh r3, [r3, #8]
  81239. 8021050: f64f 72f7 movw r2, #65527 @ 0xfff7
  81240. 8021054: 4293 cmp r3, r2
  81241. 8021056: d902 bls.n 802105e <udp_sendto_if_src+0xce>
  81242. return ERR_MEM;
  81243. 8021058: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  81244. 802105c: e06b b.n 8021136 <udp_sendto_if_src+0x1a6>
  81245. }
  81246. /* not enough space to add an UDP header to first pbuf in given p chain? */
  81247. if (pbuf_add_header(p, UDP_HLEN)) {
  81248. 802105e: 2108 movs r1, #8
  81249. 8021060: 68b8 ldr r0, [r7, #8]
  81250. 8021062: f7f8 ff13 bl 8019e8c <pbuf_add_header>
  81251. 8021066: 4603 mov r3, r0
  81252. 8021068: 2b00 cmp r3, #0
  81253. 802106a: d015 beq.n 8021098 <udp_sendto_if_src+0x108>
  81254. /* allocate header in a separate new pbuf */
  81255. q = pbuf_alloc(PBUF_IP, UDP_HLEN, PBUF_RAM);
  81256. 802106c: f44f 7220 mov.w r2, #640 @ 0x280
  81257. 8021070: 2108 movs r1, #8
  81258. 8021072: 2022 movs r0, #34 @ 0x22
  81259. 8021074: f7f8 fcbc bl 80199f0 <pbuf_alloc>
  81260. 8021078: 61f8 str r0, [r7, #28]
  81261. /* new header pbuf could not be allocated? */
  81262. if (q == NULL) {
  81263. 802107a: 69fb ldr r3, [r7, #28]
  81264. 802107c: 2b00 cmp r3, #0
  81265. 802107e: d102 bne.n 8021086 <udp_sendto_if_src+0xf6>
  81266. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("udp_send: could not allocate header\n"));
  81267. return ERR_MEM;
  81268. 8021080: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  81269. 8021084: e057 b.n 8021136 <udp_sendto_if_src+0x1a6>
  81270. }
  81271. if (p->tot_len != 0) {
  81272. 8021086: 68bb ldr r3, [r7, #8]
  81273. 8021088: 891b ldrh r3, [r3, #8]
  81274. 802108a: 2b00 cmp r3, #0
  81275. 802108c: d006 beq.n 802109c <udp_sendto_if_src+0x10c>
  81276. /* chain header q in front of given pbuf p (only if p contains data) */
  81277. pbuf_chain(q, p);
  81278. 802108e: 68b9 ldr r1, [r7, #8]
  81279. 8021090: 69f8 ldr r0, [r7, #28]
  81280. 8021092: f7f9 f8e7 bl 801a264 <pbuf_chain>
  81281. 8021096: e001 b.n 802109c <udp_sendto_if_src+0x10c>
  81282. LWIP_DEBUGF(UDP_DEBUG,
  81283. ("udp_send: added header pbuf %p before given pbuf %p\n", (void *)q, (void *)p));
  81284. } else {
  81285. /* adding space for header within p succeeded */
  81286. /* first pbuf q equals given pbuf */
  81287. q = p;
  81288. 8021098: 68bb ldr r3, [r7, #8]
  81289. 802109a: 61fb str r3, [r7, #28]
  81290. LWIP_DEBUGF(UDP_DEBUG, ("udp_send: added header in given pbuf %p\n", (void *)p));
  81291. }
  81292. LWIP_ASSERT("check that first pbuf can hold struct udp_hdr",
  81293. 802109c: 69fb ldr r3, [r7, #28]
  81294. 802109e: 895b ldrh r3, [r3, #10]
  81295. 80210a0: 2b07 cmp r3, #7
  81296. 80210a2: d806 bhi.n 80210b2 <udp_sendto_if_src+0x122>
  81297. 80210a4: 4b26 ldr r3, [pc, #152] @ (8021140 <udp_sendto_if_src+0x1b0>)
  81298. 80210a6: f240 320d movw r2, #781 @ 0x30d
  81299. 80210aa: 492c ldr r1, [pc, #176] @ (802115c <udp_sendto_if_src+0x1cc>)
  81300. 80210ac: 4826 ldr r0, [pc, #152] @ (8021148 <udp_sendto_if_src+0x1b8>)
  81301. 80210ae: f008 fa2d bl 802950c <iprintf>
  81302. (q->len >= sizeof(struct udp_hdr)));
  81303. /* q now represents the packet to be sent */
  81304. udphdr = (struct udp_hdr *)q->payload;
  81305. 80210b2: 69fb ldr r3, [r7, #28]
  81306. 80210b4: 685b ldr r3, [r3, #4]
  81307. 80210b6: 617b str r3, [r7, #20]
  81308. udphdr->src = lwip_htons(pcb->local_port);
  81309. 80210b8: 68fb ldr r3, [r7, #12]
  81310. 80210ba: 8a5b ldrh r3, [r3, #18]
  81311. 80210bc: 4618 mov r0, r3
  81312. 80210be: f7f7 facb bl 8018658 <lwip_htons>
  81313. 80210c2: 4603 mov r3, r0
  81314. 80210c4: 461a mov r2, r3
  81315. 80210c6: 697b ldr r3, [r7, #20]
  81316. 80210c8: 801a strh r2, [r3, #0]
  81317. udphdr->dest = lwip_htons(dst_port);
  81318. 80210ca: 887b ldrh r3, [r7, #2]
  81319. 80210cc: 4618 mov r0, r3
  81320. 80210ce: f7f7 fac3 bl 8018658 <lwip_htons>
  81321. 80210d2: 4603 mov r3, r0
  81322. 80210d4: 461a mov r2, r3
  81323. 80210d6: 697b ldr r3, [r7, #20]
  81324. 80210d8: 805a strh r2, [r3, #2]
  81325. /* in UDP, 0 checksum means 'no checksum' */
  81326. udphdr->chksum = 0x0000;
  81327. 80210da: 697b ldr r3, [r7, #20]
  81328. 80210dc: 2200 movs r2, #0
  81329. 80210de: 719a strb r2, [r3, #6]
  81330. 80210e0: 2200 movs r2, #0
  81331. 80210e2: 71da strb r2, [r3, #7]
  81332. ip_proto = IP_PROTO_UDPLITE;
  81333. } else
  81334. #endif /* LWIP_UDPLITE */
  81335. { /* UDP */
  81336. LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP packet length %"U16_F"\n", q->tot_len));
  81337. udphdr->len = lwip_htons(q->tot_len);
  81338. 80210e4: 69fb ldr r3, [r7, #28]
  81339. 80210e6: 891b ldrh r3, [r3, #8]
  81340. 80210e8: 4618 mov r0, r3
  81341. 80210ea: f7f7 fab5 bl 8018658 <lwip_htons>
  81342. 80210ee: 4603 mov r3, r0
  81343. 80210f0: 461a mov r2, r3
  81344. 80210f2: 697b ldr r3, [r7, #20]
  81345. 80210f4: 809a strh r2, [r3, #4]
  81346. }
  81347. udphdr->chksum = udpchksum;
  81348. }
  81349. }
  81350. #endif /* CHECKSUM_GEN_UDP */
  81351. ip_proto = IP_PROTO_UDP;
  81352. 80210f6: 2311 movs r3, #17
  81353. 80210f8: 74fb strb r3, [r7, #19]
  81354. /* Determine TTL to use */
  81355. #if LWIP_MULTICAST_TX_OPTIONS
  81356. ttl = (ip_addr_ismulticast(dst_ip) ? udp_get_multicast_ttl(pcb) : pcb->ttl);
  81357. #else /* LWIP_MULTICAST_TX_OPTIONS */
  81358. ttl = pcb->ttl;
  81359. 80210fa: 68fb ldr r3, [r7, #12]
  81360. 80210fc: 7adb ldrb r3, [r3, #11]
  81361. 80210fe: 74bb strb r3, [r7, #18]
  81362. LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP checksum 0x%04"X16_F"\n", udphdr->chksum));
  81363. LWIP_DEBUGF(UDP_DEBUG, ("udp_send: ip_output_if (,,,,0x%02"X16_F",)\n", (u16_t)ip_proto));
  81364. /* output to IP */
  81365. NETIF_SET_HINTS(netif, &(pcb->netif_hints));
  81366. err = ip_output_if_src(q, src_ip, dst_ip, ttl, pcb->tos, ip_proto, netif);
  81367. 8021100: 68fb ldr r3, [r7, #12]
  81368. 8021102: 7a9b ldrb r3, [r3, #10]
  81369. 8021104: 7cb9 ldrb r1, [r7, #18]
  81370. 8021106: 6aba ldr r2, [r7, #40] @ 0x28
  81371. 8021108: 9202 str r2, [sp, #8]
  81372. 802110a: 7cfa ldrb r2, [r7, #19]
  81373. 802110c: 9201 str r2, [sp, #4]
  81374. 802110e: 9300 str r3, [sp, #0]
  81375. 8021110: 460b mov r3, r1
  81376. 8021112: 687a ldr r2, [r7, #4]
  81377. 8021114: 6af9 ldr r1, [r7, #44] @ 0x2c
  81378. 8021116: 69f8 ldr r0, [r7, #28]
  81379. 8021118: f003 fbf2 bl 8024900 <ip4_output_if_src>
  81380. 802111c: 4603 mov r3, r0
  81381. 802111e: 76fb strb r3, [r7, #27]
  81382. /* @todo: must this be increased even if error occurred? */
  81383. MIB2_STATS_INC(mib2.udpoutdatagrams);
  81384. /* did we chain a separate header pbuf earlier? */
  81385. if (q != p) {
  81386. 8021120: 69fa ldr r2, [r7, #28]
  81387. 8021122: 68bb ldr r3, [r7, #8]
  81388. 8021124: 429a cmp r2, r3
  81389. 8021126: d004 beq.n 8021132 <udp_sendto_if_src+0x1a2>
  81390. /* free the header pbuf */
  81391. pbuf_free(q);
  81392. 8021128: 69f8 ldr r0, [r7, #28]
  81393. 802112a: f7f8 ff77 bl 801a01c <pbuf_free>
  81394. q = NULL;
  81395. 802112e: 2300 movs r3, #0
  81396. 8021130: 61fb str r3, [r7, #28]
  81397. /* p is still referenced by the caller, and will live on */
  81398. }
  81399. UDP_STATS_INC(udp.xmit);
  81400. return err;
  81401. 8021132: f997 301b ldrsb.w r3, [r7, #27]
  81402. }
  81403. 8021136: 4618 mov r0, r3
  81404. 8021138: 3720 adds r7, #32
  81405. 802113a: 46bd mov sp, r7
  81406. 802113c: bd80 pop {r7, pc}
  81407. 802113e: bf00 nop
  81408. 8021140: 0802f684 .word 0x0802f684
  81409. 8021144: 0802f870 .word 0x0802f870
  81410. 8021148: 0802f6d8 .word 0x0802f6d8
  81411. 802114c: 0802f890 .word 0x0802f890
  81412. 8021150: 0802f8b0 .word 0x0802f8b0
  81413. 8021154: 0802f8d4 .word 0x0802f8d4
  81414. 8021158: 0802f8f8 .word 0x0802f8f8
  81415. 802115c: 0802f91c .word 0x0802f91c
  81416. 08021160 <udp_bind>:
  81417. *
  81418. * @see udp_disconnect()
  81419. */
  81420. err_t
  81421. udp_bind(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port)
  81422. {
  81423. 8021160: b580 push {r7, lr}
  81424. 8021162: b086 sub sp, #24
  81425. 8021164: af00 add r7, sp, #0
  81426. 8021166: 60f8 str r0, [r7, #12]
  81427. 8021168: 60b9 str r1, [r7, #8]
  81428. 802116a: 4613 mov r3, r2
  81429. 802116c: 80fb strh r3, [r7, #6]
  81430. u8_t rebind;
  81431. #if LWIP_IPV6 && LWIP_IPV6_SCOPES
  81432. ip_addr_t zoned_ipaddr;
  81433. #endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */
  81434. LWIP_ASSERT_CORE_LOCKED();
  81435. 802116e: f7ee ff7f bl 8010070 <sys_check_core_locking>
  81436. #if LWIP_IPV4
  81437. /* Don't propagate NULL pointer (IPv4 ANY) to subsequent functions */
  81438. if (ipaddr == NULL) {
  81439. 8021172: 68bb ldr r3, [r7, #8]
  81440. 8021174: 2b00 cmp r3, #0
  81441. 8021176: d101 bne.n 802117c <udp_bind+0x1c>
  81442. ipaddr = IP4_ADDR_ANY;
  81443. 8021178: 4b39 ldr r3, [pc, #228] @ (8021260 <udp_bind+0x100>)
  81444. 802117a: 60bb str r3, [r7, #8]
  81445. }
  81446. #else /* LWIP_IPV4 */
  81447. LWIP_ERROR("udp_bind: invalid ipaddr", ipaddr != NULL, return ERR_ARG);
  81448. #endif /* LWIP_IPV4 */
  81449. LWIP_ERROR("udp_bind: invalid pcb", pcb != NULL, return ERR_ARG);
  81450. 802117c: 68fb ldr r3, [r7, #12]
  81451. 802117e: 2b00 cmp r3, #0
  81452. 8021180: d109 bne.n 8021196 <udp_bind+0x36>
  81453. 8021182: 4b38 ldr r3, [pc, #224] @ (8021264 <udp_bind+0x104>)
  81454. 8021184: f240 32b7 movw r2, #951 @ 0x3b7
  81455. 8021188: 4937 ldr r1, [pc, #220] @ (8021268 <udp_bind+0x108>)
  81456. 802118a: 4838 ldr r0, [pc, #224] @ (802126c <udp_bind+0x10c>)
  81457. 802118c: f008 f9be bl 802950c <iprintf>
  81458. 8021190: f06f 030f mvn.w r3, #15
  81459. 8021194: e060 b.n 8021258 <udp_bind+0xf8>
  81460. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, ("udp_bind(ipaddr = "));
  81461. ip_addr_debug_print(UDP_DEBUG | LWIP_DBG_TRACE, ipaddr);
  81462. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, (", port = %"U16_F")\n", port));
  81463. rebind = 0;
  81464. 8021196: 2300 movs r3, #0
  81465. 8021198: 74fb strb r3, [r7, #19]
  81466. /* Check for double bind and rebind of the same pcb */
  81467. for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
  81468. 802119a: 4b35 ldr r3, [pc, #212] @ (8021270 <udp_bind+0x110>)
  81469. 802119c: 681b ldr r3, [r3, #0]
  81470. 802119e: 617b str r3, [r7, #20]
  81471. 80211a0: e009 b.n 80211b6 <udp_bind+0x56>
  81472. /* is this UDP PCB already on active list? */
  81473. if (pcb == ipcb) {
  81474. 80211a2: 68fa ldr r2, [r7, #12]
  81475. 80211a4: 697b ldr r3, [r7, #20]
  81476. 80211a6: 429a cmp r2, r3
  81477. 80211a8: d102 bne.n 80211b0 <udp_bind+0x50>
  81478. rebind = 1;
  81479. 80211aa: 2301 movs r3, #1
  81480. 80211ac: 74fb strb r3, [r7, #19]
  81481. break;
  81482. 80211ae: e005 b.n 80211bc <udp_bind+0x5c>
  81483. for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
  81484. 80211b0: 697b ldr r3, [r7, #20]
  81485. 80211b2: 68db ldr r3, [r3, #12]
  81486. 80211b4: 617b str r3, [r7, #20]
  81487. 80211b6: 697b ldr r3, [r7, #20]
  81488. 80211b8: 2b00 cmp r3, #0
  81489. 80211ba: d1f2 bne.n 80211a2 <udp_bind+0x42>
  81490. ipaddr = &zoned_ipaddr;
  81491. }
  81492. #endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */
  81493. /* no port specified? */
  81494. if (port == 0) {
  81495. 80211bc: 88fb ldrh r3, [r7, #6]
  81496. 80211be: 2b00 cmp r3, #0
  81497. 80211c0: d109 bne.n 80211d6 <udp_bind+0x76>
  81498. port = udp_new_port();
  81499. 80211c2: f7ff fc2f bl 8020a24 <udp_new_port>
  81500. 80211c6: 4603 mov r3, r0
  81501. 80211c8: 80fb strh r3, [r7, #6]
  81502. if (port == 0) {
  81503. 80211ca: 88fb ldrh r3, [r7, #6]
  81504. 80211cc: 2b00 cmp r3, #0
  81505. 80211ce: d12c bne.n 802122a <udp_bind+0xca>
  81506. /* no more ports available in local range */
  81507. LWIP_DEBUGF(UDP_DEBUG, ("udp_bind: out of free UDP ports\n"));
  81508. return ERR_USE;
  81509. 80211d0: f06f 0307 mvn.w r3, #7
  81510. 80211d4: e040 b.n 8021258 <udp_bind+0xf8>
  81511. }
  81512. } else {
  81513. for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
  81514. 80211d6: 4b26 ldr r3, [pc, #152] @ (8021270 <udp_bind+0x110>)
  81515. 80211d8: 681b ldr r3, [r3, #0]
  81516. 80211da: 617b str r3, [r7, #20]
  81517. 80211dc: e022 b.n 8021224 <udp_bind+0xc4>
  81518. if (pcb != ipcb) {
  81519. 80211de: 68fa ldr r2, [r7, #12]
  81520. 80211e0: 697b ldr r3, [r7, #20]
  81521. 80211e2: 429a cmp r2, r3
  81522. 80211e4: d01b beq.n 802121e <udp_bind+0xbe>
  81523. if (!ip_get_option(pcb, SOF_REUSEADDR) ||
  81524. !ip_get_option(ipcb, SOF_REUSEADDR))
  81525. #endif /* SO_REUSE */
  81526. {
  81527. /* port matches that of PCB in list and REUSEADDR not set -> reject */
  81528. if ((ipcb->local_port == port) &&
  81529. 80211e6: 697b ldr r3, [r7, #20]
  81530. 80211e8: 8a5b ldrh r3, [r3, #18]
  81531. 80211ea: 88fa ldrh r2, [r7, #6]
  81532. 80211ec: 429a cmp r2, r3
  81533. 80211ee: d116 bne.n 802121e <udp_bind+0xbe>
  81534. /* IP address matches or any IP used? */
  81535. (ip_addr_cmp(&ipcb->local_ip, ipaddr) || ip_addr_isany(ipaddr) ||
  81536. 80211f0: 697b ldr r3, [r7, #20]
  81537. 80211f2: 681a ldr r2, [r3, #0]
  81538. 80211f4: 68bb ldr r3, [r7, #8]
  81539. 80211f6: 681b ldr r3, [r3, #0]
  81540. if ((ipcb->local_port == port) &&
  81541. 80211f8: 429a cmp r2, r3
  81542. 80211fa: d00d beq.n 8021218 <udp_bind+0xb8>
  81543. (ip_addr_cmp(&ipcb->local_ip, ipaddr) || ip_addr_isany(ipaddr) ||
  81544. 80211fc: 68bb ldr r3, [r7, #8]
  81545. 80211fe: 2b00 cmp r3, #0
  81546. 8021200: d00a beq.n 8021218 <udp_bind+0xb8>
  81547. 8021202: 68bb ldr r3, [r7, #8]
  81548. 8021204: 681b ldr r3, [r3, #0]
  81549. 8021206: 2b00 cmp r3, #0
  81550. 8021208: d006 beq.n 8021218 <udp_bind+0xb8>
  81551. ip_addr_isany(&ipcb->local_ip))) {
  81552. 802120a: 697b ldr r3, [r7, #20]
  81553. (ip_addr_cmp(&ipcb->local_ip, ipaddr) || ip_addr_isany(ipaddr) ||
  81554. 802120c: 2b00 cmp r3, #0
  81555. 802120e: d003 beq.n 8021218 <udp_bind+0xb8>
  81556. ip_addr_isany(&ipcb->local_ip))) {
  81557. 8021210: 697b ldr r3, [r7, #20]
  81558. 8021212: 681b ldr r3, [r3, #0]
  81559. 8021214: 2b00 cmp r3, #0
  81560. 8021216: d102 bne.n 802121e <udp_bind+0xbe>
  81561. /* other PCB already binds to this local IP and port */
  81562. LWIP_DEBUGF(UDP_DEBUG,
  81563. ("udp_bind: local port %"U16_F" already bound by another pcb\n", port));
  81564. return ERR_USE;
  81565. 8021218: f06f 0307 mvn.w r3, #7
  81566. 802121c: e01c b.n 8021258 <udp_bind+0xf8>
  81567. for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
  81568. 802121e: 697b ldr r3, [r7, #20]
  81569. 8021220: 68db ldr r3, [r3, #12]
  81570. 8021222: 617b str r3, [r7, #20]
  81571. 8021224: 697b ldr r3, [r7, #20]
  81572. 8021226: 2b00 cmp r3, #0
  81573. 8021228: d1d9 bne.n 80211de <udp_bind+0x7e>
  81574. }
  81575. }
  81576. }
  81577. }
  81578. ip_addr_set_ipaddr(&pcb->local_ip, ipaddr);
  81579. 802122a: 68bb ldr r3, [r7, #8]
  81580. 802122c: 2b00 cmp r3, #0
  81581. 802122e: d002 beq.n 8021236 <udp_bind+0xd6>
  81582. 8021230: 68bb ldr r3, [r7, #8]
  81583. 8021232: 681b ldr r3, [r3, #0]
  81584. 8021234: e000 b.n 8021238 <udp_bind+0xd8>
  81585. 8021236: 2300 movs r3, #0
  81586. 8021238: 68fa ldr r2, [r7, #12]
  81587. 802123a: 6013 str r3, [r2, #0]
  81588. pcb->local_port = port;
  81589. 802123c: 68fb ldr r3, [r7, #12]
  81590. 802123e: 88fa ldrh r2, [r7, #6]
  81591. 8021240: 825a strh r2, [r3, #18]
  81592. mib2_udp_bind(pcb);
  81593. /* pcb not active yet? */
  81594. if (rebind == 0) {
  81595. 8021242: 7cfb ldrb r3, [r7, #19]
  81596. 8021244: 2b00 cmp r3, #0
  81597. 8021246: d106 bne.n 8021256 <udp_bind+0xf6>
  81598. /* place the PCB on the active list if not already there */
  81599. pcb->next = udp_pcbs;
  81600. 8021248: 4b09 ldr r3, [pc, #36] @ (8021270 <udp_bind+0x110>)
  81601. 802124a: 681a ldr r2, [r3, #0]
  81602. 802124c: 68fb ldr r3, [r7, #12]
  81603. 802124e: 60da str r2, [r3, #12]
  81604. udp_pcbs = pcb;
  81605. 8021250: 4a07 ldr r2, [pc, #28] @ (8021270 <udp_bind+0x110>)
  81606. 8021252: 68fb ldr r3, [r7, #12]
  81607. 8021254: 6013 str r3, [r2, #0]
  81608. }
  81609. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("udp_bind: bound to "));
  81610. ip_addr_debug_print_val(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, pcb->local_ip);
  81611. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, (", port %"U16_F")\n", pcb->local_port));
  81612. return ERR_OK;
  81613. 8021256: 2300 movs r3, #0
  81614. }
  81615. 8021258: 4618 mov r0, r3
  81616. 802125a: 3718 adds r7, #24
  81617. 802125c: 46bd mov sp, r7
  81618. 802125e: bd80 pop {r7, pc}
  81619. 8021260: 080307a4 .word 0x080307a4
  81620. 8021264: 0802f684 .word 0x0802f684
  81621. 8021268: 0802f94c .word 0x0802f94c
  81622. 802126c: 0802f6d8 .word 0x0802f6d8
  81623. 8021270: 2402a04c .word 0x2402a04c
  81624. 08021274 <udp_connect>:
  81625. *
  81626. * @see udp_disconnect()
  81627. */
  81628. err_t
  81629. udp_connect(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port)
  81630. {
  81631. 8021274: b580 push {r7, lr}
  81632. 8021276: b086 sub sp, #24
  81633. 8021278: af00 add r7, sp, #0
  81634. 802127a: 60f8 str r0, [r7, #12]
  81635. 802127c: 60b9 str r1, [r7, #8]
  81636. 802127e: 4613 mov r3, r2
  81637. 8021280: 80fb strh r3, [r7, #6]
  81638. struct udp_pcb *ipcb;
  81639. LWIP_ASSERT_CORE_LOCKED();
  81640. 8021282: f7ee fef5 bl 8010070 <sys_check_core_locking>
  81641. LWIP_ERROR("udp_connect: invalid pcb", pcb != NULL, return ERR_ARG);
  81642. 8021286: 68fb ldr r3, [r7, #12]
  81643. 8021288: 2b00 cmp r3, #0
  81644. 802128a: d109 bne.n 80212a0 <udp_connect+0x2c>
  81645. 802128c: 4b2c ldr r3, [pc, #176] @ (8021340 <udp_connect+0xcc>)
  81646. 802128e: f240 4235 movw r2, #1077 @ 0x435
  81647. 8021292: 492c ldr r1, [pc, #176] @ (8021344 <udp_connect+0xd0>)
  81648. 8021294: 482c ldr r0, [pc, #176] @ (8021348 <udp_connect+0xd4>)
  81649. 8021296: f008 f939 bl 802950c <iprintf>
  81650. 802129a: f06f 030f mvn.w r3, #15
  81651. 802129e: e04b b.n 8021338 <udp_connect+0xc4>
  81652. LWIP_ERROR("udp_connect: invalid ipaddr", ipaddr != NULL, return ERR_ARG);
  81653. 80212a0: 68bb ldr r3, [r7, #8]
  81654. 80212a2: 2b00 cmp r3, #0
  81655. 80212a4: d109 bne.n 80212ba <udp_connect+0x46>
  81656. 80212a6: 4b26 ldr r3, [pc, #152] @ (8021340 <udp_connect+0xcc>)
  81657. 80212a8: f240 4236 movw r2, #1078 @ 0x436
  81658. 80212ac: 4927 ldr r1, [pc, #156] @ (802134c <udp_connect+0xd8>)
  81659. 80212ae: 4826 ldr r0, [pc, #152] @ (8021348 <udp_connect+0xd4>)
  81660. 80212b0: f008 f92c bl 802950c <iprintf>
  81661. 80212b4: f06f 030f mvn.w r3, #15
  81662. 80212b8: e03e b.n 8021338 <udp_connect+0xc4>
  81663. if (pcb->local_port == 0) {
  81664. 80212ba: 68fb ldr r3, [r7, #12]
  81665. 80212bc: 8a5b ldrh r3, [r3, #18]
  81666. 80212be: 2b00 cmp r3, #0
  81667. 80212c0: d10f bne.n 80212e2 <udp_connect+0x6e>
  81668. err_t err = udp_bind(pcb, &pcb->local_ip, pcb->local_port);
  81669. 80212c2: 68f9 ldr r1, [r7, #12]
  81670. 80212c4: 68fb ldr r3, [r7, #12]
  81671. 80212c6: 8a5b ldrh r3, [r3, #18]
  81672. 80212c8: 461a mov r2, r3
  81673. 80212ca: 68f8 ldr r0, [r7, #12]
  81674. 80212cc: f7ff ff48 bl 8021160 <udp_bind>
  81675. 80212d0: 4603 mov r3, r0
  81676. 80212d2: 75fb strb r3, [r7, #23]
  81677. if (err != ERR_OK) {
  81678. 80212d4: f997 3017 ldrsb.w r3, [r7, #23]
  81679. 80212d8: 2b00 cmp r3, #0
  81680. 80212da: d002 beq.n 80212e2 <udp_connect+0x6e>
  81681. return err;
  81682. 80212dc: f997 3017 ldrsb.w r3, [r7, #23]
  81683. 80212e0: e02a b.n 8021338 <udp_connect+0xc4>
  81684. }
  81685. }
  81686. ip_addr_set_ipaddr(&pcb->remote_ip, ipaddr);
  81687. 80212e2: 68bb ldr r3, [r7, #8]
  81688. 80212e4: 2b00 cmp r3, #0
  81689. 80212e6: d002 beq.n 80212ee <udp_connect+0x7a>
  81690. 80212e8: 68bb ldr r3, [r7, #8]
  81691. 80212ea: 681b ldr r3, [r3, #0]
  81692. 80212ec: e000 b.n 80212f0 <udp_connect+0x7c>
  81693. 80212ee: 2300 movs r3, #0
  81694. 80212f0: 68fa ldr r2, [r7, #12]
  81695. 80212f2: 6053 str r3, [r2, #4]
  81696. ip6_addr_lacks_zone(ip_2_ip6(&pcb->remote_ip), IP6_UNKNOWN)) {
  81697. ip6_addr_select_zone(ip_2_ip6(&pcb->remote_ip), ip_2_ip6(&pcb->local_ip));
  81698. }
  81699. #endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */
  81700. pcb->remote_port = port;
  81701. 80212f4: 68fb ldr r3, [r7, #12]
  81702. 80212f6: 88fa ldrh r2, [r7, #6]
  81703. 80212f8: 829a strh r2, [r3, #20]
  81704. pcb->flags |= UDP_FLAGS_CONNECTED;
  81705. 80212fa: 68fb ldr r3, [r7, #12]
  81706. 80212fc: 7c1b ldrb r3, [r3, #16]
  81707. 80212fe: f043 0304 orr.w r3, r3, #4
  81708. 8021302: b2da uxtb r2, r3
  81709. 8021304: 68fb ldr r3, [r7, #12]
  81710. 8021306: 741a strb r2, [r3, #16]
  81711. ip_addr_debug_print_val(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE,
  81712. pcb->remote_ip);
  81713. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, (", port %"U16_F")\n", pcb->remote_port));
  81714. /* Insert UDP PCB into the list of active UDP PCBs. */
  81715. for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
  81716. 8021308: 4b11 ldr r3, [pc, #68] @ (8021350 <udp_connect+0xdc>)
  81717. 802130a: 681b ldr r3, [r3, #0]
  81718. 802130c: 613b str r3, [r7, #16]
  81719. 802130e: e008 b.n 8021322 <udp_connect+0xae>
  81720. if (pcb == ipcb) {
  81721. 8021310: 68fa ldr r2, [r7, #12]
  81722. 8021312: 693b ldr r3, [r7, #16]
  81723. 8021314: 429a cmp r2, r3
  81724. 8021316: d101 bne.n 802131c <udp_connect+0xa8>
  81725. /* already on the list, just return */
  81726. return ERR_OK;
  81727. 8021318: 2300 movs r3, #0
  81728. 802131a: e00d b.n 8021338 <udp_connect+0xc4>
  81729. for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
  81730. 802131c: 693b ldr r3, [r7, #16]
  81731. 802131e: 68db ldr r3, [r3, #12]
  81732. 8021320: 613b str r3, [r7, #16]
  81733. 8021322: 693b ldr r3, [r7, #16]
  81734. 8021324: 2b00 cmp r3, #0
  81735. 8021326: d1f3 bne.n 8021310 <udp_connect+0x9c>
  81736. }
  81737. }
  81738. /* PCB not yet on the list, add PCB now */
  81739. pcb->next = udp_pcbs;
  81740. 8021328: 4b09 ldr r3, [pc, #36] @ (8021350 <udp_connect+0xdc>)
  81741. 802132a: 681a ldr r2, [r3, #0]
  81742. 802132c: 68fb ldr r3, [r7, #12]
  81743. 802132e: 60da str r2, [r3, #12]
  81744. udp_pcbs = pcb;
  81745. 8021330: 4a07 ldr r2, [pc, #28] @ (8021350 <udp_connect+0xdc>)
  81746. 8021332: 68fb ldr r3, [r7, #12]
  81747. 8021334: 6013 str r3, [r2, #0]
  81748. return ERR_OK;
  81749. 8021336: 2300 movs r3, #0
  81750. }
  81751. 8021338: 4618 mov r0, r3
  81752. 802133a: 3718 adds r7, #24
  81753. 802133c: 46bd mov sp, r7
  81754. 802133e: bd80 pop {r7, pc}
  81755. 8021340: 0802f684 .word 0x0802f684
  81756. 8021344: 0802f964 .word 0x0802f964
  81757. 8021348: 0802f6d8 .word 0x0802f6d8
  81758. 802134c: 0802f980 .word 0x0802f980
  81759. 8021350: 2402a04c .word 0x2402a04c
  81760. 08021354 <udp_disconnect>:
  81761. *
  81762. * @param pcb the udp pcb to disconnect.
  81763. */
  81764. void
  81765. udp_disconnect(struct udp_pcb *pcb)
  81766. {
  81767. 8021354: b580 push {r7, lr}
  81768. 8021356: b082 sub sp, #8
  81769. 8021358: af00 add r7, sp, #0
  81770. 802135a: 6078 str r0, [r7, #4]
  81771. LWIP_ASSERT_CORE_LOCKED();
  81772. 802135c: f7ee fe88 bl 8010070 <sys_check_core_locking>
  81773. LWIP_ERROR("udp_disconnect: invalid pcb", pcb != NULL, return);
  81774. 8021360: 687b ldr r3, [r7, #4]
  81775. 8021362: 2b00 cmp r3, #0
  81776. 8021364: d107 bne.n 8021376 <udp_disconnect+0x22>
  81777. 8021366: 4b0d ldr r3, [pc, #52] @ (802139c <udp_disconnect+0x48>)
  81778. 8021368: f240 426a movw r2, #1130 @ 0x46a
  81779. 802136c: 490c ldr r1, [pc, #48] @ (80213a0 <udp_disconnect+0x4c>)
  81780. 802136e: 480d ldr r0, [pc, #52] @ (80213a4 <udp_disconnect+0x50>)
  81781. 8021370: f008 f8cc bl 802950c <iprintf>
  81782. 8021374: e00f b.n 8021396 <udp_disconnect+0x42>
  81783. #if LWIP_IPV4 && LWIP_IPV6
  81784. if (IP_IS_ANY_TYPE_VAL(pcb->local_ip)) {
  81785. ip_addr_copy(pcb->remote_ip, *IP_ANY_TYPE);
  81786. } else {
  81787. #endif
  81788. ip_addr_set_any(IP_IS_V6_VAL(pcb->remote_ip), &pcb->remote_ip);
  81789. 8021376: 687b ldr r3, [r7, #4]
  81790. 8021378: 2200 movs r2, #0
  81791. 802137a: 605a str r2, [r3, #4]
  81792. #if LWIP_IPV4 && LWIP_IPV6
  81793. }
  81794. #endif
  81795. pcb->remote_port = 0;
  81796. 802137c: 687b ldr r3, [r7, #4]
  81797. 802137e: 2200 movs r2, #0
  81798. 8021380: 829a strh r2, [r3, #20]
  81799. pcb->netif_idx = NETIF_NO_INDEX;
  81800. 8021382: 687b ldr r3, [r7, #4]
  81801. 8021384: 2200 movs r2, #0
  81802. 8021386: 721a strb r2, [r3, #8]
  81803. /* mark PCB as unconnected */
  81804. udp_clear_flags(pcb, UDP_FLAGS_CONNECTED);
  81805. 8021388: 687b ldr r3, [r7, #4]
  81806. 802138a: 7c1b ldrb r3, [r3, #16]
  81807. 802138c: f023 0304 bic.w r3, r3, #4
  81808. 8021390: b2da uxtb r2, r3
  81809. 8021392: 687b ldr r3, [r7, #4]
  81810. 8021394: 741a strb r2, [r3, #16]
  81811. }
  81812. 8021396: 3708 adds r7, #8
  81813. 8021398: 46bd mov sp, r7
  81814. 802139a: bd80 pop {r7, pc}
  81815. 802139c: 0802f684 .word 0x0802f684
  81816. 80213a0: 0802f99c .word 0x0802f99c
  81817. 80213a4: 0802f6d8 .word 0x0802f6d8
  81818. 080213a8 <udp_recv>:
  81819. * @param recv function pointer of the callback function
  81820. * @param recv_arg additional argument to pass to the callback function
  81821. */
  81822. void
  81823. udp_recv(struct udp_pcb *pcb, udp_recv_fn recv, void *recv_arg)
  81824. {
  81825. 80213a8: b580 push {r7, lr}
  81826. 80213aa: b084 sub sp, #16
  81827. 80213ac: af00 add r7, sp, #0
  81828. 80213ae: 60f8 str r0, [r7, #12]
  81829. 80213b0: 60b9 str r1, [r7, #8]
  81830. 80213b2: 607a str r2, [r7, #4]
  81831. LWIP_ASSERT_CORE_LOCKED();
  81832. 80213b4: f7ee fe5c bl 8010070 <sys_check_core_locking>
  81833. LWIP_ERROR("udp_recv: invalid pcb", pcb != NULL, return);
  81834. 80213b8: 68fb ldr r3, [r7, #12]
  81835. 80213ba: 2b00 cmp r3, #0
  81836. 80213bc: d107 bne.n 80213ce <udp_recv+0x26>
  81837. 80213be: 4b08 ldr r3, [pc, #32] @ (80213e0 <udp_recv+0x38>)
  81838. 80213c0: f240 428a movw r2, #1162 @ 0x48a
  81839. 80213c4: 4907 ldr r1, [pc, #28] @ (80213e4 <udp_recv+0x3c>)
  81840. 80213c6: 4808 ldr r0, [pc, #32] @ (80213e8 <udp_recv+0x40>)
  81841. 80213c8: f008 f8a0 bl 802950c <iprintf>
  81842. 80213cc: e005 b.n 80213da <udp_recv+0x32>
  81843. /* remember recv() callback and user data */
  81844. pcb->recv = recv;
  81845. 80213ce: 68fb ldr r3, [r7, #12]
  81846. 80213d0: 68ba ldr r2, [r7, #8]
  81847. 80213d2: 619a str r2, [r3, #24]
  81848. pcb->recv_arg = recv_arg;
  81849. 80213d4: 68fb ldr r3, [r7, #12]
  81850. 80213d6: 687a ldr r2, [r7, #4]
  81851. 80213d8: 61da str r2, [r3, #28]
  81852. }
  81853. 80213da: 3710 adds r7, #16
  81854. 80213dc: 46bd mov sp, r7
  81855. 80213de: bd80 pop {r7, pc}
  81856. 80213e0: 0802f684 .word 0x0802f684
  81857. 80213e4: 0802f9b8 .word 0x0802f9b8
  81858. 80213e8: 0802f6d8 .word 0x0802f6d8
  81859. 080213ec <udp_remove>:
  81860. *
  81861. * @see udp_new()
  81862. */
  81863. void
  81864. udp_remove(struct udp_pcb *pcb)
  81865. {
  81866. 80213ec: b580 push {r7, lr}
  81867. 80213ee: b084 sub sp, #16
  81868. 80213f0: af00 add r7, sp, #0
  81869. 80213f2: 6078 str r0, [r7, #4]
  81870. struct udp_pcb *pcb2;
  81871. LWIP_ASSERT_CORE_LOCKED();
  81872. 80213f4: f7ee fe3c bl 8010070 <sys_check_core_locking>
  81873. LWIP_ERROR("udp_remove: invalid pcb", pcb != NULL, return);
  81874. 80213f8: 687b ldr r3, [r7, #4]
  81875. 80213fa: 2b00 cmp r3, #0
  81876. 80213fc: d107 bne.n 802140e <udp_remove+0x22>
  81877. 80213fe: 4b19 ldr r3, [pc, #100] @ (8021464 <udp_remove+0x78>)
  81878. 8021400: f240 42a1 movw r2, #1185 @ 0x4a1
  81879. 8021404: 4918 ldr r1, [pc, #96] @ (8021468 <udp_remove+0x7c>)
  81880. 8021406: 4819 ldr r0, [pc, #100] @ (802146c <udp_remove+0x80>)
  81881. 8021408: f008 f880 bl 802950c <iprintf>
  81882. 802140c: e026 b.n 802145c <udp_remove+0x70>
  81883. mib2_udp_unbind(pcb);
  81884. /* pcb to be removed is first in list? */
  81885. if (udp_pcbs == pcb) {
  81886. 802140e: 4b18 ldr r3, [pc, #96] @ (8021470 <udp_remove+0x84>)
  81887. 8021410: 681b ldr r3, [r3, #0]
  81888. 8021412: 687a ldr r2, [r7, #4]
  81889. 8021414: 429a cmp r2, r3
  81890. 8021416: d105 bne.n 8021424 <udp_remove+0x38>
  81891. /* make list start at 2nd pcb */
  81892. udp_pcbs = udp_pcbs->next;
  81893. 8021418: 4b15 ldr r3, [pc, #84] @ (8021470 <udp_remove+0x84>)
  81894. 802141a: 681b ldr r3, [r3, #0]
  81895. 802141c: 68db ldr r3, [r3, #12]
  81896. 802141e: 4a14 ldr r2, [pc, #80] @ (8021470 <udp_remove+0x84>)
  81897. 8021420: 6013 str r3, [r2, #0]
  81898. 8021422: e017 b.n 8021454 <udp_remove+0x68>
  81899. /* pcb not 1st in list */
  81900. } else {
  81901. for (pcb2 = udp_pcbs; pcb2 != NULL; pcb2 = pcb2->next) {
  81902. 8021424: 4b12 ldr r3, [pc, #72] @ (8021470 <udp_remove+0x84>)
  81903. 8021426: 681b ldr r3, [r3, #0]
  81904. 8021428: 60fb str r3, [r7, #12]
  81905. 802142a: e010 b.n 802144e <udp_remove+0x62>
  81906. /* find pcb in udp_pcbs list */
  81907. if (pcb2->next != NULL && pcb2->next == pcb) {
  81908. 802142c: 68fb ldr r3, [r7, #12]
  81909. 802142e: 68db ldr r3, [r3, #12]
  81910. 8021430: 2b00 cmp r3, #0
  81911. 8021432: d009 beq.n 8021448 <udp_remove+0x5c>
  81912. 8021434: 68fb ldr r3, [r7, #12]
  81913. 8021436: 68db ldr r3, [r3, #12]
  81914. 8021438: 687a ldr r2, [r7, #4]
  81915. 802143a: 429a cmp r2, r3
  81916. 802143c: d104 bne.n 8021448 <udp_remove+0x5c>
  81917. /* remove pcb from list */
  81918. pcb2->next = pcb->next;
  81919. 802143e: 687b ldr r3, [r7, #4]
  81920. 8021440: 68da ldr r2, [r3, #12]
  81921. 8021442: 68fb ldr r3, [r7, #12]
  81922. 8021444: 60da str r2, [r3, #12]
  81923. break;
  81924. 8021446: e005 b.n 8021454 <udp_remove+0x68>
  81925. for (pcb2 = udp_pcbs; pcb2 != NULL; pcb2 = pcb2->next) {
  81926. 8021448: 68fb ldr r3, [r7, #12]
  81927. 802144a: 68db ldr r3, [r3, #12]
  81928. 802144c: 60fb str r3, [r7, #12]
  81929. 802144e: 68fb ldr r3, [r7, #12]
  81930. 8021450: 2b00 cmp r3, #0
  81931. 8021452: d1eb bne.n 802142c <udp_remove+0x40>
  81932. }
  81933. }
  81934. }
  81935. memp_free(MEMP_UDP_PCB, pcb);
  81936. 8021454: 6879 ldr r1, [r7, #4]
  81937. 8021456: 2000 movs r0, #0
  81938. 8021458: f7f7 fef2 bl 8019240 <memp_free>
  81939. }
  81940. 802145c: 3710 adds r7, #16
  81941. 802145e: 46bd mov sp, r7
  81942. 8021460: bd80 pop {r7, pc}
  81943. 8021462: bf00 nop
  81944. 8021464: 0802f684 .word 0x0802f684
  81945. 8021468: 0802f9d0 .word 0x0802f9d0
  81946. 802146c: 0802f6d8 .word 0x0802f6d8
  81947. 8021470: 2402a04c .word 0x2402a04c
  81948. 08021474 <udp_new>:
  81949. *
  81950. * @see udp_remove()
  81951. */
  81952. struct udp_pcb *
  81953. udp_new(void)
  81954. {
  81955. 8021474: b580 push {r7, lr}
  81956. 8021476: b082 sub sp, #8
  81957. 8021478: af00 add r7, sp, #0
  81958. struct udp_pcb *pcb;
  81959. LWIP_ASSERT_CORE_LOCKED();
  81960. 802147a: f7ee fdf9 bl 8010070 <sys_check_core_locking>
  81961. pcb = (struct udp_pcb *)memp_malloc(MEMP_UDP_PCB);
  81962. 802147e: 2000 movs r0, #0
  81963. 8021480: f7f7 fe68 bl 8019154 <memp_malloc>
  81964. 8021484: 6078 str r0, [r7, #4]
  81965. /* could allocate UDP PCB? */
  81966. if (pcb != NULL) {
  81967. 8021486: 687b ldr r3, [r7, #4]
  81968. 8021488: 2b00 cmp r3, #0
  81969. 802148a: d007 beq.n 802149c <udp_new+0x28>
  81970. /* UDP Lite: by initializing to all zeroes, chksum_len is set to 0
  81971. * which means checksum is generated over the whole datagram per default
  81972. * (recommended as default by RFC 3828). */
  81973. /* initialize PCB to all zeroes */
  81974. memset(pcb, 0, sizeof(struct udp_pcb));
  81975. 802148c: 2220 movs r2, #32
  81976. 802148e: 2100 movs r1, #0
  81977. 8021490: 6878 ldr r0, [r7, #4]
  81978. 8021492: f008 f9cd bl 8029830 <memset>
  81979. pcb->ttl = UDP_TTL;
  81980. 8021496: 687b ldr r3, [r7, #4]
  81981. 8021498: 22ff movs r2, #255 @ 0xff
  81982. 802149a: 72da strb r2, [r3, #11]
  81983. #if LWIP_MULTICAST_TX_OPTIONS
  81984. udp_set_multicast_ttl(pcb, UDP_TTL);
  81985. #endif /* LWIP_MULTICAST_TX_OPTIONS */
  81986. }
  81987. return pcb;
  81988. 802149c: 687b ldr r3, [r7, #4]
  81989. }
  81990. 802149e: 4618 mov r0, r3
  81991. 80214a0: 3708 adds r7, #8
  81992. 80214a2: 46bd mov sp, r7
  81993. 80214a4: bd80 pop {r7, pc}
  81994. 080214a6 <udp_new_ip_type>:
  81995. *
  81996. * @see udp_remove()
  81997. */
  81998. struct udp_pcb *
  81999. udp_new_ip_type(u8_t type)
  82000. {
  82001. 80214a6: b580 push {r7, lr}
  82002. 80214a8: b084 sub sp, #16
  82003. 80214aa: af00 add r7, sp, #0
  82004. 80214ac: 4603 mov r3, r0
  82005. 80214ae: 71fb strb r3, [r7, #7]
  82006. struct udp_pcb *pcb;
  82007. LWIP_ASSERT_CORE_LOCKED();
  82008. 80214b0: f7ee fdde bl 8010070 <sys_check_core_locking>
  82009. pcb = udp_new();
  82010. 80214b4: f7ff ffde bl 8021474 <udp_new>
  82011. 80214b8: 60f8 str r0, [r7, #12]
  82012. IP_SET_TYPE_VAL(pcb->remote_ip, type);
  82013. }
  82014. #else
  82015. LWIP_UNUSED_ARG(type);
  82016. #endif /* LWIP_IPV4 && LWIP_IPV6 */
  82017. return pcb;
  82018. 80214ba: 68fb ldr r3, [r7, #12]
  82019. }
  82020. 80214bc: 4618 mov r0, r3
  82021. 80214be: 3710 adds r7, #16
  82022. 80214c0: 46bd mov sp, r7
  82023. 80214c2: bd80 pop {r7, pc}
  82024. 080214c4 <udp_netif_ip_addr_changed>:
  82025. *
  82026. * @param old_addr IP address of the netif before change
  82027. * @param new_addr IP address of the netif after change
  82028. */
  82029. void udp_netif_ip_addr_changed(const ip_addr_t *old_addr, const ip_addr_t *new_addr)
  82030. {
  82031. 80214c4: b480 push {r7}
  82032. 80214c6: b085 sub sp, #20
  82033. 80214c8: af00 add r7, sp, #0
  82034. 80214ca: 6078 str r0, [r7, #4]
  82035. 80214cc: 6039 str r1, [r7, #0]
  82036. struct udp_pcb *upcb;
  82037. if (!ip_addr_isany(old_addr) && !ip_addr_isany(new_addr)) {
  82038. 80214ce: 687b ldr r3, [r7, #4]
  82039. 80214d0: 2b00 cmp r3, #0
  82040. 80214d2: d01e beq.n 8021512 <udp_netif_ip_addr_changed+0x4e>
  82041. 80214d4: 687b ldr r3, [r7, #4]
  82042. 80214d6: 681b ldr r3, [r3, #0]
  82043. 80214d8: 2b00 cmp r3, #0
  82044. 80214da: d01a beq.n 8021512 <udp_netif_ip_addr_changed+0x4e>
  82045. 80214dc: 683b ldr r3, [r7, #0]
  82046. 80214de: 2b00 cmp r3, #0
  82047. 80214e0: d017 beq.n 8021512 <udp_netif_ip_addr_changed+0x4e>
  82048. 80214e2: 683b ldr r3, [r7, #0]
  82049. 80214e4: 681b ldr r3, [r3, #0]
  82050. 80214e6: 2b00 cmp r3, #0
  82051. 80214e8: d013 beq.n 8021512 <udp_netif_ip_addr_changed+0x4e>
  82052. for (upcb = udp_pcbs; upcb != NULL; upcb = upcb->next) {
  82053. 80214ea: 4b0d ldr r3, [pc, #52] @ (8021520 <udp_netif_ip_addr_changed+0x5c>)
  82054. 80214ec: 681b ldr r3, [r3, #0]
  82055. 80214ee: 60fb str r3, [r7, #12]
  82056. 80214f0: e00c b.n 802150c <udp_netif_ip_addr_changed+0x48>
  82057. /* PCB bound to current local interface address? */
  82058. if (ip_addr_cmp(&upcb->local_ip, old_addr)) {
  82059. 80214f2: 68fb ldr r3, [r7, #12]
  82060. 80214f4: 681a ldr r2, [r3, #0]
  82061. 80214f6: 687b ldr r3, [r7, #4]
  82062. 80214f8: 681b ldr r3, [r3, #0]
  82063. 80214fa: 429a cmp r2, r3
  82064. 80214fc: d103 bne.n 8021506 <udp_netif_ip_addr_changed+0x42>
  82065. /* The PCB is bound to the old ipaddr and
  82066. * is set to bound to the new one instead */
  82067. ip_addr_copy(upcb->local_ip, *new_addr);
  82068. 80214fe: 683b ldr r3, [r7, #0]
  82069. 8021500: 681a ldr r2, [r3, #0]
  82070. 8021502: 68fb ldr r3, [r7, #12]
  82071. 8021504: 601a str r2, [r3, #0]
  82072. for (upcb = udp_pcbs; upcb != NULL; upcb = upcb->next) {
  82073. 8021506: 68fb ldr r3, [r7, #12]
  82074. 8021508: 68db ldr r3, [r3, #12]
  82075. 802150a: 60fb str r3, [r7, #12]
  82076. 802150c: 68fb ldr r3, [r7, #12]
  82077. 802150e: 2b00 cmp r3, #0
  82078. 8021510: d1ef bne.n 80214f2 <udp_netif_ip_addr_changed+0x2e>
  82079. }
  82080. }
  82081. }
  82082. }
  82083. 8021512: bf00 nop
  82084. 8021514: 3714 adds r7, #20
  82085. 8021516: 46bd mov sp, r7
  82086. 8021518: f85d 7b04 ldr.w r7, [sp], #4
  82087. 802151c: 4770 bx lr
  82088. 802151e: bf00 nop
  82089. 8021520: 2402a04c .word 0x2402a04c
  82090. 08021524 <dhcp_inc_pcb_refcount>:
  82091. static void dhcp_option_trailer(u16_t options_out_len, u8_t *options, struct pbuf *p_out);
  82092. /** Ensure DHCP PCB is allocated and bound */
  82093. static err_t
  82094. dhcp_inc_pcb_refcount(void)
  82095. {
  82096. 8021524: b580 push {r7, lr}
  82097. 8021526: af00 add r7, sp, #0
  82098. if (dhcp_pcb_refcount == 0) {
  82099. 8021528: 4b20 ldr r3, [pc, #128] @ (80215ac <dhcp_inc_pcb_refcount+0x88>)
  82100. 802152a: 781b ldrb r3, [r3, #0]
  82101. 802152c: 2b00 cmp r3, #0
  82102. 802152e: d133 bne.n 8021598 <dhcp_inc_pcb_refcount+0x74>
  82103. LWIP_ASSERT("dhcp_inc_pcb_refcount(): memory leak", dhcp_pcb == NULL);
  82104. 8021530: 4b1f ldr r3, [pc, #124] @ (80215b0 <dhcp_inc_pcb_refcount+0x8c>)
  82105. 8021532: 681b ldr r3, [r3, #0]
  82106. 8021534: 2b00 cmp r3, #0
  82107. 8021536: d005 beq.n 8021544 <dhcp_inc_pcb_refcount+0x20>
  82108. 8021538: 4b1e ldr r3, [pc, #120] @ (80215b4 <dhcp_inc_pcb_refcount+0x90>)
  82109. 802153a: 22e5 movs r2, #229 @ 0xe5
  82110. 802153c: 491e ldr r1, [pc, #120] @ (80215b8 <dhcp_inc_pcb_refcount+0x94>)
  82111. 802153e: 481f ldr r0, [pc, #124] @ (80215bc <dhcp_inc_pcb_refcount+0x98>)
  82112. 8021540: f007 ffe4 bl 802950c <iprintf>
  82113. /* allocate UDP PCB */
  82114. dhcp_pcb = udp_new();
  82115. 8021544: f7ff ff96 bl 8021474 <udp_new>
  82116. 8021548: 4603 mov r3, r0
  82117. 802154a: 4a19 ldr r2, [pc, #100] @ (80215b0 <dhcp_inc_pcb_refcount+0x8c>)
  82118. 802154c: 6013 str r3, [r2, #0]
  82119. if (dhcp_pcb == NULL) {
  82120. 802154e: 4b18 ldr r3, [pc, #96] @ (80215b0 <dhcp_inc_pcb_refcount+0x8c>)
  82121. 8021550: 681b ldr r3, [r3, #0]
  82122. 8021552: 2b00 cmp r3, #0
  82123. 8021554: d102 bne.n 802155c <dhcp_inc_pcb_refcount+0x38>
  82124. return ERR_MEM;
  82125. 8021556: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  82126. 802155a: e024 b.n 80215a6 <dhcp_inc_pcb_refcount+0x82>
  82127. }
  82128. ip_set_option(dhcp_pcb, SOF_BROADCAST);
  82129. 802155c: 4b14 ldr r3, [pc, #80] @ (80215b0 <dhcp_inc_pcb_refcount+0x8c>)
  82130. 802155e: 681b ldr r3, [r3, #0]
  82131. 8021560: 7a5a ldrb r2, [r3, #9]
  82132. 8021562: 4b13 ldr r3, [pc, #76] @ (80215b0 <dhcp_inc_pcb_refcount+0x8c>)
  82133. 8021564: 681b ldr r3, [r3, #0]
  82134. 8021566: f042 0220 orr.w r2, r2, #32
  82135. 802156a: b2d2 uxtb r2, r2
  82136. 802156c: 725a strb r2, [r3, #9]
  82137. /* set up local and remote port for the pcb -> listen on all interfaces on all src/dest IPs */
  82138. udp_bind(dhcp_pcb, IP4_ADDR_ANY, LWIP_IANA_PORT_DHCP_CLIENT);
  82139. 802156e: 4b10 ldr r3, [pc, #64] @ (80215b0 <dhcp_inc_pcb_refcount+0x8c>)
  82140. 8021570: 681b ldr r3, [r3, #0]
  82141. 8021572: 2244 movs r2, #68 @ 0x44
  82142. 8021574: 4912 ldr r1, [pc, #72] @ (80215c0 <dhcp_inc_pcb_refcount+0x9c>)
  82143. 8021576: 4618 mov r0, r3
  82144. 8021578: f7ff fdf2 bl 8021160 <udp_bind>
  82145. udp_connect(dhcp_pcb, IP4_ADDR_ANY, LWIP_IANA_PORT_DHCP_SERVER);
  82146. 802157c: 4b0c ldr r3, [pc, #48] @ (80215b0 <dhcp_inc_pcb_refcount+0x8c>)
  82147. 802157e: 681b ldr r3, [r3, #0]
  82148. 8021580: 2243 movs r2, #67 @ 0x43
  82149. 8021582: 490f ldr r1, [pc, #60] @ (80215c0 <dhcp_inc_pcb_refcount+0x9c>)
  82150. 8021584: 4618 mov r0, r3
  82151. 8021586: f7ff fe75 bl 8021274 <udp_connect>
  82152. udp_recv(dhcp_pcb, dhcp_recv, NULL);
  82153. 802158a: 4b09 ldr r3, [pc, #36] @ (80215b0 <dhcp_inc_pcb_refcount+0x8c>)
  82154. 802158c: 681b ldr r3, [r3, #0]
  82155. 802158e: 2200 movs r2, #0
  82156. 8021590: 490c ldr r1, [pc, #48] @ (80215c4 <dhcp_inc_pcb_refcount+0xa0>)
  82157. 8021592: 4618 mov r0, r3
  82158. 8021594: f7ff ff08 bl 80213a8 <udp_recv>
  82159. }
  82160. dhcp_pcb_refcount++;
  82161. 8021598: 4b04 ldr r3, [pc, #16] @ (80215ac <dhcp_inc_pcb_refcount+0x88>)
  82162. 802159a: 781b ldrb r3, [r3, #0]
  82163. 802159c: 3301 adds r3, #1
  82164. 802159e: b2da uxtb r2, r3
  82165. 80215a0: 4b02 ldr r3, [pc, #8] @ (80215ac <dhcp_inc_pcb_refcount+0x88>)
  82166. 80215a2: 701a strb r2, [r3, #0]
  82167. return ERR_OK;
  82168. 80215a4: 2300 movs r3, #0
  82169. }
  82170. 80215a6: 4618 mov r0, r3
  82171. 80215a8: bd80 pop {r7, pc}
  82172. 80215aa: bf00 nop
  82173. 80215ac: 2402a07c .word 0x2402a07c
  82174. 80215b0: 2402a078 .word 0x2402a078
  82175. 80215b4: 0802f9e8 .word 0x0802f9e8
  82176. 80215b8: 0802fa20 .word 0x0802fa20
  82177. 80215bc: 0802fa48 .word 0x0802fa48
  82178. 80215c0: 080307a4 .word 0x080307a4
  82179. 80215c4: 08022e95 .word 0x08022e95
  82180. 080215c8 <dhcp_dec_pcb_refcount>:
  82181. /** Free DHCP PCB if the last netif stops using it */
  82182. static void
  82183. dhcp_dec_pcb_refcount(void)
  82184. {
  82185. 80215c8: b580 push {r7, lr}
  82186. 80215ca: af00 add r7, sp, #0
  82187. LWIP_ASSERT("dhcp_pcb_refcount(): refcount error", (dhcp_pcb_refcount > 0));
  82188. 80215cc: 4b0e ldr r3, [pc, #56] @ (8021608 <dhcp_dec_pcb_refcount+0x40>)
  82189. 80215ce: 781b ldrb r3, [r3, #0]
  82190. 80215d0: 2b00 cmp r3, #0
  82191. 80215d2: d105 bne.n 80215e0 <dhcp_dec_pcb_refcount+0x18>
  82192. 80215d4: 4b0d ldr r3, [pc, #52] @ (802160c <dhcp_dec_pcb_refcount+0x44>)
  82193. 80215d6: 22ff movs r2, #255 @ 0xff
  82194. 80215d8: 490d ldr r1, [pc, #52] @ (8021610 <dhcp_dec_pcb_refcount+0x48>)
  82195. 80215da: 480e ldr r0, [pc, #56] @ (8021614 <dhcp_dec_pcb_refcount+0x4c>)
  82196. 80215dc: f007 ff96 bl 802950c <iprintf>
  82197. dhcp_pcb_refcount--;
  82198. 80215e0: 4b09 ldr r3, [pc, #36] @ (8021608 <dhcp_dec_pcb_refcount+0x40>)
  82199. 80215e2: 781b ldrb r3, [r3, #0]
  82200. 80215e4: 3b01 subs r3, #1
  82201. 80215e6: b2da uxtb r2, r3
  82202. 80215e8: 4b07 ldr r3, [pc, #28] @ (8021608 <dhcp_dec_pcb_refcount+0x40>)
  82203. 80215ea: 701a strb r2, [r3, #0]
  82204. if (dhcp_pcb_refcount == 0) {
  82205. 80215ec: 4b06 ldr r3, [pc, #24] @ (8021608 <dhcp_dec_pcb_refcount+0x40>)
  82206. 80215ee: 781b ldrb r3, [r3, #0]
  82207. 80215f0: 2b00 cmp r3, #0
  82208. 80215f2: d107 bne.n 8021604 <dhcp_dec_pcb_refcount+0x3c>
  82209. udp_remove(dhcp_pcb);
  82210. 80215f4: 4b08 ldr r3, [pc, #32] @ (8021618 <dhcp_dec_pcb_refcount+0x50>)
  82211. 80215f6: 681b ldr r3, [r3, #0]
  82212. 80215f8: 4618 mov r0, r3
  82213. 80215fa: f7ff fef7 bl 80213ec <udp_remove>
  82214. dhcp_pcb = NULL;
  82215. 80215fe: 4b06 ldr r3, [pc, #24] @ (8021618 <dhcp_dec_pcb_refcount+0x50>)
  82216. 8021600: 2200 movs r2, #0
  82217. 8021602: 601a str r2, [r3, #0]
  82218. }
  82219. }
  82220. 8021604: bf00 nop
  82221. 8021606: bd80 pop {r7, pc}
  82222. 8021608: 2402a07c .word 0x2402a07c
  82223. 802160c: 0802f9e8 .word 0x0802f9e8
  82224. 8021610: 0802fa70 .word 0x0802fa70
  82225. 8021614: 0802fa48 .word 0x0802fa48
  82226. 8021618: 2402a078 .word 0x2402a078
  82227. 0802161c <dhcp_handle_nak>:
  82228. *
  82229. * @param netif the netif under DHCP control
  82230. */
  82231. static void
  82232. dhcp_handle_nak(struct netif *netif)
  82233. {
  82234. 802161c: b580 push {r7, lr}
  82235. 802161e: b084 sub sp, #16
  82236. 8021620: af00 add r7, sp, #0
  82237. 8021622: 6078 str r0, [r7, #4]
  82238. struct dhcp *dhcp = netif_dhcp_data(netif);
  82239. 8021624: 687b ldr r3, [r7, #4]
  82240. 8021626: 6a5b ldr r3, [r3, #36] @ 0x24
  82241. 8021628: 60fb str r3, [r7, #12]
  82242. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_handle_nak(netif=%p) %c%c%"U16_F"\n",
  82243. (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num));
  82244. /* Change to a defined state - set this before assigning the address
  82245. to ensure the callback can use dhcp_supplied_address() */
  82246. dhcp_set_state(dhcp, DHCP_STATE_BACKING_OFF);
  82247. 802162a: 210c movs r1, #12
  82248. 802162c: 68f8 ldr r0, [r7, #12]
  82249. 802162e: f001 f862 bl 80226f6 <dhcp_set_state>
  82250. /* remove IP address from interface (must no longer be used, as per RFC2131) */
  82251. netif_set_addr(netif, IP4_ADDR_ANY4, IP4_ADDR_ANY4, IP4_ADDR_ANY4);
  82252. 8021632: 4b06 ldr r3, [pc, #24] @ (802164c <dhcp_handle_nak+0x30>)
  82253. 8021634: 4a05 ldr r2, [pc, #20] @ (802164c <dhcp_handle_nak+0x30>)
  82254. 8021636: 4905 ldr r1, [pc, #20] @ (802164c <dhcp_handle_nak+0x30>)
  82255. 8021638: 6878 ldr r0, [r7, #4]
  82256. 802163a: f7f7 ffa5 bl 8019588 <netif_set_addr>
  82257. /* We can immediately restart discovery */
  82258. dhcp_discover(netif);
  82259. 802163e: 6878 ldr r0, [r7, #4]
  82260. 8021640: f000 fc4c bl 8021edc <dhcp_discover>
  82261. }
  82262. 8021644: bf00 nop
  82263. 8021646: 3710 adds r7, #16
  82264. 8021648: 46bd mov sp, r7
  82265. 802164a: bd80 pop {r7, pc}
  82266. 802164c: 080307a4 .word 0x080307a4
  82267. 08021650 <dhcp_check>:
  82268. *
  82269. * @param netif the netif under DHCP control
  82270. */
  82271. static void
  82272. dhcp_check(struct netif *netif)
  82273. {
  82274. 8021650: b580 push {r7, lr}
  82275. 8021652: b084 sub sp, #16
  82276. 8021654: af00 add r7, sp, #0
  82277. 8021656: 6078 str r0, [r7, #4]
  82278. struct dhcp *dhcp = netif_dhcp_data(netif);
  82279. 8021658: 687b ldr r3, [r7, #4]
  82280. 802165a: 6a5b ldr r3, [r3, #36] @ 0x24
  82281. 802165c: 60fb str r3, [r7, #12]
  82282. err_t result;
  82283. u16_t msecs;
  82284. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_check(netif=%p) %c%c\n", (void *)netif, (s16_t)netif->name[0],
  82285. (s16_t)netif->name[1]));
  82286. dhcp_set_state(dhcp, DHCP_STATE_CHECKING);
  82287. 802165e: 2108 movs r1, #8
  82288. 8021660: 68f8 ldr r0, [r7, #12]
  82289. 8021662: f001 f848 bl 80226f6 <dhcp_set_state>
  82290. /* create an ARP query for the offered IP address, expecting that no host
  82291. responds, as the IP address should not be in use. */
  82292. result = etharp_query(netif, &dhcp->offered_ip_addr, NULL);
  82293. 8021666: 68fb ldr r3, [r7, #12]
  82294. 8021668: 331c adds r3, #28
  82295. 802166a: 2200 movs r2, #0
  82296. 802166c: 4619 mov r1, r3
  82297. 802166e: 6878 ldr r0, [r7, #4]
  82298. 8021670: f002 fb88 bl 8023d84 <etharp_query>
  82299. 8021674: 4603 mov r3, r0
  82300. 8021676: 72fb strb r3, [r7, #11]
  82301. if (result != ERR_OK) {
  82302. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("dhcp_check: could not perform ARP query\n"));
  82303. }
  82304. if (dhcp->tries < 255) {
  82305. 8021678: 68fb ldr r3, [r7, #12]
  82306. 802167a: 799b ldrb r3, [r3, #6]
  82307. 802167c: 2bff cmp r3, #255 @ 0xff
  82308. 802167e: d005 beq.n 802168c <dhcp_check+0x3c>
  82309. dhcp->tries++;
  82310. 8021680: 68fb ldr r3, [r7, #12]
  82311. 8021682: 799b ldrb r3, [r3, #6]
  82312. 8021684: 3301 adds r3, #1
  82313. 8021686: b2da uxtb r2, r3
  82314. 8021688: 68fb ldr r3, [r7, #12]
  82315. 802168a: 719a strb r2, [r3, #6]
  82316. }
  82317. msecs = 500;
  82318. 802168c: f44f 73fa mov.w r3, #500 @ 0x1f4
  82319. 8021690: 813b strh r3, [r7, #8]
  82320. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  82321. 8021692: 893b ldrh r3, [r7, #8]
  82322. 8021694: f203 13f3 addw r3, r3, #499 @ 0x1f3
  82323. 8021698: 4a06 ldr r2, [pc, #24] @ (80216b4 <dhcp_check+0x64>)
  82324. 802169a: fb82 1203 smull r1, r2, r2, r3
  82325. 802169e: 1152 asrs r2, r2, #5
  82326. 80216a0: 17db asrs r3, r3, #31
  82327. 80216a2: 1ad3 subs r3, r2, r3
  82328. 80216a4: b29a uxth r2, r3
  82329. 80216a6: 68fb ldr r3, [r7, #12]
  82330. 80216a8: 811a strh r2, [r3, #8]
  82331. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_check(): set request timeout %"U16_F" msecs\n", msecs));
  82332. }
  82333. 80216aa: bf00 nop
  82334. 80216ac: 3710 adds r7, #16
  82335. 80216ae: 46bd mov sp, r7
  82336. 80216b0: bd80 pop {r7, pc}
  82337. 80216b2: bf00 nop
  82338. 80216b4: 10624dd3 .word 0x10624dd3
  82339. 080216b8 <dhcp_handle_offer>:
  82340. *
  82341. * @param netif the netif under DHCP control
  82342. */
  82343. static void
  82344. dhcp_handle_offer(struct netif *netif, struct dhcp_msg *msg_in)
  82345. {
  82346. 80216b8: b580 push {r7, lr}
  82347. 80216ba: b084 sub sp, #16
  82348. 80216bc: af00 add r7, sp, #0
  82349. 80216be: 6078 str r0, [r7, #4]
  82350. 80216c0: 6039 str r1, [r7, #0]
  82351. struct dhcp *dhcp = netif_dhcp_data(netif);
  82352. 80216c2: 687b ldr r3, [r7, #4]
  82353. 80216c4: 6a5b ldr r3, [r3, #36] @ 0x24
  82354. 80216c6: 60fb str r3, [r7, #12]
  82355. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_handle_offer(netif=%p) %c%c%"U16_F"\n",
  82356. (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num));
  82357. /* obtain the server address */
  82358. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_SERVER_ID)) {
  82359. 80216c8: 4b0c ldr r3, [pc, #48] @ (80216fc <dhcp_handle_offer+0x44>)
  82360. 80216ca: 789b ldrb r3, [r3, #2]
  82361. 80216cc: 2b00 cmp r3, #0
  82362. 80216ce: d011 beq.n 80216f4 <dhcp_handle_offer+0x3c>
  82363. dhcp->request_timeout = 0; /* stop timer */
  82364. 80216d0: 68fb ldr r3, [r7, #12]
  82365. 80216d2: 2200 movs r2, #0
  82366. 80216d4: 811a strh r2, [r3, #8]
  82367. ip_addr_set_ip4_u32(&dhcp->server_ip_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_SERVER_ID)));
  82368. 80216d6: 4b0a ldr r3, [pc, #40] @ (8021700 <dhcp_handle_offer+0x48>)
  82369. 80216d8: 689b ldr r3, [r3, #8]
  82370. 80216da: 4618 mov r0, r3
  82371. 80216dc: f7f6 ffd1 bl 8018682 <lwip_htonl>
  82372. 80216e0: 4602 mov r2, r0
  82373. 80216e2: 68fb ldr r3, [r7, #12]
  82374. 80216e4: 619a str r2, [r3, #24]
  82375. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_handle_offer(): server 0x%08"X32_F"\n",
  82376. ip4_addr_get_u32(ip_2_ip4(&dhcp->server_ip_addr))));
  82377. /* remember offered address */
  82378. ip4_addr_copy(dhcp->offered_ip_addr, msg_in->yiaddr);
  82379. 80216e6: 683b ldr r3, [r7, #0]
  82380. 80216e8: 691a ldr r2, [r3, #16]
  82381. 80216ea: 68fb ldr r3, [r7, #12]
  82382. 80216ec: 61da str r2, [r3, #28]
  82383. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_handle_offer(): offer for 0x%08"X32_F"\n",
  82384. ip4_addr_get_u32(&dhcp->offered_ip_addr)));
  82385. dhcp_select(netif);
  82386. 80216ee: 6878 ldr r0, [r7, #4]
  82387. 80216f0: f000 f808 bl 8021704 <dhcp_select>
  82388. } else {
  82389. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS,
  82390. ("dhcp_handle_offer(netif=%p) did not get server ID!\n", (void *)netif));
  82391. }
  82392. }
  82393. 80216f4: bf00 nop
  82394. 80216f6: 3710 adds r7, #16
  82395. 80216f8: 46bd mov sp, r7
  82396. 80216fa: bd80 pop {r7, pc}
  82397. 80216fc: 2402a070 .word 0x2402a070
  82398. 8021700: 2402a050 .word 0x2402a050
  82399. 08021704 <dhcp_select>:
  82400. * @param netif the netif under DHCP control
  82401. * @return lwIP specific error (see error.h)
  82402. */
  82403. static err_t
  82404. dhcp_select(struct netif *netif)
  82405. {
  82406. 8021704: b5b0 push {r4, r5, r7, lr}
  82407. 8021706: b08a sub sp, #40 @ 0x28
  82408. 8021708: af02 add r7, sp, #8
  82409. 802170a: 6078 str r0, [r7, #4]
  82410. u16_t msecs;
  82411. u8_t i;
  82412. struct pbuf *p_out;
  82413. u16_t options_out_len;
  82414. LWIP_ERROR("dhcp_select: netif != NULL", (netif != NULL), return ERR_ARG;);
  82415. 802170c: 687b ldr r3, [r7, #4]
  82416. 802170e: 2b00 cmp r3, #0
  82417. 8021710: d109 bne.n 8021726 <dhcp_select+0x22>
  82418. 8021712: 4b71 ldr r3, [pc, #452] @ (80218d8 <dhcp_select+0x1d4>)
  82419. 8021714: f240 1277 movw r2, #375 @ 0x177
  82420. 8021718: 4970 ldr r1, [pc, #448] @ (80218dc <dhcp_select+0x1d8>)
  82421. 802171a: 4871 ldr r0, [pc, #452] @ (80218e0 <dhcp_select+0x1dc>)
  82422. 802171c: f007 fef6 bl 802950c <iprintf>
  82423. 8021720: f06f 030f mvn.w r3, #15
  82424. 8021724: e0d3 b.n 80218ce <dhcp_select+0x1ca>
  82425. dhcp = netif_dhcp_data(netif);
  82426. 8021726: 687b ldr r3, [r7, #4]
  82427. 8021728: 6a5b ldr r3, [r3, #36] @ 0x24
  82428. 802172a: 61bb str r3, [r7, #24]
  82429. LWIP_ERROR("dhcp_select: dhcp != NULL", (dhcp != NULL), return ERR_VAL;);
  82430. 802172c: 69bb ldr r3, [r7, #24]
  82431. 802172e: 2b00 cmp r3, #0
  82432. 8021730: d109 bne.n 8021746 <dhcp_select+0x42>
  82433. 8021732: 4b69 ldr r3, [pc, #420] @ (80218d8 <dhcp_select+0x1d4>)
  82434. 8021734: f240 1279 movw r2, #377 @ 0x179
  82435. 8021738: 496a ldr r1, [pc, #424] @ (80218e4 <dhcp_select+0x1e0>)
  82436. 802173a: 4869 ldr r0, [pc, #420] @ (80218e0 <dhcp_select+0x1dc>)
  82437. 802173c: f007 fee6 bl 802950c <iprintf>
  82438. 8021740: f06f 0305 mvn.w r3, #5
  82439. 8021744: e0c3 b.n 80218ce <dhcp_select+0x1ca>
  82440. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_select(netif=%p) %c%c%"U16_F"\n", (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num));
  82441. dhcp_set_state(dhcp, DHCP_STATE_REQUESTING);
  82442. 8021746: 2101 movs r1, #1
  82443. 8021748: 69b8 ldr r0, [r7, #24]
  82444. 802174a: f000 ffd4 bl 80226f6 <dhcp_set_state>
  82445. /* create and initialize the DHCP message header */
  82446. p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len);
  82447. 802174e: f107 030c add.w r3, r7, #12
  82448. 8021752: 2203 movs r2, #3
  82449. 8021754: 69b9 ldr r1, [r7, #24]
  82450. 8021756: 6878 ldr r0, [r7, #4]
  82451. 8021758: f001 fc66 bl 8023028 <dhcp_create_msg>
  82452. 802175c: 6178 str r0, [r7, #20]
  82453. if (p_out != NULL) {
  82454. 802175e: 697b ldr r3, [r7, #20]
  82455. 8021760: 2b00 cmp r3, #0
  82456. 8021762: f000 8085 beq.w 8021870 <dhcp_select+0x16c>
  82457. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  82458. 8021766: 697b ldr r3, [r7, #20]
  82459. 8021768: 685b ldr r3, [r3, #4]
  82460. 802176a: 613b str r3, [r7, #16]
  82461. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN);
  82462. 802176c: 89b8 ldrh r0, [r7, #12]
  82463. 802176e: 693b ldr r3, [r7, #16]
  82464. 8021770: f103 01f0 add.w r1, r3, #240 @ 0xf0
  82465. 8021774: 2302 movs r3, #2
  82466. 8021776: 2239 movs r2, #57 @ 0x39
  82467. 8021778: f000 ffd8 bl 802272c <dhcp_option>
  82468. 802177c: 4603 mov r3, r0
  82469. 802177e: 81bb strh r3, [r7, #12]
  82470. options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif));
  82471. 8021780: 89b8 ldrh r0, [r7, #12]
  82472. 8021782: 693b ldr r3, [r7, #16]
  82473. 8021784: f103 01f0 add.w r1, r3, #240 @ 0xf0
  82474. 8021788: 687b ldr r3, [r7, #4]
  82475. 802178a: 8d1b ldrh r3, [r3, #40] @ 0x28
  82476. 802178c: 461a mov r2, r3
  82477. 802178e: f001 f827 bl 80227e0 <dhcp_option_short>
  82478. 8021792: 4603 mov r3, r0
  82479. 8021794: 81bb strh r3, [r7, #12]
  82480. /* MUST request the offered IP address */
  82481. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_REQUESTED_IP, 4);
  82482. 8021796: 89b8 ldrh r0, [r7, #12]
  82483. 8021798: 693b ldr r3, [r7, #16]
  82484. 802179a: f103 01f0 add.w r1, r3, #240 @ 0xf0
  82485. 802179e: 2304 movs r3, #4
  82486. 80217a0: 2232 movs r2, #50 @ 0x32
  82487. 80217a2: f000 ffc3 bl 802272c <dhcp_option>
  82488. 80217a6: 4603 mov r3, r0
  82489. 80217a8: 81bb strh r3, [r7, #12]
  82490. options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(&dhcp->offered_ip_addr)));
  82491. 80217aa: 89bc ldrh r4, [r7, #12]
  82492. 80217ac: 693b ldr r3, [r7, #16]
  82493. 80217ae: f103 05f0 add.w r5, r3, #240 @ 0xf0
  82494. 80217b2: 69bb ldr r3, [r7, #24]
  82495. 80217b4: 69db ldr r3, [r3, #28]
  82496. 80217b6: 4618 mov r0, r3
  82497. 80217b8: f7f6 ff63 bl 8018682 <lwip_htonl>
  82498. 80217bc: 4603 mov r3, r0
  82499. 80217be: 461a mov r2, r3
  82500. 80217c0: 4629 mov r1, r5
  82501. 80217c2: 4620 mov r0, r4
  82502. 80217c4: f001 f83e bl 8022844 <dhcp_option_long>
  82503. 80217c8: 4603 mov r3, r0
  82504. 80217ca: 81bb strh r3, [r7, #12]
  82505. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_SERVER_ID, 4);
  82506. 80217cc: 89b8 ldrh r0, [r7, #12]
  82507. 80217ce: 693b ldr r3, [r7, #16]
  82508. 80217d0: f103 01f0 add.w r1, r3, #240 @ 0xf0
  82509. 80217d4: 2304 movs r3, #4
  82510. 80217d6: 2236 movs r2, #54 @ 0x36
  82511. 80217d8: f000 ffa8 bl 802272c <dhcp_option>
  82512. 80217dc: 4603 mov r3, r0
  82513. 80217de: 81bb strh r3, [r7, #12]
  82514. options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(ip_2_ip4(&dhcp->server_ip_addr))));
  82515. 80217e0: 89bc ldrh r4, [r7, #12]
  82516. 80217e2: 693b ldr r3, [r7, #16]
  82517. 80217e4: f103 05f0 add.w r5, r3, #240 @ 0xf0
  82518. 80217e8: 69bb ldr r3, [r7, #24]
  82519. 80217ea: 699b ldr r3, [r3, #24]
  82520. 80217ec: 4618 mov r0, r3
  82521. 80217ee: f7f6 ff48 bl 8018682 <lwip_htonl>
  82522. 80217f2: 4603 mov r3, r0
  82523. 80217f4: 461a mov r2, r3
  82524. 80217f6: 4629 mov r1, r5
  82525. 80217f8: 4620 mov r0, r4
  82526. 80217fa: f001 f823 bl 8022844 <dhcp_option_long>
  82527. 80217fe: 4603 mov r3, r0
  82528. 8021800: 81bb strh r3, [r7, #12]
  82529. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options));
  82530. 8021802: 89b8 ldrh r0, [r7, #12]
  82531. 8021804: 693b ldr r3, [r7, #16]
  82532. 8021806: f103 01f0 add.w r1, r3, #240 @ 0xf0
  82533. 802180a: 2303 movs r3, #3
  82534. 802180c: 2237 movs r2, #55 @ 0x37
  82535. 802180e: f000 ff8d bl 802272c <dhcp_option>
  82536. 8021812: 4603 mov r3, r0
  82537. 8021814: 81bb strh r3, [r7, #12]
  82538. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  82539. 8021816: 2300 movs r3, #0
  82540. 8021818: 77fb strb r3, [r7, #31]
  82541. 802181a: e00e b.n 802183a <dhcp_select+0x136>
  82542. options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]);
  82543. 802181c: 89b8 ldrh r0, [r7, #12]
  82544. 802181e: 693b ldr r3, [r7, #16]
  82545. 8021820: f103 01f0 add.w r1, r3, #240 @ 0xf0
  82546. 8021824: 7ffb ldrb r3, [r7, #31]
  82547. 8021826: 4a30 ldr r2, [pc, #192] @ (80218e8 <dhcp_select+0x1e4>)
  82548. 8021828: 5cd3 ldrb r3, [r2, r3]
  82549. 802182a: 461a mov r2, r3
  82550. 802182c: f000 ffb2 bl 8022794 <dhcp_option_byte>
  82551. 8021830: 4603 mov r3, r0
  82552. 8021832: 81bb strh r3, [r7, #12]
  82553. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  82554. 8021834: 7ffb ldrb r3, [r7, #31]
  82555. 8021836: 3301 adds r3, #1
  82556. 8021838: 77fb strb r3, [r7, #31]
  82557. 802183a: 7ffb ldrb r3, [r7, #31]
  82558. 802183c: 2b02 cmp r3, #2
  82559. 802183e: d9ed bls.n 802181c <dhcp_select+0x118>
  82560. #if LWIP_NETIF_HOSTNAME
  82561. options_out_len = dhcp_option_hostname(options_out_len, msg_out->options, netif);
  82562. #endif /* LWIP_NETIF_HOSTNAME */
  82563. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_REQUESTING, msg_out, DHCP_REQUEST, &options_out_len);
  82564. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  82565. 8021840: 89b8 ldrh r0, [r7, #12]
  82566. 8021842: 693b ldr r3, [r7, #16]
  82567. 8021844: 33f0 adds r3, #240 @ 0xf0
  82568. 8021846: 697a ldr r2, [r7, #20]
  82569. 8021848: 4619 mov r1, r3
  82570. 802184a: f001 fcc3 bl 80231d4 <dhcp_option_trailer>
  82571. /* send broadcast to any DHCP server */
  82572. result = udp_sendto_if_src(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif, IP4_ADDR_ANY);
  82573. 802184e: 4b27 ldr r3, [pc, #156] @ (80218ec <dhcp_select+0x1e8>)
  82574. 8021850: 6818 ldr r0, [r3, #0]
  82575. 8021852: 4b27 ldr r3, [pc, #156] @ (80218f0 <dhcp_select+0x1ec>)
  82576. 8021854: 9301 str r3, [sp, #4]
  82577. 8021856: 687b ldr r3, [r7, #4]
  82578. 8021858: 9300 str r3, [sp, #0]
  82579. 802185a: 2343 movs r3, #67 @ 0x43
  82580. 802185c: 4a25 ldr r2, [pc, #148] @ (80218f4 <dhcp_select+0x1f0>)
  82581. 802185e: 6979 ldr r1, [r7, #20]
  82582. 8021860: f7ff fb96 bl 8020f90 <udp_sendto_if_src>
  82583. 8021864: 4603 mov r3, r0
  82584. 8021866: 77bb strb r3, [r7, #30]
  82585. pbuf_free(p_out);
  82586. 8021868: 6978 ldr r0, [r7, #20]
  82587. 802186a: f7f8 fbd7 bl 801a01c <pbuf_free>
  82588. 802186e: e001 b.n 8021874 <dhcp_select+0x170>
  82589. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_select: REQUESTING\n"));
  82590. } else {
  82591. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("dhcp_select: could not allocate DHCP request\n"));
  82592. result = ERR_MEM;
  82593. 8021870: 23ff movs r3, #255 @ 0xff
  82594. 8021872: 77bb strb r3, [r7, #30]
  82595. }
  82596. if (dhcp->tries < 255) {
  82597. 8021874: 69bb ldr r3, [r7, #24]
  82598. 8021876: 799b ldrb r3, [r3, #6]
  82599. 8021878: 2bff cmp r3, #255 @ 0xff
  82600. 802187a: d005 beq.n 8021888 <dhcp_select+0x184>
  82601. dhcp->tries++;
  82602. 802187c: 69bb ldr r3, [r7, #24]
  82603. 802187e: 799b ldrb r3, [r3, #6]
  82604. 8021880: 3301 adds r3, #1
  82605. 8021882: b2da uxtb r2, r3
  82606. 8021884: 69bb ldr r3, [r7, #24]
  82607. 8021886: 719a strb r2, [r3, #6]
  82608. }
  82609. msecs = (u16_t)((dhcp->tries < 6 ? 1 << dhcp->tries : 60) * 1000);
  82610. 8021888: 69bb ldr r3, [r7, #24]
  82611. 802188a: 799b ldrb r3, [r3, #6]
  82612. 802188c: 2b05 cmp r3, #5
  82613. 802188e: d80d bhi.n 80218ac <dhcp_select+0x1a8>
  82614. 8021890: 69bb ldr r3, [r7, #24]
  82615. 8021892: 799b ldrb r3, [r3, #6]
  82616. 8021894: 461a mov r2, r3
  82617. 8021896: 2301 movs r3, #1
  82618. 8021898: 4093 lsls r3, r2
  82619. 802189a: b29b uxth r3, r3
  82620. 802189c: 461a mov r2, r3
  82621. 802189e: 0152 lsls r2, r2, #5
  82622. 80218a0: 1ad2 subs r2, r2, r3
  82623. 80218a2: 0092 lsls r2, r2, #2
  82624. 80218a4: 4413 add r3, r2
  82625. 80218a6: 00db lsls r3, r3, #3
  82626. 80218a8: b29b uxth r3, r3
  82627. 80218aa: e001 b.n 80218b0 <dhcp_select+0x1ac>
  82628. 80218ac: f64e 2360 movw r3, #60000 @ 0xea60
  82629. 80218b0: 81fb strh r3, [r7, #14]
  82630. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  82631. 80218b2: 89fb ldrh r3, [r7, #14]
  82632. 80218b4: f203 13f3 addw r3, r3, #499 @ 0x1f3
  82633. 80218b8: 4a0f ldr r2, [pc, #60] @ (80218f8 <dhcp_select+0x1f4>)
  82634. 80218ba: fb82 1203 smull r1, r2, r2, r3
  82635. 80218be: 1152 asrs r2, r2, #5
  82636. 80218c0: 17db asrs r3, r3, #31
  82637. 80218c2: 1ad3 subs r3, r2, r3
  82638. 80218c4: b29a uxth r2, r3
  82639. 80218c6: 69bb ldr r3, [r7, #24]
  82640. 80218c8: 811a strh r2, [r3, #8]
  82641. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_select(): set request timeout %"U16_F" msecs\n", msecs));
  82642. return result;
  82643. 80218ca: f997 301e ldrsb.w r3, [r7, #30]
  82644. }
  82645. 80218ce: 4618 mov r0, r3
  82646. 80218d0: 3720 adds r7, #32
  82647. 80218d2: 46bd mov sp, r7
  82648. 80218d4: bdb0 pop {r4, r5, r7, pc}
  82649. 80218d6: bf00 nop
  82650. 80218d8: 0802f9e8 .word 0x0802f9e8
  82651. 80218dc: 0802fa94 .word 0x0802fa94
  82652. 80218e0: 0802fa48 .word 0x0802fa48
  82653. 80218e4: 0802fab0 .word 0x0802fab0
  82654. 80218e8: 24000044 .word 0x24000044
  82655. 80218ec: 2402a078 .word 0x2402a078
  82656. 80218f0: 080307a4 .word 0x080307a4
  82657. 80218f4: 080307a8 .word 0x080307a8
  82658. 80218f8: 10624dd3 .word 0x10624dd3
  82659. 080218fc <dhcp_coarse_tmr>:
  82660. * The DHCP timer that checks for lease renewal/rebind timeouts.
  82661. * Must be called once a minute (see @ref DHCP_COARSE_TIMER_SECS).
  82662. */
  82663. void
  82664. dhcp_coarse_tmr(void)
  82665. {
  82666. 80218fc: b580 push {r7, lr}
  82667. 80218fe: b082 sub sp, #8
  82668. 8021900: af00 add r7, sp, #0
  82669. struct netif *netif;
  82670. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_coarse_tmr()\n"));
  82671. /* iterate through all network interfaces */
  82672. NETIF_FOREACH(netif) {
  82673. 8021902: 4b27 ldr r3, [pc, #156] @ (80219a0 <dhcp_coarse_tmr+0xa4>)
  82674. 8021904: 681b ldr r3, [r3, #0]
  82675. 8021906: 607b str r3, [r7, #4]
  82676. 8021908: e042 b.n 8021990 <dhcp_coarse_tmr+0x94>
  82677. /* only act on DHCP configured interfaces */
  82678. struct dhcp *dhcp = netif_dhcp_data(netif);
  82679. 802190a: 687b ldr r3, [r7, #4]
  82680. 802190c: 6a5b ldr r3, [r3, #36] @ 0x24
  82681. 802190e: 603b str r3, [r7, #0]
  82682. if ((dhcp != NULL) && (dhcp->state != DHCP_STATE_OFF)) {
  82683. 8021910: 683b ldr r3, [r7, #0]
  82684. 8021912: 2b00 cmp r3, #0
  82685. 8021914: d039 beq.n 802198a <dhcp_coarse_tmr+0x8e>
  82686. 8021916: 683b ldr r3, [r7, #0]
  82687. 8021918: 795b ldrb r3, [r3, #5]
  82688. 802191a: 2b00 cmp r3, #0
  82689. 802191c: d035 beq.n 802198a <dhcp_coarse_tmr+0x8e>
  82690. /* compare lease time to expire timeout */
  82691. if (dhcp->t0_timeout && (++dhcp->lease_used == dhcp->t0_timeout)) {
  82692. 802191e: 683b ldr r3, [r7, #0]
  82693. 8021920: 8a9b ldrh r3, [r3, #20]
  82694. 8021922: 2b00 cmp r3, #0
  82695. 8021924: d012 beq.n 802194c <dhcp_coarse_tmr+0x50>
  82696. 8021926: 683b ldr r3, [r7, #0]
  82697. 8021928: 8a5b ldrh r3, [r3, #18]
  82698. 802192a: 3301 adds r3, #1
  82699. 802192c: b29a uxth r2, r3
  82700. 802192e: 683b ldr r3, [r7, #0]
  82701. 8021930: 825a strh r2, [r3, #18]
  82702. 8021932: 683b ldr r3, [r7, #0]
  82703. 8021934: 8a5a ldrh r2, [r3, #18]
  82704. 8021936: 683b ldr r3, [r7, #0]
  82705. 8021938: 8a9b ldrh r3, [r3, #20]
  82706. 802193a: 429a cmp r2, r3
  82707. 802193c: d106 bne.n 802194c <dhcp_coarse_tmr+0x50>
  82708. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_coarse_tmr(): t0 timeout\n"));
  82709. /* this clients' lease time has expired */
  82710. dhcp_release_and_stop(netif);
  82711. 802193e: 6878 ldr r0, [r7, #4]
  82712. 8021940: f000 fe32 bl 80225a8 <dhcp_release_and_stop>
  82713. dhcp_start(netif);
  82714. 8021944: 6878 ldr r0, [r7, #4]
  82715. 8021946: f000 f96b bl 8021c20 <dhcp_start>
  82716. 802194a: e01e b.n 802198a <dhcp_coarse_tmr+0x8e>
  82717. /* timer is active (non zero), and triggers (zeroes) now? */
  82718. } else if (dhcp->t2_rebind_time && (dhcp->t2_rebind_time-- == 1)) {
  82719. 802194c: 683b ldr r3, [r7, #0]
  82720. 802194e: 8a1b ldrh r3, [r3, #16]
  82721. 8021950: 2b00 cmp r3, #0
  82722. 8021952: d00b beq.n 802196c <dhcp_coarse_tmr+0x70>
  82723. 8021954: 683b ldr r3, [r7, #0]
  82724. 8021956: 8a1b ldrh r3, [r3, #16]
  82725. 8021958: 1e5a subs r2, r3, #1
  82726. 802195a: b291 uxth r1, r2
  82727. 802195c: 683a ldr r2, [r7, #0]
  82728. 802195e: 8211 strh r1, [r2, #16]
  82729. 8021960: 2b01 cmp r3, #1
  82730. 8021962: d103 bne.n 802196c <dhcp_coarse_tmr+0x70>
  82731. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_coarse_tmr(): t2 timeout\n"));
  82732. /* this clients' rebind timeout triggered */
  82733. dhcp_t2_timeout(netif);
  82734. 8021964: 6878 ldr r0, [r7, #4]
  82735. 8021966: f000 f8c7 bl 8021af8 <dhcp_t2_timeout>
  82736. 802196a: e00e b.n 802198a <dhcp_coarse_tmr+0x8e>
  82737. /* timer is active (non zero), and triggers (zeroes) now */
  82738. } else if (dhcp->t1_renew_time && (dhcp->t1_renew_time-- == 1)) {
  82739. 802196c: 683b ldr r3, [r7, #0]
  82740. 802196e: 89db ldrh r3, [r3, #14]
  82741. 8021970: 2b00 cmp r3, #0
  82742. 8021972: d00a beq.n 802198a <dhcp_coarse_tmr+0x8e>
  82743. 8021974: 683b ldr r3, [r7, #0]
  82744. 8021976: 89db ldrh r3, [r3, #14]
  82745. 8021978: 1e5a subs r2, r3, #1
  82746. 802197a: b291 uxth r1, r2
  82747. 802197c: 683a ldr r2, [r7, #0]
  82748. 802197e: 81d1 strh r1, [r2, #14]
  82749. 8021980: 2b01 cmp r3, #1
  82750. 8021982: d102 bne.n 802198a <dhcp_coarse_tmr+0x8e>
  82751. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_coarse_tmr(): t1 timeout\n"));
  82752. /* this clients' renewal timeout triggered */
  82753. dhcp_t1_timeout(netif);
  82754. 8021984: 6878 ldr r0, [r7, #4]
  82755. 8021986: f000 f888 bl 8021a9a <dhcp_t1_timeout>
  82756. NETIF_FOREACH(netif) {
  82757. 802198a: 687b ldr r3, [r7, #4]
  82758. 802198c: 681b ldr r3, [r3, #0]
  82759. 802198e: 607b str r3, [r7, #4]
  82760. 8021990: 687b ldr r3, [r7, #4]
  82761. 8021992: 2b00 cmp r3, #0
  82762. 8021994: d1b9 bne.n 802190a <dhcp_coarse_tmr+0xe>
  82763. }
  82764. }
  82765. }
  82766. }
  82767. 8021996: bf00 nop
  82768. 8021998: bf00 nop
  82769. 802199a: 3708 adds r7, #8
  82770. 802199c: 46bd mov sp, r7
  82771. 802199e: bd80 pop {r7, pc}
  82772. 80219a0: 24029fe0 .word 0x24029fe0
  82773. 080219a4 <dhcp_fine_tmr>:
  82774. * A DHCP server is expected to respond within a short period of time.
  82775. * This timer checks whether an outstanding DHCP request is timed out.
  82776. */
  82777. void
  82778. dhcp_fine_tmr(void)
  82779. {
  82780. 80219a4: b580 push {r7, lr}
  82781. 80219a6: b082 sub sp, #8
  82782. 80219a8: af00 add r7, sp, #0
  82783. struct netif *netif;
  82784. /* loop through netif's */
  82785. NETIF_FOREACH(netif) {
  82786. 80219aa: 4b16 ldr r3, [pc, #88] @ (8021a04 <dhcp_fine_tmr+0x60>)
  82787. 80219ac: 681b ldr r3, [r3, #0]
  82788. 80219ae: 607b str r3, [r7, #4]
  82789. 80219b0: e020 b.n 80219f4 <dhcp_fine_tmr+0x50>
  82790. struct dhcp *dhcp = netif_dhcp_data(netif);
  82791. 80219b2: 687b ldr r3, [r7, #4]
  82792. 80219b4: 6a5b ldr r3, [r3, #36] @ 0x24
  82793. 80219b6: 603b str r3, [r7, #0]
  82794. /* only act on DHCP configured interfaces */
  82795. if (dhcp != NULL) {
  82796. 80219b8: 683b ldr r3, [r7, #0]
  82797. 80219ba: 2b00 cmp r3, #0
  82798. 80219bc: d017 beq.n 80219ee <dhcp_fine_tmr+0x4a>
  82799. /* timer is active (non zero), and is about to trigger now */
  82800. if (dhcp->request_timeout > 1) {
  82801. 80219be: 683b ldr r3, [r7, #0]
  82802. 80219c0: 891b ldrh r3, [r3, #8]
  82803. 80219c2: 2b01 cmp r3, #1
  82804. 80219c4: d906 bls.n 80219d4 <dhcp_fine_tmr+0x30>
  82805. dhcp->request_timeout--;
  82806. 80219c6: 683b ldr r3, [r7, #0]
  82807. 80219c8: 891b ldrh r3, [r3, #8]
  82808. 80219ca: 3b01 subs r3, #1
  82809. 80219cc: b29a uxth r2, r3
  82810. 80219ce: 683b ldr r3, [r7, #0]
  82811. 80219d0: 811a strh r2, [r3, #8]
  82812. 80219d2: e00c b.n 80219ee <dhcp_fine_tmr+0x4a>
  82813. } else if (dhcp->request_timeout == 1) {
  82814. 80219d4: 683b ldr r3, [r7, #0]
  82815. 80219d6: 891b ldrh r3, [r3, #8]
  82816. 80219d8: 2b01 cmp r3, #1
  82817. 80219da: d108 bne.n 80219ee <dhcp_fine_tmr+0x4a>
  82818. dhcp->request_timeout--;
  82819. 80219dc: 683b ldr r3, [r7, #0]
  82820. 80219de: 891b ldrh r3, [r3, #8]
  82821. 80219e0: 3b01 subs r3, #1
  82822. 80219e2: b29a uxth r2, r3
  82823. 80219e4: 683b ldr r3, [r7, #0]
  82824. 80219e6: 811a strh r2, [r3, #8]
  82825. /* { dhcp->request_timeout == 0 } */
  82826. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_fine_tmr(): request timeout\n"));
  82827. /* this client's request timeout triggered */
  82828. dhcp_timeout(netif);
  82829. 80219e8: 6878 ldr r0, [r7, #4]
  82830. 80219ea: f000 f80d bl 8021a08 <dhcp_timeout>
  82831. NETIF_FOREACH(netif) {
  82832. 80219ee: 687b ldr r3, [r7, #4]
  82833. 80219f0: 681b ldr r3, [r3, #0]
  82834. 80219f2: 607b str r3, [r7, #4]
  82835. 80219f4: 687b ldr r3, [r7, #4]
  82836. 80219f6: 2b00 cmp r3, #0
  82837. 80219f8: d1db bne.n 80219b2 <dhcp_fine_tmr+0xe>
  82838. }
  82839. }
  82840. }
  82841. }
  82842. 80219fa: bf00 nop
  82843. 80219fc: bf00 nop
  82844. 80219fe: 3708 adds r7, #8
  82845. 8021a00: 46bd mov sp, r7
  82846. 8021a02: bd80 pop {r7, pc}
  82847. 8021a04: 24029fe0 .word 0x24029fe0
  82848. 08021a08 <dhcp_timeout>:
  82849. *
  82850. * @param netif the netif under DHCP control
  82851. */
  82852. static void
  82853. dhcp_timeout(struct netif *netif)
  82854. {
  82855. 8021a08: b580 push {r7, lr}
  82856. 8021a0a: b084 sub sp, #16
  82857. 8021a0c: af00 add r7, sp, #0
  82858. 8021a0e: 6078 str r0, [r7, #4]
  82859. struct dhcp *dhcp = netif_dhcp_data(netif);
  82860. 8021a10: 687b ldr r3, [r7, #4]
  82861. 8021a12: 6a5b ldr r3, [r3, #36] @ 0x24
  82862. 8021a14: 60fb str r3, [r7, #12]
  82863. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_timeout()\n"));
  82864. /* back-off period has passed, or server selection timed out */
  82865. if ((dhcp->state == DHCP_STATE_BACKING_OFF) || (dhcp->state == DHCP_STATE_SELECTING)) {
  82866. 8021a16: 68fb ldr r3, [r7, #12]
  82867. 8021a18: 795b ldrb r3, [r3, #5]
  82868. 8021a1a: 2b0c cmp r3, #12
  82869. 8021a1c: d003 beq.n 8021a26 <dhcp_timeout+0x1e>
  82870. 8021a1e: 68fb ldr r3, [r7, #12]
  82871. 8021a20: 795b ldrb r3, [r3, #5]
  82872. 8021a22: 2b06 cmp r3, #6
  82873. 8021a24: d103 bne.n 8021a2e <dhcp_timeout+0x26>
  82874. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_timeout(): restarting discovery\n"));
  82875. dhcp_discover(netif);
  82876. 8021a26: 6878 ldr r0, [r7, #4]
  82877. 8021a28: f000 fa58 bl 8021edc <dhcp_discover>
  82878. dhcp_reboot(netif);
  82879. } else {
  82880. dhcp_discover(netif);
  82881. }
  82882. }
  82883. }
  82884. 8021a2c: e031 b.n 8021a92 <dhcp_timeout+0x8a>
  82885. } else if (dhcp->state == DHCP_STATE_REQUESTING) {
  82886. 8021a2e: 68fb ldr r3, [r7, #12]
  82887. 8021a30: 795b ldrb r3, [r3, #5]
  82888. 8021a32: 2b01 cmp r3, #1
  82889. 8021a34: d10e bne.n 8021a54 <dhcp_timeout+0x4c>
  82890. if (dhcp->tries <= 5) {
  82891. 8021a36: 68fb ldr r3, [r7, #12]
  82892. 8021a38: 799b ldrb r3, [r3, #6]
  82893. 8021a3a: 2b05 cmp r3, #5
  82894. 8021a3c: d803 bhi.n 8021a46 <dhcp_timeout+0x3e>
  82895. dhcp_select(netif);
  82896. 8021a3e: 6878 ldr r0, [r7, #4]
  82897. 8021a40: f7ff fe60 bl 8021704 <dhcp_select>
  82898. }
  82899. 8021a44: e025 b.n 8021a92 <dhcp_timeout+0x8a>
  82900. dhcp_release_and_stop(netif);
  82901. 8021a46: 6878 ldr r0, [r7, #4]
  82902. 8021a48: f000 fdae bl 80225a8 <dhcp_release_and_stop>
  82903. dhcp_start(netif);
  82904. 8021a4c: 6878 ldr r0, [r7, #4]
  82905. 8021a4e: f000 f8e7 bl 8021c20 <dhcp_start>
  82906. }
  82907. 8021a52: e01e b.n 8021a92 <dhcp_timeout+0x8a>
  82908. } else if (dhcp->state == DHCP_STATE_CHECKING) {
  82909. 8021a54: 68fb ldr r3, [r7, #12]
  82910. 8021a56: 795b ldrb r3, [r3, #5]
  82911. 8021a58: 2b08 cmp r3, #8
  82912. 8021a5a: d10b bne.n 8021a74 <dhcp_timeout+0x6c>
  82913. if (dhcp->tries <= 1) {
  82914. 8021a5c: 68fb ldr r3, [r7, #12]
  82915. 8021a5e: 799b ldrb r3, [r3, #6]
  82916. 8021a60: 2b01 cmp r3, #1
  82917. 8021a62: d803 bhi.n 8021a6c <dhcp_timeout+0x64>
  82918. dhcp_check(netif);
  82919. 8021a64: 6878 ldr r0, [r7, #4]
  82920. 8021a66: f7ff fdf3 bl 8021650 <dhcp_check>
  82921. }
  82922. 8021a6a: e012 b.n 8021a92 <dhcp_timeout+0x8a>
  82923. dhcp_bind(netif);
  82924. 8021a6c: 6878 ldr r0, [r7, #4]
  82925. 8021a6e: f000 fad7 bl 8022020 <dhcp_bind>
  82926. }
  82927. 8021a72: e00e b.n 8021a92 <dhcp_timeout+0x8a>
  82928. } else if (dhcp->state == DHCP_STATE_REBOOTING) {
  82929. 8021a74: 68fb ldr r3, [r7, #12]
  82930. 8021a76: 795b ldrb r3, [r3, #5]
  82931. 8021a78: 2b03 cmp r3, #3
  82932. 8021a7a: d10a bne.n 8021a92 <dhcp_timeout+0x8a>
  82933. if (dhcp->tries < REBOOT_TRIES) {
  82934. 8021a7c: 68fb ldr r3, [r7, #12]
  82935. 8021a7e: 799b ldrb r3, [r3, #6]
  82936. 8021a80: 2b01 cmp r3, #1
  82937. 8021a82: d803 bhi.n 8021a8c <dhcp_timeout+0x84>
  82938. dhcp_reboot(netif);
  82939. 8021a84: 6878 ldr r0, [r7, #4]
  82940. 8021a86: f000 fcdb bl 8022440 <dhcp_reboot>
  82941. }
  82942. 8021a8a: e002 b.n 8021a92 <dhcp_timeout+0x8a>
  82943. dhcp_discover(netif);
  82944. 8021a8c: 6878 ldr r0, [r7, #4]
  82945. 8021a8e: f000 fa25 bl 8021edc <dhcp_discover>
  82946. }
  82947. 8021a92: bf00 nop
  82948. 8021a94: 3710 adds r7, #16
  82949. 8021a96: 46bd mov sp, r7
  82950. 8021a98: bd80 pop {r7, pc}
  82951. 08021a9a <dhcp_t1_timeout>:
  82952. *
  82953. * @param netif the netif under DHCP control
  82954. */
  82955. static void
  82956. dhcp_t1_timeout(struct netif *netif)
  82957. {
  82958. 8021a9a: b580 push {r7, lr}
  82959. 8021a9c: b084 sub sp, #16
  82960. 8021a9e: af00 add r7, sp, #0
  82961. 8021aa0: 6078 str r0, [r7, #4]
  82962. struct dhcp *dhcp = netif_dhcp_data(netif);
  82963. 8021aa2: 687b ldr r3, [r7, #4]
  82964. 8021aa4: 6a5b ldr r3, [r3, #36] @ 0x24
  82965. 8021aa6: 60fb str r3, [r7, #12]
  82966. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_t1_timeout()\n"));
  82967. if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) ||
  82968. 8021aa8: 68fb ldr r3, [r7, #12]
  82969. 8021aaa: 795b ldrb r3, [r3, #5]
  82970. 8021aac: 2b01 cmp r3, #1
  82971. 8021aae: d007 beq.n 8021ac0 <dhcp_t1_timeout+0x26>
  82972. 8021ab0: 68fb ldr r3, [r7, #12]
  82973. 8021ab2: 795b ldrb r3, [r3, #5]
  82974. 8021ab4: 2b0a cmp r3, #10
  82975. 8021ab6: d003 beq.n 8021ac0 <dhcp_t1_timeout+0x26>
  82976. (dhcp->state == DHCP_STATE_RENEWING)) {
  82977. 8021ab8: 68fb ldr r3, [r7, #12]
  82978. 8021aba: 795b ldrb r3, [r3, #5]
  82979. if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) ||
  82980. 8021abc: 2b05 cmp r3, #5
  82981. 8021abe: d117 bne.n 8021af0 <dhcp_t1_timeout+0x56>
  82982. * eventually time-out if renew tries fail. */
  82983. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE,
  82984. ("dhcp_t1_timeout(): must renew\n"));
  82985. /* This slightly different to RFC2131: DHCPREQUEST will be sent from state
  82986. DHCP_STATE_RENEWING, not DHCP_STATE_BOUND */
  82987. dhcp_renew(netif);
  82988. 8021ac0: 6878 ldr r0, [r7, #4]
  82989. 8021ac2: f000 fb87 bl 80221d4 <dhcp_renew>
  82990. /* Calculate next timeout */
  82991. if (((dhcp->t2_timeout - dhcp->lease_used) / 2) >= ((60 + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS)) {
  82992. 8021ac6: 68fb ldr r3, [r7, #12]
  82993. 8021ac8: 899b ldrh r3, [r3, #12]
  82994. 8021aca: 461a mov r2, r3
  82995. 8021acc: 68fb ldr r3, [r7, #12]
  82996. 8021ace: 8a5b ldrh r3, [r3, #18]
  82997. 8021ad0: 1ad3 subs r3, r2, r3
  82998. 8021ad2: 2b01 cmp r3, #1
  82999. 8021ad4: dd0c ble.n 8021af0 <dhcp_t1_timeout+0x56>
  83000. dhcp->t1_renew_time = (u16_t)((dhcp->t2_timeout - dhcp->lease_used) / 2);
  83001. 8021ad6: 68fb ldr r3, [r7, #12]
  83002. 8021ad8: 899b ldrh r3, [r3, #12]
  83003. 8021ada: 461a mov r2, r3
  83004. 8021adc: 68fb ldr r3, [r7, #12]
  83005. 8021ade: 8a5b ldrh r3, [r3, #18]
  83006. 8021ae0: 1ad3 subs r3, r2, r3
  83007. 8021ae2: 2b00 cmp r3, #0
  83008. 8021ae4: da00 bge.n 8021ae8 <dhcp_t1_timeout+0x4e>
  83009. 8021ae6: 3301 adds r3, #1
  83010. 8021ae8: 105b asrs r3, r3, #1
  83011. 8021aea: b29a uxth r2, r3
  83012. 8021aec: 68fb ldr r3, [r7, #12]
  83013. 8021aee: 81da strh r2, [r3, #14]
  83014. }
  83015. }
  83016. }
  83017. 8021af0: bf00 nop
  83018. 8021af2: 3710 adds r7, #16
  83019. 8021af4: 46bd mov sp, r7
  83020. 8021af6: bd80 pop {r7, pc}
  83021. 08021af8 <dhcp_t2_timeout>:
  83022. *
  83023. * @param netif the netif under DHCP control
  83024. */
  83025. static void
  83026. dhcp_t2_timeout(struct netif *netif)
  83027. {
  83028. 8021af8: b580 push {r7, lr}
  83029. 8021afa: b084 sub sp, #16
  83030. 8021afc: af00 add r7, sp, #0
  83031. 8021afe: 6078 str r0, [r7, #4]
  83032. struct dhcp *dhcp = netif_dhcp_data(netif);
  83033. 8021b00: 687b ldr r3, [r7, #4]
  83034. 8021b02: 6a5b ldr r3, [r3, #36] @ 0x24
  83035. 8021b04: 60fb str r3, [r7, #12]
  83036. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_t2_timeout()\n"));
  83037. if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) ||
  83038. 8021b06: 68fb ldr r3, [r7, #12]
  83039. 8021b08: 795b ldrb r3, [r3, #5]
  83040. 8021b0a: 2b01 cmp r3, #1
  83041. 8021b0c: d00b beq.n 8021b26 <dhcp_t2_timeout+0x2e>
  83042. 8021b0e: 68fb ldr r3, [r7, #12]
  83043. 8021b10: 795b ldrb r3, [r3, #5]
  83044. 8021b12: 2b0a cmp r3, #10
  83045. 8021b14: d007 beq.n 8021b26 <dhcp_t2_timeout+0x2e>
  83046. (dhcp->state == DHCP_STATE_RENEWING) || (dhcp->state == DHCP_STATE_REBINDING)) {
  83047. 8021b16: 68fb ldr r3, [r7, #12]
  83048. 8021b18: 795b ldrb r3, [r3, #5]
  83049. if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) ||
  83050. 8021b1a: 2b05 cmp r3, #5
  83051. 8021b1c: d003 beq.n 8021b26 <dhcp_t2_timeout+0x2e>
  83052. (dhcp->state == DHCP_STATE_RENEWING) || (dhcp->state == DHCP_STATE_REBINDING)) {
  83053. 8021b1e: 68fb ldr r3, [r7, #12]
  83054. 8021b20: 795b ldrb r3, [r3, #5]
  83055. 8021b22: 2b04 cmp r3, #4
  83056. 8021b24: d117 bne.n 8021b56 <dhcp_t2_timeout+0x5e>
  83057. /* just retry to rebind */
  83058. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE,
  83059. ("dhcp_t2_timeout(): must rebind\n"));
  83060. /* This slightly different to RFC2131: DHCPREQUEST will be sent from state
  83061. DHCP_STATE_REBINDING, not DHCP_STATE_BOUND */
  83062. dhcp_rebind(netif);
  83063. 8021b26: 6878 ldr r0, [r7, #4]
  83064. 8021b28: f000 fbf0 bl 802230c <dhcp_rebind>
  83065. /* Calculate next timeout */
  83066. if (((dhcp->t0_timeout - dhcp->lease_used) / 2) >= ((60 + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS)) {
  83067. 8021b2c: 68fb ldr r3, [r7, #12]
  83068. 8021b2e: 8a9b ldrh r3, [r3, #20]
  83069. 8021b30: 461a mov r2, r3
  83070. 8021b32: 68fb ldr r3, [r7, #12]
  83071. 8021b34: 8a5b ldrh r3, [r3, #18]
  83072. 8021b36: 1ad3 subs r3, r2, r3
  83073. 8021b38: 2b01 cmp r3, #1
  83074. 8021b3a: dd0c ble.n 8021b56 <dhcp_t2_timeout+0x5e>
  83075. dhcp->t2_rebind_time = (u16_t)((dhcp->t0_timeout - dhcp->lease_used) / 2);
  83076. 8021b3c: 68fb ldr r3, [r7, #12]
  83077. 8021b3e: 8a9b ldrh r3, [r3, #20]
  83078. 8021b40: 461a mov r2, r3
  83079. 8021b42: 68fb ldr r3, [r7, #12]
  83080. 8021b44: 8a5b ldrh r3, [r3, #18]
  83081. 8021b46: 1ad3 subs r3, r2, r3
  83082. 8021b48: 2b00 cmp r3, #0
  83083. 8021b4a: da00 bge.n 8021b4e <dhcp_t2_timeout+0x56>
  83084. 8021b4c: 3301 adds r3, #1
  83085. 8021b4e: 105b asrs r3, r3, #1
  83086. 8021b50: b29a uxth r2, r3
  83087. 8021b52: 68fb ldr r3, [r7, #12]
  83088. 8021b54: 821a strh r2, [r3, #16]
  83089. }
  83090. }
  83091. }
  83092. 8021b56: bf00 nop
  83093. 8021b58: 3710 adds r7, #16
  83094. 8021b5a: 46bd mov sp, r7
  83095. 8021b5c: bd80 pop {r7, pc}
  83096. ...
  83097. 08021b60 <dhcp_handle_ack>:
  83098. *
  83099. * @param netif the netif under DHCP control
  83100. */
  83101. static void
  83102. dhcp_handle_ack(struct netif *netif, struct dhcp_msg *msg_in)
  83103. {
  83104. 8021b60: b580 push {r7, lr}
  83105. 8021b62: b084 sub sp, #16
  83106. 8021b64: af00 add r7, sp, #0
  83107. 8021b66: 6078 str r0, [r7, #4]
  83108. 8021b68: 6039 str r1, [r7, #0]
  83109. struct dhcp *dhcp = netif_dhcp_data(netif);
  83110. 8021b6a: 687b ldr r3, [r7, #4]
  83111. 8021b6c: 6a5b ldr r3, [r3, #36] @ 0x24
  83112. 8021b6e: 60fb str r3, [r7, #12]
  83113. #if LWIP_DHCP_GET_NTP_SRV
  83114. ip4_addr_t ntp_server_addrs[LWIP_DHCP_MAX_NTP_SERVERS];
  83115. #endif
  83116. /* clear options we might not get from the ACK */
  83117. ip4_addr_set_zero(&dhcp->offered_sn_mask);
  83118. 8021b70: 68fb ldr r3, [r7, #12]
  83119. 8021b72: 2200 movs r2, #0
  83120. 8021b74: 621a str r2, [r3, #32]
  83121. ip4_addr_set_zero(&dhcp->offered_gw_addr);
  83122. 8021b76: 68fb ldr r3, [r7, #12]
  83123. 8021b78: 2200 movs r2, #0
  83124. 8021b7a: 625a str r2, [r3, #36] @ 0x24
  83125. #if LWIP_DHCP_BOOTP_FILE
  83126. ip4_addr_set_zero(&dhcp->offered_si_addr);
  83127. #endif /* LWIP_DHCP_BOOTP_FILE */
  83128. /* lease time given? */
  83129. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_LEASE_TIME)) {
  83130. 8021b7c: 4b26 ldr r3, [pc, #152] @ (8021c18 <dhcp_handle_ack+0xb8>)
  83131. 8021b7e: 78db ldrb r3, [r3, #3]
  83132. 8021b80: 2b00 cmp r3, #0
  83133. 8021b82: d003 beq.n 8021b8c <dhcp_handle_ack+0x2c>
  83134. /* remember offered lease time */
  83135. dhcp->offered_t0_lease = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_LEASE_TIME);
  83136. 8021b84: 4b25 ldr r3, [pc, #148] @ (8021c1c <dhcp_handle_ack+0xbc>)
  83137. 8021b86: 68da ldr r2, [r3, #12]
  83138. 8021b88: 68fb ldr r3, [r7, #12]
  83139. 8021b8a: 629a str r2, [r3, #40] @ 0x28
  83140. }
  83141. /* renewal period given? */
  83142. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_T1)) {
  83143. 8021b8c: 4b22 ldr r3, [pc, #136] @ (8021c18 <dhcp_handle_ack+0xb8>)
  83144. 8021b8e: 791b ldrb r3, [r3, #4]
  83145. 8021b90: 2b00 cmp r3, #0
  83146. 8021b92: d004 beq.n 8021b9e <dhcp_handle_ack+0x3e>
  83147. /* remember given renewal period */
  83148. dhcp->offered_t1_renew = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_T1);
  83149. 8021b94: 4b21 ldr r3, [pc, #132] @ (8021c1c <dhcp_handle_ack+0xbc>)
  83150. 8021b96: 691a ldr r2, [r3, #16]
  83151. 8021b98: 68fb ldr r3, [r7, #12]
  83152. 8021b9a: 62da str r2, [r3, #44] @ 0x2c
  83153. 8021b9c: e004 b.n 8021ba8 <dhcp_handle_ack+0x48>
  83154. } else {
  83155. /* calculate safe periods for renewal */
  83156. dhcp->offered_t1_renew = dhcp->offered_t0_lease / 2;
  83157. 8021b9e: 68fb ldr r3, [r7, #12]
  83158. 8021ba0: 6a9b ldr r3, [r3, #40] @ 0x28
  83159. 8021ba2: 085a lsrs r2, r3, #1
  83160. 8021ba4: 68fb ldr r3, [r7, #12]
  83161. 8021ba6: 62da str r2, [r3, #44] @ 0x2c
  83162. }
  83163. /* renewal period given? */
  83164. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_T2)) {
  83165. 8021ba8: 4b1b ldr r3, [pc, #108] @ (8021c18 <dhcp_handle_ack+0xb8>)
  83166. 8021baa: 795b ldrb r3, [r3, #5]
  83167. 8021bac: 2b00 cmp r3, #0
  83168. 8021bae: d004 beq.n 8021bba <dhcp_handle_ack+0x5a>
  83169. /* remember given rebind period */
  83170. dhcp->offered_t2_rebind = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_T2);
  83171. 8021bb0: 4b1a ldr r3, [pc, #104] @ (8021c1c <dhcp_handle_ack+0xbc>)
  83172. 8021bb2: 695a ldr r2, [r3, #20]
  83173. 8021bb4: 68fb ldr r3, [r7, #12]
  83174. 8021bb6: 631a str r2, [r3, #48] @ 0x30
  83175. 8021bb8: e007 b.n 8021bca <dhcp_handle_ack+0x6a>
  83176. } else {
  83177. /* calculate safe periods for rebinding (offered_t0_lease * 0.875 -> 87.5%)*/
  83178. dhcp->offered_t2_rebind = (dhcp->offered_t0_lease * 7U) / 8U;
  83179. 8021bba: 68fb ldr r3, [r7, #12]
  83180. 8021bbc: 6a9a ldr r2, [r3, #40] @ 0x28
  83181. 8021bbe: 4613 mov r3, r2
  83182. 8021bc0: 00db lsls r3, r3, #3
  83183. 8021bc2: 1a9b subs r3, r3, r2
  83184. 8021bc4: 08da lsrs r2, r3, #3
  83185. 8021bc6: 68fb ldr r3, [r7, #12]
  83186. 8021bc8: 631a str r2, [r3, #48] @ 0x30
  83187. }
  83188. /* (y)our internet address */
  83189. ip4_addr_copy(dhcp->offered_ip_addr, msg_in->yiaddr);
  83190. 8021bca: 683b ldr r3, [r7, #0]
  83191. 8021bcc: 691a ldr r2, [r3, #16]
  83192. 8021bce: 68fb ldr r3, [r7, #12]
  83193. 8021bd0: 61da str r2, [r3, #28]
  83194. boot file name copied in dhcp_parse_reply if not overloaded */
  83195. ip4_addr_copy(dhcp->offered_si_addr, msg_in->siaddr);
  83196. #endif /* LWIP_DHCP_BOOTP_FILE */
  83197. /* subnet mask given? */
  83198. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_SUBNET_MASK)) {
  83199. 8021bd2: 4b11 ldr r3, [pc, #68] @ (8021c18 <dhcp_handle_ack+0xb8>)
  83200. 8021bd4: 799b ldrb r3, [r3, #6]
  83201. 8021bd6: 2b00 cmp r3, #0
  83202. 8021bd8: d00b beq.n 8021bf2 <dhcp_handle_ack+0x92>
  83203. /* remember given subnet mask */
  83204. ip4_addr_set_u32(&dhcp->offered_sn_mask, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_SUBNET_MASK)));
  83205. 8021bda: 4b10 ldr r3, [pc, #64] @ (8021c1c <dhcp_handle_ack+0xbc>)
  83206. 8021bdc: 699b ldr r3, [r3, #24]
  83207. 8021bde: 4618 mov r0, r3
  83208. 8021be0: f7f6 fd4f bl 8018682 <lwip_htonl>
  83209. 8021be4: 4602 mov r2, r0
  83210. 8021be6: 68fb ldr r3, [r7, #12]
  83211. 8021be8: 621a str r2, [r3, #32]
  83212. dhcp->subnet_mask_given = 1;
  83213. 8021bea: 68fb ldr r3, [r7, #12]
  83214. 8021bec: 2201 movs r2, #1
  83215. 8021bee: 71da strb r2, [r3, #7]
  83216. 8021bf0: e002 b.n 8021bf8 <dhcp_handle_ack+0x98>
  83217. } else {
  83218. dhcp->subnet_mask_given = 0;
  83219. 8021bf2: 68fb ldr r3, [r7, #12]
  83220. 8021bf4: 2200 movs r2, #0
  83221. 8021bf6: 71da strb r2, [r3, #7]
  83222. }
  83223. /* gateway router */
  83224. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_ROUTER)) {
  83225. 8021bf8: 4b07 ldr r3, [pc, #28] @ (8021c18 <dhcp_handle_ack+0xb8>)
  83226. 8021bfa: 79db ldrb r3, [r3, #7]
  83227. 8021bfc: 2b00 cmp r3, #0
  83228. 8021bfe: d007 beq.n 8021c10 <dhcp_handle_ack+0xb0>
  83229. ip4_addr_set_u32(&dhcp->offered_gw_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_ROUTER)));
  83230. 8021c00: 4b06 ldr r3, [pc, #24] @ (8021c1c <dhcp_handle_ack+0xbc>)
  83231. 8021c02: 69db ldr r3, [r3, #28]
  83232. 8021c04: 4618 mov r0, r3
  83233. 8021c06: f7f6 fd3c bl 8018682 <lwip_htonl>
  83234. 8021c0a: 4602 mov r2, r0
  83235. 8021c0c: 68fb ldr r3, [r7, #12]
  83236. 8021c0e: 625a str r2, [r3, #36] @ 0x24
  83237. ip_addr_t dns_addr;
  83238. ip_addr_set_ip4_u32_val(dns_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_DNS_SERVER + n)));
  83239. dns_setserver(n, &dns_addr);
  83240. }
  83241. #endif /* LWIP_DHCP_PROVIDE_DNS_SERVERS */
  83242. }
  83243. 8021c10: bf00 nop
  83244. 8021c12: 3710 adds r7, #16
  83245. 8021c14: 46bd mov sp, r7
  83246. 8021c16: bd80 pop {r7, pc}
  83247. 8021c18: 2402a070 .word 0x2402a070
  83248. 8021c1c: 2402a050 .word 0x2402a050
  83249. 08021c20 <dhcp_start>:
  83250. * - ERR_OK - No error
  83251. * - ERR_MEM - Out of memory
  83252. */
  83253. err_t
  83254. dhcp_start(struct netif *netif)
  83255. {
  83256. 8021c20: b580 push {r7, lr}
  83257. 8021c22: b084 sub sp, #16
  83258. 8021c24: af00 add r7, sp, #0
  83259. 8021c26: 6078 str r0, [r7, #4]
  83260. struct dhcp *dhcp;
  83261. err_t result;
  83262. LWIP_ASSERT_CORE_LOCKED();
  83263. 8021c28: f7ee fa22 bl 8010070 <sys_check_core_locking>
  83264. LWIP_ERROR("netif != NULL", (netif != NULL), return ERR_ARG;);
  83265. 8021c2c: 687b ldr r3, [r7, #4]
  83266. 8021c2e: 2b00 cmp r3, #0
  83267. 8021c30: d109 bne.n 8021c46 <dhcp_start+0x26>
  83268. 8021c32: 4b37 ldr r3, [pc, #220] @ (8021d10 <dhcp_start+0xf0>)
  83269. 8021c34: f240 22e7 movw r2, #743 @ 0x2e7
  83270. 8021c38: 4936 ldr r1, [pc, #216] @ (8021d14 <dhcp_start+0xf4>)
  83271. 8021c3a: 4837 ldr r0, [pc, #220] @ (8021d18 <dhcp_start+0xf8>)
  83272. 8021c3c: f007 fc66 bl 802950c <iprintf>
  83273. 8021c40: f06f 030f mvn.w r3, #15
  83274. 8021c44: e060 b.n 8021d08 <dhcp_start+0xe8>
  83275. LWIP_ERROR("netif is not up, old style port?", netif_is_up(netif), return ERR_ARG;);
  83276. 8021c46: 687b ldr r3, [r7, #4]
  83277. 8021c48: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  83278. 8021c4c: f003 0301 and.w r3, r3, #1
  83279. 8021c50: 2b00 cmp r3, #0
  83280. 8021c52: d109 bne.n 8021c68 <dhcp_start+0x48>
  83281. 8021c54: 4b2e ldr r3, [pc, #184] @ (8021d10 <dhcp_start+0xf0>)
  83282. 8021c56: f44f 723a mov.w r2, #744 @ 0x2e8
  83283. 8021c5a: 4930 ldr r1, [pc, #192] @ (8021d1c <dhcp_start+0xfc>)
  83284. 8021c5c: 482e ldr r0, [pc, #184] @ (8021d18 <dhcp_start+0xf8>)
  83285. 8021c5e: f007 fc55 bl 802950c <iprintf>
  83286. 8021c62: f06f 030f mvn.w r3, #15
  83287. 8021c66: e04f b.n 8021d08 <dhcp_start+0xe8>
  83288. dhcp = netif_dhcp_data(netif);
  83289. 8021c68: 687b ldr r3, [r7, #4]
  83290. 8021c6a: 6a5b ldr r3, [r3, #36] @ 0x24
  83291. 8021c6c: 60fb str r3, [r7, #12]
  83292. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_start(netif=%p) %c%c%"U16_F"\n", (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num));
  83293. /* check MTU of the netif */
  83294. if (netif->mtu < DHCP_MAX_MSG_LEN_MIN_REQUIRED) {
  83295. 8021c6e: 687b ldr r3, [r7, #4]
  83296. 8021c70: 8d1b ldrh r3, [r3, #40] @ 0x28
  83297. 8021c72: f5b3 7f10 cmp.w r3, #576 @ 0x240
  83298. 8021c76: d202 bcs.n 8021c7e <dhcp_start+0x5e>
  83299. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): Cannot use this netif with DHCP: MTU is too small\n"));
  83300. return ERR_MEM;
  83301. 8021c78: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  83302. 8021c7c: e044 b.n 8021d08 <dhcp_start+0xe8>
  83303. }
  83304. /* no DHCP client attached yet? */
  83305. if (dhcp == NULL) {
  83306. 8021c7e: 68fb ldr r3, [r7, #12]
  83307. 8021c80: 2b00 cmp r3, #0
  83308. 8021c82: d10d bne.n 8021ca0 <dhcp_start+0x80>
  83309. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): mallocing new DHCP client\n"));
  83310. dhcp = (struct dhcp *)mem_malloc(sizeof(struct dhcp));
  83311. 8021c84: 2034 movs r0, #52 @ 0x34
  83312. 8021c86: f7f7 f8c9 bl 8018e1c <mem_malloc>
  83313. 8021c8a: 60f8 str r0, [r7, #12]
  83314. if (dhcp == NULL) {
  83315. 8021c8c: 68fb ldr r3, [r7, #12]
  83316. 8021c8e: 2b00 cmp r3, #0
  83317. 8021c90: d102 bne.n 8021c98 <dhcp_start+0x78>
  83318. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): could not allocate dhcp\n"));
  83319. return ERR_MEM;
  83320. 8021c92: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  83321. 8021c96: e037 b.n 8021d08 <dhcp_start+0xe8>
  83322. }
  83323. /* store this dhcp client in the netif */
  83324. netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP, dhcp);
  83325. 8021c98: 687b ldr r3, [r7, #4]
  83326. 8021c9a: 68fa ldr r2, [r7, #12]
  83327. 8021c9c: 625a str r2, [r3, #36] @ 0x24
  83328. 8021c9e: e005 b.n 8021cac <dhcp_start+0x8c>
  83329. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): allocated dhcp"));
  83330. /* already has DHCP client attached */
  83331. } else {
  83332. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_start(): restarting DHCP configuration\n"));
  83333. if (dhcp->pcb_allocated != 0) {
  83334. 8021ca0: 68fb ldr r3, [r7, #12]
  83335. 8021ca2: 791b ldrb r3, [r3, #4]
  83336. 8021ca4: 2b00 cmp r3, #0
  83337. 8021ca6: d001 beq.n 8021cac <dhcp_start+0x8c>
  83338. dhcp_dec_pcb_refcount(); /* free DHCP PCB if not needed any more */
  83339. 8021ca8: f7ff fc8e bl 80215c8 <dhcp_dec_pcb_refcount>
  83340. }
  83341. /* dhcp is cleared below, no need to reset flag*/
  83342. }
  83343. /* clear data structure */
  83344. memset(dhcp, 0, sizeof(struct dhcp));
  83345. 8021cac: 2234 movs r2, #52 @ 0x34
  83346. 8021cae: 2100 movs r1, #0
  83347. 8021cb0: 68f8 ldr r0, [r7, #12]
  83348. 8021cb2: f007 fdbd bl 8029830 <memset>
  83349. /* dhcp_set_state(&dhcp, DHCP_STATE_OFF); */
  83350. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): starting DHCP configuration\n"));
  83351. if (dhcp_inc_pcb_refcount() != ERR_OK) { /* ensure DHCP PCB is allocated */
  83352. 8021cb6: f7ff fc35 bl 8021524 <dhcp_inc_pcb_refcount>
  83353. 8021cba: 4603 mov r3, r0
  83354. 8021cbc: 2b00 cmp r3, #0
  83355. 8021cbe: d002 beq.n 8021cc6 <dhcp_start+0xa6>
  83356. return ERR_MEM;
  83357. 8021cc0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  83358. 8021cc4: e020 b.n 8021d08 <dhcp_start+0xe8>
  83359. }
  83360. dhcp->pcb_allocated = 1;
  83361. 8021cc6: 68fb ldr r3, [r7, #12]
  83362. 8021cc8: 2201 movs r2, #1
  83363. 8021cca: 711a strb r2, [r3, #4]
  83364. if (!netif_is_link_up(netif)) {
  83365. 8021ccc: 687b ldr r3, [r7, #4]
  83366. 8021cce: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  83367. 8021cd2: f003 0304 and.w r3, r3, #4
  83368. 8021cd6: 2b00 cmp r3, #0
  83369. 8021cd8: d105 bne.n 8021ce6 <dhcp_start+0xc6>
  83370. /* set state INIT and wait for dhcp_network_changed() to call dhcp_discover() */
  83371. dhcp_set_state(dhcp, DHCP_STATE_INIT);
  83372. 8021cda: 2102 movs r1, #2
  83373. 8021cdc: 68f8 ldr r0, [r7, #12]
  83374. 8021cde: f000 fd0a bl 80226f6 <dhcp_set_state>
  83375. return ERR_OK;
  83376. 8021ce2: 2300 movs r3, #0
  83377. 8021ce4: e010 b.n 8021d08 <dhcp_start+0xe8>
  83378. }
  83379. /* (re)start the DHCP negotiation */
  83380. result = dhcp_discover(netif);
  83381. 8021ce6: 6878 ldr r0, [r7, #4]
  83382. 8021ce8: f000 f8f8 bl 8021edc <dhcp_discover>
  83383. 8021cec: 4603 mov r3, r0
  83384. 8021cee: 72fb strb r3, [r7, #11]
  83385. if (result != ERR_OK) {
  83386. 8021cf0: f997 300b ldrsb.w r3, [r7, #11]
  83387. 8021cf4: 2b00 cmp r3, #0
  83388. 8021cf6: d005 beq.n 8021d04 <dhcp_start+0xe4>
  83389. /* free resources allocated above */
  83390. dhcp_release_and_stop(netif);
  83391. 8021cf8: 6878 ldr r0, [r7, #4]
  83392. 8021cfa: f000 fc55 bl 80225a8 <dhcp_release_and_stop>
  83393. return ERR_MEM;
  83394. 8021cfe: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  83395. 8021d02: e001 b.n 8021d08 <dhcp_start+0xe8>
  83396. }
  83397. return result;
  83398. 8021d04: f997 300b ldrsb.w r3, [r7, #11]
  83399. }
  83400. 8021d08: 4618 mov r0, r3
  83401. 8021d0a: 3710 adds r7, #16
  83402. 8021d0c: 46bd mov sp, r7
  83403. 8021d0e: bd80 pop {r7, pc}
  83404. 8021d10: 0802f9e8 .word 0x0802f9e8
  83405. 8021d14: 0802facc .word 0x0802facc
  83406. 8021d18: 0802fa48 .word 0x0802fa48
  83407. 8021d1c: 0802fb10 .word 0x0802fb10
  83408. 08021d20 <dhcp_network_changed>:
  83409. * This enters the REBOOTING state to verify that the currently bound
  83410. * address is still valid.
  83411. */
  83412. void
  83413. dhcp_network_changed(struct netif *netif)
  83414. {
  83415. 8021d20: b580 push {r7, lr}
  83416. 8021d22: b084 sub sp, #16
  83417. 8021d24: af00 add r7, sp, #0
  83418. 8021d26: 6078 str r0, [r7, #4]
  83419. struct dhcp *dhcp = netif_dhcp_data(netif);
  83420. 8021d28: 687b ldr r3, [r7, #4]
  83421. 8021d2a: 6a5b ldr r3, [r3, #36] @ 0x24
  83422. 8021d2c: 60fb str r3, [r7, #12]
  83423. if (!dhcp) {
  83424. 8021d2e: 68fb ldr r3, [r7, #12]
  83425. 8021d30: 2b00 cmp r3, #0
  83426. 8021d32: d025 beq.n 8021d80 <dhcp_network_changed+0x60>
  83427. return;
  83428. }
  83429. switch (dhcp->state) {
  83430. 8021d34: 68fb ldr r3, [r7, #12]
  83431. 8021d36: 795b ldrb r3, [r3, #5]
  83432. 8021d38: 2b0a cmp r3, #10
  83433. 8021d3a: d008 beq.n 8021d4e <dhcp_network_changed+0x2e>
  83434. 8021d3c: 2b0a cmp r3, #10
  83435. 8021d3e: dc0d bgt.n 8021d5c <dhcp_network_changed+0x3c>
  83436. 8021d40: 2b00 cmp r3, #0
  83437. 8021d42: d01f beq.n 8021d84 <dhcp_network_changed+0x64>
  83438. 8021d44: 2b00 cmp r3, #0
  83439. 8021d46: db09 blt.n 8021d5c <dhcp_network_changed+0x3c>
  83440. 8021d48: 3b03 subs r3, #3
  83441. 8021d4a: 2b02 cmp r3, #2
  83442. 8021d4c: d806 bhi.n 8021d5c <dhcp_network_changed+0x3c>
  83443. case DHCP_STATE_REBINDING:
  83444. case DHCP_STATE_RENEWING:
  83445. case DHCP_STATE_BOUND:
  83446. case DHCP_STATE_REBOOTING:
  83447. dhcp->tries = 0;
  83448. 8021d4e: 68fb ldr r3, [r7, #12]
  83449. 8021d50: 2200 movs r2, #0
  83450. 8021d52: 719a strb r2, [r3, #6]
  83451. dhcp_reboot(netif);
  83452. 8021d54: 6878 ldr r0, [r7, #4]
  83453. 8021d56: f000 fb73 bl 8022440 <dhcp_reboot>
  83454. break;
  83455. 8021d5a: e014 b.n 8021d86 <dhcp_network_changed+0x66>
  83456. case DHCP_STATE_OFF:
  83457. /* stay off */
  83458. break;
  83459. default:
  83460. LWIP_ASSERT("invalid dhcp->state", dhcp->state <= DHCP_STATE_BACKING_OFF);
  83461. 8021d5c: 68fb ldr r3, [r7, #12]
  83462. 8021d5e: 795b ldrb r3, [r3, #5]
  83463. 8021d60: 2b0c cmp r3, #12
  83464. 8021d62: d906 bls.n 8021d72 <dhcp_network_changed+0x52>
  83465. 8021d64: 4b09 ldr r3, [pc, #36] @ (8021d8c <dhcp_network_changed+0x6c>)
  83466. 8021d66: f240 326d movw r2, #877 @ 0x36d
  83467. 8021d6a: 4909 ldr r1, [pc, #36] @ (8021d90 <dhcp_network_changed+0x70>)
  83468. 8021d6c: 4809 ldr r0, [pc, #36] @ (8021d94 <dhcp_network_changed+0x74>)
  83469. 8021d6e: f007 fbcd bl 802950c <iprintf>
  83470. autoip_stop(netif);
  83471. dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_OFF;
  83472. }
  83473. #endif /* LWIP_DHCP_AUTOIP_COOP */
  83474. /* ensure we start with short timeouts, even if already discovering */
  83475. dhcp->tries = 0;
  83476. 8021d72: 68fb ldr r3, [r7, #12]
  83477. 8021d74: 2200 movs r2, #0
  83478. 8021d76: 719a strb r2, [r3, #6]
  83479. dhcp_discover(netif);
  83480. 8021d78: 6878 ldr r0, [r7, #4]
  83481. 8021d7a: f000 f8af bl 8021edc <dhcp_discover>
  83482. break;
  83483. 8021d7e: e002 b.n 8021d86 <dhcp_network_changed+0x66>
  83484. return;
  83485. 8021d80: bf00 nop
  83486. 8021d82: e000 b.n 8021d86 <dhcp_network_changed+0x66>
  83487. break;
  83488. 8021d84: bf00 nop
  83489. }
  83490. }
  83491. 8021d86: 3710 adds r7, #16
  83492. 8021d88: 46bd mov sp, r7
  83493. 8021d8a: bd80 pop {r7, pc}
  83494. 8021d8c: 0802f9e8 .word 0x0802f9e8
  83495. 8021d90: 0802fb34 .word 0x0802fb34
  83496. 8021d94: 0802fa48 .word 0x0802fa48
  83497. 08021d98 <dhcp_arp_reply>:
  83498. * @param netif the network interface on which the reply was received
  83499. * @param addr The IP address we received a reply from
  83500. */
  83501. void
  83502. dhcp_arp_reply(struct netif *netif, const ip4_addr_t *addr)
  83503. {
  83504. 8021d98: b580 push {r7, lr}
  83505. 8021d9a: b084 sub sp, #16
  83506. 8021d9c: af00 add r7, sp, #0
  83507. 8021d9e: 6078 str r0, [r7, #4]
  83508. 8021da0: 6039 str r1, [r7, #0]
  83509. struct dhcp *dhcp;
  83510. LWIP_ERROR("netif != NULL", (netif != NULL), return;);
  83511. 8021da2: 687b ldr r3, [r7, #4]
  83512. 8021da4: 2b00 cmp r3, #0
  83513. 8021da6: d107 bne.n 8021db8 <dhcp_arp_reply+0x20>
  83514. 8021da8: 4b0e ldr r3, [pc, #56] @ (8021de4 <dhcp_arp_reply+0x4c>)
  83515. 8021daa: f240 328b movw r2, #907 @ 0x38b
  83516. 8021dae: 490e ldr r1, [pc, #56] @ (8021de8 <dhcp_arp_reply+0x50>)
  83517. 8021db0: 480e ldr r0, [pc, #56] @ (8021dec <dhcp_arp_reply+0x54>)
  83518. 8021db2: f007 fbab bl 802950c <iprintf>
  83519. 8021db6: e012 b.n 8021dde <dhcp_arp_reply+0x46>
  83520. dhcp = netif_dhcp_data(netif);
  83521. 8021db8: 687b ldr r3, [r7, #4]
  83522. 8021dba: 6a5b ldr r3, [r3, #36] @ 0x24
  83523. 8021dbc: 60fb str r3, [r7, #12]
  83524. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_arp_reply()\n"));
  83525. /* is a DHCP client doing an ARP check? */
  83526. if ((dhcp != NULL) && (dhcp->state == DHCP_STATE_CHECKING)) {
  83527. 8021dbe: 68fb ldr r3, [r7, #12]
  83528. 8021dc0: 2b00 cmp r3, #0
  83529. 8021dc2: d00c beq.n 8021dde <dhcp_arp_reply+0x46>
  83530. 8021dc4: 68fb ldr r3, [r7, #12]
  83531. 8021dc6: 795b ldrb r3, [r3, #5]
  83532. 8021dc8: 2b08 cmp r3, #8
  83533. 8021dca: d108 bne.n 8021dde <dhcp_arp_reply+0x46>
  83534. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_arp_reply(): CHECKING, arp reply for 0x%08"X32_F"\n",
  83535. ip4_addr_get_u32(addr)));
  83536. /* did a host respond with the address we
  83537. were offered by the DHCP server? */
  83538. if (ip4_addr_cmp(addr, &dhcp->offered_ip_addr)) {
  83539. 8021dcc: 683b ldr r3, [r7, #0]
  83540. 8021dce: 681a ldr r2, [r3, #0]
  83541. 8021dd0: 68fb ldr r3, [r7, #12]
  83542. 8021dd2: 69db ldr r3, [r3, #28]
  83543. 8021dd4: 429a cmp r2, r3
  83544. 8021dd6: d102 bne.n 8021dde <dhcp_arp_reply+0x46>
  83545. /* we will not accept the offered address */
  83546. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE | LWIP_DBG_LEVEL_WARNING,
  83547. ("dhcp_arp_reply(): arp reply matched with offered address, declining\n"));
  83548. dhcp_decline(netif);
  83549. 8021dd8: 6878 ldr r0, [r7, #4]
  83550. 8021dda: f000 f809 bl 8021df0 <dhcp_decline>
  83551. }
  83552. }
  83553. }
  83554. 8021dde: 3710 adds r7, #16
  83555. 8021de0: 46bd mov sp, r7
  83556. 8021de2: bd80 pop {r7, pc}
  83557. 8021de4: 0802f9e8 .word 0x0802f9e8
  83558. 8021de8: 0802facc .word 0x0802facc
  83559. 8021dec: 0802fa48 .word 0x0802fa48
  83560. 08021df0 <dhcp_decline>:
  83561. *
  83562. * @param netif the netif under DHCP control
  83563. */
  83564. static err_t
  83565. dhcp_decline(struct netif *netif)
  83566. {
  83567. 8021df0: b5b0 push {r4, r5, r7, lr}
  83568. 8021df2: b08a sub sp, #40 @ 0x28
  83569. 8021df4: af02 add r7, sp, #8
  83570. 8021df6: 6078 str r0, [r7, #4]
  83571. struct dhcp *dhcp = netif_dhcp_data(netif);
  83572. 8021df8: 687b ldr r3, [r7, #4]
  83573. 8021dfa: 6a5b ldr r3, [r3, #36] @ 0x24
  83574. 8021dfc: 61bb str r3, [r7, #24]
  83575. u16_t msecs;
  83576. struct pbuf *p_out;
  83577. u16_t options_out_len;
  83578. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_decline()\n"));
  83579. dhcp_set_state(dhcp, DHCP_STATE_BACKING_OFF);
  83580. 8021dfe: 210c movs r1, #12
  83581. 8021e00: 69b8 ldr r0, [r7, #24]
  83582. 8021e02: f000 fc78 bl 80226f6 <dhcp_set_state>
  83583. /* create and initialize the DHCP message header */
  83584. p_out = dhcp_create_msg(netif, dhcp, DHCP_DECLINE, &options_out_len);
  83585. 8021e06: f107 030c add.w r3, r7, #12
  83586. 8021e0a: 2204 movs r2, #4
  83587. 8021e0c: 69b9 ldr r1, [r7, #24]
  83588. 8021e0e: 6878 ldr r0, [r7, #4]
  83589. 8021e10: f001 f90a bl 8023028 <dhcp_create_msg>
  83590. 8021e14: 6178 str r0, [r7, #20]
  83591. if (p_out != NULL) {
  83592. 8021e16: 697b ldr r3, [r7, #20]
  83593. 8021e18: 2b00 cmp r3, #0
  83594. 8021e1a: d035 beq.n 8021e88 <dhcp_decline+0x98>
  83595. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  83596. 8021e1c: 697b ldr r3, [r7, #20]
  83597. 8021e1e: 685b ldr r3, [r3, #4]
  83598. 8021e20: 613b str r3, [r7, #16]
  83599. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_REQUESTED_IP, 4);
  83600. 8021e22: 89b8 ldrh r0, [r7, #12]
  83601. 8021e24: 693b ldr r3, [r7, #16]
  83602. 8021e26: f103 01f0 add.w r1, r3, #240 @ 0xf0
  83603. 8021e2a: 2304 movs r3, #4
  83604. 8021e2c: 2232 movs r2, #50 @ 0x32
  83605. 8021e2e: f000 fc7d bl 802272c <dhcp_option>
  83606. 8021e32: 4603 mov r3, r0
  83607. 8021e34: 81bb strh r3, [r7, #12]
  83608. options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(&dhcp->offered_ip_addr)));
  83609. 8021e36: 89bc ldrh r4, [r7, #12]
  83610. 8021e38: 693b ldr r3, [r7, #16]
  83611. 8021e3a: f103 05f0 add.w r5, r3, #240 @ 0xf0
  83612. 8021e3e: 69bb ldr r3, [r7, #24]
  83613. 8021e40: 69db ldr r3, [r3, #28]
  83614. 8021e42: 4618 mov r0, r3
  83615. 8021e44: f7f6 fc1d bl 8018682 <lwip_htonl>
  83616. 8021e48: 4603 mov r3, r0
  83617. 8021e4a: 461a mov r2, r3
  83618. 8021e4c: 4629 mov r1, r5
  83619. 8021e4e: 4620 mov r0, r4
  83620. 8021e50: f000 fcf8 bl 8022844 <dhcp_option_long>
  83621. 8021e54: 4603 mov r3, r0
  83622. 8021e56: 81bb strh r3, [r7, #12]
  83623. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_BACKING_OFF, msg_out, DHCP_DECLINE, &options_out_len);
  83624. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  83625. 8021e58: 89b8 ldrh r0, [r7, #12]
  83626. 8021e5a: 693b ldr r3, [r7, #16]
  83627. 8021e5c: 33f0 adds r3, #240 @ 0xf0
  83628. 8021e5e: 697a ldr r2, [r7, #20]
  83629. 8021e60: 4619 mov r1, r3
  83630. 8021e62: f001 f9b7 bl 80231d4 <dhcp_option_trailer>
  83631. /* per section 4.4.4, broadcast DECLINE messages */
  83632. result = udp_sendto_if_src(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif, IP4_ADDR_ANY);
  83633. 8021e66: 4b19 ldr r3, [pc, #100] @ (8021ecc <dhcp_decline+0xdc>)
  83634. 8021e68: 6818 ldr r0, [r3, #0]
  83635. 8021e6a: 4b19 ldr r3, [pc, #100] @ (8021ed0 <dhcp_decline+0xe0>)
  83636. 8021e6c: 9301 str r3, [sp, #4]
  83637. 8021e6e: 687b ldr r3, [r7, #4]
  83638. 8021e70: 9300 str r3, [sp, #0]
  83639. 8021e72: 2343 movs r3, #67 @ 0x43
  83640. 8021e74: 4a17 ldr r2, [pc, #92] @ (8021ed4 <dhcp_decline+0xe4>)
  83641. 8021e76: 6979 ldr r1, [r7, #20]
  83642. 8021e78: f7ff f88a bl 8020f90 <udp_sendto_if_src>
  83643. 8021e7c: 4603 mov r3, r0
  83644. 8021e7e: 77fb strb r3, [r7, #31]
  83645. pbuf_free(p_out);
  83646. 8021e80: 6978 ldr r0, [r7, #20]
  83647. 8021e82: f7f8 f8cb bl 801a01c <pbuf_free>
  83648. 8021e86: e001 b.n 8021e8c <dhcp_decline+0x9c>
  83649. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_decline: BACKING OFF\n"));
  83650. } else {
  83651. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS,
  83652. ("dhcp_decline: could not allocate DHCP request\n"));
  83653. result = ERR_MEM;
  83654. 8021e88: 23ff movs r3, #255 @ 0xff
  83655. 8021e8a: 77fb strb r3, [r7, #31]
  83656. }
  83657. if (dhcp->tries < 255) {
  83658. 8021e8c: 69bb ldr r3, [r7, #24]
  83659. 8021e8e: 799b ldrb r3, [r3, #6]
  83660. 8021e90: 2bff cmp r3, #255 @ 0xff
  83661. 8021e92: d005 beq.n 8021ea0 <dhcp_decline+0xb0>
  83662. dhcp->tries++;
  83663. 8021e94: 69bb ldr r3, [r7, #24]
  83664. 8021e96: 799b ldrb r3, [r3, #6]
  83665. 8021e98: 3301 adds r3, #1
  83666. 8021e9a: b2da uxtb r2, r3
  83667. 8021e9c: 69bb ldr r3, [r7, #24]
  83668. 8021e9e: 719a strb r2, [r3, #6]
  83669. }
  83670. msecs = 10 * 1000;
  83671. 8021ea0: f242 7310 movw r3, #10000 @ 0x2710
  83672. 8021ea4: 81fb strh r3, [r7, #14]
  83673. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  83674. 8021ea6: 89fb ldrh r3, [r7, #14]
  83675. 8021ea8: f203 13f3 addw r3, r3, #499 @ 0x1f3
  83676. 8021eac: 4a0a ldr r2, [pc, #40] @ (8021ed8 <dhcp_decline+0xe8>)
  83677. 8021eae: fb82 1203 smull r1, r2, r2, r3
  83678. 8021eb2: 1152 asrs r2, r2, #5
  83679. 8021eb4: 17db asrs r3, r3, #31
  83680. 8021eb6: 1ad3 subs r3, r2, r3
  83681. 8021eb8: b29a uxth r2, r3
  83682. 8021eba: 69bb ldr r3, [r7, #24]
  83683. 8021ebc: 811a strh r2, [r3, #8]
  83684. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_decline(): set request timeout %"U16_F" msecs\n", msecs));
  83685. return result;
  83686. 8021ebe: f997 301f ldrsb.w r3, [r7, #31]
  83687. }
  83688. 8021ec2: 4618 mov r0, r3
  83689. 8021ec4: 3720 adds r7, #32
  83690. 8021ec6: 46bd mov sp, r7
  83691. 8021ec8: bdb0 pop {r4, r5, r7, pc}
  83692. 8021eca: bf00 nop
  83693. 8021ecc: 2402a078 .word 0x2402a078
  83694. 8021ed0: 080307a4 .word 0x080307a4
  83695. 8021ed4: 080307a8 .word 0x080307a8
  83696. 8021ed8: 10624dd3 .word 0x10624dd3
  83697. 08021edc <dhcp_discover>:
  83698. *
  83699. * @param netif the netif under DHCP control
  83700. */
  83701. static err_t
  83702. dhcp_discover(struct netif *netif)
  83703. {
  83704. 8021edc: b580 push {r7, lr}
  83705. 8021ede: b08a sub sp, #40 @ 0x28
  83706. 8021ee0: af02 add r7, sp, #8
  83707. 8021ee2: 6078 str r0, [r7, #4]
  83708. struct dhcp *dhcp = netif_dhcp_data(netif);
  83709. 8021ee4: 687b ldr r3, [r7, #4]
  83710. 8021ee6: 6a5b ldr r3, [r3, #36] @ 0x24
  83711. 8021ee8: 61bb str r3, [r7, #24]
  83712. err_t result = ERR_OK;
  83713. 8021eea: 2300 movs r3, #0
  83714. 8021eec: 75fb strb r3, [r7, #23]
  83715. struct pbuf *p_out;
  83716. u16_t options_out_len;
  83717. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_discover()\n"));
  83718. ip4_addr_set_any(&dhcp->offered_ip_addr);
  83719. 8021eee: 69bb ldr r3, [r7, #24]
  83720. 8021ef0: 2200 movs r2, #0
  83721. 8021ef2: 61da str r2, [r3, #28]
  83722. dhcp_set_state(dhcp, DHCP_STATE_SELECTING);
  83723. 8021ef4: 2106 movs r1, #6
  83724. 8021ef6: 69b8 ldr r0, [r7, #24]
  83725. 8021ef8: f000 fbfd bl 80226f6 <dhcp_set_state>
  83726. /* create and initialize the DHCP message header */
  83727. p_out = dhcp_create_msg(netif, dhcp, DHCP_DISCOVER, &options_out_len);
  83728. 8021efc: f107 0308 add.w r3, r7, #8
  83729. 8021f00: 2201 movs r2, #1
  83730. 8021f02: 69b9 ldr r1, [r7, #24]
  83731. 8021f04: 6878 ldr r0, [r7, #4]
  83732. 8021f06: f001 f88f bl 8023028 <dhcp_create_msg>
  83733. 8021f0a: 6138 str r0, [r7, #16]
  83734. if (p_out != NULL) {
  83735. 8021f0c: 693b ldr r3, [r7, #16]
  83736. 8021f0e: 2b00 cmp r3, #0
  83737. 8021f10: d04b beq.n 8021faa <dhcp_discover+0xce>
  83738. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  83739. 8021f12: 693b ldr r3, [r7, #16]
  83740. 8021f14: 685b ldr r3, [r3, #4]
  83741. 8021f16: 60fb str r3, [r7, #12]
  83742. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_discover: making request\n"));
  83743. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN);
  83744. 8021f18: 8938 ldrh r0, [r7, #8]
  83745. 8021f1a: 68fb ldr r3, [r7, #12]
  83746. 8021f1c: f103 01f0 add.w r1, r3, #240 @ 0xf0
  83747. 8021f20: 2302 movs r3, #2
  83748. 8021f22: 2239 movs r2, #57 @ 0x39
  83749. 8021f24: f000 fc02 bl 802272c <dhcp_option>
  83750. 8021f28: 4603 mov r3, r0
  83751. 8021f2a: 813b strh r3, [r7, #8]
  83752. options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif));
  83753. 8021f2c: 8938 ldrh r0, [r7, #8]
  83754. 8021f2e: 68fb ldr r3, [r7, #12]
  83755. 8021f30: f103 01f0 add.w r1, r3, #240 @ 0xf0
  83756. 8021f34: 687b ldr r3, [r7, #4]
  83757. 8021f36: 8d1b ldrh r3, [r3, #40] @ 0x28
  83758. 8021f38: 461a mov r2, r3
  83759. 8021f3a: f000 fc51 bl 80227e0 <dhcp_option_short>
  83760. 8021f3e: 4603 mov r3, r0
  83761. 8021f40: 813b strh r3, [r7, #8]
  83762. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options));
  83763. 8021f42: 8938 ldrh r0, [r7, #8]
  83764. 8021f44: 68fb ldr r3, [r7, #12]
  83765. 8021f46: f103 01f0 add.w r1, r3, #240 @ 0xf0
  83766. 8021f4a: 2303 movs r3, #3
  83767. 8021f4c: 2237 movs r2, #55 @ 0x37
  83768. 8021f4e: f000 fbed bl 802272c <dhcp_option>
  83769. 8021f52: 4603 mov r3, r0
  83770. 8021f54: 813b strh r3, [r7, #8]
  83771. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  83772. 8021f56: 2300 movs r3, #0
  83773. 8021f58: 77fb strb r3, [r7, #31]
  83774. 8021f5a: e00e b.n 8021f7a <dhcp_discover+0x9e>
  83775. options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]);
  83776. 8021f5c: 8938 ldrh r0, [r7, #8]
  83777. 8021f5e: 68fb ldr r3, [r7, #12]
  83778. 8021f60: f103 01f0 add.w r1, r3, #240 @ 0xf0
  83779. 8021f64: 7ffb ldrb r3, [r7, #31]
  83780. 8021f66: 4a29 ldr r2, [pc, #164] @ (802200c <dhcp_discover+0x130>)
  83781. 8021f68: 5cd3 ldrb r3, [r2, r3]
  83782. 8021f6a: 461a mov r2, r3
  83783. 8021f6c: f000 fc12 bl 8022794 <dhcp_option_byte>
  83784. 8021f70: 4603 mov r3, r0
  83785. 8021f72: 813b strh r3, [r7, #8]
  83786. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  83787. 8021f74: 7ffb ldrb r3, [r7, #31]
  83788. 8021f76: 3301 adds r3, #1
  83789. 8021f78: 77fb strb r3, [r7, #31]
  83790. 8021f7a: 7ffb ldrb r3, [r7, #31]
  83791. 8021f7c: 2b02 cmp r3, #2
  83792. 8021f7e: d9ed bls.n 8021f5c <dhcp_discover+0x80>
  83793. }
  83794. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_SELECTING, msg_out, DHCP_DISCOVER, &options_out_len);
  83795. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  83796. 8021f80: 8938 ldrh r0, [r7, #8]
  83797. 8021f82: 68fb ldr r3, [r7, #12]
  83798. 8021f84: 33f0 adds r3, #240 @ 0xf0
  83799. 8021f86: 693a ldr r2, [r7, #16]
  83800. 8021f88: 4619 mov r1, r3
  83801. 8021f8a: f001 f923 bl 80231d4 <dhcp_option_trailer>
  83802. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_discover: sendto(DISCOVER, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER)\n"));
  83803. udp_sendto_if_src(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif, IP4_ADDR_ANY);
  83804. 8021f8e: 4b20 ldr r3, [pc, #128] @ (8022010 <dhcp_discover+0x134>)
  83805. 8021f90: 6818 ldr r0, [r3, #0]
  83806. 8021f92: 4b20 ldr r3, [pc, #128] @ (8022014 <dhcp_discover+0x138>)
  83807. 8021f94: 9301 str r3, [sp, #4]
  83808. 8021f96: 687b ldr r3, [r7, #4]
  83809. 8021f98: 9300 str r3, [sp, #0]
  83810. 8021f9a: 2343 movs r3, #67 @ 0x43
  83811. 8021f9c: 4a1e ldr r2, [pc, #120] @ (8022018 <dhcp_discover+0x13c>)
  83812. 8021f9e: 6939 ldr r1, [r7, #16]
  83813. 8021fa0: f7fe fff6 bl 8020f90 <udp_sendto_if_src>
  83814. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_discover: deleting()ing\n"));
  83815. pbuf_free(p_out);
  83816. 8021fa4: 6938 ldr r0, [r7, #16]
  83817. 8021fa6: f7f8 f839 bl 801a01c <pbuf_free>
  83818. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_discover: SELECTING\n"));
  83819. } else {
  83820. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_discover: could not allocate DHCP request\n"));
  83821. }
  83822. if (dhcp->tries < 255) {
  83823. 8021faa: 69bb ldr r3, [r7, #24]
  83824. 8021fac: 799b ldrb r3, [r3, #6]
  83825. 8021fae: 2bff cmp r3, #255 @ 0xff
  83826. 8021fb0: d005 beq.n 8021fbe <dhcp_discover+0xe2>
  83827. dhcp->tries++;
  83828. 8021fb2: 69bb ldr r3, [r7, #24]
  83829. 8021fb4: 799b ldrb r3, [r3, #6]
  83830. 8021fb6: 3301 adds r3, #1
  83831. 8021fb8: b2da uxtb r2, r3
  83832. 8021fba: 69bb ldr r3, [r7, #24]
  83833. 8021fbc: 719a strb r2, [r3, #6]
  83834. if (dhcp->tries >= LWIP_DHCP_AUTOIP_COOP_TRIES && dhcp->autoip_coop_state == DHCP_AUTOIP_COOP_STATE_OFF) {
  83835. dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_ON;
  83836. autoip_start(netif);
  83837. }
  83838. #endif /* LWIP_DHCP_AUTOIP_COOP */
  83839. msecs = (u16_t)((dhcp->tries < 6 ? 1 << dhcp->tries : 60) * 1000);
  83840. 8021fbe: 69bb ldr r3, [r7, #24]
  83841. 8021fc0: 799b ldrb r3, [r3, #6]
  83842. 8021fc2: 2b05 cmp r3, #5
  83843. 8021fc4: d80d bhi.n 8021fe2 <dhcp_discover+0x106>
  83844. 8021fc6: 69bb ldr r3, [r7, #24]
  83845. 8021fc8: 799b ldrb r3, [r3, #6]
  83846. 8021fca: 461a mov r2, r3
  83847. 8021fcc: 2301 movs r3, #1
  83848. 8021fce: 4093 lsls r3, r2
  83849. 8021fd0: b29b uxth r3, r3
  83850. 8021fd2: 461a mov r2, r3
  83851. 8021fd4: 0152 lsls r2, r2, #5
  83852. 8021fd6: 1ad2 subs r2, r2, r3
  83853. 8021fd8: 0092 lsls r2, r2, #2
  83854. 8021fda: 4413 add r3, r2
  83855. 8021fdc: 00db lsls r3, r3, #3
  83856. 8021fde: b29b uxth r3, r3
  83857. 8021fe0: e001 b.n 8021fe6 <dhcp_discover+0x10a>
  83858. 8021fe2: f64e 2360 movw r3, #60000 @ 0xea60
  83859. 8021fe6: 817b strh r3, [r7, #10]
  83860. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  83861. 8021fe8: 897b ldrh r3, [r7, #10]
  83862. 8021fea: f203 13f3 addw r3, r3, #499 @ 0x1f3
  83863. 8021fee: 4a0b ldr r2, [pc, #44] @ (802201c <dhcp_discover+0x140>)
  83864. 8021ff0: fb82 1203 smull r1, r2, r2, r3
  83865. 8021ff4: 1152 asrs r2, r2, #5
  83866. 8021ff6: 17db asrs r3, r3, #31
  83867. 8021ff8: 1ad3 subs r3, r2, r3
  83868. 8021ffa: b29a uxth r2, r3
  83869. 8021ffc: 69bb ldr r3, [r7, #24]
  83870. 8021ffe: 811a strh r2, [r3, #8]
  83871. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_discover(): set request timeout %"U16_F" msecs\n", msecs));
  83872. return result;
  83873. 8022000: f997 3017 ldrsb.w r3, [r7, #23]
  83874. }
  83875. 8022004: 4618 mov r0, r3
  83876. 8022006: 3720 adds r7, #32
  83877. 8022008: 46bd mov sp, r7
  83878. 802200a: bd80 pop {r7, pc}
  83879. 802200c: 24000044 .word 0x24000044
  83880. 8022010: 2402a078 .word 0x2402a078
  83881. 8022014: 080307a4 .word 0x080307a4
  83882. 8022018: 080307a8 .word 0x080307a8
  83883. 802201c: 10624dd3 .word 0x10624dd3
  83884. 08022020 <dhcp_bind>:
  83885. *
  83886. * @param netif network interface to bind to the offered address
  83887. */
  83888. static void
  83889. dhcp_bind(struct netif *netif)
  83890. {
  83891. 8022020: b580 push {r7, lr}
  83892. 8022022: b088 sub sp, #32
  83893. 8022024: af00 add r7, sp, #0
  83894. 8022026: 6078 str r0, [r7, #4]
  83895. u32_t timeout;
  83896. struct dhcp *dhcp;
  83897. ip4_addr_t sn_mask, gw_addr;
  83898. LWIP_ERROR("dhcp_bind: netif != NULL", (netif != NULL), return;);
  83899. 8022028: 687b ldr r3, [r7, #4]
  83900. 802202a: 2b00 cmp r3, #0
  83901. 802202c: d107 bne.n 802203e <dhcp_bind+0x1e>
  83902. 802202e: 4b64 ldr r3, [pc, #400] @ (80221c0 <dhcp_bind+0x1a0>)
  83903. 8022030: f240 4215 movw r2, #1045 @ 0x415
  83904. 8022034: 4963 ldr r1, [pc, #396] @ (80221c4 <dhcp_bind+0x1a4>)
  83905. 8022036: 4864 ldr r0, [pc, #400] @ (80221c8 <dhcp_bind+0x1a8>)
  83906. 8022038: f007 fa68 bl 802950c <iprintf>
  83907. 802203c: e0bc b.n 80221b8 <dhcp_bind+0x198>
  83908. dhcp = netif_dhcp_data(netif);
  83909. 802203e: 687b ldr r3, [r7, #4]
  83910. 8022040: 6a5b ldr r3, [r3, #36] @ 0x24
  83911. 8022042: 61fb str r3, [r7, #28]
  83912. LWIP_ERROR("dhcp_bind: dhcp != NULL", (dhcp != NULL), return;);
  83913. 8022044: 69fb ldr r3, [r7, #28]
  83914. 8022046: 2b00 cmp r3, #0
  83915. 8022048: d107 bne.n 802205a <dhcp_bind+0x3a>
  83916. 802204a: 4b5d ldr r3, [pc, #372] @ (80221c0 <dhcp_bind+0x1a0>)
  83917. 802204c: f240 4217 movw r2, #1047 @ 0x417
  83918. 8022050: 495e ldr r1, [pc, #376] @ (80221cc <dhcp_bind+0x1ac>)
  83919. 8022052: 485d ldr r0, [pc, #372] @ (80221c8 <dhcp_bind+0x1a8>)
  83920. 8022054: f007 fa5a bl 802950c <iprintf>
  83921. 8022058: e0ae b.n 80221b8 <dhcp_bind+0x198>
  83922. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_bind(netif=%p) %c%c%"U16_F"\n", (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num));
  83923. /* reset time used of lease */
  83924. dhcp->lease_used = 0;
  83925. 802205a: 69fb ldr r3, [r7, #28]
  83926. 802205c: 2200 movs r2, #0
  83927. 802205e: 825a strh r2, [r3, #18]
  83928. if (dhcp->offered_t0_lease != 0xffffffffUL) {
  83929. 8022060: 69fb ldr r3, [r7, #28]
  83930. 8022062: 6a9b ldr r3, [r3, #40] @ 0x28
  83931. 8022064: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  83932. 8022068: d019 beq.n 802209e <dhcp_bind+0x7e>
  83933. /* set renewal period timer */
  83934. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_bind(): t0 renewal timer %"U32_F" secs\n", dhcp->offered_t0_lease));
  83935. timeout = (dhcp->offered_t0_lease + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS;
  83936. 802206a: 69fb ldr r3, [r7, #28]
  83937. 802206c: 6a9b ldr r3, [r3, #40] @ 0x28
  83938. 802206e: 331e adds r3, #30
  83939. 8022070: 4a57 ldr r2, [pc, #348] @ (80221d0 <dhcp_bind+0x1b0>)
  83940. 8022072: fba2 2303 umull r2, r3, r2, r3
  83941. 8022076: 095b lsrs r3, r3, #5
  83942. 8022078: 61bb str r3, [r7, #24]
  83943. if (timeout > 0xffff) {
  83944. 802207a: 69bb ldr r3, [r7, #24]
  83945. 802207c: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  83946. 8022080: d302 bcc.n 8022088 <dhcp_bind+0x68>
  83947. timeout = 0xffff;
  83948. 8022082: f64f 73ff movw r3, #65535 @ 0xffff
  83949. 8022086: 61bb str r3, [r7, #24]
  83950. }
  83951. dhcp->t0_timeout = (u16_t)timeout;
  83952. 8022088: 69bb ldr r3, [r7, #24]
  83953. 802208a: b29a uxth r2, r3
  83954. 802208c: 69fb ldr r3, [r7, #28]
  83955. 802208e: 829a strh r2, [r3, #20]
  83956. if (dhcp->t0_timeout == 0) {
  83957. 8022090: 69fb ldr r3, [r7, #28]
  83958. 8022092: 8a9b ldrh r3, [r3, #20]
  83959. 8022094: 2b00 cmp r3, #0
  83960. 8022096: d102 bne.n 802209e <dhcp_bind+0x7e>
  83961. dhcp->t0_timeout = 1;
  83962. 8022098: 69fb ldr r3, [r7, #28]
  83963. 802209a: 2201 movs r2, #1
  83964. 802209c: 829a strh r2, [r3, #20]
  83965. }
  83966. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_bind(): set request timeout %"U32_F" msecs\n", dhcp->offered_t0_lease * 1000));
  83967. }
  83968. /* temporary DHCP lease? */
  83969. if (dhcp->offered_t1_renew != 0xffffffffUL) {
  83970. 802209e: 69fb ldr r3, [r7, #28]
  83971. 80220a0: 6adb ldr r3, [r3, #44] @ 0x2c
  83972. 80220a2: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  83973. 80220a6: d01d beq.n 80220e4 <dhcp_bind+0xc4>
  83974. /* set renewal period timer */
  83975. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_bind(): t1 renewal timer %"U32_F" secs\n", dhcp->offered_t1_renew));
  83976. timeout = (dhcp->offered_t1_renew + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS;
  83977. 80220a8: 69fb ldr r3, [r7, #28]
  83978. 80220aa: 6adb ldr r3, [r3, #44] @ 0x2c
  83979. 80220ac: 331e adds r3, #30
  83980. 80220ae: 4a48 ldr r2, [pc, #288] @ (80221d0 <dhcp_bind+0x1b0>)
  83981. 80220b0: fba2 2303 umull r2, r3, r2, r3
  83982. 80220b4: 095b lsrs r3, r3, #5
  83983. 80220b6: 61bb str r3, [r7, #24]
  83984. if (timeout > 0xffff) {
  83985. 80220b8: 69bb ldr r3, [r7, #24]
  83986. 80220ba: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  83987. 80220be: d302 bcc.n 80220c6 <dhcp_bind+0xa6>
  83988. timeout = 0xffff;
  83989. 80220c0: f64f 73ff movw r3, #65535 @ 0xffff
  83990. 80220c4: 61bb str r3, [r7, #24]
  83991. }
  83992. dhcp->t1_timeout = (u16_t)timeout;
  83993. 80220c6: 69bb ldr r3, [r7, #24]
  83994. 80220c8: b29a uxth r2, r3
  83995. 80220ca: 69fb ldr r3, [r7, #28]
  83996. 80220cc: 815a strh r2, [r3, #10]
  83997. if (dhcp->t1_timeout == 0) {
  83998. 80220ce: 69fb ldr r3, [r7, #28]
  83999. 80220d0: 895b ldrh r3, [r3, #10]
  84000. 80220d2: 2b00 cmp r3, #0
  84001. 80220d4: d102 bne.n 80220dc <dhcp_bind+0xbc>
  84002. dhcp->t1_timeout = 1;
  84003. 80220d6: 69fb ldr r3, [r7, #28]
  84004. 80220d8: 2201 movs r2, #1
  84005. 80220da: 815a strh r2, [r3, #10]
  84006. }
  84007. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_bind(): set request timeout %"U32_F" msecs\n", dhcp->offered_t1_renew * 1000));
  84008. dhcp->t1_renew_time = dhcp->t1_timeout;
  84009. 80220dc: 69fb ldr r3, [r7, #28]
  84010. 80220de: 895a ldrh r2, [r3, #10]
  84011. 80220e0: 69fb ldr r3, [r7, #28]
  84012. 80220e2: 81da strh r2, [r3, #14]
  84013. }
  84014. /* set renewal period timer */
  84015. if (dhcp->offered_t2_rebind != 0xffffffffUL) {
  84016. 80220e4: 69fb ldr r3, [r7, #28]
  84017. 80220e6: 6b1b ldr r3, [r3, #48] @ 0x30
  84018. 80220e8: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  84019. 80220ec: d01d beq.n 802212a <dhcp_bind+0x10a>
  84020. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_bind(): t2 rebind timer %"U32_F" secs\n", dhcp->offered_t2_rebind));
  84021. timeout = (dhcp->offered_t2_rebind + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS;
  84022. 80220ee: 69fb ldr r3, [r7, #28]
  84023. 80220f0: 6b1b ldr r3, [r3, #48] @ 0x30
  84024. 80220f2: 331e adds r3, #30
  84025. 80220f4: 4a36 ldr r2, [pc, #216] @ (80221d0 <dhcp_bind+0x1b0>)
  84026. 80220f6: fba2 2303 umull r2, r3, r2, r3
  84027. 80220fa: 095b lsrs r3, r3, #5
  84028. 80220fc: 61bb str r3, [r7, #24]
  84029. if (timeout > 0xffff) {
  84030. 80220fe: 69bb ldr r3, [r7, #24]
  84031. 8022100: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  84032. 8022104: d302 bcc.n 802210c <dhcp_bind+0xec>
  84033. timeout = 0xffff;
  84034. 8022106: f64f 73ff movw r3, #65535 @ 0xffff
  84035. 802210a: 61bb str r3, [r7, #24]
  84036. }
  84037. dhcp->t2_timeout = (u16_t)timeout;
  84038. 802210c: 69bb ldr r3, [r7, #24]
  84039. 802210e: b29a uxth r2, r3
  84040. 8022110: 69fb ldr r3, [r7, #28]
  84041. 8022112: 819a strh r2, [r3, #12]
  84042. if (dhcp->t2_timeout == 0) {
  84043. 8022114: 69fb ldr r3, [r7, #28]
  84044. 8022116: 899b ldrh r3, [r3, #12]
  84045. 8022118: 2b00 cmp r3, #0
  84046. 802211a: d102 bne.n 8022122 <dhcp_bind+0x102>
  84047. dhcp->t2_timeout = 1;
  84048. 802211c: 69fb ldr r3, [r7, #28]
  84049. 802211e: 2201 movs r2, #1
  84050. 8022120: 819a strh r2, [r3, #12]
  84051. }
  84052. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_bind(): set request timeout %"U32_F" msecs\n", dhcp->offered_t2_rebind * 1000));
  84053. dhcp->t2_rebind_time = dhcp->t2_timeout;
  84054. 8022122: 69fb ldr r3, [r7, #28]
  84055. 8022124: 899a ldrh r2, [r3, #12]
  84056. 8022126: 69fb ldr r3, [r7, #28]
  84057. 8022128: 821a strh r2, [r3, #16]
  84058. }
  84059. /* If we have sub 1 minute lease, t2 and t1 will kick in at the same time. */
  84060. if ((dhcp->t1_timeout >= dhcp->t2_timeout) && (dhcp->t2_timeout > 0)) {
  84061. 802212a: 69fb ldr r3, [r7, #28]
  84062. 802212c: 895a ldrh r2, [r3, #10]
  84063. 802212e: 69fb ldr r3, [r7, #28]
  84064. 8022130: 899b ldrh r3, [r3, #12]
  84065. 8022132: 429a cmp r2, r3
  84066. 8022134: d306 bcc.n 8022144 <dhcp_bind+0x124>
  84067. 8022136: 69fb ldr r3, [r7, #28]
  84068. 8022138: 899b ldrh r3, [r3, #12]
  84069. 802213a: 2b00 cmp r3, #0
  84070. 802213c: d002 beq.n 8022144 <dhcp_bind+0x124>
  84071. dhcp->t1_timeout = 0;
  84072. 802213e: 69fb ldr r3, [r7, #28]
  84073. 8022140: 2200 movs r2, #0
  84074. 8022142: 815a strh r2, [r3, #10]
  84075. }
  84076. if (dhcp->subnet_mask_given) {
  84077. 8022144: 69fb ldr r3, [r7, #28]
  84078. 8022146: 79db ldrb r3, [r3, #7]
  84079. 8022148: 2b00 cmp r3, #0
  84080. 802214a: d003 beq.n 8022154 <dhcp_bind+0x134>
  84081. /* copy offered network mask */
  84082. ip4_addr_copy(sn_mask, dhcp->offered_sn_mask);
  84083. 802214c: 69fb ldr r3, [r7, #28]
  84084. 802214e: 6a1b ldr r3, [r3, #32]
  84085. 8022150: 613b str r3, [r7, #16]
  84086. 8022152: e014 b.n 802217e <dhcp_bind+0x15e>
  84087. } else {
  84088. /* subnet mask not given, choose a safe subnet mask given the network class */
  84089. u8_t first_octet = ip4_addr1(&dhcp->offered_ip_addr);
  84090. 8022154: 69fb ldr r3, [r7, #28]
  84091. 8022156: 331c adds r3, #28
  84092. 8022158: 781b ldrb r3, [r3, #0]
  84093. 802215a: 75fb strb r3, [r7, #23]
  84094. if (first_octet <= 127) {
  84095. 802215c: f997 3017 ldrsb.w r3, [r7, #23]
  84096. 8022160: 2b00 cmp r3, #0
  84097. 8022162: db02 blt.n 802216a <dhcp_bind+0x14a>
  84098. ip4_addr_set_u32(&sn_mask, PP_HTONL(0xff000000UL));
  84099. 8022164: 23ff movs r3, #255 @ 0xff
  84100. 8022166: 613b str r3, [r7, #16]
  84101. 8022168: e009 b.n 802217e <dhcp_bind+0x15e>
  84102. } else if (first_octet >= 192) {
  84103. 802216a: 7dfb ldrb r3, [r7, #23]
  84104. 802216c: 2bbf cmp r3, #191 @ 0xbf
  84105. 802216e: d903 bls.n 8022178 <dhcp_bind+0x158>
  84106. ip4_addr_set_u32(&sn_mask, PP_HTONL(0xffffff00UL));
  84107. 8022170: f06f 437f mvn.w r3, #4278190080 @ 0xff000000
  84108. 8022174: 613b str r3, [r7, #16]
  84109. 8022176: e002 b.n 802217e <dhcp_bind+0x15e>
  84110. } else {
  84111. ip4_addr_set_u32(&sn_mask, PP_HTONL(0xffff0000UL));
  84112. 8022178: f64f 73ff movw r3, #65535 @ 0xffff
  84113. 802217c: 613b str r3, [r7, #16]
  84114. }
  84115. }
  84116. ip4_addr_copy(gw_addr, dhcp->offered_gw_addr);
  84117. 802217e: 69fb ldr r3, [r7, #28]
  84118. 8022180: 6a5b ldr r3, [r3, #36] @ 0x24
  84119. 8022182: 60fb str r3, [r7, #12]
  84120. /* gateway address not given? */
  84121. if (ip4_addr_isany_val(gw_addr)) {
  84122. 8022184: 68fb ldr r3, [r7, #12]
  84123. 8022186: 2b00 cmp r3, #0
  84124. 8022188: d108 bne.n 802219c <dhcp_bind+0x17c>
  84125. /* copy network address */
  84126. ip4_addr_get_network(&gw_addr, &dhcp->offered_ip_addr, &sn_mask);
  84127. 802218a: 69fb ldr r3, [r7, #28]
  84128. 802218c: 69da ldr r2, [r3, #28]
  84129. 802218e: 693b ldr r3, [r7, #16]
  84130. 8022190: 4013 ands r3, r2
  84131. 8022192: 60fb str r3, [r7, #12]
  84132. /* use first host address on network as gateway */
  84133. ip4_addr_set_u32(&gw_addr, ip4_addr_get_u32(&gw_addr) | PP_HTONL(0x00000001UL));
  84134. 8022194: 68fb ldr r3, [r7, #12]
  84135. 8022196: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  84136. 802219a: 60fb str r3, [r7, #12]
  84137. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_bind(): IP: 0x%08"X32_F" SN: 0x%08"X32_F" GW: 0x%08"X32_F"\n",
  84138. ip4_addr_get_u32(&dhcp->offered_ip_addr), ip4_addr_get_u32(&sn_mask), ip4_addr_get_u32(&gw_addr)));
  84139. /* netif is now bound to DHCP leased address - set this before assigning the address
  84140. to ensure the callback can use dhcp_supplied_address() */
  84141. dhcp_set_state(dhcp, DHCP_STATE_BOUND);
  84142. 802219c: 210a movs r1, #10
  84143. 802219e: 69f8 ldr r0, [r7, #28]
  84144. 80221a0: f000 faa9 bl 80226f6 <dhcp_set_state>
  84145. netif_set_addr(netif, &dhcp->offered_ip_addr, &sn_mask, &gw_addr);
  84146. 80221a4: 69fb ldr r3, [r7, #28]
  84147. 80221a6: f103 011c add.w r1, r3, #28
  84148. 80221aa: f107 030c add.w r3, r7, #12
  84149. 80221ae: f107 0210 add.w r2, r7, #16
  84150. 80221b2: 6878 ldr r0, [r7, #4]
  84151. 80221b4: f7f7 f9e8 bl 8019588 <netif_set_addr>
  84152. /* interface is used by routing now that an address is set */
  84153. }
  84154. 80221b8: 3720 adds r7, #32
  84155. 80221ba: 46bd mov sp, r7
  84156. 80221bc: bd80 pop {r7, pc}
  84157. 80221be: bf00 nop
  84158. 80221c0: 0802f9e8 .word 0x0802f9e8
  84159. 80221c4: 0802fb48 .word 0x0802fb48
  84160. 80221c8: 0802fa48 .word 0x0802fa48
  84161. 80221cc: 0802fb64 .word 0x0802fb64
  84162. 80221d0: 88888889 .word 0x88888889
  84163. 080221d4 <dhcp_renew>:
  84164. *
  84165. * @param netif network interface which must renew its lease
  84166. */
  84167. err_t
  84168. dhcp_renew(struct netif *netif)
  84169. {
  84170. 80221d4: b580 push {r7, lr}
  84171. 80221d6: b08a sub sp, #40 @ 0x28
  84172. 80221d8: af02 add r7, sp, #8
  84173. 80221da: 6078 str r0, [r7, #4]
  84174. struct dhcp *dhcp = netif_dhcp_data(netif);
  84175. 80221dc: 687b ldr r3, [r7, #4]
  84176. 80221de: 6a5b ldr r3, [r3, #36] @ 0x24
  84177. 80221e0: 61bb str r3, [r7, #24]
  84178. u16_t msecs;
  84179. u8_t i;
  84180. struct pbuf *p_out;
  84181. u16_t options_out_len;
  84182. LWIP_ASSERT_CORE_LOCKED();
  84183. 80221e2: f7ed ff45 bl 8010070 <sys_check_core_locking>
  84184. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_renew()\n"));
  84185. dhcp_set_state(dhcp, DHCP_STATE_RENEWING);
  84186. 80221e6: 2105 movs r1, #5
  84187. 80221e8: 69b8 ldr r0, [r7, #24]
  84188. 80221ea: f000 fa84 bl 80226f6 <dhcp_set_state>
  84189. /* create and initialize the DHCP message header */
  84190. p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len);
  84191. 80221ee: f107 030c add.w r3, r7, #12
  84192. 80221f2: 2203 movs r2, #3
  84193. 80221f4: 69b9 ldr r1, [r7, #24]
  84194. 80221f6: 6878 ldr r0, [r7, #4]
  84195. 80221f8: f000 ff16 bl 8023028 <dhcp_create_msg>
  84196. 80221fc: 6178 str r0, [r7, #20]
  84197. if (p_out != NULL) {
  84198. 80221fe: 697b ldr r3, [r7, #20]
  84199. 8022200: 2b00 cmp r3, #0
  84200. 8022202: d04e beq.n 80222a2 <dhcp_renew+0xce>
  84201. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  84202. 8022204: 697b ldr r3, [r7, #20]
  84203. 8022206: 685b ldr r3, [r3, #4]
  84204. 8022208: 613b str r3, [r7, #16]
  84205. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN);
  84206. 802220a: 89b8 ldrh r0, [r7, #12]
  84207. 802220c: 693b ldr r3, [r7, #16]
  84208. 802220e: f103 01f0 add.w r1, r3, #240 @ 0xf0
  84209. 8022212: 2302 movs r3, #2
  84210. 8022214: 2239 movs r2, #57 @ 0x39
  84211. 8022216: f000 fa89 bl 802272c <dhcp_option>
  84212. 802221a: 4603 mov r3, r0
  84213. 802221c: 81bb strh r3, [r7, #12]
  84214. options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif));
  84215. 802221e: 89b8 ldrh r0, [r7, #12]
  84216. 8022220: 693b ldr r3, [r7, #16]
  84217. 8022222: f103 01f0 add.w r1, r3, #240 @ 0xf0
  84218. 8022226: 687b ldr r3, [r7, #4]
  84219. 8022228: 8d1b ldrh r3, [r3, #40] @ 0x28
  84220. 802222a: 461a mov r2, r3
  84221. 802222c: f000 fad8 bl 80227e0 <dhcp_option_short>
  84222. 8022230: 4603 mov r3, r0
  84223. 8022232: 81bb strh r3, [r7, #12]
  84224. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options));
  84225. 8022234: 89b8 ldrh r0, [r7, #12]
  84226. 8022236: 693b ldr r3, [r7, #16]
  84227. 8022238: f103 01f0 add.w r1, r3, #240 @ 0xf0
  84228. 802223c: 2303 movs r3, #3
  84229. 802223e: 2237 movs r2, #55 @ 0x37
  84230. 8022240: f000 fa74 bl 802272c <dhcp_option>
  84231. 8022244: 4603 mov r3, r0
  84232. 8022246: 81bb strh r3, [r7, #12]
  84233. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  84234. 8022248: 2300 movs r3, #0
  84235. 802224a: 77bb strb r3, [r7, #30]
  84236. 802224c: e00e b.n 802226c <dhcp_renew+0x98>
  84237. options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]);
  84238. 802224e: 89b8 ldrh r0, [r7, #12]
  84239. 8022250: 693b ldr r3, [r7, #16]
  84240. 8022252: f103 01f0 add.w r1, r3, #240 @ 0xf0
  84241. 8022256: 7fbb ldrb r3, [r7, #30]
  84242. 8022258: 4a29 ldr r2, [pc, #164] @ (8022300 <dhcp_renew+0x12c>)
  84243. 802225a: 5cd3 ldrb r3, [r2, r3]
  84244. 802225c: 461a mov r2, r3
  84245. 802225e: f000 fa99 bl 8022794 <dhcp_option_byte>
  84246. 8022262: 4603 mov r3, r0
  84247. 8022264: 81bb strh r3, [r7, #12]
  84248. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  84249. 8022266: 7fbb ldrb r3, [r7, #30]
  84250. 8022268: 3301 adds r3, #1
  84251. 802226a: 77bb strb r3, [r7, #30]
  84252. 802226c: 7fbb ldrb r3, [r7, #30]
  84253. 802226e: 2b02 cmp r3, #2
  84254. 8022270: d9ed bls.n 802224e <dhcp_renew+0x7a>
  84255. #if LWIP_NETIF_HOSTNAME
  84256. options_out_len = dhcp_option_hostname(options_out_len, msg_out->options, netif);
  84257. #endif /* LWIP_NETIF_HOSTNAME */
  84258. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_RENEWING, msg_out, DHCP_REQUEST, &options_out_len);
  84259. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  84260. 8022272: 89b8 ldrh r0, [r7, #12]
  84261. 8022274: 693b ldr r3, [r7, #16]
  84262. 8022276: 33f0 adds r3, #240 @ 0xf0
  84263. 8022278: 697a ldr r2, [r7, #20]
  84264. 802227a: 4619 mov r1, r3
  84265. 802227c: f000 ffaa bl 80231d4 <dhcp_option_trailer>
  84266. result = udp_sendto_if(dhcp_pcb, p_out, &dhcp->server_ip_addr, LWIP_IANA_PORT_DHCP_SERVER, netif);
  84267. 8022280: 4b20 ldr r3, [pc, #128] @ (8022304 <dhcp_renew+0x130>)
  84268. 8022282: 6818 ldr r0, [r3, #0]
  84269. 8022284: 69bb ldr r3, [r7, #24]
  84270. 8022286: f103 0218 add.w r2, r3, #24
  84271. 802228a: 687b ldr r3, [r7, #4]
  84272. 802228c: 9300 str r3, [sp, #0]
  84273. 802228e: 2343 movs r3, #67 @ 0x43
  84274. 8022290: 6979 ldr r1, [r7, #20]
  84275. 8022292: f7fe fe09 bl 8020ea8 <udp_sendto_if>
  84276. 8022296: 4603 mov r3, r0
  84277. 8022298: 77fb strb r3, [r7, #31]
  84278. pbuf_free(p_out);
  84279. 802229a: 6978 ldr r0, [r7, #20]
  84280. 802229c: f7f7 febe bl 801a01c <pbuf_free>
  84281. 80222a0: e001 b.n 80222a6 <dhcp_renew+0xd2>
  84282. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_renew: RENEWING\n"));
  84283. } else {
  84284. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_renew: could not allocate DHCP request\n"));
  84285. result = ERR_MEM;
  84286. 80222a2: 23ff movs r3, #255 @ 0xff
  84287. 80222a4: 77fb strb r3, [r7, #31]
  84288. }
  84289. if (dhcp->tries < 255) {
  84290. 80222a6: 69bb ldr r3, [r7, #24]
  84291. 80222a8: 799b ldrb r3, [r3, #6]
  84292. 80222aa: 2bff cmp r3, #255 @ 0xff
  84293. 80222ac: d005 beq.n 80222ba <dhcp_renew+0xe6>
  84294. dhcp->tries++;
  84295. 80222ae: 69bb ldr r3, [r7, #24]
  84296. 80222b0: 799b ldrb r3, [r3, #6]
  84297. 80222b2: 3301 adds r3, #1
  84298. 80222b4: b2da uxtb r2, r3
  84299. 80222b6: 69bb ldr r3, [r7, #24]
  84300. 80222b8: 719a strb r2, [r3, #6]
  84301. }
  84302. /* back-off on retries, but to a maximum of 20 seconds */
  84303. msecs = (u16_t)(dhcp->tries < 10 ? dhcp->tries * 2000 : 20 * 1000);
  84304. 80222ba: 69bb ldr r3, [r7, #24]
  84305. 80222bc: 799b ldrb r3, [r3, #6]
  84306. 80222be: 2b09 cmp r3, #9
  84307. 80222c0: d809 bhi.n 80222d6 <dhcp_renew+0x102>
  84308. 80222c2: 69bb ldr r3, [r7, #24]
  84309. 80222c4: 799b ldrb r3, [r3, #6]
  84310. 80222c6: 461a mov r2, r3
  84311. 80222c8: 0152 lsls r2, r2, #5
  84312. 80222ca: 1ad2 subs r2, r2, r3
  84313. 80222cc: 0092 lsls r2, r2, #2
  84314. 80222ce: 4413 add r3, r2
  84315. 80222d0: 011b lsls r3, r3, #4
  84316. 80222d2: b29b uxth r3, r3
  84317. 80222d4: e001 b.n 80222da <dhcp_renew+0x106>
  84318. 80222d6: f644 6320 movw r3, #20000 @ 0x4e20
  84319. 80222da: 81fb strh r3, [r7, #14]
  84320. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  84321. 80222dc: 89fb ldrh r3, [r7, #14]
  84322. 80222de: f203 13f3 addw r3, r3, #499 @ 0x1f3
  84323. 80222e2: 4a09 ldr r2, [pc, #36] @ (8022308 <dhcp_renew+0x134>)
  84324. 80222e4: fb82 1203 smull r1, r2, r2, r3
  84325. 80222e8: 1152 asrs r2, r2, #5
  84326. 80222ea: 17db asrs r3, r3, #31
  84327. 80222ec: 1ad3 subs r3, r2, r3
  84328. 80222ee: b29a uxth r2, r3
  84329. 80222f0: 69bb ldr r3, [r7, #24]
  84330. 80222f2: 811a strh r2, [r3, #8]
  84331. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_renew(): set request timeout %"U16_F" msecs\n", msecs));
  84332. return result;
  84333. 80222f4: f997 301f ldrsb.w r3, [r7, #31]
  84334. }
  84335. 80222f8: 4618 mov r0, r3
  84336. 80222fa: 3720 adds r7, #32
  84337. 80222fc: 46bd mov sp, r7
  84338. 80222fe: bd80 pop {r7, pc}
  84339. 8022300: 24000044 .word 0x24000044
  84340. 8022304: 2402a078 .word 0x2402a078
  84341. 8022308: 10624dd3 .word 0x10624dd3
  84342. 0802230c <dhcp_rebind>:
  84343. *
  84344. * @param netif network interface which must rebind with a DHCP server
  84345. */
  84346. static err_t
  84347. dhcp_rebind(struct netif *netif)
  84348. {
  84349. 802230c: b580 push {r7, lr}
  84350. 802230e: b08a sub sp, #40 @ 0x28
  84351. 8022310: af02 add r7, sp, #8
  84352. 8022312: 6078 str r0, [r7, #4]
  84353. struct dhcp *dhcp = netif_dhcp_data(netif);
  84354. 8022314: 687b ldr r3, [r7, #4]
  84355. 8022316: 6a5b ldr r3, [r3, #36] @ 0x24
  84356. 8022318: 61bb str r3, [r7, #24]
  84357. u8_t i;
  84358. struct pbuf *p_out;
  84359. u16_t options_out_len;
  84360. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_rebind()\n"));
  84361. dhcp_set_state(dhcp, DHCP_STATE_REBINDING);
  84362. 802231a: 2104 movs r1, #4
  84363. 802231c: 69b8 ldr r0, [r7, #24]
  84364. 802231e: f000 f9ea bl 80226f6 <dhcp_set_state>
  84365. /* create and initialize the DHCP message header */
  84366. p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len);
  84367. 8022322: f107 030c add.w r3, r7, #12
  84368. 8022326: 2203 movs r2, #3
  84369. 8022328: 69b9 ldr r1, [r7, #24]
  84370. 802232a: 6878 ldr r0, [r7, #4]
  84371. 802232c: f000 fe7c bl 8023028 <dhcp_create_msg>
  84372. 8022330: 6178 str r0, [r7, #20]
  84373. if (p_out != NULL) {
  84374. 8022332: 697b ldr r3, [r7, #20]
  84375. 8022334: 2b00 cmp r3, #0
  84376. 8022336: d04c beq.n 80223d2 <dhcp_rebind+0xc6>
  84377. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  84378. 8022338: 697b ldr r3, [r7, #20]
  84379. 802233a: 685b ldr r3, [r3, #4]
  84380. 802233c: 613b str r3, [r7, #16]
  84381. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN);
  84382. 802233e: 89b8 ldrh r0, [r7, #12]
  84383. 8022340: 693b ldr r3, [r7, #16]
  84384. 8022342: f103 01f0 add.w r1, r3, #240 @ 0xf0
  84385. 8022346: 2302 movs r3, #2
  84386. 8022348: 2239 movs r2, #57 @ 0x39
  84387. 802234a: f000 f9ef bl 802272c <dhcp_option>
  84388. 802234e: 4603 mov r3, r0
  84389. 8022350: 81bb strh r3, [r7, #12]
  84390. options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif));
  84391. 8022352: 89b8 ldrh r0, [r7, #12]
  84392. 8022354: 693b ldr r3, [r7, #16]
  84393. 8022356: f103 01f0 add.w r1, r3, #240 @ 0xf0
  84394. 802235a: 687b ldr r3, [r7, #4]
  84395. 802235c: 8d1b ldrh r3, [r3, #40] @ 0x28
  84396. 802235e: 461a mov r2, r3
  84397. 8022360: f000 fa3e bl 80227e0 <dhcp_option_short>
  84398. 8022364: 4603 mov r3, r0
  84399. 8022366: 81bb strh r3, [r7, #12]
  84400. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options));
  84401. 8022368: 89b8 ldrh r0, [r7, #12]
  84402. 802236a: 693b ldr r3, [r7, #16]
  84403. 802236c: f103 01f0 add.w r1, r3, #240 @ 0xf0
  84404. 8022370: 2303 movs r3, #3
  84405. 8022372: 2237 movs r2, #55 @ 0x37
  84406. 8022374: f000 f9da bl 802272c <dhcp_option>
  84407. 8022378: 4603 mov r3, r0
  84408. 802237a: 81bb strh r3, [r7, #12]
  84409. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  84410. 802237c: 2300 movs r3, #0
  84411. 802237e: 77bb strb r3, [r7, #30]
  84412. 8022380: e00e b.n 80223a0 <dhcp_rebind+0x94>
  84413. options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]);
  84414. 8022382: 89b8 ldrh r0, [r7, #12]
  84415. 8022384: 693b ldr r3, [r7, #16]
  84416. 8022386: f103 01f0 add.w r1, r3, #240 @ 0xf0
  84417. 802238a: 7fbb ldrb r3, [r7, #30]
  84418. 802238c: 4a28 ldr r2, [pc, #160] @ (8022430 <dhcp_rebind+0x124>)
  84419. 802238e: 5cd3 ldrb r3, [r2, r3]
  84420. 8022390: 461a mov r2, r3
  84421. 8022392: f000 f9ff bl 8022794 <dhcp_option_byte>
  84422. 8022396: 4603 mov r3, r0
  84423. 8022398: 81bb strh r3, [r7, #12]
  84424. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  84425. 802239a: 7fbb ldrb r3, [r7, #30]
  84426. 802239c: 3301 adds r3, #1
  84427. 802239e: 77bb strb r3, [r7, #30]
  84428. 80223a0: 7fbb ldrb r3, [r7, #30]
  84429. 80223a2: 2b02 cmp r3, #2
  84430. 80223a4: d9ed bls.n 8022382 <dhcp_rebind+0x76>
  84431. #if LWIP_NETIF_HOSTNAME
  84432. options_out_len = dhcp_option_hostname(options_out_len, msg_out->options, netif);
  84433. #endif /* LWIP_NETIF_HOSTNAME */
  84434. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_REBINDING, msg_out, DHCP_DISCOVER, &options_out_len);
  84435. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  84436. 80223a6: 89b8 ldrh r0, [r7, #12]
  84437. 80223a8: 693b ldr r3, [r7, #16]
  84438. 80223aa: 33f0 adds r3, #240 @ 0xf0
  84439. 80223ac: 697a ldr r2, [r7, #20]
  84440. 80223ae: 4619 mov r1, r3
  84441. 80223b0: f000 ff10 bl 80231d4 <dhcp_option_trailer>
  84442. /* broadcast to server */
  84443. result = udp_sendto_if(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif);
  84444. 80223b4: 4b1f ldr r3, [pc, #124] @ (8022434 <dhcp_rebind+0x128>)
  84445. 80223b6: 6818 ldr r0, [r3, #0]
  84446. 80223b8: 687b ldr r3, [r7, #4]
  84447. 80223ba: 9300 str r3, [sp, #0]
  84448. 80223bc: 2343 movs r3, #67 @ 0x43
  84449. 80223be: 4a1e ldr r2, [pc, #120] @ (8022438 <dhcp_rebind+0x12c>)
  84450. 80223c0: 6979 ldr r1, [r7, #20]
  84451. 80223c2: f7fe fd71 bl 8020ea8 <udp_sendto_if>
  84452. 80223c6: 4603 mov r3, r0
  84453. 80223c8: 77fb strb r3, [r7, #31]
  84454. pbuf_free(p_out);
  84455. 80223ca: 6978 ldr r0, [r7, #20]
  84456. 80223cc: f7f7 fe26 bl 801a01c <pbuf_free>
  84457. 80223d0: e001 b.n 80223d6 <dhcp_rebind+0xca>
  84458. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_rebind: REBINDING\n"));
  84459. } else {
  84460. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_rebind: could not allocate DHCP request\n"));
  84461. result = ERR_MEM;
  84462. 80223d2: 23ff movs r3, #255 @ 0xff
  84463. 80223d4: 77fb strb r3, [r7, #31]
  84464. }
  84465. if (dhcp->tries < 255) {
  84466. 80223d6: 69bb ldr r3, [r7, #24]
  84467. 80223d8: 799b ldrb r3, [r3, #6]
  84468. 80223da: 2bff cmp r3, #255 @ 0xff
  84469. 80223dc: d005 beq.n 80223ea <dhcp_rebind+0xde>
  84470. dhcp->tries++;
  84471. 80223de: 69bb ldr r3, [r7, #24]
  84472. 80223e0: 799b ldrb r3, [r3, #6]
  84473. 80223e2: 3301 adds r3, #1
  84474. 80223e4: b2da uxtb r2, r3
  84475. 80223e6: 69bb ldr r3, [r7, #24]
  84476. 80223e8: 719a strb r2, [r3, #6]
  84477. }
  84478. msecs = (u16_t)(dhcp->tries < 10 ? dhcp->tries * 1000 : 10 * 1000);
  84479. 80223ea: 69bb ldr r3, [r7, #24]
  84480. 80223ec: 799b ldrb r3, [r3, #6]
  84481. 80223ee: 2b09 cmp r3, #9
  84482. 80223f0: d809 bhi.n 8022406 <dhcp_rebind+0xfa>
  84483. 80223f2: 69bb ldr r3, [r7, #24]
  84484. 80223f4: 799b ldrb r3, [r3, #6]
  84485. 80223f6: 461a mov r2, r3
  84486. 80223f8: 0152 lsls r2, r2, #5
  84487. 80223fa: 1ad2 subs r2, r2, r3
  84488. 80223fc: 0092 lsls r2, r2, #2
  84489. 80223fe: 4413 add r3, r2
  84490. 8022400: 00db lsls r3, r3, #3
  84491. 8022402: b29b uxth r3, r3
  84492. 8022404: e001 b.n 802240a <dhcp_rebind+0xfe>
  84493. 8022406: f242 7310 movw r3, #10000 @ 0x2710
  84494. 802240a: 81fb strh r3, [r7, #14]
  84495. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  84496. 802240c: 89fb ldrh r3, [r7, #14]
  84497. 802240e: f203 13f3 addw r3, r3, #499 @ 0x1f3
  84498. 8022412: 4a0a ldr r2, [pc, #40] @ (802243c <dhcp_rebind+0x130>)
  84499. 8022414: fb82 1203 smull r1, r2, r2, r3
  84500. 8022418: 1152 asrs r2, r2, #5
  84501. 802241a: 17db asrs r3, r3, #31
  84502. 802241c: 1ad3 subs r3, r2, r3
  84503. 802241e: b29a uxth r2, r3
  84504. 8022420: 69bb ldr r3, [r7, #24]
  84505. 8022422: 811a strh r2, [r3, #8]
  84506. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_rebind(): set request timeout %"U16_F" msecs\n", msecs));
  84507. return result;
  84508. 8022424: f997 301f ldrsb.w r3, [r7, #31]
  84509. }
  84510. 8022428: 4618 mov r0, r3
  84511. 802242a: 3720 adds r7, #32
  84512. 802242c: 46bd mov sp, r7
  84513. 802242e: bd80 pop {r7, pc}
  84514. 8022430: 24000044 .word 0x24000044
  84515. 8022434: 2402a078 .word 0x2402a078
  84516. 8022438: 080307a8 .word 0x080307a8
  84517. 802243c: 10624dd3 .word 0x10624dd3
  84518. 08022440 <dhcp_reboot>:
  84519. *
  84520. * @param netif network interface which must reboot
  84521. */
  84522. static err_t
  84523. dhcp_reboot(struct netif *netif)
  84524. {
  84525. 8022440: b5b0 push {r4, r5, r7, lr}
  84526. 8022442: b08a sub sp, #40 @ 0x28
  84527. 8022444: af02 add r7, sp, #8
  84528. 8022446: 6078 str r0, [r7, #4]
  84529. struct dhcp *dhcp = netif_dhcp_data(netif);
  84530. 8022448: 687b ldr r3, [r7, #4]
  84531. 802244a: 6a5b ldr r3, [r3, #36] @ 0x24
  84532. 802244c: 61bb str r3, [r7, #24]
  84533. u8_t i;
  84534. struct pbuf *p_out;
  84535. u16_t options_out_len;
  84536. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_reboot()\n"));
  84537. dhcp_set_state(dhcp, DHCP_STATE_REBOOTING);
  84538. 802244e: 2103 movs r1, #3
  84539. 8022450: 69b8 ldr r0, [r7, #24]
  84540. 8022452: f000 f950 bl 80226f6 <dhcp_set_state>
  84541. /* create and initialize the DHCP message header */
  84542. p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len);
  84543. 8022456: f107 030c add.w r3, r7, #12
  84544. 802245a: 2203 movs r2, #3
  84545. 802245c: 69b9 ldr r1, [r7, #24]
  84546. 802245e: 6878 ldr r0, [r7, #4]
  84547. 8022460: f000 fde2 bl 8023028 <dhcp_create_msg>
  84548. 8022464: 6178 str r0, [r7, #20]
  84549. if (p_out != NULL) {
  84550. 8022466: 697b ldr r3, [r7, #20]
  84551. 8022468: 2b00 cmp r3, #0
  84552. 802246a: d066 beq.n 802253a <dhcp_reboot+0xfa>
  84553. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  84554. 802246c: 697b ldr r3, [r7, #20]
  84555. 802246e: 685b ldr r3, [r3, #4]
  84556. 8022470: 613b str r3, [r7, #16]
  84557. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN);
  84558. 8022472: 89b8 ldrh r0, [r7, #12]
  84559. 8022474: 693b ldr r3, [r7, #16]
  84560. 8022476: f103 01f0 add.w r1, r3, #240 @ 0xf0
  84561. 802247a: 2302 movs r3, #2
  84562. 802247c: 2239 movs r2, #57 @ 0x39
  84563. 802247e: f000 f955 bl 802272c <dhcp_option>
  84564. 8022482: 4603 mov r3, r0
  84565. 8022484: 81bb strh r3, [r7, #12]
  84566. options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN_MIN_REQUIRED);
  84567. 8022486: 89b8 ldrh r0, [r7, #12]
  84568. 8022488: 693b ldr r3, [r7, #16]
  84569. 802248a: 33f0 adds r3, #240 @ 0xf0
  84570. 802248c: f44f 7210 mov.w r2, #576 @ 0x240
  84571. 8022490: 4619 mov r1, r3
  84572. 8022492: f000 f9a5 bl 80227e0 <dhcp_option_short>
  84573. 8022496: 4603 mov r3, r0
  84574. 8022498: 81bb strh r3, [r7, #12]
  84575. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_REQUESTED_IP, 4);
  84576. 802249a: 89b8 ldrh r0, [r7, #12]
  84577. 802249c: 693b ldr r3, [r7, #16]
  84578. 802249e: f103 01f0 add.w r1, r3, #240 @ 0xf0
  84579. 80224a2: 2304 movs r3, #4
  84580. 80224a4: 2232 movs r2, #50 @ 0x32
  84581. 80224a6: f000 f941 bl 802272c <dhcp_option>
  84582. 80224aa: 4603 mov r3, r0
  84583. 80224ac: 81bb strh r3, [r7, #12]
  84584. options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(&dhcp->offered_ip_addr)));
  84585. 80224ae: 89bc ldrh r4, [r7, #12]
  84586. 80224b0: 693b ldr r3, [r7, #16]
  84587. 80224b2: f103 05f0 add.w r5, r3, #240 @ 0xf0
  84588. 80224b6: 69bb ldr r3, [r7, #24]
  84589. 80224b8: 69db ldr r3, [r3, #28]
  84590. 80224ba: 4618 mov r0, r3
  84591. 80224bc: f7f6 f8e1 bl 8018682 <lwip_htonl>
  84592. 80224c0: 4603 mov r3, r0
  84593. 80224c2: 461a mov r2, r3
  84594. 80224c4: 4629 mov r1, r5
  84595. 80224c6: 4620 mov r0, r4
  84596. 80224c8: f000 f9bc bl 8022844 <dhcp_option_long>
  84597. 80224cc: 4603 mov r3, r0
  84598. 80224ce: 81bb strh r3, [r7, #12]
  84599. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options));
  84600. 80224d0: 89b8 ldrh r0, [r7, #12]
  84601. 80224d2: 693b ldr r3, [r7, #16]
  84602. 80224d4: f103 01f0 add.w r1, r3, #240 @ 0xf0
  84603. 80224d8: 2303 movs r3, #3
  84604. 80224da: 2237 movs r2, #55 @ 0x37
  84605. 80224dc: f000 f926 bl 802272c <dhcp_option>
  84606. 80224e0: 4603 mov r3, r0
  84607. 80224e2: 81bb strh r3, [r7, #12]
  84608. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  84609. 80224e4: 2300 movs r3, #0
  84610. 80224e6: 77bb strb r3, [r7, #30]
  84611. 80224e8: e00e b.n 8022508 <dhcp_reboot+0xc8>
  84612. options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]);
  84613. 80224ea: 89b8 ldrh r0, [r7, #12]
  84614. 80224ec: 693b ldr r3, [r7, #16]
  84615. 80224ee: f103 01f0 add.w r1, r3, #240 @ 0xf0
  84616. 80224f2: 7fbb ldrb r3, [r7, #30]
  84617. 80224f4: 4a28 ldr r2, [pc, #160] @ (8022598 <dhcp_reboot+0x158>)
  84618. 80224f6: 5cd3 ldrb r3, [r2, r3]
  84619. 80224f8: 461a mov r2, r3
  84620. 80224fa: f000 f94b bl 8022794 <dhcp_option_byte>
  84621. 80224fe: 4603 mov r3, r0
  84622. 8022500: 81bb strh r3, [r7, #12]
  84623. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  84624. 8022502: 7fbb ldrb r3, [r7, #30]
  84625. 8022504: 3301 adds r3, #1
  84626. 8022506: 77bb strb r3, [r7, #30]
  84627. 8022508: 7fbb ldrb r3, [r7, #30]
  84628. 802250a: 2b02 cmp r3, #2
  84629. 802250c: d9ed bls.n 80224ea <dhcp_reboot+0xaa>
  84630. #if LWIP_NETIF_HOSTNAME
  84631. options_out_len = dhcp_option_hostname(options_out_len, msg_out->options, netif);
  84632. #endif /* LWIP_NETIF_HOSTNAME */
  84633. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_REBOOTING, msg_out, DHCP_REQUEST, &options_out_len);
  84634. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  84635. 802250e: 89b8 ldrh r0, [r7, #12]
  84636. 8022510: 693b ldr r3, [r7, #16]
  84637. 8022512: 33f0 adds r3, #240 @ 0xf0
  84638. 8022514: 697a ldr r2, [r7, #20]
  84639. 8022516: 4619 mov r1, r3
  84640. 8022518: f000 fe5c bl 80231d4 <dhcp_option_trailer>
  84641. /* broadcast to server */
  84642. result = udp_sendto_if(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif);
  84643. 802251c: 4b1f ldr r3, [pc, #124] @ (802259c <dhcp_reboot+0x15c>)
  84644. 802251e: 6818 ldr r0, [r3, #0]
  84645. 8022520: 687b ldr r3, [r7, #4]
  84646. 8022522: 9300 str r3, [sp, #0]
  84647. 8022524: 2343 movs r3, #67 @ 0x43
  84648. 8022526: 4a1e ldr r2, [pc, #120] @ (80225a0 <dhcp_reboot+0x160>)
  84649. 8022528: 6979 ldr r1, [r7, #20]
  84650. 802252a: f7fe fcbd bl 8020ea8 <udp_sendto_if>
  84651. 802252e: 4603 mov r3, r0
  84652. 8022530: 77fb strb r3, [r7, #31]
  84653. pbuf_free(p_out);
  84654. 8022532: 6978 ldr r0, [r7, #20]
  84655. 8022534: f7f7 fd72 bl 801a01c <pbuf_free>
  84656. 8022538: e001 b.n 802253e <dhcp_reboot+0xfe>
  84657. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_reboot: REBOOTING\n"));
  84658. } else {
  84659. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_reboot: could not allocate DHCP request\n"));
  84660. result = ERR_MEM;
  84661. 802253a: 23ff movs r3, #255 @ 0xff
  84662. 802253c: 77fb strb r3, [r7, #31]
  84663. }
  84664. if (dhcp->tries < 255) {
  84665. 802253e: 69bb ldr r3, [r7, #24]
  84666. 8022540: 799b ldrb r3, [r3, #6]
  84667. 8022542: 2bff cmp r3, #255 @ 0xff
  84668. 8022544: d005 beq.n 8022552 <dhcp_reboot+0x112>
  84669. dhcp->tries++;
  84670. 8022546: 69bb ldr r3, [r7, #24]
  84671. 8022548: 799b ldrb r3, [r3, #6]
  84672. 802254a: 3301 adds r3, #1
  84673. 802254c: b2da uxtb r2, r3
  84674. 802254e: 69bb ldr r3, [r7, #24]
  84675. 8022550: 719a strb r2, [r3, #6]
  84676. }
  84677. msecs = (u16_t)(dhcp->tries < 10 ? dhcp->tries * 1000 : 10 * 1000);
  84678. 8022552: 69bb ldr r3, [r7, #24]
  84679. 8022554: 799b ldrb r3, [r3, #6]
  84680. 8022556: 2b09 cmp r3, #9
  84681. 8022558: d809 bhi.n 802256e <dhcp_reboot+0x12e>
  84682. 802255a: 69bb ldr r3, [r7, #24]
  84683. 802255c: 799b ldrb r3, [r3, #6]
  84684. 802255e: 461a mov r2, r3
  84685. 8022560: 0152 lsls r2, r2, #5
  84686. 8022562: 1ad2 subs r2, r2, r3
  84687. 8022564: 0092 lsls r2, r2, #2
  84688. 8022566: 4413 add r3, r2
  84689. 8022568: 00db lsls r3, r3, #3
  84690. 802256a: b29b uxth r3, r3
  84691. 802256c: e001 b.n 8022572 <dhcp_reboot+0x132>
  84692. 802256e: f242 7310 movw r3, #10000 @ 0x2710
  84693. 8022572: 81fb strh r3, [r7, #14]
  84694. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  84695. 8022574: 89fb ldrh r3, [r7, #14]
  84696. 8022576: f203 13f3 addw r3, r3, #499 @ 0x1f3
  84697. 802257a: 4a0a ldr r2, [pc, #40] @ (80225a4 <dhcp_reboot+0x164>)
  84698. 802257c: fb82 1203 smull r1, r2, r2, r3
  84699. 8022580: 1152 asrs r2, r2, #5
  84700. 8022582: 17db asrs r3, r3, #31
  84701. 8022584: 1ad3 subs r3, r2, r3
  84702. 8022586: b29a uxth r2, r3
  84703. 8022588: 69bb ldr r3, [r7, #24]
  84704. 802258a: 811a strh r2, [r3, #8]
  84705. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_reboot(): set request timeout %"U16_F" msecs\n", msecs));
  84706. return result;
  84707. 802258c: f997 301f ldrsb.w r3, [r7, #31]
  84708. }
  84709. 8022590: 4618 mov r0, r3
  84710. 8022592: 3720 adds r7, #32
  84711. 8022594: 46bd mov sp, r7
  84712. 8022596: bdb0 pop {r4, r5, r7, pc}
  84713. 8022598: 24000044 .word 0x24000044
  84714. 802259c: 2402a078 .word 0x2402a078
  84715. 80225a0: 080307a8 .word 0x080307a8
  84716. 80225a4: 10624dd3 .word 0x10624dd3
  84717. 080225a8 <dhcp_release_and_stop>:
  84718. *
  84719. * @param netif network interface
  84720. */
  84721. void
  84722. dhcp_release_and_stop(struct netif *netif)
  84723. {
  84724. 80225a8: b5b0 push {r4, r5, r7, lr}
  84725. 80225aa: b08a sub sp, #40 @ 0x28
  84726. 80225ac: af02 add r7, sp, #8
  84727. 80225ae: 6078 str r0, [r7, #4]
  84728. struct dhcp *dhcp = netif_dhcp_data(netif);
  84729. 80225b0: 687b ldr r3, [r7, #4]
  84730. 80225b2: 6a5b ldr r3, [r3, #36] @ 0x24
  84731. 80225b4: 61fb str r3, [r7, #28]
  84732. ip_addr_t server_ip_addr;
  84733. LWIP_ASSERT_CORE_LOCKED();
  84734. 80225b6: f7ed fd5b bl 8010070 <sys_check_core_locking>
  84735. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_release_and_stop()\n"));
  84736. if (dhcp == NULL) {
  84737. 80225ba: 69fb ldr r3, [r7, #28]
  84738. 80225bc: 2b00 cmp r3, #0
  84739. 80225be: f000 8084 beq.w 80226ca <dhcp_release_and_stop+0x122>
  84740. return;
  84741. }
  84742. /* already off? -> nothing to do */
  84743. if (dhcp->state == DHCP_STATE_OFF) {
  84744. 80225c2: 69fb ldr r3, [r7, #28]
  84745. 80225c4: 795b ldrb r3, [r3, #5]
  84746. 80225c6: 2b00 cmp r3, #0
  84747. 80225c8: f000 8081 beq.w 80226ce <dhcp_release_and_stop+0x126>
  84748. return;
  84749. }
  84750. ip_addr_copy(server_ip_addr, dhcp->server_ip_addr);
  84751. 80225cc: 69fb ldr r3, [r7, #28]
  84752. 80225ce: 699b ldr r3, [r3, #24]
  84753. 80225d0: 613b str r3, [r7, #16]
  84754. /* clean old DHCP offer */
  84755. ip_addr_set_zero_ip4(&dhcp->server_ip_addr);
  84756. 80225d2: 69fb ldr r3, [r7, #28]
  84757. 80225d4: 2200 movs r2, #0
  84758. 80225d6: 619a str r2, [r3, #24]
  84759. ip4_addr_set_zero(&dhcp->offered_ip_addr);
  84760. 80225d8: 69fb ldr r3, [r7, #28]
  84761. 80225da: 2200 movs r2, #0
  84762. 80225dc: 61da str r2, [r3, #28]
  84763. ip4_addr_set_zero(&dhcp->offered_sn_mask);
  84764. 80225de: 69fb ldr r3, [r7, #28]
  84765. 80225e0: 2200 movs r2, #0
  84766. 80225e2: 621a str r2, [r3, #32]
  84767. ip4_addr_set_zero(&dhcp->offered_gw_addr);
  84768. 80225e4: 69fb ldr r3, [r7, #28]
  84769. 80225e6: 2200 movs r2, #0
  84770. 80225e8: 625a str r2, [r3, #36] @ 0x24
  84771. #if LWIP_DHCP_BOOTP_FILE
  84772. ip4_addr_set_zero(&dhcp->offered_si_addr);
  84773. #endif /* LWIP_DHCP_BOOTP_FILE */
  84774. dhcp->offered_t0_lease = dhcp->offered_t1_renew = dhcp->offered_t2_rebind = 0;
  84775. 80225ea: 69fb ldr r3, [r7, #28]
  84776. 80225ec: 2200 movs r2, #0
  84777. 80225ee: 631a str r2, [r3, #48] @ 0x30
  84778. 80225f0: 69fb ldr r3, [r7, #28]
  84779. 80225f2: 6b1a ldr r2, [r3, #48] @ 0x30
  84780. 80225f4: 69fb ldr r3, [r7, #28]
  84781. 80225f6: 62da str r2, [r3, #44] @ 0x2c
  84782. 80225f8: 69fb ldr r3, [r7, #28]
  84783. 80225fa: 6ada ldr r2, [r3, #44] @ 0x2c
  84784. 80225fc: 69fb ldr r3, [r7, #28]
  84785. 80225fe: 629a str r2, [r3, #40] @ 0x28
  84786. dhcp->t1_renew_time = dhcp->t2_rebind_time = dhcp->lease_used = dhcp->t0_timeout = 0;
  84787. 8022600: 69fb ldr r3, [r7, #28]
  84788. 8022602: 2200 movs r2, #0
  84789. 8022604: 829a strh r2, [r3, #20]
  84790. 8022606: 69fb ldr r3, [r7, #28]
  84791. 8022608: 8a9a ldrh r2, [r3, #20]
  84792. 802260a: 69fb ldr r3, [r7, #28]
  84793. 802260c: 825a strh r2, [r3, #18]
  84794. 802260e: 69fb ldr r3, [r7, #28]
  84795. 8022610: 8a5a ldrh r2, [r3, #18]
  84796. 8022612: 69fb ldr r3, [r7, #28]
  84797. 8022614: 821a strh r2, [r3, #16]
  84798. 8022616: 69fb ldr r3, [r7, #28]
  84799. 8022618: 8a1a ldrh r2, [r3, #16]
  84800. 802261a: 69fb ldr r3, [r7, #28]
  84801. 802261c: 81da strh r2, [r3, #14]
  84802. /* send release message when current IP was assigned via DHCP */
  84803. if (dhcp_supplied_address(netif)) {
  84804. 802261e: 6878 ldr r0, [r7, #4]
  84805. 8022620: f000 fe06 bl 8023230 <dhcp_supplied_address>
  84806. 8022624: 4603 mov r3, r0
  84807. 8022626: 2b00 cmp r3, #0
  84808. 8022628: d03b beq.n 80226a2 <dhcp_release_and_stop+0xfa>
  84809. /* create and initialize the DHCP message header */
  84810. struct pbuf *p_out;
  84811. u16_t options_out_len;
  84812. p_out = dhcp_create_msg(netif, dhcp, DHCP_RELEASE, &options_out_len);
  84813. 802262a: f107 030e add.w r3, r7, #14
  84814. 802262e: 2207 movs r2, #7
  84815. 8022630: 69f9 ldr r1, [r7, #28]
  84816. 8022632: 6878 ldr r0, [r7, #4]
  84817. 8022634: f000 fcf8 bl 8023028 <dhcp_create_msg>
  84818. 8022638: 61b8 str r0, [r7, #24]
  84819. if (p_out != NULL) {
  84820. 802263a: 69bb ldr r3, [r7, #24]
  84821. 802263c: 2b00 cmp r3, #0
  84822. 802263e: d030 beq.n 80226a2 <dhcp_release_and_stop+0xfa>
  84823. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  84824. 8022640: 69bb ldr r3, [r7, #24]
  84825. 8022642: 685b ldr r3, [r3, #4]
  84826. 8022644: 617b str r3, [r7, #20]
  84827. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_SERVER_ID, 4);
  84828. 8022646: 89f8 ldrh r0, [r7, #14]
  84829. 8022648: 697b ldr r3, [r7, #20]
  84830. 802264a: f103 01f0 add.w r1, r3, #240 @ 0xf0
  84831. 802264e: 2304 movs r3, #4
  84832. 8022650: 2236 movs r2, #54 @ 0x36
  84833. 8022652: f000 f86b bl 802272c <dhcp_option>
  84834. 8022656: 4603 mov r3, r0
  84835. 8022658: 81fb strh r3, [r7, #14]
  84836. options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(ip_2_ip4(&server_ip_addr))));
  84837. 802265a: 89fc ldrh r4, [r7, #14]
  84838. 802265c: 697b ldr r3, [r7, #20]
  84839. 802265e: f103 05f0 add.w r5, r3, #240 @ 0xf0
  84840. 8022662: 693b ldr r3, [r7, #16]
  84841. 8022664: 4618 mov r0, r3
  84842. 8022666: f7f6 f80c bl 8018682 <lwip_htonl>
  84843. 802266a: 4603 mov r3, r0
  84844. 802266c: 461a mov r2, r3
  84845. 802266e: 4629 mov r1, r5
  84846. 8022670: 4620 mov r0, r4
  84847. 8022672: f000 f8e7 bl 8022844 <dhcp_option_long>
  84848. 8022676: 4603 mov r3, r0
  84849. 8022678: 81fb strh r3, [r7, #14]
  84850. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, dhcp->state, msg_out, DHCP_RELEASE, &options_out_len);
  84851. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  84852. 802267a: 89f8 ldrh r0, [r7, #14]
  84853. 802267c: 697b ldr r3, [r7, #20]
  84854. 802267e: 33f0 adds r3, #240 @ 0xf0
  84855. 8022680: 69ba ldr r2, [r7, #24]
  84856. 8022682: 4619 mov r1, r3
  84857. 8022684: f000 fda6 bl 80231d4 <dhcp_option_trailer>
  84858. udp_sendto_if(dhcp_pcb, p_out, &server_ip_addr, LWIP_IANA_PORT_DHCP_SERVER, netif);
  84859. 8022688: 4b13 ldr r3, [pc, #76] @ (80226d8 <dhcp_release_and_stop+0x130>)
  84860. 802268a: 6818 ldr r0, [r3, #0]
  84861. 802268c: f107 0210 add.w r2, r7, #16
  84862. 8022690: 687b ldr r3, [r7, #4]
  84863. 8022692: 9300 str r3, [sp, #0]
  84864. 8022694: 2343 movs r3, #67 @ 0x43
  84865. 8022696: 69b9 ldr r1, [r7, #24]
  84866. 8022698: f7fe fc06 bl 8020ea8 <udp_sendto_if>
  84867. pbuf_free(p_out);
  84868. 802269c: 69b8 ldr r0, [r7, #24]
  84869. 802269e: f7f7 fcbd bl 801a01c <pbuf_free>
  84870. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_release: could not allocate DHCP request\n"));
  84871. }
  84872. }
  84873. /* remove IP address from interface (prevents routing from selecting this interface) */
  84874. netif_set_addr(netif, IP4_ADDR_ANY4, IP4_ADDR_ANY4, IP4_ADDR_ANY4);
  84875. 80226a2: 4b0e ldr r3, [pc, #56] @ (80226dc <dhcp_release_and_stop+0x134>)
  84876. 80226a4: 4a0d ldr r2, [pc, #52] @ (80226dc <dhcp_release_and_stop+0x134>)
  84877. 80226a6: 490d ldr r1, [pc, #52] @ (80226dc <dhcp_release_and_stop+0x134>)
  84878. 80226a8: 6878 ldr r0, [r7, #4]
  84879. 80226aa: f7f6 ff6d bl 8019588 <netif_set_addr>
  84880. autoip_stop(netif);
  84881. dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_OFF;
  84882. }
  84883. #endif /* LWIP_DHCP_AUTOIP_COOP */
  84884. dhcp_set_state(dhcp, DHCP_STATE_OFF);
  84885. 80226ae: 2100 movs r1, #0
  84886. 80226b0: 69f8 ldr r0, [r7, #28]
  84887. 80226b2: f000 f820 bl 80226f6 <dhcp_set_state>
  84888. if (dhcp->pcb_allocated != 0) {
  84889. 80226b6: 69fb ldr r3, [r7, #28]
  84890. 80226b8: 791b ldrb r3, [r3, #4]
  84891. 80226ba: 2b00 cmp r3, #0
  84892. 80226bc: d008 beq.n 80226d0 <dhcp_release_and_stop+0x128>
  84893. dhcp_dec_pcb_refcount(); /* free DHCP PCB if not needed any more */
  84894. 80226be: f7fe ff83 bl 80215c8 <dhcp_dec_pcb_refcount>
  84895. dhcp->pcb_allocated = 0;
  84896. 80226c2: 69fb ldr r3, [r7, #28]
  84897. 80226c4: 2200 movs r2, #0
  84898. 80226c6: 711a strb r2, [r3, #4]
  84899. 80226c8: e002 b.n 80226d0 <dhcp_release_and_stop+0x128>
  84900. return;
  84901. 80226ca: bf00 nop
  84902. 80226cc: e000 b.n 80226d0 <dhcp_release_and_stop+0x128>
  84903. return;
  84904. 80226ce: bf00 nop
  84905. }
  84906. }
  84907. 80226d0: 3720 adds r7, #32
  84908. 80226d2: 46bd mov sp, r7
  84909. 80226d4: bdb0 pop {r4, r5, r7, pc}
  84910. 80226d6: bf00 nop
  84911. 80226d8: 2402a078 .word 0x2402a078
  84912. 80226dc: 080307a4 .word 0x080307a4
  84913. 080226e0 <dhcp_stop>:
  84914. * This function calls dhcp_release_and_stop() internally.
  84915. * @deprecated Use dhcp_release_and_stop() instead.
  84916. */
  84917. void
  84918. dhcp_stop(struct netif *netif)
  84919. {
  84920. 80226e0: b580 push {r7, lr}
  84921. 80226e2: b082 sub sp, #8
  84922. 80226e4: af00 add r7, sp, #0
  84923. 80226e6: 6078 str r0, [r7, #4]
  84924. dhcp_release_and_stop(netif);
  84925. 80226e8: 6878 ldr r0, [r7, #4]
  84926. 80226ea: f7ff ff5d bl 80225a8 <dhcp_release_and_stop>
  84927. }
  84928. 80226ee: bf00 nop
  84929. 80226f0: 3708 adds r7, #8
  84930. 80226f2: 46bd mov sp, r7
  84931. 80226f4: bd80 pop {r7, pc}
  84932. 080226f6 <dhcp_set_state>:
  84933. *
  84934. * If the state changed, reset the number of tries.
  84935. */
  84936. static void
  84937. dhcp_set_state(struct dhcp *dhcp, u8_t new_state)
  84938. {
  84939. 80226f6: b480 push {r7}
  84940. 80226f8: b083 sub sp, #12
  84941. 80226fa: af00 add r7, sp, #0
  84942. 80226fc: 6078 str r0, [r7, #4]
  84943. 80226fe: 460b mov r3, r1
  84944. 8022700: 70fb strb r3, [r7, #3]
  84945. if (new_state != dhcp->state) {
  84946. 8022702: 687b ldr r3, [r7, #4]
  84947. 8022704: 795b ldrb r3, [r3, #5]
  84948. 8022706: 78fa ldrb r2, [r7, #3]
  84949. 8022708: 429a cmp r2, r3
  84950. 802270a: d008 beq.n 802271e <dhcp_set_state+0x28>
  84951. dhcp->state = new_state;
  84952. 802270c: 687b ldr r3, [r7, #4]
  84953. 802270e: 78fa ldrb r2, [r7, #3]
  84954. 8022710: 715a strb r2, [r3, #5]
  84955. dhcp->tries = 0;
  84956. 8022712: 687b ldr r3, [r7, #4]
  84957. 8022714: 2200 movs r2, #0
  84958. 8022716: 719a strb r2, [r3, #6]
  84959. dhcp->request_timeout = 0;
  84960. 8022718: 687b ldr r3, [r7, #4]
  84961. 802271a: 2200 movs r2, #0
  84962. 802271c: 811a strh r2, [r3, #8]
  84963. }
  84964. }
  84965. 802271e: bf00 nop
  84966. 8022720: 370c adds r7, #12
  84967. 8022722: 46bd mov sp, r7
  84968. 8022724: f85d 7b04 ldr.w r7, [sp], #4
  84969. 8022728: 4770 bx lr
  84970. ...
  84971. 0802272c <dhcp_option>:
  84972. * DHCP message.
  84973. *
  84974. */
  84975. static u16_t
  84976. dhcp_option(u16_t options_out_len, u8_t *options, u8_t option_type, u8_t option_len)
  84977. {
  84978. 802272c: b580 push {r7, lr}
  84979. 802272e: b082 sub sp, #8
  84980. 8022730: af00 add r7, sp, #0
  84981. 8022732: 6039 str r1, [r7, #0]
  84982. 8022734: 4611 mov r1, r2
  84983. 8022736: 461a mov r2, r3
  84984. 8022738: 4603 mov r3, r0
  84985. 802273a: 80fb strh r3, [r7, #6]
  84986. 802273c: 460b mov r3, r1
  84987. 802273e: 717b strb r3, [r7, #5]
  84988. 8022740: 4613 mov r3, r2
  84989. 8022742: 713b strb r3, [r7, #4]
  84990. LWIP_ASSERT("dhcp_option: options_out_len + 2 + option_len <= DHCP_OPTIONS_LEN", options_out_len + 2U + option_len <= DHCP_OPTIONS_LEN);
  84991. 8022744: 88fa ldrh r2, [r7, #6]
  84992. 8022746: 793b ldrb r3, [r7, #4]
  84993. 8022748: 4413 add r3, r2
  84994. 802274a: 3302 adds r3, #2
  84995. 802274c: 2b44 cmp r3, #68 @ 0x44
  84996. 802274e: d906 bls.n 802275e <dhcp_option+0x32>
  84997. 8022750: 4b0d ldr r3, [pc, #52] @ (8022788 <dhcp_option+0x5c>)
  84998. 8022752: f240 529a movw r2, #1434 @ 0x59a
  84999. 8022756: 490d ldr r1, [pc, #52] @ (802278c <dhcp_option+0x60>)
  85000. 8022758: 480d ldr r0, [pc, #52] @ (8022790 <dhcp_option+0x64>)
  85001. 802275a: f006 fed7 bl 802950c <iprintf>
  85002. options[options_out_len++] = option_type;
  85003. 802275e: 88fb ldrh r3, [r7, #6]
  85004. 8022760: 1c5a adds r2, r3, #1
  85005. 8022762: 80fa strh r2, [r7, #6]
  85006. 8022764: 461a mov r2, r3
  85007. 8022766: 683b ldr r3, [r7, #0]
  85008. 8022768: 4413 add r3, r2
  85009. 802276a: 797a ldrb r2, [r7, #5]
  85010. 802276c: 701a strb r2, [r3, #0]
  85011. options[options_out_len++] = option_len;
  85012. 802276e: 88fb ldrh r3, [r7, #6]
  85013. 8022770: 1c5a adds r2, r3, #1
  85014. 8022772: 80fa strh r2, [r7, #6]
  85015. 8022774: 461a mov r2, r3
  85016. 8022776: 683b ldr r3, [r7, #0]
  85017. 8022778: 4413 add r3, r2
  85018. 802277a: 793a ldrb r2, [r7, #4]
  85019. 802277c: 701a strb r2, [r3, #0]
  85020. return options_out_len;
  85021. 802277e: 88fb ldrh r3, [r7, #6]
  85022. }
  85023. 8022780: 4618 mov r0, r3
  85024. 8022782: 3708 adds r7, #8
  85025. 8022784: 46bd mov sp, r7
  85026. 8022786: bd80 pop {r7, pc}
  85027. 8022788: 0802f9e8 .word 0x0802f9e8
  85028. 802278c: 0802fb7c .word 0x0802fb7c
  85029. 8022790: 0802fa48 .word 0x0802fa48
  85030. 08022794 <dhcp_option_byte>:
  85031. * Concatenate a single byte to the outgoing DHCP message.
  85032. *
  85033. */
  85034. static u16_t
  85035. dhcp_option_byte(u16_t options_out_len, u8_t *options, u8_t value)
  85036. {
  85037. 8022794: b580 push {r7, lr}
  85038. 8022796: b082 sub sp, #8
  85039. 8022798: af00 add r7, sp, #0
  85040. 802279a: 4603 mov r3, r0
  85041. 802279c: 6039 str r1, [r7, #0]
  85042. 802279e: 80fb strh r3, [r7, #6]
  85043. 80227a0: 4613 mov r3, r2
  85044. 80227a2: 717b strb r3, [r7, #5]
  85045. LWIP_ASSERT("dhcp_option_byte: options_out_len < DHCP_OPTIONS_LEN", options_out_len < DHCP_OPTIONS_LEN);
  85046. 80227a4: 88fb ldrh r3, [r7, #6]
  85047. 80227a6: 2b43 cmp r3, #67 @ 0x43
  85048. 80227a8: d906 bls.n 80227b8 <dhcp_option_byte+0x24>
  85049. 80227aa: 4b0a ldr r3, [pc, #40] @ (80227d4 <dhcp_option_byte+0x40>)
  85050. 80227ac: f240 52a6 movw r2, #1446 @ 0x5a6
  85051. 80227b0: 4909 ldr r1, [pc, #36] @ (80227d8 <dhcp_option_byte+0x44>)
  85052. 80227b2: 480a ldr r0, [pc, #40] @ (80227dc <dhcp_option_byte+0x48>)
  85053. 80227b4: f006 feaa bl 802950c <iprintf>
  85054. options[options_out_len++] = value;
  85055. 80227b8: 88fb ldrh r3, [r7, #6]
  85056. 80227ba: 1c5a adds r2, r3, #1
  85057. 80227bc: 80fa strh r2, [r7, #6]
  85058. 80227be: 461a mov r2, r3
  85059. 80227c0: 683b ldr r3, [r7, #0]
  85060. 80227c2: 4413 add r3, r2
  85061. 80227c4: 797a ldrb r2, [r7, #5]
  85062. 80227c6: 701a strb r2, [r3, #0]
  85063. return options_out_len;
  85064. 80227c8: 88fb ldrh r3, [r7, #6]
  85065. }
  85066. 80227ca: 4618 mov r0, r3
  85067. 80227cc: 3708 adds r7, #8
  85068. 80227ce: 46bd mov sp, r7
  85069. 80227d0: bd80 pop {r7, pc}
  85070. 80227d2: bf00 nop
  85071. 80227d4: 0802f9e8 .word 0x0802f9e8
  85072. 80227d8: 0802fbc0 .word 0x0802fbc0
  85073. 80227dc: 0802fa48 .word 0x0802fa48
  85074. 080227e0 <dhcp_option_short>:
  85075. static u16_t
  85076. dhcp_option_short(u16_t options_out_len, u8_t *options, u16_t value)
  85077. {
  85078. 80227e0: b580 push {r7, lr}
  85079. 80227e2: b082 sub sp, #8
  85080. 80227e4: af00 add r7, sp, #0
  85081. 80227e6: 4603 mov r3, r0
  85082. 80227e8: 6039 str r1, [r7, #0]
  85083. 80227ea: 80fb strh r3, [r7, #6]
  85084. 80227ec: 4613 mov r3, r2
  85085. 80227ee: 80bb strh r3, [r7, #4]
  85086. LWIP_ASSERT("dhcp_option_short: options_out_len + 2 <= DHCP_OPTIONS_LEN", options_out_len + 2U <= DHCP_OPTIONS_LEN);
  85087. 80227f0: 88fb ldrh r3, [r7, #6]
  85088. 80227f2: 3302 adds r3, #2
  85089. 80227f4: 2b44 cmp r3, #68 @ 0x44
  85090. 80227f6: d906 bls.n 8022806 <dhcp_option_short+0x26>
  85091. 80227f8: 4b0f ldr r3, [pc, #60] @ (8022838 <dhcp_option_short+0x58>)
  85092. 80227fa: f240 52ae movw r2, #1454 @ 0x5ae
  85093. 80227fe: 490f ldr r1, [pc, #60] @ (802283c <dhcp_option_short+0x5c>)
  85094. 8022800: 480f ldr r0, [pc, #60] @ (8022840 <dhcp_option_short+0x60>)
  85095. 8022802: f006 fe83 bl 802950c <iprintf>
  85096. options[options_out_len++] = (u8_t)((value & 0xff00U) >> 8);
  85097. 8022806: 88bb ldrh r3, [r7, #4]
  85098. 8022808: 0a1b lsrs r3, r3, #8
  85099. 802280a: b29a uxth r2, r3
  85100. 802280c: 88fb ldrh r3, [r7, #6]
  85101. 802280e: 1c59 adds r1, r3, #1
  85102. 8022810: 80f9 strh r1, [r7, #6]
  85103. 8022812: 4619 mov r1, r3
  85104. 8022814: 683b ldr r3, [r7, #0]
  85105. 8022816: 440b add r3, r1
  85106. 8022818: b2d2 uxtb r2, r2
  85107. 802281a: 701a strb r2, [r3, #0]
  85108. options[options_out_len++] = (u8_t) (value & 0x00ffU);
  85109. 802281c: 88fb ldrh r3, [r7, #6]
  85110. 802281e: 1c5a adds r2, r3, #1
  85111. 8022820: 80fa strh r2, [r7, #6]
  85112. 8022822: 461a mov r2, r3
  85113. 8022824: 683b ldr r3, [r7, #0]
  85114. 8022826: 4413 add r3, r2
  85115. 8022828: 88ba ldrh r2, [r7, #4]
  85116. 802282a: b2d2 uxtb r2, r2
  85117. 802282c: 701a strb r2, [r3, #0]
  85118. return options_out_len;
  85119. 802282e: 88fb ldrh r3, [r7, #6]
  85120. }
  85121. 8022830: 4618 mov r0, r3
  85122. 8022832: 3708 adds r7, #8
  85123. 8022834: 46bd mov sp, r7
  85124. 8022836: bd80 pop {r7, pc}
  85125. 8022838: 0802f9e8 .word 0x0802f9e8
  85126. 802283c: 0802fbf8 .word 0x0802fbf8
  85127. 8022840: 0802fa48 .word 0x0802fa48
  85128. 08022844 <dhcp_option_long>:
  85129. static u16_t
  85130. dhcp_option_long(u16_t options_out_len, u8_t *options, u32_t value)
  85131. {
  85132. 8022844: b580 push {r7, lr}
  85133. 8022846: b084 sub sp, #16
  85134. 8022848: af00 add r7, sp, #0
  85135. 802284a: 4603 mov r3, r0
  85136. 802284c: 60b9 str r1, [r7, #8]
  85137. 802284e: 607a str r2, [r7, #4]
  85138. 8022850: 81fb strh r3, [r7, #14]
  85139. LWIP_ASSERT("dhcp_option_long: options_out_len + 4 <= DHCP_OPTIONS_LEN", options_out_len + 4U <= DHCP_OPTIONS_LEN);
  85140. 8022852: 89fb ldrh r3, [r7, #14]
  85141. 8022854: 3304 adds r3, #4
  85142. 8022856: 2b44 cmp r3, #68 @ 0x44
  85143. 8022858: d906 bls.n 8022868 <dhcp_option_long+0x24>
  85144. 802285a: 4b19 ldr r3, [pc, #100] @ (80228c0 <dhcp_option_long+0x7c>)
  85145. 802285c: f240 52b7 movw r2, #1463 @ 0x5b7
  85146. 8022860: 4918 ldr r1, [pc, #96] @ (80228c4 <dhcp_option_long+0x80>)
  85147. 8022862: 4819 ldr r0, [pc, #100] @ (80228c8 <dhcp_option_long+0x84>)
  85148. 8022864: f006 fe52 bl 802950c <iprintf>
  85149. options[options_out_len++] = (u8_t)((value & 0xff000000UL) >> 24);
  85150. 8022868: 687b ldr r3, [r7, #4]
  85151. 802286a: 0e1a lsrs r2, r3, #24
  85152. 802286c: 89fb ldrh r3, [r7, #14]
  85153. 802286e: 1c59 adds r1, r3, #1
  85154. 8022870: 81f9 strh r1, [r7, #14]
  85155. 8022872: 4619 mov r1, r3
  85156. 8022874: 68bb ldr r3, [r7, #8]
  85157. 8022876: 440b add r3, r1
  85158. 8022878: b2d2 uxtb r2, r2
  85159. 802287a: 701a strb r2, [r3, #0]
  85160. options[options_out_len++] = (u8_t)((value & 0x00ff0000UL) >> 16);
  85161. 802287c: 687b ldr r3, [r7, #4]
  85162. 802287e: 0c1a lsrs r2, r3, #16
  85163. 8022880: 89fb ldrh r3, [r7, #14]
  85164. 8022882: 1c59 adds r1, r3, #1
  85165. 8022884: 81f9 strh r1, [r7, #14]
  85166. 8022886: 4619 mov r1, r3
  85167. 8022888: 68bb ldr r3, [r7, #8]
  85168. 802288a: 440b add r3, r1
  85169. 802288c: b2d2 uxtb r2, r2
  85170. 802288e: 701a strb r2, [r3, #0]
  85171. options[options_out_len++] = (u8_t)((value & 0x0000ff00UL) >> 8);
  85172. 8022890: 687b ldr r3, [r7, #4]
  85173. 8022892: 0a1a lsrs r2, r3, #8
  85174. 8022894: 89fb ldrh r3, [r7, #14]
  85175. 8022896: 1c59 adds r1, r3, #1
  85176. 8022898: 81f9 strh r1, [r7, #14]
  85177. 802289a: 4619 mov r1, r3
  85178. 802289c: 68bb ldr r3, [r7, #8]
  85179. 802289e: 440b add r3, r1
  85180. 80228a0: b2d2 uxtb r2, r2
  85181. 80228a2: 701a strb r2, [r3, #0]
  85182. options[options_out_len++] = (u8_t)((value & 0x000000ffUL));
  85183. 80228a4: 89fb ldrh r3, [r7, #14]
  85184. 80228a6: 1c5a adds r2, r3, #1
  85185. 80228a8: 81fa strh r2, [r7, #14]
  85186. 80228aa: 461a mov r2, r3
  85187. 80228ac: 68bb ldr r3, [r7, #8]
  85188. 80228ae: 4413 add r3, r2
  85189. 80228b0: 687a ldr r2, [r7, #4]
  85190. 80228b2: b2d2 uxtb r2, r2
  85191. 80228b4: 701a strb r2, [r3, #0]
  85192. return options_out_len;
  85193. 80228b6: 89fb ldrh r3, [r7, #14]
  85194. }
  85195. 80228b8: 4618 mov r0, r3
  85196. 80228ba: 3710 adds r7, #16
  85197. 80228bc: 46bd mov sp, r7
  85198. 80228be: bd80 pop {r7, pc}
  85199. 80228c0: 0802f9e8 .word 0x0802f9e8
  85200. 80228c4: 0802fc34 .word 0x0802fc34
  85201. 80228c8: 0802fa48 .word 0x0802fa48
  85202. 080228cc <dhcp_parse_reply>:
  85203. * use that further on.
  85204. *
  85205. */
  85206. static err_t
  85207. dhcp_parse_reply(struct pbuf *p, struct dhcp *dhcp)
  85208. {
  85209. 80228cc: b580 push {r7, lr}
  85210. 80228ce: b092 sub sp, #72 @ 0x48
  85211. 80228d0: af00 add r7, sp, #0
  85212. 80228d2: 6078 str r0, [r7, #4]
  85213. 80228d4: 6039 str r1, [r7, #0]
  85214. u16_t offset;
  85215. u16_t offset_max;
  85216. u16_t options_idx;
  85217. u16_t options_idx_max;
  85218. struct pbuf *q;
  85219. int parse_file_as_options = 0;
  85220. 80228d6: 2300 movs r3, #0
  85221. 80228d8: 633b str r3, [r7, #48] @ 0x30
  85222. int parse_sname_as_options = 0;
  85223. 80228da: 2300 movs r3, #0
  85224. 80228dc: 62fb str r3, [r7, #44] @ 0x2c
  85225. #endif
  85226. LWIP_UNUSED_ARG(dhcp);
  85227. /* clear received options */
  85228. dhcp_clear_all_options(dhcp);
  85229. 80228de: 2208 movs r2, #8
  85230. 80228e0: 2100 movs r1, #0
  85231. 80228e2: 48b8 ldr r0, [pc, #736] @ (8022bc4 <dhcp_parse_reply+0x2f8>)
  85232. 80228e4: f006 ffa4 bl 8029830 <memset>
  85233. /* check that beginning of dhcp_msg (up to and including chaddr) is in first pbuf */
  85234. if (p->len < DHCP_SNAME_OFS) {
  85235. 80228e8: 687b ldr r3, [r7, #4]
  85236. 80228ea: 895b ldrh r3, [r3, #10]
  85237. 80228ec: 2b2b cmp r3, #43 @ 0x2b
  85238. 80228ee: d802 bhi.n 80228f6 <dhcp_parse_reply+0x2a>
  85239. return ERR_BUF;
  85240. 80228f0: f06f 0301 mvn.w r3, #1
  85241. 80228f4: e2b8 b.n 8022e68 <dhcp_parse_reply+0x59c>
  85242. }
  85243. msg_in = (struct dhcp_msg *)p->payload;
  85244. 80228f6: 687b ldr r3, [r7, #4]
  85245. 80228f8: 685b ldr r3, [r3, #4]
  85246. 80228fa: 61fb str r3, [r7, #28]
  85247. #endif /* LWIP_DHCP_BOOTP_FILE */
  85248. /* parse options */
  85249. /* start with options field */
  85250. options_idx = DHCP_OPTIONS_OFS;
  85251. 80228fc: 23f0 movs r3, #240 @ 0xf0
  85252. 80228fe: 87bb strh r3, [r7, #60] @ 0x3c
  85253. /* parse options to the end of the received packet */
  85254. options_idx_max = p->tot_len;
  85255. 8022900: 687b ldr r3, [r7, #4]
  85256. 8022902: 891b ldrh r3, [r3, #8]
  85257. 8022904: 877b strh r3, [r7, #58] @ 0x3a
  85258. again:
  85259. q = p;
  85260. 8022906: 687b ldr r3, [r7, #4]
  85261. 8022908: 637b str r3, [r7, #52] @ 0x34
  85262. while ((q != NULL) && (options_idx >= q->len)) {
  85263. 802290a: e00c b.n 8022926 <dhcp_parse_reply+0x5a>
  85264. options_idx = (u16_t)(options_idx - q->len);
  85265. 802290c: 6b7b ldr r3, [r7, #52] @ 0x34
  85266. 802290e: 895b ldrh r3, [r3, #10]
  85267. 8022910: 8fba ldrh r2, [r7, #60] @ 0x3c
  85268. 8022912: 1ad3 subs r3, r2, r3
  85269. 8022914: 87bb strh r3, [r7, #60] @ 0x3c
  85270. options_idx_max = (u16_t)(options_idx_max - q->len);
  85271. 8022916: 6b7b ldr r3, [r7, #52] @ 0x34
  85272. 8022918: 895b ldrh r3, [r3, #10]
  85273. 802291a: 8f7a ldrh r2, [r7, #58] @ 0x3a
  85274. 802291c: 1ad3 subs r3, r2, r3
  85275. 802291e: 877b strh r3, [r7, #58] @ 0x3a
  85276. q = q->next;
  85277. 8022920: 6b7b ldr r3, [r7, #52] @ 0x34
  85278. 8022922: 681b ldr r3, [r3, #0]
  85279. 8022924: 637b str r3, [r7, #52] @ 0x34
  85280. while ((q != NULL) && (options_idx >= q->len)) {
  85281. 8022926: 6b7b ldr r3, [r7, #52] @ 0x34
  85282. 8022928: 2b00 cmp r3, #0
  85283. 802292a: d004 beq.n 8022936 <dhcp_parse_reply+0x6a>
  85284. 802292c: 6b7b ldr r3, [r7, #52] @ 0x34
  85285. 802292e: 895b ldrh r3, [r3, #10]
  85286. 8022930: 8fba ldrh r2, [r7, #60] @ 0x3c
  85287. 8022932: 429a cmp r2, r3
  85288. 8022934: d2ea bcs.n 802290c <dhcp_parse_reply+0x40>
  85289. }
  85290. if (q == NULL) {
  85291. 8022936: 6b7b ldr r3, [r7, #52] @ 0x34
  85292. 8022938: 2b00 cmp r3, #0
  85293. 802293a: d102 bne.n 8022942 <dhcp_parse_reply+0x76>
  85294. return ERR_BUF;
  85295. 802293c: f06f 0301 mvn.w r3, #1
  85296. 8022940: e292 b.n 8022e68 <dhcp_parse_reply+0x59c>
  85297. }
  85298. offset = options_idx;
  85299. 8022942: 8fbb ldrh r3, [r7, #60] @ 0x3c
  85300. 8022944: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  85301. offset_max = options_idx_max;
  85302. 8022948: 8f7b ldrh r3, [r7, #58] @ 0x3a
  85303. 802294a: 87fb strh r3, [r7, #62] @ 0x3e
  85304. options = (u8_t *)q->payload;
  85305. 802294c: 6b7b ldr r3, [r7, #52] @ 0x34
  85306. 802294e: 685b ldr r3, [r3, #4]
  85307. 8022950: 643b str r3, [r7, #64] @ 0x40
  85308. /* at least 1 byte to read and no end marker, then at least 3 bytes to read? */
  85309. while ((q != NULL) && (offset < offset_max) && (options[offset] != DHCP_OPTION_END)) {
  85310. 8022952: e247 b.n 8022de4 <dhcp_parse_reply+0x518>
  85311. u8_t op = options[offset];
  85312. 8022954: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  85313. 8022958: 6c3a ldr r2, [r7, #64] @ 0x40
  85314. 802295a: 4413 add r3, r2
  85315. 802295c: 781b ldrb r3, [r3, #0]
  85316. 802295e: 76fb strb r3, [r7, #27]
  85317. u8_t len;
  85318. u8_t decode_len = 0;
  85319. 8022960: 2300 movs r3, #0
  85320. 8022962: f887 302a strb.w r3, [r7, #42] @ 0x2a
  85321. int decode_idx = -1;
  85322. 8022966: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  85323. 802296a: 627b str r3, [r7, #36] @ 0x24
  85324. u16_t val_offset = (u16_t)(offset + 2);
  85325. 802296c: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  85326. 8022970: 3302 adds r3, #2
  85327. 8022972: 847b strh r3, [r7, #34] @ 0x22
  85328. if (val_offset < offset) {
  85329. 8022974: 8c7a ldrh r2, [r7, #34] @ 0x22
  85330. 8022976: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  85331. 802297a: 429a cmp r2, r3
  85332. 802297c: d202 bcs.n 8022984 <dhcp_parse_reply+0xb8>
  85333. /* overflow */
  85334. return ERR_BUF;
  85335. 802297e: f06f 0301 mvn.w r3, #1
  85336. 8022982: e271 b.n 8022e68 <dhcp_parse_reply+0x59c>
  85337. }
  85338. /* len byte might be in the next pbuf */
  85339. if ((offset + 1) < q->len) {
  85340. 8022984: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  85341. 8022988: 3301 adds r3, #1
  85342. 802298a: 6b7a ldr r2, [r7, #52] @ 0x34
  85343. 802298c: 8952 ldrh r2, [r2, #10]
  85344. 802298e: 4293 cmp r3, r2
  85345. 8022990: da08 bge.n 80229a4 <dhcp_parse_reply+0xd8>
  85346. len = options[offset + 1];
  85347. 8022992: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  85348. 8022996: 3301 adds r3, #1
  85349. 8022998: 6c3a ldr r2, [r7, #64] @ 0x40
  85350. 802299a: 4413 add r3, r2
  85351. 802299c: 781b ldrb r3, [r3, #0]
  85352. 802299e: f887 302b strb.w r3, [r7, #43] @ 0x2b
  85353. 80229a2: e00b b.n 80229bc <dhcp_parse_reply+0xf0>
  85354. } else {
  85355. len = (q->next != NULL ? ((u8_t *)q->next->payload)[0] : 0);
  85356. 80229a4: 6b7b ldr r3, [r7, #52] @ 0x34
  85357. 80229a6: 681b ldr r3, [r3, #0]
  85358. 80229a8: 2b00 cmp r3, #0
  85359. 80229aa: d004 beq.n 80229b6 <dhcp_parse_reply+0xea>
  85360. 80229ac: 6b7b ldr r3, [r7, #52] @ 0x34
  85361. 80229ae: 681b ldr r3, [r3, #0]
  85362. 80229b0: 685b ldr r3, [r3, #4]
  85363. 80229b2: 781b ldrb r3, [r3, #0]
  85364. 80229b4: e000 b.n 80229b8 <dhcp_parse_reply+0xec>
  85365. 80229b6: 2300 movs r3, #0
  85366. 80229b8: f887 302b strb.w r3, [r7, #43] @ 0x2b
  85367. }
  85368. /* LWIP_DEBUGF(DHCP_DEBUG, ("msg_offset=%"U16_F", q->len=%"U16_F, msg_offset, q->len)); */
  85369. decode_len = len;
  85370. 80229bc: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  85371. 80229c0: f887 302a strb.w r3, [r7, #42] @ 0x2a
  85372. switch (op) {
  85373. 80229c4: 7efb ldrb r3, [r7, #27]
  85374. 80229c6: 2b3b cmp r3, #59 @ 0x3b
  85375. 80229c8: f200 812c bhi.w 8022c24 <dhcp_parse_reply+0x358>
  85376. 80229cc: a201 add r2, pc, #4 @ (adr r2, 80229d4 <dhcp_parse_reply+0x108>)
  85377. 80229ce: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  85378. 80229d2: bf00 nop
  85379. 80229d4: 08022ac5 .word 0x08022ac5
  85380. 80229d8: 08022ad5 .word 0x08022ad5
  85381. 80229dc: 08022c25 .word 0x08022c25
  85382. 80229e0: 08022af7 .word 0x08022af7
  85383. 80229e4: 08022c25 .word 0x08022c25
  85384. 80229e8: 08022c25 .word 0x08022c25
  85385. 80229ec: 08022c25 .word 0x08022c25
  85386. 80229f0: 08022c25 .word 0x08022c25
  85387. 80229f4: 08022c25 .word 0x08022c25
  85388. 80229f8: 08022c25 .word 0x08022c25
  85389. 80229fc: 08022c25 .word 0x08022c25
  85390. 8022a00: 08022c25 .word 0x08022c25
  85391. 8022a04: 08022c25 .word 0x08022c25
  85392. 8022a08: 08022c25 .word 0x08022c25
  85393. 8022a0c: 08022c25 .word 0x08022c25
  85394. 8022a10: 08022c25 .word 0x08022c25
  85395. 8022a14: 08022c25 .word 0x08022c25
  85396. 8022a18: 08022c25 .word 0x08022c25
  85397. 8022a1c: 08022c25 .word 0x08022c25
  85398. 8022a20: 08022c25 .word 0x08022c25
  85399. 8022a24: 08022c25 .word 0x08022c25
  85400. 8022a28: 08022c25 .word 0x08022c25
  85401. 8022a2c: 08022c25 .word 0x08022c25
  85402. 8022a30: 08022c25 .word 0x08022c25
  85403. 8022a34: 08022c25 .word 0x08022c25
  85404. 8022a38: 08022c25 .word 0x08022c25
  85405. 8022a3c: 08022c25 .word 0x08022c25
  85406. 8022a40: 08022c25 .word 0x08022c25
  85407. 8022a44: 08022c25 .word 0x08022c25
  85408. 8022a48: 08022c25 .word 0x08022c25
  85409. 8022a4c: 08022c25 .word 0x08022c25
  85410. 8022a50: 08022c25 .word 0x08022c25
  85411. 8022a54: 08022c25 .word 0x08022c25
  85412. 8022a58: 08022c25 .word 0x08022c25
  85413. 8022a5c: 08022c25 .word 0x08022c25
  85414. 8022a60: 08022c25 .word 0x08022c25
  85415. 8022a64: 08022c25 .word 0x08022c25
  85416. 8022a68: 08022c25 .word 0x08022c25
  85417. 8022a6c: 08022c25 .word 0x08022c25
  85418. 8022a70: 08022c25 .word 0x08022c25
  85419. 8022a74: 08022c25 .word 0x08022c25
  85420. 8022a78: 08022c25 .word 0x08022c25
  85421. 8022a7c: 08022c25 .word 0x08022c25
  85422. 8022a80: 08022c25 .word 0x08022c25
  85423. 8022a84: 08022c25 .word 0x08022c25
  85424. 8022a88: 08022c25 .word 0x08022c25
  85425. 8022a8c: 08022c25 .word 0x08022c25
  85426. 8022a90: 08022c25 .word 0x08022c25
  85427. 8022a94: 08022c25 .word 0x08022c25
  85428. 8022a98: 08022c25 .word 0x08022c25
  85429. 8022a9c: 08022c25 .word 0x08022c25
  85430. 8022aa0: 08022b23 .word 0x08022b23
  85431. 8022aa4: 08022b45 .word 0x08022b45
  85432. 8022aa8: 08022b81 .word 0x08022b81
  85433. 8022aac: 08022ba3 .word 0x08022ba3
  85434. 8022ab0: 08022c25 .word 0x08022c25
  85435. 8022ab4: 08022c25 .word 0x08022c25
  85436. 8022ab8: 08022c25 .word 0x08022c25
  85437. 8022abc: 08022be1 .word 0x08022be1
  85438. 8022ac0: 08022c03 .word 0x08022c03
  85439. /* case(DHCP_OPTION_END): handled above */
  85440. case (DHCP_OPTION_PAD):
  85441. /* special option: no len encoded */
  85442. decode_len = len = 0;
  85443. 8022ac4: 2300 movs r3, #0
  85444. 8022ac6: f887 302b strb.w r3, [r7, #43] @ 0x2b
  85445. 8022aca: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  85446. 8022ace: f887 302a strb.w r3, [r7, #42] @ 0x2a
  85447. /* will be increased below */
  85448. break;
  85449. 8022ad2: e0ab b.n 8022c2c <dhcp_parse_reply+0x360>
  85450. case (DHCP_OPTION_SUBNET_MASK):
  85451. LWIP_ERROR("len == 4", len == 4, return ERR_VAL;);
  85452. 8022ad4: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  85453. 8022ad8: 2b04 cmp r3, #4
  85454. 8022ada: d009 beq.n 8022af0 <dhcp_parse_reply+0x224>
  85455. 8022adc: 4b3a ldr r3, [pc, #232] @ (8022bc8 <dhcp_parse_reply+0x2fc>)
  85456. 8022ade: f240 622e movw r2, #1582 @ 0x62e
  85457. 8022ae2: 493a ldr r1, [pc, #232] @ (8022bcc <dhcp_parse_reply+0x300>)
  85458. 8022ae4: 483a ldr r0, [pc, #232] @ (8022bd0 <dhcp_parse_reply+0x304>)
  85459. 8022ae6: f006 fd11 bl 802950c <iprintf>
  85460. 8022aea: f06f 0305 mvn.w r3, #5
  85461. 8022aee: e1bb b.n 8022e68 <dhcp_parse_reply+0x59c>
  85462. decode_idx = DHCP_OPTION_IDX_SUBNET_MASK;
  85463. 8022af0: 2306 movs r3, #6
  85464. 8022af2: 627b str r3, [r7, #36] @ 0x24
  85465. break;
  85466. 8022af4: e09a b.n 8022c2c <dhcp_parse_reply+0x360>
  85467. case (DHCP_OPTION_ROUTER):
  85468. decode_len = 4; /* only copy the first given router */
  85469. 8022af6: 2304 movs r3, #4
  85470. 8022af8: f887 302a strb.w r3, [r7, #42] @ 0x2a
  85471. LWIP_ERROR("len >= decode_len", len >= decode_len, return ERR_VAL;);
  85472. 8022afc: f897 202b ldrb.w r2, [r7, #43] @ 0x2b
  85473. 8022b00: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  85474. 8022b04: 429a cmp r2, r3
  85475. 8022b06: d209 bcs.n 8022b1c <dhcp_parse_reply+0x250>
  85476. 8022b08: 4b2f ldr r3, [pc, #188] @ (8022bc8 <dhcp_parse_reply+0x2fc>)
  85477. 8022b0a: f240 6233 movw r2, #1587 @ 0x633
  85478. 8022b0e: 4931 ldr r1, [pc, #196] @ (8022bd4 <dhcp_parse_reply+0x308>)
  85479. 8022b10: 482f ldr r0, [pc, #188] @ (8022bd0 <dhcp_parse_reply+0x304>)
  85480. 8022b12: f006 fcfb bl 802950c <iprintf>
  85481. 8022b16: f06f 0305 mvn.w r3, #5
  85482. 8022b1a: e1a5 b.n 8022e68 <dhcp_parse_reply+0x59c>
  85483. decode_idx = DHCP_OPTION_IDX_ROUTER;
  85484. 8022b1c: 2307 movs r3, #7
  85485. 8022b1e: 627b str r3, [r7, #36] @ 0x24
  85486. break;
  85487. 8022b20: e084 b.n 8022c2c <dhcp_parse_reply+0x360>
  85488. LWIP_ERROR("len >= decode_len", len >= decode_len, return ERR_VAL;);
  85489. decode_idx = DHCP_OPTION_IDX_DNS_SERVER;
  85490. break;
  85491. #endif /* LWIP_DHCP_PROVIDE_DNS_SERVERS */
  85492. case (DHCP_OPTION_LEASE_TIME):
  85493. LWIP_ERROR("len == 4", len == 4, return ERR_VAL;);
  85494. 8022b22: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  85495. 8022b26: 2b04 cmp r3, #4
  85496. 8022b28: d009 beq.n 8022b3e <dhcp_parse_reply+0x272>
  85497. 8022b2a: 4b27 ldr r3, [pc, #156] @ (8022bc8 <dhcp_parse_reply+0x2fc>)
  85498. 8022b2c: f240 6241 movw r2, #1601 @ 0x641
  85499. 8022b30: 4926 ldr r1, [pc, #152] @ (8022bcc <dhcp_parse_reply+0x300>)
  85500. 8022b32: 4827 ldr r0, [pc, #156] @ (8022bd0 <dhcp_parse_reply+0x304>)
  85501. 8022b34: f006 fcea bl 802950c <iprintf>
  85502. 8022b38: f06f 0305 mvn.w r3, #5
  85503. 8022b3c: e194 b.n 8022e68 <dhcp_parse_reply+0x59c>
  85504. decode_idx = DHCP_OPTION_IDX_LEASE_TIME;
  85505. 8022b3e: 2303 movs r3, #3
  85506. 8022b40: 627b str r3, [r7, #36] @ 0x24
  85507. break;
  85508. 8022b42: e073 b.n 8022c2c <dhcp_parse_reply+0x360>
  85509. LWIP_ERROR("len >= decode_len", len >= decode_len, return ERR_VAL;);
  85510. decode_idx = DHCP_OPTION_IDX_NTP_SERVER;
  85511. break;
  85512. #endif /* LWIP_DHCP_GET_NTP_SRV*/
  85513. case (DHCP_OPTION_OVERLOAD):
  85514. LWIP_ERROR("len == 1", len == 1, return ERR_VAL;);
  85515. 8022b44: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  85516. 8022b48: 2b01 cmp r3, #1
  85517. 8022b4a: d009 beq.n 8022b60 <dhcp_parse_reply+0x294>
  85518. 8022b4c: 4b1e ldr r3, [pc, #120] @ (8022bc8 <dhcp_parse_reply+0x2fc>)
  85519. 8022b4e: f240 624f movw r2, #1615 @ 0x64f
  85520. 8022b52: 4921 ldr r1, [pc, #132] @ (8022bd8 <dhcp_parse_reply+0x30c>)
  85521. 8022b54: 481e ldr r0, [pc, #120] @ (8022bd0 <dhcp_parse_reply+0x304>)
  85522. 8022b56: f006 fcd9 bl 802950c <iprintf>
  85523. 8022b5a: f06f 0305 mvn.w r3, #5
  85524. 8022b5e: e183 b.n 8022e68 <dhcp_parse_reply+0x59c>
  85525. /* decode overload only in options, not in file/sname: invalid packet */
  85526. LWIP_ERROR("overload in file/sname", options_idx == DHCP_OPTIONS_OFS, return ERR_VAL;);
  85527. 8022b60: 8fbb ldrh r3, [r7, #60] @ 0x3c
  85528. 8022b62: 2bf0 cmp r3, #240 @ 0xf0
  85529. 8022b64: d009 beq.n 8022b7a <dhcp_parse_reply+0x2ae>
  85530. 8022b66: 4b18 ldr r3, [pc, #96] @ (8022bc8 <dhcp_parse_reply+0x2fc>)
  85531. 8022b68: f240 6251 movw r2, #1617 @ 0x651
  85532. 8022b6c: 491b ldr r1, [pc, #108] @ (8022bdc <dhcp_parse_reply+0x310>)
  85533. 8022b6e: 4818 ldr r0, [pc, #96] @ (8022bd0 <dhcp_parse_reply+0x304>)
  85534. 8022b70: f006 fccc bl 802950c <iprintf>
  85535. 8022b74: f06f 0305 mvn.w r3, #5
  85536. 8022b78: e176 b.n 8022e68 <dhcp_parse_reply+0x59c>
  85537. decode_idx = DHCP_OPTION_IDX_OVERLOAD;
  85538. 8022b7a: 2300 movs r3, #0
  85539. 8022b7c: 627b str r3, [r7, #36] @ 0x24
  85540. break;
  85541. 8022b7e: e055 b.n 8022c2c <dhcp_parse_reply+0x360>
  85542. case (DHCP_OPTION_MESSAGE_TYPE):
  85543. LWIP_ERROR("len == 1", len == 1, return ERR_VAL;);
  85544. 8022b80: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  85545. 8022b84: 2b01 cmp r3, #1
  85546. 8022b86: d009 beq.n 8022b9c <dhcp_parse_reply+0x2d0>
  85547. 8022b88: 4b0f ldr r3, [pc, #60] @ (8022bc8 <dhcp_parse_reply+0x2fc>)
  85548. 8022b8a: f240 6255 movw r2, #1621 @ 0x655
  85549. 8022b8e: 4912 ldr r1, [pc, #72] @ (8022bd8 <dhcp_parse_reply+0x30c>)
  85550. 8022b90: 480f ldr r0, [pc, #60] @ (8022bd0 <dhcp_parse_reply+0x304>)
  85551. 8022b92: f006 fcbb bl 802950c <iprintf>
  85552. 8022b96: f06f 0305 mvn.w r3, #5
  85553. 8022b9a: e165 b.n 8022e68 <dhcp_parse_reply+0x59c>
  85554. decode_idx = DHCP_OPTION_IDX_MSG_TYPE;
  85555. 8022b9c: 2301 movs r3, #1
  85556. 8022b9e: 627b str r3, [r7, #36] @ 0x24
  85557. break;
  85558. 8022ba0: e044 b.n 8022c2c <dhcp_parse_reply+0x360>
  85559. case (DHCP_OPTION_SERVER_ID):
  85560. LWIP_ERROR("len == 4", len == 4, return ERR_VAL;);
  85561. 8022ba2: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  85562. 8022ba6: 2b04 cmp r3, #4
  85563. 8022ba8: d009 beq.n 8022bbe <dhcp_parse_reply+0x2f2>
  85564. 8022baa: 4b07 ldr r3, [pc, #28] @ (8022bc8 <dhcp_parse_reply+0x2fc>)
  85565. 8022bac: f240 6259 movw r2, #1625 @ 0x659
  85566. 8022bb0: 4906 ldr r1, [pc, #24] @ (8022bcc <dhcp_parse_reply+0x300>)
  85567. 8022bb2: 4807 ldr r0, [pc, #28] @ (8022bd0 <dhcp_parse_reply+0x304>)
  85568. 8022bb4: f006 fcaa bl 802950c <iprintf>
  85569. 8022bb8: f06f 0305 mvn.w r3, #5
  85570. 8022bbc: e154 b.n 8022e68 <dhcp_parse_reply+0x59c>
  85571. decode_idx = DHCP_OPTION_IDX_SERVER_ID;
  85572. 8022bbe: 2302 movs r3, #2
  85573. 8022bc0: 627b str r3, [r7, #36] @ 0x24
  85574. break;
  85575. 8022bc2: e033 b.n 8022c2c <dhcp_parse_reply+0x360>
  85576. 8022bc4: 2402a070 .word 0x2402a070
  85577. 8022bc8: 0802f9e8 .word 0x0802f9e8
  85578. 8022bcc: 0802fc70 .word 0x0802fc70
  85579. 8022bd0: 0802fa48 .word 0x0802fa48
  85580. 8022bd4: 0802fc7c .word 0x0802fc7c
  85581. 8022bd8: 0802fc90 .word 0x0802fc90
  85582. 8022bdc: 0802fc9c .word 0x0802fc9c
  85583. case (DHCP_OPTION_T1):
  85584. LWIP_ERROR("len == 4", len == 4, return ERR_VAL;);
  85585. 8022be0: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  85586. 8022be4: 2b04 cmp r3, #4
  85587. 8022be6: d009 beq.n 8022bfc <dhcp_parse_reply+0x330>
  85588. 8022be8: 4ba1 ldr r3, [pc, #644] @ (8022e70 <dhcp_parse_reply+0x5a4>)
  85589. 8022bea: f240 625d movw r2, #1629 @ 0x65d
  85590. 8022bee: 49a1 ldr r1, [pc, #644] @ (8022e74 <dhcp_parse_reply+0x5a8>)
  85591. 8022bf0: 48a1 ldr r0, [pc, #644] @ (8022e78 <dhcp_parse_reply+0x5ac>)
  85592. 8022bf2: f006 fc8b bl 802950c <iprintf>
  85593. 8022bf6: f06f 0305 mvn.w r3, #5
  85594. 8022bfa: e135 b.n 8022e68 <dhcp_parse_reply+0x59c>
  85595. decode_idx = DHCP_OPTION_IDX_T1;
  85596. 8022bfc: 2304 movs r3, #4
  85597. 8022bfe: 627b str r3, [r7, #36] @ 0x24
  85598. break;
  85599. 8022c00: e014 b.n 8022c2c <dhcp_parse_reply+0x360>
  85600. case (DHCP_OPTION_T2):
  85601. LWIP_ERROR("len == 4", len == 4, return ERR_VAL;);
  85602. 8022c02: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  85603. 8022c06: 2b04 cmp r3, #4
  85604. 8022c08: d009 beq.n 8022c1e <dhcp_parse_reply+0x352>
  85605. 8022c0a: 4b99 ldr r3, [pc, #612] @ (8022e70 <dhcp_parse_reply+0x5a4>)
  85606. 8022c0c: f240 6261 movw r2, #1633 @ 0x661
  85607. 8022c10: 4998 ldr r1, [pc, #608] @ (8022e74 <dhcp_parse_reply+0x5a8>)
  85608. 8022c12: 4899 ldr r0, [pc, #612] @ (8022e78 <dhcp_parse_reply+0x5ac>)
  85609. 8022c14: f006 fc7a bl 802950c <iprintf>
  85610. 8022c18: f06f 0305 mvn.w r3, #5
  85611. 8022c1c: e124 b.n 8022e68 <dhcp_parse_reply+0x59c>
  85612. decode_idx = DHCP_OPTION_IDX_T2;
  85613. 8022c1e: 2305 movs r3, #5
  85614. 8022c20: 627b str r3, [r7, #36] @ 0x24
  85615. break;
  85616. 8022c22: e003 b.n 8022c2c <dhcp_parse_reply+0x360>
  85617. default:
  85618. decode_len = 0;
  85619. 8022c24: 2300 movs r3, #0
  85620. 8022c26: f887 302a strb.w r3, [r7, #42] @ 0x2a
  85621. LWIP_DEBUGF(DHCP_DEBUG, ("skipping option %"U16_F" in options\n", (u16_t)op));
  85622. LWIP_HOOK_DHCP_PARSE_OPTION(ip_current_netif(), dhcp, dhcp->state, msg_in,
  85623. dhcp_option_given(dhcp, DHCP_OPTION_IDX_MSG_TYPE) ? (u8_t)dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_MSG_TYPE) : 0,
  85624. op, len, q, val_offset);
  85625. break;
  85626. 8022c2a: bf00 nop
  85627. }
  85628. if (op == DHCP_OPTION_PAD) {
  85629. 8022c2c: 7efb ldrb r3, [r7, #27]
  85630. 8022c2e: 2b00 cmp r3, #0
  85631. 8022c30: d105 bne.n 8022c3e <dhcp_parse_reply+0x372>
  85632. offset++;
  85633. 8022c32: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  85634. 8022c36: 3301 adds r3, #1
  85635. 8022c38: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  85636. 8022c3c: e0a4 b.n 8022d88 <dhcp_parse_reply+0x4bc>
  85637. } else {
  85638. if (offset + len + 2 > 0xFFFF) {
  85639. 8022c3e: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  85640. 8022c42: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  85641. 8022c46: 4413 add r3, r2
  85642. 8022c48: f64f 72fd movw r2, #65533 @ 0xfffd
  85643. 8022c4c: 4293 cmp r3, r2
  85644. 8022c4e: dd02 ble.n 8022c56 <dhcp_parse_reply+0x38a>
  85645. /* overflow */
  85646. return ERR_BUF;
  85647. 8022c50: f06f 0301 mvn.w r3, #1
  85648. 8022c54: e108 b.n 8022e68 <dhcp_parse_reply+0x59c>
  85649. }
  85650. offset = (u16_t)(offset + len + 2);
  85651. 8022c56: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  85652. 8022c5a: b29a uxth r2, r3
  85653. 8022c5c: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  85654. 8022c60: 4413 add r3, r2
  85655. 8022c62: b29b uxth r3, r3
  85656. 8022c64: 3302 adds r3, #2
  85657. 8022c66: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  85658. if (decode_len > 0) {
  85659. 8022c6a: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  85660. 8022c6e: 2b00 cmp r3, #0
  85661. 8022c70: f000 808a beq.w 8022d88 <dhcp_parse_reply+0x4bc>
  85662. u32_t value = 0;
  85663. 8022c74: 2300 movs r3, #0
  85664. 8022c76: 60fb str r3, [r7, #12]
  85665. u16_t copy_len;
  85666. decode_next:
  85667. LWIP_ASSERT("check decode_idx", decode_idx >= 0 && decode_idx < DHCP_OPTION_IDX_MAX);
  85668. 8022c78: 6a7b ldr r3, [r7, #36] @ 0x24
  85669. 8022c7a: 2b00 cmp r3, #0
  85670. 8022c7c: db02 blt.n 8022c84 <dhcp_parse_reply+0x3b8>
  85671. 8022c7e: 6a7b ldr r3, [r7, #36] @ 0x24
  85672. 8022c80: 2b07 cmp r3, #7
  85673. 8022c82: dd06 ble.n 8022c92 <dhcp_parse_reply+0x3c6>
  85674. 8022c84: 4b7a ldr r3, [pc, #488] @ (8022e70 <dhcp_parse_reply+0x5a4>)
  85675. 8022c86: f44f 62cf mov.w r2, #1656 @ 0x678
  85676. 8022c8a: 497c ldr r1, [pc, #496] @ (8022e7c <dhcp_parse_reply+0x5b0>)
  85677. 8022c8c: 487a ldr r0, [pc, #488] @ (8022e78 <dhcp_parse_reply+0x5ac>)
  85678. 8022c8e: f006 fc3d bl 802950c <iprintf>
  85679. if (!dhcp_option_given(dhcp, decode_idx)) {
  85680. 8022c92: 4a7b ldr r2, [pc, #492] @ (8022e80 <dhcp_parse_reply+0x5b4>)
  85681. 8022c94: 6a7b ldr r3, [r7, #36] @ 0x24
  85682. 8022c96: 4413 add r3, r2
  85683. 8022c98: 781b ldrb r3, [r3, #0]
  85684. 8022c9a: 2b00 cmp r3, #0
  85685. 8022c9c: d174 bne.n 8022d88 <dhcp_parse_reply+0x4bc>
  85686. copy_len = LWIP_MIN(decode_len, 4);
  85687. 8022c9e: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  85688. 8022ca2: 2b04 cmp r3, #4
  85689. 8022ca4: bf28 it cs
  85690. 8022ca6: 2304 movcs r3, #4
  85691. 8022ca8: b2db uxtb r3, r3
  85692. 8022caa: 833b strh r3, [r7, #24]
  85693. if (pbuf_copy_partial(q, &value, copy_len, val_offset) != copy_len) {
  85694. 8022cac: 8c7b ldrh r3, [r7, #34] @ 0x22
  85695. 8022cae: 8b3a ldrh r2, [r7, #24]
  85696. 8022cb0: f107 010c add.w r1, r7, #12
  85697. 8022cb4: 6b78 ldr r0, [r7, #52] @ 0x34
  85698. 8022cb6: f7f7 fbb7 bl 801a428 <pbuf_copy_partial>
  85699. 8022cba: 4603 mov r3, r0
  85700. 8022cbc: 461a mov r2, r3
  85701. 8022cbe: 8b3b ldrh r3, [r7, #24]
  85702. 8022cc0: 4293 cmp r3, r2
  85703. 8022cc2: d002 beq.n 8022cca <dhcp_parse_reply+0x3fe>
  85704. return ERR_BUF;
  85705. 8022cc4: f06f 0301 mvn.w r3, #1
  85706. 8022cc8: e0ce b.n 8022e68 <dhcp_parse_reply+0x59c>
  85707. }
  85708. if (decode_len > 4) {
  85709. 8022cca: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  85710. 8022cce: 2b04 cmp r3, #4
  85711. 8022cd0: d933 bls.n 8022d3a <dhcp_parse_reply+0x46e>
  85712. /* decode more than one u32_t */
  85713. u16_t next_val_offset;
  85714. LWIP_ERROR("decode_len %% 4 == 0", decode_len % 4 == 0, return ERR_VAL;);
  85715. 8022cd2: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  85716. 8022cd6: f003 0303 and.w r3, r3, #3
  85717. 8022cda: b2db uxtb r3, r3
  85718. 8022cdc: 2b00 cmp r3, #0
  85719. 8022cde: d009 beq.n 8022cf4 <dhcp_parse_reply+0x428>
  85720. 8022ce0: 4b63 ldr r3, [pc, #396] @ (8022e70 <dhcp_parse_reply+0x5a4>)
  85721. 8022ce2: f240 6281 movw r2, #1665 @ 0x681
  85722. 8022ce6: 4967 ldr r1, [pc, #412] @ (8022e84 <dhcp_parse_reply+0x5b8>)
  85723. 8022ce8: 4863 ldr r0, [pc, #396] @ (8022e78 <dhcp_parse_reply+0x5ac>)
  85724. 8022cea: f006 fc0f bl 802950c <iprintf>
  85725. 8022cee: f06f 0305 mvn.w r3, #5
  85726. 8022cf2: e0b9 b.n 8022e68 <dhcp_parse_reply+0x59c>
  85727. dhcp_got_option(dhcp, decode_idx);
  85728. 8022cf4: 4a62 ldr r2, [pc, #392] @ (8022e80 <dhcp_parse_reply+0x5b4>)
  85729. 8022cf6: 6a7b ldr r3, [r7, #36] @ 0x24
  85730. 8022cf8: 4413 add r3, r2
  85731. 8022cfa: 2201 movs r2, #1
  85732. 8022cfc: 701a strb r2, [r3, #0]
  85733. dhcp_set_option_value(dhcp, decode_idx, lwip_htonl(value));
  85734. 8022cfe: 68fb ldr r3, [r7, #12]
  85735. 8022d00: 4618 mov r0, r3
  85736. 8022d02: f7f5 fcbe bl 8018682 <lwip_htonl>
  85737. 8022d06: 4602 mov r2, r0
  85738. 8022d08: 495f ldr r1, [pc, #380] @ (8022e88 <dhcp_parse_reply+0x5bc>)
  85739. 8022d0a: 6a7b ldr r3, [r7, #36] @ 0x24
  85740. 8022d0c: f841 2023 str.w r2, [r1, r3, lsl #2]
  85741. decode_len = (u8_t)(decode_len - 4);
  85742. 8022d10: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  85743. 8022d14: 3b04 subs r3, #4
  85744. 8022d16: f887 302a strb.w r3, [r7, #42] @ 0x2a
  85745. next_val_offset = (u16_t)(val_offset + 4);
  85746. 8022d1a: 8c7b ldrh r3, [r7, #34] @ 0x22
  85747. 8022d1c: 3304 adds r3, #4
  85748. 8022d1e: 82fb strh r3, [r7, #22]
  85749. if (next_val_offset < val_offset) {
  85750. 8022d20: 8afa ldrh r2, [r7, #22]
  85751. 8022d22: 8c7b ldrh r3, [r7, #34] @ 0x22
  85752. 8022d24: 429a cmp r2, r3
  85753. 8022d26: d202 bcs.n 8022d2e <dhcp_parse_reply+0x462>
  85754. /* overflow */
  85755. return ERR_BUF;
  85756. 8022d28: f06f 0301 mvn.w r3, #1
  85757. 8022d2c: e09c b.n 8022e68 <dhcp_parse_reply+0x59c>
  85758. }
  85759. val_offset = next_val_offset;
  85760. 8022d2e: 8afb ldrh r3, [r7, #22]
  85761. 8022d30: 847b strh r3, [r7, #34] @ 0x22
  85762. decode_idx++;
  85763. 8022d32: 6a7b ldr r3, [r7, #36] @ 0x24
  85764. 8022d34: 3301 adds r3, #1
  85765. 8022d36: 627b str r3, [r7, #36] @ 0x24
  85766. goto decode_next;
  85767. 8022d38: e79e b.n 8022c78 <dhcp_parse_reply+0x3ac>
  85768. } else if (decode_len == 4) {
  85769. 8022d3a: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  85770. 8022d3e: 2b04 cmp r3, #4
  85771. 8022d40: d106 bne.n 8022d50 <dhcp_parse_reply+0x484>
  85772. value = lwip_ntohl(value);
  85773. 8022d42: 68fb ldr r3, [r7, #12]
  85774. 8022d44: 4618 mov r0, r3
  85775. 8022d46: f7f5 fc9c bl 8018682 <lwip_htonl>
  85776. 8022d4a: 4603 mov r3, r0
  85777. 8022d4c: 60fb str r3, [r7, #12]
  85778. 8022d4e: e011 b.n 8022d74 <dhcp_parse_reply+0x4a8>
  85779. } else {
  85780. LWIP_ERROR("invalid decode_len", decode_len == 1, return ERR_VAL;);
  85781. 8022d50: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  85782. 8022d54: 2b01 cmp r3, #1
  85783. 8022d56: d009 beq.n 8022d6c <dhcp_parse_reply+0x4a0>
  85784. 8022d58: 4b45 ldr r3, [pc, #276] @ (8022e70 <dhcp_parse_reply+0x5a4>)
  85785. 8022d5a: f44f 62d2 mov.w r2, #1680 @ 0x690
  85786. 8022d5e: 494b ldr r1, [pc, #300] @ (8022e8c <dhcp_parse_reply+0x5c0>)
  85787. 8022d60: 4845 ldr r0, [pc, #276] @ (8022e78 <dhcp_parse_reply+0x5ac>)
  85788. 8022d62: f006 fbd3 bl 802950c <iprintf>
  85789. 8022d66: f06f 0305 mvn.w r3, #5
  85790. 8022d6a: e07d b.n 8022e68 <dhcp_parse_reply+0x59c>
  85791. value = ((u8_t *)&value)[0];
  85792. 8022d6c: f107 030c add.w r3, r7, #12
  85793. 8022d70: 781b ldrb r3, [r3, #0]
  85794. 8022d72: 60fb str r3, [r7, #12]
  85795. }
  85796. dhcp_got_option(dhcp, decode_idx);
  85797. 8022d74: 4a42 ldr r2, [pc, #264] @ (8022e80 <dhcp_parse_reply+0x5b4>)
  85798. 8022d76: 6a7b ldr r3, [r7, #36] @ 0x24
  85799. 8022d78: 4413 add r3, r2
  85800. 8022d7a: 2201 movs r2, #1
  85801. 8022d7c: 701a strb r2, [r3, #0]
  85802. dhcp_set_option_value(dhcp, decode_idx, value);
  85803. 8022d7e: 68fa ldr r2, [r7, #12]
  85804. 8022d80: 4941 ldr r1, [pc, #260] @ (8022e88 <dhcp_parse_reply+0x5bc>)
  85805. 8022d82: 6a7b ldr r3, [r7, #36] @ 0x24
  85806. 8022d84: f841 2023 str.w r2, [r1, r3, lsl #2]
  85807. }
  85808. }
  85809. }
  85810. if (offset >= q->len) {
  85811. 8022d88: 6b7b ldr r3, [r7, #52] @ 0x34
  85812. 8022d8a: 895b ldrh r3, [r3, #10]
  85813. 8022d8c: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  85814. 8022d90: 429a cmp r2, r3
  85815. 8022d92: d327 bcc.n 8022de4 <dhcp_parse_reply+0x518>
  85816. offset = (u16_t)(offset - q->len);
  85817. 8022d94: 6b7b ldr r3, [r7, #52] @ 0x34
  85818. 8022d96: 895b ldrh r3, [r3, #10]
  85819. 8022d98: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  85820. 8022d9c: 1ad3 subs r3, r2, r3
  85821. 8022d9e: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  85822. offset_max = (u16_t)(offset_max - q->len);
  85823. 8022da2: 6b7b ldr r3, [r7, #52] @ 0x34
  85824. 8022da4: 895b ldrh r3, [r3, #10]
  85825. 8022da6: 8ffa ldrh r2, [r7, #62] @ 0x3e
  85826. 8022da8: 1ad3 subs r3, r2, r3
  85827. 8022daa: 87fb strh r3, [r7, #62] @ 0x3e
  85828. if (offset < offset_max) {
  85829. 8022dac: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  85830. 8022db0: 8ffb ldrh r3, [r7, #62] @ 0x3e
  85831. 8022db2: 429a cmp r2, r3
  85832. 8022db4: d213 bcs.n 8022dde <dhcp_parse_reply+0x512>
  85833. q = q->next;
  85834. 8022db6: 6b7b ldr r3, [r7, #52] @ 0x34
  85835. 8022db8: 681b ldr r3, [r3, #0]
  85836. 8022dba: 637b str r3, [r7, #52] @ 0x34
  85837. LWIP_ERROR("next pbuf was null", q != NULL, return ERR_VAL;);
  85838. 8022dbc: 6b7b ldr r3, [r7, #52] @ 0x34
  85839. 8022dbe: 2b00 cmp r3, #0
  85840. 8022dc0: d109 bne.n 8022dd6 <dhcp_parse_reply+0x50a>
  85841. 8022dc2: 4b2b ldr r3, [pc, #172] @ (8022e70 <dhcp_parse_reply+0x5a4>)
  85842. 8022dc4: f240 629d movw r2, #1693 @ 0x69d
  85843. 8022dc8: 4931 ldr r1, [pc, #196] @ (8022e90 <dhcp_parse_reply+0x5c4>)
  85844. 8022dca: 482b ldr r0, [pc, #172] @ (8022e78 <dhcp_parse_reply+0x5ac>)
  85845. 8022dcc: f006 fb9e bl 802950c <iprintf>
  85846. 8022dd0: f06f 0305 mvn.w r3, #5
  85847. 8022dd4: e048 b.n 8022e68 <dhcp_parse_reply+0x59c>
  85848. options = (u8_t *)q->payload;
  85849. 8022dd6: 6b7b ldr r3, [r7, #52] @ 0x34
  85850. 8022dd8: 685b ldr r3, [r3, #4]
  85851. 8022dda: 643b str r3, [r7, #64] @ 0x40
  85852. 8022ddc: e002 b.n 8022de4 <dhcp_parse_reply+0x518>
  85853. } else {
  85854. /* We've run out of bytes, probably no end marker. Don't proceed. */
  85855. return ERR_BUF;
  85856. 8022dde: f06f 0301 mvn.w r3, #1
  85857. 8022de2: e041 b.n 8022e68 <dhcp_parse_reply+0x59c>
  85858. while ((q != NULL) && (offset < offset_max) && (options[offset] != DHCP_OPTION_END)) {
  85859. 8022de4: 6b7b ldr r3, [r7, #52] @ 0x34
  85860. 8022de6: 2b00 cmp r3, #0
  85861. 8022de8: d00c beq.n 8022e04 <dhcp_parse_reply+0x538>
  85862. 8022dea: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  85863. 8022dee: 8ffb ldrh r3, [r7, #62] @ 0x3e
  85864. 8022df0: 429a cmp r2, r3
  85865. 8022df2: d207 bcs.n 8022e04 <dhcp_parse_reply+0x538>
  85866. 8022df4: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  85867. 8022df8: 6c3a ldr r2, [r7, #64] @ 0x40
  85868. 8022dfa: 4413 add r3, r2
  85869. 8022dfc: 781b ldrb r3, [r3, #0]
  85870. 8022dfe: 2bff cmp r3, #255 @ 0xff
  85871. 8022e00: f47f ada8 bne.w 8022954 <dhcp_parse_reply+0x88>
  85872. }
  85873. }
  85874. }
  85875. /* is this an overloaded message? */
  85876. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_OVERLOAD)) {
  85877. 8022e04: 4b1e ldr r3, [pc, #120] @ (8022e80 <dhcp_parse_reply+0x5b4>)
  85878. 8022e06: 781b ldrb r3, [r3, #0]
  85879. 8022e08: 2b00 cmp r3, #0
  85880. 8022e0a: d018 beq.n 8022e3e <dhcp_parse_reply+0x572>
  85881. u32_t overload = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_OVERLOAD);
  85882. 8022e0c: 4b1e ldr r3, [pc, #120] @ (8022e88 <dhcp_parse_reply+0x5bc>)
  85883. 8022e0e: 681b ldr r3, [r3, #0]
  85884. 8022e10: 613b str r3, [r7, #16]
  85885. dhcp_clear_option(dhcp, DHCP_OPTION_IDX_OVERLOAD);
  85886. 8022e12: 4b1b ldr r3, [pc, #108] @ (8022e80 <dhcp_parse_reply+0x5b4>)
  85887. 8022e14: 2200 movs r2, #0
  85888. 8022e16: 701a strb r2, [r3, #0]
  85889. if (overload == DHCP_OVERLOAD_FILE) {
  85890. 8022e18: 693b ldr r3, [r7, #16]
  85891. 8022e1a: 2b01 cmp r3, #1
  85892. 8022e1c: d102 bne.n 8022e24 <dhcp_parse_reply+0x558>
  85893. parse_file_as_options = 1;
  85894. 8022e1e: 2301 movs r3, #1
  85895. 8022e20: 633b str r3, [r7, #48] @ 0x30
  85896. 8022e22: e00c b.n 8022e3e <dhcp_parse_reply+0x572>
  85897. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("overloaded file field\n"));
  85898. } else if (overload == DHCP_OVERLOAD_SNAME) {
  85899. 8022e24: 693b ldr r3, [r7, #16]
  85900. 8022e26: 2b02 cmp r3, #2
  85901. 8022e28: d102 bne.n 8022e30 <dhcp_parse_reply+0x564>
  85902. parse_sname_as_options = 1;
  85903. 8022e2a: 2301 movs r3, #1
  85904. 8022e2c: 62fb str r3, [r7, #44] @ 0x2c
  85905. 8022e2e: e006 b.n 8022e3e <dhcp_parse_reply+0x572>
  85906. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("overloaded sname field\n"));
  85907. } else if (overload == DHCP_OVERLOAD_SNAME_FILE) {
  85908. 8022e30: 693b ldr r3, [r7, #16]
  85909. 8022e32: 2b03 cmp r3, #3
  85910. 8022e34: d103 bne.n 8022e3e <dhcp_parse_reply+0x572>
  85911. parse_sname_as_options = 1;
  85912. 8022e36: 2301 movs r3, #1
  85913. 8022e38: 62fb str r3, [r7, #44] @ 0x2c
  85914. parse_file_as_options = 1;
  85915. 8022e3a: 2301 movs r3, #1
  85916. 8022e3c: 633b str r3, [r7, #48] @ 0x30
  85917. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("overloaded sname and file field\n"));
  85918. } else {
  85919. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("invalid overload option: %d\n", (int)overload));
  85920. }
  85921. }
  85922. if (parse_file_as_options) {
  85923. 8022e3e: 6b3b ldr r3, [r7, #48] @ 0x30
  85924. 8022e40: 2b00 cmp r3, #0
  85925. 8022e42: d006 beq.n 8022e52 <dhcp_parse_reply+0x586>
  85926. /* if both are overloaded, parse file first and then sname (RFC 2131 ch. 4.1) */
  85927. parse_file_as_options = 0;
  85928. 8022e44: 2300 movs r3, #0
  85929. 8022e46: 633b str r3, [r7, #48] @ 0x30
  85930. options_idx = DHCP_FILE_OFS;
  85931. 8022e48: 236c movs r3, #108 @ 0x6c
  85932. 8022e4a: 87bb strh r3, [r7, #60] @ 0x3c
  85933. options_idx_max = DHCP_FILE_OFS + DHCP_FILE_LEN;
  85934. 8022e4c: 23ec movs r3, #236 @ 0xec
  85935. 8022e4e: 877b strh r3, [r7, #58] @ 0x3a
  85936. #if LWIP_DHCP_BOOTP_FILE
  85937. file_overloaded = 1;
  85938. #endif
  85939. goto again;
  85940. 8022e50: e559 b.n 8022906 <dhcp_parse_reply+0x3a>
  85941. } else if (parse_sname_as_options) {
  85942. 8022e52: 6afb ldr r3, [r7, #44] @ 0x2c
  85943. 8022e54: 2b00 cmp r3, #0
  85944. 8022e56: d006 beq.n 8022e66 <dhcp_parse_reply+0x59a>
  85945. parse_sname_as_options = 0;
  85946. 8022e58: 2300 movs r3, #0
  85947. 8022e5a: 62fb str r3, [r7, #44] @ 0x2c
  85948. options_idx = DHCP_SNAME_OFS;
  85949. 8022e5c: 232c movs r3, #44 @ 0x2c
  85950. 8022e5e: 87bb strh r3, [r7, #60] @ 0x3c
  85951. options_idx_max = DHCP_SNAME_OFS + DHCP_SNAME_LEN;
  85952. 8022e60: 236c movs r3, #108 @ 0x6c
  85953. 8022e62: 877b strh r3, [r7, #58] @ 0x3a
  85954. goto again;
  85955. 8022e64: e54f b.n 8022906 <dhcp_parse_reply+0x3a>
  85956. }
  85957. /* make sure the string is really NULL-terminated */
  85958. dhcp->boot_file_name[DHCP_FILE_LEN-1] = 0;
  85959. }
  85960. #endif /* LWIP_DHCP_BOOTP_FILE */
  85961. return ERR_OK;
  85962. 8022e66: 2300 movs r3, #0
  85963. }
  85964. 8022e68: 4618 mov r0, r3
  85965. 8022e6a: 3748 adds r7, #72 @ 0x48
  85966. 8022e6c: 46bd mov sp, r7
  85967. 8022e6e: bd80 pop {r7, pc}
  85968. 8022e70: 0802f9e8 .word 0x0802f9e8
  85969. 8022e74: 0802fc70 .word 0x0802fc70
  85970. 8022e78: 0802fa48 .word 0x0802fa48
  85971. 8022e7c: 0802fcb4 .word 0x0802fcb4
  85972. 8022e80: 2402a070 .word 0x2402a070
  85973. 8022e84: 0802fcc8 .word 0x0802fcc8
  85974. 8022e88: 2402a050 .word 0x2402a050
  85975. 8022e8c: 0802fce0 .word 0x0802fce0
  85976. 8022e90: 0802fcf4 .word 0x0802fcf4
  85977. 08022e94 <dhcp_recv>:
  85978. /**
  85979. * If an incoming DHCP message is in response to us, then trigger the state machine
  85980. */
  85981. static void
  85982. dhcp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port)
  85983. {
  85984. 8022e94: b580 push {r7, lr}
  85985. 8022e96: b08a sub sp, #40 @ 0x28
  85986. 8022e98: af00 add r7, sp, #0
  85987. 8022e9a: 60f8 str r0, [r7, #12]
  85988. 8022e9c: 60b9 str r1, [r7, #8]
  85989. 8022e9e: 607a str r2, [r7, #4]
  85990. 8022ea0: 603b str r3, [r7, #0]
  85991. struct netif *netif = ip_current_input_netif();
  85992. 8022ea2: 4b5e ldr r3, [pc, #376] @ (802301c <dhcp_recv+0x188>)
  85993. 8022ea4: 685b ldr r3, [r3, #4]
  85994. 8022ea6: 61fb str r3, [r7, #28]
  85995. struct dhcp *dhcp = netif_dhcp_data(netif);
  85996. 8022ea8: 69fb ldr r3, [r7, #28]
  85997. 8022eaa: 6a5b ldr r3, [r3, #36] @ 0x24
  85998. 8022eac: 61bb str r3, [r7, #24]
  85999. struct dhcp_msg *reply_msg = (struct dhcp_msg *)p->payload;
  86000. 8022eae: 687b ldr r3, [r7, #4]
  86001. 8022eb0: 685b ldr r3, [r3, #4]
  86002. 8022eb2: 617b str r3, [r7, #20]
  86003. struct dhcp_msg *msg_in;
  86004. LWIP_UNUSED_ARG(arg);
  86005. /* Caught DHCP message from netif that does not have DHCP enabled? -> not interested */
  86006. if ((dhcp == NULL) || (dhcp->pcb_allocated == 0)) {
  86007. 8022eb4: 69bb ldr r3, [r7, #24]
  86008. 8022eb6: 2b00 cmp r3, #0
  86009. 8022eb8: f000 809a beq.w 8022ff0 <dhcp_recv+0x15c>
  86010. 8022ebc: 69bb ldr r3, [r7, #24]
  86011. 8022ebe: 791b ldrb r3, [r3, #4]
  86012. 8022ec0: 2b00 cmp r3, #0
  86013. 8022ec2: f000 8095 beq.w 8022ff0 <dhcp_recv+0x15c>
  86014. /* prevent warnings about unused arguments */
  86015. LWIP_UNUSED_ARG(pcb);
  86016. LWIP_UNUSED_ARG(addr);
  86017. LWIP_UNUSED_ARG(port);
  86018. if (p->len < DHCP_MIN_REPLY_LEN) {
  86019. 8022ec6: 687b ldr r3, [r7, #4]
  86020. 8022ec8: 895b ldrh r3, [r3, #10]
  86021. 8022eca: 2b2b cmp r3, #43 @ 0x2b
  86022. 8022ecc: f240 8092 bls.w 8022ff4 <dhcp_recv+0x160>
  86023. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("DHCP reply message or pbuf too short\n"));
  86024. goto free_pbuf_and_return;
  86025. }
  86026. if (reply_msg->op != DHCP_BOOTREPLY) {
  86027. 8022ed0: 697b ldr r3, [r7, #20]
  86028. 8022ed2: 781b ldrb r3, [r3, #0]
  86029. 8022ed4: 2b02 cmp r3, #2
  86030. 8022ed6: f040 808f bne.w 8022ff8 <dhcp_recv+0x164>
  86031. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("not a DHCP reply message, but type %"U16_F"\n", (u16_t)reply_msg->op));
  86032. goto free_pbuf_and_return;
  86033. }
  86034. /* iterate through hardware address and match against DHCP message */
  86035. for (i = 0; i < netif->hwaddr_len && i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) {
  86036. 8022eda: 2300 movs r3, #0
  86037. 8022edc: 74fb strb r3, [r7, #19]
  86038. 8022ede: e00e b.n 8022efe <dhcp_recv+0x6a>
  86039. if (netif->hwaddr[i] != reply_msg->chaddr[i]) {
  86040. 8022ee0: 7cfb ldrb r3, [r7, #19]
  86041. 8022ee2: 69fa ldr r2, [r7, #28]
  86042. 8022ee4: 4413 add r3, r2
  86043. 8022ee6: f893 202a ldrb.w r2, [r3, #42] @ 0x2a
  86044. 8022eea: 7cfb ldrb r3, [r7, #19]
  86045. 8022eec: 6979 ldr r1, [r7, #20]
  86046. 8022eee: 440b add r3, r1
  86047. 8022ef0: 7f1b ldrb r3, [r3, #28]
  86048. 8022ef2: 429a cmp r2, r3
  86049. 8022ef4: f040 8082 bne.w 8022ffc <dhcp_recv+0x168>
  86050. for (i = 0; i < netif->hwaddr_len && i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) {
  86051. 8022ef8: 7cfb ldrb r3, [r7, #19]
  86052. 8022efa: 3301 adds r3, #1
  86053. 8022efc: 74fb strb r3, [r7, #19]
  86054. 8022efe: 69fb ldr r3, [r7, #28]
  86055. 8022f00: f893 3030 ldrb.w r3, [r3, #48] @ 0x30
  86056. 8022f04: 7cfa ldrb r2, [r7, #19]
  86057. 8022f06: 429a cmp r2, r3
  86058. 8022f08: d202 bcs.n 8022f10 <dhcp_recv+0x7c>
  86059. 8022f0a: 7cfb ldrb r3, [r7, #19]
  86060. 8022f0c: 2b05 cmp r3, #5
  86061. 8022f0e: d9e7 bls.n 8022ee0 <dhcp_recv+0x4c>
  86062. (u16_t)i, (u16_t)netif->hwaddr[i], (u16_t)i, (u16_t)reply_msg->chaddr[i]));
  86063. goto free_pbuf_and_return;
  86064. }
  86065. }
  86066. /* match transaction ID against what we expected */
  86067. if (lwip_ntohl(reply_msg->xid) != dhcp->xid) {
  86068. 8022f10: 697b ldr r3, [r7, #20]
  86069. 8022f12: 685b ldr r3, [r3, #4]
  86070. 8022f14: 4618 mov r0, r3
  86071. 8022f16: f7f5 fbb4 bl 8018682 <lwip_htonl>
  86072. 8022f1a: 4602 mov r2, r0
  86073. 8022f1c: 69bb ldr r3, [r7, #24]
  86074. 8022f1e: 681b ldr r3, [r3, #0]
  86075. 8022f20: 429a cmp r2, r3
  86076. 8022f22: d16d bne.n 8023000 <dhcp_recv+0x16c>
  86077. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING,
  86078. ("transaction id mismatch reply_msg->xid(%"X32_F")!=dhcp->xid(%"X32_F")\n", lwip_ntohl(reply_msg->xid), dhcp->xid));
  86079. goto free_pbuf_and_return;
  86080. }
  86081. /* option fields could be unfold? */
  86082. if (dhcp_parse_reply(p, dhcp) != ERR_OK) {
  86083. 8022f24: 69b9 ldr r1, [r7, #24]
  86084. 8022f26: 6878 ldr r0, [r7, #4]
  86085. 8022f28: f7ff fcd0 bl 80228cc <dhcp_parse_reply>
  86086. 8022f2c: 4603 mov r3, r0
  86087. 8022f2e: 2b00 cmp r3, #0
  86088. 8022f30: d168 bne.n 8023004 <dhcp_recv+0x170>
  86089. goto free_pbuf_and_return;
  86090. }
  86091. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("searching DHCP_OPTION_MESSAGE_TYPE\n"));
  86092. /* obtain pointer to DHCP message type */
  86093. if (!dhcp_option_given(dhcp, DHCP_OPTION_IDX_MSG_TYPE)) {
  86094. 8022f32: 4b3b ldr r3, [pc, #236] @ (8023020 <dhcp_recv+0x18c>)
  86095. 8022f34: 785b ldrb r3, [r3, #1]
  86096. 8022f36: 2b00 cmp r3, #0
  86097. 8022f38: d066 beq.n 8023008 <dhcp_recv+0x174>
  86098. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("DHCP_OPTION_MESSAGE_TYPE option not found\n"));
  86099. goto free_pbuf_and_return;
  86100. }
  86101. msg_in = (struct dhcp_msg *)p->payload;
  86102. 8022f3a: 687b ldr r3, [r7, #4]
  86103. 8022f3c: 685b ldr r3, [r3, #4]
  86104. 8022f3e: 627b str r3, [r7, #36] @ 0x24
  86105. /* read DHCP message type */
  86106. msg_type = (u8_t)dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_MSG_TYPE);
  86107. 8022f40: 4b38 ldr r3, [pc, #224] @ (8023024 <dhcp_recv+0x190>)
  86108. 8022f42: 685b ldr r3, [r3, #4]
  86109. 8022f44: f887 3023 strb.w r3, [r7, #35] @ 0x23
  86110. /* message type is DHCP ACK? */
  86111. if (msg_type == DHCP_ACK) {
  86112. 8022f48: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  86113. 8022f4c: 2b05 cmp r3, #5
  86114. 8022f4e: d12a bne.n 8022fa6 <dhcp_recv+0x112>
  86115. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("DHCP_ACK received\n"));
  86116. /* in requesting state? */
  86117. if (dhcp->state == DHCP_STATE_REQUESTING) {
  86118. 8022f50: 69bb ldr r3, [r7, #24]
  86119. 8022f52: 795b ldrb r3, [r3, #5]
  86120. 8022f54: 2b01 cmp r3, #1
  86121. 8022f56: d112 bne.n 8022f7e <dhcp_recv+0xea>
  86122. dhcp_handle_ack(netif, msg_in);
  86123. 8022f58: 6a79 ldr r1, [r7, #36] @ 0x24
  86124. 8022f5a: 69f8 ldr r0, [r7, #28]
  86125. 8022f5c: f7fe fe00 bl 8021b60 <dhcp_handle_ack>
  86126. #if DHCP_DOES_ARP_CHECK
  86127. if ((netif->flags & NETIF_FLAG_ETHARP) != 0) {
  86128. 8022f60: 69fb ldr r3, [r7, #28]
  86129. 8022f62: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  86130. 8022f66: f003 0308 and.w r3, r3, #8
  86131. 8022f6a: 2b00 cmp r3, #0
  86132. 8022f6c: d003 beq.n 8022f76 <dhcp_recv+0xe2>
  86133. /* check if the acknowledged lease address is already in use */
  86134. dhcp_check(netif);
  86135. 8022f6e: 69f8 ldr r0, [r7, #28]
  86136. 8022f70: f7fe fb6e bl 8021650 <dhcp_check>
  86137. 8022f74: e04b b.n 802300e <dhcp_recv+0x17a>
  86138. } else {
  86139. /* bind interface to the acknowledged lease address */
  86140. dhcp_bind(netif);
  86141. 8022f76: 69f8 ldr r0, [r7, #28]
  86142. 8022f78: f7ff f852 bl 8022020 <dhcp_bind>
  86143. 8022f7c: e047 b.n 802300e <dhcp_recv+0x17a>
  86144. /* bind interface to the acknowledged lease address */
  86145. dhcp_bind(netif);
  86146. #endif
  86147. }
  86148. /* already bound to the given lease address? */
  86149. else if ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REBINDING) ||
  86150. 8022f7e: 69bb ldr r3, [r7, #24]
  86151. 8022f80: 795b ldrb r3, [r3, #5]
  86152. 8022f82: 2b03 cmp r3, #3
  86153. 8022f84: d007 beq.n 8022f96 <dhcp_recv+0x102>
  86154. 8022f86: 69bb ldr r3, [r7, #24]
  86155. 8022f88: 795b ldrb r3, [r3, #5]
  86156. 8022f8a: 2b04 cmp r3, #4
  86157. 8022f8c: d003 beq.n 8022f96 <dhcp_recv+0x102>
  86158. (dhcp->state == DHCP_STATE_RENEWING)) {
  86159. 8022f8e: 69bb ldr r3, [r7, #24]
  86160. 8022f90: 795b ldrb r3, [r3, #5]
  86161. else if ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REBINDING) ||
  86162. 8022f92: 2b05 cmp r3, #5
  86163. 8022f94: d13b bne.n 802300e <dhcp_recv+0x17a>
  86164. dhcp_handle_ack(netif, msg_in);
  86165. 8022f96: 6a79 ldr r1, [r7, #36] @ 0x24
  86166. 8022f98: 69f8 ldr r0, [r7, #28]
  86167. 8022f9a: f7fe fde1 bl 8021b60 <dhcp_handle_ack>
  86168. dhcp_bind(netif);
  86169. 8022f9e: 69f8 ldr r0, [r7, #28]
  86170. 8022fa0: f7ff f83e bl 8022020 <dhcp_bind>
  86171. 8022fa4: e033 b.n 802300e <dhcp_recv+0x17a>
  86172. }
  86173. }
  86174. /* received a DHCP_NAK in appropriate state? */
  86175. else if ((msg_type == DHCP_NAK) &&
  86176. 8022fa6: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  86177. 8022faa: 2b06 cmp r3, #6
  86178. 8022fac: d113 bne.n 8022fd6 <dhcp_recv+0x142>
  86179. ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REQUESTING) ||
  86180. 8022fae: 69bb ldr r3, [r7, #24]
  86181. 8022fb0: 795b ldrb r3, [r3, #5]
  86182. else if ((msg_type == DHCP_NAK) &&
  86183. 8022fb2: 2b03 cmp r3, #3
  86184. 8022fb4: d00b beq.n 8022fce <dhcp_recv+0x13a>
  86185. ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REQUESTING) ||
  86186. 8022fb6: 69bb ldr r3, [r7, #24]
  86187. 8022fb8: 795b ldrb r3, [r3, #5]
  86188. 8022fba: 2b01 cmp r3, #1
  86189. 8022fbc: d007 beq.n 8022fce <dhcp_recv+0x13a>
  86190. (dhcp->state == DHCP_STATE_REBINDING) || (dhcp->state == DHCP_STATE_RENEWING ))) {
  86191. 8022fbe: 69bb ldr r3, [r7, #24]
  86192. 8022fc0: 795b ldrb r3, [r3, #5]
  86193. ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REQUESTING) ||
  86194. 8022fc2: 2b04 cmp r3, #4
  86195. 8022fc4: d003 beq.n 8022fce <dhcp_recv+0x13a>
  86196. (dhcp->state == DHCP_STATE_REBINDING) || (dhcp->state == DHCP_STATE_RENEWING ))) {
  86197. 8022fc6: 69bb ldr r3, [r7, #24]
  86198. 8022fc8: 795b ldrb r3, [r3, #5]
  86199. 8022fca: 2b05 cmp r3, #5
  86200. 8022fcc: d103 bne.n 8022fd6 <dhcp_recv+0x142>
  86201. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("DHCP_NAK received\n"));
  86202. dhcp_handle_nak(netif);
  86203. 8022fce: 69f8 ldr r0, [r7, #28]
  86204. 8022fd0: f7fe fb24 bl 802161c <dhcp_handle_nak>
  86205. 8022fd4: e01b b.n 802300e <dhcp_recv+0x17a>
  86206. }
  86207. /* received a DHCP_OFFER in DHCP_STATE_SELECTING state? */
  86208. else if ((msg_type == DHCP_OFFER) && (dhcp->state == DHCP_STATE_SELECTING)) {
  86209. 8022fd6: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  86210. 8022fda: 2b02 cmp r3, #2
  86211. 8022fdc: d116 bne.n 802300c <dhcp_recv+0x178>
  86212. 8022fde: 69bb ldr r3, [r7, #24]
  86213. 8022fe0: 795b ldrb r3, [r3, #5]
  86214. 8022fe2: 2b06 cmp r3, #6
  86215. 8022fe4: d112 bne.n 802300c <dhcp_recv+0x178>
  86216. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("DHCP_OFFER received in DHCP_STATE_SELECTING state\n"));
  86217. /* remember offered lease */
  86218. dhcp_handle_offer(netif, msg_in);
  86219. 8022fe6: 6a79 ldr r1, [r7, #36] @ 0x24
  86220. 8022fe8: 69f8 ldr r0, [r7, #28]
  86221. 8022fea: f7fe fb65 bl 80216b8 <dhcp_handle_offer>
  86222. 8022fee: e00e b.n 802300e <dhcp_recv+0x17a>
  86223. goto free_pbuf_and_return;
  86224. 8022ff0: bf00 nop
  86225. 8022ff2: e00c b.n 802300e <dhcp_recv+0x17a>
  86226. goto free_pbuf_and_return;
  86227. 8022ff4: bf00 nop
  86228. 8022ff6: e00a b.n 802300e <dhcp_recv+0x17a>
  86229. goto free_pbuf_and_return;
  86230. 8022ff8: bf00 nop
  86231. 8022ffa: e008 b.n 802300e <dhcp_recv+0x17a>
  86232. goto free_pbuf_and_return;
  86233. 8022ffc: bf00 nop
  86234. 8022ffe: e006 b.n 802300e <dhcp_recv+0x17a>
  86235. goto free_pbuf_and_return;
  86236. 8023000: bf00 nop
  86237. 8023002: e004 b.n 802300e <dhcp_recv+0x17a>
  86238. goto free_pbuf_and_return;
  86239. 8023004: bf00 nop
  86240. 8023006: e002 b.n 802300e <dhcp_recv+0x17a>
  86241. goto free_pbuf_and_return;
  86242. 8023008: bf00 nop
  86243. 802300a: e000 b.n 802300e <dhcp_recv+0x17a>
  86244. }
  86245. free_pbuf_and_return:
  86246. 802300c: bf00 nop
  86247. pbuf_free(p);
  86248. 802300e: 6878 ldr r0, [r7, #4]
  86249. 8023010: f7f7 f804 bl 801a01c <pbuf_free>
  86250. }
  86251. 8023014: bf00 nop
  86252. 8023016: 3728 adds r7, #40 @ 0x28
  86253. 8023018: 46bd mov sp, r7
  86254. 802301a: bd80 pop {r7, pc}
  86255. 802301c: 2402349c .word 0x2402349c
  86256. 8023020: 2402a070 .word 0x2402a070
  86257. 8023024: 2402a050 .word 0x2402a050
  86258. 08023028 <dhcp_create_msg>:
  86259. * @param dhcp dhcp control struct
  86260. * @param message_type message type of the request
  86261. */
  86262. static struct pbuf *
  86263. dhcp_create_msg(struct netif *netif, struct dhcp *dhcp, u8_t message_type, u16_t *options_out_len)
  86264. {
  86265. 8023028: b580 push {r7, lr}
  86266. 802302a: b088 sub sp, #32
  86267. 802302c: af00 add r7, sp, #0
  86268. 802302e: 60f8 str r0, [r7, #12]
  86269. 8023030: 60b9 str r1, [r7, #8]
  86270. 8023032: 603b str r3, [r7, #0]
  86271. 8023034: 4613 mov r3, r2
  86272. 8023036: 71fb strb r3, [r7, #7]
  86273. if (!xid_initialised) {
  86274. xid = DHCP_GLOBAL_XID;
  86275. xid_initialised = !xid_initialised;
  86276. }
  86277. #endif
  86278. LWIP_ERROR("dhcp_create_msg: netif != NULL", (netif != NULL), return NULL;);
  86279. 8023038: 68fb ldr r3, [r7, #12]
  86280. 802303a: 2b00 cmp r3, #0
  86281. 802303c: d108 bne.n 8023050 <dhcp_create_msg+0x28>
  86282. 802303e: 4b5f ldr r3, [pc, #380] @ (80231bc <dhcp_create_msg+0x194>)
  86283. 8023040: f240 7269 movw r2, #1897 @ 0x769
  86284. 8023044: 495e ldr r1, [pc, #376] @ (80231c0 <dhcp_create_msg+0x198>)
  86285. 8023046: 485f ldr r0, [pc, #380] @ (80231c4 <dhcp_create_msg+0x19c>)
  86286. 8023048: f006 fa60 bl 802950c <iprintf>
  86287. 802304c: 2300 movs r3, #0
  86288. 802304e: e0b1 b.n 80231b4 <dhcp_create_msg+0x18c>
  86289. LWIP_ERROR("dhcp_create_msg: dhcp != NULL", (dhcp != NULL), return NULL;);
  86290. 8023050: 68bb ldr r3, [r7, #8]
  86291. 8023052: 2b00 cmp r3, #0
  86292. 8023054: d108 bne.n 8023068 <dhcp_create_msg+0x40>
  86293. 8023056: 4b59 ldr r3, [pc, #356] @ (80231bc <dhcp_create_msg+0x194>)
  86294. 8023058: f240 726a movw r2, #1898 @ 0x76a
  86295. 802305c: 495a ldr r1, [pc, #360] @ (80231c8 <dhcp_create_msg+0x1a0>)
  86296. 802305e: 4859 ldr r0, [pc, #356] @ (80231c4 <dhcp_create_msg+0x19c>)
  86297. 8023060: f006 fa54 bl 802950c <iprintf>
  86298. 8023064: 2300 movs r3, #0
  86299. 8023066: e0a5 b.n 80231b4 <dhcp_create_msg+0x18c>
  86300. p_out = pbuf_alloc(PBUF_TRANSPORT, sizeof(struct dhcp_msg), PBUF_RAM);
  86301. 8023068: f44f 7220 mov.w r2, #640 @ 0x280
  86302. 802306c: f44f 719a mov.w r1, #308 @ 0x134
  86303. 8023070: 2036 movs r0, #54 @ 0x36
  86304. 8023072: f7f6 fcbd bl 80199f0 <pbuf_alloc>
  86305. 8023076: 61b8 str r0, [r7, #24]
  86306. if (p_out == NULL) {
  86307. 8023078: 69bb ldr r3, [r7, #24]
  86308. 802307a: 2b00 cmp r3, #0
  86309. 802307c: d101 bne.n 8023082 <dhcp_create_msg+0x5a>
  86310. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS,
  86311. ("dhcp_create_msg(): could not allocate pbuf\n"));
  86312. return NULL;
  86313. 802307e: 2300 movs r3, #0
  86314. 8023080: e098 b.n 80231b4 <dhcp_create_msg+0x18c>
  86315. }
  86316. LWIP_ASSERT("dhcp_create_msg: check that first pbuf can hold struct dhcp_msg",
  86317. 8023082: 69bb ldr r3, [r7, #24]
  86318. 8023084: 895b ldrh r3, [r3, #10]
  86319. 8023086: f5b3 7f9a cmp.w r3, #308 @ 0x134
  86320. 802308a: d206 bcs.n 802309a <dhcp_create_msg+0x72>
  86321. 802308c: 4b4b ldr r3, [pc, #300] @ (80231bc <dhcp_create_msg+0x194>)
  86322. 802308e: f240 7271 movw r2, #1905 @ 0x771
  86323. 8023092: 494e ldr r1, [pc, #312] @ (80231cc <dhcp_create_msg+0x1a4>)
  86324. 8023094: 484b ldr r0, [pc, #300] @ (80231c4 <dhcp_create_msg+0x19c>)
  86325. 8023096: f006 fa39 bl 802950c <iprintf>
  86326. (p_out->len >= sizeof(struct dhcp_msg)));
  86327. /* DHCP_REQUEST should reuse 'xid' from DHCPOFFER */
  86328. if ((message_type != DHCP_REQUEST) || (dhcp->state == DHCP_STATE_REBOOTING)) {
  86329. 802309a: 79fb ldrb r3, [r7, #7]
  86330. 802309c: 2b03 cmp r3, #3
  86331. 802309e: d103 bne.n 80230a8 <dhcp_create_msg+0x80>
  86332. 80230a0: 68bb ldr r3, [r7, #8]
  86333. 80230a2: 795b ldrb r3, [r3, #5]
  86334. 80230a4: 2b03 cmp r3, #3
  86335. 80230a6: d10d bne.n 80230c4 <dhcp_create_msg+0x9c>
  86336. /* reuse transaction identifier in retransmissions */
  86337. if (dhcp->tries == 0) {
  86338. 80230a8: 68bb ldr r3, [r7, #8]
  86339. 80230aa: 799b ldrb r3, [r3, #6]
  86340. 80230ac: 2b00 cmp r3, #0
  86341. 80230ae: d105 bne.n 80230bc <dhcp_create_msg+0x94>
  86342. #if DHCP_CREATE_RAND_XID && defined(LWIP_RAND)
  86343. xid = LWIP_RAND();
  86344. 80230b0: f004 ff02 bl 8027eb8 <rand>
  86345. 80230b4: 4603 mov r3, r0
  86346. 80230b6: 461a mov r2, r3
  86347. 80230b8: 4b45 ldr r3, [pc, #276] @ (80231d0 <dhcp_create_msg+0x1a8>)
  86348. 80230ba: 601a str r2, [r3, #0]
  86349. #else /* DHCP_CREATE_RAND_XID && defined(LWIP_RAND) */
  86350. xid++;
  86351. #endif /* DHCP_CREATE_RAND_XID && defined(LWIP_RAND) */
  86352. }
  86353. dhcp->xid = xid;
  86354. 80230bc: 4b44 ldr r3, [pc, #272] @ (80231d0 <dhcp_create_msg+0x1a8>)
  86355. 80230be: 681a ldr r2, [r3, #0]
  86356. 80230c0: 68bb ldr r3, [r7, #8]
  86357. 80230c2: 601a str r2, [r3, #0]
  86358. }
  86359. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE,
  86360. ("transaction id xid(%"X32_F")\n", xid));
  86361. msg_out = (struct dhcp_msg *)p_out->payload;
  86362. 80230c4: 69bb ldr r3, [r7, #24]
  86363. 80230c6: 685b ldr r3, [r3, #4]
  86364. 80230c8: 617b str r3, [r7, #20]
  86365. memset(msg_out, 0, sizeof(struct dhcp_msg));
  86366. 80230ca: f44f 729a mov.w r2, #308 @ 0x134
  86367. 80230ce: 2100 movs r1, #0
  86368. 80230d0: 6978 ldr r0, [r7, #20]
  86369. 80230d2: f006 fbad bl 8029830 <memset>
  86370. msg_out->op = DHCP_BOOTREQUEST;
  86371. 80230d6: 697b ldr r3, [r7, #20]
  86372. 80230d8: 2201 movs r2, #1
  86373. 80230da: 701a strb r2, [r3, #0]
  86374. /* @todo: make link layer independent */
  86375. msg_out->htype = LWIP_IANA_HWTYPE_ETHERNET;
  86376. 80230dc: 697b ldr r3, [r7, #20]
  86377. 80230de: 2201 movs r2, #1
  86378. 80230e0: 705a strb r2, [r3, #1]
  86379. msg_out->hlen = netif->hwaddr_len;
  86380. 80230e2: 68fb ldr r3, [r7, #12]
  86381. 80230e4: f893 2030 ldrb.w r2, [r3, #48] @ 0x30
  86382. 80230e8: 697b ldr r3, [r7, #20]
  86383. 80230ea: 709a strb r2, [r3, #2]
  86384. msg_out->xid = lwip_htonl(dhcp->xid);
  86385. 80230ec: 68bb ldr r3, [r7, #8]
  86386. 80230ee: 681b ldr r3, [r3, #0]
  86387. 80230f0: 4618 mov r0, r3
  86388. 80230f2: f7f5 fac6 bl 8018682 <lwip_htonl>
  86389. 80230f6: 4602 mov r2, r0
  86390. 80230f8: 697b ldr r3, [r7, #20]
  86391. 80230fa: 605a str r2, [r3, #4]
  86392. /* we don't need the broadcast flag since we can receive unicast traffic
  86393. before being fully configured! */
  86394. /* set ciaddr to netif->ip_addr based on message_type and state */
  86395. if ((message_type == DHCP_INFORM) || (message_type == DHCP_DECLINE) || (message_type == DHCP_RELEASE) ||
  86396. 80230fc: 79fb ldrb r3, [r7, #7]
  86397. 80230fe: 2b08 cmp r3, #8
  86398. 8023100: d010 beq.n 8023124 <dhcp_create_msg+0xfc>
  86399. 8023102: 79fb ldrb r3, [r7, #7]
  86400. 8023104: 2b04 cmp r3, #4
  86401. 8023106: d00d beq.n 8023124 <dhcp_create_msg+0xfc>
  86402. 8023108: 79fb ldrb r3, [r7, #7]
  86403. 802310a: 2b07 cmp r3, #7
  86404. 802310c: d00a beq.n 8023124 <dhcp_create_msg+0xfc>
  86405. 802310e: 79fb ldrb r3, [r7, #7]
  86406. 8023110: 2b03 cmp r3, #3
  86407. 8023112: d10c bne.n 802312e <dhcp_create_msg+0x106>
  86408. ((message_type == DHCP_REQUEST) && /* DHCP_STATE_BOUND not used for sending! */
  86409. ((dhcp->state == DHCP_STATE_RENEWING) || dhcp->state == DHCP_STATE_REBINDING))) {
  86410. 8023114: 68bb ldr r3, [r7, #8]
  86411. 8023116: 795b ldrb r3, [r3, #5]
  86412. ((message_type == DHCP_REQUEST) && /* DHCP_STATE_BOUND not used for sending! */
  86413. 8023118: 2b05 cmp r3, #5
  86414. 802311a: d003 beq.n 8023124 <dhcp_create_msg+0xfc>
  86415. ((dhcp->state == DHCP_STATE_RENEWING) || dhcp->state == DHCP_STATE_REBINDING))) {
  86416. 802311c: 68bb ldr r3, [r7, #8]
  86417. 802311e: 795b ldrb r3, [r3, #5]
  86418. 8023120: 2b04 cmp r3, #4
  86419. 8023122: d104 bne.n 802312e <dhcp_create_msg+0x106>
  86420. ip4_addr_copy(msg_out->ciaddr, *netif_ip4_addr(netif));
  86421. 8023124: 68fb ldr r3, [r7, #12]
  86422. 8023126: 3304 adds r3, #4
  86423. 8023128: 681a ldr r2, [r3, #0]
  86424. 802312a: 697b ldr r3, [r7, #20]
  86425. 802312c: 60da str r2, [r3, #12]
  86426. }
  86427. for (i = 0; i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) {
  86428. 802312e: 2300 movs r3, #0
  86429. 8023130: 83fb strh r3, [r7, #30]
  86430. 8023132: e00c b.n 802314e <dhcp_create_msg+0x126>
  86431. /* copy netif hardware address (padded with zeroes through memset already) */
  86432. msg_out->chaddr[i] = netif->hwaddr[i];
  86433. 8023134: 8bfa ldrh r2, [r7, #30]
  86434. 8023136: 8bfb ldrh r3, [r7, #30]
  86435. 8023138: 68f9 ldr r1, [r7, #12]
  86436. 802313a: 440a add r2, r1
  86437. 802313c: f892 102a ldrb.w r1, [r2, #42] @ 0x2a
  86438. 8023140: 697a ldr r2, [r7, #20]
  86439. 8023142: 4413 add r3, r2
  86440. 8023144: 460a mov r2, r1
  86441. 8023146: 771a strb r2, [r3, #28]
  86442. for (i = 0; i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) {
  86443. 8023148: 8bfb ldrh r3, [r7, #30]
  86444. 802314a: 3301 adds r3, #1
  86445. 802314c: 83fb strh r3, [r7, #30]
  86446. 802314e: 8bfb ldrh r3, [r7, #30]
  86447. 8023150: 2b05 cmp r3, #5
  86448. 8023152: d9ef bls.n 8023134 <dhcp_create_msg+0x10c>
  86449. }
  86450. msg_out->cookie = PP_HTONL(DHCP_MAGIC_COOKIE);
  86451. 8023154: 697b ldr r3, [r7, #20]
  86452. 8023156: 2200 movs r2, #0
  86453. 8023158: f042 0263 orr.w r2, r2, #99 @ 0x63
  86454. 802315c: f883 20ec strb.w r2, [r3, #236] @ 0xec
  86455. 8023160: 2200 movs r2, #0
  86456. 8023162: f062 027d orn r2, r2, #125 @ 0x7d
  86457. 8023166: f883 20ed strb.w r2, [r3, #237] @ 0xed
  86458. 802316a: 2200 movs r2, #0
  86459. 802316c: f042 0253 orr.w r2, r2, #83 @ 0x53
  86460. 8023170: f883 20ee strb.w r2, [r3, #238] @ 0xee
  86461. 8023174: 2200 movs r2, #0
  86462. 8023176: f042 0263 orr.w r2, r2, #99 @ 0x63
  86463. 802317a: f883 20ef strb.w r2, [r3, #239] @ 0xef
  86464. /* Add option MESSAGE_TYPE */
  86465. options_out_len_loc = dhcp_option(0, msg_out->options, DHCP_OPTION_MESSAGE_TYPE, DHCP_OPTION_MESSAGE_TYPE_LEN);
  86466. 802317e: 697b ldr r3, [r7, #20]
  86467. 8023180: f103 01f0 add.w r1, r3, #240 @ 0xf0
  86468. 8023184: 2301 movs r3, #1
  86469. 8023186: 2235 movs r2, #53 @ 0x35
  86470. 8023188: 2000 movs r0, #0
  86471. 802318a: f7ff facf bl 802272c <dhcp_option>
  86472. 802318e: 4603 mov r3, r0
  86473. 8023190: 827b strh r3, [r7, #18]
  86474. options_out_len_loc = dhcp_option_byte(options_out_len_loc, msg_out->options, message_type);
  86475. 8023192: 697b ldr r3, [r7, #20]
  86476. 8023194: f103 01f0 add.w r1, r3, #240 @ 0xf0
  86477. 8023198: 79fa ldrb r2, [r7, #7]
  86478. 802319a: 8a7b ldrh r3, [r7, #18]
  86479. 802319c: 4618 mov r0, r3
  86480. 802319e: f7ff faf9 bl 8022794 <dhcp_option_byte>
  86481. 80231a2: 4603 mov r3, r0
  86482. 80231a4: 827b strh r3, [r7, #18]
  86483. if (options_out_len) {
  86484. 80231a6: 683b ldr r3, [r7, #0]
  86485. 80231a8: 2b00 cmp r3, #0
  86486. 80231aa: d002 beq.n 80231b2 <dhcp_create_msg+0x18a>
  86487. *options_out_len = options_out_len_loc;
  86488. 80231ac: 683b ldr r3, [r7, #0]
  86489. 80231ae: 8a7a ldrh r2, [r7, #18]
  86490. 80231b0: 801a strh r2, [r3, #0]
  86491. }
  86492. return p_out;
  86493. 80231b2: 69bb ldr r3, [r7, #24]
  86494. }
  86495. 80231b4: 4618 mov r0, r3
  86496. 80231b6: 3720 adds r7, #32
  86497. 80231b8: 46bd mov sp, r7
  86498. 80231ba: bd80 pop {r7, pc}
  86499. 80231bc: 0802f9e8 .word 0x0802f9e8
  86500. 80231c0: 0802fd08 .word 0x0802fd08
  86501. 80231c4: 0802fa48 .word 0x0802fa48
  86502. 80231c8: 0802fd28 .word 0x0802fd28
  86503. 80231cc: 0802fd48 .word 0x0802fd48
  86504. 80231d0: 2402a080 .word 0x2402a080
  86505. 080231d4 <dhcp_option_trailer>:
  86506. * Adds the END option to the DHCP message, and if
  86507. * necessary, up to three padding bytes.
  86508. */
  86509. static void
  86510. dhcp_option_trailer(u16_t options_out_len, u8_t *options, struct pbuf *p_out)
  86511. {
  86512. 80231d4: b580 push {r7, lr}
  86513. 80231d6: b084 sub sp, #16
  86514. 80231d8: af00 add r7, sp, #0
  86515. 80231da: 4603 mov r3, r0
  86516. 80231dc: 60b9 str r1, [r7, #8]
  86517. 80231de: 607a str r2, [r7, #4]
  86518. 80231e0: 81fb strh r3, [r7, #14]
  86519. options[options_out_len++] = DHCP_OPTION_END;
  86520. 80231e2: 89fb ldrh r3, [r7, #14]
  86521. 80231e4: 1c5a adds r2, r3, #1
  86522. 80231e6: 81fa strh r2, [r7, #14]
  86523. 80231e8: 461a mov r2, r3
  86524. 80231ea: 68bb ldr r3, [r7, #8]
  86525. 80231ec: 4413 add r3, r2
  86526. 80231ee: 22ff movs r2, #255 @ 0xff
  86527. 80231f0: 701a strb r2, [r3, #0]
  86528. /* packet is too small, or not 4 byte aligned? */
  86529. while (((options_out_len < DHCP_MIN_OPTIONS_LEN) || (options_out_len & 3)) &&
  86530. 80231f2: e007 b.n 8023204 <dhcp_option_trailer+0x30>
  86531. (options_out_len < DHCP_OPTIONS_LEN)) {
  86532. /* add a fill/padding byte */
  86533. options[options_out_len++] = 0;
  86534. 80231f4: 89fb ldrh r3, [r7, #14]
  86535. 80231f6: 1c5a adds r2, r3, #1
  86536. 80231f8: 81fa strh r2, [r7, #14]
  86537. 80231fa: 461a mov r2, r3
  86538. 80231fc: 68bb ldr r3, [r7, #8]
  86539. 80231fe: 4413 add r3, r2
  86540. 8023200: 2200 movs r2, #0
  86541. 8023202: 701a strb r2, [r3, #0]
  86542. while (((options_out_len < DHCP_MIN_OPTIONS_LEN) || (options_out_len & 3)) &&
  86543. 8023204: 89fb ldrh r3, [r7, #14]
  86544. 8023206: 2b43 cmp r3, #67 @ 0x43
  86545. 8023208: d904 bls.n 8023214 <dhcp_option_trailer+0x40>
  86546. 802320a: 89fb ldrh r3, [r7, #14]
  86547. 802320c: f003 0303 and.w r3, r3, #3
  86548. 8023210: 2b00 cmp r3, #0
  86549. 8023212: d002 beq.n 802321a <dhcp_option_trailer+0x46>
  86550. 8023214: 89fb ldrh r3, [r7, #14]
  86551. 8023216: 2b43 cmp r3, #67 @ 0x43
  86552. 8023218: d9ec bls.n 80231f4 <dhcp_option_trailer+0x20>
  86553. }
  86554. /* shrink the pbuf to the actual content length */
  86555. pbuf_realloc(p_out, (u16_t)(sizeof(struct dhcp_msg) - DHCP_OPTIONS_LEN + options_out_len));
  86556. 802321a: 89fb ldrh r3, [r7, #14]
  86557. 802321c: 33f0 adds r3, #240 @ 0xf0
  86558. 802321e: b29b uxth r3, r3
  86559. 8023220: 4619 mov r1, r3
  86560. 8023222: 6878 ldr r0, [r7, #4]
  86561. 8023224: f7f6 fd44 bl 8019cb0 <pbuf_realloc>
  86562. }
  86563. 8023228: bf00 nop
  86564. 802322a: 3710 adds r7, #16
  86565. 802322c: 46bd mov sp, r7
  86566. 802322e: bd80 pop {r7, pc}
  86567. 08023230 <dhcp_supplied_address>:
  86568. * @return 1 if DHCP supplied netif->ip_addr (states BOUND or RENEWING),
  86569. * 0 otherwise
  86570. */
  86571. u8_t
  86572. dhcp_supplied_address(const struct netif *netif)
  86573. {
  86574. 8023230: b480 push {r7}
  86575. 8023232: b085 sub sp, #20
  86576. 8023234: af00 add r7, sp, #0
  86577. 8023236: 6078 str r0, [r7, #4]
  86578. if ((netif != NULL) && (netif_dhcp_data(netif) != NULL)) {
  86579. 8023238: 687b ldr r3, [r7, #4]
  86580. 802323a: 2b00 cmp r3, #0
  86581. 802323c: d017 beq.n 802326e <dhcp_supplied_address+0x3e>
  86582. 802323e: 687b ldr r3, [r7, #4]
  86583. 8023240: 6a5b ldr r3, [r3, #36] @ 0x24
  86584. 8023242: 2b00 cmp r3, #0
  86585. 8023244: d013 beq.n 802326e <dhcp_supplied_address+0x3e>
  86586. struct dhcp *dhcp = netif_dhcp_data(netif);
  86587. 8023246: 687b ldr r3, [r7, #4]
  86588. 8023248: 6a5b ldr r3, [r3, #36] @ 0x24
  86589. 802324a: 60fb str r3, [r7, #12]
  86590. return (dhcp->state == DHCP_STATE_BOUND) || (dhcp->state == DHCP_STATE_RENEWING) ||
  86591. 802324c: 68fb ldr r3, [r7, #12]
  86592. 802324e: 795b ldrb r3, [r3, #5]
  86593. 8023250: 2b0a cmp r3, #10
  86594. 8023252: d007 beq.n 8023264 <dhcp_supplied_address+0x34>
  86595. 8023254: 68fb ldr r3, [r7, #12]
  86596. 8023256: 795b ldrb r3, [r3, #5]
  86597. 8023258: 2b05 cmp r3, #5
  86598. 802325a: d003 beq.n 8023264 <dhcp_supplied_address+0x34>
  86599. (dhcp->state == DHCP_STATE_REBINDING);
  86600. 802325c: 68fb ldr r3, [r7, #12]
  86601. 802325e: 795b ldrb r3, [r3, #5]
  86602. return (dhcp->state == DHCP_STATE_BOUND) || (dhcp->state == DHCP_STATE_RENEWING) ||
  86603. 8023260: 2b04 cmp r3, #4
  86604. 8023262: d101 bne.n 8023268 <dhcp_supplied_address+0x38>
  86605. 8023264: 2301 movs r3, #1
  86606. 8023266: e000 b.n 802326a <dhcp_supplied_address+0x3a>
  86607. 8023268: 2300 movs r3, #0
  86608. 802326a: b2db uxtb r3, r3
  86609. 802326c: e000 b.n 8023270 <dhcp_supplied_address+0x40>
  86610. }
  86611. return 0;
  86612. 802326e: 2300 movs r3, #0
  86613. }
  86614. 8023270: 4618 mov r0, r3
  86615. 8023272: 3714 adds r7, #20
  86616. 8023274: 46bd mov sp, r7
  86617. 8023276: f85d 7b04 ldr.w r7, [sp], #4
  86618. 802327a: 4770 bx lr
  86619. 0802327c <etharp_free_entry>:
  86620. #endif /* ARP_QUEUEING */
  86621. /** Clean up ARP table entries */
  86622. static void
  86623. etharp_free_entry(int i)
  86624. {
  86625. 802327c: b580 push {r7, lr}
  86626. 802327e: b082 sub sp, #8
  86627. 8023280: af00 add r7, sp, #0
  86628. 8023282: 6078 str r0, [r7, #4]
  86629. /* remove from SNMP ARP index tree */
  86630. mib2_remove_arp_entry(arp_table[i].netif, &arp_table[i].ipaddr);
  86631. /* and empty packet queue */
  86632. if (arp_table[i].q != NULL) {
  86633. 8023284: 492b ldr r1, [pc, #172] @ (8023334 <etharp_free_entry+0xb8>)
  86634. 8023286: 687a ldr r2, [r7, #4]
  86635. 8023288: 4613 mov r3, r2
  86636. 802328a: 005b lsls r3, r3, #1
  86637. 802328c: 4413 add r3, r2
  86638. 802328e: 00db lsls r3, r3, #3
  86639. 8023290: 440b add r3, r1
  86640. 8023292: 681b ldr r3, [r3, #0]
  86641. 8023294: 2b00 cmp r3, #0
  86642. 8023296: d013 beq.n 80232c0 <etharp_free_entry+0x44>
  86643. /* remove all queued packets */
  86644. LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_free_entry: freeing entry %"U16_F", packet queue %p.\n", (u16_t)i, (void *)(arp_table[i].q)));
  86645. free_etharp_q(arp_table[i].q);
  86646. 8023298: 4926 ldr r1, [pc, #152] @ (8023334 <etharp_free_entry+0xb8>)
  86647. 802329a: 687a ldr r2, [r7, #4]
  86648. 802329c: 4613 mov r3, r2
  86649. 802329e: 005b lsls r3, r3, #1
  86650. 80232a0: 4413 add r3, r2
  86651. 80232a2: 00db lsls r3, r3, #3
  86652. 80232a4: 440b add r3, r1
  86653. 80232a6: 681b ldr r3, [r3, #0]
  86654. 80232a8: 4618 mov r0, r3
  86655. 80232aa: f7f6 feb7 bl 801a01c <pbuf_free>
  86656. arp_table[i].q = NULL;
  86657. 80232ae: 4921 ldr r1, [pc, #132] @ (8023334 <etharp_free_entry+0xb8>)
  86658. 80232b0: 687a ldr r2, [r7, #4]
  86659. 80232b2: 4613 mov r3, r2
  86660. 80232b4: 005b lsls r3, r3, #1
  86661. 80232b6: 4413 add r3, r2
  86662. 80232b8: 00db lsls r3, r3, #3
  86663. 80232ba: 440b add r3, r1
  86664. 80232bc: 2200 movs r2, #0
  86665. 80232be: 601a str r2, [r3, #0]
  86666. }
  86667. /* recycle entry for re-use */
  86668. arp_table[i].state = ETHARP_STATE_EMPTY;
  86669. 80232c0: 491c ldr r1, [pc, #112] @ (8023334 <etharp_free_entry+0xb8>)
  86670. 80232c2: 687a ldr r2, [r7, #4]
  86671. 80232c4: 4613 mov r3, r2
  86672. 80232c6: 005b lsls r3, r3, #1
  86673. 80232c8: 4413 add r3, r2
  86674. 80232ca: 00db lsls r3, r3, #3
  86675. 80232cc: 440b add r3, r1
  86676. 80232ce: 3314 adds r3, #20
  86677. 80232d0: 2200 movs r2, #0
  86678. 80232d2: 701a strb r2, [r3, #0]
  86679. #ifdef LWIP_DEBUG
  86680. /* for debugging, clean out the complete entry */
  86681. arp_table[i].ctime = 0;
  86682. 80232d4: 4917 ldr r1, [pc, #92] @ (8023334 <etharp_free_entry+0xb8>)
  86683. 80232d6: 687a ldr r2, [r7, #4]
  86684. 80232d8: 4613 mov r3, r2
  86685. 80232da: 005b lsls r3, r3, #1
  86686. 80232dc: 4413 add r3, r2
  86687. 80232de: 00db lsls r3, r3, #3
  86688. 80232e0: 440b add r3, r1
  86689. 80232e2: 3312 adds r3, #18
  86690. 80232e4: 2200 movs r2, #0
  86691. 80232e6: 801a strh r2, [r3, #0]
  86692. arp_table[i].netif = NULL;
  86693. 80232e8: 4912 ldr r1, [pc, #72] @ (8023334 <etharp_free_entry+0xb8>)
  86694. 80232ea: 687a ldr r2, [r7, #4]
  86695. 80232ec: 4613 mov r3, r2
  86696. 80232ee: 005b lsls r3, r3, #1
  86697. 80232f0: 4413 add r3, r2
  86698. 80232f2: 00db lsls r3, r3, #3
  86699. 80232f4: 440b add r3, r1
  86700. 80232f6: 3308 adds r3, #8
  86701. 80232f8: 2200 movs r2, #0
  86702. 80232fa: 601a str r2, [r3, #0]
  86703. ip4_addr_set_zero(&arp_table[i].ipaddr);
  86704. 80232fc: 490d ldr r1, [pc, #52] @ (8023334 <etharp_free_entry+0xb8>)
  86705. 80232fe: 687a ldr r2, [r7, #4]
  86706. 8023300: 4613 mov r3, r2
  86707. 8023302: 005b lsls r3, r3, #1
  86708. 8023304: 4413 add r3, r2
  86709. 8023306: 00db lsls r3, r3, #3
  86710. 8023308: 440b add r3, r1
  86711. 802330a: 3304 adds r3, #4
  86712. 802330c: 2200 movs r2, #0
  86713. 802330e: 601a str r2, [r3, #0]
  86714. arp_table[i].ethaddr = ethzero;
  86715. 8023310: 4908 ldr r1, [pc, #32] @ (8023334 <etharp_free_entry+0xb8>)
  86716. 8023312: 687a ldr r2, [r7, #4]
  86717. 8023314: 4613 mov r3, r2
  86718. 8023316: 005b lsls r3, r3, #1
  86719. 8023318: 4413 add r3, r2
  86720. 802331a: 00db lsls r3, r3, #3
  86721. 802331c: 440b add r3, r1
  86722. 802331e: 3308 adds r3, #8
  86723. 8023320: 4a05 ldr r2, [pc, #20] @ (8023338 <etharp_free_entry+0xbc>)
  86724. 8023322: 3304 adds r3, #4
  86725. 8023324: 6810 ldr r0, [r2, #0]
  86726. 8023326: 6018 str r0, [r3, #0]
  86727. 8023328: 8892 ldrh r2, [r2, #4]
  86728. 802332a: 809a strh r2, [r3, #4]
  86729. #endif /* LWIP_DEBUG */
  86730. }
  86731. 802332c: bf00 nop
  86732. 802332e: 3708 adds r7, #8
  86733. 8023330: 46bd mov sp, r7
  86734. 8023332: bd80 pop {r7, pc}
  86735. 8023334: 2402a084 .word 0x2402a084
  86736. 8023338: 080307b4 .word 0x080307b4
  86737. 0802333c <etharp_tmr>:
  86738. * This function should be called every ARP_TMR_INTERVAL milliseconds (1 second),
  86739. * in order to expire entries in the ARP table.
  86740. */
  86741. void
  86742. etharp_tmr(void)
  86743. {
  86744. 802333c: b580 push {r7, lr}
  86745. 802333e: b082 sub sp, #8
  86746. 8023340: af00 add r7, sp, #0
  86747. int i;
  86748. LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_timer\n"));
  86749. /* remove expired entries from the ARP table */
  86750. for (i = 0; i < ARP_TABLE_SIZE; ++i) {
  86751. 8023342: 2300 movs r3, #0
  86752. 8023344: 607b str r3, [r7, #4]
  86753. 8023346: e096 b.n 8023476 <etharp_tmr+0x13a>
  86754. u8_t state = arp_table[i].state;
  86755. 8023348: 494f ldr r1, [pc, #316] @ (8023488 <etharp_tmr+0x14c>)
  86756. 802334a: 687a ldr r2, [r7, #4]
  86757. 802334c: 4613 mov r3, r2
  86758. 802334e: 005b lsls r3, r3, #1
  86759. 8023350: 4413 add r3, r2
  86760. 8023352: 00db lsls r3, r3, #3
  86761. 8023354: 440b add r3, r1
  86762. 8023356: 3314 adds r3, #20
  86763. 8023358: 781b ldrb r3, [r3, #0]
  86764. 802335a: 70fb strb r3, [r7, #3]
  86765. if (state != ETHARP_STATE_EMPTY
  86766. 802335c: 78fb ldrb r3, [r7, #3]
  86767. 802335e: 2b00 cmp r3, #0
  86768. 8023360: f000 8086 beq.w 8023470 <etharp_tmr+0x134>
  86769. #if ETHARP_SUPPORT_STATIC_ENTRIES
  86770. && (state != ETHARP_STATE_STATIC)
  86771. #endif /* ETHARP_SUPPORT_STATIC_ENTRIES */
  86772. ) {
  86773. arp_table[i].ctime++;
  86774. 8023364: 4948 ldr r1, [pc, #288] @ (8023488 <etharp_tmr+0x14c>)
  86775. 8023366: 687a ldr r2, [r7, #4]
  86776. 8023368: 4613 mov r3, r2
  86777. 802336a: 005b lsls r3, r3, #1
  86778. 802336c: 4413 add r3, r2
  86779. 802336e: 00db lsls r3, r3, #3
  86780. 8023370: 440b add r3, r1
  86781. 8023372: 3312 adds r3, #18
  86782. 8023374: 881b ldrh r3, [r3, #0]
  86783. 8023376: 3301 adds r3, #1
  86784. 8023378: b298 uxth r0, r3
  86785. 802337a: 4943 ldr r1, [pc, #268] @ (8023488 <etharp_tmr+0x14c>)
  86786. 802337c: 687a ldr r2, [r7, #4]
  86787. 802337e: 4613 mov r3, r2
  86788. 8023380: 005b lsls r3, r3, #1
  86789. 8023382: 4413 add r3, r2
  86790. 8023384: 00db lsls r3, r3, #3
  86791. 8023386: 440b add r3, r1
  86792. 8023388: 3312 adds r3, #18
  86793. 802338a: 4602 mov r2, r0
  86794. 802338c: 801a strh r2, [r3, #0]
  86795. if ((arp_table[i].ctime >= ARP_MAXAGE) ||
  86796. 802338e: 493e ldr r1, [pc, #248] @ (8023488 <etharp_tmr+0x14c>)
  86797. 8023390: 687a ldr r2, [r7, #4]
  86798. 8023392: 4613 mov r3, r2
  86799. 8023394: 005b lsls r3, r3, #1
  86800. 8023396: 4413 add r3, r2
  86801. 8023398: 00db lsls r3, r3, #3
  86802. 802339a: 440b add r3, r1
  86803. 802339c: 3312 adds r3, #18
  86804. 802339e: 881b ldrh r3, [r3, #0]
  86805. 80233a0: f5b3 7f96 cmp.w r3, #300 @ 0x12c
  86806. 80233a4: d215 bcs.n 80233d2 <etharp_tmr+0x96>
  86807. ((arp_table[i].state == ETHARP_STATE_PENDING) &&
  86808. 80233a6: 4938 ldr r1, [pc, #224] @ (8023488 <etharp_tmr+0x14c>)
  86809. 80233a8: 687a ldr r2, [r7, #4]
  86810. 80233aa: 4613 mov r3, r2
  86811. 80233ac: 005b lsls r3, r3, #1
  86812. 80233ae: 4413 add r3, r2
  86813. 80233b0: 00db lsls r3, r3, #3
  86814. 80233b2: 440b add r3, r1
  86815. 80233b4: 3314 adds r3, #20
  86816. 80233b6: 781b ldrb r3, [r3, #0]
  86817. if ((arp_table[i].ctime >= ARP_MAXAGE) ||
  86818. 80233b8: 2b01 cmp r3, #1
  86819. 80233ba: d10e bne.n 80233da <etharp_tmr+0x9e>
  86820. (arp_table[i].ctime >= ARP_MAXPENDING))) {
  86821. 80233bc: 4932 ldr r1, [pc, #200] @ (8023488 <etharp_tmr+0x14c>)
  86822. 80233be: 687a ldr r2, [r7, #4]
  86823. 80233c0: 4613 mov r3, r2
  86824. 80233c2: 005b lsls r3, r3, #1
  86825. 80233c4: 4413 add r3, r2
  86826. 80233c6: 00db lsls r3, r3, #3
  86827. 80233c8: 440b add r3, r1
  86828. 80233ca: 3312 adds r3, #18
  86829. 80233cc: 881b ldrh r3, [r3, #0]
  86830. ((arp_table[i].state == ETHARP_STATE_PENDING) &&
  86831. 80233ce: 2b04 cmp r3, #4
  86832. 80233d0: d903 bls.n 80233da <etharp_tmr+0x9e>
  86833. /* pending or stable entry has become old! */
  86834. LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_timer: expired %s entry %d.\n",
  86835. arp_table[i].state >= ETHARP_STATE_STABLE ? "stable" : "pending", i));
  86836. /* clean up entries that have just been expired */
  86837. etharp_free_entry(i);
  86838. 80233d2: 6878 ldr r0, [r7, #4]
  86839. 80233d4: f7ff ff52 bl 802327c <etharp_free_entry>
  86840. 80233d8: e04a b.n 8023470 <etharp_tmr+0x134>
  86841. } else if (arp_table[i].state == ETHARP_STATE_STABLE_REREQUESTING_1) {
  86842. 80233da: 492b ldr r1, [pc, #172] @ (8023488 <etharp_tmr+0x14c>)
  86843. 80233dc: 687a ldr r2, [r7, #4]
  86844. 80233de: 4613 mov r3, r2
  86845. 80233e0: 005b lsls r3, r3, #1
  86846. 80233e2: 4413 add r3, r2
  86847. 80233e4: 00db lsls r3, r3, #3
  86848. 80233e6: 440b add r3, r1
  86849. 80233e8: 3314 adds r3, #20
  86850. 80233ea: 781b ldrb r3, [r3, #0]
  86851. 80233ec: 2b03 cmp r3, #3
  86852. 80233ee: d10a bne.n 8023406 <etharp_tmr+0xca>
  86853. /* Don't send more than one request every 2 seconds. */
  86854. arp_table[i].state = ETHARP_STATE_STABLE_REREQUESTING_2;
  86855. 80233f0: 4925 ldr r1, [pc, #148] @ (8023488 <etharp_tmr+0x14c>)
  86856. 80233f2: 687a ldr r2, [r7, #4]
  86857. 80233f4: 4613 mov r3, r2
  86858. 80233f6: 005b lsls r3, r3, #1
  86859. 80233f8: 4413 add r3, r2
  86860. 80233fa: 00db lsls r3, r3, #3
  86861. 80233fc: 440b add r3, r1
  86862. 80233fe: 3314 adds r3, #20
  86863. 8023400: 2204 movs r2, #4
  86864. 8023402: 701a strb r2, [r3, #0]
  86865. 8023404: e034 b.n 8023470 <etharp_tmr+0x134>
  86866. } else if (arp_table[i].state == ETHARP_STATE_STABLE_REREQUESTING_2) {
  86867. 8023406: 4920 ldr r1, [pc, #128] @ (8023488 <etharp_tmr+0x14c>)
  86868. 8023408: 687a ldr r2, [r7, #4]
  86869. 802340a: 4613 mov r3, r2
  86870. 802340c: 005b lsls r3, r3, #1
  86871. 802340e: 4413 add r3, r2
  86872. 8023410: 00db lsls r3, r3, #3
  86873. 8023412: 440b add r3, r1
  86874. 8023414: 3314 adds r3, #20
  86875. 8023416: 781b ldrb r3, [r3, #0]
  86876. 8023418: 2b04 cmp r3, #4
  86877. 802341a: d10a bne.n 8023432 <etharp_tmr+0xf6>
  86878. /* Reset state to stable, so that the next transmitted packet will
  86879. re-send an ARP request. */
  86880. arp_table[i].state = ETHARP_STATE_STABLE;
  86881. 802341c: 491a ldr r1, [pc, #104] @ (8023488 <etharp_tmr+0x14c>)
  86882. 802341e: 687a ldr r2, [r7, #4]
  86883. 8023420: 4613 mov r3, r2
  86884. 8023422: 005b lsls r3, r3, #1
  86885. 8023424: 4413 add r3, r2
  86886. 8023426: 00db lsls r3, r3, #3
  86887. 8023428: 440b add r3, r1
  86888. 802342a: 3314 adds r3, #20
  86889. 802342c: 2202 movs r2, #2
  86890. 802342e: 701a strb r2, [r3, #0]
  86891. 8023430: e01e b.n 8023470 <etharp_tmr+0x134>
  86892. } else if (arp_table[i].state == ETHARP_STATE_PENDING) {
  86893. 8023432: 4915 ldr r1, [pc, #84] @ (8023488 <etharp_tmr+0x14c>)
  86894. 8023434: 687a ldr r2, [r7, #4]
  86895. 8023436: 4613 mov r3, r2
  86896. 8023438: 005b lsls r3, r3, #1
  86897. 802343a: 4413 add r3, r2
  86898. 802343c: 00db lsls r3, r3, #3
  86899. 802343e: 440b add r3, r1
  86900. 8023440: 3314 adds r3, #20
  86901. 8023442: 781b ldrb r3, [r3, #0]
  86902. 8023444: 2b01 cmp r3, #1
  86903. 8023446: d113 bne.n 8023470 <etharp_tmr+0x134>
  86904. /* still pending, resend an ARP query */
  86905. etharp_request(arp_table[i].netif, &arp_table[i].ipaddr);
  86906. 8023448: 490f ldr r1, [pc, #60] @ (8023488 <etharp_tmr+0x14c>)
  86907. 802344a: 687a ldr r2, [r7, #4]
  86908. 802344c: 4613 mov r3, r2
  86909. 802344e: 005b lsls r3, r3, #1
  86910. 8023450: 4413 add r3, r2
  86911. 8023452: 00db lsls r3, r3, #3
  86912. 8023454: 440b add r3, r1
  86913. 8023456: 3308 adds r3, #8
  86914. 8023458: 6818 ldr r0, [r3, #0]
  86915. 802345a: 687a ldr r2, [r7, #4]
  86916. 802345c: 4613 mov r3, r2
  86917. 802345e: 005b lsls r3, r3, #1
  86918. 8023460: 4413 add r3, r2
  86919. 8023462: 00db lsls r3, r3, #3
  86920. 8023464: 4a08 ldr r2, [pc, #32] @ (8023488 <etharp_tmr+0x14c>)
  86921. 8023466: 4413 add r3, r2
  86922. 8023468: 3304 adds r3, #4
  86923. 802346a: 4619 mov r1, r3
  86924. 802346c: f000 fe76 bl 802415c <etharp_request>
  86925. for (i = 0; i < ARP_TABLE_SIZE; ++i) {
  86926. 8023470: 687b ldr r3, [r7, #4]
  86927. 8023472: 3301 adds r3, #1
  86928. 8023474: 607b str r3, [r7, #4]
  86929. 8023476: 687b ldr r3, [r7, #4]
  86930. 8023478: 2b09 cmp r3, #9
  86931. 802347a: f77f af65 ble.w 8023348 <etharp_tmr+0xc>
  86932. }
  86933. }
  86934. }
  86935. }
  86936. 802347e: bf00 nop
  86937. 8023480: bf00 nop
  86938. 8023482: 3708 adds r7, #8
  86939. 8023484: 46bd mov sp, r7
  86940. 8023486: bd80 pop {r7, pc}
  86941. 8023488: 2402a084 .word 0x2402a084
  86942. 0802348c <etharp_find_entry>:
  86943. * @return The ARP entry index that matched or is created, ERR_MEM if no
  86944. * entry is found or could be recycled.
  86945. */
  86946. static s16_t
  86947. etharp_find_entry(const ip4_addr_t *ipaddr, u8_t flags, struct netif *netif)
  86948. {
  86949. 802348c: b580 push {r7, lr}
  86950. 802348e: b08a sub sp, #40 @ 0x28
  86951. 8023490: af00 add r7, sp, #0
  86952. 8023492: 60f8 str r0, [r7, #12]
  86953. 8023494: 460b mov r3, r1
  86954. 8023496: 607a str r2, [r7, #4]
  86955. 8023498: 72fb strb r3, [r7, #11]
  86956. s16_t old_pending = ARP_TABLE_SIZE, old_stable = ARP_TABLE_SIZE;
  86957. 802349a: 230a movs r3, #10
  86958. 802349c: 843b strh r3, [r7, #32]
  86959. 802349e: 230a movs r3, #10
  86960. 80234a0: 847b strh r3, [r7, #34] @ 0x22
  86961. s16_t empty = ARP_TABLE_SIZE;
  86962. 80234a2: 230a movs r3, #10
  86963. 80234a4: 84bb strh r3, [r7, #36] @ 0x24
  86964. s16_t i = 0;
  86965. 80234a6: 2300 movs r3, #0
  86966. 80234a8: 84fb strh r3, [r7, #38] @ 0x26
  86967. /* oldest entry with packets on queue */
  86968. s16_t old_queue = ARP_TABLE_SIZE;
  86969. 80234aa: 230a movs r3, #10
  86970. 80234ac: 83fb strh r3, [r7, #30]
  86971. /* its age */
  86972. u16_t age_queue = 0, age_pending = 0, age_stable = 0;
  86973. 80234ae: 2300 movs r3, #0
  86974. 80234b0: 83bb strh r3, [r7, #28]
  86975. 80234b2: 2300 movs r3, #0
  86976. 80234b4: 837b strh r3, [r7, #26]
  86977. 80234b6: 2300 movs r3, #0
  86978. 80234b8: 833b strh r3, [r7, #24]
  86979. * 4) remember the oldest pending entry with queued packets (if any)
  86980. * 5) search for a matching IP entry, either pending or stable
  86981. * until 5 matches, or all entries are searched for.
  86982. */
  86983. for (i = 0; i < ARP_TABLE_SIZE; ++i) {
  86984. 80234ba: 2300 movs r3, #0
  86985. 80234bc: 84fb strh r3, [r7, #38] @ 0x26
  86986. 80234be: e0ae b.n 802361e <etharp_find_entry+0x192>
  86987. u8_t state = arp_table[i].state;
  86988. 80234c0: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  86989. 80234c4: 49a6 ldr r1, [pc, #664] @ (8023760 <etharp_find_entry+0x2d4>)
  86990. 80234c6: 4613 mov r3, r2
  86991. 80234c8: 005b lsls r3, r3, #1
  86992. 80234ca: 4413 add r3, r2
  86993. 80234cc: 00db lsls r3, r3, #3
  86994. 80234ce: 440b add r3, r1
  86995. 80234d0: 3314 adds r3, #20
  86996. 80234d2: 781b ldrb r3, [r3, #0]
  86997. 80234d4: 75fb strb r3, [r7, #23]
  86998. /* no empty entry found yet and now we do find one? */
  86999. if ((empty == ARP_TABLE_SIZE) && (state == ETHARP_STATE_EMPTY)) {
  87000. 80234d6: f9b7 3024 ldrsh.w r3, [r7, #36] @ 0x24
  87001. 80234da: 2b0a cmp r3, #10
  87002. 80234dc: d105 bne.n 80234ea <etharp_find_entry+0x5e>
  87003. 80234de: 7dfb ldrb r3, [r7, #23]
  87004. 80234e0: 2b00 cmp r3, #0
  87005. 80234e2: d102 bne.n 80234ea <etharp_find_entry+0x5e>
  87006. LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_find_entry: found empty entry %d\n", (int)i));
  87007. /* remember first empty entry */
  87008. empty = i;
  87009. 80234e4: 8cfb ldrh r3, [r7, #38] @ 0x26
  87010. 80234e6: 84bb strh r3, [r7, #36] @ 0x24
  87011. 80234e8: e095 b.n 8023616 <etharp_find_entry+0x18a>
  87012. } else if (state != ETHARP_STATE_EMPTY) {
  87013. 80234ea: 7dfb ldrb r3, [r7, #23]
  87014. 80234ec: 2b00 cmp r3, #0
  87015. 80234ee: f000 8092 beq.w 8023616 <etharp_find_entry+0x18a>
  87016. LWIP_ASSERT("state == ETHARP_STATE_PENDING || state >= ETHARP_STATE_STABLE",
  87017. 80234f2: 7dfb ldrb r3, [r7, #23]
  87018. 80234f4: 2b01 cmp r3, #1
  87019. 80234f6: d009 beq.n 802350c <etharp_find_entry+0x80>
  87020. 80234f8: 7dfb ldrb r3, [r7, #23]
  87021. 80234fa: 2b01 cmp r3, #1
  87022. 80234fc: d806 bhi.n 802350c <etharp_find_entry+0x80>
  87023. 80234fe: 4b99 ldr r3, [pc, #612] @ (8023764 <etharp_find_entry+0x2d8>)
  87024. 8023500: f240 1223 movw r2, #291 @ 0x123
  87025. 8023504: 4998 ldr r1, [pc, #608] @ (8023768 <etharp_find_entry+0x2dc>)
  87026. 8023506: 4899 ldr r0, [pc, #612] @ (802376c <etharp_find_entry+0x2e0>)
  87027. 8023508: f006 f800 bl 802950c <iprintf>
  87028. state == ETHARP_STATE_PENDING || state >= ETHARP_STATE_STABLE);
  87029. /* if given, does IP address match IP address in ARP entry? */
  87030. if (ipaddr && ip4_addr_cmp(ipaddr, &arp_table[i].ipaddr)
  87031. 802350c: 68fb ldr r3, [r7, #12]
  87032. 802350e: 2b00 cmp r3, #0
  87033. 8023510: d020 beq.n 8023554 <etharp_find_entry+0xc8>
  87034. 8023512: 68fb ldr r3, [r7, #12]
  87035. 8023514: 6819 ldr r1, [r3, #0]
  87036. 8023516: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  87037. 802351a: 4891 ldr r0, [pc, #580] @ (8023760 <etharp_find_entry+0x2d4>)
  87038. 802351c: 4613 mov r3, r2
  87039. 802351e: 005b lsls r3, r3, #1
  87040. 8023520: 4413 add r3, r2
  87041. 8023522: 00db lsls r3, r3, #3
  87042. 8023524: 4403 add r3, r0
  87043. 8023526: 3304 adds r3, #4
  87044. 8023528: 681b ldr r3, [r3, #0]
  87045. 802352a: 4299 cmp r1, r3
  87046. 802352c: d112 bne.n 8023554 <etharp_find_entry+0xc8>
  87047. #if ETHARP_TABLE_MATCH_NETIF
  87048. && ((netif == NULL) || (netif == arp_table[i].netif))
  87049. 802352e: 687b ldr r3, [r7, #4]
  87050. 8023530: 2b00 cmp r3, #0
  87051. 8023532: d00c beq.n 802354e <etharp_find_entry+0xc2>
  87052. 8023534: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  87053. 8023538: 4989 ldr r1, [pc, #548] @ (8023760 <etharp_find_entry+0x2d4>)
  87054. 802353a: 4613 mov r3, r2
  87055. 802353c: 005b lsls r3, r3, #1
  87056. 802353e: 4413 add r3, r2
  87057. 8023540: 00db lsls r3, r3, #3
  87058. 8023542: 440b add r3, r1
  87059. 8023544: 3308 adds r3, #8
  87060. 8023546: 681b ldr r3, [r3, #0]
  87061. 8023548: 687a ldr r2, [r7, #4]
  87062. 802354a: 429a cmp r2, r3
  87063. 802354c: d102 bne.n 8023554 <etharp_find_entry+0xc8>
  87064. #endif /* ETHARP_TABLE_MATCH_NETIF */
  87065. ) {
  87066. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: found matching entry %d\n", (int)i));
  87067. /* found exact IP address match, simply bail out */
  87068. return i;
  87069. 802354e: f9b7 3026 ldrsh.w r3, [r7, #38] @ 0x26
  87070. 8023552: e100 b.n 8023756 <etharp_find_entry+0x2ca>
  87071. }
  87072. /* pending entry? */
  87073. if (state == ETHARP_STATE_PENDING) {
  87074. 8023554: 7dfb ldrb r3, [r7, #23]
  87075. 8023556: 2b01 cmp r3, #1
  87076. 8023558: d140 bne.n 80235dc <etharp_find_entry+0x150>
  87077. /* pending with queued packets? */
  87078. if (arp_table[i].q != NULL) {
  87079. 802355a: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  87080. 802355e: 4980 ldr r1, [pc, #512] @ (8023760 <etharp_find_entry+0x2d4>)
  87081. 8023560: 4613 mov r3, r2
  87082. 8023562: 005b lsls r3, r3, #1
  87083. 8023564: 4413 add r3, r2
  87084. 8023566: 00db lsls r3, r3, #3
  87085. 8023568: 440b add r3, r1
  87086. 802356a: 681b ldr r3, [r3, #0]
  87087. 802356c: 2b00 cmp r3, #0
  87088. 802356e: d01a beq.n 80235a6 <etharp_find_entry+0x11a>
  87089. if (arp_table[i].ctime >= age_queue) {
  87090. 8023570: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  87091. 8023574: 497a ldr r1, [pc, #488] @ (8023760 <etharp_find_entry+0x2d4>)
  87092. 8023576: 4613 mov r3, r2
  87093. 8023578: 005b lsls r3, r3, #1
  87094. 802357a: 4413 add r3, r2
  87095. 802357c: 00db lsls r3, r3, #3
  87096. 802357e: 440b add r3, r1
  87097. 8023580: 3312 adds r3, #18
  87098. 8023582: 881b ldrh r3, [r3, #0]
  87099. 8023584: 8bba ldrh r2, [r7, #28]
  87100. 8023586: 429a cmp r2, r3
  87101. 8023588: d845 bhi.n 8023616 <etharp_find_entry+0x18a>
  87102. old_queue = i;
  87103. 802358a: 8cfb ldrh r3, [r7, #38] @ 0x26
  87104. 802358c: 83fb strh r3, [r7, #30]
  87105. age_queue = arp_table[i].ctime;
  87106. 802358e: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  87107. 8023592: 4973 ldr r1, [pc, #460] @ (8023760 <etharp_find_entry+0x2d4>)
  87108. 8023594: 4613 mov r3, r2
  87109. 8023596: 005b lsls r3, r3, #1
  87110. 8023598: 4413 add r3, r2
  87111. 802359a: 00db lsls r3, r3, #3
  87112. 802359c: 440b add r3, r1
  87113. 802359e: 3312 adds r3, #18
  87114. 80235a0: 881b ldrh r3, [r3, #0]
  87115. 80235a2: 83bb strh r3, [r7, #28]
  87116. 80235a4: e037 b.n 8023616 <etharp_find_entry+0x18a>
  87117. }
  87118. } else
  87119. /* pending without queued packets? */
  87120. {
  87121. if (arp_table[i].ctime >= age_pending) {
  87122. 80235a6: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  87123. 80235aa: 496d ldr r1, [pc, #436] @ (8023760 <etharp_find_entry+0x2d4>)
  87124. 80235ac: 4613 mov r3, r2
  87125. 80235ae: 005b lsls r3, r3, #1
  87126. 80235b0: 4413 add r3, r2
  87127. 80235b2: 00db lsls r3, r3, #3
  87128. 80235b4: 440b add r3, r1
  87129. 80235b6: 3312 adds r3, #18
  87130. 80235b8: 881b ldrh r3, [r3, #0]
  87131. 80235ba: 8b7a ldrh r2, [r7, #26]
  87132. 80235bc: 429a cmp r2, r3
  87133. 80235be: d82a bhi.n 8023616 <etharp_find_entry+0x18a>
  87134. old_pending = i;
  87135. 80235c0: 8cfb ldrh r3, [r7, #38] @ 0x26
  87136. 80235c2: 843b strh r3, [r7, #32]
  87137. age_pending = arp_table[i].ctime;
  87138. 80235c4: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  87139. 80235c8: 4965 ldr r1, [pc, #404] @ (8023760 <etharp_find_entry+0x2d4>)
  87140. 80235ca: 4613 mov r3, r2
  87141. 80235cc: 005b lsls r3, r3, #1
  87142. 80235ce: 4413 add r3, r2
  87143. 80235d0: 00db lsls r3, r3, #3
  87144. 80235d2: 440b add r3, r1
  87145. 80235d4: 3312 adds r3, #18
  87146. 80235d6: 881b ldrh r3, [r3, #0]
  87147. 80235d8: 837b strh r3, [r7, #26]
  87148. 80235da: e01c b.n 8023616 <etharp_find_entry+0x18a>
  87149. }
  87150. }
  87151. /* stable entry? */
  87152. } else if (state >= ETHARP_STATE_STABLE) {
  87153. 80235dc: 7dfb ldrb r3, [r7, #23]
  87154. 80235de: 2b01 cmp r3, #1
  87155. 80235e0: d919 bls.n 8023616 <etharp_find_entry+0x18a>
  87156. /* don't record old_stable for static entries since they never expire */
  87157. if (state < ETHARP_STATE_STATIC)
  87158. #endif /* ETHARP_SUPPORT_STATIC_ENTRIES */
  87159. {
  87160. /* remember entry with oldest stable entry in oldest, its age in maxtime */
  87161. if (arp_table[i].ctime >= age_stable) {
  87162. 80235e2: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  87163. 80235e6: 495e ldr r1, [pc, #376] @ (8023760 <etharp_find_entry+0x2d4>)
  87164. 80235e8: 4613 mov r3, r2
  87165. 80235ea: 005b lsls r3, r3, #1
  87166. 80235ec: 4413 add r3, r2
  87167. 80235ee: 00db lsls r3, r3, #3
  87168. 80235f0: 440b add r3, r1
  87169. 80235f2: 3312 adds r3, #18
  87170. 80235f4: 881b ldrh r3, [r3, #0]
  87171. 80235f6: 8b3a ldrh r2, [r7, #24]
  87172. 80235f8: 429a cmp r2, r3
  87173. 80235fa: d80c bhi.n 8023616 <etharp_find_entry+0x18a>
  87174. old_stable = i;
  87175. 80235fc: 8cfb ldrh r3, [r7, #38] @ 0x26
  87176. 80235fe: 847b strh r3, [r7, #34] @ 0x22
  87177. age_stable = arp_table[i].ctime;
  87178. 8023600: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  87179. 8023604: 4956 ldr r1, [pc, #344] @ (8023760 <etharp_find_entry+0x2d4>)
  87180. 8023606: 4613 mov r3, r2
  87181. 8023608: 005b lsls r3, r3, #1
  87182. 802360a: 4413 add r3, r2
  87183. 802360c: 00db lsls r3, r3, #3
  87184. 802360e: 440b add r3, r1
  87185. 8023610: 3312 adds r3, #18
  87186. 8023612: 881b ldrh r3, [r3, #0]
  87187. 8023614: 833b strh r3, [r7, #24]
  87188. for (i = 0; i < ARP_TABLE_SIZE; ++i) {
  87189. 8023616: 8cfb ldrh r3, [r7, #38] @ 0x26
  87190. 8023618: 3301 adds r3, #1
  87191. 802361a: b29b uxth r3, r3
  87192. 802361c: 84fb strh r3, [r7, #38] @ 0x26
  87193. 802361e: f9b7 3026 ldrsh.w r3, [r7, #38] @ 0x26
  87194. 8023622: 2b09 cmp r3, #9
  87195. 8023624: f77f af4c ble.w 80234c0 <etharp_find_entry+0x34>
  87196. }
  87197. }
  87198. /* { we have no match } => try to create a new entry */
  87199. /* don't create new entry, only search? */
  87200. if (((flags & ETHARP_FLAG_FIND_ONLY) != 0) ||
  87201. 8023628: 7afb ldrb r3, [r7, #11]
  87202. 802362a: f003 0302 and.w r3, r3, #2
  87203. 802362e: 2b00 cmp r3, #0
  87204. 8023630: d108 bne.n 8023644 <etharp_find_entry+0x1b8>
  87205. 8023632: f9b7 3024 ldrsh.w r3, [r7, #36] @ 0x24
  87206. 8023636: 2b0a cmp r3, #10
  87207. 8023638: d107 bne.n 802364a <etharp_find_entry+0x1be>
  87208. /* or no empty entry found and not allowed to recycle? */
  87209. ((empty == ARP_TABLE_SIZE) && ((flags & ETHARP_FLAG_TRY_HARD) == 0))) {
  87210. 802363a: 7afb ldrb r3, [r7, #11]
  87211. 802363c: f003 0301 and.w r3, r3, #1
  87212. 8023640: 2b00 cmp r3, #0
  87213. 8023642: d102 bne.n 802364a <etharp_find_entry+0x1be>
  87214. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: no empty entry found and not allowed to recycle\n"));
  87215. return (s16_t)ERR_MEM;
  87216. 8023644: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  87217. 8023648: e085 b.n 8023756 <etharp_find_entry+0x2ca>
  87218. *
  87219. * { ETHARP_FLAG_TRY_HARD is set at this point }
  87220. */
  87221. /* 1) empty entry available? */
  87222. if (empty < ARP_TABLE_SIZE) {
  87223. 802364a: f9b7 3024 ldrsh.w r3, [r7, #36] @ 0x24
  87224. 802364e: 2b09 cmp r3, #9
  87225. 8023650: dc02 bgt.n 8023658 <etharp_find_entry+0x1cc>
  87226. i = empty;
  87227. 8023652: 8cbb ldrh r3, [r7, #36] @ 0x24
  87228. 8023654: 84fb strh r3, [r7, #38] @ 0x26
  87229. 8023656: e039 b.n 80236cc <etharp_find_entry+0x240>
  87230. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: selecting empty entry %d\n", (int)i));
  87231. } else {
  87232. /* 2) found recyclable stable entry? */
  87233. if (old_stable < ARP_TABLE_SIZE) {
  87234. 8023658: f9b7 3022 ldrsh.w r3, [r7, #34] @ 0x22
  87235. 802365c: 2b09 cmp r3, #9
  87236. 802365e: dc14 bgt.n 802368a <etharp_find_entry+0x1fe>
  87237. /* recycle oldest stable*/
  87238. i = old_stable;
  87239. 8023660: 8c7b ldrh r3, [r7, #34] @ 0x22
  87240. 8023662: 84fb strh r3, [r7, #38] @ 0x26
  87241. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: selecting oldest stable entry %d\n", (int)i));
  87242. /* no queued packets should exist on stable entries */
  87243. LWIP_ASSERT("arp_table[i].q == NULL", arp_table[i].q == NULL);
  87244. 8023664: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  87245. 8023668: 493d ldr r1, [pc, #244] @ (8023760 <etharp_find_entry+0x2d4>)
  87246. 802366a: 4613 mov r3, r2
  87247. 802366c: 005b lsls r3, r3, #1
  87248. 802366e: 4413 add r3, r2
  87249. 8023670: 00db lsls r3, r3, #3
  87250. 8023672: 440b add r3, r1
  87251. 8023674: 681b ldr r3, [r3, #0]
  87252. 8023676: 2b00 cmp r3, #0
  87253. 8023678: d018 beq.n 80236ac <etharp_find_entry+0x220>
  87254. 802367a: 4b3a ldr r3, [pc, #232] @ (8023764 <etharp_find_entry+0x2d8>)
  87255. 802367c: f240 126d movw r2, #365 @ 0x16d
  87256. 8023680: 493b ldr r1, [pc, #236] @ (8023770 <etharp_find_entry+0x2e4>)
  87257. 8023682: 483a ldr r0, [pc, #232] @ (802376c <etharp_find_entry+0x2e0>)
  87258. 8023684: f005 ff42 bl 802950c <iprintf>
  87259. 8023688: e010 b.n 80236ac <etharp_find_entry+0x220>
  87260. /* 3) found recyclable pending entry without queued packets? */
  87261. } else if (old_pending < ARP_TABLE_SIZE) {
  87262. 802368a: f9b7 3020 ldrsh.w r3, [r7, #32]
  87263. 802368e: 2b09 cmp r3, #9
  87264. 8023690: dc02 bgt.n 8023698 <etharp_find_entry+0x20c>
  87265. /* recycle oldest pending */
  87266. i = old_pending;
  87267. 8023692: 8c3b ldrh r3, [r7, #32]
  87268. 8023694: 84fb strh r3, [r7, #38] @ 0x26
  87269. 8023696: e009 b.n 80236ac <etharp_find_entry+0x220>
  87270. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: selecting oldest pending entry %d (without queue)\n", (int)i));
  87271. /* 4) found recyclable pending entry with queued packets? */
  87272. } else if (old_queue < ARP_TABLE_SIZE) {
  87273. 8023698: f9b7 301e ldrsh.w r3, [r7, #30]
  87274. 802369c: 2b09 cmp r3, #9
  87275. 802369e: dc02 bgt.n 80236a6 <etharp_find_entry+0x21a>
  87276. /* recycle oldest pending (queued packets are free in etharp_free_entry) */
  87277. i = old_queue;
  87278. 80236a0: 8bfb ldrh r3, [r7, #30]
  87279. 80236a2: 84fb strh r3, [r7, #38] @ 0x26
  87280. 80236a4: e002 b.n 80236ac <etharp_find_entry+0x220>
  87281. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: selecting oldest pending entry %d, freeing packet queue %p\n", (int)i, (void *)(arp_table[i].q)));
  87282. /* no empty or recyclable entries found */
  87283. } else {
  87284. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: no empty or recyclable entries found\n"));
  87285. return (s16_t)ERR_MEM;
  87286. 80236a6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  87287. 80236aa: e054 b.n 8023756 <etharp_find_entry+0x2ca>
  87288. }
  87289. /* { empty or recyclable entry found } */
  87290. LWIP_ASSERT("i < ARP_TABLE_SIZE", i < ARP_TABLE_SIZE);
  87291. 80236ac: f9b7 3026 ldrsh.w r3, [r7, #38] @ 0x26
  87292. 80236b0: 2b09 cmp r3, #9
  87293. 80236b2: dd06 ble.n 80236c2 <etharp_find_entry+0x236>
  87294. 80236b4: 4b2b ldr r3, [pc, #172] @ (8023764 <etharp_find_entry+0x2d8>)
  87295. 80236b6: f240 127f movw r2, #383 @ 0x17f
  87296. 80236ba: 492e ldr r1, [pc, #184] @ (8023774 <etharp_find_entry+0x2e8>)
  87297. 80236bc: 482b ldr r0, [pc, #172] @ (802376c <etharp_find_entry+0x2e0>)
  87298. 80236be: f005 ff25 bl 802950c <iprintf>
  87299. etharp_free_entry(i);
  87300. 80236c2: f9b7 3026 ldrsh.w r3, [r7, #38] @ 0x26
  87301. 80236c6: 4618 mov r0, r3
  87302. 80236c8: f7ff fdd8 bl 802327c <etharp_free_entry>
  87303. }
  87304. LWIP_ASSERT("i < ARP_TABLE_SIZE", i < ARP_TABLE_SIZE);
  87305. 80236cc: f9b7 3026 ldrsh.w r3, [r7, #38] @ 0x26
  87306. 80236d0: 2b09 cmp r3, #9
  87307. 80236d2: dd06 ble.n 80236e2 <etharp_find_entry+0x256>
  87308. 80236d4: 4b23 ldr r3, [pc, #140] @ (8023764 <etharp_find_entry+0x2d8>)
  87309. 80236d6: f240 1283 movw r2, #387 @ 0x183
  87310. 80236da: 4926 ldr r1, [pc, #152] @ (8023774 <etharp_find_entry+0x2e8>)
  87311. 80236dc: 4823 ldr r0, [pc, #140] @ (802376c <etharp_find_entry+0x2e0>)
  87312. 80236de: f005 ff15 bl 802950c <iprintf>
  87313. LWIP_ASSERT("arp_table[i].state == ETHARP_STATE_EMPTY",
  87314. 80236e2: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  87315. 80236e6: 491e ldr r1, [pc, #120] @ (8023760 <etharp_find_entry+0x2d4>)
  87316. 80236e8: 4613 mov r3, r2
  87317. 80236ea: 005b lsls r3, r3, #1
  87318. 80236ec: 4413 add r3, r2
  87319. 80236ee: 00db lsls r3, r3, #3
  87320. 80236f0: 440b add r3, r1
  87321. 80236f2: 3314 adds r3, #20
  87322. 80236f4: 781b ldrb r3, [r3, #0]
  87323. 80236f6: 2b00 cmp r3, #0
  87324. 80236f8: d006 beq.n 8023708 <etharp_find_entry+0x27c>
  87325. 80236fa: 4b1a ldr r3, [pc, #104] @ (8023764 <etharp_find_entry+0x2d8>)
  87326. 80236fc: f44f 72c2 mov.w r2, #388 @ 0x184
  87327. 8023700: 491d ldr r1, [pc, #116] @ (8023778 <etharp_find_entry+0x2ec>)
  87328. 8023702: 481a ldr r0, [pc, #104] @ (802376c <etharp_find_entry+0x2e0>)
  87329. 8023704: f005 ff02 bl 802950c <iprintf>
  87330. arp_table[i].state == ETHARP_STATE_EMPTY);
  87331. /* IP address given? */
  87332. if (ipaddr != NULL) {
  87333. 8023708: 68fb ldr r3, [r7, #12]
  87334. 802370a: 2b00 cmp r3, #0
  87335. 802370c: d00b beq.n 8023726 <etharp_find_entry+0x29a>
  87336. /* set IP address */
  87337. ip4_addr_copy(arp_table[i].ipaddr, *ipaddr);
  87338. 802370e: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  87339. 8023712: 68fb ldr r3, [r7, #12]
  87340. 8023714: 6819 ldr r1, [r3, #0]
  87341. 8023716: 4812 ldr r0, [pc, #72] @ (8023760 <etharp_find_entry+0x2d4>)
  87342. 8023718: 4613 mov r3, r2
  87343. 802371a: 005b lsls r3, r3, #1
  87344. 802371c: 4413 add r3, r2
  87345. 802371e: 00db lsls r3, r3, #3
  87346. 8023720: 4403 add r3, r0
  87347. 8023722: 3304 adds r3, #4
  87348. 8023724: 6019 str r1, [r3, #0]
  87349. }
  87350. arp_table[i].ctime = 0;
  87351. 8023726: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  87352. 802372a: 490d ldr r1, [pc, #52] @ (8023760 <etharp_find_entry+0x2d4>)
  87353. 802372c: 4613 mov r3, r2
  87354. 802372e: 005b lsls r3, r3, #1
  87355. 8023730: 4413 add r3, r2
  87356. 8023732: 00db lsls r3, r3, #3
  87357. 8023734: 440b add r3, r1
  87358. 8023736: 3312 adds r3, #18
  87359. 8023738: 2200 movs r2, #0
  87360. 802373a: 801a strh r2, [r3, #0]
  87361. #if ETHARP_TABLE_MATCH_NETIF
  87362. arp_table[i].netif = netif;
  87363. 802373c: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  87364. 8023740: 4907 ldr r1, [pc, #28] @ (8023760 <etharp_find_entry+0x2d4>)
  87365. 8023742: 4613 mov r3, r2
  87366. 8023744: 005b lsls r3, r3, #1
  87367. 8023746: 4413 add r3, r2
  87368. 8023748: 00db lsls r3, r3, #3
  87369. 802374a: 440b add r3, r1
  87370. 802374c: 3308 adds r3, #8
  87371. 802374e: 687a ldr r2, [r7, #4]
  87372. 8023750: 601a str r2, [r3, #0]
  87373. #endif /* ETHARP_TABLE_MATCH_NETIF */
  87374. return (s16_t)i;
  87375. 8023752: f9b7 3026 ldrsh.w r3, [r7, #38] @ 0x26
  87376. }
  87377. 8023756: 4618 mov r0, r3
  87378. 8023758: 3728 adds r7, #40 @ 0x28
  87379. 802375a: 46bd mov sp, r7
  87380. 802375c: bd80 pop {r7, pc}
  87381. 802375e: bf00 nop
  87382. 8023760: 2402a084 .word 0x2402a084
  87383. 8023764: 0802fd88 .word 0x0802fd88
  87384. 8023768: 0802fdc0 .word 0x0802fdc0
  87385. 802376c: 0802fe00 .word 0x0802fe00
  87386. 8023770: 0802fe28 .word 0x0802fe28
  87387. 8023774: 0802fe40 .word 0x0802fe40
  87388. 8023778: 0802fe54 .word 0x0802fe54
  87389. 0802377c <etharp_update_arp_entry>:
  87390. *
  87391. * @see pbuf_free()
  87392. */
  87393. static err_t
  87394. etharp_update_arp_entry(struct netif *netif, const ip4_addr_t *ipaddr, struct eth_addr *ethaddr, u8_t flags)
  87395. {
  87396. 802377c: b580 push {r7, lr}
  87397. 802377e: b088 sub sp, #32
  87398. 8023780: af02 add r7, sp, #8
  87399. 8023782: 60f8 str r0, [r7, #12]
  87400. 8023784: 60b9 str r1, [r7, #8]
  87401. 8023786: 607a str r2, [r7, #4]
  87402. 8023788: 70fb strb r3, [r7, #3]
  87403. s16_t i;
  87404. LWIP_ASSERT("netif->hwaddr_len == ETH_HWADDR_LEN", netif->hwaddr_len == ETH_HWADDR_LEN);
  87405. 802378a: 68fb ldr r3, [r7, #12]
  87406. 802378c: f893 3030 ldrb.w r3, [r3, #48] @ 0x30
  87407. 8023790: 2b06 cmp r3, #6
  87408. 8023792: d006 beq.n 80237a2 <etharp_update_arp_entry+0x26>
  87409. 8023794: 4b48 ldr r3, [pc, #288] @ (80238b8 <etharp_update_arp_entry+0x13c>)
  87410. 8023796: f240 12a9 movw r2, #425 @ 0x1a9
  87411. 802379a: 4948 ldr r1, [pc, #288] @ (80238bc <etharp_update_arp_entry+0x140>)
  87412. 802379c: 4848 ldr r0, [pc, #288] @ (80238c0 <etharp_update_arp_entry+0x144>)
  87413. 802379e: f005 feb5 bl 802950c <iprintf>
  87414. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_update_arp_entry: %"U16_F".%"U16_F".%"U16_F".%"U16_F" - %02"X16_F":%02"X16_F":%02"X16_F":%02"X16_F":%02"X16_F":%02"X16_F"\n",
  87415. ip4_addr1_16(ipaddr), ip4_addr2_16(ipaddr), ip4_addr3_16(ipaddr), ip4_addr4_16(ipaddr),
  87416. (u16_t)ethaddr->addr[0], (u16_t)ethaddr->addr[1], (u16_t)ethaddr->addr[2],
  87417. (u16_t)ethaddr->addr[3], (u16_t)ethaddr->addr[4], (u16_t)ethaddr->addr[5]));
  87418. /* non-unicast address? */
  87419. if (ip4_addr_isany(ipaddr) ||
  87420. 80237a2: 68bb ldr r3, [r7, #8]
  87421. 80237a4: 2b00 cmp r3, #0
  87422. 80237a6: d012 beq.n 80237ce <etharp_update_arp_entry+0x52>
  87423. 80237a8: 68bb ldr r3, [r7, #8]
  87424. 80237aa: 681b ldr r3, [r3, #0]
  87425. 80237ac: 2b00 cmp r3, #0
  87426. 80237ae: d00e beq.n 80237ce <etharp_update_arp_entry+0x52>
  87427. ip4_addr_isbroadcast(ipaddr, netif) ||
  87428. 80237b0: 68bb ldr r3, [r7, #8]
  87429. 80237b2: 681b ldr r3, [r3, #0]
  87430. 80237b4: 68f9 ldr r1, [r7, #12]
  87431. 80237b6: 4618 mov r0, r3
  87432. 80237b8: f001 f952 bl 8024a60 <ip4_addr_isbroadcast_u32>
  87433. 80237bc: 4603 mov r3, r0
  87434. if (ip4_addr_isany(ipaddr) ||
  87435. 80237be: 2b00 cmp r3, #0
  87436. 80237c0: d105 bne.n 80237ce <etharp_update_arp_entry+0x52>
  87437. ip4_addr_ismulticast(ipaddr)) {
  87438. 80237c2: 68bb ldr r3, [r7, #8]
  87439. 80237c4: 681b ldr r3, [r3, #0]
  87440. 80237c6: f003 03f0 and.w r3, r3, #240 @ 0xf0
  87441. ip4_addr_isbroadcast(ipaddr, netif) ||
  87442. 80237ca: 2be0 cmp r3, #224 @ 0xe0
  87443. 80237cc: d102 bne.n 80237d4 <etharp_update_arp_entry+0x58>
  87444. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_update_arp_entry: will not add non-unicast IP address to ARP cache\n"));
  87445. return ERR_ARG;
  87446. 80237ce: f06f 030f mvn.w r3, #15
  87447. 80237d2: e06c b.n 80238ae <etharp_update_arp_entry+0x132>
  87448. }
  87449. /* find or create ARP entry */
  87450. i = etharp_find_entry(ipaddr, flags, netif);
  87451. 80237d4: 78fb ldrb r3, [r7, #3]
  87452. 80237d6: 68fa ldr r2, [r7, #12]
  87453. 80237d8: 4619 mov r1, r3
  87454. 80237da: 68b8 ldr r0, [r7, #8]
  87455. 80237dc: f7ff fe56 bl 802348c <etharp_find_entry>
  87456. 80237e0: 4603 mov r3, r0
  87457. 80237e2: 82fb strh r3, [r7, #22]
  87458. /* bail out if no entry could be found */
  87459. if (i < 0) {
  87460. 80237e4: f9b7 3016 ldrsh.w r3, [r7, #22]
  87461. 80237e8: 2b00 cmp r3, #0
  87462. 80237ea: da02 bge.n 80237f2 <etharp_update_arp_entry+0x76>
  87463. return (err_t)i;
  87464. 80237ec: 8afb ldrh r3, [r7, #22]
  87465. 80237ee: b25b sxtb r3, r3
  87466. 80237f0: e05d b.n 80238ae <etharp_update_arp_entry+0x132>
  87467. return ERR_VAL;
  87468. } else
  87469. #endif /* ETHARP_SUPPORT_STATIC_ENTRIES */
  87470. {
  87471. /* mark it stable */
  87472. arp_table[i].state = ETHARP_STATE_STABLE;
  87473. 80237f2: f9b7 2016 ldrsh.w r2, [r7, #22]
  87474. 80237f6: 4933 ldr r1, [pc, #204] @ (80238c4 <etharp_update_arp_entry+0x148>)
  87475. 80237f8: 4613 mov r3, r2
  87476. 80237fa: 005b lsls r3, r3, #1
  87477. 80237fc: 4413 add r3, r2
  87478. 80237fe: 00db lsls r3, r3, #3
  87479. 8023800: 440b add r3, r1
  87480. 8023802: 3314 adds r3, #20
  87481. 8023804: 2202 movs r2, #2
  87482. 8023806: 701a strb r2, [r3, #0]
  87483. }
  87484. /* record network interface */
  87485. arp_table[i].netif = netif;
  87486. 8023808: f9b7 2016 ldrsh.w r2, [r7, #22]
  87487. 802380c: 492d ldr r1, [pc, #180] @ (80238c4 <etharp_update_arp_entry+0x148>)
  87488. 802380e: 4613 mov r3, r2
  87489. 8023810: 005b lsls r3, r3, #1
  87490. 8023812: 4413 add r3, r2
  87491. 8023814: 00db lsls r3, r3, #3
  87492. 8023816: 440b add r3, r1
  87493. 8023818: 3308 adds r3, #8
  87494. 802381a: 68fa ldr r2, [r7, #12]
  87495. 802381c: 601a str r2, [r3, #0]
  87496. /* insert in SNMP ARP index tree */
  87497. mib2_add_arp_entry(netif, &arp_table[i].ipaddr);
  87498. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_update_arp_entry: updating stable entry %"S16_F"\n", i));
  87499. /* update address */
  87500. SMEMCPY(&arp_table[i].ethaddr, ethaddr, ETH_HWADDR_LEN);
  87501. 802381e: f9b7 2016 ldrsh.w r2, [r7, #22]
  87502. 8023822: 4613 mov r3, r2
  87503. 8023824: 005b lsls r3, r3, #1
  87504. 8023826: 4413 add r3, r2
  87505. 8023828: 00db lsls r3, r3, #3
  87506. 802382a: 3308 adds r3, #8
  87507. 802382c: 4a25 ldr r2, [pc, #148] @ (80238c4 <etharp_update_arp_entry+0x148>)
  87508. 802382e: 4413 add r3, r2
  87509. 8023830: 3304 adds r3, #4
  87510. 8023832: 2206 movs r2, #6
  87511. 8023834: 6879 ldr r1, [r7, #4]
  87512. 8023836: 4618 mov r0, r3
  87513. 8023838: f006 f8f1 bl 8029a1e <memcpy>
  87514. /* reset time stamp */
  87515. arp_table[i].ctime = 0;
  87516. 802383c: f9b7 2016 ldrsh.w r2, [r7, #22]
  87517. 8023840: 4920 ldr r1, [pc, #128] @ (80238c4 <etharp_update_arp_entry+0x148>)
  87518. 8023842: 4613 mov r3, r2
  87519. 8023844: 005b lsls r3, r3, #1
  87520. 8023846: 4413 add r3, r2
  87521. 8023848: 00db lsls r3, r3, #3
  87522. 802384a: 440b add r3, r1
  87523. 802384c: 3312 adds r3, #18
  87524. 802384e: 2200 movs r2, #0
  87525. 8023850: 801a strh r2, [r3, #0]
  87526. /* get the packet pointer */
  87527. p = q->p;
  87528. /* now queue entry can be freed */
  87529. memp_free(MEMP_ARP_QUEUE, q);
  87530. #else /* ARP_QUEUEING */
  87531. if (arp_table[i].q != NULL) {
  87532. 8023852: f9b7 2016 ldrsh.w r2, [r7, #22]
  87533. 8023856: 491b ldr r1, [pc, #108] @ (80238c4 <etharp_update_arp_entry+0x148>)
  87534. 8023858: 4613 mov r3, r2
  87535. 802385a: 005b lsls r3, r3, #1
  87536. 802385c: 4413 add r3, r2
  87537. 802385e: 00db lsls r3, r3, #3
  87538. 8023860: 440b add r3, r1
  87539. 8023862: 681b ldr r3, [r3, #0]
  87540. 8023864: 2b00 cmp r3, #0
  87541. 8023866: d021 beq.n 80238ac <etharp_update_arp_entry+0x130>
  87542. struct pbuf *p = arp_table[i].q;
  87543. 8023868: f9b7 2016 ldrsh.w r2, [r7, #22]
  87544. 802386c: 4915 ldr r1, [pc, #84] @ (80238c4 <etharp_update_arp_entry+0x148>)
  87545. 802386e: 4613 mov r3, r2
  87546. 8023870: 005b lsls r3, r3, #1
  87547. 8023872: 4413 add r3, r2
  87548. 8023874: 00db lsls r3, r3, #3
  87549. 8023876: 440b add r3, r1
  87550. 8023878: 681b ldr r3, [r3, #0]
  87551. 802387a: 613b str r3, [r7, #16]
  87552. arp_table[i].q = NULL;
  87553. 802387c: f9b7 2016 ldrsh.w r2, [r7, #22]
  87554. 8023880: 4910 ldr r1, [pc, #64] @ (80238c4 <etharp_update_arp_entry+0x148>)
  87555. 8023882: 4613 mov r3, r2
  87556. 8023884: 005b lsls r3, r3, #1
  87557. 8023886: 4413 add r3, r2
  87558. 8023888: 00db lsls r3, r3, #3
  87559. 802388a: 440b add r3, r1
  87560. 802388c: 2200 movs r2, #0
  87561. 802388e: 601a str r2, [r3, #0]
  87562. #endif /* ARP_QUEUEING */
  87563. /* send the queued IP packet */
  87564. ethernet_output(netif, p, (struct eth_addr *)(netif->hwaddr), ethaddr, ETHTYPE_IP);
  87565. 8023890: 68fb ldr r3, [r7, #12]
  87566. 8023892: f103 022a add.w r2, r3, #42 @ 0x2a
  87567. 8023896: f44f 6300 mov.w r3, #2048 @ 0x800
  87568. 802389a: 9300 str r3, [sp, #0]
  87569. 802389c: 687b ldr r3, [r7, #4]
  87570. 802389e: 6939 ldr r1, [r7, #16]
  87571. 80238a0: 68f8 ldr r0, [r7, #12]
  87572. 80238a2: f002 f9bb bl 8025c1c <ethernet_output>
  87573. /* free the queued IP packet */
  87574. pbuf_free(p);
  87575. 80238a6: 6938 ldr r0, [r7, #16]
  87576. 80238a8: f7f6 fbb8 bl 801a01c <pbuf_free>
  87577. }
  87578. return ERR_OK;
  87579. 80238ac: 2300 movs r3, #0
  87580. }
  87581. 80238ae: 4618 mov r0, r3
  87582. 80238b0: 3718 adds r7, #24
  87583. 80238b2: 46bd mov sp, r7
  87584. 80238b4: bd80 pop {r7, pc}
  87585. 80238b6: bf00 nop
  87586. 80238b8: 0802fd88 .word 0x0802fd88
  87587. 80238bc: 0802fe80 .word 0x0802fe80
  87588. 80238c0: 0802fe00 .word 0x0802fe00
  87589. 80238c4: 2402a084 .word 0x2402a084
  87590. 080238c8 <etharp_cleanup_netif>:
  87591. *
  87592. * @param netif points to a network interface
  87593. */
  87594. void
  87595. etharp_cleanup_netif(struct netif *netif)
  87596. {
  87597. 80238c8: b580 push {r7, lr}
  87598. 80238ca: b084 sub sp, #16
  87599. 80238cc: af00 add r7, sp, #0
  87600. 80238ce: 6078 str r0, [r7, #4]
  87601. int i;
  87602. for (i = 0; i < ARP_TABLE_SIZE; ++i) {
  87603. 80238d0: 2300 movs r3, #0
  87604. 80238d2: 60fb str r3, [r7, #12]
  87605. 80238d4: e01e b.n 8023914 <etharp_cleanup_netif+0x4c>
  87606. u8_t state = arp_table[i].state;
  87607. 80238d6: 4913 ldr r1, [pc, #76] @ (8023924 <etharp_cleanup_netif+0x5c>)
  87608. 80238d8: 68fa ldr r2, [r7, #12]
  87609. 80238da: 4613 mov r3, r2
  87610. 80238dc: 005b lsls r3, r3, #1
  87611. 80238de: 4413 add r3, r2
  87612. 80238e0: 00db lsls r3, r3, #3
  87613. 80238e2: 440b add r3, r1
  87614. 80238e4: 3314 adds r3, #20
  87615. 80238e6: 781b ldrb r3, [r3, #0]
  87616. 80238e8: 72fb strb r3, [r7, #11]
  87617. if ((state != ETHARP_STATE_EMPTY) && (arp_table[i].netif == netif)) {
  87618. 80238ea: 7afb ldrb r3, [r7, #11]
  87619. 80238ec: 2b00 cmp r3, #0
  87620. 80238ee: d00e beq.n 802390e <etharp_cleanup_netif+0x46>
  87621. 80238f0: 490c ldr r1, [pc, #48] @ (8023924 <etharp_cleanup_netif+0x5c>)
  87622. 80238f2: 68fa ldr r2, [r7, #12]
  87623. 80238f4: 4613 mov r3, r2
  87624. 80238f6: 005b lsls r3, r3, #1
  87625. 80238f8: 4413 add r3, r2
  87626. 80238fa: 00db lsls r3, r3, #3
  87627. 80238fc: 440b add r3, r1
  87628. 80238fe: 3308 adds r3, #8
  87629. 8023900: 681b ldr r3, [r3, #0]
  87630. 8023902: 687a ldr r2, [r7, #4]
  87631. 8023904: 429a cmp r2, r3
  87632. 8023906: d102 bne.n 802390e <etharp_cleanup_netif+0x46>
  87633. etharp_free_entry(i);
  87634. 8023908: 68f8 ldr r0, [r7, #12]
  87635. 802390a: f7ff fcb7 bl 802327c <etharp_free_entry>
  87636. for (i = 0; i < ARP_TABLE_SIZE; ++i) {
  87637. 802390e: 68fb ldr r3, [r7, #12]
  87638. 8023910: 3301 adds r3, #1
  87639. 8023912: 60fb str r3, [r7, #12]
  87640. 8023914: 68fb ldr r3, [r7, #12]
  87641. 8023916: 2b09 cmp r3, #9
  87642. 8023918: dddd ble.n 80238d6 <etharp_cleanup_netif+0xe>
  87643. }
  87644. }
  87645. }
  87646. 802391a: bf00 nop
  87647. 802391c: bf00 nop
  87648. 802391e: 3710 adds r7, #16
  87649. 8023920: 46bd mov sp, r7
  87650. 8023922: bd80 pop {r7, pc}
  87651. 8023924: 2402a084 .word 0x2402a084
  87652. 08023928 <etharp_input>:
  87653. *
  87654. * @see pbuf_free()
  87655. */
  87656. void
  87657. etharp_input(struct pbuf *p, struct netif *netif)
  87658. {
  87659. 8023928: b5b0 push {r4, r5, r7, lr}
  87660. 802392a: b08a sub sp, #40 @ 0x28
  87661. 802392c: af04 add r7, sp, #16
  87662. 802392e: 6078 str r0, [r7, #4]
  87663. 8023930: 6039 str r1, [r7, #0]
  87664. struct etharp_hdr *hdr;
  87665. /* these are aligned properly, whereas the ARP header fields might not be */
  87666. ip4_addr_t sipaddr, dipaddr;
  87667. u8_t for_us;
  87668. LWIP_ASSERT_CORE_LOCKED();
  87669. 8023932: f7ec fb9d bl 8010070 <sys_check_core_locking>
  87670. LWIP_ERROR("netif != NULL", (netif != NULL), return;);
  87671. 8023936: 683b ldr r3, [r7, #0]
  87672. 8023938: 2b00 cmp r3, #0
  87673. 802393a: d107 bne.n 802394c <etharp_input+0x24>
  87674. 802393c: 4b3f ldr r3, [pc, #252] @ (8023a3c <etharp_input+0x114>)
  87675. 802393e: f240 228a movw r2, #650 @ 0x28a
  87676. 8023942: 493f ldr r1, [pc, #252] @ (8023a40 <etharp_input+0x118>)
  87677. 8023944: 483f ldr r0, [pc, #252] @ (8023a44 <etharp_input+0x11c>)
  87678. 8023946: f005 fde1 bl 802950c <iprintf>
  87679. 802394a: e074 b.n 8023a36 <etharp_input+0x10e>
  87680. hdr = (struct etharp_hdr *)p->payload;
  87681. 802394c: 687b ldr r3, [r7, #4]
  87682. 802394e: 685b ldr r3, [r3, #4]
  87683. 8023950: 617b str r3, [r7, #20]
  87684. /* RFC 826 "Packet Reception": */
  87685. if ((hdr->hwtype != PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET)) ||
  87686. 8023952: 697b ldr r3, [r7, #20]
  87687. 8023954: 881b ldrh r3, [r3, #0]
  87688. 8023956: b29b uxth r3, r3
  87689. 8023958: f5b3 7f80 cmp.w r3, #256 @ 0x100
  87690. 802395c: d10c bne.n 8023978 <etharp_input+0x50>
  87691. (hdr->hwlen != ETH_HWADDR_LEN) ||
  87692. 802395e: 697b ldr r3, [r7, #20]
  87693. 8023960: 791b ldrb r3, [r3, #4]
  87694. if ((hdr->hwtype != PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET)) ||
  87695. 8023962: 2b06 cmp r3, #6
  87696. 8023964: d108 bne.n 8023978 <etharp_input+0x50>
  87697. (hdr->protolen != sizeof(ip4_addr_t)) ||
  87698. 8023966: 697b ldr r3, [r7, #20]
  87699. 8023968: 795b ldrb r3, [r3, #5]
  87700. (hdr->hwlen != ETH_HWADDR_LEN) ||
  87701. 802396a: 2b04 cmp r3, #4
  87702. 802396c: d104 bne.n 8023978 <etharp_input+0x50>
  87703. (hdr->proto != PP_HTONS(ETHTYPE_IP))) {
  87704. 802396e: 697b ldr r3, [r7, #20]
  87705. 8023970: 885b ldrh r3, [r3, #2]
  87706. 8023972: b29b uxth r3, r3
  87707. (hdr->protolen != sizeof(ip4_addr_t)) ||
  87708. 8023974: 2b08 cmp r3, #8
  87709. 8023976: d003 beq.n 8023980 <etharp_input+0x58>
  87710. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING,
  87711. ("etharp_input: packet dropped, wrong hw type, hwlen, proto, protolen or ethernet type (%"U16_F"/%"U16_F"/%"U16_F"/%"U16_F")\n",
  87712. hdr->hwtype, (u16_t)hdr->hwlen, hdr->proto, (u16_t)hdr->protolen));
  87713. ETHARP_STATS_INC(etharp.proterr);
  87714. ETHARP_STATS_INC(etharp.drop);
  87715. pbuf_free(p);
  87716. 8023978: 6878 ldr r0, [r7, #4]
  87717. 802397a: f7f6 fb4f bl 801a01c <pbuf_free>
  87718. return;
  87719. 802397e: e05a b.n 8023a36 <etharp_input+0x10e>
  87720. autoip_arp_reply(netif, hdr);
  87721. #endif /* LWIP_AUTOIP */
  87722. /* Copy struct ip4_addr_wordaligned to aligned ip4_addr, to support compilers without
  87723. * structure packing (not using structure copy which breaks strict-aliasing rules). */
  87724. IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T(&sipaddr, &hdr->sipaddr);
  87725. 8023980: 697b ldr r3, [r7, #20]
  87726. 8023982: 330e adds r3, #14
  87727. 8023984: 681b ldr r3, [r3, #0]
  87728. 8023986: 60fb str r3, [r7, #12]
  87729. IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T(&dipaddr, &hdr->dipaddr);
  87730. 8023988: 697b ldr r3, [r7, #20]
  87731. 802398a: 3318 adds r3, #24
  87732. 802398c: 681b ldr r3, [r3, #0]
  87733. 802398e: 60bb str r3, [r7, #8]
  87734. /* this interface is not configured? */
  87735. if (ip4_addr_isany_val(*netif_ip4_addr(netif))) {
  87736. 8023990: 683b ldr r3, [r7, #0]
  87737. 8023992: 3304 adds r3, #4
  87738. 8023994: 681b ldr r3, [r3, #0]
  87739. 8023996: 2b00 cmp r3, #0
  87740. 8023998: d102 bne.n 80239a0 <etharp_input+0x78>
  87741. for_us = 0;
  87742. 802399a: 2300 movs r3, #0
  87743. 802399c: 74fb strb r3, [r7, #19]
  87744. 802399e: e009 b.n 80239b4 <etharp_input+0x8c>
  87745. } else {
  87746. /* ARP packet directed to us? */
  87747. for_us = (u8_t)ip4_addr_cmp(&dipaddr, netif_ip4_addr(netif));
  87748. 80239a0: 68ba ldr r2, [r7, #8]
  87749. 80239a2: 683b ldr r3, [r7, #0]
  87750. 80239a4: 3304 adds r3, #4
  87751. 80239a6: 681b ldr r3, [r3, #0]
  87752. 80239a8: 429a cmp r2, r3
  87753. 80239aa: bf0c ite eq
  87754. 80239ac: 2301 moveq r3, #1
  87755. 80239ae: 2300 movne r3, #0
  87756. 80239b0: b2db uxtb r3, r3
  87757. 80239b2: 74fb strb r3, [r7, #19]
  87758. /* ARP message directed to us?
  87759. -> add IP address in ARP cache; assume requester wants to talk to us,
  87760. can result in directly sending the queued packets for this host.
  87761. ARP message not directed to us?
  87762. -> update the source IP address in the cache, if present */
  87763. etharp_update_arp_entry(netif, &sipaddr, &(hdr->shwaddr),
  87764. 80239b4: 697b ldr r3, [r7, #20]
  87765. 80239b6: f103 0208 add.w r2, r3, #8
  87766. 80239ba: 7cfb ldrb r3, [r7, #19]
  87767. 80239bc: 2b00 cmp r3, #0
  87768. 80239be: d001 beq.n 80239c4 <etharp_input+0x9c>
  87769. 80239c0: 2301 movs r3, #1
  87770. 80239c2: e000 b.n 80239c6 <etharp_input+0x9e>
  87771. 80239c4: 2302 movs r3, #2
  87772. 80239c6: f107 010c add.w r1, r7, #12
  87773. 80239ca: 6838 ldr r0, [r7, #0]
  87774. 80239cc: f7ff fed6 bl 802377c <etharp_update_arp_entry>
  87775. for_us ? ETHARP_FLAG_TRY_HARD : ETHARP_FLAG_FIND_ONLY);
  87776. /* now act on the message itself */
  87777. switch (hdr->opcode) {
  87778. 80239d0: 697b ldr r3, [r7, #20]
  87779. 80239d2: 88db ldrh r3, [r3, #6]
  87780. 80239d4: b29b uxth r3, r3
  87781. 80239d6: f5b3 7f80 cmp.w r3, #256 @ 0x100
  87782. 80239da: d003 beq.n 80239e4 <etharp_input+0xbc>
  87783. 80239dc: f5b3 7f00 cmp.w r3, #512 @ 0x200
  87784. 80239e0: d01e beq.n 8023a20 <etharp_input+0xf8>
  87785. #endif /* (LWIP_DHCP && DHCP_DOES_ARP_CHECK) */
  87786. break;
  87787. default:
  87788. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_input: ARP unknown opcode type %"S16_F"\n", lwip_htons(hdr->opcode)));
  87789. ETHARP_STATS_INC(etharp.err);
  87790. break;
  87791. 80239e2: e025 b.n 8023a30 <etharp_input+0x108>
  87792. if (for_us) {
  87793. 80239e4: 7cfb ldrb r3, [r7, #19]
  87794. 80239e6: 2b00 cmp r3, #0
  87795. 80239e8: d021 beq.n 8023a2e <etharp_input+0x106>
  87796. (struct eth_addr *)netif->hwaddr, &hdr->shwaddr,
  87797. 80239ea: 683b ldr r3, [r7, #0]
  87798. 80239ec: f103 002a add.w r0, r3, #42 @ 0x2a
  87799. 80239f0: 697b ldr r3, [r7, #20]
  87800. 80239f2: f103 0408 add.w r4, r3, #8
  87801. (struct eth_addr *)netif->hwaddr, netif_ip4_addr(netif),
  87802. 80239f6: 683b ldr r3, [r7, #0]
  87803. 80239f8: f103 052a add.w r5, r3, #42 @ 0x2a
  87804. 80239fc: 683b ldr r3, [r7, #0]
  87805. 80239fe: 3304 adds r3, #4
  87806. &hdr->shwaddr, &sipaddr,
  87807. 8023a00: 697a ldr r2, [r7, #20]
  87808. 8023a02: 3208 adds r2, #8
  87809. etharp_raw(netif,
  87810. 8023a04: 2102 movs r1, #2
  87811. 8023a06: 9103 str r1, [sp, #12]
  87812. 8023a08: f107 010c add.w r1, r7, #12
  87813. 8023a0c: 9102 str r1, [sp, #8]
  87814. 8023a0e: 9201 str r2, [sp, #4]
  87815. 8023a10: 9300 str r3, [sp, #0]
  87816. 8023a12: 462b mov r3, r5
  87817. 8023a14: 4622 mov r2, r4
  87818. 8023a16: 4601 mov r1, r0
  87819. 8023a18: 6838 ldr r0, [r7, #0]
  87820. 8023a1a: f000 faf1 bl 8024000 <etharp_raw>
  87821. break;
  87822. 8023a1e: e006 b.n 8023a2e <etharp_input+0x106>
  87823. dhcp_arp_reply(netif, &sipaddr);
  87824. 8023a20: f107 030c add.w r3, r7, #12
  87825. 8023a24: 4619 mov r1, r3
  87826. 8023a26: 6838 ldr r0, [r7, #0]
  87827. 8023a28: f7fe f9b6 bl 8021d98 <dhcp_arp_reply>
  87828. break;
  87829. 8023a2c: e000 b.n 8023a30 <etharp_input+0x108>
  87830. break;
  87831. 8023a2e: bf00 nop
  87832. }
  87833. /* free ARP packet */
  87834. pbuf_free(p);
  87835. 8023a30: 6878 ldr r0, [r7, #4]
  87836. 8023a32: f7f6 faf3 bl 801a01c <pbuf_free>
  87837. }
  87838. 8023a36: 3718 adds r7, #24
  87839. 8023a38: 46bd mov sp, r7
  87840. 8023a3a: bdb0 pop {r4, r5, r7, pc}
  87841. 8023a3c: 0802fd88 .word 0x0802fd88
  87842. 8023a40: 0802fed8 .word 0x0802fed8
  87843. 8023a44: 0802fe00 .word 0x0802fe00
  87844. 08023a48 <etharp_output_to_arp_index>:
  87845. /** Just a small helper function that sends a pbuf to an ethernet address
  87846. * in the arp_table specified by the index 'arp_idx'.
  87847. */
  87848. static err_t
  87849. etharp_output_to_arp_index(struct netif *netif, struct pbuf *q, netif_addr_idx_t arp_idx)
  87850. {
  87851. 8023a48: b580 push {r7, lr}
  87852. 8023a4a: b086 sub sp, #24
  87853. 8023a4c: af02 add r7, sp, #8
  87854. 8023a4e: 60f8 str r0, [r7, #12]
  87855. 8023a50: 60b9 str r1, [r7, #8]
  87856. 8023a52: 4613 mov r3, r2
  87857. 8023a54: 71fb strb r3, [r7, #7]
  87858. LWIP_ASSERT("arp_table[arp_idx].state >= ETHARP_STATE_STABLE",
  87859. 8023a56: 79fa ldrb r2, [r7, #7]
  87860. 8023a58: 4944 ldr r1, [pc, #272] @ (8023b6c <etharp_output_to_arp_index+0x124>)
  87861. 8023a5a: 4613 mov r3, r2
  87862. 8023a5c: 005b lsls r3, r3, #1
  87863. 8023a5e: 4413 add r3, r2
  87864. 8023a60: 00db lsls r3, r3, #3
  87865. 8023a62: 440b add r3, r1
  87866. 8023a64: 3314 adds r3, #20
  87867. 8023a66: 781b ldrb r3, [r3, #0]
  87868. 8023a68: 2b01 cmp r3, #1
  87869. 8023a6a: d806 bhi.n 8023a7a <etharp_output_to_arp_index+0x32>
  87870. 8023a6c: 4b40 ldr r3, [pc, #256] @ (8023b70 <etharp_output_to_arp_index+0x128>)
  87871. 8023a6e: f240 22ee movw r2, #750 @ 0x2ee
  87872. 8023a72: 4940 ldr r1, [pc, #256] @ (8023b74 <etharp_output_to_arp_index+0x12c>)
  87873. 8023a74: 4840 ldr r0, [pc, #256] @ (8023b78 <etharp_output_to_arp_index+0x130>)
  87874. 8023a76: f005 fd49 bl 802950c <iprintf>
  87875. arp_table[arp_idx].state >= ETHARP_STATE_STABLE);
  87876. /* if arp table entry is about to expire: re-request it,
  87877. but only if its state is ETHARP_STATE_STABLE to prevent flooding the
  87878. network with ARP requests if this address is used frequently. */
  87879. if (arp_table[arp_idx].state == ETHARP_STATE_STABLE) {
  87880. 8023a7a: 79fa ldrb r2, [r7, #7]
  87881. 8023a7c: 493b ldr r1, [pc, #236] @ (8023b6c <etharp_output_to_arp_index+0x124>)
  87882. 8023a7e: 4613 mov r3, r2
  87883. 8023a80: 005b lsls r3, r3, #1
  87884. 8023a82: 4413 add r3, r2
  87885. 8023a84: 00db lsls r3, r3, #3
  87886. 8023a86: 440b add r3, r1
  87887. 8023a88: 3314 adds r3, #20
  87888. 8023a8a: 781b ldrb r3, [r3, #0]
  87889. 8023a8c: 2b02 cmp r3, #2
  87890. 8023a8e: d153 bne.n 8023b38 <etharp_output_to_arp_index+0xf0>
  87891. if (arp_table[arp_idx].ctime >= ARP_AGE_REREQUEST_USED_BROADCAST) {
  87892. 8023a90: 79fa ldrb r2, [r7, #7]
  87893. 8023a92: 4936 ldr r1, [pc, #216] @ (8023b6c <etharp_output_to_arp_index+0x124>)
  87894. 8023a94: 4613 mov r3, r2
  87895. 8023a96: 005b lsls r3, r3, #1
  87896. 8023a98: 4413 add r3, r2
  87897. 8023a9a: 00db lsls r3, r3, #3
  87898. 8023a9c: 440b add r3, r1
  87899. 8023a9e: 3312 adds r3, #18
  87900. 8023aa0: 881b ldrh r3, [r3, #0]
  87901. 8023aa2: f5b3 7f8e cmp.w r3, #284 @ 0x11c
  87902. 8023aa6: d919 bls.n 8023adc <etharp_output_to_arp_index+0x94>
  87903. /* issue a standard request using broadcast */
  87904. if (etharp_request(netif, &arp_table[arp_idx].ipaddr) == ERR_OK) {
  87905. 8023aa8: 79fa ldrb r2, [r7, #7]
  87906. 8023aaa: 4613 mov r3, r2
  87907. 8023aac: 005b lsls r3, r3, #1
  87908. 8023aae: 4413 add r3, r2
  87909. 8023ab0: 00db lsls r3, r3, #3
  87910. 8023ab2: 4a2e ldr r2, [pc, #184] @ (8023b6c <etharp_output_to_arp_index+0x124>)
  87911. 8023ab4: 4413 add r3, r2
  87912. 8023ab6: 3304 adds r3, #4
  87913. 8023ab8: 4619 mov r1, r3
  87914. 8023aba: 68f8 ldr r0, [r7, #12]
  87915. 8023abc: f000 fb4e bl 802415c <etharp_request>
  87916. 8023ac0: 4603 mov r3, r0
  87917. 8023ac2: 2b00 cmp r3, #0
  87918. 8023ac4: d138 bne.n 8023b38 <etharp_output_to_arp_index+0xf0>
  87919. arp_table[arp_idx].state = ETHARP_STATE_STABLE_REREQUESTING_1;
  87920. 8023ac6: 79fa ldrb r2, [r7, #7]
  87921. 8023ac8: 4928 ldr r1, [pc, #160] @ (8023b6c <etharp_output_to_arp_index+0x124>)
  87922. 8023aca: 4613 mov r3, r2
  87923. 8023acc: 005b lsls r3, r3, #1
  87924. 8023ace: 4413 add r3, r2
  87925. 8023ad0: 00db lsls r3, r3, #3
  87926. 8023ad2: 440b add r3, r1
  87927. 8023ad4: 3314 adds r3, #20
  87928. 8023ad6: 2203 movs r2, #3
  87929. 8023ad8: 701a strb r2, [r3, #0]
  87930. 8023ada: e02d b.n 8023b38 <etharp_output_to_arp_index+0xf0>
  87931. }
  87932. } else if (arp_table[arp_idx].ctime >= ARP_AGE_REREQUEST_USED_UNICAST) {
  87933. 8023adc: 79fa ldrb r2, [r7, #7]
  87934. 8023ade: 4923 ldr r1, [pc, #140] @ (8023b6c <etharp_output_to_arp_index+0x124>)
  87935. 8023ae0: 4613 mov r3, r2
  87936. 8023ae2: 005b lsls r3, r3, #1
  87937. 8023ae4: 4413 add r3, r2
  87938. 8023ae6: 00db lsls r3, r3, #3
  87939. 8023ae8: 440b add r3, r1
  87940. 8023aea: 3312 adds r3, #18
  87941. 8023aec: 881b ldrh r3, [r3, #0]
  87942. 8023aee: f5b3 7f87 cmp.w r3, #270 @ 0x10e
  87943. 8023af2: d321 bcc.n 8023b38 <etharp_output_to_arp_index+0xf0>
  87944. /* issue a unicast request (for 15 seconds) to prevent unnecessary broadcast */
  87945. if (etharp_request_dst(netif, &arp_table[arp_idx].ipaddr, &arp_table[arp_idx].ethaddr) == ERR_OK) {
  87946. 8023af4: 79fa ldrb r2, [r7, #7]
  87947. 8023af6: 4613 mov r3, r2
  87948. 8023af8: 005b lsls r3, r3, #1
  87949. 8023afa: 4413 add r3, r2
  87950. 8023afc: 00db lsls r3, r3, #3
  87951. 8023afe: 4a1b ldr r2, [pc, #108] @ (8023b6c <etharp_output_to_arp_index+0x124>)
  87952. 8023b00: 4413 add r3, r2
  87953. 8023b02: 1d19 adds r1, r3, #4
  87954. 8023b04: 79fa ldrb r2, [r7, #7]
  87955. 8023b06: 4613 mov r3, r2
  87956. 8023b08: 005b lsls r3, r3, #1
  87957. 8023b0a: 4413 add r3, r2
  87958. 8023b0c: 00db lsls r3, r3, #3
  87959. 8023b0e: 3308 adds r3, #8
  87960. 8023b10: 4a16 ldr r2, [pc, #88] @ (8023b6c <etharp_output_to_arp_index+0x124>)
  87961. 8023b12: 4413 add r3, r2
  87962. 8023b14: 3304 adds r3, #4
  87963. 8023b16: 461a mov r2, r3
  87964. 8023b18: 68f8 ldr r0, [r7, #12]
  87965. 8023b1a: f000 fafd bl 8024118 <etharp_request_dst>
  87966. 8023b1e: 4603 mov r3, r0
  87967. 8023b20: 2b00 cmp r3, #0
  87968. 8023b22: d109 bne.n 8023b38 <etharp_output_to_arp_index+0xf0>
  87969. arp_table[arp_idx].state = ETHARP_STATE_STABLE_REREQUESTING_1;
  87970. 8023b24: 79fa ldrb r2, [r7, #7]
  87971. 8023b26: 4911 ldr r1, [pc, #68] @ (8023b6c <etharp_output_to_arp_index+0x124>)
  87972. 8023b28: 4613 mov r3, r2
  87973. 8023b2a: 005b lsls r3, r3, #1
  87974. 8023b2c: 4413 add r3, r2
  87975. 8023b2e: 00db lsls r3, r3, #3
  87976. 8023b30: 440b add r3, r1
  87977. 8023b32: 3314 adds r3, #20
  87978. 8023b34: 2203 movs r2, #3
  87979. 8023b36: 701a strb r2, [r3, #0]
  87980. }
  87981. }
  87982. }
  87983. return ethernet_output(netif, q, (struct eth_addr *)(netif->hwaddr), &arp_table[arp_idx].ethaddr, ETHTYPE_IP);
  87984. 8023b38: 68fb ldr r3, [r7, #12]
  87985. 8023b3a: f103 012a add.w r1, r3, #42 @ 0x2a
  87986. 8023b3e: 79fa ldrb r2, [r7, #7]
  87987. 8023b40: 4613 mov r3, r2
  87988. 8023b42: 005b lsls r3, r3, #1
  87989. 8023b44: 4413 add r3, r2
  87990. 8023b46: 00db lsls r3, r3, #3
  87991. 8023b48: 3308 adds r3, #8
  87992. 8023b4a: 4a08 ldr r2, [pc, #32] @ (8023b6c <etharp_output_to_arp_index+0x124>)
  87993. 8023b4c: 4413 add r3, r2
  87994. 8023b4e: 3304 adds r3, #4
  87995. 8023b50: f44f 6200 mov.w r2, #2048 @ 0x800
  87996. 8023b54: 9200 str r2, [sp, #0]
  87997. 8023b56: 460a mov r2, r1
  87998. 8023b58: 68b9 ldr r1, [r7, #8]
  87999. 8023b5a: 68f8 ldr r0, [r7, #12]
  88000. 8023b5c: f002 f85e bl 8025c1c <ethernet_output>
  88001. 8023b60: 4603 mov r3, r0
  88002. }
  88003. 8023b62: 4618 mov r0, r3
  88004. 8023b64: 3710 adds r7, #16
  88005. 8023b66: 46bd mov sp, r7
  88006. 8023b68: bd80 pop {r7, pc}
  88007. 8023b6a: bf00 nop
  88008. 8023b6c: 2402a084 .word 0x2402a084
  88009. 8023b70: 0802fd88 .word 0x0802fd88
  88010. 8023b74: 0802fef8 .word 0x0802fef8
  88011. 8023b78: 0802fe00 .word 0x0802fe00
  88012. 08023b7c <etharp_output>:
  88013. * - ERR_RTE No route to destination (no gateway to external networks),
  88014. * or the return type of either etharp_query() or ethernet_output().
  88015. */
  88016. err_t
  88017. etharp_output(struct netif *netif, struct pbuf *q, const ip4_addr_t *ipaddr)
  88018. {
  88019. 8023b7c: b580 push {r7, lr}
  88020. 8023b7e: b08a sub sp, #40 @ 0x28
  88021. 8023b80: af02 add r7, sp, #8
  88022. 8023b82: 60f8 str r0, [r7, #12]
  88023. 8023b84: 60b9 str r1, [r7, #8]
  88024. 8023b86: 607a str r2, [r7, #4]
  88025. const struct eth_addr *dest;
  88026. struct eth_addr mcastaddr;
  88027. const ip4_addr_t *dst_addr = ipaddr;
  88028. 8023b88: 687b ldr r3, [r7, #4]
  88029. 8023b8a: 61bb str r3, [r7, #24]
  88030. LWIP_ASSERT_CORE_LOCKED();
  88031. 8023b8c: f7ec fa70 bl 8010070 <sys_check_core_locking>
  88032. LWIP_ASSERT("netif != NULL", netif != NULL);
  88033. 8023b90: 68fb ldr r3, [r7, #12]
  88034. 8023b92: 2b00 cmp r3, #0
  88035. 8023b94: d106 bne.n 8023ba4 <etharp_output+0x28>
  88036. 8023b96: 4b73 ldr r3, [pc, #460] @ (8023d64 <etharp_output+0x1e8>)
  88037. 8023b98: f240 321e movw r2, #798 @ 0x31e
  88038. 8023b9c: 4972 ldr r1, [pc, #456] @ (8023d68 <etharp_output+0x1ec>)
  88039. 8023b9e: 4873 ldr r0, [pc, #460] @ (8023d6c <etharp_output+0x1f0>)
  88040. 8023ba0: f005 fcb4 bl 802950c <iprintf>
  88041. LWIP_ASSERT("q != NULL", q != NULL);
  88042. 8023ba4: 68bb ldr r3, [r7, #8]
  88043. 8023ba6: 2b00 cmp r3, #0
  88044. 8023ba8: d106 bne.n 8023bb8 <etharp_output+0x3c>
  88045. 8023baa: 4b6e ldr r3, [pc, #440] @ (8023d64 <etharp_output+0x1e8>)
  88046. 8023bac: f240 321f movw r2, #799 @ 0x31f
  88047. 8023bb0: 496f ldr r1, [pc, #444] @ (8023d70 <etharp_output+0x1f4>)
  88048. 8023bb2: 486e ldr r0, [pc, #440] @ (8023d6c <etharp_output+0x1f0>)
  88049. 8023bb4: f005 fcaa bl 802950c <iprintf>
  88050. LWIP_ASSERT("ipaddr != NULL", ipaddr != NULL);
  88051. 8023bb8: 687b ldr r3, [r7, #4]
  88052. 8023bba: 2b00 cmp r3, #0
  88053. 8023bbc: d106 bne.n 8023bcc <etharp_output+0x50>
  88054. 8023bbe: 4b69 ldr r3, [pc, #420] @ (8023d64 <etharp_output+0x1e8>)
  88055. 8023bc0: f44f 7248 mov.w r2, #800 @ 0x320
  88056. 8023bc4: 496b ldr r1, [pc, #428] @ (8023d74 <etharp_output+0x1f8>)
  88057. 8023bc6: 4869 ldr r0, [pc, #420] @ (8023d6c <etharp_output+0x1f0>)
  88058. 8023bc8: f005 fca0 bl 802950c <iprintf>
  88059. /* Determine on destination hardware address. Broadcasts and multicasts
  88060. * are special, other IP addresses are looked up in the ARP table. */
  88061. /* broadcast destination IP address? */
  88062. if (ip4_addr_isbroadcast(ipaddr, netif)) {
  88063. 8023bcc: 687b ldr r3, [r7, #4]
  88064. 8023bce: 681b ldr r3, [r3, #0]
  88065. 8023bd0: 68f9 ldr r1, [r7, #12]
  88066. 8023bd2: 4618 mov r0, r3
  88067. 8023bd4: f000 ff44 bl 8024a60 <ip4_addr_isbroadcast_u32>
  88068. 8023bd8: 4603 mov r3, r0
  88069. 8023bda: 2b00 cmp r3, #0
  88070. 8023bdc: d002 beq.n 8023be4 <etharp_output+0x68>
  88071. /* broadcast on Ethernet also */
  88072. dest = (const struct eth_addr *)&ethbroadcast;
  88073. 8023bde: 4b66 ldr r3, [pc, #408] @ (8023d78 <etharp_output+0x1fc>)
  88074. 8023be0: 61fb str r3, [r7, #28]
  88075. 8023be2: e0af b.n 8023d44 <etharp_output+0x1c8>
  88076. /* multicast destination IP address? */
  88077. } else if (ip4_addr_ismulticast(ipaddr)) {
  88078. 8023be4: 687b ldr r3, [r7, #4]
  88079. 8023be6: 681b ldr r3, [r3, #0]
  88080. 8023be8: f003 03f0 and.w r3, r3, #240 @ 0xf0
  88081. 8023bec: 2be0 cmp r3, #224 @ 0xe0
  88082. 8023bee: d118 bne.n 8023c22 <etharp_output+0xa6>
  88083. /* Hash IP multicast address to MAC address.*/
  88084. mcastaddr.addr[0] = LL_IP4_MULTICAST_ADDR_0;
  88085. 8023bf0: 2301 movs r3, #1
  88086. 8023bf2: 743b strb r3, [r7, #16]
  88087. mcastaddr.addr[1] = LL_IP4_MULTICAST_ADDR_1;
  88088. 8023bf4: 2300 movs r3, #0
  88089. 8023bf6: 747b strb r3, [r7, #17]
  88090. mcastaddr.addr[2] = LL_IP4_MULTICAST_ADDR_2;
  88091. 8023bf8: 235e movs r3, #94 @ 0x5e
  88092. 8023bfa: 74bb strb r3, [r7, #18]
  88093. mcastaddr.addr[3] = ip4_addr2(ipaddr) & 0x7f;
  88094. 8023bfc: 687b ldr r3, [r7, #4]
  88095. 8023bfe: 3301 adds r3, #1
  88096. 8023c00: 781b ldrb r3, [r3, #0]
  88097. 8023c02: f003 037f and.w r3, r3, #127 @ 0x7f
  88098. 8023c06: b2db uxtb r3, r3
  88099. 8023c08: 74fb strb r3, [r7, #19]
  88100. mcastaddr.addr[4] = ip4_addr3(ipaddr);
  88101. 8023c0a: 687b ldr r3, [r7, #4]
  88102. 8023c0c: 3302 adds r3, #2
  88103. 8023c0e: 781b ldrb r3, [r3, #0]
  88104. 8023c10: 753b strb r3, [r7, #20]
  88105. mcastaddr.addr[5] = ip4_addr4(ipaddr);
  88106. 8023c12: 687b ldr r3, [r7, #4]
  88107. 8023c14: 3303 adds r3, #3
  88108. 8023c16: 781b ldrb r3, [r3, #0]
  88109. 8023c18: 757b strb r3, [r7, #21]
  88110. /* destination Ethernet address is multicast */
  88111. dest = &mcastaddr;
  88112. 8023c1a: f107 0310 add.w r3, r7, #16
  88113. 8023c1e: 61fb str r3, [r7, #28]
  88114. 8023c20: e090 b.n 8023d44 <etharp_output+0x1c8>
  88115. /* unicast destination IP address? */
  88116. } else {
  88117. netif_addr_idx_t i;
  88118. /* outside local network? if so, this can neither be a global broadcast nor
  88119. a subnet broadcast. */
  88120. if (!ip4_addr_netcmp(ipaddr, netif_ip4_addr(netif), netif_ip4_netmask(netif)) &&
  88121. 8023c22: 687b ldr r3, [r7, #4]
  88122. 8023c24: 681a ldr r2, [r3, #0]
  88123. 8023c26: 68fb ldr r3, [r7, #12]
  88124. 8023c28: 3304 adds r3, #4
  88125. 8023c2a: 681b ldr r3, [r3, #0]
  88126. 8023c2c: 405a eors r2, r3
  88127. 8023c2e: 68fb ldr r3, [r7, #12]
  88128. 8023c30: 3308 adds r3, #8
  88129. 8023c32: 681b ldr r3, [r3, #0]
  88130. 8023c34: 4013 ands r3, r2
  88131. 8023c36: 2b00 cmp r3, #0
  88132. 8023c38: d012 beq.n 8023c60 <etharp_output+0xe4>
  88133. !ip4_addr_islinklocal(ipaddr)) {
  88134. 8023c3a: 687b ldr r3, [r7, #4]
  88135. 8023c3c: 681b ldr r3, [r3, #0]
  88136. 8023c3e: b29b uxth r3, r3
  88137. if (!ip4_addr_netcmp(ipaddr, netif_ip4_addr(netif), netif_ip4_netmask(netif)) &&
  88138. 8023c40: f64f 62a9 movw r2, #65193 @ 0xfea9
  88139. 8023c44: 4293 cmp r3, r2
  88140. 8023c46: d00b beq.n 8023c60 <etharp_output+0xe4>
  88141. dst_addr = LWIP_HOOK_ETHARP_GET_GW(netif, ipaddr);
  88142. if (dst_addr == NULL)
  88143. #endif /* LWIP_HOOK_ETHARP_GET_GW */
  88144. {
  88145. /* interface has default gateway? */
  88146. if (!ip4_addr_isany_val(*netif_ip4_gw(netif))) {
  88147. 8023c48: 68fb ldr r3, [r7, #12]
  88148. 8023c4a: 330c adds r3, #12
  88149. 8023c4c: 681b ldr r3, [r3, #0]
  88150. 8023c4e: 2b00 cmp r3, #0
  88151. 8023c50: d003 beq.n 8023c5a <etharp_output+0xde>
  88152. /* send to hardware address of default gateway IP address */
  88153. dst_addr = netif_ip4_gw(netif);
  88154. 8023c52: 68fb ldr r3, [r7, #12]
  88155. 8023c54: 330c adds r3, #12
  88156. 8023c56: 61bb str r3, [r7, #24]
  88157. 8023c58: e002 b.n 8023c60 <etharp_output+0xe4>
  88158. /* no default gateway available */
  88159. } else {
  88160. /* no route to destination error (default gateway missing) */
  88161. return ERR_RTE;
  88162. 8023c5a: f06f 0303 mvn.w r3, #3
  88163. 8023c5e: e07d b.n 8023d5c <etharp_output+0x1e0>
  88164. if (netif->hints != NULL) {
  88165. /* per-pcb cached entry was given */
  88166. netif_addr_idx_t etharp_cached_entry = netif->hints->addr_hint;
  88167. if (etharp_cached_entry < ARP_TABLE_SIZE) {
  88168. #endif /* LWIP_NETIF_HWADDRHINT */
  88169. if ((arp_table[etharp_cached_entry].state >= ETHARP_STATE_STABLE) &&
  88170. 8023c60: 4b46 ldr r3, [pc, #280] @ (8023d7c <etharp_output+0x200>)
  88171. 8023c62: 781b ldrb r3, [r3, #0]
  88172. 8023c64: 4619 mov r1, r3
  88173. 8023c66: 4a46 ldr r2, [pc, #280] @ (8023d80 <etharp_output+0x204>)
  88174. 8023c68: 460b mov r3, r1
  88175. 8023c6a: 005b lsls r3, r3, #1
  88176. 8023c6c: 440b add r3, r1
  88177. 8023c6e: 00db lsls r3, r3, #3
  88178. 8023c70: 4413 add r3, r2
  88179. 8023c72: 3314 adds r3, #20
  88180. 8023c74: 781b ldrb r3, [r3, #0]
  88181. 8023c76: 2b01 cmp r3, #1
  88182. 8023c78: d925 bls.n 8023cc6 <etharp_output+0x14a>
  88183. #if ETHARP_TABLE_MATCH_NETIF
  88184. (arp_table[etharp_cached_entry].netif == netif) &&
  88185. 8023c7a: 4b40 ldr r3, [pc, #256] @ (8023d7c <etharp_output+0x200>)
  88186. 8023c7c: 781b ldrb r3, [r3, #0]
  88187. 8023c7e: 4619 mov r1, r3
  88188. 8023c80: 4a3f ldr r2, [pc, #252] @ (8023d80 <etharp_output+0x204>)
  88189. 8023c82: 460b mov r3, r1
  88190. 8023c84: 005b lsls r3, r3, #1
  88191. 8023c86: 440b add r3, r1
  88192. 8023c88: 00db lsls r3, r3, #3
  88193. 8023c8a: 4413 add r3, r2
  88194. 8023c8c: 3308 adds r3, #8
  88195. 8023c8e: 681b ldr r3, [r3, #0]
  88196. if ((arp_table[etharp_cached_entry].state >= ETHARP_STATE_STABLE) &&
  88197. 8023c90: 68fa ldr r2, [r7, #12]
  88198. 8023c92: 429a cmp r2, r3
  88199. 8023c94: d117 bne.n 8023cc6 <etharp_output+0x14a>
  88200. #endif
  88201. (ip4_addr_cmp(dst_addr, &arp_table[etharp_cached_entry].ipaddr))) {
  88202. 8023c96: 69bb ldr r3, [r7, #24]
  88203. 8023c98: 681a ldr r2, [r3, #0]
  88204. 8023c9a: 4b38 ldr r3, [pc, #224] @ (8023d7c <etharp_output+0x200>)
  88205. 8023c9c: 781b ldrb r3, [r3, #0]
  88206. 8023c9e: 4618 mov r0, r3
  88207. 8023ca0: 4937 ldr r1, [pc, #220] @ (8023d80 <etharp_output+0x204>)
  88208. 8023ca2: 4603 mov r3, r0
  88209. 8023ca4: 005b lsls r3, r3, #1
  88210. 8023ca6: 4403 add r3, r0
  88211. 8023ca8: 00db lsls r3, r3, #3
  88212. 8023caa: 440b add r3, r1
  88213. 8023cac: 3304 adds r3, #4
  88214. 8023cae: 681b ldr r3, [r3, #0]
  88215. (arp_table[etharp_cached_entry].netif == netif) &&
  88216. 8023cb0: 429a cmp r2, r3
  88217. 8023cb2: d108 bne.n 8023cc6 <etharp_output+0x14a>
  88218. /* the per-pcb-cached entry is stable and the right one! */
  88219. ETHARP_STATS_INC(etharp.cachehit);
  88220. return etharp_output_to_arp_index(netif, q, etharp_cached_entry);
  88221. 8023cb4: 4b31 ldr r3, [pc, #196] @ (8023d7c <etharp_output+0x200>)
  88222. 8023cb6: 781b ldrb r3, [r3, #0]
  88223. 8023cb8: 461a mov r2, r3
  88224. 8023cba: 68b9 ldr r1, [r7, #8]
  88225. 8023cbc: 68f8 ldr r0, [r7, #12]
  88226. 8023cbe: f7ff fec3 bl 8023a48 <etharp_output_to_arp_index>
  88227. 8023cc2: 4603 mov r3, r0
  88228. 8023cc4: e04a b.n 8023d5c <etharp_output+0x1e0>
  88229. }
  88230. #endif /* LWIP_NETIF_HWADDRHINT */
  88231. /* find stable entry: do this here since this is a critical path for
  88232. throughput and etharp_find_entry() is kind of slow */
  88233. for (i = 0; i < ARP_TABLE_SIZE; i++) {
  88234. 8023cc6: 2300 movs r3, #0
  88235. 8023cc8: 75fb strb r3, [r7, #23]
  88236. 8023cca: e031 b.n 8023d30 <etharp_output+0x1b4>
  88237. if ((arp_table[i].state >= ETHARP_STATE_STABLE) &&
  88238. 8023ccc: 7dfa ldrb r2, [r7, #23]
  88239. 8023cce: 492c ldr r1, [pc, #176] @ (8023d80 <etharp_output+0x204>)
  88240. 8023cd0: 4613 mov r3, r2
  88241. 8023cd2: 005b lsls r3, r3, #1
  88242. 8023cd4: 4413 add r3, r2
  88243. 8023cd6: 00db lsls r3, r3, #3
  88244. 8023cd8: 440b add r3, r1
  88245. 8023cda: 3314 adds r3, #20
  88246. 8023cdc: 781b ldrb r3, [r3, #0]
  88247. 8023cde: 2b01 cmp r3, #1
  88248. 8023ce0: d923 bls.n 8023d2a <etharp_output+0x1ae>
  88249. #if ETHARP_TABLE_MATCH_NETIF
  88250. (arp_table[i].netif == netif) &&
  88251. 8023ce2: 7dfa ldrb r2, [r7, #23]
  88252. 8023ce4: 4926 ldr r1, [pc, #152] @ (8023d80 <etharp_output+0x204>)
  88253. 8023ce6: 4613 mov r3, r2
  88254. 8023ce8: 005b lsls r3, r3, #1
  88255. 8023cea: 4413 add r3, r2
  88256. 8023cec: 00db lsls r3, r3, #3
  88257. 8023cee: 440b add r3, r1
  88258. 8023cf0: 3308 adds r3, #8
  88259. 8023cf2: 681b ldr r3, [r3, #0]
  88260. if ((arp_table[i].state >= ETHARP_STATE_STABLE) &&
  88261. 8023cf4: 68fa ldr r2, [r7, #12]
  88262. 8023cf6: 429a cmp r2, r3
  88263. 8023cf8: d117 bne.n 8023d2a <etharp_output+0x1ae>
  88264. #endif
  88265. (ip4_addr_cmp(dst_addr, &arp_table[i].ipaddr))) {
  88266. 8023cfa: 69bb ldr r3, [r7, #24]
  88267. 8023cfc: 6819 ldr r1, [r3, #0]
  88268. 8023cfe: 7dfa ldrb r2, [r7, #23]
  88269. 8023d00: 481f ldr r0, [pc, #124] @ (8023d80 <etharp_output+0x204>)
  88270. 8023d02: 4613 mov r3, r2
  88271. 8023d04: 005b lsls r3, r3, #1
  88272. 8023d06: 4413 add r3, r2
  88273. 8023d08: 00db lsls r3, r3, #3
  88274. 8023d0a: 4403 add r3, r0
  88275. 8023d0c: 3304 adds r3, #4
  88276. 8023d0e: 681b ldr r3, [r3, #0]
  88277. (arp_table[i].netif == netif) &&
  88278. 8023d10: 4299 cmp r1, r3
  88279. 8023d12: d10a bne.n 8023d2a <etharp_output+0x1ae>
  88280. /* found an existing, stable entry */
  88281. ETHARP_SET_ADDRHINT(netif, i);
  88282. 8023d14: 4a19 ldr r2, [pc, #100] @ (8023d7c <etharp_output+0x200>)
  88283. 8023d16: 7dfb ldrb r3, [r7, #23]
  88284. 8023d18: 7013 strb r3, [r2, #0]
  88285. return etharp_output_to_arp_index(netif, q, i);
  88286. 8023d1a: 7dfb ldrb r3, [r7, #23]
  88287. 8023d1c: 461a mov r2, r3
  88288. 8023d1e: 68b9 ldr r1, [r7, #8]
  88289. 8023d20: 68f8 ldr r0, [r7, #12]
  88290. 8023d22: f7ff fe91 bl 8023a48 <etharp_output_to_arp_index>
  88291. 8023d26: 4603 mov r3, r0
  88292. 8023d28: e018 b.n 8023d5c <etharp_output+0x1e0>
  88293. for (i = 0; i < ARP_TABLE_SIZE; i++) {
  88294. 8023d2a: 7dfb ldrb r3, [r7, #23]
  88295. 8023d2c: 3301 adds r3, #1
  88296. 8023d2e: 75fb strb r3, [r7, #23]
  88297. 8023d30: 7dfb ldrb r3, [r7, #23]
  88298. 8023d32: 2b09 cmp r3, #9
  88299. 8023d34: d9ca bls.n 8023ccc <etharp_output+0x150>
  88300. }
  88301. }
  88302. /* no stable entry found, use the (slower) query function:
  88303. queue on destination Ethernet address belonging to ipaddr */
  88304. return etharp_query(netif, dst_addr, q);
  88305. 8023d36: 68ba ldr r2, [r7, #8]
  88306. 8023d38: 69b9 ldr r1, [r7, #24]
  88307. 8023d3a: 68f8 ldr r0, [r7, #12]
  88308. 8023d3c: f000 f822 bl 8023d84 <etharp_query>
  88309. 8023d40: 4603 mov r3, r0
  88310. 8023d42: e00b b.n 8023d5c <etharp_output+0x1e0>
  88311. }
  88312. /* continuation for multicast/broadcast destinations */
  88313. /* obtain source Ethernet address of the given interface */
  88314. /* send packet directly on the link */
  88315. return ethernet_output(netif, q, (struct eth_addr *)(netif->hwaddr), dest, ETHTYPE_IP);
  88316. 8023d44: 68fb ldr r3, [r7, #12]
  88317. 8023d46: f103 022a add.w r2, r3, #42 @ 0x2a
  88318. 8023d4a: f44f 6300 mov.w r3, #2048 @ 0x800
  88319. 8023d4e: 9300 str r3, [sp, #0]
  88320. 8023d50: 69fb ldr r3, [r7, #28]
  88321. 8023d52: 68b9 ldr r1, [r7, #8]
  88322. 8023d54: 68f8 ldr r0, [r7, #12]
  88323. 8023d56: f001 ff61 bl 8025c1c <ethernet_output>
  88324. 8023d5a: 4603 mov r3, r0
  88325. }
  88326. 8023d5c: 4618 mov r0, r3
  88327. 8023d5e: 3720 adds r7, #32
  88328. 8023d60: 46bd mov sp, r7
  88329. 8023d62: bd80 pop {r7, pc}
  88330. 8023d64: 0802fd88 .word 0x0802fd88
  88331. 8023d68: 0802fed8 .word 0x0802fed8
  88332. 8023d6c: 0802fe00 .word 0x0802fe00
  88333. 8023d70: 0802ff28 .word 0x0802ff28
  88334. 8023d74: 0802fec8 .word 0x0802fec8
  88335. 8023d78: 080307ac .word 0x080307ac
  88336. 8023d7c: 2402a174 .word 0x2402a174
  88337. 8023d80: 2402a084 .word 0x2402a084
  88338. 08023d84 <etharp_query>:
  88339. * - ERR_ARG Non-unicast address given, those will not appear in ARP cache.
  88340. *
  88341. */
  88342. err_t
  88343. etharp_query(struct netif *netif, const ip4_addr_t *ipaddr, struct pbuf *q)
  88344. {
  88345. 8023d84: b580 push {r7, lr}
  88346. 8023d86: b08c sub sp, #48 @ 0x30
  88347. 8023d88: af02 add r7, sp, #8
  88348. 8023d8a: 60f8 str r0, [r7, #12]
  88349. 8023d8c: 60b9 str r1, [r7, #8]
  88350. 8023d8e: 607a str r2, [r7, #4]
  88351. struct eth_addr *srcaddr = (struct eth_addr *)netif->hwaddr;
  88352. 8023d90: 68fb ldr r3, [r7, #12]
  88353. 8023d92: 332a adds r3, #42 @ 0x2a
  88354. 8023d94: 617b str r3, [r7, #20]
  88355. err_t result = ERR_MEM;
  88356. 8023d96: 23ff movs r3, #255 @ 0xff
  88357. 8023d98: f887 3027 strb.w r3, [r7, #39] @ 0x27
  88358. int is_new_entry = 0;
  88359. 8023d9c: 2300 movs r3, #0
  88360. 8023d9e: 623b str r3, [r7, #32]
  88361. s16_t i_err;
  88362. netif_addr_idx_t i;
  88363. /* non-unicast address? */
  88364. if (ip4_addr_isbroadcast(ipaddr, netif) ||
  88365. 8023da0: 68bb ldr r3, [r7, #8]
  88366. 8023da2: 681b ldr r3, [r3, #0]
  88367. 8023da4: 68f9 ldr r1, [r7, #12]
  88368. 8023da6: 4618 mov r0, r3
  88369. 8023da8: f000 fe5a bl 8024a60 <ip4_addr_isbroadcast_u32>
  88370. 8023dac: 4603 mov r3, r0
  88371. 8023dae: 2b00 cmp r3, #0
  88372. 8023db0: d10c bne.n 8023dcc <etharp_query+0x48>
  88373. ip4_addr_ismulticast(ipaddr) ||
  88374. 8023db2: 68bb ldr r3, [r7, #8]
  88375. 8023db4: 681b ldr r3, [r3, #0]
  88376. 8023db6: f003 03f0 and.w r3, r3, #240 @ 0xf0
  88377. if (ip4_addr_isbroadcast(ipaddr, netif) ||
  88378. 8023dba: 2be0 cmp r3, #224 @ 0xe0
  88379. 8023dbc: d006 beq.n 8023dcc <etharp_query+0x48>
  88380. ip4_addr_ismulticast(ipaddr) ||
  88381. 8023dbe: 68bb ldr r3, [r7, #8]
  88382. 8023dc0: 2b00 cmp r3, #0
  88383. 8023dc2: d003 beq.n 8023dcc <etharp_query+0x48>
  88384. ip4_addr_isany(ipaddr)) {
  88385. 8023dc4: 68bb ldr r3, [r7, #8]
  88386. 8023dc6: 681b ldr r3, [r3, #0]
  88387. 8023dc8: 2b00 cmp r3, #0
  88388. 8023dca: d102 bne.n 8023dd2 <etharp_query+0x4e>
  88389. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: will not add non-unicast IP address to ARP cache\n"));
  88390. return ERR_ARG;
  88391. 8023dcc: f06f 030f mvn.w r3, #15
  88392. 8023dd0: e101 b.n 8023fd6 <etharp_query+0x252>
  88393. }
  88394. /* find entry in ARP cache, ask to create entry if queueing packet */
  88395. i_err = etharp_find_entry(ipaddr, ETHARP_FLAG_TRY_HARD, netif);
  88396. 8023dd2: 68fa ldr r2, [r7, #12]
  88397. 8023dd4: 2101 movs r1, #1
  88398. 8023dd6: 68b8 ldr r0, [r7, #8]
  88399. 8023dd8: f7ff fb58 bl 802348c <etharp_find_entry>
  88400. 8023ddc: 4603 mov r3, r0
  88401. 8023dde: 827b strh r3, [r7, #18]
  88402. /* could not find or create entry? */
  88403. if (i_err < 0) {
  88404. 8023de0: f9b7 3012 ldrsh.w r3, [r7, #18]
  88405. 8023de4: 2b00 cmp r3, #0
  88406. 8023de6: da02 bge.n 8023dee <etharp_query+0x6a>
  88407. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: could not create ARP entry\n"));
  88408. if (q) {
  88409. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: packet dropped\n"));
  88410. ETHARP_STATS_INC(etharp.memerr);
  88411. }
  88412. return (err_t)i_err;
  88413. 8023de8: 8a7b ldrh r3, [r7, #18]
  88414. 8023dea: b25b sxtb r3, r3
  88415. 8023dec: e0f3 b.n 8023fd6 <etharp_query+0x252>
  88416. }
  88417. LWIP_ASSERT("type overflow", (size_t)i_err < NETIF_ADDR_IDX_MAX);
  88418. 8023dee: 8a7b ldrh r3, [r7, #18]
  88419. 8023df0: 2b7e cmp r3, #126 @ 0x7e
  88420. 8023df2: d906 bls.n 8023e02 <etharp_query+0x7e>
  88421. 8023df4: 4b7a ldr r3, [pc, #488] @ (8023fe0 <etharp_query+0x25c>)
  88422. 8023df6: f240 32c1 movw r2, #961 @ 0x3c1
  88423. 8023dfa: 497a ldr r1, [pc, #488] @ (8023fe4 <etharp_query+0x260>)
  88424. 8023dfc: 487a ldr r0, [pc, #488] @ (8023fe8 <etharp_query+0x264>)
  88425. 8023dfe: f005 fb85 bl 802950c <iprintf>
  88426. i = (netif_addr_idx_t)i_err;
  88427. 8023e02: 8a7b ldrh r3, [r7, #18]
  88428. 8023e04: 747b strb r3, [r7, #17]
  88429. /* mark a fresh entry as pending (we just sent a request) */
  88430. if (arp_table[i].state == ETHARP_STATE_EMPTY) {
  88431. 8023e06: 7c7a ldrb r2, [r7, #17]
  88432. 8023e08: 4978 ldr r1, [pc, #480] @ (8023fec <etharp_query+0x268>)
  88433. 8023e0a: 4613 mov r3, r2
  88434. 8023e0c: 005b lsls r3, r3, #1
  88435. 8023e0e: 4413 add r3, r2
  88436. 8023e10: 00db lsls r3, r3, #3
  88437. 8023e12: 440b add r3, r1
  88438. 8023e14: 3314 adds r3, #20
  88439. 8023e16: 781b ldrb r3, [r3, #0]
  88440. 8023e18: 2b00 cmp r3, #0
  88441. 8023e1a: d115 bne.n 8023e48 <etharp_query+0xc4>
  88442. is_new_entry = 1;
  88443. 8023e1c: 2301 movs r3, #1
  88444. 8023e1e: 623b str r3, [r7, #32]
  88445. arp_table[i].state = ETHARP_STATE_PENDING;
  88446. 8023e20: 7c7a ldrb r2, [r7, #17]
  88447. 8023e22: 4972 ldr r1, [pc, #456] @ (8023fec <etharp_query+0x268>)
  88448. 8023e24: 4613 mov r3, r2
  88449. 8023e26: 005b lsls r3, r3, #1
  88450. 8023e28: 4413 add r3, r2
  88451. 8023e2a: 00db lsls r3, r3, #3
  88452. 8023e2c: 440b add r3, r1
  88453. 8023e2e: 3314 adds r3, #20
  88454. 8023e30: 2201 movs r2, #1
  88455. 8023e32: 701a strb r2, [r3, #0]
  88456. /* record network interface for re-sending arp request in etharp_tmr */
  88457. arp_table[i].netif = netif;
  88458. 8023e34: 7c7a ldrb r2, [r7, #17]
  88459. 8023e36: 496d ldr r1, [pc, #436] @ (8023fec <etharp_query+0x268>)
  88460. 8023e38: 4613 mov r3, r2
  88461. 8023e3a: 005b lsls r3, r3, #1
  88462. 8023e3c: 4413 add r3, r2
  88463. 8023e3e: 00db lsls r3, r3, #3
  88464. 8023e40: 440b add r3, r1
  88465. 8023e42: 3308 adds r3, #8
  88466. 8023e44: 68fa ldr r2, [r7, #12]
  88467. 8023e46: 601a str r2, [r3, #0]
  88468. }
  88469. /* { i is either a STABLE or (new or existing) PENDING entry } */
  88470. LWIP_ASSERT("arp_table[i].state == PENDING or STABLE",
  88471. 8023e48: 7c7a ldrb r2, [r7, #17]
  88472. 8023e4a: 4968 ldr r1, [pc, #416] @ (8023fec <etharp_query+0x268>)
  88473. 8023e4c: 4613 mov r3, r2
  88474. 8023e4e: 005b lsls r3, r3, #1
  88475. 8023e50: 4413 add r3, r2
  88476. 8023e52: 00db lsls r3, r3, #3
  88477. 8023e54: 440b add r3, r1
  88478. 8023e56: 3314 adds r3, #20
  88479. 8023e58: 781b ldrb r3, [r3, #0]
  88480. 8023e5a: 2b01 cmp r3, #1
  88481. 8023e5c: d011 beq.n 8023e82 <etharp_query+0xfe>
  88482. 8023e5e: 7c7a ldrb r2, [r7, #17]
  88483. 8023e60: 4962 ldr r1, [pc, #392] @ (8023fec <etharp_query+0x268>)
  88484. 8023e62: 4613 mov r3, r2
  88485. 8023e64: 005b lsls r3, r3, #1
  88486. 8023e66: 4413 add r3, r2
  88487. 8023e68: 00db lsls r3, r3, #3
  88488. 8023e6a: 440b add r3, r1
  88489. 8023e6c: 3314 adds r3, #20
  88490. 8023e6e: 781b ldrb r3, [r3, #0]
  88491. 8023e70: 2b01 cmp r3, #1
  88492. 8023e72: d806 bhi.n 8023e82 <etharp_query+0xfe>
  88493. 8023e74: 4b5a ldr r3, [pc, #360] @ (8023fe0 <etharp_query+0x25c>)
  88494. 8023e76: f240 32cd movw r2, #973 @ 0x3cd
  88495. 8023e7a: 495d ldr r1, [pc, #372] @ (8023ff0 <etharp_query+0x26c>)
  88496. 8023e7c: 485a ldr r0, [pc, #360] @ (8023fe8 <etharp_query+0x264>)
  88497. 8023e7e: f005 fb45 bl 802950c <iprintf>
  88498. ((arp_table[i].state == ETHARP_STATE_PENDING) ||
  88499. (arp_table[i].state >= ETHARP_STATE_STABLE)));
  88500. /* do we have a new entry? or an implicit query request? */
  88501. if (is_new_entry || (q == NULL)) {
  88502. 8023e82: 6a3b ldr r3, [r7, #32]
  88503. 8023e84: 2b00 cmp r3, #0
  88504. 8023e86: d102 bne.n 8023e8e <etharp_query+0x10a>
  88505. 8023e88: 687b ldr r3, [r7, #4]
  88506. 8023e8a: 2b00 cmp r3, #0
  88507. 8023e8c: d10c bne.n 8023ea8 <etharp_query+0x124>
  88508. /* try to resolve it; send out ARP request */
  88509. result = etharp_request(netif, ipaddr);
  88510. 8023e8e: 68b9 ldr r1, [r7, #8]
  88511. 8023e90: 68f8 ldr r0, [r7, #12]
  88512. 8023e92: f000 f963 bl 802415c <etharp_request>
  88513. 8023e96: 4603 mov r3, r0
  88514. 8023e98: f887 3027 strb.w r3, [r7, #39] @ 0x27
  88515. /* ARP request couldn't be sent */
  88516. /* We don't re-send arp request in etharp_tmr, but we still queue packets,
  88517. since this failure could be temporary, and the next packet calling
  88518. etharp_query again could lead to sending the queued packets. */
  88519. }
  88520. if (q == NULL) {
  88521. 8023e9c: 687b ldr r3, [r7, #4]
  88522. 8023e9e: 2b00 cmp r3, #0
  88523. 8023ea0: d102 bne.n 8023ea8 <etharp_query+0x124>
  88524. return result;
  88525. 8023ea2: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  88526. 8023ea6: e096 b.n 8023fd6 <etharp_query+0x252>
  88527. }
  88528. }
  88529. /* packet given? */
  88530. LWIP_ASSERT("q != NULL", q != NULL);
  88531. 8023ea8: 687b ldr r3, [r7, #4]
  88532. 8023eaa: 2b00 cmp r3, #0
  88533. 8023eac: d106 bne.n 8023ebc <etharp_query+0x138>
  88534. 8023eae: 4b4c ldr r3, [pc, #304] @ (8023fe0 <etharp_query+0x25c>)
  88535. 8023eb0: f240 32e1 movw r2, #993 @ 0x3e1
  88536. 8023eb4: 494f ldr r1, [pc, #316] @ (8023ff4 <etharp_query+0x270>)
  88537. 8023eb6: 484c ldr r0, [pc, #304] @ (8023fe8 <etharp_query+0x264>)
  88538. 8023eb8: f005 fb28 bl 802950c <iprintf>
  88539. /* stable entry? */
  88540. if (arp_table[i].state >= ETHARP_STATE_STABLE) {
  88541. 8023ebc: 7c7a ldrb r2, [r7, #17]
  88542. 8023ebe: 494b ldr r1, [pc, #300] @ (8023fec <etharp_query+0x268>)
  88543. 8023ec0: 4613 mov r3, r2
  88544. 8023ec2: 005b lsls r3, r3, #1
  88545. 8023ec4: 4413 add r3, r2
  88546. 8023ec6: 00db lsls r3, r3, #3
  88547. 8023ec8: 440b add r3, r1
  88548. 8023eca: 3314 adds r3, #20
  88549. 8023ecc: 781b ldrb r3, [r3, #0]
  88550. 8023ece: 2b01 cmp r3, #1
  88551. 8023ed0: d917 bls.n 8023f02 <etharp_query+0x17e>
  88552. /* we have a valid IP->Ethernet address mapping */
  88553. ETHARP_SET_ADDRHINT(netif, i);
  88554. 8023ed2: 4a49 ldr r2, [pc, #292] @ (8023ff8 <etharp_query+0x274>)
  88555. 8023ed4: 7c7b ldrb r3, [r7, #17]
  88556. 8023ed6: 7013 strb r3, [r2, #0]
  88557. /* send the packet */
  88558. result = ethernet_output(netif, q, srcaddr, &(arp_table[i].ethaddr), ETHTYPE_IP);
  88559. 8023ed8: 7c7a ldrb r2, [r7, #17]
  88560. 8023eda: 4613 mov r3, r2
  88561. 8023edc: 005b lsls r3, r3, #1
  88562. 8023ede: 4413 add r3, r2
  88563. 8023ee0: 00db lsls r3, r3, #3
  88564. 8023ee2: 3308 adds r3, #8
  88565. 8023ee4: 4a41 ldr r2, [pc, #260] @ (8023fec <etharp_query+0x268>)
  88566. 8023ee6: 4413 add r3, r2
  88567. 8023ee8: 3304 adds r3, #4
  88568. 8023eea: f44f 6200 mov.w r2, #2048 @ 0x800
  88569. 8023eee: 9200 str r2, [sp, #0]
  88570. 8023ef0: 697a ldr r2, [r7, #20]
  88571. 8023ef2: 6879 ldr r1, [r7, #4]
  88572. 8023ef4: 68f8 ldr r0, [r7, #12]
  88573. 8023ef6: f001 fe91 bl 8025c1c <ethernet_output>
  88574. 8023efa: 4603 mov r3, r0
  88575. 8023efc: f887 3027 strb.w r3, [r7, #39] @ 0x27
  88576. 8023f00: e067 b.n 8023fd2 <etharp_query+0x24e>
  88577. /* pending entry? (either just created or already pending */
  88578. } else if (arp_table[i].state == ETHARP_STATE_PENDING) {
  88579. 8023f02: 7c7a ldrb r2, [r7, #17]
  88580. 8023f04: 4939 ldr r1, [pc, #228] @ (8023fec <etharp_query+0x268>)
  88581. 8023f06: 4613 mov r3, r2
  88582. 8023f08: 005b lsls r3, r3, #1
  88583. 8023f0a: 4413 add r3, r2
  88584. 8023f0c: 00db lsls r3, r3, #3
  88585. 8023f0e: 440b add r3, r1
  88586. 8023f10: 3314 adds r3, #20
  88587. 8023f12: 781b ldrb r3, [r3, #0]
  88588. 8023f14: 2b01 cmp r3, #1
  88589. 8023f16: d15c bne.n 8023fd2 <etharp_query+0x24e>
  88590. /* entry is still pending, queue the given packet 'q' */
  88591. struct pbuf *p;
  88592. int copy_needed = 0;
  88593. 8023f18: 2300 movs r3, #0
  88594. 8023f1a: 61bb str r3, [r7, #24]
  88595. /* IF q includes a pbuf that must be copied, copy the whole chain into a
  88596. * new PBUF_RAM. See the definition of PBUF_NEEDS_COPY for details. */
  88597. p = q;
  88598. 8023f1c: 687b ldr r3, [r7, #4]
  88599. 8023f1e: 61fb str r3, [r7, #28]
  88600. while (p) {
  88601. 8023f20: e01c b.n 8023f5c <etharp_query+0x1d8>
  88602. LWIP_ASSERT("no packet queues allowed!", (p->len != p->tot_len) || (p->next == 0));
  88603. 8023f22: 69fb ldr r3, [r7, #28]
  88604. 8023f24: 895a ldrh r2, [r3, #10]
  88605. 8023f26: 69fb ldr r3, [r7, #28]
  88606. 8023f28: 891b ldrh r3, [r3, #8]
  88607. 8023f2a: 429a cmp r2, r3
  88608. 8023f2c: d10a bne.n 8023f44 <etharp_query+0x1c0>
  88609. 8023f2e: 69fb ldr r3, [r7, #28]
  88610. 8023f30: 681b ldr r3, [r3, #0]
  88611. 8023f32: 2b00 cmp r3, #0
  88612. 8023f34: d006 beq.n 8023f44 <etharp_query+0x1c0>
  88613. 8023f36: 4b2a ldr r3, [pc, #168] @ (8023fe0 <etharp_query+0x25c>)
  88614. 8023f38: f240 32f1 movw r2, #1009 @ 0x3f1
  88615. 8023f3c: 492f ldr r1, [pc, #188] @ (8023ffc <etharp_query+0x278>)
  88616. 8023f3e: 482a ldr r0, [pc, #168] @ (8023fe8 <etharp_query+0x264>)
  88617. 8023f40: f005 fae4 bl 802950c <iprintf>
  88618. if (PBUF_NEEDS_COPY(p)) {
  88619. 8023f44: 69fb ldr r3, [r7, #28]
  88620. 8023f46: 7b1b ldrb r3, [r3, #12]
  88621. 8023f48: f003 0340 and.w r3, r3, #64 @ 0x40
  88622. 8023f4c: 2b00 cmp r3, #0
  88623. 8023f4e: d002 beq.n 8023f56 <etharp_query+0x1d2>
  88624. copy_needed = 1;
  88625. 8023f50: 2301 movs r3, #1
  88626. 8023f52: 61bb str r3, [r7, #24]
  88627. break;
  88628. 8023f54: e005 b.n 8023f62 <etharp_query+0x1de>
  88629. }
  88630. p = p->next;
  88631. 8023f56: 69fb ldr r3, [r7, #28]
  88632. 8023f58: 681b ldr r3, [r3, #0]
  88633. 8023f5a: 61fb str r3, [r7, #28]
  88634. while (p) {
  88635. 8023f5c: 69fb ldr r3, [r7, #28]
  88636. 8023f5e: 2b00 cmp r3, #0
  88637. 8023f60: d1df bne.n 8023f22 <etharp_query+0x19e>
  88638. }
  88639. if (copy_needed) {
  88640. 8023f62: 69bb ldr r3, [r7, #24]
  88641. 8023f64: 2b00 cmp r3, #0
  88642. 8023f66: d007 beq.n 8023f78 <etharp_query+0x1f4>
  88643. /* copy the whole packet into new pbufs */
  88644. p = pbuf_clone(PBUF_LINK, PBUF_RAM, q);
  88645. 8023f68: 687a ldr r2, [r7, #4]
  88646. 8023f6a: f44f 7120 mov.w r1, #640 @ 0x280
  88647. 8023f6e: 200e movs r0, #14
  88648. 8023f70: f7f6 facc bl 801a50c <pbuf_clone>
  88649. 8023f74: 61f8 str r0, [r7, #28]
  88650. 8023f76: e004 b.n 8023f82 <etharp_query+0x1fe>
  88651. } else {
  88652. /* referencing the old pbuf is enough */
  88653. p = q;
  88654. 8023f78: 687b ldr r3, [r7, #4]
  88655. 8023f7a: 61fb str r3, [r7, #28]
  88656. pbuf_ref(p);
  88657. 8023f7c: 69f8 ldr r0, [r7, #28]
  88658. 8023f7e: f7f6 f8f3 bl 801a168 <pbuf_ref>
  88659. }
  88660. /* packet could be taken over? */
  88661. if (p != NULL) {
  88662. 8023f82: 69fb ldr r3, [r7, #28]
  88663. 8023f84: 2b00 cmp r3, #0
  88664. 8023f86: d021 beq.n 8023fcc <etharp_query+0x248>
  88665. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: could not queue a copy of PBUF_REF packet %p (out of memory)\n", (void *)q));
  88666. result = ERR_MEM;
  88667. }
  88668. #else /* ARP_QUEUEING */
  88669. /* always queue one packet per ARP request only, freeing a previously queued packet */
  88670. if (arp_table[i].q != NULL) {
  88671. 8023f88: 7c7a ldrb r2, [r7, #17]
  88672. 8023f8a: 4918 ldr r1, [pc, #96] @ (8023fec <etharp_query+0x268>)
  88673. 8023f8c: 4613 mov r3, r2
  88674. 8023f8e: 005b lsls r3, r3, #1
  88675. 8023f90: 4413 add r3, r2
  88676. 8023f92: 00db lsls r3, r3, #3
  88677. 8023f94: 440b add r3, r1
  88678. 8023f96: 681b ldr r3, [r3, #0]
  88679. 8023f98: 2b00 cmp r3, #0
  88680. 8023f9a: d00a beq.n 8023fb2 <etharp_query+0x22e>
  88681. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: dropped previously queued packet %p for ARP entry %"U16_F"\n", (void *)q, (u16_t)i));
  88682. pbuf_free(arp_table[i].q);
  88683. 8023f9c: 7c7a ldrb r2, [r7, #17]
  88684. 8023f9e: 4913 ldr r1, [pc, #76] @ (8023fec <etharp_query+0x268>)
  88685. 8023fa0: 4613 mov r3, r2
  88686. 8023fa2: 005b lsls r3, r3, #1
  88687. 8023fa4: 4413 add r3, r2
  88688. 8023fa6: 00db lsls r3, r3, #3
  88689. 8023fa8: 440b add r3, r1
  88690. 8023faa: 681b ldr r3, [r3, #0]
  88691. 8023fac: 4618 mov r0, r3
  88692. 8023fae: f7f6 f835 bl 801a01c <pbuf_free>
  88693. }
  88694. arp_table[i].q = p;
  88695. 8023fb2: 7c7a ldrb r2, [r7, #17]
  88696. 8023fb4: 490d ldr r1, [pc, #52] @ (8023fec <etharp_query+0x268>)
  88697. 8023fb6: 4613 mov r3, r2
  88698. 8023fb8: 005b lsls r3, r3, #1
  88699. 8023fba: 4413 add r3, r2
  88700. 8023fbc: 00db lsls r3, r3, #3
  88701. 8023fbe: 440b add r3, r1
  88702. 8023fc0: 69fa ldr r2, [r7, #28]
  88703. 8023fc2: 601a str r2, [r3, #0]
  88704. result = ERR_OK;
  88705. 8023fc4: 2300 movs r3, #0
  88706. 8023fc6: f887 3027 strb.w r3, [r7, #39] @ 0x27
  88707. 8023fca: e002 b.n 8023fd2 <etharp_query+0x24e>
  88708. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: queued packet %p on ARP entry %"U16_F"\n", (void *)q, (u16_t)i));
  88709. #endif /* ARP_QUEUEING */
  88710. } else {
  88711. ETHARP_STATS_INC(etharp.memerr);
  88712. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: could not queue a copy of PBUF_REF packet %p (out of memory)\n", (void *)q));
  88713. result = ERR_MEM;
  88714. 8023fcc: 23ff movs r3, #255 @ 0xff
  88715. 8023fce: f887 3027 strb.w r3, [r7, #39] @ 0x27
  88716. }
  88717. }
  88718. return result;
  88719. 8023fd2: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  88720. }
  88721. 8023fd6: 4618 mov r0, r3
  88722. 8023fd8: 3728 adds r7, #40 @ 0x28
  88723. 8023fda: 46bd mov sp, r7
  88724. 8023fdc: bd80 pop {r7, pc}
  88725. 8023fde: bf00 nop
  88726. 8023fe0: 0802fd88 .word 0x0802fd88
  88727. 8023fe4: 0802ff34 .word 0x0802ff34
  88728. 8023fe8: 0802fe00 .word 0x0802fe00
  88729. 8023fec: 2402a084 .word 0x2402a084
  88730. 8023ff0: 0802ff44 .word 0x0802ff44
  88731. 8023ff4: 0802ff28 .word 0x0802ff28
  88732. 8023ff8: 2402a174 .word 0x2402a174
  88733. 8023ffc: 0802ff6c .word 0x0802ff6c
  88734. 08024000 <etharp_raw>:
  88735. etharp_raw(struct netif *netif, const struct eth_addr *ethsrc_addr,
  88736. const struct eth_addr *ethdst_addr,
  88737. const struct eth_addr *hwsrc_addr, const ip4_addr_t *ipsrc_addr,
  88738. const struct eth_addr *hwdst_addr, const ip4_addr_t *ipdst_addr,
  88739. const u16_t opcode)
  88740. {
  88741. 8024000: b580 push {r7, lr}
  88742. 8024002: b08a sub sp, #40 @ 0x28
  88743. 8024004: af02 add r7, sp, #8
  88744. 8024006: 60f8 str r0, [r7, #12]
  88745. 8024008: 60b9 str r1, [r7, #8]
  88746. 802400a: 607a str r2, [r7, #4]
  88747. 802400c: 603b str r3, [r7, #0]
  88748. struct pbuf *p;
  88749. err_t result = ERR_OK;
  88750. 802400e: 2300 movs r3, #0
  88751. 8024010: 77fb strb r3, [r7, #31]
  88752. struct etharp_hdr *hdr;
  88753. LWIP_ASSERT("netif != NULL", netif != NULL);
  88754. 8024012: 68fb ldr r3, [r7, #12]
  88755. 8024014: 2b00 cmp r3, #0
  88756. 8024016: d106 bne.n 8024026 <etharp_raw+0x26>
  88757. 8024018: 4b3a ldr r3, [pc, #232] @ (8024104 <etharp_raw+0x104>)
  88758. 802401a: f240 4257 movw r2, #1111 @ 0x457
  88759. 802401e: 493a ldr r1, [pc, #232] @ (8024108 <etharp_raw+0x108>)
  88760. 8024020: 483a ldr r0, [pc, #232] @ (802410c <etharp_raw+0x10c>)
  88761. 8024022: f005 fa73 bl 802950c <iprintf>
  88762. /* allocate a pbuf for the outgoing ARP request packet */
  88763. p = pbuf_alloc(PBUF_LINK, SIZEOF_ETHARP_HDR, PBUF_RAM);
  88764. 8024026: f44f 7220 mov.w r2, #640 @ 0x280
  88765. 802402a: 211c movs r1, #28
  88766. 802402c: 200e movs r0, #14
  88767. 802402e: f7f5 fcdf bl 80199f0 <pbuf_alloc>
  88768. 8024032: 61b8 str r0, [r7, #24]
  88769. /* could allocate a pbuf for an ARP request? */
  88770. if (p == NULL) {
  88771. 8024034: 69bb ldr r3, [r7, #24]
  88772. 8024036: 2b00 cmp r3, #0
  88773. 8024038: d102 bne.n 8024040 <etharp_raw+0x40>
  88774. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS,
  88775. ("etharp_raw: could not allocate pbuf for ARP request.\n"));
  88776. ETHARP_STATS_INC(etharp.memerr);
  88777. return ERR_MEM;
  88778. 802403a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  88779. 802403e: e05d b.n 80240fc <etharp_raw+0xfc>
  88780. }
  88781. LWIP_ASSERT("check that first pbuf can hold struct etharp_hdr",
  88782. 8024040: 69bb ldr r3, [r7, #24]
  88783. 8024042: 895b ldrh r3, [r3, #10]
  88784. 8024044: 2b1b cmp r3, #27
  88785. 8024046: d806 bhi.n 8024056 <etharp_raw+0x56>
  88786. 8024048: 4b2e ldr r3, [pc, #184] @ (8024104 <etharp_raw+0x104>)
  88787. 802404a: f240 4262 movw r2, #1122 @ 0x462
  88788. 802404e: 4930 ldr r1, [pc, #192] @ (8024110 <etharp_raw+0x110>)
  88789. 8024050: 482e ldr r0, [pc, #184] @ (802410c <etharp_raw+0x10c>)
  88790. 8024052: f005 fa5b bl 802950c <iprintf>
  88791. (p->len >= SIZEOF_ETHARP_HDR));
  88792. hdr = (struct etharp_hdr *)p->payload;
  88793. 8024056: 69bb ldr r3, [r7, #24]
  88794. 8024058: 685b ldr r3, [r3, #4]
  88795. 802405a: 617b str r3, [r7, #20]
  88796. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_raw: sending raw ARP packet.\n"));
  88797. hdr->opcode = lwip_htons(opcode);
  88798. 802405c: 8ebb ldrh r3, [r7, #52] @ 0x34
  88799. 802405e: 4618 mov r0, r3
  88800. 8024060: f7f4 fafa bl 8018658 <lwip_htons>
  88801. 8024064: 4603 mov r3, r0
  88802. 8024066: 461a mov r2, r3
  88803. 8024068: 697b ldr r3, [r7, #20]
  88804. 802406a: 80da strh r2, [r3, #6]
  88805. LWIP_ASSERT("netif->hwaddr_len must be the same as ETH_HWADDR_LEN for etharp!",
  88806. 802406c: 68fb ldr r3, [r7, #12]
  88807. 802406e: f893 3030 ldrb.w r3, [r3, #48] @ 0x30
  88808. 8024072: 2b06 cmp r3, #6
  88809. 8024074: d006 beq.n 8024084 <etharp_raw+0x84>
  88810. 8024076: 4b23 ldr r3, [pc, #140] @ (8024104 <etharp_raw+0x104>)
  88811. 8024078: f240 4269 movw r2, #1129 @ 0x469
  88812. 802407c: 4925 ldr r1, [pc, #148] @ (8024114 <etharp_raw+0x114>)
  88813. 802407e: 4823 ldr r0, [pc, #140] @ (802410c <etharp_raw+0x10c>)
  88814. 8024080: f005 fa44 bl 802950c <iprintf>
  88815. (netif->hwaddr_len == ETH_HWADDR_LEN));
  88816. /* Write the ARP MAC-Addresses */
  88817. SMEMCPY(&hdr->shwaddr, hwsrc_addr, ETH_HWADDR_LEN);
  88818. 8024084: 697b ldr r3, [r7, #20]
  88819. 8024086: 3308 adds r3, #8
  88820. 8024088: 2206 movs r2, #6
  88821. 802408a: 6839 ldr r1, [r7, #0]
  88822. 802408c: 4618 mov r0, r3
  88823. 802408e: f005 fcc6 bl 8029a1e <memcpy>
  88824. SMEMCPY(&hdr->dhwaddr, hwdst_addr, ETH_HWADDR_LEN);
  88825. 8024092: 697b ldr r3, [r7, #20]
  88826. 8024094: 3312 adds r3, #18
  88827. 8024096: 2206 movs r2, #6
  88828. 8024098: 6af9 ldr r1, [r7, #44] @ 0x2c
  88829. 802409a: 4618 mov r0, r3
  88830. 802409c: f005 fcbf bl 8029a1e <memcpy>
  88831. /* Copy struct ip4_addr_wordaligned to aligned ip4_addr, to support compilers without
  88832. * structure packing. */
  88833. IPADDR_WORDALIGNED_COPY_FROM_IP4_ADDR_T(&hdr->sipaddr, ipsrc_addr);
  88834. 80240a0: 697b ldr r3, [r7, #20]
  88835. 80240a2: 330e adds r3, #14
  88836. 80240a4: 6aba ldr r2, [r7, #40] @ 0x28
  88837. 80240a6: 6812 ldr r2, [r2, #0]
  88838. 80240a8: 601a str r2, [r3, #0]
  88839. IPADDR_WORDALIGNED_COPY_FROM_IP4_ADDR_T(&hdr->dipaddr, ipdst_addr);
  88840. 80240aa: 697b ldr r3, [r7, #20]
  88841. 80240ac: 3318 adds r3, #24
  88842. 80240ae: 6b3a ldr r2, [r7, #48] @ 0x30
  88843. 80240b0: 6812 ldr r2, [r2, #0]
  88844. 80240b2: 601a str r2, [r3, #0]
  88845. hdr->hwtype = PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET);
  88846. 80240b4: 697b ldr r3, [r7, #20]
  88847. 80240b6: 2200 movs r2, #0
  88848. 80240b8: 701a strb r2, [r3, #0]
  88849. 80240ba: 2200 movs r2, #0
  88850. 80240bc: f042 0201 orr.w r2, r2, #1
  88851. 80240c0: 705a strb r2, [r3, #1]
  88852. hdr->proto = PP_HTONS(ETHTYPE_IP);
  88853. 80240c2: 697b ldr r3, [r7, #20]
  88854. 80240c4: 2200 movs r2, #0
  88855. 80240c6: f042 0208 orr.w r2, r2, #8
  88856. 80240ca: 709a strb r2, [r3, #2]
  88857. 80240cc: 2200 movs r2, #0
  88858. 80240ce: 70da strb r2, [r3, #3]
  88859. /* set hwlen and protolen */
  88860. hdr->hwlen = ETH_HWADDR_LEN;
  88861. 80240d0: 697b ldr r3, [r7, #20]
  88862. 80240d2: 2206 movs r2, #6
  88863. 80240d4: 711a strb r2, [r3, #4]
  88864. hdr->protolen = sizeof(ip4_addr_t);
  88865. 80240d6: 697b ldr r3, [r7, #20]
  88866. 80240d8: 2204 movs r2, #4
  88867. 80240da: 715a strb r2, [r3, #5]
  88868. if (ip4_addr_islinklocal(ipsrc_addr)) {
  88869. ethernet_output(netif, p, ethsrc_addr, &ethbroadcast, ETHTYPE_ARP);
  88870. } else
  88871. #endif /* LWIP_AUTOIP */
  88872. {
  88873. ethernet_output(netif, p, ethsrc_addr, ethdst_addr, ETHTYPE_ARP);
  88874. 80240dc: f640 0306 movw r3, #2054 @ 0x806
  88875. 80240e0: 9300 str r3, [sp, #0]
  88876. 80240e2: 687b ldr r3, [r7, #4]
  88877. 80240e4: 68ba ldr r2, [r7, #8]
  88878. 80240e6: 69b9 ldr r1, [r7, #24]
  88879. 80240e8: 68f8 ldr r0, [r7, #12]
  88880. 80240ea: f001 fd97 bl 8025c1c <ethernet_output>
  88881. }
  88882. ETHARP_STATS_INC(etharp.xmit);
  88883. /* free ARP query packet */
  88884. pbuf_free(p);
  88885. 80240ee: 69b8 ldr r0, [r7, #24]
  88886. 80240f0: f7f5 ff94 bl 801a01c <pbuf_free>
  88887. p = NULL;
  88888. 80240f4: 2300 movs r3, #0
  88889. 80240f6: 61bb str r3, [r7, #24]
  88890. /* could not allocate pbuf for ARP request */
  88891. return result;
  88892. 80240f8: f997 301f ldrsb.w r3, [r7, #31]
  88893. }
  88894. 80240fc: 4618 mov r0, r3
  88895. 80240fe: 3720 adds r7, #32
  88896. 8024100: 46bd mov sp, r7
  88897. 8024102: bd80 pop {r7, pc}
  88898. 8024104: 0802fd88 .word 0x0802fd88
  88899. 8024108: 0802fed8 .word 0x0802fed8
  88900. 802410c: 0802fe00 .word 0x0802fe00
  88901. 8024110: 0802ff88 .word 0x0802ff88
  88902. 8024114: 0802ffbc .word 0x0802ffbc
  88903. 08024118 <etharp_request_dst>:
  88904. * ERR_MEM if the ARP packet couldn't be allocated
  88905. * any other err_t on failure
  88906. */
  88907. static err_t
  88908. etharp_request_dst(struct netif *netif, const ip4_addr_t *ipaddr, const struct eth_addr *hw_dst_addr)
  88909. {
  88910. 8024118: b580 push {r7, lr}
  88911. 802411a: b088 sub sp, #32
  88912. 802411c: af04 add r7, sp, #16
  88913. 802411e: 60f8 str r0, [r7, #12]
  88914. 8024120: 60b9 str r1, [r7, #8]
  88915. 8024122: 607a str r2, [r7, #4]
  88916. return etharp_raw(netif, (struct eth_addr *)netif->hwaddr, hw_dst_addr,
  88917. 8024124: 68fb ldr r3, [r7, #12]
  88918. 8024126: f103 012a add.w r1, r3, #42 @ 0x2a
  88919. (struct eth_addr *)netif->hwaddr, netif_ip4_addr(netif), &ethzero,
  88920. 802412a: 68fb ldr r3, [r7, #12]
  88921. 802412c: f103 002a add.w r0, r3, #42 @ 0x2a
  88922. 8024130: 68fb ldr r3, [r7, #12]
  88923. 8024132: 3304 adds r3, #4
  88924. return etharp_raw(netif, (struct eth_addr *)netif->hwaddr, hw_dst_addr,
  88925. 8024134: 2201 movs r2, #1
  88926. 8024136: 9203 str r2, [sp, #12]
  88927. 8024138: 68ba ldr r2, [r7, #8]
  88928. 802413a: 9202 str r2, [sp, #8]
  88929. 802413c: 4a06 ldr r2, [pc, #24] @ (8024158 <etharp_request_dst+0x40>)
  88930. 802413e: 9201 str r2, [sp, #4]
  88931. 8024140: 9300 str r3, [sp, #0]
  88932. 8024142: 4603 mov r3, r0
  88933. 8024144: 687a ldr r2, [r7, #4]
  88934. 8024146: 68f8 ldr r0, [r7, #12]
  88935. 8024148: f7ff ff5a bl 8024000 <etharp_raw>
  88936. 802414c: 4603 mov r3, r0
  88937. ipaddr, ARP_REQUEST);
  88938. }
  88939. 802414e: 4618 mov r0, r3
  88940. 8024150: 3710 adds r7, #16
  88941. 8024152: 46bd mov sp, r7
  88942. 8024154: bd80 pop {r7, pc}
  88943. 8024156: bf00 nop
  88944. 8024158: 080307b4 .word 0x080307b4
  88945. 0802415c <etharp_request>:
  88946. * ERR_MEM if the ARP packet couldn't be allocated
  88947. * any other err_t on failure
  88948. */
  88949. err_t
  88950. etharp_request(struct netif *netif, const ip4_addr_t *ipaddr)
  88951. {
  88952. 802415c: b580 push {r7, lr}
  88953. 802415e: b082 sub sp, #8
  88954. 8024160: af00 add r7, sp, #0
  88955. 8024162: 6078 str r0, [r7, #4]
  88956. 8024164: 6039 str r1, [r7, #0]
  88957. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_request: sending ARP request.\n"));
  88958. return etharp_request_dst(netif, ipaddr, &ethbroadcast);
  88959. 8024166: 4a05 ldr r2, [pc, #20] @ (802417c <etharp_request+0x20>)
  88960. 8024168: 6839 ldr r1, [r7, #0]
  88961. 802416a: 6878 ldr r0, [r7, #4]
  88962. 802416c: f7ff ffd4 bl 8024118 <etharp_request_dst>
  88963. 8024170: 4603 mov r3, r0
  88964. }
  88965. 8024172: 4618 mov r0, r3
  88966. 8024174: 3708 adds r7, #8
  88967. 8024176: 46bd mov sp, r7
  88968. 8024178: bd80 pop {r7, pc}
  88969. 802417a: bf00 nop
  88970. 802417c: 080307ac .word 0x080307ac
  88971. 08024180 <icmp_input>:
  88972. * @param p the icmp echo request packet, p->payload pointing to the icmp header
  88973. * @param inp the netif on which this packet was received
  88974. */
  88975. void
  88976. icmp_input(struct pbuf *p, struct netif *inp)
  88977. {
  88978. 8024180: b580 push {r7, lr}
  88979. 8024182: b08e sub sp, #56 @ 0x38
  88980. 8024184: af04 add r7, sp, #16
  88981. 8024186: 6078 str r0, [r7, #4]
  88982. 8024188: 6039 str r1, [r7, #0]
  88983. const ip4_addr_t *src;
  88984. ICMP_STATS_INC(icmp.recv);
  88985. MIB2_STATS_INC(mib2.icmpinmsgs);
  88986. iphdr_in = ip4_current_header();
  88987. 802418a: 4b89 ldr r3, [pc, #548] @ (80243b0 <icmp_input+0x230>)
  88988. 802418c: 689b ldr r3, [r3, #8]
  88989. 802418e: 627b str r3, [r7, #36] @ 0x24
  88990. hlen = IPH_HL_BYTES(iphdr_in);
  88991. 8024190: 6a7b ldr r3, [r7, #36] @ 0x24
  88992. 8024192: 781b ldrb r3, [r3, #0]
  88993. 8024194: f003 030f and.w r3, r3, #15
  88994. 8024198: b2db uxtb r3, r3
  88995. 802419a: 009b lsls r3, r3, #2
  88996. 802419c: b2db uxtb r3, r3
  88997. 802419e: 847b strh r3, [r7, #34] @ 0x22
  88998. if (hlen < IP_HLEN) {
  88999. 80241a0: 8c7b ldrh r3, [r7, #34] @ 0x22
  89000. 80241a2: 2b13 cmp r3, #19
  89001. 80241a4: f240 80ed bls.w 8024382 <icmp_input+0x202>
  89002. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: short IP header (%"S16_F" bytes) received\n", hlen));
  89003. goto lenerr;
  89004. }
  89005. if (p->len < sizeof(u16_t) * 2) {
  89006. 80241a8: 687b ldr r3, [r7, #4]
  89007. 80241aa: 895b ldrh r3, [r3, #10]
  89008. 80241ac: 2b03 cmp r3, #3
  89009. 80241ae: f240 80ea bls.w 8024386 <icmp_input+0x206>
  89010. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: short ICMP (%"U16_F" bytes) received\n", p->tot_len));
  89011. goto lenerr;
  89012. }
  89013. type = *((u8_t *)p->payload);
  89014. 80241b2: 687b ldr r3, [r7, #4]
  89015. 80241b4: 685b ldr r3, [r3, #4]
  89016. 80241b6: 781b ldrb r3, [r3, #0]
  89017. 80241b8: f887 3021 strb.w r3, [r7, #33] @ 0x21
  89018. #ifdef LWIP_DEBUG
  89019. code = *(((u8_t *)p->payload) + 1);
  89020. 80241bc: 687b ldr r3, [r7, #4]
  89021. 80241be: 685b ldr r3, [r3, #4]
  89022. 80241c0: 785b ldrb r3, [r3, #1]
  89023. 80241c2: f887 3020 strb.w r3, [r7, #32]
  89024. /* if debug is enabled but debug statement below is somehow disabled: */
  89025. LWIP_UNUSED_ARG(code);
  89026. #endif /* LWIP_DEBUG */
  89027. switch (type) {
  89028. 80241c6: f897 3021 ldrb.w r3, [r7, #33] @ 0x21
  89029. 80241ca: 2b00 cmp r3, #0
  89030. 80241cc: f000 80d2 beq.w 8024374 <icmp_input+0x1f4>
  89031. 80241d0: 2b08 cmp r3, #8
  89032. 80241d2: f040 80d2 bne.w 802437a <icmp_input+0x1fa>
  89033. (as obviously, an echo request has been sent, too). */
  89034. MIB2_STATS_INC(mib2.icmpinechoreps);
  89035. break;
  89036. case ICMP_ECHO:
  89037. MIB2_STATS_INC(mib2.icmpinechos);
  89038. src = ip4_current_dest_addr();
  89039. 80241d6: 4b77 ldr r3, [pc, #476] @ (80243b4 <icmp_input+0x234>)
  89040. 80241d8: 61fb str r3, [r7, #28]
  89041. /* multicast destination address? */
  89042. if (ip4_addr_ismulticast(ip4_current_dest_addr())) {
  89043. 80241da: 4b75 ldr r3, [pc, #468] @ (80243b0 <icmp_input+0x230>)
  89044. 80241dc: 695b ldr r3, [r3, #20]
  89045. 80241de: f003 03f0 and.w r3, r3, #240 @ 0xf0
  89046. 80241e2: 2be0 cmp r3, #224 @ 0xe0
  89047. 80241e4: f000 80d6 beq.w 8024394 <icmp_input+0x214>
  89048. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: Not echoing to multicast pings\n"));
  89049. goto icmperr;
  89050. #endif /* LWIP_MULTICAST_PING */
  89051. }
  89052. /* broadcast destination address? */
  89053. if (ip4_addr_isbroadcast(ip4_current_dest_addr(), ip_current_netif())) {
  89054. 80241e8: 4b71 ldr r3, [pc, #452] @ (80243b0 <icmp_input+0x230>)
  89055. 80241ea: 695b ldr r3, [r3, #20]
  89056. 80241ec: 4a70 ldr r2, [pc, #448] @ (80243b0 <icmp_input+0x230>)
  89057. 80241ee: 6812 ldr r2, [r2, #0]
  89058. 80241f0: 4611 mov r1, r2
  89059. 80241f2: 4618 mov r0, r3
  89060. 80241f4: f000 fc34 bl 8024a60 <ip4_addr_isbroadcast_u32>
  89061. 80241f8: 4603 mov r3, r0
  89062. 80241fa: 2b00 cmp r3, #0
  89063. 80241fc: f040 80cc bne.w 8024398 <icmp_input+0x218>
  89064. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: Not echoing to broadcast pings\n"));
  89065. goto icmperr;
  89066. #endif /* LWIP_BROADCAST_PING */
  89067. }
  89068. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: ping\n"));
  89069. if (p->tot_len < sizeof(struct icmp_echo_hdr)) {
  89070. 8024200: 687b ldr r3, [r7, #4]
  89071. 8024202: 891b ldrh r3, [r3, #8]
  89072. 8024204: 2b07 cmp r3, #7
  89073. 8024206: f240 80c0 bls.w 802438a <icmp_input+0x20a>
  89074. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: bad ICMP echo received\n"));
  89075. goto lenerr;
  89076. }
  89077. #if CHECKSUM_CHECK_ICMP
  89078. IF__NETIF_CHECKSUM_ENABLED(inp, NETIF_CHECKSUM_CHECK_ICMP) {
  89079. if (inet_chksum_pbuf(p) != 0) {
  89080. 802420a: 6878 ldr r0, [r7, #4]
  89081. 802420c: f7f4 fac1 bl 8018792 <inet_chksum_pbuf>
  89082. 8024210: 4603 mov r3, r0
  89083. 8024212: 2b00 cmp r3, #0
  89084. 8024214: d003 beq.n 802421e <icmp_input+0x9e>
  89085. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: checksum failed for received ICMP echo\n"));
  89086. pbuf_free(p);
  89087. 8024216: 6878 ldr r0, [r7, #4]
  89088. 8024218: f7f5 ff00 bl 801a01c <pbuf_free>
  89089. ICMP_STATS_INC(icmp.chkerr);
  89090. MIB2_STATS_INC(mib2.icmpinerrors);
  89091. return;
  89092. 802421c: e0c5 b.n 80243aa <icmp_input+0x22a>
  89093. }
  89094. }
  89095. #endif
  89096. #if LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN
  89097. if (pbuf_add_header(p, hlen + PBUF_LINK_HLEN + PBUF_LINK_ENCAPSULATION_HLEN)) {
  89098. 802421e: 8c7b ldrh r3, [r7, #34] @ 0x22
  89099. 8024220: 330e adds r3, #14
  89100. 8024222: 4619 mov r1, r3
  89101. 8024224: 6878 ldr r0, [r7, #4]
  89102. 8024226: f7f5 fe31 bl 8019e8c <pbuf_add_header>
  89103. 802422a: 4603 mov r3, r0
  89104. 802422c: 2b00 cmp r3, #0
  89105. 802422e: d04b beq.n 80242c8 <icmp_input+0x148>
  89106. /* p is not big enough to contain link headers
  89107. * allocate a new one and copy p into it
  89108. */
  89109. struct pbuf *r;
  89110. u16_t alloc_len = (u16_t)(p->tot_len + hlen);
  89111. 8024230: 687b ldr r3, [r7, #4]
  89112. 8024232: 891a ldrh r2, [r3, #8]
  89113. 8024234: 8c7b ldrh r3, [r7, #34] @ 0x22
  89114. 8024236: 4413 add r3, r2
  89115. 8024238: 837b strh r3, [r7, #26]
  89116. if (alloc_len < p->tot_len) {
  89117. 802423a: 687b ldr r3, [r7, #4]
  89118. 802423c: 891b ldrh r3, [r3, #8]
  89119. 802423e: 8b7a ldrh r2, [r7, #26]
  89120. 8024240: 429a cmp r2, r3
  89121. 8024242: f0c0 80ab bcc.w 802439c <icmp_input+0x21c>
  89122. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: allocating new pbuf failed (tot_len overflow)\n"));
  89123. goto icmperr;
  89124. }
  89125. /* allocate new packet buffer with space for link headers */
  89126. r = pbuf_alloc(PBUF_LINK, alloc_len, PBUF_RAM);
  89127. 8024246: 8b7b ldrh r3, [r7, #26]
  89128. 8024248: f44f 7220 mov.w r2, #640 @ 0x280
  89129. 802424c: 4619 mov r1, r3
  89130. 802424e: 200e movs r0, #14
  89131. 8024250: f7f5 fbce bl 80199f0 <pbuf_alloc>
  89132. 8024254: 6178 str r0, [r7, #20]
  89133. if (r == NULL) {
  89134. 8024256: 697b ldr r3, [r7, #20]
  89135. 8024258: 2b00 cmp r3, #0
  89136. 802425a: f000 80a1 beq.w 80243a0 <icmp_input+0x220>
  89137. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: allocating new pbuf failed\n"));
  89138. goto icmperr;
  89139. }
  89140. if (r->len < hlen + sizeof(struct icmp_echo_hdr)) {
  89141. 802425e: 697b ldr r3, [r7, #20]
  89142. 8024260: 895b ldrh r3, [r3, #10]
  89143. 8024262: 461a mov r2, r3
  89144. 8024264: 8c7b ldrh r3, [r7, #34] @ 0x22
  89145. 8024266: 3308 adds r3, #8
  89146. 8024268: 429a cmp r2, r3
  89147. 802426a: d203 bcs.n 8024274 <icmp_input+0xf4>
  89148. LWIP_DEBUGF(ICMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("first pbuf cannot hold the ICMP header"));
  89149. pbuf_free(r);
  89150. 802426c: 6978 ldr r0, [r7, #20]
  89151. 802426e: f7f5 fed5 bl 801a01c <pbuf_free>
  89152. goto icmperr;
  89153. 8024272: e096 b.n 80243a2 <icmp_input+0x222>
  89154. }
  89155. /* copy the ip header */
  89156. MEMCPY(r->payload, iphdr_in, hlen);
  89157. 8024274: 697b ldr r3, [r7, #20]
  89158. 8024276: 685b ldr r3, [r3, #4]
  89159. 8024278: 8c7a ldrh r2, [r7, #34] @ 0x22
  89160. 802427a: 6a79 ldr r1, [r7, #36] @ 0x24
  89161. 802427c: 4618 mov r0, r3
  89162. 802427e: f005 fbce bl 8029a1e <memcpy>
  89163. /* switch r->payload back to icmp header (cannot fail) */
  89164. if (pbuf_remove_header(r, hlen)) {
  89165. 8024282: 8c7b ldrh r3, [r7, #34] @ 0x22
  89166. 8024284: 4619 mov r1, r3
  89167. 8024286: 6978 ldr r0, [r7, #20]
  89168. 8024288: f7f5 fe10 bl 8019eac <pbuf_remove_header>
  89169. 802428c: 4603 mov r3, r0
  89170. 802428e: 2b00 cmp r3, #0
  89171. 8024290: d009 beq.n 80242a6 <icmp_input+0x126>
  89172. LWIP_ASSERT("icmp_input: moving r->payload to icmp header failed\n", 0);
  89173. 8024292: 4b49 ldr r3, [pc, #292] @ (80243b8 <icmp_input+0x238>)
  89174. 8024294: 22b6 movs r2, #182 @ 0xb6
  89175. 8024296: 4949 ldr r1, [pc, #292] @ (80243bc <icmp_input+0x23c>)
  89176. 8024298: 4849 ldr r0, [pc, #292] @ (80243c0 <icmp_input+0x240>)
  89177. 802429a: f005 f937 bl 802950c <iprintf>
  89178. pbuf_free(r);
  89179. 802429e: 6978 ldr r0, [r7, #20]
  89180. 80242a0: f7f5 febc bl 801a01c <pbuf_free>
  89181. goto icmperr;
  89182. 80242a4: e07d b.n 80243a2 <icmp_input+0x222>
  89183. }
  89184. /* copy the rest of the packet without ip header */
  89185. if (pbuf_copy(r, p) != ERR_OK) {
  89186. 80242a6: 6879 ldr r1, [r7, #4]
  89187. 80242a8: 6978 ldr r0, [r7, #20]
  89188. 80242aa: f7f5 ffeb bl 801a284 <pbuf_copy>
  89189. 80242ae: 4603 mov r3, r0
  89190. 80242b0: 2b00 cmp r3, #0
  89191. 80242b2: d003 beq.n 80242bc <icmp_input+0x13c>
  89192. LWIP_DEBUGF(ICMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("icmp_input: copying to new pbuf failed"));
  89193. pbuf_free(r);
  89194. 80242b4: 6978 ldr r0, [r7, #20]
  89195. 80242b6: f7f5 feb1 bl 801a01c <pbuf_free>
  89196. goto icmperr;
  89197. 80242ba: e072 b.n 80243a2 <icmp_input+0x222>
  89198. }
  89199. /* free the original p */
  89200. pbuf_free(p);
  89201. 80242bc: 6878 ldr r0, [r7, #4]
  89202. 80242be: f7f5 fead bl 801a01c <pbuf_free>
  89203. /* we now have an identical copy of p that has room for link headers */
  89204. p = r;
  89205. 80242c2: 697b ldr r3, [r7, #20]
  89206. 80242c4: 607b str r3, [r7, #4]
  89207. 80242c6: e00f b.n 80242e8 <icmp_input+0x168>
  89208. } else {
  89209. /* restore p->payload to point to icmp header (cannot fail) */
  89210. if (pbuf_remove_header(p, hlen + PBUF_LINK_HLEN + PBUF_LINK_ENCAPSULATION_HLEN)) {
  89211. 80242c8: 8c7b ldrh r3, [r7, #34] @ 0x22
  89212. 80242ca: 330e adds r3, #14
  89213. 80242cc: 4619 mov r1, r3
  89214. 80242ce: 6878 ldr r0, [r7, #4]
  89215. 80242d0: f7f5 fdec bl 8019eac <pbuf_remove_header>
  89216. 80242d4: 4603 mov r3, r0
  89217. 80242d6: 2b00 cmp r3, #0
  89218. 80242d8: d006 beq.n 80242e8 <icmp_input+0x168>
  89219. LWIP_ASSERT("icmp_input: restoring original p->payload failed\n", 0);
  89220. 80242da: 4b37 ldr r3, [pc, #220] @ (80243b8 <icmp_input+0x238>)
  89221. 80242dc: 22c7 movs r2, #199 @ 0xc7
  89222. 80242de: 4939 ldr r1, [pc, #228] @ (80243c4 <icmp_input+0x244>)
  89223. 80242e0: 4837 ldr r0, [pc, #220] @ (80243c0 <icmp_input+0x240>)
  89224. 80242e2: f005 f913 bl 802950c <iprintf>
  89225. goto icmperr;
  89226. 80242e6: e05c b.n 80243a2 <icmp_input+0x222>
  89227. }
  89228. #endif /* LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN */
  89229. /* At this point, all checks are OK. */
  89230. /* We generate an answer by switching the dest and src ip addresses,
  89231. * setting the icmp type to ECHO_RESPONSE and updating the checksum. */
  89232. iecho = (struct icmp_echo_hdr *)p->payload;
  89233. 80242e8: 687b ldr r3, [r7, #4]
  89234. 80242ea: 685b ldr r3, [r3, #4]
  89235. 80242ec: 613b str r3, [r7, #16]
  89236. if (pbuf_add_header(p, hlen)) {
  89237. 80242ee: 8c7b ldrh r3, [r7, #34] @ 0x22
  89238. 80242f0: 4619 mov r1, r3
  89239. 80242f2: 6878 ldr r0, [r7, #4]
  89240. 80242f4: f7f5 fdca bl 8019e8c <pbuf_add_header>
  89241. 80242f8: 4603 mov r3, r0
  89242. 80242fa: 2b00 cmp r3, #0
  89243. 80242fc: d13c bne.n 8024378 <icmp_input+0x1f8>
  89244. LWIP_DEBUGF(ICMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("Can't move over header in packet"));
  89245. } else {
  89246. err_t ret;
  89247. struct ip_hdr *iphdr = (struct ip_hdr *)p->payload;
  89248. 80242fe: 687b ldr r3, [r7, #4]
  89249. 8024300: 685b ldr r3, [r3, #4]
  89250. 8024302: 60fb str r3, [r7, #12]
  89251. ip4_addr_copy(iphdr->src, *src);
  89252. 8024304: 69fb ldr r3, [r7, #28]
  89253. 8024306: 681a ldr r2, [r3, #0]
  89254. 8024308: 68fb ldr r3, [r7, #12]
  89255. 802430a: 60da str r2, [r3, #12]
  89256. ip4_addr_copy(iphdr->dest, *ip4_current_src_addr());
  89257. 802430c: 4b28 ldr r3, [pc, #160] @ (80243b0 <icmp_input+0x230>)
  89258. 802430e: 691a ldr r2, [r3, #16]
  89259. 8024310: 68fb ldr r3, [r7, #12]
  89260. 8024312: 611a str r2, [r3, #16]
  89261. ICMPH_TYPE_SET(iecho, ICMP_ER);
  89262. 8024314: 693b ldr r3, [r7, #16]
  89263. 8024316: 2200 movs r2, #0
  89264. 8024318: 701a strb r2, [r3, #0]
  89265. #if CHECKSUM_GEN_ICMP
  89266. IF__NETIF_CHECKSUM_ENABLED(inp, NETIF_CHECKSUM_GEN_ICMP) {
  89267. /* adjust the checksum */
  89268. if (iecho->chksum > PP_HTONS(0xffffU - (ICMP_ECHO << 8))) {
  89269. 802431a: 693b ldr r3, [r7, #16]
  89270. 802431c: 885b ldrh r3, [r3, #2]
  89271. 802431e: b29b uxth r3, r3
  89272. 8024320: f64f 72f7 movw r2, #65527 @ 0xfff7
  89273. 8024324: 4293 cmp r3, r2
  89274. 8024326: d907 bls.n 8024338 <icmp_input+0x1b8>
  89275. iecho->chksum = (u16_t)(iecho->chksum + PP_HTONS((u16_t)(ICMP_ECHO << 8)) + 1);
  89276. 8024328: 693b ldr r3, [r7, #16]
  89277. 802432a: 885b ldrh r3, [r3, #2]
  89278. 802432c: b29b uxth r3, r3
  89279. 802432e: 3309 adds r3, #9
  89280. 8024330: b29a uxth r2, r3
  89281. 8024332: 693b ldr r3, [r7, #16]
  89282. 8024334: 805a strh r2, [r3, #2]
  89283. 8024336: e006 b.n 8024346 <icmp_input+0x1c6>
  89284. } else {
  89285. iecho->chksum = (u16_t)(iecho->chksum + PP_HTONS(ICMP_ECHO << 8));
  89286. 8024338: 693b ldr r3, [r7, #16]
  89287. 802433a: 885b ldrh r3, [r3, #2]
  89288. 802433c: b29b uxth r3, r3
  89289. 802433e: 3308 adds r3, #8
  89290. 8024340: b29a uxth r2, r3
  89291. 8024342: 693b ldr r3, [r7, #16]
  89292. 8024344: 805a strh r2, [r3, #2]
  89293. #else /* CHECKSUM_GEN_ICMP */
  89294. iecho->chksum = 0;
  89295. #endif /* CHECKSUM_GEN_ICMP */
  89296. /* Set the correct TTL and recalculate the header checksum. */
  89297. IPH_TTL_SET(iphdr, ICMP_TTL);
  89298. 8024346: 68fb ldr r3, [r7, #12]
  89299. 8024348: 22ff movs r2, #255 @ 0xff
  89300. 802434a: 721a strb r2, [r3, #8]
  89301. IPH_CHKSUM_SET(iphdr, 0);
  89302. 802434c: 68fb ldr r3, [r7, #12]
  89303. 802434e: 2200 movs r2, #0
  89304. 8024350: 729a strb r2, [r3, #10]
  89305. 8024352: 2200 movs r2, #0
  89306. 8024354: 72da strb r2, [r3, #11]
  89307. MIB2_STATS_INC(mib2.icmpoutmsgs);
  89308. /* increase number of echo replies attempted to send */
  89309. MIB2_STATS_INC(mib2.icmpoutechoreps);
  89310. /* send an ICMP packet */
  89311. ret = ip4_output_if(p, src, LWIP_IP_HDRINCL,
  89312. 8024356: 683b ldr r3, [r7, #0]
  89313. 8024358: 9302 str r3, [sp, #8]
  89314. 802435a: 2301 movs r3, #1
  89315. 802435c: 9301 str r3, [sp, #4]
  89316. 802435e: 2300 movs r3, #0
  89317. 8024360: 9300 str r3, [sp, #0]
  89318. 8024362: 23ff movs r3, #255 @ 0xff
  89319. 8024364: 2200 movs r2, #0
  89320. 8024366: 69f9 ldr r1, [r7, #28]
  89321. 8024368: 6878 ldr r0, [r7, #4]
  89322. 802436a: f000 fa9f bl 80248ac <ip4_output_if>
  89323. 802436e: 4603 mov r3, r0
  89324. 8024370: 72fb strb r3, [r7, #11]
  89325. ICMP_TTL, 0, IP_PROTO_ICMP, inp);
  89326. if (ret != ERR_OK) {
  89327. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: ip_output_if returned an error: %s\n", lwip_strerr(ret)));
  89328. }
  89329. }
  89330. break;
  89331. 8024372: e001 b.n 8024378 <icmp_input+0x1f8>
  89332. break;
  89333. 8024374: bf00 nop
  89334. 8024376: e000 b.n 802437a <icmp_input+0x1fa>
  89335. break;
  89336. 8024378: bf00 nop
  89337. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: ICMP type %"S16_F" code %"S16_F" not supported.\n",
  89338. (s16_t)type, (s16_t)code));
  89339. ICMP_STATS_INC(icmp.proterr);
  89340. ICMP_STATS_INC(icmp.drop);
  89341. }
  89342. pbuf_free(p);
  89343. 802437a: 6878 ldr r0, [r7, #4]
  89344. 802437c: f7f5 fe4e bl 801a01c <pbuf_free>
  89345. return;
  89346. 8024380: e013 b.n 80243aa <icmp_input+0x22a>
  89347. goto lenerr;
  89348. 8024382: bf00 nop
  89349. 8024384: e002 b.n 802438c <icmp_input+0x20c>
  89350. goto lenerr;
  89351. 8024386: bf00 nop
  89352. 8024388: e000 b.n 802438c <icmp_input+0x20c>
  89353. goto lenerr;
  89354. 802438a: bf00 nop
  89355. lenerr:
  89356. pbuf_free(p);
  89357. 802438c: 6878 ldr r0, [r7, #4]
  89358. 802438e: f7f5 fe45 bl 801a01c <pbuf_free>
  89359. ICMP_STATS_INC(icmp.lenerr);
  89360. MIB2_STATS_INC(mib2.icmpinerrors);
  89361. return;
  89362. 8024392: e00a b.n 80243aa <icmp_input+0x22a>
  89363. goto icmperr;
  89364. 8024394: bf00 nop
  89365. 8024396: e004 b.n 80243a2 <icmp_input+0x222>
  89366. goto icmperr;
  89367. 8024398: bf00 nop
  89368. 802439a: e002 b.n 80243a2 <icmp_input+0x222>
  89369. goto icmperr;
  89370. 802439c: bf00 nop
  89371. 802439e: e000 b.n 80243a2 <icmp_input+0x222>
  89372. goto icmperr;
  89373. 80243a0: bf00 nop
  89374. #if LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN || !LWIP_MULTICAST_PING || !LWIP_BROADCAST_PING
  89375. icmperr:
  89376. pbuf_free(p);
  89377. 80243a2: 6878 ldr r0, [r7, #4]
  89378. 80243a4: f7f5 fe3a bl 801a01c <pbuf_free>
  89379. ICMP_STATS_INC(icmp.err);
  89380. MIB2_STATS_INC(mib2.icmpinerrors);
  89381. return;
  89382. 80243a8: bf00 nop
  89383. #endif /* LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN || !LWIP_MULTICAST_PING || !LWIP_BROADCAST_PING */
  89384. }
  89385. 80243aa: 3728 adds r7, #40 @ 0x28
  89386. 80243ac: 46bd mov sp, r7
  89387. 80243ae: bd80 pop {r7, pc}
  89388. 80243b0: 2402349c .word 0x2402349c
  89389. 80243b4: 240234b0 .word 0x240234b0
  89390. 80243b8: 08030000 .word 0x08030000
  89391. 80243bc: 08030038 .word 0x08030038
  89392. 80243c0: 08030070 .word 0x08030070
  89393. 80243c4: 08030098 .word 0x08030098
  89394. 080243c8 <icmp_dest_unreach>:
  89395. * p->payload pointing to the IP header
  89396. * @param t type of the 'unreachable' packet
  89397. */
  89398. void
  89399. icmp_dest_unreach(struct pbuf *p, enum icmp_dur_type t)
  89400. {
  89401. 80243c8: b580 push {r7, lr}
  89402. 80243ca: b082 sub sp, #8
  89403. 80243cc: af00 add r7, sp, #0
  89404. 80243ce: 6078 str r0, [r7, #4]
  89405. 80243d0: 460b mov r3, r1
  89406. 80243d2: 70fb strb r3, [r7, #3]
  89407. MIB2_STATS_INC(mib2.icmpoutdestunreachs);
  89408. icmp_send_response(p, ICMP_DUR, t);
  89409. 80243d4: 78fb ldrb r3, [r7, #3]
  89410. 80243d6: 461a mov r2, r3
  89411. 80243d8: 2103 movs r1, #3
  89412. 80243da: 6878 ldr r0, [r7, #4]
  89413. 80243dc: f000 f814 bl 8024408 <icmp_send_response>
  89414. }
  89415. 80243e0: bf00 nop
  89416. 80243e2: 3708 adds r7, #8
  89417. 80243e4: 46bd mov sp, r7
  89418. 80243e6: bd80 pop {r7, pc}
  89419. 080243e8 <icmp_time_exceeded>:
  89420. * p->payload pointing to the IP header
  89421. * @param t type of the 'time exceeded' packet
  89422. */
  89423. void
  89424. icmp_time_exceeded(struct pbuf *p, enum icmp_te_type t)
  89425. {
  89426. 80243e8: b580 push {r7, lr}
  89427. 80243ea: b082 sub sp, #8
  89428. 80243ec: af00 add r7, sp, #0
  89429. 80243ee: 6078 str r0, [r7, #4]
  89430. 80243f0: 460b mov r3, r1
  89431. 80243f2: 70fb strb r3, [r7, #3]
  89432. MIB2_STATS_INC(mib2.icmpouttimeexcds);
  89433. icmp_send_response(p, ICMP_TE, t);
  89434. 80243f4: 78fb ldrb r3, [r7, #3]
  89435. 80243f6: 461a mov r2, r3
  89436. 80243f8: 210b movs r1, #11
  89437. 80243fa: 6878 ldr r0, [r7, #4]
  89438. 80243fc: f000 f804 bl 8024408 <icmp_send_response>
  89439. }
  89440. 8024400: bf00 nop
  89441. 8024402: 3708 adds r7, #8
  89442. 8024404: 46bd mov sp, r7
  89443. 8024406: bd80 pop {r7, pc}
  89444. 08024408 <icmp_send_response>:
  89445. * @param type Type of the ICMP header
  89446. * @param code Code of the ICMP header
  89447. */
  89448. static void
  89449. icmp_send_response(struct pbuf *p, u8_t type, u8_t code)
  89450. {
  89451. 8024408: b580 push {r7, lr}
  89452. 802440a: b08c sub sp, #48 @ 0x30
  89453. 802440c: af04 add r7, sp, #16
  89454. 802440e: 6078 str r0, [r7, #4]
  89455. 8024410: 460b mov r3, r1
  89456. 8024412: 70fb strb r3, [r7, #3]
  89457. 8024414: 4613 mov r3, r2
  89458. 8024416: 70bb strb r3, [r7, #2]
  89459. /* increase number of messages attempted to send */
  89460. MIB2_STATS_INC(mib2.icmpoutmsgs);
  89461. /* ICMP header + IP header + 8 bytes of data */
  89462. q = pbuf_alloc(PBUF_IP, sizeof(struct icmp_echo_hdr) + IP_HLEN + ICMP_DEST_UNREACH_DATASIZE,
  89463. 8024418: f44f 7220 mov.w r2, #640 @ 0x280
  89464. 802441c: 2124 movs r1, #36 @ 0x24
  89465. 802441e: 2022 movs r0, #34 @ 0x22
  89466. 8024420: f7f5 fae6 bl 80199f0 <pbuf_alloc>
  89467. 8024424: 61b8 str r0, [r7, #24]
  89468. PBUF_RAM);
  89469. if (q == NULL) {
  89470. 8024426: 69bb ldr r3, [r7, #24]
  89471. 8024428: 2b00 cmp r3, #0
  89472. 802442a: d056 beq.n 80244da <icmp_send_response+0xd2>
  89473. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_time_exceeded: failed to allocate pbuf for ICMP packet.\n"));
  89474. MIB2_STATS_INC(mib2.icmpouterrors);
  89475. return;
  89476. }
  89477. LWIP_ASSERT("check that first pbuf can hold icmp message",
  89478. 802442c: 69bb ldr r3, [r7, #24]
  89479. 802442e: 895b ldrh r3, [r3, #10]
  89480. 8024430: 2b23 cmp r3, #35 @ 0x23
  89481. 8024432: d806 bhi.n 8024442 <icmp_send_response+0x3a>
  89482. 8024434: 4b2b ldr r3, [pc, #172] @ (80244e4 <icmp_send_response+0xdc>)
  89483. 8024436: f44f 72b4 mov.w r2, #360 @ 0x168
  89484. 802443a: 492b ldr r1, [pc, #172] @ (80244e8 <icmp_send_response+0xe0>)
  89485. 802443c: 482b ldr r0, [pc, #172] @ (80244ec <icmp_send_response+0xe4>)
  89486. 802443e: f005 f865 bl 802950c <iprintf>
  89487. (q->len >= (sizeof(struct icmp_echo_hdr) + IP_HLEN + ICMP_DEST_UNREACH_DATASIZE)));
  89488. iphdr = (struct ip_hdr *)p->payload;
  89489. 8024442: 687b ldr r3, [r7, #4]
  89490. 8024444: 685b ldr r3, [r3, #4]
  89491. 8024446: 617b str r3, [r7, #20]
  89492. ip4_addr_debug_print_val(ICMP_DEBUG, iphdr->src);
  89493. LWIP_DEBUGF(ICMP_DEBUG, (" to "));
  89494. ip4_addr_debug_print_val(ICMP_DEBUG, iphdr->dest);
  89495. LWIP_DEBUGF(ICMP_DEBUG, ("\n"));
  89496. icmphdr = (struct icmp_echo_hdr *)q->payload;
  89497. 8024448: 69bb ldr r3, [r7, #24]
  89498. 802444a: 685b ldr r3, [r3, #4]
  89499. 802444c: 613b str r3, [r7, #16]
  89500. icmphdr->type = type;
  89501. 802444e: 693b ldr r3, [r7, #16]
  89502. 8024450: 78fa ldrb r2, [r7, #3]
  89503. 8024452: 701a strb r2, [r3, #0]
  89504. icmphdr->code = code;
  89505. 8024454: 693b ldr r3, [r7, #16]
  89506. 8024456: 78ba ldrb r2, [r7, #2]
  89507. 8024458: 705a strb r2, [r3, #1]
  89508. icmphdr->id = 0;
  89509. 802445a: 693b ldr r3, [r7, #16]
  89510. 802445c: 2200 movs r2, #0
  89511. 802445e: 711a strb r2, [r3, #4]
  89512. 8024460: 2200 movs r2, #0
  89513. 8024462: 715a strb r2, [r3, #5]
  89514. icmphdr->seqno = 0;
  89515. 8024464: 693b ldr r3, [r7, #16]
  89516. 8024466: 2200 movs r2, #0
  89517. 8024468: 719a strb r2, [r3, #6]
  89518. 802446a: 2200 movs r2, #0
  89519. 802446c: 71da strb r2, [r3, #7]
  89520. /* copy fields from original packet */
  89521. SMEMCPY((u8_t *)q->payload + sizeof(struct icmp_echo_hdr), (u8_t *)p->payload,
  89522. 802446e: 69bb ldr r3, [r7, #24]
  89523. 8024470: 685b ldr r3, [r3, #4]
  89524. 8024472: f103 0008 add.w r0, r3, #8
  89525. 8024476: 687b ldr r3, [r7, #4]
  89526. 8024478: 685b ldr r3, [r3, #4]
  89527. 802447a: 221c movs r2, #28
  89528. 802447c: 4619 mov r1, r3
  89529. 802447e: f005 face bl 8029a1e <memcpy>
  89530. IP_HLEN + ICMP_DEST_UNREACH_DATASIZE);
  89531. ip4_addr_copy(iphdr_src, iphdr->src);
  89532. 8024482: 697b ldr r3, [r7, #20]
  89533. 8024484: 68db ldr r3, [r3, #12]
  89534. 8024486: 60fb str r3, [r7, #12]
  89535. ip4_addr_t iphdr_dst;
  89536. ip4_addr_copy(iphdr_dst, iphdr->dest);
  89537. netif = ip4_route_src(&iphdr_dst, &iphdr_src);
  89538. }
  89539. #else
  89540. netif = ip4_route(&iphdr_src);
  89541. 8024488: f107 030c add.w r3, r7, #12
  89542. 802448c: 4618 mov r0, r3
  89543. 802448e: f000 f82f bl 80244f0 <ip4_route>
  89544. 8024492: 61f8 str r0, [r7, #28]
  89545. #endif
  89546. if (netif != NULL) {
  89547. 8024494: 69fb ldr r3, [r7, #28]
  89548. 8024496: 2b00 cmp r3, #0
  89549. 8024498: d01b beq.n 80244d2 <icmp_send_response+0xca>
  89550. /* calculate checksum */
  89551. icmphdr->chksum = 0;
  89552. 802449a: 693b ldr r3, [r7, #16]
  89553. 802449c: 2200 movs r2, #0
  89554. 802449e: 709a strb r2, [r3, #2]
  89555. 80244a0: 2200 movs r2, #0
  89556. 80244a2: 70da strb r2, [r3, #3]
  89557. #if CHECKSUM_GEN_ICMP
  89558. IF__NETIF_CHECKSUM_ENABLED(netif, NETIF_CHECKSUM_GEN_ICMP) {
  89559. icmphdr->chksum = inet_chksum(icmphdr, q->len);
  89560. 80244a4: 69bb ldr r3, [r7, #24]
  89561. 80244a6: 895b ldrh r3, [r3, #10]
  89562. 80244a8: 4619 mov r1, r3
  89563. 80244aa: 6938 ldr r0, [r7, #16]
  89564. 80244ac: f7f4 f95f bl 801876e <inet_chksum>
  89565. 80244b0: 4603 mov r3, r0
  89566. 80244b2: 461a mov r2, r3
  89567. 80244b4: 693b ldr r3, [r7, #16]
  89568. 80244b6: 805a strh r2, [r3, #2]
  89569. }
  89570. #endif
  89571. ICMP_STATS_INC(icmp.xmit);
  89572. ip4_output_if(q, NULL, &iphdr_src, ICMP_TTL, 0, IP_PROTO_ICMP, netif);
  89573. 80244b8: f107 020c add.w r2, r7, #12
  89574. 80244bc: 69fb ldr r3, [r7, #28]
  89575. 80244be: 9302 str r3, [sp, #8]
  89576. 80244c0: 2301 movs r3, #1
  89577. 80244c2: 9301 str r3, [sp, #4]
  89578. 80244c4: 2300 movs r3, #0
  89579. 80244c6: 9300 str r3, [sp, #0]
  89580. 80244c8: 23ff movs r3, #255 @ 0xff
  89581. 80244ca: 2100 movs r1, #0
  89582. 80244cc: 69b8 ldr r0, [r7, #24]
  89583. 80244ce: f000 f9ed bl 80248ac <ip4_output_if>
  89584. }
  89585. pbuf_free(q);
  89586. 80244d2: 69b8 ldr r0, [r7, #24]
  89587. 80244d4: f7f5 fda2 bl 801a01c <pbuf_free>
  89588. 80244d8: e000 b.n 80244dc <icmp_send_response+0xd4>
  89589. return;
  89590. 80244da: bf00 nop
  89591. }
  89592. 80244dc: 3720 adds r7, #32
  89593. 80244de: 46bd mov sp, r7
  89594. 80244e0: bd80 pop {r7, pc}
  89595. 80244e2: bf00 nop
  89596. 80244e4: 08030000 .word 0x08030000
  89597. 80244e8: 080300cc .word 0x080300cc
  89598. 80244ec: 08030070 .word 0x08030070
  89599. 080244f0 <ip4_route>:
  89600. * @param dest the destination IP address for which to find the route
  89601. * @return the netif on which to send to reach dest
  89602. */
  89603. struct netif *
  89604. ip4_route(const ip4_addr_t *dest)
  89605. {
  89606. 80244f0: b580 push {r7, lr}
  89607. 80244f2: b084 sub sp, #16
  89608. 80244f4: af00 add r7, sp, #0
  89609. 80244f6: 6078 str r0, [r7, #4]
  89610. #if !LWIP_SINGLE_NETIF
  89611. struct netif *netif;
  89612. LWIP_ASSERT_CORE_LOCKED();
  89613. 80244f8: f7eb fdba bl 8010070 <sys_check_core_locking>
  89614. /* bug #54569: in case LWIP_SINGLE_NETIF=1 and LWIP_DEBUGF() disabled, the following loop is optimized away */
  89615. LWIP_UNUSED_ARG(dest);
  89616. /* iterate through netifs */
  89617. NETIF_FOREACH(netif) {
  89618. 80244fc: 4b32 ldr r3, [pc, #200] @ (80245c8 <ip4_route+0xd8>)
  89619. 80244fe: 681b ldr r3, [r3, #0]
  89620. 8024500: 60fb str r3, [r7, #12]
  89621. 8024502: e036 b.n 8024572 <ip4_route+0x82>
  89622. /* is the netif up, does it have a link and a valid address? */
  89623. if (netif_is_up(netif) && netif_is_link_up(netif) && !ip4_addr_isany_val(*netif_ip4_addr(netif))) {
  89624. 8024504: 68fb ldr r3, [r7, #12]
  89625. 8024506: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  89626. 802450a: f003 0301 and.w r3, r3, #1
  89627. 802450e: b2db uxtb r3, r3
  89628. 8024510: 2b00 cmp r3, #0
  89629. 8024512: d02b beq.n 802456c <ip4_route+0x7c>
  89630. 8024514: 68fb ldr r3, [r7, #12]
  89631. 8024516: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  89632. 802451a: 089b lsrs r3, r3, #2
  89633. 802451c: f003 0301 and.w r3, r3, #1
  89634. 8024520: b2db uxtb r3, r3
  89635. 8024522: 2b00 cmp r3, #0
  89636. 8024524: d022 beq.n 802456c <ip4_route+0x7c>
  89637. 8024526: 68fb ldr r3, [r7, #12]
  89638. 8024528: 3304 adds r3, #4
  89639. 802452a: 681b ldr r3, [r3, #0]
  89640. 802452c: 2b00 cmp r3, #0
  89641. 802452e: d01d beq.n 802456c <ip4_route+0x7c>
  89642. /* network mask matches? */
  89643. if (ip4_addr_netcmp(dest, netif_ip4_addr(netif), netif_ip4_netmask(netif))) {
  89644. 8024530: 687b ldr r3, [r7, #4]
  89645. 8024532: 681a ldr r2, [r3, #0]
  89646. 8024534: 68fb ldr r3, [r7, #12]
  89647. 8024536: 3304 adds r3, #4
  89648. 8024538: 681b ldr r3, [r3, #0]
  89649. 802453a: 405a eors r2, r3
  89650. 802453c: 68fb ldr r3, [r7, #12]
  89651. 802453e: 3308 adds r3, #8
  89652. 8024540: 681b ldr r3, [r3, #0]
  89653. 8024542: 4013 ands r3, r2
  89654. 8024544: 2b00 cmp r3, #0
  89655. 8024546: d101 bne.n 802454c <ip4_route+0x5c>
  89656. /* return netif on which to forward IP packet */
  89657. return netif;
  89658. 8024548: 68fb ldr r3, [r7, #12]
  89659. 802454a: e038 b.n 80245be <ip4_route+0xce>
  89660. }
  89661. /* gateway matches on a non broadcast interface? (i.e. peer in a point to point interface) */
  89662. if (((netif->flags & NETIF_FLAG_BROADCAST) == 0) && ip4_addr_cmp(dest, netif_ip4_gw(netif))) {
  89663. 802454c: 68fb ldr r3, [r7, #12]
  89664. 802454e: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  89665. 8024552: f003 0302 and.w r3, r3, #2
  89666. 8024556: 2b00 cmp r3, #0
  89667. 8024558: d108 bne.n 802456c <ip4_route+0x7c>
  89668. 802455a: 687b ldr r3, [r7, #4]
  89669. 802455c: 681a ldr r2, [r3, #0]
  89670. 802455e: 68fb ldr r3, [r7, #12]
  89671. 8024560: 330c adds r3, #12
  89672. 8024562: 681b ldr r3, [r3, #0]
  89673. 8024564: 429a cmp r2, r3
  89674. 8024566: d101 bne.n 802456c <ip4_route+0x7c>
  89675. /* return netif on which to forward IP packet */
  89676. return netif;
  89677. 8024568: 68fb ldr r3, [r7, #12]
  89678. 802456a: e028 b.n 80245be <ip4_route+0xce>
  89679. NETIF_FOREACH(netif) {
  89680. 802456c: 68fb ldr r3, [r7, #12]
  89681. 802456e: 681b ldr r3, [r3, #0]
  89682. 8024570: 60fb str r3, [r7, #12]
  89683. 8024572: 68fb ldr r3, [r7, #12]
  89684. 8024574: 2b00 cmp r3, #0
  89685. 8024576: d1c5 bne.n 8024504 <ip4_route+0x14>
  89686. return netif;
  89687. }
  89688. #endif
  89689. #endif /* !LWIP_SINGLE_NETIF */
  89690. if ((netif_default == NULL) || !netif_is_up(netif_default) || !netif_is_link_up(netif_default) ||
  89691. 8024578: 4b14 ldr r3, [pc, #80] @ (80245cc <ip4_route+0xdc>)
  89692. 802457a: 681b ldr r3, [r3, #0]
  89693. 802457c: 2b00 cmp r3, #0
  89694. 802457e: d01a beq.n 80245b6 <ip4_route+0xc6>
  89695. 8024580: 4b12 ldr r3, [pc, #72] @ (80245cc <ip4_route+0xdc>)
  89696. 8024582: 681b ldr r3, [r3, #0]
  89697. 8024584: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  89698. 8024588: f003 0301 and.w r3, r3, #1
  89699. 802458c: 2b00 cmp r3, #0
  89700. 802458e: d012 beq.n 80245b6 <ip4_route+0xc6>
  89701. 8024590: 4b0e ldr r3, [pc, #56] @ (80245cc <ip4_route+0xdc>)
  89702. 8024592: 681b ldr r3, [r3, #0]
  89703. 8024594: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  89704. 8024598: f003 0304 and.w r3, r3, #4
  89705. 802459c: 2b00 cmp r3, #0
  89706. 802459e: d00a beq.n 80245b6 <ip4_route+0xc6>
  89707. ip4_addr_isany_val(*netif_ip4_addr(netif_default)) || ip4_addr_isloopback(dest)) {
  89708. 80245a0: 4b0a ldr r3, [pc, #40] @ (80245cc <ip4_route+0xdc>)
  89709. 80245a2: 681b ldr r3, [r3, #0]
  89710. 80245a4: 3304 adds r3, #4
  89711. 80245a6: 681b ldr r3, [r3, #0]
  89712. if ((netif_default == NULL) || !netif_is_up(netif_default) || !netif_is_link_up(netif_default) ||
  89713. 80245a8: 2b00 cmp r3, #0
  89714. 80245aa: d004 beq.n 80245b6 <ip4_route+0xc6>
  89715. ip4_addr_isany_val(*netif_ip4_addr(netif_default)) || ip4_addr_isloopback(dest)) {
  89716. 80245ac: 687b ldr r3, [r7, #4]
  89717. 80245ae: 681b ldr r3, [r3, #0]
  89718. 80245b0: b2db uxtb r3, r3
  89719. 80245b2: 2b7f cmp r3, #127 @ 0x7f
  89720. 80245b4: d101 bne.n 80245ba <ip4_route+0xca>
  89721. If this is not good enough for you, use LWIP_HOOK_IP4_ROUTE() */
  89722. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("ip4_route: No route to %"U16_F".%"U16_F".%"U16_F".%"U16_F"\n",
  89723. ip4_addr1_16(dest), ip4_addr2_16(dest), ip4_addr3_16(dest), ip4_addr4_16(dest)));
  89724. IP_STATS_INC(ip.rterr);
  89725. MIB2_STATS_INC(mib2.ipoutnoroutes);
  89726. return NULL;
  89727. 80245b6: 2300 movs r3, #0
  89728. 80245b8: e001 b.n 80245be <ip4_route+0xce>
  89729. }
  89730. return netif_default;
  89731. 80245ba: 4b04 ldr r3, [pc, #16] @ (80245cc <ip4_route+0xdc>)
  89732. 80245bc: 681b ldr r3, [r3, #0]
  89733. }
  89734. 80245be: 4618 mov r0, r3
  89735. 80245c0: 3710 adds r7, #16
  89736. 80245c2: 46bd mov sp, r7
  89737. 80245c4: bd80 pop {r7, pc}
  89738. 80245c6: bf00 nop
  89739. 80245c8: 24029fe0 .word 0x24029fe0
  89740. 80245cc: 24029fe4 .word 0x24029fe4
  89741. 080245d0 <ip4_input_accept>:
  89742. #endif /* IP_FORWARD */
  89743. /** Return true if the current input packet should be accepted on this netif */
  89744. static int
  89745. ip4_input_accept(struct netif *netif)
  89746. {
  89747. 80245d0: b580 push {r7, lr}
  89748. 80245d2: b082 sub sp, #8
  89749. 80245d4: af00 add r7, sp, #0
  89750. 80245d6: 6078 str r0, [r7, #4]
  89751. ip4_addr_get_u32(ip4_current_dest_addr()) & ip4_addr_get_u32(netif_ip4_netmask(netif)),
  89752. ip4_addr_get_u32(netif_ip4_addr(netif)) & ip4_addr_get_u32(netif_ip4_netmask(netif)),
  89753. ip4_addr_get_u32(ip4_current_dest_addr()) & ~ip4_addr_get_u32(netif_ip4_netmask(netif))));
  89754. /* interface is up and configured? */
  89755. if ((netif_is_up(netif)) && (!ip4_addr_isany_val(*netif_ip4_addr(netif)))) {
  89756. 80245d8: 687b ldr r3, [r7, #4]
  89757. 80245da: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  89758. 80245de: f003 0301 and.w r3, r3, #1
  89759. 80245e2: b2db uxtb r3, r3
  89760. 80245e4: 2b00 cmp r3, #0
  89761. 80245e6: d016 beq.n 8024616 <ip4_input_accept+0x46>
  89762. 80245e8: 687b ldr r3, [r7, #4]
  89763. 80245ea: 3304 adds r3, #4
  89764. 80245ec: 681b ldr r3, [r3, #0]
  89765. 80245ee: 2b00 cmp r3, #0
  89766. 80245f0: d011 beq.n 8024616 <ip4_input_accept+0x46>
  89767. /* unicast to this interface address? */
  89768. if (ip4_addr_cmp(ip4_current_dest_addr(), netif_ip4_addr(netif)) ||
  89769. 80245f2: 4b0b ldr r3, [pc, #44] @ (8024620 <ip4_input_accept+0x50>)
  89770. 80245f4: 695a ldr r2, [r3, #20]
  89771. 80245f6: 687b ldr r3, [r7, #4]
  89772. 80245f8: 3304 adds r3, #4
  89773. 80245fa: 681b ldr r3, [r3, #0]
  89774. 80245fc: 429a cmp r2, r3
  89775. 80245fe: d008 beq.n 8024612 <ip4_input_accept+0x42>
  89776. /* or broadcast on this interface network address? */
  89777. ip4_addr_isbroadcast(ip4_current_dest_addr(), netif)
  89778. 8024600: 4b07 ldr r3, [pc, #28] @ (8024620 <ip4_input_accept+0x50>)
  89779. 8024602: 695b ldr r3, [r3, #20]
  89780. 8024604: 6879 ldr r1, [r7, #4]
  89781. 8024606: 4618 mov r0, r3
  89782. 8024608: f000 fa2a bl 8024a60 <ip4_addr_isbroadcast_u32>
  89783. 802460c: 4603 mov r3, r0
  89784. if (ip4_addr_cmp(ip4_current_dest_addr(), netif_ip4_addr(netif)) ||
  89785. 802460e: 2b00 cmp r3, #0
  89786. 8024610: d001 beq.n 8024616 <ip4_input_accept+0x46>
  89787. #endif /* LWIP_NETIF_LOOPBACK && !LWIP_HAVE_LOOPIF */
  89788. ) {
  89789. LWIP_DEBUGF(IP_DEBUG, ("ip4_input: packet accepted on interface %c%c\n",
  89790. netif->name[0], netif->name[1]));
  89791. /* accept on this netif */
  89792. return 1;
  89793. 8024612: 2301 movs r3, #1
  89794. 8024614: e000 b.n 8024618 <ip4_input_accept+0x48>
  89795. /* accept on this netif */
  89796. return 1;
  89797. }
  89798. #endif /* LWIP_AUTOIP */
  89799. }
  89800. return 0;
  89801. 8024616: 2300 movs r3, #0
  89802. }
  89803. 8024618: 4618 mov r0, r3
  89804. 802461a: 3708 adds r7, #8
  89805. 802461c: 46bd mov sp, r7
  89806. 802461e: bd80 pop {r7, pc}
  89807. 8024620: 2402349c .word 0x2402349c
  89808. 08024624 <ip4_input>:
  89809. * @return ERR_OK if the packet was processed (could return ERR_* if it wasn't
  89810. * processed, but currently always returns ERR_OK)
  89811. */
  89812. err_t
  89813. ip4_input(struct pbuf *p, struct netif *inp)
  89814. {
  89815. 8024624: b580 push {r7, lr}
  89816. 8024626: b088 sub sp, #32
  89817. 8024628: af00 add r7, sp, #0
  89818. 802462a: 6078 str r0, [r7, #4]
  89819. 802462c: 6039 str r1, [r7, #0]
  89820. const struct ip_hdr *iphdr;
  89821. struct netif *netif;
  89822. u16_t iphdr_hlen;
  89823. u16_t iphdr_len;
  89824. #if IP_ACCEPT_LINK_LAYER_ADDRESSING || LWIP_IGMP
  89825. int check_ip_src = 1;
  89826. 802462e: 2301 movs r3, #1
  89827. 8024630: 617b str r3, [r7, #20]
  89828. #endif /* IP_ACCEPT_LINK_LAYER_ADDRESSING || LWIP_IGMP */
  89829. #if LWIP_RAW
  89830. raw_input_state_t raw_status;
  89831. #endif /* LWIP_RAW */
  89832. LWIP_ASSERT_CORE_LOCKED();
  89833. 8024632: f7eb fd1d bl 8010070 <sys_check_core_locking>
  89834. IP_STATS_INC(ip.recv);
  89835. MIB2_STATS_INC(mib2.ipinreceives);
  89836. /* identify the IP header */
  89837. iphdr = (struct ip_hdr *)p->payload;
  89838. 8024636: 687b ldr r3, [r7, #4]
  89839. 8024638: 685b ldr r3, [r3, #4]
  89840. 802463a: 613b str r3, [r7, #16]
  89841. if (IPH_V(iphdr) != 4) {
  89842. 802463c: 693b ldr r3, [r7, #16]
  89843. 802463e: 781b ldrb r3, [r3, #0]
  89844. 8024640: 091b lsrs r3, r3, #4
  89845. 8024642: b2db uxtb r3, r3
  89846. 8024644: 2b04 cmp r3, #4
  89847. 8024646: d004 beq.n 8024652 <ip4_input+0x2e>
  89848. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_WARNING, ("IP packet dropped due to bad version number %"U16_F"\n", (u16_t)IPH_V(iphdr)));
  89849. ip4_debug_print(p);
  89850. pbuf_free(p);
  89851. 8024648: 6878 ldr r0, [r7, #4]
  89852. 802464a: f7f5 fce7 bl 801a01c <pbuf_free>
  89853. IP_STATS_INC(ip.err);
  89854. IP_STATS_INC(ip.drop);
  89855. MIB2_STATS_INC(mib2.ipinhdrerrors);
  89856. return ERR_OK;
  89857. 802464e: 2300 movs r3, #0
  89858. 8024650: e123 b.n 802489a <ip4_input+0x276>
  89859. return ERR_OK;
  89860. }
  89861. #endif
  89862. /* obtain IP header length in bytes */
  89863. iphdr_hlen = IPH_HL_BYTES(iphdr);
  89864. 8024652: 693b ldr r3, [r7, #16]
  89865. 8024654: 781b ldrb r3, [r3, #0]
  89866. 8024656: f003 030f and.w r3, r3, #15
  89867. 802465a: b2db uxtb r3, r3
  89868. 802465c: 009b lsls r3, r3, #2
  89869. 802465e: b2db uxtb r3, r3
  89870. 8024660: 81fb strh r3, [r7, #14]
  89871. /* obtain ip length in bytes */
  89872. iphdr_len = lwip_ntohs(IPH_LEN(iphdr));
  89873. 8024662: 693b ldr r3, [r7, #16]
  89874. 8024664: 885b ldrh r3, [r3, #2]
  89875. 8024666: b29b uxth r3, r3
  89876. 8024668: 4618 mov r0, r3
  89877. 802466a: f7f3 fff5 bl 8018658 <lwip_htons>
  89878. 802466e: 4603 mov r3, r0
  89879. 8024670: 837b strh r3, [r7, #26]
  89880. /* Trim pbuf. This is especially required for packets < 60 bytes. */
  89881. if (iphdr_len < p->tot_len) {
  89882. 8024672: 687b ldr r3, [r7, #4]
  89883. 8024674: 891b ldrh r3, [r3, #8]
  89884. 8024676: 8b7a ldrh r2, [r7, #26]
  89885. 8024678: 429a cmp r2, r3
  89886. 802467a: d204 bcs.n 8024686 <ip4_input+0x62>
  89887. pbuf_realloc(p, iphdr_len);
  89888. 802467c: 8b7b ldrh r3, [r7, #26]
  89889. 802467e: 4619 mov r1, r3
  89890. 8024680: 6878 ldr r0, [r7, #4]
  89891. 8024682: f7f5 fb15 bl 8019cb0 <pbuf_realloc>
  89892. }
  89893. /* header length exceeds first pbuf length, or ip length exceeds total pbuf length? */
  89894. if ((iphdr_hlen > p->len) || (iphdr_len > p->tot_len) || (iphdr_hlen < IP_HLEN)) {
  89895. 8024686: 687b ldr r3, [r7, #4]
  89896. 8024688: 895b ldrh r3, [r3, #10]
  89897. 802468a: 89fa ldrh r2, [r7, #14]
  89898. 802468c: 429a cmp r2, r3
  89899. 802468e: d807 bhi.n 80246a0 <ip4_input+0x7c>
  89900. 8024690: 687b ldr r3, [r7, #4]
  89901. 8024692: 891b ldrh r3, [r3, #8]
  89902. 8024694: 8b7a ldrh r2, [r7, #26]
  89903. 8024696: 429a cmp r2, r3
  89904. 8024698: d802 bhi.n 80246a0 <ip4_input+0x7c>
  89905. 802469a: 89fb ldrh r3, [r7, #14]
  89906. 802469c: 2b13 cmp r3, #19
  89907. 802469e: d804 bhi.n 80246aa <ip4_input+0x86>
  89908. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS,
  89909. ("IP (len %"U16_F") is longer than pbuf (len %"U16_F"), IP packet dropped.\n",
  89910. iphdr_len, p->tot_len));
  89911. }
  89912. /* free (drop) packet pbufs */
  89913. pbuf_free(p);
  89914. 80246a0: 6878 ldr r0, [r7, #4]
  89915. 80246a2: f7f5 fcbb bl 801a01c <pbuf_free>
  89916. IP_STATS_INC(ip.lenerr);
  89917. IP_STATS_INC(ip.drop);
  89918. MIB2_STATS_INC(mib2.ipindiscards);
  89919. return ERR_OK;
  89920. 80246a6: 2300 movs r3, #0
  89921. 80246a8: e0f7 b.n 802489a <ip4_input+0x276>
  89922. }
  89923. }
  89924. #endif
  89925. /* copy IP addresses to aligned ip_addr_t */
  89926. ip_addr_copy_from_ip4(ip_data.current_iphdr_dest, iphdr->dest);
  89927. 80246aa: 693b ldr r3, [r7, #16]
  89928. 80246ac: 691b ldr r3, [r3, #16]
  89929. 80246ae: 4a7d ldr r2, [pc, #500] @ (80248a4 <ip4_input+0x280>)
  89930. 80246b0: 6153 str r3, [r2, #20]
  89931. ip_addr_copy_from_ip4(ip_data.current_iphdr_src, iphdr->src);
  89932. 80246b2: 693b ldr r3, [r7, #16]
  89933. 80246b4: 68db ldr r3, [r3, #12]
  89934. 80246b6: 4a7b ldr r2, [pc, #492] @ (80248a4 <ip4_input+0x280>)
  89935. 80246b8: 6113 str r3, [r2, #16]
  89936. /* match packet against an interface, i.e. is this packet for us? */
  89937. if (ip4_addr_ismulticast(ip4_current_dest_addr())) {
  89938. 80246ba: 4b7a ldr r3, [pc, #488] @ (80248a4 <ip4_input+0x280>)
  89939. 80246bc: 695b ldr r3, [r3, #20]
  89940. 80246be: f003 03f0 and.w r3, r3, #240 @ 0xf0
  89941. 80246c2: 2be0 cmp r3, #224 @ 0xe0
  89942. 80246c4: d112 bne.n 80246ec <ip4_input+0xc8>
  89943. netif = inp;
  89944. } else {
  89945. netif = NULL;
  89946. }
  89947. #else /* LWIP_IGMP */
  89948. if ((netif_is_up(inp)) && (!ip4_addr_isany_val(*netif_ip4_addr(inp)))) {
  89949. 80246c6: 683b ldr r3, [r7, #0]
  89950. 80246c8: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  89951. 80246cc: f003 0301 and.w r3, r3, #1
  89952. 80246d0: b2db uxtb r3, r3
  89953. 80246d2: 2b00 cmp r3, #0
  89954. 80246d4: d007 beq.n 80246e6 <ip4_input+0xc2>
  89955. 80246d6: 683b ldr r3, [r7, #0]
  89956. 80246d8: 3304 adds r3, #4
  89957. 80246da: 681b ldr r3, [r3, #0]
  89958. 80246dc: 2b00 cmp r3, #0
  89959. 80246de: d002 beq.n 80246e6 <ip4_input+0xc2>
  89960. netif = inp;
  89961. 80246e0: 683b ldr r3, [r7, #0]
  89962. 80246e2: 61fb str r3, [r7, #28]
  89963. 80246e4: e02a b.n 802473c <ip4_input+0x118>
  89964. } else {
  89965. netif = NULL;
  89966. 80246e6: 2300 movs r3, #0
  89967. 80246e8: 61fb str r3, [r7, #28]
  89968. 80246ea: e027 b.n 802473c <ip4_input+0x118>
  89969. }
  89970. #endif /* LWIP_IGMP */
  89971. } else {
  89972. /* start trying with inp. if that's not acceptable, start walking the
  89973. list of configured netifs. */
  89974. if (ip4_input_accept(inp)) {
  89975. 80246ec: 6838 ldr r0, [r7, #0]
  89976. 80246ee: f7ff ff6f bl 80245d0 <ip4_input_accept>
  89977. 80246f2: 4603 mov r3, r0
  89978. 80246f4: 2b00 cmp r3, #0
  89979. 80246f6: d002 beq.n 80246fe <ip4_input+0xda>
  89980. netif = inp;
  89981. 80246f8: 683b ldr r3, [r7, #0]
  89982. 80246fa: 61fb str r3, [r7, #28]
  89983. 80246fc: e01e b.n 802473c <ip4_input+0x118>
  89984. } else {
  89985. netif = NULL;
  89986. 80246fe: 2300 movs r3, #0
  89987. 8024700: 61fb str r3, [r7, #28]
  89988. #if !LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF
  89989. /* Packets sent to the loopback address must not be accepted on an
  89990. * interface that does not have the loopback address assigned to it,
  89991. * unless a non-loopback interface is used for loopback traffic. */
  89992. if (!ip4_addr_isloopback(ip4_current_dest_addr()))
  89993. 8024702: 4b68 ldr r3, [pc, #416] @ (80248a4 <ip4_input+0x280>)
  89994. 8024704: 695b ldr r3, [r3, #20]
  89995. 8024706: b2db uxtb r3, r3
  89996. 8024708: 2b7f cmp r3, #127 @ 0x7f
  89997. 802470a: d017 beq.n 802473c <ip4_input+0x118>
  89998. #endif /* !LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF */
  89999. {
  90000. #if !LWIP_SINGLE_NETIF
  90001. NETIF_FOREACH(netif) {
  90002. 802470c: 4b66 ldr r3, [pc, #408] @ (80248a8 <ip4_input+0x284>)
  90003. 802470e: 681b ldr r3, [r3, #0]
  90004. 8024710: 61fb str r3, [r7, #28]
  90005. 8024712: e00e b.n 8024732 <ip4_input+0x10e>
  90006. if (netif == inp) {
  90007. 8024714: 69fa ldr r2, [r7, #28]
  90008. 8024716: 683b ldr r3, [r7, #0]
  90009. 8024718: 429a cmp r2, r3
  90010. 802471a: d006 beq.n 802472a <ip4_input+0x106>
  90011. /* we checked that before already */
  90012. continue;
  90013. }
  90014. if (ip4_input_accept(netif)) {
  90015. 802471c: 69f8 ldr r0, [r7, #28]
  90016. 802471e: f7ff ff57 bl 80245d0 <ip4_input_accept>
  90017. 8024722: 4603 mov r3, r0
  90018. 8024724: 2b00 cmp r3, #0
  90019. 8024726: d108 bne.n 802473a <ip4_input+0x116>
  90020. 8024728: e000 b.n 802472c <ip4_input+0x108>
  90021. continue;
  90022. 802472a: bf00 nop
  90023. NETIF_FOREACH(netif) {
  90024. 802472c: 69fb ldr r3, [r7, #28]
  90025. 802472e: 681b ldr r3, [r3, #0]
  90026. 8024730: 61fb str r3, [r7, #28]
  90027. 8024732: 69fb ldr r3, [r7, #28]
  90028. 8024734: 2b00 cmp r3, #0
  90029. 8024736: d1ed bne.n 8024714 <ip4_input+0xf0>
  90030. 8024738: e000 b.n 802473c <ip4_input+0x118>
  90031. break;
  90032. 802473a: bf00 nop
  90033. * If you want to accept private broadcast communication while a netif is down,
  90034. * define LWIP_IP_ACCEPT_UDP_PORT(dst_port), e.g.:
  90035. *
  90036. * #define LWIP_IP_ACCEPT_UDP_PORT(dst_port) ((dst_port) == PP_NTOHS(12345))
  90037. */
  90038. if (netif == NULL) {
  90039. 802473c: 69fb ldr r3, [r7, #28]
  90040. 802473e: 2b00 cmp r3, #0
  90041. 8024740: d111 bne.n 8024766 <ip4_input+0x142>
  90042. /* remote port is DHCP server? */
  90043. if (IPH_PROTO(iphdr) == IP_PROTO_UDP) {
  90044. 8024742: 693b ldr r3, [r7, #16]
  90045. 8024744: 7a5b ldrb r3, [r3, #9]
  90046. 8024746: 2b11 cmp r3, #17
  90047. 8024748: d10d bne.n 8024766 <ip4_input+0x142>
  90048. const struct udp_hdr *udphdr = (const struct udp_hdr *)((const u8_t *)iphdr + iphdr_hlen);
  90049. 802474a: 89fb ldrh r3, [r7, #14]
  90050. 802474c: 693a ldr r2, [r7, #16]
  90051. 802474e: 4413 add r3, r2
  90052. 8024750: 60bb str r3, [r7, #8]
  90053. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_TRACE, ("ip4_input: UDP packet to DHCP client port %"U16_F"\n",
  90054. lwip_ntohs(udphdr->dest)));
  90055. if (IP_ACCEPT_LINK_LAYER_ADDRESSED_PORT(udphdr->dest)) {
  90056. 8024752: 68bb ldr r3, [r7, #8]
  90057. 8024754: 885b ldrh r3, [r3, #2]
  90058. 8024756: b29b uxth r3, r3
  90059. 8024758: f5b3 4f88 cmp.w r3, #17408 @ 0x4400
  90060. 802475c: d103 bne.n 8024766 <ip4_input+0x142>
  90061. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_TRACE, ("ip4_input: DHCP packet accepted.\n"));
  90062. netif = inp;
  90063. 802475e: 683b ldr r3, [r7, #0]
  90064. 8024760: 61fb str r3, [r7, #28]
  90065. check_ip_src = 0;
  90066. 8024762: 2300 movs r3, #0
  90067. 8024764: 617b str r3, [r7, #20]
  90068. }
  90069. #endif /* IP_ACCEPT_LINK_LAYER_ADDRESSING */
  90070. /* broadcast or multicast packet source address? Compliant with RFC 1122: 3.2.1.3 */
  90071. #if LWIP_IGMP || IP_ACCEPT_LINK_LAYER_ADDRESSING
  90072. if (check_ip_src
  90073. 8024766: 697b ldr r3, [r7, #20]
  90074. 8024768: 2b00 cmp r3, #0
  90075. 802476a: d017 beq.n 802479c <ip4_input+0x178>
  90076. #if IP_ACCEPT_LINK_LAYER_ADDRESSING
  90077. /* DHCP servers need 0.0.0.0 to be allowed as source address (RFC 1.1.2.2: 3.2.1.3/a) */
  90078. && !ip4_addr_isany_val(*ip4_current_src_addr())
  90079. 802476c: 4b4d ldr r3, [pc, #308] @ (80248a4 <ip4_input+0x280>)
  90080. 802476e: 691b ldr r3, [r3, #16]
  90081. 8024770: 2b00 cmp r3, #0
  90082. 8024772: d013 beq.n 802479c <ip4_input+0x178>
  90083. #endif /* IP_ACCEPT_LINK_LAYER_ADDRESSING */
  90084. )
  90085. #endif /* LWIP_IGMP || IP_ACCEPT_LINK_LAYER_ADDRESSING */
  90086. {
  90087. if ((ip4_addr_isbroadcast(ip4_current_src_addr(), inp)) ||
  90088. 8024774: 4b4b ldr r3, [pc, #300] @ (80248a4 <ip4_input+0x280>)
  90089. 8024776: 691b ldr r3, [r3, #16]
  90090. 8024778: 6839 ldr r1, [r7, #0]
  90091. 802477a: 4618 mov r0, r3
  90092. 802477c: f000 f970 bl 8024a60 <ip4_addr_isbroadcast_u32>
  90093. 8024780: 4603 mov r3, r0
  90094. 8024782: 2b00 cmp r3, #0
  90095. 8024784: d105 bne.n 8024792 <ip4_input+0x16e>
  90096. (ip4_addr_ismulticast(ip4_current_src_addr()))) {
  90097. 8024786: 4b47 ldr r3, [pc, #284] @ (80248a4 <ip4_input+0x280>)
  90098. 8024788: 691b ldr r3, [r3, #16]
  90099. 802478a: f003 03f0 and.w r3, r3, #240 @ 0xf0
  90100. if ((ip4_addr_isbroadcast(ip4_current_src_addr(), inp)) ||
  90101. 802478e: 2be0 cmp r3, #224 @ 0xe0
  90102. 8024790: d104 bne.n 802479c <ip4_input+0x178>
  90103. /* packet source is not valid */
  90104. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("ip4_input: packet source is not valid.\n"));
  90105. /* free (drop) packet pbufs */
  90106. pbuf_free(p);
  90107. 8024792: 6878 ldr r0, [r7, #4]
  90108. 8024794: f7f5 fc42 bl 801a01c <pbuf_free>
  90109. IP_STATS_INC(ip.drop);
  90110. MIB2_STATS_INC(mib2.ipinaddrerrors);
  90111. MIB2_STATS_INC(mib2.ipindiscards);
  90112. return ERR_OK;
  90113. 8024798: 2300 movs r3, #0
  90114. 802479a: e07e b.n 802489a <ip4_input+0x276>
  90115. }
  90116. }
  90117. /* packet not for us? */
  90118. if (netif == NULL) {
  90119. 802479c: 69fb ldr r3, [r7, #28]
  90120. 802479e: 2b00 cmp r3, #0
  90121. 80247a0: d104 bne.n 80247ac <ip4_input+0x188>
  90122. {
  90123. IP_STATS_INC(ip.drop);
  90124. MIB2_STATS_INC(mib2.ipinaddrerrors);
  90125. MIB2_STATS_INC(mib2.ipindiscards);
  90126. }
  90127. pbuf_free(p);
  90128. 80247a2: 6878 ldr r0, [r7, #4]
  90129. 80247a4: f7f5 fc3a bl 801a01c <pbuf_free>
  90130. return ERR_OK;
  90131. 80247a8: 2300 movs r3, #0
  90132. 80247aa: e076 b.n 802489a <ip4_input+0x276>
  90133. }
  90134. /* packet consists of multiple fragments? */
  90135. if ((IPH_OFFSET(iphdr) & PP_HTONS(IP_OFFMASK | IP_MF)) != 0) {
  90136. 80247ac: 693b ldr r3, [r7, #16]
  90137. 80247ae: 88db ldrh r3, [r3, #6]
  90138. 80247b0: b29b uxth r3, r3
  90139. 80247b2: 461a mov r2, r3
  90140. 80247b4: f64f 733f movw r3, #65343 @ 0xff3f
  90141. 80247b8: 4013 ands r3, r2
  90142. 80247ba: 2b00 cmp r3, #0
  90143. 80247bc: d00b beq.n 80247d6 <ip4_input+0x1b2>
  90144. #if IP_REASSEMBLY /* packet fragment reassembly code present? */
  90145. LWIP_DEBUGF(IP_DEBUG, ("IP packet is a fragment (id=0x%04"X16_F" tot_len=%"U16_F" len=%"U16_F" MF=%"U16_F" offset=%"U16_F"), calling ip4_reass()\n",
  90146. lwip_ntohs(IPH_ID(iphdr)), p->tot_len, lwip_ntohs(IPH_LEN(iphdr)), (u16_t)!!(IPH_OFFSET(iphdr) & PP_HTONS(IP_MF)), (u16_t)((lwip_ntohs(IPH_OFFSET(iphdr)) & IP_OFFMASK) * 8)));
  90147. /* reassemble the packet*/
  90148. p = ip4_reass(p);
  90149. 80247be: 6878 ldr r0, [r7, #4]
  90150. 80247c0: f000 fe62 bl 8025488 <ip4_reass>
  90151. 80247c4: 6078 str r0, [r7, #4]
  90152. /* packet not fully reassembled yet? */
  90153. if (p == NULL) {
  90154. 80247c6: 687b ldr r3, [r7, #4]
  90155. 80247c8: 2b00 cmp r3, #0
  90156. 80247ca: d101 bne.n 80247d0 <ip4_input+0x1ac>
  90157. return ERR_OK;
  90158. 80247cc: 2300 movs r3, #0
  90159. 80247ce: e064 b.n 802489a <ip4_input+0x276>
  90160. }
  90161. iphdr = (const struct ip_hdr *)p->payload;
  90162. 80247d0: 687b ldr r3, [r7, #4]
  90163. 80247d2: 685b ldr r3, [r3, #4]
  90164. 80247d4: 613b str r3, [r7, #16]
  90165. /* send to upper layers */
  90166. LWIP_DEBUGF(IP_DEBUG, ("ip4_input: \n"));
  90167. ip4_debug_print(p);
  90168. LWIP_DEBUGF(IP_DEBUG, ("ip4_input: p->len %"U16_F" p->tot_len %"U16_F"\n", p->len, p->tot_len));
  90169. ip_data.current_netif = netif;
  90170. 80247d6: 4a33 ldr r2, [pc, #204] @ (80248a4 <ip4_input+0x280>)
  90171. 80247d8: 69fb ldr r3, [r7, #28]
  90172. 80247da: 6013 str r3, [r2, #0]
  90173. ip_data.current_input_netif = inp;
  90174. 80247dc: 4a31 ldr r2, [pc, #196] @ (80248a4 <ip4_input+0x280>)
  90175. 80247de: 683b ldr r3, [r7, #0]
  90176. 80247e0: 6053 str r3, [r2, #4]
  90177. ip_data.current_ip4_header = iphdr;
  90178. 80247e2: 4a30 ldr r2, [pc, #192] @ (80248a4 <ip4_input+0x280>)
  90179. 80247e4: 693b ldr r3, [r7, #16]
  90180. 80247e6: 6093 str r3, [r2, #8]
  90181. ip_data.current_ip_header_tot_len = IPH_HL_BYTES(iphdr);
  90182. 80247e8: 693b ldr r3, [r7, #16]
  90183. 80247ea: 781b ldrb r3, [r3, #0]
  90184. 80247ec: f003 030f and.w r3, r3, #15
  90185. 80247f0: b2db uxtb r3, r3
  90186. 80247f2: 009b lsls r3, r3, #2
  90187. 80247f4: b2db uxtb r3, r3
  90188. 80247f6: 461a mov r2, r3
  90189. 80247f8: 4b2a ldr r3, [pc, #168] @ (80248a4 <ip4_input+0x280>)
  90190. 80247fa: 819a strh r2, [r3, #12]
  90191. /* raw input did not eat the packet? */
  90192. raw_status = raw_input(p, inp);
  90193. if (raw_status != RAW_INPUT_EATEN)
  90194. #endif /* LWIP_RAW */
  90195. {
  90196. pbuf_remove_header(p, iphdr_hlen); /* Move to payload, no check necessary. */
  90197. 80247fc: 89fb ldrh r3, [r7, #14]
  90198. 80247fe: 4619 mov r1, r3
  90199. 8024800: 6878 ldr r0, [r7, #4]
  90200. 8024802: f7f5 fb53 bl 8019eac <pbuf_remove_header>
  90201. switch (IPH_PROTO(iphdr)) {
  90202. 8024806: 693b ldr r3, [r7, #16]
  90203. 8024808: 7a5b ldrb r3, [r3, #9]
  90204. 802480a: 2b11 cmp r3, #17
  90205. 802480c: d006 beq.n 802481c <ip4_input+0x1f8>
  90206. 802480e: 2b11 cmp r3, #17
  90207. 8024810: dc13 bgt.n 802483a <ip4_input+0x216>
  90208. 8024812: 2b01 cmp r3, #1
  90209. 8024814: d00c beq.n 8024830 <ip4_input+0x20c>
  90210. 8024816: 2b06 cmp r3, #6
  90211. 8024818: d005 beq.n 8024826 <ip4_input+0x202>
  90212. 802481a: e00e b.n 802483a <ip4_input+0x216>
  90213. case IP_PROTO_UDP:
  90214. #if LWIP_UDPLITE
  90215. case IP_PROTO_UDPLITE:
  90216. #endif /* LWIP_UDPLITE */
  90217. MIB2_STATS_INC(mib2.ipindelivers);
  90218. udp_input(p, inp);
  90219. 802481c: 6839 ldr r1, [r7, #0]
  90220. 802481e: 6878 ldr r0, [r7, #4]
  90221. 8024820: f7fc f99c bl 8020b5c <udp_input>
  90222. break;
  90223. 8024824: e026 b.n 8024874 <ip4_input+0x250>
  90224. #endif /* LWIP_UDP */
  90225. #if LWIP_TCP
  90226. case IP_PROTO_TCP:
  90227. MIB2_STATS_INC(mib2.ipindelivers);
  90228. tcp_input(p, inp);
  90229. 8024826: 6839 ldr r1, [r7, #0]
  90230. 8024828: 6878 ldr r0, [r7, #4]
  90231. 802482a: f7f7 fcdd bl 801c1e8 <tcp_input>
  90232. break;
  90233. 802482e: e021 b.n 8024874 <ip4_input+0x250>
  90234. #endif /* LWIP_TCP */
  90235. #if LWIP_ICMP
  90236. case IP_PROTO_ICMP:
  90237. MIB2_STATS_INC(mib2.ipindelivers);
  90238. icmp_input(p, inp);
  90239. 8024830: 6839 ldr r1, [r7, #0]
  90240. 8024832: 6878 ldr r0, [r7, #4]
  90241. 8024834: f7ff fca4 bl 8024180 <icmp_input>
  90242. break;
  90243. 8024838: e01c b.n 8024874 <ip4_input+0x250>
  90244. } else
  90245. #endif /* LWIP_RAW */
  90246. {
  90247. #if LWIP_ICMP
  90248. /* send ICMP destination protocol unreachable unless is was a broadcast */
  90249. if (!ip4_addr_isbroadcast(ip4_current_dest_addr(), netif) &&
  90250. 802483a: 4b1a ldr r3, [pc, #104] @ (80248a4 <ip4_input+0x280>)
  90251. 802483c: 695b ldr r3, [r3, #20]
  90252. 802483e: 69f9 ldr r1, [r7, #28]
  90253. 8024840: 4618 mov r0, r3
  90254. 8024842: f000 f90d bl 8024a60 <ip4_addr_isbroadcast_u32>
  90255. 8024846: 4603 mov r3, r0
  90256. 8024848: 2b00 cmp r3, #0
  90257. 802484a: d10f bne.n 802486c <ip4_input+0x248>
  90258. !ip4_addr_ismulticast(ip4_current_dest_addr())) {
  90259. 802484c: 4b15 ldr r3, [pc, #84] @ (80248a4 <ip4_input+0x280>)
  90260. 802484e: 695b ldr r3, [r3, #20]
  90261. 8024850: f003 03f0 and.w r3, r3, #240 @ 0xf0
  90262. if (!ip4_addr_isbroadcast(ip4_current_dest_addr(), netif) &&
  90263. 8024854: 2be0 cmp r3, #224 @ 0xe0
  90264. 8024856: d009 beq.n 802486c <ip4_input+0x248>
  90265. pbuf_header_force(p, (s16_t)iphdr_hlen); /* Move to ip header, no check necessary. */
  90266. 8024858: f9b7 300e ldrsh.w r3, [r7, #14]
  90267. 802485c: 4619 mov r1, r3
  90268. 802485e: 6878 ldr r0, [r7, #4]
  90269. 8024860: f7f5 fb97 bl 8019f92 <pbuf_header_force>
  90270. icmp_dest_unreach(p, ICMP_DUR_PROTO);
  90271. 8024864: 2102 movs r1, #2
  90272. 8024866: 6878 ldr r0, [r7, #4]
  90273. 8024868: f7ff fdae bl 80243c8 <icmp_dest_unreach>
  90274. IP_STATS_INC(ip.proterr);
  90275. IP_STATS_INC(ip.drop);
  90276. MIB2_STATS_INC(mib2.ipinunknownprotos);
  90277. }
  90278. pbuf_free(p);
  90279. 802486c: 6878 ldr r0, [r7, #4]
  90280. 802486e: f7f5 fbd5 bl 801a01c <pbuf_free>
  90281. break;
  90282. 8024872: bf00 nop
  90283. }
  90284. }
  90285. /* @todo: this is not really necessary... */
  90286. ip_data.current_netif = NULL;
  90287. 8024874: 4b0b ldr r3, [pc, #44] @ (80248a4 <ip4_input+0x280>)
  90288. 8024876: 2200 movs r2, #0
  90289. 8024878: 601a str r2, [r3, #0]
  90290. ip_data.current_input_netif = NULL;
  90291. 802487a: 4b0a ldr r3, [pc, #40] @ (80248a4 <ip4_input+0x280>)
  90292. 802487c: 2200 movs r2, #0
  90293. 802487e: 605a str r2, [r3, #4]
  90294. ip_data.current_ip4_header = NULL;
  90295. 8024880: 4b08 ldr r3, [pc, #32] @ (80248a4 <ip4_input+0x280>)
  90296. 8024882: 2200 movs r2, #0
  90297. 8024884: 609a str r2, [r3, #8]
  90298. ip_data.current_ip_header_tot_len = 0;
  90299. 8024886: 4b07 ldr r3, [pc, #28] @ (80248a4 <ip4_input+0x280>)
  90300. 8024888: 2200 movs r2, #0
  90301. 802488a: 819a strh r2, [r3, #12]
  90302. ip4_addr_set_any(ip4_current_src_addr());
  90303. 802488c: 4b05 ldr r3, [pc, #20] @ (80248a4 <ip4_input+0x280>)
  90304. 802488e: 2200 movs r2, #0
  90305. 8024890: 611a str r2, [r3, #16]
  90306. ip4_addr_set_any(ip4_current_dest_addr());
  90307. 8024892: 4b04 ldr r3, [pc, #16] @ (80248a4 <ip4_input+0x280>)
  90308. 8024894: 2200 movs r2, #0
  90309. 8024896: 615a str r2, [r3, #20]
  90310. return ERR_OK;
  90311. 8024898: 2300 movs r3, #0
  90312. }
  90313. 802489a: 4618 mov r0, r3
  90314. 802489c: 3720 adds r7, #32
  90315. 802489e: 46bd mov sp, r7
  90316. 80248a0: bd80 pop {r7, pc}
  90317. 80248a2: bf00 nop
  90318. 80248a4: 2402349c .word 0x2402349c
  90319. 80248a8: 24029fe0 .word 0x24029fe0
  90320. 080248ac <ip4_output_if>:
  90321. */
  90322. err_t
  90323. ip4_output_if(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest,
  90324. u8_t ttl, u8_t tos,
  90325. u8_t proto, struct netif *netif)
  90326. {
  90327. 80248ac: b580 push {r7, lr}
  90328. 80248ae: b08a sub sp, #40 @ 0x28
  90329. 80248b0: af04 add r7, sp, #16
  90330. 80248b2: 60f8 str r0, [r7, #12]
  90331. 80248b4: 60b9 str r1, [r7, #8]
  90332. 80248b6: 607a str r2, [r7, #4]
  90333. 80248b8: 70fb strb r3, [r7, #3]
  90334. ip4_output_if_opt(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest,
  90335. u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options,
  90336. u16_t optlen)
  90337. {
  90338. #endif /* IP_OPTIONS_SEND */
  90339. const ip4_addr_t *src_used = src;
  90340. 80248ba: 68bb ldr r3, [r7, #8]
  90341. 80248bc: 617b str r3, [r7, #20]
  90342. if (dest != LWIP_IP_HDRINCL) {
  90343. 80248be: 687b ldr r3, [r7, #4]
  90344. 80248c0: 2b00 cmp r3, #0
  90345. 80248c2: d009 beq.n 80248d8 <ip4_output_if+0x2c>
  90346. if (ip4_addr_isany(src)) {
  90347. 80248c4: 68bb ldr r3, [r7, #8]
  90348. 80248c6: 2b00 cmp r3, #0
  90349. 80248c8: d003 beq.n 80248d2 <ip4_output_if+0x26>
  90350. 80248ca: 68bb ldr r3, [r7, #8]
  90351. 80248cc: 681b ldr r3, [r3, #0]
  90352. 80248ce: 2b00 cmp r3, #0
  90353. 80248d0: d102 bne.n 80248d8 <ip4_output_if+0x2c>
  90354. src_used = netif_ip4_addr(netif);
  90355. 80248d2: 6abb ldr r3, [r7, #40] @ 0x28
  90356. 80248d4: 3304 adds r3, #4
  90357. 80248d6: 617b str r3, [r7, #20]
  90358. #if IP_OPTIONS_SEND
  90359. return ip4_output_if_opt_src(p, src_used, dest, ttl, tos, proto, netif,
  90360. ip_options, optlen);
  90361. #else /* IP_OPTIONS_SEND */
  90362. return ip4_output_if_src(p, src_used, dest, ttl, tos, proto, netif);
  90363. 80248d8: 78fa ldrb r2, [r7, #3]
  90364. 80248da: 6abb ldr r3, [r7, #40] @ 0x28
  90365. 80248dc: 9302 str r3, [sp, #8]
  90366. 80248de: f897 3024 ldrb.w r3, [r7, #36] @ 0x24
  90367. 80248e2: 9301 str r3, [sp, #4]
  90368. 80248e4: f897 3020 ldrb.w r3, [r7, #32]
  90369. 80248e8: 9300 str r3, [sp, #0]
  90370. 80248ea: 4613 mov r3, r2
  90371. 80248ec: 687a ldr r2, [r7, #4]
  90372. 80248ee: 6979 ldr r1, [r7, #20]
  90373. 80248f0: 68f8 ldr r0, [r7, #12]
  90374. 80248f2: f000 f805 bl 8024900 <ip4_output_if_src>
  90375. 80248f6: 4603 mov r3, r0
  90376. #endif /* IP_OPTIONS_SEND */
  90377. }
  90378. 80248f8: 4618 mov r0, r3
  90379. 80248fa: 3718 adds r7, #24
  90380. 80248fc: 46bd mov sp, r7
  90381. 80248fe: bd80 pop {r7, pc}
  90382. 08024900 <ip4_output_if_src>:
  90383. */
  90384. err_t
  90385. ip4_output_if_src(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest,
  90386. u8_t ttl, u8_t tos,
  90387. u8_t proto, struct netif *netif)
  90388. {
  90389. 8024900: b580 push {r7, lr}
  90390. 8024902: b088 sub sp, #32
  90391. 8024904: af00 add r7, sp, #0
  90392. 8024906: 60f8 str r0, [r7, #12]
  90393. 8024908: 60b9 str r1, [r7, #8]
  90394. 802490a: 607a str r2, [r7, #4]
  90395. 802490c: 70fb strb r3, [r7, #3]
  90396. ip4_addr_t dest_addr;
  90397. #if CHECKSUM_GEN_IP_INLINE
  90398. u32_t chk_sum = 0;
  90399. #endif /* CHECKSUM_GEN_IP_INLINE */
  90400. LWIP_ASSERT_CORE_LOCKED();
  90401. 802490e: f7eb fbaf bl 8010070 <sys_check_core_locking>
  90402. LWIP_IP_CHECK_PBUF_REF_COUNT_FOR_TX(p);
  90403. 8024912: 68fb ldr r3, [r7, #12]
  90404. 8024914: 7b9b ldrb r3, [r3, #14]
  90405. 8024916: 2b01 cmp r3, #1
  90406. 8024918: d006 beq.n 8024928 <ip4_output_if_src+0x28>
  90407. 802491a: 4b4b ldr r3, [pc, #300] @ (8024a48 <ip4_output_if_src+0x148>)
  90408. 802491c: f44f 7255 mov.w r2, #852 @ 0x354
  90409. 8024920: 494a ldr r1, [pc, #296] @ (8024a4c <ip4_output_if_src+0x14c>)
  90410. 8024922: 484b ldr r0, [pc, #300] @ (8024a50 <ip4_output_if_src+0x150>)
  90411. 8024924: f004 fdf2 bl 802950c <iprintf>
  90412. MIB2_STATS_INC(mib2.ipoutrequests);
  90413. /* Should the IP header be generated or is it already included in p? */
  90414. if (dest != LWIP_IP_HDRINCL) {
  90415. 8024928: 687b ldr r3, [r7, #4]
  90416. 802492a: 2b00 cmp r3, #0
  90417. 802492c: d060 beq.n 80249f0 <ip4_output_if_src+0xf0>
  90418. u16_t ip_hlen = IP_HLEN;
  90419. 802492e: 2314 movs r3, #20
  90420. 8024930: 837b strh r3, [r7, #26]
  90421. }
  90422. #endif /* CHECKSUM_GEN_IP_INLINE */
  90423. }
  90424. #endif /* IP_OPTIONS_SEND */
  90425. /* generate IP header */
  90426. if (pbuf_add_header(p, IP_HLEN)) {
  90427. 8024932: 2114 movs r1, #20
  90428. 8024934: 68f8 ldr r0, [r7, #12]
  90429. 8024936: f7f5 faa9 bl 8019e8c <pbuf_add_header>
  90430. 802493a: 4603 mov r3, r0
  90431. 802493c: 2b00 cmp r3, #0
  90432. 802493e: d002 beq.n 8024946 <ip4_output_if_src+0x46>
  90433. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("ip4_output: not enough room for IP header in pbuf\n"));
  90434. IP_STATS_INC(ip.err);
  90435. MIB2_STATS_INC(mib2.ipoutdiscards);
  90436. return ERR_BUF;
  90437. 8024940: f06f 0301 mvn.w r3, #1
  90438. 8024944: e07c b.n 8024a40 <ip4_output_if_src+0x140>
  90439. }
  90440. iphdr = (struct ip_hdr *)p->payload;
  90441. 8024946: 68fb ldr r3, [r7, #12]
  90442. 8024948: 685b ldr r3, [r3, #4]
  90443. 802494a: 61fb str r3, [r7, #28]
  90444. LWIP_ASSERT("check that first pbuf can hold struct ip_hdr",
  90445. 802494c: 68fb ldr r3, [r7, #12]
  90446. 802494e: 895b ldrh r3, [r3, #10]
  90447. 8024950: 2b13 cmp r3, #19
  90448. 8024952: d806 bhi.n 8024962 <ip4_output_if_src+0x62>
  90449. 8024954: 4b3c ldr r3, [pc, #240] @ (8024a48 <ip4_output_if_src+0x148>)
  90450. 8024956: f44f 7262 mov.w r2, #904 @ 0x388
  90451. 802495a: 493e ldr r1, [pc, #248] @ (8024a54 <ip4_output_if_src+0x154>)
  90452. 802495c: 483c ldr r0, [pc, #240] @ (8024a50 <ip4_output_if_src+0x150>)
  90453. 802495e: f004 fdd5 bl 802950c <iprintf>
  90454. (p->len >= sizeof(struct ip_hdr)));
  90455. IPH_TTL_SET(iphdr, ttl);
  90456. 8024962: 69fb ldr r3, [r7, #28]
  90457. 8024964: 78fa ldrb r2, [r7, #3]
  90458. 8024966: 721a strb r2, [r3, #8]
  90459. IPH_PROTO_SET(iphdr, proto);
  90460. 8024968: 69fb ldr r3, [r7, #28]
  90461. 802496a: f897 202c ldrb.w r2, [r7, #44] @ 0x2c
  90462. 802496e: 725a strb r2, [r3, #9]
  90463. #if CHECKSUM_GEN_IP_INLINE
  90464. chk_sum += PP_NTOHS(proto | (ttl << 8));
  90465. #endif /* CHECKSUM_GEN_IP_INLINE */
  90466. /* dest cannot be NULL here */
  90467. ip4_addr_copy(iphdr->dest, *dest);
  90468. 8024970: 687b ldr r3, [r7, #4]
  90469. 8024972: 681a ldr r2, [r3, #0]
  90470. 8024974: 69fb ldr r3, [r7, #28]
  90471. 8024976: 611a str r2, [r3, #16]
  90472. #if CHECKSUM_GEN_IP_INLINE
  90473. chk_sum += ip4_addr_get_u32(&iphdr->dest) & 0xFFFF;
  90474. chk_sum += ip4_addr_get_u32(&iphdr->dest) >> 16;
  90475. #endif /* CHECKSUM_GEN_IP_INLINE */
  90476. IPH_VHL_SET(iphdr, 4, ip_hlen / 4);
  90477. 8024978: 8b7b ldrh r3, [r7, #26]
  90478. 802497a: 089b lsrs r3, r3, #2
  90479. 802497c: b29b uxth r3, r3
  90480. 802497e: b2db uxtb r3, r3
  90481. 8024980: f043 0340 orr.w r3, r3, #64 @ 0x40
  90482. 8024984: b2da uxtb r2, r3
  90483. 8024986: 69fb ldr r3, [r7, #28]
  90484. 8024988: 701a strb r2, [r3, #0]
  90485. IPH_TOS_SET(iphdr, tos);
  90486. 802498a: 69fb ldr r3, [r7, #28]
  90487. 802498c: f897 2028 ldrb.w r2, [r7, #40] @ 0x28
  90488. 8024990: 705a strb r2, [r3, #1]
  90489. #if CHECKSUM_GEN_IP_INLINE
  90490. chk_sum += PP_NTOHS(tos | (iphdr->_v_hl << 8));
  90491. #endif /* CHECKSUM_GEN_IP_INLINE */
  90492. IPH_LEN_SET(iphdr, lwip_htons(p->tot_len));
  90493. 8024992: 68fb ldr r3, [r7, #12]
  90494. 8024994: 891b ldrh r3, [r3, #8]
  90495. 8024996: 4618 mov r0, r3
  90496. 8024998: f7f3 fe5e bl 8018658 <lwip_htons>
  90497. 802499c: 4603 mov r3, r0
  90498. 802499e: 461a mov r2, r3
  90499. 80249a0: 69fb ldr r3, [r7, #28]
  90500. 80249a2: 805a strh r2, [r3, #2]
  90501. #if CHECKSUM_GEN_IP_INLINE
  90502. chk_sum += iphdr->_len;
  90503. #endif /* CHECKSUM_GEN_IP_INLINE */
  90504. IPH_OFFSET_SET(iphdr, 0);
  90505. 80249a4: 69fb ldr r3, [r7, #28]
  90506. 80249a6: 2200 movs r2, #0
  90507. 80249a8: 719a strb r2, [r3, #6]
  90508. 80249aa: 2200 movs r2, #0
  90509. 80249ac: 71da strb r2, [r3, #7]
  90510. IPH_ID_SET(iphdr, lwip_htons(ip_id));
  90511. 80249ae: 4b2a ldr r3, [pc, #168] @ (8024a58 <ip4_output_if_src+0x158>)
  90512. 80249b0: 881b ldrh r3, [r3, #0]
  90513. 80249b2: 4618 mov r0, r3
  90514. 80249b4: f7f3 fe50 bl 8018658 <lwip_htons>
  90515. 80249b8: 4603 mov r3, r0
  90516. 80249ba: 461a mov r2, r3
  90517. 80249bc: 69fb ldr r3, [r7, #28]
  90518. 80249be: 809a strh r2, [r3, #4]
  90519. #if CHECKSUM_GEN_IP_INLINE
  90520. chk_sum += iphdr->_id;
  90521. #endif /* CHECKSUM_GEN_IP_INLINE */
  90522. ++ip_id;
  90523. 80249c0: 4b25 ldr r3, [pc, #148] @ (8024a58 <ip4_output_if_src+0x158>)
  90524. 80249c2: 881b ldrh r3, [r3, #0]
  90525. 80249c4: 3301 adds r3, #1
  90526. 80249c6: b29a uxth r2, r3
  90527. 80249c8: 4b23 ldr r3, [pc, #140] @ (8024a58 <ip4_output_if_src+0x158>)
  90528. 80249ca: 801a strh r2, [r3, #0]
  90529. if (src == NULL) {
  90530. 80249cc: 68bb ldr r3, [r7, #8]
  90531. 80249ce: 2b00 cmp r3, #0
  90532. 80249d0: d104 bne.n 80249dc <ip4_output_if_src+0xdc>
  90533. ip4_addr_copy(iphdr->src, *IP4_ADDR_ANY4);
  90534. 80249d2: 4b22 ldr r3, [pc, #136] @ (8024a5c <ip4_output_if_src+0x15c>)
  90535. 80249d4: 681a ldr r2, [r3, #0]
  90536. 80249d6: 69fb ldr r3, [r7, #28]
  90537. 80249d8: 60da str r2, [r3, #12]
  90538. 80249da: e003 b.n 80249e4 <ip4_output_if_src+0xe4>
  90539. } else {
  90540. /* src cannot be NULL here */
  90541. ip4_addr_copy(iphdr->src, *src);
  90542. 80249dc: 68bb ldr r3, [r7, #8]
  90543. 80249de: 681a ldr r2, [r3, #0]
  90544. 80249e0: 69fb ldr r3, [r7, #28]
  90545. 80249e2: 60da str r2, [r3, #12]
  90546. else {
  90547. IPH_CHKSUM_SET(iphdr, 0);
  90548. }
  90549. #endif /* LWIP_CHECKSUM_CTRL_PER_NETIF*/
  90550. #else /* CHECKSUM_GEN_IP_INLINE */
  90551. IPH_CHKSUM_SET(iphdr, 0);
  90552. 80249e4: 69fb ldr r3, [r7, #28]
  90553. 80249e6: 2200 movs r2, #0
  90554. 80249e8: 729a strb r2, [r3, #10]
  90555. 80249ea: 2200 movs r2, #0
  90556. 80249ec: 72da strb r2, [r3, #11]
  90557. 80249ee: e00f b.n 8024a10 <ip4_output_if_src+0x110>
  90558. }
  90559. #endif /* CHECKSUM_GEN_IP */
  90560. #endif /* CHECKSUM_GEN_IP_INLINE */
  90561. } else {
  90562. /* IP header already included in p */
  90563. if (p->len < IP_HLEN) {
  90564. 80249f0: 68fb ldr r3, [r7, #12]
  90565. 80249f2: 895b ldrh r3, [r3, #10]
  90566. 80249f4: 2b13 cmp r3, #19
  90567. 80249f6: d802 bhi.n 80249fe <ip4_output_if_src+0xfe>
  90568. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("ip4_output: LWIP_IP_HDRINCL but pbuf is too short\n"));
  90569. IP_STATS_INC(ip.err);
  90570. MIB2_STATS_INC(mib2.ipoutdiscards);
  90571. return ERR_BUF;
  90572. 80249f8: f06f 0301 mvn.w r3, #1
  90573. 80249fc: e020 b.n 8024a40 <ip4_output_if_src+0x140>
  90574. }
  90575. iphdr = (struct ip_hdr *)p->payload;
  90576. 80249fe: 68fb ldr r3, [r7, #12]
  90577. 8024a00: 685b ldr r3, [r3, #4]
  90578. 8024a02: 61fb str r3, [r7, #28]
  90579. ip4_addr_copy(dest_addr, iphdr->dest);
  90580. 8024a04: 69fb ldr r3, [r7, #28]
  90581. 8024a06: 691b ldr r3, [r3, #16]
  90582. 8024a08: 617b str r3, [r7, #20]
  90583. dest = &dest_addr;
  90584. 8024a0a: f107 0314 add.w r3, r7, #20
  90585. 8024a0e: 607b str r3, [r7, #4]
  90586. }
  90587. #endif /* LWIP_MULTICAST_TX_OPTIONS */
  90588. #endif /* ENABLE_LOOPBACK */
  90589. #if IP_FRAG
  90590. /* don't fragment if interface has mtu set to 0 [loopif] */
  90591. if (netif->mtu && (p->tot_len > netif->mtu)) {
  90592. 8024a10: 6b3b ldr r3, [r7, #48] @ 0x30
  90593. 8024a12: 8d1b ldrh r3, [r3, #40] @ 0x28
  90594. 8024a14: 2b00 cmp r3, #0
  90595. 8024a16: d00c beq.n 8024a32 <ip4_output_if_src+0x132>
  90596. 8024a18: 68fb ldr r3, [r7, #12]
  90597. 8024a1a: 891a ldrh r2, [r3, #8]
  90598. 8024a1c: 6b3b ldr r3, [r7, #48] @ 0x30
  90599. 8024a1e: 8d1b ldrh r3, [r3, #40] @ 0x28
  90600. 8024a20: 429a cmp r2, r3
  90601. 8024a22: d906 bls.n 8024a32 <ip4_output_if_src+0x132>
  90602. return ip4_frag(p, netif, dest);
  90603. 8024a24: 687a ldr r2, [r7, #4]
  90604. 8024a26: 6b39 ldr r1, [r7, #48] @ 0x30
  90605. 8024a28: 68f8 ldr r0, [r7, #12]
  90606. 8024a2a: f000 ff21 bl 8025870 <ip4_frag>
  90607. 8024a2e: 4603 mov r3, r0
  90608. 8024a30: e006 b.n 8024a40 <ip4_output_if_src+0x140>
  90609. }
  90610. #endif /* IP_FRAG */
  90611. LWIP_DEBUGF(IP_DEBUG, ("ip4_output_if: call netif->output()\n"));
  90612. return netif->output(netif, p, dest);
  90613. 8024a32: 6b3b ldr r3, [r7, #48] @ 0x30
  90614. 8024a34: 695b ldr r3, [r3, #20]
  90615. 8024a36: 687a ldr r2, [r7, #4]
  90616. 8024a38: 68f9 ldr r1, [r7, #12]
  90617. 8024a3a: 6b38 ldr r0, [r7, #48] @ 0x30
  90618. 8024a3c: 4798 blx r3
  90619. 8024a3e: 4603 mov r3, r0
  90620. }
  90621. 8024a40: 4618 mov r0, r3
  90622. 8024a42: 3720 adds r7, #32
  90623. 8024a44: 46bd mov sp, r7
  90624. 8024a46: bd80 pop {r7, pc}
  90625. 8024a48: 080300f8 .word 0x080300f8
  90626. 8024a4c: 0803012c .word 0x0803012c
  90627. 8024a50: 08030138 .word 0x08030138
  90628. 8024a54: 08030160 .word 0x08030160
  90629. 8024a58: 2402a176 .word 0x2402a176
  90630. 8024a5c: 080307a4 .word 0x080307a4
  90631. 08024a60 <ip4_addr_isbroadcast_u32>:
  90632. * @param netif the network interface against which the address is checked
  90633. * @return returns non-zero if the address is a broadcast address
  90634. */
  90635. u8_t
  90636. ip4_addr_isbroadcast_u32(u32_t addr, const struct netif *netif)
  90637. {
  90638. 8024a60: b480 push {r7}
  90639. 8024a62: b085 sub sp, #20
  90640. 8024a64: af00 add r7, sp, #0
  90641. 8024a66: 6078 str r0, [r7, #4]
  90642. 8024a68: 6039 str r1, [r7, #0]
  90643. ip4_addr_t ipaddr;
  90644. ip4_addr_set_u32(&ipaddr, addr);
  90645. 8024a6a: 687b ldr r3, [r7, #4]
  90646. 8024a6c: 60fb str r3, [r7, #12]
  90647. /* all ones (broadcast) or all zeroes (old skool broadcast) */
  90648. if ((~addr == IPADDR_ANY) ||
  90649. 8024a6e: 687b ldr r3, [r7, #4]
  90650. 8024a70: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  90651. 8024a74: d002 beq.n 8024a7c <ip4_addr_isbroadcast_u32+0x1c>
  90652. 8024a76: 687b ldr r3, [r7, #4]
  90653. 8024a78: 2b00 cmp r3, #0
  90654. 8024a7a: d101 bne.n 8024a80 <ip4_addr_isbroadcast_u32+0x20>
  90655. (addr == IPADDR_ANY)) {
  90656. return 1;
  90657. 8024a7c: 2301 movs r3, #1
  90658. 8024a7e: e02a b.n 8024ad6 <ip4_addr_isbroadcast_u32+0x76>
  90659. /* no broadcast support on this network interface? */
  90660. } else if ((netif->flags & NETIF_FLAG_BROADCAST) == 0) {
  90661. 8024a80: 683b ldr r3, [r7, #0]
  90662. 8024a82: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  90663. 8024a86: f003 0302 and.w r3, r3, #2
  90664. 8024a8a: 2b00 cmp r3, #0
  90665. 8024a8c: d101 bne.n 8024a92 <ip4_addr_isbroadcast_u32+0x32>
  90666. /* the given address cannot be a broadcast address
  90667. * nor can we check against any broadcast addresses */
  90668. return 0;
  90669. 8024a8e: 2300 movs r3, #0
  90670. 8024a90: e021 b.n 8024ad6 <ip4_addr_isbroadcast_u32+0x76>
  90671. /* address matches network interface address exactly? => no broadcast */
  90672. } else if (addr == ip4_addr_get_u32(netif_ip4_addr(netif))) {
  90673. 8024a92: 683b ldr r3, [r7, #0]
  90674. 8024a94: 3304 adds r3, #4
  90675. 8024a96: 681b ldr r3, [r3, #0]
  90676. 8024a98: 687a ldr r2, [r7, #4]
  90677. 8024a9a: 429a cmp r2, r3
  90678. 8024a9c: d101 bne.n 8024aa2 <ip4_addr_isbroadcast_u32+0x42>
  90679. return 0;
  90680. 8024a9e: 2300 movs r3, #0
  90681. 8024aa0: e019 b.n 8024ad6 <ip4_addr_isbroadcast_u32+0x76>
  90682. /* on the same (sub) network... */
  90683. } else if (ip4_addr_netcmp(&ipaddr, netif_ip4_addr(netif), netif_ip4_netmask(netif))
  90684. 8024aa2: 68fa ldr r2, [r7, #12]
  90685. 8024aa4: 683b ldr r3, [r7, #0]
  90686. 8024aa6: 3304 adds r3, #4
  90687. 8024aa8: 681b ldr r3, [r3, #0]
  90688. 8024aaa: 405a eors r2, r3
  90689. 8024aac: 683b ldr r3, [r7, #0]
  90690. 8024aae: 3308 adds r3, #8
  90691. 8024ab0: 681b ldr r3, [r3, #0]
  90692. 8024ab2: 4013 ands r3, r2
  90693. 8024ab4: 2b00 cmp r3, #0
  90694. 8024ab6: d10d bne.n 8024ad4 <ip4_addr_isbroadcast_u32+0x74>
  90695. /* ...and host identifier bits are all ones? =>... */
  90696. && ((addr & ~ip4_addr_get_u32(netif_ip4_netmask(netif))) ==
  90697. 8024ab8: 683b ldr r3, [r7, #0]
  90698. 8024aba: 3308 adds r3, #8
  90699. 8024abc: 681b ldr r3, [r3, #0]
  90700. 8024abe: 43da mvns r2, r3
  90701. 8024ac0: 687b ldr r3, [r7, #4]
  90702. 8024ac2: 401a ands r2, r3
  90703. (IPADDR_BROADCAST & ~ip4_addr_get_u32(netif_ip4_netmask(netif))))) {
  90704. 8024ac4: 683b ldr r3, [r7, #0]
  90705. 8024ac6: 3308 adds r3, #8
  90706. 8024ac8: 681b ldr r3, [r3, #0]
  90707. 8024aca: 43db mvns r3, r3
  90708. && ((addr & ~ip4_addr_get_u32(netif_ip4_netmask(netif))) ==
  90709. 8024acc: 429a cmp r2, r3
  90710. 8024ace: d101 bne.n 8024ad4 <ip4_addr_isbroadcast_u32+0x74>
  90711. /* => network broadcast address */
  90712. return 1;
  90713. 8024ad0: 2301 movs r3, #1
  90714. 8024ad2: e000 b.n 8024ad6 <ip4_addr_isbroadcast_u32+0x76>
  90715. } else {
  90716. return 0;
  90717. 8024ad4: 2300 movs r3, #0
  90718. }
  90719. }
  90720. 8024ad6: 4618 mov r0, r3
  90721. 8024ad8: 3714 adds r7, #20
  90722. 8024ada: 46bd mov sp, r7
  90723. 8024adc: f85d 7b04 ldr.w r7, [sp], #4
  90724. 8024ae0: 4770 bx lr
  90725. 08024ae2 <ipaddr_addr>:
  90726. * @param cp IP address in ascii representation (e.g. "127.0.0.1")
  90727. * @return ip address in network order
  90728. */
  90729. u32_t
  90730. ipaddr_addr(const char *cp)
  90731. {
  90732. 8024ae2: b580 push {r7, lr}
  90733. 8024ae4: b084 sub sp, #16
  90734. 8024ae6: af00 add r7, sp, #0
  90735. 8024ae8: 6078 str r0, [r7, #4]
  90736. ip4_addr_t val;
  90737. if (ip4addr_aton(cp, &val)) {
  90738. 8024aea: f107 030c add.w r3, r7, #12
  90739. 8024aee: 4619 mov r1, r3
  90740. 8024af0: 6878 ldr r0, [r7, #4]
  90741. 8024af2: f000 f80b bl 8024b0c <ip4addr_aton>
  90742. 8024af6: 4603 mov r3, r0
  90743. 8024af8: 2b00 cmp r3, #0
  90744. 8024afa: d001 beq.n 8024b00 <ipaddr_addr+0x1e>
  90745. return ip4_addr_get_u32(&val);
  90746. 8024afc: 68fb ldr r3, [r7, #12]
  90747. 8024afe: e001 b.n 8024b04 <ipaddr_addr+0x22>
  90748. }
  90749. return (IPADDR_NONE);
  90750. 8024b00: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  90751. }
  90752. 8024b04: 4618 mov r0, r3
  90753. 8024b06: 3710 adds r7, #16
  90754. 8024b08: 46bd mov sp, r7
  90755. 8024b0a: bd80 pop {r7, pc}
  90756. 08024b0c <ip4addr_aton>:
  90757. * @param addr pointer to which to save the ip address in network order
  90758. * @return 1 if cp could be converted to addr, 0 on failure
  90759. */
  90760. int
  90761. ip4addr_aton(const char *cp, ip4_addr_t *addr)
  90762. {
  90763. 8024b0c: b580 push {r7, lr}
  90764. 8024b0e: b08a sub sp, #40 @ 0x28
  90765. 8024b10: af00 add r7, sp, #0
  90766. 8024b12: 6078 str r0, [r7, #4]
  90767. 8024b14: 6039 str r1, [r7, #0]
  90768. u32_t val;
  90769. u8_t base;
  90770. char c;
  90771. u32_t parts[4];
  90772. u32_t *pp = parts;
  90773. 8024b16: f107 030c add.w r3, r7, #12
  90774. 8024b1a: 61fb str r3, [r7, #28]
  90775. c = *cp;
  90776. 8024b1c: 687b ldr r3, [r7, #4]
  90777. 8024b1e: 781b ldrb r3, [r3, #0]
  90778. 8024b20: f887 3022 strb.w r3, [r7, #34] @ 0x22
  90779. /*
  90780. * Collect number up to ``.''.
  90781. * Values are specified as for C:
  90782. * 0x=hex, 0=octal, 1-9=decimal.
  90783. */
  90784. if (!lwip_isdigit(c)) {
  90785. 8024b24: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  90786. 8024b28: 3301 adds r3, #1
  90787. 8024b2a: 4a89 ldr r2, [pc, #548] @ (8024d50 <ip4addr_aton+0x244>)
  90788. 8024b2c: 4413 add r3, r2
  90789. 8024b2e: 781b ldrb r3, [r3, #0]
  90790. 8024b30: f003 0304 and.w r3, r3, #4
  90791. 8024b34: 2b00 cmp r3, #0
  90792. 8024b36: d101 bne.n 8024b3c <ip4addr_aton+0x30>
  90793. return 0;
  90794. 8024b38: 2300 movs r3, #0
  90795. 8024b3a: e105 b.n 8024d48 <ip4addr_aton+0x23c>
  90796. }
  90797. val = 0;
  90798. 8024b3c: 2300 movs r3, #0
  90799. 8024b3e: 627b str r3, [r7, #36] @ 0x24
  90800. base = 10;
  90801. 8024b40: 230a movs r3, #10
  90802. 8024b42: f887 3023 strb.w r3, [r7, #35] @ 0x23
  90803. if (c == '0') {
  90804. 8024b46: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  90805. 8024b4a: 2b30 cmp r3, #48 @ 0x30
  90806. 8024b4c: d11c bne.n 8024b88 <ip4addr_aton+0x7c>
  90807. c = *++cp;
  90808. 8024b4e: 687b ldr r3, [r7, #4]
  90809. 8024b50: 3301 adds r3, #1
  90810. 8024b52: 607b str r3, [r7, #4]
  90811. 8024b54: 687b ldr r3, [r7, #4]
  90812. 8024b56: 781b ldrb r3, [r3, #0]
  90813. 8024b58: f887 3022 strb.w r3, [r7, #34] @ 0x22
  90814. if (c == 'x' || c == 'X') {
  90815. 8024b5c: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  90816. 8024b60: 2b78 cmp r3, #120 @ 0x78
  90817. 8024b62: d003 beq.n 8024b6c <ip4addr_aton+0x60>
  90818. 8024b64: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  90819. 8024b68: 2b58 cmp r3, #88 @ 0x58
  90820. 8024b6a: d10a bne.n 8024b82 <ip4addr_aton+0x76>
  90821. base = 16;
  90822. 8024b6c: 2310 movs r3, #16
  90823. 8024b6e: f887 3023 strb.w r3, [r7, #35] @ 0x23
  90824. c = *++cp;
  90825. 8024b72: 687b ldr r3, [r7, #4]
  90826. 8024b74: 3301 adds r3, #1
  90827. 8024b76: 607b str r3, [r7, #4]
  90828. 8024b78: 687b ldr r3, [r7, #4]
  90829. 8024b7a: 781b ldrb r3, [r3, #0]
  90830. 8024b7c: f887 3022 strb.w r3, [r7, #34] @ 0x22
  90831. 8024b80: e002 b.n 8024b88 <ip4addr_aton+0x7c>
  90832. } else {
  90833. base = 8;
  90834. 8024b82: 2308 movs r3, #8
  90835. 8024b84: f887 3023 strb.w r3, [r7, #35] @ 0x23
  90836. }
  90837. }
  90838. for (;;) {
  90839. if (lwip_isdigit(c)) {
  90840. 8024b88: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  90841. 8024b8c: 3301 adds r3, #1
  90842. 8024b8e: 4a70 ldr r2, [pc, #448] @ (8024d50 <ip4addr_aton+0x244>)
  90843. 8024b90: 4413 add r3, r2
  90844. 8024b92: 781b ldrb r3, [r3, #0]
  90845. 8024b94: f003 0304 and.w r3, r3, #4
  90846. 8024b98: 2b00 cmp r3, #0
  90847. 8024b9a: d011 beq.n 8024bc0 <ip4addr_aton+0xb4>
  90848. val = (val * base) + (u32_t)(c - '0');
  90849. 8024b9c: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  90850. 8024ba0: 6a7a ldr r2, [r7, #36] @ 0x24
  90851. 8024ba2: fb03 f202 mul.w r2, r3, r2
  90852. 8024ba6: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  90853. 8024baa: 4413 add r3, r2
  90854. 8024bac: 3b30 subs r3, #48 @ 0x30
  90855. 8024bae: 627b str r3, [r7, #36] @ 0x24
  90856. c = *++cp;
  90857. 8024bb0: 687b ldr r3, [r7, #4]
  90858. 8024bb2: 3301 adds r3, #1
  90859. 8024bb4: 607b str r3, [r7, #4]
  90860. 8024bb6: 687b ldr r3, [r7, #4]
  90861. 8024bb8: 781b ldrb r3, [r3, #0]
  90862. 8024bba: f887 3022 strb.w r3, [r7, #34] @ 0x22
  90863. 8024bbe: e7e3 b.n 8024b88 <ip4addr_aton+0x7c>
  90864. } else if (base == 16 && lwip_isxdigit(c)) {
  90865. 8024bc0: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  90866. 8024bc4: 2b10 cmp r3, #16
  90867. 8024bc6: d127 bne.n 8024c18 <ip4addr_aton+0x10c>
  90868. 8024bc8: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  90869. 8024bcc: 3301 adds r3, #1
  90870. 8024bce: 4a60 ldr r2, [pc, #384] @ (8024d50 <ip4addr_aton+0x244>)
  90871. 8024bd0: 4413 add r3, r2
  90872. 8024bd2: 781b ldrb r3, [r3, #0]
  90873. 8024bd4: f003 0344 and.w r3, r3, #68 @ 0x44
  90874. 8024bd8: 2b00 cmp r3, #0
  90875. 8024bda: d01d beq.n 8024c18 <ip4addr_aton+0x10c>
  90876. val = (val << 4) | (u32_t)(c + 10 - (lwip_islower(c) ? 'a' : 'A'));
  90877. 8024bdc: 6a7b ldr r3, [r7, #36] @ 0x24
  90878. 8024bde: 011b lsls r3, r3, #4
  90879. 8024be0: f897 2022 ldrb.w r2, [r7, #34] @ 0x22
  90880. 8024be4: f102 010a add.w r1, r2, #10
  90881. 8024be8: f897 2022 ldrb.w r2, [r7, #34] @ 0x22
  90882. 8024bec: 3201 adds r2, #1
  90883. 8024bee: 4858 ldr r0, [pc, #352] @ (8024d50 <ip4addr_aton+0x244>)
  90884. 8024bf0: 4402 add r2, r0
  90885. 8024bf2: 7812 ldrb r2, [r2, #0]
  90886. 8024bf4: f002 0203 and.w r2, r2, #3
  90887. 8024bf8: 2a02 cmp r2, #2
  90888. 8024bfa: d101 bne.n 8024c00 <ip4addr_aton+0xf4>
  90889. 8024bfc: 2261 movs r2, #97 @ 0x61
  90890. 8024bfe: e000 b.n 8024c02 <ip4addr_aton+0xf6>
  90891. 8024c00: 2241 movs r2, #65 @ 0x41
  90892. 8024c02: 1a8a subs r2, r1, r2
  90893. 8024c04: 4313 orrs r3, r2
  90894. 8024c06: 627b str r3, [r7, #36] @ 0x24
  90895. c = *++cp;
  90896. 8024c08: 687b ldr r3, [r7, #4]
  90897. 8024c0a: 3301 adds r3, #1
  90898. 8024c0c: 607b str r3, [r7, #4]
  90899. 8024c0e: 687b ldr r3, [r7, #4]
  90900. 8024c10: 781b ldrb r3, [r3, #0]
  90901. 8024c12: f887 3022 strb.w r3, [r7, #34] @ 0x22
  90902. if (lwip_isdigit(c)) {
  90903. 8024c16: e7b7 b.n 8024b88 <ip4addr_aton+0x7c>
  90904. } else {
  90905. break;
  90906. }
  90907. }
  90908. if (c == '.') {
  90909. 8024c18: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  90910. 8024c1c: 2b2e cmp r3, #46 @ 0x2e
  90911. 8024c1e: d114 bne.n 8024c4a <ip4addr_aton+0x13e>
  90912. * Internet format:
  90913. * a.b.c.d
  90914. * a.b.c (with c treated as 16 bits)
  90915. * a.b (with b treated as 24 bits)
  90916. */
  90917. if (pp >= parts + 3) {
  90918. 8024c20: f107 030c add.w r3, r7, #12
  90919. 8024c24: 330c adds r3, #12
  90920. 8024c26: 69fa ldr r2, [r7, #28]
  90921. 8024c28: 429a cmp r2, r3
  90922. 8024c2a: d301 bcc.n 8024c30 <ip4addr_aton+0x124>
  90923. return 0;
  90924. 8024c2c: 2300 movs r3, #0
  90925. 8024c2e: e08b b.n 8024d48 <ip4addr_aton+0x23c>
  90926. }
  90927. *pp++ = val;
  90928. 8024c30: 69fb ldr r3, [r7, #28]
  90929. 8024c32: 1d1a adds r2, r3, #4
  90930. 8024c34: 61fa str r2, [r7, #28]
  90931. 8024c36: 6a7a ldr r2, [r7, #36] @ 0x24
  90932. 8024c38: 601a str r2, [r3, #0]
  90933. c = *++cp;
  90934. 8024c3a: 687b ldr r3, [r7, #4]
  90935. 8024c3c: 3301 adds r3, #1
  90936. 8024c3e: 607b str r3, [r7, #4]
  90937. 8024c40: 687b ldr r3, [r7, #4]
  90938. 8024c42: 781b ldrb r3, [r3, #0]
  90939. 8024c44: f887 3022 strb.w r3, [r7, #34] @ 0x22
  90940. if (!lwip_isdigit(c)) {
  90941. 8024c48: e76c b.n 8024b24 <ip4addr_aton+0x18>
  90942. } else {
  90943. break;
  90944. 8024c4a: bf00 nop
  90945. }
  90946. }
  90947. /*
  90948. * Check for trailing characters.
  90949. */
  90950. if (c != '\0' && !lwip_isspace(c)) {
  90951. 8024c4c: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  90952. 8024c50: 2b00 cmp r3, #0
  90953. 8024c52: d00b beq.n 8024c6c <ip4addr_aton+0x160>
  90954. 8024c54: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  90955. 8024c58: 3301 adds r3, #1
  90956. 8024c5a: 4a3d ldr r2, [pc, #244] @ (8024d50 <ip4addr_aton+0x244>)
  90957. 8024c5c: 4413 add r3, r2
  90958. 8024c5e: 781b ldrb r3, [r3, #0]
  90959. 8024c60: f003 0308 and.w r3, r3, #8
  90960. 8024c64: 2b00 cmp r3, #0
  90961. 8024c66: d101 bne.n 8024c6c <ip4addr_aton+0x160>
  90962. return 0;
  90963. 8024c68: 2300 movs r3, #0
  90964. 8024c6a: e06d b.n 8024d48 <ip4addr_aton+0x23c>
  90965. }
  90966. /*
  90967. * Concoct the address according to
  90968. * the number of parts specified.
  90969. */
  90970. switch (pp - parts + 1) {
  90971. 8024c6c: f107 030c add.w r3, r7, #12
  90972. 8024c70: 69fa ldr r2, [r7, #28]
  90973. 8024c72: 1ad3 subs r3, r2, r3
  90974. 8024c74: 109b asrs r3, r3, #2
  90975. 8024c76: 3301 adds r3, #1
  90976. 8024c78: 2b04 cmp r3, #4
  90977. 8024c7a: d853 bhi.n 8024d24 <ip4addr_aton+0x218>
  90978. 8024c7c: a201 add r2, pc, #4 @ (adr r2, 8024c84 <ip4addr_aton+0x178>)
  90979. 8024c7e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  90980. 8024c82: bf00 nop
  90981. 8024c84: 08024c99 .word 0x08024c99
  90982. 8024c88: 08024d33 .word 0x08024d33
  90983. 8024c8c: 08024c9d .word 0x08024c9d
  90984. 8024c90: 08024cbf .word 0x08024cbf
  90985. 8024c94: 08024ced .word 0x08024ced
  90986. case 0:
  90987. return 0; /* initial nondigit */
  90988. 8024c98: 2300 movs r3, #0
  90989. 8024c9a: e055 b.n 8024d48 <ip4addr_aton+0x23c>
  90990. case 1: /* a -- 32 bits */
  90991. break;
  90992. case 2: /* a.b -- 8.24 bits */
  90993. if (val > 0xffffffUL) {
  90994. 8024c9c: 6a7b ldr r3, [r7, #36] @ 0x24
  90995. 8024c9e: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  90996. 8024ca2: d301 bcc.n 8024ca8 <ip4addr_aton+0x19c>
  90997. return 0;
  90998. 8024ca4: 2300 movs r3, #0
  90999. 8024ca6: e04f b.n 8024d48 <ip4addr_aton+0x23c>
  91000. }
  91001. if (parts[0] > 0xff) {
  91002. 8024ca8: 68fb ldr r3, [r7, #12]
  91003. 8024caa: 2bff cmp r3, #255 @ 0xff
  91004. 8024cac: d901 bls.n 8024cb2 <ip4addr_aton+0x1a6>
  91005. return 0;
  91006. 8024cae: 2300 movs r3, #0
  91007. 8024cb0: e04a b.n 8024d48 <ip4addr_aton+0x23c>
  91008. }
  91009. val |= parts[0] << 24;
  91010. 8024cb2: 68fb ldr r3, [r7, #12]
  91011. 8024cb4: 061b lsls r3, r3, #24
  91012. 8024cb6: 6a7a ldr r2, [r7, #36] @ 0x24
  91013. 8024cb8: 4313 orrs r3, r2
  91014. 8024cba: 627b str r3, [r7, #36] @ 0x24
  91015. break;
  91016. 8024cbc: e03a b.n 8024d34 <ip4addr_aton+0x228>
  91017. case 3: /* a.b.c -- 8.8.16 bits */
  91018. if (val > 0xffff) {
  91019. 8024cbe: 6a7b ldr r3, [r7, #36] @ 0x24
  91020. 8024cc0: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  91021. 8024cc4: d301 bcc.n 8024cca <ip4addr_aton+0x1be>
  91022. return 0;
  91023. 8024cc6: 2300 movs r3, #0
  91024. 8024cc8: e03e b.n 8024d48 <ip4addr_aton+0x23c>
  91025. }
  91026. if ((parts[0] > 0xff) || (parts[1] > 0xff)) {
  91027. 8024cca: 68fb ldr r3, [r7, #12]
  91028. 8024ccc: 2bff cmp r3, #255 @ 0xff
  91029. 8024cce: d802 bhi.n 8024cd6 <ip4addr_aton+0x1ca>
  91030. 8024cd0: 693b ldr r3, [r7, #16]
  91031. 8024cd2: 2bff cmp r3, #255 @ 0xff
  91032. 8024cd4: d901 bls.n 8024cda <ip4addr_aton+0x1ce>
  91033. return 0;
  91034. 8024cd6: 2300 movs r3, #0
  91035. 8024cd8: e036 b.n 8024d48 <ip4addr_aton+0x23c>
  91036. }
  91037. val |= (parts[0] << 24) | (parts[1] << 16);
  91038. 8024cda: 68fb ldr r3, [r7, #12]
  91039. 8024cdc: 061a lsls r2, r3, #24
  91040. 8024cde: 693b ldr r3, [r7, #16]
  91041. 8024ce0: 041b lsls r3, r3, #16
  91042. 8024ce2: 4313 orrs r3, r2
  91043. 8024ce4: 6a7a ldr r2, [r7, #36] @ 0x24
  91044. 8024ce6: 4313 orrs r3, r2
  91045. 8024ce8: 627b str r3, [r7, #36] @ 0x24
  91046. break;
  91047. 8024cea: e023 b.n 8024d34 <ip4addr_aton+0x228>
  91048. case 4: /* a.b.c.d -- 8.8.8.8 bits */
  91049. if (val > 0xff) {
  91050. 8024cec: 6a7b ldr r3, [r7, #36] @ 0x24
  91051. 8024cee: 2bff cmp r3, #255 @ 0xff
  91052. 8024cf0: d901 bls.n 8024cf6 <ip4addr_aton+0x1ea>
  91053. return 0;
  91054. 8024cf2: 2300 movs r3, #0
  91055. 8024cf4: e028 b.n 8024d48 <ip4addr_aton+0x23c>
  91056. }
  91057. if ((parts[0] > 0xff) || (parts[1] > 0xff) || (parts[2] > 0xff)) {
  91058. 8024cf6: 68fb ldr r3, [r7, #12]
  91059. 8024cf8: 2bff cmp r3, #255 @ 0xff
  91060. 8024cfa: d805 bhi.n 8024d08 <ip4addr_aton+0x1fc>
  91061. 8024cfc: 693b ldr r3, [r7, #16]
  91062. 8024cfe: 2bff cmp r3, #255 @ 0xff
  91063. 8024d00: d802 bhi.n 8024d08 <ip4addr_aton+0x1fc>
  91064. 8024d02: 697b ldr r3, [r7, #20]
  91065. 8024d04: 2bff cmp r3, #255 @ 0xff
  91066. 8024d06: d901 bls.n 8024d0c <ip4addr_aton+0x200>
  91067. return 0;
  91068. 8024d08: 2300 movs r3, #0
  91069. 8024d0a: e01d b.n 8024d48 <ip4addr_aton+0x23c>
  91070. }
  91071. val |= (parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8);
  91072. 8024d0c: 68fb ldr r3, [r7, #12]
  91073. 8024d0e: 061a lsls r2, r3, #24
  91074. 8024d10: 693b ldr r3, [r7, #16]
  91075. 8024d12: 041b lsls r3, r3, #16
  91076. 8024d14: 431a orrs r2, r3
  91077. 8024d16: 697b ldr r3, [r7, #20]
  91078. 8024d18: 021b lsls r3, r3, #8
  91079. 8024d1a: 4313 orrs r3, r2
  91080. 8024d1c: 6a7a ldr r2, [r7, #36] @ 0x24
  91081. 8024d1e: 4313 orrs r3, r2
  91082. 8024d20: 627b str r3, [r7, #36] @ 0x24
  91083. break;
  91084. 8024d22: e007 b.n 8024d34 <ip4addr_aton+0x228>
  91085. default:
  91086. LWIP_ASSERT("unhandled", 0);
  91087. 8024d24: 4b0b ldr r3, [pc, #44] @ (8024d54 <ip4addr_aton+0x248>)
  91088. 8024d26: 22f9 movs r2, #249 @ 0xf9
  91089. 8024d28: 490b ldr r1, [pc, #44] @ (8024d58 <ip4addr_aton+0x24c>)
  91090. 8024d2a: 480c ldr r0, [pc, #48] @ (8024d5c <ip4addr_aton+0x250>)
  91091. 8024d2c: f004 fbee bl 802950c <iprintf>
  91092. break;
  91093. 8024d30: e000 b.n 8024d34 <ip4addr_aton+0x228>
  91094. break;
  91095. 8024d32: bf00 nop
  91096. }
  91097. if (addr) {
  91098. 8024d34: 683b ldr r3, [r7, #0]
  91099. 8024d36: 2b00 cmp r3, #0
  91100. 8024d38: d005 beq.n 8024d46 <ip4addr_aton+0x23a>
  91101. ip4_addr_set_u32(addr, lwip_htonl(val));
  91102. 8024d3a: 6a78 ldr r0, [r7, #36] @ 0x24
  91103. 8024d3c: f7f3 fca1 bl 8018682 <lwip_htonl>
  91104. 8024d40: 4602 mov r2, r0
  91105. 8024d42: 683b ldr r3, [r7, #0]
  91106. 8024d44: 601a str r2, [r3, #0]
  91107. }
  91108. return 1;
  91109. 8024d46: 2301 movs r3, #1
  91110. }
  91111. 8024d48: 4618 mov r0, r3
  91112. 8024d4a: 3728 adds r7, #40 @ 0x28
  91113. 8024d4c: 46bd mov sp, r7
  91114. 8024d4e: bd80 pop {r7, pc}
  91115. 8024d50: 08030880 .word 0x08030880
  91116. 8024d54: 08030190 .word 0x08030190
  91117. 8024d58: 080301cc .word 0x080301cc
  91118. 8024d5c: 080301d8 .word 0x080301d8
  91119. 08024d60 <ip4addr_ntoa>:
  91120. * @return pointer to a global static (!) buffer that holds the ASCII
  91121. * representation of addr
  91122. */
  91123. char *
  91124. ip4addr_ntoa(const ip4_addr_t *addr)
  91125. {
  91126. 8024d60: b580 push {r7, lr}
  91127. 8024d62: b082 sub sp, #8
  91128. 8024d64: af00 add r7, sp, #0
  91129. 8024d66: 6078 str r0, [r7, #4]
  91130. static char str[IP4ADDR_STRLEN_MAX];
  91131. return ip4addr_ntoa_r(addr, str, IP4ADDR_STRLEN_MAX);
  91132. 8024d68: 2210 movs r2, #16
  91133. 8024d6a: 4904 ldr r1, [pc, #16] @ (8024d7c <ip4addr_ntoa+0x1c>)
  91134. 8024d6c: 6878 ldr r0, [r7, #4]
  91135. 8024d6e: f000 f807 bl 8024d80 <ip4addr_ntoa_r>
  91136. 8024d72: 4603 mov r3, r0
  91137. }
  91138. 8024d74: 4618 mov r0, r3
  91139. 8024d76: 3708 adds r7, #8
  91140. 8024d78: 46bd mov sp, r7
  91141. 8024d7a: bd80 pop {r7, pc}
  91142. 8024d7c: 2402a178 .word 0x2402a178
  91143. 08024d80 <ip4addr_ntoa_r>:
  91144. * @return either pointer to buf which now holds the ASCII
  91145. * representation of addr or NULL if buf was too small
  91146. */
  91147. char *
  91148. ip4addr_ntoa_r(const ip4_addr_t *addr, char *buf, int buflen)
  91149. {
  91150. 8024d80: b480 push {r7}
  91151. 8024d82: b08d sub sp, #52 @ 0x34
  91152. 8024d84: af00 add r7, sp, #0
  91153. 8024d86: 60f8 str r0, [r7, #12]
  91154. 8024d88: 60b9 str r1, [r7, #8]
  91155. 8024d8a: 607a str r2, [r7, #4]
  91156. char *rp;
  91157. u8_t *ap;
  91158. u8_t rem;
  91159. u8_t n;
  91160. u8_t i;
  91161. int len = 0;
  91162. 8024d8c: 2300 movs r3, #0
  91163. 8024d8e: 623b str r3, [r7, #32]
  91164. s_addr = ip4_addr_get_u32(addr);
  91165. 8024d90: 68fb ldr r3, [r7, #12]
  91166. 8024d92: 681b ldr r3, [r3, #0]
  91167. 8024d94: 61bb str r3, [r7, #24]
  91168. rp = buf;
  91169. 8024d96: 68bb ldr r3, [r7, #8]
  91170. 8024d98: 62fb str r3, [r7, #44] @ 0x2c
  91171. ap = (u8_t *)&s_addr;
  91172. 8024d9a: f107 0318 add.w r3, r7, #24
  91173. 8024d9e: 62bb str r3, [r7, #40] @ 0x28
  91174. for (n = 0; n < 4; n++) {
  91175. 8024da0: 2300 movs r3, #0
  91176. 8024da2: f887 3027 strb.w r3, [r7, #39] @ 0x27
  91177. 8024da6: e058 b.n 8024e5a <ip4addr_ntoa_r+0xda>
  91178. i = 0;
  91179. 8024da8: 2300 movs r3, #0
  91180. 8024daa: f887 3026 strb.w r3, [r7, #38] @ 0x26
  91181. do {
  91182. rem = *ap % (u8_t)10;
  91183. 8024dae: 6abb ldr r3, [r7, #40] @ 0x28
  91184. 8024db0: 781a ldrb r2, [r3, #0]
  91185. 8024db2: 4b32 ldr r3, [pc, #200] @ (8024e7c <ip4addr_ntoa_r+0xfc>)
  91186. 8024db4: fba3 1302 umull r1, r3, r3, r2
  91187. 8024db8: 08d9 lsrs r1, r3, #3
  91188. 8024dba: 460b mov r3, r1
  91189. 8024dbc: 009b lsls r3, r3, #2
  91190. 8024dbe: 440b add r3, r1
  91191. 8024dc0: 005b lsls r3, r3, #1
  91192. 8024dc2: 1ad3 subs r3, r2, r3
  91193. 8024dc4: 77fb strb r3, [r7, #31]
  91194. *ap /= (u8_t)10;
  91195. 8024dc6: 6abb ldr r3, [r7, #40] @ 0x28
  91196. 8024dc8: 781b ldrb r3, [r3, #0]
  91197. 8024dca: 4a2c ldr r2, [pc, #176] @ (8024e7c <ip4addr_ntoa_r+0xfc>)
  91198. 8024dcc: fba2 2303 umull r2, r3, r2, r3
  91199. 8024dd0: 08db lsrs r3, r3, #3
  91200. 8024dd2: b2da uxtb r2, r3
  91201. 8024dd4: 6abb ldr r3, [r7, #40] @ 0x28
  91202. 8024dd6: 701a strb r2, [r3, #0]
  91203. inv[i++] = (char)('0' + rem);
  91204. 8024dd8: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  91205. 8024ddc: 1c5a adds r2, r3, #1
  91206. 8024dde: f887 2026 strb.w r2, [r7, #38] @ 0x26
  91207. 8024de2: 4619 mov r1, r3
  91208. 8024de4: 7ffb ldrb r3, [r7, #31]
  91209. 8024de6: 3330 adds r3, #48 @ 0x30
  91210. 8024de8: b2da uxtb r2, r3
  91211. 8024dea: f101 0330 add.w r3, r1, #48 @ 0x30
  91212. 8024dee: 443b add r3, r7
  91213. 8024df0: f803 2c1c strb.w r2, [r3, #-28]
  91214. } while (*ap);
  91215. 8024df4: 6abb ldr r3, [r7, #40] @ 0x28
  91216. 8024df6: 781b ldrb r3, [r3, #0]
  91217. 8024df8: 2b00 cmp r3, #0
  91218. 8024dfa: d1d8 bne.n 8024dae <ip4addr_ntoa_r+0x2e>
  91219. while (i--) {
  91220. 8024dfc: e011 b.n 8024e22 <ip4addr_ntoa_r+0xa2>
  91221. if (len++ >= buflen) {
  91222. 8024dfe: 6a3b ldr r3, [r7, #32]
  91223. 8024e00: 1c5a adds r2, r3, #1
  91224. 8024e02: 623a str r2, [r7, #32]
  91225. 8024e04: 687a ldr r2, [r7, #4]
  91226. 8024e06: 429a cmp r2, r3
  91227. 8024e08: dc01 bgt.n 8024e0e <ip4addr_ntoa_r+0x8e>
  91228. return NULL;
  91229. 8024e0a: 2300 movs r3, #0
  91230. 8024e0c: e030 b.n 8024e70 <ip4addr_ntoa_r+0xf0>
  91231. }
  91232. *rp++ = inv[i];
  91233. 8024e0e: f897 2026 ldrb.w r2, [r7, #38] @ 0x26
  91234. 8024e12: 6afb ldr r3, [r7, #44] @ 0x2c
  91235. 8024e14: 1c59 adds r1, r3, #1
  91236. 8024e16: 62f9 str r1, [r7, #44] @ 0x2c
  91237. 8024e18: 3230 adds r2, #48 @ 0x30
  91238. 8024e1a: 443a add r2, r7
  91239. 8024e1c: f812 2c1c ldrb.w r2, [r2, #-28]
  91240. 8024e20: 701a strb r2, [r3, #0]
  91241. while (i--) {
  91242. 8024e22: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  91243. 8024e26: 1e5a subs r2, r3, #1
  91244. 8024e28: f887 2026 strb.w r2, [r7, #38] @ 0x26
  91245. 8024e2c: 2b00 cmp r3, #0
  91246. 8024e2e: d1e6 bne.n 8024dfe <ip4addr_ntoa_r+0x7e>
  91247. }
  91248. if (len++ >= buflen) {
  91249. 8024e30: 6a3b ldr r3, [r7, #32]
  91250. 8024e32: 1c5a adds r2, r3, #1
  91251. 8024e34: 623a str r2, [r7, #32]
  91252. 8024e36: 687a ldr r2, [r7, #4]
  91253. 8024e38: 429a cmp r2, r3
  91254. 8024e3a: dc01 bgt.n 8024e40 <ip4addr_ntoa_r+0xc0>
  91255. return NULL;
  91256. 8024e3c: 2300 movs r3, #0
  91257. 8024e3e: e017 b.n 8024e70 <ip4addr_ntoa_r+0xf0>
  91258. }
  91259. *rp++ = '.';
  91260. 8024e40: 6afb ldr r3, [r7, #44] @ 0x2c
  91261. 8024e42: 1c5a adds r2, r3, #1
  91262. 8024e44: 62fa str r2, [r7, #44] @ 0x2c
  91263. 8024e46: 222e movs r2, #46 @ 0x2e
  91264. 8024e48: 701a strb r2, [r3, #0]
  91265. ap++;
  91266. 8024e4a: 6abb ldr r3, [r7, #40] @ 0x28
  91267. 8024e4c: 3301 adds r3, #1
  91268. 8024e4e: 62bb str r3, [r7, #40] @ 0x28
  91269. for (n = 0; n < 4; n++) {
  91270. 8024e50: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  91271. 8024e54: 3301 adds r3, #1
  91272. 8024e56: f887 3027 strb.w r3, [r7, #39] @ 0x27
  91273. 8024e5a: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  91274. 8024e5e: 2b03 cmp r3, #3
  91275. 8024e60: d9a2 bls.n 8024da8 <ip4addr_ntoa_r+0x28>
  91276. }
  91277. *--rp = 0;
  91278. 8024e62: 6afb ldr r3, [r7, #44] @ 0x2c
  91279. 8024e64: 3b01 subs r3, #1
  91280. 8024e66: 62fb str r3, [r7, #44] @ 0x2c
  91281. 8024e68: 6afb ldr r3, [r7, #44] @ 0x2c
  91282. 8024e6a: 2200 movs r2, #0
  91283. 8024e6c: 701a strb r2, [r3, #0]
  91284. return buf;
  91285. 8024e6e: 68bb ldr r3, [r7, #8]
  91286. }
  91287. 8024e70: 4618 mov r0, r3
  91288. 8024e72: 3734 adds r7, #52 @ 0x34
  91289. 8024e74: 46bd mov sp, r7
  91290. 8024e76: f85d 7b04 ldr.w r7, [sp], #4
  91291. 8024e7a: 4770 bx lr
  91292. 8024e7c: cccccccd .word 0xcccccccd
  91293. 08024e80 <ip_reass_tmr>:
  91294. *
  91295. * Should be called every 1000 msec (defined by IP_TMR_INTERVAL).
  91296. */
  91297. void
  91298. ip_reass_tmr(void)
  91299. {
  91300. 8024e80: b580 push {r7, lr}
  91301. 8024e82: b084 sub sp, #16
  91302. 8024e84: af00 add r7, sp, #0
  91303. struct ip_reassdata *r, *prev = NULL;
  91304. 8024e86: 2300 movs r3, #0
  91305. 8024e88: 60bb str r3, [r7, #8]
  91306. r = reassdatagrams;
  91307. 8024e8a: 4b12 ldr r3, [pc, #72] @ (8024ed4 <ip_reass_tmr+0x54>)
  91308. 8024e8c: 681b ldr r3, [r3, #0]
  91309. 8024e8e: 60fb str r3, [r7, #12]
  91310. while (r != NULL) {
  91311. 8024e90: e018 b.n 8024ec4 <ip_reass_tmr+0x44>
  91312. /* Decrement the timer. Once it reaches 0,
  91313. * clean up the incomplete fragment assembly */
  91314. if (r->timer > 0) {
  91315. 8024e92: 68fb ldr r3, [r7, #12]
  91316. 8024e94: 7fdb ldrb r3, [r3, #31]
  91317. 8024e96: 2b00 cmp r3, #0
  91318. 8024e98: d00b beq.n 8024eb2 <ip_reass_tmr+0x32>
  91319. r->timer--;
  91320. 8024e9a: 68fb ldr r3, [r7, #12]
  91321. 8024e9c: 7fdb ldrb r3, [r3, #31]
  91322. 8024e9e: 3b01 subs r3, #1
  91323. 8024ea0: b2da uxtb r2, r3
  91324. 8024ea2: 68fb ldr r3, [r7, #12]
  91325. 8024ea4: 77da strb r2, [r3, #31]
  91326. LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_tmr: timer dec %"U16_F"\n", (u16_t)r->timer));
  91327. prev = r;
  91328. 8024ea6: 68fb ldr r3, [r7, #12]
  91329. 8024ea8: 60bb str r3, [r7, #8]
  91330. r = r->next;
  91331. 8024eaa: 68fb ldr r3, [r7, #12]
  91332. 8024eac: 681b ldr r3, [r3, #0]
  91333. 8024eae: 60fb str r3, [r7, #12]
  91334. 8024eb0: e008 b.n 8024ec4 <ip_reass_tmr+0x44>
  91335. } else {
  91336. /* reassembly timed out */
  91337. struct ip_reassdata *tmp;
  91338. LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_tmr: timer timed out\n"));
  91339. tmp = r;
  91340. 8024eb2: 68fb ldr r3, [r7, #12]
  91341. 8024eb4: 607b str r3, [r7, #4]
  91342. /* get the next pointer before freeing */
  91343. r = r->next;
  91344. 8024eb6: 68fb ldr r3, [r7, #12]
  91345. 8024eb8: 681b ldr r3, [r3, #0]
  91346. 8024eba: 60fb str r3, [r7, #12]
  91347. /* free the helper struct and all enqueued pbufs */
  91348. ip_reass_free_complete_datagram(tmp, prev);
  91349. 8024ebc: 68b9 ldr r1, [r7, #8]
  91350. 8024ebe: 6878 ldr r0, [r7, #4]
  91351. 8024ec0: f000 f80a bl 8024ed8 <ip_reass_free_complete_datagram>
  91352. while (r != NULL) {
  91353. 8024ec4: 68fb ldr r3, [r7, #12]
  91354. 8024ec6: 2b00 cmp r3, #0
  91355. 8024ec8: d1e3 bne.n 8024e92 <ip_reass_tmr+0x12>
  91356. }
  91357. }
  91358. }
  91359. 8024eca: bf00 nop
  91360. 8024ecc: bf00 nop
  91361. 8024ece: 3710 adds r7, #16
  91362. 8024ed0: 46bd mov sp, r7
  91363. 8024ed2: bd80 pop {r7, pc}
  91364. 8024ed4: 2402a188 .word 0x2402a188
  91365. 08024ed8 <ip_reass_free_complete_datagram>:
  91366. * @param prev the previous datagram in the linked list
  91367. * @return the number of pbufs freed
  91368. */
  91369. static int
  91370. ip_reass_free_complete_datagram(struct ip_reassdata *ipr, struct ip_reassdata *prev)
  91371. {
  91372. 8024ed8: b580 push {r7, lr}
  91373. 8024eda: b088 sub sp, #32
  91374. 8024edc: af00 add r7, sp, #0
  91375. 8024ede: 6078 str r0, [r7, #4]
  91376. 8024ee0: 6039 str r1, [r7, #0]
  91377. u16_t pbufs_freed = 0;
  91378. 8024ee2: 2300 movs r3, #0
  91379. 8024ee4: 83fb strh r3, [r7, #30]
  91380. u16_t clen;
  91381. struct pbuf *p;
  91382. struct ip_reass_helper *iprh;
  91383. LWIP_ASSERT("prev != ipr", prev != ipr);
  91384. 8024ee6: 683a ldr r2, [r7, #0]
  91385. 8024ee8: 687b ldr r3, [r7, #4]
  91386. 8024eea: 429a cmp r2, r3
  91387. 8024eec: d105 bne.n 8024efa <ip_reass_free_complete_datagram+0x22>
  91388. 8024eee: 4b45 ldr r3, [pc, #276] @ (8025004 <ip_reass_free_complete_datagram+0x12c>)
  91389. 8024ef0: 22ab movs r2, #171 @ 0xab
  91390. 8024ef2: 4945 ldr r1, [pc, #276] @ (8025008 <ip_reass_free_complete_datagram+0x130>)
  91391. 8024ef4: 4845 ldr r0, [pc, #276] @ (802500c <ip_reass_free_complete_datagram+0x134>)
  91392. 8024ef6: f004 fb09 bl 802950c <iprintf>
  91393. if (prev != NULL) {
  91394. 8024efa: 683b ldr r3, [r7, #0]
  91395. 8024efc: 2b00 cmp r3, #0
  91396. 8024efe: d00a beq.n 8024f16 <ip_reass_free_complete_datagram+0x3e>
  91397. LWIP_ASSERT("prev->next == ipr", prev->next == ipr);
  91398. 8024f00: 683b ldr r3, [r7, #0]
  91399. 8024f02: 681b ldr r3, [r3, #0]
  91400. 8024f04: 687a ldr r2, [r7, #4]
  91401. 8024f06: 429a cmp r2, r3
  91402. 8024f08: d005 beq.n 8024f16 <ip_reass_free_complete_datagram+0x3e>
  91403. 8024f0a: 4b3e ldr r3, [pc, #248] @ (8025004 <ip_reass_free_complete_datagram+0x12c>)
  91404. 8024f0c: 22ad movs r2, #173 @ 0xad
  91405. 8024f0e: 4940 ldr r1, [pc, #256] @ (8025010 <ip_reass_free_complete_datagram+0x138>)
  91406. 8024f10: 483e ldr r0, [pc, #248] @ (802500c <ip_reass_free_complete_datagram+0x134>)
  91407. 8024f12: f004 fafb bl 802950c <iprintf>
  91408. }
  91409. MIB2_STATS_INC(mib2.ipreasmfails);
  91410. #if LWIP_ICMP
  91411. iprh = (struct ip_reass_helper *)ipr->p->payload;
  91412. 8024f16: 687b ldr r3, [r7, #4]
  91413. 8024f18: 685b ldr r3, [r3, #4]
  91414. 8024f1a: 685b ldr r3, [r3, #4]
  91415. 8024f1c: 617b str r3, [r7, #20]
  91416. if (iprh->start == 0) {
  91417. 8024f1e: 697b ldr r3, [r7, #20]
  91418. 8024f20: 889b ldrh r3, [r3, #4]
  91419. 8024f22: b29b uxth r3, r3
  91420. 8024f24: 2b00 cmp r3, #0
  91421. 8024f26: d12a bne.n 8024f7e <ip_reass_free_complete_datagram+0xa6>
  91422. /* The first fragment was received, send ICMP time exceeded. */
  91423. /* First, de-queue the first pbuf from r->p. */
  91424. p = ipr->p;
  91425. 8024f28: 687b ldr r3, [r7, #4]
  91426. 8024f2a: 685b ldr r3, [r3, #4]
  91427. 8024f2c: 61bb str r3, [r7, #24]
  91428. ipr->p = iprh->next_pbuf;
  91429. 8024f2e: 697b ldr r3, [r7, #20]
  91430. 8024f30: 681a ldr r2, [r3, #0]
  91431. 8024f32: 687b ldr r3, [r7, #4]
  91432. 8024f34: 605a str r2, [r3, #4]
  91433. /* Then, copy the original header into it. */
  91434. SMEMCPY(p->payload, &ipr->iphdr, IP_HLEN);
  91435. 8024f36: 69bb ldr r3, [r7, #24]
  91436. 8024f38: 6858 ldr r0, [r3, #4]
  91437. 8024f3a: 687b ldr r3, [r7, #4]
  91438. 8024f3c: 3308 adds r3, #8
  91439. 8024f3e: 2214 movs r2, #20
  91440. 8024f40: 4619 mov r1, r3
  91441. 8024f42: f004 fd6c bl 8029a1e <memcpy>
  91442. icmp_time_exceeded(p, ICMP_TE_FRAG);
  91443. 8024f46: 2101 movs r1, #1
  91444. 8024f48: 69b8 ldr r0, [r7, #24]
  91445. 8024f4a: f7ff fa4d bl 80243e8 <icmp_time_exceeded>
  91446. clen = pbuf_clen(p);
  91447. 8024f4e: 69b8 ldr r0, [r7, #24]
  91448. 8024f50: f7f5 f8f2 bl 801a138 <pbuf_clen>
  91449. 8024f54: 4603 mov r3, r0
  91450. 8024f56: 827b strh r3, [r7, #18]
  91451. LWIP_ASSERT("pbufs_freed + clen <= 0xffff", pbufs_freed + clen <= 0xffff);
  91452. 8024f58: 8bfa ldrh r2, [r7, #30]
  91453. 8024f5a: 8a7b ldrh r3, [r7, #18]
  91454. 8024f5c: 4413 add r3, r2
  91455. 8024f5e: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  91456. 8024f62: db05 blt.n 8024f70 <ip_reass_free_complete_datagram+0x98>
  91457. 8024f64: 4b27 ldr r3, [pc, #156] @ (8025004 <ip_reass_free_complete_datagram+0x12c>)
  91458. 8024f66: 22bc movs r2, #188 @ 0xbc
  91459. 8024f68: 492a ldr r1, [pc, #168] @ (8025014 <ip_reass_free_complete_datagram+0x13c>)
  91460. 8024f6a: 4828 ldr r0, [pc, #160] @ (802500c <ip_reass_free_complete_datagram+0x134>)
  91461. 8024f6c: f004 face bl 802950c <iprintf>
  91462. pbufs_freed = (u16_t)(pbufs_freed + clen);
  91463. 8024f70: 8bfa ldrh r2, [r7, #30]
  91464. 8024f72: 8a7b ldrh r3, [r7, #18]
  91465. 8024f74: 4413 add r3, r2
  91466. 8024f76: 83fb strh r3, [r7, #30]
  91467. pbuf_free(p);
  91468. 8024f78: 69b8 ldr r0, [r7, #24]
  91469. 8024f7a: f7f5 f84f bl 801a01c <pbuf_free>
  91470. }
  91471. #endif /* LWIP_ICMP */
  91472. /* First, free all received pbufs. The individual pbufs need to be released
  91473. separately as they have not yet been chained */
  91474. p = ipr->p;
  91475. 8024f7e: 687b ldr r3, [r7, #4]
  91476. 8024f80: 685b ldr r3, [r3, #4]
  91477. 8024f82: 61bb str r3, [r7, #24]
  91478. while (p != NULL) {
  91479. 8024f84: e01f b.n 8024fc6 <ip_reass_free_complete_datagram+0xee>
  91480. struct pbuf *pcur;
  91481. iprh = (struct ip_reass_helper *)p->payload;
  91482. 8024f86: 69bb ldr r3, [r7, #24]
  91483. 8024f88: 685b ldr r3, [r3, #4]
  91484. 8024f8a: 617b str r3, [r7, #20]
  91485. pcur = p;
  91486. 8024f8c: 69bb ldr r3, [r7, #24]
  91487. 8024f8e: 60fb str r3, [r7, #12]
  91488. /* get the next pointer before freeing */
  91489. p = iprh->next_pbuf;
  91490. 8024f90: 697b ldr r3, [r7, #20]
  91491. 8024f92: 681b ldr r3, [r3, #0]
  91492. 8024f94: 61bb str r3, [r7, #24]
  91493. clen = pbuf_clen(pcur);
  91494. 8024f96: 68f8 ldr r0, [r7, #12]
  91495. 8024f98: f7f5 f8ce bl 801a138 <pbuf_clen>
  91496. 8024f9c: 4603 mov r3, r0
  91497. 8024f9e: 827b strh r3, [r7, #18]
  91498. LWIP_ASSERT("pbufs_freed + clen <= 0xffff", pbufs_freed + clen <= 0xffff);
  91499. 8024fa0: 8bfa ldrh r2, [r7, #30]
  91500. 8024fa2: 8a7b ldrh r3, [r7, #18]
  91501. 8024fa4: 4413 add r3, r2
  91502. 8024fa6: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  91503. 8024faa: db05 blt.n 8024fb8 <ip_reass_free_complete_datagram+0xe0>
  91504. 8024fac: 4b15 ldr r3, [pc, #84] @ (8025004 <ip_reass_free_complete_datagram+0x12c>)
  91505. 8024fae: 22cc movs r2, #204 @ 0xcc
  91506. 8024fb0: 4918 ldr r1, [pc, #96] @ (8025014 <ip_reass_free_complete_datagram+0x13c>)
  91507. 8024fb2: 4816 ldr r0, [pc, #88] @ (802500c <ip_reass_free_complete_datagram+0x134>)
  91508. 8024fb4: f004 faaa bl 802950c <iprintf>
  91509. pbufs_freed = (u16_t)(pbufs_freed + clen);
  91510. 8024fb8: 8bfa ldrh r2, [r7, #30]
  91511. 8024fba: 8a7b ldrh r3, [r7, #18]
  91512. 8024fbc: 4413 add r3, r2
  91513. 8024fbe: 83fb strh r3, [r7, #30]
  91514. pbuf_free(pcur);
  91515. 8024fc0: 68f8 ldr r0, [r7, #12]
  91516. 8024fc2: f7f5 f82b bl 801a01c <pbuf_free>
  91517. while (p != NULL) {
  91518. 8024fc6: 69bb ldr r3, [r7, #24]
  91519. 8024fc8: 2b00 cmp r3, #0
  91520. 8024fca: d1dc bne.n 8024f86 <ip_reass_free_complete_datagram+0xae>
  91521. }
  91522. /* Then, unchain the struct ip_reassdata from the list and free it. */
  91523. ip_reass_dequeue_datagram(ipr, prev);
  91524. 8024fcc: 6839 ldr r1, [r7, #0]
  91525. 8024fce: 6878 ldr r0, [r7, #4]
  91526. 8024fd0: f000 f8c2 bl 8025158 <ip_reass_dequeue_datagram>
  91527. LWIP_ASSERT("ip_reass_pbufcount >= pbufs_freed", ip_reass_pbufcount >= pbufs_freed);
  91528. 8024fd4: 4b10 ldr r3, [pc, #64] @ (8025018 <ip_reass_free_complete_datagram+0x140>)
  91529. 8024fd6: 881b ldrh r3, [r3, #0]
  91530. 8024fd8: 8bfa ldrh r2, [r7, #30]
  91531. 8024fda: 429a cmp r2, r3
  91532. 8024fdc: d905 bls.n 8024fea <ip_reass_free_complete_datagram+0x112>
  91533. 8024fde: 4b09 ldr r3, [pc, #36] @ (8025004 <ip_reass_free_complete_datagram+0x12c>)
  91534. 8024fe0: 22d2 movs r2, #210 @ 0xd2
  91535. 8024fe2: 490e ldr r1, [pc, #56] @ (802501c <ip_reass_free_complete_datagram+0x144>)
  91536. 8024fe4: 4809 ldr r0, [pc, #36] @ (802500c <ip_reass_free_complete_datagram+0x134>)
  91537. 8024fe6: f004 fa91 bl 802950c <iprintf>
  91538. ip_reass_pbufcount = (u16_t)(ip_reass_pbufcount - pbufs_freed);
  91539. 8024fea: 4b0b ldr r3, [pc, #44] @ (8025018 <ip_reass_free_complete_datagram+0x140>)
  91540. 8024fec: 881a ldrh r2, [r3, #0]
  91541. 8024fee: 8bfb ldrh r3, [r7, #30]
  91542. 8024ff0: 1ad3 subs r3, r2, r3
  91543. 8024ff2: b29a uxth r2, r3
  91544. 8024ff4: 4b08 ldr r3, [pc, #32] @ (8025018 <ip_reass_free_complete_datagram+0x140>)
  91545. 8024ff6: 801a strh r2, [r3, #0]
  91546. return pbufs_freed;
  91547. 8024ff8: 8bfb ldrh r3, [r7, #30]
  91548. }
  91549. 8024ffa: 4618 mov r0, r3
  91550. 8024ffc: 3720 adds r7, #32
  91551. 8024ffe: 46bd mov sp, r7
  91552. 8025000: bd80 pop {r7, pc}
  91553. 8025002: bf00 nop
  91554. 8025004: 08030200 .word 0x08030200
  91555. 8025008: 0803023c .word 0x0803023c
  91556. 802500c: 08030248 .word 0x08030248
  91557. 8025010: 08030270 .word 0x08030270
  91558. 8025014: 08030284 .word 0x08030284
  91559. 8025018: 2402a18c .word 0x2402a18c
  91560. 802501c: 080302a4 .word 0x080302a4
  91561. 08025020 <ip_reass_remove_oldest_datagram>:
  91562. * (used for freeing other datagrams if not enough space)
  91563. * @return the number of pbufs freed
  91564. */
  91565. static int
  91566. ip_reass_remove_oldest_datagram(struct ip_hdr *fraghdr, int pbufs_needed)
  91567. {
  91568. 8025020: b580 push {r7, lr}
  91569. 8025022: b08a sub sp, #40 @ 0x28
  91570. 8025024: af00 add r7, sp, #0
  91571. 8025026: 6078 str r0, [r7, #4]
  91572. 8025028: 6039 str r1, [r7, #0]
  91573. /* @todo Can't we simply remove the last datagram in the
  91574. * linked list behind reassdatagrams?
  91575. */
  91576. struct ip_reassdata *r, *oldest, *prev, *oldest_prev;
  91577. int pbufs_freed = 0, pbufs_freed_current;
  91578. 802502a: 2300 movs r3, #0
  91579. 802502c: 617b str r3, [r7, #20]
  91580. int other_datagrams;
  91581. /* Free datagrams until being allowed to enqueue 'pbufs_needed' pbufs,
  91582. * but don't free the datagram that 'fraghdr' belongs to! */
  91583. do {
  91584. oldest = NULL;
  91585. 802502e: 2300 movs r3, #0
  91586. 8025030: 623b str r3, [r7, #32]
  91587. prev = NULL;
  91588. 8025032: 2300 movs r3, #0
  91589. 8025034: 61fb str r3, [r7, #28]
  91590. oldest_prev = NULL;
  91591. 8025036: 2300 movs r3, #0
  91592. 8025038: 61bb str r3, [r7, #24]
  91593. other_datagrams = 0;
  91594. 802503a: 2300 movs r3, #0
  91595. 802503c: 613b str r3, [r7, #16]
  91596. r = reassdatagrams;
  91597. 802503e: 4b28 ldr r3, [pc, #160] @ (80250e0 <ip_reass_remove_oldest_datagram+0xc0>)
  91598. 8025040: 681b ldr r3, [r3, #0]
  91599. 8025042: 627b str r3, [r7, #36] @ 0x24
  91600. while (r != NULL) {
  91601. 8025044: e030 b.n 80250a8 <ip_reass_remove_oldest_datagram+0x88>
  91602. if (!IP_ADDRESSES_AND_ID_MATCH(&r->iphdr, fraghdr)) {
  91603. 8025046: 6a7b ldr r3, [r7, #36] @ 0x24
  91604. 8025048: 695a ldr r2, [r3, #20]
  91605. 802504a: 687b ldr r3, [r7, #4]
  91606. 802504c: 68db ldr r3, [r3, #12]
  91607. 802504e: 429a cmp r2, r3
  91608. 8025050: d10c bne.n 802506c <ip_reass_remove_oldest_datagram+0x4c>
  91609. 8025052: 6a7b ldr r3, [r7, #36] @ 0x24
  91610. 8025054: 699a ldr r2, [r3, #24]
  91611. 8025056: 687b ldr r3, [r7, #4]
  91612. 8025058: 691b ldr r3, [r3, #16]
  91613. 802505a: 429a cmp r2, r3
  91614. 802505c: d106 bne.n 802506c <ip_reass_remove_oldest_datagram+0x4c>
  91615. 802505e: 6a7b ldr r3, [r7, #36] @ 0x24
  91616. 8025060: 899a ldrh r2, [r3, #12]
  91617. 8025062: 687b ldr r3, [r7, #4]
  91618. 8025064: 889b ldrh r3, [r3, #4]
  91619. 8025066: b29b uxth r3, r3
  91620. 8025068: 429a cmp r2, r3
  91621. 802506a: d014 beq.n 8025096 <ip_reass_remove_oldest_datagram+0x76>
  91622. /* Not the same datagram as fraghdr */
  91623. other_datagrams++;
  91624. 802506c: 693b ldr r3, [r7, #16]
  91625. 802506e: 3301 adds r3, #1
  91626. 8025070: 613b str r3, [r7, #16]
  91627. if (oldest == NULL) {
  91628. 8025072: 6a3b ldr r3, [r7, #32]
  91629. 8025074: 2b00 cmp r3, #0
  91630. 8025076: d104 bne.n 8025082 <ip_reass_remove_oldest_datagram+0x62>
  91631. oldest = r;
  91632. 8025078: 6a7b ldr r3, [r7, #36] @ 0x24
  91633. 802507a: 623b str r3, [r7, #32]
  91634. oldest_prev = prev;
  91635. 802507c: 69fb ldr r3, [r7, #28]
  91636. 802507e: 61bb str r3, [r7, #24]
  91637. 8025080: e009 b.n 8025096 <ip_reass_remove_oldest_datagram+0x76>
  91638. } else if (r->timer <= oldest->timer) {
  91639. 8025082: 6a7b ldr r3, [r7, #36] @ 0x24
  91640. 8025084: 7fda ldrb r2, [r3, #31]
  91641. 8025086: 6a3b ldr r3, [r7, #32]
  91642. 8025088: 7fdb ldrb r3, [r3, #31]
  91643. 802508a: 429a cmp r2, r3
  91644. 802508c: d803 bhi.n 8025096 <ip_reass_remove_oldest_datagram+0x76>
  91645. /* older than the previous oldest */
  91646. oldest = r;
  91647. 802508e: 6a7b ldr r3, [r7, #36] @ 0x24
  91648. 8025090: 623b str r3, [r7, #32]
  91649. oldest_prev = prev;
  91650. 8025092: 69fb ldr r3, [r7, #28]
  91651. 8025094: 61bb str r3, [r7, #24]
  91652. }
  91653. }
  91654. if (r->next != NULL) {
  91655. 8025096: 6a7b ldr r3, [r7, #36] @ 0x24
  91656. 8025098: 681b ldr r3, [r3, #0]
  91657. 802509a: 2b00 cmp r3, #0
  91658. 802509c: d001 beq.n 80250a2 <ip_reass_remove_oldest_datagram+0x82>
  91659. prev = r;
  91660. 802509e: 6a7b ldr r3, [r7, #36] @ 0x24
  91661. 80250a0: 61fb str r3, [r7, #28]
  91662. }
  91663. r = r->next;
  91664. 80250a2: 6a7b ldr r3, [r7, #36] @ 0x24
  91665. 80250a4: 681b ldr r3, [r3, #0]
  91666. 80250a6: 627b str r3, [r7, #36] @ 0x24
  91667. while (r != NULL) {
  91668. 80250a8: 6a7b ldr r3, [r7, #36] @ 0x24
  91669. 80250aa: 2b00 cmp r3, #0
  91670. 80250ac: d1cb bne.n 8025046 <ip_reass_remove_oldest_datagram+0x26>
  91671. }
  91672. if (oldest != NULL) {
  91673. 80250ae: 6a3b ldr r3, [r7, #32]
  91674. 80250b0: 2b00 cmp r3, #0
  91675. 80250b2: d008 beq.n 80250c6 <ip_reass_remove_oldest_datagram+0xa6>
  91676. pbufs_freed_current = ip_reass_free_complete_datagram(oldest, oldest_prev);
  91677. 80250b4: 69b9 ldr r1, [r7, #24]
  91678. 80250b6: 6a38 ldr r0, [r7, #32]
  91679. 80250b8: f7ff ff0e bl 8024ed8 <ip_reass_free_complete_datagram>
  91680. 80250bc: 60f8 str r0, [r7, #12]
  91681. pbufs_freed += pbufs_freed_current;
  91682. 80250be: 697a ldr r2, [r7, #20]
  91683. 80250c0: 68fb ldr r3, [r7, #12]
  91684. 80250c2: 4413 add r3, r2
  91685. 80250c4: 617b str r3, [r7, #20]
  91686. }
  91687. } while ((pbufs_freed < pbufs_needed) && (other_datagrams > 1));
  91688. 80250c6: 697a ldr r2, [r7, #20]
  91689. 80250c8: 683b ldr r3, [r7, #0]
  91690. 80250ca: 429a cmp r2, r3
  91691. 80250cc: da02 bge.n 80250d4 <ip_reass_remove_oldest_datagram+0xb4>
  91692. 80250ce: 693b ldr r3, [r7, #16]
  91693. 80250d0: 2b01 cmp r3, #1
  91694. 80250d2: dcac bgt.n 802502e <ip_reass_remove_oldest_datagram+0xe>
  91695. return pbufs_freed;
  91696. 80250d4: 697b ldr r3, [r7, #20]
  91697. }
  91698. 80250d6: 4618 mov r0, r3
  91699. 80250d8: 3728 adds r7, #40 @ 0x28
  91700. 80250da: 46bd mov sp, r7
  91701. 80250dc: bd80 pop {r7, pc}
  91702. 80250de: bf00 nop
  91703. 80250e0: 2402a188 .word 0x2402a188
  91704. 080250e4 <ip_reass_enqueue_new_datagram>:
  91705. * @param clen number of pbufs needed to enqueue (used for freeing other datagrams if not enough space)
  91706. * @return A pointer to the queue location into which the fragment was enqueued
  91707. */
  91708. static struct ip_reassdata *
  91709. ip_reass_enqueue_new_datagram(struct ip_hdr *fraghdr, int clen)
  91710. {
  91711. 80250e4: b580 push {r7, lr}
  91712. 80250e6: b084 sub sp, #16
  91713. 80250e8: af00 add r7, sp, #0
  91714. 80250ea: 6078 str r0, [r7, #4]
  91715. 80250ec: 6039 str r1, [r7, #0]
  91716. #if ! IP_REASS_FREE_OLDEST
  91717. LWIP_UNUSED_ARG(clen);
  91718. #endif
  91719. /* No matching previous fragment found, allocate a new reassdata struct */
  91720. ipr = (struct ip_reassdata *)memp_malloc(MEMP_REASSDATA);
  91721. 80250ee: 2004 movs r0, #4
  91722. 80250f0: f7f4 f830 bl 8019154 <memp_malloc>
  91723. 80250f4: 60f8 str r0, [r7, #12]
  91724. if (ipr == NULL) {
  91725. 80250f6: 68fb ldr r3, [r7, #12]
  91726. 80250f8: 2b00 cmp r3, #0
  91727. 80250fa: d110 bne.n 802511e <ip_reass_enqueue_new_datagram+0x3a>
  91728. #if IP_REASS_FREE_OLDEST
  91729. if (ip_reass_remove_oldest_datagram(fraghdr, clen) >= clen) {
  91730. 80250fc: 6839 ldr r1, [r7, #0]
  91731. 80250fe: 6878 ldr r0, [r7, #4]
  91732. 8025100: f7ff ff8e bl 8025020 <ip_reass_remove_oldest_datagram>
  91733. 8025104: 4602 mov r2, r0
  91734. 8025106: 683b ldr r3, [r7, #0]
  91735. 8025108: 4293 cmp r3, r2
  91736. 802510a: dc03 bgt.n 8025114 <ip_reass_enqueue_new_datagram+0x30>
  91737. ipr = (struct ip_reassdata *)memp_malloc(MEMP_REASSDATA);
  91738. 802510c: 2004 movs r0, #4
  91739. 802510e: f7f4 f821 bl 8019154 <memp_malloc>
  91740. 8025112: 60f8 str r0, [r7, #12]
  91741. }
  91742. if (ipr == NULL)
  91743. 8025114: 68fb ldr r3, [r7, #12]
  91744. 8025116: 2b00 cmp r3, #0
  91745. 8025118: d101 bne.n 802511e <ip_reass_enqueue_new_datagram+0x3a>
  91746. #endif /* IP_REASS_FREE_OLDEST */
  91747. {
  91748. IPFRAG_STATS_INC(ip_frag.memerr);
  91749. LWIP_DEBUGF(IP_REASS_DEBUG, ("Failed to alloc reassdata struct\n"));
  91750. return NULL;
  91751. 802511a: 2300 movs r3, #0
  91752. 802511c: e016 b.n 802514c <ip_reass_enqueue_new_datagram+0x68>
  91753. }
  91754. }
  91755. memset(ipr, 0, sizeof(struct ip_reassdata));
  91756. 802511e: 2220 movs r2, #32
  91757. 8025120: 2100 movs r1, #0
  91758. 8025122: 68f8 ldr r0, [r7, #12]
  91759. 8025124: f004 fb84 bl 8029830 <memset>
  91760. ipr->timer = IP_REASS_MAXAGE;
  91761. 8025128: 68fb ldr r3, [r7, #12]
  91762. 802512a: 220f movs r2, #15
  91763. 802512c: 77da strb r2, [r3, #31]
  91764. /* enqueue the new structure to the front of the list */
  91765. ipr->next = reassdatagrams;
  91766. 802512e: 4b09 ldr r3, [pc, #36] @ (8025154 <ip_reass_enqueue_new_datagram+0x70>)
  91767. 8025130: 681a ldr r2, [r3, #0]
  91768. 8025132: 68fb ldr r3, [r7, #12]
  91769. 8025134: 601a str r2, [r3, #0]
  91770. reassdatagrams = ipr;
  91771. 8025136: 4a07 ldr r2, [pc, #28] @ (8025154 <ip_reass_enqueue_new_datagram+0x70>)
  91772. 8025138: 68fb ldr r3, [r7, #12]
  91773. 802513a: 6013 str r3, [r2, #0]
  91774. /* copy the ip header for later tests and input */
  91775. /* @todo: no ip options supported? */
  91776. SMEMCPY(&(ipr->iphdr), fraghdr, IP_HLEN);
  91777. 802513c: 68fb ldr r3, [r7, #12]
  91778. 802513e: 3308 adds r3, #8
  91779. 8025140: 2214 movs r2, #20
  91780. 8025142: 6879 ldr r1, [r7, #4]
  91781. 8025144: 4618 mov r0, r3
  91782. 8025146: f004 fc6a bl 8029a1e <memcpy>
  91783. return ipr;
  91784. 802514a: 68fb ldr r3, [r7, #12]
  91785. }
  91786. 802514c: 4618 mov r0, r3
  91787. 802514e: 3710 adds r7, #16
  91788. 8025150: 46bd mov sp, r7
  91789. 8025152: bd80 pop {r7, pc}
  91790. 8025154: 2402a188 .word 0x2402a188
  91791. 08025158 <ip_reass_dequeue_datagram>:
  91792. * Dequeues a datagram from the datagram queue. Doesn't deallocate the pbufs.
  91793. * @param ipr points to the queue entry to dequeue
  91794. */
  91795. static void
  91796. ip_reass_dequeue_datagram(struct ip_reassdata *ipr, struct ip_reassdata *prev)
  91797. {
  91798. 8025158: b580 push {r7, lr}
  91799. 802515a: b082 sub sp, #8
  91800. 802515c: af00 add r7, sp, #0
  91801. 802515e: 6078 str r0, [r7, #4]
  91802. 8025160: 6039 str r1, [r7, #0]
  91803. /* dequeue the reass struct */
  91804. if (reassdatagrams == ipr) {
  91805. 8025162: 4b10 ldr r3, [pc, #64] @ (80251a4 <ip_reass_dequeue_datagram+0x4c>)
  91806. 8025164: 681b ldr r3, [r3, #0]
  91807. 8025166: 687a ldr r2, [r7, #4]
  91808. 8025168: 429a cmp r2, r3
  91809. 802516a: d104 bne.n 8025176 <ip_reass_dequeue_datagram+0x1e>
  91810. /* it was the first in the list */
  91811. reassdatagrams = ipr->next;
  91812. 802516c: 687b ldr r3, [r7, #4]
  91813. 802516e: 681b ldr r3, [r3, #0]
  91814. 8025170: 4a0c ldr r2, [pc, #48] @ (80251a4 <ip_reass_dequeue_datagram+0x4c>)
  91815. 8025172: 6013 str r3, [r2, #0]
  91816. 8025174: e00d b.n 8025192 <ip_reass_dequeue_datagram+0x3a>
  91817. } else {
  91818. /* it wasn't the first, so it must have a valid 'prev' */
  91819. LWIP_ASSERT("sanity check linked list", prev != NULL);
  91820. 8025176: 683b ldr r3, [r7, #0]
  91821. 8025178: 2b00 cmp r3, #0
  91822. 802517a: d106 bne.n 802518a <ip_reass_dequeue_datagram+0x32>
  91823. 802517c: 4b0a ldr r3, [pc, #40] @ (80251a8 <ip_reass_dequeue_datagram+0x50>)
  91824. 802517e: f240 1245 movw r2, #325 @ 0x145
  91825. 8025182: 490a ldr r1, [pc, #40] @ (80251ac <ip_reass_dequeue_datagram+0x54>)
  91826. 8025184: 480a ldr r0, [pc, #40] @ (80251b0 <ip_reass_dequeue_datagram+0x58>)
  91827. 8025186: f004 f9c1 bl 802950c <iprintf>
  91828. prev->next = ipr->next;
  91829. 802518a: 687b ldr r3, [r7, #4]
  91830. 802518c: 681a ldr r2, [r3, #0]
  91831. 802518e: 683b ldr r3, [r7, #0]
  91832. 8025190: 601a str r2, [r3, #0]
  91833. }
  91834. /* now we can free the ip_reassdata struct */
  91835. memp_free(MEMP_REASSDATA, ipr);
  91836. 8025192: 6879 ldr r1, [r7, #4]
  91837. 8025194: 2004 movs r0, #4
  91838. 8025196: f7f4 f853 bl 8019240 <memp_free>
  91839. }
  91840. 802519a: bf00 nop
  91841. 802519c: 3708 adds r7, #8
  91842. 802519e: 46bd mov sp, r7
  91843. 80251a0: bd80 pop {r7, pc}
  91844. 80251a2: bf00 nop
  91845. 80251a4: 2402a188 .word 0x2402a188
  91846. 80251a8: 08030200 .word 0x08030200
  91847. 80251ac: 080302c8 .word 0x080302c8
  91848. 80251b0: 08030248 .word 0x08030248
  91849. 080251b4 <ip_reass_chain_frag_into_datagram_and_validate>:
  91850. * @param is_last is 1 if this pbuf has MF==0 (ipr->flags not updated yet)
  91851. * @return see IP_REASS_VALIDATE_* defines
  91852. */
  91853. static int
  91854. ip_reass_chain_frag_into_datagram_and_validate(struct ip_reassdata *ipr, struct pbuf *new_p, int is_last)
  91855. {
  91856. 80251b4: b580 push {r7, lr}
  91857. 80251b6: b08c sub sp, #48 @ 0x30
  91858. 80251b8: af00 add r7, sp, #0
  91859. 80251ba: 60f8 str r0, [r7, #12]
  91860. 80251bc: 60b9 str r1, [r7, #8]
  91861. 80251be: 607a str r2, [r7, #4]
  91862. struct ip_reass_helper *iprh, *iprh_tmp, *iprh_prev = NULL;
  91863. 80251c0: 2300 movs r3, #0
  91864. 80251c2: 62bb str r3, [r7, #40] @ 0x28
  91865. struct pbuf *q;
  91866. u16_t offset, len;
  91867. u8_t hlen;
  91868. struct ip_hdr *fraghdr;
  91869. int valid = 1;
  91870. 80251c4: 2301 movs r3, #1
  91871. 80251c6: 623b str r3, [r7, #32]
  91872. /* Extract length and fragment offset from current fragment */
  91873. fraghdr = (struct ip_hdr *)new_p->payload;
  91874. 80251c8: 68bb ldr r3, [r7, #8]
  91875. 80251ca: 685b ldr r3, [r3, #4]
  91876. 80251cc: 61fb str r3, [r7, #28]
  91877. len = lwip_ntohs(IPH_LEN(fraghdr));
  91878. 80251ce: 69fb ldr r3, [r7, #28]
  91879. 80251d0: 885b ldrh r3, [r3, #2]
  91880. 80251d2: b29b uxth r3, r3
  91881. 80251d4: 4618 mov r0, r3
  91882. 80251d6: f7f3 fa3f bl 8018658 <lwip_htons>
  91883. 80251da: 4603 mov r3, r0
  91884. 80251dc: 837b strh r3, [r7, #26]
  91885. hlen = IPH_HL_BYTES(fraghdr);
  91886. 80251de: 69fb ldr r3, [r7, #28]
  91887. 80251e0: 781b ldrb r3, [r3, #0]
  91888. 80251e2: f003 030f and.w r3, r3, #15
  91889. 80251e6: b2db uxtb r3, r3
  91890. 80251e8: 009b lsls r3, r3, #2
  91891. 80251ea: 767b strb r3, [r7, #25]
  91892. if (hlen > len) {
  91893. 80251ec: 7e7b ldrb r3, [r7, #25]
  91894. 80251ee: b29b uxth r3, r3
  91895. 80251f0: 8b7a ldrh r2, [r7, #26]
  91896. 80251f2: 429a cmp r2, r3
  91897. 80251f4: d202 bcs.n 80251fc <ip_reass_chain_frag_into_datagram_and_validate+0x48>
  91898. /* invalid datagram */
  91899. return IP_REASS_VALIDATE_PBUF_DROPPED;
  91900. 80251f6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  91901. 80251fa: e135 b.n 8025468 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  91902. }
  91903. len = (u16_t)(len - hlen);
  91904. 80251fc: 7e7b ldrb r3, [r7, #25]
  91905. 80251fe: b29b uxth r3, r3
  91906. 8025200: 8b7a ldrh r2, [r7, #26]
  91907. 8025202: 1ad3 subs r3, r2, r3
  91908. 8025204: 837b strh r3, [r7, #26]
  91909. offset = IPH_OFFSET_BYTES(fraghdr);
  91910. 8025206: 69fb ldr r3, [r7, #28]
  91911. 8025208: 88db ldrh r3, [r3, #6]
  91912. 802520a: b29b uxth r3, r3
  91913. 802520c: 4618 mov r0, r3
  91914. 802520e: f7f3 fa23 bl 8018658 <lwip_htons>
  91915. 8025212: 4603 mov r3, r0
  91916. 8025214: f3c3 030c ubfx r3, r3, #0, #13
  91917. 8025218: b29b uxth r3, r3
  91918. 802521a: 00db lsls r3, r3, #3
  91919. 802521c: 82fb strh r3, [r7, #22]
  91920. /* overwrite the fragment's ip header from the pbuf with our helper struct,
  91921. * and setup the embedded helper structure. */
  91922. /* make sure the struct ip_reass_helper fits into the IP header */
  91923. LWIP_ASSERT("sizeof(struct ip_reass_helper) <= IP_HLEN",
  91924. sizeof(struct ip_reass_helper) <= IP_HLEN);
  91925. iprh = (struct ip_reass_helper *)new_p->payload;
  91926. 802521e: 68bb ldr r3, [r7, #8]
  91927. 8025220: 685b ldr r3, [r3, #4]
  91928. 8025222: 62fb str r3, [r7, #44] @ 0x2c
  91929. iprh->next_pbuf = NULL;
  91930. 8025224: 6afb ldr r3, [r7, #44] @ 0x2c
  91931. 8025226: 2200 movs r2, #0
  91932. 8025228: 701a strb r2, [r3, #0]
  91933. 802522a: 2200 movs r2, #0
  91934. 802522c: 705a strb r2, [r3, #1]
  91935. 802522e: 2200 movs r2, #0
  91936. 8025230: 709a strb r2, [r3, #2]
  91937. 8025232: 2200 movs r2, #0
  91938. 8025234: 70da strb r2, [r3, #3]
  91939. iprh->start = offset;
  91940. 8025236: 6afb ldr r3, [r7, #44] @ 0x2c
  91941. 8025238: 8afa ldrh r2, [r7, #22]
  91942. 802523a: 809a strh r2, [r3, #4]
  91943. iprh->end = (u16_t)(offset + len);
  91944. 802523c: 8afa ldrh r2, [r7, #22]
  91945. 802523e: 8b7b ldrh r3, [r7, #26]
  91946. 8025240: 4413 add r3, r2
  91947. 8025242: b29a uxth r2, r3
  91948. 8025244: 6afb ldr r3, [r7, #44] @ 0x2c
  91949. 8025246: 80da strh r2, [r3, #6]
  91950. if (iprh->end < offset) {
  91951. 8025248: 6afb ldr r3, [r7, #44] @ 0x2c
  91952. 802524a: 88db ldrh r3, [r3, #6]
  91953. 802524c: b29b uxth r3, r3
  91954. 802524e: 8afa ldrh r2, [r7, #22]
  91955. 8025250: 429a cmp r2, r3
  91956. 8025252: d902 bls.n 802525a <ip_reass_chain_frag_into_datagram_and_validate+0xa6>
  91957. /* u16_t overflow, cannot handle this */
  91958. return IP_REASS_VALIDATE_PBUF_DROPPED;
  91959. 8025254: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  91960. 8025258: e106 b.n 8025468 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  91961. }
  91962. /* Iterate through until we either get to the end of the list (append),
  91963. * or we find one with a larger offset (insert). */
  91964. for (q = ipr->p; q != NULL;) {
  91965. 802525a: 68fb ldr r3, [r7, #12]
  91966. 802525c: 685b ldr r3, [r3, #4]
  91967. 802525e: 627b str r3, [r7, #36] @ 0x24
  91968. 8025260: e068 b.n 8025334 <ip_reass_chain_frag_into_datagram_and_validate+0x180>
  91969. iprh_tmp = (struct ip_reass_helper *)q->payload;
  91970. 8025262: 6a7b ldr r3, [r7, #36] @ 0x24
  91971. 8025264: 685b ldr r3, [r3, #4]
  91972. 8025266: 613b str r3, [r7, #16]
  91973. if (iprh->start < iprh_tmp->start) {
  91974. 8025268: 6afb ldr r3, [r7, #44] @ 0x2c
  91975. 802526a: 889b ldrh r3, [r3, #4]
  91976. 802526c: b29a uxth r2, r3
  91977. 802526e: 693b ldr r3, [r7, #16]
  91978. 8025270: 889b ldrh r3, [r3, #4]
  91979. 8025272: b29b uxth r3, r3
  91980. 8025274: 429a cmp r2, r3
  91981. 8025276: d235 bcs.n 80252e4 <ip_reass_chain_frag_into_datagram_and_validate+0x130>
  91982. /* the new pbuf should be inserted before this */
  91983. iprh->next_pbuf = q;
  91984. 8025278: 6afb ldr r3, [r7, #44] @ 0x2c
  91985. 802527a: 6a7a ldr r2, [r7, #36] @ 0x24
  91986. 802527c: 601a str r2, [r3, #0]
  91987. if (iprh_prev != NULL) {
  91988. 802527e: 6abb ldr r3, [r7, #40] @ 0x28
  91989. 8025280: 2b00 cmp r3, #0
  91990. 8025282: d020 beq.n 80252c6 <ip_reass_chain_frag_into_datagram_and_validate+0x112>
  91991. /* not the fragment with the lowest offset */
  91992. #if IP_REASS_CHECK_OVERLAP
  91993. if ((iprh->start < iprh_prev->end) || (iprh->end > iprh_tmp->start)) {
  91994. 8025284: 6afb ldr r3, [r7, #44] @ 0x2c
  91995. 8025286: 889b ldrh r3, [r3, #4]
  91996. 8025288: b29a uxth r2, r3
  91997. 802528a: 6abb ldr r3, [r7, #40] @ 0x28
  91998. 802528c: 88db ldrh r3, [r3, #6]
  91999. 802528e: b29b uxth r3, r3
  92000. 8025290: 429a cmp r2, r3
  92001. 8025292: d307 bcc.n 80252a4 <ip_reass_chain_frag_into_datagram_and_validate+0xf0>
  92002. 8025294: 6afb ldr r3, [r7, #44] @ 0x2c
  92003. 8025296: 88db ldrh r3, [r3, #6]
  92004. 8025298: b29a uxth r2, r3
  92005. 802529a: 693b ldr r3, [r7, #16]
  92006. 802529c: 889b ldrh r3, [r3, #4]
  92007. 802529e: b29b uxth r3, r3
  92008. 80252a0: 429a cmp r2, r3
  92009. 80252a2: d902 bls.n 80252aa <ip_reass_chain_frag_into_datagram_and_validate+0xf6>
  92010. /* fragment overlaps with previous or following, throw away */
  92011. return IP_REASS_VALIDATE_PBUF_DROPPED;
  92012. 80252a4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  92013. 80252a8: e0de b.n 8025468 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  92014. }
  92015. #endif /* IP_REASS_CHECK_OVERLAP */
  92016. iprh_prev->next_pbuf = new_p;
  92017. 80252aa: 6abb ldr r3, [r7, #40] @ 0x28
  92018. 80252ac: 68ba ldr r2, [r7, #8]
  92019. 80252ae: 601a str r2, [r3, #0]
  92020. if (iprh_prev->end != iprh->start) {
  92021. 80252b0: 6abb ldr r3, [r7, #40] @ 0x28
  92022. 80252b2: 88db ldrh r3, [r3, #6]
  92023. 80252b4: b29a uxth r2, r3
  92024. 80252b6: 6afb ldr r3, [r7, #44] @ 0x2c
  92025. 80252b8: 889b ldrh r3, [r3, #4]
  92026. 80252ba: b29b uxth r3, r3
  92027. 80252bc: 429a cmp r2, r3
  92028. 80252be: d03d beq.n 802533c <ip_reass_chain_frag_into_datagram_and_validate+0x188>
  92029. /* There is a fragment missing between the current
  92030. * and the previous fragment */
  92031. valid = 0;
  92032. 80252c0: 2300 movs r3, #0
  92033. 80252c2: 623b str r3, [r7, #32]
  92034. }
  92035. #endif /* IP_REASS_CHECK_OVERLAP */
  92036. /* fragment with the lowest offset */
  92037. ipr->p = new_p;
  92038. }
  92039. break;
  92040. 80252c4: e03a b.n 802533c <ip_reass_chain_frag_into_datagram_and_validate+0x188>
  92041. if (iprh->end > iprh_tmp->start) {
  92042. 80252c6: 6afb ldr r3, [r7, #44] @ 0x2c
  92043. 80252c8: 88db ldrh r3, [r3, #6]
  92044. 80252ca: b29a uxth r2, r3
  92045. 80252cc: 693b ldr r3, [r7, #16]
  92046. 80252ce: 889b ldrh r3, [r3, #4]
  92047. 80252d0: b29b uxth r3, r3
  92048. 80252d2: 429a cmp r2, r3
  92049. 80252d4: d902 bls.n 80252dc <ip_reass_chain_frag_into_datagram_and_validate+0x128>
  92050. return IP_REASS_VALIDATE_PBUF_DROPPED;
  92051. 80252d6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  92052. 80252da: e0c5 b.n 8025468 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  92053. ipr->p = new_p;
  92054. 80252dc: 68fb ldr r3, [r7, #12]
  92055. 80252de: 68ba ldr r2, [r7, #8]
  92056. 80252e0: 605a str r2, [r3, #4]
  92057. break;
  92058. 80252e2: e02b b.n 802533c <ip_reass_chain_frag_into_datagram_and_validate+0x188>
  92059. } else if (iprh->start == iprh_tmp->start) {
  92060. 80252e4: 6afb ldr r3, [r7, #44] @ 0x2c
  92061. 80252e6: 889b ldrh r3, [r3, #4]
  92062. 80252e8: b29a uxth r2, r3
  92063. 80252ea: 693b ldr r3, [r7, #16]
  92064. 80252ec: 889b ldrh r3, [r3, #4]
  92065. 80252ee: b29b uxth r3, r3
  92066. 80252f0: 429a cmp r2, r3
  92067. 80252f2: d102 bne.n 80252fa <ip_reass_chain_frag_into_datagram_and_validate+0x146>
  92068. /* received the same datagram twice: no need to keep the datagram */
  92069. return IP_REASS_VALIDATE_PBUF_DROPPED;
  92070. 80252f4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  92071. 80252f8: e0b6 b.n 8025468 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  92072. #if IP_REASS_CHECK_OVERLAP
  92073. } else if (iprh->start < iprh_tmp->end) {
  92074. 80252fa: 6afb ldr r3, [r7, #44] @ 0x2c
  92075. 80252fc: 889b ldrh r3, [r3, #4]
  92076. 80252fe: b29a uxth r2, r3
  92077. 8025300: 693b ldr r3, [r7, #16]
  92078. 8025302: 88db ldrh r3, [r3, #6]
  92079. 8025304: b29b uxth r3, r3
  92080. 8025306: 429a cmp r2, r3
  92081. 8025308: d202 bcs.n 8025310 <ip_reass_chain_frag_into_datagram_and_validate+0x15c>
  92082. /* overlap: no need to keep the new datagram */
  92083. return IP_REASS_VALIDATE_PBUF_DROPPED;
  92084. 802530a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  92085. 802530e: e0ab b.n 8025468 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  92086. #endif /* IP_REASS_CHECK_OVERLAP */
  92087. } else {
  92088. /* Check if the fragments received so far have no holes. */
  92089. if (iprh_prev != NULL) {
  92090. 8025310: 6abb ldr r3, [r7, #40] @ 0x28
  92091. 8025312: 2b00 cmp r3, #0
  92092. 8025314: d009 beq.n 802532a <ip_reass_chain_frag_into_datagram_and_validate+0x176>
  92093. if (iprh_prev->end != iprh_tmp->start) {
  92094. 8025316: 6abb ldr r3, [r7, #40] @ 0x28
  92095. 8025318: 88db ldrh r3, [r3, #6]
  92096. 802531a: b29a uxth r2, r3
  92097. 802531c: 693b ldr r3, [r7, #16]
  92098. 802531e: 889b ldrh r3, [r3, #4]
  92099. 8025320: b29b uxth r3, r3
  92100. 8025322: 429a cmp r2, r3
  92101. 8025324: d001 beq.n 802532a <ip_reass_chain_frag_into_datagram_and_validate+0x176>
  92102. /* There is a fragment missing between the current
  92103. * and the previous fragment */
  92104. valid = 0;
  92105. 8025326: 2300 movs r3, #0
  92106. 8025328: 623b str r3, [r7, #32]
  92107. }
  92108. }
  92109. }
  92110. q = iprh_tmp->next_pbuf;
  92111. 802532a: 693b ldr r3, [r7, #16]
  92112. 802532c: 681b ldr r3, [r3, #0]
  92113. 802532e: 627b str r3, [r7, #36] @ 0x24
  92114. iprh_prev = iprh_tmp;
  92115. 8025330: 693b ldr r3, [r7, #16]
  92116. 8025332: 62bb str r3, [r7, #40] @ 0x28
  92117. for (q = ipr->p; q != NULL;) {
  92118. 8025334: 6a7b ldr r3, [r7, #36] @ 0x24
  92119. 8025336: 2b00 cmp r3, #0
  92120. 8025338: d193 bne.n 8025262 <ip_reass_chain_frag_into_datagram_and_validate+0xae>
  92121. 802533a: e000 b.n 802533e <ip_reass_chain_frag_into_datagram_and_validate+0x18a>
  92122. break;
  92123. 802533c: bf00 nop
  92124. }
  92125. /* If q is NULL, then we made it to the end of the list. Determine what to do now */
  92126. if (q == NULL) {
  92127. 802533e: 6a7b ldr r3, [r7, #36] @ 0x24
  92128. 8025340: 2b00 cmp r3, #0
  92129. 8025342: d12d bne.n 80253a0 <ip_reass_chain_frag_into_datagram_and_validate+0x1ec>
  92130. if (iprh_prev != NULL) {
  92131. 8025344: 6abb ldr r3, [r7, #40] @ 0x28
  92132. 8025346: 2b00 cmp r3, #0
  92133. 8025348: d01c beq.n 8025384 <ip_reass_chain_frag_into_datagram_and_validate+0x1d0>
  92134. /* this is (for now), the fragment with the highest offset:
  92135. * chain it to the last fragment */
  92136. #if IP_REASS_CHECK_OVERLAP
  92137. LWIP_ASSERT("check fragments don't overlap", iprh_prev->end <= iprh->start);
  92138. 802534a: 6abb ldr r3, [r7, #40] @ 0x28
  92139. 802534c: 88db ldrh r3, [r3, #6]
  92140. 802534e: b29a uxth r2, r3
  92141. 8025350: 6afb ldr r3, [r7, #44] @ 0x2c
  92142. 8025352: 889b ldrh r3, [r3, #4]
  92143. 8025354: b29b uxth r3, r3
  92144. 8025356: 429a cmp r2, r3
  92145. 8025358: d906 bls.n 8025368 <ip_reass_chain_frag_into_datagram_and_validate+0x1b4>
  92146. 802535a: 4b45 ldr r3, [pc, #276] @ (8025470 <ip_reass_chain_frag_into_datagram_and_validate+0x2bc>)
  92147. 802535c: f44f 72db mov.w r2, #438 @ 0x1b6
  92148. 8025360: 4944 ldr r1, [pc, #272] @ (8025474 <ip_reass_chain_frag_into_datagram_and_validate+0x2c0>)
  92149. 8025362: 4845 ldr r0, [pc, #276] @ (8025478 <ip_reass_chain_frag_into_datagram_and_validate+0x2c4>)
  92150. 8025364: f004 f8d2 bl 802950c <iprintf>
  92151. #endif /* IP_REASS_CHECK_OVERLAP */
  92152. iprh_prev->next_pbuf = new_p;
  92153. 8025368: 6abb ldr r3, [r7, #40] @ 0x28
  92154. 802536a: 68ba ldr r2, [r7, #8]
  92155. 802536c: 601a str r2, [r3, #0]
  92156. if (iprh_prev->end != iprh->start) {
  92157. 802536e: 6abb ldr r3, [r7, #40] @ 0x28
  92158. 8025370: 88db ldrh r3, [r3, #6]
  92159. 8025372: b29a uxth r2, r3
  92160. 8025374: 6afb ldr r3, [r7, #44] @ 0x2c
  92161. 8025376: 889b ldrh r3, [r3, #4]
  92162. 8025378: b29b uxth r3, r3
  92163. 802537a: 429a cmp r2, r3
  92164. 802537c: d010 beq.n 80253a0 <ip_reass_chain_frag_into_datagram_and_validate+0x1ec>
  92165. valid = 0;
  92166. 802537e: 2300 movs r3, #0
  92167. 8025380: 623b str r3, [r7, #32]
  92168. 8025382: e00d b.n 80253a0 <ip_reass_chain_frag_into_datagram_and_validate+0x1ec>
  92169. }
  92170. } else {
  92171. #if IP_REASS_CHECK_OVERLAP
  92172. LWIP_ASSERT("no previous fragment, this must be the first fragment!",
  92173. 8025384: 68fb ldr r3, [r7, #12]
  92174. 8025386: 685b ldr r3, [r3, #4]
  92175. 8025388: 2b00 cmp r3, #0
  92176. 802538a: d006 beq.n 802539a <ip_reass_chain_frag_into_datagram_and_validate+0x1e6>
  92177. 802538c: 4b38 ldr r3, [pc, #224] @ (8025470 <ip_reass_chain_frag_into_datagram_and_validate+0x2bc>)
  92178. 802538e: f44f 72df mov.w r2, #446 @ 0x1be
  92179. 8025392: 493a ldr r1, [pc, #232] @ (802547c <ip_reass_chain_frag_into_datagram_and_validate+0x2c8>)
  92180. 8025394: 4838 ldr r0, [pc, #224] @ (8025478 <ip_reass_chain_frag_into_datagram_and_validate+0x2c4>)
  92181. 8025396: f004 f8b9 bl 802950c <iprintf>
  92182. ipr->p == NULL);
  92183. #endif /* IP_REASS_CHECK_OVERLAP */
  92184. /* this is the first fragment we ever received for this ip datagram */
  92185. ipr->p = new_p;
  92186. 802539a: 68fb ldr r3, [r7, #12]
  92187. 802539c: 68ba ldr r2, [r7, #8]
  92188. 802539e: 605a str r2, [r3, #4]
  92189. }
  92190. }
  92191. /* At this point, the validation part begins: */
  92192. /* If we already received the last fragment */
  92193. if (is_last || ((ipr->flags & IP_REASS_FLAG_LASTFRAG) != 0)) {
  92194. 80253a0: 687b ldr r3, [r7, #4]
  92195. 80253a2: 2b00 cmp r3, #0
  92196. 80253a4: d105 bne.n 80253b2 <ip_reass_chain_frag_into_datagram_and_validate+0x1fe>
  92197. 80253a6: 68fb ldr r3, [r7, #12]
  92198. 80253a8: 7f9b ldrb r3, [r3, #30]
  92199. 80253aa: f003 0301 and.w r3, r3, #1
  92200. 80253ae: 2b00 cmp r3, #0
  92201. 80253b0: d059 beq.n 8025466 <ip_reass_chain_frag_into_datagram_and_validate+0x2b2>
  92202. /* and had no holes so far */
  92203. if (valid) {
  92204. 80253b2: 6a3b ldr r3, [r7, #32]
  92205. 80253b4: 2b00 cmp r3, #0
  92206. 80253b6: d04f beq.n 8025458 <ip_reass_chain_frag_into_datagram_and_validate+0x2a4>
  92207. /* then check if the rest of the fragments is here */
  92208. /* Check if the queue starts with the first datagram */
  92209. if ((ipr->p == NULL) || (((struct ip_reass_helper *)ipr->p->payload)->start != 0)) {
  92210. 80253b8: 68fb ldr r3, [r7, #12]
  92211. 80253ba: 685b ldr r3, [r3, #4]
  92212. 80253bc: 2b00 cmp r3, #0
  92213. 80253be: d006 beq.n 80253ce <ip_reass_chain_frag_into_datagram_and_validate+0x21a>
  92214. 80253c0: 68fb ldr r3, [r7, #12]
  92215. 80253c2: 685b ldr r3, [r3, #4]
  92216. 80253c4: 685b ldr r3, [r3, #4]
  92217. 80253c6: 889b ldrh r3, [r3, #4]
  92218. 80253c8: b29b uxth r3, r3
  92219. 80253ca: 2b00 cmp r3, #0
  92220. 80253cc: d002 beq.n 80253d4 <ip_reass_chain_frag_into_datagram_and_validate+0x220>
  92221. valid = 0;
  92222. 80253ce: 2300 movs r3, #0
  92223. 80253d0: 623b str r3, [r7, #32]
  92224. 80253d2: e041 b.n 8025458 <ip_reass_chain_frag_into_datagram_and_validate+0x2a4>
  92225. } else {
  92226. /* and check that there are no holes after this datagram */
  92227. iprh_prev = iprh;
  92228. 80253d4: 6afb ldr r3, [r7, #44] @ 0x2c
  92229. 80253d6: 62bb str r3, [r7, #40] @ 0x28
  92230. q = iprh->next_pbuf;
  92231. 80253d8: 6afb ldr r3, [r7, #44] @ 0x2c
  92232. 80253da: 681b ldr r3, [r3, #0]
  92233. 80253dc: 627b str r3, [r7, #36] @ 0x24
  92234. while (q != NULL) {
  92235. 80253de: e012 b.n 8025406 <ip_reass_chain_frag_into_datagram_and_validate+0x252>
  92236. iprh = (struct ip_reass_helper *)q->payload;
  92237. 80253e0: 6a7b ldr r3, [r7, #36] @ 0x24
  92238. 80253e2: 685b ldr r3, [r3, #4]
  92239. 80253e4: 62fb str r3, [r7, #44] @ 0x2c
  92240. if (iprh_prev->end != iprh->start) {
  92241. 80253e6: 6abb ldr r3, [r7, #40] @ 0x28
  92242. 80253e8: 88db ldrh r3, [r3, #6]
  92243. 80253ea: b29a uxth r2, r3
  92244. 80253ec: 6afb ldr r3, [r7, #44] @ 0x2c
  92245. 80253ee: 889b ldrh r3, [r3, #4]
  92246. 80253f0: b29b uxth r3, r3
  92247. 80253f2: 429a cmp r2, r3
  92248. 80253f4: d002 beq.n 80253fc <ip_reass_chain_frag_into_datagram_and_validate+0x248>
  92249. valid = 0;
  92250. 80253f6: 2300 movs r3, #0
  92251. 80253f8: 623b str r3, [r7, #32]
  92252. break;
  92253. 80253fa: e007 b.n 802540c <ip_reass_chain_frag_into_datagram_and_validate+0x258>
  92254. }
  92255. iprh_prev = iprh;
  92256. 80253fc: 6afb ldr r3, [r7, #44] @ 0x2c
  92257. 80253fe: 62bb str r3, [r7, #40] @ 0x28
  92258. q = iprh->next_pbuf;
  92259. 8025400: 6afb ldr r3, [r7, #44] @ 0x2c
  92260. 8025402: 681b ldr r3, [r3, #0]
  92261. 8025404: 627b str r3, [r7, #36] @ 0x24
  92262. while (q != NULL) {
  92263. 8025406: 6a7b ldr r3, [r7, #36] @ 0x24
  92264. 8025408: 2b00 cmp r3, #0
  92265. 802540a: d1e9 bne.n 80253e0 <ip_reass_chain_frag_into_datagram_and_validate+0x22c>
  92266. }
  92267. /* if still valid, all fragments are received
  92268. * (because to the MF==0 already arrived */
  92269. if (valid) {
  92270. 802540c: 6a3b ldr r3, [r7, #32]
  92271. 802540e: 2b00 cmp r3, #0
  92272. 8025410: d022 beq.n 8025458 <ip_reass_chain_frag_into_datagram_and_validate+0x2a4>
  92273. LWIP_ASSERT("sanity check", ipr->p != NULL);
  92274. 8025412: 68fb ldr r3, [r7, #12]
  92275. 8025414: 685b ldr r3, [r3, #4]
  92276. 8025416: 2b00 cmp r3, #0
  92277. 8025418: d106 bne.n 8025428 <ip_reass_chain_frag_into_datagram_and_validate+0x274>
  92278. 802541a: 4b15 ldr r3, [pc, #84] @ (8025470 <ip_reass_chain_frag_into_datagram_and_validate+0x2bc>)
  92279. 802541c: f240 12df movw r2, #479 @ 0x1df
  92280. 8025420: 4917 ldr r1, [pc, #92] @ (8025480 <ip_reass_chain_frag_into_datagram_and_validate+0x2cc>)
  92281. 8025422: 4815 ldr r0, [pc, #84] @ (8025478 <ip_reass_chain_frag_into_datagram_and_validate+0x2c4>)
  92282. 8025424: f004 f872 bl 802950c <iprintf>
  92283. LWIP_ASSERT("sanity check",
  92284. 8025428: 68fb ldr r3, [r7, #12]
  92285. 802542a: 685b ldr r3, [r3, #4]
  92286. 802542c: 685b ldr r3, [r3, #4]
  92287. 802542e: 6afa ldr r2, [r7, #44] @ 0x2c
  92288. 8025430: 429a cmp r2, r3
  92289. 8025432: d106 bne.n 8025442 <ip_reass_chain_frag_into_datagram_and_validate+0x28e>
  92290. 8025434: 4b0e ldr r3, [pc, #56] @ (8025470 <ip_reass_chain_frag_into_datagram_and_validate+0x2bc>)
  92291. 8025436: f44f 72f0 mov.w r2, #480 @ 0x1e0
  92292. 802543a: 4911 ldr r1, [pc, #68] @ (8025480 <ip_reass_chain_frag_into_datagram_and_validate+0x2cc>)
  92293. 802543c: 480e ldr r0, [pc, #56] @ (8025478 <ip_reass_chain_frag_into_datagram_and_validate+0x2c4>)
  92294. 802543e: f004 f865 bl 802950c <iprintf>
  92295. ((struct ip_reass_helper *)ipr->p->payload) != iprh);
  92296. LWIP_ASSERT("validate_datagram:next_pbuf!=NULL",
  92297. 8025442: 6afb ldr r3, [r7, #44] @ 0x2c
  92298. 8025444: 681b ldr r3, [r3, #0]
  92299. 8025446: 2b00 cmp r3, #0
  92300. 8025448: d006 beq.n 8025458 <ip_reass_chain_frag_into_datagram_and_validate+0x2a4>
  92301. 802544a: 4b09 ldr r3, [pc, #36] @ (8025470 <ip_reass_chain_frag_into_datagram_and_validate+0x2bc>)
  92302. 802544c: f44f 72f1 mov.w r2, #482 @ 0x1e2
  92303. 8025450: 490c ldr r1, [pc, #48] @ (8025484 <ip_reass_chain_frag_into_datagram_and_validate+0x2d0>)
  92304. 8025452: 4809 ldr r0, [pc, #36] @ (8025478 <ip_reass_chain_frag_into_datagram_and_validate+0x2c4>)
  92305. 8025454: f004 f85a bl 802950c <iprintf>
  92306. }
  92307. }
  92308. /* If valid is 0 here, there are some fragments missing in the middle
  92309. * (since MF == 0 has already arrived). Such datagrams simply time out if
  92310. * no more fragments are received... */
  92311. return valid ? IP_REASS_VALIDATE_TELEGRAM_FINISHED : IP_REASS_VALIDATE_PBUF_QUEUED;
  92312. 8025458: 6a3b ldr r3, [r7, #32]
  92313. 802545a: 2b00 cmp r3, #0
  92314. 802545c: bf14 ite ne
  92315. 802545e: 2301 movne r3, #1
  92316. 8025460: 2300 moveq r3, #0
  92317. 8025462: b2db uxtb r3, r3
  92318. 8025464: e000 b.n 8025468 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  92319. }
  92320. /* If we come here, not all fragments were received, yet! */
  92321. return IP_REASS_VALIDATE_PBUF_QUEUED; /* not yet valid! */
  92322. 8025466: 2300 movs r3, #0
  92323. }
  92324. 8025468: 4618 mov r0, r3
  92325. 802546a: 3730 adds r7, #48 @ 0x30
  92326. 802546c: 46bd mov sp, r7
  92327. 802546e: bd80 pop {r7, pc}
  92328. 8025470: 08030200 .word 0x08030200
  92329. 8025474: 080302e4 .word 0x080302e4
  92330. 8025478: 08030248 .word 0x08030248
  92331. 802547c: 08030304 .word 0x08030304
  92332. 8025480: 0803033c .word 0x0803033c
  92333. 8025484: 0803034c .word 0x0803034c
  92334. 08025488 <ip4_reass>:
  92335. * @param p points to a pbuf chain of the fragment
  92336. * @return NULL if reassembly is incomplete, ? otherwise
  92337. */
  92338. struct pbuf *
  92339. ip4_reass(struct pbuf *p)
  92340. {
  92341. 8025488: b580 push {r7, lr}
  92342. 802548a: b08e sub sp, #56 @ 0x38
  92343. 802548c: af00 add r7, sp, #0
  92344. 802548e: 6078 str r0, [r7, #4]
  92345. int is_last;
  92346. IPFRAG_STATS_INC(ip_frag.recv);
  92347. MIB2_STATS_INC(mib2.ipreasmreqds);
  92348. fraghdr = (struct ip_hdr *)p->payload;
  92349. 8025490: 687b ldr r3, [r7, #4]
  92350. 8025492: 685b ldr r3, [r3, #4]
  92351. 8025494: 62bb str r3, [r7, #40] @ 0x28
  92352. if (IPH_HL_BYTES(fraghdr) != IP_HLEN) {
  92353. 8025496: 6abb ldr r3, [r7, #40] @ 0x28
  92354. 8025498: 781b ldrb r3, [r3, #0]
  92355. 802549a: f003 030f and.w r3, r3, #15
  92356. 802549e: b2db uxtb r3, r3
  92357. 80254a0: 009b lsls r3, r3, #2
  92358. 80254a2: b2db uxtb r3, r3
  92359. 80254a4: 2b14 cmp r3, #20
  92360. 80254a6: f040 8171 bne.w 802578c <ip4_reass+0x304>
  92361. LWIP_DEBUGF(IP_REASS_DEBUG, ("ip4_reass: IP options currently not supported!\n"));
  92362. IPFRAG_STATS_INC(ip_frag.err);
  92363. goto nullreturn;
  92364. }
  92365. offset = IPH_OFFSET_BYTES(fraghdr);
  92366. 80254aa: 6abb ldr r3, [r7, #40] @ 0x28
  92367. 80254ac: 88db ldrh r3, [r3, #6]
  92368. 80254ae: b29b uxth r3, r3
  92369. 80254b0: 4618 mov r0, r3
  92370. 80254b2: f7f3 f8d1 bl 8018658 <lwip_htons>
  92371. 80254b6: 4603 mov r3, r0
  92372. 80254b8: f3c3 030c ubfx r3, r3, #0, #13
  92373. 80254bc: b29b uxth r3, r3
  92374. 80254be: 00db lsls r3, r3, #3
  92375. 80254c0: 84fb strh r3, [r7, #38] @ 0x26
  92376. len = lwip_ntohs(IPH_LEN(fraghdr));
  92377. 80254c2: 6abb ldr r3, [r7, #40] @ 0x28
  92378. 80254c4: 885b ldrh r3, [r3, #2]
  92379. 80254c6: b29b uxth r3, r3
  92380. 80254c8: 4618 mov r0, r3
  92381. 80254ca: f7f3 f8c5 bl 8018658 <lwip_htons>
  92382. 80254ce: 4603 mov r3, r0
  92383. 80254d0: 84bb strh r3, [r7, #36] @ 0x24
  92384. hlen = IPH_HL_BYTES(fraghdr);
  92385. 80254d2: 6abb ldr r3, [r7, #40] @ 0x28
  92386. 80254d4: 781b ldrb r3, [r3, #0]
  92387. 80254d6: f003 030f and.w r3, r3, #15
  92388. 80254da: b2db uxtb r3, r3
  92389. 80254dc: 009b lsls r3, r3, #2
  92390. 80254de: f887 3023 strb.w r3, [r7, #35] @ 0x23
  92391. if (hlen > len) {
  92392. 80254e2: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  92393. 80254e6: b29b uxth r3, r3
  92394. 80254e8: 8cba ldrh r2, [r7, #36] @ 0x24
  92395. 80254ea: 429a cmp r2, r3
  92396. 80254ec: f0c0 8150 bcc.w 8025790 <ip4_reass+0x308>
  92397. /* invalid datagram */
  92398. goto nullreturn;
  92399. }
  92400. len = (u16_t)(len - hlen);
  92401. 80254f0: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  92402. 80254f4: b29b uxth r3, r3
  92403. 80254f6: 8cba ldrh r2, [r7, #36] @ 0x24
  92404. 80254f8: 1ad3 subs r3, r2, r3
  92405. 80254fa: 84bb strh r3, [r7, #36] @ 0x24
  92406. /* Check if we are allowed to enqueue more datagrams. */
  92407. clen = pbuf_clen(p);
  92408. 80254fc: 6878 ldr r0, [r7, #4]
  92409. 80254fe: f7f4 fe1b bl 801a138 <pbuf_clen>
  92410. 8025502: 4603 mov r3, r0
  92411. 8025504: 843b strh r3, [r7, #32]
  92412. if ((ip_reass_pbufcount + clen) > IP_REASS_MAX_PBUFS) {
  92413. 8025506: 4b8c ldr r3, [pc, #560] @ (8025738 <ip4_reass+0x2b0>)
  92414. 8025508: 881b ldrh r3, [r3, #0]
  92415. 802550a: 461a mov r2, r3
  92416. 802550c: 8c3b ldrh r3, [r7, #32]
  92417. 802550e: 4413 add r3, r2
  92418. 8025510: 2b0a cmp r3, #10
  92419. 8025512: dd10 ble.n 8025536 <ip4_reass+0xae>
  92420. #if IP_REASS_FREE_OLDEST
  92421. if (!ip_reass_remove_oldest_datagram(fraghdr, clen) ||
  92422. 8025514: 8c3b ldrh r3, [r7, #32]
  92423. 8025516: 4619 mov r1, r3
  92424. 8025518: 6ab8 ldr r0, [r7, #40] @ 0x28
  92425. 802551a: f7ff fd81 bl 8025020 <ip_reass_remove_oldest_datagram>
  92426. 802551e: 4603 mov r3, r0
  92427. 8025520: 2b00 cmp r3, #0
  92428. 8025522: f000 8137 beq.w 8025794 <ip4_reass+0x30c>
  92429. ((ip_reass_pbufcount + clen) > IP_REASS_MAX_PBUFS))
  92430. 8025526: 4b84 ldr r3, [pc, #528] @ (8025738 <ip4_reass+0x2b0>)
  92431. 8025528: 881b ldrh r3, [r3, #0]
  92432. 802552a: 461a mov r2, r3
  92433. 802552c: 8c3b ldrh r3, [r7, #32]
  92434. 802552e: 4413 add r3, r2
  92435. if (!ip_reass_remove_oldest_datagram(fraghdr, clen) ||
  92436. 8025530: 2b0a cmp r3, #10
  92437. 8025532: f300 812f bgt.w 8025794 <ip4_reass+0x30c>
  92438. }
  92439. }
  92440. /* Look for the datagram the fragment belongs to in the current datagram queue,
  92441. * remembering the previous in the queue for later dequeueing. */
  92442. for (ipr = reassdatagrams; ipr != NULL; ipr = ipr->next) {
  92443. 8025536: 4b81 ldr r3, [pc, #516] @ (802573c <ip4_reass+0x2b4>)
  92444. 8025538: 681b ldr r3, [r3, #0]
  92445. 802553a: 633b str r3, [r7, #48] @ 0x30
  92446. 802553c: e015 b.n 802556a <ip4_reass+0xe2>
  92447. /* Check if the incoming fragment matches the one currently present
  92448. in the reassembly buffer. If so, we proceed with copying the
  92449. fragment into the buffer. */
  92450. if (IP_ADDRESSES_AND_ID_MATCH(&ipr->iphdr, fraghdr)) {
  92451. 802553e: 6b3b ldr r3, [r7, #48] @ 0x30
  92452. 8025540: 695a ldr r2, [r3, #20]
  92453. 8025542: 6abb ldr r3, [r7, #40] @ 0x28
  92454. 8025544: 68db ldr r3, [r3, #12]
  92455. 8025546: 429a cmp r2, r3
  92456. 8025548: d10c bne.n 8025564 <ip4_reass+0xdc>
  92457. 802554a: 6b3b ldr r3, [r7, #48] @ 0x30
  92458. 802554c: 699a ldr r2, [r3, #24]
  92459. 802554e: 6abb ldr r3, [r7, #40] @ 0x28
  92460. 8025550: 691b ldr r3, [r3, #16]
  92461. 8025552: 429a cmp r2, r3
  92462. 8025554: d106 bne.n 8025564 <ip4_reass+0xdc>
  92463. 8025556: 6b3b ldr r3, [r7, #48] @ 0x30
  92464. 8025558: 899a ldrh r2, [r3, #12]
  92465. 802555a: 6abb ldr r3, [r7, #40] @ 0x28
  92466. 802555c: 889b ldrh r3, [r3, #4]
  92467. 802555e: b29b uxth r3, r3
  92468. 8025560: 429a cmp r2, r3
  92469. 8025562: d006 beq.n 8025572 <ip4_reass+0xea>
  92470. for (ipr = reassdatagrams; ipr != NULL; ipr = ipr->next) {
  92471. 8025564: 6b3b ldr r3, [r7, #48] @ 0x30
  92472. 8025566: 681b ldr r3, [r3, #0]
  92473. 8025568: 633b str r3, [r7, #48] @ 0x30
  92474. 802556a: 6b3b ldr r3, [r7, #48] @ 0x30
  92475. 802556c: 2b00 cmp r3, #0
  92476. 802556e: d1e6 bne.n 802553e <ip4_reass+0xb6>
  92477. 8025570: e000 b.n 8025574 <ip4_reass+0xec>
  92478. LWIP_DEBUGF(IP_REASS_DEBUG, ("ip4_reass: matching previous fragment ID=%"X16_F"\n",
  92479. lwip_ntohs(IPH_ID(fraghdr))));
  92480. IPFRAG_STATS_INC(ip_frag.cachehit);
  92481. break;
  92482. 8025572: bf00 nop
  92483. }
  92484. }
  92485. if (ipr == NULL) {
  92486. 8025574: 6b3b ldr r3, [r7, #48] @ 0x30
  92487. 8025576: 2b00 cmp r3, #0
  92488. 8025578: d109 bne.n 802558e <ip4_reass+0x106>
  92489. /* Enqueue a new datagram into the datagram queue */
  92490. ipr = ip_reass_enqueue_new_datagram(fraghdr, clen);
  92491. 802557a: 8c3b ldrh r3, [r7, #32]
  92492. 802557c: 4619 mov r1, r3
  92493. 802557e: 6ab8 ldr r0, [r7, #40] @ 0x28
  92494. 8025580: f7ff fdb0 bl 80250e4 <ip_reass_enqueue_new_datagram>
  92495. 8025584: 6338 str r0, [r7, #48] @ 0x30
  92496. /* Bail if unable to enqueue */
  92497. if (ipr == NULL) {
  92498. 8025586: 6b3b ldr r3, [r7, #48] @ 0x30
  92499. 8025588: 2b00 cmp r3, #0
  92500. 802558a: d11c bne.n 80255c6 <ip4_reass+0x13e>
  92501. goto nullreturn;
  92502. 802558c: e105 b.n 802579a <ip4_reass+0x312>
  92503. }
  92504. } else {
  92505. if (((lwip_ntohs(IPH_OFFSET(fraghdr)) & IP_OFFMASK) == 0) &&
  92506. 802558e: 6abb ldr r3, [r7, #40] @ 0x28
  92507. 8025590: 88db ldrh r3, [r3, #6]
  92508. 8025592: b29b uxth r3, r3
  92509. 8025594: 4618 mov r0, r3
  92510. 8025596: f7f3 f85f bl 8018658 <lwip_htons>
  92511. 802559a: 4603 mov r3, r0
  92512. 802559c: f3c3 030c ubfx r3, r3, #0, #13
  92513. 80255a0: 2b00 cmp r3, #0
  92514. 80255a2: d110 bne.n 80255c6 <ip4_reass+0x13e>
  92515. ((lwip_ntohs(IPH_OFFSET(&ipr->iphdr)) & IP_OFFMASK) != 0)) {
  92516. 80255a4: 6b3b ldr r3, [r7, #48] @ 0x30
  92517. 80255a6: 89db ldrh r3, [r3, #14]
  92518. 80255a8: 4618 mov r0, r3
  92519. 80255aa: f7f3 f855 bl 8018658 <lwip_htons>
  92520. 80255ae: 4603 mov r3, r0
  92521. 80255b0: f3c3 030c ubfx r3, r3, #0, #13
  92522. if (((lwip_ntohs(IPH_OFFSET(fraghdr)) & IP_OFFMASK) == 0) &&
  92523. 80255b4: 2b00 cmp r3, #0
  92524. 80255b6: d006 beq.n 80255c6 <ip4_reass+0x13e>
  92525. /* ipr->iphdr is not the header from the first fragment, but fraghdr is
  92526. * -> copy fraghdr into ipr->iphdr since we want to have the header
  92527. * of the first fragment (for ICMP time exceeded and later, for copying
  92528. * all options, if supported)*/
  92529. SMEMCPY(&ipr->iphdr, fraghdr, IP_HLEN);
  92530. 80255b8: 6b3b ldr r3, [r7, #48] @ 0x30
  92531. 80255ba: 3308 adds r3, #8
  92532. 80255bc: 2214 movs r2, #20
  92533. 80255be: 6ab9 ldr r1, [r7, #40] @ 0x28
  92534. 80255c0: 4618 mov r0, r3
  92535. 80255c2: f004 fa2c bl 8029a1e <memcpy>
  92536. /* At this point, we have either created a new entry or pointing
  92537. * to an existing one */
  92538. /* check for 'no more fragments', and update queue entry*/
  92539. is_last = (IPH_OFFSET(fraghdr) & PP_NTOHS(IP_MF)) == 0;
  92540. 80255c6: 6abb ldr r3, [r7, #40] @ 0x28
  92541. 80255c8: 88db ldrh r3, [r3, #6]
  92542. 80255ca: b29b uxth r3, r3
  92543. 80255cc: f003 0320 and.w r3, r3, #32
  92544. 80255d0: 2b00 cmp r3, #0
  92545. 80255d2: bf0c ite eq
  92546. 80255d4: 2301 moveq r3, #1
  92547. 80255d6: 2300 movne r3, #0
  92548. 80255d8: b2db uxtb r3, r3
  92549. 80255da: 61fb str r3, [r7, #28]
  92550. if (is_last) {
  92551. 80255dc: 69fb ldr r3, [r7, #28]
  92552. 80255de: 2b00 cmp r3, #0
  92553. 80255e0: d00e beq.n 8025600 <ip4_reass+0x178>
  92554. u16_t datagram_len = (u16_t)(offset + len);
  92555. 80255e2: 8cfa ldrh r2, [r7, #38] @ 0x26
  92556. 80255e4: 8cbb ldrh r3, [r7, #36] @ 0x24
  92557. 80255e6: 4413 add r3, r2
  92558. 80255e8: 837b strh r3, [r7, #26]
  92559. if ((datagram_len < offset) || (datagram_len > (0xFFFF - IP_HLEN))) {
  92560. 80255ea: 8b7a ldrh r2, [r7, #26]
  92561. 80255ec: 8cfb ldrh r3, [r7, #38] @ 0x26
  92562. 80255ee: 429a cmp r2, r3
  92563. 80255f0: f0c0 80a0 bcc.w 8025734 <ip4_reass+0x2ac>
  92564. 80255f4: 8b7b ldrh r3, [r7, #26]
  92565. 80255f6: f64f 72eb movw r2, #65515 @ 0xffeb
  92566. 80255fa: 4293 cmp r3, r2
  92567. 80255fc: f200 809a bhi.w 8025734 <ip4_reass+0x2ac>
  92568. goto nullreturn_ipr;
  92569. }
  92570. }
  92571. /* find the right place to insert this pbuf */
  92572. /* @todo: trim pbufs if fragments are overlapping */
  92573. valid = ip_reass_chain_frag_into_datagram_and_validate(ipr, p, is_last);
  92574. 8025600: 69fa ldr r2, [r7, #28]
  92575. 8025602: 6879 ldr r1, [r7, #4]
  92576. 8025604: 6b38 ldr r0, [r7, #48] @ 0x30
  92577. 8025606: f7ff fdd5 bl 80251b4 <ip_reass_chain_frag_into_datagram_and_validate>
  92578. 802560a: 6178 str r0, [r7, #20]
  92579. if (valid == IP_REASS_VALIDATE_PBUF_DROPPED) {
  92580. 802560c: 697b ldr r3, [r7, #20]
  92581. 802560e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  92582. 8025612: f000 809b beq.w 802574c <ip4_reass+0x2c4>
  92583. /* if we come here, the pbuf has been enqueued */
  92584. /* Track the current number of pbufs current 'in-flight', in order to limit
  92585. the number of fragments that may be enqueued at any one time
  92586. (overflow checked by testing against IP_REASS_MAX_PBUFS) */
  92587. ip_reass_pbufcount = (u16_t)(ip_reass_pbufcount + clen);
  92588. 8025616: 4b48 ldr r3, [pc, #288] @ (8025738 <ip4_reass+0x2b0>)
  92589. 8025618: 881a ldrh r2, [r3, #0]
  92590. 802561a: 8c3b ldrh r3, [r7, #32]
  92591. 802561c: 4413 add r3, r2
  92592. 802561e: b29a uxth r2, r3
  92593. 8025620: 4b45 ldr r3, [pc, #276] @ (8025738 <ip4_reass+0x2b0>)
  92594. 8025622: 801a strh r2, [r3, #0]
  92595. if (is_last) {
  92596. 8025624: 69fb ldr r3, [r7, #28]
  92597. 8025626: 2b00 cmp r3, #0
  92598. 8025628: d00d beq.n 8025646 <ip4_reass+0x1be>
  92599. u16_t datagram_len = (u16_t)(offset + len);
  92600. 802562a: 8cfa ldrh r2, [r7, #38] @ 0x26
  92601. 802562c: 8cbb ldrh r3, [r7, #36] @ 0x24
  92602. 802562e: 4413 add r3, r2
  92603. 8025630: 827b strh r3, [r7, #18]
  92604. ipr->datagram_len = datagram_len;
  92605. 8025632: 6b3b ldr r3, [r7, #48] @ 0x30
  92606. 8025634: 8a7a ldrh r2, [r7, #18]
  92607. 8025636: 839a strh r2, [r3, #28]
  92608. ipr->flags |= IP_REASS_FLAG_LASTFRAG;
  92609. 8025638: 6b3b ldr r3, [r7, #48] @ 0x30
  92610. 802563a: 7f9b ldrb r3, [r3, #30]
  92611. 802563c: f043 0301 orr.w r3, r3, #1
  92612. 8025640: b2da uxtb r2, r3
  92613. 8025642: 6b3b ldr r3, [r7, #48] @ 0x30
  92614. 8025644: 779a strb r2, [r3, #30]
  92615. LWIP_DEBUGF(IP_REASS_DEBUG,
  92616. ("ip4_reass: last fragment seen, total len %"S16_F"\n",
  92617. ipr->datagram_len));
  92618. }
  92619. if (valid == IP_REASS_VALIDATE_TELEGRAM_FINISHED) {
  92620. 8025646: 697b ldr r3, [r7, #20]
  92621. 8025648: 2b01 cmp r3, #1
  92622. 802564a: d171 bne.n 8025730 <ip4_reass+0x2a8>
  92623. struct ip_reassdata *ipr_prev;
  92624. /* the totally last fragment (flag more fragments = 0) was received at least
  92625. * once AND all fragments are received */
  92626. u16_t datagram_len = (u16_t)(ipr->datagram_len + IP_HLEN);
  92627. 802564c: 6b3b ldr r3, [r7, #48] @ 0x30
  92628. 802564e: 8b9b ldrh r3, [r3, #28]
  92629. 8025650: 3314 adds r3, #20
  92630. 8025652: 823b strh r3, [r7, #16]
  92631. /* save the second pbuf before copying the header over the pointer */
  92632. r = ((struct ip_reass_helper *)ipr->p->payload)->next_pbuf;
  92633. 8025654: 6b3b ldr r3, [r7, #48] @ 0x30
  92634. 8025656: 685b ldr r3, [r3, #4]
  92635. 8025658: 685b ldr r3, [r3, #4]
  92636. 802565a: 681b ldr r3, [r3, #0]
  92637. 802565c: 62fb str r3, [r7, #44] @ 0x2c
  92638. /* copy the original ip header back to the first pbuf */
  92639. fraghdr = (struct ip_hdr *)(ipr->p->payload);
  92640. 802565e: 6b3b ldr r3, [r7, #48] @ 0x30
  92641. 8025660: 685b ldr r3, [r3, #4]
  92642. 8025662: 685b ldr r3, [r3, #4]
  92643. 8025664: 62bb str r3, [r7, #40] @ 0x28
  92644. SMEMCPY(fraghdr, &ipr->iphdr, IP_HLEN);
  92645. 8025666: 6b3b ldr r3, [r7, #48] @ 0x30
  92646. 8025668: 3308 adds r3, #8
  92647. 802566a: 2214 movs r2, #20
  92648. 802566c: 4619 mov r1, r3
  92649. 802566e: 6ab8 ldr r0, [r7, #40] @ 0x28
  92650. 8025670: f004 f9d5 bl 8029a1e <memcpy>
  92651. IPH_LEN_SET(fraghdr, lwip_htons(datagram_len));
  92652. 8025674: 8a3b ldrh r3, [r7, #16]
  92653. 8025676: 4618 mov r0, r3
  92654. 8025678: f7f2 ffee bl 8018658 <lwip_htons>
  92655. 802567c: 4603 mov r3, r0
  92656. 802567e: 461a mov r2, r3
  92657. 8025680: 6abb ldr r3, [r7, #40] @ 0x28
  92658. 8025682: 805a strh r2, [r3, #2]
  92659. IPH_OFFSET_SET(fraghdr, 0);
  92660. 8025684: 6abb ldr r3, [r7, #40] @ 0x28
  92661. 8025686: 2200 movs r2, #0
  92662. 8025688: 719a strb r2, [r3, #6]
  92663. 802568a: 2200 movs r2, #0
  92664. 802568c: 71da strb r2, [r3, #7]
  92665. IPH_CHKSUM_SET(fraghdr, 0);
  92666. 802568e: 6abb ldr r3, [r7, #40] @ 0x28
  92667. 8025690: 2200 movs r2, #0
  92668. 8025692: 729a strb r2, [r3, #10]
  92669. 8025694: 2200 movs r2, #0
  92670. 8025696: 72da strb r2, [r3, #11]
  92671. IF__NETIF_CHECKSUM_ENABLED(ip_current_input_netif(), NETIF_CHECKSUM_GEN_IP) {
  92672. IPH_CHKSUM_SET(fraghdr, inet_chksum(fraghdr, IP_HLEN));
  92673. }
  92674. #endif /* CHECKSUM_GEN_IP */
  92675. p = ipr->p;
  92676. 8025698: 6b3b ldr r3, [r7, #48] @ 0x30
  92677. 802569a: 685b ldr r3, [r3, #4]
  92678. 802569c: 607b str r3, [r7, #4]
  92679. /* chain together the pbufs contained within the reass_data list. */
  92680. while (r != NULL) {
  92681. 802569e: e00d b.n 80256bc <ip4_reass+0x234>
  92682. iprh = (struct ip_reass_helper *)r->payload;
  92683. 80256a0: 6afb ldr r3, [r7, #44] @ 0x2c
  92684. 80256a2: 685b ldr r3, [r3, #4]
  92685. 80256a4: 60fb str r3, [r7, #12]
  92686. /* hide the ip header for every succeeding fragment */
  92687. pbuf_remove_header(r, IP_HLEN);
  92688. 80256a6: 2114 movs r1, #20
  92689. 80256a8: 6af8 ldr r0, [r7, #44] @ 0x2c
  92690. 80256aa: f7f4 fbff bl 8019eac <pbuf_remove_header>
  92691. pbuf_cat(p, r);
  92692. 80256ae: 6af9 ldr r1, [r7, #44] @ 0x2c
  92693. 80256b0: 6878 ldr r0, [r7, #4]
  92694. 80256b2: f7f4 fd81 bl 801a1b8 <pbuf_cat>
  92695. r = iprh->next_pbuf;
  92696. 80256b6: 68fb ldr r3, [r7, #12]
  92697. 80256b8: 681b ldr r3, [r3, #0]
  92698. 80256ba: 62fb str r3, [r7, #44] @ 0x2c
  92699. while (r != NULL) {
  92700. 80256bc: 6afb ldr r3, [r7, #44] @ 0x2c
  92701. 80256be: 2b00 cmp r3, #0
  92702. 80256c0: d1ee bne.n 80256a0 <ip4_reass+0x218>
  92703. }
  92704. /* find the previous entry in the linked list */
  92705. if (ipr == reassdatagrams) {
  92706. 80256c2: 4b1e ldr r3, [pc, #120] @ (802573c <ip4_reass+0x2b4>)
  92707. 80256c4: 681b ldr r3, [r3, #0]
  92708. 80256c6: 6b3a ldr r2, [r7, #48] @ 0x30
  92709. 80256c8: 429a cmp r2, r3
  92710. 80256ca: d102 bne.n 80256d2 <ip4_reass+0x24a>
  92711. ipr_prev = NULL;
  92712. 80256cc: 2300 movs r3, #0
  92713. 80256ce: 637b str r3, [r7, #52] @ 0x34
  92714. 80256d0: e010 b.n 80256f4 <ip4_reass+0x26c>
  92715. } else {
  92716. for (ipr_prev = reassdatagrams; ipr_prev != NULL; ipr_prev = ipr_prev->next) {
  92717. 80256d2: 4b1a ldr r3, [pc, #104] @ (802573c <ip4_reass+0x2b4>)
  92718. 80256d4: 681b ldr r3, [r3, #0]
  92719. 80256d6: 637b str r3, [r7, #52] @ 0x34
  92720. 80256d8: e007 b.n 80256ea <ip4_reass+0x262>
  92721. if (ipr_prev->next == ipr) {
  92722. 80256da: 6b7b ldr r3, [r7, #52] @ 0x34
  92723. 80256dc: 681b ldr r3, [r3, #0]
  92724. 80256de: 6b3a ldr r2, [r7, #48] @ 0x30
  92725. 80256e0: 429a cmp r2, r3
  92726. 80256e2: d006 beq.n 80256f2 <ip4_reass+0x26a>
  92727. for (ipr_prev = reassdatagrams; ipr_prev != NULL; ipr_prev = ipr_prev->next) {
  92728. 80256e4: 6b7b ldr r3, [r7, #52] @ 0x34
  92729. 80256e6: 681b ldr r3, [r3, #0]
  92730. 80256e8: 637b str r3, [r7, #52] @ 0x34
  92731. 80256ea: 6b7b ldr r3, [r7, #52] @ 0x34
  92732. 80256ec: 2b00 cmp r3, #0
  92733. 80256ee: d1f4 bne.n 80256da <ip4_reass+0x252>
  92734. 80256f0: e000 b.n 80256f4 <ip4_reass+0x26c>
  92735. break;
  92736. 80256f2: bf00 nop
  92737. }
  92738. }
  92739. }
  92740. /* release the sources allocate for the fragment queue entry */
  92741. ip_reass_dequeue_datagram(ipr, ipr_prev);
  92742. 80256f4: 6b79 ldr r1, [r7, #52] @ 0x34
  92743. 80256f6: 6b38 ldr r0, [r7, #48] @ 0x30
  92744. 80256f8: f7ff fd2e bl 8025158 <ip_reass_dequeue_datagram>
  92745. /* and adjust the number of pbufs currently queued for reassembly. */
  92746. clen = pbuf_clen(p);
  92747. 80256fc: 6878 ldr r0, [r7, #4]
  92748. 80256fe: f7f4 fd1b bl 801a138 <pbuf_clen>
  92749. 8025702: 4603 mov r3, r0
  92750. 8025704: 843b strh r3, [r7, #32]
  92751. LWIP_ASSERT("ip_reass_pbufcount >= clen", ip_reass_pbufcount >= clen);
  92752. 8025706: 4b0c ldr r3, [pc, #48] @ (8025738 <ip4_reass+0x2b0>)
  92753. 8025708: 881b ldrh r3, [r3, #0]
  92754. 802570a: 8c3a ldrh r2, [r7, #32]
  92755. 802570c: 429a cmp r2, r3
  92756. 802570e: d906 bls.n 802571e <ip4_reass+0x296>
  92757. 8025710: 4b0b ldr r3, [pc, #44] @ (8025740 <ip4_reass+0x2b8>)
  92758. 8025712: f240 229b movw r2, #667 @ 0x29b
  92759. 8025716: 490b ldr r1, [pc, #44] @ (8025744 <ip4_reass+0x2bc>)
  92760. 8025718: 480b ldr r0, [pc, #44] @ (8025748 <ip4_reass+0x2c0>)
  92761. 802571a: f003 fef7 bl 802950c <iprintf>
  92762. ip_reass_pbufcount = (u16_t)(ip_reass_pbufcount - clen);
  92763. 802571e: 4b06 ldr r3, [pc, #24] @ (8025738 <ip4_reass+0x2b0>)
  92764. 8025720: 881a ldrh r2, [r3, #0]
  92765. 8025722: 8c3b ldrh r3, [r7, #32]
  92766. 8025724: 1ad3 subs r3, r2, r3
  92767. 8025726: b29a uxth r2, r3
  92768. 8025728: 4b03 ldr r3, [pc, #12] @ (8025738 <ip4_reass+0x2b0>)
  92769. 802572a: 801a strh r2, [r3, #0]
  92770. MIB2_STATS_INC(mib2.ipreasmoks);
  92771. /* Return the pbuf chain */
  92772. return p;
  92773. 802572c: 687b ldr r3, [r7, #4]
  92774. 802572e: e038 b.n 80257a2 <ip4_reass+0x31a>
  92775. }
  92776. /* the datagram is not (yet?) reassembled completely */
  92777. LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_pbufcount: %d out\n", ip_reass_pbufcount));
  92778. return NULL;
  92779. 8025730: 2300 movs r3, #0
  92780. 8025732: e036 b.n 80257a2 <ip4_reass+0x31a>
  92781. goto nullreturn_ipr;
  92782. 8025734: bf00 nop
  92783. 8025736: e00a b.n 802574e <ip4_reass+0x2c6>
  92784. 8025738: 2402a18c .word 0x2402a18c
  92785. 802573c: 2402a188 .word 0x2402a188
  92786. 8025740: 08030200 .word 0x08030200
  92787. 8025744: 08030370 .word 0x08030370
  92788. 8025748: 08030248 .word 0x08030248
  92789. goto nullreturn_ipr;
  92790. 802574c: bf00 nop
  92791. nullreturn_ipr:
  92792. LWIP_ASSERT("ipr != NULL", ipr != NULL);
  92793. 802574e: 6b3b ldr r3, [r7, #48] @ 0x30
  92794. 8025750: 2b00 cmp r3, #0
  92795. 8025752: d106 bne.n 8025762 <ip4_reass+0x2da>
  92796. 8025754: 4b15 ldr r3, [pc, #84] @ (80257ac <ip4_reass+0x324>)
  92797. 8025756: f44f 722a mov.w r2, #680 @ 0x2a8
  92798. 802575a: 4915 ldr r1, [pc, #84] @ (80257b0 <ip4_reass+0x328>)
  92799. 802575c: 4815 ldr r0, [pc, #84] @ (80257b4 <ip4_reass+0x32c>)
  92800. 802575e: f003 fed5 bl 802950c <iprintf>
  92801. if (ipr->p == NULL) {
  92802. 8025762: 6b3b ldr r3, [r7, #48] @ 0x30
  92803. 8025764: 685b ldr r3, [r3, #4]
  92804. 8025766: 2b00 cmp r3, #0
  92805. 8025768: d116 bne.n 8025798 <ip4_reass+0x310>
  92806. /* dropped pbuf after creating a new datagram entry: remove the entry, too */
  92807. LWIP_ASSERT("not firstalthough just enqueued", ipr == reassdatagrams);
  92808. 802576a: 4b13 ldr r3, [pc, #76] @ (80257b8 <ip4_reass+0x330>)
  92809. 802576c: 681b ldr r3, [r3, #0]
  92810. 802576e: 6b3a ldr r2, [r7, #48] @ 0x30
  92811. 8025770: 429a cmp r2, r3
  92812. 8025772: d006 beq.n 8025782 <ip4_reass+0x2fa>
  92813. 8025774: 4b0d ldr r3, [pc, #52] @ (80257ac <ip4_reass+0x324>)
  92814. 8025776: f240 22ab movw r2, #683 @ 0x2ab
  92815. 802577a: 4910 ldr r1, [pc, #64] @ (80257bc <ip4_reass+0x334>)
  92816. 802577c: 480d ldr r0, [pc, #52] @ (80257b4 <ip4_reass+0x32c>)
  92817. 802577e: f003 fec5 bl 802950c <iprintf>
  92818. ip_reass_dequeue_datagram(ipr, NULL);
  92819. 8025782: 2100 movs r1, #0
  92820. 8025784: 6b38 ldr r0, [r7, #48] @ 0x30
  92821. 8025786: f7ff fce7 bl 8025158 <ip_reass_dequeue_datagram>
  92822. 802578a: e006 b.n 802579a <ip4_reass+0x312>
  92823. goto nullreturn;
  92824. 802578c: bf00 nop
  92825. 802578e: e004 b.n 802579a <ip4_reass+0x312>
  92826. goto nullreturn;
  92827. 8025790: bf00 nop
  92828. 8025792: e002 b.n 802579a <ip4_reass+0x312>
  92829. goto nullreturn;
  92830. 8025794: bf00 nop
  92831. 8025796: e000 b.n 802579a <ip4_reass+0x312>
  92832. }
  92833. nullreturn:
  92834. 8025798: bf00 nop
  92835. LWIP_DEBUGF(IP_REASS_DEBUG, ("ip4_reass: nullreturn\n"));
  92836. IPFRAG_STATS_INC(ip_frag.drop);
  92837. pbuf_free(p);
  92838. 802579a: 6878 ldr r0, [r7, #4]
  92839. 802579c: f7f4 fc3e bl 801a01c <pbuf_free>
  92840. return NULL;
  92841. 80257a0: 2300 movs r3, #0
  92842. }
  92843. 80257a2: 4618 mov r0, r3
  92844. 80257a4: 3738 adds r7, #56 @ 0x38
  92845. 80257a6: 46bd mov sp, r7
  92846. 80257a8: bd80 pop {r7, pc}
  92847. 80257aa: bf00 nop
  92848. 80257ac: 08030200 .word 0x08030200
  92849. 80257b0: 0803038c .word 0x0803038c
  92850. 80257b4: 08030248 .word 0x08030248
  92851. 80257b8: 2402a188 .word 0x2402a188
  92852. 80257bc: 08030398 .word 0x08030398
  92853. 080257c0 <ip_frag_alloc_pbuf_custom_ref>:
  92854. #if IP_FRAG
  92855. #if !LWIP_NETIF_TX_SINGLE_PBUF
  92856. /** Allocate a new struct pbuf_custom_ref */
  92857. static struct pbuf_custom_ref *
  92858. ip_frag_alloc_pbuf_custom_ref(void)
  92859. {
  92860. 80257c0: b580 push {r7, lr}
  92861. 80257c2: af00 add r7, sp, #0
  92862. return (struct pbuf_custom_ref *)memp_malloc(MEMP_FRAG_PBUF);
  92863. 80257c4: 2005 movs r0, #5
  92864. 80257c6: f7f3 fcc5 bl 8019154 <memp_malloc>
  92865. 80257ca: 4603 mov r3, r0
  92866. }
  92867. 80257cc: 4618 mov r0, r3
  92868. 80257ce: bd80 pop {r7, pc}
  92869. 080257d0 <ip_frag_free_pbuf_custom_ref>:
  92870. /** Free a struct pbuf_custom_ref */
  92871. static void
  92872. ip_frag_free_pbuf_custom_ref(struct pbuf_custom_ref *p)
  92873. {
  92874. 80257d0: b580 push {r7, lr}
  92875. 80257d2: b082 sub sp, #8
  92876. 80257d4: af00 add r7, sp, #0
  92877. 80257d6: 6078 str r0, [r7, #4]
  92878. LWIP_ASSERT("p != NULL", p != NULL);
  92879. 80257d8: 687b ldr r3, [r7, #4]
  92880. 80257da: 2b00 cmp r3, #0
  92881. 80257dc: d106 bne.n 80257ec <ip_frag_free_pbuf_custom_ref+0x1c>
  92882. 80257de: 4b07 ldr r3, [pc, #28] @ (80257fc <ip_frag_free_pbuf_custom_ref+0x2c>)
  92883. 80257e0: f44f 7231 mov.w r2, #708 @ 0x2c4
  92884. 80257e4: 4906 ldr r1, [pc, #24] @ (8025800 <ip_frag_free_pbuf_custom_ref+0x30>)
  92885. 80257e6: 4807 ldr r0, [pc, #28] @ (8025804 <ip_frag_free_pbuf_custom_ref+0x34>)
  92886. 80257e8: f003 fe90 bl 802950c <iprintf>
  92887. memp_free(MEMP_FRAG_PBUF, p);
  92888. 80257ec: 6879 ldr r1, [r7, #4]
  92889. 80257ee: 2005 movs r0, #5
  92890. 80257f0: f7f3 fd26 bl 8019240 <memp_free>
  92891. }
  92892. 80257f4: bf00 nop
  92893. 80257f6: 3708 adds r7, #8
  92894. 80257f8: 46bd mov sp, r7
  92895. 80257fa: bd80 pop {r7, pc}
  92896. 80257fc: 08030200 .word 0x08030200
  92897. 8025800: 080303b8 .word 0x080303b8
  92898. 8025804: 08030248 .word 0x08030248
  92899. 08025808 <ipfrag_free_pbuf_custom>:
  92900. /** Free-callback function to free a 'struct pbuf_custom_ref', called by
  92901. * pbuf_free. */
  92902. static void
  92903. ipfrag_free_pbuf_custom(struct pbuf *p)
  92904. {
  92905. 8025808: b580 push {r7, lr}
  92906. 802580a: b084 sub sp, #16
  92907. 802580c: af00 add r7, sp, #0
  92908. 802580e: 6078 str r0, [r7, #4]
  92909. struct pbuf_custom_ref *pcr = (struct pbuf_custom_ref *)p;
  92910. 8025810: 687b ldr r3, [r7, #4]
  92911. 8025812: 60fb str r3, [r7, #12]
  92912. LWIP_ASSERT("pcr != NULL", pcr != NULL);
  92913. 8025814: 68fb ldr r3, [r7, #12]
  92914. 8025816: 2b00 cmp r3, #0
  92915. 8025818: d106 bne.n 8025828 <ipfrag_free_pbuf_custom+0x20>
  92916. 802581a: 4b11 ldr r3, [pc, #68] @ (8025860 <ipfrag_free_pbuf_custom+0x58>)
  92917. 802581c: f240 22ce movw r2, #718 @ 0x2ce
  92918. 8025820: 4910 ldr r1, [pc, #64] @ (8025864 <ipfrag_free_pbuf_custom+0x5c>)
  92919. 8025822: 4811 ldr r0, [pc, #68] @ (8025868 <ipfrag_free_pbuf_custom+0x60>)
  92920. 8025824: f003 fe72 bl 802950c <iprintf>
  92921. LWIP_ASSERT("pcr == p", (void *)pcr == (void *)p);
  92922. 8025828: 68fa ldr r2, [r7, #12]
  92923. 802582a: 687b ldr r3, [r7, #4]
  92924. 802582c: 429a cmp r2, r3
  92925. 802582e: d006 beq.n 802583e <ipfrag_free_pbuf_custom+0x36>
  92926. 8025830: 4b0b ldr r3, [pc, #44] @ (8025860 <ipfrag_free_pbuf_custom+0x58>)
  92927. 8025832: f240 22cf movw r2, #719 @ 0x2cf
  92928. 8025836: 490d ldr r1, [pc, #52] @ (802586c <ipfrag_free_pbuf_custom+0x64>)
  92929. 8025838: 480b ldr r0, [pc, #44] @ (8025868 <ipfrag_free_pbuf_custom+0x60>)
  92930. 802583a: f003 fe67 bl 802950c <iprintf>
  92931. if (pcr->original != NULL) {
  92932. 802583e: 68fb ldr r3, [r7, #12]
  92933. 8025840: 695b ldr r3, [r3, #20]
  92934. 8025842: 2b00 cmp r3, #0
  92935. 8025844: d004 beq.n 8025850 <ipfrag_free_pbuf_custom+0x48>
  92936. pbuf_free(pcr->original);
  92937. 8025846: 68fb ldr r3, [r7, #12]
  92938. 8025848: 695b ldr r3, [r3, #20]
  92939. 802584a: 4618 mov r0, r3
  92940. 802584c: f7f4 fbe6 bl 801a01c <pbuf_free>
  92941. }
  92942. ip_frag_free_pbuf_custom_ref(pcr);
  92943. 8025850: 68f8 ldr r0, [r7, #12]
  92944. 8025852: f7ff ffbd bl 80257d0 <ip_frag_free_pbuf_custom_ref>
  92945. }
  92946. 8025856: bf00 nop
  92947. 8025858: 3710 adds r7, #16
  92948. 802585a: 46bd mov sp, r7
  92949. 802585c: bd80 pop {r7, pc}
  92950. 802585e: bf00 nop
  92951. 8025860: 08030200 .word 0x08030200
  92952. 8025864: 080303c4 .word 0x080303c4
  92953. 8025868: 08030248 .word 0x08030248
  92954. 802586c: 080303d0 .word 0x080303d0
  92955. 08025870 <ip4_frag>:
  92956. *
  92957. * @return ERR_OK if sent successfully, err_t otherwise
  92958. */
  92959. err_t
  92960. ip4_frag(struct pbuf *p, struct netif *netif, const ip4_addr_t *dest)
  92961. {
  92962. 8025870: b580 push {r7, lr}
  92963. 8025872: b094 sub sp, #80 @ 0x50
  92964. 8025874: af02 add r7, sp, #8
  92965. 8025876: 60f8 str r0, [r7, #12]
  92966. 8025878: 60b9 str r1, [r7, #8]
  92967. 802587a: 607a str r2, [r7, #4]
  92968. struct pbuf *rambuf;
  92969. #if !LWIP_NETIF_TX_SINGLE_PBUF
  92970. struct pbuf *newpbuf;
  92971. u16_t newpbuflen = 0;
  92972. 802587c: 2300 movs r3, #0
  92973. 802587e: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  92974. u16_t left_to_copy;
  92975. #endif
  92976. struct ip_hdr *original_iphdr;
  92977. struct ip_hdr *iphdr;
  92978. const u16_t nfb = (u16_t)((netif->mtu - IP_HLEN) / 8);
  92979. 8025882: 68bb ldr r3, [r7, #8]
  92980. 8025884: 8d1b ldrh r3, [r3, #40] @ 0x28
  92981. 8025886: 3b14 subs r3, #20
  92982. 8025888: 2b00 cmp r3, #0
  92983. 802588a: da00 bge.n 802588e <ip4_frag+0x1e>
  92984. 802588c: 3307 adds r3, #7
  92985. 802588e: 10db asrs r3, r3, #3
  92986. 8025890: 877b strh r3, [r7, #58] @ 0x3a
  92987. u16_t left, fragsize;
  92988. u16_t ofo;
  92989. int last;
  92990. u16_t poff = IP_HLEN;
  92991. 8025892: 2314 movs r3, #20
  92992. 8025894: 87fb strh r3, [r7, #62] @ 0x3e
  92993. u16_t tmp;
  92994. int mf_set;
  92995. original_iphdr = (struct ip_hdr *)p->payload;
  92996. 8025896: 68fb ldr r3, [r7, #12]
  92997. 8025898: 685b ldr r3, [r3, #4]
  92998. 802589a: 637b str r3, [r7, #52] @ 0x34
  92999. iphdr = original_iphdr;
  93000. 802589c: 6b7b ldr r3, [r7, #52] @ 0x34
  93001. 802589e: 633b str r3, [r7, #48] @ 0x30
  93002. if (IPH_HL_BYTES(iphdr) != IP_HLEN) {
  93003. 80258a0: 6b3b ldr r3, [r7, #48] @ 0x30
  93004. 80258a2: 781b ldrb r3, [r3, #0]
  93005. 80258a4: f003 030f and.w r3, r3, #15
  93006. 80258a8: b2db uxtb r3, r3
  93007. 80258aa: 009b lsls r3, r3, #2
  93008. 80258ac: b2db uxtb r3, r3
  93009. 80258ae: 2b14 cmp r3, #20
  93010. 80258b0: d002 beq.n 80258b8 <ip4_frag+0x48>
  93011. /* ip4_frag() does not support IP options */
  93012. return ERR_VAL;
  93013. 80258b2: f06f 0305 mvn.w r3, #5
  93014. 80258b6: e110 b.n 8025ada <ip4_frag+0x26a>
  93015. }
  93016. LWIP_ERROR("ip4_frag(): pbuf too short", p->len >= IP_HLEN, return ERR_VAL);
  93017. 80258b8: 68fb ldr r3, [r7, #12]
  93018. 80258ba: 895b ldrh r3, [r3, #10]
  93019. 80258bc: 2b13 cmp r3, #19
  93020. 80258be: d809 bhi.n 80258d4 <ip4_frag+0x64>
  93021. 80258c0: 4b88 ldr r3, [pc, #544] @ (8025ae4 <ip4_frag+0x274>)
  93022. 80258c2: f44f 723f mov.w r2, #764 @ 0x2fc
  93023. 80258c6: 4988 ldr r1, [pc, #544] @ (8025ae8 <ip4_frag+0x278>)
  93024. 80258c8: 4888 ldr r0, [pc, #544] @ (8025aec <ip4_frag+0x27c>)
  93025. 80258ca: f003 fe1f bl 802950c <iprintf>
  93026. 80258ce: f06f 0305 mvn.w r3, #5
  93027. 80258d2: e102 b.n 8025ada <ip4_frag+0x26a>
  93028. /* Save original offset */
  93029. tmp = lwip_ntohs(IPH_OFFSET(iphdr));
  93030. 80258d4: 6b3b ldr r3, [r7, #48] @ 0x30
  93031. 80258d6: 88db ldrh r3, [r3, #6]
  93032. 80258d8: b29b uxth r3, r3
  93033. 80258da: 4618 mov r0, r3
  93034. 80258dc: f7f2 febc bl 8018658 <lwip_htons>
  93035. 80258e0: 4603 mov r3, r0
  93036. 80258e2: 87bb strh r3, [r7, #60] @ 0x3c
  93037. ofo = tmp & IP_OFFMASK;
  93038. 80258e4: 8fbb ldrh r3, [r7, #60] @ 0x3c
  93039. 80258e6: f3c3 030c ubfx r3, r3, #0, #13
  93040. 80258ea: f8a7 3040 strh.w r3, [r7, #64] @ 0x40
  93041. /* already fragmented? if so, the last fragment we create must have MF, too */
  93042. mf_set = tmp & IP_MF;
  93043. 80258ee: 8fbb ldrh r3, [r7, #60] @ 0x3c
  93044. 80258f0: f403 5300 and.w r3, r3, #8192 @ 0x2000
  93045. 80258f4: 62fb str r3, [r7, #44] @ 0x2c
  93046. left = (u16_t)(p->tot_len - IP_HLEN);
  93047. 80258f6: 68fb ldr r3, [r7, #12]
  93048. 80258f8: 891b ldrh r3, [r3, #8]
  93049. 80258fa: 3b14 subs r3, #20
  93050. 80258fc: f8a7 3042 strh.w r3, [r7, #66] @ 0x42
  93051. while (left) {
  93052. 8025900: e0e1 b.n 8025ac6 <ip4_frag+0x256>
  93053. /* Fill this fragment */
  93054. fragsize = LWIP_MIN(left, (u16_t)(nfb * 8));
  93055. 8025902: 8f7b ldrh r3, [r7, #58] @ 0x3a
  93056. 8025904: 00db lsls r3, r3, #3
  93057. 8025906: b29b uxth r3, r3
  93058. 8025908: f8b7 2042 ldrh.w r2, [r7, #66] @ 0x42
  93059. 802590c: 4293 cmp r3, r2
  93060. 802590e: bf28 it cs
  93061. 8025910: 4613 movcs r3, r2
  93062. 8025912: 857b strh r3, [r7, #42] @ 0x2a
  93063. /* When not using a static buffer, create a chain of pbufs.
  93064. * The first will be a PBUF_RAM holding the link and IP header.
  93065. * The rest will be PBUF_REFs mirroring the pbuf chain to be fragged,
  93066. * but limited to the size of an mtu.
  93067. */
  93068. rambuf = pbuf_alloc(PBUF_LINK, IP_HLEN, PBUF_RAM);
  93069. 8025914: f44f 7220 mov.w r2, #640 @ 0x280
  93070. 8025918: 2114 movs r1, #20
  93071. 802591a: 200e movs r0, #14
  93072. 802591c: f7f4 f868 bl 80199f0 <pbuf_alloc>
  93073. 8025920: 6278 str r0, [r7, #36] @ 0x24
  93074. if (rambuf == NULL) {
  93075. 8025922: 6a7b ldr r3, [r7, #36] @ 0x24
  93076. 8025924: 2b00 cmp r3, #0
  93077. 8025926: f000 80d5 beq.w 8025ad4 <ip4_frag+0x264>
  93078. goto memerr;
  93079. }
  93080. LWIP_ASSERT("this needs a pbuf in one piece!",
  93081. 802592a: 6a7b ldr r3, [r7, #36] @ 0x24
  93082. 802592c: 895b ldrh r3, [r3, #10]
  93083. 802592e: 2b13 cmp r3, #19
  93084. 8025930: d806 bhi.n 8025940 <ip4_frag+0xd0>
  93085. 8025932: 4b6c ldr r3, [pc, #432] @ (8025ae4 <ip4_frag+0x274>)
  93086. 8025934: f44f 7249 mov.w r2, #804 @ 0x324
  93087. 8025938: 496d ldr r1, [pc, #436] @ (8025af0 <ip4_frag+0x280>)
  93088. 802593a: 486c ldr r0, [pc, #432] @ (8025aec <ip4_frag+0x27c>)
  93089. 802593c: f003 fde6 bl 802950c <iprintf>
  93090. (rambuf->len >= (IP_HLEN)));
  93091. SMEMCPY(rambuf->payload, original_iphdr, IP_HLEN);
  93092. 8025940: 6a7b ldr r3, [r7, #36] @ 0x24
  93093. 8025942: 685b ldr r3, [r3, #4]
  93094. 8025944: 2214 movs r2, #20
  93095. 8025946: 6b79 ldr r1, [r7, #52] @ 0x34
  93096. 8025948: 4618 mov r0, r3
  93097. 802594a: f004 f868 bl 8029a1e <memcpy>
  93098. iphdr = (struct ip_hdr *)rambuf->payload;
  93099. 802594e: 6a7b ldr r3, [r7, #36] @ 0x24
  93100. 8025950: 685b ldr r3, [r3, #4]
  93101. 8025952: 633b str r3, [r7, #48] @ 0x30
  93102. left_to_copy = fragsize;
  93103. 8025954: 8d7b ldrh r3, [r7, #42] @ 0x2a
  93104. 8025956: f8a7 3044 strh.w r3, [r7, #68] @ 0x44
  93105. while (left_to_copy) {
  93106. 802595a: e064 b.n 8025a26 <ip4_frag+0x1b6>
  93107. struct pbuf_custom_ref *pcr;
  93108. u16_t plen = (u16_t)(p->len - poff);
  93109. 802595c: 68fb ldr r3, [r7, #12]
  93110. 802595e: 895a ldrh r2, [r3, #10]
  93111. 8025960: 8ffb ldrh r3, [r7, #62] @ 0x3e
  93112. 8025962: 1ad3 subs r3, r2, r3
  93113. 8025964: 83fb strh r3, [r7, #30]
  93114. LWIP_ASSERT("p->len >= poff", p->len >= poff);
  93115. 8025966: 68fb ldr r3, [r7, #12]
  93116. 8025968: 895b ldrh r3, [r3, #10]
  93117. 802596a: 8ffa ldrh r2, [r7, #62] @ 0x3e
  93118. 802596c: 429a cmp r2, r3
  93119. 802596e: d906 bls.n 802597e <ip4_frag+0x10e>
  93120. 8025970: 4b5c ldr r3, [pc, #368] @ (8025ae4 <ip4_frag+0x274>)
  93121. 8025972: f240 322d movw r2, #813 @ 0x32d
  93122. 8025976: 495f ldr r1, [pc, #380] @ (8025af4 <ip4_frag+0x284>)
  93123. 8025978: 485c ldr r0, [pc, #368] @ (8025aec <ip4_frag+0x27c>)
  93124. 802597a: f003 fdc7 bl 802950c <iprintf>
  93125. newpbuflen = LWIP_MIN(left_to_copy, plen);
  93126. 802597e: 8bfa ldrh r2, [r7, #30]
  93127. 8025980: f8b7 3044 ldrh.w r3, [r7, #68] @ 0x44
  93128. 8025984: 4293 cmp r3, r2
  93129. 8025986: bf28 it cs
  93130. 8025988: 4613 movcs r3, r2
  93131. 802598a: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  93132. /* Is this pbuf already empty? */
  93133. if (!newpbuflen) {
  93134. 802598e: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  93135. 8025992: 2b00 cmp r3, #0
  93136. 8025994: d105 bne.n 80259a2 <ip4_frag+0x132>
  93137. poff = 0;
  93138. 8025996: 2300 movs r3, #0
  93139. 8025998: 87fb strh r3, [r7, #62] @ 0x3e
  93140. p = p->next;
  93141. 802599a: 68fb ldr r3, [r7, #12]
  93142. 802599c: 681b ldr r3, [r3, #0]
  93143. 802599e: 60fb str r3, [r7, #12]
  93144. continue;
  93145. 80259a0: e041 b.n 8025a26 <ip4_frag+0x1b6>
  93146. }
  93147. pcr = ip_frag_alloc_pbuf_custom_ref();
  93148. 80259a2: f7ff ff0d bl 80257c0 <ip_frag_alloc_pbuf_custom_ref>
  93149. 80259a6: 61b8 str r0, [r7, #24]
  93150. if (pcr == NULL) {
  93151. 80259a8: 69bb ldr r3, [r7, #24]
  93152. 80259aa: 2b00 cmp r3, #0
  93153. 80259ac: d103 bne.n 80259b6 <ip4_frag+0x146>
  93154. pbuf_free(rambuf);
  93155. 80259ae: 6a78 ldr r0, [r7, #36] @ 0x24
  93156. 80259b0: f7f4 fb34 bl 801a01c <pbuf_free>
  93157. goto memerr;
  93158. 80259b4: e08f b.n 8025ad6 <ip4_frag+0x266>
  93159. }
  93160. /* Mirror this pbuf, although we might not need all of it. */
  93161. newpbuf = pbuf_alloced_custom(PBUF_RAW, newpbuflen, PBUF_REF, &pcr->pc,
  93162. 80259b6: 69b8 ldr r0, [r7, #24]
  93163. (u8_t *)p->payload + poff, newpbuflen);
  93164. 80259b8: 68fb ldr r3, [r7, #12]
  93165. 80259ba: 685a ldr r2, [r3, #4]
  93166. newpbuf = pbuf_alloced_custom(PBUF_RAW, newpbuflen, PBUF_REF, &pcr->pc,
  93167. 80259bc: 8ffb ldrh r3, [r7, #62] @ 0x3e
  93168. 80259be: 4413 add r3, r2
  93169. 80259c0: f8b7 1046 ldrh.w r1, [r7, #70] @ 0x46
  93170. 80259c4: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  93171. 80259c8: 9201 str r2, [sp, #4]
  93172. 80259ca: 9300 str r3, [sp, #0]
  93173. 80259cc: 4603 mov r3, r0
  93174. 80259ce: 2241 movs r2, #65 @ 0x41
  93175. 80259d0: 2000 movs r0, #0
  93176. 80259d2: f7f4 f939 bl 8019c48 <pbuf_alloced_custom>
  93177. 80259d6: 6178 str r0, [r7, #20]
  93178. if (newpbuf == NULL) {
  93179. 80259d8: 697b ldr r3, [r7, #20]
  93180. 80259da: 2b00 cmp r3, #0
  93181. 80259dc: d106 bne.n 80259ec <ip4_frag+0x17c>
  93182. ip_frag_free_pbuf_custom_ref(pcr);
  93183. 80259de: 69b8 ldr r0, [r7, #24]
  93184. 80259e0: f7ff fef6 bl 80257d0 <ip_frag_free_pbuf_custom_ref>
  93185. pbuf_free(rambuf);
  93186. 80259e4: 6a78 ldr r0, [r7, #36] @ 0x24
  93187. 80259e6: f7f4 fb19 bl 801a01c <pbuf_free>
  93188. goto memerr;
  93189. 80259ea: e074 b.n 8025ad6 <ip4_frag+0x266>
  93190. }
  93191. pbuf_ref(p);
  93192. 80259ec: 68f8 ldr r0, [r7, #12]
  93193. 80259ee: f7f4 fbbb bl 801a168 <pbuf_ref>
  93194. pcr->original = p;
  93195. 80259f2: 69bb ldr r3, [r7, #24]
  93196. 80259f4: 68fa ldr r2, [r7, #12]
  93197. 80259f6: 615a str r2, [r3, #20]
  93198. pcr->pc.custom_free_function = ipfrag_free_pbuf_custom;
  93199. 80259f8: 69bb ldr r3, [r7, #24]
  93200. 80259fa: 4a3f ldr r2, [pc, #252] @ (8025af8 <ip4_frag+0x288>)
  93201. 80259fc: 611a str r2, [r3, #16]
  93202. /* Add it to end of rambuf's chain, but using pbuf_cat, not pbuf_chain
  93203. * so that it is removed when pbuf_dechain is later called on rambuf.
  93204. */
  93205. pbuf_cat(rambuf, newpbuf);
  93206. 80259fe: 6979 ldr r1, [r7, #20]
  93207. 8025a00: 6a78 ldr r0, [r7, #36] @ 0x24
  93208. 8025a02: f7f4 fbd9 bl 801a1b8 <pbuf_cat>
  93209. left_to_copy = (u16_t)(left_to_copy - newpbuflen);
  93210. 8025a06: f8b7 2044 ldrh.w r2, [r7, #68] @ 0x44
  93211. 8025a0a: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  93212. 8025a0e: 1ad3 subs r3, r2, r3
  93213. 8025a10: f8a7 3044 strh.w r3, [r7, #68] @ 0x44
  93214. if (left_to_copy) {
  93215. 8025a14: f8b7 3044 ldrh.w r3, [r7, #68] @ 0x44
  93216. 8025a18: 2b00 cmp r3, #0
  93217. 8025a1a: d004 beq.n 8025a26 <ip4_frag+0x1b6>
  93218. poff = 0;
  93219. 8025a1c: 2300 movs r3, #0
  93220. 8025a1e: 87fb strh r3, [r7, #62] @ 0x3e
  93221. p = p->next;
  93222. 8025a20: 68fb ldr r3, [r7, #12]
  93223. 8025a22: 681b ldr r3, [r3, #0]
  93224. 8025a24: 60fb str r3, [r7, #12]
  93225. while (left_to_copy) {
  93226. 8025a26: f8b7 3044 ldrh.w r3, [r7, #68] @ 0x44
  93227. 8025a2a: 2b00 cmp r3, #0
  93228. 8025a2c: d196 bne.n 802595c <ip4_frag+0xec>
  93229. }
  93230. }
  93231. poff = (u16_t)(poff + newpbuflen);
  93232. 8025a2e: 8ffa ldrh r2, [r7, #62] @ 0x3e
  93233. 8025a30: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  93234. 8025a34: 4413 add r3, r2
  93235. 8025a36: 87fb strh r3, [r7, #62] @ 0x3e
  93236. #endif /* LWIP_NETIF_TX_SINGLE_PBUF */
  93237. /* Correct header */
  93238. last = (left <= netif->mtu - IP_HLEN);
  93239. 8025a38: 68bb ldr r3, [r7, #8]
  93240. 8025a3a: 8d1b ldrh r3, [r3, #40] @ 0x28
  93241. 8025a3c: f1a3 0213 sub.w r2, r3, #19
  93242. 8025a40: f8b7 3042 ldrh.w r3, [r7, #66] @ 0x42
  93243. 8025a44: 429a cmp r2, r3
  93244. 8025a46: bfcc ite gt
  93245. 8025a48: 2301 movgt r3, #1
  93246. 8025a4a: 2300 movle r3, #0
  93247. 8025a4c: b2db uxtb r3, r3
  93248. 8025a4e: 623b str r3, [r7, #32]
  93249. /* Set new offset and MF flag */
  93250. tmp = (IP_OFFMASK & (ofo));
  93251. 8025a50: f8b7 3040 ldrh.w r3, [r7, #64] @ 0x40
  93252. 8025a54: f3c3 030c ubfx r3, r3, #0, #13
  93253. 8025a58: 87bb strh r3, [r7, #60] @ 0x3c
  93254. if (!last || mf_set) {
  93255. 8025a5a: 6a3b ldr r3, [r7, #32]
  93256. 8025a5c: 2b00 cmp r3, #0
  93257. 8025a5e: d002 beq.n 8025a66 <ip4_frag+0x1f6>
  93258. 8025a60: 6afb ldr r3, [r7, #44] @ 0x2c
  93259. 8025a62: 2b00 cmp r3, #0
  93260. 8025a64: d003 beq.n 8025a6e <ip4_frag+0x1fe>
  93261. /* the last fragment has MF set if the input frame had it */
  93262. tmp = tmp | IP_MF;
  93263. 8025a66: 8fbb ldrh r3, [r7, #60] @ 0x3c
  93264. 8025a68: f443 5300 orr.w r3, r3, #8192 @ 0x2000
  93265. 8025a6c: 87bb strh r3, [r7, #60] @ 0x3c
  93266. }
  93267. IPH_OFFSET_SET(iphdr, lwip_htons(tmp));
  93268. 8025a6e: 8fbb ldrh r3, [r7, #60] @ 0x3c
  93269. 8025a70: 4618 mov r0, r3
  93270. 8025a72: f7f2 fdf1 bl 8018658 <lwip_htons>
  93271. 8025a76: 4603 mov r3, r0
  93272. 8025a78: 461a mov r2, r3
  93273. 8025a7a: 6b3b ldr r3, [r7, #48] @ 0x30
  93274. 8025a7c: 80da strh r2, [r3, #6]
  93275. IPH_LEN_SET(iphdr, lwip_htons((u16_t)(fragsize + IP_HLEN)));
  93276. 8025a7e: 8d7b ldrh r3, [r7, #42] @ 0x2a
  93277. 8025a80: 3314 adds r3, #20
  93278. 8025a82: b29b uxth r3, r3
  93279. 8025a84: 4618 mov r0, r3
  93280. 8025a86: f7f2 fde7 bl 8018658 <lwip_htons>
  93281. 8025a8a: 4603 mov r3, r0
  93282. 8025a8c: 461a mov r2, r3
  93283. 8025a8e: 6b3b ldr r3, [r7, #48] @ 0x30
  93284. 8025a90: 805a strh r2, [r3, #2]
  93285. IPH_CHKSUM_SET(iphdr, 0);
  93286. 8025a92: 6b3b ldr r3, [r7, #48] @ 0x30
  93287. 8025a94: 2200 movs r2, #0
  93288. 8025a96: 729a strb r2, [r3, #10]
  93289. 8025a98: 2200 movs r2, #0
  93290. 8025a9a: 72da strb r2, [r3, #11]
  93291. #endif /* CHECKSUM_GEN_IP */
  93292. /* No need for separate header pbuf - we allowed room for it in rambuf
  93293. * when allocated.
  93294. */
  93295. netif->output(netif, rambuf, dest);
  93296. 8025a9c: 68bb ldr r3, [r7, #8]
  93297. 8025a9e: 695b ldr r3, [r3, #20]
  93298. 8025aa0: 687a ldr r2, [r7, #4]
  93299. 8025aa2: 6a79 ldr r1, [r7, #36] @ 0x24
  93300. 8025aa4: 68b8 ldr r0, [r7, #8]
  93301. 8025aa6: 4798 blx r3
  93302. * recreate it next time round the loop. If we're lucky the hardware
  93303. * will have already sent the packet, the free will really free, and
  93304. * there will be zero memory penalty.
  93305. */
  93306. pbuf_free(rambuf);
  93307. 8025aa8: 6a78 ldr r0, [r7, #36] @ 0x24
  93308. 8025aaa: f7f4 fab7 bl 801a01c <pbuf_free>
  93309. left = (u16_t)(left - fragsize);
  93310. 8025aae: f8b7 2042 ldrh.w r2, [r7, #66] @ 0x42
  93311. 8025ab2: 8d7b ldrh r3, [r7, #42] @ 0x2a
  93312. 8025ab4: 1ad3 subs r3, r2, r3
  93313. 8025ab6: f8a7 3042 strh.w r3, [r7, #66] @ 0x42
  93314. ofo = (u16_t)(ofo + nfb);
  93315. 8025aba: f8b7 2040 ldrh.w r2, [r7, #64] @ 0x40
  93316. 8025abe: 8f7b ldrh r3, [r7, #58] @ 0x3a
  93317. 8025ac0: 4413 add r3, r2
  93318. 8025ac2: f8a7 3040 strh.w r3, [r7, #64] @ 0x40
  93319. while (left) {
  93320. 8025ac6: f8b7 3042 ldrh.w r3, [r7, #66] @ 0x42
  93321. 8025aca: 2b00 cmp r3, #0
  93322. 8025acc: f47f af19 bne.w 8025902 <ip4_frag+0x92>
  93323. }
  93324. MIB2_STATS_INC(mib2.ipfragoks);
  93325. return ERR_OK;
  93326. 8025ad0: 2300 movs r3, #0
  93327. 8025ad2: e002 b.n 8025ada <ip4_frag+0x26a>
  93328. goto memerr;
  93329. 8025ad4: bf00 nop
  93330. memerr:
  93331. MIB2_STATS_INC(mib2.ipfragfails);
  93332. return ERR_MEM;
  93333. 8025ad6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  93334. }
  93335. 8025ada: 4618 mov r0, r3
  93336. 8025adc: 3748 adds r7, #72 @ 0x48
  93337. 8025ade: 46bd mov sp, r7
  93338. 8025ae0: bd80 pop {r7, pc}
  93339. 8025ae2: bf00 nop
  93340. 8025ae4: 08030200 .word 0x08030200
  93341. 8025ae8: 080303dc .word 0x080303dc
  93342. 8025aec: 08030248 .word 0x08030248
  93343. 8025af0: 080303f8 .word 0x080303f8
  93344. 8025af4: 08030418 .word 0x08030418
  93345. 8025af8: 08025809 .word 0x08025809
  93346. 08025afc <ethernet_input>:
  93347. * @see ETHARP_SUPPORT_VLAN
  93348. * @see LWIP_HOOK_VLAN_CHECK
  93349. */
  93350. err_t
  93351. ethernet_input(struct pbuf *p, struct netif *netif)
  93352. {
  93353. 8025afc: b580 push {r7, lr}
  93354. 8025afe: b086 sub sp, #24
  93355. 8025b00: af00 add r7, sp, #0
  93356. 8025b02: 6078 str r0, [r7, #4]
  93357. 8025b04: 6039 str r1, [r7, #0]
  93358. struct eth_hdr *ethhdr;
  93359. u16_t type;
  93360. #if LWIP_ARP || ETHARP_SUPPORT_VLAN || LWIP_IPV6
  93361. u16_t next_hdr_offset = SIZEOF_ETH_HDR;
  93362. 8025b06: 230e movs r3, #14
  93363. 8025b08: 82fb strh r3, [r7, #22]
  93364. #endif /* LWIP_ARP || ETHARP_SUPPORT_VLAN */
  93365. LWIP_ASSERT_CORE_LOCKED();
  93366. 8025b0a: f7ea fab1 bl 8010070 <sys_check_core_locking>
  93367. if (p->len <= SIZEOF_ETH_HDR) {
  93368. 8025b0e: 687b ldr r3, [r7, #4]
  93369. 8025b10: 895b ldrh r3, [r3, #10]
  93370. 8025b12: 2b0e cmp r3, #14
  93371. 8025b14: d96e bls.n 8025bf4 <ethernet_input+0xf8>
  93372. ETHARP_STATS_INC(etharp.drop);
  93373. MIB2_STATS_NETIF_INC(netif, ifinerrors);
  93374. goto free_and_return;
  93375. }
  93376. if (p->if_idx == NETIF_NO_INDEX) {
  93377. 8025b16: 687b ldr r3, [r7, #4]
  93378. 8025b18: 7bdb ldrb r3, [r3, #15]
  93379. 8025b1a: 2b00 cmp r3, #0
  93380. 8025b1c: d106 bne.n 8025b2c <ethernet_input+0x30>
  93381. p->if_idx = netif_get_index(netif);
  93382. 8025b1e: 683b ldr r3, [r7, #0]
  93383. 8025b20: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  93384. 8025b24: 3301 adds r3, #1
  93385. 8025b26: b2da uxtb r2, r3
  93386. 8025b28: 687b ldr r3, [r7, #4]
  93387. 8025b2a: 73da strb r2, [r3, #15]
  93388. }
  93389. /* points to packet payload, which starts with an Ethernet header */
  93390. ethhdr = (struct eth_hdr *)p->payload;
  93391. 8025b2c: 687b ldr r3, [r7, #4]
  93392. 8025b2e: 685b ldr r3, [r3, #4]
  93393. 8025b30: 613b str r3, [r7, #16]
  93394. (unsigned char)ethhdr->dest.addr[3], (unsigned char)ethhdr->dest.addr[4], (unsigned char)ethhdr->dest.addr[5],
  93395. (unsigned char)ethhdr->src.addr[0], (unsigned char)ethhdr->src.addr[1], (unsigned char)ethhdr->src.addr[2],
  93396. (unsigned char)ethhdr->src.addr[3], (unsigned char)ethhdr->src.addr[4], (unsigned char)ethhdr->src.addr[5],
  93397. lwip_htons(ethhdr->type)));
  93398. type = ethhdr->type;
  93399. 8025b32: 693b ldr r3, [r7, #16]
  93400. 8025b34: 7b1a ldrb r2, [r3, #12]
  93401. 8025b36: 7b5b ldrb r3, [r3, #13]
  93402. 8025b38: 021b lsls r3, r3, #8
  93403. 8025b3a: 4313 orrs r3, r2
  93404. 8025b3c: 81fb strh r3, [r7, #14]
  93405. #if LWIP_ARP_FILTER_NETIF
  93406. netif = LWIP_ARP_FILTER_NETIF_FN(p, netif, lwip_htons(type));
  93407. #endif /* LWIP_ARP_FILTER_NETIF*/
  93408. if (ethhdr->dest.addr[0] & 1) {
  93409. 8025b3e: 693b ldr r3, [r7, #16]
  93410. 8025b40: 781b ldrb r3, [r3, #0]
  93411. 8025b42: f003 0301 and.w r3, r3, #1
  93412. 8025b46: 2b00 cmp r3, #0
  93413. 8025b48: d023 beq.n 8025b92 <ethernet_input+0x96>
  93414. /* this might be a multicast or broadcast packet */
  93415. if (ethhdr->dest.addr[0] == LL_IP4_MULTICAST_ADDR_0) {
  93416. 8025b4a: 693b ldr r3, [r7, #16]
  93417. 8025b4c: 781b ldrb r3, [r3, #0]
  93418. 8025b4e: 2b01 cmp r3, #1
  93419. 8025b50: d10f bne.n 8025b72 <ethernet_input+0x76>
  93420. #if LWIP_IPV4
  93421. if ((ethhdr->dest.addr[1] == LL_IP4_MULTICAST_ADDR_1) &&
  93422. 8025b52: 693b ldr r3, [r7, #16]
  93423. 8025b54: 785b ldrb r3, [r3, #1]
  93424. 8025b56: 2b00 cmp r3, #0
  93425. 8025b58: d11b bne.n 8025b92 <ethernet_input+0x96>
  93426. (ethhdr->dest.addr[2] == LL_IP4_MULTICAST_ADDR_2)) {
  93427. 8025b5a: 693b ldr r3, [r7, #16]
  93428. 8025b5c: 789b ldrb r3, [r3, #2]
  93429. if ((ethhdr->dest.addr[1] == LL_IP4_MULTICAST_ADDR_1) &&
  93430. 8025b5e: 2b5e cmp r3, #94 @ 0x5e
  93431. 8025b60: d117 bne.n 8025b92 <ethernet_input+0x96>
  93432. /* mark the pbuf as link-layer multicast */
  93433. p->flags |= PBUF_FLAG_LLMCAST;
  93434. 8025b62: 687b ldr r3, [r7, #4]
  93435. 8025b64: 7b5b ldrb r3, [r3, #13]
  93436. 8025b66: f043 0310 orr.w r3, r3, #16
  93437. 8025b6a: b2da uxtb r2, r3
  93438. 8025b6c: 687b ldr r3, [r7, #4]
  93439. 8025b6e: 735a strb r2, [r3, #13]
  93440. 8025b70: e00f b.n 8025b92 <ethernet_input+0x96>
  93441. (ethhdr->dest.addr[1] == LL_IP6_MULTICAST_ADDR_1)) {
  93442. /* mark the pbuf as link-layer multicast */
  93443. p->flags |= PBUF_FLAG_LLMCAST;
  93444. }
  93445. #endif /* LWIP_IPV6 */
  93446. else if (eth_addr_cmp(&ethhdr->dest, &ethbroadcast)) {
  93447. 8025b72: 693b ldr r3, [r7, #16]
  93448. 8025b74: 2206 movs r2, #6
  93449. 8025b76: 4928 ldr r1, [pc, #160] @ (8025c18 <ethernet_input+0x11c>)
  93450. 8025b78: 4618 mov r0, r3
  93451. 8025b7a: f003 fe2f bl 80297dc <memcmp>
  93452. 8025b7e: 4603 mov r3, r0
  93453. 8025b80: 2b00 cmp r3, #0
  93454. 8025b82: d106 bne.n 8025b92 <ethernet_input+0x96>
  93455. /* mark the pbuf as link-layer broadcast */
  93456. p->flags |= PBUF_FLAG_LLBCAST;
  93457. 8025b84: 687b ldr r3, [r7, #4]
  93458. 8025b86: 7b5b ldrb r3, [r3, #13]
  93459. 8025b88: f043 0308 orr.w r3, r3, #8
  93460. 8025b8c: b2da uxtb r2, r3
  93461. 8025b8e: 687b ldr r3, [r7, #4]
  93462. 8025b90: 735a strb r2, [r3, #13]
  93463. }
  93464. }
  93465. switch (type) {
  93466. 8025b92: 89fb ldrh r3, [r7, #14]
  93467. 8025b94: 2b08 cmp r3, #8
  93468. 8025b96: d003 beq.n 8025ba0 <ethernet_input+0xa4>
  93469. 8025b98: f5b3 6fc1 cmp.w r3, #1544 @ 0x608
  93470. 8025b9c: d014 beq.n 8025bc8 <ethernet_input+0xcc>
  93471. }
  93472. #endif
  93473. ETHARP_STATS_INC(etharp.proterr);
  93474. ETHARP_STATS_INC(etharp.drop);
  93475. MIB2_STATS_NETIF_INC(netif, ifinunknownprotos);
  93476. goto free_and_return;
  93477. 8025b9e: e032 b.n 8025c06 <ethernet_input+0x10a>
  93478. if (!(netif->flags & NETIF_FLAG_ETHARP)) {
  93479. 8025ba0: 683b ldr r3, [r7, #0]
  93480. 8025ba2: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  93481. 8025ba6: f003 0308 and.w r3, r3, #8
  93482. 8025baa: 2b00 cmp r3, #0
  93483. 8025bac: d024 beq.n 8025bf8 <ethernet_input+0xfc>
  93484. if (pbuf_remove_header(p, next_hdr_offset)) {
  93485. 8025bae: 8afb ldrh r3, [r7, #22]
  93486. 8025bb0: 4619 mov r1, r3
  93487. 8025bb2: 6878 ldr r0, [r7, #4]
  93488. 8025bb4: f7f4 f97a bl 8019eac <pbuf_remove_header>
  93489. 8025bb8: 4603 mov r3, r0
  93490. 8025bba: 2b00 cmp r3, #0
  93491. 8025bbc: d11e bne.n 8025bfc <ethernet_input+0x100>
  93492. ip4_input(p, netif);
  93493. 8025bbe: 6839 ldr r1, [r7, #0]
  93494. 8025bc0: 6878 ldr r0, [r7, #4]
  93495. 8025bc2: f7fe fd2f bl 8024624 <ip4_input>
  93496. break;
  93497. 8025bc6: e013 b.n 8025bf0 <ethernet_input+0xf4>
  93498. if (!(netif->flags & NETIF_FLAG_ETHARP)) {
  93499. 8025bc8: 683b ldr r3, [r7, #0]
  93500. 8025bca: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  93501. 8025bce: f003 0308 and.w r3, r3, #8
  93502. 8025bd2: 2b00 cmp r3, #0
  93503. 8025bd4: d014 beq.n 8025c00 <ethernet_input+0x104>
  93504. if (pbuf_remove_header(p, next_hdr_offset)) {
  93505. 8025bd6: 8afb ldrh r3, [r7, #22]
  93506. 8025bd8: 4619 mov r1, r3
  93507. 8025bda: 6878 ldr r0, [r7, #4]
  93508. 8025bdc: f7f4 f966 bl 8019eac <pbuf_remove_header>
  93509. 8025be0: 4603 mov r3, r0
  93510. 8025be2: 2b00 cmp r3, #0
  93511. 8025be4: d10e bne.n 8025c04 <ethernet_input+0x108>
  93512. etharp_input(p, netif);
  93513. 8025be6: 6839 ldr r1, [r7, #0]
  93514. 8025be8: 6878 ldr r0, [r7, #4]
  93515. 8025bea: f7fd fe9d bl 8023928 <etharp_input>
  93516. break;
  93517. 8025bee: bf00 nop
  93518. }
  93519. /* This means the pbuf is freed or consumed,
  93520. so the caller doesn't have to free it again */
  93521. return ERR_OK;
  93522. 8025bf0: 2300 movs r3, #0
  93523. 8025bf2: e00c b.n 8025c0e <ethernet_input+0x112>
  93524. goto free_and_return;
  93525. 8025bf4: bf00 nop
  93526. 8025bf6: e006 b.n 8025c06 <ethernet_input+0x10a>
  93527. goto free_and_return;
  93528. 8025bf8: bf00 nop
  93529. 8025bfa: e004 b.n 8025c06 <ethernet_input+0x10a>
  93530. goto free_and_return;
  93531. 8025bfc: bf00 nop
  93532. 8025bfe: e002 b.n 8025c06 <ethernet_input+0x10a>
  93533. goto free_and_return;
  93534. 8025c00: bf00 nop
  93535. 8025c02: e000 b.n 8025c06 <ethernet_input+0x10a>
  93536. goto free_and_return;
  93537. 8025c04: bf00 nop
  93538. free_and_return:
  93539. pbuf_free(p);
  93540. 8025c06: 6878 ldr r0, [r7, #4]
  93541. 8025c08: f7f4 fa08 bl 801a01c <pbuf_free>
  93542. return ERR_OK;
  93543. 8025c0c: 2300 movs r3, #0
  93544. }
  93545. 8025c0e: 4618 mov r0, r3
  93546. 8025c10: 3718 adds r7, #24
  93547. 8025c12: 46bd mov sp, r7
  93548. 8025c14: bd80 pop {r7, pc}
  93549. 8025c16: bf00 nop
  93550. 8025c18: 080307ac .word 0x080307ac
  93551. 08025c1c <ethernet_output>:
  93552. * @return ERR_OK if the packet was sent, any other err_t on failure
  93553. */
  93554. err_t
  93555. ethernet_output(struct netif * netif, struct pbuf * p,
  93556. const struct eth_addr * src, const struct eth_addr * dst,
  93557. u16_t eth_type) {
  93558. 8025c1c: b580 push {r7, lr}
  93559. 8025c1e: b086 sub sp, #24
  93560. 8025c20: af00 add r7, sp, #0
  93561. 8025c22: 60f8 str r0, [r7, #12]
  93562. 8025c24: 60b9 str r1, [r7, #8]
  93563. 8025c26: 607a str r2, [r7, #4]
  93564. 8025c28: 603b str r3, [r7, #0]
  93565. struct eth_hdr *ethhdr;
  93566. u16_t eth_type_be = lwip_htons(eth_type);
  93567. 8025c2a: 8c3b ldrh r3, [r7, #32]
  93568. 8025c2c: 4618 mov r0, r3
  93569. 8025c2e: f7f2 fd13 bl 8018658 <lwip_htons>
  93570. 8025c32: 4603 mov r3, r0
  93571. 8025c34: 82fb strh r3, [r7, #22]
  93572. eth_type_be = PP_HTONS(ETHTYPE_VLAN);
  93573. } else
  93574. #endif /* ETHARP_SUPPORT_VLAN && defined(LWIP_HOOK_VLAN_SET) */
  93575. {
  93576. if (pbuf_add_header(p, SIZEOF_ETH_HDR) != 0) {
  93577. 8025c36: 210e movs r1, #14
  93578. 8025c38: 68b8 ldr r0, [r7, #8]
  93579. 8025c3a: f7f4 f927 bl 8019e8c <pbuf_add_header>
  93580. 8025c3e: 4603 mov r3, r0
  93581. 8025c40: 2b00 cmp r3, #0
  93582. 8025c42: d127 bne.n 8025c94 <ethernet_output+0x78>
  93583. goto pbuf_header_failed;
  93584. }
  93585. }
  93586. LWIP_ASSERT_CORE_LOCKED();
  93587. 8025c44: f7ea fa14 bl 8010070 <sys_check_core_locking>
  93588. ethhdr = (struct eth_hdr *)p->payload;
  93589. 8025c48: 68bb ldr r3, [r7, #8]
  93590. 8025c4a: 685b ldr r3, [r3, #4]
  93591. 8025c4c: 613b str r3, [r7, #16]
  93592. ethhdr->type = eth_type_be;
  93593. 8025c4e: 693b ldr r3, [r7, #16]
  93594. 8025c50: 8afa ldrh r2, [r7, #22]
  93595. 8025c52: 819a strh r2, [r3, #12]
  93596. SMEMCPY(&ethhdr->dest, dst, ETH_HWADDR_LEN);
  93597. 8025c54: 693b ldr r3, [r7, #16]
  93598. 8025c56: 2206 movs r2, #6
  93599. 8025c58: 6839 ldr r1, [r7, #0]
  93600. 8025c5a: 4618 mov r0, r3
  93601. 8025c5c: f003 fedf bl 8029a1e <memcpy>
  93602. SMEMCPY(&ethhdr->src, src, ETH_HWADDR_LEN);
  93603. 8025c60: 693b ldr r3, [r7, #16]
  93604. 8025c62: 3306 adds r3, #6
  93605. 8025c64: 2206 movs r2, #6
  93606. 8025c66: 6879 ldr r1, [r7, #4]
  93607. 8025c68: 4618 mov r0, r3
  93608. 8025c6a: f003 fed8 bl 8029a1e <memcpy>
  93609. LWIP_ASSERT("netif->hwaddr_len must be 6 for ethernet_output!",
  93610. 8025c6e: 68fb ldr r3, [r7, #12]
  93611. 8025c70: f893 3030 ldrb.w r3, [r3, #48] @ 0x30
  93612. 8025c74: 2b06 cmp r3, #6
  93613. 8025c76: d006 beq.n 8025c86 <ethernet_output+0x6a>
  93614. 8025c78: 4b0a ldr r3, [pc, #40] @ (8025ca4 <ethernet_output+0x88>)
  93615. 8025c7a: f44f 7299 mov.w r2, #306 @ 0x132
  93616. 8025c7e: 490a ldr r1, [pc, #40] @ (8025ca8 <ethernet_output+0x8c>)
  93617. 8025c80: 480a ldr r0, [pc, #40] @ (8025cac <ethernet_output+0x90>)
  93618. 8025c82: f003 fc43 bl 802950c <iprintf>
  93619. (netif->hwaddr_len == ETH_HWADDR_LEN));
  93620. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE,
  93621. ("ethernet_output: sending packet %p\n", (void *)p));
  93622. /* send the packet */
  93623. return netif->linkoutput(netif, p);
  93624. 8025c86: 68fb ldr r3, [r7, #12]
  93625. 8025c88: 699b ldr r3, [r3, #24]
  93626. 8025c8a: 68b9 ldr r1, [r7, #8]
  93627. 8025c8c: 68f8 ldr r0, [r7, #12]
  93628. 8025c8e: 4798 blx r3
  93629. 8025c90: 4603 mov r3, r0
  93630. 8025c92: e002 b.n 8025c9a <ethernet_output+0x7e>
  93631. goto pbuf_header_failed;
  93632. 8025c94: bf00 nop
  93633. pbuf_header_failed:
  93634. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS,
  93635. ("ethernet_output: could not allocate room for header.\n"));
  93636. LINK_STATS_INC(link.lenerr);
  93637. return ERR_BUF;
  93638. 8025c96: f06f 0301 mvn.w r3, #1
  93639. }
  93640. 8025c9a: 4618 mov r0, r3
  93641. 8025c9c: 3718 adds r7, #24
  93642. 8025c9e: 46bd mov sp, r7
  93643. 8025ca0: bd80 pop {r7, pc}
  93644. 8025ca2: bf00 nop
  93645. 8025ca4: 08030428 .word 0x08030428
  93646. 8025ca8: 08030460 .word 0x08030460
  93647. 8025cac: 08030494 .word 0x08030494
  93648. 08025cb0 <sys_mbox_new>:
  93649. #endif
  93650. /*-----------------------------------------------------------------------------------*/
  93651. // Creates an empty mailbox.
  93652. err_t sys_mbox_new(sys_mbox_t *mbox, int size)
  93653. {
  93654. 8025cb0: b580 push {r7, lr}
  93655. 8025cb2: b082 sub sp, #8
  93656. 8025cb4: af00 add r7, sp, #0
  93657. 8025cb6: 6078 str r0, [r7, #4]
  93658. 8025cb8: 6039 str r1, [r7, #0]
  93659. #if (osCMSIS < 0x20000U)
  93660. osMessageQDef(QUEUE, size, void *);
  93661. *mbox = osMessageCreate(osMessageQ(QUEUE), NULL);
  93662. #else
  93663. *mbox = osMessageQueueNew(size, sizeof(void *), NULL);
  93664. 8025cba: 683b ldr r3, [r7, #0]
  93665. 8025cbc: 2200 movs r2, #0
  93666. 8025cbe: 2104 movs r1, #4
  93667. 8025cc0: 4618 mov r0, r3
  93668. 8025cc2: f7ea fe6b bl 801099c <osMessageQueueNew>
  93669. 8025cc6: 4602 mov r2, r0
  93670. 8025cc8: 687b ldr r3, [r7, #4]
  93671. 8025cca: 601a str r2, [r3, #0]
  93672. if(lwip_stats.sys.mbox.max < lwip_stats.sys.mbox.used)
  93673. {
  93674. lwip_stats.sys.mbox.max = lwip_stats.sys.mbox.used;
  93675. }
  93676. #endif /* SYS_STATS */
  93677. if(*mbox == NULL)
  93678. 8025ccc: 687b ldr r3, [r7, #4]
  93679. 8025cce: 681b ldr r3, [r3, #0]
  93680. 8025cd0: 2b00 cmp r3, #0
  93681. 8025cd2: d102 bne.n 8025cda <sys_mbox_new+0x2a>
  93682. return ERR_MEM;
  93683. 8025cd4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  93684. 8025cd8: e000 b.n 8025cdc <sys_mbox_new+0x2c>
  93685. return ERR_OK;
  93686. 8025cda: 2300 movs r3, #0
  93687. }
  93688. 8025cdc: 4618 mov r0, r3
  93689. 8025cde: 3708 adds r7, #8
  93690. 8025ce0: 46bd mov sp, r7
  93691. 8025ce2: bd80 pop {r7, pc}
  93692. 08025ce4 <sys_mbox_free>:
  93693. Deallocates a mailbox. If there are messages still present in the
  93694. mailbox when the mailbox is deallocated, it is an indication of a
  93695. programming error in lwIP and the developer should be notified.
  93696. */
  93697. void sys_mbox_free(sys_mbox_t *mbox)
  93698. {
  93699. 8025ce4: b580 push {r7, lr}
  93700. 8025ce6: b082 sub sp, #8
  93701. 8025ce8: af00 add r7, sp, #0
  93702. 8025cea: 6078 str r0, [r7, #4]
  93703. #if (osCMSIS < 0x20000U)
  93704. if(osMessageWaiting(*mbox))
  93705. #else
  93706. if(osMessageQueueGetCount(*mbox))
  93707. 8025cec: 687b ldr r3, [r7, #4]
  93708. 8025cee: 681b ldr r3, [r3, #0]
  93709. 8025cf0: 4618 mov r0, r3
  93710. 8025cf2: f7ea ff85 bl 8010c00 <osMessageQueueGetCount>
  93711. }
  93712. #if (osCMSIS < 0x20000U)
  93713. osMessageDelete(*mbox);
  93714. #else
  93715. osMessageQueueDelete(*mbox);
  93716. 8025cf6: 687b ldr r3, [r7, #4]
  93717. 8025cf8: 681b ldr r3, [r3, #0]
  93718. 8025cfa: 4618 mov r0, r3
  93719. 8025cfc: f7ea ffa0 bl 8010c40 <osMessageQueueDelete>
  93720. #endif
  93721. #if SYS_STATS
  93722. --lwip_stats.sys.mbox.used;
  93723. #endif /* SYS_STATS */
  93724. }
  93725. 8025d00: bf00 nop
  93726. 8025d02: 3708 adds r7, #8
  93727. 8025d04: 46bd mov sp, r7
  93728. 8025d06: bd80 pop {r7, pc}
  93729. 08025d08 <sys_mbox_trypost>:
  93730. /*-----------------------------------------------------------------------------------*/
  93731. // Try to post the "msg" to the mailbox.
  93732. err_t sys_mbox_trypost(sys_mbox_t *mbox, void *msg)
  93733. {
  93734. 8025d08: b580 push {r7, lr}
  93735. 8025d0a: b084 sub sp, #16
  93736. 8025d0c: af00 add r7, sp, #0
  93737. 8025d0e: 6078 str r0, [r7, #4]
  93738. 8025d10: 6039 str r1, [r7, #0]
  93739. err_t result;
  93740. #if (osCMSIS < 0x20000U)
  93741. if(osMessagePut(*mbox, (uint32_t)msg, 0) == osOK)
  93742. #else
  93743. if(osMessageQueuePut(*mbox, &msg, 0, 0) == osOK)
  93744. 8025d12: 687b ldr r3, [r7, #4]
  93745. 8025d14: 6818 ldr r0, [r3, #0]
  93746. 8025d16: 4639 mov r1, r7
  93747. 8025d18: 2300 movs r3, #0
  93748. 8025d1a: 2200 movs r2, #0
  93749. 8025d1c: f7ea feb2 bl 8010a84 <osMessageQueuePut>
  93750. 8025d20: 4603 mov r3, r0
  93751. 8025d22: 2b00 cmp r3, #0
  93752. 8025d24: d102 bne.n 8025d2c <sys_mbox_trypost+0x24>
  93753. #endif
  93754. {
  93755. result = ERR_OK;
  93756. 8025d26: 2300 movs r3, #0
  93757. 8025d28: 73fb strb r3, [r7, #15]
  93758. 8025d2a: e001 b.n 8025d30 <sys_mbox_trypost+0x28>
  93759. }
  93760. else
  93761. {
  93762. // could not post, queue must be full
  93763. result = ERR_MEM;
  93764. 8025d2c: 23ff movs r3, #255 @ 0xff
  93765. 8025d2e: 73fb strb r3, [r7, #15]
  93766. #if SYS_STATS
  93767. lwip_stats.sys.mbox.err++;
  93768. #endif /* SYS_STATS */
  93769. }
  93770. return result;
  93771. 8025d30: f997 300f ldrsb.w r3, [r7, #15]
  93772. }
  93773. 8025d34: 4618 mov r0, r3
  93774. 8025d36: 3710 adds r7, #16
  93775. 8025d38: 46bd mov sp, r7
  93776. 8025d3a: bd80 pop {r7, pc}
  93777. 08025d3c <sys_arch_mbox_fetch>:
  93778. Note that a function with a similar name, sys_mbox_fetch(), is
  93779. implemented by lwIP.
  93780. */
  93781. u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout)
  93782. {
  93783. 8025d3c: b580 push {r7, lr}
  93784. 8025d3e: b086 sub sp, #24
  93785. 8025d40: af00 add r7, sp, #0
  93786. 8025d42: 60f8 str r0, [r7, #12]
  93787. 8025d44: 60b9 str r1, [r7, #8]
  93788. 8025d46: 607a str r2, [r7, #4]
  93789. #if (osCMSIS < 0x20000U)
  93790. osEvent event;
  93791. uint32_t starttime = osKernelSysTick();
  93792. #else
  93793. osStatus_t status;
  93794. uint32_t starttime = osKernelGetTickCount();
  93795. 8025d48: f7ea fb08 bl 801035c <osKernelGetTickCount>
  93796. 8025d4c: 6178 str r0, [r7, #20]
  93797. #endif
  93798. if(timeout != 0)
  93799. 8025d4e: 687b ldr r3, [r7, #4]
  93800. 8025d50: 2b00 cmp r3, #0
  93801. 8025d52: d013 beq.n 8025d7c <sys_arch_mbox_fetch+0x40>
  93802. {
  93803. *msg = (void *)event.value.v;
  93804. return (osKernelSysTick() - starttime);
  93805. }
  93806. #else
  93807. status = osMessageQueueGet(*mbox, msg, 0, timeout);
  93808. 8025d54: 68fb ldr r3, [r7, #12]
  93809. 8025d56: 6818 ldr r0, [r3, #0]
  93810. 8025d58: 687b ldr r3, [r7, #4]
  93811. 8025d5a: 2200 movs r2, #0
  93812. 8025d5c: 68b9 ldr r1, [r7, #8]
  93813. 8025d5e: f7ea fef1 bl 8010b44 <osMessageQueueGet>
  93814. 8025d62: 6138 str r0, [r7, #16]
  93815. if (status == osOK)
  93816. 8025d64: 693b ldr r3, [r7, #16]
  93817. 8025d66: 2b00 cmp r3, #0
  93818. 8025d68: d105 bne.n 8025d76 <sys_arch_mbox_fetch+0x3a>
  93819. {
  93820. return (osKernelGetTickCount() - starttime);
  93821. 8025d6a: f7ea faf7 bl 801035c <osKernelGetTickCount>
  93822. 8025d6e: 4602 mov r2, r0
  93823. 8025d70: 697b ldr r3, [r7, #20]
  93824. 8025d72: 1ad3 subs r3, r2, r3
  93825. 8025d74: e00f b.n 8025d96 <sys_arch_mbox_fetch+0x5a>
  93826. }
  93827. #endif
  93828. else
  93829. {
  93830. return SYS_ARCH_TIMEOUT;
  93831. 8025d76: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  93832. 8025d7a: e00c b.n 8025d96 <sys_arch_mbox_fetch+0x5a>
  93833. #if (osCMSIS < 0x20000U)
  93834. event = osMessageGet (*mbox, osWaitForever);
  93835. *msg = (void *)event.value.v;
  93836. return (osKernelSysTick() - starttime);
  93837. #else
  93838. osMessageQueueGet(*mbox, msg, 0, osWaitForever );
  93839. 8025d7c: 68fb ldr r3, [r7, #12]
  93840. 8025d7e: 6818 ldr r0, [r3, #0]
  93841. 8025d80: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  93842. 8025d84: 2200 movs r2, #0
  93843. 8025d86: 68b9 ldr r1, [r7, #8]
  93844. 8025d88: f7ea fedc bl 8010b44 <osMessageQueueGet>
  93845. return (osKernelGetTickCount() - starttime);
  93846. 8025d8c: f7ea fae6 bl 801035c <osKernelGetTickCount>
  93847. 8025d90: 4602 mov r2, r0
  93848. 8025d92: 697b ldr r3, [r7, #20]
  93849. 8025d94: 1ad3 subs r3, r2, r3
  93850. #endif
  93851. }
  93852. }
  93853. 8025d96: 4618 mov r0, r3
  93854. 8025d98: 3718 adds r7, #24
  93855. 8025d9a: 46bd mov sp, r7
  93856. 8025d9c: bd80 pop {r7, pc}
  93857. 08025d9e <sys_arch_mbox_tryfetch>:
  93858. /*
  93859. Similar to sys_arch_mbox_fetch, but if message is not ready immediately, we'll
  93860. return with SYS_MBOX_EMPTY. On success, 0 is returned.
  93861. */
  93862. u32_t sys_arch_mbox_tryfetch(sys_mbox_t *mbox, void **msg)
  93863. {
  93864. 8025d9e: b580 push {r7, lr}
  93865. 8025da0: b082 sub sp, #8
  93866. 8025da2: af00 add r7, sp, #0
  93867. 8025da4: 6078 str r0, [r7, #4]
  93868. 8025da6: 6039 str r1, [r7, #0]
  93869. if(event.status == osEventMessage)
  93870. {
  93871. *msg = (void *)event.value.v;
  93872. #else
  93873. if (osMessageQueueGet(*mbox, msg, 0, 0) == osOK)
  93874. 8025da8: 687b ldr r3, [r7, #4]
  93875. 8025daa: 6818 ldr r0, [r3, #0]
  93876. 8025dac: 2300 movs r3, #0
  93877. 8025dae: 2200 movs r2, #0
  93878. 8025db0: 6839 ldr r1, [r7, #0]
  93879. 8025db2: f7ea fec7 bl 8010b44 <osMessageQueueGet>
  93880. 8025db6: 4603 mov r3, r0
  93881. 8025db8: 2b00 cmp r3, #0
  93882. 8025dba: d101 bne.n 8025dc0 <sys_arch_mbox_tryfetch+0x22>
  93883. {
  93884. #endif
  93885. return ERR_OK;
  93886. 8025dbc: 2300 movs r3, #0
  93887. 8025dbe: e001 b.n 8025dc4 <sys_arch_mbox_tryfetch+0x26>
  93888. }
  93889. else
  93890. {
  93891. return SYS_MBOX_EMPTY;
  93892. 8025dc0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  93893. }
  93894. }
  93895. 8025dc4: 4618 mov r0, r3
  93896. 8025dc6: 3708 adds r7, #8
  93897. 8025dc8: 46bd mov sp, r7
  93898. 8025dca: bd80 pop {r7, pc}
  93899. 08025dcc <sys_mbox_valid>:
  93900. /*----------------------------------------------------------------------------------*/
  93901. int sys_mbox_valid(sys_mbox_t *mbox)
  93902. {
  93903. 8025dcc: b480 push {r7}
  93904. 8025dce: b083 sub sp, #12
  93905. 8025dd0: af00 add r7, sp, #0
  93906. 8025dd2: 6078 str r0, [r7, #4]
  93907. if (*mbox == SYS_MBOX_NULL)
  93908. 8025dd4: 687b ldr r3, [r7, #4]
  93909. 8025dd6: 681b ldr r3, [r3, #0]
  93910. 8025dd8: 2b00 cmp r3, #0
  93911. 8025dda: d101 bne.n 8025de0 <sys_mbox_valid+0x14>
  93912. return 0;
  93913. 8025ddc: 2300 movs r3, #0
  93914. 8025dde: e000 b.n 8025de2 <sys_mbox_valid+0x16>
  93915. else
  93916. return 1;
  93917. 8025de0: 2301 movs r3, #1
  93918. }
  93919. 8025de2: 4618 mov r0, r3
  93920. 8025de4: 370c adds r7, #12
  93921. 8025de6: 46bd mov sp, r7
  93922. 8025de8: f85d 7b04 ldr.w r7, [sp], #4
  93923. 8025dec: 4770 bx lr
  93924. 08025dee <sys_mbox_set_invalid>:
  93925. /*-----------------------------------------------------------------------------------*/
  93926. void sys_mbox_set_invalid(sys_mbox_t *mbox)
  93927. {
  93928. 8025dee: b480 push {r7}
  93929. 8025df0: b083 sub sp, #12
  93930. 8025df2: af00 add r7, sp, #0
  93931. 8025df4: 6078 str r0, [r7, #4]
  93932. *mbox = SYS_MBOX_NULL;
  93933. 8025df6: 687b ldr r3, [r7, #4]
  93934. 8025df8: 2200 movs r2, #0
  93935. 8025dfa: 601a str r2, [r3, #0]
  93936. }
  93937. 8025dfc: bf00 nop
  93938. 8025dfe: 370c adds r7, #12
  93939. 8025e00: 46bd mov sp, r7
  93940. 8025e02: f85d 7b04 ldr.w r7, [sp], #4
  93941. 8025e06: 4770 bx lr
  93942. 08025e08 <sys_sem_new>:
  93943. /*-----------------------------------------------------------------------------------*/
  93944. // Creates a new semaphore. The "count" argument specifies
  93945. // the initial state of the semaphore.
  93946. err_t sys_sem_new(sys_sem_t *sem, u8_t count)
  93947. {
  93948. 8025e08: b580 push {r7, lr}
  93949. 8025e0a: b082 sub sp, #8
  93950. 8025e0c: af00 add r7, sp, #0
  93951. 8025e0e: 6078 str r0, [r7, #4]
  93952. 8025e10: 460b mov r3, r1
  93953. 8025e12: 70fb strb r3, [r7, #3]
  93954. #if (osCMSIS < 0x20000U)
  93955. osSemaphoreDef(SEM);
  93956. *sem = osSemaphoreCreate (osSemaphore(SEM), 1);
  93957. #else
  93958. *sem = osSemaphoreNew(UINT16_MAX, count, NULL);
  93959. 8025e14: 78fb ldrb r3, [r7, #3]
  93960. 8025e16: 2200 movs r2, #0
  93961. 8025e18: 4619 mov r1, r3
  93962. 8025e1a: f64f 70ff movw r0, #65535 @ 0xffff
  93963. 8025e1e: f7ea fc79 bl 8010714 <osSemaphoreNew>
  93964. 8025e22: 4602 mov r2, r0
  93965. 8025e24: 687b ldr r3, [r7, #4]
  93966. 8025e26: 601a str r2, [r3, #0]
  93967. #endif
  93968. if(*sem == NULL)
  93969. 8025e28: 687b ldr r3, [r7, #4]
  93970. 8025e2a: 681b ldr r3, [r3, #0]
  93971. 8025e2c: 2b00 cmp r3, #0
  93972. 8025e2e: d102 bne.n 8025e36 <sys_sem_new+0x2e>
  93973. {
  93974. #if SYS_STATS
  93975. ++lwip_stats.sys.sem.err;
  93976. #endif /* SYS_STATS */
  93977. return ERR_MEM;
  93978. 8025e30: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  93979. 8025e34: e009 b.n 8025e4a <sys_sem_new+0x42>
  93980. }
  93981. if(count == 0) // Means it can't be taken
  93982. 8025e36: 78fb ldrb r3, [r7, #3]
  93983. 8025e38: 2b00 cmp r3, #0
  93984. 8025e3a: d105 bne.n 8025e48 <sys_sem_new+0x40>
  93985. {
  93986. #if (osCMSIS < 0x20000U)
  93987. osSemaphoreWait(*sem, 0);
  93988. #else
  93989. osSemaphoreAcquire(*sem, 0);
  93990. 8025e3c: 687b ldr r3, [r7, #4]
  93991. 8025e3e: 681b ldr r3, [r3, #0]
  93992. 8025e40: 2100 movs r1, #0
  93993. 8025e42: 4618 mov r0, r3
  93994. 8025e44: f7ea fcf0 bl 8010828 <osSemaphoreAcquire>
  93995. if (lwip_stats.sys.sem.max < lwip_stats.sys.sem.used) {
  93996. lwip_stats.sys.sem.max = lwip_stats.sys.sem.used;
  93997. }
  93998. #endif /* SYS_STATS */
  93999. return ERR_OK;
  94000. 8025e48: 2300 movs r3, #0
  94001. }
  94002. 8025e4a: 4618 mov r0, r3
  94003. 8025e4c: 3708 adds r7, #8
  94004. 8025e4e: 46bd mov sp, r7
  94005. 8025e50: bd80 pop {r7, pc}
  94006. 08025e52 <sys_arch_sem_wait>:
  94007. Notice that lwIP implements a function with a similar name,
  94008. sys_sem_wait(), that uses the sys_arch_sem_wait() function.
  94009. */
  94010. u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout)
  94011. {
  94012. 8025e52: b580 push {r7, lr}
  94013. 8025e54: b084 sub sp, #16
  94014. 8025e56: af00 add r7, sp, #0
  94015. 8025e58: 6078 str r0, [r7, #4]
  94016. 8025e5a: 6039 str r1, [r7, #0]
  94017. #if (osCMSIS < 0x20000U)
  94018. uint32_t starttime = osKernelSysTick();
  94019. #else
  94020. uint32_t starttime = osKernelGetTickCount();
  94021. 8025e5c: f7ea fa7e bl 801035c <osKernelGetTickCount>
  94022. 8025e60: 60f8 str r0, [r7, #12]
  94023. #endif
  94024. if(timeout != 0)
  94025. 8025e62: 683b ldr r3, [r7, #0]
  94026. 8025e64: 2b00 cmp r3, #0
  94027. 8025e66: d011 beq.n 8025e8c <sys_arch_sem_wait+0x3a>
  94028. #if (osCMSIS < 0x20000U)
  94029. if(osSemaphoreWait (*sem, timeout) == osOK)
  94030. {
  94031. return (osKernelSysTick() - starttime);
  94032. #else
  94033. if(osSemaphoreAcquire(*sem, timeout) == osOK)
  94034. 8025e68: 687b ldr r3, [r7, #4]
  94035. 8025e6a: 681b ldr r3, [r3, #0]
  94036. 8025e6c: 6839 ldr r1, [r7, #0]
  94037. 8025e6e: 4618 mov r0, r3
  94038. 8025e70: f7ea fcda bl 8010828 <osSemaphoreAcquire>
  94039. 8025e74: 4603 mov r3, r0
  94040. 8025e76: 2b00 cmp r3, #0
  94041. 8025e78: d105 bne.n 8025e86 <sys_arch_sem_wait+0x34>
  94042. {
  94043. return (osKernelGetTickCount() - starttime);
  94044. 8025e7a: f7ea fa6f bl 801035c <osKernelGetTickCount>
  94045. 8025e7e: 4602 mov r2, r0
  94046. 8025e80: 68fb ldr r3, [r7, #12]
  94047. 8025e82: 1ad3 subs r3, r2, r3
  94048. 8025e84: e012 b.n 8025eac <sys_arch_sem_wait+0x5a>
  94049. #endif
  94050. }
  94051. else
  94052. {
  94053. return SYS_ARCH_TIMEOUT;
  94054. 8025e86: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  94055. 8025e8a: e00f b.n 8025eac <sys_arch_sem_wait+0x5a>
  94056. {
  94057. #if (osCMSIS < 0x20000U)
  94058. while(osSemaphoreWait (*sem, osWaitForever) != osOK);
  94059. return (osKernelSysTick() - starttime);
  94060. #else
  94061. while(osSemaphoreAcquire(*sem, osWaitForever) != osOK);
  94062. 8025e8c: bf00 nop
  94063. 8025e8e: 687b ldr r3, [r7, #4]
  94064. 8025e90: 681b ldr r3, [r3, #0]
  94065. 8025e92: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  94066. 8025e96: 4618 mov r0, r3
  94067. 8025e98: f7ea fcc6 bl 8010828 <osSemaphoreAcquire>
  94068. 8025e9c: 4603 mov r3, r0
  94069. 8025e9e: 2b00 cmp r3, #0
  94070. 8025ea0: d1f5 bne.n 8025e8e <sys_arch_sem_wait+0x3c>
  94071. return (osKernelGetTickCount() - starttime);
  94072. 8025ea2: f7ea fa5b bl 801035c <osKernelGetTickCount>
  94073. 8025ea6: 4602 mov r2, r0
  94074. 8025ea8: 68fb ldr r3, [r7, #12]
  94075. 8025eaa: 1ad3 subs r3, r2, r3
  94076. #endif
  94077. }
  94078. }
  94079. 8025eac: 4618 mov r0, r3
  94080. 8025eae: 3710 adds r7, #16
  94081. 8025eb0: 46bd mov sp, r7
  94082. 8025eb2: bd80 pop {r7, pc}
  94083. 08025eb4 <sys_sem_signal>:
  94084. /*-----------------------------------------------------------------------------------*/
  94085. // Signals a semaphore
  94086. void sys_sem_signal(sys_sem_t *sem)
  94087. {
  94088. 8025eb4: b580 push {r7, lr}
  94089. 8025eb6: b082 sub sp, #8
  94090. 8025eb8: af00 add r7, sp, #0
  94091. 8025eba: 6078 str r0, [r7, #4]
  94092. osSemaphoreRelease(*sem);
  94093. 8025ebc: 687b ldr r3, [r7, #4]
  94094. 8025ebe: 681b ldr r3, [r3, #0]
  94095. 8025ec0: 4618 mov r0, r3
  94096. 8025ec2: f7ea fd03 bl 80108cc <osSemaphoreRelease>
  94097. }
  94098. 8025ec6: bf00 nop
  94099. 8025ec8: 3708 adds r7, #8
  94100. 8025eca: 46bd mov sp, r7
  94101. 8025ecc: bd80 pop {r7, pc}
  94102. 08025ece <sys_sem_free>:
  94103. /*-----------------------------------------------------------------------------------*/
  94104. // Deallocates a semaphore
  94105. void sys_sem_free(sys_sem_t *sem)
  94106. {
  94107. 8025ece: b580 push {r7, lr}
  94108. 8025ed0: b082 sub sp, #8
  94109. 8025ed2: af00 add r7, sp, #0
  94110. 8025ed4: 6078 str r0, [r7, #4]
  94111. #if SYS_STATS
  94112. --lwip_stats.sys.sem.used;
  94113. #endif /* SYS_STATS */
  94114. osSemaphoreDelete(*sem);
  94115. 8025ed6: 687b ldr r3, [r7, #4]
  94116. 8025ed8: 681b ldr r3, [r3, #0]
  94117. 8025eda: 4618 mov r0, r3
  94118. 8025edc: f7ea fd3a bl 8010954 <osSemaphoreDelete>
  94119. }
  94120. 8025ee0: bf00 nop
  94121. 8025ee2: 3708 adds r7, #8
  94122. 8025ee4: 46bd mov sp, r7
  94123. 8025ee6: bd80 pop {r7, pc}
  94124. 08025ee8 <sys_sem_valid>:
  94125. /*-----------------------------------------------------------------------------------*/
  94126. int sys_sem_valid(sys_sem_t *sem)
  94127. {
  94128. 8025ee8: b480 push {r7}
  94129. 8025eea: b083 sub sp, #12
  94130. 8025eec: af00 add r7, sp, #0
  94131. 8025eee: 6078 str r0, [r7, #4]
  94132. if (*sem == SYS_SEM_NULL)
  94133. 8025ef0: 687b ldr r3, [r7, #4]
  94134. 8025ef2: 681b ldr r3, [r3, #0]
  94135. 8025ef4: 2b00 cmp r3, #0
  94136. 8025ef6: d101 bne.n 8025efc <sys_sem_valid+0x14>
  94137. return 0;
  94138. 8025ef8: 2300 movs r3, #0
  94139. 8025efa: e000 b.n 8025efe <sys_sem_valid+0x16>
  94140. else
  94141. return 1;
  94142. 8025efc: 2301 movs r3, #1
  94143. }
  94144. 8025efe: 4618 mov r0, r3
  94145. 8025f00: 370c adds r7, #12
  94146. 8025f02: 46bd mov sp, r7
  94147. 8025f04: f85d 7b04 ldr.w r7, [sp], #4
  94148. 8025f08: 4770 bx lr
  94149. 08025f0a <sys_sem_set_invalid>:
  94150. /*-----------------------------------------------------------------------------------*/
  94151. void sys_sem_set_invalid(sys_sem_t *sem)
  94152. {
  94153. 8025f0a: b480 push {r7}
  94154. 8025f0c: b083 sub sp, #12
  94155. 8025f0e: af00 add r7, sp, #0
  94156. 8025f10: 6078 str r0, [r7, #4]
  94157. *sem = SYS_SEM_NULL;
  94158. 8025f12: 687b ldr r3, [r7, #4]
  94159. 8025f14: 2200 movs r2, #0
  94160. 8025f16: 601a str r2, [r3, #0]
  94161. }
  94162. 8025f18: bf00 nop
  94163. 8025f1a: 370c adds r7, #12
  94164. 8025f1c: 46bd mov sp, r7
  94165. 8025f1e: f85d 7b04 ldr.w r7, [sp], #4
  94166. 8025f22: 4770 bx lr
  94167. 08025f24 <sys_init>:
  94168. #else
  94169. osMutexId_t lwip_sys_mutex;
  94170. #endif
  94171. // Initialize sys arch
  94172. void sys_init(void)
  94173. {
  94174. 8025f24: b580 push {r7, lr}
  94175. 8025f26: af00 add r7, sp, #0
  94176. #if (osCMSIS < 0x20000U)
  94177. lwip_sys_mutex = osMutexCreate(osMutex(lwip_sys_mutex));
  94178. #else
  94179. lwip_sys_mutex = osMutexNew(NULL);
  94180. 8025f28: 2000 movs r0, #0
  94181. 8025f2a: f7ea fae5 bl 80104f8 <osMutexNew>
  94182. 8025f2e: 4603 mov r3, r0
  94183. 8025f30: 4a01 ldr r2, [pc, #4] @ (8025f38 <sys_init+0x14>)
  94184. 8025f32: 6013 str r3, [r2, #0]
  94185. #endif
  94186. }
  94187. 8025f34: bf00 nop
  94188. 8025f36: bd80 pop {r7, pc}
  94189. 8025f38: 2402a190 .word 0x2402a190
  94190. 08025f3c <sys_mutex_new>:
  94191. /* Mutexes*/
  94192. /*-----------------------------------------------------------------------------------*/
  94193. /*-----------------------------------------------------------------------------------*/
  94194. #if LWIP_COMPAT_MUTEX == 0
  94195. /* Create a new mutex*/
  94196. err_t sys_mutex_new(sys_mutex_t *mutex) {
  94197. 8025f3c: b580 push {r7, lr}
  94198. 8025f3e: b082 sub sp, #8
  94199. 8025f40: af00 add r7, sp, #0
  94200. 8025f42: 6078 str r0, [r7, #4]
  94201. #if (osCMSIS < 0x20000U)
  94202. osMutexDef(MUTEX);
  94203. *mutex = osMutexCreate(osMutex(MUTEX));
  94204. #else
  94205. *mutex = osMutexNew(NULL);
  94206. 8025f44: 2000 movs r0, #0
  94207. 8025f46: f7ea fad7 bl 80104f8 <osMutexNew>
  94208. 8025f4a: 4602 mov r2, r0
  94209. 8025f4c: 687b ldr r3, [r7, #4]
  94210. 8025f4e: 601a str r2, [r3, #0]
  94211. #endif
  94212. if(*mutex == NULL)
  94213. 8025f50: 687b ldr r3, [r7, #4]
  94214. 8025f52: 681b ldr r3, [r3, #0]
  94215. 8025f54: 2b00 cmp r3, #0
  94216. 8025f56: d102 bne.n 8025f5e <sys_mutex_new+0x22>
  94217. {
  94218. #if SYS_STATS
  94219. ++lwip_stats.sys.mutex.err;
  94220. #endif /* SYS_STATS */
  94221. return ERR_MEM;
  94222. 8025f58: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  94223. 8025f5c: e000 b.n 8025f60 <sys_mutex_new+0x24>
  94224. ++lwip_stats.sys.mutex.used;
  94225. if (lwip_stats.sys.mutex.max < lwip_stats.sys.mutex.used) {
  94226. lwip_stats.sys.mutex.max = lwip_stats.sys.mutex.used;
  94227. }
  94228. #endif /* SYS_STATS */
  94229. return ERR_OK;
  94230. 8025f5e: 2300 movs r3, #0
  94231. }
  94232. 8025f60: 4618 mov r0, r3
  94233. 8025f62: 3708 adds r7, #8
  94234. 8025f64: 46bd mov sp, r7
  94235. 8025f66: bd80 pop {r7, pc}
  94236. 08025f68 <sys_mutex_lock>:
  94237. osMutexDelete(*mutex);
  94238. }
  94239. /*-----------------------------------------------------------------------------------*/
  94240. /* Lock a mutex*/
  94241. void sys_mutex_lock(sys_mutex_t *mutex)
  94242. {
  94243. 8025f68: b580 push {r7, lr}
  94244. 8025f6a: b082 sub sp, #8
  94245. 8025f6c: af00 add r7, sp, #0
  94246. 8025f6e: 6078 str r0, [r7, #4]
  94247. #if (osCMSIS < 0x20000U)
  94248. osMutexWait(*mutex, osWaitForever);
  94249. #else
  94250. osMutexAcquire(*mutex, osWaitForever);
  94251. 8025f70: 687b ldr r3, [r7, #4]
  94252. 8025f72: 681b ldr r3, [r3, #0]
  94253. 8025f74: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  94254. 8025f78: 4618 mov r0, r3
  94255. 8025f7a: f7ea fb43 bl 8010604 <osMutexAcquire>
  94256. #endif
  94257. }
  94258. 8025f7e: bf00 nop
  94259. 8025f80: 3708 adds r7, #8
  94260. 8025f82: 46bd mov sp, r7
  94261. 8025f84: bd80 pop {r7, pc}
  94262. 08025f86 <sys_mutex_unlock>:
  94263. /*-----------------------------------------------------------------------------------*/
  94264. /* Unlock a mutex*/
  94265. void sys_mutex_unlock(sys_mutex_t *mutex)
  94266. {
  94267. 8025f86: b580 push {r7, lr}
  94268. 8025f88: b082 sub sp, #8
  94269. 8025f8a: af00 add r7, sp, #0
  94270. 8025f8c: 6078 str r0, [r7, #4]
  94271. osMutexRelease(*mutex);
  94272. 8025f8e: 687b ldr r3, [r7, #4]
  94273. 8025f90: 681b ldr r3, [r3, #0]
  94274. 8025f92: 4618 mov r0, r3
  94275. 8025f94: f7ea fb81 bl 801069a <osMutexRelease>
  94276. }
  94277. 8025f98: bf00 nop
  94278. 8025f9a: 3708 adds r7, #8
  94279. 8025f9c: 46bd mov sp, r7
  94280. 8025f9e: bd80 pop {r7, pc}
  94281. 08025fa0 <sys_thread_new>:
  94282. function "thread()". The "arg" argument will be passed as an argument to the
  94283. thread() function. The id of the new thread is returned. Both the id and
  94284. the priority are system dependent.
  94285. */
  94286. sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread , void *arg, int stacksize, int prio)
  94287. {
  94288. 8025fa0: b580 push {r7, lr}
  94289. 8025fa2: b08e sub sp, #56 @ 0x38
  94290. 8025fa4: af00 add r7, sp, #0
  94291. 8025fa6: 60f8 str r0, [r7, #12]
  94292. 8025fa8: 60b9 str r1, [r7, #8]
  94293. 8025faa: 607a str r2, [r7, #4]
  94294. 8025fac: 603b str r3, [r7, #0]
  94295. #if (osCMSIS < 0x20000U)
  94296. const osThreadDef_t os_thread_def = { (char *)name, (os_pthread)thread, (osPriority)prio, 0, stacksize};
  94297. return osThreadCreate(&os_thread_def, arg);
  94298. #else
  94299. const osThreadAttr_t attributes = {
  94300. 8025fae: f107 0314 add.w r3, r7, #20
  94301. 8025fb2: 2224 movs r2, #36 @ 0x24
  94302. 8025fb4: 2100 movs r1, #0
  94303. 8025fb6: 4618 mov r0, r3
  94304. 8025fb8: f003 fc3a bl 8029830 <memset>
  94305. 8025fbc: 68fb ldr r3, [r7, #12]
  94306. 8025fbe: 617b str r3, [r7, #20]
  94307. 8025fc0: 683b ldr r3, [r7, #0]
  94308. 8025fc2: 62bb str r3, [r7, #40] @ 0x28
  94309. 8025fc4: 6c3b ldr r3, [r7, #64] @ 0x40
  94310. 8025fc6: 62fb str r3, [r7, #44] @ 0x2c
  94311. .name = name,
  94312. .stack_size = stacksize,
  94313. .priority = (osPriority_t)prio,
  94314. };
  94315. return osThreadNew(thread, arg, &attributes);
  94316. 8025fc8: f107 0314 add.w r3, r7, #20
  94317. 8025fcc: 461a mov r2, r3
  94318. 8025fce: 6879 ldr r1, [r7, #4]
  94319. 8025fd0: 68b8 ldr r0, [r7, #8]
  94320. 8025fd2: f7ea f9d8 bl 8010386 <osThreadNew>
  94321. 8025fd6: 4603 mov r3, r0
  94322. #endif
  94323. }
  94324. 8025fd8: 4618 mov r0, r3
  94325. 8025fda: 3738 adds r7, #56 @ 0x38
  94326. 8025fdc: 46bd mov sp, r7
  94327. 8025fde: bd80 pop {r7, pc}
  94328. 08025fe0 <sys_arch_protect>:
  94329. Note: This function is based on FreeRTOS API, because no equivalent CMSIS-RTOS
  94330. API is available
  94331. */
  94332. sys_prot_t sys_arch_protect(void)
  94333. {
  94334. 8025fe0: b580 push {r7, lr}
  94335. 8025fe2: af00 add r7, sp, #0
  94336. #if (osCMSIS < 0x20000U)
  94337. osMutexWait(lwip_sys_mutex, osWaitForever);
  94338. #else
  94339. osMutexAcquire(lwip_sys_mutex, osWaitForever);
  94340. 8025fe4: 4b04 ldr r3, [pc, #16] @ (8025ff8 <sys_arch_protect+0x18>)
  94341. 8025fe6: 681b ldr r3, [r3, #0]
  94342. 8025fe8: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  94343. 8025fec: 4618 mov r0, r3
  94344. 8025fee: f7ea fb09 bl 8010604 <osMutexAcquire>
  94345. #endif
  94346. return (sys_prot_t)1;
  94347. 8025ff2: 2301 movs r3, #1
  94348. }
  94349. 8025ff4: 4618 mov r0, r3
  94350. 8025ff6: bd80 pop {r7, pc}
  94351. 8025ff8: 2402a190 .word 0x2402a190
  94352. 08025ffc <sys_arch_unprotect>:
  94353. Note: This function is based on FreeRTOS API, because no equivalent CMSIS-RTOS
  94354. API is available
  94355. */
  94356. void sys_arch_unprotect(sys_prot_t pval)
  94357. {
  94358. 8025ffc: b580 push {r7, lr}
  94359. 8025ffe: b082 sub sp, #8
  94360. 8026000: af00 add r7, sp, #0
  94361. 8026002: 6078 str r0, [r7, #4]
  94362. ( void ) pval;
  94363. osMutexRelease(lwip_sys_mutex);
  94364. 8026004: 4b04 ldr r3, [pc, #16] @ (8026018 <sys_arch_unprotect+0x1c>)
  94365. 8026006: 681b ldr r3, [r3, #0]
  94366. 8026008: 4618 mov r0, r3
  94367. 802600a: f7ea fb46 bl 801069a <osMutexRelease>
  94368. }
  94369. 802600e: bf00 nop
  94370. 8026010: 3708 adds r7, #8
  94371. 8026012: 46bd mov sp, r7
  94372. 8026014: bd80 pop {r7, pc}
  94373. 8026016: bf00 nop
  94374. 8026018: 2402a190 .word 0x2402a190
  94375. 0802601c <NewMessageData>:
  94376. #include <string.h>
  94377. //#include "cmsis_os.h"
  94378. osMutexId_t mqttMutex;
  94379. static void NewMessageData(MessageData* md, MQTTString* aTopicName, MQTTMessage* aMessage) {
  94380. 802601c: b480 push {r7}
  94381. 802601e: b085 sub sp, #20
  94382. 8026020: af00 add r7, sp, #0
  94383. 8026022: 60f8 str r0, [r7, #12]
  94384. 8026024: 60b9 str r1, [r7, #8]
  94385. 8026026: 607a str r2, [r7, #4]
  94386. md->topicName = aTopicName;
  94387. 8026028: 68fb ldr r3, [r7, #12]
  94388. 802602a: 68ba ldr r2, [r7, #8]
  94389. 802602c: 605a str r2, [r3, #4]
  94390. md->message = aMessage;
  94391. 802602e: 68fb ldr r3, [r7, #12]
  94392. 8026030: 687a ldr r2, [r7, #4]
  94393. 8026032: 601a str r2, [r3, #0]
  94394. }
  94395. 8026034: bf00 nop
  94396. 8026036: 3714 adds r7, #20
  94397. 8026038: 46bd mov sp, r7
  94398. 802603a: f85d 7b04 ldr.w r7, [sp], #4
  94399. 802603e: 4770 bx lr
  94400. 08026040 <getNextPacketId>:
  94401. static int getNextPacketId(MQTTClient *c) {
  94402. 8026040: b480 push {r7}
  94403. 8026042: b083 sub sp, #12
  94404. 8026044: af00 add r7, sp, #0
  94405. 8026046: 6078 str r0, [r7, #4]
  94406. return c->next_packetid = (c->next_packetid == MAX_PACKET_ID) ? 1 : c->next_packetid + 1;
  94407. 8026048: 687b ldr r3, [r7, #4]
  94408. 802604a: 681b ldr r3, [r3, #0]
  94409. 802604c: f64f 72ff movw r2, #65535 @ 0xffff
  94410. 8026050: 4293 cmp r3, r2
  94411. 8026052: d003 beq.n 802605c <getNextPacketId+0x1c>
  94412. 8026054: 687b ldr r3, [r7, #4]
  94413. 8026056: 681b ldr r3, [r3, #0]
  94414. 8026058: 3301 adds r3, #1
  94415. 802605a: e000 b.n 802605e <getNextPacketId+0x1e>
  94416. 802605c: 2301 movs r3, #1
  94417. 802605e: 687a ldr r2, [r7, #4]
  94418. 8026060: 6013 str r3, [r2, #0]
  94419. 8026062: 687b ldr r3, [r7, #4]
  94420. 8026064: 681b ldr r3, [r3, #0]
  94421. }
  94422. 8026066: 4618 mov r0, r3
  94423. 8026068: 370c adds r7, #12
  94424. 802606a: 46bd mov sp, r7
  94425. 802606c: f85d 7b04 ldr.w r7, [sp], #4
  94426. 8026070: 4770 bx lr
  94427. 08026072 <sendPacket>:
  94428. static int sendPacket(MQTTClient* c, int length, Timer* timer)
  94429. {
  94430. 8026072: b5f0 push {r4, r5, r6, r7, lr}
  94431. 8026074: b087 sub sp, #28
  94432. 8026076: af00 add r7, sp, #0
  94433. 8026078: 60f8 str r0, [r7, #12]
  94434. 802607a: 60b9 str r1, [r7, #8]
  94435. 802607c: 607a str r2, [r7, #4]
  94436. int rc = FAILURE,
  94437. 802607e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  94438. 8026082: 617b str r3, [r7, #20]
  94439. sent = 0;
  94440. 8026084: 2300 movs r3, #0
  94441. 8026086: 613b str r3, [r7, #16]
  94442. while (sent < length && !TimerIsExpired(timer))
  94443. 8026088: e018 b.n 80260bc <sendPacket+0x4a>
  94444. {
  94445. rc = c->ipstack->mqttwrite(c->ipstack, &c->buf[sent], length, TimerLeftMS(timer));
  94446. 802608a: 68fb ldr r3, [r7, #12]
  94447. 802608c: 6d5b ldr r3, [r3, #84] @ 0x54
  94448. 802608e: 689c ldr r4, [r3, #8]
  94449. 8026090: 68fb ldr r3, [r7, #12]
  94450. 8026092: 6d5d ldr r5, [r3, #84] @ 0x54
  94451. 8026094: 68fb ldr r3, [r7, #12]
  94452. 8026096: 691a ldr r2, [r3, #16]
  94453. 8026098: 693b ldr r3, [r7, #16]
  94454. 802609a: 18d6 adds r6, r2, r3
  94455. 802609c: 6878 ldr r0, [r7, #4]
  94456. 802609e: f000 fed3 bl 8026e48 <TimerLeftMS>
  94457. 80260a2: 4603 mov r3, r0
  94458. 80260a4: 68ba ldr r2, [r7, #8]
  94459. 80260a6: 4631 mov r1, r6
  94460. 80260a8: 4628 mov r0, r5
  94461. 80260aa: 47a0 blx r4
  94462. 80260ac: 6178 str r0, [r7, #20]
  94463. if (rc < 0) // there was an error writing the data
  94464. 80260ae: 697b ldr r3, [r7, #20]
  94465. 80260b0: 2b00 cmp r3, #0
  94466. 80260b2: db0e blt.n 80260d2 <sendPacket+0x60>
  94467. break;
  94468. sent += rc;
  94469. 80260b4: 693a ldr r2, [r7, #16]
  94470. 80260b6: 697b ldr r3, [r7, #20]
  94471. 80260b8: 4413 add r3, r2
  94472. 80260ba: 613b str r3, [r7, #16]
  94473. while (sent < length && !TimerIsExpired(timer))
  94474. 80260bc: 693a ldr r2, [r7, #16]
  94475. 80260be: 68bb ldr r3, [r7, #8]
  94476. 80260c0: 429a cmp r2, r3
  94477. 80260c2: da07 bge.n 80260d4 <sendPacket+0x62>
  94478. 80260c4: 6878 ldr r0, [r7, #4]
  94479. 80260c6: f000 fe7d bl 8026dc4 <TimerIsExpired>
  94480. 80260ca: 4603 mov r3, r0
  94481. 80260cc: 2b00 cmp r3, #0
  94482. 80260ce: d0dc beq.n 802608a <sendPacket+0x18>
  94483. 80260d0: e000 b.n 80260d4 <sendPacket+0x62>
  94484. break;
  94485. 80260d2: bf00 nop
  94486. }
  94487. if (sent == length)
  94488. 80260d4: 693a ldr r2, [r7, #16]
  94489. 80260d6: 68bb ldr r3, [r7, #8]
  94490. 80260d8: 429a cmp r2, r3
  94491. 80260da: d10b bne.n 80260f4 <sendPacket+0x82>
  94492. {
  94493. TimerCountdown(&c->last_sent, c->keepAliveInterval); // record the fact that we have MQTT_SUCCESSfully sent the packet
  94494. 80260dc: 68fb ldr r3, [r7, #12]
  94495. 80260de: f103 0258 add.w r2, r3, #88 @ 0x58
  94496. 80260e2: 68fb ldr r3, [r7, #12]
  94497. 80260e4: 699b ldr r3, [r3, #24]
  94498. 80260e6: 4619 mov r1, r3
  94499. 80260e8: 4610 mov r0, r2
  94500. 80260ea: f000 fe95 bl 8026e18 <TimerCountdown>
  94501. rc = MQTT_SUCCESS;
  94502. 80260ee: 2300 movs r3, #0
  94503. 80260f0: 617b str r3, [r7, #20]
  94504. 80260f2: e002 b.n 80260fa <sendPacket+0x88>
  94505. }
  94506. else
  94507. rc = FAILURE;
  94508. 80260f4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  94509. 80260f8: 617b str r3, [r7, #20]
  94510. return rc;
  94511. 80260fa: 697b ldr r3, [r7, #20]
  94512. }
  94513. 80260fc: 4618 mov r0, r3
  94514. 80260fe: 371c adds r7, #28
  94515. 8026100: 46bd mov sp, r7
  94516. 8026102: bdf0 pop {r4, r5, r6, r7, pc}
  94517. 08026104 <MQTTClientInit>:
  94518. void MQTTClientInit(MQTTClient* c, Network* network, unsigned int command_timeout_ms,
  94519. unsigned char* sendbuf, size_t sendbuf_size, unsigned char* readbuf, size_t readbuf_size)
  94520. {
  94521. 8026104: b580 push {r7, lr}
  94522. 8026106: b086 sub sp, #24
  94523. 8026108: af00 add r7, sp, #0
  94524. 802610a: 60f8 str r0, [r7, #12]
  94525. 802610c: 60b9 str r1, [r7, #8]
  94526. 802610e: 607a str r2, [r7, #4]
  94527. 8026110: 603b str r3, [r7, #0]
  94528. int i;
  94529. c->ipstack = network;
  94530. 8026112: 68fb ldr r3, [r7, #12]
  94531. 8026114: 68ba ldr r2, [r7, #8]
  94532. 8026116: 655a str r2, [r3, #84] @ 0x54
  94533. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  94534. 8026118: 2300 movs r3, #0
  94535. 802611a: 617b str r3, [r7, #20]
  94536. 802611c: e008 b.n 8026130 <MQTTClientInit+0x2c>
  94537. c->messageHandlers[i].topicFilter = 0;
  94538. 802611e: 68fb ldr r3, [r7, #12]
  94539. 8026120: 697a ldr r2, [r7, #20]
  94540. 8026122: 3205 adds r2, #5
  94541. 8026124: 2100 movs r1, #0
  94542. 8026126: f843 1032 str.w r1, [r3, r2, lsl #3]
  94543. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  94544. 802612a: 697b ldr r3, [r7, #20]
  94545. 802612c: 3301 adds r3, #1
  94546. 802612e: 617b str r3, [r7, #20]
  94547. 8026130: 697b ldr r3, [r7, #20]
  94548. 8026132: 2b04 cmp r3, #4
  94549. 8026134: ddf3 ble.n 802611e <MQTTClientInit+0x1a>
  94550. c->command_timeout_ms = command_timeout_ms;
  94551. 8026136: 68fb ldr r3, [r7, #12]
  94552. 8026138: 687a ldr r2, [r7, #4]
  94553. 802613a: 605a str r2, [r3, #4]
  94554. c->buf = sendbuf;
  94555. 802613c: 68fb ldr r3, [r7, #12]
  94556. 802613e: 683a ldr r2, [r7, #0]
  94557. 8026140: 611a str r2, [r3, #16]
  94558. c->buf_size = sendbuf_size;
  94559. 8026142: 68fb ldr r3, [r7, #12]
  94560. 8026144: 6a3a ldr r2, [r7, #32]
  94561. 8026146: 609a str r2, [r3, #8]
  94562. c->readbuf = readbuf;
  94563. 8026148: 68fb ldr r3, [r7, #12]
  94564. 802614a: 6a7a ldr r2, [r7, #36] @ 0x24
  94565. 802614c: 615a str r2, [r3, #20]
  94566. c->readbuf_size = readbuf_size;
  94567. 802614e: 68fb ldr r3, [r7, #12]
  94568. 8026150: 6aba ldr r2, [r7, #40] @ 0x28
  94569. 8026152: 60da str r2, [r3, #12]
  94570. c->isconnected = 0;
  94571. 8026154: 68fb ldr r3, [r7, #12]
  94572. 8026156: 2200 movs r2, #0
  94573. 8026158: 621a str r2, [r3, #32]
  94574. c->cleansession = 0;
  94575. 802615a: 68fb ldr r3, [r7, #12]
  94576. 802615c: 2200 movs r2, #0
  94577. 802615e: 625a str r2, [r3, #36] @ 0x24
  94578. c->ping_outstanding = 0;
  94579. 8026160: 68fb ldr r3, [r7, #12]
  94580. 8026162: 2200 movs r2, #0
  94581. 8026164: 771a strb r2, [r3, #28]
  94582. c->defaultMessageHandler = NULL;
  94583. 8026166: 68fb ldr r3, [r7, #12]
  94584. 8026168: 2200 movs r2, #0
  94585. 802616a: 651a str r2, [r3, #80] @ 0x50
  94586. c->next_packetid = 1;
  94587. 802616c: 68fb ldr r3, [r7, #12]
  94588. 802616e: 2201 movs r2, #1
  94589. 8026170: 601a str r2, [r3, #0]
  94590. TimerInit(&c->last_sent);
  94591. 8026172: 68fb ldr r3, [r7, #12]
  94592. 8026174: 3358 adds r3, #88 @ 0x58
  94593. 8026176: 4618 mov r0, r3
  94594. 8026178: f000 fe7c bl 8026e74 <TimerInit>
  94595. TimerInit(&c->last_received);
  94596. 802617c: 68fb ldr r3, [r7, #12]
  94597. 802617e: 3360 adds r3, #96 @ 0x60
  94598. 8026180: 4618 mov r0, r3
  94599. 8026182: f000 fe77 bl 8026e74 <TimerInit>
  94600. #if defined(MQTT_TASK)
  94601. MutexInit(&c->mutex);
  94602. #endif
  94603. if(mqttMutex == NULL)
  94604. 8026186: 4b07 ldr r3, [pc, #28] @ (80261a4 <MQTTClientInit+0xa0>)
  94605. 8026188: 681b ldr r3, [r3, #0]
  94606. 802618a: 2b00 cmp r3, #0
  94607. 802618c: d105 bne.n 802619a <MQTTClientInit+0x96>
  94608. {
  94609. // osMutexDef(mqttMutex);
  94610. // mqttMutex = osMutexNew(NULL);
  94611. c->mutex = osMutexNew(NULL);
  94612. 802618e: 2000 movs r0, #0
  94613. 8026190: f7ea f9b2 bl 80104f8 <osMutexNew>
  94614. 8026194: 4602 mov r2, r0
  94615. 8026196: 68fb ldr r3, [r7, #12]
  94616. 8026198: 669a str r2, [r3, #104] @ 0x68
  94617. }
  94618. }
  94619. 802619a: bf00 nop
  94620. 802619c: 3718 adds r7, #24
  94621. 802619e: 46bd mov sp, r7
  94622. 80261a0: bd80 pop {r7, pc}
  94623. 80261a2: bf00 nop
  94624. 80261a4: 2402a194 .word 0x2402a194
  94625. 080261a8 <decodePacket>:
  94626. static int decodePacket(MQTTClient* c, int* value, int timeout)
  94627. {
  94628. 80261a8: b590 push {r4, r7, lr}
  94629. 80261aa: b08b sub sp, #44 @ 0x2c
  94630. 80261ac: af00 add r7, sp, #0
  94631. 80261ae: 60f8 str r0, [r7, #12]
  94632. 80261b0: 60b9 str r1, [r7, #8]
  94633. 80261b2: 607a str r2, [r7, #4]
  94634. unsigned char i;
  94635. int multiplier = 1;
  94636. 80261b4: 2301 movs r3, #1
  94637. 80261b6: 627b str r3, [r7, #36] @ 0x24
  94638. int len = 0;
  94639. 80261b8: 2300 movs r3, #0
  94640. 80261ba: 623b str r3, [r7, #32]
  94641. const int MAX_NO_OF_REMAINING_LENGTH_BYTES = 4;
  94642. 80261bc: 2304 movs r3, #4
  94643. 80261be: 61fb str r3, [r7, #28]
  94644. *value = 0;
  94645. 80261c0: 68bb ldr r3, [r7, #8]
  94646. 80261c2: 2200 movs r2, #0
  94647. 80261c4: 601a str r2, [r3, #0]
  94648. do
  94649. {
  94650. int rc = MQTTPACKET_READ_ERROR;
  94651. 80261c6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  94652. 80261ca: 61bb str r3, [r7, #24]
  94653. if (++len > MAX_NO_OF_REMAINING_LENGTH_BYTES)
  94654. 80261cc: 6a3b ldr r3, [r7, #32]
  94655. 80261ce: 3301 adds r3, #1
  94656. 80261d0: 623b str r3, [r7, #32]
  94657. 80261d2: 6a3a ldr r2, [r7, #32]
  94658. 80261d4: 69fb ldr r3, [r7, #28]
  94659. 80261d6: 429a cmp r2, r3
  94660. 80261d8: dd03 ble.n 80261e2 <decodePacket+0x3a>
  94661. {
  94662. rc = MQTTPACKET_READ_ERROR; /* bad data */
  94663. 80261da: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  94664. 80261de: 61bb str r3, [r7, #24]
  94665. goto exit;
  94666. 80261e0: e021 b.n 8026226 <decodePacket+0x7e>
  94667. }
  94668. rc = c->ipstack->mqttread(c->ipstack, &i, 1, timeout);
  94669. 80261e2: 68fb ldr r3, [r7, #12]
  94670. 80261e4: 6d5b ldr r3, [r3, #84] @ 0x54
  94671. 80261e6: 685c ldr r4, [r3, #4]
  94672. 80261e8: 68fb ldr r3, [r7, #12]
  94673. 80261ea: 6d58 ldr r0, [r3, #84] @ 0x54
  94674. 80261ec: f107 0117 add.w r1, r7, #23
  94675. 80261f0: 687b ldr r3, [r7, #4]
  94676. 80261f2: 2201 movs r2, #1
  94677. 80261f4: 47a0 blx r4
  94678. 80261f6: 61b8 str r0, [r7, #24]
  94679. if (rc != 1)
  94680. 80261f8: 69bb ldr r3, [r7, #24]
  94681. 80261fa: 2b01 cmp r3, #1
  94682. 80261fc: d112 bne.n 8026224 <decodePacket+0x7c>
  94683. goto exit;
  94684. *value += (i & 127) * multiplier;
  94685. 80261fe: 68bb ldr r3, [r7, #8]
  94686. 8026200: 681a ldr r2, [r3, #0]
  94687. 8026202: 7dfb ldrb r3, [r7, #23]
  94688. 8026204: f003 037f and.w r3, r3, #127 @ 0x7f
  94689. 8026208: 6a79 ldr r1, [r7, #36] @ 0x24
  94690. 802620a: fb01 f303 mul.w r3, r1, r3
  94691. 802620e: 441a add r2, r3
  94692. 8026210: 68bb ldr r3, [r7, #8]
  94693. 8026212: 601a str r2, [r3, #0]
  94694. multiplier *= 128;
  94695. 8026214: 6a7b ldr r3, [r7, #36] @ 0x24
  94696. 8026216: 01db lsls r3, r3, #7
  94697. 8026218: 627b str r3, [r7, #36] @ 0x24
  94698. } while ((i & 128) != 0);
  94699. 802621a: 7dfb ldrb r3, [r7, #23]
  94700. 802621c: b25b sxtb r3, r3
  94701. 802621e: 2b00 cmp r3, #0
  94702. 8026220: dbd1 blt.n 80261c6 <decodePacket+0x1e>
  94703. exit:
  94704. 8026222: e000 b.n 8026226 <decodePacket+0x7e>
  94705. goto exit;
  94706. 8026224: bf00 nop
  94707. return len;
  94708. 8026226: 6a3b ldr r3, [r7, #32]
  94709. }
  94710. 8026228: 4618 mov r0, r3
  94711. 802622a: 372c adds r7, #44 @ 0x2c
  94712. 802622c: 46bd mov sp, r7
  94713. 802622e: bd90 pop {r4, r7, pc}
  94714. 08026230 <readPacket>:
  94715. static int readPacket(MQTTClient* c, Timer* timer)
  94716. {
  94717. 8026230: b5f0 push {r4, r5, r6, r7, lr}
  94718. 8026232: b089 sub sp, #36 @ 0x24
  94719. 8026234: af00 add r7, sp, #0
  94720. 8026236: 60f8 str r0, [r7, #12]
  94721. 8026238: 60b9 str r1, [r7, #8]
  94722. MQTTHeader header = {0};
  94723. 802623a: 2300 movs r3, #0
  94724. 802623c: 617b str r3, [r7, #20]
  94725. int len = 0;
  94726. 802623e: 2300 movs r3, #0
  94727. 8026240: 61bb str r3, [r7, #24]
  94728. int rem_len = 0;
  94729. 8026242: 2300 movs r3, #0
  94730. 8026244: 613b str r3, [r7, #16]
  94731. /* 1. read the header byte. This has the packet type in it */
  94732. int rc = c->ipstack->mqttread(c->ipstack, c->readbuf, 1, TimerLeftMS(timer));
  94733. 8026246: 68fb ldr r3, [r7, #12]
  94734. 8026248: 6d5b ldr r3, [r3, #84] @ 0x54
  94735. 802624a: 685c ldr r4, [r3, #4]
  94736. 802624c: 68fb ldr r3, [r7, #12]
  94737. 802624e: 6d5d ldr r5, [r3, #84] @ 0x54
  94738. 8026250: 68fb ldr r3, [r7, #12]
  94739. 8026252: 695e ldr r6, [r3, #20]
  94740. 8026254: 68b8 ldr r0, [r7, #8]
  94741. 8026256: f000 fdf7 bl 8026e48 <TimerLeftMS>
  94742. 802625a: 4603 mov r3, r0
  94743. 802625c: 2201 movs r2, #1
  94744. 802625e: 4631 mov r1, r6
  94745. 8026260: 4628 mov r0, r5
  94746. 8026262: 47a0 blx r4
  94747. 8026264: 61f8 str r0, [r7, #28]
  94748. if (rc != 1)
  94749. 8026266: 69fb ldr r3, [r7, #28]
  94750. 8026268: 2b01 cmp r3, #1
  94751. 802626a: d15d bne.n 8026328 <readPacket+0xf8>
  94752. goto exit;
  94753. len = 1;
  94754. 802626c: 2301 movs r3, #1
  94755. 802626e: 61bb str r3, [r7, #24]
  94756. /* 2. read the remaining length. This is variable in itself */
  94757. decodePacket(c, &rem_len, TimerLeftMS(timer));
  94758. 8026270: 68b8 ldr r0, [r7, #8]
  94759. 8026272: f000 fde9 bl 8026e48 <TimerLeftMS>
  94760. 8026276: 4602 mov r2, r0
  94761. 8026278: f107 0310 add.w r3, r7, #16
  94762. 802627c: 4619 mov r1, r3
  94763. 802627e: 68f8 ldr r0, [r7, #12]
  94764. 8026280: f7ff ff92 bl 80261a8 <decodePacket>
  94765. len += MQTTPacket_encode(c->readbuf + 1, rem_len); /* put the original remaining length back into the buffer */
  94766. 8026284: 68fb ldr r3, [r7, #12]
  94767. 8026286: 695b ldr r3, [r3, #20]
  94768. 8026288: 3301 adds r3, #1
  94769. 802628a: 693a ldr r2, [r7, #16]
  94770. 802628c: 4611 mov r1, r2
  94771. 802628e: 4618 mov r0, r3
  94772. 8026290: f001 f959 bl 8027546 <MQTTPacket_encode>
  94773. 8026294: 4602 mov r2, r0
  94774. 8026296: 69bb ldr r3, [r7, #24]
  94775. 8026298: 4413 add r3, r2
  94776. 802629a: 61bb str r3, [r7, #24]
  94777. if (rem_len > (c->readbuf_size - len))
  94778. 802629c: 68fb ldr r3, [r7, #12]
  94779. 802629e: 68da ldr r2, [r3, #12]
  94780. 80262a0: 69bb ldr r3, [r7, #24]
  94781. 80262a2: 1ad3 subs r3, r2, r3
  94782. 80262a4: 693a ldr r2, [r7, #16]
  94783. 80262a6: 4293 cmp r3, r2
  94784. 80262a8: d203 bcs.n 80262b2 <readPacket+0x82>
  94785. {
  94786. rc = BUFFER_OVERFLOW;
  94787. 80262aa: f06f 0301 mvn.w r3, #1
  94788. 80262ae: 61fb str r3, [r7, #28]
  94789. goto exit;
  94790. 80262b0: e03d b.n 802632e <readPacket+0xfe>
  94791. }
  94792. /* 3. read the rest of the buffer using a callback to supply the rest of the data */
  94793. if (rem_len > 0 && (rc = c->ipstack->mqttread(c->ipstack, c->readbuf + len, rem_len, TimerLeftMS(timer)) != rem_len)) {
  94794. 80262b2: 693b ldr r3, [r7, #16]
  94795. 80262b4: 2b00 cmp r3, #0
  94796. 80262b6: dd20 ble.n 80262fa <readPacket+0xca>
  94797. 80262b8: 68fb ldr r3, [r7, #12]
  94798. 80262ba: 6d5b ldr r3, [r3, #84] @ 0x54
  94799. 80262bc: 685c ldr r4, [r3, #4]
  94800. 80262be: 68fb ldr r3, [r7, #12]
  94801. 80262c0: 6d5d ldr r5, [r3, #84] @ 0x54
  94802. 80262c2: 68fb ldr r3, [r7, #12]
  94803. 80262c4: 695a ldr r2, [r3, #20]
  94804. 80262c6: 69bb ldr r3, [r7, #24]
  94805. 80262c8: 18d6 adds r6, r2, r3
  94806. 80262ca: 693b ldr r3, [r7, #16]
  94807. 80262cc: 607b str r3, [r7, #4]
  94808. 80262ce: 68b8 ldr r0, [r7, #8]
  94809. 80262d0: f000 fdba bl 8026e48 <TimerLeftMS>
  94810. 80262d4: 4603 mov r3, r0
  94811. 80262d6: 687a ldr r2, [r7, #4]
  94812. 80262d8: 4631 mov r1, r6
  94813. 80262da: 4628 mov r0, r5
  94814. 80262dc: 47a0 blx r4
  94815. 80262de: 4602 mov r2, r0
  94816. 80262e0: 693b ldr r3, [r7, #16]
  94817. 80262e2: 429a cmp r2, r3
  94818. 80262e4: bf14 ite ne
  94819. 80262e6: 2301 movne r3, #1
  94820. 80262e8: 2300 moveq r3, #0
  94821. 80262ea: b2db uxtb r3, r3
  94822. 80262ec: 61fb str r3, [r7, #28]
  94823. 80262ee: 69fb ldr r3, [r7, #28]
  94824. 80262f0: 2b00 cmp r3, #0
  94825. 80262f2: d002 beq.n 80262fa <readPacket+0xca>
  94826. rc = 0;
  94827. 80262f4: 2300 movs r3, #0
  94828. 80262f6: 61fb str r3, [r7, #28]
  94829. goto exit;
  94830. 80262f8: e019 b.n 802632e <readPacket+0xfe>
  94831. }
  94832. header.byte = c->readbuf[0];
  94833. 80262fa: 68fb ldr r3, [r7, #12]
  94834. 80262fc: 695b ldr r3, [r3, #20]
  94835. 80262fe: 781b ldrb r3, [r3, #0]
  94836. 8026300: 753b strb r3, [r7, #20]
  94837. rc = header.bits.type;
  94838. 8026302: 7d3b ldrb r3, [r7, #20]
  94839. 8026304: f3c3 1303 ubfx r3, r3, #4, #4
  94840. 8026308: b2db uxtb r3, r3
  94841. 802630a: 61fb str r3, [r7, #28]
  94842. if (c->keepAliveInterval > 0)
  94843. 802630c: 68fb ldr r3, [r7, #12]
  94844. 802630e: 699b ldr r3, [r3, #24]
  94845. 8026310: 2b00 cmp r3, #0
  94846. 8026312: d00b beq.n 802632c <readPacket+0xfc>
  94847. TimerCountdown(&c->last_received, c->keepAliveInterval); // record the fact that we have MQTT_SUCCESSfully received a packet
  94848. 8026314: 68fb ldr r3, [r7, #12]
  94849. 8026316: f103 0260 add.w r2, r3, #96 @ 0x60
  94850. 802631a: 68fb ldr r3, [r7, #12]
  94851. 802631c: 699b ldr r3, [r3, #24]
  94852. 802631e: 4619 mov r1, r3
  94853. 8026320: 4610 mov r0, r2
  94854. 8026322: f000 fd79 bl 8026e18 <TimerCountdown>
  94855. 8026326: e002 b.n 802632e <readPacket+0xfe>
  94856. goto exit;
  94857. 8026328: bf00 nop
  94858. 802632a: e000 b.n 802632e <readPacket+0xfe>
  94859. exit:
  94860. 802632c: bf00 nop
  94861. return rc;
  94862. 802632e: 69fb ldr r3, [r7, #28]
  94863. }
  94864. 8026330: 4618 mov r0, r3
  94865. 8026332: 3724 adds r7, #36 @ 0x24
  94866. 8026334: 46bd mov sp, r7
  94867. 8026336: bdf0 pop {r4, r5, r6, r7, pc}
  94868. 08026338 <isTopicMatched>:
  94869. // assume topic filter and name is in correct format
  94870. // # can only be at end
  94871. // + and # can only be next to separator
  94872. static char isTopicMatched(char* topicFilter, MQTTString* topicName)
  94873. {
  94874. 8026338: b480 push {r7}
  94875. 802633a: b087 sub sp, #28
  94876. 802633c: af00 add r7, sp, #0
  94877. 802633e: 6078 str r0, [r7, #4]
  94878. 8026340: 6039 str r1, [r7, #0]
  94879. char* curf = topicFilter;
  94880. 8026342: 687b ldr r3, [r7, #4]
  94881. 8026344: 617b str r3, [r7, #20]
  94882. char* curn = topicName->lenstring.data;
  94883. 8026346: 683b ldr r3, [r7, #0]
  94884. 8026348: 689b ldr r3, [r3, #8]
  94885. 802634a: 613b str r3, [r7, #16]
  94886. char* curn_end = curn + topicName->lenstring.len;
  94887. 802634c: 683b ldr r3, [r7, #0]
  94888. 802634e: 685b ldr r3, [r3, #4]
  94889. 8026350: 461a mov r2, r3
  94890. 8026352: 693b ldr r3, [r7, #16]
  94891. 8026354: 4413 add r3, r2
  94892. 8026356: 60bb str r3, [r7, #8]
  94893. while (*curf && curn < curn_end)
  94894. 8026358: e039 b.n 80263ce <isTopicMatched+0x96>
  94895. {
  94896. if (*curn == '/' && *curf != '/')
  94897. 802635a: 693b ldr r3, [r7, #16]
  94898. 802635c: 781b ldrb r3, [r3, #0]
  94899. 802635e: 2b2f cmp r3, #47 @ 0x2f
  94900. 8026360: d103 bne.n 802636a <isTopicMatched+0x32>
  94901. 8026362: 697b ldr r3, [r7, #20]
  94902. 8026364: 781b ldrb r3, [r3, #0]
  94903. 8026366: 2b2f cmp r3, #47 @ 0x2f
  94904. 8026368: d13a bne.n 80263e0 <isTopicMatched+0xa8>
  94905. break;
  94906. if (*curf != '+' && *curf != '#' && *curf != *curn)
  94907. 802636a: 697b ldr r3, [r7, #20]
  94908. 802636c: 781b ldrb r3, [r3, #0]
  94909. 802636e: 2b2b cmp r3, #43 @ 0x2b
  94910. 8026370: d009 beq.n 8026386 <isTopicMatched+0x4e>
  94911. 8026372: 697b ldr r3, [r7, #20]
  94912. 8026374: 781b ldrb r3, [r3, #0]
  94913. 8026376: 2b23 cmp r3, #35 @ 0x23
  94914. 8026378: d005 beq.n 8026386 <isTopicMatched+0x4e>
  94915. 802637a: 697b ldr r3, [r7, #20]
  94916. 802637c: 781a ldrb r2, [r3, #0]
  94917. 802637e: 693b ldr r3, [r7, #16]
  94918. 8026380: 781b ldrb r3, [r3, #0]
  94919. 8026382: 429a cmp r2, r3
  94920. 8026384: d12e bne.n 80263e4 <isTopicMatched+0xac>
  94921. break;
  94922. if (*curf == '+')
  94923. 8026386: 697b ldr r3, [r7, #20]
  94924. 8026388: 781b ldrb r3, [r3, #0]
  94925. 802638a: 2b2b cmp r3, #43 @ 0x2b
  94926. 802638c: d112 bne.n 80263b4 <isTopicMatched+0x7c>
  94927. { // skip until we meet the next separator, or end of string
  94928. char* nextpos = curn + 1;
  94929. 802638e: 693b ldr r3, [r7, #16]
  94930. 8026390: 3301 adds r3, #1
  94931. 8026392: 60fb str r3, [r7, #12]
  94932. while (nextpos < curn_end && *nextpos != '/')
  94933. 8026394: e005 b.n 80263a2 <isTopicMatched+0x6a>
  94934. nextpos = ++curn + 1;
  94935. 8026396: 693b ldr r3, [r7, #16]
  94936. 8026398: 3301 adds r3, #1
  94937. 802639a: 613b str r3, [r7, #16]
  94938. 802639c: 693b ldr r3, [r7, #16]
  94939. 802639e: 3301 adds r3, #1
  94940. 80263a0: 60fb str r3, [r7, #12]
  94941. while (nextpos < curn_end && *nextpos != '/')
  94942. 80263a2: 68fa ldr r2, [r7, #12]
  94943. 80263a4: 68bb ldr r3, [r7, #8]
  94944. 80263a6: 429a cmp r2, r3
  94945. 80263a8: d20b bcs.n 80263c2 <isTopicMatched+0x8a>
  94946. 80263aa: 68fb ldr r3, [r7, #12]
  94947. 80263ac: 781b ldrb r3, [r3, #0]
  94948. 80263ae: 2b2f cmp r3, #47 @ 0x2f
  94949. 80263b0: d1f1 bne.n 8026396 <isTopicMatched+0x5e>
  94950. 80263b2: e006 b.n 80263c2 <isTopicMatched+0x8a>
  94951. }
  94952. else if (*curf == '#')
  94953. 80263b4: 697b ldr r3, [r7, #20]
  94954. 80263b6: 781b ldrb r3, [r3, #0]
  94955. 80263b8: 2b23 cmp r3, #35 @ 0x23
  94956. 80263ba: d102 bne.n 80263c2 <isTopicMatched+0x8a>
  94957. curn = curn_end - 1; // skip until end of string
  94958. 80263bc: 68bb ldr r3, [r7, #8]
  94959. 80263be: 3b01 subs r3, #1
  94960. 80263c0: 613b str r3, [r7, #16]
  94961. curf++;
  94962. 80263c2: 697b ldr r3, [r7, #20]
  94963. 80263c4: 3301 adds r3, #1
  94964. 80263c6: 617b str r3, [r7, #20]
  94965. curn++;
  94966. 80263c8: 693b ldr r3, [r7, #16]
  94967. 80263ca: 3301 adds r3, #1
  94968. 80263cc: 613b str r3, [r7, #16]
  94969. while (*curf && curn < curn_end)
  94970. 80263ce: 697b ldr r3, [r7, #20]
  94971. 80263d0: 781b ldrb r3, [r3, #0]
  94972. 80263d2: 2b00 cmp r3, #0
  94973. 80263d4: d007 beq.n 80263e6 <isTopicMatched+0xae>
  94974. 80263d6: 693a ldr r2, [r7, #16]
  94975. 80263d8: 68bb ldr r3, [r7, #8]
  94976. 80263da: 429a cmp r2, r3
  94977. 80263dc: d3bd bcc.n 802635a <isTopicMatched+0x22>
  94978. 80263de: e002 b.n 80263e6 <isTopicMatched+0xae>
  94979. break;
  94980. 80263e0: bf00 nop
  94981. 80263e2: e000 b.n 80263e6 <isTopicMatched+0xae>
  94982. break;
  94983. 80263e4: bf00 nop
  94984. };
  94985. return (curn == curn_end) && (*curf == '\0');
  94986. 80263e6: 693a ldr r2, [r7, #16]
  94987. 80263e8: 68bb ldr r3, [r7, #8]
  94988. 80263ea: 429a cmp r2, r3
  94989. 80263ec: d105 bne.n 80263fa <isTopicMatched+0xc2>
  94990. 80263ee: 697b ldr r3, [r7, #20]
  94991. 80263f0: 781b ldrb r3, [r3, #0]
  94992. 80263f2: 2b00 cmp r3, #0
  94993. 80263f4: d101 bne.n 80263fa <isTopicMatched+0xc2>
  94994. 80263f6: 2301 movs r3, #1
  94995. 80263f8: e000 b.n 80263fc <isTopicMatched+0xc4>
  94996. 80263fa: 2300 movs r3, #0
  94997. 80263fc: b2db uxtb r3, r3
  94998. }
  94999. 80263fe: 4618 mov r0, r3
  95000. 8026400: 371c adds r7, #28
  95001. 8026402: 46bd mov sp, r7
  95002. 8026404: f85d 7b04 ldr.w r7, [sp], #4
  95003. 8026408: 4770 bx lr
  95004. 0802640a <deliverMessage>:
  95005. int deliverMessage(MQTTClient* c, MQTTString* topicName, MQTTMessage* message)
  95006. {
  95007. 802640a: b580 push {r7, lr}
  95008. 802640c: b08a sub sp, #40 @ 0x28
  95009. 802640e: af00 add r7, sp, #0
  95010. 8026410: 60f8 str r0, [r7, #12]
  95011. 8026412: 60b9 str r1, [r7, #8]
  95012. 8026414: 607a str r2, [r7, #4]
  95013. int i;
  95014. int rc = FAILURE;
  95015. 8026416: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  95016. 802641a: 623b str r3, [r7, #32]
  95017. // we have to find the right message handler - indexed by topic
  95018. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  95019. 802641c: 2300 movs r3, #0
  95020. 802641e: 627b str r3, [r7, #36] @ 0x24
  95021. 8026420: e03c b.n 802649c <deliverMessage+0x92>
  95022. {
  95023. if (c->messageHandlers[i].topicFilter != 0 && (MQTTPacket_equals(topicName, (char*)c->messageHandlers[i].topicFilter) ||
  95024. 8026422: 68fb ldr r3, [r7, #12]
  95025. 8026424: 6a7a ldr r2, [r7, #36] @ 0x24
  95026. 8026426: 3205 adds r2, #5
  95027. 8026428: f853 3032 ldr.w r3, [r3, r2, lsl #3]
  95028. 802642c: 2b00 cmp r3, #0
  95029. 802642e: d032 beq.n 8026496 <deliverMessage+0x8c>
  95030. 8026430: 68fb ldr r3, [r7, #12]
  95031. 8026432: 6a7a ldr r2, [r7, #36] @ 0x24
  95032. 8026434: 3205 adds r2, #5
  95033. 8026436: f853 3032 ldr.w r3, [r3, r2, lsl #3]
  95034. 802643a: 4619 mov r1, r3
  95035. 802643c: 68b8 ldr r0, [r7, #8]
  95036. 802643e: f001 fa51 bl 80278e4 <MQTTPacket_equals>
  95037. 8026442: 4603 mov r3, r0
  95038. 8026444: 2b00 cmp r3, #0
  95039. 8026446: d10b bne.n 8026460 <deliverMessage+0x56>
  95040. isTopicMatched((char*)c->messageHandlers[i].topicFilter, topicName)))
  95041. 8026448: 68fb ldr r3, [r7, #12]
  95042. 802644a: 6a7a ldr r2, [r7, #36] @ 0x24
  95043. 802644c: 3205 adds r2, #5
  95044. 802644e: f853 3032 ldr.w r3, [r3, r2, lsl #3]
  95045. 8026452: 68b9 ldr r1, [r7, #8]
  95046. 8026454: 4618 mov r0, r3
  95047. 8026456: f7ff ff6f bl 8026338 <isTopicMatched>
  95048. 802645a: 4603 mov r3, r0
  95049. if (c->messageHandlers[i].topicFilter != 0 && (MQTTPacket_equals(topicName, (char*)c->messageHandlers[i].topicFilter) ||
  95050. 802645c: 2b00 cmp r3, #0
  95051. 802645e: d01a beq.n 8026496 <deliverMessage+0x8c>
  95052. {
  95053. if (c->messageHandlers[i].fp != NULL)
  95054. 8026460: 68fa ldr r2, [r7, #12]
  95055. 8026462: 6a7b ldr r3, [r7, #36] @ 0x24
  95056. 8026464: 3305 adds r3, #5
  95057. 8026466: 00db lsls r3, r3, #3
  95058. 8026468: 4413 add r3, r2
  95059. 802646a: 685b ldr r3, [r3, #4]
  95060. 802646c: 2b00 cmp r3, #0
  95061. 802646e: d012 beq.n 8026496 <deliverMessage+0x8c>
  95062. {
  95063. MessageData md;
  95064. NewMessageData(&md, topicName, message);
  95065. 8026470: f107 0318 add.w r3, r7, #24
  95066. 8026474: 687a ldr r2, [r7, #4]
  95067. 8026476: 68b9 ldr r1, [r7, #8]
  95068. 8026478: 4618 mov r0, r3
  95069. 802647a: f7ff fdcf bl 802601c <NewMessageData>
  95070. c->messageHandlers[i].fp(&md);
  95071. 802647e: 68fa ldr r2, [r7, #12]
  95072. 8026480: 6a7b ldr r3, [r7, #36] @ 0x24
  95073. 8026482: 3305 adds r3, #5
  95074. 8026484: 00db lsls r3, r3, #3
  95075. 8026486: 4413 add r3, r2
  95076. 8026488: 685b ldr r3, [r3, #4]
  95077. 802648a: f107 0218 add.w r2, r7, #24
  95078. 802648e: 4610 mov r0, r2
  95079. 8026490: 4798 blx r3
  95080. rc = MQTT_SUCCESS;
  95081. 8026492: 2300 movs r3, #0
  95082. 8026494: 623b str r3, [r7, #32]
  95083. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  95084. 8026496: 6a7b ldr r3, [r7, #36] @ 0x24
  95085. 8026498: 3301 adds r3, #1
  95086. 802649a: 627b str r3, [r7, #36] @ 0x24
  95087. 802649c: 6a7b ldr r3, [r7, #36] @ 0x24
  95088. 802649e: 2b04 cmp r3, #4
  95089. 80264a0: ddbf ble.n 8026422 <deliverMessage+0x18>
  95090. }
  95091. }
  95092. }
  95093. if (rc == FAILURE && c->defaultMessageHandler != NULL)
  95094. 80264a2: 6a3b ldr r3, [r7, #32]
  95095. 80264a4: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  95096. 80264a8: d112 bne.n 80264d0 <deliverMessage+0xc6>
  95097. 80264aa: 68fb ldr r3, [r7, #12]
  95098. 80264ac: 6d1b ldr r3, [r3, #80] @ 0x50
  95099. 80264ae: 2b00 cmp r3, #0
  95100. 80264b0: d00e beq.n 80264d0 <deliverMessage+0xc6>
  95101. {
  95102. MessageData md;
  95103. NewMessageData(&md, topicName, message);
  95104. 80264b2: f107 0310 add.w r3, r7, #16
  95105. 80264b6: 687a ldr r2, [r7, #4]
  95106. 80264b8: 68b9 ldr r1, [r7, #8]
  95107. 80264ba: 4618 mov r0, r3
  95108. 80264bc: f7ff fdae bl 802601c <NewMessageData>
  95109. c->defaultMessageHandler(&md);
  95110. 80264c0: 68fb ldr r3, [r7, #12]
  95111. 80264c2: 6d1b ldr r3, [r3, #80] @ 0x50
  95112. 80264c4: f107 0210 add.w r2, r7, #16
  95113. 80264c8: 4610 mov r0, r2
  95114. 80264ca: 4798 blx r3
  95115. rc = MQTT_SUCCESS;
  95116. 80264cc: 2300 movs r3, #0
  95117. 80264ce: 623b str r3, [r7, #32]
  95118. }
  95119. return rc;
  95120. 80264d0: 6a3b ldr r3, [r7, #32]
  95121. }
  95122. 80264d2: 4618 mov r0, r3
  95123. 80264d4: 3728 adds r7, #40 @ 0x28
  95124. 80264d6: 46bd mov sp, r7
  95125. 80264d8: bd80 pop {r7, pc}
  95126. 080264da <keepalive>:
  95127. int keepalive(MQTTClient* c)
  95128. {
  95129. 80264da: b580 push {r7, lr}
  95130. 80264dc: b086 sub sp, #24
  95131. 80264de: af00 add r7, sp, #0
  95132. 80264e0: 6078 str r0, [r7, #4]
  95133. int rc = MQTT_SUCCESS;
  95134. 80264e2: 2300 movs r3, #0
  95135. 80264e4: 617b str r3, [r7, #20]
  95136. if (c->keepAliveInterval == 0)
  95137. 80264e6: 687b ldr r3, [r7, #4]
  95138. 80264e8: 699b ldr r3, [r3, #24]
  95139. 80264ea: 2b00 cmp r3, #0
  95140. 80264ec: d03e beq.n 802656c <keepalive+0x92>
  95141. goto exit;
  95142. if (TimerIsExpired(&c->last_sent) || TimerIsExpired(&c->last_received))
  95143. 80264ee: 687b ldr r3, [r7, #4]
  95144. 80264f0: 3358 adds r3, #88 @ 0x58
  95145. 80264f2: 4618 mov r0, r3
  95146. 80264f4: f000 fc66 bl 8026dc4 <TimerIsExpired>
  95147. 80264f8: 4603 mov r3, r0
  95148. 80264fa: 2b00 cmp r3, #0
  95149. 80264fc: d107 bne.n 802650e <keepalive+0x34>
  95150. 80264fe: 687b ldr r3, [r7, #4]
  95151. 8026500: 3360 adds r3, #96 @ 0x60
  95152. 8026502: 4618 mov r0, r3
  95153. 8026504: f000 fc5e bl 8026dc4 <TimerIsExpired>
  95154. 8026508: 4603 mov r3, r0
  95155. 802650a: 2b00 cmp r3, #0
  95156. 802650c: d030 beq.n 8026570 <keepalive+0x96>
  95157. {
  95158. if (c->ping_outstanding)
  95159. 802650e: 687b ldr r3, [r7, #4]
  95160. 8026510: 7f1b ldrb r3, [r3, #28]
  95161. 8026512: 2b00 cmp r3, #0
  95162. 8026514: d003 beq.n 802651e <keepalive+0x44>
  95163. rc = FAILURE; /* PINGRESP not received in keepalive interval */
  95164. 8026516: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  95165. 802651a: 617b str r3, [r7, #20]
  95166. 802651c: e029 b.n 8026572 <keepalive+0x98>
  95167. else
  95168. {
  95169. Timer timer;
  95170. TimerInit(&timer);
  95171. 802651e: f107 0308 add.w r3, r7, #8
  95172. 8026522: 4618 mov r0, r3
  95173. 8026524: f000 fca6 bl 8026e74 <TimerInit>
  95174. TimerCountdownMS(&timer, 1000);
  95175. 8026528: f107 0308 add.w r3, r7, #8
  95176. 802652c: f44f 717a mov.w r1, #1000 @ 0x3e8
  95177. 8026530: 4618 mov r0, r3
  95178. 8026532: f000 fc5d bl 8026df0 <TimerCountdownMS>
  95179. int len = MQTTSerialize_pingreq(c->buf, c->buf_size);
  95180. 8026536: 687b ldr r3, [r7, #4]
  95181. 8026538: 691a ldr r2, [r3, #16]
  95182. 802653a: 687b ldr r3, [r7, #4]
  95183. 802653c: 689b ldr r3, [r3, #8]
  95184. 802653e: 4619 mov r1, r3
  95185. 8026540: 4610 mov r0, r2
  95186. 8026542: f000 ff34 bl 80273ae <MQTTSerialize_pingreq>
  95187. 8026546: 6138 str r0, [r7, #16]
  95188. if (len > 0 && (rc = sendPacket(c, len, &timer)) == MQTT_SUCCESS) // send the ping packet
  95189. 8026548: 693b ldr r3, [r7, #16]
  95190. 802654a: 2b00 cmp r3, #0
  95191. 802654c: dd11 ble.n 8026572 <keepalive+0x98>
  95192. 802654e: f107 0308 add.w r3, r7, #8
  95193. 8026552: 461a mov r2, r3
  95194. 8026554: 6939 ldr r1, [r7, #16]
  95195. 8026556: 6878 ldr r0, [r7, #4]
  95196. 8026558: f7ff fd8b bl 8026072 <sendPacket>
  95197. 802655c: 6178 str r0, [r7, #20]
  95198. 802655e: 697b ldr r3, [r7, #20]
  95199. 8026560: 2b00 cmp r3, #0
  95200. 8026562: d106 bne.n 8026572 <keepalive+0x98>
  95201. c->ping_outstanding = 1;
  95202. 8026564: 687b ldr r3, [r7, #4]
  95203. 8026566: 2201 movs r2, #1
  95204. 8026568: 771a strb r2, [r3, #28]
  95205. 802656a: e002 b.n 8026572 <keepalive+0x98>
  95206. goto exit;
  95207. 802656c: bf00 nop
  95208. 802656e: e000 b.n 8026572 <keepalive+0x98>
  95209. }
  95210. }
  95211. exit:
  95212. 8026570: bf00 nop
  95213. return rc;
  95214. 8026572: 697b ldr r3, [r7, #20]
  95215. }
  95216. 8026574: 4618 mov r0, r3
  95217. 8026576: 3718 adds r7, #24
  95218. 8026578: 46bd mov sp, r7
  95219. 802657a: bd80 pop {r7, pc}
  95220. 0802657c <MQTTCleanSession>:
  95221. void MQTTCleanSession(MQTTClient* c)
  95222. {
  95223. 802657c: b480 push {r7}
  95224. 802657e: b085 sub sp, #20
  95225. 8026580: af00 add r7, sp, #0
  95226. 8026582: 6078 str r0, [r7, #4]
  95227. int i = 0;
  95228. 8026584: 2300 movs r3, #0
  95229. 8026586: 60fb str r3, [r7, #12]
  95230. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  95231. 8026588: 2300 movs r3, #0
  95232. 802658a: 60fb str r3, [r7, #12]
  95233. 802658c: e008 b.n 80265a0 <MQTTCleanSession+0x24>
  95234. c->messageHandlers[i].topicFilter = NULL;
  95235. 802658e: 687b ldr r3, [r7, #4]
  95236. 8026590: 68fa ldr r2, [r7, #12]
  95237. 8026592: 3205 adds r2, #5
  95238. 8026594: 2100 movs r1, #0
  95239. 8026596: f843 1032 str.w r1, [r3, r2, lsl #3]
  95240. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  95241. 802659a: 68fb ldr r3, [r7, #12]
  95242. 802659c: 3301 adds r3, #1
  95243. 802659e: 60fb str r3, [r7, #12]
  95244. 80265a0: 68fb ldr r3, [r7, #12]
  95245. 80265a2: 2b04 cmp r3, #4
  95246. 80265a4: ddf3 ble.n 802658e <MQTTCleanSession+0x12>
  95247. }
  95248. 80265a6: bf00 nop
  95249. 80265a8: bf00 nop
  95250. 80265aa: 3714 adds r7, #20
  95251. 80265ac: 46bd mov sp, r7
  95252. 80265ae: f85d 7b04 ldr.w r7, [sp], #4
  95253. 80265b2: 4770 bx lr
  95254. 080265b4 <MQTTCloseSession>:
  95255. void MQTTCloseSession(MQTTClient* c)
  95256. {
  95257. 80265b4: b580 push {r7, lr}
  95258. 80265b6: b082 sub sp, #8
  95259. 80265b8: af00 add r7, sp, #0
  95260. 80265ba: 6078 str r0, [r7, #4]
  95261. c->ping_outstanding = 0;
  95262. 80265bc: 687b ldr r3, [r7, #4]
  95263. 80265be: 2200 movs r2, #0
  95264. 80265c0: 771a strb r2, [r3, #28]
  95265. c->isconnected = 0;
  95266. 80265c2: 687b ldr r3, [r7, #4]
  95267. 80265c4: 2200 movs r2, #0
  95268. 80265c6: 621a str r2, [r3, #32]
  95269. if (c->cleansession)
  95270. 80265c8: 687b ldr r3, [r7, #4]
  95271. 80265ca: 6a5b ldr r3, [r3, #36] @ 0x24
  95272. 80265cc: 2b00 cmp r3, #0
  95273. 80265ce: d002 beq.n 80265d6 <MQTTCloseSession+0x22>
  95274. MQTTCleanSession(c);
  95275. 80265d0: 6878 ldr r0, [r7, #4]
  95276. 80265d2: f7ff ffd3 bl 802657c <MQTTCleanSession>
  95277. }
  95278. 80265d6: bf00 nop
  95279. 80265d8: 3708 adds r7, #8
  95280. 80265da: 46bd mov sp, r7
  95281. 80265dc: bd80 pop {r7, pc}
  95282. ...
  95283. 080265e0 <cycle>:
  95284. int cycle(MQTTClient* c, Timer* timer)
  95285. {
  95286. 80265e0: b5f0 push {r4, r5, r6, r7, lr}
  95287. 80265e2: b095 sub sp, #84 @ 0x54
  95288. 80265e4: af06 add r7, sp, #24
  95289. 80265e6: 6078 str r0, [r7, #4]
  95290. 80265e8: 6039 str r1, [r7, #0]
  95291. int len = 0,
  95292. 80265ea: 2300 movs r3, #0
  95293. 80265ec: 637b str r3, [r7, #52] @ 0x34
  95294. rc = MQTT_SUCCESS;
  95295. 80265ee: 2300 movs r3, #0
  95296. 80265f0: 633b str r3, [r7, #48] @ 0x30
  95297. int packet_type = readPacket(c, timer); /* read the socket, see what work is due */
  95298. 80265f2: 6839 ldr r1, [r7, #0]
  95299. 80265f4: 6878 ldr r0, [r7, #4]
  95300. 80265f6: f7ff fe1b bl 8026230 <readPacket>
  95301. 80265fa: 62f8 str r0, [r7, #44] @ 0x2c
  95302. switch (packet_type)
  95303. 80265fc: 6afb ldr r3, [r7, #44] @ 0x2c
  95304. 80265fe: 2b0d cmp r3, #13
  95305. 8026600: d81e bhi.n 8026640 <cycle+0x60>
  95306. 8026602: a201 add r2, pc, #4 @ (adr r2, 8026608 <cycle+0x28>)
  95307. 8026604: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  95308. 8026608: 08026797 .word 0x08026797
  95309. 802660c: 08026641 .word 0x08026641
  95310. 8026610: 08026797 .word 0x08026797
  95311. 8026614: 08026647 .word 0x08026647
  95312. 8026618: 08026797 .word 0x08026797
  95313. 802661c: 08026713 .word 0x08026713
  95314. 8026620: 08026713 .word 0x08026713
  95315. 8026624: 08026797 .word 0x08026797
  95316. 8026628: 08026641 .word 0x08026641
  95317. 802662c: 08026797 .word 0x08026797
  95318. 8026630: 08026641 .word 0x08026641
  95319. 8026634: 08026797 .word 0x08026797
  95320. 8026638: 08026641 .word 0x08026641
  95321. 802663c: 0802678f .word 0x0802678f
  95322. {
  95323. default:
  95324. /* no more data to read, unrecoverable. Or read packet fails due to unexpected network error */
  95325. rc = packet_type;
  95326. 8026640: 6afb ldr r3, [r7, #44] @ 0x2c
  95327. 8026642: 633b str r3, [r7, #48] @ 0x30
  95328. goto exit;
  95329. 8026644: e0b9 b.n 80267ba <cycle+0x1da>
  95330. case PUBLISH:
  95331. {
  95332. MQTTString topicName;
  95333. MQTTMessage msg;
  95334. int intQoS;
  95335. msg.payloadlen = 0; /* this is a size_t, but deserialize publish sets this as int */
  95336. 8026646: 2300 movs r3, #0
  95337. 8026648: 61fb str r3, [r7, #28]
  95338. if (MQTTDeserialize_publish(&msg.dup, &intQoS, &msg.retained, &msg.id, &topicName,
  95339. 802664a: 687b ldr r3, [r7, #4]
  95340. 802664c: 695b ldr r3, [r3, #20]
  95341. (unsigned char**)&msg.payload, (int*)&msg.payloadlen, c->readbuf, c->readbuf_size) != 1)
  95342. 802664e: 687a ldr r2, [r7, #4]
  95343. 8026650: 68d2 ldr r2, [r2, #12]
  95344. if (MQTTDeserialize_publish(&msg.dup, &intQoS, &msg.retained, &msg.id, &topicName,
  95345. 8026652: 4616 mov r6, r2
  95346. 8026654: f107 0210 add.w r2, r7, #16
  95347. 8026658: 1d15 adds r5, r2, #4
  95348. 802665a: f107 0210 add.w r2, r7, #16
  95349. 802665e: 1c54 adds r4, r2, #1
  95350. 8026660: f107 010c add.w r1, r7, #12
  95351. 8026664: f107 0210 add.w r2, r7, #16
  95352. 8026668: 1c90 adds r0, r2, #2
  95353. 802666a: 9604 str r6, [sp, #16]
  95354. 802666c: 9303 str r3, [sp, #12]
  95355. 802666e: f107 0310 add.w r3, r7, #16
  95356. 8026672: 330c adds r3, #12
  95357. 8026674: 9302 str r3, [sp, #8]
  95358. 8026676: f107 0310 add.w r3, r7, #16
  95359. 802667a: 3308 adds r3, #8
  95360. 802667c: 9301 str r3, [sp, #4]
  95361. 802667e: f107 0320 add.w r3, r7, #32
  95362. 8026682: 9300 str r3, [sp, #0]
  95363. 8026684: 462b mov r3, r5
  95364. 8026686: 4622 mov r2, r4
  95365. 8026688: f000 fea0 bl 80273cc <MQTTDeserialize_publish>
  95366. 802668c: 4603 mov r3, r0
  95367. 802668e: 2b01 cmp r3, #1
  95368. 8026690: f040 8090 bne.w 80267b4 <cycle+0x1d4>
  95369. goto exit;
  95370. msg.qos = (enum QoS)intQoS;
  95371. 8026694: 68fb ldr r3, [r7, #12]
  95372. 8026696: b2db uxtb r3, r3
  95373. 8026698: 743b strb r3, [r7, #16]
  95374. deliverMessage(c, &topicName, &msg);
  95375. 802669a: f107 0210 add.w r2, r7, #16
  95376. 802669e: f107 0320 add.w r3, r7, #32
  95377. 80266a2: 4619 mov r1, r3
  95378. 80266a4: 6878 ldr r0, [r7, #4]
  95379. 80266a6: f7ff feb0 bl 802640a <deliverMessage>
  95380. if (msg.qos != QOS0)
  95381. 80266aa: 7c3b ldrb r3, [r7, #16]
  95382. 80266ac: 2b00 cmp r3, #0
  95383. 80266ae: d074 beq.n 802679a <cycle+0x1ba>
  95384. {
  95385. if (msg.qos == QOS1)
  95386. 80266b0: 7c3b ldrb r3, [r7, #16]
  95387. 80266b2: 2b01 cmp r3, #1
  95388. 80266b4: d10c bne.n 80266d0 <cycle+0xf0>
  95389. len = MQTTSerialize_ack(c->buf, c->buf_size, PUBACK, 0, msg.id);
  95390. 80266b6: 687b ldr r3, [r7, #4]
  95391. 80266b8: 6918 ldr r0, [r3, #16]
  95392. 80266ba: 687b ldr r3, [r7, #4]
  95393. 80266bc: 689b ldr r3, [r3, #8]
  95394. 80266be: 4619 mov r1, r3
  95395. 80266c0: 8abb ldrh r3, [r7, #20]
  95396. 80266c2: 9300 str r3, [sp, #0]
  95397. 80266c4: 2300 movs r3, #0
  95398. 80266c6: 2204 movs r2, #4
  95399. 80266c8: f001 f9d9 bl 8027a7e <MQTTSerialize_ack>
  95400. 80266cc: 6378 str r0, [r7, #52] @ 0x34
  95401. 80266ce: e00e b.n 80266ee <cycle+0x10e>
  95402. else if (msg.qos == QOS2)
  95403. 80266d0: 7c3b ldrb r3, [r7, #16]
  95404. 80266d2: 2b02 cmp r3, #2
  95405. 80266d4: d10b bne.n 80266ee <cycle+0x10e>
  95406. len = MQTTSerialize_ack(c->buf, c->buf_size, PUBREC, 0, msg.id);
  95407. 80266d6: 687b ldr r3, [r7, #4]
  95408. 80266d8: 6918 ldr r0, [r3, #16]
  95409. 80266da: 687b ldr r3, [r7, #4]
  95410. 80266dc: 689b ldr r3, [r3, #8]
  95411. 80266de: 4619 mov r1, r3
  95412. 80266e0: 8abb ldrh r3, [r7, #20]
  95413. 80266e2: 9300 str r3, [sp, #0]
  95414. 80266e4: 2300 movs r3, #0
  95415. 80266e6: 2205 movs r2, #5
  95416. 80266e8: f001 f9c9 bl 8027a7e <MQTTSerialize_ack>
  95417. 80266ec: 6378 str r0, [r7, #52] @ 0x34
  95418. if (len <= 0)
  95419. 80266ee: 6b7b ldr r3, [r7, #52] @ 0x34
  95420. 80266f0: 2b00 cmp r3, #0
  95421. 80266f2: dc03 bgt.n 80266fc <cycle+0x11c>
  95422. rc = FAILURE;
  95423. 80266f4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  95424. 80266f8: 633b str r3, [r7, #48] @ 0x30
  95425. 80266fa: e005 b.n 8026708 <cycle+0x128>
  95426. else
  95427. rc = sendPacket(c, len, timer);
  95428. 80266fc: 683a ldr r2, [r7, #0]
  95429. 80266fe: 6b79 ldr r1, [r7, #52] @ 0x34
  95430. 8026700: 6878 ldr r0, [r7, #4]
  95431. 8026702: f7ff fcb6 bl 8026072 <sendPacket>
  95432. 8026706: 6338 str r0, [r7, #48] @ 0x30
  95433. if (rc == FAILURE)
  95434. 8026708: 6b3b ldr r3, [r7, #48] @ 0x30
  95435. 802670a: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  95436. 802670e: d144 bne.n 802679a <cycle+0x1ba>
  95437. goto exit; // there was a problem
  95438. 8026710: e053 b.n 80267ba <cycle+0x1da>
  95439. case PUBREC:
  95440. case PUBREL:
  95441. {
  95442. unsigned short mypacketid;
  95443. unsigned char dup, type;
  95444. if (MQTTDeserialize_ack(&type, &dup, &mypacketid, c->readbuf, c->readbuf_size) != 1)
  95445. 8026712: 687b ldr r3, [r7, #4]
  95446. 8026714: 695c ldr r4, [r3, #20]
  95447. 8026716: 687b ldr r3, [r7, #4]
  95448. 8026718: 68db ldr r3, [r3, #12]
  95449. 802671a: f107 020a add.w r2, r7, #10
  95450. 802671e: f107 0109 add.w r1, r7, #9
  95451. 8026722: f107 0008 add.w r0, r7, #8
  95452. 8026726: 9300 str r3, [sp, #0]
  95453. 8026728: 4623 mov r3, r4
  95454. 802672a: f000 fec1 bl 80274b0 <MQTTDeserialize_ack>
  95455. 802672e: 4603 mov r3, r0
  95456. 8026730: 2b01 cmp r3, #1
  95457. 8026732: d003 beq.n 802673c <cycle+0x15c>
  95458. rc = FAILURE;
  95459. 8026734: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  95460. 8026738: 633b str r3, [r7, #48] @ 0x30
  95461. 802673a: e023 b.n 8026784 <cycle+0x1a4>
  95462. else if ((len = MQTTSerialize_ack(c->buf, c->buf_size,
  95463. 802673c: 687b ldr r3, [r7, #4]
  95464. 802673e: 6918 ldr r0, [r3, #16]
  95465. 8026740: 687b ldr r3, [r7, #4]
  95466. 8026742: 689b ldr r3, [r3, #8]
  95467. 8026744: 4619 mov r1, r3
  95468. 8026746: 6afb ldr r3, [r7, #44] @ 0x2c
  95469. 8026748: 2b05 cmp r3, #5
  95470. 802674a: d101 bne.n 8026750 <cycle+0x170>
  95471. 802674c: 2206 movs r2, #6
  95472. 802674e: e000 b.n 8026752 <cycle+0x172>
  95473. 8026750: 2207 movs r2, #7
  95474. 8026752: 897b ldrh r3, [r7, #10]
  95475. 8026754: 9300 str r3, [sp, #0]
  95476. 8026756: 2300 movs r3, #0
  95477. 8026758: f001 f991 bl 8027a7e <MQTTSerialize_ack>
  95478. 802675c: 6378 str r0, [r7, #52] @ 0x34
  95479. 802675e: 6b7b ldr r3, [r7, #52] @ 0x34
  95480. 8026760: 2b00 cmp r3, #0
  95481. 8026762: dc03 bgt.n 802676c <cycle+0x18c>
  95482. (packet_type == PUBREC) ? PUBREL : PUBCOMP, 0, mypacketid)) <= 0)
  95483. rc = FAILURE;
  95484. 8026764: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  95485. 8026768: 633b str r3, [r7, #48] @ 0x30
  95486. 802676a: e00b b.n 8026784 <cycle+0x1a4>
  95487. else if ((rc = sendPacket(c, len, timer)) != MQTT_SUCCESS) // send the PUBREL packet
  95488. 802676c: 683a ldr r2, [r7, #0]
  95489. 802676e: 6b79 ldr r1, [r7, #52] @ 0x34
  95490. 8026770: 6878 ldr r0, [r7, #4]
  95491. 8026772: f7ff fc7e bl 8026072 <sendPacket>
  95492. 8026776: 6338 str r0, [r7, #48] @ 0x30
  95493. 8026778: 6b3b ldr r3, [r7, #48] @ 0x30
  95494. 802677a: 2b00 cmp r3, #0
  95495. 802677c: d002 beq.n 8026784 <cycle+0x1a4>
  95496. rc = FAILURE; // there was a problem
  95497. 802677e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  95498. 8026782: 633b str r3, [r7, #48] @ 0x30
  95499. if (rc == FAILURE)
  95500. 8026784: 6b3b ldr r3, [r7, #48] @ 0x30
  95501. 8026786: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  95502. 802678a: d108 bne.n 802679e <cycle+0x1be>
  95503. goto exit; // there was a problem
  95504. 802678c: e015 b.n 80267ba <cycle+0x1da>
  95505. }
  95506. case PUBCOMP:
  95507. break;
  95508. case PINGRESP:
  95509. c->ping_outstanding = 0;
  95510. 802678e: 687b ldr r3, [r7, #4]
  95511. 8026790: 2200 movs r2, #0
  95512. 8026792: 771a strb r2, [r3, #28]
  95513. break;
  95514. 8026794: e004 b.n 80267a0 <cycle+0x1c0>
  95515. break;
  95516. 8026796: bf00 nop
  95517. 8026798: e002 b.n 80267a0 <cycle+0x1c0>
  95518. break;
  95519. 802679a: bf00 nop
  95520. 802679c: e000 b.n 80267a0 <cycle+0x1c0>
  95521. break;
  95522. 802679e: bf00 nop
  95523. }
  95524. if (keepalive(c) != MQTT_SUCCESS) {
  95525. 80267a0: 6878 ldr r0, [r7, #4]
  95526. 80267a2: f7ff fe9a bl 80264da <keepalive>
  95527. 80267a6: 4603 mov r3, r0
  95528. 80267a8: 2b00 cmp r3, #0
  95529. 80267aa: d005 beq.n 80267b8 <cycle+0x1d8>
  95530. //check only keepalive FAILURE status so that previous FAILURE status can be considered as FAULT
  95531. rc = FAILURE;
  95532. 80267ac: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  95533. 80267b0: 633b str r3, [r7, #48] @ 0x30
  95534. 80267b2: e002 b.n 80267ba <cycle+0x1da>
  95535. goto exit;
  95536. 80267b4: bf00 nop
  95537. 80267b6: e000 b.n 80267ba <cycle+0x1da>
  95538. }
  95539. exit:
  95540. 80267b8: bf00 nop
  95541. if (rc == MQTT_SUCCESS)
  95542. 80267ba: 6b3b ldr r3, [r7, #48] @ 0x30
  95543. 80267bc: 2b00 cmp r3, #0
  95544. 80267be: d102 bne.n 80267c6 <cycle+0x1e6>
  95545. rc = packet_type;
  95546. 80267c0: 6afb ldr r3, [r7, #44] @ 0x2c
  95547. 80267c2: 633b str r3, [r7, #48] @ 0x30
  95548. 80267c4: e006 b.n 80267d4 <cycle+0x1f4>
  95549. else if (c->isconnected)
  95550. 80267c6: 687b ldr r3, [r7, #4]
  95551. 80267c8: 6a1b ldr r3, [r3, #32]
  95552. 80267ca: 2b00 cmp r3, #0
  95553. 80267cc: d002 beq.n 80267d4 <cycle+0x1f4>
  95554. MQTTCloseSession(c);
  95555. 80267ce: 6878 ldr r0, [r7, #4]
  95556. 80267d0: f7ff fef0 bl 80265b4 <MQTTCloseSession>
  95557. return rc;
  95558. 80267d4: 6b3b ldr r3, [r7, #48] @ 0x30
  95559. }
  95560. 80267d6: 4618 mov r0, r3
  95561. 80267d8: 373c adds r7, #60 @ 0x3c
  95562. 80267da: 46bd mov sp, r7
  95563. 80267dc: bdf0 pop {r4, r5, r6, r7, pc}
  95564. 80267de: bf00 nop
  95565. 080267e0 <MQTTYield>:
  95566. int MQTTYield(MQTTClient* c, int timeout_ms)
  95567. {
  95568. 80267e0: b580 push {r7, lr}
  95569. 80267e2: b086 sub sp, #24
  95570. 80267e4: af00 add r7, sp, #0
  95571. 80267e6: 6078 str r0, [r7, #4]
  95572. 80267e8: 6039 str r1, [r7, #0]
  95573. int rc = MQTT_SUCCESS;
  95574. 80267ea: 2300 movs r3, #0
  95575. 80267ec: 617b str r3, [r7, #20]
  95576. Timer timer;
  95577. TimerInit(&timer);
  95578. 80267ee: f107 030c add.w r3, r7, #12
  95579. 80267f2: 4618 mov r0, r3
  95580. 80267f4: f000 fb3e bl 8026e74 <TimerInit>
  95581. TimerCountdownMS(&timer, timeout_ms);
  95582. 80267f8: 683a ldr r2, [r7, #0]
  95583. 80267fa: f107 030c add.w r3, r7, #12
  95584. 80267fe: 4611 mov r1, r2
  95585. 8026800: 4618 mov r0, r3
  95586. 8026802: f000 faf5 bl 8026df0 <TimerCountdownMS>
  95587. do
  95588. {
  95589. if (cycle(c, &timer) < 0)
  95590. 8026806: f107 030c add.w r3, r7, #12
  95591. 802680a: 4619 mov r1, r3
  95592. 802680c: 6878 ldr r0, [r7, #4]
  95593. 802680e: f7ff fee7 bl 80265e0 <cycle>
  95594. 8026812: 4603 mov r3, r0
  95595. 8026814: 2b00 cmp r3, #0
  95596. 8026816: da03 bge.n 8026820 <MQTTYield+0x40>
  95597. {
  95598. rc = FAILURE;
  95599. 8026818: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  95600. 802681c: 617b str r3, [r7, #20]
  95601. break;
  95602. 802681e: e007 b.n 8026830 <MQTTYield+0x50>
  95603. }
  95604. } while (!TimerIsExpired(&timer));
  95605. 8026820: f107 030c add.w r3, r7, #12
  95606. 8026824: 4618 mov r0, r3
  95607. 8026826: f000 facd bl 8026dc4 <TimerIsExpired>
  95608. 802682a: 4603 mov r3, r0
  95609. 802682c: 2b00 cmp r3, #0
  95610. 802682e: d0ea beq.n 8026806 <MQTTYield+0x26>
  95611. return rc;
  95612. 8026830: 697b ldr r3, [r7, #20]
  95613. }
  95614. 8026832: 4618 mov r0, r3
  95615. 8026834: 3718 adds r7, #24
  95616. 8026836: 46bd mov sp, r7
  95617. 8026838: bd80 pop {r7, pc}
  95618. 0802683a <waitfor>:
  95619. }
  95620. #endif
  95621. int waitfor(MQTTClient* c, int packet_type, Timer* timer)
  95622. {
  95623. 802683a: b580 push {r7, lr}
  95624. 802683c: b086 sub sp, #24
  95625. 802683e: af00 add r7, sp, #0
  95626. 8026840: 60f8 str r0, [r7, #12]
  95627. 8026842: 60b9 str r1, [r7, #8]
  95628. 8026844: 607a str r2, [r7, #4]
  95629. int rc = FAILURE;
  95630. 8026846: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  95631. 802684a: 617b str r3, [r7, #20]
  95632. do
  95633. {
  95634. if (TimerIsExpired(timer))
  95635. 802684c: 6878 ldr r0, [r7, #4]
  95636. 802684e: f000 fab9 bl 8026dc4 <TimerIsExpired>
  95637. 8026852: 4603 mov r3, r0
  95638. 8026854: 2b00 cmp r3, #0
  95639. 8026856: d10c bne.n 8026872 <waitfor+0x38>
  95640. break; // we timed out
  95641. rc = cycle(c, timer);
  95642. 8026858: 6879 ldr r1, [r7, #4]
  95643. 802685a: 68f8 ldr r0, [r7, #12]
  95644. 802685c: f7ff fec0 bl 80265e0 <cycle>
  95645. 8026860: 6178 str r0, [r7, #20]
  95646. }
  95647. while (rc != packet_type && rc >= 0);
  95648. 8026862: 697a ldr r2, [r7, #20]
  95649. 8026864: 68bb ldr r3, [r7, #8]
  95650. 8026866: 429a cmp r2, r3
  95651. 8026868: d004 beq.n 8026874 <waitfor+0x3a>
  95652. 802686a: 697b ldr r3, [r7, #20]
  95653. 802686c: 2b00 cmp r3, #0
  95654. 802686e: daed bge.n 802684c <waitfor+0x12>
  95655. 8026870: e000 b.n 8026874 <waitfor+0x3a>
  95656. break; // we timed out
  95657. 8026872: bf00 nop
  95658. return rc;
  95659. 8026874: 697b ldr r3, [r7, #20]
  95660. }
  95661. 8026876: 4618 mov r0, r3
  95662. 8026878: 3718 adds r7, #24
  95663. 802687a: 46bd mov sp, r7
  95664. 802687c: bd80 pop {r7, pc}
  95665. ...
  95666. 08026880 <MQTTConnectWithResults>:
  95667. int MQTTConnectWithResults(MQTTClient* c, MQTTPacket_connectData* options, MQTTConnackData* data)
  95668. {
  95669. 8026880: b580 push {r7, lr}
  95670. 8026882: b09e sub sp, #120 @ 0x78
  95671. 8026884: af00 add r7, sp, #0
  95672. 8026886: 60f8 str r0, [r7, #12]
  95673. 8026888: 60b9 str r1, [r7, #8]
  95674. 802688a: 607a str r2, [r7, #4]
  95675. Timer connect_timer;
  95676. int rc = FAILURE;
  95677. 802688c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  95678. 8026890: 677b str r3, [r7, #116] @ 0x74
  95679. MQTTPacket_connectData default_options = MQTTPacket_connectData_initializer;
  95680. 8026892: 4a49 ldr r2, [pc, #292] @ (80269b8 <MQTTConnectWithResults+0x138>)
  95681. 8026894: f107 0310 add.w r3, r7, #16
  95682. 8026898: 4611 mov r1, r2
  95683. 802689a: 2258 movs r2, #88 @ 0x58
  95684. 802689c: 4618 mov r0, r3
  95685. 802689e: f003 f8be bl 8029a1e <memcpy>
  95686. int len = 0;
  95687. 80268a2: 2300 movs r3, #0
  95688. 80268a4: 673b str r3, [r7, #112] @ 0x70
  95689. #if defined(MQTT_TASK)
  95690. MutexLock(&c->mutex);
  95691. #endif
  95692. // osMutexAcquire(mqttMutex, osWaitForever);
  95693. osMutexAcquire(c->mutex, osWaitForever);
  95694. 80268a6: 68fb ldr r3, [r7, #12]
  95695. 80268a8: 6e9b ldr r3, [r3, #104] @ 0x68
  95696. 80268aa: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  95697. 80268ae: 4618 mov r0, r3
  95698. 80268b0: f7e9 fea8 bl 8010604 <osMutexAcquire>
  95699. if (c->isconnected) /* don't send connect packet again if we are already connected */
  95700. 80268b4: 68fb ldr r3, [r7, #12]
  95701. 80268b6: 6a1b ldr r3, [r3, #32]
  95702. 80268b8: 2b00 cmp r3, #0
  95703. 80268ba: d164 bne.n 8026986 <MQTTConnectWithResults+0x106>
  95704. goto exit;
  95705. TimerInit(&connect_timer);
  95706. 80268bc: f107 0368 add.w r3, r7, #104 @ 0x68
  95707. 80268c0: 4618 mov r0, r3
  95708. 80268c2: f000 fad7 bl 8026e74 <TimerInit>
  95709. TimerCountdownMS(&connect_timer, c->command_timeout_ms);
  95710. 80268c6: 68fb ldr r3, [r7, #12]
  95711. 80268c8: 685a ldr r2, [r3, #4]
  95712. 80268ca: f107 0368 add.w r3, r7, #104 @ 0x68
  95713. 80268ce: 4611 mov r1, r2
  95714. 80268d0: 4618 mov r0, r3
  95715. 80268d2: f000 fa8d bl 8026df0 <TimerCountdownMS>
  95716. if (options == 0)
  95717. 80268d6: 68bb ldr r3, [r7, #8]
  95718. 80268d8: 2b00 cmp r3, #0
  95719. 80268da: d102 bne.n 80268e2 <MQTTConnectWithResults+0x62>
  95720. options = &default_options; /* set default options if none were supplied */
  95721. 80268dc: f107 0310 add.w r3, r7, #16
  95722. 80268e0: 60bb str r3, [r7, #8]
  95723. c->keepAliveInterval = options->keepAliveInterval;
  95724. 80268e2: 68bb ldr r3, [r7, #8]
  95725. 80268e4: 8b1b ldrh r3, [r3, #24]
  95726. 80268e6: 461a mov r2, r3
  95727. 80268e8: 68fb ldr r3, [r7, #12]
  95728. 80268ea: 619a str r2, [r3, #24]
  95729. c->cleansession = options->cleansession;
  95730. 80268ec: 68bb ldr r3, [r7, #8]
  95731. 80268ee: 7e9b ldrb r3, [r3, #26]
  95732. 80268f0: 461a mov r2, r3
  95733. 80268f2: 68fb ldr r3, [r7, #12]
  95734. 80268f4: 625a str r2, [r3, #36] @ 0x24
  95735. TimerCountdown(&c->last_received, c->keepAliveInterval);
  95736. 80268f6: 68fb ldr r3, [r7, #12]
  95737. 80268f8: f103 0260 add.w r2, r3, #96 @ 0x60
  95738. 80268fc: 68fb ldr r3, [r7, #12]
  95739. 80268fe: 699b ldr r3, [r3, #24]
  95740. 8026900: 4619 mov r1, r3
  95741. 8026902: 4610 mov r0, r2
  95742. 8026904: f000 fa88 bl 8026e18 <TimerCountdown>
  95743. if ((len = MQTTSerialize_connect(c->buf, c->buf_size, options)) <= 0)
  95744. 8026908: 68fb ldr r3, [r7, #12]
  95745. 802690a: 6918 ldr r0, [r3, #16]
  95746. 802690c: 68fb ldr r3, [r7, #12]
  95747. 802690e: 689b ldr r3, [r3, #8]
  95748. 8026910: 68ba ldr r2, [r7, #8]
  95749. 8026912: 4619 mov r1, r3
  95750. 8026914: f000 fbd2 bl 80270bc <MQTTSerialize_connect>
  95751. 8026918: 6738 str r0, [r7, #112] @ 0x70
  95752. 802691a: 6f3b ldr r3, [r7, #112] @ 0x70
  95753. 802691c: 2b00 cmp r3, #0
  95754. 802691e: dd34 ble.n 802698a <MQTTConnectWithResults+0x10a>
  95755. goto exit;
  95756. if ((rc = sendPacket(c, len, &connect_timer)) != MQTT_SUCCESS) // send the connect packet
  95757. 8026920: f107 0368 add.w r3, r7, #104 @ 0x68
  95758. 8026924: 461a mov r2, r3
  95759. 8026926: 6f39 ldr r1, [r7, #112] @ 0x70
  95760. 8026928: 68f8 ldr r0, [r7, #12]
  95761. 802692a: f7ff fba2 bl 8026072 <sendPacket>
  95762. 802692e: 6778 str r0, [r7, #116] @ 0x74
  95763. 8026930: 6f7b ldr r3, [r7, #116] @ 0x74
  95764. 8026932: 2b00 cmp r3, #0
  95765. 8026934: d12b bne.n 802698e <MQTTConnectWithResults+0x10e>
  95766. goto exit; // there was a problem
  95767. // this will be a blocking call, wait for the connack
  95768. if (waitfor(c, CONNACK, &connect_timer) == CONNACK)
  95769. 8026936: f107 0368 add.w r3, r7, #104 @ 0x68
  95770. 802693a: 461a mov r2, r3
  95771. 802693c: 2102 movs r1, #2
  95772. 802693e: 68f8 ldr r0, [r7, #12]
  95773. 8026940: f7ff ff7b bl 802683a <waitfor>
  95774. 8026944: 4603 mov r3, r0
  95775. 8026946: 2b02 cmp r3, #2
  95776. 8026948: d119 bne.n 802697e <MQTTConnectWithResults+0xfe>
  95777. {
  95778. data->rc = 0;
  95779. 802694a: 687b ldr r3, [r7, #4]
  95780. 802694c: 2200 movs r2, #0
  95781. 802694e: 701a strb r2, [r3, #0]
  95782. data->sessionPresent = 0;
  95783. 8026950: 687b ldr r3, [r7, #4]
  95784. 8026952: 2200 movs r2, #0
  95785. 8026954: 705a strb r2, [r3, #1]
  95786. if (MQTTDeserialize_connack(&data->sessionPresent, &data->rc, c->readbuf, c->readbuf_size) == 1)
  95787. 8026956: 687b ldr r3, [r7, #4]
  95788. 8026958: 1c58 adds r0, r3, #1
  95789. 802695a: 6879 ldr r1, [r7, #4]
  95790. 802695c: 68fb ldr r3, [r7, #12]
  95791. 802695e: 695a ldr r2, [r3, #20]
  95792. 8026960: 68fb ldr r3, [r7, #12]
  95793. 8026962: 68db ldr r3, [r3, #12]
  95794. 8026964: f000 fc96 bl 8027294 <MQTTDeserialize_connack>
  95795. 8026968: 4603 mov r3, r0
  95796. 802696a: 2b01 cmp r3, #1
  95797. 802696c: d103 bne.n 8026976 <MQTTConnectWithResults+0xf6>
  95798. rc = data->rc;
  95799. 802696e: 687b ldr r3, [r7, #4]
  95800. 8026970: 781b ldrb r3, [r3, #0]
  95801. 8026972: 677b str r3, [r7, #116] @ 0x74
  95802. 8026974: e00c b.n 8026990 <MQTTConnectWithResults+0x110>
  95803. // rc = MQTT_SUCCESS;
  95804. else
  95805. rc = FAILURE;
  95806. 8026976: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  95807. 802697a: 677b str r3, [r7, #116] @ 0x74
  95808. 802697c: e008 b.n 8026990 <MQTTConnectWithResults+0x110>
  95809. }
  95810. else
  95811. rc = FAILURE;
  95812. 802697e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  95813. 8026982: 677b str r3, [r7, #116] @ 0x74
  95814. 8026984: e004 b.n 8026990 <MQTTConnectWithResults+0x110>
  95815. goto exit;
  95816. 8026986: bf00 nop
  95817. 8026988: e002 b.n 8026990 <MQTTConnectWithResults+0x110>
  95818. goto exit;
  95819. 802698a: bf00 nop
  95820. 802698c: e000 b.n 8026990 <MQTTConnectWithResults+0x110>
  95821. goto exit; // there was a problem
  95822. 802698e: bf00 nop
  95823. exit:
  95824. if (rc == MQTT_SUCCESS)
  95825. 8026990: 6f7b ldr r3, [r7, #116] @ 0x74
  95826. 8026992: 2b00 cmp r3, #0
  95827. 8026994: d105 bne.n 80269a2 <MQTTConnectWithResults+0x122>
  95828. {
  95829. c->isconnected = 1;
  95830. 8026996: 68fb ldr r3, [r7, #12]
  95831. 8026998: 2201 movs r2, #1
  95832. 802699a: 621a str r2, [r3, #32]
  95833. c->ping_outstanding = 0;
  95834. 802699c: 68fb ldr r3, [r7, #12]
  95835. 802699e: 2200 movs r2, #0
  95836. 80269a0: 771a strb r2, [r3, #28]
  95837. #if defined(MQTT_TASK)
  95838. MutexUnlock(&c->mutex);
  95839. #endif
  95840. // osMutexRelease(mqttMutex);
  95841. osMutexRelease(c->mutex);
  95842. 80269a2: 68fb ldr r3, [r7, #12]
  95843. 80269a4: 6e9b ldr r3, [r3, #104] @ 0x68
  95844. 80269a6: 4618 mov r0, r3
  95845. 80269a8: f7e9 fe77 bl 801069a <osMutexRelease>
  95846. return rc;
  95847. 80269ac: 6f7b ldr r3, [r7, #116] @ 0x74
  95848. }
  95849. 80269ae: 4618 mov r0, r3
  95850. 80269b0: 3778 adds r7, #120 @ 0x78
  95851. 80269b2: 46bd mov sp, r7
  95852. 80269b4: bd80 pop {r7, pc}
  95853. 80269b6: bf00 nop
  95854. 80269b8: 080304bc .word 0x080304bc
  95855. 080269bc <MQTTConnect>:
  95856. int MQTTConnect(MQTTClient* c, MQTTPacket_connectData* options)
  95857. {
  95858. 80269bc: b580 push {r7, lr}
  95859. 80269be: b084 sub sp, #16
  95860. 80269c0: af00 add r7, sp, #0
  95861. 80269c2: 6078 str r0, [r7, #4]
  95862. 80269c4: 6039 str r1, [r7, #0]
  95863. MQTTConnackData data;
  95864. return MQTTConnectWithResults(c, options, &data);
  95865. 80269c6: f107 030c add.w r3, r7, #12
  95866. 80269ca: 461a mov r2, r3
  95867. 80269cc: 6839 ldr r1, [r7, #0]
  95868. 80269ce: 6878 ldr r0, [r7, #4]
  95869. 80269d0: f7ff ff56 bl 8026880 <MQTTConnectWithResults>
  95870. 80269d4: 4603 mov r3, r0
  95871. }
  95872. 80269d6: 4618 mov r0, r3
  95873. 80269d8: 3710 adds r7, #16
  95874. 80269da: 46bd mov sp, r7
  95875. 80269dc: bd80 pop {r7, pc}
  95876. 080269de <MQTTSetMessageHandler>:
  95877. int MQTTSetMessageHandler(MQTTClient* c, const char* topicFilter, messageHandler messageHandler)
  95878. {
  95879. 80269de: b580 push {r7, lr}
  95880. 80269e0: b086 sub sp, #24
  95881. 80269e2: af00 add r7, sp, #0
  95882. 80269e4: 60f8 str r0, [r7, #12]
  95883. 80269e6: 60b9 str r1, [r7, #8]
  95884. 80269e8: 607a str r2, [r7, #4]
  95885. int rc = FAILURE;
  95886. 80269ea: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  95887. 80269ee: 617b str r3, [r7, #20]
  95888. int i = -1;
  95889. 80269f0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  95890. 80269f4: 613b str r3, [r7, #16]
  95891. /* first check for an existing matching slot */
  95892. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  95893. 80269f6: 2300 movs r3, #0
  95894. 80269f8: 613b str r3, [r7, #16]
  95895. 80269fa: e028 b.n 8026a4e <MQTTSetMessageHandler+0x70>
  95896. {
  95897. if (c->messageHandlers[i].topicFilter != NULL && strcmp(c->messageHandlers[i].topicFilter, topicFilter) == 0)
  95898. 80269fc: 68fb ldr r3, [r7, #12]
  95899. 80269fe: 693a ldr r2, [r7, #16]
  95900. 8026a00: 3205 adds r2, #5
  95901. 8026a02: f853 3032 ldr.w r3, [r3, r2, lsl #3]
  95902. 8026a06: 2b00 cmp r3, #0
  95903. 8026a08: d01e beq.n 8026a48 <MQTTSetMessageHandler+0x6a>
  95904. 8026a0a: 68fb ldr r3, [r7, #12]
  95905. 8026a0c: 693a ldr r2, [r7, #16]
  95906. 8026a0e: 3205 adds r2, #5
  95907. 8026a10: f853 3032 ldr.w r3, [r3, r2, lsl #3]
  95908. 8026a14: 68b9 ldr r1, [r7, #8]
  95909. 8026a16: 4618 mov r0, r3
  95910. 8026a18: f7d9 fc62 bl 80002e0 <strcmp>
  95911. 8026a1c: 4603 mov r3, r0
  95912. 8026a1e: 2b00 cmp r3, #0
  95913. 8026a20: d112 bne.n 8026a48 <MQTTSetMessageHandler+0x6a>
  95914. {
  95915. if (messageHandler == NULL) /* remove existing */
  95916. 8026a22: 687b ldr r3, [r7, #4]
  95917. 8026a24: 2b00 cmp r3, #0
  95918. 8026a26: d10c bne.n 8026a42 <MQTTSetMessageHandler+0x64>
  95919. {
  95920. c->messageHandlers[i].topicFilter = NULL;
  95921. 8026a28: 68fb ldr r3, [r7, #12]
  95922. 8026a2a: 693a ldr r2, [r7, #16]
  95923. 8026a2c: 3205 adds r2, #5
  95924. 8026a2e: 2100 movs r1, #0
  95925. 8026a30: f843 1032 str.w r1, [r3, r2, lsl #3]
  95926. c->messageHandlers[i].fp = NULL;
  95927. 8026a34: 68fa ldr r2, [r7, #12]
  95928. 8026a36: 693b ldr r3, [r7, #16]
  95929. 8026a38: 3305 adds r3, #5
  95930. 8026a3a: 00db lsls r3, r3, #3
  95931. 8026a3c: 4413 add r3, r2
  95932. 8026a3e: 2200 movs r2, #0
  95933. 8026a40: 605a str r2, [r3, #4]
  95934. }
  95935. rc = MQTT_SUCCESS; /* return i when adding new subscription */
  95936. 8026a42: 2300 movs r3, #0
  95937. 8026a44: 617b str r3, [r7, #20]
  95938. break;
  95939. 8026a46: e005 b.n 8026a54 <MQTTSetMessageHandler+0x76>
  95940. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  95941. 8026a48: 693b ldr r3, [r7, #16]
  95942. 8026a4a: 3301 adds r3, #1
  95943. 8026a4c: 613b str r3, [r7, #16]
  95944. 8026a4e: 693b ldr r3, [r7, #16]
  95945. 8026a50: 2b04 cmp r3, #4
  95946. 8026a52: ddd3 ble.n 80269fc <MQTTSetMessageHandler+0x1e>
  95947. }
  95948. }
  95949. /* if no existing, look for empty slot (unless we are removing) */
  95950. if (messageHandler != NULL) {
  95951. 8026a54: 687b ldr r3, [r7, #4]
  95952. 8026a56: 2b00 cmp r3, #0
  95953. 8026a58: d026 beq.n 8026aa8 <MQTTSetMessageHandler+0xca>
  95954. if (rc == FAILURE)
  95955. 8026a5a: 697b ldr r3, [r7, #20]
  95956. 8026a5c: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  95957. 8026a60: d112 bne.n 8026a88 <MQTTSetMessageHandler+0xaa>
  95958. {
  95959. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  95960. 8026a62: 2300 movs r3, #0
  95961. 8026a64: 613b str r3, [r7, #16]
  95962. 8026a66: e00c b.n 8026a82 <MQTTSetMessageHandler+0xa4>
  95963. {
  95964. if (c->messageHandlers[i].topicFilter == NULL)
  95965. 8026a68: 68fb ldr r3, [r7, #12]
  95966. 8026a6a: 693a ldr r2, [r7, #16]
  95967. 8026a6c: 3205 adds r2, #5
  95968. 8026a6e: f853 3032 ldr.w r3, [r3, r2, lsl #3]
  95969. 8026a72: 2b00 cmp r3, #0
  95970. 8026a74: d102 bne.n 8026a7c <MQTTSetMessageHandler+0x9e>
  95971. {
  95972. rc = MQTT_SUCCESS;
  95973. 8026a76: 2300 movs r3, #0
  95974. 8026a78: 617b str r3, [r7, #20]
  95975. break;
  95976. 8026a7a: e005 b.n 8026a88 <MQTTSetMessageHandler+0xaa>
  95977. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  95978. 8026a7c: 693b ldr r3, [r7, #16]
  95979. 8026a7e: 3301 adds r3, #1
  95980. 8026a80: 613b str r3, [r7, #16]
  95981. 8026a82: 693b ldr r3, [r7, #16]
  95982. 8026a84: 2b04 cmp r3, #4
  95983. 8026a86: ddef ble.n 8026a68 <MQTTSetMessageHandler+0x8a>
  95984. }
  95985. }
  95986. }
  95987. if (i < MAX_MESSAGE_HANDLERS)
  95988. 8026a88: 693b ldr r3, [r7, #16]
  95989. 8026a8a: 2b04 cmp r3, #4
  95990. 8026a8c: dc0c bgt.n 8026aa8 <MQTTSetMessageHandler+0xca>
  95991. {
  95992. c->messageHandlers[i].topicFilter = topicFilter;
  95993. 8026a8e: 68fb ldr r3, [r7, #12]
  95994. 8026a90: 693a ldr r2, [r7, #16]
  95995. 8026a92: 3205 adds r2, #5
  95996. 8026a94: 68b9 ldr r1, [r7, #8]
  95997. 8026a96: f843 1032 str.w r1, [r3, r2, lsl #3]
  95998. c->messageHandlers[i].fp = messageHandler;
  95999. 8026a9a: 68fa ldr r2, [r7, #12]
  96000. 8026a9c: 693b ldr r3, [r7, #16]
  96001. 8026a9e: 3305 adds r3, #5
  96002. 8026aa0: 00db lsls r3, r3, #3
  96003. 8026aa2: 4413 add r3, r2
  96004. 8026aa4: 687a ldr r2, [r7, #4]
  96005. 8026aa6: 605a str r2, [r3, #4]
  96006. }
  96007. }
  96008. return rc;
  96009. 8026aa8: 697b ldr r3, [r7, #20]
  96010. }
  96011. 8026aaa: 4618 mov r0, r3
  96012. 8026aac: 3718 adds r7, #24
  96013. 8026aae: 46bd mov sp, r7
  96014. 8026ab0: bd80 pop {r7, pc}
  96015. 08026ab2 <MQTTSubscribeWithResults>:
  96016. int MQTTSubscribeWithResults(MQTTClient* c, const char* topicFilter, enum QoS qos,
  96017. messageHandler messageHandler, MQTTSubackData* data)
  96018. {
  96019. 8026ab2: b5b0 push {r4, r5, r7, lr}
  96020. 8026ab4: b094 sub sp, #80 @ 0x50
  96021. 8026ab6: af04 add r7, sp, #16
  96022. 8026ab8: 60f8 str r0, [r7, #12]
  96023. 8026aba: 60b9 str r1, [r7, #8]
  96024. 8026abc: 603b str r3, [r7, #0]
  96025. 8026abe: 4613 mov r3, r2
  96026. 8026ac0: 71fb strb r3, [r7, #7]
  96027. int rc = FAILURE;
  96028. 8026ac2: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96029. 8026ac6: 63fb str r3, [r7, #60] @ 0x3c
  96030. Timer timer;
  96031. int len = 0;
  96032. 8026ac8: 2300 movs r3, #0
  96033. 8026aca: 63bb str r3, [r7, #56] @ 0x38
  96034. MQTTString topic = MQTTString_initializer;
  96035. 8026acc: 2300 movs r3, #0
  96036. 8026ace: 627b str r3, [r7, #36] @ 0x24
  96037. 8026ad0: 2300 movs r3, #0
  96038. 8026ad2: 62bb str r3, [r7, #40] @ 0x28
  96039. 8026ad4: 2300 movs r3, #0
  96040. 8026ad6: 62fb str r3, [r7, #44] @ 0x2c
  96041. topic.cstring = (char *)topicFilter;
  96042. 8026ad8: 68bb ldr r3, [r7, #8]
  96043. 8026ada: 627b str r3, [r7, #36] @ 0x24
  96044. #if defined(MQTT_TASK)
  96045. MutexLock(&c->mutex);
  96046. #endif
  96047. // osMutexAcquire(mqttMutex, osWaitForever);
  96048. osMutexAcquire(c->mutex, osWaitForever);
  96049. 8026adc: 68fb ldr r3, [r7, #12]
  96050. 8026ade: 6e9b ldr r3, [r3, #104] @ 0x68
  96051. 8026ae0: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  96052. 8026ae4: 4618 mov r0, r3
  96053. 8026ae6: f7e9 fd8d bl 8010604 <osMutexAcquire>
  96054. if (!c->isconnected)
  96055. 8026aea: 68fb ldr r3, [r7, #12]
  96056. 8026aec: 6a1b ldr r3, [r3, #32]
  96057. 8026aee: 2b00 cmp r3, #0
  96058. 8026af0: d069 beq.n 8026bc6 <MQTTSubscribeWithResults+0x114>
  96059. goto exit;
  96060. TimerInit(&timer);
  96061. 8026af2: f107 0330 add.w r3, r7, #48 @ 0x30
  96062. 8026af6: 4618 mov r0, r3
  96063. 8026af8: f000 f9bc bl 8026e74 <TimerInit>
  96064. TimerCountdownMS(&timer, c->command_timeout_ms);
  96065. 8026afc: 68fb ldr r3, [r7, #12]
  96066. 8026afe: 685a ldr r2, [r3, #4]
  96067. 8026b00: f107 0330 add.w r3, r7, #48 @ 0x30
  96068. 8026b04: 4611 mov r1, r2
  96069. 8026b06: 4618 mov r0, r3
  96070. 8026b08: f000 f972 bl 8026df0 <TimerCountdownMS>
  96071. int _qos[1] = {(int)qos};
  96072. 8026b0c: 79fb ldrb r3, [r7, #7]
  96073. 8026b0e: 623b str r3, [r7, #32]
  96074. len = MQTTSerialize_subscribe(c->buf, c->buf_size, 0, getNextPacketId(c), 1, &topic, _qos);
  96075. 8026b10: 68fb ldr r3, [r7, #12]
  96076. 8026b12: 691c ldr r4, [r3, #16]
  96077. 8026b14: 68fb ldr r3, [r7, #12]
  96078. 8026b16: 689b ldr r3, [r3, #8]
  96079. 8026b18: 461d mov r5, r3
  96080. 8026b1a: 68f8 ldr r0, [r7, #12]
  96081. 8026b1c: f7ff fa90 bl 8026040 <getNextPacketId>
  96082. 8026b20: 4603 mov r3, r0
  96083. 8026b22: b29a uxth r2, r3
  96084. 8026b24: f107 0320 add.w r3, r7, #32
  96085. 8026b28: 9302 str r3, [sp, #8]
  96086. 8026b2a: f107 0324 add.w r3, r7, #36 @ 0x24
  96087. 8026b2e: 9301 str r3, [sp, #4]
  96088. 8026b30: 2301 movs r3, #1
  96089. 8026b32: 9300 str r3, [sp, #0]
  96090. 8026b34: 4613 mov r3, r2
  96091. 8026b36: 2200 movs r2, #0
  96092. 8026b38: 4629 mov r1, r5
  96093. 8026b3a: 4620 mov r0, r4
  96094. 8026b3c: f001 f81b bl 8027b76 <MQTTSerialize_subscribe>
  96095. 8026b40: 63b8 str r0, [r7, #56] @ 0x38
  96096. // len = MQTTSerialize_subscribe(c->buf, c->buf_size, 0, getNextPacketId(c), 1, &topic, (int*)&qos);
  96097. if (len <= 0)
  96098. 8026b42: 6bbb ldr r3, [r7, #56] @ 0x38
  96099. 8026b44: 2b00 cmp r3, #0
  96100. 8026b46: dd40 ble.n 8026bca <MQTTSubscribeWithResults+0x118>
  96101. goto exit;
  96102. if ((rc = sendPacket(c, len, &timer)) != MQTT_SUCCESS) // send the subscribe packet
  96103. 8026b48: f107 0330 add.w r3, r7, #48 @ 0x30
  96104. 8026b4c: 461a mov r2, r3
  96105. 8026b4e: 6bb9 ldr r1, [r7, #56] @ 0x38
  96106. 8026b50: 68f8 ldr r0, [r7, #12]
  96107. 8026b52: f7ff fa8e bl 8026072 <sendPacket>
  96108. 8026b56: 63f8 str r0, [r7, #60] @ 0x3c
  96109. 8026b58: 6bfb ldr r3, [r7, #60] @ 0x3c
  96110. 8026b5a: 2b00 cmp r3, #0
  96111. 8026b5c: d137 bne.n 8026bce <MQTTSubscribeWithResults+0x11c>
  96112. goto exit; // there was a problem
  96113. if (waitfor(c, SUBACK, &timer) == SUBACK) // wait for suback
  96114. 8026b5e: f107 0330 add.w r3, r7, #48 @ 0x30
  96115. 8026b62: 461a mov r2, r3
  96116. 8026b64: 2109 movs r1, #9
  96117. 8026b66: 68f8 ldr r0, [r7, #12]
  96118. 8026b68: f7ff fe67 bl 802683a <waitfor>
  96119. 8026b6c: 4603 mov r3, r0
  96120. 8026b6e: 2b09 cmp r3, #9
  96121. 8026b70: d125 bne.n 8026bbe <MQTTSubscribeWithResults+0x10c>
  96122. {
  96123. int count = 0;
  96124. 8026b72: 2300 movs r3, #0
  96125. 8026b74: 61fb str r3, [r7, #28]
  96126. unsigned short mypacketid;
  96127. data->grantedQoS = QOS0;
  96128. 8026b76: 6d3b ldr r3, [r7, #80] @ 0x50
  96129. 8026b78: 2200 movs r2, #0
  96130. 8026b7a: 701a strb r2, [r3, #0]
  96131. int _grantedQoS[1] = {(int)&data->grantedQoS};
  96132. 8026b7c: 6d3b ldr r3, [r7, #80] @ 0x50
  96133. 8026b7e: 617b str r3, [r7, #20]
  96134. // if (MQTTDeserialize_suback(&mypacketid, 1, &count, (int*)&data->grantedQoS, c->readbuf, c->readbuf_size) == 1)
  96135. if (MQTTDeserialize_suback(&mypacketid, 1, &count, _grantedQoS, c->readbuf, c->readbuf_size) == 1)
  96136. 8026b80: 68fb ldr r3, [r7, #12]
  96137. 8026b82: 695b ldr r3, [r3, #20]
  96138. 8026b84: 68fa ldr r2, [r7, #12]
  96139. 8026b86: 68d2 ldr r2, [r2, #12]
  96140. 8026b88: 4614 mov r4, r2
  96141. 8026b8a: f107 0114 add.w r1, r7, #20
  96142. 8026b8e: f107 021c add.w r2, r7, #28
  96143. 8026b92: f107 001a add.w r0, r7, #26
  96144. 8026b96: 9401 str r4, [sp, #4]
  96145. 8026b98: 9300 str r3, [sp, #0]
  96146. 8026b9a: 460b mov r3, r1
  96147. 8026b9c: 2101 movs r1, #1
  96148. 8026b9e: f001 f866 bl 8027c6e <MQTTDeserialize_suback>
  96149. 8026ba2: 4603 mov r3, r0
  96150. 8026ba4: 2b01 cmp r3, #1
  96151. 8026ba6: d113 bne.n 8026bd0 <MQTTSubscribeWithResults+0x11e>
  96152. {
  96153. if (data->grantedQoS != 0x80)
  96154. 8026ba8: 6d3b ldr r3, [r7, #80] @ 0x50
  96155. 8026baa: 781b ldrb r3, [r3, #0]
  96156. 8026bac: 2b80 cmp r3, #128 @ 0x80
  96157. 8026bae: d00f beq.n 8026bd0 <MQTTSubscribeWithResults+0x11e>
  96158. rc = MQTTSetMessageHandler(c, topicFilter, messageHandler);
  96159. 8026bb0: 683a ldr r2, [r7, #0]
  96160. 8026bb2: 68b9 ldr r1, [r7, #8]
  96161. 8026bb4: 68f8 ldr r0, [r7, #12]
  96162. 8026bb6: f7ff ff12 bl 80269de <MQTTSetMessageHandler>
  96163. 8026bba: 63f8 str r0, [r7, #60] @ 0x3c
  96164. 8026bbc: e008 b.n 8026bd0 <MQTTSubscribeWithResults+0x11e>
  96165. }
  96166. }
  96167. else
  96168. rc = FAILURE;
  96169. 8026bbe: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96170. 8026bc2: 63fb str r3, [r7, #60] @ 0x3c
  96171. 8026bc4: e004 b.n 8026bd0 <MQTTSubscribeWithResults+0x11e>
  96172. goto exit;
  96173. 8026bc6: bf00 nop
  96174. 8026bc8: e002 b.n 8026bd0 <MQTTSubscribeWithResults+0x11e>
  96175. goto exit;
  96176. 8026bca: bf00 nop
  96177. 8026bcc: e000 b.n 8026bd0 <MQTTSubscribeWithResults+0x11e>
  96178. goto exit; // there was a problem
  96179. 8026bce: bf00 nop
  96180. exit:
  96181. if (rc == FAILURE)
  96182. 8026bd0: 6bfb ldr r3, [r7, #60] @ 0x3c
  96183. 8026bd2: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  96184. 8026bd6: d102 bne.n 8026bde <MQTTSubscribeWithResults+0x12c>
  96185. MQTTCloseSession(c);
  96186. 8026bd8: 68f8 ldr r0, [r7, #12]
  96187. 8026bda: f7ff fceb bl 80265b4 <MQTTCloseSession>
  96188. #if defined(MQTT_TASK)
  96189. MutexUnlock(&c->mutex);
  96190. #endif
  96191. // osMutexRelease(mqttMutex);
  96192. osMutexRelease(c->mutex);
  96193. 8026bde: 68fb ldr r3, [r7, #12]
  96194. 8026be0: 6e9b ldr r3, [r3, #104] @ 0x68
  96195. 8026be2: 4618 mov r0, r3
  96196. 8026be4: f7e9 fd59 bl 801069a <osMutexRelease>
  96197. return rc;
  96198. 8026be8: 6bfb ldr r3, [r7, #60] @ 0x3c
  96199. }
  96200. 8026bea: 4618 mov r0, r3
  96201. 8026bec: 3740 adds r7, #64 @ 0x40
  96202. 8026bee: 46bd mov sp, r7
  96203. 8026bf0: bdb0 pop {r4, r5, r7, pc}
  96204. 08026bf2 <MQTTSubscribe>:
  96205. int MQTTSubscribe(MQTTClient* c, const char* topicFilter, enum QoS qos,
  96206. messageHandler messageHandler)
  96207. {
  96208. 8026bf2: b580 push {r7, lr}
  96209. 8026bf4: b088 sub sp, #32
  96210. 8026bf6: af02 add r7, sp, #8
  96211. 8026bf8: 60f8 str r0, [r7, #12]
  96212. 8026bfa: 60b9 str r1, [r7, #8]
  96213. 8026bfc: 603b str r3, [r7, #0]
  96214. 8026bfe: 4613 mov r3, r2
  96215. 8026c00: 71fb strb r3, [r7, #7]
  96216. MQTTSubackData data;
  96217. return MQTTSubscribeWithResults(c, topicFilter, qos, messageHandler, &data);
  96218. 8026c02: 79fa ldrb r2, [r7, #7]
  96219. 8026c04: f107 0314 add.w r3, r7, #20
  96220. 8026c08: 9300 str r3, [sp, #0]
  96221. 8026c0a: 683b ldr r3, [r7, #0]
  96222. 8026c0c: 68b9 ldr r1, [r7, #8]
  96223. 8026c0e: 68f8 ldr r0, [r7, #12]
  96224. 8026c10: f7ff ff4f bl 8026ab2 <MQTTSubscribeWithResults>
  96225. 8026c14: 4603 mov r3, r0
  96226. }
  96227. 8026c16: 4618 mov r0, r3
  96228. 8026c18: 3718 adds r7, #24
  96229. 8026c1a: 46bd mov sp, r7
  96230. 8026c1c: bd80 pop {r7, pc}
  96231. 08026c1e <MQTTPublish>:
  96232. return rc;
  96233. }
  96234. int MQTTPublish(MQTTClient* c, const char* topicName, MQTTMessage* message)
  96235. {
  96236. 8026c1e: b5f0 push {r4, r5, r6, r7, lr}
  96237. 8026c20: b097 sub sp, #92 @ 0x5c
  96238. 8026c22: af08 add r7, sp, #32
  96239. 8026c24: 60f8 str r0, [r7, #12]
  96240. 8026c26: 60b9 str r1, [r7, #8]
  96241. 8026c28: 607a str r2, [r7, #4]
  96242. int rc = FAILURE;
  96243. 8026c2a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96244. 8026c2e: 637b str r3, [r7, #52] @ 0x34
  96245. Timer timer;
  96246. MQTTString topic = MQTTString_initializer;
  96247. 8026c30: 2300 movs r3, #0
  96248. 8026c32: 61fb str r3, [r7, #28]
  96249. 8026c34: 2300 movs r3, #0
  96250. 8026c36: 623b str r3, [r7, #32]
  96251. 8026c38: 2300 movs r3, #0
  96252. 8026c3a: 627b str r3, [r7, #36] @ 0x24
  96253. topic.cstring = (char *)topicName;
  96254. 8026c3c: 68bb ldr r3, [r7, #8]
  96255. 8026c3e: 61fb str r3, [r7, #28]
  96256. int len = 0;
  96257. 8026c40: 2300 movs r3, #0
  96258. 8026c42: 633b str r3, [r7, #48] @ 0x30
  96259. #if defined(MQTT_TASK)
  96260. MutexLock(&c->mutex);
  96261. #endif
  96262. // osMutexAcquire(mqttMutex, osWaitForever);
  96263. osMutexAcquire(c->mutex, osWaitForever);
  96264. 8026c44: 68fb ldr r3, [r7, #12]
  96265. 8026c46: 6e9b ldr r3, [r3, #104] @ 0x68
  96266. 8026c48: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  96267. 8026c4c: 4618 mov r0, r3
  96268. 8026c4e: f7e9 fcd9 bl 8010604 <osMutexAcquire>
  96269. if (!c->isconnected)
  96270. 8026c52: 68fb ldr r3, [r7, #12]
  96271. 8026c54: 6a1b ldr r3, [r3, #32]
  96272. 8026c56: 2b00 cmp r3, #0
  96273. 8026c58: f000 809b beq.w 8026d92 <MQTTPublish+0x174>
  96274. goto exit;
  96275. TimerInit(&timer);
  96276. 8026c5c: f107 0328 add.w r3, r7, #40 @ 0x28
  96277. 8026c60: 4618 mov r0, r3
  96278. 8026c62: f000 f907 bl 8026e74 <TimerInit>
  96279. TimerCountdownMS(&timer, c->command_timeout_ms);
  96280. 8026c66: 68fb ldr r3, [r7, #12]
  96281. 8026c68: 685a ldr r2, [r3, #4]
  96282. 8026c6a: f107 0328 add.w r3, r7, #40 @ 0x28
  96283. 8026c6e: 4611 mov r1, r2
  96284. 8026c70: 4618 mov r0, r3
  96285. 8026c72: f000 f8bd bl 8026df0 <TimerCountdownMS>
  96286. if (message->qos == QOS1 || message->qos == QOS2)
  96287. 8026c76: 687b ldr r3, [r7, #4]
  96288. 8026c78: 781b ldrb r3, [r3, #0]
  96289. 8026c7a: 2b01 cmp r3, #1
  96290. 8026c7c: d003 beq.n 8026c86 <MQTTPublish+0x68>
  96291. 8026c7e: 687b ldr r3, [r7, #4]
  96292. 8026c80: 781b ldrb r3, [r3, #0]
  96293. 8026c82: 2b02 cmp r3, #2
  96294. 8026c84: d106 bne.n 8026c94 <MQTTPublish+0x76>
  96295. message->id = getNextPacketId(c);
  96296. 8026c86: 68f8 ldr r0, [r7, #12]
  96297. 8026c88: f7ff f9da bl 8026040 <getNextPacketId>
  96298. 8026c8c: 4603 mov r3, r0
  96299. 8026c8e: b29a uxth r2, r3
  96300. 8026c90: 687b ldr r3, [r7, #4]
  96301. 8026c92: 809a strh r2, [r3, #4]
  96302. len = MQTTSerialize_publish(c->buf, c->buf_size, 0, message->qos, message->retained, message->id,
  96303. 8026c94: 68fb ldr r3, [r7, #12]
  96304. 8026c96: 691b ldr r3, [r3, #16]
  96305. 8026c98: 603b str r3, [r7, #0]
  96306. 8026c9a: 68fb ldr r3, [r7, #12]
  96307. 8026c9c: 689b ldr r3, [r3, #8]
  96308. 8026c9e: 469c mov ip, r3
  96309. 8026ca0: 687b ldr r3, [r7, #4]
  96310. 8026ca2: 781b ldrb r3, [r3, #0]
  96311. 8026ca4: 469e mov lr, r3
  96312. 8026ca6: 687b ldr r3, [r7, #4]
  96313. 8026ca8: 785d ldrb r5, [r3, #1]
  96314. 8026caa: 687b ldr r3, [r7, #4]
  96315. 8026cac: 889e ldrh r6, [r3, #4]
  96316. topic, (unsigned char*)message->payload, message->payloadlen);
  96317. 8026cae: 687b ldr r3, [r7, #4]
  96318. 8026cb0: 689b ldr r3, [r3, #8]
  96319. 8026cb2: 687a ldr r2, [r7, #4]
  96320. 8026cb4: 68d2 ldr r2, [r2, #12]
  96321. len = MQTTSerialize_publish(c->buf, c->buf_size, 0, message->qos, message->retained, message->id,
  96322. 8026cb6: 9206 str r2, [sp, #24]
  96323. 8026cb8: 9305 str r3, [sp, #20]
  96324. 8026cba: ac02 add r4, sp, #8
  96325. 8026cbc: f107 031c add.w r3, r7, #28
  96326. 8026cc0: e893 0007 ldmia.w r3, {r0, r1, r2}
  96327. 8026cc4: e884 0007 stmia.w r4, {r0, r1, r2}
  96328. 8026cc8: 9601 str r6, [sp, #4]
  96329. 8026cca: 9500 str r5, [sp, #0]
  96330. 8026ccc: 4673 mov r3, lr
  96331. 8026cce: 2200 movs r2, #0
  96332. 8026cd0: 4661 mov r1, ip
  96333. 8026cd2: 6838 ldr r0, [r7, #0]
  96334. 8026cd4: f000 fe5d bl 8027992 <MQTTSerialize_publish>
  96335. 8026cd8: 6338 str r0, [r7, #48] @ 0x30
  96336. if (len <= 0)
  96337. 8026cda: 6b3b ldr r3, [r7, #48] @ 0x30
  96338. 8026cdc: 2b00 cmp r3, #0
  96339. 8026cde: dd5a ble.n 8026d96 <MQTTPublish+0x178>
  96340. goto exit;
  96341. if ((rc = sendPacket(c, len, &timer)) != MQTT_SUCCESS) // send the subscribe packet
  96342. 8026ce0: f107 0328 add.w r3, r7, #40 @ 0x28
  96343. 8026ce4: 461a mov r2, r3
  96344. 8026ce6: 6b39 ldr r1, [r7, #48] @ 0x30
  96345. 8026ce8: 68f8 ldr r0, [r7, #12]
  96346. 8026cea: f7ff f9c2 bl 8026072 <sendPacket>
  96347. 8026cee: 6378 str r0, [r7, #52] @ 0x34
  96348. 8026cf0: 6b7b ldr r3, [r7, #52] @ 0x34
  96349. 8026cf2: 2b00 cmp r3, #0
  96350. 8026cf4: d151 bne.n 8026d9a <MQTTPublish+0x17c>
  96351. goto exit; // there was a problem
  96352. if (message->qos == QOS1)
  96353. 8026cf6: 687b ldr r3, [r7, #4]
  96354. 8026cf8: 781b ldrb r3, [r3, #0]
  96355. 8026cfa: 2b01 cmp r3, #1
  96356. 8026cfc: d122 bne.n 8026d44 <MQTTPublish+0x126>
  96357. {
  96358. if (waitfor(c, PUBACK, &timer) == PUBACK)
  96359. 8026cfe: f107 0328 add.w r3, r7, #40 @ 0x28
  96360. 8026d02: 461a mov r2, r3
  96361. 8026d04: 2104 movs r1, #4
  96362. 8026d06: 68f8 ldr r0, [r7, #12]
  96363. 8026d08: f7ff fd97 bl 802683a <waitfor>
  96364. 8026d0c: 4603 mov r3, r0
  96365. 8026d0e: 2b04 cmp r3, #4
  96366. 8026d10: d114 bne.n 8026d3c <MQTTPublish+0x11e>
  96367. {
  96368. unsigned short mypacketid;
  96369. unsigned char dup, type;
  96370. if (MQTTDeserialize_ack(&type, &dup, &mypacketid, c->readbuf, c->readbuf_size) != 1)
  96371. 8026d12: 68fb ldr r3, [r7, #12]
  96372. 8026d14: 695c ldr r4, [r3, #20]
  96373. 8026d16: 68fb ldr r3, [r7, #12]
  96374. 8026d18: 68db ldr r3, [r3, #12]
  96375. 8026d1a: f107 021a add.w r2, r7, #26
  96376. 8026d1e: f107 0119 add.w r1, r7, #25
  96377. 8026d22: f107 0018 add.w r0, r7, #24
  96378. 8026d26: 9300 str r3, [sp, #0]
  96379. 8026d28: 4623 mov r3, r4
  96380. 8026d2a: f000 fbc1 bl 80274b0 <MQTTDeserialize_ack>
  96381. 8026d2e: 4603 mov r3, r0
  96382. 8026d30: 2b01 cmp r3, #1
  96383. 8026d32: d035 beq.n 8026da0 <MQTTPublish+0x182>
  96384. rc = FAILURE;
  96385. 8026d34: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96386. 8026d38: 637b str r3, [r7, #52] @ 0x34
  96387. 8026d3a: e031 b.n 8026da0 <MQTTPublish+0x182>
  96388. }
  96389. else
  96390. rc = FAILURE;
  96391. 8026d3c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96392. 8026d40: 637b str r3, [r7, #52] @ 0x34
  96393. 8026d42: e02d b.n 8026da0 <MQTTPublish+0x182>
  96394. }
  96395. else if (message->qos == QOS2)
  96396. 8026d44: 687b ldr r3, [r7, #4]
  96397. 8026d46: 781b ldrb r3, [r3, #0]
  96398. 8026d48: 2b02 cmp r3, #2
  96399. 8026d4a: d128 bne.n 8026d9e <MQTTPublish+0x180>
  96400. {
  96401. if (waitfor(c, PUBCOMP, &timer) == PUBCOMP)
  96402. 8026d4c: f107 0328 add.w r3, r7, #40 @ 0x28
  96403. 8026d50: 461a mov r2, r3
  96404. 8026d52: 2107 movs r1, #7
  96405. 8026d54: 68f8 ldr r0, [r7, #12]
  96406. 8026d56: f7ff fd70 bl 802683a <waitfor>
  96407. 8026d5a: 4603 mov r3, r0
  96408. 8026d5c: 2b07 cmp r3, #7
  96409. 8026d5e: d114 bne.n 8026d8a <MQTTPublish+0x16c>
  96410. {
  96411. unsigned short mypacketid;
  96412. unsigned char dup, type;
  96413. if (MQTTDeserialize_ack(&type, &dup, &mypacketid, c->readbuf, c->readbuf_size) != 1)
  96414. 8026d60: 68fb ldr r3, [r7, #12]
  96415. 8026d62: 695c ldr r4, [r3, #20]
  96416. 8026d64: 68fb ldr r3, [r7, #12]
  96417. 8026d66: 68db ldr r3, [r3, #12]
  96418. 8026d68: f107 0216 add.w r2, r7, #22
  96419. 8026d6c: f107 0115 add.w r1, r7, #21
  96420. 8026d70: f107 0014 add.w r0, r7, #20
  96421. 8026d74: 9300 str r3, [sp, #0]
  96422. 8026d76: 4623 mov r3, r4
  96423. 8026d78: f000 fb9a bl 80274b0 <MQTTDeserialize_ack>
  96424. 8026d7c: 4603 mov r3, r0
  96425. 8026d7e: 2b01 cmp r3, #1
  96426. 8026d80: d00e beq.n 8026da0 <MQTTPublish+0x182>
  96427. rc = FAILURE;
  96428. 8026d82: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96429. 8026d86: 637b str r3, [r7, #52] @ 0x34
  96430. 8026d88: e00a b.n 8026da0 <MQTTPublish+0x182>
  96431. }
  96432. else
  96433. rc = FAILURE;
  96434. 8026d8a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96435. 8026d8e: 637b str r3, [r7, #52] @ 0x34
  96436. 8026d90: e006 b.n 8026da0 <MQTTPublish+0x182>
  96437. goto exit;
  96438. 8026d92: bf00 nop
  96439. 8026d94: e004 b.n 8026da0 <MQTTPublish+0x182>
  96440. goto exit;
  96441. 8026d96: bf00 nop
  96442. 8026d98: e002 b.n 8026da0 <MQTTPublish+0x182>
  96443. goto exit; // there was a problem
  96444. 8026d9a: bf00 nop
  96445. 8026d9c: e000 b.n 8026da0 <MQTTPublish+0x182>
  96446. }
  96447. exit:
  96448. 8026d9e: bf00 nop
  96449. if (rc == FAILURE)
  96450. 8026da0: 6b7b ldr r3, [r7, #52] @ 0x34
  96451. 8026da2: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  96452. 8026da6: d102 bne.n 8026dae <MQTTPublish+0x190>
  96453. MQTTCloseSession(c);
  96454. 8026da8: 68f8 ldr r0, [r7, #12]
  96455. 8026daa: f7ff fc03 bl 80265b4 <MQTTCloseSession>
  96456. #if defined(MQTT_TASK)
  96457. MutexUnlock(&c->mutex);
  96458. #endif
  96459. // osMutexRelease(mqttMutex);
  96460. osMutexRelease(c->mutex);
  96461. 8026dae: 68fb ldr r3, [r7, #12]
  96462. 8026db0: 6e9b ldr r3, [r3, #104] @ 0x68
  96463. 8026db2: 4618 mov r0, r3
  96464. 8026db4: f7e9 fc71 bl 801069a <osMutexRelease>
  96465. return rc;
  96466. 8026db8: 6b7b ldr r3, [r7, #52] @ 0x34
  96467. }
  96468. 8026dba: 4618 mov r0, r3
  96469. 8026dbc: 373c adds r7, #60 @ 0x3c
  96470. 8026dbe: 46bd mov sp, r7
  96471. 8026dc0: bdf0 pop {r4, r5, r6, r7, pc}
  96472. ...
  96473. 08026dc4 <TimerIsExpired>:
  96474. #define SERVER_IP4 34
  96475. uint32_t MilliTimer;
  96476. //Timer functions
  96477. char TimerIsExpired(Timer *timer) {
  96478. 8026dc4: b480 push {r7}
  96479. 8026dc6: b085 sub sp, #20
  96480. 8026dc8: af00 add r7, sp, #0
  96481. 8026dca: 6078 str r0, [r7, #4]
  96482. long left = timer->end_time - MilliTimer;
  96483. 8026dcc: 687b ldr r3, [r7, #4]
  96484. 8026dce: 685a ldr r2, [r3, #4]
  96485. 8026dd0: 4b06 ldr r3, [pc, #24] @ (8026dec <TimerIsExpired+0x28>)
  96486. 8026dd2: 681b ldr r3, [r3, #0]
  96487. 8026dd4: 1ad3 subs r3, r2, r3
  96488. 8026dd6: 60fb str r3, [r7, #12]
  96489. return (left < 0);
  96490. 8026dd8: 68fb ldr r3, [r7, #12]
  96491. 8026dda: 0fdb lsrs r3, r3, #31
  96492. 8026ddc: b2db uxtb r3, r3
  96493. }
  96494. 8026dde: 4618 mov r0, r3
  96495. 8026de0: 3714 adds r7, #20
  96496. 8026de2: 46bd mov sp, r7
  96497. 8026de4: f85d 7b04 ldr.w r7, [sp], #4
  96498. 8026de8: 4770 bx lr
  96499. 8026dea: bf00 nop
  96500. 8026dec: 2402a198 .word 0x2402a198
  96501. 08026df0 <TimerCountdownMS>:
  96502. void TimerCountdownMS(Timer *timer, unsigned int timeout) {
  96503. 8026df0: b480 push {r7}
  96504. 8026df2: b083 sub sp, #12
  96505. 8026df4: af00 add r7, sp, #0
  96506. 8026df6: 6078 str r0, [r7, #4]
  96507. 8026df8: 6039 str r1, [r7, #0]
  96508. timer->end_time = MilliTimer + timeout;
  96509. 8026dfa: 4b06 ldr r3, [pc, #24] @ (8026e14 <TimerCountdownMS+0x24>)
  96510. 8026dfc: 681a ldr r2, [r3, #0]
  96511. 8026dfe: 683b ldr r3, [r7, #0]
  96512. 8026e00: 441a add r2, r3
  96513. 8026e02: 687b ldr r3, [r7, #4]
  96514. 8026e04: 605a str r2, [r3, #4]
  96515. }
  96516. 8026e06: bf00 nop
  96517. 8026e08: 370c adds r7, #12
  96518. 8026e0a: 46bd mov sp, r7
  96519. 8026e0c: f85d 7b04 ldr.w r7, [sp], #4
  96520. 8026e10: 4770 bx lr
  96521. 8026e12: bf00 nop
  96522. 8026e14: 2402a198 .word 0x2402a198
  96523. 08026e18 <TimerCountdown>:
  96524. void TimerCountdown(Timer *timer, unsigned int timeout) {
  96525. 8026e18: b480 push {r7}
  96526. 8026e1a: b083 sub sp, #12
  96527. 8026e1c: af00 add r7, sp, #0
  96528. 8026e1e: 6078 str r0, [r7, #4]
  96529. 8026e20: 6039 str r1, [r7, #0]
  96530. timer->end_time = MilliTimer + (timeout * 1000);
  96531. 8026e22: 683b ldr r3, [r7, #0]
  96532. 8026e24: f44f 727a mov.w r2, #1000 @ 0x3e8
  96533. 8026e28: fb03 f202 mul.w r2, r3, r2
  96534. 8026e2c: 4b05 ldr r3, [pc, #20] @ (8026e44 <TimerCountdown+0x2c>)
  96535. 8026e2e: 681b ldr r3, [r3, #0]
  96536. 8026e30: 441a add r2, r3
  96537. 8026e32: 687b ldr r3, [r7, #4]
  96538. 8026e34: 605a str r2, [r3, #4]
  96539. }
  96540. 8026e36: bf00 nop
  96541. 8026e38: 370c adds r7, #12
  96542. 8026e3a: 46bd mov sp, r7
  96543. 8026e3c: f85d 7b04 ldr.w r7, [sp], #4
  96544. 8026e40: 4770 bx lr
  96545. 8026e42: bf00 nop
  96546. 8026e44: 2402a198 .word 0x2402a198
  96547. 08026e48 <TimerLeftMS>:
  96548. int TimerLeftMS(Timer *timer) {
  96549. 8026e48: b480 push {r7}
  96550. 8026e4a: b085 sub sp, #20
  96551. 8026e4c: af00 add r7, sp, #0
  96552. 8026e4e: 6078 str r0, [r7, #4]
  96553. long left = timer->end_time - MilliTimer;
  96554. 8026e50: 687b ldr r3, [r7, #4]
  96555. 8026e52: 685a ldr r2, [r3, #4]
  96556. 8026e54: 4b06 ldr r3, [pc, #24] @ (8026e70 <TimerLeftMS+0x28>)
  96557. 8026e56: 681b ldr r3, [r3, #0]
  96558. 8026e58: 1ad3 subs r3, r2, r3
  96559. 8026e5a: 60fb str r3, [r7, #12]
  96560. return (left < 0) ? 0 : left;
  96561. 8026e5c: 68fb ldr r3, [r7, #12]
  96562. 8026e5e: ea23 73e3 bic.w r3, r3, r3, asr #31
  96563. }
  96564. 8026e62: 4618 mov r0, r3
  96565. 8026e64: 3714 adds r7, #20
  96566. 8026e66: 46bd mov sp, r7
  96567. 8026e68: f85d 7b04 ldr.w r7, [sp], #4
  96568. 8026e6c: 4770 bx lr
  96569. 8026e6e: bf00 nop
  96570. 8026e70: 2402a198 .word 0x2402a198
  96571. 08026e74 <TimerInit>:
  96572. void TimerInit(Timer *timer) {
  96573. 8026e74: b480 push {r7}
  96574. 8026e76: b083 sub sp, #12
  96575. 8026e78: af00 add r7, sp, #0
  96576. 8026e7a: 6078 str r0, [r7, #4]
  96577. timer->end_time = 0;
  96578. 8026e7c: 687b ldr r3, [r7, #4]
  96579. 8026e7e: 2200 movs r2, #0
  96580. 8026e80: 605a str r2, [r3, #4]
  96581. }
  96582. 8026e82: bf00 nop
  96583. 8026e84: 370c adds r7, #12
  96584. 8026e86: 46bd mov sp, r7
  96585. 8026e88: f85d 7b04 ldr.w r7, [sp], #4
  96586. 8026e8c: 4770 bx lr
  96587. ...
  96588. 08026e90 <NewNetwork>:
  96589. #ifdef MQTT_LWIP_SOCKET
  96590. void NewNetwork(Network *n) {
  96591. 8026e90: b480 push {r7}
  96592. 8026e92: b083 sub sp, #12
  96593. 8026e94: af00 add r7, sp, #0
  96594. 8026e96: 6078 str r0, [r7, #4]
  96595. n->socket = 0; //clear
  96596. 8026e98: 687b ldr r3, [r7, #4]
  96597. 8026e9a: 2200 movs r2, #0
  96598. 8026e9c: 601a str r2, [r3, #0]
  96599. n->mqttread = net_read; //receive function
  96600. 8026e9e: 687b ldr r3, [r7, #4]
  96601. 8026ea0: 4a06 ldr r2, [pc, #24] @ (8026ebc <NewNetwork+0x2c>)
  96602. 8026ea2: 605a str r2, [r3, #4]
  96603. n->mqttwrite = net_write; //send function
  96604. 8026ea4: 687b ldr r3, [r7, #4]
  96605. 8026ea6: 4a06 ldr r2, [pc, #24] @ (8026ec0 <NewNetwork+0x30>)
  96606. 8026ea8: 609a str r2, [r3, #8]
  96607. n->disconnect = net_disconnect; //disconnection function
  96608. 8026eaa: 687b ldr r3, [r7, #4]
  96609. 8026eac: 4a05 ldr r2, [pc, #20] @ (8026ec4 <NewNetwork+0x34>)
  96610. 8026eae: 60da str r2, [r3, #12]
  96611. }
  96612. 8026eb0: bf00 nop
  96613. 8026eb2: 370c adds r7, #12
  96614. 8026eb4: 46bd mov sp, r7
  96615. 8026eb6: f85d 7b04 ldr.w r7, [sp], #4
  96616. 8026eba: 4770 bx lr
  96617. 8026ebc: 08026f65 .word 0x08026f65
  96618. 8026ec0: 08026fb5 .word 0x08026fb5
  96619. 8026ec4: 08026fdb .word 0x08026fdb
  96620. 08026ec8 <ConnectNetwork>:
  96621. int ConnectNetwork(Network *n, char *ip, int port) {
  96622. 8026ec8: b580 push {r7, lr}
  96623. 8026eca: b088 sub sp, #32
  96624. 8026ecc: af00 add r7, sp, #0
  96625. 8026ece: 60f8 str r0, [r7, #12]
  96626. 8026ed0: 60b9 str r1, [r7, #8]
  96627. 8026ed2: 607a str r2, [r7, #4]
  96628. struct sockaddr_in server_addr;
  96629. if(n->socket)
  96630. 8026ed4: 68fb ldr r3, [r7, #12]
  96631. 8026ed6: 681b ldr r3, [r3, #0]
  96632. 8026ed8: 2b00 cmp r3, #0
  96633. 8026eda: d004 beq.n 8026ee6 <ConnectNetwork+0x1e>
  96634. {
  96635. close(n->socket);
  96636. 8026edc: 68fb ldr r3, [r7, #12]
  96637. 8026ede: 681b ldr r3, [r3, #0]
  96638. 8026ee0: 4618 mov r0, r3
  96639. 8026ee2: f7f0 fa65 bl 80173b0 <lwip_close>
  96640. }
  96641. n->socket = socket(PF_INET, SOCK_STREAM, 0); //create socket
  96642. 8026ee6: 2200 movs r2, #0
  96643. 8026ee8: 2101 movs r1, #1
  96644. 8026eea: 2002 movs r0, #2
  96645. 8026eec: f7f0 ff72 bl 8017dd4 <lwip_socket>
  96646. 8026ef0: 4602 mov r2, r0
  96647. 8026ef2: 68fb ldr r3, [r7, #12]
  96648. 8026ef4: 601a str r2, [r3, #0]
  96649. if(n->socket < 0)
  96650. 8026ef6: 68fb ldr r3, [r7, #12]
  96651. 8026ef8: 681b ldr r3, [r3, #0]
  96652. 8026efa: 2b00 cmp r3, #0
  96653. 8026efc: da05 bge.n 8026f0a <ConnectNetwork+0x42>
  96654. {
  96655. n->socket = 0;
  96656. 8026efe: 68fb ldr r3, [r7, #12]
  96657. 8026f00: 2200 movs r2, #0
  96658. 8026f02: 601a str r2, [r3, #0]
  96659. return -1;
  96660. 8026f04: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96661. 8026f08: e028 b.n 8026f5c <ConnectNetwork+0x94>
  96662. }
  96663. memset(&server_addr, 0, sizeof(struct sockaddr_in)); //broker address info
  96664. 8026f0a: f107 0310 add.w r3, r7, #16
  96665. 8026f0e: 2210 movs r2, #16
  96666. 8026f10: 2100 movs r1, #0
  96667. 8026f12: 4618 mov r0, r3
  96668. 8026f14: f002 fc8c bl 8029830 <memset>
  96669. server_addr.sin_family = AF_INET;
  96670. 8026f18: 2302 movs r3, #2
  96671. 8026f1a: 747b strb r3, [r7, #17]
  96672. server_addr.sin_addr.s_addr = inet_addr(ip);
  96673. 8026f1c: 68b8 ldr r0, [r7, #8]
  96674. 8026f1e: f7fd fde0 bl 8024ae2 <ipaddr_addr>
  96675. 8026f22: 4603 mov r3, r0
  96676. 8026f24: 617b str r3, [r7, #20]
  96677. server_addr.sin_port = htons(port);
  96678. 8026f26: 687b ldr r3, [r7, #4]
  96679. 8026f28: b29b uxth r3, r3
  96680. 8026f2a: 4618 mov r0, r3
  96681. 8026f2c: f7f1 fb94 bl 8018658 <lwip_htons>
  96682. 8026f30: 4603 mov r3, r0
  96683. 8026f32: 827b strh r3, [r7, #18]
  96684. if(connect(n->socket, (struct sockaddr*)&server_addr, sizeof(struct sockaddr_in)) < 0) //connect to the broker
  96685. 8026f34: 68fb ldr r3, [r7, #12]
  96686. 8026f36: 681b ldr r3, [r3, #0]
  96687. 8026f38: f107 0110 add.w r1, r7, #16
  96688. 8026f3c: 2210 movs r2, #16
  96689. 8026f3e: 4618 mov r0, r3
  96690. 8026f40: f7f0 fa8c bl 801745c <lwip_connect>
  96691. 8026f44: 4603 mov r3, r0
  96692. 8026f46: 2b00 cmp r3, #0
  96693. 8026f48: da07 bge.n 8026f5a <ConnectNetwork+0x92>
  96694. {
  96695. close(n->socket);
  96696. 8026f4a: 68fb ldr r3, [r7, #12]
  96697. 8026f4c: 681b ldr r3, [r3, #0]
  96698. 8026f4e: 4618 mov r0, r3
  96699. 8026f50: f7f0 fa2e bl 80173b0 <lwip_close>
  96700. return -1;
  96701. 8026f54: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96702. 8026f58: e000 b.n 8026f5c <ConnectNetwork+0x94>
  96703. }
  96704. return 0;
  96705. 8026f5a: 2300 movs r3, #0
  96706. }
  96707. 8026f5c: 4618 mov r0, r3
  96708. 8026f5e: 3720 adds r7, #32
  96709. 8026f60: 46bd mov sp, r7
  96710. 8026f62: bd80 pop {r7, pc}
  96711. 08026f64 <net_read>:
  96712. int net_read(Network *n, unsigned char *buffer, int len, int timeout_ms) {
  96713. 8026f64: b580 push {r7, lr}
  96714. 8026f66: b086 sub sp, #24
  96715. 8026f68: af00 add r7, sp, #0
  96716. 8026f6a: 60f8 str r0, [r7, #12]
  96717. 8026f6c: 60b9 str r1, [r7, #8]
  96718. 8026f6e: 607a str r2, [r7, #4]
  96719. 8026f70: 603b str r3, [r7, #0]
  96720. int available;
  96721. /* !!! LWIP_SO_RCVBUF must be enabled !!! */
  96722. if(ioctl(n->socket, FIONREAD, &available) < 0) return -1; //check receive buffer
  96723. 8026f72: 68fb ldr r3, [r7, #12]
  96724. 8026f74: 681b ldr r3, [r3, #0]
  96725. 8026f76: f107 0214 add.w r2, r7, #20
  96726. 8026f7a: 490d ldr r1, [pc, #52] @ (8026fb0 <net_read+0x4c>)
  96727. 8026f7c: 4618 mov r0, r3
  96728. 8026f7e: f7f1 f917 bl 80181b0 <lwip_ioctl>
  96729. 8026f82: 4603 mov r3, r0
  96730. 8026f84: 2b00 cmp r3, #0
  96731. 8026f86: da02 bge.n 8026f8e <net_read+0x2a>
  96732. 8026f88: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96733. 8026f8c: e00c b.n 8026fa8 <net_read+0x44>
  96734. if(available > 0)
  96735. 8026f8e: 697b ldr r3, [r7, #20]
  96736. 8026f90: 2b00 cmp r3, #0
  96737. 8026f92: dd08 ble.n 8026fa6 <net_read+0x42>
  96738. {
  96739. return recv(n->socket, buffer, len, 0);
  96740. 8026f94: 68fb ldr r3, [r7, #12]
  96741. 8026f96: 6818 ldr r0, [r3, #0]
  96742. 8026f98: 687a ldr r2, [r7, #4]
  96743. 8026f9a: 2300 movs r3, #0
  96744. 8026f9c: 68b9 ldr r1, [r7, #8]
  96745. 8026f9e: f7f0 fdf3 bl 8017b88 <lwip_recv>
  96746. 8026fa2: 4603 mov r3, r0
  96747. 8026fa4: e000 b.n 8026fa8 <net_read+0x44>
  96748. }
  96749. return 0;
  96750. 8026fa6: 2300 movs r3, #0
  96751. }
  96752. 8026fa8: 4618 mov r0, r3
  96753. 8026faa: 3718 adds r7, #24
  96754. 8026fac: 46bd mov sp, r7
  96755. 8026fae: bd80 pop {r7, pc}
  96756. 8026fb0: 4004667f .word 0x4004667f
  96757. 08026fb4 <net_write>:
  96758. int net_write(Network *n, unsigned char *buffer, int len, int timeout_ms) {
  96759. 8026fb4: b580 push {r7, lr}
  96760. 8026fb6: b084 sub sp, #16
  96761. 8026fb8: af00 add r7, sp, #0
  96762. 8026fba: 60f8 str r0, [r7, #12]
  96763. 8026fbc: 60b9 str r1, [r7, #8]
  96764. 8026fbe: 607a str r2, [r7, #4]
  96765. 8026fc0: 603b str r3, [r7, #0]
  96766. return send(n->socket, buffer, len, 0);
  96767. 8026fc2: 68fb ldr r3, [r7, #12]
  96768. 8026fc4: 6818 ldr r0, [r3, #0]
  96769. 8026fc6: 687a ldr r2, [r7, #4]
  96770. 8026fc8: 2300 movs r3, #0
  96771. 8026fca: 68b9 ldr r1, [r7, #8]
  96772. 8026fcc: f7f0 fdf2 bl 8017bb4 <lwip_send>
  96773. 8026fd0: 4603 mov r3, r0
  96774. }
  96775. 8026fd2: 4618 mov r0, r3
  96776. 8026fd4: 3710 adds r7, #16
  96777. 8026fd6: 46bd mov sp, r7
  96778. 8026fd8: bd80 pop {r7, pc}
  96779. 08026fda <net_disconnect>:
  96780. void net_disconnect(Network *n) {
  96781. 8026fda: b580 push {r7, lr}
  96782. 8026fdc: b082 sub sp, #8
  96783. 8026fde: af00 add r7, sp, #0
  96784. 8026fe0: 6078 str r0, [r7, #4]
  96785. close(n->socket);
  96786. 8026fe2: 687b ldr r3, [r7, #4]
  96787. 8026fe4: 681b ldr r3, [r3, #0]
  96788. 8026fe6: 4618 mov r0, r3
  96789. 8026fe8: f7f0 f9e2 bl 80173b0 <lwip_close>
  96790. n->socket = 0;
  96791. 8026fec: 687b ldr r3, [r7, #4]
  96792. 8026fee: 2200 movs r2, #0
  96793. 8026ff0: 601a str r2, [r3, #0]
  96794. }
  96795. 8026ff2: bf00 nop
  96796. 8026ff4: 3708 adds r7, #8
  96797. 8026ff6: 46bd mov sp, r7
  96798. 8026ff8: bd80 pop {r7, pc}
  96799. 08026ffa <MQTTSerialize_connectLength>:
  96800. * Determines the length of the MQTT connect packet that would be produced using the supplied connect options.
  96801. * @param options the options to be used to build the connect packet
  96802. * @return the length of buffer needed to contain the serialized version of the packet
  96803. */
  96804. int MQTTSerialize_connectLength(MQTTPacket_connectData* options)
  96805. {
  96806. 8026ffa: b590 push {r4, r7, lr}
  96807. 8026ffc: b085 sub sp, #20
  96808. 8026ffe: af00 add r7, sp, #0
  96809. 8027000: 6078 str r0, [r7, #4]
  96810. int len = 0;
  96811. 8027002: 2300 movs r3, #0
  96812. 8027004: 60fb str r3, [r7, #12]
  96813. FUNC_ENTRY;
  96814. if (options->MQTTVersion == 3)
  96815. 8027006: 687b ldr r3, [r7, #4]
  96816. 8027008: 7a1b ldrb r3, [r3, #8]
  96817. 802700a: 2b03 cmp r3, #3
  96818. 802700c: d102 bne.n 8027014 <MQTTSerialize_connectLength+0x1a>
  96819. len = 12; /* variable depending on MQTT or MQIsdp */
  96820. 802700e: 230c movs r3, #12
  96821. 8027010: 60fb str r3, [r7, #12]
  96822. 8027012: e005 b.n 8027020 <MQTTSerialize_connectLength+0x26>
  96823. else if (options->MQTTVersion == 4)
  96824. 8027014: 687b ldr r3, [r7, #4]
  96825. 8027016: 7a1b ldrb r3, [r3, #8]
  96826. 8027018: 2b04 cmp r3, #4
  96827. 802701a: d101 bne.n 8027020 <MQTTSerialize_connectLength+0x26>
  96828. len = 10;
  96829. 802701c: 230a movs r3, #10
  96830. 802701e: 60fb str r3, [r7, #12]
  96831. len += MQTTstrlen(options->clientID)+2;
  96832. 8027020: 687b ldr r3, [r7, #4]
  96833. 8027022: 330c adds r3, #12
  96834. 8027024: e893 0007 ldmia.w r3, {r0, r1, r2}
  96835. 8027028: f000 fc43 bl 80278b2 <MQTTstrlen>
  96836. 802702c: 4603 mov r3, r0
  96837. 802702e: 3302 adds r3, #2
  96838. 8027030: 68fa ldr r2, [r7, #12]
  96839. 8027032: 4413 add r3, r2
  96840. 8027034: 60fb str r3, [r7, #12]
  96841. if (options->willFlag)
  96842. 8027036: 687b ldr r3, [r7, #4]
  96843. 8027038: 7edb ldrb r3, [r3, #27]
  96844. 802703a: 2b00 cmp r3, #0
  96845. 802703c: d013 beq.n 8027066 <MQTTSerialize_connectLength+0x6c>
  96846. len += MQTTstrlen(options->will.topicName)+2 + MQTTstrlen(options->will.message)+2;
  96847. 802703e: 687b ldr r3, [r7, #4]
  96848. 8027040: 3324 adds r3, #36 @ 0x24
  96849. 8027042: e893 0007 ldmia.w r3, {r0, r1, r2}
  96850. 8027046: f000 fc34 bl 80278b2 <MQTTstrlen>
  96851. 802704a: 4603 mov r3, r0
  96852. 802704c: 1c9c adds r4, r3, #2
  96853. 802704e: 687b ldr r3, [r7, #4]
  96854. 8027050: 3330 adds r3, #48 @ 0x30
  96855. 8027052: e893 0007 ldmia.w r3, {r0, r1, r2}
  96856. 8027056: f000 fc2c bl 80278b2 <MQTTstrlen>
  96857. 802705a: 4603 mov r3, r0
  96858. 802705c: 4423 add r3, r4
  96859. 802705e: 3302 adds r3, #2
  96860. 8027060: 68fa ldr r2, [r7, #12]
  96861. 8027062: 4413 add r3, r2
  96862. 8027064: 60fb str r3, [r7, #12]
  96863. if (options->username.cstring || options->username.lenstring.data)
  96864. 8027066: 687b ldr r3, [r7, #4]
  96865. 8027068: 6c1b ldr r3, [r3, #64] @ 0x40
  96866. 802706a: 2b00 cmp r3, #0
  96867. 802706c: d103 bne.n 8027076 <MQTTSerialize_connectLength+0x7c>
  96868. 802706e: 687b ldr r3, [r7, #4]
  96869. 8027070: 6c9b ldr r3, [r3, #72] @ 0x48
  96870. 8027072: 2b00 cmp r3, #0
  96871. 8027074: d00a beq.n 802708c <MQTTSerialize_connectLength+0x92>
  96872. len += MQTTstrlen(options->username)+2;
  96873. 8027076: 687b ldr r3, [r7, #4]
  96874. 8027078: 3340 adds r3, #64 @ 0x40
  96875. 802707a: e893 0007 ldmia.w r3, {r0, r1, r2}
  96876. 802707e: f000 fc18 bl 80278b2 <MQTTstrlen>
  96877. 8027082: 4603 mov r3, r0
  96878. 8027084: 3302 adds r3, #2
  96879. 8027086: 68fa ldr r2, [r7, #12]
  96880. 8027088: 4413 add r3, r2
  96881. 802708a: 60fb str r3, [r7, #12]
  96882. if (options->password.cstring || options->password.lenstring.data)
  96883. 802708c: 687b ldr r3, [r7, #4]
  96884. 802708e: 6cdb ldr r3, [r3, #76] @ 0x4c
  96885. 8027090: 2b00 cmp r3, #0
  96886. 8027092: d103 bne.n 802709c <MQTTSerialize_connectLength+0xa2>
  96887. 8027094: 687b ldr r3, [r7, #4]
  96888. 8027096: 6d5b ldr r3, [r3, #84] @ 0x54
  96889. 8027098: 2b00 cmp r3, #0
  96890. 802709a: d00a beq.n 80270b2 <MQTTSerialize_connectLength+0xb8>
  96891. len += MQTTstrlen(options->password)+2;
  96892. 802709c: 687b ldr r3, [r7, #4]
  96893. 802709e: 334c adds r3, #76 @ 0x4c
  96894. 80270a0: e893 0007 ldmia.w r3, {r0, r1, r2}
  96895. 80270a4: f000 fc05 bl 80278b2 <MQTTstrlen>
  96896. 80270a8: 4603 mov r3, r0
  96897. 80270aa: 3302 adds r3, #2
  96898. 80270ac: 68fa ldr r2, [r7, #12]
  96899. 80270ae: 4413 add r3, r2
  96900. 80270b0: 60fb str r3, [r7, #12]
  96901. FUNC_EXIT_RC(len);
  96902. return len;
  96903. 80270b2: 68fb ldr r3, [r7, #12]
  96904. }
  96905. 80270b4: 4618 mov r0, r3
  96906. 80270b6: 3714 adds r7, #20
  96907. 80270b8: 46bd mov sp, r7
  96908. 80270ba: bd90 pop {r4, r7, pc}
  96909. 080270bc <MQTTSerialize_connect>:
  96910. * @param len the length in bytes of the supplied buffer
  96911. * @param options the options to be used to build the connect packet
  96912. * @return serialized length, or error if 0
  96913. */
  96914. int MQTTSerialize_connect(unsigned char* buf, int buflen, MQTTPacket_connectData* options)
  96915. {
  96916. 80270bc: b580 push {r7, lr}
  96917. 80270be: b08a sub sp, #40 @ 0x28
  96918. 80270c0: af00 add r7, sp, #0
  96919. 80270c2: 60f8 str r0, [r7, #12]
  96920. 80270c4: 60b9 str r1, [r7, #8]
  96921. 80270c6: 607a str r2, [r7, #4]
  96922. unsigned char *ptr = buf;
  96923. 80270c8: 68fb ldr r3, [r7, #12]
  96924. 80270ca: 61fb str r3, [r7, #28]
  96925. MQTTHeader header = {0};
  96926. 80270cc: 2300 movs r3, #0
  96927. 80270ce: 61bb str r3, [r7, #24]
  96928. MQTTConnectFlags flags = {0};
  96929. 80270d0: 2300 movs r3, #0
  96930. 80270d2: 617b str r3, [r7, #20]
  96931. int len = 0;
  96932. 80270d4: 2300 movs r3, #0
  96933. 80270d6: 623b str r3, [r7, #32]
  96934. int rc = -1;
  96935. 80270d8: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96936. 80270dc: 627b str r3, [r7, #36] @ 0x24
  96937. FUNC_ENTRY;
  96938. if (MQTTPacket_len(len = MQTTSerialize_connectLength(options)) > buflen)
  96939. 80270de: 6878 ldr r0, [r7, #4]
  96940. 80270e0: f7ff ff8b bl 8026ffa <MQTTSerialize_connectLength>
  96941. 80270e4: 6238 str r0, [r7, #32]
  96942. 80270e6: 6a38 ldr r0, [r7, #32]
  96943. 80270e8: f000 fa98 bl 802761c <MQTTPacket_len>
  96944. 80270ec: 4602 mov r2, r0
  96945. 80270ee: 68bb ldr r3, [r7, #8]
  96946. 80270f0: 4293 cmp r3, r2
  96947. 80270f2: da03 bge.n 80270fc <MQTTSerialize_connect+0x40>
  96948. {
  96949. rc = MQTTPACKET_BUFFER_TOO_SHORT;
  96950. 80270f4: f06f 0301 mvn.w r3, #1
  96951. 80270f8: 627b str r3, [r7, #36] @ 0x24
  96952. goto exit;
  96953. 80270fa: e0c2 b.n 8027282 <MQTTSerialize_connect+0x1c6>
  96954. }
  96955. header.byte = 0;
  96956. 80270fc: 2300 movs r3, #0
  96957. 80270fe: 763b strb r3, [r7, #24]
  96958. header.bits.type = CONNECT;
  96959. 8027100: 7e3b ldrb r3, [r7, #24]
  96960. 8027102: 2201 movs r2, #1
  96961. 8027104: f362 1307 bfi r3, r2, #4, #4
  96962. 8027108: 763b strb r3, [r7, #24]
  96963. writeChar(&ptr, header.byte); /* write header */
  96964. 802710a: 7e3a ldrb r2, [r7, #24]
  96965. 802710c: f107 031c add.w r3, r7, #28
  96966. 8027110: 4611 mov r1, r2
  96967. 8027112: 4618 mov r0, r3
  96968. 8027114: f000 fb11 bl 802773a <writeChar>
  96969. ptr += MQTTPacket_encode(ptr, len); /* write remaining length */
  96970. 8027118: 69fb ldr r3, [r7, #28]
  96971. 802711a: 6a39 ldr r1, [r7, #32]
  96972. 802711c: 4618 mov r0, r3
  96973. 802711e: f000 fa12 bl 8027546 <MQTTPacket_encode>
  96974. 8027122: 4602 mov r2, r0
  96975. 8027124: 69fb ldr r3, [r7, #28]
  96976. 8027126: 4413 add r3, r2
  96977. 8027128: 61fb str r3, [r7, #28]
  96978. if (options->MQTTVersion == 4)
  96979. 802712a: 687b ldr r3, [r7, #4]
  96980. 802712c: 7a1b ldrb r3, [r3, #8]
  96981. 802712e: 2b04 cmp r3, #4
  96982. 8027130: d10c bne.n 802714c <MQTTSerialize_connect+0x90>
  96983. {
  96984. writeCString(&ptr, "MQTT");
  96985. 8027132: f107 031c add.w r3, r7, #28
  96986. 8027136: 4955 ldr r1, [pc, #340] @ (802728c <MQTTSerialize_connect+0x1d0>)
  96987. 8027138: 4618 mov r0, r3
  96988. 802713a: f000 fb3c bl 80277b6 <writeCString>
  96989. writeChar(&ptr, (char) 4);
  96990. 802713e: f107 031c add.w r3, r7, #28
  96991. 8027142: 2104 movs r1, #4
  96992. 8027144: 4618 mov r0, r3
  96993. 8027146: f000 faf8 bl 802773a <writeChar>
  96994. 802714a: e00b b.n 8027164 <MQTTSerialize_connect+0xa8>
  96995. }
  96996. else
  96997. {
  96998. writeCString(&ptr, "MQIsdp");
  96999. 802714c: f107 031c add.w r3, r7, #28
  97000. 8027150: 494f ldr r1, [pc, #316] @ (8027290 <MQTTSerialize_connect+0x1d4>)
  97001. 8027152: 4618 mov r0, r3
  97002. 8027154: f000 fb2f bl 80277b6 <writeCString>
  97003. writeChar(&ptr, (char) 3);
  97004. 8027158: f107 031c add.w r3, r7, #28
  97005. 802715c: 2103 movs r1, #3
  97006. 802715e: 4618 mov r0, r3
  97007. 8027160: f000 faeb bl 802773a <writeChar>
  97008. }
  97009. flags.all = 0;
  97010. 8027164: 2300 movs r3, #0
  97011. 8027166: 753b strb r3, [r7, #20]
  97012. flags.bits.cleansession = options->cleansession;
  97013. 8027168: 687b ldr r3, [r7, #4]
  97014. 802716a: 7e9b ldrb r3, [r3, #26]
  97015. 802716c: f003 0301 and.w r3, r3, #1
  97016. 8027170: b2da uxtb r2, r3
  97017. 8027172: 7d3b ldrb r3, [r7, #20]
  97018. 8027174: f362 0341 bfi r3, r2, #1, #1
  97019. 8027178: 753b strb r3, [r7, #20]
  97020. flags.bits.will = (options->willFlag) ? 1 : 0;
  97021. 802717a: 687b ldr r3, [r7, #4]
  97022. 802717c: 7edb ldrb r3, [r3, #27]
  97023. 802717e: 2b00 cmp r3, #0
  97024. 8027180: bf14 ite ne
  97025. 8027182: 2301 movne r3, #1
  97026. 8027184: 2300 moveq r3, #0
  97027. 8027186: b2da uxtb r2, r3
  97028. 8027188: 7d3b ldrb r3, [r7, #20]
  97029. 802718a: f362 0382 bfi r3, r2, #2, #1
  97030. 802718e: 753b strb r3, [r7, #20]
  97031. if (flags.bits.will)
  97032. 8027190: 7d3b ldrb r3, [r7, #20]
  97033. 8027192: f003 0304 and.w r3, r3, #4
  97034. 8027196: b2db uxtb r3, r3
  97035. 8027198: 2b00 cmp r3, #0
  97036. 802719a: d013 beq.n 80271c4 <MQTTSerialize_connect+0x108>
  97037. {
  97038. flags.bits.willQoS = options->will.qos;
  97039. 802719c: 687b ldr r3, [r7, #4]
  97040. 802719e: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  97041. 80271a2: f003 0303 and.w r3, r3, #3
  97042. 80271a6: b2da uxtb r2, r3
  97043. 80271a8: 7d3b ldrb r3, [r7, #20]
  97044. 80271aa: f362 03c4 bfi r3, r2, #3, #2
  97045. 80271ae: 753b strb r3, [r7, #20]
  97046. flags.bits.willRetain = options->will.retained;
  97047. 80271b0: 687b ldr r3, [r7, #4]
  97048. 80271b2: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  97049. 80271b6: f003 0301 and.w r3, r3, #1
  97050. 80271ba: b2da uxtb r2, r3
  97051. 80271bc: 7d3b ldrb r3, [r7, #20]
  97052. 80271be: f362 1345 bfi r3, r2, #5, #1
  97053. 80271c2: 753b strb r3, [r7, #20]
  97054. }
  97055. if (options->username.cstring || options->username.lenstring.data)
  97056. 80271c4: 687b ldr r3, [r7, #4]
  97057. 80271c6: 6c1b ldr r3, [r3, #64] @ 0x40
  97058. 80271c8: 2b00 cmp r3, #0
  97059. 80271ca: d103 bne.n 80271d4 <MQTTSerialize_connect+0x118>
  97060. 80271cc: 687b ldr r3, [r7, #4]
  97061. 80271ce: 6c9b ldr r3, [r3, #72] @ 0x48
  97062. 80271d0: 2b00 cmp r3, #0
  97063. 80271d2: d003 beq.n 80271dc <MQTTSerialize_connect+0x120>
  97064. flags.bits.username = 1;
  97065. 80271d4: 7d3b ldrb r3, [r7, #20]
  97066. 80271d6: f043 0380 orr.w r3, r3, #128 @ 0x80
  97067. 80271da: 753b strb r3, [r7, #20]
  97068. if (options->password.cstring || options->password.lenstring.data)
  97069. 80271dc: 687b ldr r3, [r7, #4]
  97070. 80271de: 6cdb ldr r3, [r3, #76] @ 0x4c
  97071. 80271e0: 2b00 cmp r3, #0
  97072. 80271e2: d103 bne.n 80271ec <MQTTSerialize_connect+0x130>
  97073. 80271e4: 687b ldr r3, [r7, #4]
  97074. 80271e6: 6d5b ldr r3, [r3, #84] @ 0x54
  97075. 80271e8: 2b00 cmp r3, #0
  97076. 80271ea: d003 beq.n 80271f4 <MQTTSerialize_connect+0x138>
  97077. flags.bits.password = 1;
  97078. 80271ec: 7d3b ldrb r3, [r7, #20]
  97079. 80271ee: f043 0340 orr.w r3, r3, #64 @ 0x40
  97080. 80271f2: 753b strb r3, [r7, #20]
  97081. writeChar(&ptr, flags.all);
  97082. 80271f4: 7d3a ldrb r2, [r7, #20]
  97083. 80271f6: f107 031c add.w r3, r7, #28
  97084. 80271fa: 4611 mov r1, r2
  97085. 80271fc: 4618 mov r0, r3
  97086. 80271fe: f000 fa9c bl 802773a <writeChar>
  97087. writeInt(&ptr, options->keepAliveInterval);
  97088. 8027202: 687b ldr r3, [r7, #4]
  97089. 8027204: 8b1b ldrh r3, [r3, #24]
  97090. 8027206: 461a mov r2, r3
  97091. 8027208: f107 031c add.w r3, r7, #28
  97092. 802720c: 4611 mov r1, r2
  97093. 802720e: 4618 mov r0, r3
  97094. 8027210: f000 faa8 bl 8027764 <writeInt>
  97095. writeMQTTString(&ptr, options->clientID);
  97096. 8027214: 687b ldr r3, [r7, #4]
  97097. 8027216: f107 001c add.w r0, r7, #28
  97098. 802721a: 330c adds r3, #12
  97099. 802721c: cb0e ldmia r3, {r1, r2, r3}
  97100. 802721e: f000 fae9 bl 80277f4 <writeMQTTString>
  97101. if (options->willFlag)
  97102. 8027222: 687b ldr r3, [r7, #4]
  97103. 8027224: 7edb ldrb r3, [r3, #27]
  97104. 8027226: 2b00 cmp r3, #0
  97105. 8027228: d00d beq.n 8027246 <MQTTSerialize_connect+0x18a>
  97106. {
  97107. writeMQTTString(&ptr, options->will.topicName);
  97108. 802722a: 687b ldr r3, [r7, #4]
  97109. 802722c: f107 001c add.w r0, r7, #28
  97110. 8027230: 3324 adds r3, #36 @ 0x24
  97111. 8027232: cb0e ldmia r3, {r1, r2, r3}
  97112. 8027234: f000 fade bl 80277f4 <writeMQTTString>
  97113. writeMQTTString(&ptr, options->will.message);
  97114. 8027238: 687b ldr r3, [r7, #4]
  97115. 802723a: f107 001c add.w r0, r7, #28
  97116. 802723e: 3330 adds r3, #48 @ 0x30
  97117. 8027240: cb0e ldmia r3, {r1, r2, r3}
  97118. 8027242: f000 fad7 bl 80277f4 <writeMQTTString>
  97119. }
  97120. if (flags.bits.username)
  97121. 8027246: 7d3b ldrb r3, [r7, #20]
  97122. 8027248: f023 037f bic.w r3, r3, #127 @ 0x7f
  97123. 802724c: b2db uxtb r3, r3
  97124. 802724e: 2b00 cmp r3, #0
  97125. 8027250: d006 beq.n 8027260 <MQTTSerialize_connect+0x1a4>
  97126. writeMQTTString(&ptr, options->username);
  97127. 8027252: 687b ldr r3, [r7, #4]
  97128. 8027254: f107 001c add.w r0, r7, #28
  97129. 8027258: 3340 adds r3, #64 @ 0x40
  97130. 802725a: cb0e ldmia r3, {r1, r2, r3}
  97131. 802725c: f000 faca bl 80277f4 <writeMQTTString>
  97132. if (flags.bits.password)
  97133. 8027260: 7d3b ldrb r3, [r7, #20]
  97134. 8027262: f003 0340 and.w r3, r3, #64 @ 0x40
  97135. 8027266: b2db uxtb r3, r3
  97136. 8027268: 2b00 cmp r3, #0
  97137. 802726a: d006 beq.n 802727a <MQTTSerialize_connect+0x1be>
  97138. writeMQTTString(&ptr, options->password);
  97139. 802726c: 687b ldr r3, [r7, #4]
  97140. 802726e: f107 001c add.w r0, r7, #28
  97141. 8027272: 334c adds r3, #76 @ 0x4c
  97142. 8027274: cb0e ldmia r3, {r1, r2, r3}
  97143. 8027276: f000 fabd bl 80277f4 <writeMQTTString>
  97144. rc = ptr - buf;
  97145. 802727a: 69fa ldr r2, [r7, #28]
  97146. 802727c: 68fb ldr r3, [r7, #12]
  97147. 802727e: 1ad3 subs r3, r2, r3
  97148. 8027280: 627b str r3, [r7, #36] @ 0x24
  97149. exit: FUNC_EXIT_RC(rc);
  97150. return rc;
  97151. 8027282: 6a7b ldr r3, [r7, #36] @ 0x24
  97152. }
  97153. 8027284: 4618 mov r0, r3
  97154. 8027286: 3728 adds r7, #40 @ 0x28
  97155. 8027288: 46bd mov sp, r7
  97156. 802728a: bd80 pop {r7, pc}
  97157. 802728c: 08030514 .word 0x08030514
  97158. 8027290: 0803051c .word 0x0803051c
  97159. 08027294 <MQTTDeserialize_connack>:
  97160. * @param buf the raw buffer data, of the correct length determined by the remaining length field
  97161. * @param len the length in bytes of the data in the supplied buffer
  97162. * @return error code. 1 is success, 0 is failure
  97163. */
  97164. int MQTTDeserialize_connack(unsigned char* sessionPresent, unsigned char* connack_rc, unsigned char* buf, int buflen)
  97165. {
  97166. 8027294: b580 push {r7, lr}
  97167. 8027296: b08a sub sp, #40 @ 0x28
  97168. 8027298: af00 add r7, sp, #0
  97169. 802729a: 60f8 str r0, [r7, #12]
  97170. 802729c: 60b9 str r1, [r7, #8]
  97171. 802729e: 607a str r2, [r7, #4]
  97172. 80272a0: 603b str r3, [r7, #0]
  97173. MQTTHeader header = {0};
  97174. 80272a2: 2300 movs r3, #0
  97175. 80272a4: 61fb str r3, [r7, #28]
  97176. unsigned char* curdata = buf;
  97177. 80272a6: 687b ldr r3, [r7, #4]
  97178. 80272a8: 61bb str r3, [r7, #24]
  97179. unsigned char* enddata = NULL;
  97180. 80272aa: 2300 movs r3, #0
  97181. 80272ac: 623b str r3, [r7, #32]
  97182. int rc = 0;
  97183. 80272ae: 2300 movs r3, #0
  97184. 80272b0: 627b str r3, [r7, #36] @ 0x24
  97185. int mylen;
  97186. MQTTConnackFlags flags = {0};
  97187. 80272b2: 2300 movs r3, #0
  97188. 80272b4: 613b str r3, [r7, #16]
  97189. FUNC_ENTRY;
  97190. header.byte = readChar(&curdata);
  97191. 80272b6: f107 0318 add.w r3, r7, #24
  97192. 80272ba: 4618 mov r0, r3
  97193. 80272bc: f000 fa29 bl 8027712 <readChar>
  97194. 80272c0: 4603 mov r3, r0
  97195. 80272c2: 773b strb r3, [r7, #28]
  97196. if (header.bits.type != CONNACK)
  97197. 80272c4: 7f3b ldrb r3, [r7, #28]
  97198. 80272c6: f023 030f bic.w r3, r3, #15
  97199. 80272ca: b2db uxtb r3, r3
  97200. 80272cc: 2b20 cmp r3, #32
  97201. 80272ce: d12e bne.n 802732e <MQTTDeserialize_connack+0x9a>
  97202. goto exit;
  97203. curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */
  97204. 80272d0: 69bb ldr r3, [r7, #24]
  97205. 80272d2: f107 0214 add.w r2, r7, #20
  97206. 80272d6: 4611 mov r1, r2
  97207. 80272d8: 4618 mov r0, r3
  97208. 80272da: f000 f9e9 bl 80276b0 <MQTTPacket_decodeBuf>
  97209. 80272de: 6278 str r0, [r7, #36] @ 0x24
  97210. 80272e0: 6a7a ldr r2, [r7, #36] @ 0x24
  97211. 80272e2: 69bb ldr r3, [r7, #24]
  97212. 80272e4: 4413 add r3, r2
  97213. 80272e6: 61bb str r3, [r7, #24]
  97214. enddata = curdata + mylen;
  97215. 80272e8: 69bb ldr r3, [r7, #24]
  97216. 80272ea: 697a ldr r2, [r7, #20]
  97217. 80272ec: 4413 add r3, r2
  97218. 80272ee: 623b str r3, [r7, #32]
  97219. if (enddata - curdata < 2)
  97220. 80272f0: 69bb ldr r3, [r7, #24]
  97221. 80272f2: 6a3a ldr r2, [r7, #32]
  97222. 80272f4: 1ad3 subs r3, r2, r3
  97223. 80272f6: 2b01 cmp r3, #1
  97224. 80272f8: dd1b ble.n 8027332 <MQTTDeserialize_connack+0x9e>
  97225. goto exit;
  97226. flags.all = readChar(&curdata);
  97227. 80272fa: f107 0318 add.w r3, r7, #24
  97228. 80272fe: 4618 mov r0, r3
  97229. 8027300: f000 fa07 bl 8027712 <readChar>
  97230. 8027304: 4603 mov r3, r0
  97231. 8027306: 743b strb r3, [r7, #16]
  97232. *sessionPresent = flags.bits.sessionpresent;
  97233. 8027308: 7c3b ldrb r3, [r7, #16]
  97234. 802730a: f3c3 0300 ubfx r3, r3, #0, #1
  97235. 802730e: b2db uxtb r3, r3
  97236. 8027310: 461a mov r2, r3
  97237. 8027312: 68fb ldr r3, [r7, #12]
  97238. 8027314: 701a strb r2, [r3, #0]
  97239. *connack_rc = readChar(&curdata);
  97240. 8027316: f107 0318 add.w r3, r7, #24
  97241. 802731a: 4618 mov r0, r3
  97242. 802731c: f000 f9f9 bl 8027712 <readChar>
  97243. 8027320: 4603 mov r3, r0
  97244. 8027322: 461a mov r2, r3
  97245. 8027324: 68bb ldr r3, [r7, #8]
  97246. 8027326: 701a strb r2, [r3, #0]
  97247. rc = 1;
  97248. 8027328: 2301 movs r3, #1
  97249. 802732a: 627b str r3, [r7, #36] @ 0x24
  97250. 802732c: e002 b.n 8027334 <MQTTDeserialize_connack+0xa0>
  97251. goto exit;
  97252. 802732e: bf00 nop
  97253. 8027330: e000 b.n 8027334 <MQTTDeserialize_connack+0xa0>
  97254. goto exit;
  97255. 8027332: bf00 nop
  97256. exit:
  97257. FUNC_EXIT_RC(rc);
  97258. return rc;
  97259. 8027334: 6a7b ldr r3, [r7, #36] @ 0x24
  97260. }
  97261. 8027336: 4618 mov r0, r3
  97262. 8027338: 3728 adds r7, #40 @ 0x28
  97263. 802733a: 46bd mov sp, r7
  97264. 802733c: bd80 pop {r7, pc}
  97265. 0802733e <MQTTSerialize_zero>:
  97266. * @param buflen the length in bytes of the supplied buffer, to avoid overruns
  97267. * @param packettype the message type
  97268. * @return serialized length, or error if 0
  97269. */
  97270. int MQTTSerialize_zero(unsigned char* buf, int buflen, unsigned char packettype)
  97271. {
  97272. 802733e: b580 push {r7, lr}
  97273. 8027340: b088 sub sp, #32
  97274. 8027342: af00 add r7, sp, #0
  97275. 8027344: 60f8 str r0, [r7, #12]
  97276. 8027346: 60b9 str r1, [r7, #8]
  97277. 8027348: 4613 mov r3, r2
  97278. 802734a: 71fb strb r3, [r7, #7]
  97279. MQTTHeader header = {0};
  97280. 802734c: 2300 movs r3, #0
  97281. 802734e: 61bb str r3, [r7, #24]
  97282. int rc = -1;
  97283. 8027350: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97284. 8027354: 61fb str r3, [r7, #28]
  97285. unsigned char *ptr = buf;
  97286. 8027356: 68fb ldr r3, [r7, #12]
  97287. 8027358: 617b str r3, [r7, #20]
  97288. FUNC_ENTRY;
  97289. if (buflen < 2)
  97290. 802735a: 68bb ldr r3, [r7, #8]
  97291. 802735c: 2b01 cmp r3, #1
  97292. 802735e: dc03 bgt.n 8027368 <MQTTSerialize_zero+0x2a>
  97293. {
  97294. rc = MQTTPACKET_BUFFER_TOO_SHORT;
  97295. 8027360: f06f 0301 mvn.w r3, #1
  97296. 8027364: 61fb str r3, [r7, #28]
  97297. goto exit;
  97298. 8027366: e01d b.n 80273a4 <MQTTSerialize_zero+0x66>
  97299. }
  97300. header.byte = 0;
  97301. 8027368: 2300 movs r3, #0
  97302. 802736a: 763b strb r3, [r7, #24]
  97303. header.bits.type = packettype;
  97304. 802736c: 79fb ldrb r3, [r7, #7]
  97305. 802736e: f003 030f and.w r3, r3, #15
  97306. 8027372: b2da uxtb r2, r3
  97307. 8027374: 7e3b ldrb r3, [r7, #24]
  97308. 8027376: f362 1307 bfi r3, r2, #4, #4
  97309. 802737a: 763b strb r3, [r7, #24]
  97310. writeChar(&ptr, header.byte); /* write header */
  97311. 802737c: 7e3a ldrb r2, [r7, #24]
  97312. 802737e: f107 0314 add.w r3, r7, #20
  97313. 8027382: 4611 mov r1, r2
  97314. 8027384: 4618 mov r0, r3
  97315. 8027386: f000 f9d8 bl 802773a <writeChar>
  97316. ptr += MQTTPacket_encode(ptr, 0); /* write remaining length */
  97317. 802738a: 697b ldr r3, [r7, #20]
  97318. 802738c: 2100 movs r1, #0
  97319. 802738e: 4618 mov r0, r3
  97320. 8027390: f000 f8d9 bl 8027546 <MQTTPacket_encode>
  97321. 8027394: 4602 mov r2, r0
  97322. 8027396: 697b ldr r3, [r7, #20]
  97323. 8027398: 4413 add r3, r2
  97324. 802739a: 617b str r3, [r7, #20]
  97325. rc = ptr - buf;
  97326. 802739c: 697a ldr r2, [r7, #20]
  97327. 802739e: 68fb ldr r3, [r7, #12]
  97328. 80273a0: 1ad3 subs r3, r2, r3
  97329. 80273a2: 61fb str r3, [r7, #28]
  97330. exit:
  97331. FUNC_EXIT_RC(rc);
  97332. return rc;
  97333. 80273a4: 69fb ldr r3, [r7, #28]
  97334. }
  97335. 80273a6: 4618 mov r0, r3
  97336. 80273a8: 3720 adds r7, #32
  97337. 80273aa: 46bd mov sp, r7
  97338. 80273ac: bd80 pop {r7, pc}
  97339. 080273ae <MQTTSerialize_pingreq>:
  97340. * @param buf the buffer into which the packet will be serialized
  97341. * @param buflen the length in bytes of the supplied buffer, to avoid overruns
  97342. * @return serialized length, or error if 0
  97343. */
  97344. int MQTTSerialize_pingreq(unsigned char* buf, int buflen)
  97345. {
  97346. 80273ae: b580 push {r7, lr}
  97347. 80273b0: b082 sub sp, #8
  97348. 80273b2: af00 add r7, sp, #0
  97349. 80273b4: 6078 str r0, [r7, #4]
  97350. 80273b6: 6039 str r1, [r7, #0]
  97351. return MQTTSerialize_zero(buf, buflen, PINGREQ);
  97352. 80273b8: 220c movs r2, #12
  97353. 80273ba: 6839 ldr r1, [r7, #0]
  97354. 80273bc: 6878 ldr r0, [r7, #4]
  97355. 80273be: f7ff ffbe bl 802733e <MQTTSerialize_zero>
  97356. 80273c2: 4603 mov r3, r0
  97357. }
  97358. 80273c4: 4618 mov r0, r3
  97359. 80273c6: 3708 adds r7, #8
  97360. 80273c8: 46bd mov sp, r7
  97361. 80273ca: bd80 pop {r7, pc}
  97362. 080273cc <MQTTDeserialize_publish>:
  97363. * @param buflen the length in bytes of the data in the supplied buffer
  97364. * @return error code. 1 is success
  97365. */
  97366. int MQTTDeserialize_publish(unsigned char* dup, int* qos, unsigned char* retained, unsigned short* packetid, MQTTString* topicName,
  97367. unsigned char** payload, int* payloadlen, unsigned char* buf, int buflen)
  97368. {
  97369. 80273cc: b580 push {r7, lr}
  97370. 80273ce: b08a sub sp, #40 @ 0x28
  97371. 80273d0: af00 add r7, sp, #0
  97372. 80273d2: 60f8 str r0, [r7, #12]
  97373. 80273d4: 60b9 str r1, [r7, #8]
  97374. 80273d6: 607a str r2, [r7, #4]
  97375. 80273d8: 603b str r3, [r7, #0]
  97376. MQTTHeader header = {0};
  97377. 80273da: 2300 movs r3, #0
  97378. 80273dc: 61fb str r3, [r7, #28]
  97379. unsigned char* curdata = buf;
  97380. 80273de: 6bfb ldr r3, [r7, #60] @ 0x3c
  97381. 80273e0: 61bb str r3, [r7, #24]
  97382. unsigned char* enddata = NULL;
  97383. 80273e2: 2300 movs r3, #0
  97384. 80273e4: 623b str r3, [r7, #32]
  97385. int rc = 0;
  97386. 80273e6: 2300 movs r3, #0
  97387. 80273e8: 627b str r3, [r7, #36] @ 0x24
  97388. int mylen = 0;
  97389. 80273ea: 2300 movs r3, #0
  97390. 80273ec: 617b str r3, [r7, #20]
  97391. FUNC_ENTRY;
  97392. header.byte = readChar(&curdata);
  97393. 80273ee: f107 0318 add.w r3, r7, #24
  97394. 80273f2: 4618 mov r0, r3
  97395. 80273f4: f000 f98d bl 8027712 <readChar>
  97396. 80273f8: 4603 mov r3, r0
  97397. 80273fa: 773b strb r3, [r7, #28]
  97398. if (header.bits.type != PUBLISH)
  97399. 80273fc: 7f3b ldrb r3, [r7, #28]
  97400. 80273fe: f023 030f bic.w r3, r3, #15
  97401. 8027402: b2db uxtb r3, r3
  97402. 8027404: 2b30 cmp r3, #48 @ 0x30
  97403. 8027406: d14b bne.n 80274a0 <MQTTDeserialize_publish+0xd4>
  97404. goto exit;
  97405. *dup = header.bits.dup;
  97406. 8027408: 7f3b ldrb r3, [r7, #28]
  97407. 802740a: f3c3 03c0 ubfx r3, r3, #3, #1
  97408. 802740e: b2db uxtb r3, r3
  97409. 8027410: 461a mov r2, r3
  97410. 8027412: 68fb ldr r3, [r7, #12]
  97411. 8027414: 701a strb r2, [r3, #0]
  97412. *qos = header.bits.qos;
  97413. 8027416: 7f3b ldrb r3, [r7, #28]
  97414. 8027418: f3c3 0341 ubfx r3, r3, #1, #2
  97415. 802741c: b2db uxtb r3, r3
  97416. 802741e: 461a mov r2, r3
  97417. 8027420: 68bb ldr r3, [r7, #8]
  97418. 8027422: 601a str r2, [r3, #0]
  97419. *retained = header.bits.retain;
  97420. 8027424: 7f3b ldrb r3, [r7, #28]
  97421. 8027426: f3c3 0300 ubfx r3, r3, #0, #1
  97422. 802742a: b2db uxtb r3, r3
  97423. 802742c: 461a mov r2, r3
  97424. 802742e: 687b ldr r3, [r7, #4]
  97425. 8027430: 701a strb r2, [r3, #0]
  97426. curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */
  97427. 8027432: 69bb ldr r3, [r7, #24]
  97428. 8027434: f107 0214 add.w r2, r7, #20
  97429. 8027438: 4611 mov r1, r2
  97430. 802743a: 4618 mov r0, r3
  97431. 802743c: f000 f938 bl 80276b0 <MQTTPacket_decodeBuf>
  97432. 8027440: 6278 str r0, [r7, #36] @ 0x24
  97433. 8027442: 6a7a ldr r2, [r7, #36] @ 0x24
  97434. 8027444: 69bb ldr r3, [r7, #24]
  97435. 8027446: 4413 add r3, r2
  97436. 8027448: 61bb str r3, [r7, #24]
  97437. enddata = curdata + mylen;
  97438. 802744a: 69bb ldr r3, [r7, #24]
  97439. 802744c: 697a ldr r2, [r7, #20]
  97440. 802744e: 4413 add r3, r2
  97441. 8027450: 623b str r3, [r7, #32]
  97442. if (!readMQTTLenString(topicName, &curdata, enddata) ||
  97443. 8027452: f107 0318 add.w r3, r7, #24
  97444. 8027456: 6a3a ldr r2, [r7, #32]
  97445. 8027458: 4619 mov r1, r3
  97446. 802745a: 6b38 ldr r0, [r7, #48] @ 0x30
  97447. 802745c: f000 f9f8 bl 8027850 <readMQTTLenString>
  97448. 8027460: 4603 mov r3, r0
  97449. 8027462: 2b00 cmp r3, #0
  97450. 8027464: d01e beq.n 80274a4 <MQTTDeserialize_publish+0xd8>
  97451. enddata - curdata < 0) /* do we have enough data to read the protocol version byte? */
  97452. 8027466: 69bb ldr r3, [r7, #24]
  97453. 8027468: 6a3a ldr r2, [r7, #32]
  97454. 802746a: 1ad3 subs r3, r2, r3
  97455. if (!readMQTTLenString(topicName, &curdata, enddata) ||
  97456. 802746c: 2b00 cmp r3, #0
  97457. 802746e: db19 blt.n 80274a4 <MQTTDeserialize_publish+0xd8>
  97458. goto exit;
  97459. if (*qos > 0)
  97460. 8027470: 68bb ldr r3, [r7, #8]
  97461. 8027472: 681b ldr r3, [r3, #0]
  97462. 8027474: 2b00 cmp r3, #0
  97463. 8027476: dd08 ble.n 802748a <MQTTDeserialize_publish+0xbe>
  97464. *packetid = readInt(&curdata);
  97465. 8027478: f107 0318 add.w r3, r7, #24
  97466. 802747c: 4618 mov r0, r3
  97467. 802747e: f000 f92d bl 80276dc <readInt>
  97468. 8027482: 4603 mov r3, r0
  97469. 8027484: b29a uxth r2, r3
  97470. 8027486: 683b ldr r3, [r7, #0]
  97471. 8027488: 801a strh r2, [r3, #0]
  97472. *payloadlen = enddata - curdata;
  97473. 802748a: 69bb ldr r3, [r7, #24]
  97474. 802748c: 6a3a ldr r2, [r7, #32]
  97475. 802748e: 1ad2 subs r2, r2, r3
  97476. 8027490: 6bbb ldr r3, [r7, #56] @ 0x38
  97477. 8027492: 601a str r2, [r3, #0]
  97478. *payload = curdata;
  97479. 8027494: 69ba ldr r2, [r7, #24]
  97480. 8027496: 6b7b ldr r3, [r7, #52] @ 0x34
  97481. 8027498: 601a str r2, [r3, #0]
  97482. rc = 1;
  97483. 802749a: 2301 movs r3, #1
  97484. 802749c: 627b str r3, [r7, #36] @ 0x24
  97485. 802749e: e002 b.n 80274a6 <MQTTDeserialize_publish+0xda>
  97486. goto exit;
  97487. 80274a0: bf00 nop
  97488. 80274a2: e000 b.n 80274a6 <MQTTDeserialize_publish+0xda>
  97489. goto exit;
  97490. 80274a4: bf00 nop
  97491. exit:
  97492. FUNC_EXIT_RC(rc);
  97493. return rc;
  97494. 80274a6: 6a7b ldr r3, [r7, #36] @ 0x24
  97495. }
  97496. 80274a8: 4618 mov r0, r3
  97497. 80274aa: 3728 adds r7, #40 @ 0x28
  97498. 80274ac: 46bd mov sp, r7
  97499. 80274ae: bd80 pop {r7, pc}
  97500. 080274b0 <MQTTDeserialize_ack>:
  97501. * @param buf the raw buffer data, of the correct length determined by the remaining length field
  97502. * @param buflen the length in bytes of the data in the supplied buffer
  97503. * @return error code. 1 is success, 0 is failure
  97504. */
  97505. int MQTTDeserialize_ack(unsigned char* packettype, unsigned char* dup, unsigned short* packetid, unsigned char* buf, int buflen)
  97506. {
  97507. 80274b0: b580 push {r7, lr}
  97508. 80274b2: b08a sub sp, #40 @ 0x28
  97509. 80274b4: af00 add r7, sp, #0
  97510. 80274b6: 60f8 str r0, [r7, #12]
  97511. 80274b8: 60b9 str r1, [r7, #8]
  97512. 80274ba: 607a str r2, [r7, #4]
  97513. 80274bc: 603b str r3, [r7, #0]
  97514. MQTTHeader header = {0};
  97515. 80274be: 2300 movs r3, #0
  97516. 80274c0: 61fb str r3, [r7, #28]
  97517. unsigned char* curdata = buf;
  97518. 80274c2: 683b ldr r3, [r7, #0]
  97519. 80274c4: 61bb str r3, [r7, #24]
  97520. unsigned char* enddata = NULL;
  97521. 80274c6: 2300 movs r3, #0
  97522. 80274c8: 623b str r3, [r7, #32]
  97523. int rc = 0;
  97524. 80274ca: 2300 movs r3, #0
  97525. 80274cc: 627b str r3, [r7, #36] @ 0x24
  97526. int mylen;
  97527. FUNC_ENTRY;
  97528. header.byte = readChar(&curdata);
  97529. 80274ce: f107 0318 add.w r3, r7, #24
  97530. 80274d2: 4618 mov r0, r3
  97531. 80274d4: f000 f91d bl 8027712 <readChar>
  97532. 80274d8: 4603 mov r3, r0
  97533. 80274da: 773b strb r3, [r7, #28]
  97534. *dup = header.bits.dup;
  97535. 80274dc: 7f3b ldrb r3, [r7, #28]
  97536. 80274de: f3c3 03c0 ubfx r3, r3, #3, #1
  97537. 80274e2: b2db uxtb r3, r3
  97538. 80274e4: 461a mov r2, r3
  97539. 80274e6: 68bb ldr r3, [r7, #8]
  97540. 80274e8: 701a strb r2, [r3, #0]
  97541. *packettype = header.bits.type;
  97542. 80274ea: 7f3b ldrb r3, [r7, #28]
  97543. 80274ec: f3c3 1303 ubfx r3, r3, #4, #4
  97544. 80274f0: b2db uxtb r3, r3
  97545. 80274f2: 461a mov r2, r3
  97546. 80274f4: 68fb ldr r3, [r7, #12]
  97547. 80274f6: 701a strb r2, [r3, #0]
  97548. curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */
  97549. 80274f8: 69bb ldr r3, [r7, #24]
  97550. 80274fa: f107 0214 add.w r2, r7, #20
  97551. 80274fe: 4611 mov r1, r2
  97552. 8027500: 4618 mov r0, r3
  97553. 8027502: f000 f8d5 bl 80276b0 <MQTTPacket_decodeBuf>
  97554. 8027506: 6278 str r0, [r7, #36] @ 0x24
  97555. 8027508: 6a7a ldr r2, [r7, #36] @ 0x24
  97556. 802750a: 69bb ldr r3, [r7, #24]
  97557. 802750c: 4413 add r3, r2
  97558. 802750e: 61bb str r3, [r7, #24]
  97559. enddata = curdata + mylen;
  97560. 8027510: 69bb ldr r3, [r7, #24]
  97561. 8027512: 697a ldr r2, [r7, #20]
  97562. 8027514: 4413 add r3, r2
  97563. 8027516: 623b str r3, [r7, #32]
  97564. if (enddata - curdata < 2)
  97565. 8027518: 69bb ldr r3, [r7, #24]
  97566. 802751a: 6a3a ldr r2, [r7, #32]
  97567. 802751c: 1ad3 subs r3, r2, r3
  97568. 802751e: 2b01 cmp r3, #1
  97569. 8027520: dd0b ble.n 802753a <MQTTDeserialize_ack+0x8a>
  97570. goto exit;
  97571. *packetid = readInt(&curdata);
  97572. 8027522: f107 0318 add.w r3, r7, #24
  97573. 8027526: 4618 mov r0, r3
  97574. 8027528: f000 f8d8 bl 80276dc <readInt>
  97575. 802752c: 4603 mov r3, r0
  97576. 802752e: b29a uxth r2, r3
  97577. 8027530: 687b ldr r3, [r7, #4]
  97578. 8027532: 801a strh r2, [r3, #0]
  97579. rc = 1;
  97580. 8027534: 2301 movs r3, #1
  97581. 8027536: 627b str r3, [r7, #36] @ 0x24
  97582. 8027538: e000 b.n 802753c <MQTTDeserialize_ack+0x8c>
  97583. goto exit;
  97584. 802753a: bf00 nop
  97585. exit:
  97586. FUNC_EXIT_RC(rc);
  97587. return rc;
  97588. 802753c: 6a7b ldr r3, [r7, #36] @ 0x24
  97589. }
  97590. 802753e: 4618 mov r0, r3
  97591. 8027540: 3728 adds r7, #40 @ 0x28
  97592. 8027542: 46bd mov sp, r7
  97593. 8027544: bd80 pop {r7, pc}
  97594. 08027546 <MQTTPacket_encode>:
  97595. * @param buf the buffer into which the encoded data is written
  97596. * @param length the length to be encoded
  97597. * @return the number of bytes written to buffer
  97598. */
  97599. int MQTTPacket_encode(unsigned char* buf, int length)
  97600. {
  97601. 8027546: b480 push {r7}
  97602. 8027548: b085 sub sp, #20
  97603. 802754a: af00 add r7, sp, #0
  97604. 802754c: 6078 str r0, [r7, #4]
  97605. 802754e: 6039 str r1, [r7, #0]
  97606. int rc = 0;
  97607. 8027550: 2300 movs r3, #0
  97608. 8027552: 60fb str r3, [r7, #12]
  97609. FUNC_ENTRY;
  97610. do
  97611. {
  97612. char d = length % 128;
  97613. 8027554: 683b ldr r3, [r7, #0]
  97614. 8027556: 425a negs r2, r3
  97615. 8027558: f003 037f and.w r3, r3, #127 @ 0x7f
  97616. 802755c: f002 027f and.w r2, r2, #127 @ 0x7f
  97617. 8027560: bf58 it pl
  97618. 8027562: 4253 negpl r3, r2
  97619. 8027564: 72fb strb r3, [r7, #11]
  97620. length /= 128;
  97621. 8027566: 683b ldr r3, [r7, #0]
  97622. 8027568: 2b00 cmp r3, #0
  97623. 802756a: da00 bge.n 802756e <MQTTPacket_encode+0x28>
  97624. 802756c: 337f adds r3, #127 @ 0x7f
  97625. 802756e: 11db asrs r3, r3, #7
  97626. 8027570: 603b str r3, [r7, #0]
  97627. /* if there are more digits to encode, set the top bit of this digit */
  97628. if (length > 0)
  97629. 8027572: 683b ldr r3, [r7, #0]
  97630. 8027574: 2b00 cmp r3, #0
  97631. 8027576: dd03 ble.n 8027580 <MQTTPacket_encode+0x3a>
  97632. d |= 0x80;
  97633. 8027578: 7afb ldrb r3, [r7, #11]
  97634. 802757a: f063 037f orn r3, r3, #127 @ 0x7f
  97635. 802757e: 72fb strb r3, [r7, #11]
  97636. buf[rc++] = d;
  97637. 8027580: 68fb ldr r3, [r7, #12]
  97638. 8027582: 1c5a adds r2, r3, #1
  97639. 8027584: 60fa str r2, [r7, #12]
  97640. 8027586: 461a mov r2, r3
  97641. 8027588: 687b ldr r3, [r7, #4]
  97642. 802758a: 4413 add r3, r2
  97643. 802758c: 7afa ldrb r2, [r7, #11]
  97644. 802758e: 701a strb r2, [r3, #0]
  97645. } while (length > 0);
  97646. 8027590: 683b ldr r3, [r7, #0]
  97647. 8027592: 2b00 cmp r3, #0
  97648. 8027594: dcde bgt.n 8027554 <MQTTPacket_encode+0xe>
  97649. FUNC_EXIT_RC(rc);
  97650. return rc;
  97651. 8027596: 68fb ldr r3, [r7, #12]
  97652. }
  97653. 8027598: 4618 mov r0, r3
  97654. 802759a: 3714 adds r7, #20
  97655. 802759c: 46bd mov sp, r7
  97656. 802759e: f85d 7b04 ldr.w r7, [sp], #4
  97657. 80275a2: 4770 bx lr
  97658. 080275a4 <MQTTPacket_decode>:
  97659. * @param getcharfn pointer to function to read the next character from the data source
  97660. * @param value the decoded length returned
  97661. * @return the number of bytes read from the socket
  97662. */
  97663. int MQTTPacket_decode(int (*getcharfn)(unsigned char*, int), int* value)
  97664. {
  97665. 80275a4: b580 push {r7, lr}
  97666. 80275a6: b086 sub sp, #24
  97667. 80275a8: af00 add r7, sp, #0
  97668. 80275aa: 6078 str r0, [r7, #4]
  97669. 80275ac: 6039 str r1, [r7, #0]
  97670. unsigned char c;
  97671. int multiplier = 1;
  97672. 80275ae: 2301 movs r3, #1
  97673. 80275b0: 617b str r3, [r7, #20]
  97674. int len = 0;
  97675. 80275b2: 2300 movs r3, #0
  97676. 80275b4: 613b str r3, [r7, #16]
  97677. #define MAX_NO_OF_REMAINING_LENGTH_BYTES 4
  97678. FUNC_ENTRY;
  97679. *value = 0;
  97680. 80275b6: 683b ldr r3, [r7, #0]
  97681. 80275b8: 2200 movs r2, #0
  97682. 80275ba: 601a str r2, [r3, #0]
  97683. do
  97684. {
  97685. int rc = MQTTPACKET_READ_ERROR;
  97686. 80275bc: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97687. 80275c0: 60fb str r3, [r7, #12]
  97688. if (++len > MAX_NO_OF_REMAINING_LENGTH_BYTES)
  97689. 80275c2: 693b ldr r3, [r7, #16]
  97690. 80275c4: 3301 adds r3, #1
  97691. 80275c6: 613b str r3, [r7, #16]
  97692. 80275c8: 693b ldr r3, [r7, #16]
  97693. 80275ca: 2b04 cmp r3, #4
  97694. 80275cc: dd03 ble.n 80275d6 <MQTTPacket_decode+0x32>
  97695. {
  97696. rc = MQTTPACKET_READ_ERROR; /* bad data */
  97697. 80275ce: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97698. 80275d2: 60fb str r3, [r7, #12]
  97699. goto exit;
  97700. 80275d4: e01d b.n 8027612 <MQTTPacket_decode+0x6e>
  97701. }
  97702. rc = (*getcharfn)(&c, 1);
  97703. 80275d6: f107 020b add.w r2, r7, #11
  97704. 80275da: 687b ldr r3, [r7, #4]
  97705. 80275dc: 2101 movs r1, #1
  97706. 80275de: 4610 mov r0, r2
  97707. 80275e0: 4798 blx r3
  97708. 80275e2: 60f8 str r0, [r7, #12]
  97709. if (rc != 1)
  97710. 80275e4: 68fb ldr r3, [r7, #12]
  97711. 80275e6: 2b01 cmp r3, #1
  97712. 80275e8: d112 bne.n 8027610 <MQTTPacket_decode+0x6c>
  97713. goto exit;
  97714. *value += (c & 127) * multiplier;
  97715. 80275ea: 683b ldr r3, [r7, #0]
  97716. 80275ec: 681a ldr r2, [r3, #0]
  97717. 80275ee: 7afb ldrb r3, [r7, #11]
  97718. 80275f0: f003 037f and.w r3, r3, #127 @ 0x7f
  97719. 80275f4: 6979 ldr r1, [r7, #20]
  97720. 80275f6: fb01 f303 mul.w r3, r1, r3
  97721. 80275fa: 441a add r2, r3
  97722. 80275fc: 683b ldr r3, [r7, #0]
  97723. 80275fe: 601a str r2, [r3, #0]
  97724. multiplier *= 128;
  97725. 8027600: 697b ldr r3, [r7, #20]
  97726. 8027602: 01db lsls r3, r3, #7
  97727. 8027604: 617b str r3, [r7, #20]
  97728. } while ((c & 128) != 0);
  97729. 8027606: 7afb ldrb r3, [r7, #11]
  97730. 8027608: b25b sxtb r3, r3
  97731. 802760a: 2b00 cmp r3, #0
  97732. 802760c: dbd6 blt.n 80275bc <MQTTPacket_decode+0x18>
  97733. exit:
  97734. 802760e: e000 b.n 8027612 <MQTTPacket_decode+0x6e>
  97735. goto exit;
  97736. 8027610: bf00 nop
  97737. FUNC_EXIT_RC(len);
  97738. return len;
  97739. 8027612: 693b ldr r3, [r7, #16]
  97740. }
  97741. 8027614: 4618 mov r0, r3
  97742. 8027616: 3718 adds r7, #24
  97743. 8027618: 46bd mov sp, r7
  97744. 802761a: bd80 pop {r7, pc}
  97745. 0802761c <MQTTPacket_len>:
  97746. int MQTTPacket_len(int rem_len)
  97747. {
  97748. 802761c: b480 push {r7}
  97749. 802761e: b083 sub sp, #12
  97750. 8027620: af00 add r7, sp, #0
  97751. 8027622: 6078 str r0, [r7, #4]
  97752. rem_len += 1; /* header byte */
  97753. 8027624: 687b ldr r3, [r7, #4]
  97754. 8027626: 3301 adds r3, #1
  97755. 8027628: 607b str r3, [r7, #4]
  97756. /* now remaining_length field */
  97757. if (rem_len < 128)
  97758. 802762a: 687b ldr r3, [r7, #4]
  97759. 802762c: 2b7f cmp r3, #127 @ 0x7f
  97760. 802762e: dc03 bgt.n 8027638 <MQTTPacket_len+0x1c>
  97761. rem_len += 1;
  97762. 8027630: 687b ldr r3, [r7, #4]
  97763. 8027632: 3301 adds r3, #1
  97764. 8027634: 607b str r3, [r7, #4]
  97765. 8027636: e012 b.n 802765e <MQTTPacket_len+0x42>
  97766. else if (rem_len < 16384)
  97767. 8027638: 687b ldr r3, [r7, #4]
  97768. 802763a: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  97769. 802763e: da03 bge.n 8027648 <MQTTPacket_len+0x2c>
  97770. rem_len += 2;
  97771. 8027640: 687b ldr r3, [r7, #4]
  97772. 8027642: 3302 adds r3, #2
  97773. 8027644: 607b str r3, [r7, #4]
  97774. 8027646: e00a b.n 802765e <MQTTPacket_len+0x42>
  97775. else if (rem_len < 2097151)
  97776. 8027648: 687b ldr r3, [r7, #4]
  97777. 802764a: 4a08 ldr r2, [pc, #32] @ (802766c <MQTTPacket_len+0x50>)
  97778. 802764c: 4293 cmp r3, r2
  97779. 802764e: dc03 bgt.n 8027658 <MQTTPacket_len+0x3c>
  97780. rem_len += 3;
  97781. 8027650: 687b ldr r3, [r7, #4]
  97782. 8027652: 3303 adds r3, #3
  97783. 8027654: 607b str r3, [r7, #4]
  97784. 8027656: e002 b.n 802765e <MQTTPacket_len+0x42>
  97785. else
  97786. rem_len += 4;
  97787. 8027658: 687b ldr r3, [r7, #4]
  97788. 802765a: 3304 adds r3, #4
  97789. 802765c: 607b str r3, [r7, #4]
  97790. return rem_len;
  97791. 802765e: 687b ldr r3, [r7, #4]
  97792. }
  97793. 8027660: 4618 mov r0, r3
  97794. 8027662: 370c adds r7, #12
  97795. 8027664: 46bd mov sp, r7
  97796. 8027666: f85d 7b04 ldr.w r7, [sp], #4
  97797. 802766a: 4770 bx lr
  97798. 802766c: 001ffffe .word 0x001ffffe
  97799. 08027670 <bufchar>:
  97800. static unsigned char* bufptr;
  97801. int bufchar(unsigned char* c, int count)
  97802. {
  97803. 8027670: b480 push {r7}
  97804. 8027672: b085 sub sp, #20
  97805. 8027674: af00 add r7, sp, #0
  97806. 8027676: 6078 str r0, [r7, #4]
  97807. 8027678: 6039 str r1, [r7, #0]
  97808. int i;
  97809. for (i = 0; i < count; ++i)
  97810. 802767a: 2300 movs r3, #0
  97811. 802767c: 60fb str r3, [r7, #12]
  97812. 802767e: e00a b.n 8027696 <bufchar+0x26>
  97813. *c = *bufptr++;
  97814. 8027680: 4b0a ldr r3, [pc, #40] @ (80276ac <bufchar+0x3c>)
  97815. 8027682: 681b ldr r3, [r3, #0]
  97816. 8027684: 1c5a adds r2, r3, #1
  97817. 8027686: 4909 ldr r1, [pc, #36] @ (80276ac <bufchar+0x3c>)
  97818. 8027688: 600a str r2, [r1, #0]
  97819. 802768a: 781a ldrb r2, [r3, #0]
  97820. 802768c: 687b ldr r3, [r7, #4]
  97821. 802768e: 701a strb r2, [r3, #0]
  97822. for (i = 0; i < count; ++i)
  97823. 8027690: 68fb ldr r3, [r7, #12]
  97824. 8027692: 3301 adds r3, #1
  97825. 8027694: 60fb str r3, [r7, #12]
  97826. 8027696: 68fa ldr r2, [r7, #12]
  97827. 8027698: 683b ldr r3, [r7, #0]
  97828. 802769a: 429a cmp r2, r3
  97829. 802769c: dbf0 blt.n 8027680 <bufchar+0x10>
  97830. return count;
  97831. 802769e: 683b ldr r3, [r7, #0]
  97832. }
  97833. 80276a0: 4618 mov r0, r3
  97834. 80276a2: 3714 adds r7, #20
  97835. 80276a4: 46bd mov sp, r7
  97836. 80276a6: f85d 7b04 ldr.w r7, [sp], #4
  97837. 80276aa: 4770 bx lr
  97838. 80276ac: 2402a19c .word 0x2402a19c
  97839. 080276b0 <MQTTPacket_decodeBuf>:
  97840. int MQTTPacket_decodeBuf(unsigned char* buf, int* value)
  97841. {
  97842. 80276b0: b580 push {r7, lr}
  97843. 80276b2: b082 sub sp, #8
  97844. 80276b4: af00 add r7, sp, #0
  97845. 80276b6: 6078 str r0, [r7, #4]
  97846. 80276b8: 6039 str r1, [r7, #0]
  97847. bufptr = buf;
  97848. 80276ba: 4a06 ldr r2, [pc, #24] @ (80276d4 <MQTTPacket_decodeBuf+0x24>)
  97849. 80276bc: 687b ldr r3, [r7, #4]
  97850. 80276be: 6013 str r3, [r2, #0]
  97851. return MQTTPacket_decode(bufchar, value);
  97852. 80276c0: 6839 ldr r1, [r7, #0]
  97853. 80276c2: 4805 ldr r0, [pc, #20] @ (80276d8 <MQTTPacket_decodeBuf+0x28>)
  97854. 80276c4: f7ff ff6e bl 80275a4 <MQTTPacket_decode>
  97855. 80276c8: 4603 mov r3, r0
  97856. }
  97857. 80276ca: 4618 mov r0, r3
  97858. 80276cc: 3708 adds r7, #8
  97859. 80276ce: 46bd mov sp, r7
  97860. 80276d0: bd80 pop {r7, pc}
  97861. 80276d2: bf00 nop
  97862. 80276d4: 2402a19c .word 0x2402a19c
  97863. 80276d8: 08027671 .word 0x08027671
  97864. 080276dc <readInt>:
  97865. * Calculates an integer from two bytes read from the input buffer
  97866. * @param pptr pointer to the input buffer - incremented by the number of bytes used & returned
  97867. * @return the integer value calculated
  97868. */
  97869. int readInt(unsigned char** pptr)
  97870. {
  97871. 80276dc: b480 push {r7}
  97872. 80276de: b085 sub sp, #20
  97873. 80276e0: af00 add r7, sp, #0
  97874. 80276e2: 6078 str r0, [r7, #4]
  97875. unsigned char* ptr = *pptr;
  97876. 80276e4: 687b ldr r3, [r7, #4]
  97877. 80276e6: 681b ldr r3, [r3, #0]
  97878. 80276e8: 60fb str r3, [r7, #12]
  97879. int len = 256*(*ptr) + (*(ptr+1));
  97880. 80276ea: 68fb ldr r3, [r7, #12]
  97881. 80276ec: 781b ldrb r3, [r3, #0]
  97882. 80276ee: 021b lsls r3, r3, #8
  97883. 80276f0: 68fa ldr r2, [r7, #12]
  97884. 80276f2: 3201 adds r2, #1
  97885. 80276f4: 7812 ldrb r2, [r2, #0]
  97886. 80276f6: 4413 add r3, r2
  97887. 80276f8: 60bb str r3, [r7, #8]
  97888. *pptr += 2;
  97889. 80276fa: 687b ldr r3, [r7, #4]
  97890. 80276fc: 681b ldr r3, [r3, #0]
  97891. 80276fe: 1c9a adds r2, r3, #2
  97892. 8027700: 687b ldr r3, [r7, #4]
  97893. 8027702: 601a str r2, [r3, #0]
  97894. return len;
  97895. 8027704: 68bb ldr r3, [r7, #8]
  97896. }
  97897. 8027706: 4618 mov r0, r3
  97898. 8027708: 3714 adds r7, #20
  97899. 802770a: 46bd mov sp, r7
  97900. 802770c: f85d 7b04 ldr.w r7, [sp], #4
  97901. 8027710: 4770 bx lr
  97902. 08027712 <readChar>:
  97903. * Reads one character from the input buffer.
  97904. * @param pptr pointer to the input buffer - incremented by the number of bytes used & returned
  97905. * @return the character read
  97906. */
  97907. char readChar(unsigned char** pptr)
  97908. {
  97909. 8027712: b480 push {r7}
  97910. 8027714: b085 sub sp, #20
  97911. 8027716: af00 add r7, sp, #0
  97912. 8027718: 6078 str r0, [r7, #4]
  97913. char c = **pptr;
  97914. 802771a: 687b ldr r3, [r7, #4]
  97915. 802771c: 681b ldr r3, [r3, #0]
  97916. 802771e: 781b ldrb r3, [r3, #0]
  97917. 8027720: 73fb strb r3, [r7, #15]
  97918. (*pptr)++;
  97919. 8027722: 687b ldr r3, [r7, #4]
  97920. 8027724: 681b ldr r3, [r3, #0]
  97921. 8027726: 1c5a adds r2, r3, #1
  97922. 8027728: 687b ldr r3, [r7, #4]
  97923. 802772a: 601a str r2, [r3, #0]
  97924. return c;
  97925. 802772c: 7bfb ldrb r3, [r7, #15]
  97926. }
  97927. 802772e: 4618 mov r0, r3
  97928. 8027730: 3714 adds r7, #20
  97929. 8027732: 46bd mov sp, r7
  97930. 8027734: f85d 7b04 ldr.w r7, [sp], #4
  97931. 8027738: 4770 bx lr
  97932. 0802773a <writeChar>:
  97933. * Writes one character to an output buffer.
  97934. * @param pptr pointer to the output buffer - incremented by the number of bytes used & returned
  97935. * @param c the character to write
  97936. */
  97937. void writeChar(unsigned char** pptr, char c)
  97938. {
  97939. 802773a: b480 push {r7}
  97940. 802773c: b083 sub sp, #12
  97941. 802773e: af00 add r7, sp, #0
  97942. 8027740: 6078 str r0, [r7, #4]
  97943. 8027742: 460b mov r3, r1
  97944. 8027744: 70fb strb r3, [r7, #3]
  97945. **pptr = c;
  97946. 8027746: 687b ldr r3, [r7, #4]
  97947. 8027748: 681b ldr r3, [r3, #0]
  97948. 802774a: 78fa ldrb r2, [r7, #3]
  97949. 802774c: 701a strb r2, [r3, #0]
  97950. (*pptr)++;
  97951. 802774e: 687b ldr r3, [r7, #4]
  97952. 8027750: 681b ldr r3, [r3, #0]
  97953. 8027752: 1c5a adds r2, r3, #1
  97954. 8027754: 687b ldr r3, [r7, #4]
  97955. 8027756: 601a str r2, [r3, #0]
  97956. }
  97957. 8027758: bf00 nop
  97958. 802775a: 370c adds r7, #12
  97959. 802775c: 46bd mov sp, r7
  97960. 802775e: f85d 7b04 ldr.w r7, [sp], #4
  97961. 8027762: 4770 bx lr
  97962. 08027764 <writeInt>:
  97963. * Writes an integer as 2 bytes to an output buffer.
  97964. * @param pptr pointer to the output buffer - incremented by the number of bytes used & returned
  97965. * @param anInt the integer to write
  97966. */
  97967. void writeInt(unsigned char** pptr, int anInt)
  97968. {
  97969. 8027764: b480 push {r7}
  97970. 8027766: b083 sub sp, #12
  97971. 8027768: af00 add r7, sp, #0
  97972. 802776a: 6078 str r0, [r7, #4]
  97973. 802776c: 6039 str r1, [r7, #0]
  97974. **pptr = (unsigned char)(anInt / 256);
  97975. 802776e: 683b ldr r3, [r7, #0]
  97976. 8027770: 2b00 cmp r3, #0
  97977. 8027772: da00 bge.n 8027776 <writeInt+0x12>
  97978. 8027774: 33ff adds r3, #255 @ 0xff
  97979. 8027776: 121b asrs r3, r3, #8
  97980. 8027778: 461a mov r2, r3
  97981. 802777a: 687b ldr r3, [r7, #4]
  97982. 802777c: 681b ldr r3, [r3, #0]
  97983. 802777e: b2d2 uxtb r2, r2
  97984. 8027780: 701a strb r2, [r3, #0]
  97985. (*pptr)++;
  97986. 8027782: 687b ldr r3, [r7, #4]
  97987. 8027784: 681b ldr r3, [r3, #0]
  97988. 8027786: 1c5a adds r2, r3, #1
  97989. 8027788: 687b ldr r3, [r7, #4]
  97990. 802778a: 601a str r2, [r3, #0]
  97991. **pptr = (unsigned char)(anInt % 256);
  97992. 802778c: 683b ldr r3, [r7, #0]
  97993. 802778e: 425a negs r2, r3
  97994. 8027790: b2db uxtb r3, r3
  97995. 8027792: b2d2 uxtb r2, r2
  97996. 8027794: bf58 it pl
  97997. 8027796: 4253 negpl r3, r2
  97998. 8027798: 687a ldr r2, [r7, #4]
  97999. 802779a: 6812 ldr r2, [r2, #0]
  98000. 802779c: b2db uxtb r3, r3
  98001. 802779e: 7013 strb r3, [r2, #0]
  98002. (*pptr)++;
  98003. 80277a0: 687b ldr r3, [r7, #4]
  98004. 80277a2: 681b ldr r3, [r3, #0]
  98005. 80277a4: 1c5a adds r2, r3, #1
  98006. 80277a6: 687b ldr r3, [r7, #4]
  98007. 80277a8: 601a str r2, [r3, #0]
  98008. }
  98009. 80277aa: bf00 nop
  98010. 80277ac: 370c adds r7, #12
  98011. 80277ae: 46bd mov sp, r7
  98012. 80277b0: f85d 7b04 ldr.w r7, [sp], #4
  98013. 80277b4: 4770 bx lr
  98014. 080277b6 <writeCString>:
  98015. * Writes a "UTF" string to an output buffer. Converts C string to length-delimited.
  98016. * @param pptr pointer to the output buffer - incremented by the number of bytes used & returned
  98017. * @param string the C string to write
  98018. */
  98019. void writeCString(unsigned char** pptr, const char* string)
  98020. {
  98021. 80277b6: b580 push {r7, lr}
  98022. 80277b8: b084 sub sp, #16
  98023. 80277ba: af00 add r7, sp, #0
  98024. 80277bc: 6078 str r0, [r7, #4]
  98025. 80277be: 6039 str r1, [r7, #0]
  98026. int len = strlen(string);
  98027. 80277c0: 6838 ldr r0, [r7, #0]
  98028. 80277c2: f7d8 fded bl 80003a0 <strlen>
  98029. 80277c6: 4603 mov r3, r0
  98030. 80277c8: 60fb str r3, [r7, #12]
  98031. writeInt(pptr, len);
  98032. 80277ca: 68f9 ldr r1, [r7, #12]
  98033. 80277cc: 6878 ldr r0, [r7, #4]
  98034. 80277ce: f7ff ffc9 bl 8027764 <writeInt>
  98035. memcpy(*pptr, string, len);
  98036. 80277d2: 687b ldr r3, [r7, #4]
  98037. 80277d4: 681b ldr r3, [r3, #0]
  98038. 80277d6: 68fa ldr r2, [r7, #12]
  98039. 80277d8: 6839 ldr r1, [r7, #0]
  98040. 80277da: 4618 mov r0, r3
  98041. 80277dc: f002 f91f bl 8029a1e <memcpy>
  98042. *pptr += len;
  98043. 80277e0: 687b ldr r3, [r7, #4]
  98044. 80277e2: 681a ldr r2, [r3, #0]
  98045. 80277e4: 68fb ldr r3, [r7, #12]
  98046. 80277e6: 441a add r2, r3
  98047. 80277e8: 687b ldr r3, [r7, #4]
  98048. 80277ea: 601a str r2, [r3, #0]
  98049. }
  98050. 80277ec: bf00 nop
  98051. 80277ee: 3710 adds r7, #16
  98052. 80277f0: 46bd mov sp, r7
  98053. 80277f2: bd80 pop {r7, pc}
  98054. 080277f4 <writeMQTTString>:
  98055. return len;
  98056. }
  98057. void writeMQTTString(unsigned char** pptr, MQTTString mqttstring)
  98058. {
  98059. 80277f4: b580 push {r7, lr}
  98060. 80277f6: b084 sub sp, #16
  98061. 80277f8: af00 add r7, sp, #0
  98062. 80277fa: 60f8 str r0, [r7, #12]
  98063. 80277fc: 4638 mov r0, r7
  98064. 80277fe: e880 000e stmia.w r0, {r1, r2, r3}
  98065. if (mqttstring.lenstring.len > 0)
  98066. 8027802: 687b ldr r3, [r7, #4]
  98067. 8027804: 2b00 cmp r3, #0
  98068. 8027806: dd12 ble.n 802782e <writeMQTTString+0x3a>
  98069. {
  98070. writeInt(pptr, mqttstring.lenstring.len);
  98071. 8027808: 687b ldr r3, [r7, #4]
  98072. 802780a: 4619 mov r1, r3
  98073. 802780c: 68f8 ldr r0, [r7, #12]
  98074. 802780e: f7ff ffa9 bl 8027764 <writeInt>
  98075. memcpy(*pptr, mqttstring.lenstring.data, mqttstring.lenstring.len);
  98076. 8027812: 68fb ldr r3, [r7, #12]
  98077. 8027814: 681b ldr r3, [r3, #0]
  98078. 8027816: 68b9 ldr r1, [r7, #8]
  98079. 8027818: 687a ldr r2, [r7, #4]
  98080. 802781a: 4618 mov r0, r3
  98081. 802781c: f002 f8ff bl 8029a1e <memcpy>
  98082. *pptr += mqttstring.lenstring.len;
  98083. 8027820: 68fb ldr r3, [r7, #12]
  98084. 8027822: 681b ldr r3, [r3, #0]
  98085. 8027824: 687a ldr r2, [r7, #4]
  98086. 8027826: 441a add r2, r3
  98087. 8027828: 68fb ldr r3, [r7, #12]
  98088. 802782a: 601a str r2, [r3, #0]
  98089. }
  98090. else if (mqttstring.cstring)
  98091. writeCString(pptr, mqttstring.cstring);
  98092. else
  98093. writeInt(pptr, 0);
  98094. }
  98095. 802782c: e00c b.n 8027848 <writeMQTTString+0x54>
  98096. else if (mqttstring.cstring)
  98097. 802782e: 683b ldr r3, [r7, #0]
  98098. 8027830: 2b00 cmp r3, #0
  98099. 8027832: d005 beq.n 8027840 <writeMQTTString+0x4c>
  98100. writeCString(pptr, mqttstring.cstring);
  98101. 8027834: 683b ldr r3, [r7, #0]
  98102. 8027836: 4619 mov r1, r3
  98103. 8027838: 68f8 ldr r0, [r7, #12]
  98104. 802783a: f7ff ffbc bl 80277b6 <writeCString>
  98105. }
  98106. 802783e: e003 b.n 8027848 <writeMQTTString+0x54>
  98107. writeInt(pptr, 0);
  98108. 8027840: 2100 movs r1, #0
  98109. 8027842: 68f8 ldr r0, [r7, #12]
  98110. 8027844: f7ff ff8e bl 8027764 <writeInt>
  98111. }
  98112. 8027848: bf00 nop
  98113. 802784a: 3710 adds r7, #16
  98114. 802784c: 46bd mov sp, r7
  98115. 802784e: bd80 pop {r7, pc}
  98116. 08027850 <readMQTTLenString>:
  98117. * @param pptr pointer to the output buffer - incremented by the number of bytes used & returned
  98118. * @param enddata pointer to the end of the data: do not read beyond
  98119. * @return 1 if successful, 0 if not
  98120. */
  98121. int readMQTTLenString(MQTTString* mqttstring, unsigned char** pptr, unsigned char* enddata)
  98122. {
  98123. 8027850: b580 push {r7, lr}
  98124. 8027852: b086 sub sp, #24
  98125. 8027854: af00 add r7, sp, #0
  98126. 8027856: 60f8 str r0, [r7, #12]
  98127. 8027858: 60b9 str r1, [r7, #8]
  98128. 802785a: 607a str r2, [r7, #4]
  98129. int rc = 0;
  98130. 802785c: 2300 movs r3, #0
  98131. 802785e: 617b str r3, [r7, #20]
  98132. FUNC_ENTRY;
  98133. /* the first two bytes are the length of the string */
  98134. if (enddata - (*pptr) > 1) /* enough length to read the integer? */
  98135. 8027860: 68bb ldr r3, [r7, #8]
  98136. 8027862: 681b ldr r3, [r3, #0]
  98137. 8027864: 687a ldr r2, [r7, #4]
  98138. 8027866: 1ad3 subs r3, r2, r3
  98139. 8027868: 2b01 cmp r3, #1
  98140. 802786a: dd1a ble.n 80278a2 <readMQTTLenString+0x52>
  98141. {
  98142. mqttstring->lenstring.len = readInt(pptr); /* increments pptr to point past length */
  98143. 802786c: 68b8 ldr r0, [r7, #8]
  98144. 802786e: f7ff ff35 bl 80276dc <readInt>
  98145. 8027872: 4602 mov r2, r0
  98146. 8027874: 68fb ldr r3, [r7, #12]
  98147. 8027876: 605a str r2, [r3, #4]
  98148. if (&(*pptr)[mqttstring->lenstring.len] <= enddata)
  98149. 8027878: 68bb ldr r3, [r7, #8]
  98150. 802787a: 681b ldr r3, [r3, #0]
  98151. 802787c: 68fa ldr r2, [r7, #12]
  98152. 802787e: 6852 ldr r2, [r2, #4]
  98153. 8027880: 4413 add r3, r2
  98154. 8027882: 687a ldr r2, [r7, #4]
  98155. 8027884: 429a cmp r2, r3
  98156. 8027886: d30c bcc.n 80278a2 <readMQTTLenString+0x52>
  98157. {
  98158. mqttstring->lenstring.data = (char*)*pptr;
  98159. 8027888: 68bb ldr r3, [r7, #8]
  98160. 802788a: 681a ldr r2, [r3, #0]
  98161. 802788c: 68fb ldr r3, [r7, #12]
  98162. 802788e: 609a str r2, [r3, #8]
  98163. *pptr += mqttstring->lenstring.len;
  98164. 8027890: 68bb ldr r3, [r7, #8]
  98165. 8027892: 681b ldr r3, [r3, #0]
  98166. 8027894: 68fa ldr r2, [r7, #12]
  98167. 8027896: 6852 ldr r2, [r2, #4]
  98168. 8027898: 441a add r2, r3
  98169. 802789a: 68bb ldr r3, [r7, #8]
  98170. 802789c: 601a str r2, [r3, #0]
  98171. rc = 1;
  98172. 802789e: 2301 movs r3, #1
  98173. 80278a0: 617b str r3, [r7, #20]
  98174. }
  98175. }
  98176. mqttstring->cstring = NULL;
  98177. 80278a2: 68fb ldr r3, [r7, #12]
  98178. 80278a4: 2200 movs r2, #0
  98179. 80278a6: 601a str r2, [r3, #0]
  98180. FUNC_EXIT_RC(rc);
  98181. return rc;
  98182. 80278a8: 697b ldr r3, [r7, #20]
  98183. }
  98184. 80278aa: 4618 mov r0, r3
  98185. 80278ac: 3718 adds r7, #24
  98186. 80278ae: 46bd mov sp, r7
  98187. 80278b0: bd80 pop {r7, pc}
  98188. 080278b2 <MQTTstrlen>:
  98189. * Return the length of the MQTTstring - C string if there is one, otherwise the length delimited string
  98190. * @param mqttstring the string to return the length of
  98191. * @return the length of the string
  98192. */
  98193. int MQTTstrlen(MQTTString mqttstring)
  98194. {
  98195. 80278b2: b580 push {r7, lr}
  98196. 80278b4: b086 sub sp, #24
  98197. 80278b6: af00 add r7, sp, #0
  98198. 80278b8: 1d3b adds r3, r7, #4
  98199. 80278ba: e883 0007 stmia.w r3, {r0, r1, r2}
  98200. int rc = 0;
  98201. 80278be: 2300 movs r3, #0
  98202. 80278c0: 617b str r3, [r7, #20]
  98203. if (mqttstring.cstring)
  98204. 80278c2: 687b ldr r3, [r7, #4]
  98205. 80278c4: 2b00 cmp r3, #0
  98206. 80278c6: d006 beq.n 80278d6 <MQTTstrlen+0x24>
  98207. rc = strlen(mqttstring.cstring);
  98208. 80278c8: 687b ldr r3, [r7, #4]
  98209. 80278ca: 4618 mov r0, r3
  98210. 80278cc: f7d8 fd68 bl 80003a0 <strlen>
  98211. 80278d0: 4603 mov r3, r0
  98212. 80278d2: 617b str r3, [r7, #20]
  98213. 80278d4: e001 b.n 80278da <MQTTstrlen+0x28>
  98214. else
  98215. rc = mqttstring.lenstring.len;
  98216. 80278d6: 68bb ldr r3, [r7, #8]
  98217. 80278d8: 617b str r3, [r7, #20]
  98218. return rc;
  98219. 80278da: 697b ldr r3, [r7, #20]
  98220. }
  98221. 80278dc: 4618 mov r0, r3
  98222. 80278de: 3718 adds r7, #24
  98223. 80278e0: 46bd mov sp, r7
  98224. 80278e2: bd80 pop {r7, pc}
  98225. 080278e4 <MQTTPacket_equals>:
  98226. * @param a the MQTTString to compare
  98227. * @param bptr the C string to compare
  98228. * @return boolean - equal or not
  98229. */
  98230. int MQTTPacket_equals(MQTTString* a, char* bptr)
  98231. {
  98232. 80278e4: b580 push {r7, lr}
  98233. 80278e6: b086 sub sp, #24
  98234. 80278e8: af00 add r7, sp, #0
  98235. 80278ea: 6078 str r0, [r7, #4]
  98236. 80278ec: 6039 str r1, [r7, #0]
  98237. int alen = 0,
  98238. 80278ee: 2300 movs r3, #0
  98239. 80278f0: 617b str r3, [r7, #20]
  98240. blen = 0;
  98241. 80278f2: 2300 movs r3, #0
  98242. 80278f4: 60fb str r3, [r7, #12]
  98243. char *aptr;
  98244. if (a->cstring)
  98245. 80278f6: 687b ldr r3, [r7, #4]
  98246. 80278f8: 681b ldr r3, [r3, #0]
  98247. 80278fa: 2b00 cmp r3, #0
  98248. 80278fc: d00a beq.n 8027914 <MQTTPacket_equals+0x30>
  98249. {
  98250. aptr = a->cstring;
  98251. 80278fe: 687b ldr r3, [r7, #4]
  98252. 8027900: 681b ldr r3, [r3, #0]
  98253. 8027902: 613b str r3, [r7, #16]
  98254. alen = strlen(a->cstring);
  98255. 8027904: 687b ldr r3, [r7, #4]
  98256. 8027906: 681b ldr r3, [r3, #0]
  98257. 8027908: 4618 mov r0, r3
  98258. 802790a: f7d8 fd49 bl 80003a0 <strlen>
  98259. 802790e: 4603 mov r3, r0
  98260. 8027910: 617b str r3, [r7, #20]
  98261. 8027912: e005 b.n 8027920 <MQTTPacket_equals+0x3c>
  98262. }
  98263. else
  98264. {
  98265. aptr = a->lenstring.data;
  98266. 8027914: 687b ldr r3, [r7, #4]
  98267. 8027916: 689b ldr r3, [r3, #8]
  98268. 8027918: 613b str r3, [r7, #16]
  98269. alen = a->lenstring.len;
  98270. 802791a: 687b ldr r3, [r7, #4]
  98271. 802791c: 685b ldr r3, [r3, #4]
  98272. 802791e: 617b str r3, [r7, #20]
  98273. }
  98274. blen = strlen(bptr);
  98275. 8027920: 6838 ldr r0, [r7, #0]
  98276. 8027922: f7d8 fd3d bl 80003a0 <strlen>
  98277. 8027926: 4603 mov r3, r0
  98278. 8027928: 60fb str r3, [r7, #12]
  98279. return (alen == blen) && (strncmp(aptr, bptr, alen) == 0);
  98280. 802792a: 697a ldr r2, [r7, #20]
  98281. 802792c: 68fb ldr r3, [r7, #12]
  98282. 802792e: 429a cmp r2, r3
  98283. 8027930: d10a bne.n 8027948 <MQTTPacket_equals+0x64>
  98284. 8027932: 697b ldr r3, [r7, #20]
  98285. 8027934: 461a mov r2, r3
  98286. 8027936: 6839 ldr r1, [r7, #0]
  98287. 8027938: 6938 ldr r0, [r7, #16]
  98288. 802793a: f001 ff81 bl 8029840 <strncmp>
  98289. 802793e: 4603 mov r3, r0
  98290. 8027940: 2b00 cmp r3, #0
  98291. 8027942: d101 bne.n 8027948 <MQTTPacket_equals+0x64>
  98292. 8027944: 2301 movs r3, #1
  98293. 8027946: e000 b.n 802794a <MQTTPacket_equals+0x66>
  98294. 8027948: 2300 movs r3, #0
  98295. }
  98296. 802794a: 4618 mov r0, r3
  98297. 802794c: 3718 adds r7, #24
  98298. 802794e: 46bd mov sp, r7
  98299. 8027950: bd80 pop {r7, pc}
  98300. 08027952 <MQTTSerialize_publishLength>:
  98301. * @param topicName the topic name to be used in the publish
  98302. * @param payloadlen the length of the payload to be sent
  98303. * @return the length of buffer needed to contain the serialized version of the packet
  98304. */
  98305. int MQTTSerialize_publishLength(int qos, MQTTString topicName, int payloadlen)
  98306. {
  98307. 8027952: b580 push {r7, lr}
  98308. 8027954: b086 sub sp, #24
  98309. 8027956: af00 add r7, sp, #0
  98310. 8027958: 60f8 str r0, [r7, #12]
  98311. 802795a: 4638 mov r0, r7
  98312. 802795c: e880 000e stmia.w r0, {r1, r2, r3}
  98313. int len = 0;
  98314. 8027960: 2300 movs r3, #0
  98315. 8027962: 617b str r3, [r7, #20]
  98316. len += 2 + MQTTstrlen(topicName) + payloadlen;
  98317. 8027964: 463b mov r3, r7
  98318. 8027966: e893 0007 ldmia.w r3, {r0, r1, r2}
  98319. 802796a: f7ff ffa2 bl 80278b2 <MQTTstrlen>
  98320. 802796e: 4603 mov r3, r0
  98321. 8027970: 1c9a adds r2, r3, #2
  98322. 8027972: 6a3b ldr r3, [r7, #32]
  98323. 8027974: 4413 add r3, r2
  98324. 8027976: 697a ldr r2, [r7, #20]
  98325. 8027978: 4413 add r3, r2
  98326. 802797a: 617b str r3, [r7, #20]
  98327. if (qos > 0)
  98328. 802797c: 68fb ldr r3, [r7, #12]
  98329. 802797e: 2b00 cmp r3, #0
  98330. 8027980: dd02 ble.n 8027988 <MQTTSerialize_publishLength+0x36>
  98331. len += 2; /* packetid */
  98332. 8027982: 697b ldr r3, [r7, #20]
  98333. 8027984: 3302 adds r3, #2
  98334. 8027986: 617b str r3, [r7, #20]
  98335. return len;
  98336. 8027988: 697b ldr r3, [r7, #20]
  98337. }
  98338. 802798a: 4618 mov r0, r3
  98339. 802798c: 3718 adds r7, #24
  98340. 802798e: 46bd mov sp, r7
  98341. 8027990: bd80 pop {r7, pc}
  98342. 08027992 <MQTTSerialize_publish>:
  98343. * @param payloadlen integer - the length of the MQTT payload
  98344. * @return the length of the serialized data. <= 0 indicates error
  98345. */
  98346. int MQTTSerialize_publish(unsigned char* buf, int buflen, unsigned char dup, int qos, unsigned char retained, unsigned short packetid,
  98347. MQTTString topicName, unsigned char* payload, int payloadlen)
  98348. {
  98349. 8027992: b580 push {r7, lr}
  98350. 8027994: b08a sub sp, #40 @ 0x28
  98351. 8027996: af02 add r7, sp, #8
  98352. 8027998: 60f8 str r0, [r7, #12]
  98353. 802799a: 60b9 str r1, [r7, #8]
  98354. 802799c: 603b str r3, [r7, #0]
  98355. 802799e: 4613 mov r3, r2
  98356. 80279a0: 71fb strb r3, [r7, #7]
  98357. unsigned char *ptr = buf;
  98358. 80279a2: 68fb ldr r3, [r7, #12]
  98359. 80279a4: 617b str r3, [r7, #20]
  98360. MQTTHeader header = {0};
  98361. 80279a6: 2300 movs r3, #0
  98362. 80279a8: 613b str r3, [r7, #16]
  98363. int rem_len = 0;
  98364. 80279aa: 2300 movs r3, #0
  98365. 80279ac: 61bb str r3, [r7, #24]
  98366. int rc = 0;
  98367. 80279ae: 2300 movs r3, #0
  98368. 80279b0: 61fb str r3, [r7, #28]
  98369. FUNC_ENTRY;
  98370. if (MQTTPacket_len(rem_len = MQTTSerialize_publishLength(qos, topicName, payloadlen)) > buflen)
  98371. 80279b2: 6c3b ldr r3, [r7, #64] @ 0x40
  98372. 80279b4: 9300 str r3, [sp, #0]
  98373. 80279b6: f107 0330 add.w r3, r7, #48 @ 0x30
  98374. 80279ba: cb0e ldmia r3, {r1, r2, r3}
  98375. 80279bc: 6838 ldr r0, [r7, #0]
  98376. 80279be: f7ff ffc8 bl 8027952 <MQTTSerialize_publishLength>
  98377. 80279c2: 61b8 str r0, [r7, #24]
  98378. 80279c4: 69b8 ldr r0, [r7, #24]
  98379. 80279c6: f7ff fe29 bl 802761c <MQTTPacket_len>
  98380. 80279ca: 4602 mov r2, r0
  98381. 80279cc: 68bb ldr r3, [r7, #8]
  98382. 80279ce: 4293 cmp r3, r2
  98383. 80279d0: da03 bge.n 80279da <MQTTSerialize_publish+0x48>
  98384. {
  98385. rc = MQTTPACKET_BUFFER_TOO_SHORT;
  98386. 80279d2: f06f 0301 mvn.w r3, #1
  98387. 80279d6: 61fb str r3, [r7, #28]
  98388. goto exit;
  98389. 80279d8: e04c b.n 8027a74 <MQTTSerialize_publish+0xe2>
  98390. }
  98391. header.bits.type = PUBLISH;
  98392. 80279da: 7c3b ldrb r3, [r7, #16]
  98393. 80279dc: 2203 movs r2, #3
  98394. 80279de: f362 1307 bfi r3, r2, #4, #4
  98395. 80279e2: 743b strb r3, [r7, #16]
  98396. header.bits.dup = dup;
  98397. 80279e4: 79fb ldrb r3, [r7, #7]
  98398. 80279e6: f003 0301 and.w r3, r3, #1
  98399. 80279ea: b2da uxtb r2, r3
  98400. 80279ec: 7c3b ldrb r3, [r7, #16]
  98401. 80279ee: f362 03c3 bfi r3, r2, #3, #1
  98402. 80279f2: 743b strb r3, [r7, #16]
  98403. header.bits.qos = qos;
  98404. 80279f4: 683b ldr r3, [r7, #0]
  98405. 80279f6: f003 0303 and.w r3, r3, #3
  98406. 80279fa: b2da uxtb r2, r3
  98407. 80279fc: 7c3b ldrb r3, [r7, #16]
  98408. 80279fe: f362 0342 bfi r3, r2, #1, #2
  98409. 8027a02: 743b strb r3, [r7, #16]
  98410. header.bits.retain = retained;
  98411. 8027a04: f897 3028 ldrb.w r3, [r7, #40] @ 0x28
  98412. 8027a08: f003 0301 and.w r3, r3, #1
  98413. 8027a0c: b2da uxtb r2, r3
  98414. 8027a0e: 7c3b ldrb r3, [r7, #16]
  98415. 8027a10: f362 0300 bfi r3, r2, #0, #1
  98416. 8027a14: 743b strb r3, [r7, #16]
  98417. writeChar(&ptr, header.byte); /* write header */
  98418. 8027a16: 7c3a ldrb r2, [r7, #16]
  98419. 8027a18: f107 0314 add.w r3, r7, #20
  98420. 8027a1c: 4611 mov r1, r2
  98421. 8027a1e: 4618 mov r0, r3
  98422. 8027a20: f7ff fe8b bl 802773a <writeChar>
  98423. ptr += MQTTPacket_encode(ptr, rem_len); /* write remaining length */;
  98424. 8027a24: 697b ldr r3, [r7, #20]
  98425. 8027a26: 69b9 ldr r1, [r7, #24]
  98426. 8027a28: 4618 mov r0, r3
  98427. 8027a2a: f7ff fd8c bl 8027546 <MQTTPacket_encode>
  98428. 8027a2e: 4602 mov r2, r0
  98429. 8027a30: 697b ldr r3, [r7, #20]
  98430. 8027a32: 4413 add r3, r2
  98431. 8027a34: 617b str r3, [r7, #20]
  98432. writeMQTTString(&ptr, topicName);
  98433. 8027a36: f107 0014 add.w r0, r7, #20
  98434. 8027a3a: f107 0330 add.w r3, r7, #48 @ 0x30
  98435. 8027a3e: cb0e ldmia r3, {r1, r2, r3}
  98436. 8027a40: f7ff fed8 bl 80277f4 <writeMQTTString>
  98437. if (qos > 0)
  98438. 8027a44: 683b ldr r3, [r7, #0]
  98439. 8027a46: 2b00 cmp r3, #0
  98440. 8027a48: dd06 ble.n 8027a58 <MQTTSerialize_publish+0xc6>
  98441. writeInt(&ptr, packetid);
  98442. 8027a4a: 8dba ldrh r2, [r7, #44] @ 0x2c
  98443. 8027a4c: f107 0314 add.w r3, r7, #20
  98444. 8027a50: 4611 mov r1, r2
  98445. 8027a52: 4618 mov r0, r3
  98446. 8027a54: f7ff fe86 bl 8027764 <writeInt>
  98447. memcpy(ptr, payload, payloadlen);
  98448. 8027a58: 697b ldr r3, [r7, #20]
  98449. 8027a5a: 6c3a ldr r2, [r7, #64] @ 0x40
  98450. 8027a5c: 6bf9 ldr r1, [r7, #60] @ 0x3c
  98451. 8027a5e: 4618 mov r0, r3
  98452. 8027a60: f001 ffdd bl 8029a1e <memcpy>
  98453. ptr += payloadlen;
  98454. 8027a64: 697a ldr r2, [r7, #20]
  98455. 8027a66: 6c3b ldr r3, [r7, #64] @ 0x40
  98456. 8027a68: 4413 add r3, r2
  98457. 8027a6a: 617b str r3, [r7, #20]
  98458. rc = ptr - buf;
  98459. 8027a6c: 697a ldr r2, [r7, #20]
  98460. 8027a6e: 68fb ldr r3, [r7, #12]
  98461. 8027a70: 1ad3 subs r3, r2, r3
  98462. 8027a72: 61fb str r3, [r7, #28]
  98463. exit:
  98464. FUNC_EXIT_RC(rc);
  98465. return rc;
  98466. 8027a74: 69fb ldr r3, [r7, #28]
  98467. }
  98468. 8027a76: 4618 mov r0, r3
  98469. 8027a78: 3720 adds r7, #32
  98470. 8027a7a: 46bd mov sp, r7
  98471. 8027a7c: bd80 pop {r7, pc}
  98472. 08027a7e <MQTTSerialize_ack>:
  98473. * @param dup the MQTT dup flag
  98474. * @param packetid the MQTT packet identifier
  98475. * @return serialized length, or error if 0
  98476. */
  98477. int MQTTSerialize_ack(unsigned char* buf, int buflen, unsigned char packettype, unsigned char dup, unsigned short packetid)
  98478. {
  98479. 8027a7e: b580 push {r7, lr}
  98480. 8027a80: b088 sub sp, #32
  98481. 8027a82: af00 add r7, sp, #0
  98482. 8027a84: 60f8 str r0, [r7, #12]
  98483. 8027a86: 60b9 str r1, [r7, #8]
  98484. 8027a88: 4611 mov r1, r2
  98485. 8027a8a: 461a mov r2, r3
  98486. 8027a8c: 460b mov r3, r1
  98487. 8027a8e: 71fb strb r3, [r7, #7]
  98488. 8027a90: 4613 mov r3, r2
  98489. 8027a92: 71bb strb r3, [r7, #6]
  98490. MQTTHeader header = {0};
  98491. 8027a94: 2300 movs r3, #0
  98492. 8027a96: 61bb str r3, [r7, #24]
  98493. int rc = 0;
  98494. 8027a98: 2300 movs r3, #0
  98495. 8027a9a: 61fb str r3, [r7, #28]
  98496. unsigned char *ptr = buf;
  98497. 8027a9c: 68fb ldr r3, [r7, #12]
  98498. 8027a9e: 617b str r3, [r7, #20]
  98499. FUNC_ENTRY;
  98500. if (buflen < 4)
  98501. 8027aa0: 68bb ldr r3, [r7, #8]
  98502. 8027aa2: 2b03 cmp r3, #3
  98503. 8027aa4: dc03 bgt.n 8027aae <MQTTSerialize_ack+0x30>
  98504. {
  98505. rc = MQTTPACKET_BUFFER_TOO_SHORT;
  98506. 8027aa6: f06f 0301 mvn.w r3, #1
  98507. 8027aaa: 61fb str r3, [r7, #28]
  98508. goto exit;
  98509. 8027aac: e037 b.n 8027b1e <MQTTSerialize_ack+0xa0>
  98510. }
  98511. header.bits.type = packettype;
  98512. 8027aae: 79fb ldrb r3, [r7, #7]
  98513. 8027ab0: f003 030f and.w r3, r3, #15
  98514. 8027ab4: b2da uxtb r2, r3
  98515. 8027ab6: 7e3b ldrb r3, [r7, #24]
  98516. 8027ab8: f362 1307 bfi r3, r2, #4, #4
  98517. 8027abc: 763b strb r3, [r7, #24]
  98518. header.bits.dup = dup;
  98519. 8027abe: 79bb ldrb r3, [r7, #6]
  98520. 8027ac0: f003 0301 and.w r3, r3, #1
  98521. 8027ac4: b2da uxtb r2, r3
  98522. 8027ac6: 7e3b ldrb r3, [r7, #24]
  98523. 8027ac8: f362 03c3 bfi r3, r2, #3, #1
  98524. 8027acc: 763b strb r3, [r7, #24]
  98525. header.bits.qos = (packettype == PUBREL) ? 1 : 0;
  98526. 8027ace: 79fb ldrb r3, [r7, #7]
  98527. 8027ad0: 2b06 cmp r3, #6
  98528. 8027ad2: bf0c ite eq
  98529. 8027ad4: 2301 moveq r3, #1
  98530. 8027ad6: 2300 movne r3, #0
  98531. 8027ad8: b2db uxtb r3, r3
  98532. 8027ada: f003 0303 and.w r3, r3, #3
  98533. 8027ade: b2da uxtb r2, r3
  98534. 8027ae0: 7e3b ldrb r3, [r7, #24]
  98535. 8027ae2: f362 0342 bfi r3, r2, #1, #2
  98536. 8027ae6: 763b strb r3, [r7, #24]
  98537. writeChar(&ptr, header.byte); /* write header */
  98538. 8027ae8: 7e3a ldrb r2, [r7, #24]
  98539. 8027aea: f107 0314 add.w r3, r7, #20
  98540. 8027aee: 4611 mov r1, r2
  98541. 8027af0: 4618 mov r0, r3
  98542. 8027af2: f7ff fe22 bl 802773a <writeChar>
  98543. ptr += MQTTPacket_encode(ptr, 2); /* write remaining length */
  98544. 8027af6: 697b ldr r3, [r7, #20]
  98545. 8027af8: 2102 movs r1, #2
  98546. 8027afa: 4618 mov r0, r3
  98547. 8027afc: f7ff fd23 bl 8027546 <MQTTPacket_encode>
  98548. 8027b00: 4602 mov r2, r0
  98549. 8027b02: 697b ldr r3, [r7, #20]
  98550. 8027b04: 4413 add r3, r2
  98551. 8027b06: 617b str r3, [r7, #20]
  98552. writeInt(&ptr, packetid);
  98553. 8027b08: 8d3a ldrh r2, [r7, #40] @ 0x28
  98554. 8027b0a: f107 0314 add.w r3, r7, #20
  98555. 8027b0e: 4611 mov r1, r2
  98556. 8027b10: 4618 mov r0, r3
  98557. 8027b12: f7ff fe27 bl 8027764 <writeInt>
  98558. rc = ptr - buf;
  98559. 8027b16: 697a ldr r2, [r7, #20]
  98560. 8027b18: 68fb ldr r3, [r7, #12]
  98561. 8027b1a: 1ad3 subs r3, r2, r3
  98562. 8027b1c: 61fb str r3, [r7, #28]
  98563. exit:
  98564. FUNC_EXIT_RC(rc);
  98565. return rc;
  98566. 8027b1e: 69fb ldr r3, [r7, #28]
  98567. }
  98568. 8027b20: 4618 mov r0, r3
  98569. 8027b22: 3720 adds r7, #32
  98570. 8027b24: 46bd mov sp, r7
  98571. 8027b26: bd80 pop {r7, pc}
  98572. 08027b28 <MQTTSerialize_subscribeLength>:
  98573. * @param count the number of topic filter strings in topicFilters
  98574. * @param topicFilters the array of topic filter strings to be used in the publish
  98575. * @return the length of buffer needed to contain the serialized version of the packet
  98576. */
  98577. int MQTTSerialize_subscribeLength(int count, MQTTString topicFilters[])
  98578. {
  98579. 8027b28: b580 push {r7, lr}
  98580. 8027b2a: b084 sub sp, #16
  98581. 8027b2c: af00 add r7, sp, #0
  98582. 8027b2e: 6078 str r0, [r7, #4]
  98583. 8027b30: 6039 str r1, [r7, #0]
  98584. int i;
  98585. int len = 2; /* packetid */
  98586. 8027b32: 2302 movs r3, #2
  98587. 8027b34: 60bb str r3, [r7, #8]
  98588. for (i = 0; i < count; ++i)
  98589. 8027b36: 2300 movs r3, #0
  98590. 8027b38: 60fb str r3, [r7, #12]
  98591. 8027b3a: e013 b.n 8027b64 <MQTTSerialize_subscribeLength+0x3c>
  98592. len += 2 + MQTTstrlen(topicFilters[i]) + 1; /* length + topic + req_qos */
  98593. 8027b3c: 68fa ldr r2, [r7, #12]
  98594. 8027b3e: 4613 mov r3, r2
  98595. 8027b40: 005b lsls r3, r3, #1
  98596. 8027b42: 4413 add r3, r2
  98597. 8027b44: 009b lsls r3, r3, #2
  98598. 8027b46: 461a mov r2, r3
  98599. 8027b48: 683b ldr r3, [r7, #0]
  98600. 8027b4a: 4413 add r3, r2
  98601. 8027b4c: e893 0007 ldmia.w r3, {r0, r1, r2}
  98602. 8027b50: f7ff feaf bl 80278b2 <MQTTstrlen>
  98603. 8027b54: 4603 mov r3, r0
  98604. 8027b56: 3303 adds r3, #3
  98605. 8027b58: 68ba ldr r2, [r7, #8]
  98606. 8027b5a: 4413 add r3, r2
  98607. 8027b5c: 60bb str r3, [r7, #8]
  98608. for (i = 0; i < count; ++i)
  98609. 8027b5e: 68fb ldr r3, [r7, #12]
  98610. 8027b60: 3301 adds r3, #1
  98611. 8027b62: 60fb str r3, [r7, #12]
  98612. 8027b64: 68fa ldr r2, [r7, #12]
  98613. 8027b66: 687b ldr r3, [r7, #4]
  98614. 8027b68: 429a cmp r2, r3
  98615. 8027b6a: dbe7 blt.n 8027b3c <MQTTSerialize_subscribeLength+0x14>
  98616. return len;
  98617. 8027b6c: 68bb ldr r3, [r7, #8]
  98618. }
  98619. 8027b6e: 4618 mov r0, r3
  98620. 8027b70: 3710 adds r7, #16
  98621. 8027b72: 46bd mov sp, r7
  98622. 8027b74: bd80 pop {r7, pc}
  98623. 08027b76 <MQTTSerialize_subscribe>:
  98624. * @param requestedQoSs - array of requested QoS
  98625. * @return the length of the serialized data. <= 0 indicates error
  98626. */
  98627. int MQTTSerialize_subscribe(unsigned char* buf, int buflen, unsigned char dup, unsigned short packetid, int count,
  98628. MQTTString topicFilters[], int requestedQoSs[])
  98629. {
  98630. 8027b76: b580 push {r7, lr}
  98631. 8027b78: b08a sub sp, #40 @ 0x28
  98632. 8027b7a: af00 add r7, sp, #0
  98633. 8027b7c: 60f8 str r0, [r7, #12]
  98634. 8027b7e: 60b9 str r1, [r7, #8]
  98635. 8027b80: 4611 mov r1, r2
  98636. 8027b82: 461a mov r2, r3
  98637. 8027b84: 460b mov r3, r1
  98638. 8027b86: 71fb strb r3, [r7, #7]
  98639. 8027b88: 4613 mov r3, r2
  98640. 8027b8a: 80bb strh r3, [r7, #4]
  98641. unsigned char *ptr = buf;
  98642. 8027b8c: 68fb ldr r3, [r7, #12]
  98643. 8027b8e: 61bb str r3, [r7, #24]
  98644. MQTTHeader header = {0};
  98645. 8027b90: 2300 movs r3, #0
  98646. 8027b92: 617b str r3, [r7, #20]
  98647. int rem_len = 0;
  98648. 8027b94: 2300 movs r3, #0
  98649. 8027b96: 61fb str r3, [r7, #28]
  98650. int rc = 0;
  98651. 8027b98: 2300 movs r3, #0
  98652. 8027b9a: 627b str r3, [r7, #36] @ 0x24
  98653. int i = 0;
  98654. 8027b9c: 2300 movs r3, #0
  98655. 8027b9e: 623b str r3, [r7, #32]
  98656. FUNC_ENTRY;
  98657. if (MQTTPacket_len(rem_len = MQTTSerialize_subscribeLength(count, topicFilters)) > buflen)
  98658. 8027ba0: 6b79 ldr r1, [r7, #52] @ 0x34
  98659. 8027ba2: 6b38 ldr r0, [r7, #48] @ 0x30
  98660. 8027ba4: f7ff ffc0 bl 8027b28 <MQTTSerialize_subscribeLength>
  98661. 8027ba8: 61f8 str r0, [r7, #28]
  98662. 8027baa: 69f8 ldr r0, [r7, #28]
  98663. 8027bac: f7ff fd36 bl 802761c <MQTTPacket_len>
  98664. 8027bb0: 4602 mov r2, r0
  98665. 8027bb2: 68bb ldr r3, [r7, #8]
  98666. 8027bb4: 4293 cmp r3, r2
  98667. 8027bb6: da03 bge.n 8027bc0 <MQTTSerialize_subscribe+0x4a>
  98668. {
  98669. rc = MQTTPACKET_BUFFER_TOO_SHORT;
  98670. 8027bb8: f06f 0301 mvn.w r3, #1
  98671. 8027bbc: 627b str r3, [r7, #36] @ 0x24
  98672. goto exit;
  98673. 8027bbe: e051 b.n 8027c64 <MQTTSerialize_subscribe+0xee>
  98674. }
  98675. header.byte = 0;
  98676. 8027bc0: 2300 movs r3, #0
  98677. 8027bc2: 753b strb r3, [r7, #20]
  98678. header.bits.type = SUBSCRIBE;
  98679. 8027bc4: 7d3b ldrb r3, [r7, #20]
  98680. 8027bc6: 2208 movs r2, #8
  98681. 8027bc8: f362 1307 bfi r3, r2, #4, #4
  98682. 8027bcc: 753b strb r3, [r7, #20]
  98683. header.bits.dup = dup;
  98684. 8027bce: 79fb ldrb r3, [r7, #7]
  98685. 8027bd0: f003 0301 and.w r3, r3, #1
  98686. 8027bd4: b2da uxtb r2, r3
  98687. 8027bd6: 7d3b ldrb r3, [r7, #20]
  98688. 8027bd8: f362 03c3 bfi r3, r2, #3, #1
  98689. 8027bdc: 753b strb r3, [r7, #20]
  98690. header.bits.qos = 1;
  98691. 8027bde: 7d3b ldrb r3, [r7, #20]
  98692. 8027be0: 2201 movs r2, #1
  98693. 8027be2: f362 0342 bfi r3, r2, #1, #2
  98694. 8027be6: 753b strb r3, [r7, #20]
  98695. writeChar(&ptr, header.byte); /* write header */
  98696. 8027be8: 7d3a ldrb r2, [r7, #20]
  98697. 8027bea: f107 0318 add.w r3, r7, #24
  98698. 8027bee: 4611 mov r1, r2
  98699. 8027bf0: 4618 mov r0, r3
  98700. 8027bf2: f7ff fda2 bl 802773a <writeChar>
  98701. ptr += MQTTPacket_encode(ptr, rem_len); /* write remaining length */;
  98702. 8027bf6: 69bb ldr r3, [r7, #24]
  98703. 8027bf8: 69f9 ldr r1, [r7, #28]
  98704. 8027bfa: 4618 mov r0, r3
  98705. 8027bfc: f7ff fca3 bl 8027546 <MQTTPacket_encode>
  98706. 8027c00: 4602 mov r2, r0
  98707. 8027c02: 69bb ldr r3, [r7, #24]
  98708. 8027c04: 4413 add r3, r2
  98709. 8027c06: 61bb str r3, [r7, #24]
  98710. writeInt(&ptr, packetid);
  98711. 8027c08: 88ba ldrh r2, [r7, #4]
  98712. 8027c0a: f107 0318 add.w r3, r7, #24
  98713. 8027c0e: 4611 mov r1, r2
  98714. 8027c10: 4618 mov r0, r3
  98715. 8027c12: f7ff fda7 bl 8027764 <writeInt>
  98716. for (i = 0; i < count; ++i)
  98717. 8027c16: 2300 movs r3, #0
  98718. 8027c18: 623b str r3, [r7, #32]
  98719. 8027c1a: e01b b.n 8027c54 <MQTTSerialize_subscribe+0xde>
  98720. {
  98721. writeMQTTString(&ptr, topicFilters[i]);
  98722. 8027c1c: 6a3a ldr r2, [r7, #32]
  98723. 8027c1e: 4613 mov r3, r2
  98724. 8027c20: 005b lsls r3, r3, #1
  98725. 8027c22: 4413 add r3, r2
  98726. 8027c24: 009b lsls r3, r3, #2
  98727. 8027c26: 461a mov r2, r3
  98728. 8027c28: 6b7b ldr r3, [r7, #52] @ 0x34
  98729. 8027c2a: 4413 add r3, r2
  98730. 8027c2c: f107 0018 add.w r0, r7, #24
  98731. 8027c30: cb0e ldmia r3, {r1, r2, r3}
  98732. 8027c32: f7ff fddf bl 80277f4 <writeMQTTString>
  98733. writeChar(&ptr, requestedQoSs[i]);
  98734. 8027c36: 6a3b ldr r3, [r7, #32]
  98735. 8027c38: 009b lsls r3, r3, #2
  98736. 8027c3a: 6bba ldr r2, [r7, #56] @ 0x38
  98737. 8027c3c: 4413 add r3, r2
  98738. 8027c3e: 681b ldr r3, [r3, #0]
  98739. 8027c40: b2da uxtb r2, r3
  98740. 8027c42: f107 0318 add.w r3, r7, #24
  98741. 8027c46: 4611 mov r1, r2
  98742. 8027c48: 4618 mov r0, r3
  98743. 8027c4a: f7ff fd76 bl 802773a <writeChar>
  98744. for (i = 0; i < count; ++i)
  98745. 8027c4e: 6a3b ldr r3, [r7, #32]
  98746. 8027c50: 3301 adds r3, #1
  98747. 8027c52: 623b str r3, [r7, #32]
  98748. 8027c54: 6a3a ldr r2, [r7, #32]
  98749. 8027c56: 6b3b ldr r3, [r7, #48] @ 0x30
  98750. 8027c58: 429a cmp r2, r3
  98751. 8027c5a: dbdf blt.n 8027c1c <MQTTSerialize_subscribe+0xa6>
  98752. }
  98753. rc = ptr - buf;
  98754. 8027c5c: 69ba ldr r2, [r7, #24]
  98755. 8027c5e: 68fb ldr r3, [r7, #12]
  98756. 8027c60: 1ad3 subs r3, r2, r3
  98757. 8027c62: 627b str r3, [r7, #36] @ 0x24
  98758. exit:
  98759. FUNC_EXIT_RC(rc);
  98760. return rc;
  98761. 8027c64: 6a7b ldr r3, [r7, #36] @ 0x24
  98762. }
  98763. 8027c66: 4618 mov r0, r3
  98764. 8027c68: 3728 adds r7, #40 @ 0x28
  98765. 8027c6a: 46bd mov sp, r7
  98766. 8027c6c: bd80 pop {r7, pc}
  98767. 08027c6e <MQTTDeserialize_suback>:
  98768. * @param buf the raw buffer data, of the correct length determined by the remaining length field
  98769. * @param buflen the length in bytes of the data in the supplied buffer
  98770. * @return error code. 1 is success, 0 is failure
  98771. */
  98772. int MQTTDeserialize_suback(unsigned short* packetid, int maxcount, int* count, int grantedQoSs[], unsigned char* buf, int buflen)
  98773. {
  98774. 8027c6e: b580 push {r7, lr}
  98775. 8027c70: b08a sub sp, #40 @ 0x28
  98776. 8027c72: af00 add r7, sp, #0
  98777. 8027c74: 60f8 str r0, [r7, #12]
  98778. 8027c76: 60b9 str r1, [r7, #8]
  98779. 8027c78: 607a str r2, [r7, #4]
  98780. 8027c7a: 603b str r3, [r7, #0]
  98781. MQTTHeader header = {0};
  98782. 8027c7c: 2300 movs r3, #0
  98783. 8027c7e: 61fb str r3, [r7, #28]
  98784. unsigned char* curdata = buf;
  98785. 8027c80: 6b3b ldr r3, [r7, #48] @ 0x30
  98786. 8027c82: 61bb str r3, [r7, #24]
  98787. unsigned char* enddata = NULL;
  98788. 8027c84: 2300 movs r3, #0
  98789. 8027c86: 623b str r3, [r7, #32]
  98790. int rc = 0;
  98791. 8027c88: 2300 movs r3, #0
  98792. 8027c8a: 627b str r3, [r7, #36] @ 0x24
  98793. int mylen;
  98794. FUNC_ENTRY;
  98795. header.byte = readChar(&curdata);
  98796. 8027c8c: f107 0318 add.w r3, r7, #24
  98797. 8027c90: 4618 mov r0, r3
  98798. 8027c92: f7ff fd3e bl 8027712 <readChar>
  98799. 8027c96: 4603 mov r3, r0
  98800. 8027c98: 773b strb r3, [r7, #28]
  98801. if (header.bits.type != SUBACK)
  98802. 8027c9a: 7f3b ldrb r3, [r7, #28]
  98803. 8027c9c: f023 030f bic.w r3, r3, #15
  98804. 8027ca0: b2db uxtb r3, r3
  98805. 8027ca2: 2b90 cmp r3, #144 @ 0x90
  98806. 8027ca4: d142 bne.n 8027d2c <MQTTDeserialize_suback+0xbe>
  98807. goto exit;
  98808. curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */
  98809. 8027ca6: 69bb ldr r3, [r7, #24]
  98810. 8027ca8: f107 0214 add.w r2, r7, #20
  98811. 8027cac: 4611 mov r1, r2
  98812. 8027cae: 4618 mov r0, r3
  98813. 8027cb0: f7ff fcfe bl 80276b0 <MQTTPacket_decodeBuf>
  98814. 8027cb4: 6278 str r0, [r7, #36] @ 0x24
  98815. 8027cb6: 6a7a ldr r2, [r7, #36] @ 0x24
  98816. 8027cb8: 69bb ldr r3, [r7, #24]
  98817. 8027cba: 4413 add r3, r2
  98818. 8027cbc: 61bb str r3, [r7, #24]
  98819. enddata = curdata + mylen;
  98820. 8027cbe: 69bb ldr r3, [r7, #24]
  98821. 8027cc0: 697a ldr r2, [r7, #20]
  98822. 8027cc2: 4413 add r3, r2
  98823. 8027cc4: 623b str r3, [r7, #32]
  98824. if (enddata - curdata < 2)
  98825. 8027cc6: 69bb ldr r3, [r7, #24]
  98826. 8027cc8: 6a3a ldr r2, [r7, #32]
  98827. 8027cca: 1ad3 subs r3, r2, r3
  98828. 8027ccc: 2b01 cmp r3, #1
  98829. 8027cce: dd2f ble.n 8027d30 <MQTTDeserialize_suback+0xc2>
  98830. goto exit;
  98831. *packetid = readInt(&curdata);
  98832. 8027cd0: f107 0318 add.w r3, r7, #24
  98833. 8027cd4: 4618 mov r0, r3
  98834. 8027cd6: f7ff fd01 bl 80276dc <readInt>
  98835. 8027cda: 4603 mov r3, r0
  98836. 8027cdc: b29a uxth r2, r3
  98837. 8027cde: 68fb ldr r3, [r7, #12]
  98838. 8027ce0: 801a strh r2, [r3, #0]
  98839. *count = 0;
  98840. 8027ce2: 687b ldr r3, [r7, #4]
  98841. 8027ce4: 2200 movs r2, #0
  98842. 8027ce6: 601a str r2, [r3, #0]
  98843. while (curdata < enddata)
  98844. 8027ce8: e019 b.n 8027d1e <MQTTDeserialize_suback+0xb0>
  98845. {
  98846. if (*count > maxcount)
  98847. 8027cea: 687b ldr r3, [r7, #4]
  98848. 8027cec: 681b ldr r3, [r3, #0]
  98849. 8027cee: 68ba ldr r2, [r7, #8]
  98850. 8027cf0: 429a cmp r2, r3
  98851. 8027cf2: da03 bge.n 8027cfc <MQTTDeserialize_suback+0x8e>
  98852. {
  98853. rc = -1;
  98854. 8027cf4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98855. 8027cf8: 627b str r3, [r7, #36] @ 0x24
  98856. goto exit;
  98857. 8027cfa: e01a b.n 8027d32 <MQTTDeserialize_suback+0xc4>
  98858. }
  98859. grantedQoSs[(*count)++] = readChar(&curdata);
  98860. 8027cfc: f107 0318 add.w r3, r7, #24
  98861. 8027d00: 4618 mov r0, r3
  98862. 8027d02: f7ff fd06 bl 8027712 <readChar>
  98863. 8027d06: 4603 mov r3, r0
  98864. 8027d08: 4618 mov r0, r3
  98865. 8027d0a: 687b ldr r3, [r7, #4]
  98866. 8027d0c: 681b ldr r3, [r3, #0]
  98867. 8027d0e: 1c59 adds r1, r3, #1
  98868. 8027d10: 687a ldr r2, [r7, #4]
  98869. 8027d12: 6011 str r1, [r2, #0]
  98870. 8027d14: 009b lsls r3, r3, #2
  98871. 8027d16: 683a ldr r2, [r7, #0]
  98872. 8027d18: 4413 add r3, r2
  98873. 8027d1a: 4602 mov r2, r0
  98874. 8027d1c: 601a str r2, [r3, #0]
  98875. while (curdata < enddata)
  98876. 8027d1e: 69bb ldr r3, [r7, #24]
  98877. 8027d20: 6a3a ldr r2, [r7, #32]
  98878. 8027d22: 429a cmp r2, r3
  98879. 8027d24: d8e1 bhi.n 8027cea <MQTTDeserialize_suback+0x7c>
  98880. }
  98881. rc = 1;
  98882. 8027d26: 2301 movs r3, #1
  98883. 8027d28: 627b str r3, [r7, #36] @ 0x24
  98884. 8027d2a: e002 b.n 8027d32 <MQTTDeserialize_suback+0xc4>
  98885. goto exit;
  98886. 8027d2c: bf00 nop
  98887. 8027d2e: e000 b.n 8027d32 <MQTTDeserialize_suback+0xc4>
  98888. goto exit;
  98889. 8027d30: bf00 nop
  98890. exit:
  98891. FUNC_EXIT_RC(rc);
  98892. return rc;
  98893. 8027d32: 6a7b ldr r3, [r7, #36] @ 0x24
  98894. }
  98895. 8027d34: 4618 mov r0, r3
  98896. 8027d36: 3728 adds r7, #40 @ 0x28
  98897. 8027d38: 46bd mov sp, r7
  98898. 8027d3a: bd80 pop {r7, pc}
  98899. 08027d3c <malloc>:
  98900. 8027d3c: 4b02 ldr r3, [pc, #8] @ (8027d48 <malloc+0xc>)
  98901. 8027d3e: 4601 mov r1, r0
  98902. 8027d40: 6818 ldr r0, [r3, #0]
  98903. 8027d42: f000 b82d b.w 8027da0 <_malloc_r>
  98904. 8027d46: bf00 nop
  98905. 8027d48: 240001c0 .word 0x240001c0
  98906. 08027d4c <free>:
  98907. 8027d4c: 4b02 ldr r3, [pc, #8] @ (8027d58 <free+0xc>)
  98908. 8027d4e: 4601 mov r1, r0
  98909. 8027d50: 6818 ldr r0, [r3, #0]
  98910. 8027d52: f002 bc7b b.w 802a64c <_free_r>
  98911. 8027d56: bf00 nop
  98912. 8027d58: 240001c0 .word 0x240001c0
  98913. 08027d5c <sbrk_aligned>:
  98914. 8027d5c: b570 push {r4, r5, r6, lr}
  98915. 8027d5e: 4e0f ldr r6, [pc, #60] @ (8027d9c <sbrk_aligned+0x40>)
  98916. 8027d60: 460c mov r4, r1
  98917. 8027d62: 6831 ldr r1, [r6, #0]
  98918. 8027d64: 4605 mov r5, r0
  98919. 8027d66: b911 cbnz r1, 8027d6e <sbrk_aligned+0x12>
  98920. 8027d68: f001 fe0a bl 8029980 <_sbrk_r>
  98921. 8027d6c: 6030 str r0, [r6, #0]
  98922. 8027d6e: 4621 mov r1, r4
  98923. 8027d70: 4628 mov r0, r5
  98924. 8027d72: f001 fe05 bl 8029980 <_sbrk_r>
  98925. 8027d76: 1c43 adds r3, r0, #1
  98926. 8027d78: d103 bne.n 8027d82 <sbrk_aligned+0x26>
  98927. 8027d7a: f04f 34ff mov.w r4, #4294967295 @ 0xffffffff
  98928. 8027d7e: 4620 mov r0, r4
  98929. 8027d80: bd70 pop {r4, r5, r6, pc}
  98930. 8027d82: 1cc4 adds r4, r0, #3
  98931. 8027d84: f024 0403 bic.w r4, r4, #3
  98932. 8027d88: 42a0 cmp r0, r4
  98933. 8027d8a: d0f8 beq.n 8027d7e <sbrk_aligned+0x22>
  98934. 8027d8c: 1a21 subs r1, r4, r0
  98935. 8027d8e: 4628 mov r0, r5
  98936. 8027d90: f001 fdf6 bl 8029980 <_sbrk_r>
  98937. 8027d94: 3001 adds r0, #1
  98938. 8027d96: d1f2 bne.n 8027d7e <sbrk_aligned+0x22>
  98939. 8027d98: e7ef b.n 8027d7a <sbrk_aligned+0x1e>
  98940. 8027d9a: bf00 nop
  98941. 8027d9c: 2402a1a0 .word 0x2402a1a0
  98942. 08027da0 <_malloc_r>:
  98943. 8027da0: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  98944. 8027da4: 1ccd adds r5, r1, #3
  98945. 8027da6: f025 0503 bic.w r5, r5, #3
  98946. 8027daa: 3508 adds r5, #8
  98947. 8027dac: 2d0c cmp r5, #12
  98948. 8027dae: bf38 it cc
  98949. 8027db0: 250c movcc r5, #12
  98950. 8027db2: 2d00 cmp r5, #0
  98951. 8027db4: 4606 mov r6, r0
  98952. 8027db6: db01 blt.n 8027dbc <_malloc_r+0x1c>
  98953. 8027db8: 42a9 cmp r1, r5
  98954. 8027dba: d904 bls.n 8027dc6 <_malloc_r+0x26>
  98955. 8027dbc: 230c movs r3, #12
  98956. 8027dbe: 6033 str r3, [r6, #0]
  98957. 8027dc0: 2000 movs r0, #0
  98958. 8027dc2: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  98959. 8027dc6: f8df 80d4 ldr.w r8, [pc, #212] @ 8027e9c <_malloc_r+0xfc>
  98960. 8027dca: f000 f869 bl 8027ea0 <__malloc_lock>
  98961. 8027dce: f8d8 3000 ldr.w r3, [r8]
  98962. 8027dd2: 461c mov r4, r3
  98963. 8027dd4: bb44 cbnz r4, 8027e28 <_malloc_r+0x88>
  98964. 8027dd6: 4629 mov r1, r5
  98965. 8027dd8: 4630 mov r0, r6
  98966. 8027dda: f7ff ffbf bl 8027d5c <sbrk_aligned>
  98967. 8027dde: 1c43 adds r3, r0, #1
  98968. 8027de0: 4604 mov r4, r0
  98969. 8027de2: d158 bne.n 8027e96 <_malloc_r+0xf6>
  98970. 8027de4: f8d8 4000 ldr.w r4, [r8]
  98971. 8027de8: 4627 mov r7, r4
  98972. 8027dea: 2f00 cmp r7, #0
  98973. 8027dec: d143 bne.n 8027e76 <_malloc_r+0xd6>
  98974. 8027dee: 2c00 cmp r4, #0
  98975. 8027df0: d04b beq.n 8027e8a <_malloc_r+0xea>
  98976. 8027df2: 6823 ldr r3, [r4, #0]
  98977. 8027df4: 4639 mov r1, r7
  98978. 8027df6: 4630 mov r0, r6
  98979. 8027df8: eb04 0903 add.w r9, r4, r3
  98980. 8027dfc: f001 fdc0 bl 8029980 <_sbrk_r>
  98981. 8027e00: 4581 cmp r9, r0
  98982. 8027e02: d142 bne.n 8027e8a <_malloc_r+0xea>
  98983. 8027e04: 6821 ldr r1, [r4, #0]
  98984. 8027e06: 1a6d subs r5, r5, r1
  98985. 8027e08: 4629 mov r1, r5
  98986. 8027e0a: 4630 mov r0, r6
  98987. 8027e0c: f7ff ffa6 bl 8027d5c <sbrk_aligned>
  98988. 8027e10: 3001 adds r0, #1
  98989. 8027e12: d03a beq.n 8027e8a <_malloc_r+0xea>
  98990. 8027e14: 6823 ldr r3, [r4, #0]
  98991. 8027e16: 442b add r3, r5
  98992. 8027e18: 6023 str r3, [r4, #0]
  98993. 8027e1a: f8d8 3000 ldr.w r3, [r8]
  98994. 8027e1e: 685a ldr r2, [r3, #4]
  98995. 8027e20: bb62 cbnz r2, 8027e7c <_malloc_r+0xdc>
  98996. 8027e22: f8c8 7000 str.w r7, [r8]
  98997. 8027e26: e00f b.n 8027e48 <_malloc_r+0xa8>
  98998. 8027e28: 6822 ldr r2, [r4, #0]
  98999. 8027e2a: 1b52 subs r2, r2, r5
  99000. 8027e2c: d420 bmi.n 8027e70 <_malloc_r+0xd0>
  99001. 8027e2e: 2a0b cmp r2, #11
  99002. 8027e30: d917 bls.n 8027e62 <_malloc_r+0xc2>
  99003. 8027e32: 1961 adds r1, r4, r5
  99004. 8027e34: 42a3 cmp r3, r4
  99005. 8027e36: 6025 str r5, [r4, #0]
  99006. 8027e38: bf18 it ne
  99007. 8027e3a: 6059 strne r1, [r3, #4]
  99008. 8027e3c: 6863 ldr r3, [r4, #4]
  99009. 8027e3e: bf08 it eq
  99010. 8027e40: f8c8 1000 streq.w r1, [r8]
  99011. 8027e44: 5162 str r2, [r4, r5]
  99012. 8027e46: 604b str r3, [r1, #4]
  99013. 8027e48: 4630 mov r0, r6
  99014. 8027e4a: f000 f82f bl 8027eac <__malloc_unlock>
  99015. 8027e4e: f104 000b add.w r0, r4, #11
  99016. 8027e52: 1d23 adds r3, r4, #4
  99017. 8027e54: f020 0007 bic.w r0, r0, #7
  99018. 8027e58: 1ac2 subs r2, r0, r3
  99019. 8027e5a: bf1c itt ne
  99020. 8027e5c: 1a1b subne r3, r3, r0
  99021. 8027e5e: 50a3 strne r3, [r4, r2]
  99022. 8027e60: e7af b.n 8027dc2 <_malloc_r+0x22>
  99023. 8027e62: 6862 ldr r2, [r4, #4]
  99024. 8027e64: 42a3 cmp r3, r4
  99025. 8027e66: bf0c ite eq
  99026. 8027e68: f8c8 2000 streq.w r2, [r8]
  99027. 8027e6c: 605a strne r2, [r3, #4]
  99028. 8027e6e: e7eb b.n 8027e48 <_malloc_r+0xa8>
  99029. 8027e70: 4623 mov r3, r4
  99030. 8027e72: 6864 ldr r4, [r4, #4]
  99031. 8027e74: e7ae b.n 8027dd4 <_malloc_r+0x34>
  99032. 8027e76: 463c mov r4, r7
  99033. 8027e78: 687f ldr r7, [r7, #4]
  99034. 8027e7a: e7b6 b.n 8027dea <_malloc_r+0x4a>
  99035. 8027e7c: 461a mov r2, r3
  99036. 8027e7e: 685b ldr r3, [r3, #4]
  99037. 8027e80: 42a3 cmp r3, r4
  99038. 8027e82: d1fb bne.n 8027e7c <_malloc_r+0xdc>
  99039. 8027e84: 2300 movs r3, #0
  99040. 8027e86: 6053 str r3, [r2, #4]
  99041. 8027e88: e7de b.n 8027e48 <_malloc_r+0xa8>
  99042. 8027e8a: 230c movs r3, #12
  99043. 8027e8c: 6033 str r3, [r6, #0]
  99044. 8027e8e: 4630 mov r0, r6
  99045. 8027e90: f000 f80c bl 8027eac <__malloc_unlock>
  99046. 8027e94: e794 b.n 8027dc0 <_malloc_r+0x20>
  99047. 8027e96: 6005 str r5, [r0, #0]
  99048. 8027e98: e7d6 b.n 8027e48 <_malloc_r+0xa8>
  99049. 8027e9a: bf00 nop
  99050. 8027e9c: 2402a1a4 .word 0x2402a1a4
  99051. 08027ea0 <__malloc_lock>:
  99052. 8027ea0: 4801 ldr r0, [pc, #4] @ (8027ea8 <__malloc_lock+0x8>)
  99053. 8027ea2: f001 bdba b.w 8029a1a <__retarget_lock_acquire_recursive>
  99054. 8027ea6: bf00 nop
  99055. 8027ea8: 2402a2e8 .word 0x2402a2e8
  99056. 08027eac <__malloc_unlock>:
  99057. 8027eac: 4801 ldr r0, [pc, #4] @ (8027eb4 <__malloc_unlock+0x8>)
  99058. 8027eae: f001 bdb5 b.w 8029a1c <__retarget_lock_release_recursive>
  99059. 8027eb2: bf00 nop
  99060. 8027eb4: 2402a2e8 .word 0x2402a2e8
  99061. 08027eb8 <rand>:
  99062. 8027eb8: 4b16 ldr r3, [pc, #88] @ (8027f14 <rand+0x5c>)
  99063. 8027eba: b510 push {r4, lr}
  99064. 8027ebc: 681c ldr r4, [r3, #0]
  99065. 8027ebe: 6b23 ldr r3, [r4, #48] @ 0x30
  99066. 8027ec0: b9b3 cbnz r3, 8027ef0 <rand+0x38>
  99067. 8027ec2: 2018 movs r0, #24
  99068. 8027ec4: f7ff ff3a bl 8027d3c <malloc>
  99069. 8027ec8: 4602 mov r2, r0
  99070. 8027eca: 6320 str r0, [r4, #48] @ 0x30
  99071. 8027ecc: b920 cbnz r0, 8027ed8 <rand+0x20>
  99072. 8027ece: 4b12 ldr r3, [pc, #72] @ (8027f18 <rand+0x60>)
  99073. 8027ed0: 4812 ldr r0, [pc, #72] @ (8027f1c <rand+0x64>)
  99074. 8027ed2: 2152 movs r1, #82 @ 0x52
  99075. 8027ed4: f001 fdbc bl 8029a50 <__assert_func>
  99076. 8027ed8: 4911 ldr r1, [pc, #68] @ (8027f20 <rand+0x68>)
  99077. 8027eda: 4b12 ldr r3, [pc, #72] @ (8027f24 <rand+0x6c>)
  99078. 8027edc: e9c0 1300 strd r1, r3, [r0]
  99079. 8027ee0: 4b11 ldr r3, [pc, #68] @ (8027f28 <rand+0x70>)
  99080. 8027ee2: 6083 str r3, [r0, #8]
  99081. 8027ee4: 230b movs r3, #11
  99082. 8027ee6: 8183 strh r3, [r0, #12]
  99083. 8027ee8: 2100 movs r1, #0
  99084. 8027eea: 2001 movs r0, #1
  99085. 8027eec: e9c2 0104 strd r0, r1, [r2, #16]
  99086. 8027ef0: 6b21 ldr r1, [r4, #48] @ 0x30
  99087. 8027ef2: 480e ldr r0, [pc, #56] @ (8027f2c <rand+0x74>)
  99088. 8027ef4: 690b ldr r3, [r1, #16]
  99089. 8027ef6: 694c ldr r4, [r1, #20]
  99090. 8027ef8: 4a0d ldr r2, [pc, #52] @ (8027f30 <rand+0x78>)
  99091. 8027efa: 4358 muls r0, r3
  99092. 8027efc: fb02 0004 mla r0, r2, r4, r0
  99093. 8027f00: fba3 3202 umull r3, r2, r3, r2
  99094. 8027f04: 3301 adds r3, #1
  99095. 8027f06: eb40 0002 adc.w r0, r0, r2
  99096. 8027f0a: e9c1 3004 strd r3, r0, [r1, #16]
  99097. 8027f0e: f020 4000 bic.w r0, r0, #2147483648 @ 0x80000000
  99098. 8027f12: bd10 pop {r4, pc}
  99099. 8027f14: 240001c0 .word 0x240001c0
  99100. 8027f18: 080307ba .word 0x080307ba
  99101. 8027f1c: 080307d1 .word 0x080307d1
  99102. 8027f20: abcd330e .word 0xabcd330e
  99103. 8027f24: e66d1234 .word 0xe66d1234
  99104. 8027f28: 0005deec .word 0x0005deec
  99105. 8027f2c: 5851f42d .word 0x5851f42d
  99106. 8027f30: 4c957f2d .word 0x4c957f2d
  99107. 08027f34 <realloc>:
  99108. 8027f34: 4b02 ldr r3, [pc, #8] @ (8027f40 <realloc+0xc>)
  99109. 8027f36: 460a mov r2, r1
  99110. 8027f38: 4601 mov r1, r0
  99111. 8027f3a: 6818 ldr r0, [r3, #0]
  99112. 8027f3c: f000 b802 b.w 8027f44 <_realloc_r>
  99113. 8027f40: 240001c0 .word 0x240001c0
  99114. 08027f44 <_realloc_r>:
  99115. 8027f44: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  99116. 8027f48: 4680 mov r8, r0
  99117. 8027f4a: 4615 mov r5, r2
  99118. 8027f4c: 460c mov r4, r1
  99119. 8027f4e: b921 cbnz r1, 8027f5a <_realloc_r+0x16>
  99120. 8027f50: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
  99121. 8027f54: 4611 mov r1, r2
  99122. 8027f56: f7ff bf23 b.w 8027da0 <_malloc_r>
  99123. 8027f5a: b92a cbnz r2, 8027f68 <_realloc_r+0x24>
  99124. 8027f5c: f002 fb76 bl 802a64c <_free_r>
  99125. 8027f60: 2400 movs r4, #0
  99126. 8027f62: 4620 mov r0, r4
  99127. 8027f64: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  99128. 8027f68: f003 fbb5 bl 802b6d6 <_malloc_usable_size_r>
  99129. 8027f6c: 4285 cmp r5, r0
  99130. 8027f6e: 4606 mov r6, r0
  99131. 8027f70: d802 bhi.n 8027f78 <_realloc_r+0x34>
  99132. 8027f72: ebb5 0f50 cmp.w r5, r0, lsr #1
  99133. 8027f76: d8f4 bhi.n 8027f62 <_realloc_r+0x1e>
  99134. 8027f78: 4629 mov r1, r5
  99135. 8027f7a: 4640 mov r0, r8
  99136. 8027f7c: f7ff ff10 bl 8027da0 <_malloc_r>
  99137. 8027f80: 4607 mov r7, r0
  99138. 8027f82: 2800 cmp r0, #0
  99139. 8027f84: d0ec beq.n 8027f60 <_realloc_r+0x1c>
  99140. 8027f86: 42b5 cmp r5, r6
  99141. 8027f88: 462a mov r2, r5
  99142. 8027f8a: 4621 mov r1, r4
  99143. 8027f8c: bf28 it cs
  99144. 8027f8e: 4632 movcs r2, r6
  99145. 8027f90: f001 fd45 bl 8029a1e <memcpy>
  99146. 8027f94: 4621 mov r1, r4
  99147. 8027f96: 4640 mov r0, r8
  99148. 8027f98: f002 fb58 bl 802a64c <_free_r>
  99149. 8027f9c: 463c mov r4, r7
  99150. 8027f9e: e7e0 b.n 8027f62 <_realloc_r+0x1e>
  99151. 08027fa0 <sulp>:
  99152. 8027fa0: b570 push {r4, r5, r6, lr}
  99153. 8027fa2: 4604 mov r4, r0
  99154. 8027fa4: 460d mov r5, r1
  99155. 8027fa6: 4616 mov r6, r2
  99156. 8027fa8: ec45 4b10 vmov d0, r4, r5
  99157. 8027fac: f003 fa58 bl 802b460 <__ulp>
  99158. 8027fb0: b17e cbz r6, 8027fd2 <sulp+0x32>
  99159. 8027fb2: f3c5 530a ubfx r3, r5, #20, #11
  99160. 8027fb6: f1c3 036b rsb r3, r3, #107 @ 0x6b
  99161. 8027fba: 2b00 cmp r3, #0
  99162. 8027fbc: dd09 ble.n 8027fd2 <sulp+0x32>
  99163. 8027fbe: 051b lsls r3, r3, #20
  99164. 8027fc0: f103 517f add.w r1, r3, #1069547520 @ 0x3fc00000
  99165. 8027fc4: 2000 movs r0, #0
  99166. 8027fc6: f501 1140 add.w r1, r1, #3145728 @ 0x300000
  99167. 8027fca: ec41 0b17 vmov d7, r0, r1
  99168. 8027fce: ee20 0b07 vmul.f64 d0, d0, d7
  99169. 8027fd2: bd70 pop {r4, r5, r6, pc}
  99170. 8027fd4: 0000 movs r0, r0
  99171. ...
  99172. 08027fd8 <_strtod_l>:
  99173. 8027fd8: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  99174. 8027fdc: ed2d 8b0a vpush {d8-d12}
  99175. 8027fe0: b097 sub sp, #92 @ 0x5c
  99176. 8027fe2: 4688 mov r8, r1
  99177. 8027fe4: 920e str r2, [sp, #56] @ 0x38
  99178. 8027fe6: 2200 movs r2, #0
  99179. 8027fe8: 9212 str r2, [sp, #72] @ 0x48
  99180. 8027fea: 9005 str r0, [sp, #20]
  99181. 8027fec: f04f 0a00 mov.w sl, #0
  99182. 8027ff0: f04f 0b00 mov.w fp, #0
  99183. 8027ff4: 460a mov r2, r1
  99184. 8027ff6: 9211 str r2, [sp, #68] @ 0x44
  99185. 8027ff8: 7811 ldrb r1, [r2, #0]
  99186. 8027ffa: 292b cmp r1, #43 @ 0x2b
  99187. 8027ffc: d04c beq.n 8028098 <_strtod_l+0xc0>
  99188. 8027ffe: d839 bhi.n 8028074 <_strtod_l+0x9c>
  99189. 8028000: 290d cmp r1, #13
  99190. 8028002: d833 bhi.n 802806c <_strtod_l+0x94>
  99191. 8028004: 2908 cmp r1, #8
  99192. 8028006: d833 bhi.n 8028070 <_strtod_l+0x98>
  99193. 8028008: 2900 cmp r1, #0
  99194. 802800a: d03c beq.n 8028086 <_strtod_l+0xae>
  99195. 802800c: 2200 movs r2, #0
  99196. 802800e: 9208 str r2, [sp, #32]
  99197. 8028010: 9d11 ldr r5, [sp, #68] @ 0x44
  99198. 8028012: 782a ldrb r2, [r5, #0]
  99199. 8028014: 2a30 cmp r2, #48 @ 0x30
  99200. 8028016: f040 80b5 bne.w 8028184 <_strtod_l+0x1ac>
  99201. 802801a: 786a ldrb r2, [r5, #1]
  99202. 802801c: f002 02df and.w r2, r2, #223 @ 0xdf
  99203. 8028020: 2a58 cmp r2, #88 @ 0x58
  99204. 8028022: d170 bne.n 8028106 <_strtod_l+0x12e>
  99205. 8028024: 9302 str r3, [sp, #8]
  99206. 8028026: 9b08 ldr r3, [sp, #32]
  99207. 8028028: 9301 str r3, [sp, #4]
  99208. 802802a: ab12 add r3, sp, #72 @ 0x48
  99209. 802802c: 9300 str r3, [sp, #0]
  99210. 802802e: 4a8b ldr r2, [pc, #556] @ (802825c <_strtod_l+0x284>)
  99211. 8028030: 9805 ldr r0, [sp, #20]
  99212. 8028032: ab13 add r3, sp, #76 @ 0x4c
  99213. 8028034: a911 add r1, sp, #68 @ 0x44
  99214. 8028036: f002 fbbb bl 802a7b0 <__gethex>
  99215. 802803a: f010 060f ands.w r6, r0, #15
  99216. 802803e: 4604 mov r4, r0
  99217. 8028040: d005 beq.n 802804e <_strtod_l+0x76>
  99218. 8028042: 2e06 cmp r6, #6
  99219. 8028044: d12a bne.n 802809c <_strtod_l+0xc4>
  99220. 8028046: 3501 adds r5, #1
  99221. 8028048: 2300 movs r3, #0
  99222. 802804a: 9511 str r5, [sp, #68] @ 0x44
  99223. 802804c: 9308 str r3, [sp, #32]
  99224. 802804e: 9b0e ldr r3, [sp, #56] @ 0x38
  99225. 8028050: 2b00 cmp r3, #0
  99226. 8028052: f040 852f bne.w 8028ab4 <_strtod_l+0xadc>
  99227. 8028056: 9b08 ldr r3, [sp, #32]
  99228. 8028058: ec4b ab10 vmov d0, sl, fp
  99229. 802805c: b1cb cbz r3, 8028092 <_strtod_l+0xba>
  99230. 802805e: eeb1 0b40 vneg.f64 d0, d0
  99231. 8028062: b017 add sp, #92 @ 0x5c
  99232. 8028064: ecbd 8b0a vpop {d8-d12}
  99233. 8028068: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  99234. 802806c: 2920 cmp r1, #32
  99235. 802806e: d1cd bne.n 802800c <_strtod_l+0x34>
  99236. 8028070: 3201 adds r2, #1
  99237. 8028072: e7c0 b.n 8027ff6 <_strtod_l+0x1e>
  99238. 8028074: 292d cmp r1, #45 @ 0x2d
  99239. 8028076: d1c9 bne.n 802800c <_strtod_l+0x34>
  99240. 8028078: 2101 movs r1, #1
  99241. 802807a: 9108 str r1, [sp, #32]
  99242. 802807c: 1c51 adds r1, r2, #1
  99243. 802807e: 9111 str r1, [sp, #68] @ 0x44
  99244. 8028080: 7852 ldrb r2, [r2, #1]
  99245. 8028082: 2a00 cmp r2, #0
  99246. 8028084: d1c4 bne.n 8028010 <_strtod_l+0x38>
  99247. 8028086: 9b0e ldr r3, [sp, #56] @ 0x38
  99248. 8028088: f8cd 8044 str.w r8, [sp, #68] @ 0x44
  99249. 802808c: 2b00 cmp r3, #0
  99250. 802808e: f040 850f bne.w 8028ab0 <_strtod_l+0xad8>
  99251. 8028092: ec4b ab10 vmov d0, sl, fp
  99252. 8028096: e7e4 b.n 8028062 <_strtod_l+0x8a>
  99253. 8028098: 2100 movs r1, #0
  99254. 802809a: e7ee b.n 802807a <_strtod_l+0xa2>
  99255. 802809c: 9a12 ldr r2, [sp, #72] @ 0x48
  99256. 802809e: b13a cbz r2, 80280b0 <_strtod_l+0xd8>
  99257. 80280a0: 2135 movs r1, #53 @ 0x35
  99258. 80280a2: a814 add r0, sp, #80 @ 0x50
  99259. 80280a4: f003 fad3 bl 802b64e <__copybits>
  99260. 80280a8: 9912 ldr r1, [sp, #72] @ 0x48
  99261. 80280aa: 9805 ldr r0, [sp, #20]
  99262. 80280ac: f002 fea4 bl 802adf8 <_Bfree>
  99263. 80280b0: 1e73 subs r3, r6, #1
  99264. 80280b2: 9a13 ldr r2, [sp, #76] @ 0x4c
  99265. 80280b4: 2b04 cmp r3, #4
  99266. 80280b6: d806 bhi.n 80280c6 <_strtod_l+0xee>
  99267. 80280b8: e8df f003 tbb [pc, r3]
  99268. 80280bc: 201d0314 .word 0x201d0314
  99269. 80280c0: 14 .byte 0x14
  99270. 80280c1: 00 .byte 0x00
  99271. 80280c2: e9dd ab14 ldrd sl, fp, [sp, #80] @ 0x50
  99272. 80280c6: 05e3 lsls r3, r4, #23
  99273. 80280c8: bf48 it mi
  99274. 80280ca: f04b 4b00 orrmi.w fp, fp, #2147483648 @ 0x80000000
  99275. 80280ce: f02b 4300 bic.w r3, fp, #2147483648 @ 0x80000000
  99276. 80280d2: 0d1b lsrs r3, r3, #20
  99277. 80280d4: 051b lsls r3, r3, #20
  99278. 80280d6: 2b00 cmp r3, #0
  99279. 80280d8: d1b9 bne.n 802804e <_strtod_l+0x76>
  99280. 80280da: f001 fc73 bl 80299c4 <__errno>
  99281. 80280de: 2322 movs r3, #34 @ 0x22
  99282. 80280e0: 6003 str r3, [r0, #0]
  99283. 80280e2: e7b4 b.n 802804e <_strtod_l+0x76>
  99284. 80280e4: e9dd a314 ldrd sl, r3, [sp, #80] @ 0x50
  99285. 80280e8: f202 4233 addw r2, r2, #1075 @ 0x433
  99286. 80280ec: f423 1380 bic.w r3, r3, #1048576 @ 0x100000
  99287. 80280f0: ea43 5b02 orr.w fp, r3, r2, lsl #20
  99288. 80280f4: e7e7 b.n 80280c6 <_strtod_l+0xee>
  99289. 80280f6: f8df b16c ldr.w fp, [pc, #364] @ 8028264 <_strtod_l+0x28c>
  99290. 80280fa: e7e4 b.n 80280c6 <_strtod_l+0xee>
  99291. 80280fc: f06f 4b00 mvn.w fp, #2147483648 @ 0x80000000
  99292. 8028100: f04f 3aff mov.w sl, #4294967295 @ 0xffffffff
  99293. 8028104: e7df b.n 80280c6 <_strtod_l+0xee>
  99294. 8028106: 9b11 ldr r3, [sp, #68] @ 0x44
  99295. 8028108: 1c5a adds r2, r3, #1
  99296. 802810a: 9211 str r2, [sp, #68] @ 0x44
  99297. 802810c: 785b ldrb r3, [r3, #1]
  99298. 802810e: 2b30 cmp r3, #48 @ 0x30
  99299. 8028110: d0f9 beq.n 8028106 <_strtod_l+0x12e>
  99300. 8028112: 2b00 cmp r3, #0
  99301. 8028114: d09b beq.n 802804e <_strtod_l+0x76>
  99302. 8028116: 2301 movs r3, #1
  99303. 8028118: 2600 movs r6, #0
  99304. 802811a: 9307 str r3, [sp, #28]
  99305. 802811c: 9b11 ldr r3, [sp, #68] @ 0x44
  99306. 802811e: 930a str r3, [sp, #40] @ 0x28
  99307. 8028120: 46b1 mov r9, r6
  99308. 8028122: 4635 mov r5, r6
  99309. 8028124: 220a movs r2, #10
  99310. 8028126: 9811 ldr r0, [sp, #68] @ 0x44
  99311. 8028128: 7804 ldrb r4, [r0, #0]
  99312. 802812a: f1a4 0330 sub.w r3, r4, #48 @ 0x30
  99313. 802812e: b2d9 uxtb r1, r3
  99314. 8028130: 2909 cmp r1, #9
  99315. 8028132: d929 bls.n 8028188 <_strtod_l+0x1b0>
  99316. 8028134: 494a ldr r1, [pc, #296] @ (8028260 <_strtod_l+0x288>)
  99317. 8028136: 2201 movs r2, #1
  99318. 8028138: f001 fb82 bl 8029840 <strncmp>
  99319. 802813c: b378 cbz r0, 802819e <_strtod_l+0x1c6>
  99320. 802813e: 2000 movs r0, #0
  99321. 8028140: 4622 mov r2, r4
  99322. 8028142: 462b mov r3, r5
  99323. 8028144: 4607 mov r7, r0
  99324. 8028146: 9006 str r0, [sp, #24]
  99325. 8028148: 2a65 cmp r2, #101 @ 0x65
  99326. 802814a: d001 beq.n 8028150 <_strtod_l+0x178>
  99327. 802814c: 2a45 cmp r2, #69 @ 0x45
  99328. 802814e: d117 bne.n 8028180 <_strtod_l+0x1a8>
  99329. 8028150: b91b cbnz r3, 802815a <_strtod_l+0x182>
  99330. 8028152: 9b07 ldr r3, [sp, #28]
  99331. 8028154: 4303 orrs r3, r0
  99332. 8028156: d096 beq.n 8028086 <_strtod_l+0xae>
  99333. 8028158: 2300 movs r3, #0
  99334. 802815a: f8dd 8044 ldr.w r8, [sp, #68] @ 0x44
  99335. 802815e: f108 0201 add.w r2, r8, #1
  99336. 8028162: 9211 str r2, [sp, #68] @ 0x44
  99337. 8028164: f898 2001 ldrb.w r2, [r8, #1]
  99338. 8028168: 2a2b cmp r2, #43 @ 0x2b
  99339. 802816a: d06b beq.n 8028244 <_strtod_l+0x26c>
  99340. 802816c: 2a2d cmp r2, #45 @ 0x2d
  99341. 802816e: d071 beq.n 8028254 <_strtod_l+0x27c>
  99342. 8028170: f04f 0e00 mov.w lr, #0
  99343. 8028174: f1a2 0430 sub.w r4, r2, #48 @ 0x30
  99344. 8028178: 2c09 cmp r4, #9
  99345. 802817a: d979 bls.n 8028270 <_strtod_l+0x298>
  99346. 802817c: f8cd 8044 str.w r8, [sp, #68] @ 0x44
  99347. 8028180: 2400 movs r4, #0
  99348. 8028182: e094 b.n 80282ae <_strtod_l+0x2d6>
  99349. 8028184: 2300 movs r3, #0
  99350. 8028186: e7c7 b.n 8028118 <_strtod_l+0x140>
  99351. 8028188: 2d08 cmp r5, #8
  99352. 802818a: f100 0001 add.w r0, r0, #1
  99353. 802818e: bfd4 ite le
  99354. 8028190: fb02 3909 mlale r9, r2, r9, r3
  99355. 8028194: fb02 3606 mlagt r6, r2, r6, r3
  99356. 8028198: 3501 adds r5, #1
  99357. 802819a: 9011 str r0, [sp, #68] @ 0x44
  99358. 802819c: e7c3 b.n 8028126 <_strtod_l+0x14e>
  99359. 802819e: 9b11 ldr r3, [sp, #68] @ 0x44
  99360. 80281a0: 1c5a adds r2, r3, #1
  99361. 80281a2: 9211 str r2, [sp, #68] @ 0x44
  99362. 80281a4: 785a ldrb r2, [r3, #1]
  99363. 80281a6: b375 cbz r5, 8028206 <_strtod_l+0x22e>
  99364. 80281a8: 4607 mov r7, r0
  99365. 80281aa: 462b mov r3, r5
  99366. 80281ac: f1a2 0130 sub.w r1, r2, #48 @ 0x30
  99367. 80281b0: 2909 cmp r1, #9
  99368. 80281b2: d913 bls.n 80281dc <_strtod_l+0x204>
  99369. 80281b4: 2101 movs r1, #1
  99370. 80281b6: 9106 str r1, [sp, #24]
  99371. 80281b8: e7c6 b.n 8028148 <_strtod_l+0x170>
  99372. 80281ba: 9b11 ldr r3, [sp, #68] @ 0x44
  99373. 80281bc: 1c5a adds r2, r3, #1
  99374. 80281be: 9211 str r2, [sp, #68] @ 0x44
  99375. 80281c0: 785a ldrb r2, [r3, #1]
  99376. 80281c2: 3001 adds r0, #1
  99377. 80281c4: 2a30 cmp r2, #48 @ 0x30
  99378. 80281c6: d0f8 beq.n 80281ba <_strtod_l+0x1e2>
  99379. 80281c8: f1a2 0331 sub.w r3, r2, #49 @ 0x31
  99380. 80281cc: 2b08 cmp r3, #8
  99381. 80281ce: f200 8476 bhi.w 8028abe <_strtod_l+0xae6>
  99382. 80281d2: 9b11 ldr r3, [sp, #68] @ 0x44
  99383. 80281d4: 930a str r3, [sp, #40] @ 0x28
  99384. 80281d6: 4607 mov r7, r0
  99385. 80281d8: 2000 movs r0, #0
  99386. 80281da: 4603 mov r3, r0
  99387. 80281dc: 3a30 subs r2, #48 @ 0x30
  99388. 80281de: f100 0101 add.w r1, r0, #1
  99389. 80281e2: d023 beq.n 802822c <_strtod_l+0x254>
  99390. 80281e4: 440f add r7, r1
  99391. 80281e6: eb00 0c03 add.w ip, r0, r3
  99392. 80281ea: 4619 mov r1, r3
  99393. 80281ec: 240a movs r4, #10
  99394. 80281ee: 4561 cmp r1, ip
  99395. 80281f0: d10b bne.n 802820a <_strtod_l+0x232>
  99396. 80281f2: 1c5c adds r4, r3, #1
  99397. 80281f4: 4403 add r3, r0
  99398. 80281f6: 2b08 cmp r3, #8
  99399. 80281f8: 4404 add r4, r0
  99400. 80281fa: dc11 bgt.n 8028220 <_strtod_l+0x248>
  99401. 80281fc: 230a movs r3, #10
  99402. 80281fe: fb03 2909 mla r9, r3, r9, r2
  99403. 8028202: 2100 movs r1, #0
  99404. 8028204: e013 b.n 802822e <_strtod_l+0x256>
  99405. 8028206: 4628 mov r0, r5
  99406. 8028208: e7dc b.n 80281c4 <_strtod_l+0x1ec>
  99407. 802820a: 2908 cmp r1, #8
  99408. 802820c: f101 0101 add.w r1, r1, #1
  99409. 8028210: dc02 bgt.n 8028218 <_strtod_l+0x240>
  99410. 8028212: fb04 f909 mul.w r9, r4, r9
  99411. 8028216: e7ea b.n 80281ee <_strtod_l+0x216>
  99412. 8028218: 2910 cmp r1, #16
  99413. 802821a: bfd8 it le
  99414. 802821c: 4366 mulle r6, r4
  99415. 802821e: e7e6 b.n 80281ee <_strtod_l+0x216>
  99416. 8028220: 2b0f cmp r3, #15
  99417. 8028222: dcee bgt.n 8028202 <_strtod_l+0x22a>
  99418. 8028224: 230a movs r3, #10
  99419. 8028226: fb03 2606 mla r6, r3, r6, r2
  99420. 802822a: e7ea b.n 8028202 <_strtod_l+0x22a>
  99421. 802822c: 461c mov r4, r3
  99422. 802822e: 9b11 ldr r3, [sp, #68] @ 0x44
  99423. 8028230: 1c5a adds r2, r3, #1
  99424. 8028232: 9211 str r2, [sp, #68] @ 0x44
  99425. 8028234: 785a ldrb r2, [r3, #1]
  99426. 8028236: 4608 mov r0, r1
  99427. 8028238: 4623 mov r3, r4
  99428. 802823a: e7b7 b.n 80281ac <_strtod_l+0x1d4>
  99429. 802823c: 2301 movs r3, #1
  99430. 802823e: 2700 movs r7, #0
  99431. 8028240: 9306 str r3, [sp, #24]
  99432. 8028242: e786 b.n 8028152 <_strtod_l+0x17a>
  99433. 8028244: f04f 0e00 mov.w lr, #0
  99434. 8028248: f108 0202 add.w r2, r8, #2
  99435. 802824c: 9211 str r2, [sp, #68] @ 0x44
  99436. 802824e: f898 2002 ldrb.w r2, [r8, #2]
  99437. 8028252: e78f b.n 8028174 <_strtod_l+0x19c>
  99438. 8028254: f04f 0e01 mov.w lr, #1
  99439. 8028258: e7f6 b.n 8028248 <_strtod_l+0x270>
  99440. 802825a: bf00 nop
  99441. 802825c: 08030840 .word 0x08030840
  99442. 8028260: 08030829 .word 0x08030829
  99443. 8028264: 7ff00000 .word 0x7ff00000
  99444. 8028268: 9a11 ldr r2, [sp, #68] @ 0x44
  99445. 802826a: 1c54 adds r4, r2, #1
  99446. 802826c: 9411 str r4, [sp, #68] @ 0x44
  99447. 802826e: 7852 ldrb r2, [r2, #1]
  99448. 8028270: 2a30 cmp r2, #48 @ 0x30
  99449. 8028272: d0f9 beq.n 8028268 <_strtod_l+0x290>
  99450. 8028274: f1a2 0431 sub.w r4, r2, #49 @ 0x31
  99451. 8028278: 2c08 cmp r4, #8
  99452. 802827a: d881 bhi.n 8028180 <_strtod_l+0x1a8>
  99453. 802827c: f1a2 0c30 sub.w ip, r2, #48 @ 0x30
  99454. 8028280: 9a11 ldr r2, [sp, #68] @ 0x44
  99455. 8028282: 9209 str r2, [sp, #36] @ 0x24
  99456. 8028284: 9a11 ldr r2, [sp, #68] @ 0x44
  99457. 8028286: 1c51 adds r1, r2, #1
  99458. 8028288: 9111 str r1, [sp, #68] @ 0x44
  99459. 802828a: 7852 ldrb r2, [r2, #1]
  99460. 802828c: f1a2 0430 sub.w r4, r2, #48 @ 0x30
  99461. 8028290: 2c09 cmp r4, #9
  99462. 8028292: d938 bls.n 8028306 <_strtod_l+0x32e>
  99463. 8028294: 9c09 ldr r4, [sp, #36] @ 0x24
  99464. 8028296: 1b0c subs r4, r1, r4
  99465. 8028298: 2c08 cmp r4, #8
  99466. 802829a: f644 641f movw r4, #19999 @ 0x4e1f
  99467. 802829e: dc02 bgt.n 80282a6 <_strtod_l+0x2ce>
  99468. 80282a0: 4564 cmp r4, ip
  99469. 80282a2: bfa8 it ge
  99470. 80282a4: 4664 movge r4, ip
  99471. 80282a6: f1be 0f00 cmp.w lr, #0
  99472. 80282aa: d000 beq.n 80282ae <_strtod_l+0x2d6>
  99473. 80282ac: 4264 negs r4, r4
  99474. 80282ae: 2b00 cmp r3, #0
  99475. 80282b0: d14e bne.n 8028350 <_strtod_l+0x378>
  99476. 80282b2: 9b07 ldr r3, [sp, #28]
  99477. 80282b4: 4318 orrs r0, r3
  99478. 80282b6: f47f aeca bne.w 802804e <_strtod_l+0x76>
  99479. 80282ba: 9b06 ldr r3, [sp, #24]
  99480. 80282bc: 2b00 cmp r3, #0
  99481. 80282be: f47f aee2 bne.w 8028086 <_strtod_l+0xae>
  99482. 80282c2: 2a69 cmp r2, #105 @ 0x69
  99483. 80282c4: d027 beq.n 8028316 <_strtod_l+0x33e>
  99484. 80282c6: dc24 bgt.n 8028312 <_strtod_l+0x33a>
  99485. 80282c8: 2a49 cmp r2, #73 @ 0x49
  99486. 80282ca: d024 beq.n 8028316 <_strtod_l+0x33e>
  99487. 80282cc: 2a4e cmp r2, #78 @ 0x4e
  99488. 80282ce: f47f aeda bne.w 8028086 <_strtod_l+0xae>
  99489. 80282d2: 4997 ldr r1, [pc, #604] @ (8028530 <_strtod_l+0x558>)
  99490. 80282d4: a811 add r0, sp, #68 @ 0x44
  99491. 80282d6: f002 fc8d bl 802abf4 <__match>
  99492. 80282da: 2800 cmp r0, #0
  99493. 80282dc: f43f aed3 beq.w 8028086 <_strtod_l+0xae>
  99494. 80282e0: 9b11 ldr r3, [sp, #68] @ 0x44
  99495. 80282e2: 781b ldrb r3, [r3, #0]
  99496. 80282e4: 2b28 cmp r3, #40 @ 0x28
  99497. 80282e6: d12d bne.n 8028344 <_strtod_l+0x36c>
  99498. 80282e8: 4992 ldr r1, [pc, #584] @ (8028534 <_strtod_l+0x55c>)
  99499. 80282ea: aa14 add r2, sp, #80 @ 0x50
  99500. 80282ec: a811 add r0, sp, #68 @ 0x44
  99501. 80282ee: f002 fc95 bl 802ac1c <__hexnan>
  99502. 80282f2: 2805 cmp r0, #5
  99503. 80282f4: d126 bne.n 8028344 <_strtod_l+0x36c>
  99504. 80282f6: 9b15 ldr r3, [sp, #84] @ 0x54
  99505. 80282f8: f8dd a050 ldr.w sl, [sp, #80] @ 0x50
  99506. 80282fc: f043 4bff orr.w fp, r3, #2139095040 @ 0x7f800000
  99507. 8028300: f44b 0be0 orr.w fp, fp, #7340032 @ 0x700000
  99508. 8028304: e6a3 b.n 802804e <_strtod_l+0x76>
  99509. 8028306: 240a movs r4, #10
  99510. 8028308: fb04 2c0c mla ip, r4, ip, r2
  99511. 802830c: f1ac 0c30 sub.w ip, ip, #48 @ 0x30
  99512. 8028310: e7b8 b.n 8028284 <_strtod_l+0x2ac>
  99513. 8028312: 2a6e cmp r2, #110 @ 0x6e
  99514. 8028314: e7db b.n 80282ce <_strtod_l+0x2f6>
  99515. 8028316: 4988 ldr r1, [pc, #544] @ (8028538 <_strtod_l+0x560>)
  99516. 8028318: a811 add r0, sp, #68 @ 0x44
  99517. 802831a: f002 fc6b bl 802abf4 <__match>
  99518. 802831e: 2800 cmp r0, #0
  99519. 8028320: f43f aeb1 beq.w 8028086 <_strtod_l+0xae>
  99520. 8028324: 9b11 ldr r3, [sp, #68] @ 0x44
  99521. 8028326: 4985 ldr r1, [pc, #532] @ (802853c <_strtod_l+0x564>)
  99522. 8028328: 3b01 subs r3, #1
  99523. 802832a: a811 add r0, sp, #68 @ 0x44
  99524. 802832c: 9311 str r3, [sp, #68] @ 0x44
  99525. 802832e: f002 fc61 bl 802abf4 <__match>
  99526. 8028332: b910 cbnz r0, 802833a <_strtod_l+0x362>
  99527. 8028334: 9b11 ldr r3, [sp, #68] @ 0x44
  99528. 8028336: 3301 adds r3, #1
  99529. 8028338: 9311 str r3, [sp, #68] @ 0x44
  99530. 802833a: f8df b214 ldr.w fp, [pc, #532] @ 8028550 <_strtod_l+0x578>
  99531. 802833e: f04f 0a00 mov.w sl, #0
  99532. 8028342: e684 b.n 802804e <_strtod_l+0x76>
  99533. 8028344: 487e ldr r0, [pc, #504] @ (8028540 <_strtod_l+0x568>)
  99534. 8028346: f001 fb7b bl 8029a40 <nan>
  99535. 802834a: ec5b ab10 vmov sl, fp, d0
  99536. 802834e: e67e b.n 802804e <_strtod_l+0x76>
  99537. 8028350: ee07 9a90 vmov s15, r9
  99538. 8028354: 1be2 subs r2, r4, r7
  99539. 8028356: eeb8 7b67 vcvt.f64.u32 d7, s15
  99540. 802835a: 2d00 cmp r5, #0
  99541. 802835c: bf08 it eq
  99542. 802835e: 461d moveq r5, r3
  99543. 8028360: 2b10 cmp r3, #16
  99544. 8028362: 9209 str r2, [sp, #36] @ 0x24
  99545. 8028364: 461a mov r2, r3
  99546. 8028366: bfa8 it ge
  99547. 8028368: 2210 movge r2, #16
  99548. 802836a: 2b09 cmp r3, #9
  99549. 802836c: ec5b ab17 vmov sl, fp, d7
  99550. 8028370: dc15 bgt.n 802839e <_strtod_l+0x3c6>
  99551. 8028372: 1be1 subs r1, r4, r7
  99552. 8028374: 2900 cmp r1, #0
  99553. 8028376: f43f ae6a beq.w 802804e <_strtod_l+0x76>
  99554. 802837a: eba4 0107 sub.w r1, r4, r7
  99555. 802837e: dd72 ble.n 8028466 <_strtod_l+0x48e>
  99556. 8028380: 2916 cmp r1, #22
  99557. 8028382: dc59 bgt.n 8028438 <_strtod_l+0x460>
  99558. 8028384: 4b6f ldr r3, [pc, #444] @ (8028544 <_strtod_l+0x56c>)
  99559. 8028386: 9a09 ldr r2, [sp, #36] @ 0x24
  99560. 8028388: eb03 03c2 add.w r3, r3, r2, lsl #3
  99561. 802838c: ed93 7b00 vldr d7, [r3]
  99562. 8028390: ec4b ab16 vmov d6, sl, fp
  99563. 8028394: ee27 7b06 vmul.f64 d7, d7, d6
  99564. 8028398: ec5b ab17 vmov sl, fp, d7
  99565. 802839c: e657 b.n 802804e <_strtod_l+0x76>
  99566. 802839e: 4969 ldr r1, [pc, #420] @ (8028544 <_strtod_l+0x56c>)
  99567. 80283a0: eb01 01c2 add.w r1, r1, r2, lsl #3
  99568. 80283a4: ed11 5b12 vldr d5, [r1, #-72] @ 0xffffffb8
  99569. 80283a8: ee06 6a90 vmov s13, r6
  99570. 80283ac: 2b0f cmp r3, #15
  99571. 80283ae: eeb8 6b66 vcvt.f64.u32 d6, s13
  99572. 80283b2: eea7 6b05 vfma.f64 d6, d7, d5
  99573. 80283b6: ec5b ab16 vmov sl, fp, d6
  99574. 80283ba: ddda ble.n 8028372 <_strtod_l+0x39a>
  99575. 80283bc: 1a9a subs r2, r3, r2
  99576. 80283be: 1be1 subs r1, r4, r7
  99577. 80283c0: 440a add r2, r1
  99578. 80283c2: 2a00 cmp r2, #0
  99579. 80283c4: f340 8094 ble.w 80284f0 <_strtod_l+0x518>
  99580. 80283c8: f012 000f ands.w r0, r2, #15
  99581. 80283cc: d00a beq.n 80283e4 <_strtod_l+0x40c>
  99582. 80283ce: 495d ldr r1, [pc, #372] @ (8028544 <_strtod_l+0x56c>)
  99583. 80283d0: eb01 01c0 add.w r1, r1, r0, lsl #3
  99584. 80283d4: ed91 7b00 vldr d7, [r1]
  99585. 80283d8: ec4b ab16 vmov d6, sl, fp
  99586. 80283dc: ee27 7b06 vmul.f64 d7, d7, d6
  99587. 80283e0: ec5b ab17 vmov sl, fp, d7
  99588. 80283e4: f032 020f bics.w r2, r2, #15
  99589. 80283e8: d073 beq.n 80284d2 <_strtod_l+0x4fa>
  99590. 80283ea: f5b2 7f9a cmp.w r2, #308 @ 0x134
  99591. 80283ee: dd47 ble.n 8028480 <_strtod_l+0x4a8>
  99592. 80283f0: 2400 movs r4, #0
  99593. 80283f2: 4625 mov r5, r4
  99594. 80283f4: 9407 str r4, [sp, #28]
  99595. 80283f6: 4626 mov r6, r4
  99596. 80283f8: 9a05 ldr r2, [sp, #20]
  99597. 80283fa: f8df b154 ldr.w fp, [pc, #340] @ 8028550 <_strtod_l+0x578>
  99598. 80283fe: 2322 movs r3, #34 @ 0x22
  99599. 8028400: 6013 str r3, [r2, #0]
  99600. 8028402: f04f 0a00 mov.w sl, #0
  99601. 8028406: 9b07 ldr r3, [sp, #28]
  99602. 8028408: 2b00 cmp r3, #0
  99603. 802840a: f43f ae20 beq.w 802804e <_strtod_l+0x76>
  99604. 802840e: 9912 ldr r1, [sp, #72] @ 0x48
  99605. 8028410: 9805 ldr r0, [sp, #20]
  99606. 8028412: f002 fcf1 bl 802adf8 <_Bfree>
  99607. 8028416: 9805 ldr r0, [sp, #20]
  99608. 8028418: 4631 mov r1, r6
  99609. 802841a: f002 fced bl 802adf8 <_Bfree>
  99610. 802841e: 9805 ldr r0, [sp, #20]
  99611. 8028420: 4629 mov r1, r5
  99612. 8028422: f002 fce9 bl 802adf8 <_Bfree>
  99613. 8028426: 9907 ldr r1, [sp, #28]
  99614. 8028428: 9805 ldr r0, [sp, #20]
  99615. 802842a: f002 fce5 bl 802adf8 <_Bfree>
  99616. 802842e: 9805 ldr r0, [sp, #20]
  99617. 8028430: 4621 mov r1, r4
  99618. 8028432: f002 fce1 bl 802adf8 <_Bfree>
  99619. 8028436: e60a b.n 802804e <_strtod_l+0x76>
  99620. 8028438: f1c3 0125 rsb r1, r3, #37 @ 0x25
  99621. 802843c: 1be0 subs r0, r4, r7
  99622. 802843e: 4281 cmp r1, r0
  99623. 8028440: dbbc blt.n 80283bc <_strtod_l+0x3e4>
  99624. 8028442: 4a40 ldr r2, [pc, #256] @ (8028544 <_strtod_l+0x56c>)
  99625. 8028444: f1c3 030f rsb r3, r3, #15
  99626. 8028448: eb02 01c3 add.w r1, r2, r3, lsl #3
  99627. 802844c: ed91 7b00 vldr d7, [r1]
  99628. 8028450: 9909 ldr r1, [sp, #36] @ 0x24
  99629. 8028452: ec4b ab16 vmov d6, sl, fp
  99630. 8028456: 1acb subs r3, r1, r3
  99631. 8028458: eb02 02c3 add.w r2, r2, r3, lsl #3
  99632. 802845c: ee27 7b06 vmul.f64 d7, d7, d6
  99633. 8028460: ed92 6b00 vldr d6, [r2]
  99634. 8028464: e796 b.n 8028394 <_strtod_l+0x3bc>
  99635. 8028466: 3116 adds r1, #22
  99636. 8028468: dba8 blt.n 80283bc <_strtod_l+0x3e4>
  99637. 802846a: 4b36 ldr r3, [pc, #216] @ (8028544 <_strtod_l+0x56c>)
  99638. 802846c: 1b3c subs r4, r7, r4
  99639. 802846e: eb03 04c4 add.w r4, r3, r4, lsl #3
  99640. 8028472: ed94 7b00 vldr d7, [r4]
  99641. 8028476: ec4b ab16 vmov d6, sl, fp
  99642. 802847a: ee86 7b07 vdiv.f64 d7, d6, d7
  99643. 802847e: e78b b.n 8028398 <_strtod_l+0x3c0>
  99644. 8028480: 2000 movs r0, #0
  99645. 8028482: ec4b ab17 vmov d7, sl, fp
  99646. 8028486: 4e30 ldr r6, [pc, #192] @ (8028548 <_strtod_l+0x570>)
  99647. 8028488: 1112 asrs r2, r2, #4
  99648. 802848a: 4601 mov r1, r0
  99649. 802848c: 2a01 cmp r2, #1
  99650. 802848e: dc23 bgt.n 80284d8 <_strtod_l+0x500>
  99651. 8028490: b108 cbz r0, 8028496 <_strtod_l+0x4be>
  99652. 8028492: ec5b ab17 vmov sl, fp, d7
  99653. 8028496: 4a2c ldr r2, [pc, #176] @ (8028548 <_strtod_l+0x570>)
  99654. 8028498: 482c ldr r0, [pc, #176] @ (802854c <_strtod_l+0x574>)
  99655. 802849a: eb02 02c1 add.w r2, r2, r1, lsl #3
  99656. 802849e: ed92 7b00 vldr d7, [r2]
  99657. 80284a2: f1ab 7b54 sub.w fp, fp, #55574528 @ 0x3500000
  99658. 80284a6: ec4b ab16 vmov d6, sl, fp
  99659. 80284aa: 4a29 ldr r2, [pc, #164] @ (8028550 <_strtod_l+0x578>)
  99660. 80284ac: ee27 7b06 vmul.f64 d7, d7, d6
  99661. 80284b0: ee17 1a90 vmov r1, s15
  99662. 80284b4: 400a ands r2, r1
  99663. 80284b6: 4282 cmp r2, r0
  99664. 80284b8: ec5b ab17 vmov sl, fp, d7
  99665. 80284bc: d898 bhi.n 80283f0 <_strtod_l+0x418>
  99666. 80284be: f5a0 1080 sub.w r0, r0, #1048576 @ 0x100000
  99667. 80284c2: 4282 cmp r2, r0
  99668. 80284c4: bf86 itte hi
  99669. 80284c6: f8df b08c ldrhi.w fp, [pc, #140] @ 8028554 <_strtod_l+0x57c>
  99670. 80284ca: f04f 3aff movhi.w sl, #4294967295 @ 0xffffffff
  99671. 80284ce: f101 7b54 addls.w fp, r1, #55574528 @ 0x3500000
  99672. 80284d2: 2200 movs r2, #0
  99673. 80284d4: 9206 str r2, [sp, #24]
  99674. 80284d6: e076 b.n 80285c6 <_strtod_l+0x5ee>
  99675. 80284d8: f012 0f01 tst.w r2, #1
  99676. 80284dc: d004 beq.n 80284e8 <_strtod_l+0x510>
  99677. 80284de: ed96 6b00 vldr d6, [r6]
  99678. 80284e2: 2001 movs r0, #1
  99679. 80284e4: ee27 7b06 vmul.f64 d7, d7, d6
  99680. 80284e8: 3101 adds r1, #1
  99681. 80284ea: 1052 asrs r2, r2, #1
  99682. 80284ec: 3608 adds r6, #8
  99683. 80284ee: e7cd b.n 802848c <_strtod_l+0x4b4>
  99684. 80284f0: d0ef beq.n 80284d2 <_strtod_l+0x4fa>
  99685. 80284f2: 4252 negs r2, r2
  99686. 80284f4: f012 000f ands.w r0, r2, #15
  99687. 80284f8: d00a beq.n 8028510 <_strtod_l+0x538>
  99688. 80284fa: 4912 ldr r1, [pc, #72] @ (8028544 <_strtod_l+0x56c>)
  99689. 80284fc: eb01 01c0 add.w r1, r1, r0, lsl #3
  99690. 8028500: ed91 7b00 vldr d7, [r1]
  99691. 8028504: ec4b ab16 vmov d6, sl, fp
  99692. 8028508: ee86 7b07 vdiv.f64 d7, d6, d7
  99693. 802850c: ec5b ab17 vmov sl, fp, d7
  99694. 8028510: 1112 asrs r2, r2, #4
  99695. 8028512: d0de beq.n 80284d2 <_strtod_l+0x4fa>
  99696. 8028514: 2a1f cmp r2, #31
  99697. 8028516: dd1f ble.n 8028558 <_strtod_l+0x580>
  99698. 8028518: 2400 movs r4, #0
  99699. 802851a: 4625 mov r5, r4
  99700. 802851c: 9407 str r4, [sp, #28]
  99701. 802851e: 4626 mov r6, r4
  99702. 8028520: 9a05 ldr r2, [sp, #20]
  99703. 8028522: 2322 movs r3, #34 @ 0x22
  99704. 8028524: f04f 0a00 mov.w sl, #0
  99705. 8028528: f04f 0b00 mov.w fp, #0
  99706. 802852c: 6013 str r3, [r2, #0]
  99707. 802852e: e76a b.n 8028406 <_strtod_l+0x42e>
  99708. 8028530: 0803098e .word 0x0803098e
  99709. 8028534: 0803082c .word 0x0803082c
  99710. 8028538: 08030986 .word 0x08030986
  99711. 802853c: 080309fc .word 0x080309fc
  99712. 8028540: 080309f8 .word 0x080309f8
  99713. 8028544: 08030b60 .word 0x08030b60
  99714. 8028548: 08030b38 .word 0x08030b38
  99715. 802854c: 7ca00000 .word 0x7ca00000
  99716. 8028550: 7ff00000 .word 0x7ff00000
  99717. 8028554: 7fefffff .word 0x7fefffff
  99718. 8028558: f012 0110 ands.w r1, r2, #16
  99719. 802855c: bf18 it ne
  99720. 802855e: 216a movne r1, #106 @ 0x6a
  99721. 8028560: 9106 str r1, [sp, #24]
  99722. 8028562: ec4b ab17 vmov d7, sl, fp
  99723. 8028566: 49b0 ldr r1, [pc, #704] @ (8028828 <_strtod_l+0x850>)
  99724. 8028568: 2000 movs r0, #0
  99725. 802856a: 07d6 lsls r6, r2, #31
  99726. 802856c: d504 bpl.n 8028578 <_strtod_l+0x5a0>
  99727. 802856e: ed91 6b00 vldr d6, [r1]
  99728. 8028572: 2001 movs r0, #1
  99729. 8028574: ee27 7b06 vmul.f64 d7, d7, d6
  99730. 8028578: 1052 asrs r2, r2, #1
  99731. 802857a: f101 0108 add.w r1, r1, #8
  99732. 802857e: d1f4 bne.n 802856a <_strtod_l+0x592>
  99733. 8028580: b108 cbz r0, 8028586 <_strtod_l+0x5ae>
  99734. 8028582: ec5b ab17 vmov sl, fp, d7
  99735. 8028586: 9a06 ldr r2, [sp, #24]
  99736. 8028588: b1b2 cbz r2, 80285b8 <_strtod_l+0x5e0>
  99737. 802858a: f3cb 510a ubfx r1, fp, #20, #11
  99738. 802858e: f1c1 026b rsb r2, r1, #107 @ 0x6b
  99739. 8028592: 2a00 cmp r2, #0
  99740. 8028594: 4658 mov r0, fp
  99741. 8028596: dd0f ble.n 80285b8 <_strtod_l+0x5e0>
  99742. 8028598: 2a1f cmp r2, #31
  99743. 802859a: dd55 ble.n 8028648 <_strtod_l+0x670>
  99744. 802859c: 2a34 cmp r2, #52 @ 0x34
  99745. 802859e: bfde ittt le
  99746. 80285a0: f04f 32ff movle.w r2, #4294967295 @ 0xffffffff
  99747. 80285a4: f1c1 014b rsble r1, r1, #75 @ 0x4b
  99748. 80285a8: 408a lslle r2, r1
  99749. 80285aa: f04f 0a00 mov.w sl, #0
  99750. 80285ae: bfcc ite gt
  99751. 80285b0: f04f 7b5c movgt.w fp, #57671680 @ 0x3700000
  99752. 80285b4: ea02 0b00 andle.w fp, r2, r0
  99753. 80285b8: ec4b ab17 vmov d7, sl, fp
  99754. 80285bc: eeb5 7b40 vcmp.f64 d7, #0.0
  99755. 80285c0: eef1 fa10 vmrs APSR_nzcv, fpscr
  99756. 80285c4: d0a8 beq.n 8028518 <_strtod_l+0x540>
  99757. 80285c6: 990a ldr r1, [sp, #40] @ 0x28
  99758. 80285c8: 9805 ldr r0, [sp, #20]
  99759. 80285ca: f8cd 9000 str.w r9, [sp]
  99760. 80285ce: 462a mov r2, r5
  99761. 80285d0: f002 fc7a bl 802aec8 <__s2b>
  99762. 80285d4: 9007 str r0, [sp, #28]
  99763. 80285d6: 2800 cmp r0, #0
  99764. 80285d8: f43f af0a beq.w 80283f0 <_strtod_l+0x418>
  99765. 80285dc: 9b09 ldr r3, [sp, #36] @ 0x24
  99766. 80285de: 1b3f subs r7, r7, r4
  99767. 80285e0: 2b00 cmp r3, #0
  99768. 80285e2: bfb4 ite lt
  99769. 80285e4: 463b movlt r3, r7
  99770. 80285e6: 2300 movge r3, #0
  99771. 80285e8: 930a str r3, [sp, #40] @ 0x28
  99772. 80285ea: 9b09 ldr r3, [sp, #36] @ 0x24
  99773. 80285ec: ed9f bb8a vldr d11, [pc, #552] @ 8028818 <_strtod_l+0x840>
  99774. 80285f0: ea23 73e3 bic.w r3, r3, r3, asr #31
  99775. 80285f4: 2400 movs r4, #0
  99776. 80285f6: 930d str r3, [sp, #52] @ 0x34
  99777. 80285f8: 4625 mov r5, r4
  99778. 80285fa: 9b07 ldr r3, [sp, #28]
  99779. 80285fc: 9805 ldr r0, [sp, #20]
  99780. 80285fe: 6859 ldr r1, [r3, #4]
  99781. 8028600: f002 fbba bl 802ad78 <_Balloc>
  99782. 8028604: 4606 mov r6, r0
  99783. 8028606: 2800 cmp r0, #0
  99784. 8028608: f43f aef6 beq.w 80283f8 <_strtod_l+0x420>
  99785. 802860c: 9b07 ldr r3, [sp, #28]
  99786. 802860e: 691a ldr r2, [r3, #16]
  99787. 8028610: ec4b ab19 vmov d9, sl, fp
  99788. 8028614: 3202 adds r2, #2
  99789. 8028616: f103 010c add.w r1, r3, #12
  99790. 802861a: 0092 lsls r2, r2, #2
  99791. 802861c: 300c adds r0, #12
  99792. 802861e: f001 f9fe bl 8029a1e <memcpy>
  99793. 8028622: eeb0 0b49 vmov.f64 d0, d9
  99794. 8028626: 9805 ldr r0, [sp, #20]
  99795. 8028628: aa14 add r2, sp, #80 @ 0x50
  99796. 802862a: a913 add r1, sp, #76 @ 0x4c
  99797. 802862c: f002 ff88 bl 802b540 <__d2b>
  99798. 8028630: 9012 str r0, [sp, #72] @ 0x48
  99799. 8028632: 2800 cmp r0, #0
  99800. 8028634: f43f aee0 beq.w 80283f8 <_strtod_l+0x420>
  99801. 8028638: 9805 ldr r0, [sp, #20]
  99802. 802863a: 2101 movs r1, #1
  99803. 802863c: f002 fcda bl 802aff4 <__i2b>
  99804. 8028640: 4605 mov r5, r0
  99805. 8028642: b940 cbnz r0, 8028656 <_strtod_l+0x67e>
  99806. 8028644: 2500 movs r5, #0
  99807. 8028646: e6d7 b.n 80283f8 <_strtod_l+0x420>
  99808. 8028648: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  99809. 802864c: fa01 f202 lsl.w r2, r1, r2
  99810. 8028650: ea02 0a0a and.w sl, r2, sl
  99811. 8028654: e7b0 b.n 80285b8 <_strtod_l+0x5e0>
  99812. 8028656: 9f13 ldr r7, [sp, #76] @ 0x4c
  99813. 8028658: 9a14 ldr r2, [sp, #80] @ 0x50
  99814. 802865a: 2f00 cmp r7, #0
  99815. 802865c: bfab itete ge
  99816. 802865e: 9b0a ldrge r3, [sp, #40] @ 0x28
  99817. 8028660: 9b0d ldrlt r3, [sp, #52] @ 0x34
  99818. 8028662: f8dd 8034 ldrge.w r8, [sp, #52] @ 0x34
  99819. 8028666: f8dd 9028 ldrlt.w r9, [sp, #40] @ 0x28
  99820. 802866a: bfac ite ge
  99821. 802866c: eb07 0903 addge.w r9, r7, r3
  99822. 8028670: eba3 0807 sublt.w r8, r3, r7
  99823. 8028674: 9b06 ldr r3, [sp, #24]
  99824. 8028676: 1aff subs r7, r7, r3
  99825. 8028678: 4417 add r7, r2
  99826. 802867a: f1c2 0336 rsb r3, r2, #54 @ 0x36
  99827. 802867e: 4a6b ldr r2, [pc, #428] @ (802882c <_strtod_l+0x854>)
  99828. 8028680: 3f01 subs r7, #1
  99829. 8028682: 4297 cmp r7, r2
  99830. 8028684: da51 bge.n 802872a <_strtod_l+0x752>
  99831. 8028686: 1bd1 subs r1, r2, r7
  99832. 8028688: 291f cmp r1, #31
  99833. 802868a: eba3 0301 sub.w r3, r3, r1
  99834. 802868e: f04f 0201 mov.w r2, #1
  99835. 8028692: dc3e bgt.n 8028712 <_strtod_l+0x73a>
  99836. 8028694: 408a lsls r2, r1
  99837. 8028696: 920c str r2, [sp, #48] @ 0x30
  99838. 8028698: 2200 movs r2, #0
  99839. 802869a: 920b str r2, [sp, #44] @ 0x2c
  99840. 802869c: eb09 0703 add.w r7, r9, r3
  99841. 80286a0: 4498 add r8, r3
  99842. 80286a2: 9b06 ldr r3, [sp, #24]
  99843. 80286a4: 45b9 cmp r9, r7
  99844. 80286a6: 4498 add r8, r3
  99845. 80286a8: 464b mov r3, r9
  99846. 80286aa: bfa8 it ge
  99847. 80286ac: 463b movge r3, r7
  99848. 80286ae: 4543 cmp r3, r8
  99849. 80286b0: bfa8 it ge
  99850. 80286b2: 4643 movge r3, r8
  99851. 80286b4: 2b00 cmp r3, #0
  99852. 80286b6: bfc2 ittt gt
  99853. 80286b8: 1aff subgt r7, r7, r3
  99854. 80286ba: eba8 0803 subgt.w r8, r8, r3
  99855. 80286be: eba9 0903 subgt.w r9, r9, r3
  99856. 80286c2: 9b0a ldr r3, [sp, #40] @ 0x28
  99857. 80286c4: 2b00 cmp r3, #0
  99858. 80286c6: dd16 ble.n 80286f6 <_strtod_l+0x71e>
  99859. 80286c8: 4629 mov r1, r5
  99860. 80286ca: 9805 ldr r0, [sp, #20]
  99861. 80286cc: 461a mov r2, r3
  99862. 80286ce: f002 fd51 bl 802b174 <__pow5mult>
  99863. 80286d2: 4605 mov r5, r0
  99864. 80286d4: 2800 cmp r0, #0
  99865. 80286d6: d0b5 beq.n 8028644 <_strtod_l+0x66c>
  99866. 80286d8: 4601 mov r1, r0
  99867. 80286da: 9a12 ldr r2, [sp, #72] @ 0x48
  99868. 80286dc: 9805 ldr r0, [sp, #20]
  99869. 80286de: f002 fc9f bl 802b020 <__multiply>
  99870. 80286e2: 900f str r0, [sp, #60] @ 0x3c
  99871. 80286e4: 2800 cmp r0, #0
  99872. 80286e6: f43f ae87 beq.w 80283f8 <_strtod_l+0x420>
  99873. 80286ea: 9912 ldr r1, [sp, #72] @ 0x48
  99874. 80286ec: 9805 ldr r0, [sp, #20]
  99875. 80286ee: f002 fb83 bl 802adf8 <_Bfree>
  99876. 80286f2: 9b0f ldr r3, [sp, #60] @ 0x3c
  99877. 80286f4: 9312 str r3, [sp, #72] @ 0x48
  99878. 80286f6: 2f00 cmp r7, #0
  99879. 80286f8: dc1b bgt.n 8028732 <_strtod_l+0x75a>
  99880. 80286fa: 9b09 ldr r3, [sp, #36] @ 0x24
  99881. 80286fc: 2b00 cmp r3, #0
  99882. 80286fe: dd21 ble.n 8028744 <_strtod_l+0x76c>
  99883. 8028700: 4631 mov r1, r6
  99884. 8028702: 9a0d ldr r2, [sp, #52] @ 0x34
  99885. 8028704: 9805 ldr r0, [sp, #20]
  99886. 8028706: f002 fd35 bl 802b174 <__pow5mult>
  99887. 802870a: 4606 mov r6, r0
  99888. 802870c: b9d0 cbnz r0, 8028744 <_strtod_l+0x76c>
  99889. 802870e: 2600 movs r6, #0
  99890. 8028710: e672 b.n 80283f8 <_strtod_l+0x420>
  99891. 8028712: f1c7 477f rsb r7, r7, #4278190080 @ 0xff000000
  99892. 8028716: f507 077f add.w r7, r7, #16711680 @ 0xff0000
  99893. 802871a: f507 477b add.w r7, r7, #64256 @ 0xfb00
  99894. 802871e: 37e2 adds r7, #226 @ 0xe2
  99895. 8028720: fa02 f107 lsl.w r1, r2, r7
  99896. 8028724: 910b str r1, [sp, #44] @ 0x2c
  99897. 8028726: 920c str r2, [sp, #48] @ 0x30
  99898. 8028728: e7b8 b.n 802869c <_strtod_l+0x6c4>
  99899. 802872a: 2200 movs r2, #0
  99900. 802872c: 920b str r2, [sp, #44] @ 0x2c
  99901. 802872e: 2201 movs r2, #1
  99902. 8028730: e7f9 b.n 8028726 <_strtod_l+0x74e>
  99903. 8028732: 9912 ldr r1, [sp, #72] @ 0x48
  99904. 8028734: 9805 ldr r0, [sp, #20]
  99905. 8028736: 463a mov r2, r7
  99906. 8028738: f002 fd76 bl 802b228 <__lshift>
  99907. 802873c: 9012 str r0, [sp, #72] @ 0x48
  99908. 802873e: 2800 cmp r0, #0
  99909. 8028740: d1db bne.n 80286fa <_strtod_l+0x722>
  99910. 8028742: e659 b.n 80283f8 <_strtod_l+0x420>
  99911. 8028744: f1b8 0f00 cmp.w r8, #0
  99912. 8028748: dd07 ble.n 802875a <_strtod_l+0x782>
  99913. 802874a: 4631 mov r1, r6
  99914. 802874c: 9805 ldr r0, [sp, #20]
  99915. 802874e: 4642 mov r2, r8
  99916. 8028750: f002 fd6a bl 802b228 <__lshift>
  99917. 8028754: 4606 mov r6, r0
  99918. 8028756: 2800 cmp r0, #0
  99919. 8028758: d0d9 beq.n 802870e <_strtod_l+0x736>
  99920. 802875a: f1b9 0f00 cmp.w r9, #0
  99921. 802875e: dd08 ble.n 8028772 <_strtod_l+0x79a>
  99922. 8028760: 4629 mov r1, r5
  99923. 8028762: 9805 ldr r0, [sp, #20]
  99924. 8028764: 464a mov r2, r9
  99925. 8028766: f002 fd5f bl 802b228 <__lshift>
  99926. 802876a: 4605 mov r5, r0
  99927. 802876c: 2800 cmp r0, #0
  99928. 802876e: f43f ae43 beq.w 80283f8 <_strtod_l+0x420>
  99929. 8028772: 9912 ldr r1, [sp, #72] @ 0x48
  99930. 8028774: 9805 ldr r0, [sp, #20]
  99931. 8028776: 4632 mov r2, r6
  99932. 8028778: f002 fdde bl 802b338 <__mdiff>
  99933. 802877c: 4604 mov r4, r0
  99934. 802877e: 2800 cmp r0, #0
  99935. 8028780: f43f ae3a beq.w 80283f8 <_strtod_l+0x420>
  99936. 8028784: 2300 movs r3, #0
  99937. 8028786: f8d0 800c ldr.w r8, [r0, #12]
  99938. 802878a: 60c3 str r3, [r0, #12]
  99939. 802878c: 4629 mov r1, r5
  99940. 802878e: f002 fdb7 bl 802b300 <__mcmp>
  99941. 8028792: 2800 cmp r0, #0
  99942. 8028794: da4e bge.n 8028834 <_strtod_l+0x85c>
  99943. 8028796: ea58 080a orrs.w r8, r8, sl
  99944. 802879a: d174 bne.n 8028886 <_strtod_l+0x8ae>
  99945. 802879c: f3cb 0313 ubfx r3, fp, #0, #20
  99946. 80287a0: 2b00 cmp r3, #0
  99947. 80287a2: d170 bne.n 8028886 <_strtod_l+0x8ae>
  99948. 80287a4: f02b 4300 bic.w r3, fp, #2147483648 @ 0x80000000
  99949. 80287a8: 0d1b lsrs r3, r3, #20
  99950. 80287aa: 051b lsls r3, r3, #20
  99951. 80287ac: f1b3 6fd6 cmp.w r3, #112197632 @ 0x6b00000
  99952. 80287b0: d969 bls.n 8028886 <_strtod_l+0x8ae>
  99953. 80287b2: 6963 ldr r3, [r4, #20]
  99954. 80287b4: b913 cbnz r3, 80287bc <_strtod_l+0x7e4>
  99955. 80287b6: 6923 ldr r3, [r4, #16]
  99956. 80287b8: 2b01 cmp r3, #1
  99957. 80287ba: dd64 ble.n 8028886 <_strtod_l+0x8ae>
  99958. 80287bc: 4621 mov r1, r4
  99959. 80287be: 2201 movs r2, #1
  99960. 80287c0: 9805 ldr r0, [sp, #20]
  99961. 80287c2: f002 fd31 bl 802b228 <__lshift>
  99962. 80287c6: 4629 mov r1, r5
  99963. 80287c8: 4604 mov r4, r0
  99964. 80287ca: f002 fd99 bl 802b300 <__mcmp>
  99965. 80287ce: 2800 cmp r0, #0
  99966. 80287d0: dd59 ble.n 8028886 <_strtod_l+0x8ae>
  99967. 80287d2: f02b 4300 bic.w r3, fp, #2147483648 @ 0x80000000
  99968. 80287d6: 9a06 ldr r2, [sp, #24]
  99969. 80287d8: 0d1b lsrs r3, r3, #20
  99970. 80287da: 051b lsls r3, r3, #20
  99971. 80287dc: 2a00 cmp r2, #0
  99972. 80287de: d070 beq.n 80288c2 <_strtod_l+0x8ea>
  99973. 80287e0: f1b3 6fd6 cmp.w r3, #112197632 @ 0x6b00000
  99974. 80287e4: d86d bhi.n 80288c2 <_strtod_l+0x8ea>
  99975. 80287e6: f1b3 7f5c cmp.w r3, #57671680 @ 0x3700000
  99976. 80287ea: f67f ae99 bls.w 8028520 <_strtod_l+0x548>
  99977. 80287ee: ed9f 7b0c vldr d7, [pc, #48] @ 8028820 <_strtod_l+0x848>
  99978. 80287f2: ec4b ab16 vmov d6, sl, fp
  99979. 80287f6: 4b0e ldr r3, [pc, #56] @ (8028830 <_strtod_l+0x858>)
  99980. 80287f8: ee26 7b07 vmul.f64 d7, d6, d7
  99981. 80287fc: ee17 2a90 vmov r2, s15
  99982. 8028800: 4013 ands r3, r2
  99983. 8028802: ec5b ab17 vmov sl, fp, d7
  99984. 8028806: 2b00 cmp r3, #0
  99985. 8028808: f47f ae01 bne.w 802840e <_strtod_l+0x436>
  99986. 802880c: 9a05 ldr r2, [sp, #20]
  99987. 802880e: 2322 movs r3, #34 @ 0x22
  99988. 8028810: 6013 str r3, [r2, #0]
  99989. 8028812: e5fc b.n 802840e <_strtod_l+0x436>
  99990. 8028814: f3af 8000 nop.w
  99991. 8028818: ffc00000 .word 0xffc00000
  99992. 802881c: 41dfffff .word 0x41dfffff
  99993. 8028820: 00000000 .word 0x00000000
  99994. 8028824: 39500000 .word 0x39500000
  99995. 8028828: 08030858 .word 0x08030858
  99996. 802882c: fffffc02 .word 0xfffffc02
  99997. 8028830: 7ff00000 .word 0x7ff00000
  99998. 8028834: 46d9 mov r9, fp
  99999. 8028836: d15d bne.n 80288f4 <_strtod_l+0x91c>
  100000. 8028838: f3cb 0313 ubfx r3, fp, #0, #20
  100001. 802883c: f1b8 0f00 cmp.w r8, #0
  100002. 8028840: d02a beq.n 8028898 <_strtod_l+0x8c0>
  100003. 8028842: 4aab ldr r2, [pc, #684] @ (8028af0 <_strtod_l+0xb18>)
  100004. 8028844: 4293 cmp r3, r2
  100005. 8028846: d12a bne.n 802889e <_strtod_l+0x8c6>
  100006. 8028848: 9b06 ldr r3, [sp, #24]
  100007. 802884a: 4652 mov r2, sl
  100008. 802884c: b1fb cbz r3, 802888e <_strtod_l+0x8b6>
  100009. 802884e: 4ba9 ldr r3, [pc, #676] @ (8028af4 <_strtod_l+0xb1c>)
  100010. 8028850: ea0b 0303 and.w r3, fp, r3
  100011. 8028854: f1b3 6fd4 cmp.w r3, #111149056 @ 0x6a00000
  100012. 8028858: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  100013. 802885c: d81a bhi.n 8028894 <_strtod_l+0x8bc>
  100014. 802885e: 0d1b lsrs r3, r3, #20
  100015. 8028860: f1c3 036b rsb r3, r3, #107 @ 0x6b
  100016. 8028864: fa01 f303 lsl.w r3, r1, r3
  100017. 8028868: 429a cmp r2, r3
  100018. 802886a: d118 bne.n 802889e <_strtod_l+0x8c6>
  100019. 802886c: 4ba2 ldr r3, [pc, #648] @ (8028af8 <_strtod_l+0xb20>)
  100020. 802886e: 4599 cmp r9, r3
  100021. 8028870: d102 bne.n 8028878 <_strtod_l+0x8a0>
  100022. 8028872: 3201 adds r2, #1
  100023. 8028874: f43f adc0 beq.w 80283f8 <_strtod_l+0x420>
  100024. 8028878: 4b9e ldr r3, [pc, #632] @ (8028af4 <_strtod_l+0xb1c>)
  100025. 802887a: ea09 0303 and.w r3, r9, r3
  100026. 802887e: f503 1b80 add.w fp, r3, #1048576 @ 0x100000
  100027. 8028882: f04f 0a00 mov.w sl, #0
  100028. 8028886: 9b06 ldr r3, [sp, #24]
  100029. 8028888: 2b00 cmp r3, #0
  100030. 802888a: d1b0 bne.n 80287ee <_strtod_l+0x816>
  100031. 802888c: e5bf b.n 802840e <_strtod_l+0x436>
  100032. 802888e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  100033. 8028892: e7e9 b.n 8028868 <_strtod_l+0x890>
  100034. 8028894: 460b mov r3, r1
  100035. 8028896: e7e7 b.n 8028868 <_strtod_l+0x890>
  100036. 8028898: ea53 030a orrs.w r3, r3, sl
  100037. 802889c: d099 beq.n 80287d2 <_strtod_l+0x7fa>
  100038. 802889e: 9b0b ldr r3, [sp, #44] @ 0x2c
  100039. 80288a0: b1c3 cbz r3, 80288d4 <_strtod_l+0x8fc>
  100040. 80288a2: ea13 0f09 tst.w r3, r9
  100041. 80288a6: d0ee beq.n 8028886 <_strtod_l+0x8ae>
  100042. 80288a8: 9a06 ldr r2, [sp, #24]
  100043. 80288aa: 4650 mov r0, sl
  100044. 80288ac: 4659 mov r1, fp
  100045. 80288ae: f1b8 0f00 cmp.w r8, #0
  100046. 80288b2: d013 beq.n 80288dc <_strtod_l+0x904>
  100047. 80288b4: f7ff fb74 bl 8027fa0 <sulp>
  100048. 80288b8: ee39 7b00 vadd.f64 d7, d9, d0
  100049. 80288bc: ec5b ab17 vmov sl, fp, d7
  100050. 80288c0: e7e1 b.n 8028886 <_strtod_l+0x8ae>
  100051. 80288c2: f5a3 1380 sub.w r3, r3, #1048576 @ 0x100000
  100052. 80288c6: ea6f 5b13 mvn.w fp, r3, lsr #20
  100053. 80288ca: ea6f 5b0b mvn.w fp, fp, lsl #20
  100054. 80288ce: f04f 3aff mov.w sl, #4294967295 @ 0xffffffff
  100055. 80288d2: e7d8 b.n 8028886 <_strtod_l+0x8ae>
  100056. 80288d4: 9b0c ldr r3, [sp, #48] @ 0x30
  100057. 80288d6: ea13 0f0a tst.w r3, sl
  100058. 80288da: e7e4 b.n 80288a6 <_strtod_l+0x8ce>
  100059. 80288dc: f7ff fb60 bl 8027fa0 <sulp>
  100060. 80288e0: ee39 0b40 vsub.f64 d0, d9, d0
  100061. 80288e4: eeb5 0b40 vcmp.f64 d0, #0.0
  100062. 80288e8: eef1 fa10 vmrs APSR_nzcv, fpscr
  100063. 80288ec: ec5b ab10 vmov sl, fp, d0
  100064. 80288f0: d1c9 bne.n 8028886 <_strtod_l+0x8ae>
  100065. 80288f2: e615 b.n 8028520 <_strtod_l+0x548>
  100066. 80288f4: 4629 mov r1, r5
  100067. 80288f6: 4620 mov r0, r4
  100068. 80288f8: f002 fe7a bl 802b5f0 <__ratio>
  100069. 80288fc: eeb0 7b00 vmov.f64 d7, #0 @ 0x40000000 2.0
  100070. 8028900: eeb4 0bc7 vcmpe.f64 d0, d7
  100071. 8028904: eef1 fa10 vmrs APSR_nzcv, fpscr
  100072. 8028908: d85d bhi.n 80289c6 <_strtod_l+0x9ee>
  100073. 802890a: f1b8 0f00 cmp.w r8, #0
  100074. 802890e: d164 bne.n 80289da <_strtod_l+0xa02>
  100075. 8028910: f1ba 0f00 cmp.w sl, #0
  100076. 8028914: d14b bne.n 80289ae <_strtod_l+0x9d6>
  100077. 8028916: f3cb 0313 ubfx r3, fp, #0, #20
  100078. 802891a: eeb7 8b00 vmov.f64 d8, #112 @ 0x3f800000 1.0
  100079. 802891e: 2b00 cmp r3, #0
  100080. 8028920: d160 bne.n 80289e4 <_strtod_l+0xa0c>
  100081. 8028922: eeb4 0bc8 vcmpe.f64 d0, d8
  100082. 8028926: eeb6 8b00 vmov.f64 d8, #96 @ 0x3f000000 0.5
  100083. 802892a: eef1 fa10 vmrs APSR_nzcv, fpscr
  100084. 802892e: d401 bmi.n 8028934 <_strtod_l+0x95c>
  100085. 8028930: ee20 8b08 vmul.f64 d8, d0, d8
  100086. 8028934: eeb1 ab48 vneg.f64 d10, d8
  100087. 8028938: 486e ldr r0, [pc, #440] @ (8028af4 <_strtod_l+0xb1c>)
  100088. 802893a: 4970 ldr r1, [pc, #448] @ (8028afc <_strtod_l+0xb24>)
  100089. 802893c: ea09 0700 and.w r7, r9, r0
  100090. 8028940: 428f cmp r7, r1
  100091. 8028942: ec53 2b1a vmov r2, r3, d10
  100092. 8028946: d17d bne.n 8028a44 <_strtod_l+0xa6c>
  100093. 8028948: f1a9 7b54 sub.w fp, r9, #55574528 @ 0x3500000
  100094. 802894c: ec4b ab1c vmov d12, sl, fp
  100095. 8028950: eeb0 0b4c vmov.f64 d0, d12
  100096. 8028954: f002 fd84 bl 802b460 <__ulp>
  100097. 8028958: 4866 ldr r0, [pc, #408] @ (8028af4 <_strtod_l+0xb1c>)
  100098. 802895a: eea0 cb0a vfma.f64 d12, d0, d10
  100099. 802895e: ee1c 3a90 vmov r3, s25
  100100. 8028962: 4a67 ldr r2, [pc, #412] @ (8028b00 <_strtod_l+0xb28>)
  100101. 8028964: ea03 0100 and.w r1, r3, r0
  100102. 8028968: 4291 cmp r1, r2
  100103. 802896a: ec5b ab1c vmov sl, fp, d12
  100104. 802896e: d93c bls.n 80289ea <_strtod_l+0xa12>
  100105. 8028970: ee19 2a90 vmov r2, s19
  100106. 8028974: 4b60 ldr r3, [pc, #384] @ (8028af8 <_strtod_l+0xb20>)
  100107. 8028976: 429a cmp r2, r3
  100108. 8028978: d104 bne.n 8028984 <_strtod_l+0x9ac>
  100109. 802897a: ee19 3a10 vmov r3, s18
  100110. 802897e: 3301 adds r3, #1
  100111. 8028980: f43f ad3a beq.w 80283f8 <_strtod_l+0x420>
  100112. 8028984: f8df b170 ldr.w fp, [pc, #368] @ 8028af8 <_strtod_l+0xb20>
  100113. 8028988: f04f 3aff mov.w sl, #4294967295 @ 0xffffffff
  100114. 802898c: 9912 ldr r1, [sp, #72] @ 0x48
  100115. 802898e: 9805 ldr r0, [sp, #20]
  100116. 8028990: f002 fa32 bl 802adf8 <_Bfree>
  100117. 8028994: 9805 ldr r0, [sp, #20]
  100118. 8028996: 4631 mov r1, r6
  100119. 8028998: f002 fa2e bl 802adf8 <_Bfree>
  100120. 802899c: 9805 ldr r0, [sp, #20]
  100121. 802899e: 4629 mov r1, r5
  100122. 80289a0: f002 fa2a bl 802adf8 <_Bfree>
  100123. 80289a4: 9805 ldr r0, [sp, #20]
  100124. 80289a6: 4621 mov r1, r4
  100125. 80289a8: f002 fa26 bl 802adf8 <_Bfree>
  100126. 80289ac: e625 b.n 80285fa <_strtod_l+0x622>
  100127. 80289ae: f1ba 0f01 cmp.w sl, #1
  100128. 80289b2: d103 bne.n 80289bc <_strtod_l+0x9e4>
  100129. 80289b4: f1bb 0f00 cmp.w fp, #0
  100130. 80289b8: f43f adb2 beq.w 8028520 <_strtod_l+0x548>
  100131. 80289bc: eebf ab00 vmov.f64 d10, #240 @ 0xbf800000 -1.0
  100132. 80289c0: eeb7 8b00 vmov.f64 d8, #112 @ 0x3f800000 1.0
  100133. 80289c4: e7b8 b.n 8028938 <_strtod_l+0x960>
  100134. 80289c6: eeb6 8b00 vmov.f64 d8, #96 @ 0x3f000000 0.5
  100135. 80289ca: ee20 8b08 vmul.f64 d8, d0, d8
  100136. 80289ce: f1b8 0f00 cmp.w r8, #0
  100137. 80289d2: d0af beq.n 8028934 <_strtod_l+0x95c>
  100138. 80289d4: eeb0 ab48 vmov.f64 d10, d8
  100139. 80289d8: e7ae b.n 8028938 <_strtod_l+0x960>
  100140. 80289da: eeb7 ab00 vmov.f64 d10, #112 @ 0x3f800000 1.0
  100141. 80289de: eeb0 8b4a vmov.f64 d8, d10
  100142. 80289e2: e7a9 b.n 8028938 <_strtod_l+0x960>
  100143. 80289e4: eebf ab00 vmov.f64 d10, #240 @ 0xbf800000 -1.0
  100144. 80289e8: e7a6 b.n 8028938 <_strtod_l+0x960>
  100145. 80289ea: f103 7b54 add.w fp, r3, #55574528 @ 0x3500000
  100146. 80289ee: 9b06 ldr r3, [sp, #24]
  100147. 80289f0: 46d9 mov r9, fp
  100148. 80289f2: 2b00 cmp r3, #0
  100149. 80289f4: d1ca bne.n 802898c <_strtod_l+0x9b4>
  100150. 80289f6: f02b 4300 bic.w r3, fp, #2147483648 @ 0x80000000
  100151. 80289fa: 0d1b lsrs r3, r3, #20
  100152. 80289fc: 051b lsls r3, r3, #20
  100153. 80289fe: 429f cmp r7, r3
  100154. 8028a00: d1c4 bne.n 802898c <_strtod_l+0x9b4>
  100155. 8028a02: ec51 0b18 vmov r0, r1, d8
  100156. 8028a06: f7d7 fea7 bl 8000758 <__aeabi_d2lz>
  100157. 8028a0a: f7d7 fe5f bl 80006cc <__aeabi_l2d>
  100158. 8028a0e: f3cb 0913 ubfx r9, fp, #0, #20
  100159. 8028a12: ec41 0b17 vmov d7, r0, r1
  100160. 8028a16: ea49 090a orr.w r9, r9, sl
  100161. 8028a1a: ea59 0908 orrs.w r9, r9, r8
  100162. 8028a1e: ee38 8b47 vsub.f64 d8, d8, d7
  100163. 8028a22: d03c beq.n 8028a9e <_strtod_l+0xac6>
  100164. 8028a24: ed9f 7b2c vldr d7, [pc, #176] @ 8028ad8 <_strtod_l+0xb00>
  100165. 8028a28: eeb4 8bc7 vcmpe.f64 d8, d7
  100166. 8028a2c: eef1 fa10 vmrs APSR_nzcv, fpscr
  100167. 8028a30: f53f aced bmi.w 802840e <_strtod_l+0x436>
  100168. 8028a34: ed9f 7b2a vldr d7, [pc, #168] @ 8028ae0 <_strtod_l+0xb08>
  100169. 8028a38: eeb4 8bc7 vcmpe.f64 d8, d7
  100170. 8028a3c: eef1 fa10 vmrs APSR_nzcv, fpscr
  100171. 8028a40: dda4 ble.n 802898c <_strtod_l+0x9b4>
  100172. 8028a42: e4e4 b.n 802840e <_strtod_l+0x436>
  100173. 8028a44: 9906 ldr r1, [sp, #24]
  100174. 8028a46: b1e1 cbz r1, 8028a82 <_strtod_l+0xaaa>
  100175. 8028a48: f1b7 6fd4 cmp.w r7, #111149056 @ 0x6a00000
  100176. 8028a4c: d819 bhi.n 8028a82 <_strtod_l+0xaaa>
  100177. 8028a4e: eeb4 8bcb vcmpe.f64 d8, d11
  100178. 8028a52: eef1 fa10 vmrs APSR_nzcv, fpscr
  100179. 8028a56: d811 bhi.n 8028a7c <_strtod_l+0xaa4>
  100180. 8028a58: eebc 8bc8 vcvt.u32.f64 s16, d8
  100181. 8028a5c: ee18 3a10 vmov r3, s16
  100182. 8028a60: 2b01 cmp r3, #1
  100183. 8028a62: bf38 it cc
  100184. 8028a64: 2301 movcc r3, #1
  100185. 8028a66: ee08 3a10 vmov s16, r3
  100186. 8028a6a: eeb8 8b48 vcvt.f64.u32 d8, s16
  100187. 8028a6e: f1b8 0f00 cmp.w r8, #0
  100188. 8028a72: d111 bne.n 8028a98 <_strtod_l+0xac0>
  100189. 8028a74: eeb1 7b48 vneg.f64 d7, d8
  100190. 8028a78: ec53 2b17 vmov r2, r3, d7
  100191. 8028a7c: f103 61d6 add.w r1, r3, #112197632 @ 0x6b00000
  100192. 8028a80: 1bcb subs r3, r1, r7
  100193. 8028a82: eeb0 0b49 vmov.f64 d0, d9
  100194. 8028a86: ec43 2b1a vmov d10, r2, r3
  100195. 8028a8a: f002 fce9 bl 802b460 <__ulp>
  100196. 8028a8e: eeaa 9b00 vfma.f64 d9, d10, d0
  100197. 8028a92: ec5b ab19 vmov sl, fp, d9
  100198. 8028a96: e7aa b.n 80289ee <_strtod_l+0xa16>
  100199. 8028a98: eeb0 7b48 vmov.f64 d7, d8
  100200. 8028a9c: e7ec b.n 8028a78 <_strtod_l+0xaa0>
  100201. 8028a9e: ed9f 7b12 vldr d7, [pc, #72] @ 8028ae8 <_strtod_l+0xb10>
  100202. 8028aa2: eeb4 8bc7 vcmpe.f64 d8, d7
  100203. 8028aa6: eef1 fa10 vmrs APSR_nzcv, fpscr
  100204. 8028aaa: f57f af6f bpl.w 802898c <_strtod_l+0x9b4>
  100205. 8028aae: e4ae b.n 802840e <_strtod_l+0x436>
  100206. 8028ab0: 2300 movs r3, #0
  100207. 8028ab2: 9308 str r3, [sp, #32]
  100208. 8028ab4: 9a0e ldr r2, [sp, #56] @ 0x38
  100209. 8028ab6: 9b11 ldr r3, [sp, #68] @ 0x44
  100210. 8028ab8: 6013 str r3, [r2, #0]
  100211. 8028aba: f7ff bacc b.w 8028056 <_strtod_l+0x7e>
  100212. 8028abe: 2a65 cmp r2, #101 @ 0x65
  100213. 8028ac0: f43f abbc beq.w 802823c <_strtod_l+0x264>
  100214. 8028ac4: 2a45 cmp r2, #69 @ 0x45
  100215. 8028ac6: f43f abb9 beq.w 802823c <_strtod_l+0x264>
  100216. 8028aca: 2301 movs r3, #1
  100217. 8028acc: 9306 str r3, [sp, #24]
  100218. 8028ace: f7ff bbf0 b.w 80282b2 <_strtod_l+0x2da>
  100219. 8028ad2: bf00 nop
  100220. 8028ad4: f3af 8000 nop.w
  100221. 8028ad8: 94a03595 .word 0x94a03595
  100222. 8028adc: 3fdfffff .word 0x3fdfffff
  100223. 8028ae0: 35afe535 .word 0x35afe535
  100224. 8028ae4: 3fe00000 .word 0x3fe00000
  100225. 8028ae8: 94a03595 .word 0x94a03595
  100226. 8028aec: 3fcfffff .word 0x3fcfffff
  100227. 8028af0: 000fffff .word 0x000fffff
  100228. 8028af4: 7ff00000 .word 0x7ff00000
  100229. 8028af8: 7fefffff .word 0x7fefffff
  100230. 8028afc: 7fe00000 .word 0x7fe00000
  100231. 8028b00: 7c9fffff .word 0x7c9fffff
  100232. 08028b04 <strtod>:
  100233. 8028b04: 460a mov r2, r1
  100234. 8028b06: 4601 mov r1, r0
  100235. 8028b08: 4802 ldr r0, [pc, #8] @ (8028b14 <strtod+0x10>)
  100236. 8028b0a: 4b03 ldr r3, [pc, #12] @ (8028b18 <strtod+0x14>)
  100237. 8028b0c: 6800 ldr r0, [r0, #0]
  100238. 8028b0e: f7ff ba63 b.w 8027fd8 <_strtod_l>
  100239. 8028b12: bf00 nop
  100240. 8028b14: 240001c0 .word 0x240001c0
  100241. 8028b18: 24000054 .word 0x24000054
  100242. 08028b1c <__cvt>:
  100243. 8028b1c: b5f0 push {r4, r5, r6, r7, lr}
  100244. 8028b1e: ed2d 8b02 vpush {d8}
  100245. 8028b22: eeb0 8b40 vmov.f64 d8, d0
  100246. 8028b26: b085 sub sp, #20
  100247. 8028b28: 4617 mov r7, r2
  100248. 8028b2a: 9d0d ldr r5, [sp, #52] @ 0x34
  100249. 8028b2c: 9e0c ldr r6, [sp, #48] @ 0x30
  100250. 8028b2e: ee18 2a90 vmov r2, s17
  100251. 8028b32: f025 0520 bic.w r5, r5, #32
  100252. 8028b36: 2a00 cmp r2, #0
  100253. 8028b38: bfb6 itet lt
  100254. 8028b3a: 222d movlt r2, #45 @ 0x2d
  100255. 8028b3c: 2200 movge r2, #0
  100256. 8028b3e: eeb1 8b40 vneglt.f64 d8, d0
  100257. 8028b42: 2d46 cmp r5, #70 @ 0x46
  100258. 8028b44: 460c mov r4, r1
  100259. 8028b46: 701a strb r2, [r3, #0]
  100260. 8028b48: d004 beq.n 8028b54 <__cvt+0x38>
  100261. 8028b4a: 2d45 cmp r5, #69 @ 0x45
  100262. 8028b4c: d100 bne.n 8028b50 <__cvt+0x34>
  100263. 8028b4e: 3401 adds r4, #1
  100264. 8028b50: 2102 movs r1, #2
  100265. 8028b52: e000 b.n 8028b56 <__cvt+0x3a>
  100266. 8028b54: 2103 movs r1, #3
  100267. 8028b56: ab03 add r3, sp, #12
  100268. 8028b58: 9301 str r3, [sp, #4]
  100269. 8028b5a: ab02 add r3, sp, #8
  100270. 8028b5c: 9300 str r3, [sp, #0]
  100271. 8028b5e: 4622 mov r2, r4
  100272. 8028b60: 4633 mov r3, r6
  100273. 8028b62: eeb0 0b48 vmov.f64 d0, d8
  100274. 8028b66: f001 f81b bl 8029ba0 <_dtoa_r>
  100275. 8028b6a: 2d47 cmp r5, #71 @ 0x47
  100276. 8028b6c: d114 bne.n 8028b98 <__cvt+0x7c>
  100277. 8028b6e: 07fb lsls r3, r7, #31
  100278. 8028b70: d50a bpl.n 8028b88 <__cvt+0x6c>
  100279. 8028b72: 1902 adds r2, r0, r4
  100280. 8028b74: eeb5 8b40 vcmp.f64 d8, #0.0
  100281. 8028b78: eef1 fa10 vmrs APSR_nzcv, fpscr
  100282. 8028b7c: bf08 it eq
  100283. 8028b7e: 9203 streq r2, [sp, #12]
  100284. 8028b80: 2130 movs r1, #48 @ 0x30
  100285. 8028b82: 9b03 ldr r3, [sp, #12]
  100286. 8028b84: 4293 cmp r3, r2
  100287. 8028b86: d319 bcc.n 8028bbc <__cvt+0xa0>
  100288. 8028b88: 9b03 ldr r3, [sp, #12]
  100289. 8028b8a: 9a0e ldr r2, [sp, #56] @ 0x38
  100290. 8028b8c: 1a1b subs r3, r3, r0
  100291. 8028b8e: 6013 str r3, [r2, #0]
  100292. 8028b90: b005 add sp, #20
  100293. 8028b92: ecbd 8b02 vpop {d8}
  100294. 8028b96: bdf0 pop {r4, r5, r6, r7, pc}
  100295. 8028b98: 2d46 cmp r5, #70 @ 0x46
  100296. 8028b9a: eb00 0204 add.w r2, r0, r4
  100297. 8028b9e: d1e9 bne.n 8028b74 <__cvt+0x58>
  100298. 8028ba0: 7803 ldrb r3, [r0, #0]
  100299. 8028ba2: 2b30 cmp r3, #48 @ 0x30
  100300. 8028ba4: d107 bne.n 8028bb6 <__cvt+0x9a>
  100301. 8028ba6: eeb5 8b40 vcmp.f64 d8, #0.0
  100302. 8028baa: eef1 fa10 vmrs APSR_nzcv, fpscr
  100303. 8028bae: bf1c itt ne
  100304. 8028bb0: f1c4 0401 rsbne r4, r4, #1
  100305. 8028bb4: 6034 strne r4, [r6, #0]
  100306. 8028bb6: 6833 ldr r3, [r6, #0]
  100307. 8028bb8: 441a add r2, r3
  100308. 8028bba: e7db b.n 8028b74 <__cvt+0x58>
  100309. 8028bbc: 1c5c adds r4, r3, #1
  100310. 8028bbe: 9403 str r4, [sp, #12]
  100311. 8028bc0: 7019 strb r1, [r3, #0]
  100312. 8028bc2: e7de b.n 8028b82 <__cvt+0x66>
  100313. 08028bc4 <__exponent>:
  100314. 8028bc4: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr}
  100315. 8028bc6: 2900 cmp r1, #0
  100316. 8028bc8: bfba itte lt
  100317. 8028bca: 4249 neglt r1, r1
  100318. 8028bcc: 232d movlt r3, #45 @ 0x2d
  100319. 8028bce: 232b movge r3, #43 @ 0x2b
  100320. 8028bd0: 2909 cmp r1, #9
  100321. 8028bd2: 7002 strb r2, [r0, #0]
  100322. 8028bd4: 7043 strb r3, [r0, #1]
  100323. 8028bd6: dd29 ble.n 8028c2c <__exponent+0x68>
  100324. 8028bd8: f10d 0307 add.w r3, sp, #7
  100325. 8028bdc: 461d mov r5, r3
  100326. 8028bde: 270a movs r7, #10
  100327. 8028be0: 461a mov r2, r3
  100328. 8028be2: fbb1 f6f7 udiv r6, r1, r7
  100329. 8028be6: fb07 1416 mls r4, r7, r6, r1
  100330. 8028bea: 3430 adds r4, #48 @ 0x30
  100331. 8028bec: f802 4c01 strb.w r4, [r2, #-1]
  100332. 8028bf0: 460c mov r4, r1
  100333. 8028bf2: 2c63 cmp r4, #99 @ 0x63
  100334. 8028bf4: f103 33ff add.w r3, r3, #4294967295 @ 0xffffffff
  100335. 8028bf8: 4631 mov r1, r6
  100336. 8028bfa: dcf1 bgt.n 8028be0 <__exponent+0x1c>
  100337. 8028bfc: 3130 adds r1, #48 @ 0x30
  100338. 8028bfe: 1e94 subs r4, r2, #2
  100339. 8028c00: f803 1c01 strb.w r1, [r3, #-1]
  100340. 8028c04: 1c41 adds r1, r0, #1
  100341. 8028c06: 4623 mov r3, r4
  100342. 8028c08: 42ab cmp r3, r5
  100343. 8028c0a: d30a bcc.n 8028c22 <__exponent+0x5e>
  100344. 8028c0c: f10d 0309 add.w r3, sp, #9
  100345. 8028c10: 1a9b subs r3, r3, r2
  100346. 8028c12: 42ac cmp r4, r5
  100347. 8028c14: bf88 it hi
  100348. 8028c16: 2300 movhi r3, #0
  100349. 8028c18: 3302 adds r3, #2
  100350. 8028c1a: 4403 add r3, r0
  100351. 8028c1c: 1a18 subs r0, r3, r0
  100352. 8028c1e: b003 add sp, #12
  100353. 8028c20: bdf0 pop {r4, r5, r6, r7, pc}
  100354. 8028c22: f813 6b01 ldrb.w r6, [r3], #1
  100355. 8028c26: f801 6f01 strb.w r6, [r1, #1]!
  100356. 8028c2a: e7ed b.n 8028c08 <__exponent+0x44>
  100357. 8028c2c: 2330 movs r3, #48 @ 0x30
  100358. 8028c2e: 3130 adds r1, #48 @ 0x30
  100359. 8028c30: 7083 strb r3, [r0, #2]
  100360. 8028c32: 70c1 strb r1, [r0, #3]
  100361. 8028c34: 1d03 adds r3, r0, #4
  100362. 8028c36: e7f1 b.n 8028c1c <__exponent+0x58>
  100363. 08028c38 <_printf_float>:
  100364. 8028c38: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  100365. 8028c3c: b08d sub sp, #52 @ 0x34
  100366. 8028c3e: 460c mov r4, r1
  100367. 8028c40: f8dd 8058 ldr.w r8, [sp, #88] @ 0x58
  100368. 8028c44: 4616 mov r6, r2
  100369. 8028c46: 461f mov r7, r3
  100370. 8028c48: 4605 mov r5, r0
  100371. 8028c4a: f000 fe0b bl 8029864 <_localeconv_r>
  100372. 8028c4e: f8d0 b000 ldr.w fp, [r0]
  100373. 8028c52: 4658 mov r0, fp
  100374. 8028c54: f7d7 fba4 bl 80003a0 <strlen>
  100375. 8028c58: 2300 movs r3, #0
  100376. 8028c5a: 930a str r3, [sp, #40] @ 0x28
  100377. 8028c5c: f8d8 3000 ldr.w r3, [r8]
  100378. 8028c60: f894 9018 ldrb.w r9, [r4, #24]
  100379. 8028c64: 6822 ldr r2, [r4, #0]
  100380. 8028c66: 9005 str r0, [sp, #20]
  100381. 8028c68: 3307 adds r3, #7
  100382. 8028c6a: f023 0307 bic.w r3, r3, #7
  100383. 8028c6e: f103 0108 add.w r1, r3, #8
  100384. 8028c72: f8c8 1000 str.w r1, [r8]
  100385. 8028c76: ed93 0b00 vldr d0, [r3]
  100386. 8028c7a: ed9f 6b97 vldr d6, [pc, #604] @ 8028ed8 <_printf_float+0x2a0>
  100387. 8028c7e: eeb0 7bc0 vabs.f64 d7, d0
  100388. 8028c82: eeb4 7b46 vcmp.f64 d7, d6
  100389. 8028c86: eef1 fa10 vmrs APSR_nzcv, fpscr
  100390. 8028c8a: ed84 0b12 vstr d0, [r4, #72] @ 0x48
  100391. 8028c8e: dd24 ble.n 8028cda <_printf_float+0xa2>
  100392. 8028c90: eeb5 0bc0 vcmpe.f64 d0, #0.0
  100393. 8028c94: eef1 fa10 vmrs APSR_nzcv, fpscr
  100394. 8028c98: d502 bpl.n 8028ca0 <_printf_float+0x68>
  100395. 8028c9a: 232d movs r3, #45 @ 0x2d
  100396. 8028c9c: f884 3043 strb.w r3, [r4, #67] @ 0x43
  100397. 8028ca0: 498f ldr r1, [pc, #572] @ (8028ee0 <_printf_float+0x2a8>)
  100398. 8028ca2: 4b90 ldr r3, [pc, #576] @ (8028ee4 <_printf_float+0x2ac>)
  100399. 8028ca4: f1b9 0f47 cmp.w r9, #71 @ 0x47
  100400. 8028ca8: bf94 ite ls
  100401. 8028caa: 4688 movls r8, r1
  100402. 8028cac: 4698 movhi r8, r3
  100403. 8028cae: f022 0204 bic.w r2, r2, #4
  100404. 8028cb2: 2303 movs r3, #3
  100405. 8028cb4: 6123 str r3, [r4, #16]
  100406. 8028cb6: 6022 str r2, [r4, #0]
  100407. 8028cb8: f04f 0a00 mov.w sl, #0
  100408. 8028cbc: 9700 str r7, [sp, #0]
  100409. 8028cbe: 4633 mov r3, r6
  100410. 8028cc0: aa0b add r2, sp, #44 @ 0x2c
  100411. 8028cc2: 4621 mov r1, r4
  100412. 8028cc4: 4628 mov r0, r5
  100413. 8028cc6: f000 f9d1 bl 802906c <_printf_common>
  100414. 8028cca: 3001 adds r0, #1
  100415. 8028ccc: f040 8089 bne.w 8028de2 <_printf_float+0x1aa>
  100416. 8028cd0: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  100417. 8028cd4: b00d add sp, #52 @ 0x34
  100418. 8028cd6: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  100419. 8028cda: eeb4 0b40 vcmp.f64 d0, d0
  100420. 8028cde: eef1 fa10 vmrs APSR_nzcv, fpscr
  100421. 8028ce2: d709 bvc.n 8028cf8 <_printf_float+0xc0>
  100422. 8028ce4: ee10 3a90 vmov r3, s1
  100423. 8028ce8: 2b00 cmp r3, #0
  100424. 8028cea: bfbc itt lt
  100425. 8028cec: 232d movlt r3, #45 @ 0x2d
  100426. 8028cee: f884 3043 strblt.w r3, [r4, #67] @ 0x43
  100427. 8028cf2: 497d ldr r1, [pc, #500] @ (8028ee8 <_printf_float+0x2b0>)
  100428. 8028cf4: 4b7d ldr r3, [pc, #500] @ (8028eec <_printf_float+0x2b4>)
  100429. 8028cf6: e7d5 b.n 8028ca4 <_printf_float+0x6c>
  100430. 8028cf8: 6863 ldr r3, [r4, #4]
  100431. 8028cfa: 1c59 adds r1, r3, #1
  100432. 8028cfc: f009 0adf and.w sl, r9, #223 @ 0xdf
  100433. 8028d00: d139 bne.n 8028d76 <_printf_float+0x13e>
  100434. 8028d02: 2306 movs r3, #6
  100435. 8028d04: 6063 str r3, [r4, #4]
  100436. 8028d06: f442 6280 orr.w r2, r2, #1024 @ 0x400
  100437. 8028d0a: 2300 movs r3, #0
  100438. 8028d0c: 6022 str r2, [r4, #0]
  100439. 8028d0e: 9303 str r3, [sp, #12]
  100440. 8028d10: ab0a add r3, sp, #40 @ 0x28
  100441. 8028d12: e9cd 9301 strd r9, r3, [sp, #4]
  100442. 8028d16: ab09 add r3, sp, #36 @ 0x24
  100443. 8028d18: 9300 str r3, [sp, #0]
  100444. 8028d1a: 6861 ldr r1, [r4, #4]
  100445. 8028d1c: f10d 0323 add.w r3, sp, #35 @ 0x23
  100446. 8028d20: 4628 mov r0, r5
  100447. 8028d22: f7ff fefb bl 8028b1c <__cvt>
  100448. 8028d26: f1ba 0f47 cmp.w sl, #71 @ 0x47
  100449. 8028d2a: 9909 ldr r1, [sp, #36] @ 0x24
  100450. 8028d2c: 4680 mov r8, r0
  100451. 8028d2e: d129 bne.n 8028d84 <_printf_float+0x14c>
  100452. 8028d30: 1cc8 adds r0, r1, #3
  100453. 8028d32: db02 blt.n 8028d3a <_printf_float+0x102>
  100454. 8028d34: 6863 ldr r3, [r4, #4]
  100455. 8028d36: 4299 cmp r1, r3
  100456. 8028d38: dd41 ble.n 8028dbe <_printf_float+0x186>
  100457. 8028d3a: f1a9 0902 sub.w r9, r9, #2
  100458. 8028d3e: fa5f f989 uxtb.w r9, r9
  100459. 8028d42: 3901 subs r1, #1
  100460. 8028d44: 464a mov r2, r9
  100461. 8028d46: f104 0050 add.w r0, r4, #80 @ 0x50
  100462. 8028d4a: 9109 str r1, [sp, #36] @ 0x24
  100463. 8028d4c: f7ff ff3a bl 8028bc4 <__exponent>
  100464. 8028d50: 9a0a ldr r2, [sp, #40] @ 0x28
  100465. 8028d52: 1813 adds r3, r2, r0
  100466. 8028d54: 2a01 cmp r2, #1
  100467. 8028d56: 4682 mov sl, r0
  100468. 8028d58: 6123 str r3, [r4, #16]
  100469. 8028d5a: dc02 bgt.n 8028d62 <_printf_float+0x12a>
  100470. 8028d5c: 6822 ldr r2, [r4, #0]
  100471. 8028d5e: 07d2 lsls r2, r2, #31
  100472. 8028d60: d501 bpl.n 8028d66 <_printf_float+0x12e>
  100473. 8028d62: 3301 adds r3, #1
  100474. 8028d64: 6123 str r3, [r4, #16]
  100475. 8028d66: f89d 3023 ldrb.w r3, [sp, #35] @ 0x23
  100476. 8028d6a: 2b00 cmp r3, #0
  100477. 8028d6c: d0a6 beq.n 8028cbc <_printf_float+0x84>
  100478. 8028d6e: 232d movs r3, #45 @ 0x2d
  100479. 8028d70: f884 3043 strb.w r3, [r4, #67] @ 0x43
  100480. 8028d74: e7a2 b.n 8028cbc <_printf_float+0x84>
  100481. 8028d76: f1ba 0f47 cmp.w sl, #71 @ 0x47
  100482. 8028d7a: d1c4 bne.n 8028d06 <_printf_float+0xce>
  100483. 8028d7c: 2b00 cmp r3, #0
  100484. 8028d7e: d1c2 bne.n 8028d06 <_printf_float+0xce>
  100485. 8028d80: 2301 movs r3, #1
  100486. 8028d82: e7bf b.n 8028d04 <_printf_float+0xcc>
  100487. 8028d84: f1b9 0f65 cmp.w r9, #101 @ 0x65
  100488. 8028d88: d9db bls.n 8028d42 <_printf_float+0x10a>
  100489. 8028d8a: f1b9 0f66 cmp.w r9, #102 @ 0x66
  100490. 8028d8e: d118 bne.n 8028dc2 <_printf_float+0x18a>
  100491. 8028d90: 2900 cmp r1, #0
  100492. 8028d92: 6863 ldr r3, [r4, #4]
  100493. 8028d94: dd0b ble.n 8028dae <_printf_float+0x176>
  100494. 8028d96: 6121 str r1, [r4, #16]
  100495. 8028d98: b913 cbnz r3, 8028da0 <_printf_float+0x168>
  100496. 8028d9a: 6822 ldr r2, [r4, #0]
  100497. 8028d9c: 07d0 lsls r0, r2, #31
  100498. 8028d9e: d502 bpl.n 8028da6 <_printf_float+0x16e>
  100499. 8028da0: 3301 adds r3, #1
  100500. 8028da2: 440b add r3, r1
  100501. 8028da4: 6123 str r3, [r4, #16]
  100502. 8028da6: 65a1 str r1, [r4, #88] @ 0x58
  100503. 8028da8: f04f 0a00 mov.w sl, #0
  100504. 8028dac: e7db b.n 8028d66 <_printf_float+0x12e>
  100505. 8028dae: b913 cbnz r3, 8028db6 <_printf_float+0x17e>
  100506. 8028db0: 6822 ldr r2, [r4, #0]
  100507. 8028db2: 07d2 lsls r2, r2, #31
  100508. 8028db4: d501 bpl.n 8028dba <_printf_float+0x182>
  100509. 8028db6: 3302 adds r3, #2
  100510. 8028db8: e7f4 b.n 8028da4 <_printf_float+0x16c>
  100511. 8028dba: 2301 movs r3, #1
  100512. 8028dbc: e7f2 b.n 8028da4 <_printf_float+0x16c>
  100513. 8028dbe: f04f 0967 mov.w r9, #103 @ 0x67
  100514. 8028dc2: 9b0a ldr r3, [sp, #40] @ 0x28
  100515. 8028dc4: 4299 cmp r1, r3
  100516. 8028dc6: db05 blt.n 8028dd4 <_printf_float+0x19c>
  100517. 8028dc8: 6823 ldr r3, [r4, #0]
  100518. 8028dca: 6121 str r1, [r4, #16]
  100519. 8028dcc: 07d8 lsls r0, r3, #31
  100520. 8028dce: d5ea bpl.n 8028da6 <_printf_float+0x16e>
  100521. 8028dd0: 1c4b adds r3, r1, #1
  100522. 8028dd2: e7e7 b.n 8028da4 <_printf_float+0x16c>
  100523. 8028dd4: 2900 cmp r1, #0
  100524. 8028dd6: bfd4 ite le
  100525. 8028dd8: f1c1 0202 rsble r2, r1, #2
  100526. 8028ddc: 2201 movgt r2, #1
  100527. 8028dde: 4413 add r3, r2
  100528. 8028de0: e7e0 b.n 8028da4 <_printf_float+0x16c>
  100529. 8028de2: 6823 ldr r3, [r4, #0]
  100530. 8028de4: 055a lsls r2, r3, #21
  100531. 8028de6: d407 bmi.n 8028df8 <_printf_float+0x1c0>
  100532. 8028de8: 6923 ldr r3, [r4, #16]
  100533. 8028dea: 4642 mov r2, r8
  100534. 8028dec: 4631 mov r1, r6
  100535. 8028dee: 4628 mov r0, r5
  100536. 8028df0: 47b8 blx r7
  100537. 8028df2: 3001 adds r0, #1
  100538. 8028df4: d12a bne.n 8028e4c <_printf_float+0x214>
  100539. 8028df6: e76b b.n 8028cd0 <_printf_float+0x98>
  100540. 8028df8: f1b9 0f65 cmp.w r9, #101 @ 0x65
  100541. 8028dfc: f240 80e0 bls.w 8028fc0 <_printf_float+0x388>
  100542. 8028e00: ed94 7b12 vldr d7, [r4, #72] @ 0x48
  100543. 8028e04: eeb5 7b40 vcmp.f64 d7, #0.0
  100544. 8028e08: eef1 fa10 vmrs APSR_nzcv, fpscr
  100545. 8028e0c: d133 bne.n 8028e76 <_printf_float+0x23e>
  100546. 8028e0e: 4a38 ldr r2, [pc, #224] @ (8028ef0 <_printf_float+0x2b8>)
  100547. 8028e10: 2301 movs r3, #1
  100548. 8028e12: 4631 mov r1, r6
  100549. 8028e14: 4628 mov r0, r5
  100550. 8028e16: 47b8 blx r7
  100551. 8028e18: 3001 adds r0, #1
  100552. 8028e1a: f43f af59 beq.w 8028cd0 <_printf_float+0x98>
  100553. 8028e1e: e9dd 3809 ldrd r3, r8, [sp, #36] @ 0x24
  100554. 8028e22: 4543 cmp r3, r8
  100555. 8028e24: db02 blt.n 8028e2c <_printf_float+0x1f4>
  100556. 8028e26: 6823 ldr r3, [r4, #0]
  100557. 8028e28: 07d8 lsls r0, r3, #31
  100558. 8028e2a: d50f bpl.n 8028e4c <_printf_float+0x214>
  100559. 8028e2c: 9b05 ldr r3, [sp, #20]
  100560. 8028e2e: 465a mov r2, fp
  100561. 8028e30: 4631 mov r1, r6
  100562. 8028e32: 4628 mov r0, r5
  100563. 8028e34: 47b8 blx r7
  100564. 8028e36: 3001 adds r0, #1
  100565. 8028e38: f43f af4a beq.w 8028cd0 <_printf_float+0x98>
  100566. 8028e3c: f04f 0900 mov.w r9, #0
  100567. 8028e40: f108 38ff add.w r8, r8, #4294967295 @ 0xffffffff
  100568. 8028e44: f104 0a1a add.w sl, r4, #26
  100569. 8028e48: 45c8 cmp r8, r9
  100570. 8028e4a: dc09 bgt.n 8028e60 <_printf_float+0x228>
  100571. 8028e4c: 6823 ldr r3, [r4, #0]
  100572. 8028e4e: 079b lsls r3, r3, #30
  100573. 8028e50: f100 8107 bmi.w 8029062 <_printf_float+0x42a>
  100574. 8028e54: 68e0 ldr r0, [r4, #12]
  100575. 8028e56: 9b0b ldr r3, [sp, #44] @ 0x2c
  100576. 8028e58: 4298 cmp r0, r3
  100577. 8028e5a: bfb8 it lt
  100578. 8028e5c: 4618 movlt r0, r3
  100579. 8028e5e: e739 b.n 8028cd4 <_printf_float+0x9c>
  100580. 8028e60: 2301 movs r3, #1
  100581. 8028e62: 4652 mov r2, sl
  100582. 8028e64: 4631 mov r1, r6
  100583. 8028e66: 4628 mov r0, r5
  100584. 8028e68: 47b8 blx r7
  100585. 8028e6a: 3001 adds r0, #1
  100586. 8028e6c: f43f af30 beq.w 8028cd0 <_printf_float+0x98>
  100587. 8028e70: f109 0901 add.w r9, r9, #1
  100588. 8028e74: e7e8 b.n 8028e48 <_printf_float+0x210>
  100589. 8028e76: 9b09 ldr r3, [sp, #36] @ 0x24
  100590. 8028e78: 2b00 cmp r3, #0
  100591. 8028e7a: dc3b bgt.n 8028ef4 <_printf_float+0x2bc>
  100592. 8028e7c: 4a1c ldr r2, [pc, #112] @ (8028ef0 <_printf_float+0x2b8>)
  100593. 8028e7e: 2301 movs r3, #1
  100594. 8028e80: 4631 mov r1, r6
  100595. 8028e82: 4628 mov r0, r5
  100596. 8028e84: 47b8 blx r7
  100597. 8028e86: 3001 adds r0, #1
  100598. 8028e88: f43f af22 beq.w 8028cd0 <_printf_float+0x98>
  100599. 8028e8c: e9dd 3909 ldrd r3, r9, [sp, #36] @ 0x24
  100600. 8028e90: ea59 0303 orrs.w r3, r9, r3
  100601. 8028e94: d102 bne.n 8028e9c <_printf_float+0x264>
  100602. 8028e96: 6823 ldr r3, [r4, #0]
  100603. 8028e98: 07d9 lsls r1, r3, #31
  100604. 8028e9a: d5d7 bpl.n 8028e4c <_printf_float+0x214>
  100605. 8028e9c: 9b05 ldr r3, [sp, #20]
  100606. 8028e9e: 465a mov r2, fp
  100607. 8028ea0: 4631 mov r1, r6
  100608. 8028ea2: 4628 mov r0, r5
  100609. 8028ea4: 47b8 blx r7
  100610. 8028ea6: 3001 adds r0, #1
  100611. 8028ea8: f43f af12 beq.w 8028cd0 <_printf_float+0x98>
  100612. 8028eac: f04f 0a00 mov.w sl, #0
  100613. 8028eb0: f104 0b1a add.w fp, r4, #26
  100614. 8028eb4: 9b09 ldr r3, [sp, #36] @ 0x24
  100615. 8028eb6: 425b negs r3, r3
  100616. 8028eb8: 4553 cmp r3, sl
  100617. 8028eba: dc01 bgt.n 8028ec0 <_printf_float+0x288>
  100618. 8028ebc: 464b mov r3, r9
  100619. 8028ebe: e794 b.n 8028dea <_printf_float+0x1b2>
  100620. 8028ec0: 2301 movs r3, #1
  100621. 8028ec2: 465a mov r2, fp
  100622. 8028ec4: 4631 mov r1, r6
  100623. 8028ec6: 4628 mov r0, r5
  100624. 8028ec8: 47b8 blx r7
  100625. 8028eca: 3001 adds r0, #1
  100626. 8028ecc: f43f af00 beq.w 8028cd0 <_printf_float+0x98>
  100627. 8028ed0: f10a 0a01 add.w sl, sl, #1
  100628. 8028ed4: e7ee b.n 8028eb4 <_printf_float+0x27c>
  100629. 8028ed6: bf00 nop
  100630. 8028ed8: ffffffff .word 0xffffffff
  100631. 8028edc: 7fefffff .word 0x7fefffff
  100632. 8028ee0: 08030981 .word 0x08030981
  100633. 8028ee4: 08030985 .word 0x08030985
  100634. 8028ee8: 08030989 .word 0x08030989
  100635. 8028eec: 0803098d .word 0x0803098d
  100636. 8028ef0: 08030991 .word 0x08030991
  100637. 8028ef4: 6da3 ldr r3, [r4, #88] @ 0x58
  100638. 8028ef6: f8dd a028 ldr.w sl, [sp, #40] @ 0x28
  100639. 8028efa: 4553 cmp r3, sl
  100640. 8028efc: bfa8 it ge
  100641. 8028efe: 4653 movge r3, sl
  100642. 8028f00: 2b00 cmp r3, #0
  100643. 8028f02: 4699 mov r9, r3
  100644. 8028f04: dc37 bgt.n 8028f76 <_printf_float+0x33e>
  100645. 8028f06: 2300 movs r3, #0
  100646. 8028f08: 9307 str r3, [sp, #28]
  100647. 8028f0a: ea29 79e9 bic.w r9, r9, r9, asr #31
  100648. 8028f0e: f104 021a add.w r2, r4, #26
  100649. 8028f12: 6da3 ldr r3, [r4, #88] @ 0x58
  100650. 8028f14: 9907 ldr r1, [sp, #28]
  100651. 8028f16: 9306 str r3, [sp, #24]
  100652. 8028f18: eba3 0309 sub.w r3, r3, r9
  100653. 8028f1c: 428b cmp r3, r1
  100654. 8028f1e: dc31 bgt.n 8028f84 <_printf_float+0x34c>
  100655. 8028f20: 9b09 ldr r3, [sp, #36] @ 0x24
  100656. 8028f22: 459a cmp sl, r3
  100657. 8028f24: dc3b bgt.n 8028f9e <_printf_float+0x366>
  100658. 8028f26: 6823 ldr r3, [r4, #0]
  100659. 8028f28: 07da lsls r2, r3, #31
  100660. 8028f2a: d438 bmi.n 8028f9e <_printf_float+0x366>
  100661. 8028f2c: 9b09 ldr r3, [sp, #36] @ 0x24
  100662. 8028f2e: ebaa 0903 sub.w r9, sl, r3
  100663. 8028f32: 9b06 ldr r3, [sp, #24]
  100664. 8028f34: ebaa 0303 sub.w r3, sl, r3
  100665. 8028f38: 4599 cmp r9, r3
  100666. 8028f3a: bfa8 it ge
  100667. 8028f3c: 4699 movge r9, r3
  100668. 8028f3e: f1b9 0f00 cmp.w r9, #0
  100669. 8028f42: dc34 bgt.n 8028fae <_printf_float+0x376>
  100670. 8028f44: f04f 0800 mov.w r8, #0
  100671. 8028f48: ea29 79e9 bic.w r9, r9, r9, asr #31
  100672. 8028f4c: f104 0b1a add.w fp, r4, #26
  100673. 8028f50: 9b09 ldr r3, [sp, #36] @ 0x24
  100674. 8028f52: ebaa 0303 sub.w r3, sl, r3
  100675. 8028f56: eba3 0309 sub.w r3, r3, r9
  100676. 8028f5a: 4543 cmp r3, r8
  100677. 8028f5c: f77f af76 ble.w 8028e4c <_printf_float+0x214>
  100678. 8028f60: 2301 movs r3, #1
  100679. 8028f62: 465a mov r2, fp
  100680. 8028f64: 4631 mov r1, r6
  100681. 8028f66: 4628 mov r0, r5
  100682. 8028f68: 47b8 blx r7
  100683. 8028f6a: 3001 adds r0, #1
  100684. 8028f6c: f43f aeb0 beq.w 8028cd0 <_printf_float+0x98>
  100685. 8028f70: f108 0801 add.w r8, r8, #1
  100686. 8028f74: e7ec b.n 8028f50 <_printf_float+0x318>
  100687. 8028f76: 4642 mov r2, r8
  100688. 8028f78: 4631 mov r1, r6
  100689. 8028f7a: 4628 mov r0, r5
  100690. 8028f7c: 47b8 blx r7
  100691. 8028f7e: 3001 adds r0, #1
  100692. 8028f80: d1c1 bne.n 8028f06 <_printf_float+0x2ce>
  100693. 8028f82: e6a5 b.n 8028cd0 <_printf_float+0x98>
  100694. 8028f84: 2301 movs r3, #1
  100695. 8028f86: 4631 mov r1, r6
  100696. 8028f88: 4628 mov r0, r5
  100697. 8028f8a: 9206 str r2, [sp, #24]
  100698. 8028f8c: 47b8 blx r7
  100699. 8028f8e: 3001 adds r0, #1
  100700. 8028f90: f43f ae9e beq.w 8028cd0 <_printf_float+0x98>
  100701. 8028f94: 9b07 ldr r3, [sp, #28]
  100702. 8028f96: 9a06 ldr r2, [sp, #24]
  100703. 8028f98: 3301 adds r3, #1
  100704. 8028f9a: 9307 str r3, [sp, #28]
  100705. 8028f9c: e7b9 b.n 8028f12 <_printf_float+0x2da>
  100706. 8028f9e: 9b05 ldr r3, [sp, #20]
  100707. 8028fa0: 465a mov r2, fp
  100708. 8028fa2: 4631 mov r1, r6
  100709. 8028fa4: 4628 mov r0, r5
  100710. 8028fa6: 47b8 blx r7
  100711. 8028fa8: 3001 adds r0, #1
  100712. 8028faa: d1bf bne.n 8028f2c <_printf_float+0x2f4>
  100713. 8028fac: e690 b.n 8028cd0 <_printf_float+0x98>
  100714. 8028fae: 9a06 ldr r2, [sp, #24]
  100715. 8028fb0: 464b mov r3, r9
  100716. 8028fb2: 4442 add r2, r8
  100717. 8028fb4: 4631 mov r1, r6
  100718. 8028fb6: 4628 mov r0, r5
  100719. 8028fb8: 47b8 blx r7
  100720. 8028fba: 3001 adds r0, #1
  100721. 8028fbc: d1c2 bne.n 8028f44 <_printf_float+0x30c>
  100722. 8028fbe: e687 b.n 8028cd0 <_printf_float+0x98>
  100723. 8028fc0: f8dd 9028 ldr.w r9, [sp, #40] @ 0x28
  100724. 8028fc4: f1b9 0f01 cmp.w r9, #1
  100725. 8028fc8: dc01 bgt.n 8028fce <_printf_float+0x396>
  100726. 8028fca: 07db lsls r3, r3, #31
  100727. 8028fcc: d536 bpl.n 802903c <_printf_float+0x404>
  100728. 8028fce: 2301 movs r3, #1
  100729. 8028fd0: 4642 mov r2, r8
  100730. 8028fd2: 4631 mov r1, r6
  100731. 8028fd4: 4628 mov r0, r5
  100732. 8028fd6: 47b8 blx r7
  100733. 8028fd8: 3001 adds r0, #1
  100734. 8028fda: f43f ae79 beq.w 8028cd0 <_printf_float+0x98>
  100735. 8028fde: 9b05 ldr r3, [sp, #20]
  100736. 8028fe0: 465a mov r2, fp
  100737. 8028fe2: 4631 mov r1, r6
  100738. 8028fe4: 4628 mov r0, r5
  100739. 8028fe6: 47b8 blx r7
  100740. 8028fe8: 3001 adds r0, #1
  100741. 8028fea: f43f ae71 beq.w 8028cd0 <_printf_float+0x98>
  100742. 8028fee: ed94 7b12 vldr d7, [r4, #72] @ 0x48
  100743. 8028ff2: eeb5 7b40 vcmp.f64 d7, #0.0
  100744. 8028ff6: eef1 fa10 vmrs APSR_nzcv, fpscr
  100745. 8028ffa: f109 39ff add.w r9, r9, #4294967295 @ 0xffffffff
  100746. 8028ffe: d018 beq.n 8029032 <_printf_float+0x3fa>
  100747. 8029000: 464b mov r3, r9
  100748. 8029002: f108 0201 add.w r2, r8, #1
  100749. 8029006: 4631 mov r1, r6
  100750. 8029008: 4628 mov r0, r5
  100751. 802900a: 47b8 blx r7
  100752. 802900c: 3001 adds r0, #1
  100753. 802900e: d10c bne.n 802902a <_printf_float+0x3f2>
  100754. 8029010: e65e b.n 8028cd0 <_printf_float+0x98>
  100755. 8029012: 2301 movs r3, #1
  100756. 8029014: 465a mov r2, fp
  100757. 8029016: 4631 mov r1, r6
  100758. 8029018: 4628 mov r0, r5
  100759. 802901a: 47b8 blx r7
  100760. 802901c: 3001 adds r0, #1
  100761. 802901e: f43f ae57 beq.w 8028cd0 <_printf_float+0x98>
  100762. 8029022: f108 0801 add.w r8, r8, #1
  100763. 8029026: 45c8 cmp r8, r9
  100764. 8029028: dbf3 blt.n 8029012 <_printf_float+0x3da>
  100765. 802902a: 4653 mov r3, sl
  100766. 802902c: f104 0250 add.w r2, r4, #80 @ 0x50
  100767. 8029030: e6dc b.n 8028dec <_printf_float+0x1b4>
  100768. 8029032: f04f 0800 mov.w r8, #0
  100769. 8029036: f104 0b1a add.w fp, r4, #26
  100770. 802903a: e7f4 b.n 8029026 <_printf_float+0x3ee>
  100771. 802903c: 2301 movs r3, #1
  100772. 802903e: 4642 mov r2, r8
  100773. 8029040: e7e1 b.n 8029006 <_printf_float+0x3ce>
  100774. 8029042: 2301 movs r3, #1
  100775. 8029044: 464a mov r2, r9
  100776. 8029046: 4631 mov r1, r6
  100777. 8029048: 4628 mov r0, r5
  100778. 802904a: 47b8 blx r7
  100779. 802904c: 3001 adds r0, #1
  100780. 802904e: f43f ae3f beq.w 8028cd0 <_printf_float+0x98>
  100781. 8029052: f108 0801 add.w r8, r8, #1
  100782. 8029056: 68e3 ldr r3, [r4, #12]
  100783. 8029058: 990b ldr r1, [sp, #44] @ 0x2c
  100784. 802905a: 1a5b subs r3, r3, r1
  100785. 802905c: 4543 cmp r3, r8
  100786. 802905e: dcf0 bgt.n 8029042 <_printf_float+0x40a>
  100787. 8029060: e6f8 b.n 8028e54 <_printf_float+0x21c>
  100788. 8029062: f04f 0800 mov.w r8, #0
  100789. 8029066: f104 0919 add.w r9, r4, #25
  100790. 802906a: e7f4 b.n 8029056 <_printf_float+0x41e>
  100791. 0802906c <_printf_common>:
  100792. 802906c: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  100793. 8029070: 4616 mov r6, r2
  100794. 8029072: 4698 mov r8, r3
  100795. 8029074: 688a ldr r2, [r1, #8]
  100796. 8029076: 690b ldr r3, [r1, #16]
  100797. 8029078: f8dd 9020 ldr.w r9, [sp, #32]
  100798. 802907c: 4293 cmp r3, r2
  100799. 802907e: bfb8 it lt
  100800. 8029080: 4613 movlt r3, r2
  100801. 8029082: 6033 str r3, [r6, #0]
  100802. 8029084: f891 2043 ldrb.w r2, [r1, #67] @ 0x43
  100803. 8029088: 4607 mov r7, r0
  100804. 802908a: 460c mov r4, r1
  100805. 802908c: b10a cbz r2, 8029092 <_printf_common+0x26>
  100806. 802908e: 3301 adds r3, #1
  100807. 8029090: 6033 str r3, [r6, #0]
  100808. 8029092: 6823 ldr r3, [r4, #0]
  100809. 8029094: 0699 lsls r1, r3, #26
  100810. 8029096: bf42 ittt mi
  100811. 8029098: 6833 ldrmi r3, [r6, #0]
  100812. 802909a: 3302 addmi r3, #2
  100813. 802909c: 6033 strmi r3, [r6, #0]
  100814. 802909e: 6825 ldr r5, [r4, #0]
  100815. 80290a0: f015 0506 ands.w r5, r5, #6
  100816. 80290a4: d106 bne.n 80290b4 <_printf_common+0x48>
  100817. 80290a6: f104 0a19 add.w sl, r4, #25
  100818. 80290aa: 68e3 ldr r3, [r4, #12]
  100819. 80290ac: 6832 ldr r2, [r6, #0]
  100820. 80290ae: 1a9b subs r3, r3, r2
  100821. 80290b0: 42ab cmp r3, r5
  100822. 80290b2: dc26 bgt.n 8029102 <_printf_common+0x96>
  100823. 80290b4: f894 3043 ldrb.w r3, [r4, #67] @ 0x43
  100824. 80290b8: 6822 ldr r2, [r4, #0]
  100825. 80290ba: 3b00 subs r3, #0
  100826. 80290bc: bf18 it ne
  100827. 80290be: 2301 movne r3, #1
  100828. 80290c0: 0692 lsls r2, r2, #26
  100829. 80290c2: d42b bmi.n 802911c <_printf_common+0xb0>
  100830. 80290c4: f104 0243 add.w r2, r4, #67 @ 0x43
  100831. 80290c8: 4641 mov r1, r8
  100832. 80290ca: 4638 mov r0, r7
  100833. 80290cc: 47c8 blx r9
  100834. 80290ce: 3001 adds r0, #1
  100835. 80290d0: d01e beq.n 8029110 <_printf_common+0xa4>
  100836. 80290d2: 6823 ldr r3, [r4, #0]
  100837. 80290d4: 6922 ldr r2, [r4, #16]
  100838. 80290d6: f003 0306 and.w r3, r3, #6
  100839. 80290da: 2b04 cmp r3, #4
  100840. 80290dc: bf02 ittt eq
  100841. 80290de: 68e5 ldreq r5, [r4, #12]
  100842. 80290e0: 6833 ldreq r3, [r6, #0]
  100843. 80290e2: 1aed subeq r5, r5, r3
  100844. 80290e4: 68a3 ldr r3, [r4, #8]
  100845. 80290e6: bf0c ite eq
  100846. 80290e8: ea25 75e5 biceq.w r5, r5, r5, asr #31
  100847. 80290ec: 2500 movne r5, #0
  100848. 80290ee: 4293 cmp r3, r2
  100849. 80290f0: bfc4 itt gt
  100850. 80290f2: 1a9b subgt r3, r3, r2
  100851. 80290f4: 18ed addgt r5, r5, r3
  100852. 80290f6: 2600 movs r6, #0
  100853. 80290f8: 341a adds r4, #26
  100854. 80290fa: 42b5 cmp r5, r6
  100855. 80290fc: d11a bne.n 8029134 <_printf_common+0xc8>
  100856. 80290fe: 2000 movs r0, #0
  100857. 8029100: e008 b.n 8029114 <_printf_common+0xa8>
  100858. 8029102: 2301 movs r3, #1
  100859. 8029104: 4652 mov r2, sl
  100860. 8029106: 4641 mov r1, r8
  100861. 8029108: 4638 mov r0, r7
  100862. 802910a: 47c8 blx r9
  100863. 802910c: 3001 adds r0, #1
  100864. 802910e: d103 bne.n 8029118 <_printf_common+0xac>
  100865. 8029110: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  100866. 8029114: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  100867. 8029118: 3501 adds r5, #1
  100868. 802911a: e7c6 b.n 80290aa <_printf_common+0x3e>
  100869. 802911c: 18e1 adds r1, r4, r3
  100870. 802911e: 1c5a adds r2, r3, #1
  100871. 8029120: 2030 movs r0, #48 @ 0x30
  100872. 8029122: f881 0043 strb.w r0, [r1, #67] @ 0x43
  100873. 8029126: 4422 add r2, r4
  100874. 8029128: f894 1045 ldrb.w r1, [r4, #69] @ 0x45
  100875. 802912c: f882 1043 strb.w r1, [r2, #67] @ 0x43
  100876. 8029130: 3302 adds r3, #2
  100877. 8029132: e7c7 b.n 80290c4 <_printf_common+0x58>
  100878. 8029134: 2301 movs r3, #1
  100879. 8029136: 4622 mov r2, r4
  100880. 8029138: 4641 mov r1, r8
  100881. 802913a: 4638 mov r0, r7
  100882. 802913c: 47c8 blx r9
  100883. 802913e: 3001 adds r0, #1
  100884. 8029140: d0e6 beq.n 8029110 <_printf_common+0xa4>
  100885. 8029142: 3601 adds r6, #1
  100886. 8029144: e7d9 b.n 80290fa <_printf_common+0x8e>
  100887. ...
  100888. 08029148 <_printf_i>:
  100889. 8029148: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr}
  100890. 802914c: 7e0f ldrb r7, [r1, #24]
  100891. 802914e: 9e0c ldr r6, [sp, #48] @ 0x30
  100892. 8029150: 2f78 cmp r7, #120 @ 0x78
  100893. 8029152: 4691 mov r9, r2
  100894. 8029154: 4680 mov r8, r0
  100895. 8029156: 460c mov r4, r1
  100896. 8029158: 469a mov sl, r3
  100897. 802915a: f101 0243 add.w r2, r1, #67 @ 0x43
  100898. 802915e: d807 bhi.n 8029170 <_printf_i+0x28>
  100899. 8029160: 2f62 cmp r7, #98 @ 0x62
  100900. 8029162: d80a bhi.n 802917a <_printf_i+0x32>
  100901. 8029164: 2f00 cmp r7, #0
  100902. 8029166: f000 80d2 beq.w 802930e <_printf_i+0x1c6>
  100903. 802916a: 2f58 cmp r7, #88 @ 0x58
  100904. 802916c: f000 80b9 beq.w 80292e2 <_printf_i+0x19a>
  100905. 8029170: f104 0642 add.w r6, r4, #66 @ 0x42
  100906. 8029174: f884 7042 strb.w r7, [r4, #66] @ 0x42
  100907. 8029178: e03a b.n 80291f0 <_printf_i+0xa8>
  100908. 802917a: f1a7 0363 sub.w r3, r7, #99 @ 0x63
  100909. 802917e: 2b15 cmp r3, #21
  100910. 8029180: d8f6 bhi.n 8029170 <_printf_i+0x28>
  100911. 8029182: a101 add r1, pc, #4 @ (adr r1, 8029188 <_printf_i+0x40>)
  100912. 8029184: f851 f023 ldr.w pc, [r1, r3, lsl #2]
  100913. 8029188: 080291e1 .word 0x080291e1
  100914. 802918c: 080291f5 .word 0x080291f5
  100915. 8029190: 08029171 .word 0x08029171
  100916. 8029194: 08029171 .word 0x08029171
  100917. 8029198: 08029171 .word 0x08029171
  100918. 802919c: 08029171 .word 0x08029171
  100919. 80291a0: 080291f5 .word 0x080291f5
  100920. 80291a4: 08029171 .word 0x08029171
  100921. 80291a8: 08029171 .word 0x08029171
  100922. 80291ac: 08029171 .word 0x08029171
  100923. 80291b0: 08029171 .word 0x08029171
  100924. 80291b4: 080292f5 .word 0x080292f5
  100925. 80291b8: 0802921f .word 0x0802921f
  100926. 80291bc: 080292af .word 0x080292af
  100927. 80291c0: 08029171 .word 0x08029171
  100928. 80291c4: 08029171 .word 0x08029171
  100929. 80291c8: 08029317 .word 0x08029317
  100930. 80291cc: 08029171 .word 0x08029171
  100931. 80291d0: 0802921f .word 0x0802921f
  100932. 80291d4: 08029171 .word 0x08029171
  100933. 80291d8: 08029171 .word 0x08029171
  100934. 80291dc: 080292b7 .word 0x080292b7
  100935. 80291e0: 6833 ldr r3, [r6, #0]
  100936. 80291e2: 1d1a adds r2, r3, #4
  100937. 80291e4: 681b ldr r3, [r3, #0]
  100938. 80291e6: 6032 str r2, [r6, #0]
  100939. 80291e8: f104 0642 add.w r6, r4, #66 @ 0x42
  100940. 80291ec: f884 3042 strb.w r3, [r4, #66] @ 0x42
  100941. 80291f0: 2301 movs r3, #1
  100942. 80291f2: e09d b.n 8029330 <_printf_i+0x1e8>
  100943. 80291f4: 6833 ldr r3, [r6, #0]
  100944. 80291f6: 6820 ldr r0, [r4, #0]
  100945. 80291f8: 1d19 adds r1, r3, #4
  100946. 80291fa: 6031 str r1, [r6, #0]
  100947. 80291fc: 0606 lsls r6, r0, #24
  100948. 80291fe: d501 bpl.n 8029204 <_printf_i+0xbc>
  100949. 8029200: 681d ldr r5, [r3, #0]
  100950. 8029202: e003 b.n 802920c <_printf_i+0xc4>
  100951. 8029204: 0645 lsls r5, r0, #25
  100952. 8029206: d5fb bpl.n 8029200 <_printf_i+0xb8>
  100953. 8029208: f9b3 5000 ldrsh.w r5, [r3]
  100954. 802920c: 2d00 cmp r5, #0
  100955. 802920e: da03 bge.n 8029218 <_printf_i+0xd0>
  100956. 8029210: 232d movs r3, #45 @ 0x2d
  100957. 8029212: 426d negs r5, r5
  100958. 8029214: f884 3043 strb.w r3, [r4, #67] @ 0x43
  100959. 8029218: 4859 ldr r0, [pc, #356] @ (8029380 <_printf_i+0x238>)
  100960. 802921a: 230a movs r3, #10
  100961. 802921c: e011 b.n 8029242 <_printf_i+0xfa>
  100962. 802921e: 6821 ldr r1, [r4, #0]
  100963. 8029220: 6833 ldr r3, [r6, #0]
  100964. 8029222: 0608 lsls r0, r1, #24
  100965. 8029224: f853 5b04 ldr.w r5, [r3], #4
  100966. 8029228: d402 bmi.n 8029230 <_printf_i+0xe8>
  100967. 802922a: 0649 lsls r1, r1, #25
  100968. 802922c: bf48 it mi
  100969. 802922e: b2ad uxthmi r5, r5
  100970. 8029230: 2f6f cmp r7, #111 @ 0x6f
  100971. 8029232: 4853 ldr r0, [pc, #332] @ (8029380 <_printf_i+0x238>)
  100972. 8029234: 6033 str r3, [r6, #0]
  100973. 8029236: bf14 ite ne
  100974. 8029238: 230a movne r3, #10
  100975. 802923a: 2308 moveq r3, #8
  100976. 802923c: 2100 movs r1, #0
  100977. 802923e: f884 1043 strb.w r1, [r4, #67] @ 0x43
  100978. 8029242: 6866 ldr r6, [r4, #4]
  100979. 8029244: 60a6 str r6, [r4, #8]
  100980. 8029246: 2e00 cmp r6, #0
  100981. 8029248: bfa2 ittt ge
  100982. 802924a: 6821 ldrge r1, [r4, #0]
  100983. 802924c: f021 0104 bicge.w r1, r1, #4
  100984. 8029250: 6021 strge r1, [r4, #0]
  100985. 8029252: b90d cbnz r5, 8029258 <_printf_i+0x110>
  100986. 8029254: 2e00 cmp r6, #0
  100987. 8029256: d04b beq.n 80292f0 <_printf_i+0x1a8>
  100988. 8029258: 4616 mov r6, r2
  100989. 802925a: fbb5 f1f3 udiv r1, r5, r3
  100990. 802925e: fb03 5711 mls r7, r3, r1, r5
  100991. 8029262: 5dc7 ldrb r7, [r0, r7]
  100992. 8029264: f806 7d01 strb.w r7, [r6, #-1]!
  100993. 8029268: 462f mov r7, r5
  100994. 802926a: 42bb cmp r3, r7
  100995. 802926c: 460d mov r5, r1
  100996. 802926e: d9f4 bls.n 802925a <_printf_i+0x112>
  100997. 8029270: 2b08 cmp r3, #8
  100998. 8029272: d10b bne.n 802928c <_printf_i+0x144>
  100999. 8029274: 6823 ldr r3, [r4, #0]
  101000. 8029276: 07df lsls r7, r3, #31
  101001. 8029278: d508 bpl.n 802928c <_printf_i+0x144>
  101002. 802927a: 6923 ldr r3, [r4, #16]
  101003. 802927c: 6861 ldr r1, [r4, #4]
  101004. 802927e: 4299 cmp r1, r3
  101005. 8029280: bfde ittt le
  101006. 8029282: 2330 movle r3, #48 @ 0x30
  101007. 8029284: f806 3c01 strble.w r3, [r6, #-1]
  101008. 8029288: f106 36ff addle.w r6, r6, #4294967295 @ 0xffffffff
  101009. 802928c: 1b92 subs r2, r2, r6
  101010. 802928e: 6122 str r2, [r4, #16]
  101011. 8029290: f8cd a000 str.w sl, [sp]
  101012. 8029294: 464b mov r3, r9
  101013. 8029296: aa03 add r2, sp, #12
  101014. 8029298: 4621 mov r1, r4
  101015. 802929a: 4640 mov r0, r8
  101016. 802929c: f7ff fee6 bl 802906c <_printf_common>
  101017. 80292a0: 3001 adds r0, #1
  101018. 80292a2: d14a bne.n 802933a <_printf_i+0x1f2>
  101019. 80292a4: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  101020. 80292a8: b004 add sp, #16
  101021. 80292aa: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  101022. 80292ae: 6823 ldr r3, [r4, #0]
  101023. 80292b0: f043 0320 orr.w r3, r3, #32
  101024. 80292b4: 6023 str r3, [r4, #0]
  101025. 80292b6: 4833 ldr r0, [pc, #204] @ (8029384 <_printf_i+0x23c>)
  101026. 80292b8: 2778 movs r7, #120 @ 0x78
  101027. 80292ba: f884 7045 strb.w r7, [r4, #69] @ 0x45
  101028. 80292be: 6823 ldr r3, [r4, #0]
  101029. 80292c0: 6831 ldr r1, [r6, #0]
  101030. 80292c2: 061f lsls r7, r3, #24
  101031. 80292c4: f851 5b04 ldr.w r5, [r1], #4
  101032. 80292c8: d402 bmi.n 80292d0 <_printf_i+0x188>
  101033. 80292ca: 065f lsls r7, r3, #25
  101034. 80292cc: bf48 it mi
  101035. 80292ce: b2ad uxthmi r5, r5
  101036. 80292d0: 6031 str r1, [r6, #0]
  101037. 80292d2: 07d9 lsls r1, r3, #31
  101038. 80292d4: bf44 itt mi
  101039. 80292d6: f043 0320 orrmi.w r3, r3, #32
  101040. 80292da: 6023 strmi r3, [r4, #0]
  101041. 80292dc: b11d cbz r5, 80292e6 <_printf_i+0x19e>
  101042. 80292de: 2310 movs r3, #16
  101043. 80292e0: e7ac b.n 802923c <_printf_i+0xf4>
  101044. 80292e2: 4827 ldr r0, [pc, #156] @ (8029380 <_printf_i+0x238>)
  101045. 80292e4: e7e9 b.n 80292ba <_printf_i+0x172>
  101046. 80292e6: 6823 ldr r3, [r4, #0]
  101047. 80292e8: f023 0320 bic.w r3, r3, #32
  101048. 80292ec: 6023 str r3, [r4, #0]
  101049. 80292ee: e7f6 b.n 80292de <_printf_i+0x196>
  101050. 80292f0: 4616 mov r6, r2
  101051. 80292f2: e7bd b.n 8029270 <_printf_i+0x128>
  101052. 80292f4: 6833 ldr r3, [r6, #0]
  101053. 80292f6: 6825 ldr r5, [r4, #0]
  101054. 80292f8: 6961 ldr r1, [r4, #20]
  101055. 80292fa: 1d18 adds r0, r3, #4
  101056. 80292fc: 6030 str r0, [r6, #0]
  101057. 80292fe: 062e lsls r6, r5, #24
  101058. 8029300: 681b ldr r3, [r3, #0]
  101059. 8029302: d501 bpl.n 8029308 <_printf_i+0x1c0>
  101060. 8029304: 6019 str r1, [r3, #0]
  101061. 8029306: e002 b.n 802930e <_printf_i+0x1c6>
  101062. 8029308: 0668 lsls r0, r5, #25
  101063. 802930a: d5fb bpl.n 8029304 <_printf_i+0x1bc>
  101064. 802930c: 8019 strh r1, [r3, #0]
  101065. 802930e: 2300 movs r3, #0
  101066. 8029310: 6123 str r3, [r4, #16]
  101067. 8029312: 4616 mov r6, r2
  101068. 8029314: e7bc b.n 8029290 <_printf_i+0x148>
  101069. 8029316: 6833 ldr r3, [r6, #0]
  101070. 8029318: 1d1a adds r2, r3, #4
  101071. 802931a: 6032 str r2, [r6, #0]
  101072. 802931c: 681e ldr r6, [r3, #0]
  101073. 802931e: 6862 ldr r2, [r4, #4]
  101074. 8029320: 2100 movs r1, #0
  101075. 8029322: 4630 mov r0, r6
  101076. 8029324: f7d6 ffec bl 8000300 <memchr>
  101077. 8029328: b108 cbz r0, 802932e <_printf_i+0x1e6>
  101078. 802932a: 1b80 subs r0, r0, r6
  101079. 802932c: 6060 str r0, [r4, #4]
  101080. 802932e: 6863 ldr r3, [r4, #4]
  101081. 8029330: 6123 str r3, [r4, #16]
  101082. 8029332: 2300 movs r3, #0
  101083. 8029334: f884 3043 strb.w r3, [r4, #67] @ 0x43
  101084. 8029338: e7aa b.n 8029290 <_printf_i+0x148>
  101085. 802933a: 6923 ldr r3, [r4, #16]
  101086. 802933c: 4632 mov r2, r6
  101087. 802933e: 4649 mov r1, r9
  101088. 8029340: 4640 mov r0, r8
  101089. 8029342: 47d0 blx sl
  101090. 8029344: 3001 adds r0, #1
  101091. 8029346: d0ad beq.n 80292a4 <_printf_i+0x15c>
  101092. 8029348: 6823 ldr r3, [r4, #0]
  101093. 802934a: 079b lsls r3, r3, #30
  101094. 802934c: d413 bmi.n 8029376 <_printf_i+0x22e>
  101095. 802934e: 68e0 ldr r0, [r4, #12]
  101096. 8029350: 9b03 ldr r3, [sp, #12]
  101097. 8029352: 4298 cmp r0, r3
  101098. 8029354: bfb8 it lt
  101099. 8029356: 4618 movlt r0, r3
  101100. 8029358: e7a6 b.n 80292a8 <_printf_i+0x160>
  101101. 802935a: 2301 movs r3, #1
  101102. 802935c: 4632 mov r2, r6
  101103. 802935e: 4649 mov r1, r9
  101104. 8029360: 4640 mov r0, r8
  101105. 8029362: 47d0 blx sl
  101106. 8029364: 3001 adds r0, #1
  101107. 8029366: d09d beq.n 80292a4 <_printf_i+0x15c>
  101108. 8029368: 3501 adds r5, #1
  101109. 802936a: 68e3 ldr r3, [r4, #12]
  101110. 802936c: 9903 ldr r1, [sp, #12]
  101111. 802936e: 1a5b subs r3, r3, r1
  101112. 8029370: 42ab cmp r3, r5
  101113. 8029372: dcf2 bgt.n 802935a <_printf_i+0x212>
  101114. 8029374: e7eb b.n 802934e <_printf_i+0x206>
  101115. 8029376: 2500 movs r5, #0
  101116. 8029378: f104 0619 add.w r6, r4, #25
  101117. 802937c: e7f5 b.n 802936a <_printf_i+0x222>
  101118. 802937e: bf00 nop
  101119. 8029380: 08030993 .word 0x08030993
  101120. 8029384: 080309a4 .word 0x080309a4
  101121. 08029388 <std>:
  101122. 8029388: 2300 movs r3, #0
  101123. 802938a: b510 push {r4, lr}
  101124. 802938c: 4604 mov r4, r0
  101125. 802938e: e9c0 3300 strd r3, r3, [r0]
  101126. 8029392: e9c0 3304 strd r3, r3, [r0, #16]
  101127. 8029396: 6083 str r3, [r0, #8]
  101128. 8029398: 8181 strh r1, [r0, #12]
  101129. 802939a: 6643 str r3, [r0, #100] @ 0x64
  101130. 802939c: 81c2 strh r2, [r0, #14]
  101131. 802939e: 6183 str r3, [r0, #24]
  101132. 80293a0: 4619 mov r1, r3
  101133. 80293a2: 2208 movs r2, #8
  101134. 80293a4: 305c adds r0, #92 @ 0x5c
  101135. 80293a6: f000 fa43 bl 8029830 <memset>
  101136. 80293aa: 4b0d ldr r3, [pc, #52] @ (80293e0 <std+0x58>)
  101137. 80293ac: 6263 str r3, [r4, #36] @ 0x24
  101138. 80293ae: 4b0d ldr r3, [pc, #52] @ (80293e4 <std+0x5c>)
  101139. 80293b0: 62a3 str r3, [r4, #40] @ 0x28
  101140. 80293b2: 4b0d ldr r3, [pc, #52] @ (80293e8 <std+0x60>)
  101141. 80293b4: 62e3 str r3, [r4, #44] @ 0x2c
  101142. 80293b6: 4b0d ldr r3, [pc, #52] @ (80293ec <std+0x64>)
  101143. 80293b8: 6323 str r3, [r4, #48] @ 0x30
  101144. 80293ba: 4b0d ldr r3, [pc, #52] @ (80293f0 <std+0x68>)
  101145. 80293bc: 6224 str r4, [r4, #32]
  101146. 80293be: 429c cmp r4, r3
  101147. 80293c0: d006 beq.n 80293d0 <std+0x48>
  101148. 80293c2: f103 0268 add.w r2, r3, #104 @ 0x68
  101149. 80293c6: 4294 cmp r4, r2
  101150. 80293c8: d002 beq.n 80293d0 <std+0x48>
  101151. 80293ca: 33d0 adds r3, #208 @ 0xd0
  101152. 80293cc: 429c cmp r4, r3
  101153. 80293ce: d105 bne.n 80293dc <std+0x54>
  101154. 80293d0: f104 0058 add.w r0, r4, #88 @ 0x58
  101155. 80293d4: e8bd 4010 ldmia.w sp!, {r4, lr}
  101156. 80293d8: f000 bb1e b.w 8029a18 <__retarget_lock_init_recursive>
  101157. 80293dc: bd10 pop {r4, pc}
  101158. 80293de: bf00 nop
  101159. 80293e0: 0802962d .word 0x0802962d
  101160. 80293e4: 0802964f .word 0x0802964f
  101161. 80293e8: 08029687 .word 0x08029687
  101162. 80293ec: 080296ab .word 0x080296ab
  101163. 80293f0: 2402a1a8 .word 0x2402a1a8
  101164. 080293f4 <stdio_exit_handler>:
  101165. 80293f4: 4a02 ldr r2, [pc, #8] @ (8029400 <stdio_exit_handler+0xc>)
  101166. 80293f6: 4903 ldr r1, [pc, #12] @ (8029404 <stdio_exit_handler+0x10>)
  101167. 80293f8: 4803 ldr r0, [pc, #12] @ (8029408 <stdio_exit_handler+0x14>)
  101168. 80293fa: f000 b869 b.w 80294d0 <_fwalk_sglue>
  101169. 80293fe: bf00 nop
  101170. 8029400: 24000048 .word 0x24000048
  101171. 8029404: 0802bd3d .word 0x0802bd3d
  101172. 8029408: 240001c4 .word 0x240001c4
  101173. 0802940c <cleanup_stdio>:
  101174. 802940c: 6841 ldr r1, [r0, #4]
  101175. 802940e: 4b0c ldr r3, [pc, #48] @ (8029440 <cleanup_stdio+0x34>)
  101176. 8029410: 4299 cmp r1, r3
  101177. 8029412: b510 push {r4, lr}
  101178. 8029414: 4604 mov r4, r0
  101179. 8029416: d001 beq.n 802941c <cleanup_stdio+0x10>
  101180. 8029418: f002 fc90 bl 802bd3c <_fflush_r>
  101181. 802941c: 68a1 ldr r1, [r4, #8]
  101182. 802941e: 4b09 ldr r3, [pc, #36] @ (8029444 <cleanup_stdio+0x38>)
  101183. 8029420: 4299 cmp r1, r3
  101184. 8029422: d002 beq.n 802942a <cleanup_stdio+0x1e>
  101185. 8029424: 4620 mov r0, r4
  101186. 8029426: f002 fc89 bl 802bd3c <_fflush_r>
  101187. 802942a: 68e1 ldr r1, [r4, #12]
  101188. 802942c: 4b06 ldr r3, [pc, #24] @ (8029448 <cleanup_stdio+0x3c>)
  101189. 802942e: 4299 cmp r1, r3
  101190. 8029430: d004 beq.n 802943c <cleanup_stdio+0x30>
  101191. 8029432: 4620 mov r0, r4
  101192. 8029434: e8bd 4010 ldmia.w sp!, {r4, lr}
  101193. 8029438: f002 bc80 b.w 802bd3c <_fflush_r>
  101194. 802943c: bd10 pop {r4, pc}
  101195. 802943e: bf00 nop
  101196. 8029440: 2402a1a8 .word 0x2402a1a8
  101197. 8029444: 2402a210 .word 0x2402a210
  101198. 8029448: 2402a278 .word 0x2402a278
  101199. 0802944c <global_stdio_init.part.0>:
  101200. 802944c: b510 push {r4, lr}
  101201. 802944e: 4b0b ldr r3, [pc, #44] @ (802947c <global_stdio_init.part.0+0x30>)
  101202. 8029450: 4c0b ldr r4, [pc, #44] @ (8029480 <global_stdio_init.part.0+0x34>)
  101203. 8029452: 4a0c ldr r2, [pc, #48] @ (8029484 <global_stdio_init.part.0+0x38>)
  101204. 8029454: 601a str r2, [r3, #0]
  101205. 8029456: 4620 mov r0, r4
  101206. 8029458: 2200 movs r2, #0
  101207. 802945a: 2104 movs r1, #4
  101208. 802945c: f7ff ff94 bl 8029388 <std>
  101209. 8029460: f104 0068 add.w r0, r4, #104 @ 0x68
  101210. 8029464: 2201 movs r2, #1
  101211. 8029466: 2109 movs r1, #9
  101212. 8029468: f7ff ff8e bl 8029388 <std>
  101213. 802946c: f104 00d0 add.w r0, r4, #208 @ 0xd0
  101214. 8029470: 2202 movs r2, #2
  101215. 8029472: e8bd 4010 ldmia.w sp!, {r4, lr}
  101216. 8029476: 2112 movs r1, #18
  101217. 8029478: f7ff bf86 b.w 8029388 <std>
  101218. 802947c: 2402a2e0 .word 0x2402a2e0
  101219. 8029480: 2402a1a8 .word 0x2402a1a8
  101220. 8029484: 080293f5 .word 0x080293f5
  101221. 08029488 <__sfp_lock_acquire>:
  101222. 8029488: 4801 ldr r0, [pc, #4] @ (8029490 <__sfp_lock_acquire+0x8>)
  101223. 802948a: f000 bac6 b.w 8029a1a <__retarget_lock_acquire_recursive>
  101224. 802948e: bf00 nop
  101225. 8029490: 2402a2e9 .word 0x2402a2e9
  101226. 08029494 <__sfp_lock_release>:
  101227. 8029494: 4801 ldr r0, [pc, #4] @ (802949c <__sfp_lock_release+0x8>)
  101228. 8029496: f000 bac1 b.w 8029a1c <__retarget_lock_release_recursive>
  101229. 802949a: bf00 nop
  101230. 802949c: 2402a2e9 .word 0x2402a2e9
  101231. 080294a0 <__sinit>:
  101232. 80294a0: b510 push {r4, lr}
  101233. 80294a2: 4604 mov r4, r0
  101234. 80294a4: f7ff fff0 bl 8029488 <__sfp_lock_acquire>
  101235. 80294a8: 6a23 ldr r3, [r4, #32]
  101236. 80294aa: b11b cbz r3, 80294b4 <__sinit+0x14>
  101237. 80294ac: e8bd 4010 ldmia.w sp!, {r4, lr}
  101238. 80294b0: f7ff bff0 b.w 8029494 <__sfp_lock_release>
  101239. 80294b4: 4b04 ldr r3, [pc, #16] @ (80294c8 <__sinit+0x28>)
  101240. 80294b6: 6223 str r3, [r4, #32]
  101241. 80294b8: 4b04 ldr r3, [pc, #16] @ (80294cc <__sinit+0x2c>)
  101242. 80294ba: 681b ldr r3, [r3, #0]
  101243. 80294bc: 2b00 cmp r3, #0
  101244. 80294be: d1f5 bne.n 80294ac <__sinit+0xc>
  101245. 80294c0: f7ff ffc4 bl 802944c <global_stdio_init.part.0>
  101246. 80294c4: e7f2 b.n 80294ac <__sinit+0xc>
  101247. 80294c6: bf00 nop
  101248. 80294c8: 0802940d .word 0x0802940d
  101249. 80294cc: 2402a2e0 .word 0x2402a2e0
  101250. 080294d0 <_fwalk_sglue>:
  101251. 80294d0: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  101252. 80294d4: 4607 mov r7, r0
  101253. 80294d6: 4688 mov r8, r1
  101254. 80294d8: 4614 mov r4, r2
  101255. 80294da: 2600 movs r6, #0
  101256. 80294dc: e9d4 9501 ldrd r9, r5, [r4, #4]
  101257. 80294e0: f1b9 0901 subs.w r9, r9, #1
  101258. 80294e4: d505 bpl.n 80294f2 <_fwalk_sglue+0x22>
  101259. 80294e6: 6824 ldr r4, [r4, #0]
  101260. 80294e8: 2c00 cmp r4, #0
  101261. 80294ea: d1f7 bne.n 80294dc <_fwalk_sglue+0xc>
  101262. 80294ec: 4630 mov r0, r6
  101263. 80294ee: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  101264. 80294f2: 89ab ldrh r3, [r5, #12]
  101265. 80294f4: 2b01 cmp r3, #1
  101266. 80294f6: d907 bls.n 8029508 <_fwalk_sglue+0x38>
  101267. 80294f8: f9b5 300e ldrsh.w r3, [r5, #14]
  101268. 80294fc: 3301 adds r3, #1
  101269. 80294fe: d003 beq.n 8029508 <_fwalk_sglue+0x38>
  101270. 8029500: 4629 mov r1, r5
  101271. 8029502: 4638 mov r0, r7
  101272. 8029504: 47c0 blx r8
  101273. 8029506: 4306 orrs r6, r0
  101274. 8029508: 3568 adds r5, #104 @ 0x68
  101275. 802950a: e7e9 b.n 80294e0 <_fwalk_sglue+0x10>
  101276. 0802950c <iprintf>:
  101277. 802950c: b40f push {r0, r1, r2, r3}
  101278. 802950e: b507 push {r0, r1, r2, lr}
  101279. 8029510: 4906 ldr r1, [pc, #24] @ (802952c <iprintf+0x20>)
  101280. 8029512: ab04 add r3, sp, #16
  101281. 8029514: 6808 ldr r0, [r1, #0]
  101282. 8029516: f853 2b04 ldr.w r2, [r3], #4
  101283. 802951a: 6881 ldr r1, [r0, #8]
  101284. 802951c: 9301 str r3, [sp, #4]
  101285. 802951e: f002 fa71 bl 802ba04 <_vfiprintf_r>
  101286. 8029522: b003 add sp, #12
  101287. 8029524: f85d eb04 ldr.w lr, [sp], #4
  101288. 8029528: b004 add sp, #16
  101289. 802952a: 4770 bx lr
  101290. 802952c: 240001c0 .word 0x240001c0
  101291. 08029530 <_puts_r>:
  101292. 8029530: 6a03 ldr r3, [r0, #32]
  101293. 8029532: b570 push {r4, r5, r6, lr}
  101294. 8029534: 6884 ldr r4, [r0, #8]
  101295. 8029536: 4605 mov r5, r0
  101296. 8029538: 460e mov r6, r1
  101297. 802953a: b90b cbnz r3, 8029540 <_puts_r+0x10>
  101298. 802953c: f7ff ffb0 bl 80294a0 <__sinit>
  101299. 8029540: 6e63 ldr r3, [r4, #100] @ 0x64
  101300. 8029542: 07db lsls r3, r3, #31
  101301. 8029544: d405 bmi.n 8029552 <_puts_r+0x22>
  101302. 8029546: 89a3 ldrh r3, [r4, #12]
  101303. 8029548: 0598 lsls r0, r3, #22
  101304. 802954a: d402 bmi.n 8029552 <_puts_r+0x22>
  101305. 802954c: 6da0 ldr r0, [r4, #88] @ 0x58
  101306. 802954e: f000 fa64 bl 8029a1a <__retarget_lock_acquire_recursive>
  101307. 8029552: 89a3 ldrh r3, [r4, #12]
  101308. 8029554: 0719 lsls r1, r3, #28
  101309. 8029556: d502 bpl.n 802955e <_puts_r+0x2e>
  101310. 8029558: 6923 ldr r3, [r4, #16]
  101311. 802955a: 2b00 cmp r3, #0
  101312. 802955c: d135 bne.n 80295ca <_puts_r+0x9a>
  101313. 802955e: 4621 mov r1, r4
  101314. 8029560: 4628 mov r0, r5
  101315. 8029562: f000 f8e5 bl 8029730 <__swsetup_r>
  101316. 8029566: b380 cbz r0, 80295ca <_puts_r+0x9a>
  101317. 8029568: f04f 35ff mov.w r5, #4294967295 @ 0xffffffff
  101318. 802956c: 6e63 ldr r3, [r4, #100] @ 0x64
  101319. 802956e: 07da lsls r2, r3, #31
  101320. 8029570: d405 bmi.n 802957e <_puts_r+0x4e>
  101321. 8029572: 89a3 ldrh r3, [r4, #12]
  101322. 8029574: 059b lsls r3, r3, #22
  101323. 8029576: d402 bmi.n 802957e <_puts_r+0x4e>
  101324. 8029578: 6da0 ldr r0, [r4, #88] @ 0x58
  101325. 802957a: f000 fa4f bl 8029a1c <__retarget_lock_release_recursive>
  101326. 802957e: 4628 mov r0, r5
  101327. 8029580: bd70 pop {r4, r5, r6, pc}
  101328. 8029582: 2b00 cmp r3, #0
  101329. 8029584: da04 bge.n 8029590 <_puts_r+0x60>
  101330. 8029586: 69a2 ldr r2, [r4, #24]
  101331. 8029588: 429a cmp r2, r3
  101332. 802958a: dc17 bgt.n 80295bc <_puts_r+0x8c>
  101333. 802958c: 290a cmp r1, #10
  101334. 802958e: d015 beq.n 80295bc <_puts_r+0x8c>
  101335. 8029590: 6823 ldr r3, [r4, #0]
  101336. 8029592: 1c5a adds r2, r3, #1
  101337. 8029594: 6022 str r2, [r4, #0]
  101338. 8029596: 7019 strb r1, [r3, #0]
  101339. 8029598: 68a3 ldr r3, [r4, #8]
  101340. 802959a: f816 1f01 ldrb.w r1, [r6, #1]!
  101341. 802959e: 3b01 subs r3, #1
  101342. 80295a0: 60a3 str r3, [r4, #8]
  101343. 80295a2: 2900 cmp r1, #0
  101344. 80295a4: d1ed bne.n 8029582 <_puts_r+0x52>
  101345. 80295a6: 2b00 cmp r3, #0
  101346. 80295a8: da11 bge.n 80295ce <_puts_r+0x9e>
  101347. 80295aa: 4622 mov r2, r4
  101348. 80295ac: 210a movs r1, #10
  101349. 80295ae: 4628 mov r0, r5
  101350. 80295b0: f000 f87f bl 80296b2 <__swbuf_r>
  101351. 80295b4: 3001 adds r0, #1
  101352. 80295b6: d0d7 beq.n 8029568 <_puts_r+0x38>
  101353. 80295b8: 250a movs r5, #10
  101354. 80295ba: e7d7 b.n 802956c <_puts_r+0x3c>
  101355. 80295bc: 4622 mov r2, r4
  101356. 80295be: 4628 mov r0, r5
  101357. 80295c0: f000 f877 bl 80296b2 <__swbuf_r>
  101358. 80295c4: 3001 adds r0, #1
  101359. 80295c6: d1e7 bne.n 8029598 <_puts_r+0x68>
  101360. 80295c8: e7ce b.n 8029568 <_puts_r+0x38>
  101361. 80295ca: 3e01 subs r6, #1
  101362. 80295cc: e7e4 b.n 8029598 <_puts_r+0x68>
  101363. 80295ce: 6823 ldr r3, [r4, #0]
  101364. 80295d0: 1c5a adds r2, r3, #1
  101365. 80295d2: 6022 str r2, [r4, #0]
  101366. 80295d4: 220a movs r2, #10
  101367. 80295d6: 701a strb r2, [r3, #0]
  101368. 80295d8: e7ee b.n 80295b8 <_puts_r+0x88>
  101369. ...
  101370. 080295dc <puts>:
  101371. 80295dc: 4b02 ldr r3, [pc, #8] @ (80295e8 <puts+0xc>)
  101372. 80295de: 4601 mov r1, r0
  101373. 80295e0: 6818 ldr r0, [r3, #0]
  101374. 80295e2: f7ff bfa5 b.w 8029530 <_puts_r>
  101375. 80295e6: bf00 nop
  101376. 80295e8: 240001c0 .word 0x240001c0
  101377. 080295ec <siprintf>:
  101378. 80295ec: b40e push {r1, r2, r3}
  101379. 80295ee: b500 push {lr}
  101380. 80295f0: b09c sub sp, #112 @ 0x70
  101381. 80295f2: ab1d add r3, sp, #116 @ 0x74
  101382. 80295f4: 9002 str r0, [sp, #8]
  101383. 80295f6: 9006 str r0, [sp, #24]
  101384. 80295f8: f06f 4100 mvn.w r1, #2147483648 @ 0x80000000
  101385. 80295fc: 4809 ldr r0, [pc, #36] @ (8029624 <siprintf+0x38>)
  101386. 80295fe: 9107 str r1, [sp, #28]
  101387. 8029600: 9104 str r1, [sp, #16]
  101388. 8029602: 4909 ldr r1, [pc, #36] @ (8029628 <siprintf+0x3c>)
  101389. 8029604: f853 2b04 ldr.w r2, [r3], #4
  101390. 8029608: 9105 str r1, [sp, #20]
  101391. 802960a: 6800 ldr r0, [r0, #0]
  101392. 802960c: 9301 str r3, [sp, #4]
  101393. 802960e: a902 add r1, sp, #8
  101394. 8029610: f002 f8d2 bl 802b7b8 <_svfiprintf_r>
  101395. 8029614: 9b02 ldr r3, [sp, #8]
  101396. 8029616: 2200 movs r2, #0
  101397. 8029618: 701a strb r2, [r3, #0]
  101398. 802961a: b01c add sp, #112 @ 0x70
  101399. 802961c: f85d eb04 ldr.w lr, [sp], #4
  101400. 8029620: b003 add sp, #12
  101401. 8029622: 4770 bx lr
  101402. 8029624: 240001c0 .word 0x240001c0
  101403. 8029628: ffff0208 .word 0xffff0208
  101404. 0802962c <__sread>:
  101405. 802962c: b510 push {r4, lr}
  101406. 802962e: 460c mov r4, r1
  101407. 8029630: f9b1 100e ldrsh.w r1, [r1, #14]
  101408. 8029634: f000 f992 bl 802995c <_read_r>
  101409. 8029638: 2800 cmp r0, #0
  101410. 802963a: bfab itete ge
  101411. 802963c: 6d63 ldrge r3, [r4, #84] @ 0x54
  101412. 802963e: 89a3 ldrhlt r3, [r4, #12]
  101413. 8029640: 181b addge r3, r3, r0
  101414. 8029642: f423 5380 biclt.w r3, r3, #4096 @ 0x1000
  101415. 8029646: bfac ite ge
  101416. 8029648: 6563 strge r3, [r4, #84] @ 0x54
  101417. 802964a: 81a3 strhlt r3, [r4, #12]
  101418. 802964c: bd10 pop {r4, pc}
  101419. 0802964e <__swrite>:
  101420. 802964e: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  101421. 8029652: 461f mov r7, r3
  101422. 8029654: 898b ldrh r3, [r1, #12]
  101423. 8029656: 05db lsls r3, r3, #23
  101424. 8029658: 4605 mov r5, r0
  101425. 802965a: 460c mov r4, r1
  101426. 802965c: 4616 mov r6, r2
  101427. 802965e: d505 bpl.n 802966c <__swrite+0x1e>
  101428. 8029660: f9b1 100e ldrsh.w r1, [r1, #14]
  101429. 8029664: 2302 movs r3, #2
  101430. 8029666: 2200 movs r2, #0
  101431. 8029668: f000 f966 bl 8029938 <_lseek_r>
  101432. 802966c: 89a3 ldrh r3, [r4, #12]
  101433. 802966e: f9b4 100e ldrsh.w r1, [r4, #14]
  101434. 8029672: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  101435. 8029676: 81a3 strh r3, [r4, #12]
  101436. 8029678: 4632 mov r2, r6
  101437. 802967a: 463b mov r3, r7
  101438. 802967c: 4628 mov r0, r5
  101439. 802967e: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
  101440. 8029682: f000 b98d b.w 80299a0 <_write_r>
  101441. 08029686 <__sseek>:
  101442. 8029686: b510 push {r4, lr}
  101443. 8029688: 460c mov r4, r1
  101444. 802968a: f9b1 100e ldrsh.w r1, [r1, #14]
  101445. 802968e: f000 f953 bl 8029938 <_lseek_r>
  101446. 8029692: 1c43 adds r3, r0, #1
  101447. 8029694: 89a3 ldrh r3, [r4, #12]
  101448. 8029696: bf15 itete ne
  101449. 8029698: 6560 strne r0, [r4, #84] @ 0x54
  101450. 802969a: f423 5380 biceq.w r3, r3, #4096 @ 0x1000
  101451. 802969e: f443 5380 orrne.w r3, r3, #4096 @ 0x1000
  101452. 80296a2: 81a3 strheq r3, [r4, #12]
  101453. 80296a4: bf18 it ne
  101454. 80296a6: 81a3 strhne r3, [r4, #12]
  101455. 80296a8: bd10 pop {r4, pc}
  101456. 080296aa <__sclose>:
  101457. 80296aa: f9b1 100e ldrsh.w r1, [r1, #14]
  101458. 80296ae: f000 b8dd b.w 802986c <_close_r>
  101459. 080296b2 <__swbuf_r>:
  101460. 80296b2: b5f8 push {r3, r4, r5, r6, r7, lr}
  101461. 80296b4: 460e mov r6, r1
  101462. 80296b6: 4614 mov r4, r2
  101463. 80296b8: 4605 mov r5, r0
  101464. 80296ba: b118 cbz r0, 80296c4 <__swbuf_r+0x12>
  101465. 80296bc: 6a03 ldr r3, [r0, #32]
  101466. 80296be: b90b cbnz r3, 80296c4 <__swbuf_r+0x12>
  101467. 80296c0: f7ff feee bl 80294a0 <__sinit>
  101468. 80296c4: 69a3 ldr r3, [r4, #24]
  101469. 80296c6: 60a3 str r3, [r4, #8]
  101470. 80296c8: 89a3 ldrh r3, [r4, #12]
  101471. 80296ca: 071a lsls r2, r3, #28
  101472. 80296cc: d501 bpl.n 80296d2 <__swbuf_r+0x20>
  101473. 80296ce: 6923 ldr r3, [r4, #16]
  101474. 80296d0: b943 cbnz r3, 80296e4 <__swbuf_r+0x32>
  101475. 80296d2: 4621 mov r1, r4
  101476. 80296d4: 4628 mov r0, r5
  101477. 80296d6: f000 f82b bl 8029730 <__swsetup_r>
  101478. 80296da: b118 cbz r0, 80296e4 <__swbuf_r+0x32>
  101479. 80296dc: f04f 37ff mov.w r7, #4294967295 @ 0xffffffff
  101480. 80296e0: 4638 mov r0, r7
  101481. 80296e2: bdf8 pop {r3, r4, r5, r6, r7, pc}
  101482. 80296e4: 6823 ldr r3, [r4, #0]
  101483. 80296e6: 6922 ldr r2, [r4, #16]
  101484. 80296e8: 1a98 subs r0, r3, r2
  101485. 80296ea: 6963 ldr r3, [r4, #20]
  101486. 80296ec: b2f6 uxtb r6, r6
  101487. 80296ee: 4283 cmp r3, r0
  101488. 80296f0: 4637 mov r7, r6
  101489. 80296f2: dc05 bgt.n 8029700 <__swbuf_r+0x4e>
  101490. 80296f4: 4621 mov r1, r4
  101491. 80296f6: 4628 mov r0, r5
  101492. 80296f8: f002 fb20 bl 802bd3c <_fflush_r>
  101493. 80296fc: 2800 cmp r0, #0
  101494. 80296fe: d1ed bne.n 80296dc <__swbuf_r+0x2a>
  101495. 8029700: 68a3 ldr r3, [r4, #8]
  101496. 8029702: 3b01 subs r3, #1
  101497. 8029704: 60a3 str r3, [r4, #8]
  101498. 8029706: 6823 ldr r3, [r4, #0]
  101499. 8029708: 1c5a adds r2, r3, #1
  101500. 802970a: 6022 str r2, [r4, #0]
  101501. 802970c: 701e strb r6, [r3, #0]
  101502. 802970e: 6962 ldr r2, [r4, #20]
  101503. 8029710: 1c43 adds r3, r0, #1
  101504. 8029712: 429a cmp r2, r3
  101505. 8029714: d004 beq.n 8029720 <__swbuf_r+0x6e>
  101506. 8029716: 89a3 ldrh r3, [r4, #12]
  101507. 8029718: 07db lsls r3, r3, #31
  101508. 802971a: d5e1 bpl.n 80296e0 <__swbuf_r+0x2e>
  101509. 802971c: 2e0a cmp r6, #10
  101510. 802971e: d1df bne.n 80296e0 <__swbuf_r+0x2e>
  101511. 8029720: 4621 mov r1, r4
  101512. 8029722: 4628 mov r0, r5
  101513. 8029724: f002 fb0a bl 802bd3c <_fflush_r>
  101514. 8029728: 2800 cmp r0, #0
  101515. 802972a: d0d9 beq.n 80296e0 <__swbuf_r+0x2e>
  101516. 802972c: e7d6 b.n 80296dc <__swbuf_r+0x2a>
  101517. ...
  101518. 08029730 <__swsetup_r>:
  101519. 8029730: b538 push {r3, r4, r5, lr}
  101520. 8029732: 4b29 ldr r3, [pc, #164] @ (80297d8 <__swsetup_r+0xa8>)
  101521. 8029734: 4605 mov r5, r0
  101522. 8029736: 6818 ldr r0, [r3, #0]
  101523. 8029738: 460c mov r4, r1
  101524. 802973a: b118 cbz r0, 8029744 <__swsetup_r+0x14>
  101525. 802973c: 6a03 ldr r3, [r0, #32]
  101526. 802973e: b90b cbnz r3, 8029744 <__swsetup_r+0x14>
  101527. 8029740: f7ff feae bl 80294a0 <__sinit>
  101528. 8029744: f9b4 300c ldrsh.w r3, [r4, #12]
  101529. 8029748: 0719 lsls r1, r3, #28
  101530. 802974a: d422 bmi.n 8029792 <__swsetup_r+0x62>
  101531. 802974c: 06da lsls r2, r3, #27
  101532. 802974e: d407 bmi.n 8029760 <__swsetup_r+0x30>
  101533. 8029750: 2209 movs r2, #9
  101534. 8029752: 602a str r2, [r5, #0]
  101535. 8029754: f043 0340 orr.w r3, r3, #64 @ 0x40
  101536. 8029758: 81a3 strh r3, [r4, #12]
  101537. 802975a: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  101538. 802975e: e033 b.n 80297c8 <__swsetup_r+0x98>
  101539. 8029760: 0758 lsls r0, r3, #29
  101540. 8029762: d512 bpl.n 802978a <__swsetup_r+0x5a>
  101541. 8029764: 6b61 ldr r1, [r4, #52] @ 0x34
  101542. 8029766: b141 cbz r1, 802977a <__swsetup_r+0x4a>
  101543. 8029768: f104 0344 add.w r3, r4, #68 @ 0x44
  101544. 802976c: 4299 cmp r1, r3
  101545. 802976e: d002 beq.n 8029776 <__swsetup_r+0x46>
  101546. 8029770: 4628 mov r0, r5
  101547. 8029772: f000 ff6b bl 802a64c <_free_r>
  101548. 8029776: 2300 movs r3, #0
  101549. 8029778: 6363 str r3, [r4, #52] @ 0x34
  101550. 802977a: 89a3 ldrh r3, [r4, #12]
  101551. 802977c: f023 0324 bic.w r3, r3, #36 @ 0x24
  101552. 8029780: 81a3 strh r3, [r4, #12]
  101553. 8029782: 2300 movs r3, #0
  101554. 8029784: 6063 str r3, [r4, #4]
  101555. 8029786: 6923 ldr r3, [r4, #16]
  101556. 8029788: 6023 str r3, [r4, #0]
  101557. 802978a: 89a3 ldrh r3, [r4, #12]
  101558. 802978c: f043 0308 orr.w r3, r3, #8
  101559. 8029790: 81a3 strh r3, [r4, #12]
  101560. 8029792: 6923 ldr r3, [r4, #16]
  101561. 8029794: b94b cbnz r3, 80297aa <__swsetup_r+0x7a>
  101562. 8029796: 89a3 ldrh r3, [r4, #12]
  101563. 8029798: f403 7320 and.w r3, r3, #640 @ 0x280
  101564. 802979c: f5b3 7f00 cmp.w r3, #512 @ 0x200
  101565. 80297a0: d003 beq.n 80297aa <__swsetup_r+0x7a>
  101566. 80297a2: 4621 mov r1, r4
  101567. 80297a4: 4628 mov r0, r5
  101568. 80297a6: f002 fb29 bl 802bdfc <__smakebuf_r>
  101569. 80297aa: f9b4 300c ldrsh.w r3, [r4, #12]
  101570. 80297ae: f013 0201 ands.w r2, r3, #1
  101571. 80297b2: d00a beq.n 80297ca <__swsetup_r+0x9a>
  101572. 80297b4: 2200 movs r2, #0
  101573. 80297b6: 60a2 str r2, [r4, #8]
  101574. 80297b8: 6962 ldr r2, [r4, #20]
  101575. 80297ba: 4252 negs r2, r2
  101576. 80297bc: 61a2 str r2, [r4, #24]
  101577. 80297be: 6922 ldr r2, [r4, #16]
  101578. 80297c0: b942 cbnz r2, 80297d4 <__swsetup_r+0xa4>
  101579. 80297c2: f013 0080 ands.w r0, r3, #128 @ 0x80
  101580. 80297c6: d1c5 bne.n 8029754 <__swsetup_r+0x24>
  101581. 80297c8: bd38 pop {r3, r4, r5, pc}
  101582. 80297ca: 0799 lsls r1, r3, #30
  101583. 80297cc: bf58 it pl
  101584. 80297ce: 6962 ldrpl r2, [r4, #20]
  101585. 80297d0: 60a2 str r2, [r4, #8]
  101586. 80297d2: e7f4 b.n 80297be <__swsetup_r+0x8e>
  101587. 80297d4: 2000 movs r0, #0
  101588. 80297d6: e7f7 b.n 80297c8 <__swsetup_r+0x98>
  101589. 80297d8: 240001c0 .word 0x240001c0
  101590. 080297dc <memcmp>:
  101591. 80297dc: b510 push {r4, lr}
  101592. 80297de: 3901 subs r1, #1
  101593. 80297e0: 4402 add r2, r0
  101594. 80297e2: 4290 cmp r0, r2
  101595. 80297e4: d101 bne.n 80297ea <memcmp+0xe>
  101596. 80297e6: 2000 movs r0, #0
  101597. 80297e8: e005 b.n 80297f6 <memcmp+0x1a>
  101598. 80297ea: 7803 ldrb r3, [r0, #0]
  101599. 80297ec: f811 4f01 ldrb.w r4, [r1, #1]!
  101600. 80297f0: 42a3 cmp r3, r4
  101601. 80297f2: d001 beq.n 80297f8 <memcmp+0x1c>
  101602. 80297f4: 1b18 subs r0, r3, r4
  101603. 80297f6: bd10 pop {r4, pc}
  101604. 80297f8: 3001 adds r0, #1
  101605. 80297fa: e7f2 b.n 80297e2 <memcmp+0x6>
  101606. 080297fc <memmove>:
  101607. 80297fc: 4288 cmp r0, r1
  101608. 80297fe: b510 push {r4, lr}
  101609. 8029800: eb01 0402 add.w r4, r1, r2
  101610. 8029804: d902 bls.n 802980c <memmove+0x10>
  101611. 8029806: 4284 cmp r4, r0
  101612. 8029808: 4623 mov r3, r4
  101613. 802980a: d807 bhi.n 802981c <memmove+0x20>
  101614. 802980c: 1e43 subs r3, r0, #1
  101615. 802980e: 42a1 cmp r1, r4
  101616. 8029810: d008 beq.n 8029824 <memmove+0x28>
  101617. 8029812: f811 2b01 ldrb.w r2, [r1], #1
  101618. 8029816: f803 2f01 strb.w r2, [r3, #1]!
  101619. 802981a: e7f8 b.n 802980e <memmove+0x12>
  101620. 802981c: 4402 add r2, r0
  101621. 802981e: 4601 mov r1, r0
  101622. 8029820: 428a cmp r2, r1
  101623. 8029822: d100 bne.n 8029826 <memmove+0x2a>
  101624. 8029824: bd10 pop {r4, pc}
  101625. 8029826: f813 4d01 ldrb.w r4, [r3, #-1]!
  101626. 802982a: f802 4d01 strb.w r4, [r2, #-1]!
  101627. 802982e: e7f7 b.n 8029820 <memmove+0x24>
  101628. 08029830 <memset>:
  101629. 8029830: 4402 add r2, r0
  101630. 8029832: 4603 mov r3, r0
  101631. 8029834: 4293 cmp r3, r2
  101632. 8029836: d100 bne.n 802983a <memset+0xa>
  101633. 8029838: 4770 bx lr
  101634. 802983a: f803 1b01 strb.w r1, [r3], #1
  101635. 802983e: e7f9 b.n 8029834 <memset+0x4>
  101636. 08029840 <strncmp>:
  101637. 8029840: b510 push {r4, lr}
  101638. 8029842: b16a cbz r2, 8029860 <strncmp+0x20>
  101639. 8029844: 3901 subs r1, #1
  101640. 8029846: 1884 adds r4, r0, r2
  101641. 8029848: f810 2b01 ldrb.w r2, [r0], #1
  101642. 802984c: f811 3f01 ldrb.w r3, [r1, #1]!
  101643. 8029850: 429a cmp r2, r3
  101644. 8029852: d103 bne.n 802985c <strncmp+0x1c>
  101645. 8029854: 42a0 cmp r0, r4
  101646. 8029856: d001 beq.n 802985c <strncmp+0x1c>
  101647. 8029858: 2a00 cmp r2, #0
  101648. 802985a: d1f5 bne.n 8029848 <strncmp+0x8>
  101649. 802985c: 1ad0 subs r0, r2, r3
  101650. 802985e: bd10 pop {r4, pc}
  101651. 8029860: 4610 mov r0, r2
  101652. 8029862: e7fc b.n 802985e <strncmp+0x1e>
  101653. 08029864 <_localeconv_r>:
  101654. 8029864: 4800 ldr r0, [pc, #0] @ (8029868 <_localeconv_r+0x4>)
  101655. 8029866: 4770 bx lr
  101656. 8029868: 24000144 .word 0x24000144
  101657. 0802986c <_close_r>:
  101658. 802986c: b538 push {r3, r4, r5, lr}
  101659. 802986e: 4d06 ldr r5, [pc, #24] @ (8029888 <_close_r+0x1c>)
  101660. 8029870: 2300 movs r3, #0
  101661. 8029872: 4604 mov r4, r0
  101662. 8029874: 4608 mov r0, r1
  101663. 8029876: 602b str r3, [r5, #0]
  101664. 8029878: f7da f9a6 bl 8003bc8 <_close>
  101665. 802987c: 1c43 adds r3, r0, #1
  101666. 802987e: d102 bne.n 8029886 <_close_r+0x1a>
  101667. 8029880: 682b ldr r3, [r5, #0]
  101668. 8029882: b103 cbz r3, 8029886 <_close_r+0x1a>
  101669. 8029884: 6023 str r3, [r4, #0]
  101670. 8029886: bd38 pop {r3, r4, r5, pc}
  101671. 8029888: 2402a2e4 .word 0x2402a2e4
  101672. 0802988c <_reclaim_reent>:
  101673. 802988c: 4b29 ldr r3, [pc, #164] @ (8029934 <_reclaim_reent+0xa8>)
  101674. 802988e: 681b ldr r3, [r3, #0]
  101675. 8029890: 4283 cmp r3, r0
  101676. 8029892: b570 push {r4, r5, r6, lr}
  101677. 8029894: 4604 mov r4, r0
  101678. 8029896: d04b beq.n 8029930 <_reclaim_reent+0xa4>
  101679. 8029898: 69c3 ldr r3, [r0, #28]
  101680. 802989a: b1ab cbz r3, 80298c8 <_reclaim_reent+0x3c>
  101681. 802989c: 68db ldr r3, [r3, #12]
  101682. 802989e: b16b cbz r3, 80298bc <_reclaim_reent+0x30>
  101683. 80298a0: 2500 movs r5, #0
  101684. 80298a2: 69e3 ldr r3, [r4, #28]
  101685. 80298a4: 68db ldr r3, [r3, #12]
  101686. 80298a6: 5959 ldr r1, [r3, r5]
  101687. 80298a8: 2900 cmp r1, #0
  101688. 80298aa: d13b bne.n 8029924 <_reclaim_reent+0x98>
  101689. 80298ac: 3504 adds r5, #4
  101690. 80298ae: 2d80 cmp r5, #128 @ 0x80
  101691. 80298b0: d1f7 bne.n 80298a2 <_reclaim_reent+0x16>
  101692. 80298b2: 69e3 ldr r3, [r4, #28]
  101693. 80298b4: 4620 mov r0, r4
  101694. 80298b6: 68d9 ldr r1, [r3, #12]
  101695. 80298b8: f000 fec8 bl 802a64c <_free_r>
  101696. 80298bc: 69e3 ldr r3, [r4, #28]
  101697. 80298be: 6819 ldr r1, [r3, #0]
  101698. 80298c0: b111 cbz r1, 80298c8 <_reclaim_reent+0x3c>
  101699. 80298c2: 4620 mov r0, r4
  101700. 80298c4: f000 fec2 bl 802a64c <_free_r>
  101701. 80298c8: 6961 ldr r1, [r4, #20]
  101702. 80298ca: b111 cbz r1, 80298d2 <_reclaim_reent+0x46>
  101703. 80298cc: 4620 mov r0, r4
  101704. 80298ce: f000 febd bl 802a64c <_free_r>
  101705. 80298d2: 69e1 ldr r1, [r4, #28]
  101706. 80298d4: b111 cbz r1, 80298dc <_reclaim_reent+0x50>
  101707. 80298d6: 4620 mov r0, r4
  101708. 80298d8: f000 feb8 bl 802a64c <_free_r>
  101709. 80298dc: 6b21 ldr r1, [r4, #48] @ 0x30
  101710. 80298de: b111 cbz r1, 80298e6 <_reclaim_reent+0x5a>
  101711. 80298e0: 4620 mov r0, r4
  101712. 80298e2: f000 feb3 bl 802a64c <_free_r>
  101713. 80298e6: 6b61 ldr r1, [r4, #52] @ 0x34
  101714. 80298e8: b111 cbz r1, 80298f0 <_reclaim_reent+0x64>
  101715. 80298ea: 4620 mov r0, r4
  101716. 80298ec: f000 feae bl 802a64c <_free_r>
  101717. 80298f0: 6ba1 ldr r1, [r4, #56] @ 0x38
  101718. 80298f2: b111 cbz r1, 80298fa <_reclaim_reent+0x6e>
  101719. 80298f4: 4620 mov r0, r4
  101720. 80298f6: f000 fea9 bl 802a64c <_free_r>
  101721. 80298fa: 6ca1 ldr r1, [r4, #72] @ 0x48
  101722. 80298fc: b111 cbz r1, 8029904 <_reclaim_reent+0x78>
  101723. 80298fe: 4620 mov r0, r4
  101724. 8029900: f000 fea4 bl 802a64c <_free_r>
  101725. 8029904: 6c61 ldr r1, [r4, #68] @ 0x44
  101726. 8029906: b111 cbz r1, 802990e <_reclaim_reent+0x82>
  101727. 8029908: 4620 mov r0, r4
  101728. 802990a: f000 fe9f bl 802a64c <_free_r>
  101729. 802990e: 6ae1 ldr r1, [r4, #44] @ 0x2c
  101730. 8029910: b111 cbz r1, 8029918 <_reclaim_reent+0x8c>
  101731. 8029912: 4620 mov r0, r4
  101732. 8029914: f000 fe9a bl 802a64c <_free_r>
  101733. 8029918: 6a23 ldr r3, [r4, #32]
  101734. 802991a: b14b cbz r3, 8029930 <_reclaim_reent+0xa4>
  101735. 802991c: 4620 mov r0, r4
  101736. 802991e: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr}
  101737. 8029922: 4718 bx r3
  101738. 8029924: 680e ldr r6, [r1, #0]
  101739. 8029926: 4620 mov r0, r4
  101740. 8029928: f000 fe90 bl 802a64c <_free_r>
  101741. 802992c: 4631 mov r1, r6
  101742. 802992e: e7bb b.n 80298a8 <_reclaim_reent+0x1c>
  101743. 8029930: bd70 pop {r4, r5, r6, pc}
  101744. 8029932: bf00 nop
  101745. 8029934: 240001c0 .word 0x240001c0
  101746. 08029938 <_lseek_r>:
  101747. 8029938: b538 push {r3, r4, r5, lr}
  101748. 802993a: 4d07 ldr r5, [pc, #28] @ (8029958 <_lseek_r+0x20>)
  101749. 802993c: 4604 mov r4, r0
  101750. 802993e: 4608 mov r0, r1
  101751. 8029940: 4611 mov r1, r2
  101752. 8029942: 2200 movs r2, #0
  101753. 8029944: 602a str r2, [r5, #0]
  101754. 8029946: 461a mov r2, r3
  101755. 8029948: f7da f965 bl 8003c16 <_lseek>
  101756. 802994c: 1c43 adds r3, r0, #1
  101757. 802994e: d102 bne.n 8029956 <_lseek_r+0x1e>
  101758. 8029950: 682b ldr r3, [r5, #0]
  101759. 8029952: b103 cbz r3, 8029956 <_lseek_r+0x1e>
  101760. 8029954: 6023 str r3, [r4, #0]
  101761. 8029956: bd38 pop {r3, r4, r5, pc}
  101762. 8029958: 2402a2e4 .word 0x2402a2e4
  101763. 0802995c <_read_r>:
  101764. 802995c: b538 push {r3, r4, r5, lr}
  101765. 802995e: 4d07 ldr r5, [pc, #28] @ (802997c <_read_r+0x20>)
  101766. 8029960: 4604 mov r4, r0
  101767. 8029962: 4608 mov r0, r1
  101768. 8029964: 4611 mov r1, r2
  101769. 8029966: 2200 movs r2, #0
  101770. 8029968: 602a str r2, [r5, #0]
  101771. 802996a: 461a mov r2, r3
  101772. 802996c: f7da f8f3 bl 8003b56 <_read>
  101773. 8029970: 1c43 adds r3, r0, #1
  101774. 8029972: d102 bne.n 802997a <_read_r+0x1e>
  101775. 8029974: 682b ldr r3, [r5, #0]
  101776. 8029976: b103 cbz r3, 802997a <_read_r+0x1e>
  101777. 8029978: 6023 str r3, [r4, #0]
  101778. 802997a: bd38 pop {r3, r4, r5, pc}
  101779. 802997c: 2402a2e4 .word 0x2402a2e4
  101780. 08029980 <_sbrk_r>:
  101781. 8029980: b538 push {r3, r4, r5, lr}
  101782. 8029982: 4d06 ldr r5, [pc, #24] @ (802999c <_sbrk_r+0x1c>)
  101783. 8029984: 2300 movs r3, #0
  101784. 8029986: 4604 mov r4, r0
  101785. 8029988: 4608 mov r0, r1
  101786. 802998a: 602b str r3, [r5, #0]
  101787. 802998c: f7da f950 bl 8003c30 <_sbrk>
  101788. 8029990: 1c43 adds r3, r0, #1
  101789. 8029992: d102 bne.n 802999a <_sbrk_r+0x1a>
  101790. 8029994: 682b ldr r3, [r5, #0]
  101791. 8029996: b103 cbz r3, 802999a <_sbrk_r+0x1a>
  101792. 8029998: 6023 str r3, [r4, #0]
  101793. 802999a: bd38 pop {r3, r4, r5, pc}
  101794. 802999c: 2402a2e4 .word 0x2402a2e4
  101795. 080299a0 <_write_r>:
  101796. 80299a0: b538 push {r3, r4, r5, lr}
  101797. 80299a2: 4d07 ldr r5, [pc, #28] @ (80299c0 <_write_r+0x20>)
  101798. 80299a4: 4604 mov r4, r0
  101799. 80299a6: 4608 mov r0, r1
  101800. 80299a8: 4611 mov r1, r2
  101801. 80299aa: 2200 movs r2, #0
  101802. 80299ac: 602a str r2, [r5, #0]
  101803. 80299ae: 461a mov r2, r3
  101804. 80299b0: f7da f8ee bl 8003b90 <_write>
  101805. 80299b4: 1c43 adds r3, r0, #1
  101806. 80299b6: d102 bne.n 80299be <_write_r+0x1e>
  101807. 80299b8: 682b ldr r3, [r5, #0]
  101808. 80299ba: b103 cbz r3, 80299be <_write_r+0x1e>
  101809. 80299bc: 6023 str r3, [r4, #0]
  101810. 80299be: bd38 pop {r3, r4, r5, pc}
  101811. 80299c0: 2402a2e4 .word 0x2402a2e4
  101812. 080299c4 <__errno>:
  101813. 80299c4: 4b01 ldr r3, [pc, #4] @ (80299cc <__errno+0x8>)
  101814. 80299c6: 6818 ldr r0, [r3, #0]
  101815. 80299c8: 4770 bx lr
  101816. 80299ca: bf00 nop
  101817. 80299cc: 240001c0 .word 0x240001c0
  101818. 080299d0 <__libc_init_array>:
  101819. 80299d0: b570 push {r4, r5, r6, lr}
  101820. 80299d2: 4d0d ldr r5, [pc, #52] @ (8029a08 <__libc_init_array+0x38>)
  101821. 80299d4: 4c0d ldr r4, [pc, #52] @ (8029a0c <__libc_init_array+0x3c>)
  101822. 80299d6: 1b64 subs r4, r4, r5
  101823. 80299d8: 10a4 asrs r4, r4, #2
  101824. 80299da: 2600 movs r6, #0
  101825. 80299dc: 42a6 cmp r6, r4
  101826. 80299de: d109 bne.n 80299f4 <__libc_init_array+0x24>
  101827. 80299e0: 4d0b ldr r5, [pc, #44] @ (8029a10 <__libc_init_array+0x40>)
  101828. 80299e2: 4c0c ldr r4, [pc, #48] @ (8029a14 <__libc_init_array+0x44>)
  101829. 80299e4: f002 fac8 bl 802bf78 <_init>
  101830. 80299e8: 1b64 subs r4, r4, r5
  101831. 80299ea: 10a4 asrs r4, r4, #2
  101832. 80299ec: 2600 movs r6, #0
  101833. 80299ee: 42a6 cmp r6, r4
  101834. 80299f0: d105 bne.n 80299fe <__libc_init_array+0x2e>
  101835. 80299f2: bd70 pop {r4, r5, r6, pc}
  101836. 80299f4: f855 3b04 ldr.w r3, [r5], #4
  101837. 80299f8: 4798 blx r3
  101838. 80299fa: 3601 adds r6, #1
  101839. 80299fc: e7ee b.n 80299dc <__libc_init_array+0xc>
  101840. 80299fe: f855 3b04 ldr.w r3, [r5], #4
  101841. 8029a02: 4798 blx r3
  101842. 8029a04: 3601 adds r6, #1
  101843. 8029a06: e7f2 b.n 80299ee <__libc_init_array+0x1e>
  101844. 8029a08: 08030c44 .word 0x08030c44
  101845. 8029a0c: 08030c44 .word 0x08030c44
  101846. 8029a10: 08030c44 .word 0x08030c44
  101847. 8029a14: 08030c48 .word 0x08030c48
  101848. 08029a18 <__retarget_lock_init_recursive>:
  101849. 8029a18: 4770 bx lr
  101850. 08029a1a <__retarget_lock_acquire_recursive>:
  101851. 8029a1a: 4770 bx lr
  101852. 08029a1c <__retarget_lock_release_recursive>:
  101853. 8029a1c: 4770 bx lr
  101854. 08029a1e <memcpy>:
  101855. 8029a1e: 440a add r2, r1
  101856. 8029a20: 4291 cmp r1, r2
  101857. 8029a22: f100 33ff add.w r3, r0, #4294967295 @ 0xffffffff
  101858. 8029a26: d100 bne.n 8029a2a <memcpy+0xc>
  101859. 8029a28: 4770 bx lr
  101860. 8029a2a: b510 push {r4, lr}
  101861. 8029a2c: f811 4b01 ldrb.w r4, [r1], #1
  101862. 8029a30: f803 4f01 strb.w r4, [r3, #1]!
  101863. 8029a34: 4291 cmp r1, r2
  101864. 8029a36: d1f9 bne.n 8029a2c <memcpy+0xe>
  101865. 8029a38: bd10 pop {r4, pc}
  101866. 8029a3a: 0000 movs r0, r0
  101867. 8029a3c: 0000 movs r0, r0
  101868. ...
  101869. 08029a40 <nan>:
  101870. 8029a40: ed9f 0b01 vldr d0, [pc, #4] @ 8029a48 <nan+0x8>
  101871. 8029a44: 4770 bx lr
  101872. 8029a46: bf00 nop
  101873. 8029a48: 00000000 .word 0x00000000
  101874. 8029a4c: 7ff80000 .word 0x7ff80000
  101875. 08029a50 <__assert_func>:
  101876. 8029a50: b51f push {r0, r1, r2, r3, r4, lr}
  101877. 8029a52: 4614 mov r4, r2
  101878. 8029a54: 461a mov r2, r3
  101879. 8029a56: 4b09 ldr r3, [pc, #36] @ (8029a7c <__assert_func+0x2c>)
  101880. 8029a58: 681b ldr r3, [r3, #0]
  101881. 8029a5a: 4605 mov r5, r0
  101882. 8029a5c: 68d8 ldr r0, [r3, #12]
  101883. 8029a5e: b954 cbnz r4, 8029a76 <__assert_func+0x26>
  101884. 8029a60: 4b07 ldr r3, [pc, #28] @ (8029a80 <__assert_func+0x30>)
  101885. 8029a62: 461c mov r4, r3
  101886. 8029a64: e9cd 3401 strd r3, r4, [sp, #4]
  101887. 8029a68: 9100 str r1, [sp, #0]
  101888. 8029a6a: 462b mov r3, r5
  101889. 8029a6c: 4905 ldr r1, [pc, #20] @ (8029a84 <__assert_func+0x34>)
  101890. 8029a6e: f002 f98d bl 802bd8c <fiprintf>
  101891. 8029a72: f002 fa21 bl 802beb8 <abort>
  101892. 8029a76: 4b04 ldr r3, [pc, #16] @ (8029a88 <__assert_func+0x38>)
  101893. 8029a78: e7f4 b.n 8029a64 <__assert_func+0x14>
  101894. 8029a7a: bf00 nop
  101895. 8029a7c: 240001c0 .word 0x240001c0
  101896. 8029a80: 080309f8 .word 0x080309f8
  101897. 8029a84: 080309ca .word 0x080309ca
  101898. 8029a88: 080309bd .word 0x080309bd
  101899. 08029a8c <quorem>:
  101900. 8029a8c: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  101901. 8029a90: 6903 ldr r3, [r0, #16]
  101902. 8029a92: 690c ldr r4, [r1, #16]
  101903. 8029a94: 42a3 cmp r3, r4
  101904. 8029a96: 4607 mov r7, r0
  101905. 8029a98: db7e blt.n 8029b98 <quorem+0x10c>
  101906. 8029a9a: 3c01 subs r4, #1
  101907. 8029a9c: f101 0814 add.w r8, r1, #20
  101908. 8029aa0: 00a3 lsls r3, r4, #2
  101909. 8029aa2: f100 0514 add.w r5, r0, #20
  101910. 8029aa6: 9300 str r3, [sp, #0]
  101911. 8029aa8: eb05 0384 add.w r3, r5, r4, lsl #2
  101912. 8029aac: 9301 str r3, [sp, #4]
  101913. 8029aae: f858 3024 ldr.w r3, [r8, r4, lsl #2]
  101914. 8029ab2: f855 2024 ldr.w r2, [r5, r4, lsl #2]
  101915. 8029ab6: 3301 adds r3, #1
  101916. 8029ab8: 429a cmp r2, r3
  101917. 8029aba: eb08 0984 add.w r9, r8, r4, lsl #2
  101918. 8029abe: fbb2 f6f3 udiv r6, r2, r3
  101919. 8029ac2: d32e bcc.n 8029b22 <quorem+0x96>
  101920. 8029ac4: f04f 0a00 mov.w sl, #0
  101921. 8029ac8: 46c4 mov ip, r8
  101922. 8029aca: 46ae mov lr, r5
  101923. 8029acc: 46d3 mov fp, sl
  101924. 8029ace: f85c 3b04 ldr.w r3, [ip], #4
  101925. 8029ad2: b298 uxth r0, r3
  101926. 8029ad4: fb06 a000 mla r0, r6, r0, sl
  101927. 8029ad8: 0c02 lsrs r2, r0, #16
  101928. 8029ada: 0c1b lsrs r3, r3, #16
  101929. 8029adc: fb06 2303 mla r3, r6, r3, r2
  101930. 8029ae0: f8de 2000 ldr.w r2, [lr]
  101931. 8029ae4: b280 uxth r0, r0
  101932. 8029ae6: b292 uxth r2, r2
  101933. 8029ae8: 1a12 subs r2, r2, r0
  101934. 8029aea: 445a add r2, fp
  101935. 8029aec: f8de 0000 ldr.w r0, [lr]
  101936. 8029af0: ea4f 4a13 mov.w sl, r3, lsr #16
  101937. 8029af4: b29b uxth r3, r3
  101938. 8029af6: ebc3 4322 rsb r3, r3, r2, asr #16
  101939. 8029afa: eb03 4310 add.w r3, r3, r0, lsr #16
  101940. 8029afe: b292 uxth r2, r2
  101941. 8029b00: ea42 4203 orr.w r2, r2, r3, lsl #16
  101942. 8029b04: 45e1 cmp r9, ip
  101943. 8029b06: f84e 2b04 str.w r2, [lr], #4
  101944. 8029b0a: ea4f 4b23 mov.w fp, r3, asr #16
  101945. 8029b0e: d2de bcs.n 8029ace <quorem+0x42>
  101946. 8029b10: 9b00 ldr r3, [sp, #0]
  101947. 8029b12: 58eb ldr r3, [r5, r3]
  101948. 8029b14: b92b cbnz r3, 8029b22 <quorem+0x96>
  101949. 8029b16: 9b01 ldr r3, [sp, #4]
  101950. 8029b18: 3b04 subs r3, #4
  101951. 8029b1a: 429d cmp r5, r3
  101952. 8029b1c: 461a mov r2, r3
  101953. 8029b1e: d32f bcc.n 8029b80 <quorem+0xf4>
  101954. 8029b20: 613c str r4, [r7, #16]
  101955. 8029b22: 4638 mov r0, r7
  101956. 8029b24: f001 fbec bl 802b300 <__mcmp>
  101957. 8029b28: 2800 cmp r0, #0
  101958. 8029b2a: db25 blt.n 8029b78 <quorem+0xec>
  101959. 8029b2c: 4629 mov r1, r5
  101960. 8029b2e: 2000 movs r0, #0
  101961. 8029b30: f858 2b04 ldr.w r2, [r8], #4
  101962. 8029b34: f8d1 c000 ldr.w ip, [r1]
  101963. 8029b38: fa1f fe82 uxth.w lr, r2
  101964. 8029b3c: fa1f f38c uxth.w r3, ip
  101965. 8029b40: eba3 030e sub.w r3, r3, lr
  101966. 8029b44: 4403 add r3, r0
  101967. 8029b46: 0c12 lsrs r2, r2, #16
  101968. 8029b48: ebc2 4223 rsb r2, r2, r3, asr #16
  101969. 8029b4c: eb02 421c add.w r2, r2, ip, lsr #16
  101970. 8029b50: b29b uxth r3, r3
  101971. 8029b52: ea43 4302 orr.w r3, r3, r2, lsl #16
  101972. 8029b56: 45c1 cmp r9, r8
  101973. 8029b58: f841 3b04 str.w r3, [r1], #4
  101974. 8029b5c: ea4f 4022 mov.w r0, r2, asr #16
  101975. 8029b60: d2e6 bcs.n 8029b30 <quorem+0xa4>
  101976. 8029b62: f855 2024 ldr.w r2, [r5, r4, lsl #2]
  101977. 8029b66: eb05 0384 add.w r3, r5, r4, lsl #2
  101978. 8029b6a: b922 cbnz r2, 8029b76 <quorem+0xea>
  101979. 8029b6c: 3b04 subs r3, #4
  101980. 8029b6e: 429d cmp r5, r3
  101981. 8029b70: 461a mov r2, r3
  101982. 8029b72: d30b bcc.n 8029b8c <quorem+0x100>
  101983. 8029b74: 613c str r4, [r7, #16]
  101984. 8029b76: 3601 adds r6, #1
  101985. 8029b78: 4630 mov r0, r6
  101986. 8029b7a: b003 add sp, #12
  101987. 8029b7c: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  101988. 8029b80: 6812 ldr r2, [r2, #0]
  101989. 8029b82: 3b04 subs r3, #4
  101990. 8029b84: 2a00 cmp r2, #0
  101991. 8029b86: d1cb bne.n 8029b20 <quorem+0x94>
  101992. 8029b88: 3c01 subs r4, #1
  101993. 8029b8a: e7c6 b.n 8029b1a <quorem+0x8e>
  101994. 8029b8c: 6812 ldr r2, [r2, #0]
  101995. 8029b8e: 3b04 subs r3, #4
  101996. 8029b90: 2a00 cmp r2, #0
  101997. 8029b92: d1ef bne.n 8029b74 <quorem+0xe8>
  101998. 8029b94: 3c01 subs r4, #1
  101999. 8029b96: e7ea b.n 8029b6e <quorem+0xe2>
  102000. 8029b98: 2000 movs r0, #0
  102001. 8029b9a: e7ee b.n 8029b7a <quorem+0xee>
  102002. 8029b9c: 0000 movs r0, r0
  102003. ...
  102004. 08029ba0 <_dtoa_r>:
  102005. 8029ba0: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  102006. 8029ba4: ed2d 8b02 vpush {d8}
  102007. 8029ba8: 69c7 ldr r7, [r0, #28]
  102008. 8029baa: b091 sub sp, #68 @ 0x44
  102009. 8029bac: ed8d 0b02 vstr d0, [sp, #8]
  102010. 8029bb0: ec55 4b10 vmov r4, r5, d0
  102011. 8029bb4: 9e1c ldr r6, [sp, #112] @ 0x70
  102012. 8029bb6: 9107 str r1, [sp, #28]
  102013. 8029bb8: 4681 mov r9, r0
  102014. 8029bba: 9209 str r2, [sp, #36] @ 0x24
  102015. 8029bbc: 930d str r3, [sp, #52] @ 0x34
  102016. 8029bbe: b97f cbnz r7, 8029be0 <_dtoa_r+0x40>
  102017. 8029bc0: 2010 movs r0, #16
  102018. 8029bc2: f7fe f8bb bl 8027d3c <malloc>
  102019. 8029bc6: 4602 mov r2, r0
  102020. 8029bc8: f8c9 001c str.w r0, [r9, #28]
  102021. 8029bcc: b920 cbnz r0, 8029bd8 <_dtoa_r+0x38>
  102022. 8029bce: 4ba0 ldr r3, [pc, #640] @ (8029e50 <_dtoa_r+0x2b0>)
  102023. 8029bd0: 21ef movs r1, #239 @ 0xef
  102024. 8029bd2: 48a0 ldr r0, [pc, #640] @ (8029e54 <_dtoa_r+0x2b4>)
  102025. 8029bd4: f7ff ff3c bl 8029a50 <__assert_func>
  102026. 8029bd8: e9c0 7701 strd r7, r7, [r0, #4]
  102027. 8029bdc: 6007 str r7, [r0, #0]
  102028. 8029bde: 60c7 str r7, [r0, #12]
  102029. 8029be0: f8d9 301c ldr.w r3, [r9, #28]
  102030. 8029be4: 6819 ldr r1, [r3, #0]
  102031. 8029be6: b159 cbz r1, 8029c00 <_dtoa_r+0x60>
  102032. 8029be8: 685a ldr r2, [r3, #4]
  102033. 8029bea: 604a str r2, [r1, #4]
  102034. 8029bec: 2301 movs r3, #1
  102035. 8029bee: 4093 lsls r3, r2
  102036. 8029bf0: 608b str r3, [r1, #8]
  102037. 8029bf2: 4648 mov r0, r9
  102038. 8029bf4: f001 f900 bl 802adf8 <_Bfree>
  102039. 8029bf8: f8d9 301c ldr.w r3, [r9, #28]
  102040. 8029bfc: 2200 movs r2, #0
  102041. 8029bfe: 601a str r2, [r3, #0]
  102042. 8029c00: 1e2b subs r3, r5, #0
  102043. 8029c02: bfbb ittet lt
  102044. 8029c04: f023 4300 biclt.w r3, r3, #2147483648 @ 0x80000000
  102045. 8029c08: 9303 strlt r3, [sp, #12]
  102046. 8029c0a: 2300 movge r3, #0
  102047. 8029c0c: 2201 movlt r2, #1
  102048. 8029c0e: bfac ite ge
  102049. 8029c10: 6033 strge r3, [r6, #0]
  102050. 8029c12: 6032 strlt r2, [r6, #0]
  102051. 8029c14: 4b90 ldr r3, [pc, #576] @ (8029e58 <_dtoa_r+0x2b8>)
  102052. 8029c16: 9e03 ldr r6, [sp, #12]
  102053. 8029c18: 43b3 bics r3, r6
  102054. 8029c1a: d110 bne.n 8029c3e <_dtoa_r+0x9e>
  102055. 8029c1c: 9a0d ldr r2, [sp, #52] @ 0x34
  102056. 8029c1e: f242 730f movw r3, #9999 @ 0x270f
  102057. 8029c22: 6013 str r3, [r2, #0]
  102058. 8029c24: f3c6 0313 ubfx r3, r6, #0, #20
  102059. 8029c28: 4323 orrs r3, r4
  102060. 8029c2a: f000 84de beq.w 802a5ea <_dtoa_r+0xa4a>
  102061. 8029c2e: 9b1d ldr r3, [sp, #116] @ 0x74
  102062. 8029c30: 4f8a ldr r7, [pc, #552] @ (8029e5c <_dtoa_r+0x2bc>)
  102063. 8029c32: 2b00 cmp r3, #0
  102064. 8029c34: f000 84e0 beq.w 802a5f8 <_dtoa_r+0xa58>
  102065. 8029c38: 1cfb adds r3, r7, #3
  102066. 8029c3a: f000 bcdb b.w 802a5f4 <_dtoa_r+0xa54>
  102067. 8029c3e: ed9d 8b02 vldr d8, [sp, #8]
  102068. 8029c42: eeb5 8b40 vcmp.f64 d8, #0.0
  102069. 8029c46: eef1 fa10 vmrs APSR_nzcv, fpscr
  102070. 8029c4a: d10a bne.n 8029c62 <_dtoa_r+0xc2>
  102071. 8029c4c: 9a0d ldr r2, [sp, #52] @ 0x34
  102072. 8029c4e: 2301 movs r3, #1
  102073. 8029c50: 6013 str r3, [r2, #0]
  102074. 8029c52: 9b1d ldr r3, [sp, #116] @ 0x74
  102075. 8029c54: b113 cbz r3, 8029c5c <_dtoa_r+0xbc>
  102076. 8029c56: 9a1d ldr r2, [sp, #116] @ 0x74
  102077. 8029c58: 4b81 ldr r3, [pc, #516] @ (8029e60 <_dtoa_r+0x2c0>)
  102078. 8029c5a: 6013 str r3, [r2, #0]
  102079. 8029c5c: 4f81 ldr r7, [pc, #516] @ (8029e64 <_dtoa_r+0x2c4>)
  102080. 8029c5e: f000 bccb b.w 802a5f8 <_dtoa_r+0xa58>
  102081. 8029c62: aa0e add r2, sp, #56 @ 0x38
  102082. 8029c64: a90f add r1, sp, #60 @ 0x3c
  102083. 8029c66: 4648 mov r0, r9
  102084. 8029c68: eeb0 0b48 vmov.f64 d0, d8
  102085. 8029c6c: f001 fc68 bl 802b540 <__d2b>
  102086. 8029c70: f3c6 530a ubfx r3, r6, #20, #11
  102087. 8029c74: 9a0e ldr r2, [sp, #56] @ 0x38
  102088. 8029c76: 9001 str r0, [sp, #4]
  102089. 8029c78: 2b00 cmp r3, #0
  102090. 8029c7a: d045 beq.n 8029d08 <_dtoa_r+0x168>
  102091. 8029c7c: eeb0 7b48 vmov.f64 d7, d8
  102092. 8029c80: ee18 1a90 vmov r1, s17
  102093. 8029c84: f3c1 0113 ubfx r1, r1, #0, #20
  102094. 8029c88: f041 517f orr.w r1, r1, #1069547520 @ 0x3fc00000
  102095. 8029c8c: f441 1140 orr.w r1, r1, #3145728 @ 0x300000
  102096. 8029c90: f2a3 33ff subw r3, r3, #1023 @ 0x3ff
  102097. 8029c94: 2500 movs r5, #0
  102098. 8029c96: ee07 1a90 vmov s15, r1
  102099. 8029c9a: eeb7 6b08 vmov.f64 d6, #120 @ 0x3fc00000 1.5
  102100. 8029c9e: ed9f 5b66 vldr d5, [pc, #408] @ 8029e38 <_dtoa_r+0x298>
  102101. 8029ca2: ee37 7b46 vsub.f64 d7, d7, d6
  102102. 8029ca6: ed9f 6b66 vldr d6, [pc, #408] @ 8029e40 <_dtoa_r+0x2a0>
  102103. 8029caa: eea7 6b05 vfma.f64 d6, d7, d5
  102104. 8029cae: ed9f 5b66 vldr d5, [pc, #408] @ 8029e48 <_dtoa_r+0x2a8>
  102105. 8029cb2: ee07 3a90 vmov s15, r3
  102106. 8029cb6: eeb8 4be7 vcvt.f64.s32 d4, s15
  102107. 8029cba: eeb0 7b46 vmov.f64 d7, d6
  102108. 8029cbe: eea4 7b05 vfma.f64 d7, d4, d5
  102109. 8029cc2: eefd 6bc7 vcvt.s32.f64 s13, d7
  102110. 8029cc6: eeb5 7bc0 vcmpe.f64 d7, #0.0
  102111. 8029cca: eef1 fa10 vmrs APSR_nzcv, fpscr
  102112. 8029cce: ee16 8a90 vmov r8, s13
  102113. 8029cd2: d508 bpl.n 8029ce6 <_dtoa_r+0x146>
  102114. 8029cd4: eeb8 6be6 vcvt.f64.s32 d6, s13
  102115. 8029cd8: eeb4 6b47 vcmp.f64 d6, d7
  102116. 8029cdc: eef1 fa10 vmrs APSR_nzcv, fpscr
  102117. 8029ce0: bf18 it ne
  102118. 8029ce2: f108 38ff addne.w r8, r8, #4294967295 @ 0xffffffff
  102119. 8029ce6: f1b8 0f16 cmp.w r8, #22
  102120. 8029cea: d82b bhi.n 8029d44 <_dtoa_r+0x1a4>
  102121. 8029cec: 495e ldr r1, [pc, #376] @ (8029e68 <_dtoa_r+0x2c8>)
  102122. 8029cee: eb01 01c8 add.w r1, r1, r8, lsl #3
  102123. 8029cf2: ed91 7b00 vldr d7, [r1]
  102124. 8029cf6: eeb4 8bc7 vcmpe.f64 d8, d7
  102125. 8029cfa: eef1 fa10 vmrs APSR_nzcv, fpscr
  102126. 8029cfe: d501 bpl.n 8029d04 <_dtoa_r+0x164>
  102127. 8029d00: f108 38ff add.w r8, r8, #4294967295 @ 0xffffffff
  102128. 8029d04: 2100 movs r1, #0
  102129. 8029d06: e01e b.n 8029d46 <_dtoa_r+0x1a6>
  102130. 8029d08: 9b0f ldr r3, [sp, #60] @ 0x3c
  102131. 8029d0a: 4413 add r3, r2
  102132. 8029d0c: f203 4132 addw r1, r3, #1074 @ 0x432
  102133. 8029d10: 2920 cmp r1, #32
  102134. 8029d12: bfc1 itttt gt
  102135. 8029d14: f1c1 0140 rsbgt r1, r1, #64 @ 0x40
  102136. 8029d18: 408e lslgt r6, r1
  102137. 8029d1a: f203 4112 addwgt r1, r3, #1042 @ 0x412
  102138. 8029d1e: fa24 f101 lsrgt.w r1, r4, r1
  102139. 8029d22: bfd6 itet le
  102140. 8029d24: f1c1 0120 rsble r1, r1, #32
  102141. 8029d28: 4331 orrgt r1, r6
  102142. 8029d2a: fa04 f101 lslle.w r1, r4, r1
  102143. 8029d2e: ee07 1a90 vmov s15, r1
  102144. 8029d32: eeb8 7b67 vcvt.f64.u32 d7, s15
  102145. 8029d36: 3b01 subs r3, #1
  102146. 8029d38: ee17 1a90 vmov r1, s15
  102147. 8029d3c: 2501 movs r5, #1
  102148. 8029d3e: f1a1 71f8 sub.w r1, r1, #32505856 @ 0x1f00000
  102149. 8029d42: e7a8 b.n 8029c96 <_dtoa_r+0xf6>
  102150. 8029d44: 2101 movs r1, #1
  102151. 8029d46: 1ad2 subs r2, r2, r3
  102152. 8029d48: 1e53 subs r3, r2, #1
  102153. 8029d4a: 9306 str r3, [sp, #24]
  102154. 8029d4c: bf45 ittet mi
  102155. 8029d4e: f1c2 0301 rsbmi r3, r2, #1
  102156. 8029d52: 9305 strmi r3, [sp, #20]
  102157. 8029d54: 2300 movpl r3, #0
  102158. 8029d56: 2300 movmi r3, #0
  102159. 8029d58: bf4c ite mi
  102160. 8029d5a: 9306 strmi r3, [sp, #24]
  102161. 8029d5c: 9305 strpl r3, [sp, #20]
  102162. 8029d5e: f1b8 0f00 cmp.w r8, #0
  102163. 8029d62: 910c str r1, [sp, #48] @ 0x30
  102164. 8029d64: db18 blt.n 8029d98 <_dtoa_r+0x1f8>
  102165. 8029d66: 9b06 ldr r3, [sp, #24]
  102166. 8029d68: f8cd 8028 str.w r8, [sp, #40] @ 0x28
  102167. 8029d6c: 4443 add r3, r8
  102168. 8029d6e: 9306 str r3, [sp, #24]
  102169. 8029d70: 2300 movs r3, #0
  102170. 8029d72: 9a07 ldr r2, [sp, #28]
  102171. 8029d74: 2a09 cmp r2, #9
  102172. 8029d76: d849 bhi.n 8029e0c <_dtoa_r+0x26c>
  102173. 8029d78: 2a05 cmp r2, #5
  102174. 8029d7a: bfc4 itt gt
  102175. 8029d7c: 3a04 subgt r2, #4
  102176. 8029d7e: 9207 strgt r2, [sp, #28]
  102177. 8029d80: 9a07 ldr r2, [sp, #28]
  102178. 8029d82: f1a2 0202 sub.w r2, r2, #2
  102179. 8029d86: bfcc ite gt
  102180. 8029d88: 2400 movgt r4, #0
  102181. 8029d8a: 2401 movle r4, #1
  102182. 8029d8c: 2a03 cmp r2, #3
  102183. 8029d8e: d848 bhi.n 8029e22 <_dtoa_r+0x282>
  102184. 8029d90: e8df f002 tbb [pc, r2]
  102185. 8029d94: 3a2c2e0b .word 0x3a2c2e0b
  102186. 8029d98: 9b05 ldr r3, [sp, #20]
  102187. 8029d9a: 2200 movs r2, #0
  102188. 8029d9c: eba3 0308 sub.w r3, r3, r8
  102189. 8029da0: 9305 str r3, [sp, #20]
  102190. 8029da2: 920a str r2, [sp, #40] @ 0x28
  102191. 8029da4: f1c8 0300 rsb r3, r8, #0
  102192. 8029da8: e7e3 b.n 8029d72 <_dtoa_r+0x1d2>
  102193. 8029daa: 2200 movs r2, #0
  102194. 8029dac: 9208 str r2, [sp, #32]
  102195. 8029dae: 9a09 ldr r2, [sp, #36] @ 0x24
  102196. 8029db0: 2a00 cmp r2, #0
  102197. 8029db2: dc39 bgt.n 8029e28 <_dtoa_r+0x288>
  102198. 8029db4: f04f 0b01 mov.w fp, #1
  102199. 8029db8: 46da mov sl, fp
  102200. 8029dba: 465a mov r2, fp
  102201. 8029dbc: f8cd b024 str.w fp, [sp, #36] @ 0x24
  102202. 8029dc0: f8d9 701c ldr.w r7, [r9, #28]
  102203. 8029dc4: 2100 movs r1, #0
  102204. 8029dc6: 2004 movs r0, #4
  102205. 8029dc8: f100 0614 add.w r6, r0, #20
  102206. 8029dcc: 4296 cmp r6, r2
  102207. 8029dce: d930 bls.n 8029e32 <_dtoa_r+0x292>
  102208. 8029dd0: 6079 str r1, [r7, #4]
  102209. 8029dd2: 4648 mov r0, r9
  102210. 8029dd4: 9304 str r3, [sp, #16]
  102211. 8029dd6: f000 ffcf bl 802ad78 <_Balloc>
  102212. 8029dda: 9b04 ldr r3, [sp, #16]
  102213. 8029ddc: 4607 mov r7, r0
  102214. 8029dde: 2800 cmp r0, #0
  102215. 8029de0: d146 bne.n 8029e70 <_dtoa_r+0x2d0>
  102216. 8029de2: 4b22 ldr r3, [pc, #136] @ (8029e6c <_dtoa_r+0x2cc>)
  102217. 8029de4: 4602 mov r2, r0
  102218. 8029de6: f240 11af movw r1, #431 @ 0x1af
  102219. 8029dea: e6f2 b.n 8029bd2 <_dtoa_r+0x32>
  102220. 8029dec: 2201 movs r2, #1
  102221. 8029dee: e7dd b.n 8029dac <_dtoa_r+0x20c>
  102222. 8029df0: 2200 movs r2, #0
  102223. 8029df2: 9208 str r2, [sp, #32]
  102224. 8029df4: 9a09 ldr r2, [sp, #36] @ 0x24
  102225. 8029df6: eb08 0b02 add.w fp, r8, r2
  102226. 8029dfa: f10b 0a01 add.w sl, fp, #1
  102227. 8029dfe: 4652 mov r2, sl
  102228. 8029e00: 2a01 cmp r2, #1
  102229. 8029e02: bfb8 it lt
  102230. 8029e04: 2201 movlt r2, #1
  102231. 8029e06: e7db b.n 8029dc0 <_dtoa_r+0x220>
  102232. 8029e08: 2201 movs r2, #1
  102233. 8029e0a: e7f2 b.n 8029df2 <_dtoa_r+0x252>
  102234. 8029e0c: 2401 movs r4, #1
  102235. 8029e0e: 2200 movs r2, #0
  102236. 8029e10: e9cd 2407 strd r2, r4, [sp, #28]
  102237. 8029e14: f04f 3bff mov.w fp, #4294967295 @ 0xffffffff
  102238. 8029e18: 2100 movs r1, #0
  102239. 8029e1a: 46da mov sl, fp
  102240. 8029e1c: 2212 movs r2, #18
  102241. 8029e1e: 9109 str r1, [sp, #36] @ 0x24
  102242. 8029e20: e7ce b.n 8029dc0 <_dtoa_r+0x220>
  102243. 8029e22: 2201 movs r2, #1
  102244. 8029e24: 9208 str r2, [sp, #32]
  102245. 8029e26: e7f5 b.n 8029e14 <_dtoa_r+0x274>
  102246. 8029e28: f8dd b024 ldr.w fp, [sp, #36] @ 0x24
  102247. 8029e2c: 46da mov sl, fp
  102248. 8029e2e: 465a mov r2, fp
  102249. 8029e30: e7c6 b.n 8029dc0 <_dtoa_r+0x220>
  102250. 8029e32: 3101 adds r1, #1
  102251. 8029e34: 0040 lsls r0, r0, #1
  102252. 8029e36: e7c7 b.n 8029dc8 <_dtoa_r+0x228>
  102253. 8029e38: 636f4361 .word 0x636f4361
  102254. 8029e3c: 3fd287a7 .word 0x3fd287a7
  102255. 8029e40: 8b60c8b3 .word 0x8b60c8b3
  102256. 8029e44: 3fc68a28 .word 0x3fc68a28
  102257. 8029e48: 509f79fb .word 0x509f79fb
  102258. 8029e4c: 3fd34413 .word 0x3fd34413
  102259. 8029e50: 080307ba .word 0x080307ba
  102260. 8029e54: 08030a06 .word 0x08030a06
  102261. 8029e58: 7ff00000 .word 0x7ff00000
  102262. 8029e5c: 08030a02 .word 0x08030a02
  102263. 8029e60: 08030992 .word 0x08030992
  102264. 8029e64: 08030991 .word 0x08030991
  102265. 8029e68: 08030b60 .word 0x08030b60
  102266. 8029e6c: 08030a5e .word 0x08030a5e
  102267. 8029e70: f8d9 201c ldr.w r2, [r9, #28]
  102268. 8029e74: f1ba 0f0e cmp.w sl, #14
  102269. 8029e78: 6010 str r0, [r2, #0]
  102270. 8029e7a: d86f bhi.n 8029f5c <_dtoa_r+0x3bc>
  102271. 8029e7c: 2c00 cmp r4, #0
  102272. 8029e7e: d06d beq.n 8029f5c <_dtoa_r+0x3bc>
  102273. 8029e80: f1b8 0f00 cmp.w r8, #0
  102274. 8029e84: f340 80c2 ble.w 802a00c <_dtoa_r+0x46c>
  102275. 8029e88: 4aca ldr r2, [pc, #808] @ (802a1b4 <_dtoa_r+0x614>)
  102276. 8029e8a: f008 010f and.w r1, r8, #15
  102277. 8029e8e: eb02 02c1 add.w r2, r2, r1, lsl #3
  102278. 8029e92: f418 7f80 tst.w r8, #256 @ 0x100
  102279. 8029e96: ed92 7b00 vldr d7, [r2]
  102280. 8029e9a: ea4f 1128 mov.w r1, r8, asr #4
  102281. 8029e9e: f000 80a9 beq.w 8029ff4 <_dtoa_r+0x454>
  102282. 8029ea2: 4ac5 ldr r2, [pc, #788] @ (802a1b8 <_dtoa_r+0x618>)
  102283. 8029ea4: ed92 6b08 vldr d6, [r2, #32]
  102284. 8029ea8: ee88 6b06 vdiv.f64 d6, d8, d6
  102285. 8029eac: ed8d 6b02 vstr d6, [sp, #8]
  102286. 8029eb0: f001 010f and.w r1, r1, #15
  102287. 8029eb4: 2203 movs r2, #3
  102288. 8029eb6: 48c0 ldr r0, [pc, #768] @ (802a1b8 <_dtoa_r+0x618>)
  102289. 8029eb8: 2900 cmp r1, #0
  102290. 8029eba: f040 809d bne.w 8029ff8 <_dtoa_r+0x458>
  102291. 8029ebe: ed9d 6b02 vldr d6, [sp, #8]
  102292. 8029ec2: ee86 7b07 vdiv.f64 d7, d6, d7
  102293. 8029ec6: ed8d 7b02 vstr d7, [sp, #8]
  102294. 8029eca: 990c ldr r1, [sp, #48] @ 0x30
  102295. 8029ecc: ed9d 7b02 vldr d7, [sp, #8]
  102296. 8029ed0: 2900 cmp r1, #0
  102297. 8029ed2: f000 80c1 beq.w 802a058 <_dtoa_r+0x4b8>
  102298. 8029ed6: eeb7 6b00 vmov.f64 d6, #112 @ 0x3f800000 1.0
  102299. 8029eda: eeb4 7bc6 vcmpe.f64 d7, d6
  102300. 8029ede: eef1 fa10 vmrs APSR_nzcv, fpscr
  102301. 8029ee2: f140 80b9 bpl.w 802a058 <_dtoa_r+0x4b8>
  102302. 8029ee6: f1ba 0f00 cmp.w sl, #0
  102303. 8029eea: f000 80b5 beq.w 802a058 <_dtoa_r+0x4b8>
  102304. 8029eee: f1bb 0f00 cmp.w fp, #0
  102305. 8029ef2: dd31 ble.n 8029f58 <_dtoa_r+0x3b8>
  102306. 8029ef4: eeb2 6b04 vmov.f64 d6, #36 @ 0x41200000 10.0
  102307. 8029ef8: ee27 7b06 vmul.f64 d7, d7, d6
  102308. 8029efc: ed8d 7b02 vstr d7, [sp, #8]
  102309. 8029f00: f108 31ff add.w r1, r8, #4294967295 @ 0xffffffff
  102310. 8029f04: 9104 str r1, [sp, #16]
  102311. 8029f06: 3201 adds r2, #1
  102312. 8029f08: 465c mov r4, fp
  102313. 8029f0a: ed9d 6b02 vldr d6, [sp, #8]
  102314. 8029f0e: eeb1 5b0c vmov.f64 d5, #28 @ 0x40e00000 7.0
  102315. 8029f12: ee07 2a90 vmov s15, r2
  102316. 8029f16: eeb8 7be7 vcvt.f64.s32 d7, s15
  102317. 8029f1a: eea7 5b06 vfma.f64 d5, d7, d6
  102318. 8029f1e: ee15 2a90 vmov r2, s11
  102319. 8029f22: ec51 0b15 vmov r0, r1, d5
  102320. 8029f26: f1a2 7150 sub.w r1, r2, #54525952 @ 0x3400000
  102321. 8029f2a: 2c00 cmp r4, #0
  102322. 8029f2c: f040 8098 bne.w 802a060 <_dtoa_r+0x4c0>
  102323. 8029f30: eeb1 7b04 vmov.f64 d7, #20 @ 0x40a00000 5.0
  102324. 8029f34: ee36 6b47 vsub.f64 d6, d6, d7
  102325. 8029f38: ec41 0b17 vmov d7, r0, r1
  102326. 8029f3c: eeb4 6bc7 vcmpe.f64 d6, d7
  102327. 8029f40: eef1 fa10 vmrs APSR_nzcv, fpscr
  102328. 8029f44: f300 8261 bgt.w 802a40a <_dtoa_r+0x86a>
  102329. 8029f48: eeb1 7b47 vneg.f64 d7, d7
  102330. 8029f4c: eeb4 6bc7 vcmpe.f64 d6, d7
  102331. 8029f50: eef1 fa10 vmrs APSR_nzcv, fpscr
  102332. 8029f54: f100 80f5 bmi.w 802a142 <_dtoa_r+0x5a2>
  102333. 8029f58: ed8d 8b02 vstr d8, [sp, #8]
  102334. 8029f5c: 9a0f ldr r2, [sp, #60] @ 0x3c
  102335. 8029f5e: 2a00 cmp r2, #0
  102336. 8029f60: f2c0 812c blt.w 802a1bc <_dtoa_r+0x61c>
  102337. 8029f64: f1b8 0f0e cmp.w r8, #14
  102338. 8029f68: f300 8128 bgt.w 802a1bc <_dtoa_r+0x61c>
  102339. 8029f6c: 4b91 ldr r3, [pc, #580] @ (802a1b4 <_dtoa_r+0x614>)
  102340. 8029f6e: eb03 03c8 add.w r3, r3, r8, lsl #3
  102341. 8029f72: ed93 6b00 vldr d6, [r3]
  102342. 8029f76: 9b09 ldr r3, [sp, #36] @ 0x24
  102343. 8029f78: 2b00 cmp r3, #0
  102344. 8029f7a: da03 bge.n 8029f84 <_dtoa_r+0x3e4>
  102345. 8029f7c: f1ba 0f00 cmp.w sl, #0
  102346. 8029f80: f340 80d2 ble.w 802a128 <_dtoa_r+0x588>
  102347. 8029f84: eeb2 4b04 vmov.f64 d4, #36 @ 0x41200000 10.0
  102348. 8029f88: ed9d 7b02 vldr d7, [sp, #8]
  102349. 8029f8c: 463e mov r6, r7
  102350. 8029f8e: ee87 5b06 vdiv.f64 d5, d7, d6
  102351. 8029f92: eebd 5bc5 vcvt.s32.f64 s10, d5
  102352. 8029f96: ee15 3a10 vmov r3, s10
  102353. 8029f9a: 3330 adds r3, #48 @ 0x30
  102354. 8029f9c: f806 3b01 strb.w r3, [r6], #1
  102355. 8029fa0: 1bf3 subs r3, r6, r7
  102356. 8029fa2: 459a cmp sl, r3
  102357. 8029fa4: eeb8 3bc5 vcvt.f64.s32 d3, s10
  102358. 8029fa8: eea3 7b46 vfms.f64 d7, d3, d6
  102359. 8029fac: f040 80f8 bne.w 802a1a0 <_dtoa_r+0x600>
  102360. 8029fb0: ee37 7b07 vadd.f64 d7, d7, d7
  102361. 8029fb4: eeb4 7bc6 vcmpe.f64 d7, d6
  102362. 8029fb8: eef1 fa10 vmrs APSR_nzcv, fpscr
  102363. 8029fbc: f300 80dd bgt.w 802a17a <_dtoa_r+0x5da>
  102364. 8029fc0: eeb4 7b46 vcmp.f64 d7, d6
  102365. 8029fc4: eef1 fa10 vmrs APSR_nzcv, fpscr
  102366. 8029fc8: d104 bne.n 8029fd4 <_dtoa_r+0x434>
  102367. 8029fca: ee15 3a10 vmov r3, s10
  102368. 8029fce: 07db lsls r3, r3, #31
  102369. 8029fd0: f100 80d3 bmi.w 802a17a <_dtoa_r+0x5da>
  102370. 8029fd4: 9901 ldr r1, [sp, #4]
  102371. 8029fd6: 4648 mov r0, r9
  102372. 8029fd8: f000 ff0e bl 802adf8 <_Bfree>
  102373. 8029fdc: 2300 movs r3, #0
  102374. 8029fde: 9a0d ldr r2, [sp, #52] @ 0x34
  102375. 8029fe0: 7033 strb r3, [r6, #0]
  102376. 8029fe2: f108 0301 add.w r3, r8, #1
  102377. 8029fe6: 6013 str r3, [r2, #0]
  102378. 8029fe8: 9b1d ldr r3, [sp, #116] @ 0x74
  102379. 8029fea: 2b00 cmp r3, #0
  102380. 8029fec: f000 8304 beq.w 802a5f8 <_dtoa_r+0xa58>
  102381. 8029ff0: 601e str r6, [r3, #0]
  102382. 8029ff2: e301 b.n 802a5f8 <_dtoa_r+0xa58>
  102383. 8029ff4: 2202 movs r2, #2
  102384. 8029ff6: e75e b.n 8029eb6 <_dtoa_r+0x316>
  102385. 8029ff8: 07cc lsls r4, r1, #31
  102386. 8029ffa: d504 bpl.n 802a006 <_dtoa_r+0x466>
  102387. 8029ffc: ed90 6b00 vldr d6, [r0]
  102388. 802a000: 3201 adds r2, #1
  102389. 802a002: ee27 7b06 vmul.f64 d7, d7, d6
  102390. 802a006: 1049 asrs r1, r1, #1
  102391. 802a008: 3008 adds r0, #8
  102392. 802a00a: e755 b.n 8029eb8 <_dtoa_r+0x318>
  102393. 802a00c: d022 beq.n 802a054 <_dtoa_r+0x4b4>
  102394. 802a00e: f1c8 0100 rsb r1, r8, #0
  102395. 802a012: 4a68 ldr r2, [pc, #416] @ (802a1b4 <_dtoa_r+0x614>)
  102396. 802a014: f001 000f and.w r0, r1, #15
  102397. 802a018: eb02 02c0 add.w r2, r2, r0, lsl #3
  102398. 802a01c: ed92 7b00 vldr d7, [r2]
  102399. 802a020: ee28 7b07 vmul.f64 d7, d8, d7
  102400. 802a024: ed8d 7b02 vstr d7, [sp, #8]
  102401. 802a028: 4863 ldr r0, [pc, #396] @ (802a1b8 <_dtoa_r+0x618>)
  102402. 802a02a: 1109 asrs r1, r1, #4
  102403. 802a02c: 2400 movs r4, #0
  102404. 802a02e: 2202 movs r2, #2
  102405. 802a030: b929 cbnz r1, 802a03e <_dtoa_r+0x49e>
  102406. 802a032: 2c00 cmp r4, #0
  102407. 802a034: f43f af49 beq.w 8029eca <_dtoa_r+0x32a>
  102408. 802a038: ed8d 7b02 vstr d7, [sp, #8]
  102409. 802a03c: e745 b.n 8029eca <_dtoa_r+0x32a>
  102410. 802a03e: 07ce lsls r6, r1, #31
  102411. 802a040: d505 bpl.n 802a04e <_dtoa_r+0x4ae>
  102412. 802a042: ed90 6b00 vldr d6, [r0]
  102413. 802a046: 3201 adds r2, #1
  102414. 802a048: 2401 movs r4, #1
  102415. 802a04a: ee27 7b06 vmul.f64 d7, d7, d6
  102416. 802a04e: 1049 asrs r1, r1, #1
  102417. 802a050: 3008 adds r0, #8
  102418. 802a052: e7ed b.n 802a030 <_dtoa_r+0x490>
  102419. 802a054: 2202 movs r2, #2
  102420. 802a056: e738 b.n 8029eca <_dtoa_r+0x32a>
  102421. 802a058: f8cd 8010 str.w r8, [sp, #16]
  102422. 802a05c: 4654 mov r4, sl
  102423. 802a05e: e754 b.n 8029f0a <_dtoa_r+0x36a>
  102424. 802a060: 4a54 ldr r2, [pc, #336] @ (802a1b4 <_dtoa_r+0x614>)
  102425. 802a062: eb02 02c4 add.w r2, r2, r4, lsl #3
  102426. 802a066: ed12 4b02 vldr d4, [r2, #-8]
  102427. 802a06a: 9a08 ldr r2, [sp, #32]
  102428. 802a06c: ec41 0b17 vmov d7, r0, r1
  102429. 802a070: 443c add r4, r7
  102430. 802a072: b34a cbz r2, 802a0c8 <_dtoa_r+0x528>
  102431. 802a074: eeb6 3b00 vmov.f64 d3, #96 @ 0x3f000000 0.5
  102432. 802a078: eeb7 2b00 vmov.f64 d2, #112 @ 0x3f800000 1.0
  102433. 802a07c: 463e mov r6, r7
  102434. 802a07e: ee83 5b04 vdiv.f64 d5, d3, d4
  102435. 802a082: eeb2 3b04 vmov.f64 d3, #36 @ 0x41200000 10.0
  102436. 802a086: ee35 7b47 vsub.f64 d7, d5, d7
  102437. 802a08a: eefd 4bc6 vcvt.s32.f64 s9, d6
  102438. 802a08e: ee14 2a90 vmov r2, s9
  102439. 802a092: eeb8 5be4 vcvt.f64.s32 d5, s9
  102440. 802a096: 3230 adds r2, #48 @ 0x30
  102441. 802a098: ee36 6b45 vsub.f64 d6, d6, d5
  102442. 802a09c: eeb4 6bc7 vcmpe.f64 d6, d7
  102443. 802a0a0: eef1 fa10 vmrs APSR_nzcv, fpscr
  102444. 802a0a4: f806 2b01 strb.w r2, [r6], #1
  102445. 802a0a8: d438 bmi.n 802a11c <_dtoa_r+0x57c>
  102446. 802a0aa: ee32 5b46 vsub.f64 d5, d2, d6
  102447. 802a0ae: eeb4 5bc7 vcmpe.f64 d5, d7
  102448. 802a0b2: eef1 fa10 vmrs APSR_nzcv, fpscr
  102449. 802a0b6: d462 bmi.n 802a17e <_dtoa_r+0x5de>
  102450. 802a0b8: 42a6 cmp r6, r4
  102451. 802a0ba: f43f af4d beq.w 8029f58 <_dtoa_r+0x3b8>
  102452. 802a0be: ee27 7b03 vmul.f64 d7, d7, d3
  102453. 802a0c2: ee26 6b03 vmul.f64 d6, d6, d3
  102454. 802a0c6: e7e0 b.n 802a08a <_dtoa_r+0x4ea>
  102455. 802a0c8: 4621 mov r1, r4
  102456. 802a0ca: 463e mov r6, r7
  102457. 802a0cc: ee27 7b04 vmul.f64 d7, d7, d4
  102458. 802a0d0: eeb2 3b04 vmov.f64 d3, #36 @ 0x41200000 10.0
  102459. 802a0d4: eefd 4bc6 vcvt.s32.f64 s9, d6
  102460. 802a0d8: ee14 2a90 vmov r2, s9
  102461. 802a0dc: 3230 adds r2, #48 @ 0x30
  102462. 802a0de: f806 2b01 strb.w r2, [r6], #1
  102463. 802a0e2: 42a6 cmp r6, r4
  102464. 802a0e4: eeb8 5be4 vcvt.f64.s32 d5, s9
  102465. 802a0e8: ee36 6b45 vsub.f64 d6, d6, d5
  102466. 802a0ec: d119 bne.n 802a122 <_dtoa_r+0x582>
  102467. 802a0ee: eeb6 5b00 vmov.f64 d5, #96 @ 0x3f000000 0.5
  102468. 802a0f2: ee37 4b05 vadd.f64 d4, d7, d5
  102469. 802a0f6: eeb4 6bc4 vcmpe.f64 d6, d4
  102470. 802a0fa: eef1 fa10 vmrs APSR_nzcv, fpscr
  102471. 802a0fe: dc3e bgt.n 802a17e <_dtoa_r+0x5de>
  102472. 802a100: ee35 5b47 vsub.f64 d5, d5, d7
  102473. 802a104: eeb4 6bc5 vcmpe.f64 d6, d5
  102474. 802a108: eef1 fa10 vmrs APSR_nzcv, fpscr
  102475. 802a10c: f57f af24 bpl.w 8029f58 <_dtoa_r+0x3b8>
  102476. 802a110: 460e mov r6, r1
  102477. 802a112: 3901 subs r1, #1
  102478. 802a114: f816 3c01 ldrb.w r3, [r6, #-1]
  102479. 802a118: 2b30 cmp r3, #48 @ 0x30
  102480. 802a11a: d0f9 beq.n 802a110 <_dtoa_r+0x570>
  102481. 802a11c: f8dd 8010 ldr.w r8, [sp, #16]
  102482. 802a120: e758 b.n 8029fd4 <_dtoa_r+0x434>
  102483. 802a122: ee26 6b03 vmul.f64 d6, d6, d3
  102484. 802a126: e7d5 b.n 802a0d4 <_dtoa_r+0x534>
  102485. 802a128: d10b bne.n 802a142 <_dtoa_r+0x5a2>
  102486. 802a12a: eeb1 7b04 vmov.f64 d7, #20 @ 0x40a00000 5.0
  102487. 802a12e: ee26 6b07 vmul.f64 d6, d6, d7
  102488. 802a132: ed9d 7b02 vldr d7, [sp, #8]
  102489. 802a136: eeb4 6bc7 vcmpe.f64 d6, d7
  102490. 802a13a: eef1 fa10 vmrs APSR_nzcv, fpscr
  102491. 802a13e: f2c0 8161 blt.w 802a404 <_dtoa_r+0x864>
  102492. 802a142: 2400 movs r4, #0
  102493. 802a144: 4625 mov r5, r4
  102494. 802a146: 9b09 ldr r3, [sp, #36] @ 0x24
  102495. 802a148: 43db mvns r3, r3
  102496. 802a14a: 9304 str r3, [sp, #16]
  102497. 802a14c: 463e mov r6, r7
  102498. 802a14e: f04f 0800 mov.w r8, #0
  102499. 802a152: 4621 mov r1, r4
  102500. 802a154: 4648 mov r0, r9
  102501. 802a156: f000 fe4f bl 802adf8 <_Bfree>
  102502. 802a15a: 2d00 cmp r5, #0
  102503. 802a15c: d0de beq.n 802a11c <_dtoa_r+0x57c>
  102504. 802a15e: f1b8 0f00 cmp.w r8, #0
  102505. 802a162: d005 beq.n 802a170 <_dtoa_r+0x5d0>
  102506. 802a164: 45a8 cmp r8, r5
  102507. 802a166: d003 beq.n 802a170 <_dtoa_r+0x5d0>
  102508. 802a168: 4641 mov r1, r8
  102509. 802a16a: 4648 mov r0, r9
  102510. 802a16c: f000 fe44 bl 802adf8 <_Bfree>
  102511. 802a170: 4629 mov r1, r5
  102512. 802a172: 4648 mov r0, r9
  102513. 802a174: f000 fe40 bl 802adf8 <_Bfree>
  102514. 802a178: e7d0 b.n 802a11c <_dtoa_r+0x57c>
  102515. 802a17a: f8cd 8010 str.w r8, [sp, #16]
  102516. 802a17e: 4633 mov r3, r6
  102517. 802a180: 461e mov r6, r3
  102518. 802a182: f813 2d01 ldrb.w r2, [r3, #-1]!
  102519. 802a186: 2a39 cmp r2, #57 @ 0x39
  102520. 802a188: d106 bne.n 802a198 <_dtoa_r+0x5f8>
  102521. 802a18a: 429f cmp r7, r3
  102522. 802a18c: d1f8 bne.n 802a180 <_dtoa_r+0x5e0>
  102523. 802a18e: 9a04 ldr r2, [sp, #16]
  102524. 802a190: 3201 adds r2, #1
  102525. 802a192: 9204 str r2, [sp, #16]
  102526. 802a194: 2230 movs r2, #48 @ 0x30
  102527. 802a196: 703a strb r2, [r7, #0]
  102528. 802a198: 781a ldrb r2, [r3, #0]
  102529. 802a19a: 3201 adds r2, #1
  102530. 802a19c: 701a strb r2, [r3, #0]
  102531. 802a19e: e7bd b.n 802a11c <_dtoa_r+0x57c>
  102532. 802a1a0: ee27 7b04 vmul.f64 d7, d7, d4
  102533. 802a1a4: eeb5 7b40 vcmp.f64 d7, #0.0
  102534. 802a1a8: eef1 fa10 vmrs APSR_nzcv, fpscr
  102535. 802a1ac: f47f aeef bne.w 8029f8e <_dtoa_r+0x3ee>
  102536. 802a1b0: e710 b.n 8029fd4 <_dtoa_r+0x434>
  102537. 802a1b2: bf00 nop
  102538. 802a1b4: 08030b60 .word 0x08030b60
  102539. 802a1b8: 08030b38 .word 0x08030b38
  102540. 802a1bc: 9908 ldr r1, [sp, #32]
  102541. 802a1be: 2900 cmp r1, #0
  102542. 802a1c0: f000 80e3 beq.w 802a38a <_dtoa_r+0x7ea>
  102543. 802a1c4: 9907 ldr r1, [sp, #28]
  102544. 802a1c6: 2901 cmp r1, #1
  102545. 802a1c8: f300 80c8 bgt.w 802a35c <_dtoa_r+0x7bc>
  102546. 802a1cc: 2d00 cmp r5, #0
  102547. 802a1ce: f000 80c1 beq.w 802a354 <_dtoa_r+0x7b4>
  102548. 802a1d2: f202 4233 addw r2, r2, #1075 @ 0x433
  102549. 802a1d6: 9e05 ldr r6, [sp, #20]
  102550. 802a1d8: 461c mov r4, r3
  102551. 802a1da: 9304 str r3, [sp, #16]
  102552. 802a1dc: 9b05 ldr r3, [sp, #20]
  102553. 802a1de: 4413 add r3, r2
  102554. 802a1e0: 9305 str r3, [sp, #20]
  102555. 802a1e2: 9b06 ldr r3, [sp, #24]
  102556. 802a1e4: 2101 movs r1, #1
  102557. 802a1e6: 4413 add r3, r2
  102558. 802a1e8: 4648 mov r0, r9
  102559. 802a1ea: 9306 str r3, [sp, #24]
  102560. 802a1ec: f000 ff02 bl 802aff4 <__i2b>
  102561. 802a1f0: 9b04 ldr r3, [sp, #16]
  102562. 802a1f2: 4605 mov r5, r0
  102563. 802a1f4: b166 cbz r6, 802a210 <_dtoa_r+0x670>
  102564. 802a1f6: 9a06 ldr r2, [sp, #24]
  102565. 802a1f8: 2a00 cmp r2, #0
  102566. 802a1fa: dd09 ble.n 802a210 <_dtoa_r+0x670>
  102567. 802a1fc: 42b2 cmp r2, r6
  102568. 802a1fe: 9905 ldr r1, [sp, #20]
  102569. 802a200: bfa8 it ge
  102570. 802a202: 4632 movge r2, r6
  102571. 802a204: 1a89 subs r1, r1, r2
  102572. 802a206: 9105 str r1, [sp, #20]
  102573. 802a208: 9906 ldr r1, [sp, #24]
  102574. 802a20a: 1ab6 subs r6, r6, r2
  102575. 802a20c: 1a8a subs r2, r1, r2
  102576. 802a20e: 9206 str r2, [sp, #24]
  102577. 802a210: b1fb cbz r3, 802a252 <_dtoa_r+0x6b2>
  102578. 802a212: 9a08 ldr r2, [sp, #32]
  102579. 802a214: 2a00 cmp r2, #0
  102580. 802a216: f000 80bc beq.w 802a392 <_dtoa_r+0x7f2>
  102581. 802a21a: b19c cbz r4, 802a244 <_dtoa_r+0x6a4>
  102582. 802a21c: 4629 mov r1, r5
  102583. 802a21e: 4622 mov r2, r4
  102584. 802a220: 4648 mov r0, r9
  102585. 802a222: 930b str r3, [sp, #44] @ 0x2c
  102586. 802a224: f000 ffa6 bl 802b174 <__pow5mult>
  102587. 802a228: 9a01 ldr r2, [sp, #4]
  102588. 802a22a: 4601 mov r1, r0
  102589. 802a22c: 4605 mov r5, r0
  102590. 802a22e: 4648 mov r0, r9
  102591. 802a230: f000 fef6 bl 802b020 <__multiply>
  102592. 802a234: 9901 ldr r1, [sp, #4]
  102593. 802a236: 9004 str r0, [sp, #16]
  102594. 802a238: 4648 mov r0, r9
  102595. 802a23a: f000 fddd bl 802adf8 <_Bfree>
  102596. 802a23e: 9a04 ldr r2, [sp, #16]
  102597. 802a240: 9b0b ldr r3, [sp, #44] @ 0x2c
  102598. 802a242: 9201 str r2, [sp, #4]
  102599. 802a244: 1b1a subs r2, r3, r4
  102600. 802a246: d004 beq.n 802a252 <_dtoa_r+0x6b2>
  102601. 802a248: 9901 ldr r1, [sp, #4]
  102602. 802a24a: 4648 mov r0, r9
  102603. 802a24c: f000 ff92 bl 802b174 <__pow5mult>
  102604. 802a250: 9001 str r0, [sp, #4]
  102605. 802a252: 2101 movs r1, #1
  102606. 802a254: 4648 mov r0, r9
  102607. 802a256: f000 fecd bl 802aff4 <__i2b>
  102608. 802a25a: 9b0a ldr r3, [sp, #40] @ 0x28
  102609. 802a25c: 4604 mov r4, r0
  102610. 802a25e: 2b00 cmp r3, #0
  102611. 802a260: f000 81d0 beq.w 802a604 <_dtoa_r+0xa64>
  102612. 802a264: 461a mov r2, r3
  102613. 802a266: 4601 mov r1, r0
  102614. 802a268: 4648 mov r0, r9
  102615. 802a26a: f000 ff83 bl 802b174 <__pow5mult>
  102616. 802a26e: 9b07 ldr r3, [sp, #28]
  102617. 802a270: 2b01 cmp r3, #1
  102618. 802a272: 4604 mov r4, r0
  102619. 802a274: f300 8095 bgt.w 802a3a2 <_dtoa_r+0x802>
  102620. 802a278: 9b02 ldr r3, [sp, #8]
  102621. 802a27a: 2b00 cmp r3, #0
  102622. 802a27c: f040 808b bne.w 802a396 <_dtoa_r+0x7f6>
  102623. 802a280: 9b03 ldr r3, [sp, #12]
  102624. 802a282: f3c3 0213 ubfx r2, r3, #0, #20
  102625. 802a286: 2a00 cmp r2, #0
  102626. 802a288: f040 8087 bne.w 802a39a <_dtoa_r+0x7fa>
  102627. 802a28c: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000
  102628. 802a290: 0d12 lsrs r2, r2, #20
  102629. 802a292: 0512 lsls r2, r2, #20
  102630. 802a294: 2a00 cmp r2, #0
  102631. 802a296: f000 8082 beq.w 802a39e <_dtoa_r+0x7fe>
  102632. 802a29a: 9b05 ldr r3, [sp, #20]
  102633. 802a29c: 3301 adds r3, #1
  102634. 802a29e: 9305 str r3, [sp, #20]
  102635. 802a2a0: 9b06 ldr r3, [sp, #24]
  102636. 802a2a2: 3301 adds r3, #1
  102637. 802a2a4: 9306 str r3, [sp, #24]
  102638. 802a2a6: 2301 movs r3, #1
  102639. 802a2a8: 930b str r3, [sp, #44] @ 0x2c
  102640. 802a2aa: 9b0a ldr r3, [sp, #40] @ 0x28
  102641. 802a2ac: 2b00 cmp r3, #0
  102642. 802a2ae: f000 81af beq.w 802a610 <_dtoa_r+0xa70>
  102643. 802a2b2: 6922 ldr r2, [r4, #16]
  102644. 802a2b4: eb04 0282 add.w r2, r4, r2, lsl #2
  102645. 802a2b8: 6910 ldr r0, [r2, #16]
  102646. 802a2ba: f000 fe4f bl 802af5c <__hi0bits>
  102647. 802a2be: f1c0 0020 rsb r0, r0, #32
  102648. 802a2c2: 9b06 ldr r3, [sp, #24]
  102649. 802a2c4: 4418 add r0, r3
  102650. 802a2c6: f010 001f ands.w r0, r0, #31
  102651. 802a2ca: d076 beq.n 802a3ba <_dtoa_r+0x81a>
  102652. 802a2cc: f1c0 0220 rsb r2, r0, #32
  102653. 802a2d0: 2a04 cmp r2, #4
  102654. 802a2d2: dd69 ble.n 802a3a8 <_dtoa_r+0x808>
  102655. 802a2d4: 9b05 ldr r3, [sp, #20]
  102656. 802a2d6: f1c0 001c rsb r0, r0, #28
  102657. 802a2da: 4403 add r3, r0
  102658. 802a2dc: 9305 str r3, [sp, #20]
  102659. 802a2de: 9b06 ldr r3, [sp, #24]
  102660. 802a2e0: 4406 add r6, r0
  102661. 802a2e2: 4403 add r3, r0
  102662. 802a2e4: 9306 str r3, [sp, #24]
  102663. 802a2e6: 9b05 ldr r3, [sp, #20]
  102664. 802a2e8: 2b00 cmp r3, #0
  102665. 802a2ea: dd05 ble.n 802a2f8 <_dtoa_r+0x758>
  102666. 802a2ec: 9901 ldr r1, [sp, #4]
  102667. 802a2ee: 461a mov r2, r3
  102668. 802a2f0: 4648 mov r0, r9
  102669. 802a2f2: f000 ff99 bl 802b228 <__lshift>
  102670. 802a2f6: 9001 str r0, [sp, #4]
  102671. 802a2f8: 9b06 ldr r3, [sp, #24]
  102672. 802a2fa: 2b00 cmp r3, #0
  102673. 802a2fc: dd05 ble.n 802a30a <_dtoa_r+0x76a>
  102674. 802a2fe: 4621 mov r1, r4
  102675. 802a300: 461a mov r2, r3
  102676. 802a302: 4648 mov r0, r9
  102677. 802a304: f000 ff90 bl 802b228 <__lshift>
  102678. 802a308: 4604 mov r4, r0
  102679. 802a30a: 9b0c ldr r3, [sp, #48] @ 0x30
  102680. 802a30c: 2b00 cmp r3, #0
  102681. 802a30e: d056 beq.n 802a3be <_dtoa_r+0x81e>
  102682. 802a310: 9801 ldr r0, [sp, #4]
  102683. 802a312: 4621 mov r1, r4
  102684. 802a314: f000 fff4 bl 802b300 <__mcmp>
  102685. 802a318: 2800 cmp r0, #0
  102686. 802a31a: da50 bge.n 802a3be <_dtoa_r+0x81e>
  102687. 802a31c: f108 33ff add.w r3, r8, #4294967295 @ 0xffffffff
  102688. 802a320: 9304 str r3, [sp, #16]
  102689. 802a322: 9901 ldr r1, [sp, #4]
  102690. 802a324: 2300 movs r3, #0
  102691. 802a326: 220a movs r2, #10
  102692. 802a328: 4648 mov r0, r9
  102693. 802a32a: f000 fd87 bl 802ae3c <__multadd>
  102694. 802a32e: 9b08 ldr r3, [sp, #32]
  102695. 802a330: 9001 str r0, [sp, #4]
  102696. 802a332: 2b00 cmp r3, #0
  102697. 802a334: f000 816e beq.w 802a614 <_dtoa_r+0xa74>
  102698. 802a338: 4629 mov r1, r5
  102699. 802a33a: 2300 movs r3, #0
  102700. 802a33c: 220a movs r2, #10
  102701. 802a33e: 4648 mov r0, r9
  102702. 802a340: f000 fd7c bl 802ae3c <__multadd>
  102703. 802a344: f1bb 0f00 cmp.w fp, #0
  102704. 802a348: 4605 mov r5, r0
  102705. 802a34a: dc64 bgt.n 802a416 <_dtoa_r+0x876>
  102706. 802a34c: 9b07 ldr r3, [sp, #28]
  102707. 802a34e: 2b02 cmp r3, #2
  102708. 802a350: dc3e bgt.n 802a3d0 <_dtoa_r+0x830>
  102709. 802a352: e060 b.n 802a416 <_dtoa_r+0x876>
  102710. 802a354: 9a0e ldr r2, [sp, #56] @ 0x38
  102711. 802a356: f1c2 0236 rsb r2, r2, #54 @ 0x36
  102712. 802a35a: e73c b.n 802a1d6 <_dtoa_r+0x636>
  102713. 802a35c: f10a 34ff add.w r4, sl, #4294967295 @ 0xffffffff
  102714. 802a360: 42a3 cmp r3, r4
  102715. 802a362: bfbf itttt lt
  102716. 802a364: 1ae2 sublt r2, r4, r3
  102717. 802a366: 9b0a ldrlt r3, [sp, #40] @ 0x28
  102718. 802a368: 189b addlt r3, r3, r2
  102719. 802a36a: 930a strlt r3, [sp, #40] @ 0x28
  102720. 802a36c: bfae itee ge
  102721. 802a36e: 1b1c subge r4, r3, r4
  102722. 802a370: 4623 movlt r3, r4
  102723. 802a372: 2400 movlt r4, #0
  102724. 802a374: f1ba 0f00 cmp.w sl, #0
  102725. 802a378: bfb5 itete lt
  102726. 802a37a: 9a05 ldrlt r2, [sp, #20]
  102727. 802a37c: 9e05 ldrge r6, [sp, #20]
  102728. 802a37e: eba2 060a sublt.w r6, r2, sl
  102729. 802a382: 4652 movge r2, sl
  102730. 802a384: bfb8 it lt
  102731. 802a386: 2200 movlt r2, #0
  102732. 802a388: e727 b.n 802a1da <_dtoa_r+0x63a>
  102733. 802a38a: 9e05 ldr r6, [sp, #20]
  102734. 802a38c: 9d08 ldr r5, [sp, #32]
  102735. 802a38e: 461c mov r4, r3
  102736. 802a390: e730 b.n 802a1f4 <_dtoa_r+0x654>
  102737. 802a392: 461a mov r2, r3
  102738. 802a394: e758 b.n 802a248 <_dtoa_r+0x6a8>
  102739. 802a396: 2300 movs r3, #0
  102740. 802a398: e786 b.n 802a2a8 <_dtoa_r+0x708>
  102741. 802a39a: 9b02 ldr r3, [sp, #8]
  102742. 802a39c: e784 b.n 802a2a8 <_dtoa_r+0x708>
  102743. 802a39e: 920b str r2, [sp, #44] @ 0x2c
  102744. 802a3a0: e783 b.n 802a2aa <_dtoa_r+0x70a>
  102745. 802a3a2: 2300 movs r3, #0
  102746. 802a3a4: 930b str r3, [sp, #44] @ 0x2c
  102747. 802a3a6: e784 b.n 802a2b2 <_dtoa_r+0x712>
  102748. 802a3a8: d09d beq.n 802a2e6 <_dtoa_r+0x746>
  102749. 802a3aa: 9b05 ldr r3, [sp, #20]
  102750. 802a3ac: 321c adds r2, #28
  102751. 802a3ae: 4413 add r3, r2
  102752. 802a3b0: 9305 str r3, [sp, #20]
  102753. 802a3b2: 9b06 ldr r3, [sp, #24]
  102754. 802a3b4: 4416 add r6, r2
  102755. 802a3b6: 4413 add r3, r2
  102756. 802a3b8: e794 b.n 802a2e4 <_dtoa_r+0x744>
  102757. 802a3ba: 4602 mov r2, r0
  102758. 802a3bc: e7f5 b.n 802a3aa <_dtoa_r+0x80a>
  102759. 802a3be: f1ba 0f00 cmp.w sl, #0
  102760. 802a3c2: f8cd 8010 str.w r8, [sp, #16]
  102761. 802a3c6: 46d3 mov fp, sl
  102762. 802a3c8: dc21 bgt.n 802a40e <_dtoa_r+0x86e>
  102763. 802a3ca: 9b07 ldr r3, [sp, #28]
  102764. 802a3cc: 2b02 cmp r3, #2
  102765. 802a3ce: dd1e ble.n 802a40e <_dtoa_r+0x86e>
  102766. 802a3d0: f1bb 0f00 cmp.w fp, #0
  102767. 802a3d4: f47f aeb7 bne.w 802a146 <_dtoa_r+0x5a6>
  102768. 802a3d8: 4621 mov r1, r4
  102769. 802a3da: 465b mov r3, fp
  102770. 802a3dc: 2205 movs r2, #5
  102771. 802a3de: 4648 mov r0, r9
  102772. 802a3e0: f000 fd2c bl 802ae3c <__multadd>
  102773. 802a3e4: 4601 mov r1, r0
  102774. 802a3e6: 4604 mov r4, r0
  102775. 802a3e8: 9801 ldr r0, [sp, #4]
  102776. 802a3ea: f000 ff89 bl 802b300 <__mcmp>
  102777. 802a3ee: 2800 cmp r0, #0
  102778. 802a3f0: f77f aea9 ble.w 802a146 <_dtoa_r+0x5a6>
  102779. 802a3f4: 463e mov r6, r7
  102780. 802a3f6: 2331 movs r3, #49 @ 0x31
  102781. 802a3f8: f806 3b01 strb.w r3, [r6], #1
  102782. 802a3fc: 9b04 ldr r3, [sp, #16]
  102783. 802a3fe: 3301 adds r3, #1
  102784. 802a400: 9304 str r3, [sp, #16]
  102785. 802a402: e6a4 b.n 802a14e <_dtoa_r+0x5ae>
  102786. 802a404: f8cd 8010 str.w r8, [sp, #16]
  102787. 802a408: 4654 mov r4, sl
  102788. 802a40a: 4625 mov r5, r4
  102789. 802a40c: e7f2 b.n 802a3f4 <_dtoa_r+0x854>
  102790. 802a40e: 9b08 ldr r3, [sp, #32]
  102791. 802a410: 2b00 cmp r3, #0
  102792. 802a412: f000 8103 beq.w 802a61c <_dtoa_r+0xa7c>
  102793. 802a416: 2e00 cmp r6, #0
  102794. 802a418: dd05 ble.n 802a426 <_dtoa_r+0x886>
  102795. 802a41a: 4629 mov r1, r5
  102796. 802a41c: 4632 mov r2, r6
  102797. 802a41e: 4648 mov r0, r9
  102798. 802a420: f000 ff02 bl 802b228 <__lshift>
  102799. 802a424: 4605 mov r5, r0
  102800. 802a426: 9b0b ldr r3, [sp, #44] @ 0x2c
  102801. 802a428: 2b00 cmp r3, #0
  102802. 802a42a: d058 beq.n 802a4de <_dtoa_r+0x93e>
  102803. 802a42c: 6869 ldr r1, [r5, #4]
  102804. 802a42e: 4648 mov r0, r9
  102805. 802a430: f000 fca2 bl 802ad78 <_Balloc>
  102806. 802a434: 4606 mov r6, r0
  102807. 802a436: b928 cbnz r0, 802a444 <_dtoa_r+0x8a4>
  102808. 802a438: 4b82 ldr r3, [pc, #520] @ (802a644 <_dtoa_r+0xaa4>)
  102809. 802a43a: 4602 mov r2, r0
  102810. 802a43c: f240 21ef movw r1, #751 @ 0x2ef
  102811. 802a440: f7ff bbc7 b.w 8029bd2 <_dtoa_r+0x32>
  102812. 802a444: 692a ldr r2, [r5, #16]
  102813. 802a446: 3202 adds r2, #2
  102814. 802a448: 0092 lsls r2, r2, #2
  102815. 802a44a: f105 010c add.w r1, r5, #12
  102816. 802a44e: 300c adds r0, #12
  102817. 802a450: f7ff fae5 bl 8029a1e <memcpy>
  102818. 802a454: 2201 movs r2, #1
  102819. 802a456: 4631 mov r1, r6
  102820. 802a458: 4648 mov r0, r9
  102821. 802a45a: f000 fee5 bl 802b228 <__lshift>
  102822. 802a45e: 1c7b adds r3, r7, #1
  102823. 802a460: 9305 str r3, [sp, #20]
  102824. 802a462: eb07 030b add.w r3, r7, fp
  102825. 802a466: 9309 str r3, [sp, #36] @ 0x24
  102826. 802a468: 9b02 ldr r3, [sp, #8]
  102827. 802a46a: f003 0301 and.w r3, r3, #1
  102828. 802a46e: 46a8 mov r8, r5
  102829. 802a470: 9308 str r3, [sp, #32]
  102830. 802a472: 4605 mov r5, r0
  102831. 802a474: 9b05 ldr r3, [sp, #20]
  102832. 802a476: 9801 ldr r0, [sp, #4]
  102833. 802a478: 4621 mov r1, r4
  102834. 802a47a: f103 3bff add.w fp, r3, #4294967295 @ 0xffffffff
  102835. 802a47e: f7ff fb05 bl 8029a8c <quorem>
  102836. 802a482: 4641 mov r1, r8
  102837. 802a484: 9002 str r0, [sp, #8]
  102838. 802a486: f100 0a30 add.w sl, r0, #48 @ 0x30
  102839. 802a48a: 9801 ldr r0, [sp, #4]
  102840. 802a48c: f000 ff38 bl 802b300 <__mcmp>
  102841. 802a490: 462a mov r2, r5
  102842. 802a492: 9006 str r0, [sp, #24]
  102843. 802a494: 4621 mov r1, r4
  102844. 802a496: 4648 mov r0, r9
  102845. 802a498: f000 ff4e bl 802b338 <__mdiff>
  102846. 802a49c: 68c2 ldr r2, [r0, #12]
  102847. 802a49e: 4606 mov r6, r0
  102848. 802a4a0: b9fa cbnz r2, 802a4e2 <_dtoa_r+0x942>
  102849. 802a4a2: 4601 mov r1, r0
  102850. 802a4a4: 9801 ldr r0, [sp, #4]
  102851. 802a4a6: f000 ff2b bl 802b300 <__mcmp>
  102852. 802a4aa: 4602 mov r2, r0
  102853. 802a4ac: 4631 mov r1, r6
  102854. 802a4ae: 4648 mov r0, r9
  102855. 802a4b0: 920a str r2, [sp, #40] @ 0x28
  102856. 802a4b2: f000 fca1 bl 802adf8 <_Bfree>
  102857. 802a4b6: 9b07 ldr r3, [sp, #28]
  102858. 802a4b8: 9a0a ldr r2, [sp, #40] @ 0x28
  102859. 802a4ba: 9e05 ldr r6, [sp, #20]
  102860. 802a4bc: ea43 0102 orr.w r1, r3, r2
  102861. 802a4c0: 9b08 ldr r3, [sp, #32]
  102862. 802a4c2: 4319 orrs r1, r3
  102863. 802a4c4: d10f bne.n 802a4e6 <_dtoa_r+0x946>
  102864. 802a4c6: f1ba 0f39 cmp.w sl, #57 @ 0x39
  102865. 802a4ca: d028 beq.n 802a51e <_dtoa_r+0x97e>
  102866. 802a4cc: 9b06 ldr r3, [sp, #24]
  102867. 802a4ce: 2b00 cmp r3, #0
  102868. 802a4d0: dd02 ble.n 802a4d8 <_dtoa_r+0x938>
  102869. 802a4d2: 9b02 ldr r3, [sp, #8]
  102870. 802a4d4: f103 0a31 add.w sl, r3, #49 @ 0x31
  102871. 802a4d8: f88b a000 strb.w sl, [fp]
  102872. 802a4dc: e639 b.n 802a152 <_dtoa_r+0x5b2>
  102873. 802a4de: 4628 mov r0, r5
  102874. 802a4e0: e7bd b.n 802a45e <_dtoa_r+0x8be>
  102875. 802a4e2: 2201 movs r2, #1
  102876. 802a4e4: e7e2 b.n 802a4ac <_dtoa_r+0x90c>
  102877. 802a4e6: 9b06 ldr r3, [sp, #24]
  102878. 802a4e8: 2b00 cmp r3, #0
  102879. 802a4ea: db04 blt.n 802a4f6 <_dtoa_r+0x956>
  102880. 802a4ec: 9907 ldr r1, [sp, #28]
  102881. 802a4ee: 430b orrs r3, r1
  102882. 802a4f0: 9908 ldr r1, [sp, #32]
  102883. 802a4f2: 430b orrs r3, r1
  102884. 802a4f4: d120 bne.n 802a538 <_dtoa_r+0x998>
  102885. 802a4f6: 2a00 cmp r2, #0
  102886. 802a4f8: ddee ble.n 802a4d8 <_dtoa_r+0x938>
  102887. 802a4fa: 9901 ldr r1, [sp, #4]
  102888. 802a4fc: 2201 movs r2, #1
  102889. 802a4fe: 4648 mov r0, r9
  102890. 802a500: f000 fe92 bl 802b228 <__lshift>
  102891. 802a504: 4621 mov r1, r4
  102892. 802a506: 9001 str r0, [sp, #4]
  102893. 802a508: f000 fefa bl 802b300 <__mcmp>
  102894. 802a50c: 2800 cmp r0, #0
  102895. 802a50e: dc03 bgt.n 802a518 <_dtoa_r+0x978>
  102896. 802a510: d1e2 bne.n 802a4d8 <_dtoa_r+0x938>
  102897. 802a512: f01a 0f01 tst.w sl, #1
  102898. 802a516: d0df beq.n 802a4d8 <_dtoa_r+0x938>
  102899. 802a518: f1ba 0f39 cmp.w sl, #57 @ 0x39
  102900. 802a51c: d1d9 bne.n 802a4d2 <_dtoa_r+0x932>
  102901. 802a51e: 2339 movs r3, #57 @ 0x39
  102902. 802a520: f88b 3000 strb.w r3, [fp]
  102903. 802a524: 4633 mov r3, r6
  102904. 802a526: 461e mov r6, r3
  102905. 802a528: 3b01 subs r3, #1
  102906. 802a52a: f816 2c01 ldrb.w r2, [r6, #-1]
  102907. 802a52e: 2a39 cmp r2, #57 @ 0x39
  102908. 802a530: d053 beq.n 802a5da <_dtoa_r+0xa3a>
  102909. 802a532: 3201 adds r2, #1
  102910. 802a534: 701a strb r2, [r3, #0]
  102911. 802a536: e60c b.n 802a152 <_dtoa_r+0x5b2>
  102912. 802a538: 2a00 cmp r2, #0
  102913. 802a53a: dd07 ble.n 802a54c <_dtoa_r+0x9ac>
  102914. 802a53c: f1ba 0f39 cmp.w sl, #57 @ 0x39
  102915. 802a540: d0ed beq.n 802a51e <_dtoa_r+0x97e>
  102916. 802a542: f10a 0301 add.w r3, sl, #1
  102917. 802a546: f88b 3000 strb.w r3, [fp]
  102918. 802a54a: e602 b.n 802a152 <_dtoa_r+0x5b2>
  102919. 802a54c: 9b05 ldr r3, [sp, #20]
  102920. 802a54e: 9a05 ldr r2, [sp, #20]
  102921. 802a550: f803 ac01 strb.w sl, [r3, #-1]
  102922. 802a554: 9b09 ldr r3, [sp, #36] @ 0x24
  102923. 802a556: 4293 cmp r3, r2
  102924. 802a558: d029 beq.n 802a5ae <_dtoa_r+0xa0e>
  102925. 802a55a: 9901 ldr r1, [sp, #4]
  102926. 802a55c: 2300 movs r3, #0
  102927. 802a55e: 220a movs r2, #10
  102928. 802a560: 4648 mov r0, r9
  102929. 802a562: f000 fc6b bl 802ae3c <__multadd>
  102930. 802a566: 45a8 cmp r8, r5
  102931. 802a568: 9001 str r0, [sp, #4]
  102932. 802a56a: f04f 0300 mov.w r3, #0
  102933. 802a56e: f04f 020a mov.w r2, #10
  102934. 802a572: 4641 mov r1, r8
  102935. 802a574: 4648 mov r0, r9
  102936. 802a576: d107 bne.n 802a588 <_dtoa_r+0x9e8>
  102937. 802a578: f000 fc60 bl 802ae3c <__multadd>
  102938. 802a57c: 4680 mov r8, r0
  102939. 802a57e: 4605 mov r5, r0
  102940. 802a580: 9b05 ldr r3, [sp, #20]
  102941. 802a582: 3301 adds r3, #1
  102942. 802a584: 9305 str r3, [sp, #20]
  102943. 802a586: e775 b.n 802a474 <_dtoa_r+0x8d4>
  102944. 802a588: f000 fc58 bl 802ae3c <__multadd>
  102945. 802a58c: 4629 mov r1, r5
  102946. 802a58e: 4680 mov r8, r0
  102947. 802a590: 2300 movs r3, #0
  102948. 802a592: 220a movs r2, #10
  102949. 802a594: 4648 mov r0, r9
  102950. 802a596: f000 fc51 bl 802ae3c <__multadd>
  102951. 802a59a: 4605 mov r5, r0
  102952. 802a59c: e7f0 b.n 802a580 <_dtoa_r+0x9e0>
  102953. 802a59e: f1bb 0f00 cmp.w fp, #0
  102954. 802a5a2: bfcc ite gt
  102955. 802a5a4: 465e movgt r6, fp
  102956. 802a5a6: 2601 movle r6, #1
  102957. 802a5a8: 443e add r6, r7
  102958. 802a5aa: f04f 0800 mov.w r8, #0
  102959. 802a5ae: 9901 ldr r1, [sp, #4]
  102960. 802a5b0: 2201 movs r2, #1
  102961. 802a5b2: 4648 mov r0, r9
  102962. 802a5b4: f000 fe38 bl 802b228 <__lshift>
  102963. 802a5b8: 4621 mov r1, r4
  102964. 802a5ba: 9001 str r0, [sp, #4]
  102965. 802a5bc: f000 fea0 bl 802b300 <__mcmp>
  102966. 802a5c0: 2800 cmp r0, #0
  102967. 802a5c2: dcaf bgt.n 802a524 <_dtoa_r+0x984>
  102968. 802a5c4: d102 bne.n 802a5cc <_dtoa_r+0xa2c>
  102969. 802a5c6: f01a 0f01 tst.w sl, #1
  102970. 802a5ca: d1ab bne.n 802a524 <_dtoa_r+0x984>
  102971. 802a5cc: 4633 mov r3, r6
  102972. 802a5ce: 461e mov r6, r3
  102973. 802a5d0: f813 2d01 ldrb.w r2, [r3, #-1]!
  102974. 802a5d4: 2a30 cmp r2, #48 @ 0x30
  102975. 802a5d6: d0fa beq.n 802a5ce <_dtoa_r+0xa2e>
  102976. 802a5d8: e5bb b.n 802a152 <_dtoa_r+0x5b2>
  102977. 802a5da: 429f cmp r7, r3
  102978. 802a5dc: d1a3 bne.n 802a526 <_dtoa_r+0x986>
  102979. 802a5de: 9b04 ldr r3, [sp, #16]
  102980. 802a5e0: 3301 adds r3, #1
  102981. 802a5e2: 9304 str r3, [sp, #16]
  102982. 802a5e4: 2331 movs r3, #49 @ 0x31
  102983. 802a5e6: 703b strb r3, [r7, #0]
  102984. 802a5e8: e5b3 b.n 802a152 <_dtoa_r+0x5b2>
  102985. 802a5ea: 9b1d ldr r3, [sp, #116] @ 0x74
  102986. 802a5ec: 4f16 ldr r7, [pc, #88] @ (802a648 <_dtoa_r+0xaa8>)
  102987. 802a5ee: b11b cbz r3, 802a5f8 <_dtoa_r+0xa58>
  102988. 802a5f0: f107 0308 add.w r3, r7, #8
  102989. 802a5f4: 9a1d ldr r2, [sp, #116] @ 0x74
  102990. 802a5f6: 6013 str r3, [r2, #0]
  102991. 802a5f8: 4638 mov r0, r7
  102992. 802a5fa: b011 add sp, #68 @ 0x44
  102993. 802a5fc: ecbd 8b02 vpop {d8}
  102994. 802a600: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  102995. 802a604: 9b07 ldr r3, [sp, #28]
  102996. 802a606: 2b01 cmp r3, #1
  102997. 802a608: f77f ae36 ble.w 802a278 <_dtoa_r+0x6d8>
  102998. 802a60c: 9b0a ldr r3, [sp, #40] @ 0x28
  102999. 802a60e: 930b str r3, [sp, #44] @ 0x2c
  103000. 802a610: 2001 movs r0, #1
  103001. 802a612: e656 b.n 802a2c2 <_dtoa_r+0x722>
  103002. 802a614: f1bb 0f00 cmp.w fp, #0
  103003. 802a618: f77f aed7 ble.w 802a3ca <_dtoa_r+0x82a>
  103004. 802a61c: 463e mov r6, r7
  103005. 802a61e: 9801 ldr r0, [sp, #4]
  103006. 802a620: 4621 mov r1, r4
  103007. 802a622: f7ff fa33 bl 8029a8c <quorem>
  103008. 802a626: f100 0a30 add.w sl, r0, #48 @ 0x30
  103009. 802a62a: f806 ab01 strb.w sl, [r6], #1
  103010. 802a62e: 1bf2 subs r2, r6, r7
  103011. 802a630: 4593 cmp fp, r2
  103012. 802a632: ddb4 ble.n 802a59e <_dtoa_r+0x9fe>
  103013. 802a634: 9901 ldr r1, [sp, #4]
  103014. 802a636: 2300 movs r3, #0
  103015. 802a638: 220a movs r2, #10
  103016. 802a63a: 4648 mov r0, r9
  103017. 802a63c: f000 fbfe bl 802ae3c <__multadd>
  103018. 802a640: 9001 str r0, [sp, #4]
  103019. 802a642: e7ec b.n 802a61e <_dtoa_r+0xa7e>
  103020. 802a644: 08030a5e .word 0x08030a5e
  103021. 802a648: 080309f9 .word 0x080309f9
  103022. 0802a64c <_free_r>:
  103023. 802a64c: b538 push {r3, r4, r5, lr}
  103024. 802a64e: 4605 mov r5, r0
  103025. 802a650: 2900 cmp r1, #0
  103026. 802a652: d041 beq.n 802a6d8 <_free_r+0x8c>
  103027. 802a654: f851 3c04 ldr.w r3, [r1, #-4]
  103028. 802a658: 1f0c subs r4, r1, #4
  103029. 802a65a: 2b00 cmp r3, #0
  103030. 802a65c: bfb8 it lt
  103031. 802a65e: 18e4 addlt r4, r4, r3
  103032. 802a660: f7fd fc1e bl 8027ea0 <__malloc_lock>
  103033. 802a664: 4a1d ldr r2, [pc, #116] @ (802a6dc <_free_r+0x90>)
  103034. 802a666: 6813 ldr r3, [r2, #0]
  103035. 802a668: b933 cbnz r3, 802a678 <_free_r+0x2c>
  103036. 802a66a: 6063 str r3, [r4, #4]
  103037. 802a66c: 6014 str r4, [r2, #0]
  103038. 802a66e: 4628 mov r0, r5
  103039. 802a670: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  103040. 802a674: f7fd bc1a b.w 8027eac <__malloc_unlock>
  103041. 802a678: 42a3 cmp r3, r4
  103042. 802a67a: d908 bls.n 802a68e <_free_r+0x42>
  103043. 802a67c: 6820 ldr r0, [r4, #0]
  103044. 802a67e: 1821 adds r1, r4, r0
  103045. 802a680: 428b cmp r3, r1
  103046. 802a682: bf01 itttt eq
  103047. 802a684: 6819 ldreq r1, [r3, #0]
  103048. 802a686: 685b ldreq r3, [r3, #4]
  103049. 802a688: 1809 addeq r1, r1, r0
  103050. 802a68a: 6021 streq r1, [r4, #0]
  103051. 802a68c: e7ed b.n 802a66a <_free_r+0x1e>
  103052. 802a68e: 461a mov r2, r3
  103053. 802a690: 685b ldr r3, [r3, #4]
  103054. 802a692: b10b cbz r3, 802a698 <_free_r+0x4c>
  103055. 802a694: 42a3 cmp r3, r4
  103056. 802a696: d9fa bls.n 802a68e <_free_r+0x42>
  103057. 802a698: 6811 ldr r1, [r2, #0]
  103058. 802a69a: 1850 adds r0, r2, r1
  103059. 802a69c: 42a0 cmp r0, r4
  103060. 802a69e: d10b bne.n 802a6b8 <_free_r+0x6c>
  103061. 802a6a0: 6820 ldr r0, [r4, #0]
  103062. 802a6a2: 4401 add r1, r0
  103063. 802a6a4: 1850 adds r0, r2, r1
  103064. 802a6a6: 4283 cmp r3, r0
  103065. 802a6a8: 6011 str r1, [r2, #0]
  103066. 802a6aa: d1e0 bne.n 802a66e <_free_r+0x22>
  103067. 802a6ac: 6818 ldr r0, [r3, #0]
  103068. 802a6ae: 685b ldr r3, [r3, #4]
  103069. 802a6b0: 6053 str r3, [r2, #4]
  103070. 802a6b2: 4408 add r0, r1
  103071. 802a6b4: 6010 str r0, [r2, #0]
  103072. 802a6b6: e7da b.n 802a66e <_free_r+0x22>
  103073. 802a6b8: d902 bls.n 802a6c0 <_free_r+0x74>
  103074. 802a6ba: 230c movs r3, #12
  103075. 802a6bc: 602b str r3, [r5, #0]
  103076. 802a6be: e7d6 b.n 802a66e <_free_r+0x22>
  103077. 802a6c0: 6820 ldr r0, [r4, #0]
  103078. 802a6c2: 1821 adds r1, r4, r0
  103079. 802a6c4: 428b cmp r3, r1
  103080. 802a6c6: bf04 itt eq
  103081. 802a6c8: 6819 ldreq r1, [r3, #0]
  103082. 802a6ca: 685b ldreq r3, [r3, #4]
  103083. 802a6cc: 6063 str r3, [r4, #4]
  103084. 802a6ce: bf04 itt eq
  103085. 802a6d0: 1809 addeq r1, r1, r0
  103086. 802a6d2: 6021 streq r1, [r4, #0]
  103087. 802a6d4: 6054 str r4, [r2, #4]
  103088. 802a6d6: e7ca b.n 802a66e <_free_r+0x22>
  103089. 802a6d8: bd38 pop {r3, r4, r5, pc}
  103090. 802a6da: bf00 nop
  103091. 802a6dc: 2402a1a4 .word 0x2402a1a4
  103092. 0802a6e0 <rshift>:
  103093. 802a6e0: 6903 ldr r3, [r0, #16]
  103094. 802a6e2: ebb3 1f61 cmp.w r3, r1, asr #5
  103095. 802a6e6: e92d 43f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, lr}
  103096. 802a6ea: ea4f 1261 mov.w r2, r1, asr #5
  103097. 802a6ee: f100 0414 add.w r4, r0, #20
  103098. 802a6f2: dd45 ble.n 802a780 <rshift+0xa0>
  103099. 802a6f4: f011 011f ands.w r1, r1, #31
  103100. 802a6f8: eb04 0683 add.w r6, r4, r3, lsl #2
  103101. 802a6fc: eb04 0582 add.w r5, r4, r2, lsl #2
  103102. 802a700: d10c bne.n 802a71c <rshift+0x3c>
  103103. 802a702: f100 0710 add.w r7, r0, #16
  103104. 802a706: 4629 mov r1, r5
  103105. 802a708: 42b1 cmp r1, r6
  103106. 802a70a: d334 bcc.n 802a776 <rshift+0x96>
  103107. 802a70c: 1a9b subs r3, r3, r2
  103108. 802a70e: 009b lsls r3, r3, #2
  103109. 802a710: 1eea subs r2, r5, #3
  103110. 802a712: 4296 cmp r6, r2
  103111. 802a714: bf38 it cc
  103112. 802a716: 2300 movcc r3, #0
  103113. 802a718: 4423 add r3, r4
  103114. 802a71a: e015 b.n 802a748 <rshift+0x68>
  103115. 802a71c: f854 7022 ldr.w r7, [r4, r2, lsl #2]
  103116. 802a720: f1c1 0820 rsb r8, r1, #32
  103117. 802a724: 40cf lsrs r7, r1
  103118. 802a726: f105 0e04 add.w lr, r5, #4
  103119. 802a72a: 46a1 mov r9, r4
  103120. 802a72c: 4576 cmp r6, lr
  103121. 802a72e: 46f4 mov ip, lr
  103122. 802a730: d815 bhi.n 802a75e <rshift+0x7e>
  103123. 802a732: 1a9a subs r2, r3, r2
  103124. 802a734: 0092 lsls r2, r2, #2
  103125. 802a736: 3a04 subs r2, #4
  103126. 802a738: 3501 adds r5, #1
  103127. 802a73a: 42ae cmp r6, r5
  103128. 802a73c: bf38 it cc
  103129. 802a73e: 2200 movcc r2, #0
  103130. 802a740: 18a3 adds r3, r4, r2
  103131. 802a742: 50a7 str r7, [r4, r2]
  103132. 802a744: b107 cbz r7, 802a748 <rshift+0x68>
  103133. 802a746: 3304 adds r3, #4
  103134. 802a748: 1b1a subs r2, r3, r4
  103135. 802a74a: 42a3 cmp r3, r4
  103136. 802a74c: ea4f 02a2 mov.w r2, r2, asr #2
  103137. 802a750: bf08 it eq
  103138. 802a752: 2300 moveq r3, #0
  103139. 802a754: 6102 str r2, [r0, #16]
  103140. 802a756: bf08 it eq
  103141. 802a758: 6143 streq r3, [r0, #20]
  103142. 802a75a: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc}
  103143. 802a75e: f8dc c000 ldr.w ip, [ip]
  103144. 802a762: fa0c fc08 lsl.w ip, ip, r8
  103145. 802a766: ea4c 0707 orr.w r7, ip, r7
  103146. 802a76a: f849 7b04 str.w r7, [r9], #4
  103147. 802a76e: f85e 7b04 ldr.w r7, [lr], #4
  103148. 802a772: 40cf lsrs r7, r1
  103149. 802a774: e7da b.n 802a72c <rshift+0x4c>
  103150. 802a776: f851 cb04 ldr.w ip, [r1], #4
  103151. 802a77a: f847 cf04 str.w ip, [r7, #4]!
  103152. 802a77e: e7c3 b.n 802a708 <rshift+0x28>
  103153. 802a780: 4623 mov r3, r4
  103154. 802a782: e7e1 b.n 802a748 <rshift+0x68>
  103155. 0802a784 <__hexdig_fun>:
  103156. 802a784: f1a0 0330 sub.w r3, r0, #48 @ 0x30
  103157. 802a788: 2b09 cmp r3, #9
  103158. 802a78a: d802 bhi.n 802a792 <__hexdig_fun+0xe>
  103159. 802a78c: 3820 subs r0, #32
  103160. 802a78e: b2c0 uxtb r0, r0
  103161. 802a790: 4770 bx lr
  103162. 802a792: f1a0 0361 sub.w r3, r0, #97 @ 0x61
  103163. 802a796: 2b05 cmp r3, #5
  103164. 802a798: d801 bhi.n 802a79e <__hexdig_fun+0x1a>
  103165. 802a79a: 3847 subs r0, #71 @ 0x47
  103166. 802a79c: e7f7 b.n 802a78e <__hexdig_fun+0xa>
  103167. 802a79e: f1a0 0341 sub.w r3, r0, #65 @ 0x41
  103168. 802a7a2: 2b05 cmp r3, #5
  103169. 802a7a4: d801 bhi.n 802a7aa <__hexdig_fun+0x26>
  103170. 802a7a6: 3827 subs r0, #39 @ 0x27
  103171. 802a7a8: e7f1 b.n 802a78e <__hexdig_fun+0xa>
  103172. 802a7aa: 2000 movs r0, #0
  103173. 802a7ac: 4770 bx lr
  103174. ...
  103175. 0802a7b0 <__gethex>:
  103176. 802a7b0: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  103177. 802a7b4: b085 sub sp, #20
  103178. 802a7b6: 468a mov sl, r1
  103179. 802a7b8: 9302 str r3, [sp, #8]
  103180. 802a7ba: 680b ldr r3, [r1, #0]
  103181. 802a7bc: 9001 str r0, [sp, #4]
  103182. 802a7be: 4690 mov r8, r2
  103183. 802a7c0: 1c9c adds r4, r3, #2
  103184. 802a7c2: 46a1 mov r9, r4
  103185. 802a7c4: f814 0b01 ldrb.w r0, [r4], #1
  103186. 802a7c8: 2830 cmp r0, #48 @ 0x30
  103187. 802a7ca: d0fa beq.n 802a7c2 <__gethex+0x12>
  103188. 802a7cc: eba9 0303 sub.w r3, r9, r3
  103189. 802a7d0: f1a3 0b02 sub.w fp, r3, #2
  103190. 802a7d4: f7ff ffd6 bl 802a784 <__hexdig_fun>
  103191. 802a7d8: 4605 mov r5, r0
  103192. 802a7da: 2800 cmp r0, #0
  103193. 802a7dc: d168 bne.n 802a8b0 <__gethex+0x100>
  103194. 802a7de: 49a0 ldr r1, [pc, #640] @ (802aa60 <__gethex+0x2b0>)
  103195. 802a7e0: 2201 movs r2, #1
  103196. 802a7e2: 4648 mov r0, r9
  103197. 802a7e4: f7ff f82c bl 8029840 <strncmp>
  103198. 802a7e8: 4607 mov r7, r0
  103199. 802a7ea: 2800 cmp r0, #0
  103200. 802a7ec: d167 bne.n 802a8be <__gethex+0x10e>
  103201. 802a7ee: f899 0001 ldrb.w r0, [r9, #1]
  103202. 802a7f2: 4626 mov r6, r4
  103203. 802a7f4: f7ff ffc6 bl 802a784 <__hexdig_fun>
  103204. 802a7f8: 2800 cmp r0, #0
  103205. 802a7fa: d062 beq.n 802a8c2 <__gethex+0x112>
  103206. 802a7fc: 4623 mov r3, r4
  103207. 802a7fe: 7818 ldrb r0, [r3, #0]
  103208. 802a800: 2830 cmp r0, #48 @ 0x30
  103209. 802a802: 4699 mov r9, r3
  103210. 802a804: f103 0301 add.w r3, r3, #1
  103211. 802a808: d0f9 beq.n 802a7fe <__gethex+0x4e>
  103212. 802a80a: f7ff ffbb bl 802a784 <__hexdig_fun>
  103213. 802a80e: fab0 f580 clz r5, r0
  103214. 802a812: 096d lsrs r5, r5, #5
  103215. 802a814: f04f 0b01 mov.w fp, #1
  103216. 802a818: 464a mov r2, r9
  103217. 802a81a: 4616 mov r6, r2
  103218. 802a81c: 3201 adds r2, #1
  103219. 802a81e: 7830 ldrb r0, [r6, #0]
  103220. 802a820: f7ff ffb0 bl 802a784 <__hexdig_fun>
  103221. 802a824: 2800 cmp r0, #0
  103222. 802a826: d1f8 bne.n 802a81a <__gethex+0x6a>
  103223. 802a828: 498d ldr r1, [pc, #564] @ (802aa60 <__gethex+0x2b0>)
  103224. 802a82a: 2201 movs r2, #1
  103225. 802a82c: 4630 mov r0, r6
  103226. 802a82e: f7ff f807 bl 8029840 <strncmp>
  103227. 802a832: 2800 cmp r0, #0
  103228. 802a834: d13f bne.n 802a8b6 <__gethex+0x106>
  103229. 802a836: b944 cbnz r4, 802a84a <__gethex+0x9a>
  103230. 802a838: 1c74 adds r4, r6, #1
  103231. 802a83a: 4622 mov r2, r4
  103232. 802a83c: 4616 mov r6, r2
  103233. 802a83e: 3201 adds r2, #1
  103234. 802a840: 7830 ldrb r0, [r6, #0]
  103235. 802a842: f7ff ff9f bl 802a784 <__hexdig_fun>
  103236. 802a846: 2800 cmp r0, #0
  103237. 802a848: d1f8 bne.n 802a83c <__gethex+0x8c>
  103238. 802a84a: 1ba4 subs r4, r4, r6
  103239. 802a84c: 00a7 lsls r7, r4, #2
  103240. 802a84e: 7833 ldrb r3, [r6, #0]
  103241. 802a850: f003 03df and.w r3, r3, #223 @ 0xdf
  103242. 802a854: 2b50 cmp r3, #80 @ 0x50
  103243. 802a856: d13e bne.n 802a8d6 <__gethex+0x126>
  103244. 802a858: 7873 ldrb r3, [r6, #1]
  103245. 802a85a: 2b2b cmp r3, #43 @ 0x2b
  103246. 802a85c: d033 beq.n 802a8c6 <__gethex+0x116>
  103247. 802a85e: 2b2d cmp r3, #45 @ 0x2d
  103248. 802a860: d034 beq.n 802a8cc <__gethex+0x11c>
  103249. 802a862: 1c71 adds r1, r6, #1
  103250. 802a864: 2400 movs r4, #0
  103251. 802a866: 7808 ldrb r0, [r1, #0]
  103252. 802a868: f7ff ff8c bl 802a784 <__hexdig_fun>
  103253. 802a86c: 1e43 subs r3, r0, #1
  103254. 802a86e: b2db uxtb r3, r3
  103255. 802a870: 2b18 cmp r3, #24
  103256. 802a872: d830 bhi.n 802a8d6 <__gethex+0x126>
  103257. 802a874: f1a0 0210 sub.w r2, r0, #16
  103258. 802a878: f811 0f01 ldrb.w r0, [r1, #1]!
  103259. 802a87c: f7ff ff82 bl 802a784 <__hexdig_fun>
  103260. 802a880: f100 3cff add.w ip, r0, #4294967295 @ 0xffffffff
  103261. 802a884: fa5f fc8c uxtb.w ip, ip
  103262. 802a888: f1bc 0f18 cmp.w ip, #24
  103263. 802a88c: f04f 030a mov.w r3, #10
  103264. 802a890: d91e bls.n 802a8d0 <__gethex+0x120>
  103265. 802a892: b104 cbz r4, 802a896 <__gethex+0xe6>
  103266. 802a894: 4252 negs r2, r2
  103267. 802a896: 4417 add r7, r2
  103268. 802a898: f8ca 1000 str.w r1, [sl]
  103269. 802a89c: b1ed cbz r5, 802a8da <__gethex+0x12a>
  103270. 802a89e: f1bb 0f00 cmp.w fp, #0
  103271. 802a8a2: bf0c ite eq
  103272. 802a8a4: 2506 moveq r5, #6
  103273. 802a8a6: 2500 movne r5, #0
  103274. 802a8a8: 4628 mov r0, r5
  103275. 802a8aa: b005 add sp, #20
  103276. 802a8ac: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  103277. 802a8b0: 2500 movs r5, #0
  103278. 802a8b2: 462c mov r4, r5
  103279. 802a8b4: e7b0 b.n 802a818 <__gethex+0x68>
  103280. 802a8b6: 2c00 cmp r4, #0
  103281. 802a8b8: d1c7 bne.n 802a84a <__gethex+0x9a>
  103282. 802a8ba: 4627 mov r7, r4
  103283. 802a8bc: e7c7 b.n 802a84e <__gethex+0x9e>
  103284. 802a8be: 464e mov r6, r9
  103285. 802a8c0: 462f mov r7, r5
  103286. 802a8c2: 2501 movs r5, #1
  103287. 802a8c4: e7c3 b.n 802a84e <__gethex+0x9e>
  103288. 802a8c6: 2400 movs r4, #0
  103289. 802a8c8: 1cb1 adds r1, r6, #2
  103290. 802a8ca: e7cc b.n 802a866 <__gethex+0xb6>
  103291. 802a8cc: 2401 movs r4, #1
  103292. 802a8ce: e7fb b.n 802a8c8 <__gethex+0x118>
  103293. 802a8d0: fb03 0002 mla r0, r3, r2, r0
  103294. 802a8d4: e7ce b.n 802a874 <__gethex+0xc4>
  103295. 802a8d6: 4631 mov r1, r6
  103296. 802a8d8: e7de b.n 802a898 <__gethex+0xe8>
  103297. 802a8da: eba6 0309 sub.w r3, r6, r9
  103298. 802a8de: 3b01 subs r3, #1
  103299. 802a8e0: 4629 mov r1, r5
  103300. 802a8e2: 2b07 cmp r3, #7
  103301. 802a8e4: dc0a bgt.n 802a8fc <__gethex+0x14c>
  103302. 802a8e6: 9801 ldr r0, [sp, #4]
  103303. 802a8e8: f000 fa46 bl 802ad78 <_Balloc>
  103304. 802a8ec: 4604 mov r4, r0
  103305. 802a8ee: b940 cbnz r0, 802a902 <__gethex+0x152>
  103306. 802a8f0: 4b5c ldr r3, [pc, #368] @ (802aa64 <__gethex+0x2b4>)
  103307. 802a8f2: 4602 mov r2, r0
  103308. 802a8f4: 21e4 movs r1, #228 @ 0xe4
  103309. 802a8f6: 485c ldr r0, [pc, #368] @ (802aa68 <__gethex+0x2b8>)
  103310. 802a8f8: f7ff f8aa bl 8029a50 <__assert_func>
  103311. 802a8fc: 3101 adds r1, #1
  103312. 802a8fe: 105b asrs r3, r3, #1
  103313. 802a900: e7ef b.n 802a8e2 <__gethex+0x132>
  103314. 802a902: f100 0a14 add.w sl, r0, #20
  103315. 802a906: 2300 movs r3, #0
  103316. 802a908: 4655 mov r5, sl
  103317. 802a90a: 469b mov fp, r3
  103318. 802a90c: 45b1 cmp r9, r6
  103319. 802a90e: d337 bcc.n 802a980 <__gethex+0x1d0>
  103320. 802a910: f845 bb04 str.w fp, [r5], #4
  103321. 802a914: eba5 050a sub.w r5, r5, sl
  103322. 802a918: 10ad asrs r5, r5, #2
  103323. 802a91a: 6125 str r5, [r4, #16]
  103324. 802a91c: 4658 mov r0, fp
  103325. 802a91e: f000 fb1d bl 802af5c <__hi0bits>
  103326. 802a922: 016d lsls r5, r5, #5
  103327. 802a924: f8d8 6000 ldr.w r6, [r8]
  103328. 802a928: 1a2d subs r5, r5, r0
  103329. 802a92a: 42b5 cmp r5, r6
  103330. 802a92c: dd54 ble.n 802a9d8 <__gethex+0x228>
  103331. 802a92e: 1bad subs r5, r5, r6
  103332. 802a930: 4629 mov r1, r5
  103333. 802a932: 4620 mov r0, r4
  103334. 802a934: f000 feae bl 802b694 <__any_on>
  103335. 802a938: 4681 mov r9, r0
  103336. 802a93a: b178 cbz r0, 802a95c <__gethex+0x1ac>
  103337. 802a93c: 1e6b subs r3, r5, #1
  103338. 802a93e: 1159 asrs r1, r3, #5
  103339. 802a940: f003 021f and.w r2, r3, #31
  103340. 802a944: f85a 1021 ldr.w r1, [sl, r1, lsl #2]
  103341. 802a948: f04f 0901 mov.w r9, #1
  103342. 802a94c: fa09 f202 lsl.w r2, r9, r2
  103343. 802a950: 420a tst r2, r1
  103344. 802a952: d003 beq.n 802a95c <__gethex+0x1ac>
  103345. 802a954: 454b cmp r3, r9
  103346. 802a956: dc36 bgt.n 802a9c6 <__gethex+0x216>
  103347. 802a958: f04f 0902 mov.w r9, #2
  103348. 802a95c: 4629 mov r1, r5
  103349. 802a95e: 4620 mov r0, r4
  103350. 802a960: f7ff febe bl 802a6e0 <rshift>
  103351. 802a964: 442f add r7, r5
  103352. 802a966: f8d8 3008 ldr.w r3, [r8, #8]
  103353. 802a96a: 42bb cmp r3, r7
  103354. 802a96c: da42 bge.n 802a9f4 <__gethex+0x244>
  103355. 802a96e: 9801 ldr r0, [sp, #4]
  103356. 802a970: 4621 mov r1, r4
  103357. 802a972: f000 fa41 bl 802adf8 <_Bfree>
  103358. 802a976: 9a0e ldr r2, [sp, #56] @ 0x38
  103359. 802a978: 2300 movs r3, #0
  103360. 802a97a: 6013 str r3, [r2, #0]
  103361. 802a97c: 25a3 movs r5, #163 @ 0xa3
  103362. 802a97e: e793 b.n 802a8a8 <__gethex+0xf8>
  103363. 802a980: f816 2d01 ldrb.w r2, [r6, #-1]!
  103364. 802a984: 2a2e cmp r2, #46 @ 0x2e
  103365. 802a986: d012 beq.n 802a9ae <__gethex+0x1fe>
  103366. 802a988: 2b20 cmp r3, #32
  103367. 802a98a: d104 bne.n 802a996 <__gethex+0x1e6>
  103368. 802a98c: f845 bb04 str.w fp, [r5], #4
  103369. 802a990: f04f 0b00 mov.w fp, #0
  103370. 802a994: 465b mov r3, fp
  103371. 802a996: 7830 ldrb r0, [r6, #0]
  103372. 802a998: 9303 str r3, [sp, #12]
  103373. 802a99a: f7ff fef3 bl 802a784 <__hexdig_fun>
  103374. 802a99e: 9b03 ldr r3, [sp, #12]
  103375. 802a9a0: f000 000f and.w r0, r0, #15
  103376. 802a9a4: 4098 lsls r0, r3
  103377. 802a9a6: ea4b 0b00 orr.w fp, fp, r0
  103378. 802a9aa: 3304 adds r3, #4
  103379. 802a9ac: e7ae b.n 802a90c <__gethex+0x15c>
  103380. 802a9ae: 45b1 cmp r9, r6
  103381. 802a9b0: d8ea bhi.n 802a988 <__gethex+0x1d8>
  103382. 802a9b2: 492b ldr r1, [pc, #172] @ (802aa60 <__gethex+0x2b0>)
  103383. 802a9b4: 9303 str r3, [sp, #12]
  103384. 802a9b6: 2201 movs r2, #1
  103385. 802a9b8: 4630 mov r0, r6
  103386. 802a9ba: f7fe ff41 bl 8029840 <strncmp>
  103387. 802a9be: 9b03 ldr r3, [sp, #12]
  103388. 802a9c0: 2800 cmp r0, #0
  103389. 802a9c2: d1e1 bne.n 802a988 <__gethex+0x1d8>
  103390. 802a9c4: e7a2 b.n 802a90c <__gethex+0x15c>
  103391. 802a9c6: 1ea9 subs r1, r5, #2
  103392. 802a9c8: 4620 mov r0, r4
  103393. 802a9ca: f000 fe63 bl 802b694 <__any_on>
  103394. 802a9ce: 2800 cmp r0, #0
  103395. 802a9d0: d0c2 beq.n 802a958 <__gethex+0x1a8>
  103396. 802a9d2: f04f 0903 mov.w r9, #3
  103397. 802a9d6: e7c1 b.n 802a95c <__gethex+0x1ac>
  103398. 802a9d8: da09 bge.n 802a9ee <__gethex+0x23e>
  103399. 802a9da: 1b75 subs r5, r6, r5
  103400. 802a9dc: 4621 mov r1, r4
  103401. 802a9de: 9801 ldr r0, [sp, #4]
  103402. 802a9e0: 462a mov r2, r5
  103403. 802a9e2: f000 fc21 bl 802b228 <__lshift>
  103404. 802a9e6: 1b7f subs r7, r7, r5
  103405. 802a9e8: 4604 mov r4, r0
  103406. 802a9ea: f100 0a14 add.w sl, r0, #20
  103407. 802a9ee: f04f 0900 mov.w r9, #0
  103408. 802a9f2: e7b8 b.n 802a966 <__gethex+0x1b6>
  103409. 802a9f4: f8d8 5004 ldr.w r5, [r8, #4]
  103410. 802a9f8: 42bd cmp r5, r7
  103411. 802a9fa: dd6f ble.n 802aadc <__gethex+0x32c>
  103412. 802a9fc: 1bed subs r5, r5, r7
  103413. 802a9fe: 42ae cmp r6, r5
  103414. 802aa00: dc34 bgt.n 802aa6c <__gethex+0x2bc>
  103415. 802aa02: f8d8 300c ldr.w r3, [r8, #12]
  103416. 802aa06: 2b02 cmp r3, #2
  103417. 802aa08: d022 beq.n 802aa50 <__gethex+0x2a0>
  103418. 802aa0a: 2b03 cmp r3, #3
  103419. 802aa0c: d024 beq.n 802aa58 <__gethex+0x2a8>
  103420. 802aa0e: 2b01 cmp r3, #1
  103421. 802aa10: d115 bne.n 802aa3e <__gethex+0x28e>
  103422. 802aa12: 42ae cmp r6, r5
  103423. 802aa14: d113 bne.n 802aa3e <__gethex+0x28e>
  103424. 802aa16: 2e01 cmp r6, #1
  103425. 802aa18: d10b bne.n 802aa32 <__gethex+0x282>
  103426. 802aa1a: 9a02 ldr r2, [sp, #8]
  103427. 802aa1c: f8d8 3004 ldr.w r3, [r8, #4]
  103428. 802aa20: 6013 str r3, [r2, #0]
  103429. 802aa22: 2301 movs r3, #1
  103430. 802aa24: 6123 str r3, [r4, #16]
  103431. 802aa26: f8ca 3000 str.w r3, [sl]
  103432. 802aa2a: 9b0e ldr r3, [sp, #56] @ 0x38
  103433. 802aa2c: 2562 movs r5, #98 @ 0x62
  103434. 802aa2e: 601c str r4, [r3, #0]
  103435. 802aa30: e73a b.n 802a8a8 <__gethex+0xf8>
  103436. 802aa32: 1e71 subs r1, r6, #1
  103437. 802aa34: 4620 mov r0, r4
  103438. 802aa36: f000 fe2d bl 802b694 <__any_on>
  103439. 802aa3a: 2800 cmp r0, #0
  103440. 802aa3c: d1ed bne.n 802aa1a <__gethex+0x26a>
  103441. 802aa3e: 9801 ldr r0, [sp, #4]
  103442. 802aa40: 4621 mov r1, r4
  103443. 802aa42: f000 f9d9 bl 802adf8 <_Bfree>
  103444. 802aa46: 9a0e ldr r2, [sp, #56] @ 0x38
  103445. 802aa48: 2300 movs r3, #0
  103446. 802aa4a: 6013 str r3, [r2, #0]
  103447. 802aa4c: 2550 movs r5, #80 @ 0x50
  103448. 802aa4e: e72b b.n 802a8a8 <__gethex+0xf8>
  103449. 802aa50: 9b0f ldr r3, [sp, #60] @ 0x3c
  103450. 802aa52: 2b00 cmp r3, #0
  103451. 802aa54: d1f3 bne.n 802aa3e <__gethex+0x28e>
  103452. 802aa56: e7e0 b.n 802aa1a <__gethex+0x26a>
  103453. 802aa58: 9b0f ldr r3, [sp, #60] @ 0x3c
  103454. 802aa5a: 2b00 cmp r3, #0
  103455. 802aa5c: d1dd bne.n 802aa1a <__gethex+0x26a>
  103456. 802aa5e: e7ee b.n 802aa3e <__gethex+0x28e>
  103457. 802aa60: 08030829 .word 0x08030829
  103458. 802aa64: 08030a5e .word 0x08030a5e
  103459. 802aa68: 08030a6f .word 0x08030a6f
  103460. 802aa6c: 1e6f subs r7, r5, #1
  103461. 802aa6e: f1b9 0f00 cmp.w r9, #0
  103462. 802aa72: d130 bne.n 802aad6 <__gethex+0x326>
  103463. 802aa74: b127 cbz r7, 802aa80 <__gethex+0x2d0>
  103464. 802aa76: 4639 mov r1, r7
  103465. 802aa78: 4620 mov r0, r4
  103466. 802aa7a: f000 fe0b bl 802b694 <__any_on>
  103467. 802aa7e: 4681 mov r9, r0
  103468. 802aa80: 117a asrs r2, r7, #5
  103469. 802aa82: 2301 movs r3, #1
  103470. 802aa84: f85a 2022 ldr.w r2, [sl, r2, lsl #2]
  103471. 802aa88: f007 071f and.w r7, r7, #31
  103472. 802aa8c: 40bb lsls r3, r7
  103473. 802aa8e: 4213 tst r3, r2
  103474. 802aa90: 4629 mov r1, r5
  103475. 802aa92: 4620 mov r0, r4
  103476. 802aa94: bf18 it ne
  103477. 802aa96: f049 0902 orrne.w r9, r9, #2
  103478. 802aa9a: f7ff fe21 bl 802a6e0 <rshift>
  103479. 802aa9e: f8d8 7004 ldr.w r7, [r8, #4]
  103480. 802aaa2: 1b76 subs r6, r6, r5
  103481. 802aaa4: 2502 movs r5, #2
  103482. 802aaa6: f1b9 0f00 cmp.w r9, #0
  103483. 802aaaa: d047 beq.n 802ab3c <__gethex+0x38c>
  103484. 802aaac: f8d8 300c ldr.w r3, [r8, #12]
  103485. 802aab0: 2b02 cmp r3, #2
  103486. 802aab2: d015 beq.n 802aae0 <__gethex+0x330>
  103487. 802aab4: 2b03 cmp r3, #3
  103488. 802aab6: d017 beq.n 802aae8 <__gethex+0x338>
  103489. 802aab8: 2b01 cmp r3, #1
  103490. 802aaba: d109 bne.n 802aad0 <__gethex+0x320>
  103491. 802aabc: f019 0f02 tst.w r9, #2
  103492. 802aac0: d006 beq.n 802aad0 <__gethex+0x320>
  103493. 802aac2: f8da 3000 ldr.w r3, [sl]
  103494. 802aac6: ea49 0903 orr.w r9, r9, r3
  103495. 802aaca: f019 0f01 tst.w r9, #1
  103496. 802aace: d10e bne.n 802aaee <__gethex+0x33e>
  103497. 802aad0: f045 0510 orr.w r5, r5, #16
  103498. 802aad4: e032 b.n 802ab3c <__gethex+0x38c>
  103499. 802aad6: f04f 0901 mov.w r9, #1
  103500. 802aada: e7d1 b.n 802aa80 <__gethex+0x2d0>
  103501. 802aadc: 2501 movs r5, #1
  103502. 802aade: e7e2 b.n 802aaa6 <__gethex+0x2f6>
  103503. 802aae0: 9b0f ldr r3, [sp, #60] @ 0x3c
  103504. 802aae2: f1c3 0301 rsb r3, r3, #1
  103505. 802aae6: 930f str r3, [sp, #60] @ 0x3c
  103506. 802aae8: 9b0f ldr r3, [sp, #60] @ 0x3c
  103507. 802aaea: 2b00 cmp r3, #0
  103508. 802aaec: d0f0 beq.n 802aad0 <__gethex+0x320>
  103509. 802aaee: f8d4 b010 ldr.w fp, [r4, #16]
  103510. 802aaf2: f104 0314 add.w r3, r4, #20
  103511. 802aaf6: ea4f 0a8b mov.w sl, fp, lsl #2
  103512. 802aafa: eb03 018b add.w r1, r3, fp, lsl #2
  103513. 802aafe: f04f 0c00 mov.w ip, #0
  103514. 802ab02: 4618 mov r0, r3
  103515. 802ab04: f853 2b04 ldr.w r2, [r3], #4
  103516. 802ab08: f1b2 3fff cmp.w r2, #4294967295 @ 0xffffffff
  103517. 802ab0c: d01b beq.n 802ab46 <__gethex+0x396>
  103518. 802ab0e: 3201 adds r2, #1
  103519. 802ab10: 6002 str r2, [r0, #0]
  103520. 802ab12: 2d02 cmp r5, #2
  103521. 802ab14: f104 0314 add.w r3, r4, #20
  103522. 802ab18: d13c bne.n 802ab94 <__gethex+0x3e4>
  103523. 802ab1a: f8d8 2000 ldr.w r2, [r8]
  103524. 802ab1e: 3a01 subs r2, #1
  103525. 802ab20: 42b2 cmp r2, r6
  103526. 802ab22: d109 bne.n 802ab38 <__gethex+0x388>
  103527. 802ab24: 1171 asrs r1, r6, #5
  103528. 802ab26: 2201 movs r2, #1
  103529. 802ab28: f853 3021 ldr.w r3, [r3, r1, lsl #2]
  103530. 802ab2c: f006 061f and.w r6, r6, #31
  103531. 802ab30: fa02 f606 lsl.w r6, r2, r6
  103532. 802ab34: 421e tst r6, r3
  103533. 802ab36: d13a bne.n 802abae <__gethex+0x3fe>
  103534. 802ab38: f045 0520 orr.w r5, r5, #32
  103535. 802ab3c: 9b0e ldr r3, [sp, #56] @ 0x38
  103536. 802ab3e: 601c str r4, [r3, #0]
  103537. 802ab40: 9b02 ldr r3, [sp, #8]
  103538. 802ab42: 601f str r7, [r3, #0]
  103539. 802ab44: e6b0 b.n 802a8a8 <__gethex+0xf8>
  103540. 802ab46: 4299 cmp r1, r3
  103541. 802ab48: f843 cc04 str.w ip, [r3, #-4]
  103542. 802ab4c: d8d9 bhi.n 802ab02 <__gethex+0x352>
  103543. 802ab4e: 68a3 ldr r3, [r4, #8]
  103544. 802ab50: 459b cmp fp, r3
  103545. 802ab52: db17 blt.n 802ab84 <__gethex+0x3d4>
  103546. 802ab54: 6861 ldr r1, [r4, #4]
  103547. 802ab56: 9801 ldr r0, [sp, #4]
  103548. 802ab58: 3101 adds r1, #1
  103549. 802ab5a: f000 f90d bl 802ad78 <_Balloc>
  103550. 802ab5e: 4681 mov r9, r0
  103551. 802ab60: b918 cbnz r0, 802ab6a <__gethex+0x3ba>
  103552. 802ab62: 4b1a ldr r3, [pc, #104] @ (802abcc <__gethex+0x41c>)
  103553. 802ab64: 4602 mov r2, r0
  103554. 802ab66: 2184 movs r1, #132 @ 0x84
  103555. 802ab68: e6c5 b.n 802a8f6 <__gethex+0x146>
  103556. 802ab6a: 6922 ldr r2, [r4, #16]
  103557. 802ab6c: 3202 adds r2, #2
  103558. 802ab6e: f104 010c add.w r1, r4, #12
  103559. 802ab72: 0092 lsls r2, r2, #2
  103560. 802ab74: 300c adds r0, #12
  103561. 802ab76: f7fe ff52 bl 8029a1e <memcpy>
  103562. 802ab7a: 4621 mov r1, r4
  103563. 802ab7c: 9801 ldr r0, [sp, #4]
  103564. 802ab7e: f000 f93b bl 802adf8 <_Bfree>
  103565. 802ab82: 464c mov r4, r9
  103566. 802ab84: 6923 ldr r3, [r4, #16]
  103567. 802ab86: 1c5a adds r2, r3, #1
  103568. 802ab88: eb04 0383 add.w r3, r4, r3, lsl #2
  103569. 802ab8c: 6122 str r2, [r4, #16]
  103570. 802ab8e: 2201 movs r2, #1
  103571. 802ab90: 615a str r2, [r3, #20]
  103572. 802ab92: e7be b.n 802ab12 <__gethex+0x362>
  103573. 802ab94: 6922 ldr r2, [r4, #16]
  103574. 802ab96: 455a cmp r2, fp
  103575. 802ab98: dd0b ble.n 802abb2 <__gethex+0x402>
  103576. 802ab9a: 2101 movs r1, #1
  103577. 802ab9c: 4620 mov r0, r4
  103578. 802ab9e: f7ff fd9f bl 802a6e0 <rshift>
  103579. 802aba2: f8d8 3008 ldr.w r3, [r8, #8]
  103580. 802aba6: 3701 adds r7, #1
  103581. 802aba8: 42bb cmp r3, r7
  103582. 802abaa: f6ff aee0 blt.w 802a96e <__gethex+0x1be>
  103583. 802abae: 2501 movs r5, #1
  103584. 802abb0: e7c2 b.n 802ab38 <__gethex+0x388>
  103585. 802abb2: f016 061f ands.w r6, r6, #31
  103586. 802abb6: d0fa beq.n 802abae <__gethex+0x3fe>
  103587. 802abb8: 4453 add r3, sl
  103588. 802abba: f1c6 0620 rsb r6, r6, #32
  103589. 802abbe: f853 0c04 ldr.w r0, [r3, #-4]
  103590. 802abc2: f000 f9cb bl 802af5c <__hi0bits>
  103591. 802abc6: 42b0 cmp r0, r6
  103592. 802abc8: dbe7 blt.n 802ab9a <__gethex+0x3ea>
  103593. 802abca: e7f0 b.n 802abae <__gethex+0x3fe>
  103594. 802abcc: 08030a5e .word 0x08030a5e
  103595. 0802abd0 <L_shift>:
  103596. 802abd0: f1c2 0208 rsb r2, r2, #8
  103597. 802abd4: 0092 lsls r2, r2, #2
  103598. 802abd6: b570 push {r4, r5, r6, lr}
  103599. 802abd8: f1c2 0620 rsb r6, r2, #32
  103600. 802abdc: 6843 ldr r3, [r0, #4]
  103601. 802abde: 6804 ldr r4, [r0, #0]
  103602. 802abe0: fa03 f506 lsl.w r5, r3, r6
  103603. 802abe4: 432c orrs r4, r5
  103604. 802abe6: 40d3 lsrs r3, r2
  103605. 802abe8: 6004 str r4, [r0, #0]
  103606. 802abea: f840 3f04 str.w r3, [r0, #4]!
  103607. 802abee: 4288 cmp r0, r1
  103608. 802abf0: d3f4 bcc.n 802abdc <L_shift+0xc>
  103609. 802abf2: bd70 pop {r4, r5, r6, pc}
  103610. 0802abf4 <__match>:
  103611. 802abf4: b530 push {r4, r5, lr}
  103612. 802abf6: 6803 ldr r3, [r0, #0]
  103613. 802abf8: 3301 adds r3, #1
  103614. 802abfa: f811 4b01 ldrb.w r4, [r1], #1
  103615. 802abfe: b914 cbnz r4, 802ac06 <__match+0x12>
  103616. 802ac00: 6003 str r3, [r0, #0]
  103617. 802ac02: 2001 movs r0, #1
  103618. 802ac04: bd30 pop {r4, r5, pc}
  103619. 802ac06: f813 2b01 ldrb.w r2, [r3], #1
  103620. 802ac0a: f1a2 0541 sub.w r5, r2, #65 @ 0x41
  103621. 802ac0e: 2d19 cmp r5, #25
  103622. 802ac10: bf98 it ls
  103623. 802ac12: 3220 addls r2, #32
  103624. 802ac14: 42a2 cmp r2, r4
  103625. 802ac16: d0f0 beq.n 802abfa <__match+0x6>
  103626. 802ac18: 2000 movs r0, #0
  103627. 802ac1a: e7f3 b.n 802ac04 <__match+0x10>
  103628. 0802ac1c <__hexnan>:
  103629. 802ac1c: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  103630. 802ac20: 680b ldr r3, [r1, #0]
  103631. 802ac22: 6801 ldr r1, [r0, #0]
  103632. 802ac24: 115e asrs r6, r3, #5
  103633. 802ac26: eb02 0686 add.w r6, r2, r6, lsl #2
  103634. 802ac2a: f013 031f ands.w r3, r3, #31
  103635. 802ac2e: b087 sub sp, #28
  103636. 802ac30: bf18 it ne
  103637. 802ac32: 3604 addne r6, #4
  103638. 802ac34: 2500 movs r5, #0
  103639. 802ac36: 1f37 subs r7, r6, #4
  103640. 802ac38: 4682 mov sl, r0
  103641. 802ac3a: 4690 mov r8, r2
  103642. 802ac3c: 9301 str r3, [sp, #4]
  103643. 802ac3e: f846 5c04 str.w r5, [r6, #-4]
  103644. 802ac42: 46b9 mov r9, r7
  103645. 802ac44: 463c mov r4, r7
  103646. 802ac46: 9502 str r5, [sp, #8]
  103647. 802ac48: 46ab mov fp, r5
  103648. 802ac4a: 784a ldrb r2, [r1, #1]
  103649. 802ac4c: 1c4b adds r3, r1, #1
  103650. 802ac4e: 9303 str r3, [sp, #12]
  103651. 802ac50: b342 cbz r2, 802aca4 <__hexnan+0x88>
  103652. 802ac52: 4610 mov r0, r2
  103653. 802ac54: 9105 str r1, [sp, #20]
  103654. 802ac56: 9204 str r2, [sp, #16]
  103655. 802ac58: f7ff fd94 bl 802a784 <__hexdig_fun>
  103656. 802ac5c: 2800 cmp r0, #0
  103657. 802ac5e: d151 bne.n 802ad04 <__hexnan+0xe8>
  103658. 802ac60: 9a04 ldr r2, [sp, #16]
  103659. 802ac62: 9905 ldr r1, [sp, #20]
  103660. 802ac64: 2a20 cmp r2, #32
  103661. 802ac66: d818 bhi.n 802ac9a <__hexnan+0x7e>
  103662. 802ac68: 9b02 ldr r3, [sp, #8]
  103663. 802ac6a: 459b cmp fp, r3
  103664. 802ac6c: dd13 ble.n 802ac96 <__hexnan+0x7a>
  103665. 802ac6e: 454c cmp r4, r9
  103666. 802ac70: d206 bcs.n 802ac80 <__hexnan+0x64>
  103667. 802ac72: 2d07 cmp r5, #7
  103668. 802ac74: dc04 bgt.n 802ac80 <__hexnan+0x64>
  103669. 802ac76: 462a mov r2, r5
  103670. 802ac78: 4649 mov r1, r9
  103671. 802ac7a: 4620 mov r0, r4
  103672. 802ac7c: f7ff ffa8 bl 802abd0 <L_shift>
  103673. 802ac80: 4544 cmp r4, r8
  103674. 802ac82: d952 bls.n 802ad2a <__hexnan+0x10e>
  103675. 802ac84: 2300 movs r3, #0
  103676. 802ac86: f1a4 0904 sub.w r9, r4, #4
  103677. 802ac8a: f844 3c04 str.w r3, [r4, #-4]
  103678. 802ac8e: f8cd b008 str.w fp, [sp, #8]
  103679. 802ac92: 464c mov r4, r9
  103680. 802ac94: 461d mov r5, r3
  103681. 802ac96: 9903 ldr r1, [sp, #12]
  103682. 802ac98: e7d7 b.n 802ac4a <__hexnan+0x2e>
  103683. 802ac9a: 2a29 cmp r2, #41 @ 0x29
  103684. 802ac9c: d157 bne.n 802ad4e <__hexnan+0x132>
  103685. 802ac9e: 3102 adds r1, #2
  103686. 802aca0: f8ca 1000 str.w r1, [sl]
  103687. 802aca4: f1bb 0f00 cmp.w fp, #0
  103688. 802aca8: d051 beq.n 802ad4e <__hexnan+0x132>
  103689. 802acaa: 454c cmp r4, r9
  103690. 802acac: d206 bcs.n 802acbc <__hexnan+0xa0>
  103691. 802acae: 2d07 cmp r5, #7
  103692. 802acb0: dc04 bgt.n 802acbc <__hexnan+0xa0>
  103693. 802acb2: 462a mov r2, r5
  103694. 802acb4: 4649 mov r1, r9
  103695. 802acb6: 4620 mov r0, r4
  103696. 802acb8: f7ff ff8a bl 802abd0 <L_shift>
  103697. 802acbc: 4544 cmp r4, r8
  103698. 802acbe: d936 bls.n 802ad2e <__hexnan+0x112>
  103699. 802acc0: f1a8 0204 sub.w r2, r8, #4
  103700. 802acc4: 4623 mov r3, r4
  103701. 802acc6: f853 1b04 ldr.w r1, [r3], #4
  103702. 802acca: f842 1f04 str.w r1, [r2, #4]!
  103703. 802acce: 429f cmp r7, r3
  103704. 802acd0: d2f9 bcs.n 802acc6 <__hexnan+0xaa>
  103705. 802acd2: 1b3b subs r3, r7, r4
  103706. 802acd4: f023 0303 bic.w r3, r3, #3
  103707. 802acd8: 3304 adds r3, #4
  103708. 802acda: 3401 adds r4, #1
  103709. 802acdc: 3e03 subs r6, #3
  103710. 802acde: 42b4 cmp r4, r6
  103711. 802ace0: bf88 it hi
  103712. 802ace2: 2304 movhi r3, #4
  103713. 802ace4: 4443 add r3, r8
  103714. 802ace6: 2200 movs r2, #0
  103715. 802ace8: f843 2b04 str.w r2, [r3], #4
  103716. 802acec: 429f cmp r7, r3
  103717. 802acee: d2fb bcs.n 802ace8 <__hexnan+0xcc>
  103718. 802acf0: 683b ldr r3, [r7, #0]
  103719. 802acf2: b91b cbnz r3, 802acfc <__hexnan+0xe0>
  103720. 802acf4: 4547 cmp r7, r8
  103721. 802acf6: d128 bne.n 802ad4a <__hexnan+0x12e>
  103722. 802acf8: 2301 movs r3, #1
  103723. 802acfa: 603b str r3, [r7, #0]
  103724. 802acfc: 2005 movs r0, #5
  103725. 802acfe: b007 add sp, #28
  103726. 802ad00: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  103727. 802ad04: 3501 adds r5, #1
  103728. 802ad06: 2d08 cmp r5, #8
  103729. 802ad08: f10b 0b01 add.w fp, fp, #1
  103730. 802ad0c: dd06 ble.n 802ad1c <__hexnan+0x100>
  103731. 802ad0e: 4544 cmp r4, r8
  103732. 802ad10: d9c1 bls.n 802ac96 <__hexnan+0x7a>
  103733. 802ad12: 2300 movs r3, #0
  103734. 802ad14: f844 3c04 str.w r3, [r4, #-4]
  103735. 802ad18: 2501 movs r5, #1
  103736. 802ad1a: 3c04 subs r4, #4
  103737. 802ad1c: 6822 ldr r2, [r4, #0]
  103738. 802ad1e: f000 000f and.w r0, r0, #15
  103739. 802ad22: ea40 1002 orr.w r0, r0, r2, lsl #4
  103740. 802ad26: 6020 str r0, [r4, #0]
  103741. 802ad28: e7b5 b.n 802ac96 <__hexnan+0x7a>
  103742. 802ad2a: 2508 movs r5, #8
  103743. 802ad2c: e7b3 b.n 802ac96 <__hexnan+0x7a>
  103744. 802ad2e: 9b01 ldr r3, [sp, #4]
  103745. 802ad30: 2b00 cmp r3, #0
  103746. 802ad32: d0dd beq.n 802acf0 <__hexnan+0xd4>
  103747. 802ad34: f1c3 0320 rsb r3, r3, #32
  103748. 802ad38: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  103749. 802ad3c: 40da lsrs r2, r3
  103750. 802ad3e: f856 3c04 ldr.w r3, [r6, #-4]
  103751. 802ad42: 4013 ands r3, r2
  103752. 802ad44: f846 3c04 str.w r3, [r6, #-4]
  103753. 802ad48: e7d2 b.n 802acf0 <__hexnan+0xd4>
  103754. 802ad4a: 3f04 subs r7, #4
  103755. 802ad4c: e7d0 b.n 802acf0 <__hexnan+0xd4>
  103756. 802ad4e: 2004 movs r0, #4
  103757. 802ad50: e7d5 b.n 802acfe <__hexnan+0xe2>
  103758. 0802ad52 <__ascii_mbtowc>:
  103759. 802ad52: b082 sub sp, #8
  103760. 802ad54: b901 cbnz r1, 802ad58 <__ascii_mbtowc+0x6>
  103761. 802ad56: a901 add r1, sp, #4
  103762. 802ad58: b142 cbz r2, 802ad6c <__ascii_mbtowc+0x1a>
  103763. 802ad5a: b14b cbz r3, 802ad70 <__ascii_mbtowc+0x1e>
  103764. 802ad5c: 7813 ldrb r3, [r2, #0]
  103765. 802ad5e: 600b str r3, [r1, #0]
  103766. 802ad60: 7812 ldrb r2, [r2, #0]
  103767. 802ad62: 1e10 subs r0, r2, #0
  103768. 802ad64: bf18 it ne
  103769. 802ad66: 2001 movne r0, #1
  103770. 802ad68: b002 add sp, #8
  103771. 802ad6a: 4770 bx lr
  103772. 802ad6c: 4610 mov r0, r2
  103773. 802ad6e: e7fb b.n 802ad68 <__ascii_mbtowc+0x16>
  103774. 802ad70: f06f 0001 mvn.w r0, #1
  103775. 802ad74: e7f8 b.n 802ad68 <__ascii_mbtowc+0x16>
  103776. ...
  103777. 0802ad78 <_Balloc>:
  103778. 802ad78: b570 push {r4, r5, r6, lr}
  103779. 802ad7a: 69c6 ldr r6, [r0, #28]
  103780. 802ad7c: 4604 mov r4, r0
  103781. 802ad7e: 460d mov r5, r1
  103782. 802ad80: b976 cbnz r6, 802ada0 <_Balloc+0x28>
  103783. 802ad82: 2010 movs r0, #16
  103784. 802ad84: f7fc ffda bl 8027d3c <malloc>
  103785. 802ad88: 4602 mov r2, r0
  103786. 802ad8a: 61e0 str r0, [r4, #28]
  103787. 802ad8c: b920 cbnz r0, 802ad98 <_Balloc+0x20>
  103788. 802ad8e: 4b18 ldr r3, [pc, #96] @ (802adf0 <_Balloc+0x78>)
  103789. 802ad90: 4818 ldr r0, [pc, #96] @ (802adf4 <_Balloc+0x7c>)
  103790. 802ad92: 216b movs r1, #107 @ 0x6b
  103791. 802ad94: f7fe fe5c bl 8029a50 <__assert_func>
  103792. 802ad98: e9c0 6601 strd r6, r6, [r0, #4]
  103793. 802ad9c: 6006 str r6, [r0, #0]
  103794. 802ad9e: 60c6 str r6, [r0, #12]
  103795. 802ada0: 69e6 ldr r6, [r4, #28]
  103796. 802ada2: 68f3 ldr r3, [r6, #12]
  103797. 802ada4: b183 cbz r3, 802adc8 <_Balloc+0x50>
  103798. 802ada6: 69e3 ldr r3, [r4, #28]
  103799. 802ada8: 68db ldr r3, [r3, #12]
  103800. 802adaa: f853 0025 ldr.w r0, [r3, r5, lsl #2]
  103801. 802adae: b9b8 cbnz r0, 802ade0 <_Balloc+0x68>
  103802. 802adb0: 2101 movs r1, #1
  103803. 802adb2: fa01 f605 lsl.w r6, r1, r5
  103804. 802adb6: 1d72 adds r2, r6, #5
  103805. 802adb8: 0092 lsls r2, r2, #2
  103806. 802adba: 4620 mov r0, r4
  103807. 802adbc: f001 f883 bl 802bec6 <_calloc_r>
  103808. 802adc0: b160 cbz r0, 802addc <_Balloc+0x64>
  103809. 802adc2: e9c0 5601 strd r5, r6, [r0, #4]
  103810. 802adc6: e00e b.n 802ade6 <_Balloc+0x6e>
  103811. 802adc8: 2221 movs r2, #33 @ 0x21
  103812. 802adca: 2104 movs r1, #4
  103813. 802adcc: 4620 mov r0, r4
  103814. 802adce: f001 f87a bl 802bec6 <_calloc_r>
  103815. 802add2: 69e3 ldr r3, [r4, #28]
  103816. 802add4: 60f0 str r0, [r6, #12]
  103817. 802add6: 68db ldr r3, [r3, #12]
  103818. 802add8: 2b00 cmp r3, #0
  103819. 802adda: d1e4 bne.n 802ada6 <_Balloc+0x2e>
  103820. 802addc: 2000 movs r0, #0
  103821. 802adde: bd70 pop {r4, r5, r6, pc}
  103822. 802ade0: 6802 ldr r2, [r0, #0]
  103823. 802ade2: f843 2025 str.w r2, [r3, r5, lsl #2]
  103824. 802ade6: 2300 movs r3, #0
  103825. 802ade8: e9c0 3303 strd r3, r3, [r0, #12]
  103826. 802adec: e7f7 b.n 802adde <_Balloc+0x66>
  103827. 802adee: bf00 nop
  103828. 802adf0: 080307ba .word 0x080307ba
  103829. 802adf4: 08030acf .word 0x08030acf
  103830. 0802adf8 <_Bfree>:
  103831. 802adf8: b570 push {r4, r5, r6, lr}
  103832. 802adfa: 69c6 ldr r6, [r0, #28]
  103833. 802adfc: 4605 mov r5, r0
  103834. 802adfe: 460c mov r4, r1
  103835. 802ae00: b976 cbnz r6, 802ae20 <_Bfree+0x28>
  103836. 802ae02: 2010 movs r0, #16
  103837. 802ae04: f7fc ff9a bl 8027d3c <malloc>
  103838. 802ae08: 4602 mov r2, r0
  103839. 802ae0a: 61e8 str r0, [r5, #28]
  103840. 802ae0c: b920 cbnz r0, 802ae18 <_Bfree+0x20>
  103841. 802ae0e: 4b09 ldr r3, [pc, #36] @ (802ae34 <_Bfree+0x3c>)
  103842. 802ae10: 4809 ldr r0, [pc, #36] @ (802ae38 <_Bfree+0x40>)
  103843. 802ae12: 218f movs r1, #143 @ 0x8f
  103844. 802ae14: f7fe fe1c bl 8029a50 <__assert_func>
  103845. 802ae18: e9c0 6601 strd r6, r6, [r0, #4]
  103846. 802ae1c: 6006 str r6, [r0, #0]
  103847. 802ae1e: 60c6 str r6, [r0, #12]
  103848. 802ae20: b13c cbz r4, 802ae32 <_Bfree+0x3a>
  103849. 802ae22: 69eb ldr r3, [r5, #28]
  103850. 802ae24: 6862 ldr r2, [r4, #4]
  103851. 802ae26: 68db ldr r3, [r3, #12]
  103852. 802ae28: f853 1022 ldr.w r1, [r3, r2, lsl #2]
  103853. 802ae2c: 6021 str r1, [r4, #0]
  103854. 802ae2e: f843 4022 str.w r4, [r3, r2, lsl #2]
  103855. 802ae32: bd70 pop {r4, r5, r6, pc}
  103856. 802ae34: 080307ba .word 0x080307ba
  103857. 802ae38: 08030acf .word 0x08030acf
  103858. 0802ae3c <__multadd>:
  103859. 802ae3c: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  103860. 802ae40: 690d ldr r5, [r1, #16]
  103861. 802ae42: 4607 mov r7, r0
  103862. 802ae44: 460c mov r4, r1
  103863. 802ae46: 461e mov r6, r3
  103864. 802ae48: f101 0c14 add.w ip, r1, #20
  103865. 802ae4c: 2000 movs r0, #0
  103866. 802ae4e: f8dc 3000 ldr.w r3, [ip]
  103867. 802ae52: b299 uxth r1, r3
  103868. 802ae54: fb02 6101 mla r1, r2, r1, r6
  103869. 802ae58: 0c1e lsrs r6, r3, #16
  103870. 802ae5a: 0c0b lsrs r3, r1, #16
  103871. 802ae5c: fb02 3306 mla r3, r2, r6, r3
  103872. 802ae60: b289 uxth r1, r1
  103873. 802ae62: 3001 adds r0, #1
  103874. 802ae64: eb01 4103 add.w r1, r1, r3, lsl #16
  103875. 802ae68: 4285 cmp r5, r0
  103876. 802ae6a: f84c 1b04 str.w r1, [ip], #4
  103877. 802ae6e: ea4f 4613 mov.w r6, r3, lsr #16
  103878. 802ae72: dcec bgt.n 802ae4e <__multadd+0x12>
  103879. 802ae74: b30e cbz r6, 802aeba <__multadd+0x7e>
  103880. 802ae76: 68a3 ldr r3, [r4, #8]
  103881. 802ae78: 42ab cmp r3, r5
  103882. 802ae7a: dc19 bgt.n 802aeb0 <__multadd+0x74>
  103883. 802ae7c: 6861 ldr r1, [r4, #4]
  103884. 802ae7e: 4638 mov r0, r7
  103885. 802ae80: 3101 adds r1, #1
  103886. 802ae82: f7ff ff79 bl 802ad78 <_Balloc>
  103887. 802ae86: 4680 mov r8, r0
  103888. 802ae88: b928 cbnz r0, 802ae96 <__multadd+0x5a>
  103889. 802ae8a: 4602 mov r2, r0
  103890. 802ae8c: 4b0c ldr r3, [pc, #48] @ (802aec0 <__multadd+0x84>)
  103891. 802ae8e: 480d ldr r0, [pc, #52] @ (802aec4 <__multadd+0x88>)
  103892. 802ae90: 21ba movs r1, #186 @ 0xba
  103893. 802ae92: f7fe fddd bl 8029a50 <__assert_func>
  103894. 802ae96: 6922 ldr r2, [r4, #16]
  103895. 802ae98: 3202 adds r2, #2
  103896. 802ae9a: f104 010c add.w r1, r4, #12
  103897. 802ae9e: 0092 lsls r2, r2, #2
  103898. 802aea0: 300c adds r0, #12
  103899. 802aea2: f7fe fdbc bl 8029a1e <memcpy>
  103900. 802aea6: 4621 mov r1, r4
  103901. 802aea8: 4638 mov r0, r7
  103902. 802aeaa: f7ff ffa5 bl 802adf8 <_Bfree>
  103903. 802aeae: 4644 mov r4, r8
  103904. 802aeb0: eb04 0385 add.w r3, r4, r5, lsl #2
  103905. 802aeb4: 3501 adds r5, #1
  103906. 802aeb6: 615e str r6, [r3, #20]
  103907. 802aeb8: 6125 str r5, [r4, #16]
  103908. 802aeba: 4620 mov r0, r4
  103909. 802aebc: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  103910. 802aec0: 08030a5e .word 0x08030a5e
  103911. 802aec4: 08030acf .word 0x08030acf
  103912. 0802aec8 <__s2b>:
  103913. 802aec8: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  103914. 802aecc: 460c mov r4, r1
  103915. 802aece: 4615 mov r5, r2
  103916. 802aed0: 461f mov r7, r3
  103917. 802aed2: 2209 movs r2, #9
  103918. 802aed4: 3308 adds r3, #8
  103919. 802aed6: 4606 mov r6, r0
  103920. 802aed8: fb93 f3f2 sdiv r3, r3, r2
  103921. 802aedc: 2100 movs r1, #0
  103922. 802aede: 2201 movs r2, #1
  103923. 802aee0: 429a cmp r2, r3
  103924. 802aee2: db09 blt.n 802aef8 <__s2b+0x30>
  103925. 802aee4: 4630 mov r0, r6
  103926. 802aee6: f7ff ff47 bl 802ad78 <_Balloc>
  103927. 802aeea: b940 cbnz r0, 802aefe <__s2b+0x36>
  103928. 802aeec: 4602 mov r2, r0
  103929. 802aeee: 4b19 ldr r3, [pc, #100] @ (802af54 <__s2b+0x8c>)
  103930. 802aef0: 4819 ldr r0, [pc, #100] @ (802af58 <__s2b+0x90>)
  103931. 802aef2: 21d3 movs r1, #211 @ 0xd3
  103932. 802aef4: f7fe fdac bl 8029a50 <__assert_func>
  103933. 802aef8: 0052 lsls r2, r2, #1
  103934. 802aefa: 3101 adds r1, #1
  103935. 802aefc: e7f0 b.n 802aee0 <__s2b+0x18>
  103936. 802aefe: 9b08 ldr r3, [sp, #32]
  103937. 802af00: 6143 str r3, [r0, #20]
  103938. 802af02: 2d09 cmp r5, #9
  103939. 802af04: f04f 0301 mov.w r3, #1
  103940. 802af08: 6103 str r3, [r0, #16]
  103941. 802af0a: dd16 ble.n 802af3a <__s2b+0x72>
  103942. 802af0c: f104 0909 add.w r9, r4, #9
  103943. 802af10: 46c8 mov r8, r9
  103944. 802af12: 442c add r4, r5
  103945. 802af14: f818 3b01 ldrb.w r3, [r8], #1
  103946. 802af18: 4601 mov r1, r0
  103947. 802af1a: 3b30 subs r3, #48 @ 0x30
  103948. 802af1c: 220a movs r2, #10
  103949. 802af1e: 4630 mov r0, r6
  103950. 802af20: f7ff ff8c bl 802ae3c <__multadd>
  103951. 802af24: 45a0 cmp r8, r4
  103952. 802af26: d1f5 bne.n 802af14 <__s2b+0x4c>
  103953. 802af28: f1a5 0408 sub.w r4, r5, #8
  103954. 802af2c: 444c add r4, r9
  103955. 802af2e: 1b2d subs r5, r5, r4
  103956. 802af30: 1963 adds r3, r4, r5
  103957. 802af32: 42bb cmp r3, r7
  103958. 802af34: db04 blt.n 802af40 <__s2b+0x78>
  103959. 802af36: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  103960. 802af3a: 340a adds r4, #10
  103961. 802af3c: 2509 movs r5, #9
  103962. 802af3e: e7f6 b.n 802af2e <__s2b+0x66>
  103963. 802af40: f814 3b01 ldrb.w r3, [r4], #1
  103964. 802af44: 4601 mov r1, r0
  103965. 802af46: 3b30 subs r3, #48 @ 0x30
  103966. 802af48: 220a movs r2, #10
  103967. 802af4a: 4630 mov r0, r6
  103968. 802af4c: f7ff ff76 bl 802ae3c <__multadd>
  103969. 802af50: e7ee b.n 802af30 <__s2b+0x68>
  103970. 802af52: bf00 nop
  103971. 802af54: 08030a5e .word 0x08030a5e
  103972. 802af58: 08030acf .word 0x08030acf
  103973. 0802af5c <__hi0bits>:
  103974. 802af5c: f5b0 3f80 cmp.w r0, #65536 @ 0x10000
  103975. 802af60: 4603 mov r3, r0
  103976. 802af62: bf36 itet cc
  103977. 802af64: 0403 lslcc r3, r0, #16
  103978. 802af66: 2000 movcs r0, #0
  103979. 802af68: 2010 movcc r0, #16
  103980. 802af6a: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  103981. 802af6e: bf3c itt cc
  103982. 802af70: 021b lslcc r3, r3, #8
  103983. 802af72: 3008 addcc r0, #8
  103984. 802af74: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  103985. 802af78: bf3c itt cc
  103986. 802af7a: 011b lslcc r3, r3, #4
  103987. 802af7c: 3004 addcc r0, #4
  103988. 802af7e: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  103989. 802af82: bf3c itt cc
  103990. 802af84: 009b lslcc r3, r3, #2
  103991. 802af86: 3002 addcc r0, #2
  103992. 802af88: 2b00 cmp r3, #0
  103993. 802af8a: db05 blt.n 802af98 <__hi0bits+0x3c>
  103994. 802af8c: f013 4f80 tst.w r3, #1073741824 @ 0x40000000
  103995. 802af90: f100 0001 add.w r0, r0, #1
  103996. 802af94: bf08 it eq
  103997. 802af96: 2020 moveq r0, #32
  103998. 802af98: 4770 bx lr
  103999. 0802af9a <__lo0bits>:
  104000. 802af9a: 6803 ldr r3, [r0, #0]
  104001. 802af9c: 4602 mov r2, r0
  104002. 802af9e: f013 0007 ands.w r0, r3, #7
  104003. 802afa2: d00b beq.n 802afbc <__lo0bits+0x22>
  104004. 802afa4: 07d9 lsls r1, r3, #31
  104005. 802afa6: d421 bmi.n 802afec <__lo0bits+0x52>
  104006. 802afa8: 0798 lsls r0, r3, #30
  104007. 802afaa: bf49 itett mi
  104008. 802afac: 085b lsrmi r3, r3, #1
  104009. 802afae: 089b lsrpl r3, r3, #2
  104010. 802afb0: 2001 movmi r0, #1
  104011. 802afb2: 6013 strmi r3, [r2, #0]
  104012. 802afb4: bf5c itt pl
  104013. 802afb6: 6013 strpl r3, [r2, #0]
  104014. 802afb8: 2002 movpl r0, #2
  104015. 802afba: 4770 bx lr
  104016. 802afbc: b299 uxth r1, r3
  104017. 802afbe: b909 cbnz r1, 802afc4 <__lo0bits+0x2a>
  104018. 802afc0: 0c1b lsrs r3, r3, #16
  104019. 802afc2: 2010 movs r0, #16
  104020. 802afc4: b2d9 uxtb r1, r3
  104021. 802afc6: b909 cbnz r1, 802afcc <__lo0bits+0x32>
  104022. 802afc8: 3008 adds r0, #8
  104023. 802afca: 0a1b lsrs r3, r3, #8
  104024. 802afcc: 0719 lsls r1, r3, #28
  104025. 802afce: bf04 itt eq
  104026. 802afd0: 091b lsreq r3, r3, #4
  104027. 802afd2: 3004 addeq r0, #4
  104028. 802afd4: 0799 lsls r1, r3, #30
  104029. 802afd6: bf04 itt eq
  104030. 802afd8: 089b lsreq r3, r3, #2
  104031. 802afda: 3002 addeq r0, #2
  104032. 802afdc: 07d9 lsls r1, r3, #31
  104033. 802afde: d403 bmi.n 802afe8 <__lo0bits+0x4e>
  104034. 802afe0: 085b lsrs r3, r3, #1
  104035. 802afe2: f100 0001 add.w r0, r0, #1
  104036. 802afe6: d003 beq.n 802aff0 <__lo0bits+0x56>
  104037. 802afe8: 6013 str r3, [r2, #0]
  104038. 802afea: 4770 bx lr
  104039. 802afec: 2000 movs r0, #0
  104040. 802afee: 4770 bx lr
  104041. 802aff0: 2020 movs r0, #32
  104042. 802aff2: 4770 bx lr
  104043. 0802aff4 <__i2b>:
  104044. 802aff4: b510 push {r4, lr}
  104045. 802aff6: 460c mov r4, r1
  104046. 802aff8: 2101 movs r1, #1
  104047. 802affa: f7ff febd bl 802ad78 <_Balloc>
  104048. 802affe: 4602 mov r2, r0
  104049. 802b000: b928 cbnz r0, 802b00e <__i2b+0x1a>
  104050. 802b002: 4b05 ldr r3, [pc, #20] @ (802b018 <__i2b+0x24>)
  104051. 802b004: 4805 ldr r0, [pc, #20] @ (802b01c <__i2b+0x28>)
  104052. 802b006: f240 1145 movw r1, #325 @ 0x145
  104053. 802b00a: f7fe fd21 bl 8029a50 <__assert_func>
  104054. 802b00e: 2301 movs r3, #1
  104055. 802b010: 6144 str r4, [r0, #20]
  104056. 802b012: 6103 str r3, [r0, #16]
  104057. 802b014: bd10 pop {r4, pc}
  104058. 802b016: bf00 nop
  104059. 802b018: 08030a5e .word 0x08030a5e
  104060. 802b01c: 08030acf .word 0x08030acf
  104061. 0802b020 <__multiply>:
  104062. 802b020: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  104063. 802b024: 4614 mov r4, r2
  104064. 802b026: 690a ldr r2, [r1, #16]
  104065. 802b028: 6923 ldr r3, [r4, #16]
  104066. 802b02a: 429a cmp r2, r3
  104067. 802b02c: bfa8 it ge
  104068. 802b02e: 4623 movge r3, r4
  104069. 802b030: 460f mov r7, r1
  104070. 802b032: bfa4 itt ge
  104071. 802b034: 460c movge r4, r1
  104072. 802b036: 461f movge r7, r3
  104073. 802b038: f8d4 a010 ldr.w sl, [r4, #16]
  104074. 802b03c: f8d7 9010 ldr.w r9, [r7, #16]
  104075. 802b040: 68a3 ldr r3, [r4, #8]
  104076. 802b042: 6861 ldr r1, [r4, #4]
  104077. 802b044: eb0a 0609 add.w r6, sl, r9
  104078. 802b048: 42b3 cmp r3, r6
  104079. 802b04a: b085 sub sp, #20
  104080. 802b04c: bfb8 it lt
  104081. 802b04e: 3101 addlt r1, #1
  104082. 802b050: f7ff fe92 bl 802ad78 <_Balloc>
  104083. 802b054: b930 cbnz r0, 802b064 <__multiply+0x44>
  104084. 802b056: 4602 mov r2, r0
  104085. 802b058: 4b44 ldr r3, [pc, #272] @ (802b16c <__multiply+0x14c>)
  104086. 802b05a: 4845 ldr r0, [pc, #276] @ (802b170 <__multiply+0x150>)
  104087. 802b05c: f44f 71b1 mov.w r1, #354 @ 0x162
  104088. 802b060: f7fe fcf6 bl 8029a50 <__assert_func>
  104089. 802b064: f100 0514 add.w r5, r0, #20
  104090. 802b068: eb05 0886 add.w r8, r5, r6, lsl #2
  104091. 802b06c: 462b mov r3, r5
  104092. 802b06e: 2200 movs r2, #0
  104093. 802b070: 4543 cmp r3, r8
  104094. 802b072: d321 bcc.n 802b0b8 <__multiply+0x98>
  104095. 802b074: f107 0114 add.w r1, r7, #20
  104096. 802b078: f104 0214 add.w r2, r4, #20
  104097. 802b07c: eb02 028a add.w r2, r2, sl, lsl #2
  104098. 802b080: eb01 0389 add.w r3, r1, r9, lsl #2
  104099. 802b084: 9302 str r3, [sp, #8]
  104100. 802b086: 1b13 subs r3, r2, r4
  104101. 802b088: 3b15 subs r3, #21
  104102. 802b08a: f023 0303 bic.w r3, r3, #3
  104103. 802b08e: 3304 adds r3, #4
  104104. 802b090: f104 0715 add.w r7, r4, #21
  104105. 802b094: 42ba cmp r2, r7
  104106. 802b096: bf38 it cc
  104107. 802b098: 2304 movcc r3, #4
  104108. 802b09a: 9301 str r3, [sp, #4]
  104109. 802b09c: 9b02 ldr r3, [sp, #8]
  104110. 802b09e: 9103 str r1, [sp, #12]
  104111. 802b0a0: 428b cmp r3, r1
  104112. 802b0a2: d80c bhi.n 802b0be <__multiply+0x9e>
  104113. 802b0a4: 2e00 cmp r6, #0
  104114. 802b0a6: dd03 ble.n 802b0b0 <__multiply+0x90>
  104115. 802b0a8: f858 3d04 ldr.w r3, [r8, #-4]!
  104116. 802b0ac: 2b00 cmp r3, #0
  104117. 802b0ae: d05b beq.n 802b168 <__multiply+0x148>
  104118. 802b0b0: 6106 str r6, [r0, #16]
  104119. 802b0b2: b005 add sp, #20
  104120. 802b0b4: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  104121. 802b0b8: f843 2b04 str.w r2, [r3], #4
  104122. 802b0bc: e7d8 b.n 802b070 <__multiply+0x50>
  104123. 802b0be: f8b1 a000 ldrh.w sl, [r1]
  104124. 802b0c2: f1ba 0f00 cmp.w sl, #0
  104125. 802b0c6: d024 beq.n 802b112 <__multiply+0xf2>
  104126. 802b0c8: f104 0e14 add.w lr, r4, #20
  104127. 802b0cc: 46a9 mov r9, r5
  104128. 802b0ce: f04f 0c00 mov.w ip, #0
  104129. 802b0d2: f85e 7b04 ldr.w r7, [lr], #4
  104130. 802b0d6: f8d9 3000 ldr.w r3, [r9]
  104131. 802b0da: fa1f fb87 uxth.w fp, r7
  104132. 802b0de: b29b uxth r3, r3
  104133. 802b0e0: fb0a 330b mla r3, sl, fp, r3
  104134. 802b0e4: ea4f 4b17 mov.w fp, r7, lsr #16
  104135. 802b0e8: f8d9 7000 ldr.w r7, [r9]
  104136. 802b0ec: 4463 add r3, ip
  104137. 802b0ee: ea4f 4c17 mov.w ip, r7, lsr #16
  104138. 802b0f2: fb0a c70b mla r7, sl, fp, ip
  104139. 802b0f6: eb07 4713 add.w r7, r7, r3, lsr #16
  104140. 802b0fa: b29b uxth r3, r3
  104141. 802b0fc: ea43 4307 orr.w r3, r3, r7, lsl #16
  104142. 802b100: 4572 cmp r2, lr
  104143. 802b102: f849 3b04 str.w r3, [r9], #4
  104144. 802b106: ea4f 4c17 mov.w ip, r7, lsr #16
  104145. 802b10a: d8e2 bhi.n 802b0d2 <__multiply+0xb2>
  104146. 802b10c: 9b01 ldr r3, [sp, #4]
  104147. 802b10e: f845 c003 str.w ip, [r5, r3]
  104148. 802b112: 9b03 ldr r3, [sp, #12]
  104149. 802b114: f8b3 9002 ldrh.w r9, [r3, #2]
  104150. 802b118: 3104 adds r1, #4
  104151. 802b11a: f1b9 0f00 cmp.w r9, #0
  104152. 802b11e: d021 beq.n 802b164 <__multiply+0x144>
  104153. 802b120: 682b ldr r3, [r5, #0]
  104154. 802b122: f104 0c14 add.w ip, r4, #20
  104155. 802b126: 46ae mov lr, r5
  104156. 802b128: f04f 0a00 mov.w sl, #0
  104157. 802b12c: f8bc b000 ldrh.w fp, [ip]
  104158. 802b130: f8be 7002 ldrh.w r7, [lr, #2]
  104159. 802b134: fb09 770b mla r7, r9, fp, r7
  104160. 802b138: 4457 add r7, sl
  104161. 802b13a: b29b uxth r3, r3
  104162. 802b13c: ea43 4307 orr.w r3, r3, r7, lsl #16
  104163. 802b140: f84e 3b04 str.w r3, [lr], #4
  104164. 802b144: f85c 3b04 ldr.w r3, [ip], #4
  104165. 802b148: ea4f 4a13 mov.w sl, r3, lsr #16
  104166. 802b14c: f8be 3000 ldrh.w r3, [lr]
  104167. 802b150: fb09 330a mla r3, r9, sl, r3
  104168. 802b154: eb03 4317 add.w r3, r3, r7, lsr #16
  104169. 802b158: 4562 cmp r2, ip
  104170. 802b15a: ea4f 4a13 mov.w sl, r3, lsr #16
  104171. 802b15e: d8e5 bhi.n 802b12c <__multiply+0x10c>
  104172. 802b160: 9f01 ldr r7, [sp, #4]
  104173. 802b162: 51eb str r3, [r5, r7]
  104174. 802b164: 3504 adds r5, #4
  104175. 802b166: e799 b.n 802b09c <__multiply+0x7c>
  104176. 802b168: 3e01 subs r6, #1
  104177. 802b16a: e79b b.n 802b0a4 <__multiply+0x84>
  104178. 802b16c: 08030a5e .word 0x08030a5e
  104179. 802b170: 08030acf .word 0x08030acf
  104180. 0802b174 <__pow5mult>:
  104181. 802b174: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  104182. 802b178: 4615 mov r5, r2
  104183. 802b17a: f012 0203 ands.w r2, r2, #3
  104184. 802b17e: 4607 mov r7, r0
  104185. 802b180: 460e mov r6, r1
  104186. 802b182: d007 beq.n 802b194 <__pow5mult+0x20>
  104187. 802b184: 4c25 ldr r4, [pc, #148] @ (802b21c <__pow5mult+0xa8>)
  104188. 802b186: 3a01 subs r2, #1
  104189. 802b188: 2300 movs r3, #0
  104190. 802b18a: f854 2022 ldr.w r2, [r4, r2, lsl #2]
  104191. 802b18e: f7ff fe55 bl 802ae3c <__multadd>
  104192. 802b192: 4606 mov r6, r0
  104193. 802b194: 10ad asrs r5, r5, #2
  104194. 802b196: d03d beq.n 802b214 <__pow5mult+0xa0>
  104195. 802b198: 69fc ldr r4, [r7, #28]
  104196. 802b19a: b97c cbnz r4, 802b1bc <__pow5mult+0x48>
  104197. 802b19c: 2010 movs r0, #16
  104198. 802b19e: f7fc fdcd bl 8027d3c <malloc>
  104199. 802b1a2: 4602 mov r2, r0
  104200. 802b1a4: 61f8 str r0, [r7, #28]
  104201. 802b1a6: b928 cbnz r0, 802b1b4 <__pow5mult+0x40>
  104202. 802b1a8: 4b1d ldr r3, [pc, #116] @ (802b220 <__pow5mult+0xac>)
  104203. 802b1aa: 481e ldr r0, [pc, #120] @ (802b224 <__pow5mult+0xb0>)
  104204. 802b1ac: f240 11b3 movw r1, #435 @ 0x1b3
  104205. 802b1b0: f7fe fc4e bl 8029a50 <__assert_func>
  104206. 802b1b4: e9c0 4401 strd r4, r4, [r0, #4]
  104207. 802b1b8: 6004 str r4, [r0, #0]
  104208. 802b1ba: 60c4 str r4, [r0, #12]
  104209. 802b1bc: f8d7 801c ldr.w r8, [r7, #28]
  104210. 802b1c0: f8d8 4008 ldr.w r4, [r8, #8]
  104211. 802b1c4: b94c cbnz r4, 802b1da <__pow5mult+0x66>
  104212. 802b1c6: f240 2171 movw r1, #625 @ 0x271
  104213. 802b1ca: 4638 mov r0, r7
  104214. 802b1cc: f7ff ff12 bl 802aff4 <__i2b>
  104215. 802b1d0: 2300 movs r3, #0
  104216. 802b1d2: f8c8 0008 str.w r0, [r8, #8]
  104217. 802b1d6: 4604 mov r4, r0
  104218. 802b1d8: 6003 str r3, [r0, #0]
  104219. 802b1da: f04f 0900 mov.w r9, #0
  104220. 802b1de: 07eb lsls r3, r5, #31
  104221. 802b1e0: d50a bpl.n 802b1f8 <__pow5mult+0x84>
  104222. 802b1e2: 4631 mov r1, r6
  104223. 802b1e4: 4622 mov r2, r4
  104224. 802b1e6: 4638 mov r0, r7
  104225. 802b1e8: f7ff ff1a bl 802b020 <__multiply>
  104226. 802b1ec: 4631 mov r1, r6
  104227. 802b1ee: 4680 mov r8, r0
  104228. 802b1f0: 4638 mov r0, r7
  104229. 802b1f2: f7ff fe01 bl 802adf8 <_Bfree>
  104230. 802b1f6: 4646 mov r6, r8
  104231. 802b1f8: 106d asrs r5, r5, #1
  104232. 802b1fa: d00b beq.n 802b214 <__pow5mult+0xa0>
  104233. 802b1fc: 6820 ldr r0, [r4, #0]
  104234. 802b1fe: b938 cbnz r0, 802b210 <__pow5mult+0x9c>
  104235. 802b200: 4622 mov r2, r4
  104236. 802b202: 4621 mov r1, r4
  104237. 802b204: 4638 mov r0, r7
  104238. 802b206: f7ff ff0b bl 802b020 <__multiply>
  104239. 802b20a: 6020 str r0, [r4, #0]
  104240. 802b20c: f8c0 9000 str.w r9, [r0]
  104241. 802b210: 4604 mov r4, r0
  104242. 802b212: e7e4 b.n 802b1de <__pow5mult+0x6a>
  104243. 802b214: 4630 mov r0, r6
  104244. 802b216: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  104245. 802b21a: bf00 nop
  104246. 802b21c: 08030b28 .word 0x08030b28
  104247. 802b220: 080307ba .word 0x080307ba
  104248. 802b224: 08030acf .word 0x08030acf
  104249. 0802b228 <__lshift>:
  104250. 802b228: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  104251. 802b22c: 460c mov r4, r1
  104252. 802b22e: 6849 ldr r1, [r1, #4]
  104253. 802b230: 6923 ldr r3, [r4, #16]
  104254. 802b232: eb03 1862 add.w r8, r3, r2, asr #5
  104255. 802b236: 68a3 ldr r3, [r4, #8]
  104256. 802b238: 4607 mov r7, r0
  104257. 802b23a: 4691 mov r9, r2
  104258. 802b23c: ea4f 1a62 mov.w sl, r2, asr #5
  104259. 802b240: f108 0601 add.w r6, r8, #1
  104260. 802b244: 42b3 cmp r3, r6
  104261. 802b246: db0b blt.n 802b260 <__lshift+0x38>
  104262. 802b248: 4638 mov r0, r7
  104263. 802b24a: f7ff fd95 bl 802ad78 <_Balloc>
  104264. 802b24e: 4605 mov r5, r0
  104265. 802b250: b948 cbnz r0, 802b266 <__lshift+0x3e>
  104266. 802b252: 4602 mov r2, r0
  104267. 802b254: 4b28 ldr r3, [pc, #160] @ (802b2f8 <__lshift+0xd0>)
  104268. 802b256: 4829 ldr r0, [pc, #164] @ (802b2fc <__lshift+0xd4>)
  104269. 802b258: f44f 71ef mov.w r1, #478 @ 0x1de
  104270. 802b25c: f7fe fbf8 bl 8029a50 <__assert_func>
  104271. 802b260: 3101 adds r1, #1
  104272. 802b262: 005b lsls r3, r3, #1
  104273. 802b264: e7ee b.n 802b244 <__lshift+0x1c>
  104274. 802b266: 2300 movs r3, #0
  104275. 802b268: f100 0114 add.w r1, r0, #20
  104276. 802b26c: f100 0210 add.w r2, r0, #16
  104277. 802b270: 4618 mov r0, r3
  104278. 802b272: 4553 cmp r3, sl
  104279. 802b274: db33 blt.n 802b2de <__lshift+0xb6>
  104280. 802b276: 6920 ldr r0, [r4, #16]
  104281. 802b278: ea2a 7aea bic.w sl, sl, sl, asr #31
  104282. 802b27c: f104 0314 add.w r3, r4, #20
  104283. 802b280: f019 091f ands.w r9, r9, #31
  104284. 802b284: eb01 018a add.w r1, r1, sl, lsl #2
  104285. 802b288: eb03 0c80 add.w ip, r3, r0, lsl #2
  104286. 802b28c: d02b beq.n 802b2e6 <__lshift+0xbe>
  104287. 802b28e: f1c9 0e20 rsb lr, r9, #32
  104288. 802b292: 468a mov sl, r1
  104289. 802b294: 2200 movs r2, #0
  104290. 802b296: 6818 ldr r0, [r3, #0]
  104291. 802b298: fa00 f009 lsl.w r0, r0, r9
  104292. 802b29c: 4310 orrs r0, r2
  104293. 802b29e: f84a 0b04 str.w r0, [sl], #4
  104294. 802b2a2: f853 2b04 ldr.w r2, [r3], #4
  104295. 802b2a6: 459c cmp ip, r3
  104296. 802b2a8: fa22 f20e lsr.w r2, r2, lr
  104297. 802b2ac: d8f3 bhi.n 802b296 <__lshift+0x6e>
  104298. 802b2ae: ebac 0304 sub.w r3, ip, r4
  104299. 802b2b2: 3b15 subs r3, #21
  104300. 802b2b4: f023 0303 bic.w r3, r3, #3
  104301. 802b2b8: 3304 adds r3, #4
  104302. 802b2ba: f104 0015 add.w r0, r4, #21
  104303. 802b2be: 4584 cmp ip, r0
  104304. 802b2c0: bf38 it cc
  104305. 802b2c2: 2304 movcc r3, #4
  104306. 802b2c4: 50ca str r2, [r1, r3]
  104307. 802b2c6: b10a cbz r2, 802b2cc <__lshift+0xa4>
  104308. 802b2c8: f108 0602 add.w r6, r8, #2
  104309. 802b2cc: 3e01 subs r6, #1
  104310. 802b2ce: 4638 mov r0, r7
  104311. 802b2d0: 612e str r6, [r5, #16]
  104312. 802b2d2: 4621 mov r1, r4
  104313. 802b2d4: f7ff fd90 bl 802adf8 <_Bfree>
  104314. 802b2d8: 4628 mov r0, r5
  104315. 802b2da: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  104316. 802b2de: f842 0f04 str.w r0, [r2, #4]!
  104317. 802b2e2: 3301 adds r3, #1
  104318. 802b2e4: e7c5 b.n 802b272 <__lshift+0x4a>
  104319. 802b2e6: 3904 subs r1, #4
  104320. 802b2e8: f853 2b04 ldr.w r2, [r3], #4
  104321. 802b2ec: f841 2f04 str.w r2, [r1, #4]!
  104322. 802b2f0: 459c cmp ip, r3
  104323. 802b2f2: d8f9 bhi.n 802b2e8 <__lshift+0xc0>
  104324. 802b2f4: e7ea b.n 802b2cc <__lshift+0xa4>
  104325. 802b2f6: bf00 nop
  104326. 802b2f8: 08030a5e .word 0x08030a5e
  104327. 802b2fc: 08030acf .word 0x08030acf
  104328. 0802b300 <__mcmp>:
  104329. 802b300: 690a ldr r2, [r1, #16]
  104330. 802b302: 4603 mov r3, r0
  104331. 802b304: 6900 ldr r0, [r0, #16]
  104332. 802b306: 1a80 subs r0, r0, r2
  104333. 802b308: b530 push {r4, r5, lr}
  104334. 802b30a: d10e bne.n 802b32a <__mcmp+0x2a>
  104335. 802b30c: 3314 adds r3, #20
  104336. 802b30e: 3114 adds r1, #20
  104337. 802b310: eb03 0482 add.w r4, r3, r2, lsl #2
  104338. 802b314: eb01 0182 add.w r1, r1, r2, lsl #2
  104339. 802b318: f854 5d04 ldr.w r5, [r4, #-4]!
  104340. 802b31c: f851 2d04 ldr.w r2, [r1, #-4]!
  104341. 802b320: 4295 cmp r5, r2
  104342. 802b322: d003 beq.n 802b32c <__mcmp+0x2c>
  104343. 802b324: d205 bcs.n 802b332 <__mcmp+0x32>
  104344. 802b326: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  104345. 802b32a: bd30 pop {r4, r5, pc}
  104346. 802b32c: 42a3 cmp r3, r4
  104347. 802b32e: d3f3 bcc.n 802b318 <__mcmp+0x18>
  104348. 802b330: e7fb b.n 802b32a <__mcmp+0x2a>
  104349. 802b332: 2001 movs r0, #1
  104350. 802b334: e7f9 b.n 802b32a <__mcmp+0x2a>
  104351. ...
  104352. 0802b338 <__mdiff>:
  104353. 802b338: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  104354. 802b33c: 4689 mov r9, r1
  104355. 802b33e: 4606 mov r6, r0
  104356. 802b340: 4611 mov r1, r2
  104357. 802b342: 4648 mov r0, r9
  104358. 802b344: 4614 mov r4, r2
  104359. 802b346: f7ff ffdb bl 802b300 <__mcmp>
  104360. 802b34a: 1e05 subs r5, r0, #0
  104361. 802b34c: d112 bne.n 802b374 <__mdiff+0x3c>
  104362. 802b34e: 4629 mov r1, r5
  104363. 802b350: 4630 mov r0, r6
  104364. 802b352: f7ff fd11 bl 802ad78 <_Balloc>
  104365. 802b356: 4602 mov r2, r0
  104366. 802b358: b928 cbnz r0, 802b366 <__mdiff+0x2e>
  104367. 802b35a: 4b3f ldr r3, [pc, #252] @ (802b458 <__mdiff+0x120>)
  104368. 802b35c: f240 2137 movw r1, #567 @ 0x237
  104369. 802b360: 483e ldr r0, [pc, #248] @ (802b45c <__mdiff+0x124>)
  104370. 802b362: f7fe fb75 bl 8029a50 <__assert_func>
  104371. 802b366: 2301 movs r3, #1
  104372. 802b368: e9c0 3504 strd r3, r5, [r0, #16]
  104373. 802b36c: 4610 mov r0, r2
  104374. 802b36e: b003 add sp, #12
  104375. 802b370: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  104376. 802b374: bfbc itt lt
  104377. 802b376: 464b movlt r3, r9
  104378. 802b378: 46a1 movlt r9, r4
  104379. 802b37a: 4630 mov r0, r6
  104380. 802b37c: f8d9 1004 ldr.w r1, [r9, #4]
  104381. 802b380: bfba itte lt
  104382. 802b382: 461c movlt r4, r3
  104383. 802b384: 2501 movlt r5, #1
  104384. 802b386: 2500 movge r5, #0
  104385. 802b388: f7ff fcf6 bl 802ad78 <_Balloc>
  104386. 802b38c: 4602 mov r2, r0
  104387. 802b38e: b918 cbnz r0, 802b398 <__mdiff+0x60>
  104388. 802b390: 4b31 ldr r3, [pc, #196] @ (802b458 <__mdiff+0x120>)
  104389. 802b392: f240 2145 movw r1, #581 @ 0x245
  104390. 802b396: e7e3 b.n 802b360 <__mdiff+0x28>
  104391. 802b398: f8d9 7010 ldr.w r7, [r9, #16]
  104392. 802b39c: 6926 ldr r6, [r4, #16]
  104393. 802b39e: 60c5 str r5, [r0, #12]
  104394. 802b3a0: f109 0310 add.w r3, r9, #16
  104395. 802b3a4: f109 0514 add.w r5, r9, #20
  104396. 802b3a8: f104 0e14 add.w lr, r4, #20
  104397. 802b3ac: f100 0b14 add.w fp, r0, #20
  104398. 802b3b0: eb05 0887 add.w r8, r5, r7, lsl #2
  104399. 802b3b4: eb0e 0686 add.w r6, lr, r6, lsl #2
  104400. 802b3b8: 9301 str r3, [sp, #4]
  104401. 802b3ba: 46d9 mov r9, fp
  104402. 802b3bc: f04f 0c00 mov.w ip, #0
  104403. 802b3c0: 9b01 ldr r3, [sp, #4]
  104404. 802b3c2: f85e 0b04 ldr.w r0, [lr], #4
  104405. 802b3c6: f853 af04 ldr.w sl, [r3, #4]!
  104406. 802b3ca: 9301 str r3, [sp, #4]
  104407. 802b3cc: fa1f f38a uxth.w r3, sl
  104408. 802b3d0: 4619 mov r1, r3
  104409. 802b3d2: b283 uxth r3, r0
  104410. 802b3d4: 1acb subs r3, r1, r3
  104411. 802b3d6: 0c00 lsrs r0, r0, #16
  104412. 802b3d8: 4463 add r3, ip
  104413. 802b3da: ebc0 401a rsb r0, r0, sl, lsr #16
  104414. 802b3de: eb00 4023 add.w r0, r0, r3, asr #16
  104415. 802b3e2: b29b uxth r3, r3
  104416. 802b3e4: ea43 4300 orr.w r3, r3, r0, lsl #16
  104417. 802b3e8: 4576 cmp r6, lr
  104418. 802b3ea: f849 3b04 str.w r3, [r9], #4
  104419. 802b3ee: ea4f 4c20 mov.w ip, r0, asr #16
  104420. 802b3f2: d8e5 bhi.n 802b3c0 <__mdiff+0x88>
  104421. 802b3f4: 1b33 subs r3, r6, r4
  104422. 802b3f6: 3b15 subs r3, #21
  104423. 802b3f8: f023 0303 bic.w r3, r3, #3
  104424. 802b3fc: 3415 adds r4, #21
  104425. 802b3fe: 3304 adds r3, #4
  104426. 802b400: 42a6 cmp r6, r4
  104427. 802b402: bf38 it cc
  104428. 802b404: 2304 movcc r3, #4
  104429. 802b406: 441d add r5, r3
  104430. 802b408: 445b add r3, fp
  104431. 802b40a: 461e mov r6, r3
  104432. 802b40c: 462c mov r4, r5
  104433. 802b40e: 4544 cmp r4, r8
  104434. 802b410: d30e bcc.n 802b430 <__mdiff+0xf8>
  104435. 802b412: f108 0103 add.w r1, r8, #3
  104436. 802b416: 1b49 subs r1, r1, r5
  104437. 802b418: f021 0103 bic.w r1, r1, #3
  104438. 802b41c: 3d03 subs r5, #3
  104439. 802b41e: 45a8 cmp r8, r5
  104440. 802b420: bf38 it cc
  104441. 802b422: 2100 movcc r1, #0
  104442. 802b424: 440b add r3, r1
  104443. 802b426: f853 1d04 ldr.w r1, [r3, #-4]!
  104444. 802b42a: b191 cbz r1, 802b452 <__mdiff+0x11a>
  104445. 802b42c: 6117 str r7, [r2, #16]
  104446. 802b42e: e79d b.n 802b36c <__mdiff+0x34>
  104447. 802b430: f854 1b04 ldr.w r1, [r4], #4
  104448. 802b434: 46e6 mov lr, ip
  104449. 802b436: 0c08 lsrs r0, r1, #16
  104450. 802b438: fa1c fc81 uxtah ip, ip, r1
  104451. 802b43c: 4471 add r1, lr
  104452. 802b43e: eb00 402c add.w r0, r0, ip, asr #16
  104453. 802b442: b289 uxth r1, r1
  104454. 802b444: ea41 4100 orr.w r1, r1, r0, lsl #16
  104455. 802b448: f846 1b04 str.w r1, [r6], #4
  104456. 802b44c: ea4f 4c20 mov.w ip, r0, asr #16
  104457. 802b450: e7dd b.n 802b40e <__mdiff+0xd6>
  104458. 802b452: 3f01 subs r7, #1
  104459. 802b454: e7e7 b.n 802b426 <__mdiff+0xee>
  104460. 802b456: bf00 nop
  104461. 802b458: 08030a5e .word 0x08030a5e
  104462. 802b45c: 08030acf .word 0x08030acf
  104463. 0802b460 <__ulp>:
  104464. 802b460: b082 sub sp, #8
  104465. 802b462: ed8d 0b00 vstr d0, [sp]
  104466. 802b466: 9a01 ldr r2, [sp, #4]
  104467. 802b468: 4b0f ldr r3, [pc, #60] @ (802b4a8 <__ulp+0x48>)
  104468. 802b46a: 4013 ands r3, r2
  104469. 802b46c: f1a3 7350 sub.w r3, r3, #54525952 @ 0x3400000
  104470. 802b470: 2b00 cmp r3, #0
  104471. 802b472: dc08 bgt.n 802b486 <__ulp+0x26>
  104472. 802b474: 425b negs r3, r3
  104473. 802b476: f1b3 7fa0 cmp.w r3, #20971520 @ 0x1400000
  104474. 802b47a: ea4f 5223 mov.w r2, r3, asr #20
  104475. 802b47e: da04 bge.n 802b48a <__ulp+0x2a>
  104476. 802b480: f44f 2300 mov.w r3, #524288 @ 0x80000
  104477. 802b484: 4113 asrs r3, r2
  104478. 802b486: 2200 movs r2, #0
  104479. 802b488: e008 b.n 802b49c <__ulp+0x3c>
  104480. 802b48a: f1a2 0314 sub.w r3, r2, #20
  104481. 802b48e: 2b1e cmp r3, #30
  104482. 802b490: bfda itte le
  104483. 802b492: f04f 4200 movle.w r2, #2147483648 @ 0x80000000
  104484. 802b496: 40da lsrle r2, r3
  104485. 802b498: 2201 movgt r2, #1
  104486. 802b49a: 2300 movs r3, #0
  104487. 802b49c: 4619 mov r1, r3
  104488. 802b49e: 4610 mov r0, r2
  104489. 802b4a0: ec41 0b10 vmov d0, r0, r1
  104490. 802b4a4: b002 add sp, #8
  104491. 802b4a6: 4770 bx lr
  104492. 802b4a8: 7ff00000 .word 0x7ff00000
  104493. 0802b4ac <__b2d>:
  104494. 802b4ac: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  104495. 802b4b0: 6906 ldr r6, [r0, #16]
  104496. 802b4b2: f100 0814 add.w r8, r0, #20
  104497. 802b4b6: eb08 0686 add.w r6, r8, r6, lsl #2
  104498. 802b4ba: 1f37 subs r7, r6, #4
  104499. 802b4bc: f856 2c04 ldr.w r2, [r6, #-4]
  104500. 802b4c0: 4610 mov r0, r2
  104501. 802b4c2: f7ff fd4b bl 802af5c <__hi0bits>
  104502. 802b4c6: f1c0 0320 rsb r3, r0, #32
  104503. 802b4ca: 280a cmp r0, #10
  104504. 802b4cc: 600b str r3, [r1, #0]
  104505. 802b4ce: 491b ldr r1, [pc, #108] @ (802b53c <__b2d+0x90>)
  104506. 802b4d0: dc15 bgt.n 802b4fe <__b2d+0x52>
  104507. 802b4d2: f1c0 0c0b rsb ip, r0, #11
  104508. 802b4d6: fa22 f30c lsr.w r3, r2, ip
  104509. 802b4da: 45b8 cmp r8, r7
  104510. 802b4dc: ea43 0501 orr.w r5, r3, r1
  104511. 802b4e0: bf34 ite cc
  104512. 802b4e2: f856 3c08 ldrcc.w r3, [r6, #-8]
  104513. 802b4e6: 2300 movcs r3, #0
  104514. 802b4e8: 3015 adds r0, #21
  104515. 802b4ea: fa02 f000 lsl.w r0, r2, r0
  104516. 802b4ee: fa23 f30c lsr.w r3, r3, ip
  104517. 802b4f2: 4303 orrs r3, r0
  104518. 802b4f4: 461c mov r4, r3
  104519. 802b4f6: ec45 4b10 vmov d0, r4, r5
  104520. 802b4fa: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  104521. 802b4fe: 45b8 cmp r8, r7
  104522. 802b500: bf3a itte cc
  104523. 802b502: f856 3c08 ldrcc.w r3, [r6, #-8]
  104524. 802b506: f1a6 0708 subcc.w r7, r6, #8
  104525. 802b50a: 2300 movcs r3, #0
  104526. 802b50c: 380b subs r0, #11
  104527. 802b50e: d012 beq.n 802b536 <__b2d+0x8a>
  104528. 802b510: f1c0 0120 rsb r1, r0, #32
  104529. 802b514: fa23 f401 lsr.w r4, r3, r1
  104530. 802b518: 4082 lsls r2, r0
  104531. 802b51a: 4322 orrs r2, r4
  104532. 802b51c: 4547 cmp r7, r8
  104533. 802b51e: f042 557f orr.w r5, r2, #1069547520 @ 0x3fc00000
  104534. 802b522: bf8c ite hi
  104535. 802b524: f857 2c04 ldrhi.w r2, [r7, #-4]
  104536. 802b528: 2200 movls r2, #0
  104537. 802b52a: 4083 lsls r3, r0
  104538. 802b52c: 40ca lsrs r2, r1
  104539. 802b52e: f445 1540 orr.w r5, r5, #3145728 @ 0x300000
  104540. 802b532: 4313 orrs r3, r2
  104541. 802b534: e7de b.n 802b4f4 <__b2d+0x48>
  104542. 802b536: ea42 0501 orr.w r5, r2, r1
  104543. 802b53a: e7db b.n 802b4f4 <__b2d+0x48>
  104544. 802b53c: 3ff00000 .word 0x3ff00000
  104545. 0802b540 <__d2b>:
  104546. 802b540: e92d 43f7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, lr}
  104547. 802b544: 460f mov r7, r1
  104548. 802b546: 2101 movs r1, #1
  104549. 802b548: ec59 8b10 vmov r8, r9, d0
  104550. 802b54c: 4616 mov r6, r2
  104551. 802b54e: f7ff fc13 bl 802ad78 <_Balloc>
  104552. 802b552: 4604 mov r4, r0
  104553. 802b554: b930 cbnz r0, 802b564 <__d2b+0x24>
  104554. 802b556: 4602 mov r2, r0
  104555. 802b558: 4b23 ldr r3, [pc, #140] @ (802b5e8 <__d2b+0xa8>)
  104556. 802b55a: 4824 ldr r0, [pc, #144] @ (802b5ec <__d2b+0xac>)
  104557. 802b55c: f240 310f movw r1, #783 @ 0x30f
  104558. 802b560: f7fe fa76 bl 8029a50 <__assert_func>
  104559. 802b564: f3c9 550a ubfx r5, r9, #20, #11
  104560. 802b568: f3c9 0313 ubfx r3, r9, #0, #20
  104561. 802b56c: b10d cbz r5, 802b572 <__d2b+0x32>
  104562. 802b56e: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  104563. 802b572: 9301 str r3, [sp, #4]
  104564. 802b574: f1b8 0300 subs.w r3, r8, #0
  104565. 802b578: d023 beq.n 802b5c2 <__d2b+0x82>
  104566. 802b57a: 4668 mov r0, sp
  104567. 802b57c: 9300 str r3, [sp, #0]
  104568. 802b57e: f7ff fd0c bl 802af9a <__lo0bits>
  104569. 802b582: e9dd 1200 ldrd r1, r2, [sp]
  104570. 802b586: b1d0 cbz r0, 802b5be <__d2b+0x7e>
  104571. 802b588: f1c0 0320 rsb r3, r0, #32
  104572. 802b58c: fa02 f303 lsl.w r3, r2, r3
  104573. 802b590: 430b orrs r3, r1
  104574. 802b592: 40c2 lsrs r2, r0
  104575. 802b594: 6163 str r3, [r4, #20]
  104576. 802b596: 9201 str r2, [sp, #4]
  104577. 802b598: 9b01 ldr r3, [sp, #4]
  104578. 802b59a: 61a3 str r3, [r4, #24]
  104579. 802b59c: 2b00 cmp r3, #0
  104580. 802b59e: bf0c ite eq
  104581. 802b5a0: 2201 moveq r2, #1
  104582. 802b5a2: 2202 movne r2, #2
  104583. 802b5a4: 6122 str r2, [r4, #16]
  104584. 802b5a6: b1a5 cbz r5, 802b5d2 <__d2b+0x92>
  104585. 802b5a8: f2a5 4533 subw r5, r5, #1075 @ 0x433
  104586. 802b5ac: 4405 add r5, r0
  104587. 802b5ae: 603d str r5, [r7, #0]
  104588. 802b5b0: f1c0 0035 rsb r0, r0, #53 @ 0x35
  104589. 802b5b4: 6030 str r0, [r6, #0]
  104590. 802b5b6: 4620 mov r0, r4
  104591. 802b5b8: b003 add sp, #12
  104592. 802b5ba: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc}
  104593. 802b5be: 6161 str r1, [r4, #20]
  104594. 802b5c0: e7ea b.n 802b598 <__d2b+0x58>
  104595. 802b5c2: a801 add r0, sp, #4
  104596. 802b5c4: f7ff fce9 bl 802af9a <__lo0bits>
  104597. 802b5c8: 9b01 ldr r3, [sp, #4]
  104598. 802b5ca: 6163 str r3, [r4, #20]
  104599. 802b5cc: 3020 adds r0, #32
  104600. 802b5ce: 2201 movs r2, #1
  104601. 802b5d0: e7e8 b.n 802b5a4 <__d2b+0x64>
  104602. 802b5d2: eb04 0382 add.w r3, r4, r2, lsl #2
  104603. 802b5d6: f2a0 4032 subw r0, r0, #1074 @ 0x432
  104604. 802b5da: 6038 str r0, [r7, #0]
  104605. 802b5dc: 6918 ldr r0, [r3, #16]
  104606. 802b5de: f7ff fcbd bl 802af5c <__hi0bits>
  104607. 802b5e2: ebc0 1042 rsb r0, r0, r2, lsl #5
  104608. 802b5e6: e7e5 b.n 802b5b4 <__d2b+0x74>
  104609. 802b5e8: 08030a5e .word 0x08030a5e
  104610. 802b5ec: 08030acf .word 0x08030acf
  104611. 0802b5f0 <__ratio>:
  104612. 802b5f0: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  104613. 802b5f4: 4688 mov r8, r1
  104614. 802b5f6: 4669 mov r1, sp
  104615. 802b5f8: 4681 mov r9, r0
  104616. 802b5fa: f7ff ff57 bl 802b4ac <__b2d>
  104617. 802b5fe: a901 add r1, sp, #4
  104618. 802b600: 4640 mov r0, r8
  104619. 802b602: ec55 4b10 vmov r4, r5, d0
  104620. 802b606: f7ff ff51 bl 802b4ac <__b2d>
  104621. 802b60a: f8d8 3010 ldr.w r3, [r8, #16]
  104622. 802b60e: f8d9 2010 ldr.w r2, [r9, #16]
  104623. 802b612: 1ad2 subs r2, r2, r3
  104624. 802b614: e9dd 3100 ldrd r3, r1, [sp]
  104625. 802b618: 1a5b subs r3, r3, r1
  104626. 802b61a: eb03 1342 add.w r3, r3, r2, lsl #5
  104627. 802b61e: ec57 6b10 vmov r6, r7, d0
  104628. 802b622: 2b00 cmp r3, #0
  104629. 802b624: bfd6 itet le
  104630. 802b626: ebc3 3303 rsble r3, r3, r3, lsl #12
  104631. 802b62a: 462a movgt r2, r5
  104632. 802b62c: 463a movle r2, r7
  104633. 802b62e: 46ab mov fp, r5
  104634. 802b630: 46a2 mov sl, r4
  104635. 802b632: bfce itee gt
  104636. 802b634: eb02 5b03 addgt.w fp, r2, r3, lsl #20
  104637. 802b638: eb02 5303 addle.w r3, r2, r3, lsl #20
  104638. 802b63c: ee00 3a90 vmovle s1, r3
  104639. 802b640: ec4b ab17 vmov d7, sl, fp
  104640. 802b644: ee87 0b00 vdiv.f64 d0, d7, d0
  104641. 802b648: b003 add sp, #12
  104642. 802b64a: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  104643. 0802b64e <__copybits>:
  104644. 802b64e: 3901 subs r1, #1
  104645. 802b650: b570 push {r4, r5, r6, lr}
  104646. 802b652: 1149 asrs r1, r1, #5
  104647. 802b654: 6914 ldr r4, [r2, #16]
  104648. 802b656: 3101 adds r1, #1
  104649. 802b658: f102 0314 add.w r3, r2, #20
  104650. 802b65c: eb00 0181 add.w r1, r0, r1, lsl #2
  104651. 802b660: eb03 0484 add.w r4, r3, r4, lsl #2
  104652. 802b664: 1f05 subs r5, r0, #4
  104653. 802b666: 42a3 cmp r3, r4
  104654. 802b668: d30c bcc.n 802b684 <__copybits+0x36>
  104655. 802b66a: 1aa3 subs r3, r4, r2
  104656. 802b66c: 3b11 subs r3, #17
  104657. 802b66e: f023 0303 bic.w r3, r3, #3
  104658. 802b672: 3211 adds r2, #17
  104659. 802b674: 42a2 cmp r2, r4
  104660. 802b676: bf88 it hi
  104661. 802b678: 2300 movhi r3, #0
  104662. 802b67a: 4418 add r0, r3
  104663. 802b67c: 2300 movs r3, #0
  104664. 802b67e: 4288 cmp r0, r1
  104665. 802b680: d305 bcc.n 802b68e <__copybits+0x40>
  104666. 802b682: bd70 pop {r4, r5, r6, pc}
  104667. 802b684: f853 6b04 ldr.w r6, [r3], #4
  104668. 802b688: f845 6f04 str.w r6, [r5, #4]!
  104669. 802b68c: e7eb b.n 802b666 <__copybits+0x18>
  104670. 802b68e: f840 3b04 str.w r3, [r0], #4
  104671. 802b692: e7f4 b.n 802b67e <__copybits+0x30>
  104672. 0802b694 <__any_on>:
  104673. 802b694: f100 0214 add.w r2, r0, #20
  104674. 802b698: 6900 ldr r0, [r0, #16]
  104675. 802b69a: 114b asrs r3, r1, #5
  104676. 802b69c: 4298 cmp r0, r3
  104677. 802b69e: b510 push {r4, lr}
  104678. 802b6a0: db11 blt.n 802b6c6 <__any_on+0x32>
  104679. 802b6a2: dd0a ble.n 802b6ba <__any_on+0x26>
  104680. 802b6a4: f011 011f ands.w r1, r1, #31
  104681. 802b6a8: d007 beq.n 802b6ba <__any_on+0x26>
  104682. 802b6aa: f852 4023 ldr.w r4, [r2, r3, lsl #2]
  104683. 802b6ae: fa24 f001 lsr.w r0, r4, r1
  104684. 802b6b2: fa00 f101 lsl.w r1, r0, r1
  104685. 802b6b6: 428c cmp r4, r1
  104686. 802b6b8: d10b bne.n 802b6d2 <__any_on+0x3e>
  104687. 802b6ba: eb02 0383 add.w r3, r2, r3, lsl #2
  104688. 802b6be: 4293 cmp r3, r2
  104689. 802b6c0: d803 bhi.n 802b6ca <__any_on+0x36>
  104690. 802b6c2: 2000 movs r0, #0
  104691. 802b6c4: bd10 pop {r4, pc}
  104692. 802b6c6: 4603 mov r3, r0
  104693. 802b6c8: e7f7 b.n 802b6ba <__any_on+0x26>
  104694. 802b6ca: f853 1d04 ldr.w r1, [r3, #-4]!
  104695. 802b6ce: 2900 cmp r1, #0
  104696. 802b6d0: d0f5 beq.n 802b6be <__any_on+0x2a>
  104697. 802b6d2: 2001 movs r0, #1
  104698. 802b6d4: e7f6 b.n 802b6c4 <__any_on+0x30>
  104699. 0802b6d6 <_malloc_usable_size_r>:
  104700. 802b6d6: f851 3c04 ldr.w r3, [r1, #-4]
  104701. 802b6da: 1f18 subs r0, r3, #4
  104702. 802b6dc: 2b00 cmp r3, #0
  104703. 802b6de: bfbc itt lt
  104704. 802b6e0: 580b ldrlt r3, [r1, r0]
  104705. 802b6e2: 18c0 addlt r0, r0, r3
  104706. 802b6e4: 4770 bx lr
  104707. 0802b6e6 <__ascii_wctomb>:
  104708. 802b6e6: 4603 mov r3, r0
  104709. 802b6e8: 4608 mov r0, r1
  104710. 802b6ea: b141 cbz r1, 802b6fe <__ascii_wctomb+0x18>
  104711. 802b6ec: 2aff cmp r2, #255 @ 0xff
  104712. 802b6ee: d904 bls.n 802b6fa <__ascii_wctomb+0x14>
  104713. 802b6f0: 228a movs r2, #138 @ 0x8a
  104714. 802b6f2: 601a str r2, [r3, #0]
  104715. 802b6f4: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  104716. 802b6f8: 4770 bx lr
  104717. 802b6fa: 700a strb r2, [r1, #0]
  104718. 802b6fc: 2001 movs r0, #1
  104719. 802b6fe: 4770 bx lr
  104720. 0802b700 <__ssputs_r>:
  104721. 802b700: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  104722. 802b704: 688e ldr r6, [r1, #8]
  104723. 802b706: 461f mov r7, r3
  104724. 802b708: 42be cmp r6, r7
  104725. 802b70a: 680b ldr r3, [r1, #0]
  104726. 802b70c: 4682 mov sl, r0
  104727. 802b70e: 460c mov r4, r1
  104728. 802b710: 4690 mov r8, r2
  104729. 802b712: d82d bhi.n 802b770 <__ssputs_r+0x70>
  104730. 802b714: f9b1 200c ldrsh.w r2, [r1, #12]
  104731. 802b718: f412 6f90 tst.w r2, #1152 @ 0x480
  104732. 802b71c: d026 beq.n 802b76c <__ssputs_r+0x6c>
  104733. 802b71e: 6965 ldr r5, [r4, #20]
  104734. 802b720: 6909 ldr r1, [r1, #16]
  104735. 802b722: eb05 0545 add.w r5, r5, r5, lsl #1
  104736. 802b726: eba3 0901 sub.w r9, r3, r1
  104737. 802b72a: eb05 75d5 add.w r5, r5, r5, lsr #31
  104738. 802b72e: 1c7b adds r3, r7, #1
  104739. 802b730: 444b add r3, r9
  104740. 802b732: 106d asrs r5, r5, #1
  104741. 802b734: 429d cmp r5, r3
  104742. 802b736: bf38 it cc
  104743. 802b738: 461d movcc r5, r3
  104744. 802b73a: 0553 lsls r3, r2, #21
  104745. 802b73c: d527 bpl.n 802b78e <__ssputs_r+0x8e>
  104746. 802b73e: 4629 mov r1, r5
  104747. 802b740: f7fc fb2e bl 8027da0 <_malloc_r>
  104748. 802b744: 4606 mov r6, r0
  104749. 802b746: b360 cbz r0, 802b7a2 <__ssputs_r+0xa2>
  104750. 802b748: 6921 ldr r1, [r4, #16]
  104751. 802b74a: 464a mov r2, r9
  104752. 802b74c: f7fe f967 bl 8029a1e <memcpy>
  104753. 802b750: 89a3 ldrh r3, [r4, #12]
  104754. 802b752: f423 6390 bic.w r3, r3, #1152 @ 0x480
  104755. 802b756: f043 0380 orr.w r3, r3, #128 @ 0x80
  104756. 802b75a: 81a3 strh r3, [r4, #12]
  104757. 802b75c: 6126 str r6, [r4, #16]
  104758. 802b75e: 6165 str r5, [r4, #20]
  104759. 802b760: 444e add r6, r9
  104760. 802b762: eba5 0509 sub.w r5, r5, r9
  104761. 802b766: 6026 str r6, [r4, #0]
  104762. 802b768: 60a5 str r5, [r4, #8]
  104763. 802b76a: 463e mov r6, r7
  104764. 802b76c: 42be cmp r6, r7
  104765. 802b76e: d900 bls.n 802b772 <__ssputs_r+0x72>
  104766. 802b770: 463e mov r6, r7
  104767. 802b772: 6820 ldr r0, [r4, #0]
  104768. 802b774: 4632 mov r2, r6
  104769. 802b776: 4641 mov r1, r8
  104770. 802b778: f7fe f840 bl 80297fc <memmove>
  104771. 802b77c: 68a3 ldr r3, [r4, #8]
  104772. 802b77e: 1b9b subs r3, r3, r6
  104773. 802b780: 60a3 str r3, [r4, #8]
  104774. 802b782: 6823 ldr r3, [r4, #0]
  104775. 802b784: 4433 add r3, r6
  104776. 802b786: 6023 str r3, [r4, #0]
  104777. 802b788: 2000 movs r0, #0
  104778. 802b78a: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  104779. 802b78e: 462a mov r2, r5
  104780. 802b790: f7fc fbd8 bl 8027f44 <_realloc_r>
  104781. 802b794: 4606 mov r6, r0
  104782. 802b796: 2800 cmp r0, #0
  104783. 802b798: d1e0 bne.n 802b75c <__ssputs_r+0x5c>
  104784. 802b79a: 6921 ldr r1, [r4, #16]
  104785. 802b79c: 4650 mov r0, sl
  104786. 802b79e: f7fe ff55 bl 802a64c <_free_r>
  104787. 802b7a2: 230c movs r3, #12
  104788. 802b7a4: f8ca 3000 str.w r3, [sl]
  104789. 802b7a8: 89a3 ldrh r3, [r4, #12]
  104790. 802b7aa: f043 0340 orr.w r3, r3, #64 @ 0x40
  104791. 802b7ae: 81a3 strh r3, [r4, #12]
  104792. 802b7b0: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  104793. 802b7b4: e7e9 b.n 802b78a <__ssputs_r+0x8a>
  104794. ...
  104795. 0802b7b8 <_svfiprintf_r>:
  104796. 802b7b8: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  104797. 802b7bc: 4698 mov r8, r3
  104798. 802b7be: 898b ldrh r3, [r1, #12]
  104799. 802b7c0: 061b lsls r3, r3, #24
  104800. 802b7c2: b09d sub sp, #116 @ 0x74
  104801. 802b7c4: 4607 mov r7, r0
  104802. 802b7c6: 460d mov r5, r1
  104803. 802b7c8: 4614 mov r4, r2
  104804. 802b7ca: d510 bpl.n 802b7ee <_svfiprintf_r+0x36>
  104805. 802b7cc: 690b ldr r3, [r1, #16]
  104806. 802b7ce: b973 cbnz r3, 802b7ee <_svfiprintf_r+0x36>
  104807. 802b7d0: 2140 movs r1, #64 @ 0x40
  104808. 802b7d2: f7fc fae5 bl 8027da0 <_malloc_r>
  104809. 802b7d6: 6028 str r0, [r5, #0]
  104810. 802b7d8: 6128 str r0, [r5, #16]
  104811. 802b7da: b930 cbnz r0, 802b7ea <_svfiprintf_r+0x32>
  104812. 802b7dc: 230c movs r3, #12
  104813. 802b7de: 603b str r3, [r7, #0]
  104814. 802b7e0: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  104815. 802b7e4: b01d add sp, #116 @ 0x74
  104816. 802b7e6: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  104817. 802b7ea: 2340 movs r3, #64 @ 0x40
  104818. 802b7ec: 616b str r3, [r5, #20]
  104819. 802b7ee: 2300 movs r3, #0
  104820. 802b7f0: 9309 str r3, [sp, #36] @ 0x24
  104821. 802b7f2: 2320 movs r3, #32
  104822. 802b7f4: f88d 3029 strb.w r3, [sp, #41] @ 0x29
  104823. 802b7f8: f8cd 800c str.w r8, [sp, #12]
  104824. 802b7fc: 2330 movs r3, #48 @ 0x30
  104825. 802b7fe: f8df 819c ldr.w r8, [pc, #412] @ 802b99c <_svfiprintf_r+0x1e4>
  104826. 802b802: f88d 302a strb.w r3, [sp, #42] @ 0x2a
  104827. 802b806: f04f 0901 mov.w r9, #1
  104828. 802b80a: 4623 mov r3, r4
  104829. 802b80c: 469a mov sl, r3
  104830. 802b80e: f813 2b01 ldrb.w r2, [r3], #1
  104831. 802b812: b10a cbz r2, 802b818 <_svfiprintf_r+0x60>
  104832. 802b814: 2a25 cmp r2, #37 @ 0x25
  104833. 802b816: d1f9 bne.n 802b80c <_svfiprintf_r+0x54>
  104834. 802b818: ebba 0b04 subs.w fp, sl, r4
  104835. 802b81c: d00b beq.n 802b836 <_svfiprintf_r+0x7e>
  104836. 802b81e: 465b mov r3, fp
  104837. 802b820: 4622 mov r2, r4
  104838. 802b822: 4629 mov r1, r5
  104839. 802b824: 4638 mov r0, r7
  104840. 802b826: f7ff ff6b bl 802b700 <__ssputs_r>
  104841. 802b82a: 3001 adds r0, #1
  104842. 802b82c: f000 80a7 beq.w 802b97e <_svfiprintf_r+0x1c6>
  104843. 802b830: 9a09 ldr r2, [sp, #36] @ 0x24
  104844. 802b832: 445a add r2, fp
  104845. 802b834: 9209 str r2, [sp, #36] @ 0x24
  104846. 802b836: f89a 3000 ldrb.w r3, [sl]
  104847. 802b83a: 2b00 cmp r3, #0
  104848. 802b83c: f000 809f beq.w 802b97e <_svfiprintf_r+0x1c6>
  104849. 802b840: 2300 movs r3, #0
  104850. 802b842: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  104851. 802b846: e9cd 2305 strd r2, r3, [sp, #20]
  104852. 802b84a: f10a 0a01 add.w sl, sl, #1
  104853. 802b84e: 9304 str r3, [sp, #16]
  104854. 802b850: 9307 str r3, [sp, #28]
  104855. 802b852: f88d 3053 strb.w r3, [sp, #83] @ 0x53
  104856. 802b856: 931a str r3, [sp, #104] @ 0x68
  104857. 802b858: 4654 mov r4, sl
  104858. 802b85a: 2205 movs r2, #5
  104859. 802b85c: f814 1b01 ldrb.w r1, [r4], #1
  104860. 802b860: 484e ldr r0, [pc, #312] @ (802b99c <_svfiprintf_r+0x1e4>)
  104861. 802b862: f7d4 fd4d bl 8000300 <memchr>
  104862. 802b866: 9a04 ldr r2, [sp, #16]
  104863. 802b868: b9d8 cbnz r0, 802b8a2 <_svfiprintf_r+0xea>
  104864. 802b86a: 06d0 lsls r0, r2, #27
  104865. 802b86c: bf44 itt mi
  104866. 802b86e: 2320 movmi r3, #32
  104867. 802b870: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
  104868. 802b874: 0711 lsls r1, r2, #28
  104869. 802b876: bf44 itt mi
  104870. 802b878: 232b movmi r3, #43 @ 0x2b
  104871. 802b87a: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
  104872. 802b87e: f89a 3000 ldrb.w r3, [sl]
  104873. 802b882: 2b2a cmp r3, #42 @ 0x2a
  104874. 802b884: d015 beq.n 802b8b2 <_svfiprintf_r+0xfa>
  104875. 802b886: 9a07 ldr r2, [sp, #28]
  104876. 802b888: 4654 mov r4, sl
  104877. 802b88a: 2000 movs r0, #0
  104878. 802b88c: f04f 0c0a mov.w ip, #10
  104879. 802b890: 4621 mov r1, r4
  104880. 802b892: f811 3b01 ldrb.w r3, [r1], #1
  104881. 802b896: 3b30 subs r3, #48 @ 0x30
  104882. 802b898: 2b09 cmp r3, #9
  104883. 802b89a: d94b bls.n 802b934 <_svfiprintf_r+0x17c>
  104884. 802b89c: b1b0 cbz r0, 802b8cc <_svfiprintf_r+0x114>
  104885. 802b89e: 9207 str r2, [sp, #28]
  104886. 802b8a0: e014 b.n 802b8cc <_svfiprintf_r+0x114>
  104887. 802b8a2: eba0 0308 sub.w r3, r0, r8
  104888. 802b8a6: fa09 f303 lsl.w r3, r9, r3
  104889. 802b8aa: 4313 orrs r3, r2
  104890. 802b8ac: 9304 str r3, [sp, #16]
  104891. 802b8ae: 46a2 mov sl, r4
  104892. 802b8b0: e7d2 b.n 802b858 <_svfiprintf_r+0xa0>
  104893. 802b8b2: 9b03 ldr r3, [sp, #12]
  104894. 802b8b4: 1d19 adds r1, r3, #4
  104895. 802b8b6: 681b ldr r3, [r3, #0]
  104896. 802b8b8: 9103 str r1, [sp, #12]
  104897. 802b8ba: 2b00 cmp r3, #0
  104898. 802b8bc: bfbb ittet lt
  104899. 802b8be: 425b neglt r3, r3
  104900. 802b8c0: f042 0202 orrlt.w r2, r2, #2
  104901. 802b8c4: 9307 strge r3, [sp, #28]
  104902. 802b8c6: 9307 strlt r3, [sp, #28]
  104903. 802b8c8: bfb8 it lt
  104904. 802b8ca: 9204 strlt r2, [sp, #16]
  104905. 802b8cc: 7823 ldrb r3, [r4, #0]
  104906. 802b8ce: 2b2e cmp r3, #46 @ 0x2e
  104907. 802b8d0: d10a bne.n 802b8e8 <_svfiprintf_r+0x130>
  104908. 802b8d2: 7863 ldrb r3, [r4, #1]
  104909. 802b8d4: 2b2a cmp r3, #42 @ 0x2a
  104910. 802b8d6: d132 bne.n 802b93e <_svfiprintf_r+0x186>
  104911. 802b8d8: 9b03 ldr r3, [sp, #12]
  104912. 802b8da: 1d1a adds r2, r3, #4
  104913. 802b8dc: 681b ldr r3, [r3, #0]
  104914. 802b8de: 9203 str r2, [sp, #12]
  104915. 802b8e0: ea43 73e3 orr.w r3, r3, r3, asr #31
  104916. 802b8e4: 3402 adds r4, #2
  104917. 802b8e6: 9305 str r3, [sp, #20]
  104918. 802b8e8: f8df a0c0 ldr.w sl, [pc, #192] @ 802b9ac <_svfiprintf_r+0x1f4>
  104919. 802b8ec: 7821 ldrb r1, [r4, #0]
  104920. 802b8ee: 2203 movs r2, #3
  104921. 802b8f0: 4650 mov r0, sl
  104922. 802b8f2: f7d4 fd05 bl 8000300 <memchr>
  104923. 802b8f6: b138 cbz r0, 802b908 <_svfiprintf_r+0x150>
  104924. 802b8f8: 9b04 ldr r3, [sp, #16]
  104925. 802b8fa: eba0 000a sub.w r0, r0, sl
  104926. 802b8fe: 2240 movs r2, #64 @ 0x40
  104927. 802b900: 4082 lsls r2, r0
  104928. 802b902: 4313 orrs r3, r2
  104929. 802b904: 3401 adds r4, #1
  104930. 802b906: 9304 str r3, [sp, #16]
  104931. 802b908: f814 1b01 ldrb.w r1, [r4], #1
  104932. 802b90c: 4824 ldr r0, [pc, #144] @ (802b9a0 <_svfiprintf_r+0x1e8>)
  104933. 802b90e: f88d 1028 strb.w r1, [sp, #40] @ 0x28
  104934. 802b912: 2206 movs r2, #6
  104935. 802b914: f7d4 fcf4 bl 8000300 <memchr>
  104936. 802b918: 2800 cmp r0, #0
  104937. 802b91a: d036 beq.n 802b98a <_svfiprintf_r+0x1d2>
  104938. 802b91c: 4b21 ldr r3, [pc, #132] @ (802b9a4 <_svfiprintf_r+0x1ec>)
  104939. 802b91e: bb1b cbnz r3, 802b968 <_svfiprintf_r+0x1b0>
  104940. 802b920: 9b03 ldr r3, [sp, #12]
  104941. 802b922: 3307 adds r3, #7
  104942. 802b924: f023 0307 bic.w r3, r3, #7
  104943. 802b928: 3308 adds r3, #8
  104944. 802b92a: 9303 str r3, [sp, #12]
  104945. 802b92c: 9b09 ldr r3, [sp, #36] @ 0x24
  104946. 802b92e: 4433 add r3, r6
  104947. 802b930: 9309 str r3, [sp, #36] @ 0x24
  104948. 802b932: e76a b.n 802b80a <_svfiprintf_r+0x52>
  104949. 802b934: fb0c 3202 mla r2, ip, r2, r3
  104950. 802b938: 460c mov r4, r1
  104951. 802b93a: 2001 movs r0, #1
  104952. 802b93c: e7a8 b.n 802b890 <_svfiprintf_r+0xd8>
  104953. 802b93e: 2300 movs r3, #0
  104954. 802b940: 3401 adds r4, #1
  104955. 802b942: 9305 str r3, [sp, #20]
  104956. 802b944: 4619 mov r1, r3
  104957. 802b946: f04f 0c0a mov.w ip, #10
  104958. 802b94a: 4620 mov r0, r4
  104959. 802b94c: f810 2b01 ldrb.w r2, [r0], #1
  104960. 802b950: 3a30 subs r2, #48 @ 0x30
  104961. 802b952: 2a09 cmp r2, #9
  104962. 802b954: d903 bls.n 802b95e <_svfiprintf_r+0x1a6>
  104963. 802b956: 2b00 cmp r3, #0
  104964. 802b958: d0c6 beq.n 802b8e8 <_svfiprintf_r+0x130>
  104965. 802b95a: 9105 str r1, [sp, #20]
  104966. 802b95c: e7c4 b.n 802b8e8 <_svfiprintf_r+0x130>
  104967. 802b95e: fb0c 2101 mla r1, ip, r1, r2
  104968. 802b962: 4604 mov r4, r0
  104969. 802b964: 2301 movs r3, #1
  104970. 802b966: e7f0 b.n 802b94a <_svfiprintf_r+0x192>
  104971. 802b968: ab03 add r3, sp, #12
  104972. 802b96a: 9300 str r3, [sp, #0]
  104973. 802b96c: 462a mov r2, r5
  104974. 802b96e: 4b0e ldr r3, [pc, #56] @ (802b9a8 <_svfiprintf_r+0x1f0>)
  104975. 802b970: a904 add r1, sp, #16
  104976. 802b972: 4638 mov r0, r7
  104977. 802b974: f7fd f960 bl 8028c38 <_printf_float>
  104978. 802b978: 1c42 adds r2, r0, #1
  104979. 802b97a: 4606 mov r6, r0
  104980. 802b97c: d1d6 bne.n 802b92c <_svfiprintf_r+0x174>
  104981. 802b97e: 89ab ldrh r3, [r5, #12]
  104982. 802b980: 065b lsls r3, r3, #25
  104983. 802b982: f53f af2d bmi.w 802b7e0 <_svfiprintf_r+0x28>
  104984. 802b986: 9809 ldr r0, [sp, #36] @ 0x24
  104985. 802b988: e72c b.n 802b7e4 <_svfiprintf_r+0x2c>
  104986. 802b98a: ab03 add r3, sp, #12
  104987. 802b98c: 9300 str r3, [sp, #0]
  104988. 802b98e: 462a mov r2, r5
  104989. 802b990: 4b05 ldr r3, [pc, #20] @ (802b9a8 <_svfiprintf_r+0x1f0>)
  104990. 802b992: a904 add r1, sp, #16
  104991. 802b994: 4638 mov r0, r7
  104992. 802b996: f7fd fbd7 bl 8029148 <_printf_i>
  104993. 802b99a: e7ed b.n 802b978 <_svfiprintf_r+0x1c0>
  104994. 802b99c: 08030c28 .word 0x08030c28
  104995. 802b9a0: 08030c32 .word 0x08030c32
  104996. 802b9a4: 08028c39 .word 0x08028c39
  104997. 802b9a8: 0802b701 .word 0x0802b701
  104998. 802b9ac: 08030c2e .word 0x08030c2e
  104999. 0802b9b0 <__sfputc_r>:
  105000. 802b9b0: 6893 ldr r3, [r2, #8]
  105001. 802b9b2: 3b01 subs r3, #1
  105002. 802b9b4: 2b00 cmp r3, #0
  105003. 802b9b6: b410 push {r4}
  105004. 802b9b8: 6093 str r3, [r2, #8]
  105005. 802b9ba: da08 bge.n 802b9ce <__sfputc_r+0x1e>
  105006. 802b9bc: 6994 ldr r4, [r2, #24]
  105007. 802b9be: 42a3 cmp r3, r4
  105008. 802b9c0: db01 blt.n 802b9c6 <__sfputc_r+0x16>
  105009. 802b9c2: 290a cmp r1, #10
  105010. 802b9c4: d103 bne.n 802b9ce <__sfputc_r+0x1e>
  105011. 802b9c6: f85d 4b04 ldr.w r4, [sp], #4
  105012. 802b9ca: f7fd be72 b.w 80296b2 <__swbuf_r>
  105013. 802b9ce: 6813 ldr r3, [r2, #0]
  105014. 802b9d0: 1c58 adds r0, r3, #1
  105015. 802b9d2: 6010 str r0, [r2, #0]
  105016. 802b9d4: 7019 strb r1, [r3, #0]
  105017. 802b9d6: 4608 mov r0, r1
  105018. 802b9d8: f85d 4b04 ldr.w r4, [sp], #4
  105019. 802b9dc: 4770 bx lr
  105020. 0802b9de <__sfputs_r>:
  105021. 802b9de: b5f8 push {r3, r4, r5, r6, r7, lr}
  105022. 802b9e0: 4606 mov r6, r0
  105023. 802b9e2: 460f mov r7, r1
  105024. 802b9e4: 4614 mov r4, r2
  105025. 802b9e6: 18d5 adds r5, r2, r3
  105026. 802b9e8: 42ac cmp r4, r5
  105027. 802b9ea: d101 bne.n 802b9f0 <__sfputs_r+0x12>
  105028. 802b9ec: 2000 movs r0, #0
  105029. 802b9ee: e007 b.n 802ba00 <__sfputs_r+0x22>
  105030. 802b9f0: f814 1b01 ldrb.w r1, [r4], #1
  105031. 802b9f4: 463a mov r2, r7
  105032. 802b9f6: 4630 mov r0, r6
  105033. 802b9f8: f7ff ffda bl 802b9b0 <__sfputc_r>
  105034. 802b9fc: 1c43 adds r3, r0, #1
  105035. 802b9fe: d1f3 bne.n 802b9e8 <__sfputs_r+0xa>
  105036. 802ba00: bdf8 pop {r3, r4, r5, r6, r7, pc}
  105037. ...
  105038. 0802ba04 <_vfiprintf_r>:
  105039. 802ba04: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  105040. 802ba08: 460d mov r5, r1
  105041. 802ba0a: b09d sub sp, #116 @ 0x74
  105042. 802ba0c: 4614 mov r4, r2
  105043. 802ba0e: 4698 mov r8, r3
  105044. 802ba10: 4606 mov r6, r0
  105045. 802ba12: b118 cbz r0, 802ba1c <_vfiprintf_r+0x18>
  105046. 802ba14: 6a03 ldr r3, [r0, #32]
  105047. 802ba16: b90b cbnz r3, 802ba1c <_vfiprintf_r+0x18>
  105048. 802ba18: f7fd fd42 bl 80294a0 <__sinit>
  105049. 802ba1c: 6e6b ldr r3, [r5, #100] @ 0x64
  105050. 802ba1e: 07d9 lsls r1, r3, #31
  105051. 802ba20: d405 bmi.n 802ba2e <_vfiprintf_r+0x2a>
  105052. 802ba22: 89ab ldrh r3, [r5, #12]
  105053. 802ba24: 059a lsls r2, r3, #22
  105054. 802ba26: d402 bmi.n 802ba2e <_vfiprintf_r+0x2a>
  105055. 802ba28: 6da8 ldr r0, [r5, #88] @ 0x58
  105056. 802ba2a: f7fd fff6 bl 8029a1a <__retarget_lock_acquire_recursive>
  105057. 802ba2e: 89ab ldrh r3, [r5, #12]
  105058. 802ba30: 071b lsls r3, r3, #28
  105059. 802ba32: d501 bpl.n 802ba38 <_vfiprintf_r+0x34>
  105060. 802ba34: 692b ldr r3, [r5, #16]
  105061. 802ba36: b99b cbnz r3, 802ba60 <_vfiprintf_r+0x5c>
  105062. 802ba38: 4629 mov r1, r5
  105063. 802ba3a: 4630 mov r0, r6
  105064. 802ba3c: f7fd fe78 bl 8029730 <__swsetup_r>
  105065. 802ba40: b170 cbz r0, 802ba60 <_vfiprintf_r+0x5c>
  105066. 802ba42: 6e6b ldr r3, [r5, #100] @ 0x64
  105067. 802ba44: 07dc lsls r4, r3, #31
  105068. 802ba46: d504 bpl.n 802ba52 <_vfiprintf_r+0x4e>
  105069. 802ba48: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  105070. 802ba4c: b01d add sp, #116 @ 0x74
  105071. 802ba4e: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  105072. 802ba52: 89ab ldrh r3, [r5, #12]
  105073. 802ba54: 0598 lsls r0, r3, #22
  105074. 802ba56: d4f7 bmi.n 802ba48 <_vfiprintf_r+0x44>
  105075. 802ba58: 6da8 ldr r0, [r5, #88] @ 0x58
  105076. 802ba5a: f7fd ffdf bl 8029a1c <__retarget_lock_release_recursive>
  105077. 802ba5e: e7f3 b.n 802ba48 <_vfiprintf_r+0x44>
  105078. 802ba60: 2300 movs r3, #0
  105079. 802ba62: 9309 str r3, [sp, #36] @ 0x24
  105080. 802ba64: 2320 movs r3, #32
  105081. 802ba66: f88d 3029 strb.w r3, [sp, #41] @ 0x29
  105082. 802ba6a: f8cd 800c str.w r8, [sp, #12]
  105083. 802ba6e: 2330 movs r3, #48 @ 0x30
  105084. 802ba70: f8df 81ac ldr.w r8, [pc, #428] @ 802bc20 <_vfiprintf_r+0x21c>
  105085. 802ba74: f88d 302a strb.w r3, [sp, #42] @ 0x2a
  105086. 802ba78: f04f 0901 mov.w r9, #1
  105087. 802ba7c: 4623 mov r3, r4
  105088. 802ba7e: 469a mov sl, r3
  105089. 802ba80: f813 2b01 ldrb.w r2, [r3], #1
  105090. 802ba84: b10a cbz r2, 802ba8a <_vfiprintf_r+0x86>
  105091. 802ba86: 2a25 cmp r2, #37 @ 0x25
  105092. 802ba88: d1f9 bne.n 802ba7e <_vfiprintf_r+0x7a>
  105093. 802ba8a: ebba 0b04 subs.w fp, sl, r4
  105094. 802ba8e: d00b beq.n 802baa8 <_vfiprintf_r+0xa4>
  105095. 802ba90: 465b mov r3, fp
  105096. 802ba92: 4622 mov r2, r4
  105097. 802ba94: 4629 mov r1, r5
  105098. 802ba96: 4630 mov r0, r6
  105099. 802ba98: f7ff ffa1 bl 802b9de <__sfputs_r>
  105100. 802ba9c: 3001 adds r0, #1
  105101. 802ba9e: f000 80a7 beq.w 802bbf0 <_vfiprintf_r+0x1ec>
  105102. 802baa2: 9a09 ldr r2, [sp, #36] @ 0x24
  105103. 802baa4: 445a add r2, fp
  105104. 802baa6: 9209 str r2, [sp, #36] @ 0x24
  105105. 802baa8: f89a 3000 ldrb.w r3, [sl]
  105106. 802baac: 2b00 cmp r3, #0
  105107. 802baae: f000 809f beq.w 802bbf0 <_vfiprintf_r+0x1ec>
  105108. 802bab2: 2300 movs r3, #0
  105109. 802bab4: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  105110. 802bab8: e9cd 2305 strd r2, r3, [sp, #20]
  105111. 802babc: f10a 0a01 add.w sl, sl, #1
  105112. 802bac0: 9304 str r3, [sp, #16]
  105113. 802bac2: 9307 str r3, [sp, #28]
  105114. 802bac4: f88d 3053 strb.w r3, [sp, #83] @ 0x53
  105115. 802bac8: 931a str r3, [sp, #104] @ 0x68
  105116. 802baca: 4654 mov r4, sl
  105117. 802bacc: 2205 movs r2, #5
  105118. 802bace: f814 1b01 ldrb.w r1, [r4], #1
  105119. 802bad2: 4853 ldr r0, [pc, #332] @ (802bc20 <_vfiprintf_r+0x21c>)
  105120. 802bad4: f7d4 fc14 bl 8000300 <memchr>
  105121. 802bad8: 9a04 ldr r2, [sp, #16]
  105122. 802bada: b9d8 cbnz r0, 802bb14 <_vfiprintf_r+0x110>
  105123. 802badc: 06d1 lsls r1, r2, #27
  105124. 802bade: bf44 itt mi
  105125. 802bae0: 2320 movmi r3, #32
  105126. 802bae2: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
  105127. 802bae6: 0713 lsls r3, r2, #28
  105128. 802bae8: bf44 itt mi
  105129. 802baea: 232b movmi r3, #43 @ 0x2b
  105130. 802baec: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
  105131. 802baf0: f89a 3000 ldrb.w r3, [sl]
  105132. 802baf4: 2b2a cmp r3, #42 @ 0x2a
  105133. 802baf6: d015 beq.n 802bb24 <_vfiprintf_r+0x120>
  105134. 802baf8: 9a07 ldr r2, [sp, #28]
  105135. 802bafa: 4654 mov r4, sl
  105136. 802bafc: 2000 movs r0, #0
  105137. 802bafe: f04f 0c0a mov.w ip, #10
  105138. 802bb02: 4621 mov r1, r4
  105139. 802bb04: f811 3b01 ldrb.w r3, [r1], #1
  105140. 802bb08: 3b30 subs r3, #48 @ 0x30
  105141. 802bb0a: 2b09 cmp r3, #9
  105142. 802bb0c: d94b bls.n 802bba6 <_vfiprintf_r+0x1a2>
  105143. 802bb0e: b1b0 cbz r0, 802bb3e <_vfiprintf_r+0x13a>
  105144. 802bb10: 9207 str r2, [sp, #28]
  105145. 802bb12: e014 b.n 802bb3e <_vfiprintf_r+0x13a>
  105146. 802bb14: eba0 0308 sub.w r3, r0, r8
  105147. 802bb18: fa09 f303 lsl.w r3, r9, r3
  105148. 802bb1c: 4313 orrs r3, r2
  105149. 802bb1e: 9304 str r3, [sp, #16]
  105150. 802bb20: 46a2 mov sl, r4
  105151. 802bb22: e7d2 b.n 802baca <_vfiprintf_r+0xc6>
  105152. 802bb24: 9b03 ldr r3, [sp, #12]
  105153. 802bb26: 1d19 adds r1, r3, #4
  105154. 802bb28: 681b ldr r3, [r3, #0]
  105155. 802bb2a: 9103 str r1, [sp, #12]
  105156. 802bb2c: 2b00 cmp r3, #0
  105157. 802bb2e: bfbb ittet lt
  105158. 802bb30: 425b neglt r3, r3
  105159. 802bb32: f042 0202 orrlt.w r2, r2, #2
  105160. 802bb36: 9307 strge r3, [sp, #28]
  105161. 802bb38: 9307 strlt r3, [sp, #28]
  105162. 802bb3a: bfb8 it lt
  105163. 802bb3c: 9204 strlt r2, [sp, #16]
  105164. 802bb3e: 7823 ldrb r3, [r4, #0]
  105165. 802bb40: 2b2e cmp r3, #46 @ 0x2e
  105166. 802bb42: d10a bne.n 802bb5a <_vfiprintf_r+0x156>
  105167. 802bb44: 7863 ldrb r3, [r4, #1]
  105168. 802bb46: 2b2a cmp r3, #42 @ 0x2a
  105169. 802bb48: d132 bne.n 802bbb0 <_vfiprintf_r+0x1ac>
  105170. 802bb4a: 9b03 ldr r3, [sp, #12]
  105171. 802bb4c: 1d1a adds r2, r3, #4
  105172. 802bb4e: 681b ldr r3, [r3, #0]
  105173. 802bb50: 9203 str r2, [sp, #12]
  105174. 802bb52: ea43 73e3 orr.w r3, r3, r3, asr #31
  105175. 802bb56: 3402 adds r4, #2
  105176. 802bb58: 9305 str r3, [sp, #20]
  105177. 802bb5a: f8df a0d4 ldr.w sl, [pc, #212] @ 802bc30 <_vfiprintf_r+0x22c>
  105178. 802bb5e: 7821 ldrb r1, [r4, #0]
  105179. 802bb60: 2203 movs r2, #3
  105180. 802bb62: 4650 mov r0, sl
  105181. 802bb64: f7d4 fbcc bl 8000300 <memchr>
  105182. 802bb68: b138 cbz r0, 802bb7a <_vfiprintf_r+0x176>
  105183. 802bb6a: 9b04 ldr r3, [sp, #16]
  105184. 802bb6c: eba0 000a sub.w r0, r0, sl
  105185. 802bb70: 2240 movs r2, #64 @ 0x40
  105186. 802bb72: 4082 lsls r2, r0
  105187. 802bb74: 4313 orrs r3, r2
  105188. 802bb76: 3401 adds r4, #1
  105189. 802bb78: 9304 str r3, [sp, #16]
  105190. 802bb7a: f814 1b01 ldrb.w r1, [r4], #1
  105191. 802bb7e: 4829 ldr r0, [pc, #164] @ (802bc24 <_vfiprintf_r+0x220>)
  105192. 802bb80: f88d 1028 strb.w r1, [sp, #40] @ 0x28
  105193. 802bb84: 2206 movs r2, #6
  105194. 802bb86: f7d4 fbbb bl 8000300 <memchr>
  105195. 802bb8a: 2800 cmp r0, #0
  105196. 802bb8c: d03f beq.n 802bc0e <_vfiprintf_r+0x20a>
  105197. 802bb8e: 4b26 ldr r3, [pc, #152] @ (802bc28 <_vfiprintf_r+0x224>)
  105198. 802bb90: bb1b cbnz r3, 802bbda <_vfiprintf_r+0x1d6>
  105199. 802bb92: 9b03 ldr r3, [sp, #12]
  105200. 802bb94: 3307 adds r3, #7
  105201. 802bb96: f023 0307 bic.w r3, r3, #7
  105202. 802bb9a: 3308 adds r3, #8
  105203. 802bb9c: 9303 str r3, [sp, #12]
  105204. 802bb9e: 9b09 ldr r3, [sp, #36] @ 0x24
  105205. 802bba0: 443b add r3, r7
  105206. 802bba2: 9309 str r3, [sp, #36] @ 0x24
  105207. 802bba4: e76a b.n 802ba7c <_vfiprintf_r+0x78>
  105208. 802bba6: fb0c 3202 mla r2, ip, r2, r3
  105209. 802bbaa: 460c mov r4, r1
  105210. 802bbac: 2001 movs r0, #1
  105211. 802bbae: e7a8 b.n 802bb02 <_vfiprintf_r+0xfe>
  105212. 802bbb0: 2300 movs r3, #0
  105213. 802bbb2: 3401 adds r4, #1
  105214. 802bbb4: 9305 str r3, [sp, #20]
  105215. 802bbb6: 4619 mov r1, r3
  105216. 802bbb8: f04f 0c0a mov.w ip, #10
  105217. 802bbbc: 4620 mov r0, r4
  105218. 802bbbe: f810 2b01 ldrb.w r2, [r0], #1
  105219. 802bbc2: 3a30 subs r2, #48 @ 0x30
  105220. 802bbc4: 2a09 cmp r2, #9
  105221. 802bbc6: d903 bls.n 802bbd0 <_vfiprintf_r+0x1cc>
  105222. 802bbc8: 2b00 cmp r3, #0
  105223. 802bbca: d0c6 beq.n 802bb5a <_vfiprintf_r+0x156>
  105224. 802bbcc: 9105 str r1, [sp, #20]
  105225. 802bbce: e7c4 b.n 802bb5a <_vfiprintf_r+0x156>
  105226. 802bbd0: fb0c 2101 mla r1, ip, r1, r2
  105227. 802bbd4: 4604 mov r4, r0
  105228. 802bbd6: 2301 movs r3, #1
  105229. 802bbd8: e7f0 b.n 802bbbc <_vfiprintf_r+0x1b8>
  105230. 802bbda: ab03 add r3, sp, #12
  105231. 802bbdc: 9300 str r3, [sp, #0]
  105232. 802bbde: 462a mov r2, r5
  105233. 802bbe0: 4b12 ldr r3, [pc, #72] @ (802bc2c <_vfiprintf_r+0x228>)
  105234. 802bbe2: a904 add r1, sp, #16
  105235. 802bbe4: 4630 mov r0, r6
  105236. 802bbe6: f7fd f827 bl 8028c38 <_printf_float>
  105237. 802bbea: 4607 mov r7, r0
  105238. 802bbec: 1c78 adds r0, r7, #1
  105239. 802bbee: d1d6 bne.n 802bb9e <_vfiprintf_r+0x19a>
  105240. 802bbf0: 6e6b ldr r3, [r5, #100] @ 0x64
  105241. 802bbf2: 07d9 lsls r1, r3, #31
  105242. 802bbf4: d405 bmi.n 802bc02 <_vfiprintf_r+0x1fe>
  105243. 802bbf6: 89ab ldrh r3, [r5, #12]
  105244. 802bbf8: 059a lsls r2, r3, #22
  105245. 802bbfa: d402 bmi.n 802bc02 <_vfiprintf_r+0x1fe>
  105246. 802bbfc: 6da8 ldr r0, [r5, #88] @ 0x58
  105247. 802bbfe: f7fd ff0d bl 8029a1c <__retarget_lock_release_recursive>
  105248. 802bc02: 89ab ldrh r3, [r5, #12]
  105249. 802bc04: 065b lsls r3, r3, #25
  105250. 802bc06: f53f af1f bmi.w 802ba48 <_vfiprintf_r+0x44>
  105251. 802bc0a: 9809 ldr r0, [sp, #36] @ 0x24
  105252. 802bc0c: e71e b.n 802ba4c <_vfiprintf_r+0x48>
  105253. 802bc0e: ab03 add r3, sp, #12
  105254. 802bc10: 9300 str r3, [sp, #0]
  105255. 802bc12: 462a mov r2, r5
  105256. 802bc14: 4b05 ldr r3, [pc, #20] @ (802bc2c <_vfiprintf_r+0x228>)
  105257. 802bc16: a904 add r1, sp, #16
  105258. 802bc18: 4630 mov r0, r6
  105259. 802bc1a: f7fd fa95 bl 8029148 <_printf_i>
  105260. 802bc1e: e7e4 b.n 802bbea <_vfiprintf_r+0x1e6>
  105261. 802bc20: 08030c28 .word 0x08030c28
  105262. 802bc24: 08030c32 .word 0x08030c32
  105263. 802bc28: 08028c39 .word 0x08028c39
  105264. 802bc2c: 0802b9df .word 0x0802b9df
  105265. 802bc30: 08030c2e .word 0x08030c2e
  105266. 0802bc34 <__sflush_r>:
  105267. 802bc34: f9b1 200c ldrsh.w r2, [r1, #12]
  105268. 802bc38: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  105269. 802bc3c: 0716 lsls r6, r2, #28
  105270. 802bc3e: 4605 mov r5, r0
  105271. 802bc40: 460c mov r4, r1
  105272. 802bc42: d454 bmi.n 802bcee <__sflush_r+0xba>
  105273. 802bc44: 684b ldr r3, [r1, #4]
  105274. 802bc46: 2b00 cmp r3, #0
  105275. 802bc48: dc02 bgt.n 802bc50 <__sflush_r+0x1c>
  105276. 802bc4a: 6c0b ldr r3, [r1, #64] @ 0x40
  105277. 802bc4c: 2b00 cmp r3, #0
  105278. 802bc4e: dd48 ble.n 802bce2 <__sflush_r+0xae>
  105279. 802bc50: 6ae6 ldr r6, [r4, #44] @ 0x2c
  105280. 802bc52: 2e00 cmp r6, #0
  105281. 802bc54: d045 beq.n 802bce2 <__sflush_r+0xae>
  105282. 802bc56: 2300 movs r3, #0
  105283. 802bc58: f412 5280 ands.w r2, r2, #4096 @ 0x1000
  105284. 802bc5c: 682f ldr r7, [r5, #0]
  105285. 802bc5e: 6a21 ldr r1, [r4, #32]
  105286. 802bc60: 602b str r3, [r5, #0]
  105287. 802bc62: d030 beq.n 802bcc6 <__sflush_r+0x92>
  105288. 802bc64: 6d62 ldr r2, [r4, #84] @ 0x54
  105289. 802bc66: 89a3 ldrh r3, [r4, #12]
  105290. 802bc68: 0759 lsls r1, r3, #29
  105291. 802bc6a: d505 bpl.n 802bc78 <__sflush_r+0x44>
  105292. 802bc6c: 6863 ldr r3, [r4, #4]
  105293. 802bc6e: 1ad2 subs r2, r2, r3
  105294. 802bc70: 6b63 ldr r3, [r4, #52] @ 0x34
  105295. 802bc72: b10b cbz r3, 802bc78 <__sflush_r+0x44>
  105296. 802bc74: 6c23 ldr r3, [r4, #64] @ 0x40
  105297. 802bc76: 1ad2 subs r2, r2, r3
  105298. 802bc78: 2300 movs r3, #0
  105299. 802bc7a: 6ae6 ldr r6, [r4, #44] @ 0x2c
  105300. 802bc7c: 6a21 ldr r1, [r4, #32]
  105301. 802bc7e: 4628 mov r0, r5
  105302. 802bc80: 47b0 blx r6
  105303. 802bc82: 1c43 adds r3, r0, #1
  105304. 802bc84: 89a3 ldrh r3, [r4, #12]
  105305. 802bc86: d106 bne.n 802bc96 <__sflush_r+0x62>
  105306. 802bc88: 6829 ldr r1, [r5, #0]
  105307. 802bc8a: 291d cmp r1, #29
  105308. 802bc8c: d82b bhi.n 802bce6 <__sflush_r+0xb2>
  105309. 802bc8e: 4a2a ldr r2, [pc, #168] @ (802bd38 <__sflush_r+0x104>)
  105310. 802bc90: 410a asrs r2, r1
  105311. 802bc92: 07d6 lsls r6, r2, #31
  105312. 802bc94: d427 bmi.n 802bce6 <__sflush_r+0xb2>
  105313. 802bc96: 2200 movs r2, #0
  105314. 802bc98: 6062 str r2, [r4, #4]
  105315. 802bc9a: 04d9 lsls r1, r3, #19
  105316. 802bc9c: 6922 ldr r2, [r4, #16]
  105317. 802bc9e: 6022 str r2, [r4, #0]
  105318. 802bca0: d504 bpl.n 802bcac <__sflush_r+0x78>
  105319. 802bca2: 1c42 adds r2, r0, #1
  105320. 802bca4: d101 bne.n 802bcaa <__sflush_r+0x76>
  105321. 802bca6: 682b ldr r3, [r5, #0]
  105322. 802bca8: b903 cbnz r3, 802bcac <__sflush_r+0x78>
  105323. 802bcaa: 6560 str r0, [r4, #84] @ 0x54
  105324. 802bcac: 6b61 ldr r1, [r4, #52] @ 0x34
  105325. 802bcae: 602f str r7, [r5, #0]
  105326. 802bcb0: b1b9 cbz r1, 802bce2 <__sflush_r+0xae>
  105327. 802bcb2: f104 0344 add.w r3, r4, #68 @ 0x44
  105328. 802bcb6: 4299 cmp r1, r3
  105329. 802bcb8: d002 beq.n 802bcc0 <__sflush_r+0x8c>
  105330. 802bcba: 4628 mov r0, r5
  105331. 802bcbc: f7fe fcc6 bl 802a64c <_free_r>
  105332. 802bcc0: 2300 movs r3, #0
  105333. 802bcc2: 6363 str r3, [r4, #52] @ 0x34
  105334. 802bcc4: e00d b.n 802bce2 <__sflush_r+0xae>
  105335. 802bcc6: 2301 movs r3, #1
  105336. 802bcc8: 4628 mov r0, r5
  105337. 802bcca: 47b0 blx r6
  105338. 802bccc: 4602 mov r2, r0
  105339. 802bcce: 1c50 adds r0, r2, #1
  105340. 802bcd0: d1c9 bne.n 802bc66 <__sflush_r+0x32>
  105341. 802bcd2: 682b ldr r3, [r5, #0]
  105342. 802bcd4: 2b00 cmp r3, #0
  105343. 802bcd6: d0c6 beq.n 802bc66 <__sflush_r+0x32>
  105344. 802bcd8: 2b1d cmp r3, #29
  105345. 802bcda: d001 beq.n 802bce0 <__sflush_r+0xac>
  105346. 802bcdc: 2b16 cmp r3, #22
  105347. 802bcde: d11e bne.n 802bd1e <__sflush_r+0xea>
  105348. 802bce0: 602f str r7, [r5, #0]
  105349. 802bce2: 2000 movs r0, #0
  105350. 802bce4: e022 b.n 802bd2c <__sflush_r+0xf8>
  105351. 802bce6: f043 0340 orr.w r3, r3, #64 @ 0x40
  105352. 802bcea: b21b sxth r3, r3
  105353. 802bcec: e01b b.n 802bd26 <__sflush_r+0xf2>
  105354. 802bcee: 690f ldr r7, [r1, #16]
  105355. 802bcf0: 2f00 cmp r7, #0
  105356. 802bcf2: d0f6 beq.n 802bce2 <__sflush_r+0xae>
  105357. 802bcf4: 0793 lsls r3, r2, #30
  105358. 802bcf6: 680e ldr r6, [r1, #0]
  105359. 802bcf8: bf08 it eq
  105360. 802bcfa: 694b ldreq r3, [r1, #20]
  105361. 802bcfc: 600f str r7, [r1, #0]
  105362. 802bcfe: bf18 it ne
  105363. 802bd00: 2300 movne r3, #0
  105364. 802bd02: eba6 0807 sub.w r8, r6, r7
  105365. 802bd06: 608b str r3, [r1, #8]
  105366. 802bd08: f1b8 0f00 cmp.w r8, #0
  105367. 802bd0c: dde9 ble.n 802bce2 <__sflush_r+0xae>
  105368. 802bd0e: 6a21 ldr r1, [r4, #32]
  105369. 802bd10: 6aa6 ldr r6, [r4, #40] @ 0x28
  105370. 802bd12: 4643 mov r3, r8
  105371. 802bd14: 463a mov r2, r7
  105372. 802bd16: 4628 mov r0, r5
  105373. 802bd18: 47b0 blx r6
  105374. 802bd1a: 2800 cmp r0, #0
  105375. 802bd1c: dc08 bgt.n 802bd30 <__sflush_r+0xfc>
  105376. 802bd1e: f9b4 300c ldrsh.w r3, [r4, #12]
  105377. 802bd22: f043 0340 orr.w r3, r3, #64 @ 0x40
  105378. 802bd26: 81a3 strh r3, [r4, #12]
  105379. 802bd28: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  105380. 802bd2c: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  105381. 802bd30: 4407 add r7, r0
  105382. 802bd32: eba8 0800 sub.w r8, r8, r0
  105383. 802bd36: e7e7 b.n 802bd08 <__sflush_r+0xd4>
  105384. 802bd38: dfbffffe .word 0xdfbffffe
  105385. 0802bd3c <_fflush_r>:
  105386. 802bd3c: b538 push {r3, r4, r5, lr}
  105387. 802bd3e: 690b ldr r3, [r1, #16]
  105388. 802bd40: 4605 mov r5, r0
  105389. 802bd42: 460c mov r4, r1
  105390. 802bd44: b913 cbnz r3, 802bd4c <_fflush_r+0x10>
  105391. 802bd46: 2500 movs r5, #0
  105392. 802bd48: 4628 mov r0, r5
  105393. 802bd4a: bd38 pop {r3, r4, r5, pc}
  105394. 802bd4c: b118 cbz r0, 802bd56 <_fflush_r+0x1a>
  105395. 802bd4e: 6a03 ldr r3, [r0, #32]
  105396. 802bd50: b90b cbnz r3, 802bd56 <_fflush_r+0x1a>
  105397. 802bd52: f7fd fba5 bl 80294a0 <__sinit>
  105398. 802bd56: f9b4 300c ldrsh.w r3, [r4, #12]
  105399. 802bd5a: 2b00 cmp r3, #0
  105400. 802bd5c: d0f3 beq.n 802bd46 <_fflush_r+0xa>
  105401. 802bd5e: 6e62 ldr r2, [r4, #100] @ 0x64
  105402. 802bd60: 07d0 lsls r0, r2, #31
  105403. 802bd62: d404 bmi.n 802bd6e <_fflush_r+0x32>
  105404. 802bd64: 0599 lsls r1, r3, #22
  105405. 802bd66: d402 bmi.n 802bd6e <_fflush_r+0x32>
  105406. 802bd68: 6da0 ldr r0, [r4, #88] @ 0x58
  105407. 802bd6a: f7fd fe56 bl 8029a1a <__retarget_lock_acquire_recursive>
  105408. 802bd6e: 4628 mov r0, r5
  105409. 802bd70: 4621 mov r1, r4
  105410. 802bd72: f7ff ff5f bl 802bc34 <__sflush_r>
  105411. 802bd76: 6e63 ldr r3, [r4, #100] @ 0x64
  105412. 802bd78: 07da lsls r2, r3, #31
  105413. 802bd7a: 4605 mov r5, r0
  105414. 802bd7c: d4e4 bmi.n 802bd48 <_fflush_r+0xc>
  105415. 802bd7e: 89a3 ldrh r3, [r4, #12]
  105416. 802bd80: 059b lsls r3, r3, #22
  105417. 802bd82: d4e1 bmi.n 802bd48 <_fflush_r+0xc>
  105418. 802bd84: 6da0 ldr r0, [r4, #88] @ 0x58
  105419. 802bd86: f7fd fe49 bl 8029a1c <__retarget_lock_release_recursive>
  105420. 802bd8a: e7dd b.n 802bd48 <_fflush_r+0xc>
  105421. 0802bd8c <fiprintf>:
  105422. 802bd8c: b40e push {r1, r2, r3}
  105423. 802bd8e: b503 push {r0, r1, lr}
  105424. 802bd90: 4601 mov r1, r0
  105425. 802bd92: ab03 add r3, sp, #12
  105426. 802bd94: 4805 ldr r0, [pc, #20] @ (802bdac <fiprintf+0x20>)
  105427. 802bd96: f853 2b04 ldr.w r2, [r3], #4
  105428. 802bd9a: 6800 ldr r0, [r0, #0]
  105429. 802bd9c: 9301 str r3, [sp, #4]
  105430. 802bd9e: f7ff fe31 bl 802ba04 <_vfiprintf_r>
  105431. 802bda2: b002 add sp, #8
  105432. 802bda4: f85d eb04 ldr.w lr, [sp], #4
  105433. 802bda8: b003 add sp, #12
  105434. 802bdaa: 4770 bx lr
  105435. 802bdac: 240001c0 .word 0x240001c0
  105436. 0802bdb0 <__swhatbuf_r>:
  105437. 802bdb0: b570 push {r4, r5, r6, lr}
  105438. 802bdb2: 460c mov r4, r1
  105439. 802bdb4: f9b1 100e ldrsh.w r1, [r1, #14]
  105440. 802bdb8: 2900 cmp r1, #0
  105441. 802bdba: b096 sub sp, #88 @ 0x58
  105442. 802bdbc: 4615 mov r5, r2
  105443. 802bdbe: 461e mov r6, r3
  105444. 802bdc0: da0d bge.n 802bdde <__swhatbuf_r+0x2e>
  105445. 802bdc2: 89a3 ldrh r3, [r4, #12]
  105446. 802bdc4: f013 0f80 tst.w r3, #128 @ 0x80
  105447. 802bdc8: f04f 0100 mov.w r1, #0
  105448. 802bdcc: bf14 ite ne
  105449. 802bdce: 2340 movne r3, #64 @ 0x40
  105450. 802bdd0: f44f 6380 moveq.w r3, #1024 @ 0x400
  105451. 802bdd4: 2000 movs r0, #0
  105452. 802bdd6: 6031 str r1, [r6, #0]
  105453. 802bdd8: 602b str r3, [r5, #0]
  105454. 802bdda: b016 add sp, #88 @ 0x58
  105455. 802bddc: bd70 pop {r4, r5, r6, pc}
  105456. 802bdde: 466a mov r2, sp
  105457. 802bde0: f000 f848 bl 802be74 <_fstat_r>
  105458. 802bde4: 2800 cmp r0, #0
  105459. 802bde6: dbec blt.n 802bdc2 <__swhatbuf_r+0x12>
  105460. 802bde8: 9901 ldr r1, [sp, #4]
  105461. 802bdea: f401 4170 and.w r1, r1, #61440 @ 0xf000
  105462. 802bdee: f5a1 5300 sub.w r3, r1, #8192 @ 0x2000
  105463. 802bdf2: 4259 negs r1, r3
  105464. 802bdf4: 4159 adcs r1, r3
  105465. 802bdf6: f44f 6380 mov.w r3, #1024 @ 0x400
  105466. 802bdfa: e7eb b.n 802bdd4 <__swhatbuf_r+0x24>
  105467. 0802bdfc <__smakebuf_r>:
  105468. 802bdfc: 898b ldrh r3, [r1, #12]
  105469. 802bdfe: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr}
  105470. 802be00: 079d lsls r5, r3, #30
  105471. 802be02: 4606 mov r6, r0
  105472. 802be04: 460c mov r4, r1
  105473. 802be06: d507 bpl.n 802be18 <__smakebuf_r+0x1c>
  105474. 802be08: f104 0347 add.w r3, r4, #71 @ 0x47
  105475. 802be0c: 6023 str r3, [r4, #0]
  105476. 802be0e: 6123 str r3, [r4, #16]
  105477. 802be10: 2301 movs r3, #1
  105478. 802be12: 6163 str r3, [r4, #20]
  105479. 802be14: b003 add sp, #12
  105480. 802be16: bdf0 pop {r4, r5, r6, r7, pc}
  105481. 802be18: ab01 add r3, sp, #4
  105482. 802be1a: 466a mov r2, sp
  105483. 802be1c: f7ff ffc8 bl 802bdb0 <__swhatbuf_r>
  105484. 802be20: 9f00 ldr r7, [sp, #0]
  105485. 802be22: 4605 mov r5, r0
  105486. 802be24: 4639 mov r1, r7
  105487. 802be26: 4630 mov r0, r6
  105488. 802be28: f7fb ffba bl 8027da0 <_malloc_r>
  105489. 802be2c: b948 cbnz r0, 802be42 <__smakebuf_r+0x46>
  105490. 802be2e: f9b4 300c ldrsh.w r3, [r4, #12]
  105491. 802be32: 059a lsls r2, r3, #22
  105492. 802be34: d4ee bmi.n 802be14 <__smakebuf_r+0x18>
  105493. 802be36: f023 0303 bic.w r3, r3, #3
  105494. 802be3a: f043 0302 orr.w r3, r3, #2
  105495. 802be3e: 81a3 strh r3, [r4, #12]
  105496. 802be40: e7e2 b.n 802be08 <__smakebuf_r+0xc>
  105497. 802be42: 89a3 ldrh r3, [r4, #12]
  105498. 802be44: 6020 str r0, [r4, #0]
  105499. 802be46: f043 0380 orr.w r3, r3, #128 @ 0x80
  105500. 802be4a: 81a3 strh r3, [r4, #12]
  105501. 802be4c: 9b01 ldr r3, [sp, #4]
  105502. 802be4e: e9c4 0704 strd r0, r7, [r4, #16]
  105503. 802be52: b15b cbz r3, 802be6c <__smakebuf_r+0x70>
  105504. 802be54: f9b4 100e ldrsh.w r1, [r4, #14]
  105505. 802be58: 4630 mov r0, r6
  105506. 802be5a: f000 f81d bl 802be98 <_isatty_r>
  105507. 802be5e: b128 cbz r0, 802be6c <__smakebuf_r+0x70>
  105508. 802be60: 89a3 ldrh r3, [r4, #12]
  105509. 802be62: f023 0303 bic.w r3, r3, #3
  105510. 802be66: f043 0301 orr.w r3, r3, #1
  105511. 802be6a: 81a3 strh r3, [r4, #12]
  105512. 802be6c: 89a3 ldrh r3, [r4, #12]
  105513. 802be6e: 431d orrs r5, r3
  105514. 802be70: 81a5 strh r5, [r4, #12]
  105515. 802be72: e7cf b.n 802be14 <__smakebuf_r+0x18>
  105516. 0802be74 <_fstat_r>:
  105517. 802be74: b538 push {r3, r4, r5, lr}
  105518. 802be76: 4d07 ldr r5, [pc, #28] @ (802be94 <_fstat_r+0x20>)
  105519. 802be78: 2300 movs r3, #0
  105520. 802be7a: 4604 mov r4, r0
  105521. 802be7c: 4608 mov r0, r1
  105522. 802be7e: 4611 mov r1, r2
  105523. 802be80: 602b str r3, [r5, #0]
  105524. 802be82: f7d7 fead bl 8003be0 <_fstat>
  105525. 802be86: 1c43 adds r3, r0, #1
  105526. 802be88: d102 bne.n 802be90 <_fstat_r+0x1c>
  105527. 802be8a: 682b ldr r3, [r5, #0]
  105528. 802be8c: b103 cbz r3, 802be90 <_fstat_r+0x1c>
  105529. 802be8e: 6023 str r3, [r4, #0]
  105530. 802be90: bd38 pop {r3, r4, r5, pc}
  105531. 802be92: bf00 nop
  105532. 802be94: 2402a2e4 .word 0x2402a2e4
  105533. 0802be98 <_isatty_r>:
  105534. 802be98: b538 push {r3, r4, r5, lr}
  105535. 802be9a: 4d06 ldr r5, [pc, #24] @ (802beb4 <_isatty_r+0x1c>)
  105536. 802be9c: 2300 movs r3, #0
  105537. 802be9e: 4604 mov r4, r0
  105538. 802bea0: 4608 mov r0, r1
  105539. 802bea2: 602b str r3, [r5, #0]
  105540. 802bea4: f7d7 feac bl 8003c00 <_isatty>
  105541. 802bea8: 1c43 adds r3, r0, #1
  105542. 802beaa: d102 bne.n 802beb2 <_isatty_r+0x1a>
  105543. 802beac: 682b ldr r3, [r5, #0]
  105544. 802beae: b103 cbz r3, 802beb2 <_isatty_r+0x1a>
  105545. 802beb0: 6023 str r3, [r4, #0]
  105546. 802beb2: bd38 pop {r3, r4, r5, pc}
  105547. 802beb4: 2402a2e4 .word 0x2402a2e4
  105548. 0802beb8 <abort>:
  105549. 802beb8: b508 push {r3, lr}
  105550. 802beba: 2006 movs r0, #6
  105551. 802bebc: f000 f840 bl 802bf40 <raise>
  105552. 802bec0: 2001 movs r0, #1
  105553. 802bec2: f7d7 fe3d bl 8003b40 <_exit>
  105554. 0802bec6 <_calloc_r>:
  105555. 802bec6: b570 push {r4, r5, r6, lr}
  105556. 802bec8: fba1 5402 umull r5, r4, r1, r2
  105557. 802becc: b93c cbnz r4, 802bede <_calloc_r+0x18>
  105558. 802bece: 4629 mov r1, r5
  105559. 802bed0: f7fb ff66 bl 8027da0 <_malloc_r>
  105560. 802bed4: 4606 mov r6, r0
  105561. 802bed6: b928 cbnz r0, 802bee4 <_calloc_r+0x1e>
  105562. 802bed8: 2600 movs r6, #0
  105563. 802beda: 4630 mov r0, r6
  105564. 802bedc: bd70 pop {r4, r5, r6, pc}
  105565. 802bede: 220c movs r2, #12
  105566. 802bee0: 6002 str r2, [r0, #0]
  105567. 802bee2: e7f9 b.n 802bed8 <_calloc_r+0x12>
  105568. 802bee4: 462a mov r2, r5
  105569. 802bee6: 4621 mov r1, r4
  105570. 802bee8: f7fd fca2 bl 8029830 <memset>
  105571. 802beec: e7f5 b.n 802beda <_calloc_r+0x14>
  105572. 0802beee <_raise_r>:
  105573. 802beee: 291f cmp r1, #31
  105574. 802bef0: b538 push {r3, r4, r5, lr}
  105575. 802bef2: 4605 mov r5, r0
  105576. 802bef4: 460c mov r4, r1
  105577. 802bef6: d904 bls.n 802bf02 <_raise_r+0x14>
  105578. 802bef8: 2316 movs r3, #22
  105579. 802befa: 6003 str r3, [r0, #0]
  105580. 802befc: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  105581. 802bf00: bd38 pop {r3, r4, r5, pc}
  105582. 802bf02: 6bc2 ldr r2, [r0, #60] @ 0x3c
  105583. 802bf04: b112 cbz r2, 802bf0c <_raise_r+0x1e>
  105584. 802bf06: f852 3021 ldr.w r3, [r2, r1, lsl #2]
  105585. 802bf0a: b94b cbnz r3, 802bf20 <_raise_r+0x32>
  105586. 802bf0c: 4628 mov r0, r5
  105587. 802bf0e: f000 f831 bl 802bf74 <_getpid_r>
  105588. 802bf12: 4622 mov r2, r4
  105589. 802bf14: 4601 mov r1, r0
  105590. 802bf16: 4628 mov r0, r5
  105591. 802bf18: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  105592. 802bf1c: f000 b818 b.w 802bf50 <_kill_r>
  105593. 802bf20: 2b01 cmp r3, #1
  105594. 802bf22: d00a beq.n 802bf3a <_raise_r+0x4c>
  105595. 802bf24: 1c59 adds r1, r3, #1
  105596. 802bf26: d103 bne.n 802bf30 <_raise_r+0x42>
  105597. 802bf28: 2316 movs r3, #22
  105598. 802bf2a: 6003 str r3, [r0, #0]
  105599. 802bf2c: 2001 movs r0, #1
  105600. 802bf2e: e7e7 b.n 802bf00 <_raise_r+0x12>
  105601. 802bf30: 2100 movs r1, #0
  105602. 802bf32: f842 1024 str.w r1, [r2, r4, lsl #2]
  105603. 802bf36: 4620 mov r0, r4
  105604. 802bf38: 4798 blx r3
  105605. 802bf3a: 2000 movs r0, #0
  105606. 802bf3c: e7e0 b.n 802bf00 <_raise_r+0x12>
  105607. ...
  105608. 0802bf40 <raise>:
  105609. 802bf40: 4b02 ldr r3, [pc, #8] @ (802bf4c <raise+0xc>)
  105610. 802bf42: 4601 mov r1, r0
  105611. 802bf44: 6818 ldr r0, [r3, #0]
  105612. 802bf46: f7ff bfd2 b.w 802beee <_raise_r>
  105613. 802bf4a: bf00 nop
  105614. 802bf4c: 240001c0 .word 0x240001c0
  105615. 0802bf50 <_kill_r>:
  105616. 802bf50: b538 push {r3, r4, r5, lr}
  105617. 802bf52: 4d07 ldr r5, [pc, #28] @ (802bf70 <_kill_r+0x20>)
  105618. 802bf54: 2300 movs r3, #0
  105619. 802bf56: 4604 mov r4, r0
  105620. 802bf58: 4608 mov r0, r1
  105621. 802bf5a: 4611 mov r1, r2
  105622. 802bf5c: 602b str r3, [r5, #0]
  105623. 802bf5e: f7d7 fddd bl 8003b1c <_kill>
  105624. 802bf62: 1c43 adds r3, r0, #1
  105625. 802bf64: d102 bne.n 802bf6c <_kill_r+0x1c>
  105626. 802bf66: 682b ldr r3, [r5, #0]
  105627. 802bf68: b103 cbz r3, 802bf6c <_kill_r+0x1c>
  105628. 802bf6a: 6023 str r3, [r4, #0]
  105629. 802bf6c: bd38 pop {r3, r4, r5, pc}
  105630. 802bf6e: bf00 nop
  105631. 802bf70: 2402a2e4 .word 0x2402a2e4
  105632. 0802bf74 <_getpid_r>:
  105633. 802bf74: f7d7 bdc9 b.w 8003b0a <_getpid>
  105634. 0802bf78 <_init>:
  105635. 802bf78: b5f8 push {r3, r4, r5, r6, r7, lr}
  105636. 802bf7a: bf00 nop
  105637. 802bf7c: bcf8 pop {r3, r4, r5, r6, r7}
  105638. 802bf7e: bc08 pop {r3}
  105639. 802bf80: 469e mov lr, r3
  105640. 802bf82: 4770 bx lr
  105641. 0802bf84 <_fini>:
  105642. 802bf84: b5f8 push {r3, r4, r5, r6, r7, lr}
  105643. 802bf86: bf00 nop
  105644. 802bf88: bcf8 pop {r3, r4, r5, r6, r7}
  105645. 802bf8a: bc08 pop {r3}
  105646. 802bf8c: 469e mov lr, r3
  105647. 802bf8e: 4770 bx lr